@ni/nimble-components 29.3.5 → 29.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +67 -58
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +496 -496
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/index.js +2 -2
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/table-update-tracker.js +1 -2
- package/dist/esm/table/models/table-update-tracker.js.map +1 -1
- package/dist/esm/table/testing/table.pageobject.js +1 -1
- package/dist/esm/table/testing/table.pageobject.js.map +1 -1
- package/dist/esm/table-column/anchor/index.d.ts +8 -0
- package/dist/esm/table-column/anchor/index.js +2 -1
- package/dist/esm/table-column/anchor/index.js.map +1 -1
- package/dist/esm/table-column/base/index.d.ts +0 -7
- package/dist/esm/table-column/base/index.js +1 -33
- package/dist/esm/table-column/base/index.js.map +1 -1
- package/dist/esm/table-column/base/models/column-internals.d.ts +5 -1
- package/dist/esm/table-column/base/models/column-internals.js +7 -0
- package/dist/esm/table-column/base/models/column-internals.js.map +1 -1
- package/dist/esm/table-column/date-text/index.d.ts +8 -0
- package/dist/esm/table-column/duration-text/index.d.ts +8 -0
- package/dist/esm/table-column/mapping/index.d.ts +8 -0
- package/dist/esm/table-column/mapping/index.js +2 -1
- package/dist/esm/table-column/mapping/index.js.map +1 -1
- package/dist/esm/table-column/mixins/fractional-width-column.js +2 -12
- package/dist/esm/table-column/mixins/fractional-width-column.js.map +1 -1
- package/dist/esm/table-column/mixins/groupable-column.js +1 -7
- package/dist/esm/table-column/mixins/groupable-column.js.map +1 -1
- package/dist/esm/table-column/mixins/sortable-column.d.ts +17 -0
- package/dist/esm/table-column/mixins/sortable-column.js +52 -0
- package/dist/esm/table-column/mixins/sortable-column.js.map +1 -0
- package/dist/esm/table-column/number-text/index.d.ts +8 -0
- package/dist/esm/table-column/text/index.d.ts +8 -0
- package/dist/esm/table-column/text-base/index.d.ts +8 -0
- package/dist/esm/table-column/text-base/index.js +2 -1
- package/dist/esm/table-column/text-base/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -10111,9 +10111,9 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof XO))throw new Error(
|
|
|
10111
10111
|
>
|
|
10112
10112
|
</${e}>
|
|
10113
10113
|
`)
|
|
10114
|
-
class JO{constructor(e){this.uniqueId=wa("table-column-slot"),this.sortOperation=UO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=GO,this.minPixelWidth=WO,this.resizingDisabled=!1,this.hideHeaderIndicators=!1,this.currentFractionalWidth=GO,this.currentSortDirection=zO.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=YO(e.cellViewTag),this.groupHeaderViewTemplate=KO(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??UO,this.validator=e.validator}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function QO(e,...t){for(const n of t)if(e===n)return!0
|
|
10115
|
-
return!1}e([g],JO.prototype,"columnConfig",void 0),e([g],JO.prototype,"operandDataRecordFieldName",void 0),e([g],JO.prototype,"sortOperation",void 0),e([g],JO.prototype,"dataRecordFieldNames",void 0),e([g],JO.prototype,"groupingDisabled",void 0),e([g],JO.prototype,"groupIndex",void 0),e([g],JO.prototype,"pixelWidth",void 0),e([g],JO.prototype,"fractionalWidth",void 0),e([g],JO.prototype,"minPixelWidth",void 0),e([g],JO.prototype,"resizingDisabled",void 0),e([g],JO.prototype,"hideHeaderIndicators",void 0),e([g],JO.prototype,"currentFractionalWidth",void 0),e([g],JO.prototype,"currentPixelWidth",void 0),e([g],JO.prototype,"currentSortIndex",void 0),e([g],JO.prototype,"currentSortDirection",void 0)
|
|
10116
|
-
class eR extends Vt{constructor(){super(...arguments),this.columnInternals=new JO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.
|
|
10114
|
+
class JO{constructor(e){this.uniqueId=wa("table-column-slot"),this.sortOperation=UO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=GO,this.minPixelWidth=WO,this.resizingDisabled=!1,this.hideHeaderIndicators=!1,this.currentFractionalWidth=GO,this.sortingDisabled=!1,this.currentSortDirection=zO.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=YO(e.cellViewTag),this.groupHeaderViewTemplate=KO(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??UO,this.validator=e.validator}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function QO(e,...t){for(const n of t)if(e===n)return!0
|
|
10115
|
+
return!1}e([g],JO.prototype,"columnConfig",void 0),e([g],JO.prototype,"operandDataRecordFieldName",void 0),e([g],JO.prototype,"sortOperation",void 0),e([g],JO.prototype,"dataRecordFieldNames",void 0),e([g],JO.prototype,"groupingDisabled",void 0),e([g],JO.prototype,"groupIndex",void 0),e([g],JO.prototype,"pixelWidth",void 0),e([g],JO.prototype,"fractionalWidth",void 0),e([g],JO.prototype,"minPixelWidth",void 0),e([g],JO.prototype,"resizingDisabled",void 0),e([g],JO.prototype,"hideHeaderIndicators",void 0),e([g],JO.prototype,"currentFractionalWidth",void 0),e([g],JO.prototype,"currentPixelWidth",void 0),e([g],JO.prototype,"sortingDisabled",void 0),e([g],JO.prototype,"currentSortIndex",void 0),e([g],JO.prototype,"currentSortDirection",void 0)
|
|
10116
|
+
class eR extends Vt{constructor(){super(...arguments),this.columnInternals=new JO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validator.isColumnValid}get validity(){return this.columnInternals.validator.getValidity()}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}}e([le({attribute:"column-id"})],eR.prototype,"columnId",void 0),e([le({attribute:"action-menu-slot"})],eR.prototype,"actionMenuSlot",void 0),e([le({attribute:"action-menu-label"})],eR.prototype,"actionMenuLabel",void 0),e([le({attribute:"column-hidden",mode:"boolean"})],eR.prototype,"columnHidden",void 0),e([g],eR.prototype,"hasOverflow",void 0)
|
|
10117
10117
|
class tR{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((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
|
|
10118
10118
|
return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==VO.none||"string"==typeof n
|
|
10119
10119
|
return this.idFieldNameNotConfigured=!!i&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
|
|
@@ -11075,7 +11075,7 @@ for(let e=0;e<this.visibleColumns.length&&n<this.gridSizedColumns.length;e++){co
|
|
|
11075
11075
|
i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],HR.prototype,"isColumnBeingSized",void 0),e([g],HR.prototype,"activeColumnIndex",void 0),e([g],HR.prototype,"activeColumnDivider",void 0)
|
|
11076
11076
|
const BR=(e,...t)=>{for(const n of t)if(e===n)return!0
|
|
11077
11077
|
return!1},qR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
|
|
11078
|
-
class UR extends aI{constructor(e){super(qR),this.table=e,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(e){BR(e,"columnId")?this.track("columnIds"):QO(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):
|
|
11078
|
+
class UR extends aI{constructor(e){super(qR),this.table=e,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(e){BR(e,"columnId")?this.track("columnIds"):QO(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):QO(e,"sortingDisabled","currentSortDirection","currentSortIndex")?this.track("columnSort"):BR(e,"columnHidden")||QO(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth","resizingDisabled")?this.track("columnWidths"):BR(e,"actionMenuSlot")?this.track("actionMenuSlots"):QO(e,"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 jR{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===BO?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
|
|
11079
11079
|
const t=this.tanStackTable.getState().rowSelection,n=[]
|
|
11080
11080
|
if(Object.entries(t).forEach((([e,t])=>{t&&n.push(e)})),1===n.length&&n[0]===e.id)return!1
|
|
11081
11081
|
const i={}
|
|
@@ -11152,7 +11152,7 @@ const t=this.calculateTanStackData(e)
|
|
|
11152
11152
|
this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==VO.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}async setRecordHierarchyOptions(e){await this.processPendingUpdates()
|
|
11153
11153
|
const t=structuredClone(e),n=this.tableValidator.getOptionsWithPresentIds(t)
|
|
11154
11154
|
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(e,t){(e instanceof eR||e instanceof JO)&&"string"==typeof t?this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof tF&&"isColumnValid"===t?this.tableValidator.validateColumnConfigurations(this.columns):e instanceof HR&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
|
|
11155
|
-
this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getRightDividerIndex(t))}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getLeftDividerIndex(t))}getLeftDividerIndex(e){return 2*e-1}getRightDividerIndex(e){return 2*e}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.sortingDisabled)return
|
|
11155
|
+
this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getRightDividerIndex(t))}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getLeftDividerIndex(t))}getLeftDividerIndex(e){return 2*e-1}getRightDividerIndex(e){return 2*e}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.columnInternals.sortingDisabled)return
|
|
11156
11156
|
const n=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=n.indexOf(e),o=i>-1,s=e.columnInternals.currentSortDirection
|
|
11157
11157
|
let r=zO.ascending
|
|
11158
11158
|
o?s===zO.descending?(n.splice(i,1),r=zO.none,e.columnInternals.currentSortIndex=void 0):r=zO.descending:n.push(e),e.columnInternals.currentSortDirection=r
|
|
@@ -11174,7 +11174,7 @@ t.subscribe(this),this.columnNotifiers.push(t)
|
|
|
11174
11174
|
const n=m.getNotifier(e.columnInternals)
|
|
11175
11175
|
n.subscribe(this),this.columnNotifiers.push(n)
|
|
11176
11176
|
const i=m.getNotifier(e.columnInternals.validator)
|
|
11177
|
-
i.subscribe(this),this.columnNotifiers.push(i)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==zO.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await hI(this.childItems),this.columns=this.childItems.filter((e=>e instanceof eR))}updateTanStack(){const e={state:{}}
|
|
11177
|
+
i.subscribe(this),this.columnNotifiers.push(i)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.columnInternals.sortingDisabled&&e.columnInternals.currentSortDirection!==zO.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await hI(this.childItems),this.columns=this.childItems.filter((e=>e instanceof eR))}updateTanStack(){const e={state:{}}
|
|
11178
11178
|
if(this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset(),this.expansionManager.resetHierarchyOptions()),this.tableUpdateTracker.updateRowParentIds&&this.expansionManager.setHierarchyEnabled(this.isHierarchyEnabled()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===VO.multiple,e.enableSubRowSelection=this.selectionMode===VO.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
|
|
11179
11179
|
n.state&&(e.state.rowSelection=n.state.rowSelection),e.data=n.data}else e.data=[...this.table.options.data]
|
|
11180
11180
|
this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState()),(this.tableUpdateTracker.updateRowIds||this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows)&&(e.state.expanded=!0,this.expansionManager.resetExpansionState()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
|
|
@@ -11214,7 +11214,7 @@ const oF=xe`
|
|
|
11214
11214
|
>
|
|
11215
11215
|
<slot ${Pe("contentSlot")}></slot>
|
|
11216
11216
|
</span>`
|
|
11217
|
-
function rF(e){class t extends e{fractionalWidthChanged(){
|
|
11217
|
+
function rF(e){class t extends e{fractionalWidthChanged(){this.columnInternals.fractionalWidth=this.fractionalWidth??GO}minPixelWidthChanged(){this.columnInternals.minPixelWidth=this.minPixelWidth??WO}}return le({attribute:"fractional-width",converter:re})(t.prototype,"fractionalWidth"),le({attribute:"min-pixel-width",converter:re})(t.prototype,"minPixelWidth"),t}function aF(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){this.columnInternals.groupIndex=this.groupIndex??void 0}}return le({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),le({attribute:"group-index",converter:re})(t.prototype,"groupIndex"),t}function lF(e){class t extends e{}return le({attribute:"placeholder"})(t.prototype,"placeholder"),t}const cF=xe`
|
|
11218
11218
|
${Ro("flex")}
|
|
11219
11219
|
|
|
11220
11220
|
:host {
|
|
@@ -11301,17 +11301,17 @@ const fF=G`
|
|
|
11301
11301
|
const gF=class extends pF{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:fF,styles:mF})
|
|
11302
11302
|
yi.getOrCreate().withPrefix("nimble").register(gF())
|
|
11303
11303
|
const vF="nimble-table-column-text-group-header-view"
|
|
11304
|
-
|
|
11305
|
-
const yF
|
|
11306
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11307
|
-
class
|
|
11308
|
-
try{return e.format(t)}catch(e){return""}}e([le({attribute:"field-name"})],
|
|
11309
|
-
const
|
|
11310
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11311
|
-
const
|
|
11304
|
+
function bF(e){class t extends e{constructor(){super(...arguments),this.sortingDisabled=!1,this.sortDirection=zO.none}sortingDisabledChanged(){this.columnInternals.sortingDisabled=this.sortingDisabled,this.sortingDisabled?(this.columnInternals.currentSortDirection=zO.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex??void 0)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex??void 0)}}return le({attribute:"sorting-disabled",mode:"boolean"})(t.prototype,"sortingDisabled"),le({attribute:"sort-index",converter:re})(t.prototype,"sortIndex"),le({attribute:"sort-direction"})(t.prototype,"sortDirection"),t}class yF extends(aF(rF(lF(bF(eR))))){constructor(){super(...arguments),this.underlineHidden=!1}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:vF,delegatedEvents:["click"],sortOperation:jO,validator:new tF([])}}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}}}e([le({attribute:"label-field-name"})],yF.prototype,"labelFieldName",void 0),e([le({attribute:"href-field-name"})],yF.prototype,"hrefFieldName",void 0),e([le],yF.prototype,"appearance",void 0),e([le({attribute:"underline-hidden",mode:"boolean"})],yF.prototype,"underlineHidden",void 0),e([le],yF.prototype,"hreflang",void 0),e([le],yF.prototype,"ping",void 0),e([le],yF.prototype,"referrerpolicy",void 0),e([le],yF.prototype,"rel",void 0),e([le],yF.prototype,"target",void 0),e([le],yF.prototype,"type",void 0),e([le],yF.prototype,"download",void 0)
|
|
11305
|
+
const wF=yF.compose({baseName:"table-column-anchor",template:sF,styles:oF})
|
|
11306
|
+
yi.getOrCreate().withPrefix("nimble").register(wF())
|
|
11307
|
+
class xF extends eR{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function CF(e){return aF(rF(lF(bF(e))))}function kF(e,t){if("number"!=typeof t)return""
|
|
11308
|
+
try{return e.format(t)}catch(e){return""}}e([le({attribute:"field-name"})],xF.prototype,"fieldName",void 0)
|
|
11309
|
+
const SF=class extends pF{updateText(){this.columnConfig?this.text=kF(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:fF,styles:mF})
|
|
11310
|
+
yi.getOrCreate().withPrefix("nimble").register(SF())
|
|
11311
|
+
const $F="left",MF="right",_F=G`
|
|
11312
11312
|
<template
|
|
11313
11313
|
class="
|
|
11314
|
-
${e=>e.alignment
|
|
11314
|
+
${e=>e.alignment===MF?"right-align":""}
|
|
11315
11315
|
${e=>e.isPlaceholder?"placeholder":""}
|
|
11316
11316
|
"
|
|
11317
11317
|
>
|
|
@@ -11322,7 +11322,7 @@ const SF="left",$F="right",MF=G`
|
|
|
11322
11322
|
${e=>e.text}
|
|
11323
11323
|
</span>
|
|
11324
11324
|
</template>
|
|
11325
|
-
`,
|
|
11325
|
+
`,EF=xe`
|
|
11326
11326
|
${Ro("flex")}
|
|
11327
11327
|
|
|
11328
11328
|
:host {
|
|
@@ -11346,22 +11346,22 @@ const SF="left",$F="right",MF=G`
|
|
|
11346
11346
|
color: ${pc};
|
|
11347
11347
|
}
|
|
11348
11348
|
`
|
|
11349
|
-
class
|
|
11350
|
-
return"string"==typeof t&&null==e?(this.text=t,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}e([g],
|
|
11351
|
-
const
|
|
11352
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11353
|
-
const
|
|
11354
|
-
class
|
|
11355
|
-
class
|
|
11349
|
+
class IF extends XO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=$F,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const e=this.cellRecord?.value,t=this.columnConfig?.placeholder
|
|
11350
|
+
return"string"==typeof t&&null==e?(this.text=t,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}e([g],IF.prototype,"hasOverflow",void 0),e([g],IF.prototype,"text",void 0),e([g],IF.prototype,"alignment",void 0),e([g],IF.prototype,"isPlaceholder",void 0)
|
|
11351
|
+
const DF=class extends IF{updateText(){this.columnConfig?this.text=kF(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:_F,styles:EF})
|
|
11352
|
+
yi.getOrCreate().withPrefix("nimble").register(DF())
|
|
11353
|
+
const AF=void 0,TF=["invalidCustomOptionsCombination"]
|
|
11354
|
+
class OF extends tF{constructor(){super(TF)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const RF={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
|
|
11355
|
+
class FF extends(CF(xF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ma.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ma.unsubscribe(this.langSubscriber,this)}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:UO,validator:new OF}}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 e=this.createFormatter()
|
|
11356
11356
|
if(e){const t={formatter:e,placeholder:this.placeholder}
|
|
11357
11357
|
this.columnInternals.columnConfig=t,this.columnInternals.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.columnInternals.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
|
|
11358
|
-
e=this.format===
|
|
11359
|
-
try{return new Intl.DateTimeFormat(Ma.getValueFor(this),e)}catch(e){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}}}e([le],
|
|
11360
|
-
const FF
|
|
11361
|
-
yi.getOrCreate().withPrefix("nimble").register(FF())
|
|
11362
|
-
const NF=class extends EF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:MF,styles:_F})
|
|
11358
|
+
e=this.format===AF?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
|
|
11359
|
+
try{return new Intl.DateTimeFormat(Ma.getValueFor(this),e)}catch(e){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}}}e([le],FF.prototype,"format",void 0),e([le({attribute:"custom-locale-matcher"})],FF.prototype,"customLocaleMatcher",void 0),e([le({attribute:"custom-weekday"})],FF.prototype,"customWeekday",void 0),e([le({attribute:"custom-era"})],FF.prototype,"customEra",void 0),e([le({attribute:"custom-year"})],FF.prototype,"customYear",void 0),e([le({attribute:"custom-month"})],FF.prototype,"customMonth",void 0),e([le({attribute:"custom-day"})],FF.prototype,"customDay",void 0),e([le({attribute:"custom-hour"})],FF.prototype,"customHour",void 0),e([le({attribute:"custom-minute"})],FF.prototype,"customMinute",void 0),e([le({attribute:"custom-second"})],FF.prototype,"customSecond",void 0),e([le({attribute:"custom-time-zone-name"})],FF.prototype,"customTimeZoneName",void 0),e([le({attribute:"custom-format-matcher"})],FF.prototype,"customFormatMatcher",void 0),e([le({attribute:"custom-hour12",converter:RF})],FF.prototype,"customHour12",void 0),e([le({attribute:"custom-time-zone"})],FF.prototype,"customTimeZone",void 0),e([le({attribute:"custom-calendar"})],FF.prototype,"customCalendar",void 0),e([le({attribute:"custom-day-period"})],FF.prototype,"customDayPeriod",void 0),e([le({attribute:"custom-numbering-system"})],FF.prototype,"customNumberingSystem",void 0),e([le({attribute:"custom-date-style"})],FF.prototype,"customDateStyle",void 0),e([le({attribute:"custom-time-style"})],FF.prototype,"customTimeStyle",void 0),e([le({attribute:"custom-hour-cycle"})],FF.prototype,"customHourCycle",void 0)
|
|
11360
|
+
const NF=FF.compose({baseName:"table-column-date-text",template:sF,styles:oF})
|
|
11363
11361
|
yi.getOrCreate().withPrefix("nimble").register(NF())
|
|
11364
|
-
class
|
|
11362
|
+
const PF=class extends IF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:_F,styles:EF})
|
|
11363
|
+
yi.getOrCreate().withPrefix("nimble").register(PF())
|
|
11364
|
+
class LF{constructor(e){this.lang=e,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(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
|
|
11365
11365
|
const t=[],n=1e3,i=6e4,o=36e5,s=864e5,r=e/s
|
|
11366
11366
|
let a=e
|
|
11367
11367
|
const l=Math.floor(r)
|
|
@@ -11374,37 +11374,37 @@ if(a-=d*i,d){const e=this.minutesFormatter.format(d)
|
|
|
11374
11374
|
t.push(e)}const h=a/n,u=0===h?0:h%60
|
|
11375
11375
|
if(e<1&&0!==h)return this.scientificSecondsFormatter.format(h)
|
|
11376
11376
|
if(u>=5e-4||0===u&&0===t.length){const e=this.secondsFormatter.format(u)
|
|
11377
|
-
t.push(e)}return t.join(", ")}}const
|
|
11378
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11379
|
-
class
|
|
11380
|
-
this.columnInternals.columnConfig=e}}const VF
|
|
11381
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11382
|
-
const
|
|
11377
|
+
t.push(e)}return t.join(", ")}}const zF=class extends pF{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:fF,styles:mF})
|
|
11378
|
+
yi.getOrCreate().withPrefix("nimble").register(zF())
|
|
11379
|
+
class VF extends(CF(xF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ma.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ma.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:UO,validator:new tF([])}}updateColumnConfig(){const e={formatter:new LF(Ma.getValueFor(this)),placeholder:this.placeholder}
|
|
11380
|
+
this.columnInternals.columnConfig=e}}const HF=VF.compose({baseName:"table-column-duration-text",template:sF,styles:oF})
|
|
11381
|
+
yi.getOrCreate().withPrefix("nimble").register(HF())
|
|
11382
|
+
const BF=(e,t)=>{if("number"===t){const t=re.fromView(e)
|
|
11383
11383
|
return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
|
|
11384
|
-
class
|
|
11385
|
-
return this.mappings.forEach((t=>{const n=
|
|
11384
|
+
class qF extends eR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Cv&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
|
|
11385
|
+
return this.mappings.forEach((t=>{const n=BF(t.key,this.keyType)
|
|
11386
11386
|
if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
|
|
11387
11387
|
const i=this.createMappingConfig(t)
|
|
11388
11388
|
e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
|
|
11389
11389
|
for(const e of this.mappings){const t=m.getNotifier(e)
|
|
11390
|
-
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],
|
|
11391
|
-
const
|
|
11390
|
+
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],qF.prototype,"mappings",void 0),e([le({attribute:"field-name"})],qF.prototype,"fieldName",void 0),e([le({attribute:"key-type"})],qF.prototype,"keyType",void 0)
|
|
11391
|
+
const UF=xe`
|
|
11392
11392
|
${oF}
|
|
11393
11393
|
|
|
11394
11394
|
slot[name='mapping'] {
|
|
11395
11395
|
display: none;
|
|
11396
11396
|
}
|
|
11397
|
-
`,
|
|
11398
|
-
class
|
|
11397
|
+
`,jF=G`${sF}<slot ${Ye("mappings")} name="mapping"></slot>`
|
|
11398
|
+
class WF extends tF{constructor(e){super(e)}validate(e,t){this.untrackAll()
|
|
11399
11399
|
const n=e.map((e=>e.key))
|
|
11400
|
-
this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===
|
|
11401
|
-
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>
|
|
11400
|
+
this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===BF(e,t)))
|
|
11401
|
+
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>BF(e,t))),i=new Set(n).size!==n.length
|
|
11402
11402
|
this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
|
|
11403
|
-
this.setConditionValue("missingKeyValue",t)}}const
|
|
11404
|
-
class
|
|
11405
|
-
this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(
|
|
11406
|
-
this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(
|
|
11407
|
-
this.setConditionValue("unsupportedMappingType",!t)}}const
|
|
11403
|
+
this.setConditionValue("missingKeyValue",t)}}const GF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
|
|
11404
|
+
class ZF extends WF{constructor(){super(GF)}static isIconMappingElement(e){return e instanceof Ev}static isSupportedMappingElement(e){return e instanceof Ev||e instanceof Dv||e instanceof Tv||e instanceof $v}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(ZF.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
|
|
11405
|
+
this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(ZF.isSupportedMappingElement).some((e=>void 0===e.text))
|
|
11406
|
+
this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(ZF.isSupportedMappingElement)
|
|
11407
|
+
this.setConditionValue("unsupportedMappingType",!t)}}const KF=xe`
|
|
11408
11408
|
${Ro("inline-flex")}
|
|
11409
11409
|
|
|
11410
11410
|
:host {
|
|
@@ -11426,7 +11426,7 @@ this.setConditionValue("unsupportedMappingType",!t)}}const ZF=xe`
|
|
|
11426
11426
|
overflow: hidden;
|
|
11427
11427
|
text-overflow: ellipsis;
|
|
11428
11428
|
}
|
|
11429
|
-
`,
|
|
11429
|
+
`,XF=G`
|
|
11430
11430
|
${He((e=>e.visualizationTemplate),G`
|
|
11431
11431
|
<span class="reserve-icon-size">
|
|
11432
11432
|
${e=>e.visualizationTemplate}
|
|
@@ -11437,8 +11437,8 @@ this.setConditionValue("unsupportedMappingType",!t)}}const ZF=xe`
|
|
|
11437
11437
|
title="${e=>e.hasOverflow&&e.text?e.text:null}"
|
|
11438
11438
|
class="text"
|
|
11439
11439
|
>${e=>e.text}</span>
|
|
11440
|
-
`,
|
|
11441
|
-
class
|
|
11440
|
+
`,YF={default:void 0,error:"error",warning:"warning",success:"success",information:"information"}
|
|
11441
|
+
class JF{constructor(e){this.text=e}}class QF extends JF{constructor(e,t,n,i){var o
|
|
11442
11442
|
super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
11443
11443
|
<${o=e}
|
|
11444
11444
|
title="${e=>e.textHidden?e.text:""}"
|
|
@@ -11448,7 +11448,7 @@ super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
|
11448
11448
|
severity="${e=>e.severity}"
|
|
11449
11449
|
>
|
|
11450
11450
|
</${o}>
|
|
11451
|
-
`}}const
|
|
11451
|
+
`}}const eN=G`
|
|
11452
11452
|
<${ET}
|
|
11453
11453
|
title="${e=>e.textHidden?e.text:""}"
|
|
11454
11454
|
aria-label="${e=>e.text}"
|
|
@@ -11456,12 +11456,12 @@ super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
|
11456
11456
|
>
|
|
11457
11457
|
</${ET}>
|
|
11458
11458
|
`
|
|
11459
|
-
class
|
|
11459
|
+
class tN extends JF{constructor(e,t){super(e),this.textHidden=t,this.spinnerTemplate=eN}}class nN extends JF{}class iN extends JF{}class oN extends ZO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
|
|
11460
11460
|
const e=this.groupHeaderValue,t=this.columnConfig.mappingConfigs.get(e)
|
|
11461
|
-
t instanceof
|
|
11462
|
-
const oN
|
|
11463
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11464
|
-
const
|
|
11461
|
+
t instanceof QF?(this.severity=t.severity,this.text=t.text??"",this.visualizationTemplate=t.iconTemplate):t instanceof tN?(this.text=t.text??"",this.visualizationTemplate=t.spinnerTemplate):(t instanceof nN||t instanceof iN)&&(this.text=t.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=YF.default}}e([g],oN.prototype,"hasOverflow",void 0),e([g],oN.prototype,"text",void 0),e([g],oN.prototype,"severity",void 0),e([g],oN.prototype,"visualizationTemplate",void 0)
|
|
11462
|
+
const sN=oN.compose({baseName:"table-column-mapping-group-header-view",template:XF,styles:KF})
|
|
11463
|
+
yi.getOrCreate().withPrefix("nimble").register(sN())
|
|
11464
|
+
const rN=xe`
|
|
11465
11465
|
${Ro("inline-flex")}
|
|
11466
11466
|
|
|
11467
11467
|
:host {
|
|
@@ -11483,7 +11483,7 @@ const sN=xe`
|
|
|
11483
11483
|
overflow: hidden;
|
|
11484
11484
|
text-overflow: ellipsis;
|
|
11485
11485
|
}
|
|
11486
|
-
`,
|
|
11486
|
+
`,aN=G`
|
|
11487
11487
|
${He((e=>e.visualizationTemplate),G`
|
|
11488
11488
|
<span class="reserve-icon-size">
|
|
11489
11489
|
${e=>e.visualizationTemplate}
|
|
@@ -11499,22 +11499,22 @@ const sN=xe`
|
|
|
11499
11499
|
</span>
|
|
11500
11500
|
`)}
|
|
11501
11501
|
`
|
|
11502
|
-
class
|
|
11502
|
+
class lN extends XO{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
|
|
11503
11503
|
const e=this.cellRecord.value
|
|
11504
11504
|
if(null==e)return
|
|
11505
11505
|
const t=this.columnConfig.mappingConfigs.get(e)
|
|
11506
|
-
t instanceof
|
|
11507
|
-
const lN
|
|
11508
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11509
|
-
const
|
|
11510
|
-
class
|
|
11511
|
-
return new
|
|
11512
|
-
if(e instanceof Tv)return new
|
|
11513
|
-
if(e instanceof $v)return new
|
|
11514
|
-
throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===
|
|
11515
|
-
const hN
|
|
11516
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11517
|
-
const
|
|
11506
|
+
t instanceof QF?(this.severity=t.severity,this.text=t.text,this.visualizationTemplate=t.iconTemplate,this.textHidden=t.textHidden):t instanceof tN?(this.text=t.text,this.visualizationTemplate=t.spinnerTemplate,this.textHidden=t.textHidden):t instanceof nN?(this.text=t.text,this.textHidden=!1):t instanceof iN&&(this.text=t.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=YF.default}}e([g],lN.prototype,"severity",void 0),e([g],lN.prototype,"text",void 0),e([g],lN.prototype,"visualizationTemplate",void 0),e([g],lN.prototype,"textHidden",void 0),e([g],lN.prototype,"hasOverflow",void 0)
|
|
11507
|
+
const cN=lN.compose({baseName:"table-column-mapping-cell-view",template:aN,styles:rN})
|
|
11508
|
+
yi.getOrCreate().withPrefix("nimble").register(cN())
|
|
11509
|
+
const dN="icon-size"
|
|
11510
|
+
class hN extends(aF(rF(bF(qF)))){minPixelWidthChanged(){this.widthMode!==dN&&(this.columnInternals.minPixelWidth=this.getConfiguredMinPixelWidth())}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-mapping-cell-view",groupHeaderViewTag:"nimble-table-column-mapping-group-header-view",delegatedEvents:[],sortOperation:UO,validator:new ZF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Ev){if(!e.resolvedIcon)throw Error("Unresolved icon")
|
|
11511
|
+
return new QF(e.resolvedIcon,e.severity,e.text,e.textHidden)}if(e instanceof Dv)return new tN(e.text,e.textHidden)
|
|
11512
|
+
if(e instanceof Tv)return new nN(e.text)
|
|
11513
|
+
if(e instanceof $v)return new iN(e.text)
|
|
11514
|
+
throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===dN?(this.columnInternals.resizingDisabled=!0,this.columnInternals.hideHeaderIndicators=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32):(this.columnInternals.resizingDisabled=!1,this.columnInternals.hideHeaderIndicators=!1,this.columnInternals.pixelWidth=void 0,this.columnInternals.minPixelWidth=this.getConfiguredMinPixelWidth())}getConfiguredMinPixelWidth(){return"number"==typeof this.minPixelWidth?this.minPixelWidth:WO}}e([le({attribute:"width-mode"})],hN.prototype,"widthMode",void 0)
|
|
11515
|
+
const uN=hN.compose({baseName:"table-column-mapping",template:jF,styles:UF})
|
|
11516
|
+
yi.getOrCreate().withPrefix("nimble").register(uN())
|
|
11517
|
+
const pN=G`<span
|
|
11518
11518
|
${eg("hasOverflow")}
|
|
11519
11519
|
class="header-content"
|
|
11520
11520
|
title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
|
|
@@ -11522,13 +11522,13 @@ const uN=G`<span
|
|
|
11522
11522
|
<slot ${Pe("contentSlot")}></slot>
|
|
11523
11523
|
<slot ${Ye({property:"unitElements",filter:Ze()})} name="unit"></slot>
|
|
11524
11524
|
</span>`
|
|
11525
|
-
const
|
|
11526
|
-
yi.getOrCreate().withPrefix("nimble").register(pN())
|
|
11527
|
-
const fN=class extends EF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??SF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:MF,styles:_F})
|
|
11525
|
+
const fN=class extends pF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:fF,styles:mF})
|
|
11528
11526
|
yi.getOrCreate().withPrefix("nimble").register(fN())
|
|
11529
|
-
const mN={
|
|
11530
|
-
|
|
11531
|
-
|
|
11527
|
+
const mN=class extends IF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??$F}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:_F,styles:EF})
|
|
11528
|
+
yi.getOrCreate().withPrefix("nimble").register(mN())
|
|
11529
|
+
const gN={default:void 0,decimal:"decimal"},vN="left",bN="right"
|
|
11530
|
+
class yN{format(e){if("number"!=typeof e)return""
|
|
11531
|
+
try{return this.tryFormat(e)}catch{return""}}}class wN{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class xN extends wN{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new xN(t,e)}format(e){return this.formatter.format(e)}}class CN{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class kN{constructor(e){this.supportedScaledUnits=e
|
|
11532
11532
|
const t=e.every(((e,t,n)=>0===t||n[t-1].scaleFactor<e.scaleFactor))
|
|
11533
11533
|
if(!t)throw new Error("Supported scaled units must have unique and ordered scale factors")
|
|
11534
11534
|
const n=e.find((e=>e.isBase()))
|
|
@@ -11537,39 +11537,39 @@ this.supportedScaledUnits=e,this.baseScaledUnit=n}scaleNumber(e){const t=Math.ab
|
|
|
11537
11537
|
if(1===this.supportedScaledUnits.length||0===t||t===1/0||Number.isNaN(t))return{scaledValue:e,scaledUnit:this.baseScaledUnit}
|
|
11538
11538
|
for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
|
|
11539
11539
|
if(t/i.scaleFactor>=1)return{scaledValue:e/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
|
|
11540
|
-
return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const
|
|
11541
|
-
class
|
|
11540
|
+
return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const SN=new class extends kN{constructor(){super([new CN(1,xN.createFactory({}))])}},$N="negative"
|
|
11541
|
+
class MN extends yN{constructor(e,{unitScale:t=SN}={unitScale:SN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:MN.maximumDigits,maximumFractionDigits:MN.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:$N},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:MN.maximumDigits,notation:"scientific",signDisplay:$N}
|
|
11542
11542
|
for(const n of t.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
|
|
11543
11543
|
this.exponentialScaledUnitFormatter=t.baseScaledUnit.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=t}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e),i=Math.abs(t)
|
|
11544
|
-
return 0!==i&&(i
|
|
11545
|
-
class
|
|
11544
|
+
return 0!==i&&(i>=MN.exponentialUpperBound||i<MN.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(e):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(t)}}MN.maximumDigits=6,MN.exponentialLowerBound=995e-6,MN.exponentialUpperBound=999999.5
|
|
11545
|
+
class _N extends yN{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=SN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:SN}){super(),this.scaledUnitFormatters=new Map
|
|
11546
11546
|
const o={maximumFractionDigits:n,minimumFractionDigits:t,signDisplay:"negative"}
|
|
11547
11547
|
for(const t of i.supportedScaledUnits)this.scaledUnitFormatters.set(t.scaleFactor,t.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:o}))
|
|
11548
11548
|
this.unitScale=i,this.minimumFractionDigits=t,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e)
|
|
11549
|
-
return this.scaledUnitFormatters.get(n.scaleFactor).format(t)}}class
|
|
11549
|
+
return this.scaledUnitFormatters.get(n.scaleFactor).format(t)}}class EN extends yN{constructor(e,t){super(),this._resolvedOptions=this.resolveOptions(t),this.resolvedUnitFormat=this.resolveUnitFormat(e,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(e){const t=this.resolveOptions(e)
|
|
11550
11550
|
return this._resolvedOptions.decimalDigits===t.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===t.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===t.numberTextFormat&&this._resolvedOptions.unitScale===t.unitScale}tryFormat(e){return this.resolvedUnitFormat.format(e)}resolveUnitFormat(e,t){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:s}=t
|
|
11551
|
-
return n===
|
|
11551
|
+
return n===gN.default?new MN(e,{unitScale:s}):new _N(e,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:s}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:s})}resolveOptions(e){if(!e||e.numberTextFormat===gN.default)return{numberTextFormat:gN.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:e?.unitScale??SN}
|
|
11552
11552
|
const t="number"==typeof e.decimalDigits,n="number"==typeof e.decimalMaximumDigits
|
|
11553
11553
|
if(t&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
|
|
11554
|
-
return t||n?{numberTextFormat:
|
|
11555
|
-
const
|
|
11556
|
-
class
|
|
11557
|
-
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===
|
|
11558
|
-
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===
|
|
11554
|
+
return t||n?{numberTextFormat:gN.decimal,decimalDigits:e.decimalDigits,decimalMaximumDigits:e.decimalMaximumDigits,unitScale:e.unitScale??SN}:{numberTextFormat:gN.decimal,decimalDigits:EN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:e.unitScale??SN}}}EN.defaultDecimalDigits=2
|
|
11555
|
+
const IN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
|
|
11556
|
+
class DN extends tF{constructor(){super(IN)}validateDecimalDigits(e,t){const n=!!(e===gN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
|
|
11557
|
+
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===gN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
|
|
11558
|
+
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===gN.decimal)&&("number"==typeof t&&"number"==typeof n)
|
|
11559
11559
|
this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(e){const t=e.length>1
|
|
11560
|
-
this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class
|
|
11561
|
-
class
|
|
11562
|
-
e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}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((e=>e instanceof
|
|
11560
|
+
this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class AN extends Vt{}e([g],AN.prototype,"resolvedUnitScale",void 0)
|
|
11561
|
+
class TN extends(CF(xF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ma.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ma.unsubscribe(this.langSubscriber,this)}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:UO,validator:new DN}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
|
|
11562
|
+
e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}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((e=>e instanceof AN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.columnInternals.validator
|
|
11563
11563
|
if(e.validateDecimalDigits(this.format,this.decimalDigits),e.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),e.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),e.validateAtMostOneUnit(this.unitElements??[]),e.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
|
|
11564
11564
|
this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){const e=this.unit?.resolvedUnitScale
|
|
11565
|
-
return new
|
|
11566
|
-
const TN
|
|
11567
|
-
yi.getOrCreate().withPrefix("nimble").register(TN())
|
|
11568
|
-
const ON=class extends EF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:MF,styles:_F})
|
|
11565
|
+
return new EN(Ma.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:e})}determineCellContentAlignment(){return this.alignment===vN?$F:this.alignment===bN?MF:this.format!==gN.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?$F:MF}}e([le],TN.prototype,"format",void 0),e([le],TN.prototype,"alignment",void 0),e([le({attribute:"decimal-digits",converter:re})],TN.prototype,"decimalDigits",void 0),e([le({attribute:"decimal-maximum-digits",converter:re})],TN.prototype,"decimalMaximumDigits",void 0),e([g],TN.prototype,"unitElements",void 0),e([g],TN.prototype,"unit",void 0)
|
|
11566
|
+
const ON=TN.compose({baseName:"table-column-number-text",template:pN,styles:oF})
|
|
11569
11567
|
yi.getOrCreate().withPrefix("nimble").register(ON())
|
|
11570
|
-
|
|
11571
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11572
|
-
const NN=
|
|
11568
|
+
const RN=class extends IF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:_F,styles:EF})
|
|
11569
|
+
yi.getOrCreate().withPrefix("nimble").register(RN())
|
|
11570
|
+
class FN extends(CF(xF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:vF,delegatedEvents:[],sortOperation:jO,validator:new tF([])}}}const NN=FN.compose({baseName:"table-column-text",template:sF,styles:oF})
|
|
11571
|
+
yi.getOrCreate().withPrefix("nimble").register(NN())
|
|
11572
|
+
const PN=xe`
|
|
11573
11573
|
${Ro("grid")}
|
|
11574
11574
|
|
|
11575
11575
|
:host {
|
|
@@ -11596,7 +11596,7 @@ const NN=xe`
|
|
|
11596
11596
|
overflow: auto;
|
|
11597
11597
|
}
|
|
11598
11598
|
`
|
|
11599
|
-
const
|
|
11599
|
+
const LN=class extends so{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:so,template:(e,t)=>G`
|
|
11600
11600
|
<template class="${e=>e.orientation}">
|
|
11601
11601
|
${nt(0,t)}
|
|
11602
11602
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -11615,9 +11615,9 @@ const PN=class extends so{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
11615
11615
|
<slot name="tabpanel" ${Ye("tabpanels")}></slot>
|
|
11616
11616
|
</div>
|
|
11617
11617
|
</template>
|
|
11618
|
-
`,styles:
|
|
11619
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11620
|
-
const
|
|
11618
|
+
`,styles:PN})
|
|
11619
|
+
yi.getOrCreate().withPrefix("nimble").register(LN())
|
|
11620
|
+
const zN=xe`
|
|
11621
11621
|
${Ro("flex")}
|
|
11622
11622
|
|
|
11623
11623
|
:host {
|
|
@@ -11634,15 +11634,15 @@ const LN=xe`
|
|
|
11634
11634
|
rgba(${za}, 0.3);
|
|
11635
11635
|
margin: ${il} ${ol};
|
|
11636
11636
|
}
|
|
11637
|
-
`,
|
|
11637
|
+
`,VN=G`
|
|
11638
11638
|
<template slot="end">
|
|
11639
11639
|
<div class="separator"></div>
|
|
11640
11640
|
<slot></slot>
|
|
11641
11641
|
</template>
|
|
11642
11642
|
`
|
|
11643
|
-
const
|
|
11644
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11645
|
-
const
|
|
11643
|
+
const HN=class extends Vt{}.compose({baseName:"tabs-toolbar",template:VN,styles:zN})
|
|
11644
|
+
yi.getOrCreate().withPrefix("nimble").register(HN())
|
|
11645
|
+
const BN="outline",qN="block",UN=xe`
|
|
11646
11646
|
${Ro("inline-flex")}
|
|
11647
11647
|
${Xm}
|
|
11648
11648
|
|
|
@@ -11781,12 +11781,12 @@ const HN="outline",BN="block",qN=xe`
|
|
|
11781
11781
|
top: ${ol};
|
|
11782
11782
|
right: var(--ni-private-scrollbar-width);
|
|
11783
11783
|
}
|
|
11784
|
-
`.withBehaviors(Bd(
|
|
11784
|
+
`.withBehaviors(Bd(BN,xe`
|
|
11785
11785
|
.control {
|
|
11786
11786
|
border-color: rgba(${za}, 0.3);
|
|
11787
11787
|
background-color: transparent;
|
|
11788
11788
|
}
|
|
11789
|
-
`),Bd(
|
|
11789
|
+
`),Bd(qN,xe`
|
|
11790
11790
|
.control {
|
|
11791
11791
|
background-color: rgba(${za}, 0.1);
|
|
11792
11792
|
}
|
|
@@ -11804,8 +11804,8 @@ const HN="outline",BN="block",qN=xe`
|
|
|
11804
11804
|
border-bottom-color: ${Va};
|
|
11805
11805
|
}
|
|
11806
11806
|
`))
|
|
11807
|
-
class
|
|
11808
|
-
const jN
|
|
11807
|
+
class jN extends co{constructor(){super(...arguments),this.appearance=BN,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(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([le],jN.prototype,"appearance",void 0),e([le({attribute:"error-text"})],jN.prototype,"errorText",void 0),e([le({attribute:"error-visible",mode:"boolean"})],jN.prototype,"errorVisible",void 0),e([g],jN.prototype,"scrollbarWidth",void 0)
|
|
11808
|
+
const WN=jN.compose({baseName:"text-area",baseClass:co,template:()=>G`
|
|
11809
11809
|
<label
|
|
11810
11810
|
part="label"
|
|
11811
11811
|
for="control"
|
|
@@ -11862,9 +11862,9 @@ const jN=UN.compose({baseName:"text-area",baseClass:co,template:()=>G`
|
|
|
11862
11862
|
></${em}>
|
|
11863
11863
|
${qm}
|
|
11864
11864
|
</div>
|
|
11865
|
-
`,styles:
|
|
11866
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11867
|
-
const
|
|
11865
|
+
`,styles:UN,shadowOptions:{delegatesFocus:!0}})
|
|
11866
|
+
yi.getOrCreate().withPrefix("nimble").register(WN())
|
|
11867
|
+
const GN="underline",ZN="outline",KN="block",XN="frameless",YN=xe`
|
|
11868
11868
|
${Ro("inline-block")}
|
|
11869
11869
|
${Xm}
|
|
11870
11870
|
|
|
@@ -12039,12 +12039,12 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
12039
12039
|
slot[name='actions']::slotted(*) {
|
|
12040
12040
|
${tl.cssCustomProperty}: 24px;
|
|
12041
12041
|
}
|
|
12042
|
-
`.withBehaviors(Bd(
|
|
12042
|
+
`.withBehaviors(Bd(GN,xe`
|
|
12043
12043
|
.root {
|
|
12044
12044
|
border-bottom-width: ${al};
|
|
12045
12045
|
padding-bottom: 0;
|
|
12046
12046
|
}
|
|
12047
|
-
`),Bd(
|
|
12047
|
+
`),Bd(KN,xe`
|
|
12048
12048
|
.root {
|
|
12049
12049
|
background-color: rgba(${za}, 0.1);
|
|
12050
12050
|
}
|
|
@@ -12072,12 +12072,12 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
12072
12072
|
:host([disabled]) .root {
|
|
12073
12073
|
background-color: rgba(${za}, 0.07);
|
|
12074
12074
|
}
|
|
12075
|
-
`),Bd(
|
|
12075
|
+
`),Bd(ZN,xe`
|
|
12076
12076
|
.root {
|
|
12077
12077
|
border-width: ${al};
|
|
12078
12078
|
padding: 0;
|
|
12079
12079
|
}
|
|
12080
|
-
`),Bd(
|
|
12080
|
+
`),Bd(XN,xe`
|
|
12081
12081
|
.control {
|
|
12082
12082
|
padding-left: ${al};
|
|
12083
12083
|
padding-right: ${al};
|
|
@@ -12095,8 +12095,8 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
12095
12095
|
filter: invert(100%);
|
|
12096
12096
|
}
|
|
12097
12097
|
`))
|
|
12098
|
-
class
|
|
12099
|
-
const JN
|
|
12098
|
+
class JN extends zi{constructor(){super(...arguments),this.appearance=GN,this.errorVisible=!1,this.fullBleed=!1}}e([le],JN.prototype,"appearance",void 0),e([le({attribute:"error-text"})],JN.prototype,"errorText",void 0),e([le({attribute:"error-visible",mode:"boolean"})],JN.prototype,"errorVisible",void 0),e([le({attribute:"full-bleed",mode:"boolean"})],JN.prototype,"fullBleed",void 0)
|
|
12099
|
+
const QN=JN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
12100
12100
|
<template
|
|
12101
12101
|
class="
|
|
12102
12102
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -12156,7 +12156,7 @@ const JN=YN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
|
12156
12156
|
${tt(0,t)}
|
|
12157
12157
|
</div>
|
|
12158
12158
|
</template>
|
|
12159
|
-
`,styles:
|
|
12159
|
+
`,styles:YN,shadowOptions:{delegatesFocus:!0},end:G`
|
|
12160
12160
|
<${em}
|
|
12161
12161
|
severity="error"
|
|
12162
12162
|
class="error-icon"
|
|
@@ -12166,8 +12166,8 @@ const JN=YN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
|
12166
12166
|
</span>
|
|
12167
12167
|
${qm}
|
|
12168
12168
|
`})
|
|
12169
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12170
|
-
const
|
|
12169
|
+
yi.getOrCreate().withPrefix("nimble").register(QN())
|
|
12170
|
+
const eP=xe`
|
|
12171
12171
|
${Ro("inline-flex")}
|
|
12172
12172
|
|
|
12173
12173
|
:host {
|
|
@@ -12251,7 +12251,7 @@ const QN=xe`
|
|
|
12251
12251
|
.status-icon {
|
|
12252
12252
|
opacity: 0.6;
|
|
12253
12253
|
}
|
|
12254
|
-
`)),
|
|
12254
|
+
`)),tP=G`
|
|
12255
12255
|
${He((e=>e.tooltipVisible),G`
|
|
12256
12256
|
<${uh}
|
|
12257
12257
|
class="anchored-region"
|
|
@@ -12284,11 +12284,11 @@ const QN=xe`
|
|
|
12284
12284
|
</${uh}>
|
|
12285
12285
|
`)}
|
|
12286
12286
|
`
|
|
12287
|
-
class
|
|
12288
|
-
const nP
|
|
12289
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12290
|
-
const
|
|
12291
|
-
class
|
|
12287
|
+
class nP extends Eo{constructor(){super(...arguments),this.iconVisible=!1}}e([le],nP.prototype,"severity",void 0),e([le({attribute:"icon-visible",mode:"boolean"})],nP.prototype,"iconVisible",void 0)
|
|
12288
|
+
const iP=nP.compose({baseName:"tooltip",baseClass:Eo,template:tP,styles:eP})
|
|
12289
|
+
yi.getOrCreate().withPrefix("nimble").register(iP())
|
|
12290
|
+
const oP="group-selected",sP="all",rP="leaves-only",aP="none"
|
|
12291
|
+
class lP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const cP=xe`
|
|
12292
12292
|
${Ro("block")}
|
|
12293
12293
|
|
|
12294
12294
|
:host {
|
|
@@ -12309,7 +12309,7 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12309
12309
|
}
|
|
12310
12310
|
|
|
12311
12311
|
${""}
|
|
12312
|
-
:host([${
|
|
12312
|
+
:host([${oP}])::after {
|
|
12313
12313
|
background: ${Ua};
|
|
12314
12314
|
border-radius: 0px;
|
|
12315
12315
|
content: '';
|
|
@@ -12330,7 +12330,7 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12330
12330
|
background: ${Pa};
|
|
12331
12331
|
}
|
|
12332
12332
|
|
|
12333
|
-
:host([${
|
|
12333
|
+
:host([${oP}]) .positioning-region:hover {
|
|
12334
12334
|
background: ${Na};
|
|
12335
12335
|
}
|
|
12336
12336
|
|
|
@@ -12436,7 +12436,7 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12436
12436
|
display: block;
|
|
12437
12437
|
}
|
|
12438
12438
|
`.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
|
|
12439
|
-
t&&_a.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new
|
|
12439
|
+
t&&_a.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new lP(this.ltr,this.rtl,e),n=_a.getValueFor(e)
|
|
12440
12440
|
_a.subscribe(t),t.attach(n),this.cache.set(e,t)}}(xe`
|
|
12441
12441
|
.expand-collapse-button {
|
|
12442
12442
|
left: var(
|
|
@@ -12468,8 +12468,8 @@ _a.subscribe(t),t.attach(n),this.cache.set(e,t)}}(xe`
|
|
|
12468
12468
|
transform: rotate(135deg);
|
|
12469
12469
|
}
|
|
12470
12470
|
`))
|
|
12471
|
-
class
|
|
12472
|
-
const dP
|
|
12471
|
+
class dP extends Do{constructor(){super(...arguments),this.groupSelected=!1}}e([le({attribute:"group-selected",mode:"boolean"})],dP.prototype,"groupSelected",void 0)
|
|
12472
|
+
const hP=dP.compose({baseName:"tree-item",baseClass:Do,template:(e,t)=>G`
|
|
12473
12473
|
<template
|
|
12474
12474
|
role="treeitem"
|
|
12475
12475
|
slot="${e=>e.isNestedItem()?"item":void 0}"
|
|
@@ -12509,9 +12509,9 @@ const dP=cP.compose({baseName:"tree-item",baseClass:Do,template:(e,t)=>G`
|
|
|
12509
12509
|
</div>
|
|
12510
12510
|
`)}
|
|
12511
12511
|
</template>
|
|
12512
|
-
`,styles:
|
|
12513
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12514
|
-
const
|
|
12512
|
+
`,styles:cP,expandCollapseGlyph:Eh.data})
|
|
12513
|
+
yi.getOrCreate().withPrefix("nimble").register(hP())
|
|
12514
|
+
const uP=xe`
|
|
12515
12515
|
${Ro("flex")}
|
|
12516
12516
|
|
|
12517
12517
|
:host {
|
|
@@ -12523,7 +12523,7 @@ const hP=xe`
|
|
|
12523
12523
|
:host(${Fo}) {
|
|
12524
12524
|
outline: none;
|
|
12525
12525
|
}
|
|
12526
|
-
`,
|
|
12526
|
+
`,pP=G`
|
|
12527
12527
|
<template
|
|
12528
12528
|
role="tree"
|
|
12529
12529
|
${Pe("treeView")}
|
|
@@ -12537,248 +12537,248 @@ const hP=xe`
|
|
|
12537
12537
|
<slot ${Ye("slottedTreeItems")}></slot>
|
|
12538
12538
|
</template>
|
|
12539
12539
|
`
|
|
12540
|
-
class
|
|
12540
|
+
class fP extends Ao{constructor(){super(...arguments),this.selectionMode=sP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
|
|
12541
12541
|
if(!(e.target instanceof Element&&Io(e.target)))return!0
|
|
12542
12542
|
const t=e.target
|
|
12543
|
-
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case
|
|
12544
|
-
case
|
|
12545
|
-
case
|
|
12546
|
-
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof
|
|
12543
|
+
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case sP:return!0
|
|
12544
|
+
case aP:return!1
|
|
12545
|
+
case rP:return!this.itemHasChildren(e)
|
|
12546
|
+
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof dP&&(e.groupSelected=!1)
|
|
12547
12547
|
for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
|
|
12548
|
-
e instanceof
|
|
12549
|
-
const fP
|
|
12550
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12551
|
-
const
|
|
12552
|
-
class
|
|
12553
|
-
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new
|
|
12548
|
+
e instanceof dP&&(e.groupSelected=!0)}}}e([le({attribute:"selection-mode"})],fP.prototype,"selectionMode",void 0),e([g],fP.prototype,"selectedItems",void 0)
|
|
12549
|
+
const mP=fP.compose({baseName:"tree-view",baseClass:Ao,template:pP,styles:uP})
|
|
12550
|
+
yi.getOrCreate().withPrefix("nimble").register(mP())
|
|
12551
|
+
const gP=G`<template slot="unit"></template>`
|
|
12552
|
+
class vP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class bP extends wN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
|
|
12553
|
+
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new bP(t,e)}format(e){const t=this.formatter.format(e)
|
|
12554
12554
|
if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
|
|
12555
12555
|
return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
|
|
12556
|
-
return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const
|
|
12557
|
-
const
|
|
12558
|
-
const
|
|
12556
|
+
return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const yP=new Map([["en",new vP("byte","bytes","B")],["fr",new vP("octet","octets","o")],["de",new vP("Byte","Byte","B")],["ja",new vP("バイト","バイト","B")],["zh",new vP("字节","字节","B")]]),wP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
|
|
12557
|
+
const xP=new class extends kN{constructor(){super(wP.map((([e,t])=>new CN(e,bP.createFactory({unitTranslations:yP,scaledPrefixText:t})))))}},CP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
|
|
12558
|
+
const kP=new class extends kN{constructor(){super(CP.map((([e,t,n])=>new CN(e,xN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}},SP=xe`
|
|
12559
12559
|
${Ro("none")}
|
|
12560
12560
|
`
|
|
12561
|
-
class
|
|
12562
|
-
const
|
|
12563
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12564
|
-
const
|
|
12565
|
-
const
|
|
12566
|
-
const
|
|
12567
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12568
|
-
var
|
|
12569
|
-
function
|
|
12570
|
-
i[e]=[]}return new
|
|
12571
|
-
break}return null!=n&&e.push({name:t,value:n}),e}
|
|
12561
|
+
class $P extends AN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=kP}binaryChanged(){this.resolvedUnitScale=this.binary?xP:kP}}e([le({mode:"boolean"})],$P.prototype,"binary",void 0)
|
|
12562
|
+
const MP=$P.compose({baseName:"unit-byte",template:gP,styles:SP})
|
|
12563
|
+
yi.getOrCreate().withPrefix("nimble").register(MP())
|
|
12564
|
+
const _P=[[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"]],EP=new Map([["en",new vP("volt","volts","V")],["fr",new vP("volt","volts","V")],["de",new vP("Volt","Volt","V")],["ja",new vP("ボルト","ボルト","V")],["zh",new vP("伏特","伏特","V")]])
|
|
12565
|
+
const IP=new class extends kN{constructor(){super(_P.map((([e,t])=>new CN(e,bP.createFactory({unitTranslations:EP,scaledPrefixText:t})))))}}
|
|
12566
|
+
const DP=class extends AN{constructor(){super(),this.resolvedUnitScale=IP}}.compose({baseName:"unit-volt",template:gP,styles:SP})
|
|
12567
|
+
yi.getOrCreate().withPrefix("nimble").register(DP())
|
|
12568
|
+
var AP={value:()=>{}}
|
|
12569
|
+
function TP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
|
|
12570
|
+
i[e]=[]}return new OP(i)}function OP(e){this._=e}function RP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function FP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=AP,e=e.slice(0,i).concat(e.slice(i+1))
|
|
12571
|
+
break}return null!=n&&e.push({name:t,value:n}),e}OP.prototype=TP.prototype={constructor:OP,on:function(e,t){var n,i,o=this._,s=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
12572
12572
|
if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12573
12573
|
return{type:e,name:t}}))),r=-1,a=s.length
|
|
12574
12574
|
if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
|
|
12575
|
-
for(;++r<a;)if(n=(e=s[r]).type)o[n]=
|
|
12576
|
-
else if(null==t)for(n in o)o[n]=
|
|
12577
|
-
return this}for(;++r<a;)if((n=(e=s[r]).type)&&(n=
|
|
12575
|
+
for(;++r<a;)if(n=(e=s[r]).type)o[n]=FP(o[n],e.name,t)
|
|
12576
|
+
else if(null==t)for(n in o)o[n]=FP(o[n],e.name,null)
|
|
12577
|
+
return this}for(;++r<a;)if((n=(e=s[r]).type)&&(n=RP(o[n],e.name)))return n},copy:function(){var e={},t=this._
|
|
12578
12578
|
for(var n in t)e[n]=t[n].slice()
|
|
12579
|
-
return new
|
|
12579
|
+
return new OP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
|
|
12580
12580
|
if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12581
12581
|
for(s=0,n=(i=this._[e]).length;s<n;++s)i[s].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12582
12582
|
for(var i=this._[e],o=0,s=i.length;o<s;++o)i[o].value.apply(t,n)}}
|
|
12583
|
-
var
|
|
12584
|
-
function
|
|
12585
|
-
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),
|
|
12586
|
-
return n===
|
|
12587
|
-
return(t.local?zP
|
|
12588
|
-
var t}}function
|
|
12589
|
-
function
|
|
12590
|
-
function
|
|
12591
|
-
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function
|
|
12583
|
+
var NP="http://www.w3.org/1999/xhtml",PP={svg:"http://www.w3.org/2000/svg",xhtml:NP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
12584
|
+
function LP(e){var t=e+="",n=t.indexOf(":")
|
|
12585
|
+
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),PP.hasOwnProperty(t)?{space:PP[t],local:e}:e}function zP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
|
|
12586
|
+
return n===NP&&t.documentElement.namespaceURI===NP?t.createElement(e):t.createElementNS(n,e)}}function VP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function HP(e){var t=LP(e)
|
|
12587
|
+
return(t.local?VP:zP)(t)}function BP(){}function qP(e){return null==e?BP:function(){return this.querySelector(e)}}function UP(){return[]}function jP(e){return null==e?UP:function(){return this.querySelectorAll(e)}}function WP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
|
|
12588
|
+
var t}}function GP(e){return function(){return this.matches(e)}}function ZP(e){return function(t){return t.matches(e)}}var KP=Array.prototype.find
|
|
12589
|
+
function XP(){return this.firstElementChild}var YP=Array.prototype.filter
|
|
12590
|
+
function JP(){return Array.from(this.children)}function QP(e){return new Array(e.length)}function eL(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function tL(e,t,n,i,o,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],i[a]=r):n[a]=new eL(e,s[a])
|
|
12591
|
+
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function nL(e,t,n,i,o,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
|
|
12592
12592
|
for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
12593
|
-
for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new
|
|
12594
|
-
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
12595
|
-
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function
|
|
12596
|
-
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function
|
|
12597
|
-
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function
|
|
12598
|
-
null==n?delete this[e]:this[e]=n}}function
|
|
12599
|
-
this.textContent=null==t?"":t}}function
|
|
12600
|
-
this.innerHTML=null==t?"":t}}function
|
|
12601
|
-
e&&e.removeChild(this)}function
|
|
12602
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
12603
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
12604
|
-
if(t){for(var n,i=0,o=-1,s=t.length;i<s;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function
|
|
12593
|
+
for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new eL(e,s[a])
|
|
12594
|
+
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function iL(e){return e.__data__}function oL(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function sL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function rL(e){return function(){this.removeAttribute(e)}}function aL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lL(e,t){return function(){this.setAttribute(e,t)}}function cL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function dL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12595
|
+
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function hL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12596
|
+
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function uL(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function pL(e){return function(){this.style.removeProperty(e)}}function fL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function mL(e,t,n){return function(){var i=t.apply(this,arguments)
|
|
12597
|
+
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function gL(e,t){return e.style.getPropertyValue(t)||uL(e).getComputedStyle(e,null).getPropertyValue(t)}function vL(e){return function(){delete this[e]}}function bL(e,t){return function(){this[e]=t}}function yL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12598
|
+
null==n?delete this[e]:this[e]=n}}function wL(e){return e.trim().split(/^|\s+/)}function xL(e){return e.classList||new CL(e)}function CL(e){this._node=e,this._names=wL(e.getAttribute("class")||"")}function kL(e,t){for(var n=xL(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function SL(e,t){for(var n=xL(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function $L(e){return function(){kL(this,e)}}function ML(e){return function(){SL(this,e)}}function _L(e,t){return function(){(t.apply(this,arguments)?kL:SL)(this,e)}}function EL(){this.textContent=""}function IL(e){return function(){this.textContent=e}}function DL(e){return function(){var t=e.apply(this,arguments)
|
|
12599
|
+
this.textContent=null==t?"":t}}function AL(){this.innerHTML=""}function TL(e){return function(){this.innerHTML=e}}function OL(e){return function(){var t=e.apply(this,arguments)
|
|
12600
|
+
this.innerHTML=null==t?"":t}}function RL(){this.nextSibling&&this.parentNode.appendChild(this)}function FL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function NL(){return null}function PL(){var e=this.parentNode
|
|
12601
|
+
e&&e.removeChild(this)}function LL(){var e=this.cloneNode(!1),t=this.parentNode
|
|
12602
|
+
return t?t.insertBefore(e,this.nextSibling):e}function zL(){var e=this.cloneNode(!0),t=this.parentNode
|
|
12603
|
+
return t?t.insertBefore(e,this.nextSibling):e}function VL(e){return function(){var t=this.__on
|
|
12604
|
+
if(t){for(var n,i=0,o=-1,s=t.length;i<s;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function HL(e,t,n){return function(){var i,o=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|
12605
12605
|
if(o)for(var r=0,a=o.length;r<a;++r)if((i=o[r]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=t)
|
|
12606
|
-
this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},o?o.push(i):this.__on=[i]}}function
|
|
12607
|
-
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function
|
|
12606
|
+
this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},o?o.push(i):this.__on=[i]}}function BL(e,t,n){var i=uL(e),o=i.CustomEvent
|
|
12607
|
+
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function qL(e,t){return function(){return BL(this,e,t)}}function UL(e,t){return function(){return BL(this,e,t.apply(this,arguments))}}eL.prototype={constructor:eL,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},CL.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
|
|
12608
12608
|
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|
12609
|
-
var
|
|
12610
|
-
function
|
|
12609
|
+
var jL=[null]
|
|
12610
|
+
function WL(e,t){this._groups=e,this._parents=t}function GL(){return new WL([[document.documentElement]],jL)}function ZL(e){return"string"==typeof e?new WL([[document.querySelector(e)]],[document.documentElement]):new WL([[e]],jL)}function KL(e,t){if(e=function(e){let t
|
|
12611
12611
|
for(;t=e.sourceEvent;)e=t
|
|
12612
12612
|
return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
|
|
12613
12613
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
12614
12614
|
return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
|
|
12615
|
-
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}
|
|
12615
|
+
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}WL.prototype=GL.prototype={constructor:WL,select:function(e){"function"!=typeof e&&(e=qP(e))
|
|
12616
12616
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
|
|
12617
|
-
return new
|
|
12617
|
+
return new WL(i,this._parents)},selectAll:function(e){e="function"==typeof e?WP(e):jP(e)
|
|
12618
12618
|
for(var t=this._groups,n=t.length,i=[],o=[],s=0;s<n;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(e.call(r,r.__data__,c,a)),o.push(r))
|
|
12619
|
-
return new
|
|
12619
|
+
return new WL(i,o)},selectChild:function(e){return this.select(null==e?XP:function(e){return function(){return KP.call(this.children,e)}}("function"==typeof e?e:ZP(e)))},selectChildren:function(e){return this.selectAll(null==e?JP:function(e){return function(){return YP.call(this.children,e)}}("function"==typeof e?e:ZP(e)))},filter:function(e){"function"!=typeof e&&(e=GP(e))
|
|
12620
12620
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r=t[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
12621
|
-
return new
|
|
12622
|
-
var n,i=t?tL
|
|
12621
|
+
return new WL(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,iL)
|
|
12622
|
+
var n,i=t?nL:tL,o=this._parents,s=this._groups
|
|
12623
12623
|
"function"!=typeof e&&(n=e,e=function(){return n})
|
|
12624
|
-
for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=
|
|
12624
|
+
for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=oL(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
|
|
12625
12625
|
i(h,u,g,v,c[d]=new Array(p),f,t)
|
|
12626
|
-
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
|
|
12626
|
+
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 WL(a,o))._enter=l,a._exit=c,a},enter:function(){return new WL(this._enter||this._groups.map(QP),this._parents)},exit:function(){return new WL(this._exit||this._groups.map(QP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,s=this.exit()
|
|
12627
12627
|
return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?s.remove():n(s),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,s=i.length,r=Math.min(o,s),a=new Array(o),l=0;l<r;++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)
|
|
12628
12628
|
for(;l<o;++l)a[l]=n[l]
|
|
12629
|
-
return new
|
|
12630
|
-
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=
|
|
12629
|
+
return new WL(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
|
|
12630
|
+
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=sL)
|
|
12631
12631
|
for(var n=this._groups,i=n.length,o=new Array(i),s=0;s<i;++s){for(var r,a=n[s],l=a.length,c=o[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
|
|
12632
|
-
c.sort(t)}return new
|
|
12632
|
+
c.sort(t)}return new WL(o,this._parents).order()},call:function(){var e=arguments[0]
|
|
12633
12633
|
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,s=i.length;o<s;++o){var r=i[o]
|
|
12634
12634
|
if(r)return r}return null},size:function(){let e=0
|
|
12635
12635
|
for(const t of this)++e
|
|
12636
12636
|
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,s=t[n],r=0,a=s.length;r<a;++r)(o=s[r])&&e.call(o,o.__data__,r,s)
|
|
12637
|
-
return this},attr:function(e,t){var n=
|
|
12637
|
+
return this},attr:function(e,t){var n=LP(e)
|
|
12638
12638
|
if(arguments.length<2){var i=this.node()
|
|
12639
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?rL:
|
|
12640
|
-
if(arguments.length<2){for(var i=
|
|
12641
|
-
return!0}return this.each(("function"==typeof t?
|
|
12642
|
-
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:
|
|
12643
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
12639
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?aL:rL:"function"==typeof t?n.local?hL:dL:n.local?cL:lL)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?pL:"function"==typeof t?mL:fL)(e,t,null==n?"":n)):gL(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?vL:"function"==typeof t?yL:bL)(e,t)):this.node()[e]},classed:function(e,t){var n=wL(e+"")
|
|
12640
|
+
if(arguments.length<2){for(var i=xL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
|
|
12641
|
+
return!0}return this.each(("function"==typeof t?_L:t?$L:ML)(n,t))},text:function(e){return arguments.length?this.each(null==e?EL:("function"==typeof e?DL:IL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?AL:("function"==typeof e?OL:TL)(e)):this.node().innerHTML},raise:function(){return this.each(RL)},lower:function(){return this.each(FL)},append:function(e){var t="function"==typeof e?e:HP(e)
|
|
12642
|
+
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:HP(e),i=null==t?NL:"function"==typeof t?t:qP(t)
|
|
12643
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(PL)},clone:function(e){return this.select(e?zL:LL)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,s=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
12644
12644
|
return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),r=s.length
|
|
12645
|
-
if(!(arguments.length<2)){for(a=t?VL
|
|
12645
|
+
if(!(arguments.length<2)){for(a=t?HL:VL,i=0;i<r;++i)this.each(a(s[i],t,n))
|
|
12646
12646
|
return this}var a=this.node().__on
|
|
12647
|
-
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?qL
|
|
12648
|
-
const
|
|
12649
|
-
function
|
|
12647
|
+
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?UL:qL)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
|
|
12648
|
+
const XL={capture:!0,passive:!1}
|
|
12649
|
+
function YL(e){e.preventDefault(),e.stopImmediatePropagation()}function JL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QL(e,t){var n=Object.create(e.prototype)
|
|
12650
12650
|
for(var i in t)n[i]=t[i]
|
|
12651
|
-
return n}function
|
|
12652
|
-
function
|
|
12653
|
-
return e=(e+"").trim().toLowerCase(),(t=
|
|
12654
|
-
var o}function
|
|
12655
|
-
return`${1===e?"rgb(":"rgba("}${
|
|
12656
|
-
if(e instanceof
|
|
12657
|
-
if(e instanceof
|
|
12651
|
+
return n}function ez(){}var tz=.7,nz=1/tz,iz="\\s*([+-]?\\d+)\\s*",oz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rz=/^#([0-9a-f]{3,8})$/,az=new RegExp(`^rgb\\(${iz},${iz},${iz}\\)$`),lz=new RegExp(`^rgb\\(${sz},${sz},${sz}\\)$`),cz=new RegExp(`^rgba\\(${iz},${iz},${iz},${oz}\\)$`),dz=new RegExp(`^rgba\\(${sz},${sz},${sz},${oz}\\)$`),hz=new RegExp(`^hsl\\(${oz},${sz},${sz}\\)$`),uz=new RegExp(`^hsla\\(${oz},${sz},${sz},${oz}\\)$`),pz={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}
|
|
12652
|
+
function fz(){return this.rgb().formatHex()}function mz(){return this.rgb().formatRgb()}function gz(e){var t,n
|
|
12653
|
+
return e=(e+"").trim().toLowerCase(),(t=rz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vz(t):3===n?new wz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?bz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?bz(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=az.exec(e))?new wz(t[1],t[2],t[3],1):(t=lz.exec(e))?new wz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cz.exec(e))?bz(t[1],t[2],t[3],t[4]):(t=dz.exec(e))?bz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=hz.exec(e))?Mz(t[1],t[2]/100,t[3]/100,1):(t=uz.exec(e))?Mz(t[1],t[2]/100,t[3]/100,t[4]):pz.hasOwnProperty(e)?vz(pz[e]):"transparent"===e?new wz(NaN,NaN,NaN,0):null}function vz(e){return new wz(e>>16&255,e>>8&255,255&e,1)}function bz(e,t,n,i){return i<=0&&(e=t=n=NaN),new wz(e,t,n,i)}function yz(e,t,n,i){return 1===arguments.length?((o=e)instanceof ez||(o=gz(o)),o?new wz((o=o.rgb()).r,o.g,o.b,o.opacity):new wz):new wz(e,t,n,null==i?1:i)
|
|
12654
|
+
var o}function wz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function xz(){return`#${$z(this.r)}${$z(this.g)}${$z(this.b)}`}function Cz(){const e=kz(this.opacity)
|
|
12655
|
+
return`${1===e?"rgb(":"rgba("}${Sz(this.r)}, ${Sz(this.g)}, ${Sz(this.b)}${1===e?")":`, ${e})`}`}function kz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $z(e){return((e=Sz(e))<16?"0":"")+e.toString(16)}function Mz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ez(e,t,n,i)}function _z(e){if(e instanceof Ez)return new Ez(e.h,e.s,e.l,e.opacity)
|
|
12656
|
+
if(e instanceof ez||(e=gz(e)),!e)return new Ez
|
|
12657
|
+
if(e instanceof Ez)return e
|
|
12658
12658
|
var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2
|
|
12659
|
-
return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new
|
|
12660
|
-
return new
|
|
12661
|
-
return`${1===e?"hsl(":"hsla("}${
|
|
12662
|
-
var
|
|
12663
|
-
function
|
|
12664
|
-
return n?function(e,t){return function(n){return e+n*t}}(e,n):
|
|
12665
|
-
function i(e,t){var i=n((e=
|
|
12659
|
+
return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Ez(r,a,l,e.opacity)}function Ez(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Iz(e){return(e=(e||0)%360)<0?e+360:e}function Dz(e){return Math.max(0,Math.min(1,e||0))}function Az(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}JL(ez,gz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fz,formatHex:fz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _z(this).formatHsl()},formatRgb:mz,toString:mz}),JL(wz,yz,QL(ez,{brighter(e){return e=null==e?nz:Math.pow(nz,e),new wz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?tz:Math.pow(tz,e),new wz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wz(Sz(this.r),Sz(this.g),Sz(this.b),kz(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:xz,formatHex:xz,formatHex8:function(){return`#${$z(this.r)}${$z(this.g)}${$z(this.b)}${$z(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Cz,toString:Cz})),JL(Ez,(function(e,t,n,i){return 1===arguments.length?_z(e):new Ez(e,t,n,null==i?1:i)}),QL(ez,{brighter(e){return e=null==e?nz:Math.pow(nz,e),new Ez(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?tz:Math.pow(tz,e),new Ez(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
|
|
12660
|
+
return new wz(Az(e>=240?e-240:e+120,o,i),Az(e,o,i),Az(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Ez(Iz(this.h),Dz(this.s),Dz(this.l),kz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kz(this.opacity)
|
|
12661
|
+
return`${1===e?"hsl(":"hsla("}${Iz(this.h)}, ${100*Dz(this.s)}%, ${100*Dz(this.l)}%${1===e?")":`, ${e})`}`}}))
|
|
12662
|
+
var Tz=e=>()=>e
|
|
12663
|
+
function Oz(e){return 1==(e=+e)?Rz:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):Tz(isNaN(t)?n:t)}}function Rz(e,t){var n=t-e
|
|
12664
|
+
return n?function(e,t){return function(n){return e+n*t}}(e,n):Tz(isNaN(e)?t:e)}var Fz=function e(t){var n=Oz(t)
|
|
12665
|
+
function i(e,t){var i=n((e=yz(e)).r,(t=yz(t)).r),o=n(e.g,t.g),s=n(e.b,t.b),r=Rz(e.opacity,t.opacity)
|
|
12666
12666
|
return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return i.gamma=e,i}(1)
|
|
12667
|
-
function
|
|
12667
|
+
function Nz(e,t){t||(t=[])
|
|
12668
12668
|
var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
|
|
12669
12669
|
return function(s){for(n=0;n<i;++n)o[n]=e[n]*(1-s)+t[n]*s
|
|
12670
|
-
return o}}function
|
|
12671
|
-
for(n=0;n<o;++n)s[n]=
|
|
12670
|
+
return o}}function Pz(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,s=new Array(o),r=new Array(i)
|
|
12671
|
+
for(n=0;n<o;++n)s[n]=Uz(e[n],t[n])
|
|
12672
12672
|
for(;n<i;++n)r[n]=t[n]
|
|
12673
12673
|
return function(e){for(n=0;n<o;++n)r[n]=s[n](e)
|
|
12674
|
-
return r}}function
|
|
12675
|
-
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function
|
|
12676
|
-
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=
|
|
12674
|
+
return r}}function Lz(e,t){var n=new Date
|
|
12675
|
+
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function zz(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vz(e,t){var n,i={},o={}
|
|
12676
|
+
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=Uz(e[n],t[n]):o[n]=t[n]
|
|
12677
12677
|
return function(e){for(n in i)o[n]=i[n](e)
|
|
12678
|
-
return o}}var
|
|
12679
|
-
function
|
|
12680
|
-
for(e+="",t+="";(n=
|
|
12678
|
+
return o}}var Hz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bz=new RegExp(Hz.source,"g")
|
|
12679
|
+
function qz(e,t){var n,i,o,s=Hz.lastIndex=Bz.lastIndex=0,r=-1,a=[],l=[]
|
|
12680
|
+
for(e+="",t+="";(n=Hz.exec(e))&&(i=Bz.exec(t));)(o=i.index)>s&&(o=t.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:zz(n,i)})),s=Bz.lastIndex
|
|
12681
12681
|
return s<t.length&&(o=t.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
|
|
12682
|
-
return a.join("")})}function
|
|
12683
|
-
return null==t||"boolean"===o?
|
|
12684
|
-
function
|
|
12685
|
-
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*
|
|
12682
|
+
return a.join("")})}function Uz(e,t){var n,i,o=typeof t
|
|
12683
|
+
return null==t||"boolean"===o?Tz(t):("number"===o?zz:"string"===o?(n=gz(t))?(t=n,Fz):qz:t instanceof gz?Fz:t instanceof Date?Lz:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?Pz:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Vz:zz:Nz))(e,t)}function jz(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Wz,Gz=180/Math.PI,Zz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
12684
|
+
function Kz(e,t,n,i,o,s){var r,a,l
|
|
12685
|
+
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Gz,skewX:Math.atan(l)*Gz,scaleX:r,scaleY:a}}function Xz(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
12686
12686
|
return s=e(s),r=e(r),function(e,i,o,s,r,a){if(e!==o||i!==s){var l=r.push("translate(",null,t,null,n)
|
|
12687
|
-
a.push({i:l-4,x:
|
|
12688
|
-
r.push({i:a-4,x:
|
|
12689
|
-
return a.join("")}}}var Xz
|
|
12690
|
-
return t.isIdentity?
|
|
12691
|
-
function
|
|
12687
|
+
a.push({i:l-4,x:zz(e,o)},{i:l-2,x:zz(i,s)})}else(o||s)&&r.push("translate("+o+t+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,n,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:zz(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(s.rotate,r.rotate,a,l),function(e,t,n,s){e!==t?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:zz(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(s.skewX,r.skewX,a,l),function(e,t,n,i,s,r){if(e!==n||t!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
12688
|
+
r.push({i:a-4,x:zz(e,n)},{i:a-2,x:zz(t,i)})}else 1===n&&1===i||s.push(o(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
|
|
12689
|
+
return a.join("")}}}var Yz=Xz((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
|
|
12690
|
+
return t.isIdentity?Zz:Kz(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Jz=Xz((function(e){return null==e?Zz:(Wz||(Wz=document.createElementNS("http://www.w3.org/2000/svg","g")),Wz.setAttribute("transform",e),(e=Wz.transform.baseVal.consolidate())?Kz((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Zz)}),", ",")",")")
|
|
12691
|
+
function Qz(e){return((e=Math.exp(e))+1/e)/2}var eV,tV,nV=function e(t,n,i){function o(e,o){var s,r,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
|
|
12692
12692
|
if(m<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*r)]}
|
|
12693
12693
|
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)
|
|
12694
|
-
r=(w-y)/t,s=function(e){var i,o=e*r,s=
|
|
12695
|
-
return[a+d*p,l+d*f,c*s/
|
|
12696
|
-
return e(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
12697
|
-
function
|
|
12698
|
-
return i.restart(e,t,n),i}function
|
|
12699
|
-
try{!function(){
|
|
12700
|
-
for(var e,t=
|
|
12701
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:
|
|
12702
|
-
|
|
12703
|
-
t>
|
|
12704
|
-
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}
|
|
12705
|
-
n=(null==n?
|
|
12706
|
-
var
|
|
12707
|
-
function
|
|
12694
|
+
r=(w-y)/t,s=function(e){var i,o=e*r,s=Qz(y),d=c/(n*g)*(s*(i=t*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y))
|
|
12695
|
+
return[a+d*p,l+d*f,c*s/Qz(t*o+y)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
|
|
12696
|
+
return e(n,i,i*i)},o}(Math.SQRT2,2,4),iV=0,oV=0,sV=0,rV=1e3,aV=0,lV=0,cV=0,dV="object"==typeof performance&&performance.now?performance:Date,hV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
|
|
12697
|
+
function uV(){return lV||(hV(pV),lV=dV.now()+cV)}function pV(){lV=0}function fV(){this._call=this._time=this._next=null}function mV(e,t,n){var i=new fV
|
|
12698
|
+
return i.restart(e,t,n),i}function gV(){lV=(aV=dV.now())+cV,iV=oV=0
|
|
12699
|
+
try{!function(){uV(),++iV
|
|
12700
|
+
for(var e,t=eV;t;)(e=lV-t._time)>=0&&t._call.call(void 0,e),t=t._next;--iV}()}finally{iV=0,function(){var e,t,n=eV,i=1/0
|
|
12701
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eV=t)
|
|
12702
|
+
tV=e,bV(i)}(),lV=0}}function vV(){var e=dV.now(),t=e-aV
|
|
12703
|
+
t>rV&&(cV-=t,aV=e)}function bV(e){iV||(oV&&(oV=clearTimeout(oV)),e-lV>24?(e<1/0&&(oV=setTimeout(gV,e-dV.now()-cV)),sV&&(sV=clearInterval(sV))):(sV||(aV=dV.now(),sV=setInterval(vV,rV)),iV=1,hV(gV)))}function yV(e,t,n){var i=new fV
|
|
12704
|
+
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}fV.prototype=mV.prototype={constructor:fV,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
|
|
12705
|
+
n=(null==n?uV():+n)+(null==t?0:+t),this._next||tV===this||(tV?tV._next=this:eV=this,tV=this),this._call=e,this._time=n,bV()},stop:function(){this._call&&(this._call=null,this._time=1/0,bV())}}
|
|
12706
|
+
var wV=TP("start","end","cancel","interrupt"),xV=[],CV=0,kV=1,SV=2,$V=3,MV=4,_V=5,EV=6
|
|
12707
|
+
function IV(e,t,n,i,o,s){var r=e.__transition
|
|
12708
12708
|
if(r){if(n in r)return}else e.__transition={}
|
|
12709
12709
|
!function(e,t,n){var i,o=e.__transition
|
|
12710
|
-
function s(e){n.state=
|
|
12711
|
-
if(n.state!==
|
|
12712
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state
|
|
12713
|
-
u.state
|
|
12714
|
-
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=
|
|
12715
|
-
n.state===
|
|
12716
|
-
delete e.__transition}o[t]=n,n.timer=
|
|
12717
|
-
if(n.state>
|
|
12718
|
-
return n}function
|
|
12719
|
-
if(n.state
|
|
12720
|
-
return n}function
|
|
12710
|
+
function s(e){n.state=kV,n.timer.restart(r,n.delay,n.time),n.delay<=e&&r(e-n.delay)}function r(s){var c,d,h,u
|
|
12711
|
+
if(n.state!==kV)return l()
|
|
12712
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===$V)return yV(r)
|
|
12713
|
+
u.state===MV?(u.state=EV,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=EV,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(yV((function(){n.state===$V&&(n.state=MV,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=SV,n.on.call("start",e,e.__data__,n.index,n.group),n.state===SV){for(n.state=$V,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
|
|
12714
|
+
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=_V,1),s=-1,r=i.length;++s<r;)i[s].call(e,o)
|
|
12715
|
+
n.state===_V&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=EV,n.timer.stop(),delete o[t],o)return
|
|
12716
|
+
delete e.__transition}o[t]=n,n.timer=mV(s,0,n.time)}(e,n,{name:t,index:i,group:o,on:wV,tween:xV,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:CV})}function DV(e,t){var n=TV(e,t)
|
|
12717
|
+
if(n.state>CV)throw new Error("too late; already scheduled")
|
|
12718
|
+
return n}function AV(e,t){var n=TV(e,t)
|
|
12719
|
+
if(n.state>$V)throw new Error("too late; already running")
|
|
12720
|
+
return n}function TV(e,t){var n=e.__transition
|
|
12721
12721
|
if(!n||!(n=n[t]))throw new Error("transition not found")
|
|
12722
|
-
return n}function
|
|
12723
|
-
if(s){for(o in t=null==t?null:t+"",s)(n=s[o]).name===t?(i=n.state>
|
|
12724
|
-
r&&delete e.__transition}}function
|
|
12725
|
-
return function(){var o=
|
|
12722
|
+
return n}function OV(e,t){var n,i,o,s=e.__transition,r=!0
|
|
12723
|
+
if(s){for(o in t=null==t?null:t+"",s)(n=s[o]).name===t?(i=n.state>SV&&n.state<_V,n.state=EV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete s[o]):r=!1
|
|
12724
|
+
r&&delete e.__transition}}function RV(e,t){var n,i
|
|
12725
|
+
return function(){var o=AV(this,e),s=o.tween
|
|
12726
12726
|
if(s!==n)for(var r=0,a=(i=n=s).length;r<a;++r)if(i[r].name===t){(i=i.slice()).splice(r,1)
|
|
12727
|
-
break}o.tween=i}}function
|
|
12727
|
+
break}o.tween=i}}function FV(e,t,n){var i,o
|
|
12728
12728
|
if("function"!=typeof n)throw new Error
|
|
12729
|
-
return function(){var s=
|
|
12729
|
+
return function(){var s=AV(this,e),r=s.tween
|
|
12730
12730
|
if(r!==i){o=(i=r).slice()
|
|
12731
12731
|
for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
|
|
12732
|
-
break}l===c&&o.push(a)}s.tween=o}}function
|
|
12733
|
-
return e.each((function(){var e=
|
|
12734
|
-
return("number"==typeof t?
|
|
12732
|
+
break}l===c&&o.push(a)}s.tween=o}}function NV(e,t,n){var i=e._id
|
|
12733
|
+
return e.each((function(){var e=AV(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return TV(e,i).value[t]}}function PV(e,t){var n
|
|
12734
|
+
return("number"==typeof t?zz:t instanceof gz?Fz:(n=gz(t))?(t=n,Fz):qz)(e,t)}function LV(e){return function(){this.removeAttribute(e)}}function zV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function VV(e,t,n){var i,o,s=n+""
|
|
12735
12735
|
return function(){var r=this.getAttribute(e)
|
|
12736
|
-
return r===s?null:r===i?o:o=t(i=r,n)}}function
|
|
12736
|
+
return r===s?null:r===i?o:o=t(i=r,n)}}function HV(e,t,n){var i,o,s=n+""
|
|
12737
12737
|
return function(){var r=this.getAttributeNS(e.space,e.local)
|
|
12738
|
-
return r===s?null:r===i?o:o=t(i=r,n)}}function
|
|
12738
|
+
return r===s?null:r===i?o:o=t(i=r,n)}}function BV(e,t,n){var i,o,s
|
|
12739
12739
|
return function(){var r,a,l=n(this)
|
|
12740
12740
|
if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=t(i=r,l))
|
|
12741
|
-
this.removeAttribute(e)}}function
|
|
12741
|
+
this.removeAttribute(e)}}function qV(e,t,n){var i,o,s
|
|
12742
12742
|
return function(){var r,a,l=n(this)
|
|
12743
12743
|
if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=t(i=r,l))
|
|
12744
|
-
this.removeAttributeNS(e.space,e.local)}}function
|
|
12744
|
+
this.removeAttributeNS(e.space,e.local)}}function UV(e,t){var n,i
|
|
12745
12745
|
function o(){var o=t.apply(this,arguments)
|
|
12746
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
12746
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function jV(e,t){var n,i
|
|
12747
12747
|
function o(){var o=t.apply(this,arguments)
|
|
12748
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
12749
|
-
function
|
|
12750
|
-
function
|
|
12751
|
-
|
|
12752
|
-
"function"!=typeof e&&(e=
|
|
12753
|
-
for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,
|
|
12754
|
-
return new
|
|
12755
|
-
"function"!=typeof e&&(e=
|
|
12756
|
-
for(var i=this._groups,o=i.length,s=[],r=[],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=e.call(l,l.__data__,h,c),f=
|
|
12757
|
-
s.push(p),r.push(l)}return new
|
|
12748
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function WV(e,t){return function(){DV(this,e).delay=+t.apply(this,arguments)}}function GV(e,t){return t=+t,function(){DV(this,e).delay=t}}function ZV(e,t){return function(){AV(this,e).duration=+t.apply(this,arguments)}}function KV(e,t){return t=+t,function(){AV(this,e).duration=t}}var XV=GL.prototype.constructor
|
|
12749
|
+
function YV(e){return function(){this.style.removeProperty(e)}}var JV=0
|
|
12750
|
+
function QV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function eH(){return++JV}var tH=GL.prototype
|
|
12751
|
+
QV.prototype={constructor:QV,select:function(e){var t=this._name,n=this._id
|
|
12752
|
+
"function"!=typeof e&&(e=qP(e))
|
|
12753
|
+
for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,IV(h[u],t,n,u,h,TV(a,n)))
|
|
12754
|
+
return new QV(s,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
|
|
12755
|
+
"function"!=typeof e&&(e=jP(e))
|
|
12756
|
+
for(var i=this._groups,o=i.length,s=[],r=[],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=e.call(l,l.__data__,h,c),f=TV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&IV(u,t,n,m,p,f)
|
|
12757
|
+
s.push(p),r.push(l)}return new QV(s,r,t,n)},selectChild:tH.selectChild,selectChildren:tH.selectChildren,filter:function(e){"function"!=typeof e&&(e=GP(e))
|
|
12758
12758
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r=t[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
12759
|
-
return new
|
|
12759
|
+
return new QV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
|
|
12760
12760
|
for(var t=this._groups,n=e._groups,i=t.length,o=n.length,s=Math.min(i,o),r=new Array(i),a=0;a<s;++a)for(var l,c=t[a],d=n[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
12761
12761
|
for(;a<i;++a)r[a]=t[a]
|
|
12762
|
-
return new
|
|
12763
|
-
|
|
12764
|
-
return arguments.length<2?
|
|
12765
|
-
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?
|
|
12762
|
+
return new QV(r,this._parents,this._name,this._id)},selection:function(){return new XV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=eH(),i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=TV(r,t)
|
|
12763
|
+
IV(r,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new QV(i,this._parents,e,n)},call:tH.call,nodes:tH.nodes,node:tH.node,size:tH.size,empty:tH.empty,each:tH.each,on:function(e,t){var n=this._id
|
|
12764
|
+
return arguments.length<2?TV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
|
|
12765
|
+
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?DV:AV
|
|
12766
12766
|
return function(){var r=s(this,e),a=r.on
|
|
12767
|
-
a!==i&&(o=(i=a).copy()).on(t,n),r.on=o}}(n,e,t))},attr:function(e,t){var n=
|
|
12768
|
-
return this.attrTween(e,"function"==typeof t?(n.local?BV
|
|
12767
|
+
a!==i&&(o=(i=a).copy()).on(t,n),r.on=o}}(n,e,t))},attr:function(e,t){var n=LP(e),i="transform"===n?Jz:PV
|
|
12768
|
+
return this.attrTween(e,"function"==typeof t?(n.local?qV:BV)(n,i,NV(this,"attr."+e,t)):null==t?(n.local?zV:LV)(n):(n.local?HV:VV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
|
|
12769
12769
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
12770
12770
|
if(null==t)return this.tween(n,null)
|
|
12771
12771
|
if("function"!=typeof t)throw new Error
|
|
12772
|
-
var i=
|
|
12773
|
-
return this.tween(n,(i.local?
|
|
12772
|
+
var i=LP(e)
|
|
12773
|
+
return this.tween(n,(i.local?UV:jV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?Yz:PV
|
|
12774
12774
|
return null==t?this.styleTween(e,function(e,t){var n,i,o
|
|
12775
|
-
return function(){var s=
|
|
12776
|
-
return s===r?null:s===n&&r===i?o:o=t(n=s,i=r)}}(e,i)).on("end.style."+e,
|
|
12777
|
-
return function(){var r=
|
|
12778
|
-
return null==a&&(this.style.removeProperty(e),l=a=
|
|
12779
|
-
return function(){var l=
|
|
12775
|
+
return function(){var s=gL(this,e),r=(this.style.removeProperty(e),gL(this,e))
|
|
12776
|
+
return s===r?null:s===n&&r===i?o:o=t(n=s,i=r)}}(e,i)).on("end.style."+e,YV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,s
|
|
12777
|
+
return function(){var r=gL(this,e),a=n(this),l=a+""
|
|
12778
|
+
return null==a&&(this.style.removeProperty(e),l=a=gL(this,e)),r===l?null:r===i&&l===o?s:(o=l,s=t(i=r,a))}}(e,i,NV(this,"style."+e,t))).each(function(e,t){var n,i,o,s,r="style."+t,a="end."+r
|
|
12779
|
+
return function(){var l=AV(this,e),c=l.on,d=null==l.value[r]?s||(s=YV(t)):void 0
|
|
12780
12780
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,s=n+""
|
|
12781
|
-
return function(){var r=
|
|
12781
|
+
return function(){var r=gL(this,e)
|
|
12782
12782
|
return r===s?null:r===i?o:o=t(i=r,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
|
|
12783
12783
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
12784
12784
|
if(null==t)return this.tween(i,null)
|
|
@@ -12786,7 +12786,7 @@ if("function"!=typeof t)throw new Error
|
|
|
12786
12786
|
return this.tween(i,function(e,t,n){var i,o
|
|
12787
12787
|
function s(){var s=t.apply(this,arguments)
|
|
12788
12788
|
return s!==o&&(i=(o=s)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,s,n)),i}return s._value=t,s}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
|
|
12789
|
-
this.textContent=null==t?"":t}}(
|
|
12789
|
+
this.textContent=null==t?"":t}}(NV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
|
|
12790
12790
|
if(arguments.length<1)return(t=this.tween(t))&&t._value
|
|
12791
12791
|
if(null==e)return this.tween(t,null)
|
|
12792
12792
|
if("function"!=typeof e)throw new Error
|
|
@@ -12795,59 +12795,59 @@ function i(){var i=e.apply(this,arguments)
|
|
|
12795
12795
|
return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
|
|
12796
12796
|
for(var n in this.__transition)if(+n!==e)return
|
|
12797
12797
|
t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
|
|
12798
|
-
if(e+="",arguments.length<2){for(var i,o=
|
|
12799
|
-
return null}return this.each((null==t?
|
|
12800
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
12801
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
12798
|
+
if(e+="",arguments.length<2){for(var i,o=TV(this.node(),n).tween,s=0,r=o.length;s<r;++s)if((i=o[s]).name===e)return i.value
|
|
12799
|
+
return null}return this.each((null==t?RV:FV)(n,e,t))},delay:function(e){var t=this._id
|
|
12800
|
+
return arguments.length?this.each(("function"==typeof e?WV:GV)(t,e)):TV(this.node(),t).delay},duration:function(e){var t=this._id
|
|
12801
|
+
return arguments.length?this.each(("function"==typeof e?ZV:KV)(t,e)):TV(this.node(),t).duration},ease:function(e){var t=this._id
|
|
12802
12802
|
return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
|
|
12803
|
-
return function(){
|
|
12803
|
+
return function(){AV(this,e).ease=t}}(t,e)):TV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
|
|
12804
12804
|
return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
|
|
12805
12805
|
if("function"!=typeof n)throw new Error
|
|
12806
|
-
|
|
12806
|
+
AV(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
|
|
12807
12807
|
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
12808
|
-
n.each((function(){var n=
|
|
12809
|
-
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&s()}))},[Symbol.iterator]:
|
|
12810
|
-
var
|
|
12811
|
-
function
|
|
12812
|
-
return n}
|
|
12813
|
-
e instanceof
|
|
12814
|
-
for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&
|
|
12815
|
-
return new
|
|
12816
|
-
var
|
|
12817
|
-
function
|
|
12818
|
-
var
|
|
12819
|
-
function
|
|
12820
|
-
return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function
|
|
12821
|
-
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function
|
|
12822
|
-
function v(e){e.property("__zoom",
|
|
12823
|
-
return i===e.x&&o===e.y?e:new
|
|
12808
|
+
n.each((function(){var n=AV(this,i),o=n.on
|
|
12809
|
+
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&s()}))},[Symbol.iterator]:tH[Symbol.iterator]}
|
|
12810
|
+
var nH={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
|
|
12811
|
+
function iH(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
|
|
12812
|
+
return n}GL.prototype.interrupt=function(e){return this.each((function(){OV(this,e)}))},GL.prototype.transition=function(e){var t,n
|
|
12813
|
+
e instanceof QV?(t=e._id,e=e._name):(t=eH(),(n=nH).time=uV(),e=null==e?null:e+"")
|
|
12814
|
+
for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&IV(r,e,t,c,a,n||iH(r,t))
|
|
12815
|
+
return new QV(i,this._parents,e,t)}
|
|
12816
|
+
var oH=e=>()=>e
|
|
12817
|
+
function sH(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function rH(e,t,n){this.k=e,this.x=t,this.y=n}rH.prototype={constructor:rH,scale:function(e){return 1===e?this:new rH(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new rH(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
|
|
12818
|
+
var aH=new rH(1,0,0)
|
|
12819
|
+
function lH(e){e.stopImmediatePropagation()}function cH(e){e.preventDefault(),e.stopImmediatePropagation()}function dH(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function hH(){var e=this
|
|
12820
|
+
return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function uH(){return this.__zoom||aH}function pH(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function fH(){return navigator.maxTouchPoints||"ontouchstart"in this}function mH(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],r=e.invertY(t[1][1])-n[1][1]
|
|
12821
|
+
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function gH(){var e,t,n,i=dH,o=hH,s=mH,r=pH,a=fH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=nV,u=TP("start","zoom","end"),p=500,f=150,m=0,g=10
|
|
12822
|
+
function v(e){e.property("__zoom",uH).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(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new rH(t,e.x,e.y)}function y(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
|
|
12823
|
+
return i===e.x&&o===e.y?e:new rH(e.k,i,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.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 e=this,s=arguments,r=C(e,s).event(i),a=o.apply(e,s),l=null==n?w(a):"function"==typeof n?n.apply(e,s):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
12824
12824
|
return function(e){if(1===e)e=u
|
|
12825
12825
|
else{var t=p(e),n=c/t[2]
|
|
12826
|
-
e=new
|
|
12826
|
+
e=new rH(n,l[0]-t[0]*n,l[1]-t[1]*n)}r.zoom(null,e)}}))}function C(e,t,n){return!n&&e.__zooming||new k(e,t)}function k(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=C(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=KL(e)
|
|
12827
12827
|
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)
|
|
12828
12828
|
else{if(o.k===a)return
|
|
12829
|
-
n.mouse=[d,o.invert(d)],
|
|
12830
|
-
r.moved=t*t+n*n>m}r.event(e).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=
|
|
12831
|
-
t&&(i.on("click.drag",XL
|
|
12832
|
-
!function(e){var t=e.document.documentElement,n=
|
|
12833
|
-
"onselectstart"in t?n.on("selectstart.drag",XL
|
|
12834
|
-
|
|
12835
|
-
for(
|
|
12836
|
-
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),
|
|
12837
|
-
for(
|
|
12829
|
+
n.mouse=[d,o.invert(d)],OV(this),n.start()}cH(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",s(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,r=C(this,t,!0).event(e),a=ZL(e.view).on("mousemove.zoom",(function(e){if(cH(e),!r.moved){var t=e.clientX-d,n=e.clientY-h
|
|
12830
|
+
r.moved=t*t+n*n>m}r.event(e).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=KL(e,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=ZL(e).on("dragstart.drag",null)
|
|
12831
|
+
t&&(i.on("click.drag",YL,XL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,r.moved),cH(e),r.event(e).end()}),!0),l=KL(e,o),d=e.clientX,h=e.clientY
|
|
12832
|
+
!function(e){var t=e.document.documentElement,n=ZL(e).on("dragstart.drag",YL,XL)
|
|
12833
|
+
"onselectstart"in t?n.on("selectstart.drag",YL,XL):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),lH(e),r.mouse=[l,this.__zoom.invert(l)],OV(this),r.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,r=KL(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(r),l=n.k*(e.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,t),c)
|
|
12834
|
+
cH(e),d>0?ZL(this).transition().duration(d).call(x,h,r,e):ZL(this).call(v.transform,h,r,e)}}function _(n,...o){if(i.apply(this,arguments)){var s,r,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
|
|
12835
|
+
for(lH(n),r=0;r<d;++r)l=[l=KL(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
|
|
12836
|
+
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),OV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,r,a=C(this,t).event(e),l=e.changedTouches,d=l.length
|
|
12837
|
+
for(cH(e),n=0;n<d;++n)o=KL(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)
|
|
12838
12838
|
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
|
|
12839
12839
|
i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
|
|
12840
12840
|
o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(y(i,o,r),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,s,r=C(this,i).event(e),a=e.changedTouches,l=a.length
|
|
12841
|
-
for(
|
|
12841
|
+
for(lH(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)s=a[o],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
|
|
12842
12842
|
if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
|
|
12843
|
-
else if(r.end(),2===r.taps&&(s=
|
|
12843
|
+
else if(r.end(),2===r.taps&&(s=KL(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<g)){var c=ZL(this).on("dblclick.zoom")
|
|
12844
12844
|
c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
|
|
12845
|
-
o.property("__zoom",
|
|
12845
|
+
o.property("__zoom",uH),e!==o?x(e,t,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,r=null==n?w(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof t?t.apply(this,arguments):t
|
|
12846
12846
|
return s(y(b(i,l),r,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i
|
|
12847
|
-
return s(
|
|
12848
|
-
u.call(e,this.that,new
|
|
12849
|
-
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}
|
|
12850
|
-
const
|
|
12847
|
+
return s(aH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,r)},k.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=ZL(this.that).datum()
|
|
12848
|
+
u.call(e,this.that,new sH(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:oH(+e),v):r},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:oH(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:oH(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:oH([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(s=e,v):s},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
|
|
12849
|
+
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}rH.prototype
|
|
12850
|
+
const vH=G`
|
|
12851
12851
|
<div class="wafer-map-container">
|
|
12852
12852
|
<svg class="svg-root">
|
|
12853
12853
|
<g ${Pe("zoomContainer")} transform=${e=>e.transform.toString()}>
|
|
@@ -12878,7 +12878,7 @@ const gH=G`
|
|
|
12878
12878
|
/>
|
|
12879
12879
|
</svg>
|
|
12880
12880
|
</div>
|
|
12881
|
-
`,
|
|
12881
|
+
`,bH=xe`
|
|
12882
12882
|
${Ro("inline-block")}
|
|
12883
12883
|
|
|
12884
12884
|
:host {
|
|
@@ -12968,67 +12968,67 @@ const gH=G`
|
|
|
12968
12968
|
outline-width: 0px;
|
|
12969
12969
|
}
|
|
12970
12970
|
`
|
|
12971
|
-
function
|
|
12971
|
+
function yH(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wH(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xH(e){let t,n,i
|
|
12972
12972
|
function o(e,i,o=0,s=e.length){if(o<s){if(0!==t(i,i))return s
|
|
12973
12973
|
do{const t=o+s>>>1
|
|
12974
|
-
n(e[t],i)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=
|
|
12974
|
+
n(e[t],i)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=yH,n=(t,n)=>yH(e(t),n),i=(t,n)=>e(t)-n):(t=e===yH||e===wH?e:CH,n=e,i=e),{left:o,center:function(e,t,n=0,s=e.length){const r=o(e,t,n,s-1)
|
|
12975
12975
|
return r>n&&i(e[r-1],t)>-i(e[r],t)?r-1:r},right:function(e,i,o=0,s=e.length){if(o<s){if(0!==t(i,i))return s
|
|
12976
12976
|
do{const t=o+s>>>1
|
|
12977
|
-
n(e[t],i)<=0?o=t+1:s=t}while(o<s)}return o}}}function
|
|
12978
|
-
|
|
12979
|
-
class
|
|
12977
|
+
n(e[t],i)<=0?o=t+1:s=t}while(o<s)}return o}}}function CH(){return 0}function kH(e){return null===e?NaN:+e}const SH=xH(yH).right
|
|
12978
|
+
xH(kH).center
|
|
12979
|
+
class $H extends Map{constructor(e,t=_H){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(MH(this,e))}has(e){return super.has(MH(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
|
|
12980
12980
|
return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
|
|
12981
12981
|
e.has(i)&&(n=e.get(i),e.delete(i))
|
|
12982
|
-
return n}(this,e))}}function
|
|
12983
|
-
return e.has(i)?e.get(i):n}function
|
|
12984
|
-
function
|
|
12982
|
+
return n}(this,e))}}function MH({_intern:e,_key:t},n){const i=t(n)
|
|
12983
|
+
return e.has(i)?e.get(i):n}function _H(e){return null!==e&&"object"==typeof e?e.valueOf():e}const EH=Math.sqrt(50),IH=Math.sqrt(10),DH=Math.sqrt(2)
|
|
12984
|
+
function AH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),r=s>=EH?10:s>=IH?5:s>=DH?2:1
|
|
12985
12985
|
let a,l,c
|
|
12986
|
-
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?
|
|
12986
|
+
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?AH(e,t,2*n):[a,l,c]}function TH(e,t,n){return AH(e=+e,t=+t,n=+n)[2]}function OH(e,t,n=kH){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
|
|
12987
12987
|
if(t>=1)return+n(e[i-1],i-1,e)
|
|
12988
12988
|
var i,o=(i-1)*t,s=Math.floor(o),r=+n(e[s],s,e)
|
|
12989
|
-
return r+(+n(e[s+1],s+1,e)-r)*(o-s)}}function
|
|
12989
|
+
return r+(+n(e[s+1],s+1,e)-r)*(o-s)}}function RH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
|
|
12990
12990
|
for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),s=new Array(o);++i<o;)s[i]=e+i*n
|
|
12991
|
-
return s}function
|
|
12991
|
+
return s}function FH(e,t){switch(arguments.length){case 0:break
|
|
12992
12992
|
case 1:this.range(e)
|
|
12993
12993
|
break
|
|
12994
|
-
default:this.range(t).domain(e)}return this}const
|
|
12995
|
-
function
|
|
12994
|
+
default:this.range(t).domain(e)}return this}const NH=Symbol("implicit")
|
|
12995
|
+
function PH(){var e=new $H,t=[],n=[],i=NH
|
|
12996
12996
|
function o(o){let s=e.get(o)
|
|
12997
|
-
if(void 0===s){if(i!==
|
|
12997
|
+
if(void 0===s){if(i!==NH)return i
|
|
12998
12998
|
e.set(o,s=t.push(o)-1)}return n[s%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
|
|
12999
|
-
t=[],e=new
|
|
12999
|
+
t=[],e=new $H
|
|
13000
13000
|
for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
|
|
13001
|
-
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return
|
|
13001
|
+
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return PH(t,n).unknown(i)},FH.apply(o,arguments),o}function LH(){var e,t,n=PH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
|
|
13002
13002
|
function h(){var n=i().length,h=r<s,u=h?r:s,p=h?s:r
|
|
13003
13003
|
e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
|
|
13004
|
-
var f=
|
|
13005
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return
|
|
13006
|
-
function
|
|
13007
|
-
var n}function
|
|
13008
|
-
return o<i?(i=
|
|
13009
|
-
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)o[r]=
|
|
13010
|
-
return function(t){var n=
|
|
13011
|
-
return s[n](o[n](t))}}function
|
|
13004
|
+
var f=RH(n).map((function(t){return u+e*t}))
|
|
13005
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return LH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},FH.apply(h(),arguments)}function zH(e){return+e}var VH=[0,1]
|
|
13006
|
+
function HH(e){return e}function BH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
|
|
13007
|
+
var n}function qH(e,t,n){var i=e[0],o=e[1],s=t[0],r=t[1]
|
|
13008
|
+
return o<i?(i=BH(o,i),s=n(r,s)):(i=BH(i,o),s=n(s,r)),function(e){return s(i(e))}}function UH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),s=new Array(i),r=-1
|
|
13009
|
+
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)o[r]=BH(e[r],e[r+1]),s[r]=n(t[r],t[r+1])
|
|
13010
|
+
return function(t){var n=SH(e,t,1,i)-1
|
|
13011
|
+
return s[n](o[n](t))}}function jH(){var e,t,n,i,o,s,r=VH,a=VH,l=Uz,c=HH
|
|
13012
13012
|
function d(){var e,t,n,l=Math.min(r.length,a.length)
|
|
13013
|
-
return c!==
|
|
13013
|
+
return c!==HH&&(e=r[0],t=r[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?UH:qH,o=s=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(r.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((s||(s=i(a,r.map(e),zz)))(n)))},h.domain=function(e){return arguments.length?(r=Array.from(e,zH),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=jz,d()},h.clamp=function(e){return arguments.length?(c=!!e||HH,d()):c!==HH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function WH(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
|
|
13014
13014
|
var n,i=e.slice(0,n)
|
|
13015
|
-
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function
|
|
13016
|
-
function
|
|
13015
|
+
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function GH(e){return(e=WH(Math.abs(e)))?e[1]:NaN}var ZH,KH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
13016
|
+
function XH(e){if(!(t=KH.exec(e)))throw new Error("invalid format: "+e)
|
|
13017
13017
|
var t
|
|
13018
|
-
return new
|
|
13018
|
+
return new YH({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function YH(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function JH(e,t){var n=WH(e,t)
|
|
13019
13019
|
if(!n)return e+""
|
|
13020
13020
|
var i=n[0],o=n[1]
|
|
13021
|
-
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")}
|
|
13022
|
-
var
|
|
13021
|
+
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")}XH.prototype=YH.prototype,YH.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}
|
|
13022
|
+
var QH={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>JH(100*e,t),r:JH,s:function(e,t){var n=WH(e,t)
|
|
13023
13023
|
if(!n)return e+""
|
|
13024
|
-
var i=n[0],o=n[1],s=o-(
|
|
13025
|
-
return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+
|
|
13026
|
-
function
|
|
13027
|
-
function
|
|
13028
|
-
return s.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?
|
|
13029
|
-
function h(e){var t=(e=
|
|
13030
|
-
"n"===b?(m=!0,b="g"):
|
|
13031
|
-
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=
|
|
13024
|
+
var i=n[0],o=n[1],s=o-(ZH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
|
|
13025
|
+
return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+WH(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
|
|
13026
|
+
function eB(e){return e}var tB,nB,iB,oB=Array.prototype.map,sB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
13027
|
+
function rB(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?eB:(t=oB.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,s=[],r=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[r=(r+1)%t.length]
|
|
13028
|
+
return s.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?eB:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(oB.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
|
|
13029
|
+
function h(e){var t=(e=XH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
|
|
13030
|
+
"n"===b?(m=!0,b="g"):QH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
|
|
13031
|
+
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=QH[b],C=/[defgprs%]/.test(b)
|
|
13032
13032
|
function k(e){var o,s,l,u=y,k=w
|
|
13033
13033
|
if("c"===b)k=x(e)+k,e=""
|
|
13034
13034
|
else{var S=(e=+e)<0||1/e<0
|
|
@@ -13037,7 +13037,7 @@ break
|
|
|
13037
13037
|
case"0":0===o&&(o=i),t=i
|
|
13038
13038
|
break
|
|
13039
13039
|
default:if(!+e[i])break e
|
|
13040
|
-
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?
|
|
13040
|
+
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?sB[8+ZH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=e.length;++o<s;)if(48>(l=e.charCodeAt(o))||l>57){k=(46===l?r+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o)
|
|
13041
13041
|
break}}m&&!p&&(e=i(e,1/0))
|
|
13042
13042
|
var $=u.length+e.length+k.length,M=$<f?new Array(f-$+1).join(t):""
|
|
13043
13043
|
switch(m&&p&&(e=i(M+e,M.length?f-k.length:1/0),M=""),n){case"<":e=u+e+k+M
|
|
@@ -13046,19 +13046,19 @@ case"=":e=u+M+e+k
|
|
|
13046
13046
|
break
|
|
13047
13047
|
case"^":e=M.slice(0,$=M.length>>1)+u+e+k+M.slice($)
|
|
13048
13048
|
break
|
|
13049
|
-
default:e=M+u+e+k}return a(e)}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 e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=
|
|
13050
|
-
return function(e){return n(o*e)+s}}}}function
|
|
13051
|
-
const i=(t=+t)<(e=+e),o=i?
|
|
13049
|
+
default:e=M+u+e+k}return a(e)}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 e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=XH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(GH(t)/3))),o=Math.pow(10,-i),s=sB[8+i/3]
|
|
13050
|
+
return function(e){return n(o*e)+s}}}}function aB(e,t,n,i){var o,s=function(e,t,n){n=+n
|
|
13051
|
+
const i=(t=+t)<(e=+e),o=i?TH(t,e,n):TH(e,t,n)
|
|
13052
13052
|
return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
|
|
13053
|
-
switch((i=
|
|
13054
|
-
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
13055
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,
|
|
13053
|
+
switch((i=XH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
|
|
13054
|
+
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(GH(t)/3)))-GH(Math.abs(e)))}(s,r))||(i.precision=o),iB(i,r)
|
|
13055
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,GH(t)-GH(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
|
|
13056
13056
|
break
|
|
13057
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-
|
|
13057
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-GH(Math.abs(e)))}(s))||(i.precision=o-2*("%"===i.type))}return nB(i)}function lB(e){var t=e.domain
|
|
13058
13058
|
return e.ticks=function(e){var n=t()
|
|
13059
13059
|
return function(e,t,n){if(!((n=+n)>0))return[]
|
|
13060
13060
|
if((e=+e)==(t=+t))return[e]
|
|
13061
|
-
const i=t<e,[o,s,r]=i?
|
|
13061
|
+
const i=t<e,[o,s,r]=i?AH(t,e,n):AH(e,t,n)
|
|
13062
13062
|
if(!(s>=o))return[]
|
|
13063
13063
|
const a=s-o+1,l=new Array(a)
|
|
13064
13064
|
if(i)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
|
|
@@ -13066,33 +13066,33 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
|
|
|
13066
13066
|
else if(r<0)for(let e=0;e<a;++e)l[e]=(o+e)/-r
|
|
13067
13067
|
else for(let e=0;e<a;++e)l[e]=(o+e)*r
|
|
13068
13068
|
return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
|
|
13069
|
-
return
|
|
13069
|
+
return aB(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
|
|
13070
13070
|
var i,o,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
|
|
13071
|
-
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=
|
|
13071
|
+
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=TH(l,c,n))===i)return s[r]=l,s[a]=c,t(s)
|
|
13072
13072
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
13073
13073
|
else{if(!(o<0))break
|
|
13074
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function
|
|
13075
|
-
return e.copy=function(){return t=e,
|
|
13076
|
-
var t},
|
|
13074
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function cB(){var e=jH()(HH,HH)
|
|
13075
|
+
return e.copy=function(){return t=e,cB().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
|
|
13076
|
+
var t},FH.apply(e,arguments),lB(e)}function dB(){var e,t=[],n=[],i=[]
|
|
13077
13077
|
function o(){var e=0,o=Math.max(1,n.length)
|
|
13078
|
-
for(i=new Array(o-1);++e<o;)i[e-1]=
|
|
13079
|
-
return s}function s(t){return null==t||isNaN(t=+t)?e:n[
|
|
13078
|
+
for(i=new Array(o-1);++e<o;)i[e-1]=OH(t,e/o)
|
|
13079
|
+
return s}function s(t){return null==t||isNaN(t=+t)?e:n[SH(i,t)]}return s.invertExtent=function(e){var o=n.indexOf(e)
|
|
13080
13080
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice()
|
|
13081
13081
|
t=[]
|
|
13082
13082
|
for(let n of e)null==n||isNaN(n=+n)||t.push(n)
|
|
13083
|
-
return t.sort(
|
|
13084
|
-
const
|
|
13085
|
-
class
|
|
13083
|
+
return t.sort(yH),o()},s.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return dB().domain(t).range(n).unknown(e)},FH.apply(s,arguments)}tB=rB({thousands:",",grouping:[3],currency:["$",""]}),nB=tB.format,iB=tB.formatPrefix
|
|
13084
|
+
const hB="bottom-left",uB="bottom-right",pB="top-left",fB="top",mB="show",gB="hide",vB="linear",bB="ordinal"
|
|
13085
|
+
class yB{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(e){this.wafermap=e,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)
|
|
13086
13086
|
const e=e=>null!==e
|
|
13087
13087
|
void 0===this.wafermap.diesTable&&(this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter(e))}computeDieRenderInfo(e){const t=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(e.x),i=this.wafermap.dataManager.verticalScale(e.y)
|
|
13088
|
-
return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?
|
|
13088
|
+
return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?cB().domain(e.values.map((e=>+e))).range(e.colors):PH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
|
|
13089
13089
|
const o=`${e}${i}`
|
|
13090
13090
|
return o.length>=t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
|
|
13091
13091
|
const n=new Set(t)
|
|
13092
|
-
return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===
|
|
13092
|
+
return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===vB}isColorScaleOrdinal(e){return e===bB}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
|
|
13093
13093
|
if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
|
|
13094
13094
|
let s=Zo(o)
|
|
13095
|
-
return null===s?this.emptyDieColor:(s=new Vo(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}class
|
|
13095
|
+
return null===s?this.emptyDieColor:(s=new Vo(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}class wB{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(e){this.wafermap=e,this.computations=new 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(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
13096
13096
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
|
|
13097
13097
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
13098
13098
|
this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -13102,11 +13102,11 @@ this._dieDimensions={width:isNaN(i)?0:i,height:isNaN(o)?0:o}}gridDimensionsValid
|
|
|
13102
13102
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
13103
13103
|
const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
|
|
13104
13104
|
for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
13105
|
-
return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=
|
|
13106
|
-
return e===
|
|
13107
|
-
return e===
|
|
13108
|
-
return e===
|
|
13109
|
-
return e===
|
|
13105
|
+
return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=LH().domain(RH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
13106
|
+
return e===hB||e===pB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=dB().domain([0,n])
|
|
13107
|
+
return e===hB||e===pB?i.range(RH(t.origin.x,t.origin.x+t.cols)):i.range(RH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=LH().domain(RH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
13108
|
+
return e===hB||e===uB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=dB().domain([0,n])
|
|
13109
|
+
return e===hB||e===uB?i.range(RH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(RH(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}(e),this.prerendering=new yB(e)}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(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class xB{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.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(){void 0!==this.wafermap.dataManager.dieDimensions&&void 0!==this.wafermap.transform&&(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?gB:mB,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
13110
13110
|
if(void 0===e)return""
|
|
13111
13111
|
const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
13112
13112
|
if(void 0===t)return""
|
|
@@ -13119,117 +13119,117 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
13119
13119
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
13120
13120
|
const o=i.measureText("M"),s=this.wafermap.transform.invert([0,0]),r=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
13121
13121
|
s[0]-=e,s[1]-=t
|
|
13122
|
-
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/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(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}const
|
|
13123
|
-
class
|
|
13124
|
-
!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(
|
|
13125
|
-
class
|
|
13126
|
-
class
|
|
13127
|
-
class
|
|
13122
|
+
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/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(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}const CB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
13123
|
+
class kB extends aI{constructor(e){super(CB),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return 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("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresWorkerWaferSetup(){return 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("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresComponentResizeUpdate(){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 requiresInputDataUpdate(){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 requiresColorAndTextUpdate(){return this.isTracked("maxCharacters")||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,void 0===this.wafermap.currentTask?u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1})):(async()=>{await this.wafermap.currentTask,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0}))})())}}var SB,$B,MB,_B,EB,IB,DB,AB,TB
|
|
13124
|
+
!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(SB||(SB={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}($B||($B={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(MB||(MB={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(_B||(_B={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(EB||(EB={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(IB||(IB={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(DB||(DB={}))
|
|
13125
|
+
class OB{static isNull(e){return(null==e?void 0:e.typeId)===IB.Null}static isInt(e){return(null==e?void 0:e.typeId)===IB.Int}static isFloat(e){return(null==e?void 0:e.typeId)===IB.Float}static isBinary(e){return(null==e?void 0:e.typeId)===IB.Binary}static isLargeBinary(e){return(null==e?void 0:e.typeId)===IB.LargeBinary}static isUtf8(e){return(null==e?void 0:e.typeId)===IB.Utf8}static isLargeUtf8(e){return(null==e?void 0:e.typeId)===IB.LargeUtf8}static isBool(e){return(null==e?void 0:e.typeId)===IB.Bool}static isDecimal(e){return(null==e?void 0:e.typeId)===IB.Decimal}static isDate(e){return(null==e?void 0:e.typeId)===IB.Date}static isTime(e){return(null==e?void 0:e.typeId)===IB.Time}static isTimestamp(e){return(null==e?void 0:e.typeId)===IB.Timestamp}static isInterval(e){return(null==e?void 0:e.typeId)===IB.Interval}static isDuration(e){return(null==e?void 0:e.typeId)===IB.Duration}static isList(e){return(null==e?void 0:e.typeId)===IB.List}static isStruct(e){return(null==e?void 0:e.typeId)===IB.Struct}static isUnion(e){return(null==e?void 0:e.typeId)===IB.Union}static isFixedSizeBinary(e){return(null==e?void 0:e.typeId)===IB.FixedSizeBinary}static isFixedSizeList(e){return(null==e?void 0:e.typeId)===IB.FixedSizeList}static isMap(e){return(null==e?void 0:e.typeId)===IB.Map}static isDictionary(e){return(null==e?void 0:e.typeId)===IB.Dictionary}static isDenseUnion(e){return OB.isUnion(e)&&e.mode===SB.Dense}static isSparseUnion(e){return OB.isUnion(e)&&e.mode===SB.Sparse}constructor(e){this.typeId=e}}AB=Symbol.toStringTag,OB[AB]=((TB=OB.prototype).children=null,TB.ArrayType=Array,TB.OffsetArrayType=Int32Array,TB[Symbol.toStringTag]="DataType")
|
|
13126
|
+
class RB extends OB{constructor(){super(IB.Null)}toString(){return"Null"}}RB[Symbol.toStringTag]=(e=>e[Symbol.toStringTag]="Null")(RB.prototype)
|
|
13127
|
+
class FB extends OB{constructor(e,t){super(IB.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
13128
13128
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
13129
13129
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
13130
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
13131
|
-
class
|
|
13132
|
-
case
|
|
13133
|
-
case
|
|
13134
|
-
class
|
|
13135
|
-
class
|
|
13136
|
-
class
|
|
13137
|
-
class
|
|
13138
|
-
class
|
|
13139
|
-
class
|
|
13140
|
-
class
|
|
13141
|
-
class
|
|
13142
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
13143
|
-
class
|
|
13144
|
-
class
|
|
13145
|
-
class
|
|
13146
|
-
class
|
|
13147
|
-
class
|
|
13148
|
-
class
|
|
13149
|
-
class
|
|
13150
|
-
class
|
|
13151
|
-
class
|
|
13152
|
-
if(super(
|
|
13130
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}FB[Symbol.toStringTag]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(FB.prototype)
|
|
13131
|
+
class NB extends OB{constructor(e){super(IB.Float),this.precision=e}get ArrayType(){switch(this.precision){case $B.HALF:return Uint16Array
|
|
13132
|
+
case $B.SINGLE:return Float32Array
|
|
13133
|
+
case $B.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}NB[Symbol.toStringTag]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(NB.prototype)
|
|
13134
|
+
class PB extends OB{constructor(){super(IB.Binary)}toString(){return"Binary"}}PB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(PB.prototype)
|
|
13135
|
+
class LB extends OB{constructor(){super(IB.LargeBinary)}toString(){return"LargeBinary"}}LB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(LB.prototype)
|
|
13136
|
+
class zB extends OB{constructor(){super(IB.Utf8)}toString(){return"Utf8"}}zB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(zB.prototype)
|
|
13137
|
+
class VB extends OB{constructor(){super(IB.LargeUtf8)}toString(){return"LargeUtf8"}}VB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))(VB.prototype)
|
|
13138
|
+
class HB extends OB{constructor(){super(IB.Bool)}toString(){return"Bool"}}HB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(HB.prototype)
|
|
13139
|
+
class BB extends OB{constructor(e,t,n=128){super(IB.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}BB[Symbol.toStringTag]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(BB.prototype)
|
|
13140
|
+
class qB extends OB{constructor(e){super(IB.Date),this.unit=e}toString(){return`Date${32*(this.unit+1)}<${MB[this.unit]}>`}}qB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(qB.prototype)
|
|
13141
|
+
class UB extends OB{constructor(e,t){super(IB.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${_B[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
13142
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}UB[Symbol.toStringTag]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(UB.prototype)
|
|
13143
|
+
class jB extends OB{constructor(e,t){super(IB.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${_B[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}jB[Symbol.toStringTag]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(jB.prototype)
|
|
13144
|
+
class WB extends OB{constructor(e){super(IB.Interval),this.unit=e}toString(){return`Interval<${EB[this.unit]}>`}}WB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(WB.prototype)
|
|
13145
|
+
class GB extends OB{constructor(e){super(IB.Duration),this.unit=e}toString(){return`Duration<${_B[this.unit]}>`}}GB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(GB.prototype)
|
|
13146
|
+
class ZB extends OB{constructor(e){super(IB.List),this.children=[e]}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]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(ZB.prototype)
|
|
13147
|
+
class KB extends OB{constructor(e){super(IB.Struct),this.children=e}toString(){return`Struct<{${this.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}KB[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(KB.prototype)
|
|
13148
|
+
class XB extends OB{constructor(e,t,n){super(IB.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,n)=>(e[t]=n)&&e||e),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((e=>`${e.type}`)).join(" | ")}>`}}XB[Symbol.toStringTag]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(XB.prototype)
|
|
13149
|
+
class YB extends OB{constructor(e){super(IB.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}YB[Symbol.toStringTag]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(YB.prototype)
|
|
13150
|
+
class JB extends OB{constructor(e,t){super(IB.FixedSizeList),this.listSize=e,this.children=[t]}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}>`}}JB[Symbol.toStringTag]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(JB.prototype)
|
|
13151
|
+
class QB extends OB{constructor(e,t=!1){var n,i,o
|
|
13152
|
+
if(super(IB.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.children)){const t=null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.children[0]
|
|
13153
13153
|
t&&(t.name="key")
|
|
13154
13154
|
const n=null===(o=null==e?void 0:e.type)||void 0===o?void 0:o.children[1]
|
|
13155
|
-
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((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}
|
|
13156
|
-
const
|
|
13157
|
-
var
|
|
13158
|
-
class
|
|
13159
|
-
return Number(e)}(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}>`}}
|
|
13160
|
-
class
|
|
13155
|
+
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((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}QB[Symbol.toStringTag]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(QB.prototype)
|
|
13156
|
+
const eq=(tq=-1,()=>++tq)
|
|
13157
|
+
var tq
|
|
13158
|
+
class nq extends OB{constructor(e,t,n,i){super(IB.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=i||!1,this.id=null==n?eq():function(e){if("bigint"==typeof e&&(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER))throw new TypeError(`${e} is not safe to convert to a number.`)
|
|
13159
|
+
return Number(e)}(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}>`}}nq[Symbol.toStringTag]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(nq.prototype)
|
|
13160
|
+
class iq{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}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
|
|
13161
13161
|
else{const e=this.wafermap.diesTable.schema.fields,t=e.find((e=>"colIndex"===e.name)),n=e.find((e=>"rowIndex"===e.name)),i=e.find((e=>"value"===e.name))
|
|
13162
|
-
t&&n&&i&&
|
|
13162
|
+
t&&n&&i&&OB.isInt(t.type)&&32===t.type.bitWidth&&OB.isInt(n.type)&&32===n.type.bitWidth&&OB.isFloat(i.type)&&i.type.precision===$B.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
|
|
13163
13163
|
/**
|
|
13164
13164
|
* @license
|
|
13165
13165
|
* Copyright 2019 Google LLC
|
|
13166
13166
|
* SPDX-License-Identifier: Apache-2.0
|
|
13167
|
-
*/const
|
|
13168
|
-
return
|
|
13167
|
+
*/const oq=Symbol("Comlink.proxy"),sq=Symbol("Comlink.endpoint"),rq=Symbol("Comlink.releaseProxy"),aq=Symbol("Comlink.finalizer"),lq=Symbol("Comlink.thrown"),cq=e=>"object"==typeof e&&null!==e||"function"==typeof e,dq=new Map([["proxy",{canHandle:e=>cq(e)&&e[oq],serialize(e){const{port1:t,port2:n}=new MessageChannel
|
|
13168
|
+
return hq(e,t),[n,[n]]},deserialize:e=>(e.start(),pq(e))}],["throw",{canHandle:e=>cq(e)&&lq in e,serialize({value:e}){let t
|
|
13169
13169
|
return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value)
|
|
13170
13170
|
throw e.value}}]])
|
|
13171
|
-
function
|
|
13171
|
+
function hq(e,t=globalThis,n=["*"]){t.addEventListener("message",(function i(o){if(!o||!o.data)return
|
|
13172
13172
|
if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0
|
|
13173
13173
|
if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`)
|
|
13174
|
-
const{id:s,type:r,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(
|
|
13174
|
+
const{id:s,type:r,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(kq)
|
|
13175
13175
|
let c
|
|
13176
13176
|
try{const t=a.slice(0,-1).reduce(((e,t)=>e[t]),e),n=a.reduce(((e,t)=>e[t]),e)
|
|
13177
13177
|
switch(r){case"GET":c=n
|
|
13178
13178
|
break
|
|
13179
|
-
case"SET":t[a.slice(-1)[0]]=
|
|
13179
|
+
case"SET":t[a.slice(-1)[0]]=kq(o.data.value),c=!0
|
|
13180
13180
|
break
|
|
13181
13181
|
case"APPLY":c=n.apply(t,l)
|
|
13182
13182
|
break
|
|
13183
|
-
case"CONSTRUCT":c=function(e){return Object.assign(e,{[
|
|
13183
|
+
case"CONSTRUCT":c=function(e){return Object.assign(e,{[oq]:!0})}(new n(...l))
|
|
13184
13184
|
break
|
|
13185
13185
|
case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel
|
|
13186
|
-
|
|
13186
|
+
hq(e,n),c=xq(t,[t])}break
|
|
13187
13187
|
case"RELEASE":c=void 0
|
|
13188
13188
|
break
|
|
13189
|
-
default:return}}catch(e){c={value:e,[
|
|
13190
|
-
t.postMessage(Object.assign(Object.assign({},o),{id:s}),a),"RELEASE"===r&&(t.removeEventListener("message",i),
|
|
13191
|
-
t.postMessage(Object.assign(Object.assign({},n),{id:s}),i)}))})),t.start&&t.start()}function
|
|
13192
|
-
|
|
13193
|
-
function
|
|
13194
|
-
const o=new Proxy(n,{get(n,s){if(
|
|
13189
|
+
default:return}}catch(e){c={value:e,[lq]:0}}Promise.resolve(c).catch((e=>({value:e,[lq]:0}))).then((n=>{const[o,a]=Cq(n)
|
|
13190
|
+
t.postMessage(Object.assign(Object.assign({},o),{id:s}),a),"RELEASE"===r&&(t.removeEventListener("message",i),uq(t),aq in e&&"function"==typeof e[aq]&&e[aq]())})).catch((e=>{const[n,i]=Cq({value:new TypeError("Unserializable return value"),[lq]:0})
|
|
13191
|
+
t.postMessage(Object.assign(Object.assign({},n),{id:s}),i)}))})),t.start&&t.start()}function uq(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function pq(e,t){return bq(e,[],t)}function fq(e){if(e)throw new Error("Proxy has been released and is not useable")}function mq(e){return Sq(e,{type:"RELEASE"}).then((()=>{uq(e)}))}const gq=new WeakMap,vq="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(gq.get(e)||0)-1
|
|
13192
|
+
gq.set(e,t),0===t&&mq(e)}))
|
|
13193
|
+
function bq(e,t=[],n=function(){}){let i=!1
|
|
13194
|
+
const o=new Proxy(n,{get(n,s){if(fq(i),s===rq)return()=>{!function(e){vq&&vq.unregister(e)}(o),mq(e),i=!0}
|
|
13195
13195
|
if("then"===s){if(0===t.length)return{then:()=>o}
|
|
13196
|
-
const n=
|
|
13197
|
-
return n.then.bind(n)}return
|
|
13198
|
-
const[r,a]=
|
|
13199
|
-
return
|
|
13196
|
+
const n=Sq(e,{type:"GET",path:t.map((e=>e.toString()))}).then(kq)
|
|
13197
|
+
return n.then.bind(n)}return bq(e,[...t,s])},set(n,o,s){fq(i)
|
|
13198
|
+
const[r,a]=Cq(s)
|
|
13199
|
+
return Sq(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:r},a).then(kq)},apply(n,o,s){fq(i)
|
|
13200
13200
|
const r=t[t.length-1]
|
|
13201
|
-
if(r===
|
|
13202
|
-
if("bind"===r)return
|
|
13203
|
-
const[a,l]=
|
|
13204
|
-
return
|
|
13205
|
-
const[s,r]=
|
|
13206
|
-
return
|
|
13207
|
-
return function(e,t){const n=(
|
|
13208
|
-
|
|
13201
|
+
if(r===sq)return Sq(e,{type:"ENDPOINT"}).then(kq)
|
|
13202
|
+
if("bind"===r)return bq(e,t.slice(0,-1))
|
|
13203
|
+
const[a,l]=yq(s)
|
|
13204
|
+
return Sq(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:a},l).then(kq)},construct(n,o){fq(i)
|
|
13205
|
+
const[s,r]=yq(o)
|
|
13206
|
+
return Sq(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:s},r).then(kq)}})
|
|
13207
|
+
return function(e,t){const n=(gq.get(t)||0)+1
|
|
13208
|
+
gq.set(t,n),vq&&vq.register(e,t,e)}(o,e),o}function yq(e){const t=e.map(Cq)
|
|
13209
13209
|
return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))]
|
|
13210
|
-
var n}const
|
|
13211
|
-
function
|
|
13212
|
-
return[{type:"HANDLER",name:t,value:i},o]}return[{type:"RAW",value:e},
|
|
13213
|
-
case"RAW":return e.value}}function
|
|
13214
|
-
e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}let
|
|
13215
|
-
class $q{constructor(e){this.wafermap=e,this.minDieDim=100}async setupWafer(e){if(void 0===this.matrixRenderer){const{matrixRenderer:e}=await(async()=>{if(void 0===Sq){const e=new Blob(['var MatrixRenderer = (function (exports) {\n \'use strict\';\n\n /**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n const proxyMarker = Symbol("Comlink.proxy");\n const createEndpoint = Symbol("Comlink.endpoint");\n const releaseProxy = Symbol("Comlink.releaseProxy");\n const finalizer = Symbol("Comlink.finalizer");\n const throwMarker = Symbol("Comlink.thrown");\n const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";\n /**\n * Internal transfer handle to handle objects marked to proxy.\n */\n const proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n };\n /**\n * Internal transfer handler to handle thrown exceptions.\n */\n const throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n };\n /**\n * Allows customizing the serialization of certain values.\n */\n const transferHandlers = new Map([\n ["proxy", proxyTransferHandler],\n ["throw", throwTransferHandler],\n ]);\n function isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === "*") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n }\n function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {\n ep.addEventListener("message", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin \'${ev.origin}\' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case "GET" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case "SET" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case "APPLY" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case "CONSTRUCT" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case "ENDPOINT" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case "RELEASE" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === "RELEASE" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener("message", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === "function") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError("Unserializable return value"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n }\n function isMessagePort(endpoint) {\n return endpoint.constructor.name === "MessagePort";\n }\n function closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n }\n function wrap(ep, target) {\n return createProxy(ep, [], target);\n }\n function throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error("Proxy has been released and is not useable");\n }\n }\n function releaseEndpoint(ep) {\n return requestResponseMessage(ep, {\n type: "RELEASE" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n }\n const proxyCounter = new WeakMap();\n const proxyFinalizers = "FinalizationRegistry" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n function registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n }\n function unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n }\n function createProxy(ep, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, {\n type: "GET" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, {\n type: "SET" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, {\n type: "ENDPOINT" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === "bind") {\n return createProxy(ep, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "APPLY" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "CONSTRUCT" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n }\n function myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n }\n function processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n }\n const transferCache = new WeakMap();\n function transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n }\n function proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n }\n function toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: "HANDLER" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: "RAW" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n }\n function fromWireValue(value) {\n switch (value.type) {\n case "HANDLER" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case "RAW" /* WireValueType.RAW */:\n return value.value;\n }\n }\n function requestResponseMessage(ep, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n ep.addEventListener("message", function l(ev) {\n if (!ev.data || !ev.data.id || ev.data.id !== id) {\n return;\n }\n ep.removeEventListener("message", l);\n resolve(ev.data);\n });\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n }\n function generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join("-");\n }\n\n /**\n * MatrixRenderer class is meant to be used within a Web Worker context,\n * using Comlink to facilitate communication between the main thread and the worker.\n * The MatrixRenderer class manages a matrix of dies, once an instance of MatrixRenderer is created,\n * it is exposed to the main thread using Comlink\'s `expose` method.\n * This setup is used in the wafer-map component to perform heavy computational duties\n */\n class MatrixRenderer {\n constructor() {\n this.values = Float64Array.from([]);\n this.scaledColumnIndices = Float64Array.from([]);\n this.scaledRowIndices = Float64Array.from([]);\n this.columnIndicesPositions = Int32Array.from([]);\n this.colorIndices = Int32Array.from([]);\n this.colors = [];\n this.colorValues = Float64Array.from([]);\n this.outsideRangeDieColor = \'rgba(218,223,236,1)\';\n this.fontSizeFactor = 0.8;\n this.renderConfig = {\n dieDimensions: {\n width: 0,\n height: 0\n },\n margin: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n verticalCoefficient: 1,\n horizontalCoefficient: 1,\n horizontalConstant: 0,\n verticalConstant: 0,\n gridMinX: 0,\n gridMaxX: 0,\n gridMinY: 0,\n gridMaxY: 0,\n labelsFontSize: 0,\n colorScale: [],\n dieLabelsSuffix: \'\',\n maxCharacters: 0\n };\n this.transformConfig = {\n transform: {\n k: 1,\n x: 0,\n y: 0\n },\n topLeftCanvasCorner: {\n x: 0,\n y: 0\n },\n bottomRightCanvasCorner: {\n x: 0,\n y: 0\n }\n };\n }\n setMatrixData(columnIndices, rowIndices, valuesBuffer) {\n const scaledColumnIndex = [];\n const columnPositions = [];\n const scaledRowIndices = [];\n const values = [];\n const colorIndices = [];\n let prevXIndex;\n let dieCount = 0;\n for (let i = 0; i < columnIndices.length; i++) {\n const xIndex = columnIndices[i];\n const yIndex = rowIndices[i];\n if (this.isDieInGrid(xIndex, yIndex)) {\n if (xIndex !== prevXIndex) {\n scaledColumnIndex.push(this.calculateHorizontalScaledIndices(xIndex));\n columnPositions.push(dieCount);\n prevXIndex = xIndex;\n }\n scaledRowIndices.push(this.calculateVerticalScaledIndices(yIndex));\n const value = valuesBuffer[i];\n values.push(value);\n colorIndices.push(this.findColorIndex(value));\n dieCount += 1;\n }\n }\n this.scaledColumnIndices = Float64Array.from(scaledColumnIndex);\n this.columnIndicesPositions = Int32Array.from(columnPositions);\n this.scaledRowIndices = Float64Array.from(scaledRowIndices);\n this.values = Float64Array.from(values);\n this.colorIndices = Int32Array.from(colorIndices);\n }\n setRenderConfig(renderConfig) {\n this.renderConfig = renderConfig;\n this.colors = renderConfig.colorScale.map(marker => marker.color);\n this.colorValues = Float64Array.from(renderConfig.colorScale.map(marker => marker.value));\n }\n setTransformConfig(transformData) {\n this.transformConfig = transformData;\n }\n setCanvas(canvas) {\n this.canvas = canvas;\n this.context = canvas.getContext(\'2d\');\n }\n scaleCanvas() {\n this.context.translate(this.transformConfig.transform.x, this.transformConfig.transform.y);\n this.context.scale(this.transformConfig.transform.k, this.transformConfig.transform.k);\n }\n setCanvasDimensions(data) {\n this.canvas.width = data.width;\n this.canvas.height = data.height;\n }\n getCanvasDimensions() {\n return {\n width: this.canvas.width,\n height: this.canvas.height\n };\n }\n clearCanvas() {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n }\n drawWafer() {\n this.context.restore();\n this.context.save();\n this.clearCanvas();\n this.scaleCanvas();\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n // Fill style is temporary green for all dies, will be replaced with a color based on the value of the die in a future implementation\n this.context.fillStyle = this.colors[this.colorIndices[columnStartIndex]]\n ?? this.outsideRangeDieColor;\n this.context.fillRect(scaledX, scaledY, this.renderConfig.dieDimensions.width, this.renderConfig.dieDimensions.height);\n }\n }\n }\n drawText() {\n this.context.font = `${this.renderConfig.labelsFontSize.toString()}px sans-serif`;\n this.context.fillStyle = \'#ffffff\';\n this.context.textAlign = \'center\';\n this.context.lineCap = \'butt\';\n const approximateTextHeight = this.context.measureText(\'M\');\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n let label = `${this.values[columnStartIndex] || \'NaN\'}${this.renderConfig.dieLabelsSuffix}`;\n if (label.length >= this.renderConfig.maxCharacters) {\n label = `${label.substring(0, this.renderConfig.maxCharacters)}…`;\n }\n this.context.fillText(label, scaledX + this.renderConfig.dieDimensions.width / 2, scaledY\n + this.renderConfig.dieDimensions.height / 2\n + approximateTextHeight.width / 2, this.renderConfig.dieDimensions.width * this.fontSizeFactor);\n }\n }\n }\n isDieInGrid(x, y) {\n return (x >= this.renderConfig.gridMinX\n && x <= this.renderConfig.gridMaxX\n && y >= this.renderConfig.gridMinY\n && y <= this.renderConfig.gridMaxY);\n }\n calculateHorizontalScaledIndices(columnIndex) {\n return (this.renderConfig.horizontalCoefficient * columnIndex\n + this.renderConfig.horizontalConstant\n + this.renderConfig.margin.left);\n }\n calculateVerticalScaledIndices(rowIndex) {\n return (this.renderConfig.verticalCoefficient * rowIndex\n + this.renderConfig.verticalConstant\n + this.renderConfig.margin.top);\n }\n findColorIndex(value) {\n let index = -1;\n if (this.colorValues.length === 0 || this.colorValues[0] >= value) {\n return index;\n }\n for (let i = 0; i < this.colorValues.length; i++) {\n if (value <= this.colorValues[i]) {\n index = i;\n break;\n }\n }\n return index;\n }\n }\n expose(MatrixRenderer);\n\n exports.MatrixRenderer = MatrixRenderer;\n\n return exports;\n\n})({});\n'],{type:"text/javascript"})
|
|
13216
|
-
|
|
13210
|
+
var n}const wq=new WeakMap
|
|
13211
|
+
function xq(e,t){return wq.set(e,t),e}function Cq(e){for(const[t,n]of dq)if(n.canHandle(e)){const[i,o]=n.serialize(e)
|
|
13212
|
+
return[{type:"HANDLER",name:t,value:i},o]}return[{type:"RAW",value:e},wq.get(e)||[]]}function kq(e){switch(e.type){case"HANDLER":return dq.get(e.name).deserialize(e.value)
|
|
13213
|
+
case"RAW":return e.value}}function Sq(e,t,n){return new Promise((i=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-")
|
|
13214
|
+
e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}let $q
|
|
13215
|
+
class Mq{constructor(e){this.wafermap=e,this.minDieDim=100}async setupWafer(e){if(void 0===this.matrixRenderer){const{matrixRenderer:e}=await(async()=>{if(void 0===$q){const e=new Blob(['var MatrixRenderer = (function (exports) {\n \'use strict\';\n\n /**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n const proxyMarker = Symbol("Comlink.proxy");\n const createEndpoint = Symbol("Comlink.endpoint");\n const releaseProxy = Symbol("Comlink.releaseProxy");\n const finalizer = Symbol("Comlink.finalizer");\n const throwMarker = Symbol("Comlink.thrown");\n const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";\n /**\n * Internal transfer handle to handle objects marked to proxy.\n */\n const proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n };\n /**\n * Internal transfer handler to handle thrown exceptions.\n */\n const throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n };\n /**\n * Allows customizing the serialization of certain values.\n */\n const transferHandlers = new Map([\n ["proxy", proxyTransferHandler],\n ["throw", throwTransferHandler],\n ]);\n function isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === "*") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n }\n function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {\n ep.addEventListener("message", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin \'${ev.origin}\' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case "GET" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case "SET" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case "APPLY" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case "CONSTRUCT" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case "ENDPOINT" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case "RELEASE" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === "RELEASE" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener("message", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === "function") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError("Unserializable return value"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n }\n function isMessagePort(endpoint) {\n return endpoint.constructor.name === "MessagePort";\n }\n function closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n }\n function wrap(ep, target) {\n return createProxy(ep, [], target);\n }\n function throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error("Proxy has been released and is not useable");\n }\n }\n function releaseEndpoint(ep) {\n return requestResponseMessage(ep, {\n type: "RELEASE" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n }\n const proxyCounter = new WeakMap();\n const proxyFinalizers = "FinalizationRegistry" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n function registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n }\n function unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n }\n function createProxy(ep, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, {\n type: "GET" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, {\n type: "SET" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, {\n type: "ENDPOINT" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === "bind") {\n return createProxy(ep, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "APPLY" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "CONSTRUCT" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n }\n function myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n }\n function processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n }\n const transferCache = new WeakMap();\n function transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n }\n function proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n }\n function toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: "HANDLER" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: "RAW" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n }\n function fromWireValue(value) {\n switch (value.type) {\n case "HANDLER" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case "RAW" /* WireValueType.RAW */:\n return value.value;\n }\n }\n function requestResponseMessage(ep, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n ep.addEventListener("message", function l(ev) {\n if (!ev.data || !ev.data.id || ev.data.id !== id) {\n return;\n }\n ep.removeEventListener("message", l);\n resolve(ev.data);\n });\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n }\n function generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join("-");\n }\n\n /**\n * MatrixRenderer class is meant to be used within a Web Worker context,\n * using Comlink to facilitate communication between the main thread and the worker.\n * The MatrixRenderer class manages a matrix of dies, once an instance of MatrixRenderer is created,\n * it is exposed to the main thread using Comlink\'s `expose` method.\n * This setup is used in the wafer-map component to perform heavy computational duties\n */\n class MatrixRenderer {\n constructor() {\n this.values = Float64Array.from([]);\n this.scaledColumnIndices = Float64Array.from([]);\n this.scaledRowIndices = Float64Array.from([]);\n this.columnIndicesPositions = Int32Array.from([]);\n this.colorIndices = Int32Array.from([]);\n this.colors = [];\n this.colorValues = Float64Array.from([]);\n this.outsideRangeDieColor = \'rgba(218,223,236,1)\';\n this.fontSizeFactor = 0.8;\n this.renderConfig = {\n dieDimensions: {\n width: 0,\n height: 0\n },\n margin: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n verticalCoefficient: 1,\n horizontalCoefficient: 1,\n horizontalConstant: 0,\n verticalConstant: 0,\n gridMinX: 0,\n gridMaxX: 0,\n gridMinY: 0,\n gridMaxY: 0,\n labelsFontSize: 0,\n colorScale: [],\n dieLabelsSuffix: \'\',\n maxCharacters: 0\n };\n this.transformConfig = {\n transform: {\n k: 1,\n x: 0,\n y: 0\n },\n topLeftCanvasCorner: {\n x: 0,\n y: 0\n },\n bottomRightCanvasCorner: {\n x: 0,\n y: 0\n }\n };\n }\n setMatrixData(columnIndices, rowIndices, valuesBuffer) {\n const scaledColumnIndex = [];\n const columnPositions = [];\n const scaledRowIndices = [];\n const values = [];\n const colorIndices = [];\n let prevXIndex;\n let dieCount = 0;\n for (let i = 0; i < columnIndices.length; i++) {\n const xIndex = columnIndices[i];\n const yIndex = rowIndices[i];\n if (this.isDieInGrid(xIndex, yIndex)) {\n if (xIndex !== prevXIndex) {\n scaledColumnIndex.push(this.calculateHorizontalScaledIndices(xIndex));\n columnPositions.push(dieCount);\n prevXIndex = xIndex;\n }\n scaledRowIndices.push(this.calculateVerticalScaledIndices(yIndex));\n const value = valuesBuffer[i];\n values.push(value);\n colorIndices.push(this.findColorIndex(value));\n dieCount += 1;\n }\n }\n this.scaledColumnIndices = Float64Array.from(scaledColumnIndex);\n this.columnIndicesPositions = Int32Array.from(columnPositions);\n this.scaledRowIndices = Float64Array.from(scaledRowIndices);\n this.values = Float64Array.from(values);\n this.colorIndices = Int32Array.from(colorIndices);\n }\n setRenderConfig(renderConfig) {\n this.renderConfig = renderConfig;\n this.colors = renderConfig.colorScale.map(marker => marker.color);\n this.colorValues = Float64Array.from(renderConfig.colorScale.map(marker => marker.value));\n }\n setTransformConfig(transformData) {\n this.transformConfig = transformData;\n }\n setCanvas(canvas) {\n this.canvas = canvas;\n this.context = canvas.getContext(\'2d\');\n }\n scaleCanvas() {\n this.context.translate(this.transformConfig.transform.x, this.transformConfig.transform.y);\n this.context.scale(this.transformConfig.transform.k, this.transformConfig.transform.k);\n }\n setCanvasDimensions(data) {\n this.canvas.width = data.width;\n this.canvas.height = data.height;\n }\n getCanvasDimensions() {\n return {\n width: this.canvas.width,\n height: this.canvas.height\n };\n }\n clearCanvas() {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n }\n drawWafer() {\n this.context.restore();\n this.context.save();\n this.clearCanvas();\n this.scaleCanvas();\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n // Fill style is temporary green for all dies, will be replaced with a color based on the value of the die in a future implementation\n this.context.fillStyle = this.colors[this.colorIndices[columnStartIndex]]\n ?? this.outsideRangeDieColor;\n this.context.fillRect(scaledX, scaledY, this.renderConfig.dieDimensions.width, this.renderConfig.dieDimensions.height);\n }\n }\n }\n drawText() {\n this.context.font = `${this.renderConfig.labelsFontSize.toString()}px sans-serif`;\n this.context.fillStyle = \'#ffffff\';\n this.context.textAlign = \'center\';\n this.context.lineCap = \'butt\';\n const approximateTextHeight = this.context.measureText(\'M\');\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n let label = `${this.values[columnStartIndex] || \'NaN\'}${this.renderConfig.dieLabelsSuffix}`;\n if (label.length >= this.renderConfig.maxCharacters) {\n label = `${label.substring(0, this.renderConfig.maxCharacters)}…`;\n }\n this.context.fillText(label, scaledX + this.renderConfig.dieDimensions.width / 2, scaledY\n + this.renderConfig.dieDimensions.height / 2\n + approximateTextHeight.width / 2, this.renderConfig.dieDimensions.width * this.fontSizeFactor);\n }\n }\n }\n isDieInGrid(x, y) {\n return (x >= this.renderConfig.gridMinX\n && x <= this.renderConfig.gridMaxX\n && y >= this.renderConfig.gridMinY\n && y <= this.renderConfig.gridMaxY);\n }\n calculateHorizontalScaledIndices(columnIndex) {\n return (this.renderConfig.horizontalCoefficient * columnIndex\n + this.renderConfig.horizontalConstant\n + this.renderConfig.margin.left);\n }\n calculateVerticalScaledIndices(rowIndex) {\n return (this.renderConfig.verticalCoefficient * rowIndex\n + this.renderConfig.verticalConstant\n + this.renderConfig.margin.top);\n }\n findColorIndex(value) {\n let index = -1;\n if (this.colorValues.length === 0 || this.colorValues[0] >= value) {\n return index;\n }\n for (let i = 0; i < this.colorValues.length; i++) {\n if (value <= this.colorValues[i]) {\n index = i;\n break;\n }\n }\n return index;\n }\n }\n expose(MatrixRenderer);\n\n exports.MatrixRenderer = MatrixRenderer;\n\n return exports;\n\n})({});\n'],{type:"text/javascript"})
|
|
13216
|
+
$q=URL.createObjectURL(e)}const e=new Worker($q),t=pq(e)
|
|
13217
13217
|
return{matrixRenderer:await new t,terminate:()=>e.terminate()}})()
|
|
13218
13218
|
this.matrixRenderer=e
|
|
13219
13219
|
const t=this.wafermap.workerCanvas.transferControlToOffscreen()
|
|
13220
|
-
await this.matrixRenderer.setCanvas(
|
|
13221
|
-
await this.matrixRenderer.setTransformConfig({transform:e.transform,topLeftCanvasCorner:{x:t[0]-e.dieDimensions.width,y:t[1]-e.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!e.dieLabelsHidden&&e.dieDimensions&&e.dieDimensions.width*e.dieDimensions.height*(e.transform.k||1)>=this.minDieDim&&await this.matrixRenderer.drawText()}renderHover(){void 0!==this.wafermap.computations.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.computations.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.computations.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?mB
|
|
13220
|
+
await this.matrixRenderer.setCanvas(xq(t,[t]))}await this.matrixRenderer.setCanvasDimensions(e.canvasDimensions),await this.matrixRenderer.setRenderConfig(e.renderConfig),await this.matrixRenderer.setMatrixData(e.columnIndices,e.rowIndices,e.values)}async drawWafer(e){const t=e.transform.invert([0,0]),n=e.transform.invert([e.canvasDimensions.width,e.canvasDimensions.height])
|
|
13221
|
+
await this.matrixRenderer.setTransformConfig({transform:e.transform,topLeftCanvasCorner:{x:t[0]-e.dieDimensions.width,y:t[1]-e.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!e.dieLabelsHidden&&e.dieDimensions&&e.dieDimensions.width*e.dieDimensions.height*(e.transform.k||1)>=this.minDieDim&&await this.matrixRenderer.drawText()}renderHover(){void 0!==this.wafermap.computations.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.computations.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.computations.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?gB:mB,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
|
|
13222
13222
|
if(void 0===e)return""
|
|
13223
13223
|
const t=this.wafermap.computations.verticalScale(this.wafermap.hoverDie.y)
|
|
13224
13224
|
if(void 0===t)return""
|
|
13225
13225
|
const n=this.wafermap.transform.apply([e+this.wafermap.computations.margin.left,t+this.wafermap.computations.margin.top])
|
|
13226
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}class
|
|
13226
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}class _q{constructor(e){this.wafermap=e,this.onMouseMove=e=>{if(!this.wafermap.isExperimentalUpdate())return
|
|
13227
13227
|
const t=this.wafermap.transform.invert([e.offsetX,e.offsetY]),n=this.calculateDieCoordinates({x:t[0],y:t[1]})
|
|
13228
13228
|
if(void 0===n||!this.isDieInGrid(n.x,n.y))return void(this.wafermap.hoverDie=void 0)
|
|
13229
13229
|
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
13230
13230
|
for(let e=0;e<i.length;e++)if(i[e]===n.x&&o[e]===n.y)return void(this.wafermap.hoverDie={index:e,x:n.x,y:n.y})
|
|
13231
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=e=>{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(e){if(this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===
|
|
13232
|
-
return{x:n(this.wafermap.computations.horizontalScale.invert(e.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(e.y-this.wafermap.computations.margin.top))}}}isDieInGrid(e,t){return e>=this.wafermap.computations.gridMinX&&e<=this.wafermap.computations.gridMaxX&&t>=this.wafermap.computations.gridMinY&&t<=this.wafermap.computations.gridMaxY}}class
|
|
13231
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=e=>{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(e){if(this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===hB||t===pB?Math.floor:Math.ceil,i=t===hB||t===uB?Math.ceil:Math.floor
|
|
13232
|
+
return{x:n(this.wafermap.computations.horizontalScale.invert(e.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(e.y-this.wafermap.computations.margin.top))}}}isDieInGrid(e,t){return e>=this.wafermap.computations.gridMinX&&e<=this.wafermap.computations.gridMaxX&&t>=this.wafermap.computations.gridMinY&&t<=this.wafermap.computations.gridMaxY}}class Eq{constructor(e){this.wafermap=e,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=e=>{e.preventDefault()},this.wafermapNotifier=m.getNotifier(this.wafermap),this.wafermapNotifier.subscribe(this,"canvasWidth"),this.wafermapNotifier.subscribe(this,"canvasHeight")}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){gH().on("zoom",null)(ZL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(e,t){e!==this.wafermap||"canvasWidth"!==t&&"canvasHeight"!==t||this.createZoomBehavior()}createZoomBehavior(){gH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(e=>{this.wafermap.transform=e.transform}))(ZL(this.wafermap))}}class Iq{get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get verticalCoefficient(){return this._verticalCoefficient}get horizontalCoefficient(){return this._horizontalCoefficient}get horizontalConstant(){return this._horizontalConstant}get verticalConstant(){return this._verticalConstant}get gridMinX(){return this._gridMinX}get gridMaxX(){return this._gridMaxX}get gridMinY(){return this._gridMinY}get gridMaxY(){return this._gridMaxY}get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(e){this.wafermap=e,this.baseMarginPercentage=.04,this.fontSizeFactor=.8,this.colorScaleResolution=10}componentResizeUpdate(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
13233
13233
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this.margin),this.inputDataUpdate()}inputDataUpdate(){if(void 0===this._containerDimensions)return void this.componentResizeUpdate()
|
|
13234
13234
|
const e=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
13235
13235
|
this.gridDimensionsValidAndDefined()?this.setGridDimensionsFromBoundingBox():this.setGridDimensionsFromDies()
|
|
@@ -13237,27 +13237,27 @@ const t=this.wafermap.originLocation
|
|
|
13237
13237
|
this._horizontalScale=this.createHorizontalScale(t,e),this._verticalScale=this.createVerticalScale(t,e),this._horizontalCoefficient=this._horizontalScale(1)-this._horizontalScale(0),this._verticalCoefficient=this._verticalScale(1)-this._verticalScale(0),this._horizontalConstant=this._horizontalScale(0),this._verticalConstant=this._verticalScale(0),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))},this.colorAndTextUpdate()}colorAndTextUpdate(){void 0!==this._dieDimensions?(this._labelsFontSize=this.calculateLabelsFontSize(this._dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()):this.inputDataUpdate()}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}setGridDimensionsFromBoundingBox(){this._gridMinX=this.wafermap.gridMinX,this._gridMinY=this.wafermap.gridMinY,this._gridMaxX=this.wafermap.gridMaxX,this._gridMaxY=this.wafermap.gridMaxY}setGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return
|
|
13238
13238
|
const e=this.wafermap.diesTable.getChild("colIndex").toArray(),t=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:e[0],y:t[0]},i={x:e[0],y:t[0]}
|
|
13239
13239
|
for(let o=0;o<e.length;o++)e[o]<n.x&&(n.x=e[o]),e[o]>i.x&&(i.x=e[o]),t[o]<n.y&&(n.y=t[o]),t[o]>i.y&&(i.y=t[o])
|
|
13240
|
-
this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t){const n=
|
|
13241
|
-
return e===
|
|
13242
|
-
return e===
|
|
13240
|
+
this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t){const n=cB()
|
|
13241
|
+
return e===hB||e===pB?n.domain([this._gridMinX,this._gridMaxX+1]).range([0,t]):n.domain([this._gridMinX-1,this._gridMaxX]).range([t,0])}createVerticalScale(e,t){const n=cB()
|
|
13242
|
+
return e===hB||e===uB?n.domain([this._gridMinY-1,this._gridMaxY]).range([t,0]):n.domain([this._gridMinY,this._gridMaxY+1]).range([0,t])}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}calculateColorScale(){if(this.wafermap.colorScaleMode===vB){const e=this.wafermap.colorScale.values.map((e=>+e)),t=cB().domain(e).range(this.wafermap.colorScale.colors)
|
|
13243
13243
|
let n=e[0],i=e[0]
|
|
13244
13244
|
e.forEach((e=>{e<n&&(n=e),e>i&&(i=e)}))
|
|
13245
|
-
return
|
|
13245
|
+
return RH(n,i,(i-n)/(e.length*this.colorScaleResolution)).concat(i).map((e=>({color:t(e),value:e})))}return this.wafermap.colorScale.colors.map(((e,t)=>({color:e,value:+this.wafermap.colorScale.values[t]}))).sort(((e,t)=>e.value-t.value))}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}}class Dq extends Vt{constructor(){super(...arguments),this.waferMapUpdateTracker=new kB(this.asRequiredFieldsWaferMap),this.originLocation=hB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=fB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=vB,this.computations=new Iq(this.asRequiredFieldsWaferMap),this.dataManager=new wB(this.asRequiredFieldsWaferMap),this.workerRenderer=new Mq(this.asRequiredFieldsWaferMap),this.renderer=new xB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=aH,this.hoverTransform="",this.hoverOpacity=gB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(e){this.wafermap=e,this.onMouseMove=e=>{if(this.wafermap.isExperimentalUpdate())return
|
|
13246
13246
|
const t={x:e.offsetX,y:e.offsetY}
|
|
13247
13247
|
if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
|
|
13248
13248
|
const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
13249
|
-
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=e=>{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(e){if(!this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===
|
|
13249
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=e=>{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(e){if(!this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===hB||t===pB?Math.floor:Math.ceil,i=t===hB||t===uB?Math.floor:Math.ceil
|
|
13250
13250
|
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(e.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(e.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(e){const t=this.wafermap.canvasContext.getImageData(e.x,e.y,1,1).data
|
|
13251
13251
|
let n=0
|
|
13252
13252
|
for(const e of t)n+=e
|
|
13253
|
-
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new
|
|
13253
|
+
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new _q(this.asRequiredFieldsWaferMap),this.zoomHandler=new Eq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new iq(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)}async experimentalUpdate(){if(!this.validity.invalidDiesTableSchema){if(this.waferMapUpdateTracker.requiresEventsUpdate){this.waferMapUpdateTracker.requiresComponentResizeUpdate?this.computations.componentResizeUpdate():this.waferMapUpdateTracker.requiresInputDataUpdate?this.computations.inputDataUpdate():this.waferMapUpdateTracker.requiresColorAndTextUpdate&&this.computations.colorAndTextUpdate()
|
|
13254
13254
|
const e=this.createSnapshot()
|
|
13255
13255
|
this.waferMapUpdateTracker.requiresWorkerWaferSetup&&await this.workerRenderer.setupWafer(e),await this.workerRenderer.drawWafer(e)}this.workerRenderer.renderHover()}}update(){this.validate(),this.isExperimentalUpdate()?this.currentTask=this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?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.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}createSnapshot(){const e={width:this.canvasWidth??0,height:this.canvasHeight??0},t={dieDimensions:this.computations.dieDimensions,margin:this.computations.margin,verticalCoefficient:this.computations.verticalCoefficient,horizontalCoefficient:this.computations.horizontalCoefficient,horizontalConstant:this.computations.horizontalConstant,verticalConstant:this.computations.verticalConstant,gridMinX:this.computations.gridMinX,gridMaxX:this.computations.gridMaxX,gridMinY:this.computations.gridMinY,gridMaxY:this.computations.gridMaxY,labelsFontSize:this.computations.labelsFontSize,colorScale:this.computations.colorScale,dieLabelsSuffix:this.dieLabelsSuffix,maxCharacters:this.maxCharacters},n=this.computations.dieDimensions,i=this.transform,o=this.dieLabelsHidden
|
|
13256
13256
|
if(void 0===this.diesTable)return{canvasDimensions:e,renderConfig:t,dieDimensions:n,transform:i,dieLabelsHidden:o,columnIndices:Int32Array.from([]),rowIndices:Int32Array.from([]),values:Float64Array.from([])}
|
|
13257
13257
|
return{canvasDimensions:e,renderConfig:t,columnIndices:this.diesTable.getChild("colIndex").toArray(),rowIndices:this.diesTable.getChild("rowIndex").toArray(),values:this.diesTable.getChild("value").toArray(),dieDimensions:n,transform:i,dieLabelsHidden:o}}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
|
|
13258
13258
|
if(void 0===t)return
|
|
13259
13259
|
const{height:n,width:i}=t.contentRect
|
|
13260
|
-
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}}e([le({attribute:"origin-location"})],
|
|
13261
|
-
const Dq
|
|
13262
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
13260
|
+
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}}e([le({attribute:"origin-location"})],Dq.prototype,"originLocation",void 0),e([le({attribute:"grid-min-x",converter:re})],Dq.prototype,"gridMinX",void 0),e([le({attribute:"grid-max-x",converter:re})],Dq.prototype,"gridMaxX",void 0),e([le({attribute:"grid-min-y",converter:re})],Dq.prototype,"gridMinY",void 0),e([le({attribute:"grid-max-y",converter:re})],Dq.prototype,"gridMaxY",void 0),e([le],Dq.prototype,"orientation",void 0),e([le({attribute:"max-characters",converter:re})],Dq.prototype,"maxCharacters",void 0),e([le({attribute:"die-labels-hidden",mode:"boolean"})],Dq.prototype,"dieLabelsHidden",void 0),e([le({attribute:"die-labels-suffix"})],Dq.prototype,"dieLabelsSuffix",void 0),e([le({attribute:"color-scale-mode"})],Dq.prototype,"colorScaleMode",void 0),e([g],Dq.prototype,"renderer",void 0),e([g],Dq.prototype,"canvasWidth",void 0),e([g],Dq.prototype,"canvasHeight",void 0),e([g],Dq.prototype,"transform",void 0),e([g],Dq.prototype,"hoverTransform",void 0),e([g],Dq.prototype,"hoverOpacity",void 0),e([g],Dq.prototype,"hoverWidth",void 0),e([g],Dq.prototype,"hoverHeight",void 0),e([g],Dq.prototype,"hoverDie",void 0),e([g],Dq.prototype,"highlightedTags",void 0),e([g],Dq.prototype,"dies",void 0),e([g],Dq.prototype,"diesTable",void 0),e([g],Dq.prototype,"colorScale",void 0)
|
|
13261
|
+
const Aq=Dq.compose({baseName:"wafer-map",template:vH,styles:bH})
|
|
13262
|
+
yi.getOrCreate().withPrefix("nimble").register(Aq())}()
|
|
13263
13263
|
//# sourceMappingURL=all-components-bundle.min.js.map
|