@ni/nimble-components 25.0.0 → 25.1.0
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 +39 -5
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +389 -388
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/src/table-column/icon/cell-view/index.d.ts +2 -1
- package/dist/esm/src/table-column/icon/group-header-view/index.d.ts +2 -1
- package/dist/esm/table-column/icon/cell-view/index.d.ts +2 -1
- package/dist/esm/table-column/icon/cell-view/index.js +13 -1
- package/dist/esm/table-column/icon/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/index.d.ts +2 -1
- package/dist/esm/table-column/icon/group-header-view/index.js +11 -2
- package/dist/esm/table-column/icon/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/index.js +5 -0
- package/dist/esm/table-column/icon/index.js.map +1 -1
- package/dist/esm/table-column/icon/models/table-column-icon-validator.js +4 -1
- package/dist/esm/table-column/icon/models/table-column-icon-validator.js.map +1 -1
- package/package.json +2 -3
|
@@ -11281,7 +11281,7 @@ return new fN(_a.getValueFor(this),{numberTextFormat:this.format??void 0,decimal
|
|
|
11281
11281
|
const yN=bN.compose({baseName:"table-column-number-text",template:QF,styles:nF})
|
|
11282
11282
|
wi.getOrCreate().withPrefix("nimble").register(yN())
|
|
11283
11283
|
const wN=[...qF,"unsupportedMappingType","invalidIconName","missingTextValue"]
|
|
11284
|
-
class xN extends UF{constructor(){super(wN)}static isIconMappingElement(t){return t instanceof Tv}static isSupportedMappingElement(t){return t instanceof Tv||t instanceof Rv}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(xN.isIconMappingElement).some(xN.hasUnresolvedIcon)
|
|
11284
|
+
class xN extends UF{constructor(){super(wN)}static isIconMappingElement(t){return t instanceof Tv}static isSupportedMappingElement(t){return t instanceof Tv||t instanceof Rv||t instanceof Iv}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(xN.isIconMappingElement).some(xN.hasUnresolvedIcon)
|
|
11285
11285
|
this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(xN.isSupportedMappingElement).some((t=>void 0===t.text))
|
|
11286
11286
|
this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(xN.isSupportedMappingElement)
|
|
11287
11287
|
this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
|
|
@@ -11317,9 +11317,9 @@ this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
|
|
|
11317
11317
|
title="${t=>t.hasOverflow&&t.text?t.text:null}"
|
|
11318
11318
|
class="text"
|
|
11319
11319
|
>${t=>t.text}</span>
|
|
11320
|
-
`,SN=Z` `
|
|
11321
|
-
class
|
|
11322
|
-
super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)
|
|
11320
|
+
`,SN={default:void 0,error:"error",warning:"warning",success:"success",information:"information"},$N=Z` `
|
|
11321
|
+
class MN extends ZF{constructor(t,e,n,i){var o
|
|
11322
|
+
super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?$N:Z`
|
|
11323
11323
|
<${o}
|
|
11324
11324
|
title="${t=>t.textHidden?t.text:""}"
|
|
11325
11325
|
role="img"
|
|
@@ -11328,7 +11328,7 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?SN:Z
|
|
|
11328
11328
|
severity="${t=>t.severity}"
|
|
11329
11329
|
>
|
|
11330
11330
|
</${o}>
|
|
11331
|
-
`}}const
|
|
11331
|
+
`}}const _N=Z`
|
|
11332
11332
|
<${IT}
|
|
11333
11333
|
title="${t=>t.textHidden?t.text:""}"
|
|
11334
11334
|
aria-label="${t=>t.text}"
|
|
@@ -11336,12 +11336,12 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?SN:Z
|
|
|
11336
11336
|
>
|
|
11337
11337
|
</${IT}>
|
|
11338
11338
|
`
|
|
11339
|
-
class
|
|
11339
|
+
class EN extends ZF{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=_N}}class IN extends hF{constructor(){super(...arguments),this.textHidden=!1}updateText(){if(this.resetState(),!this.columnConfig)return
|
|
11340
11340
|
const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
|
|
11341
|
-
e instanceof
|
|
11342
|
-
const IN
|
|
11343
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11344
|
-
const
|
|
11341
|
+
e instanceof MN?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof EN?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):e instanceof GF&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=SN.default}}t([g],IN.prototype,"severity",void 0),t([g],IN.prototype,"visualizationTemplate",void 0)
|
|
11342
|
+
const DN=IN.compose({baseName:"table-column-icon-group-header-view",template:kN,styles:CN})
|
|
11343
|
+
wi.getOrCreate().withPrefix("nimble").register(DN())
|
|
11344
|
+
const AN=xt`
|
|
11345
11345
|
${Oo("inline-flex")}
|
|
11346
11346
|
|
|
11347
11347
|
:host {
|
|
@@ -11363,7 +11363,7 @@ const DN=xt`
|
|
|
11363
11363
|
overflow: hidden;
|
|
11364
11364
|
text-overflow: ellipsis;
|
|
11365
11365
|
}
|
|
11366
|
-
`,
|
|
11366
|
+
`,TN=Z`
|
|
11367
11367
|
${Ht((t=>t.visualizationTemplate),Z`
|
|
11368
11368
|
<span class="reserve-icon-size">
|
|
11369
11369
|
${t=>t.visualizationTemplate}
|
|
@@ -11379,22 +11379,23 @@ const DN=xt`
|
|
|
11379
11379
|
</span>
|
|
11380
11380
|
`)}
|
|
11381
11381
|
`
|
|
11382
|
-
class
|
|
11382
|
+
class ON 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
|
|
11383
11383
|
const t=this.cellRecord.value
|
|
11384
11384
|
if(null==t)return
|
|
11385
11385
|
const e=this.columnConfig.mappingConfigs.get(t)
|
|
11386
|
-
e instanceof
|
|
11387
|
-
const ON
|
|
11388
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11389
|
-
class
|
|
11390
|
-
if(t instanceof Rv)return new
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
const NN=class extends MF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:SF,styles:$F})
|
|
11386
|
+
e instanceof MN?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof EN?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof GF&&(this.text=e.text,this.textHidden=!1)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=SN.default}}t([g],ON.prototype,"severity",void 0),t([g],ON.prototype,"text",void 0),t([g],ON.prototype,"visualizationTemplate",void 0),t([g],ON.prototype,"textHidden",void 0),t([g],ON.prototype,"hasOverflow",void 0)
|
|
11387
|
+
const RN=ON.compose({baseName:"table-column-icon-cell-view",template:TN,styles:AN})
|
|
11388
|
+
wi.getOrCreate().withPrefix("nimble").register(RN())
|
|
11389
|
+
class FN extends(sF(oF(VF))){getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new xN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Tv)return new MN(t.resolvedIcon,t.severity,t.text,t.textHidden)
|
|
11390
|
+
if(t instanceof Rv)return new EN(t.text,t.textHidden)
|
|
11391
|
+
if(t instanceof Iv)return new GF(t.text)
|
|
11392
|
+
throw new Error("Unsupported mapping")}}const NN=FN.compose({baseName:"table-column-icon",template:BF,styles:HF})
|
|
11394
11393
|
wi.getOrCreate().withPrefix("nimble").register(NN())
|
|
11395
|
-
|
|
11396
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11397
|
-
const zN=
|
|
11394
|
+
const PN=class extends MF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:SF,styles:$F})
|
|
11395
|
+
wi.getOrCreate().withPrefix("nimble").register(PN())
|
|
11396
|
+
class LN extends(yF(bF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:mF,delegatedEvents:[],sortOperation:WO,validator:new QR([])}}}const zN=LN.compose({baseName:"table-column-text",template:iF,styles:nF})
|
|
11397
|
+
wi.getOrCreate().withPrefix("nimble").register(zN())
|
|
11398
|
+
const VN=xt`
|
|
11398
11399
|
${Oo("grid")}
|
|
11399
11400
|
|
|
11400
11401
|
:host {
|
|
@@ -11422,7 +11423,7 @@ const zN=xt`
|
|
|
11422
11423
|
overflow: auto;
|
|
11423
11424
|
}
|
|
11424
11425
|
`
|
|
11425
|
-
const
|
|
11426
|
+
const HN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:ro,template:(t,e)=>Z`
|
|
11426
11427
|
<template class="${t=>t.orientation}">
|
|
11427
11428
|
${ne(0,e)}
|
|
11428
11429
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -11441,9 +11442,9 @@ const VN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
11441
11442
|
<slot name="tabpanel" ${Xt("tabpanels")}></slot>
|
|
11442
11443
|
</div>
|
|
11443
11444
|
</template>
|
|
11444
|
-
`,styles:
|
|
11445
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11446
|
-
const
|
|
11445
|
+
`,styles:VN})
|
|
11446
|
+
wi.getOrCreate().withPrefix("nimble").register(HN())
|
|
11447
|
+
const BN=xt`
|
|
11447
11448
|
${Oo("flex")}
|
|
11448
11449
|
|
|
11449
11450
|
:host {
|
|
@@ -11461,15 +11462,15 @@ const HN=xt`
|
|
|
11461
11462
|
rgba(${Ha}, 0.3);
|
|
11462
11463
|
margin: ${sl} ${rl};
|
|
11463
11464
|
}
|
|
11464
|
-
`,
|
|
11465
|
+
`,qN=Z`
|
|
11465
11466
|
<template slot="end">
|
|
11466
11467
|
<div class="separator"></div>
|
|
11467
11468
|
<slot></slot>
|
|
11468
11469
|
</template>
|
|
11469
11470
|
`
|
|
11470
|
-
const
|
|
11471
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11472
|
-
const
|
|
11471
|
+
const UN=class extends Ve{}.compose({baseName:"tabs-toolbar",template:qN,styles:BN})
|
|
11472
|
+
wi.getOrCreate().withPrefix("nimble").register(UN())
|
|
11473
|
+
const jN="outline",WN="block",ZN=xt`
|
|
11473
11474
|
${Oo("inline-flex")}
|
|
11474
11475
|
${rg}
|
|
11475
11476
|
|
|
@@ -11609,12 +11610,12 @@ const UN="outline",jN="block",WN=xt`
|
|
|
11609
11610
|
top: ${rl};
|
|
11610
11611
|
right: var(--ni-private-scrollbar-width);
|
|
11611
11612
|
}
|
|
11612
|
-
`.withBehaviors(sh(
|
|
11613
|
+
`.withBehaviors(sh(jN,xt`
|
|
11613
11614
|
.control {
|
|
11614
11615
|
border-color: rgba(${Ha}, 0.3);
|
|
11615
11616
|
background-color: transparent;
|
|
11616
11617
|
}
|
|
11617
|
-
`),sh(
|
|
11618
|
+
`),sh(WN,xt`
|
|
11618
11619
|
.control {
|
|
11619
11620
|
background-color: rgba(${Ha}, 0.1);
|
|
11620
11621
|
}
|
|
@@ -11632,8 +11633,8 @@ const UN="outline",jN="block",WN=xt`
|
|
|
11632
11633
|
border-bottom-color: ${Ba};
|
|
11633
11634
|
}
|
|
11634
11635
|
`))
|
|
11635
|
-
class
|
|
11636
|
-
const GN
|
|
11636
|
+
class GN extends ho{constructor(){super(...arguments),this.appearance=jN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([lt],GN.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],GN.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],GN.prototype,"errorVisible",void 0),t([g],GN.prototype,"scrollbarWidth",void 0)
|
|
11637
|
+
const KN=GN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
|
|
11637
11638
|
<label
|
|
11638
11639
|
part="label"
|
|
11639
11640
|
for="control"
|
|
@@ -11690,9 +11691,9 @@ const GN=ZN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
|
|
|
11690
11691
|
></${hm}>
|
|
11691
11692
|
${Qm}
|
|
11692
11693
|
</div>
|
|
11693
|
-
`,styles:
|
|
11694
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11695
|
-
const
|
|
11694
|
+
`,styles:ZN,shadowOptions:{delegatesFocus:!0}})
|
|
11695
|
+
wi.getOrCreate().withPrefix("nimble").register(KN())
|
|
11696
|
+
const JN="underline",XN="outline",YN="block",QN="frameless",tP=xt`
|
|
11696
11697
|
${Oo("inline-block")}
|
|
11697
11698
|
${rg}
|
|
11698
11699
|
|
|
@@ -11864,12 +11865,12 @@ const KN="underline",JN="outline",XN="block",YN="frameless",QN=xt`
|
|
|
11864
11865
|
slot[name='actions']::slotted(*) {
|
|
11865
11866
|
${il.cssCustomProperty}: 24px;
|
|
11866
11867
|
}
|
|
11867
|
-
`.withBehaviors(sh(
|
|
11868
|
+
`.withBehaviors(sh(JN,xt`
|
|
11868
11869
|
.root {
|
|
11869
11870
|
border-bottom-width: ${cl};
|
|
11870
11871
|
padding-bottom: 0;
|
|
11871
11872
|
}
|
|
11872
|
-
`),sh(
|
|
11873
|
+
`),sh(YN,xt`
|
|
11873
11874
|
.root {
|
|
11874
11875
|
background-color: rgba(${Ha}, 0.1);
|
|
11875
11876
|
}
|
|
@@ -11897,12 +11898,12 @@ const KN="underline",JN="outline",XN="block",YN="frameless",QN=xt`
|
|
|
11897
11898
|
:host([disabled]) .root {
|
|
11898
11899
|
background-color: rgba(${Ha}, 0.07);
|
|
11899
11900
|
}
|
|
11900
|
-
`),sh(
|
|
11901
|
+
`),sh(XN,xt`
|
|
11901
11902
|
.root {
|
|
11902
11903
|
border-width: ${cl};
|
|
11903
11904
|
padding: 0;
|
|
11904
11905
|
}
|
|
11905
|
-
`),sh(
|
|
11906
|
+
`),sh(QN,xt`
|
|
11906
11907
|
.control {
|
|
11907
11908
|
padding-left: ${cl};
|
|
11908
11909
|
padding-right: ${cl};
|
|
@@ -11920,8 +11921,8 @@ const KN="underline",JN="outline",XN="block",YN="frameless",QN=xt`
|
|
|
11920
11921
|
filter: invert(100%);
|
|
11921
11922
|
}
|
|
11922
11923
|
`))
|
|
11923
|
-
class
|
|
11924
|
-
const eP
|
|
11924
|
+
class eP extends Vi{constructor(){super(...arguments),this.appearance=JN,this.errorVisible=!1,this.fullBleed=!1}}t([lt],eP.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],eP.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],eP.prototype,"errorVisible",void 0),t([lt({attribute:"full-bleed",mode:"boolean"})],eP.prototype,"fullBleed",void 0)
|
|
11925
|
+
const nP=eP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
|
|
11925
11926
|
<template
|
|
11926
11927
|
class="
|
|
11927
11928
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -11981,7 +11982,7 @@ const eP=tP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
|
|
|
11981
11982
|
${ee(0,e)}
|
|
11982
11983
|
</div>
|
|
11983
11984
|
</template>
|
|
11984
|
-
`,styles:
|
|
11985
|
+
`,styles:tP,shadowOptions:{delegatesFocus:!0},end:Z`
|
|
11985
11986
|
<${hm}
|
|
11986
11987
|
severity="error"
|
|
11987
11988
|
class="error-icon"
|
|
@@ -11991,8 +11992,8 @@ const eP=tP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
|
|
|
11991
11992
|
</span>
|
|
11992
11993
|
${Qm}
|
|
11993
11994
|
`})
|
|
11994
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11995
|
-
const
|
|
11995
|
+
wi.getOrCreate().withPrefix("nimble").register(nP())
|
|
11996
|
+
const iP=xt`
|
|
11996
11997
|
${Oo("inline-flex")}
|
|
11997
11998
|
|
|
11998
11999
|
:host {
|
|
@@ -12077,7 +12078,7 @@ const nP=xt`
|
|
|
12077
12078
|
.status-icon {
|
|
12078
12079
|
opacity: 0.6;
|
|
12079
12080
|
}
|
|
12080
|
-
`)),
|
|
12081
|
+
`)),oP=Z`
|
|
12081
12082
|
${Ht((t=>t.tooltipVisible),Z`
|
|
12082
12083
|
<${Eh}
|
|
12083
12084
|
class="anchored-region"
|
|
@@ -12110,11 +12111,11 @@ const nP=xt`
|
|
|
12110
12111
|
</${Eh}>
|
|
12111
12112
|
`)}
|
|
12112
12113
|
`
|
|
12113
|
-
class
|
|
12114
|
-
const sP
|
|
12115
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12116
|
-
const
|
|
12117
|
-
class
|
|
12114
|
+
class sP extends Io{constructor(){super(...arguments),this.iconVisible=!1}}t([lt],sP.prototype,"severity",void 0),t([lt({attribute:"icon-visible",mode:"boolean"})],sP.prototype,"iconVisible",void 0)
|
|
12115
|
+
const rP=sP.compose({baseName:"tooltip",baseClass:Io,template:oP,styles:iP})
|
|
12116
|
+
wi.getOrCreate().withPrefix("nimble").register(rP())
|
|
12117
|
+
const aP="group-selected",lP="all",cP="leaves-only",dP="none"
|
|
12118
|
+
class hP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const uP=xt`
|
|
12118
12119
|
${Oo("block")}
|
|
12119
12120
|
|
|
12120
12121
|
:host {
|
|
@@ -12135,7 +12136,7 @@ class dP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12135
12136
|
}
|
|
12136
12137
|
|
|
12137
12138
|
${""}
|
|
12138
|
-
:host([${
|
|
12139
|
+
:host([${aP}])::after {
|
|
12139
12140
|
background: ${Wa};
|
|
12140
12141
|
border-radius: 0px;
|
|
12141
12142
|
content: '';
|
|
@@ -12157,7 +12158,7 @@ class dP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12157
12158
|
background: ${za};
|
|
12158
12159
|
}
|
|
12159
12160
|
|
|
12160
|
-
:host([${
|
|
12161
|
+
:host([${aP}]) .positioning-region:hover {
|
|
12161
12162
|
background: ${La};
|
|
12162
12163
|
}
|
|
12163
12164
|
|
|
@@ -12263,7 +12264,7 @@ class dP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12263
12264
|
display: block;
|
|
12264
12265
|
}
|
|
12265
12266
|
`.withBehaviors(new class{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
|
|
12266
|
-
e&&Ea.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new
|
|
12267
|
+
e&&Ea.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new hP(this.ltr,this.rtl,t),n=Ea.getValueFor(t)
|
|
12267
12268
|
Ea.subscribe(e),e.attach(n),this.cache.set(t,e)}}(xt`
|
|
12268
12269
|
.expand-collapse-button {
|
|
12269
12270
|
left: var(
|
|
@@ -12295,8 +12296,8 @@ Ea.subscribe(e),e.attach(n),this.cache.set(t,e)}}(xt`
|
|
|
12295
12296
|
transform: rotate(135deg);
|
|
12296
12297
|
}
|
|
12297
12298
|
`))
|
|
12298
|
-
class
|
|
12299
|
-
const pP
|
|
12299
|
+
class pP extends Ao{constructor(){super(...arguments),this.groupSelected=!1}}t([lt({attribute:"group-selected",mode:"boolean"})],pP.prototype,"groupSelected",void 0)
|
|
12300
|
+
const fP=pP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
|
|
12300
12301
|
<template
|
|
12301
12302
|
role="treeitem"
|
|
12302
12303
|
slot="${t=>t.isNestedItem()?"item":void 0}"
|
|
@@ -12336,9 +12337,9 @@ const pP=uP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
|
|
|
12336
12337
|
</div>
|
|
12337
12338
|
`)}
|
|
12338
12339
|
</template>
|
|
12339
|
-
`,styles:
|
|
12340
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12341
|
-
const
|
|
12340
|
+
`,styles:uP,expandCollapseGlyph:qh.data})
|
|
12341
|
+
wi.getOrCreate().withPrefix("nimble").register(fP())
|
|
12342
|
+
const mP=xt`
|
|
12342
12343
|
${Oo("flex")}
|
|
12343
12344
|
|
|
12344
12345
|
:host {
|
|
@@ -12350,7 +12351,7 @@ const fP=xt`
|
|
|
12350
12351
|
:host(${No}) {
|
|
12351
12352
|
outline: none;
|
|
12352
12353
|
}
|
|
12353
|
-
`,
|
|
12354
|
+
`,gP=Z`
|
|
12354
12355
|
<template
|
|
12355
12356
|
role="tree"
|
|
12356
12357
|
${Pt("treeView")}
|
|
@@ -12364,246 +12365,246 @@ const fP=xt`
|
|
|
12364
12365
|
<slot ${Xt("slottedTreeItems")}></slot>
|
|
12365
12366
|
</template>
|
|
12366
12367
|
`
|
|
12367
|
-
class
|
|
12368
|
+
class vP extends To{constructor(){super(...arguments),this.selectionMode=lP,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
|
|
12368
12369
|
if(!(t.target instanceof Element&&Do(t.target)))return!0
|
|
12369
12370
|
const e=t.target
|
|
12370
|
-
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case
|
|
12371
|
-
case
|
|
12372
|
-
case
|
|
12373
|
-
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof
|
|
12371
|
+
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case lP:return!0
|
|
12372
|
+
case dP:return!1
|
|
12373
|
+
case cP:return!this.itemHasChildren(t)
|
|
12374
|
+
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof pP&&(t.groupSelected=!1)
|
|
12374
12375
|
for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
|
|
12375
|
-
t instanceof
|
|
12376
|
-
const vP
|
|
12377
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12378
|
-
const
|
|
12379
|
-
class
|
|
12380
|
-
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new
|
|
12376
|
+
t instanceof pP&&(t.groupSelected=!0)}}}t([lt({attribute:"selection-mode"})],vP.prototype,"selectionMode",void 0),t([g],vP.prototype,"selectedItems",void 0)
|
|
12377
|
+
const bP=vP.compose({baseName:"tree-view",baseClass:To,template:gP,styles:mP})
|
|
12378
|
+
wi.getOrCreate().withPrefix("nimble").register(bP())
|
|
12379
|
+
const yP=Z`<template slot="unit"></template>`
|
|
12380
|
+
class wP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class xP extends rN{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
|
|
12381
|
+
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new xP(e,t)}format(t){const e=this.formatter.format(t)
|
|
12381
12382
|
if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
|
|
12382
12383
|
return`${e} ${"one"===this.pluralRules.select(t)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(t,e){const n=new Intl.Locale(e??"en"),i=n.language,o=n.region
|
|
12383
|
-
return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const
|
|
12384
|
-
const
|
|
12385
|
-
const
|
|
12386
|
-
class
|
|
12387
|
-
const _P
|
|
12388
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12389
|
-
const
|
|
12390
|
-
const
|
|
12391
|
-
const
|
|
12392
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12393
|
-
var
|
|
12394
|
-
function
|
|
12395
|
-
i[t]=[]}return new
|
|
12396
|
-
break}return null!=n&&t.push({name:e,value:n}),t}
|
|
12384
|
+
return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const CP=new Map([["en",new wP("byte","bytes","B")],["fr",new wP("octet","octets","o")],["de",new wP("Byte","Byte","B")],["ja",new wP("バイト","バイト","B")],["zh",new wP("字节","字节","B")]]),kP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
|
|
12385
|
+
const SP=new class extends cN{constructor(){super(kP.map((([t,e])=>new lN(t,xP.createFactory({unitTranslations:CP,scaledPrefixText:e})))))}},$P=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
|
|
12386
|
+
const MP=new class extends cN{constructor(){super($P.map((([t,e,n])=>new lN(t,aN.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
|
|
12387
|
+
class _P extends vN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=MP}binaryChanged(){this.resolvedUnitScale=this.binary?SP:MP}}t([lt({mode:"boolean"})],_P.prototype,"binary",void 0)
|
|
12388
|
+
const EP=_P.compose({baseName:"unit-byte",template:yP})
|
|
12389
|
+
wi.getOrCreate().withPrefix("nimble").register(EP())
|
|
12390
|
+
const IP=[[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"]],DP=new Map([["en",new wP("volt","volts","V")],["fr",new wP("volt","volts","V")],["de",new wP("Volt","Volt","V")],["ja",new wP("ボルト","ボルト","V")],["zh",new wP("伏特","伏特","V")]])
|
|
12391
|
+
const AP=new class extends cN{constructor(){super(IP.map((([t,e])=>new lN(t,xP.createFactory({unitTranslations:DP,scaledPrefixText:e})))))}}
|
|
12392
|
+
const TP=class extends vN{constructor(){super(),this.resolvedUnitScale=AP}}.compose({baseName:"unit-volt",template:yP})
|
|
12393
|
+
wi.getOrCreate().withPrefix("nimble").register(TP())
|
|
12394
|
+
var OP={value:()=>{}}
|
|
12395
|
+
function RP(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
|
|
12396
|
+
i[t]=[]}return new FP(i)}function FP(t){this._=t}function NP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function PP(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=OP,t=t.slice(0,i).concat(t.slice(i+1))
|
|
12397
|
+
break}return null!=n&&t.push({name:e,value:n}),t}FP.prototype=RP.prototype={constructor:FP,on:function(t,e){var n,i,o=this._,s=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
|
|
12397
12398
|
if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12398
12399
|
return{type:t,name:e}}))),r=-1,a=s.length
|
|
12399
12400
|
if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
|
|
12400
|
-
for(;++r<a;)if(n=(t=s[r]).type)o[n]=
|
|
12401
|
-
else if(null==e)for(n in o)o[n]=
|
|
12402
|
-
return this}for(;++r<a;)if((n=(t=s[r]).type)&&(n=
|
|
12401
|
+
for(;++r<a;)if(n=(t=s[r]).type)o[n]=PP(o[n],t.name,e)
|
|
12402
|
+
else if(null==e)for(n in o)o[n]=PP(o[n],t.name,null)
|
|
12403
|
+
return this}for(;++r<a;)if((n=(t=s[r]).type)&&(n=NP(o[n],t.name)))return n},copy:function(){var t={},e=this._
|
|
12403
12404
|
for(var n in e)t[n]=e[n].slice()
|
|
12404
|
-
return new
|
|
12405
|
+
return new FP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
|
|
12405
12406
|
if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12406
12407
|
for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12407
12408
|
for(var i=this._[t],o=0,s=i.length;o<s;++o)i[o].value.apply(e,n)}}
|
|
12408
|
-
var
|
|
12409
|
-
function
|
|
12410
|
-
return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),
|
|
12411
|
-
return n===
|
|
12412
|
-
return(e.local?HP
|
|
12413
|
-
var e}}function
|
|
12414
|
-
function
|
|
12415
|
-
function
|
|
12416
|
-
for(;a<l;++a)(r=e[a])&&(o[a]=r)}function
|
|
12409
|
+
var LP="http://www.w3.org/1999/xhtml",zP={svg:"http://www.w3.org/2000/svg",xhtml:LP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
12410
|
+
function VP(t){var e=t+="",n=e.indexOf(":")
|
|
12411
|
+
return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),zP.hasOwnProperty(e)?{space:zP[e],local:t}:t}function HP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
|
|
12412
|
+
return n===LP&&e.documentElement.namespaceURI===LP?e.createElement(t):e.createElementNS(n,t)}}function BP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qP(t){var e=VP(t)
|
|
12413
|
+
return(e.local?BP:HP)(e)}function UP(){}function jP(t){return null==t?UP:function(){return this.querySelector(t)}}function WP(){return[]}function ZP(t){return null==t?WP:function(){return this.querySelectorAll(t)}}function GP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
|
|
12414
|
+
var e}}function KP(t){return function(){return this.matches(t)}}function JP(t){return function(e){return e.matches(t)}}var XP=Array.prototype.find
|
|
12415
|
+
function YP(){return this.firstElementChild}var QP=Array.prototype.filter
|
|
12416
|
+
function tL(){return Array.from(this.children)}function eL(t){return new Array(t.length)}function nL(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function iL(t,e,n,i,o,s){for(var r,a=0,l=e.length,c=s.length;a<c;++a)(r=e[a])?(r.__data__=s[a],i[a]=r):n[a]=new nL(t,s[a])
|
|
12417
|
+
for(;a<l;++a)(r=e[a])&&(o[a]=r)}function oL(t,e,n,i,o,s,r){var a,l,c,d=new Map,h=e.length,u=s.length,p=new Array(h)
|
|
12417
12418
|
for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=r.call(l,l.__data__,a,e)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
12418
|
-
for(a=0;a<u;++a)c=r.call(t,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new
|
|
12419
|
-
for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
12420
|
-
null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function
|
|
12421
|
-
null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function
|
|
12422
|
-
null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function
|
|
12423
|
-
null==n?delete this[t]:this[t]=n}}function
|
|
12424
|
-
this.textContent=null==e?"":e}}function
|
|
12425
|
-
this.innerHTML=null==e?"":e}}function
|
|
12426
|
-
t&&t.removeChild(this)}function
|
|
12427
|
-
return e?e.insertBefore(t,this.nextSibling):t}function
|
|
12428
|
-
return e?e.insertBefore(t,this.nextSibling):t}function
|
|
12429
|
-
if(e){for(var n,i=0,o=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function
|
|
12419
|
+
for(a=0;a<u;++a)c=r.call(t,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new nL(t,s[a])
|
|
12420
|
+
for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function sL(t){return t.__data__}function rL(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function aL(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function lL(t){return function(){this.removeAttribute(t)}}function cL(t){return function(){this.removeAttributeNS(t.space,t.local)}}function dL(t,e){return function(){this.setAttribute(t,e)}}function hL(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function uL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12421
|
+
null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function pL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12422
|
+
null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function fL(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mL(t){return function(){this.style.removeProperty(t)}}function gL(t,e,n){return function(){this.style.setProperty(t,e,n)}}function vL(t,e,n){return function(){var i=e.apply(this,arguments)
|
|
12423
|
+
null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function bL(t,e){return t.style.getPropertyValue(e)||fL(t).getComputedStyle(t,null).getPropertyValue(e)}function yL(t){return function(){delete this[t]}}function wL(t,e){return function(){this[t]=e}}function xL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12424
|
+
null==n?delete this[t]:this[t]=n}}function CL(t){return t.trim().split(/^|\s+/)}function kL(t){return t.classList||new SL(t)}function SL(t){this._node=t,this._names=CL(t.getAttribute("class")||"")}function $L(t,e){for(var n=kL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function ML(t,e){for(var n=kL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function _L(t){return function(){$L(this,t)}}function EL(t){return function(){ML(this,t)}}function IL(t,e){return function(){(e.apply(this,arguments)?$L:ML)(this,t)}}function DL(){this.textContent=""}function AL(t){return function(){this.textContent=t}}function TL(t){return function(){var e=t.apply(this,arguments)
|
|
12425
|
+
this.textContent=null==e?"":e}}function OL(){this.innerHTML=""}function RL(t){return function(){this.innerHTML=t}}function FL(t){return function(){var e=t.apply(this,arguments)
|
|
12426
|
+
this.innerHTML=null==e?"":e}}function NL(){this.nextSibling&&this.parentNode.appendChild(this)}function PL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function LL(){return null}function zL(){var t=this.parentNode
|
|
12427
|
+
t&&t.removeChild(this)}function VL(){var t=this.cloneNode(!1),e=this.parentNode
|
|
12428
|
+
return e?e.insertBefore(t,this.nextSibling):t}function HL(){var t=this.cloneNode(!0),e=this.parentNode
|
|
12429
|
+
return e?e.insertBefore(t,this.nextSibling):t}function BL(t){return function(){var e=this.__on
|
|
12430
|
+
if(e){for(var n,i=0,o=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function qL(t,e,n){return function(){var i,o=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
|
|
12430
12431
|
if(o)for(var r=0,a=o.length;r<a;++r)if((i=o[r]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=e)
|
|
12431
|
-
this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},o?o.push(i):this.__on=[i]}}function
|
|
12432
|
-
"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function
|
|
12432
|
+
this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},o?o.push(i):this.__on=[i]}}function UL(t,e,n){var i=fL(t),o=i.CustomEvent
|
|
12433
|
+
"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function jL(t,e){return function(){return UL(this,t,e)}}function WL(t,e){return function(){return UL(this,t,e.apply(this,arguments))}}nL.prototype={constructor:nL,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},SL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
|
|
12433
12434
|
e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
|
|
12434
|
-
var
|
|
12435
|
-
function
|
|
12435
|
+
var ZL=[null]
|
|
12436
|
+
function GL(t,e){this._groups=t,this._parents=e}function KL(){return new GL([[document.documentElement]],ZL)}function JL(t){return"string"==typeof t?new GL([[document.querySelector(t)]],[document.documentElement]):new GL([[t]],ZL)}function XL(t,e){if(t=function(t){let e
|
|
12436
12437
|
for(;e=t.sourceEvent;)t=e
|
|
12437
12438
|
return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
|
|
12438
12439
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
12439
12440
|
return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect()
|
|
12440
|
-
return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}
|
|
12441
|
+
return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}GL.prototype=KL.prototype={constructor:GL,select:function(t){"function"!=typeof t&&(t=jP(t))
|
|
12441
12442
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r,a=e[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=t.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
|
|
12442
|
-
return new
|
|
12443
|
+
return new GL(i,this._parents)},selectAll:function(t){t="function"==typeof t?GP(t):ZP(t)
|
|
12443
12444
|
for(var e=this._groups,n=e.length,i=[],o=[],s=0;s<n;++s)for(var r,a=e[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(t.call(r,r.__data__,c,a)),o.push(r))
|
|
12444
|
-
return new
|
|
12445
|
+
return new GL(i,o)},selectChild:function(t){return this.select(null==t?YP:function(t){return function(){return XP.call(this.children,t)}}("function"==typeof t?t:JP(t)))},selectChildren:function(t){return this.selectAll(null==t?tL:function(t){return function(){return QP.call(this.children,t)}}("function"==typeof t?t:JP(t)))},filter:function(t){"function"!=typeof t&&(t=KP(t))
|
|
12445
12446
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r=e[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s)
|
|
12446
|
-
return new
|
|
12447
|
-
var n,i=e?iL
|
|
12447
|
+
return new GL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,sL)
|
|
12448
|
+
var n,i=e?oL:iL,o=this._parents,s=this._groups
|
|
12448
12449
|
"function"!=typeof t&&(n=t,t=function(){return n})
|
|
12449
|
-
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=
|
|
12450
|
+
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=rL(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
|
|
12450
12451
|
i(h,u,g,v,c[d]=new Array(p),f,e)
|
|
12451
|
-
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
|
|
12452
|
+
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 GL(a,o))._enter=l,a._exit=c,a},enter:function(){return new GL(this._enter||this._groups.map(eL),this._parents)},exit:function(){return new GL(this._exit||this._groups.map(eL),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,s=this.exit()
|
|
12452
12453
|
return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?s.remove():n(s),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,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)
|
|
12453
12454
|
for(;l<o;++l)a[l]=n[l]
|
|
12454
|
-
return new
|
|
12455
|
-
return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=
|
|
12455
|
+
return new GL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
|
|
12456
|
+
return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=aL)
|
|
12456
12457
|
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)
|
|
12457
|
-
c.sort(e)}return new
|
|
12458
|
+
c.sort(e)}return new GL(o,this._parents).order()},call:function(){var t=arguments[0]
|
|
12458
12459
|
return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,s=i.length;o<s;++o){var r=i[o]
|
|
12459
12460
|
if(r)return r}return null},size:function(){let t=0
|
|
12460
12461
|
for(const e of this)++t
|
|
12461
12462
|
return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,s=e[n],r=0,a=s.length;r<a;++r)(o=s[r])&&t.call(o,o.__data__,r,s)
|
|
12462
|
-
return this},attr:function(t,e){var n=
|
|
12463
|
+
return this},attr:function(t,e){var n=VP(t)
|
|
12463
12464
|
if(arguments.length<2){var i=this.node()
|
|
12464
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?lL:
|
|
12465
|
-
if(arguments.length<2){for(var i=
|
|
12466
|
-
return!0}return this.each(("function"==typeof e?
|
|
12467
|
-
return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:
|
|
12468
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
12465
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?cL:lL:"function"==typeof e?n.local?pL:uL:n.local?hL:dL)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?mL:"function"==typeof e?vL:gL)(t,e,null==n?"":n)):bL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?yL:"function"==typeof e?xL:wL)(t,e)):this.node()[t]},classed:function(t,e){var n=CL(t+"")
|
|
12466
|
+
if(arguments.length<2){for(var i=kL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
|
|
12467
|
+
return!0}return this.each(("function"==typeof e?IL:e?_L:EL)(n,e))},text:function(t){return arguments.length?this.each(null==t?DL:("function"==typeof t?TL:AL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?OL:("function"==typeof t?FL:RL)(t)):this.node().innerHTML},raise:function(){return this.each(NL)},lower:function(){return this.each(PL)},append:function(t){var e="function"==typeof t?t:qP(t)
|
|
12468
|
+
return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:qP(t),i=null==e?LL:"function"==typeof e?e:jP(e)
|
|
12469
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(zL)},clone:function(t){return this.select(t?HL:VL)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,s=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
|
|
12469
12470
|
return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),r=s.length
|
|
12470
|
-
if(!(arguments.length<2)){for(a=e?BL
|
|
12471
|
+
if(!(arguments.length<2)){for(a=e?qL:BL,i=0;i<r;++i)this.each(a(s[i],e,n))
|
|
12471
12472
|
return this}var a=this.node().__on
|
|
12472
|
-
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(t,e){return this.each(("function"==typeof e?jL
|
|
12473
|
-
const
|
|
12474
|
-
function
|
|
12473
|
+
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(t,e){return this.each(("function"==typeof e?WL:jL)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
|
|
12474
|
+
const YL={capture:!0,passive:!1}
|
|
12475
|
+
function QL(t){t.preventDefault(),t.stopImmediatePropagation()}function tz(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ez(t,e){var n=Object.create(t.prototype)
|
|
12475
12476
|
for(var i in e)n[i]=e[i]
|
|
12476
|
-
return n}function
|
|
12477
|
-
function
|
|
12478
|
-
return t=(t+"").trim().toLowerCase(),(e=
|
|
12479
|
-
var o}function
|
|
12480
|
-
return`${1===t?"rgb(":"rgba("}${
|
|
12481
|
-
if(t instanceof
|
|
12482
|
-
if(t instanceof
|
|
12477
|
+
return n}function nz(){}var iz=.7,oz=1/iz,sz="\\s*([+-]?\\d+)\\s*",rz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",az="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lz=/^#([0-9a-f]{3,8})$/,cz=new RegExp(`^rgb\\(${sz},${sz},${sz}\\)$`),dz=new RegExp(`^rgb\\(${az},${az},${az}\\)$`),hz=new RegExp(`^rgba\\(${sz},${sz},${sz},${rz}\\)$`),uz=new RegExp(`^rgba\\(${az},${az},${az},${rz}\\)$`),pz=new RegExp(`^hsl\\(${rz},${az},${az}\\)$`),fz=new RegExp(`^hsla\\(${rz},${az},${az},${rz}\\)$`),mz={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}
|
|
12478
|
+
function gz(){return this.rgb().formatHex()}function vz(){return this.rgb().formatRgb()}function bz(t){var e,n
|
|
12479
|
+
return t=(t+"").trim().toLowerCase(),(e=lz.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?yz(e):3===n?new Cz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?wz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?wz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=cz.exec(t))?new Cz(e[1],e[2],e[3],1):(e=dz.exec(t))?new Cz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=hz.exec(t))?wz(e[1],e[2],e[3],e[4]):(e=uz.exec(t))?wz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=pz.exec(t))?Ez(e[1],e[2]/100,e[3]/100,1):(e=fz.exec(t))?Ez(e[1],e[2]/100,e[3]/100,e[4]):mz.hasOwnProperty(t)?yz(mz[t]):"transparent"===t?new Cz(NaN,NaN,NaN,0):null}function yz(t){return new Cz(t>>16&255,t>>8&255,255&t,1)}function wz(t,e,n,i){return i<=0&&(t=e=n=NaN),new Cz(t,e,n,i)}function xz(t,e,n,i){return 1===arguments.length?((o=t)instanceof nz||(o=bz(o)),o?new Cz((o=o.rgb()).r,o.g,o.b,o.opacity):new Cz):new Cz(t,e,n,null==i?1:i)
|
|
12480
|
+
var o}function Cz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function kz(){return`#${_z(this.r)}${_z(this.g)}${_z(this.b)}`}function Sz(){const t=$z(this.opacity)
|
|
12481
|
+
return`${1===t?"rgb(":"rgba("}${Mz(this.r)}, ${Mz(this.g)}, ${Mz(this.b)}${1===t?")":`, ${t})`}`}function $z(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Mz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _z(t){return((t=Mz(t))<16?"0":"")+t.toString(16)}function Ez(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Dz(t,e,n,i)}function Iz(t){if(t instanceof Dz)return new Dz(t.h,t.s,t.l,t.opacity)
|
|
12482
|
+
if(t instanceof nz||(t=bz(t)),!t)return new Dz
|
|
12483
|
+
if(t instanceof Dz)return t
|
|
12483
12484
|
var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),s=Math.max(e,n,i),r=NaN,a=s-o,l=(s+o)/2
|
|
12484
|
-
return a?(r=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new
|
|
12485
|
-
return new
|
|
12486
|
-
return`${1===t?"hsl(":"hsla("}${
|
|
12487
|
-
var
|
|
12488
|
-
function
|
|
12489
|
-
return n?function(t,e){return function(n){return t+n*e}}(t,n):
|
|
12490
|
-
function i(t,e){var i=n((t=
|
|
12485
|
+
return a?(r=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Dz(r,a,l,t.opacity)}function Dz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Az(t){return(t=(t||0)%360)<0?t+360:t}function Tz(t){return Math.max(0,Math.min(1,t||0))}function Oz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}tz(nz,bz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:gz,formatHex:gz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Iz(this).formatHsl()},formatRgb:vz,toString:vz}),tz(Cz,xz,ez(nz,{brighter(t){return t=null==t?oz:Math.pow(oz,t),new Cz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?iz:Math.pow(iz,t),new Cz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Cz(Mz(this.r),Mz(this.g),Mz(this.b),$z(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:kz,formatHex:kz,formatHex8:function(){return`#${_z(this.r)}${_z(this.g)}${_z(this.b)}${_z(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Sz,toString:Sz})),tz(Dz,(function(t,e,n,i){return 1===arguments.length?Iz(t):new Dz(t,e,n,null==i?1:i)}),ez(nz,{brighter(t){return t=null==t?oz:Math.pow(oz,t),new Dz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?iz:Math.pow(iz,t),new Dz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
|
|
12486
|
+
return new Cz(Oz(t>=240?t-240:t+120,o,i),Oz(t,o,i),Oz(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new Dz(Az(this.h),Tz(this.s),Tz(this.l),$z(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$z(this.opacity)
|
|
12487
|
+
return`${1===t?"hsl(":"hsla("}${Az(this.h)}, ${100*Tz(this.s)}%, ${100*Tz(this.l)}%${1===t?")":`, ${t})`}`}}))
|
|
12488
|
+
var Rz=t=>()=>t
|
|
12489
|
+
function Fz(t){return 1==(t=+t)?Nz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Rz(isNaN(e)?n:e)}}function Nz(t,e){var n=e-t
|
|
12490
|
+
return n?function(t,e){return function(n){return t+n*e}}(t,n):Rz(isNaN(t)?e:t)}var Pz=function t(e){var n=Fz(e)
|
|
12491
|
+
function i(t,e){var i=n((t=xz(t)).r,(e=xz(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),r=Nz(t.opacity,e.opacity)
|
|
12491
12492
|
return function(e){return t.r=i(e),t.g=o(e),t.b=s(e),t.opacity=r(e),t+""}}return i.gamma=t,i}(1)
|
|
12492
|
-
function
|
|
12493
|
+
function Lz(t,e){e||(e=[])
|
|
12493
12494
|
var n,i=t?Math.min(e.length,t.length):0,o=e.slice()
|
|
12494
12495
|
return function(s){for(n=0;n<i;++n)o[n]=t[n]*(1-s)+e[n]*s
|
|
12495
|
-
return o}}function
|
|
12496
|
-
for(n=0;n<o;++n)s[n]=
|
|
12496
|
+
return o}}function zz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,s=new Array(o),r=new Array(i)
|
|
12497
|
+
for(n=0;n<o;++n)s[n]=Wz(t[n],e[n])
|
|
12497
12498
|
for(;n<i;++n)r[n]=e[n]
|
|
12498
12499
|
return function(t){for(n=0;n<o;++n)r[n]=s[n](t)
|
|
12499
|
-
return r}}function
|
|
12500
|
-
return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function
|
|
12501
|
-
for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=
|
|
12500
|
+
return r}}function Vz(t,e){var n=new Date
|
|
12501
|
+
return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Hz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Bz(t,e){var n,i={},o={}
|
|
12502
|
+
for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Wz(t[n],e[n]):o[n]=e[n]
|
|
12502
12503
|
return function(t){for(n in i)o[n]=i[n](t)
|
|
12503
|
-
return o}}var
|
|
12504
|
-
function
|
|
12505
|
-
for(t+="",e+="";(n=
|
|
12504
|
+
return o}}var qz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uz=new RegExp(qz.source,"g")
|
|
12505
|
+
function jz(t,e){var n,i,o,s=qz.lastIndex=Uz.lastIndex=0,r=-1,a=[],l=[]
|
|
12506
|
+
for(t+="",e+="";(n=qz.exec(t))&&(i=Uz.exec(e));)(o=i.index)>s&&(o=e.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:Hz(n,i)})),s=Uz.lastIndex
|
|
12506
12507
|
return s<e.length&&(o=e.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t)
|
|
12507
|
-
return a.join("")})}function
|
|
12508
|
-
return null==e||"boolean"===o?
|
|
12509
|
-
function
|
|
12510
|
-
return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*
|
|
12508
|
+
return a.join("")})}function Wz(t,e){var n,i,o=typeof e
|
|
12509
|
+
return null==e||"boolean"===o?Rz(e):("number"===o?Hz:"string"===o?(n=bz(e))?(e=n,Pz):jz:e instanceof bz?Pz:e instanceof Date?Vz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?zz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Bz:Hz:Lz))(t,e)}function Zz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Gz,Kz=180/Math.PI,Jz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
12510
|
+
function Xz(t,e,n,i,o,s){var r,a,l
|
|
12511
|
+
return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*Kz,skewX:Math.atan(l)*Kz,scaleX:r,scaleY:a}}function Yz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
12511
12512
|
return s=t(s),r=t(r),function(t,i,o,s,r,a){if(t!==o||i!==s){var l=r.push("translate(",null,e,null,n)
|
|
12512
|
-
a.push({i:l-4,x:
|
|
12513
|
-
r.push({i:a-4,x:
|
|
12514
|
-
return a.join("")}}}var Yz
|
|
12515
|
-
return e.isIdentity?
|
|
12516
|
-
function
|
|
12513
|
+
a.push({i:l-4,x:Hz(t,o)},{i:l-2,x:Hz(i,s)})}else(o||s)&&r.push("translate("+o+e+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Hz(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(s.rotate,r.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Hz(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(s.skewX,r.skewX,a,l),function(t,e,n,i,s,r){if(t!==n||e!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
12514
|
+
r.push({i:a-4,x:Hz(t,n)},{i:a-2,x:Hz(e,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(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
|
|
12515
|
+
return a.join("")}}}var Qz=Yz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
|
|
12516
|
+
return e.isIdentity?Jz:Xz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),tV=Yz((function(t){return null==t?Jz:(Gz||(Gz=document.createElementNS("http://www.w3.org/2000/svg","g")),Gz.setAttribute("transform",t),(t=Gz.transform.baseVal.consolidate())?Xz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Jz)}),", ",")",")")
|
|
12517
|
+
function eV(t){return((t=Math.exp(t))+1/t)/2}var nV,iV,oV=function t(e,n,i){function o(t,o){var s,r,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
|
|
12517
12518
|
if(m<1e-12)r=Math.log(u/c)/e,s=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*r)]}
|
|
12518
12519
|
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)
|
|
12519
|
-
r=(w-y)/e,s=function(t){var i,o=t*r,s=
|
|
12520
|
-
return[a+d*p,l+d*f,c*s/
|
|
12521
|
-
return t(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
12522
|
-
function
|
|
12523
|
-
return i.restart(t,e,n),i}function
|
|
12524
|
-
try{!function(){
|
|
12525
|
-
for(var t,e=
|
|
12526
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:
|
|
12527
|
-
|
|
12528
|
-
e>
|
|
12529
|
-
return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}
|
|
12530
|
-
n=(null==n?
|
|
12531
|
-
var
|
|
12532
|
-
function
|
|
12520
|
+
r=(w-y)/e,s=function(t){var i,o=t*r,s=eV(y),d=c/(n*g)*(s*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
|
|
12521
|
+
return[a+d*p,l+d*f,c*s/eV(e*o+y)]}}return s.duration=1e3*r*e/Math.SQRT2,s}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
|
|
12522
|
+
return t(n,i,i*i)},o}(Math.SQRT2,2,4),sV=0,rV=0,aV=0,lV=1e3,cV=0,dV=0,hV=0,uV="object"==typeof performance&&performance.now?performance:Date,pV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
|
|
12523
|
+
function fV(){return dV||(pV(mV),dV=uV.now()+hV)}function mV(){dV=0}function gV(){this._call=this._time=this._next=null}function vV(t,e,n){var i=new gV
|
|
12524
|
+
return i.restart(t,e,n),i}function bV(){dV=(cV=uV.now())+hV,sV=rV=0
|
|
12525
|
+
try{!function(){fV(),++sV
|
|
12526
|
+
for(var t,e=nV;e;)(t=dV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--sV}()}finally{sV=0,function(){var t,e,n=nV,i=1/0
|
|
12527
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:nV=e)
|
|
12528
|
+
iV=t,wV(i)}(),dV=0}}function yV(){var t=uV.now(),e=t-cV
|
|
12529
|
+
e>lV&&(hV-=e,cV=t)}function wV(t){sV||(rV&&(rV=clearTimeout(rV)),t-dV>24?(t<1/0&&(rV=setTimeout(bV,t-uV.now()-hV)),aV&&(aV=clearInterval(aV))):(aV||(cV=uV.now(),aV=setInterval(yV,lV)),sV=1,pV(bV)))}function xV(t,e,n){var i=new gV
|
|
12530
|
+
return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}gV.prototype=vV.prototype={constructor:gV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
|
|
12531
|
+
n=(null==n?fV():+n)+(null==e?0:+e),this._next||iV===this||(iV?iV._next=this:nV=this,iV=this),this._call=t,this._time=n,wV()},stop:function(){this._call&&(this._call=null,this._time=1/0,wV())}}
|
|
12532
|
+
var CV=RP("start","end","cancel","interrupt"),kV=[],SV=0,$V=1,MV=2,_V=3,EV=4,IV=5,DV=6
|
|
12533
|
+
function AV(t,e,n,i,o,s){var r=t.__transition
|
|
12533
12534
|
if(r){if(n in r)return}else t.__transition={}
|
|
12534
12535
|
!function(t,e,n){var i,o=t.__transition
|
|
12535
|
-
function s(t){n.state
|
|
12536
|
-
if(n.state
|
|
12537
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state===
|
|
12538
|
-
u.state===
|
|
12539
|
-
i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=
|
|
12540
|
-
n.state===
|
|
12541
|
-
delete t.__transition}o[e]=n,n.timer=
|
|
12542
|
-
if(n.state>
|
|
12543
|
-
return n}function
|
|
12544
|
-
if(n.state>
|
|
12545
|
-
return n}function
|
|
12536
|
+
function s(t){n.state=$V,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}function r(s){var c,d,h,u
|
|
12537
|
+
if(n.state!==$V)return l()
|
|
12538
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===_V)return xV(r)
|
|
12539
|
+
u.state===EV?(u.state=DV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=DV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(xV((function(){n.state===_V&&(n.state=EV,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=MV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===MV){for(n.state=_V,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
|
|
12540
|
+
i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=IV,1),s=-1,r=i.length;++s<r;)i[s].call(t,o)
|
|
12541
|
+
n.state===IV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=DV,n.timer.stop(),delete o[e],o)return
|
|
12542
|
+
delete t.__transition}o[e]=n,n.timer=vV(s,0,n.time)}(t,n,{name:e,index:i,group:o,on:CV,tween:kV,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:SV})}function TV(t,e){var n=RV(t,e)
|
|
12543
|
+
if(n.state>SV)throw new Error("too late; already scheduled")
|
|
12544
|
+
return n}function OV(t,e){var n=RV(t,e)
|
|
12545
|
+
if(n.state>_V)throw new Error("too late; already running")
|
|
12546
|
+
return n}function RV(t,e){var n=t.__transition
|
|
12546
12547
|
if(!n||!(n=n[e]))throw new Error("transition not found")
|
|
12547
|
-
return n}function
|
|
12548
|
-
if(s){for(o in e=null==e?null:e+"",s)(n=s[o]).name===e?(i=n.state
|
|
12549
|
-
r&&delete t.__transition}}function
|
|
12550
|
-
return function(){var o=
|
|
12548
|
+
return n}function FV(t,e){var n,i,o,s=t.__transition,r=!0
|
|
12549
|
+
if(s){for(o in e=null==e?null:e+"",s)(n=s[o]).name===e?(i=n.state>MV&&n.state<IV,n.state=DV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[o]):r=!1
|
|
12550
|
+
r&&delete t.__transition}}function NV(t,e){var n,i
|
|
12551
|
+
return function(){var o=OV(this,t),s=o.tween
|
|
12551
12552
|
if(s!==n)for(var r=0,a=(i=n=s).length;r<a;++r)if(i[r].name===e){(i=i.slice()).splice(r,1)
|
|
12552
|
-
break}o.tween=i}}function
|
|
12553
|
+
break}o.tween=i}}function PV(t,e,n){var i,o
|
|
12553
12554
|
if("function"!=typeof n)throw new Error
|
|
12554
|
-
return function(){var s=
|
|
12555
|
+
return function(){var s=OV(this,t),r=s.tween
|
|
12555
12556
|
if(r!==i){o=(i=r).slice()
|
|
12556
12557
|
for(var a={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=a
|
|
12557
|
-
break}l===c&&o.push(a)}s.tween=o}}function
|
|
12558
|
-
return t.each((function(){var t=
|
|
12559
|
-
return("number"==typeof e?
|
|
12558
|
+
break}l===c&&o.push(a)}s.tween=o}}function LV(t,e,n){var i=t._id
|
|
12559
|
+
return t.each((function(){var t=OV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return RV(t,i).value[e]}}function zV(t,e){var n
|
|
12560
|
+
return("number"==typeof e?Hz:e instanceof bz?Pz:(n=bz(e))?(e=n,Pz):jz)(t,e)}function VV(t){return function(){this.removeAttribute(t)}}function HV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function BV(t,e,n){var i,o,s=n+""
|
|
12560
12561
|
return function(){var r=this.getAttribute(t)
|
|
12561
|
-
return r===s?null:r===i?o:o=e(i=r,n)}}function
|
|
12562
|
+
return r===s?null:r===i?o:o=e(i=r,n)}}function qV(t,e,n){var i,o,s=n+""
|
|
12562
12563
|
return function(){var r=this.getAttributeNS(t.space,t.local)
|
|
12563
|
-
return r===s?null:r===i?o:o=e(i=r,n)}}function
|
|
12564
|
+
return r===s?null:r===i?o:o=e(i=r,n)}}function UV(t,e,n){var i,o,s
|
|
12564
12565
|
return function(){var r,a,l=n(this)
|
|
12565
12566
|
if(null!=l)return(r=this.getAttribute(t))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=e(i=r,l))
|
|
12566
|
-
this.removeAttribute(t)}}function
|
|
12567
|
+
this.removeAttribute(t)}}function jV(t,e,n){var i,o,s
|
|
12567
12568
|
return function(){var r,a,l=n(this)
|
|
12568
12569
|
if(null!=l)return(r=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=e(i=r,l))
|
|
12569
|
-
this.removeAttributeNS(t.space,t.local)}}function
|
|
12570
|
+
this.removeAttributeNS(t.space,t.local)}}function WV(t,e){var n,i
|
|
12570
12571
|
function o(){var o=e.apply(this,arguments)
|
|
12571
|
-
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function
|
|
12572
|
+
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function ZV(t,e){var n,i
|
|
12572
12573
|
function o(){var o=e.apply(this,arguments)
|
|
12573
|
-
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function
|
|
12574
|
-
function
|
|
12575
|
-
function
|
|
12576
|
-
|
|
12577
|
-
"function"!=typeof t&&(t=
|
|
12578
|
-
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=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,
|
|
12579
|
-
return new
|
|
12580
|
-
"function"!=typeof t&&(t=
|
|
12581
|
-
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=t.call(l,l.__data__,h,c),f=
|
|
12582
|
-
s.push(p),r.push(l)}return new
|
|
12574
|
+
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function GV(t,e){return function(){TV(this,t).delay=+e.apply(this,arguments)}}function KV(t,e){return e=+e,function(){TV(this,t).delay=e}}function JV(t,e){return function(){OV(this,t).duration=+e.apply(this,arguments)}}function XV(t,e){return e=+e,function(){OV(this,t).duration=e}}var YV=KL.prototype.constructor
|
|
12575
|
+
function QV(t){return function(){this.style.removeProperty(t)}}var tH=0
|
|
12576
|
+
function eH(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function nH(){return++tH}var iH=KL.prototype
|
|
12577
|
+
eH.prototype={constructor:eH,select:function(t){var e=this._name,n=this._id
|
|
12578
|
+
"function"!=typeof t&&(t=jP(t))
|
|
12579
|
+
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=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,AV(h[u],e,n,u,h,RV(a,n)))
|
|
12580
|
+
return new eH(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
|
|
12581
|
+
"function"!=typeof t&&(t=ZP(t))
|
|
12582
|
+
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=t.call(l,l.__data__,h,c),f=RV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&AV(u,e,n,m,p,f)
|
|
12583
|
+
s.push(p),r.push(l)}return new eH(s,r,e,n)},selectChild:iH.selectChild,selectChildren:iH.selectChildren,filter:function(t){"function"!=typeof t&&(t=KP(t))
|
|
12583
12584
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r=e[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s)
|
|
12584
|
-
return new
|
|
12585
|
+
return new eH(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
|
|
12585
12586
|
for(var e=this._groups,n=t._groups,i=e.length,o=n.length,s=Math.min(i,o),r=new Array(i),a=0;a<s;++a)for(var l,c=e[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)
|
|
12586
12587
|
for(;a<i;++a)r[a]=e[a]
|
|
12587
|
-
return new
|
|
12588
|
-
|
|
12589
|
-
return arguments.length<2?
|
|
12590
|
-
return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?
|
|
12588
|
+
return new eH(r,this._parents,this._name,this._id)},selection:function(){return new YV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=nH(),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=RV(r,e)
|
|
12589
|
+
AV(r,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new eH(i,this._parents,t,n)},call:iH.call,nodes:iH.nodes,node:iH.node,size:iH.size,empty:iH.empty,each:iH.each,on:function(t,e){var n=this._id
|
|
12590
|
+
return arguments.length<2?RV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
|
|
12591
|
+
return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?TV:OV
|
|
12591
12592
|
return function(){var r=s(this,t),a=r.on
|
|
12592
|
-
a!==i&&(o=(i=a).copy()).on(e,n),r.on=o}}(n,t,e))},attr:function(t,e){var n=
|
|
12593
|
-
return this.attrTween(t,"function"==typeof e?(n.local?UV
|
|
12593
|
+
a!==i&&(o=(i=a).copy()).on(e,n),r.on=o}}(n,t,e))},attr:function(t,e){var n=VP(t),i="transform"===n?tV:zV
|
|
12594
|
+
return this.attrTween(t,"function"==typeof e?(n.local?jV:UV)(n,i,LV(this,"attr."+t,e)):null==e?(n.local?HV:VV)(n):(n.local?qV:BV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
|
|
12594
12595
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
12595
12596
|
if(null==e)return this.tween(n,null)
|
|
12596
12597
|
if("function"!=typeof e)throw new Error
|
|
12597
|
-
var i=
|
|
12598
|
-
return this.tween(n,(i.local?
|
|
12598
|
+
var i=VP(t)
|
|
12599
|
+
return this.tween(n,(i.local?WV:ZV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Qz:zV
|
|
12599
12600
|
return null==e?this.styleTween(t,function(t,e){var n,i,o
|
|
12600
|
-
return function(){var s=
|
|
12601
|
-
return s===r?null:s===n&&r===i?o:o=e(n=s,i=r)}}(t,i)).on("end.style."+t,
|
|
12602
|
-
return function(){var r=
|
|
12603
|
-
return null==a&&(this.style.removeProperty(t),l=a=
|
|
12604
|
-
return function(){var l=
|
|
12601
|
+
return function(){var s=bL(this,t),r=(this.style.removeProperty(t),bL(this,t))
|
|
12602
|
+
return s===r?null:s===n&&r===i?o:o=e(n=s,i=r)}}(t,i)).on("end.style."+t,QV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,s
|
|
12603
|
+
return function(){var r=bL(this,t),a=n(this),l=a+""
|
|
12604
|
+
return null==a&&(this.style.removeProperty(t),l=a=bL(this,t)),r===l?null:r===i&&l===o?s:(o=l,s=e(i=r,a))}}(t,i,LV(this,"style."+t,e))).each(function(t,e){var n,i,o,s,r="style."+e,a="end."+r
|
|
12605
|
+
return function(){var l=OV(this,t),c=l.on,d=null==l.value[r]?s||(s=QV(e)):void 0
|
|
12605
12606
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,s=n+""
|
|
12606
|
-
return function(){var r=
|
|
12607
|
+
return function(){var r=bL(this,t)
|
|
12607
12608
|
return r===s?null:r===i?o:o=e(i=r,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
|
|
12608
12609
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
12609
12610
|
if(null==e)return this.tween(i,null)
|
|
@@ -12611,7 +12612,7 @@ if("function"!=typeof e)throw new Error
|
|
|
12611
12612
|
return this.tween(i,function(t,e,n){var i,o
|
|
12612
12613
|
function s(){var s=e.apply(this,arguments)
|
|
12613
12614
|
return s!==o&&(i=(o=s)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,s,n)),i}return s._value=e,s}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
|
|
12614
|
-
this.textContent=null==e?"":e}}(
|
|
12615
|
+
this.textContent=null==e?"":e}}(LV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
|
|
12615
12616
|
if(arguments.length<1)return(e=this.tween(e))&&e._value
|
|
12616
12617
|
if(null==t)return this.tween(e,null)
|
|
12617
12618
|
if("function"!=typeof t)throw new Error
|
|
@@ -12620,59 +12621,59 @@ function i(){var i=t.apply(this,arguments)
|
|
|
12620
12621
|
return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode
|
|
12621
12622
|
for(var n in this.__transition)if(+n!==t)return
|
|
12622
12623
|
e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
|
|
12623
|
-
if(t+="",arguments.length<2){for(var i,o=
|
|
12624
|
-
return null}return this.each((null==e?
|
|
12625
|
-
return arguments.length?this.each(("function"==typeof t?
|
|
12626
|
-
return arguments.length?this.each(("function"==typeof t?
|
|
12624
|
+
if(t+="",arguments.length<2){for(var i,o=RV(this.node(),n).tween,s=0,r=o.length;s<r;++s)if((i=o[s]).name===t)return i.value
|
|
12625
|
+
return null}return this.each((null==e?NV:PV)(n,t,e))},delay:function(t){var e=this._id
|
|
12626
|
+
return arguments.length?this.each(("function"==typeof t?GV:KV)(e,t)):RV(this.node(),e).delay},duration:function(t){var e=this._id
|
|
12627
|
+
return arguments.length?this.each(("function"==typeof t?JV:XV)(e,t)):RV(this.node(),e).duration},ease:function(t){var e=this._id
|
|
12627
12628
|
return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
|
|
12628
|
-
return function(){
|
|
12629
|
+
return function(){OV(this,t).ease=e}}(e,t)):RV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
|
|
12629
12630
|
return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
|
|
12630
12631
|
if("function"!=typeof n)throw new Error
|
|
12631
|
-
|
|
12632
|
+
OV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
|
|
12632
12633
|
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
12633
|
-
n.each((function(){var n=
|
|
12634
|
-
o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&s()}))},[Symbol.iterator]:
|
|
12635
|
-
var
|
|
12636
|
-
function
|
|
12637
|
-
return n}
|
|
12638
|
-
t instanceof
|
|
12639
|
-
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])&&
|
|
12640
|
-
return new
|
|
12641
|
-
var
|
|
12642
|
-
function
|
|
12643
|
-
var
|
|
12644
|
-
function
|
|
12645
|
-
return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function
|
|
12646
|
-
return t.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
|
|
12647
|
-
function v(t){t.property("__zoom",
|
|
12648
|
-
return i===t.x&&o===t.y?t:new
|
|
12634
|
+
n.each((function(){var n=OV(this,i),o=n.on
|
|
12635
|
+
o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&s()}))},[Symbol.iterator]:iH[Symbol.iterator]}
|
|
12636
|
+
var oH={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
|
|
12637
|
+
function sH(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
|
|
12638
|
+
return n}KL.prototype.interrupt=function(t){return this.each((function(){FV(this,t)}))},KL.prototype.transition=function(t){var e,n
|
|
12639
|
+
t instanceof eH?(e=t._id,t=t._name):(e=nH(),(n=oH).time=fV(),t=null==t?null:t+"")
|
|
12640
|
+
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])&&AV(r,t,e,c,a,n||sH(r,e))
|
|
12641
|
+
return new eH(i,this._parents,t,e)}
|
|
12642
|
+
var rH=t=>()=>t
|
|
12643
|
+
function aH(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function lH(t,e,n){this.k=t,this.x=e,this.y=n}lH.prototype={constructor:lH,scale:function(t){return 1===t?this:new lH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new lH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
|
|
12644
|
+
var cH=new lH(1,0,0)
|
|
12645
|
+
function dH(t){t.stopImmediatePropagation()}function hH(t){t.preventDefault(),t.stopImmediatePropagation()}function uH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function pH(){var t=this
|
|
12646
|
+
return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function fH(){return this.__zoom||cH}function mH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function gH(){return navigator.maxTouchPoints||"ontouchstart"in this}function vH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1]
|
|
12647
|
+
return t.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 bH(){var t,e,n,i=uH,o=pH,s=vH,r=mH,a=gH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=oV,u=RP("start","zoom","end"),p=500,f=150,m=0,g=10
|
|
12648
|
+
function v(t){t.property("__zoom",fH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new lH(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
|
|
12649
|
+
return i===t.x&&o===t.y?t:new lH(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,s=arguments,r=C(t,s).event(i),a=o.apply(t,s),l=null==n?w(a):"function"==typeof n?n.apply(t,s):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,s):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
12649
12650
|
return function(t){if(1===t)t=u
|
|
12650
12651
|
else{var e=p(t),n=c/e[2]
|
|
12651
|
-
t=new
|
|
12652
|
+
t=new lH(n,l[0]-e[0]*n,l[1]-e[1]*n)}r.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=XL(t)
|
|
12652
12653
|
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)
|
|
12653
12654
|
else{if(o.k===a)return
|
|
12654
|
-
n.mouse=[d,o.invert(d)],
|
|
12655
|
-
r.moved=e*e+n*n>m}r.event(t).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=
|
|
12656
|
-
e&&(i.on("click.drag",YL
|
|
12657
|
-
!function(t){var e=t.document.documentElement,n=
|
|
12658
|
-
"onselectstart"in e?n.on("selectstart.drag",YL
|
|
12659
|
-
|
|
12660
|
-
for(
|
|
12661
|
-
t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),
|
|
12662
|
-
for(
|
|
12655
|
+
n.mouse=[d,o.invert(d)],FV(this),n.start()}hH(t),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 $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,r=C(this,e,!0).event(t),a=JL(t.view).on("mousemove.zoom",(function(t){if(hH(t),!r.moved){var e=t.clientX-d,n=t.clientY-h
|
|
12656
|
+
r.moved=e*e+n*n>m}r.event(t).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=XL(t,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=JL(t).on("dragstart.drag",null)
|
|
12657
|
+
e&&(i.on("click.drag",QL,YL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,r.moved),hH(t),r.event(t).end()}),!0),l=XL(t,o),d=t.clientX,h=t.clientY
|
|
12658
|
+
!function(t){var e=t.document.documentElement,n=JL(t).on("dragstart.drag",QL,YL)
|
|
12659
|
+
"onselectstart"in e?n.on("selectstart.drag",QL,YL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),dH(t),r.mouse=[l,this.__zoom.invert(l)],FV(this),r.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,r=XL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(r),l=n.k*(t.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,e),c)
|
|
12660
|
+
hH(t),d>0?JL(this).transition().duration(d).call(x,h,r,t):JL(this).call(v.transform,h,r,t)}}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)
|
|
12661
|
+
for(dH(n),r=0;r<d;++r)l=[l=XL(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+!!t)
|
|
12662
|
+
t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),FV(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,r,a=C(this,e).event(t),l=t.changedTouches,d=l.length
|
|
12663
|
+
for(hH(t),n=0;n<d;++n)o=XL(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)
|
|
12663
12664
|
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
|
|
12664
12665
|
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
|
|
12665
12666
|
o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(y(i,o,r),a.extent,c))}}function I(t,...i){if(this.__zooming){var o,s,r=C(this,i).event(t),a=t.changedTouches,l=a.length
|
|
12666
|
-
for(
|
|
12667
|
+
for(dH(t),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
|
|
12667
12668
|
if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
|
|
12668
|
-
else if(r.end(),2===r.taps&&(s=
|
|
12669
|
+
else if(r.end(),2===r.taps&&(s=XL(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var c=JL(this).on("dblclick.zoom")
|
|
12669
12670
|
c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,i){var o=t.selection?t.selection():t
|
|
12670
|
-
o.property("__zoom",
|
|
12671
|
+
o.property("__zoom",fH),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,r=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof e?e.apply(this,arguments):e
|
|
12671
12672
|
return s(y(b(i,l),r,a),t,c)}),n,i)},v.translateBy=function(t,e,n,i){v.transform(t,(function(){return s(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(t,e,n,i,r){v.transform(t,(function(){var t=o.apply(this,arguments),r=this.__zoom,a=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i
|
|
12672
|
-
return s(
|
|
12673
|
-
u.call(t,this.that,new
|
|
12674
|
-
return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}
|
|
12675
|
-
const
|
|
12673
|
+
return s(cH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,r)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=JL(this.that).datum()
|
|
12674
|
+
u.call(t,this.that,new aH(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(r="function"==typeof t?t:rH(+t),v):r},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:rH(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:rH(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:rH([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(s=t,v):s},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
|
|
12675
|
+
return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}lH.prototype
|
|
12676
|
+
const yH=Z`
|
|
12676
12677
|
<div class="wafer-map-container">
|
|
12677
12678
|
<svg class="svg-root">
|
|
12678
12679
|
<g ${Pt("zoomContainer")} transform=${t=>t.transform.toString()}>
|
|
@@ -12702,7 +12703,7 @@ const bH=Z`
|
|
|
12702
12703
|
/>
|
|
12703
12704
|
</svg>
|
|
12704
12705
|
</div>
|
|
12705
|
-
`,
|
|
12706
|
+
`,wH=xt`
|
|
12706
12707
|
:host {
|
|
12707
12708
|
display: inline-block;
|
|
12708
12709
|
width: 500px;
|
|
@@ -12786,76 +12787,76 @@ const bH=Z`
|
|
|
12786
12787
|
outline-width: 0px;
|
|
12787
12788
|
}
|
|
12788
12789
|
`
|
|
12789
|
-
function
|
|
12790
|
+
function xH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function CH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kH(t){let e,n,i
|
|
12790
12791
|
function o(t,i,o=0,s=t.length){if(o<s){if(0!==e(i,i))return s
|
|
12791
12792
|
do{const e=o+s>>>1
|
|
12792
|
-
n(t[e],i)<0?o=e+1:s=e}while(o<s)}return o}return 2!==t.length?(e=
|
|
12793
|
+
n(t[e],i)<0?o=e+1:s=e}while(o<s)}return o}return 2!==t.length?(e=xH,n=(e,n)=>xH(t(e),n),i=(e,n)=>t(e)-n):(e=t===xH||t===CH?t:SH,n=t,i=t),{left:o,center:function(t,e,n=0,s=t.length){const r=o(t,e,n,s-1)
|
|
12793
12794
|
return r>n&&i(t[r-1],e)>-i(t[r],e)?r-1:r},right:function(t,i,o=0,s=t.length){if(o<s){if(0!==e(i,i))return s
|
|
12794
12795
|
do{const e=o+s>>>1
|
|
12795
|
-
n(t[e],i)<=0?o=e+1:s=e}while(o<s)}return o}}}function
|
|
12796
|
-
|
|
12797
|
-
class
|
|
12796
|
+
n(t[e],i)<=0?o=e+1:s=e}while(o<s)}return o}}}function SH(){return 0}function $H(t){return null===t?NaN:+t}const MH=kH(xH).right
|
|
12797
|
+
kH($H).center
|
|
12798
|
+
class _H extends Map{constructor(t,e=IH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(EH(this,t))}has(t){return super.has(EH(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
|
|
12798
12799
|
return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n)
|
|
12799
12800
|
t.has(i)&&(n=t.get(i),t.delete(i))
|
|
12800
|
-
return n}(this,t))}}function
|
|
12801
|
-
return t.has(i)?t.get(i):n}function
|
|
12802
|
-
function
|
|
12801
|
+
return n}(this,t))}}function EH({_intern:t,_key:e},n){const i=e(n)
|
|
12802
|
+
return t.has(i)?t.get(i):n}function IH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const DH=Math.sqrt(50),AH=Math.sqrt(10),TH=Math.sqrt(2)
|
|
12803
|
+
function OH(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),r=s>=DH?10:s>=AH?5:s>=TH?2:1
|
|
12803
12804
|
let a,l,c
|
|
12804
|
-
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?
|
|
12805
|
+
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?OH(t,e,2*n):[a,l,c]}function RH(t,e,n){if(!((n=+n)>0))return[]
|
|
12805
12806
|
if((t=+t)===(e=+e))return[t]
|
|
12806
|
-
const i=e<t,[o,s,r]=i?
|
|
12807
|
+
const i=e<t,[o,s,r]=i?OH(e,t,n):OH(t,e,n)
|
|
12807
12808
|
if(!(s>=o))return[]
|
|
12808
12809
|
const a=s-o+1,l=new Array(a)
|
|
12809
12810
|
if(i)if(r<0)for(let t=0;t<a;++t)l[t]=(s-t)/-r
|
|
12810
12811
|
else for(let t=0;t<a;++t)l[t]=(s-t)*r
|
|
12811
12812
|
else if(r<0)for(let t=0;t<a;++t)l[t]=(o+t)/-r
|
|
12812
12813
|
else for(let t=0;t<a;++t)l[t]=(o+t)*r
|
|
12813
|
-
return l}function
|
|
12814
|
+
return l}function FH(t,e,n){return OH(t=+t,e=+e,n=+n)[2]}function NH(t,e,n=$H){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
|
|
12814
12815
|
if(e>=1)return+n(t[i-1],i-1,t)
|
|
12815
12816
|
var i,o=(i-1)*e,s=Math.floor(o),r=+n(t[s],s,t)
|
|
12816
|
-
return r+(+n(t[s+1],s+1,t)-r)*(o-s)}}function
|
|
12817
|
+
return r+(+n(t[s+1],s+1,t)-r)*(o-s)}}function PH(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
|
|
12817
12818
|
for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(o);++i<o;)s[i]=t+i*n
|
|
12818
|
-
return s}function
|
|
12819
|
+
return s}function LH(t,e){switch(arguments.length){case 0:break
|
|
12819
12820
|
case 1:this.range(t)
|
|
12820
12821
|
break
|
|
12821
|
-
default:this.range(e).domain(t)}return this}const
|
|
12822
|
-
function
|
|
12822
|
+
default:this.range(e).domain(t)}return this}const zH=Symbol("implicit")
|
|
12823
|
+
function VH(){var t=new _H,e=[],n=[],i=zH
|
|
12823
12824
|
function o(o){let s=t.get(o)
|
|
12824
|
-
if(void 0===s){if(i!==
|
|
12825
|
+
if(void 0===s){if(i!==zH)return i
|
|
12825
12826
|
t.set(o,s=e.push(o)-1)}return n[s%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice()
|
|
12826
|
-
e=[],t=new
|
|
12827
|
+
e=[],t=new _H
|
|
12827
12828
|
for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
|
|
12828
|
-
return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return
|
|
12829
|
+
return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return VH(e,n).unknown(i)},LH.apply(o,arguments),o}function HH(){var t,e,n=VH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
|
|
12829
12830
|
function h(){var n=i().length,h=r<s,u=h?r:s,p=h?s:r
|
|
12830
12831
|
t=(p-u)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),u+=(p-u-t*(n-l))*d,e=t*(1-l),a&&(u=Math.round(u),e=Math.round(e))
|
|
12831
|
-
var f=
|
|
12832
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return
|
|
12833
|
-
function
|
|
12834
|
-
var n}function
|
|
12835
|
-
return o<i?(i=
|
|
12836
|
-
for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)o[r]=
|
|
12837
|
-
return function(e){var n
|
|
12838
|
-
return s[n](o[n](e))}}function
|
|
12832
|
+
var f=PH(n).map((function(e){return u+t*e}))
|
|
12833
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return HH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},LH.apply(h(),arguments)}function BH(t){return+t}var qH=[0,1]
|
|
12834
|
+
function UH(t){return t}function jH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
|
|
12835
|
+
var n}function WH(t,e,n){var i=t[0],o=t[1],s=e[0],r=e[1]
|
|
12836
|
+
return o<i?(i=jH(o,i),s=n(r,s)):(i=jH(i,o),s=n(s,r)),function(t){return s(i(t))}}function ZH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),s=new Array(i),r=-1
|
|
12837
|
+
for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)o[r]=jH(t[r],t[r+1]),s[r]=n(e[r],e[r+1])
|
|
12838
|
+
return function(e){var n=MH(t,e,1,i)-1
|
|
12839
|
+
return s[n](o[n](e))}}function GH(){var t,e,n,i,o,s,r=qH,a=qH,l=Wz,c=UH
|
|
12839
12840
|
function d(){var t,e,n,l=Math.min(r.length,a.length)
|
|
12840
|
-
return c!==
|
|
12841
|
+
return c!==UH&&(t=r[0],e=r[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?ZH:WH,o=s=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(r.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((s||(s=i(a,r.map(t),Hz)))(n)))},h.domain=function(t){return arguments.length?(r=Array.from(t,BH),d()):r.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Zz,d()},h.clamp=function(t){return arguments.length?(c=!!t||UH,d()):c!==UH},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function KH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
|
|
12841
12842
|
var n,i=t.slice(0,n)
|
|
12842
|
-
return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function
|
|
12843
|
-
function
|
|
12843
|
+
return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function JH(t){return(t=KH(Math.abs(t)))?t[1]:NaN}var XH,YH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
12844
|
+
function QH(t){if(!(e=YH.exec(t)))throw new Error("invalid format: "+t)
|
|
12844
12845
|
var e
|
|
12845
|
-
return new
|
|
12846
|
+
return new tB({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tB(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eB(t,e){var n=KH(t,e)
|
|
12846
12847
|
if(!n)return t+""
|
|
12847
12848
|
var i=n[0],o=n[1]
|
|
12848
|
-
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")}
|
|
12849
|
-
var
|
|
12849
|
+
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}QH.prototype=tB.prototype,tB.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}
|
|
12850
|
+
var nB={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eB(100*t,e),r:eB,s:function(t,e){var n=KH(t,e)
|
|
12850
12851
|
if(!n)return t+""
|
|
12851
|
-
var i=n[0],o=n[1],s=o-(
|
|
12852
|
-
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")+
|
|
12853
|
-
function
|
|
12854
|
-
function
|
|
12855
|
-
return s.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?
|
|
12856
|
-
function h(t){var e=(t=
|
|
12857
|
-
"n"===b?(m=!0,b="g"):
|
|
12858
|
-
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=
|
|
12852
|
+
var i=n[0],o=n[1],s=o-(XH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
|
|
12853
|
+
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")+KH(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
|
|
12854
|
+
function iB(t){return t}var oB,sB,rB,aB=Array.prototype.map,lB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
12855
|
+
function cB(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?iB:(e=aB.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,s=[],r=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[r=(r+1)%e.length]
|
|
12856
|
+
return s.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?iB:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(aB.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
|
|
12857
|
+
function h(t){var e=(t=QH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
|
|
12858
|
+
"n"===b?(m=!0,b="g"):nB[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
|
|
12859
|
+
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=nB[b],C=/[defgprs%]/.test(b)
|
|
12859
12860
|
function k(t){var o,s,l,u=y,k=w
|
|
12860
12861
|
if("c"===b)k=x(t)+k,t=""
|
|
12861
12862
|
else{var S=(t=+t)<0||1/t<0
|
|
@@ -12864,7 +12865,7 @@ break
|
|
|
12864
12865
|
case"0":0===o&&(o=i),e=i
|
|
12865
12866
|
break
|
|
12866
12867
|
default:if(!+t[i])break t
|
|
12867
|
-
o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?
|
|
12868
|
+
o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?lB[8+XH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?r+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
|
|
12868
12869
|
break}}m&&!p&&(t=i(t,1/0))
|
|
12869
12870
|
var $=u.length+t.length+k.length,M=$<f?new Array(f-$+1).join(e):""
|
|
12870
12871
|
switch(m&&p&&(t=i(M+t,M.length?f-k.length:1/0),M=""),n){case"<":t=u+t+k+M
|
|
@@ -12873,46 +12874,46 @@ case"=":t=u+M+t+k
|
|
|
12873
12874
|
break
|
|
12874
12875
|
case"^":t=M.slice(0,$=M.length>>1)+u+t+k+M.slice($)
|
|
12875
12876
|
break
|
|
12876
|
-
default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=
|
|
12877
|
-
return function(t){return n(o*t)+s}}}}function
|
|
12878
|
-
const i=(e=+e)<(t=+t),o=i?
|
|
12877
|
+
default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=QH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(JH(e)/3))),o=Math.pow(10,-i),s=lB[8+i/3]
|
|
12878
|
+
return function(t){return n(o*t)+s}}}}function dB(t,e,n,i){var o,s=function(t,e,n){n=+n
|
|
12879
|
+
const i=(e=+e)<(t=+t),o=i?FH(e,t,n):FH(t,e,n)
|
|
12879
12880
|
return(i?-1:1)*(o<0?1/-o:o)}(t,e,n)
|
|
12880
|
-
switch((i=
|
|
12881
|
-
return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
12882
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,
|
|
12881
|
+
switch((i=QH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e))
|
|
12882
|
+
return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(JH(e)/3)))-JH(Math.abs(t)))}(s,r))||(i.precision=o),rB(i,r)
|
|
12883
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,JH(e)-JH(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
|
|
12883
12884
|
break
|
|
12884
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-
|
|
12885
|
-
return t.copy=function(){return e=t,
|
|
12886
|
-
var e},
|
|
12885
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-JH(Math.abs(t)))}(s))||(i.precision=o-2*("%"===i.type))}return sB(i)}function hB(){var t=GH()(UH,UH)
|
|
12886
|
+
return t.copy=function(){return e=t,hB().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
|
|
12887
|
+
var e},LH.apply(t,arguments),function(t){var e=t.domain
|
|
12887
12888
|
return t.ticks=function(t){var n=e()
|
|
12888
|
-
return
|
|
12889
|
-
return
|
|
12889
|
+
return RH(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
|
|
12890
|
+
return dB(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
|
|
12890
12891
|
var i,o,s=e(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
|
|
12891
|
-
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=
|
|
12892
|
+
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=FH(l,c,n))===i)return s[r]=l,s[a]=c,e(s)
|
|
12892
12893
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
12893
12894
|
else{if(!(o<0))break
|
|
12894
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function
|
|
12895
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function uB(){var t,e=[],n=[],i=[]
|
|
12895
12896
|
function o(){var t=0,o=Math.max(1,n.length)
|
|
12896
|
-
for(i=new Array(o-1);++t<o;)i[t-1]=
|
|
12897
|
-
return s}function s(e){return null==e||isNaN(e=+e)?t:n[
|
|
12897
|
+
for(i=new Array(o-1);++t<o;)i[t-1]=NH(e,t/o)
|
|
12898
|
+
return s}function s(e){return null==e||isNaN(e=+e)?t:n[MH(i,e)]}return s.invertExtent=function(t){var o=n.indexOf(t)
|
|
12898
12899
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:e[0],o<i.length?i[o]:e[e.length-1]]},s.domain=function(t){if(!arguments.length)return e.slice()
|
|
12899
12900
|
e=[]
|
|
12900
12901
|
for(let n of t)null==n||isNaN(n=+n)||e.push(n)
|
|
12901
|
-
return e.sort(
|
|
12902
|
-
const
|
|
12903
|
-
class
|
|
12902
|
+
return e.sort(xH),o()},s.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return i.slice()},s.copy=function(){return uB().domain(e).range(n).unknown(t)},LH.apply(s,arguments)}oB=cB({thousands:",",grouping:[3],currency:["$",""]}),sB=oB.format,rB=oB.formatPrefix
|
|
12903
|
+
const pB="bottom-left",fB="bottom-right",mB="top-left",gB="top",vB="show",bB="hide",yB="linear",wB="ordinal"
|
|
12904
|
+
class xB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}update(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12904
12905
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
|
|
12905
12906
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height),s=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(),r=this.wafermap.originLocation
|
|
12906
12907
|
this._horizontalScale=this.createHorizontalScale(r,s,o),this._verticalScale=this.createVerticalScale(r,s,o),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))}}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}calculateGridDimensionsFromBoundingBox(){const t={origin:{x:0,y:0},rows:0,cols:0}
|
|
12907
12908
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12908
12909
|
const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
|
|
12909
12910
|
for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
|
|
12910
|
-
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=
|
|
12911
|
-
return t===
|
|
12912
|
-
return t===
|
|
12911
|
+
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=hB()
|
|
12912
|
+
return t===pB||t===mB?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=hB()
|
|
12913
|
+
return t===pB||t===fB?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class CB{get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.colorScaleResolution=10}update(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.experimentalDataManager.dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()}calculateColorScale(){if(this.wafermap.colorScaleMode===yB){const t=this.wafermap.colorScale.values.map((t=>+t)),e=hB().domain(t).range(this.wafermap.colorScale.colors)
|
|
12913
12914
|
let n=t[0],i=t[0]
|
|
12914
12915
|
t.forEach((t=>{t<n&&(n=t),t>i&&(i=t)}))
|
|
12915
|
-
return
|
|
12916
|
+
return RH(n,i,t.length*this.colorScaleResolution).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class kB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get colorScale(){return this.prerendering.colorScale}constructor(t){this.wafermap=t,this.computations=new xB(t),this.prerendering=new CB(t)}updateComputations(){this.computations.update(),this.prerendering.update()}updatePrerendering(){this.prerendering.update()}}class SB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?bB:vB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12916
12917
|
if(void 0===t)return""
|
|
12917
12918
|
const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12918
12919
|
if(void 0===e)return""
|
|
@@ -12925,58 +12926,58 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
12925
12926
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
12926
12927
|
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])
|
|
12927
12928
|
s[0]-=t,s[1]-=e
|
|
12928
|
-
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const
|
|
12929
|
-
class
|
|
12930
|
-
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(
|
|
12931
|
-
class
|
|
12932
|
-
class
|
|
12933
|
-
class
|
|
12929
|
+
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const $B=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
12930
|
+
class MB extends dI{constructor(t){super($B),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var _B,EB,IB,DB,AB,TB,OB,RB,FB
|
|
12931
|
+
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(_B||(_B={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(EB||(EB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(IB||(IB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(DB||(DB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(AB||(AB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(TB||(TB={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(OB||(OB={}))
|
|
12932
|
+
class NB{static isNull(t){return(null==t?void 0:t.typeId)===TB.Null}static isInt(t){return(null==t?void 0:t.typeId)===TB.Int}static isFloat(t){return(null==t?void 0:t.typeId)===TB.Float}static isBinary(t){return(null==t?void 0:t.typeId)===TB.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===TB.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===TB.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===TB.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===TB.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===TB.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===TB.Date}static isTime(t){return(null==t?void 0:t.typeId)===TB.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===TB.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===TB.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===TB.Duration}static isList(t){return(null==t?void 0:t.typeId)===TB.List}static isStruct(t){return(null==t?void 0:t.typeId)===TB.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===TB.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===TB.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===TB.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===TB.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===TB.Dictionary}static isDenseUnion(t){return NB.isUnion(t)&&t.mode===_B.Dense}static isSparseUnion(t){return NB.isUnion(t)&&t.mode===_B.Sparse}constructor(t){this.typeId=t}}RB=Symbol.toStringTag,NB[RB]=((FB=NB.prototype).children=null,FB.ArrayType=Array,FB.OffsetArrayType=Int32Array,FB[Symbol.toStringTag]="DataType")
|
|
12933
|
+
class PB extends NB{constructor(){super(TB.Null)}toString(){return"Null"}}PB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(PB.prototype)
|
|
12934
|
+
class LB extends NB{constructor(t,e){super(TB.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
12934
12935
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
12935
12936
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
12936
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
12937
|
-
class
|
|
12938
|
-
case
|
|
12939
|
-
case
|
|
12940
|
-
class
|
|
12941
|
-
class
|
|
12942
|
-
class
|
|
12943
|
-
class
|
|
12944
|
-
class
|
|
12945
|
-
class
|
|
12946
|
-
class
|
|
12947
|
-
class
|
|
12948
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
12949
|
-
class
|
|
12950
|
-
class
|
|
12951
|
-
class
|
|
12952
|
-
class
|
|
12953
|
-
class
|
|
12954
|
-
class
|
|
12955
|
-
class
|
|
12956
|
-
class
|
|
12957
|
-
class
|
|
12958
|
-
if(super(
|
|
12937
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}LB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(LB.prototype)
|
|
12938
|
+
class zB extends NB{constructor(t){super(TB.Float),this.precision=t}get ArrayType(){switch(this.precision){case EB.HALF:return Uint16Array
|
|
12939
|
+
case EB.SINGLE:return Float32Array
|
|
12940
|
+
case EB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}zB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(zB.prototype)
|
|
12941
|
+
class VB extends NB{constructor(){super(TB.Binary)}toString(){return"Binary"}}VB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(VB.prototype)
|
|
12942
|
+
class HB extends NB{constructor(){super(TB.LargeBinary)}toString(){return"LargeBinary"}}HB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(HB.prototype)
|
|
12943
|
+
class BB extends NB{constructor(){super(TB.Utf8)}toString(){return"Utf8"}}BB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(BB.prototype)
|
|
12944
|
+
class qB extends NB{constructor(){super(TB.LargeUtf8)}toString(){return"LargeUtf8"}}qB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(qB.prototype)
|
|
12945
|
+
class UB extends NB{constructor(){super(TB.Bool)}toString(){return"Bool"}}UB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(UB.prototype)
|
|
12946
|
+
class jB extends NB{constructor(t,e,n=128){super(TB.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}jB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(jB.prototype)
|
|
12947
|
+
class WB extends NB{constructor(t){super(TB.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${IB[this.unit]}>`}}WB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(WB.prototype)
|
|
12948
|
+
class ZB extends NB{constructor(t,e){super(TB.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${DB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
12949
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}ZB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(ZB.prototype)
|
|
12950
|
+
class GB extends NB{constructor(t,e){super(TB.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${DB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}GB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(GB.prototype)
|
|
12951
|
+
class KB extends NB{constructor(t){super(TB.Interval),this.unit=t}toString(){return`Interval<${AB[this.unit]}>`}}KB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(KB.prototype)
|
|
12952
|
+
class JB extends NB{constructor(t){super(TB.Duration),this.unit=t}toString(){return`Duration<${DB[this.unit]}>`}}JB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(JB.prototype)
|
|
12953
|
+
class XB extends NB{constructor(t){super(TB.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}XB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(XB.prototype)
|
|
12954
|
+
class YB extends NB{constructor(t){super(TB.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}YB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(YB.prototype)
|
|
12955
|
+
class QB extends NB{constructor(t,e,n){super(TB.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}QB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(QB.prototype)
|
|
12956
|
+
class tq extends NB{constructor(t){super(TB.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}tq[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(tq.prototype)
|
|
12957
|
+
class eq extends NB{constructor(t,e){super(TB.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}eq[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(eq.prototype)
|
|
12958
|
+
class nq extends NB{constructor(t,e=!1){var n,i,o
|
|
12959
|
+
if(super(TB.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
|
|
12959
12960
|
e&&(e.name="key")
|
|
12960
12961
|
const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
|
|
12961
|
-
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}
|
|
12962
|
-
const
|
|
12963
|
-
var
|
|
12964
|
-
class
|
|
12965
|
-
return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}
|
|
12966
|
-
class
|
|
12962
|
+
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}nq[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(nq.prototype)
|
|
12963
|
+
const iq=(oq=-1,()=>++oq)
|
|
12964
|
+
var oq
|
|
12965
|
+
class sq extends NB{constructor(t,e,n,i){super(TB.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?iq():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
|
|
12966
|
+
return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}sq[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(sq.prototype)
|
|
12967
|
+
class rq{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
|
|
12967
12968
|
else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
|
|
12968
|
-
e&&n&&i&&
|
|
12969
|
+
e&&n&&i&&NB.isInt(e.type)&&32===e.type.bitWidth&&NB.isInt(n.type)&&32===n.type.bitWidth&&NB.isFloat(i.type)&&i.type.precision===EB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class aq{constructor(t){this.wafermap=t}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.experimentalDataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.experimentalDataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?bB:vB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.experimentalDataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12969
12970
|
if(void 0===t)return""
|
|
12970
12971
|
const e=this.wafermap.experimentalDataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12971
12972
|
if(void 0===e)return""
|
|
12972
12973
|
const n=this.wafermap.transform.apply([t+this.wafermap.experimentalDataManager.margin.left,e+this.wafermap.experimentalDataManager.margin.top])
|
|
12973
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}class
|
|
12974
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}class lq{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
|
|
12974
12975
|
const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
|
|
12975
12976
|
if(void 0===n)return void(this.wafermap.hoverDie=void 0)
|
|
12976
12977
|
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
12977
12978
|
for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
|
|
12978
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===
|
|
12979
|
-
return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class
|
|
12979
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===pB||e===mB?Math.floor:Math.ceil,i=e===pB||e===fB?Math.ceil:Math.floor
|
|
12980
|
+
return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class cq{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){bH().on("zoom",null)(JL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){bH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(JL(this.wafermap))}}class dq extends Ve{constructor(){super(...arguments),this.waferMapUpdateTracker=new MB(this.asRequiredFieldsWaferMap),this.originLocation=pB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=gB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=yB,this.experimentalDataManager=new kB(this.asRequiredFieldsWaferMap),this.dataManager=new class{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12980
12981
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
|
|
12981
12982
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
12982
12983
|
this._radius=o/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -12984,30 +12985,30 @@ this._horizontalScale=this.createHorizontalScale(n,e,t),this._invertedHorizontal
|
|
|
12984
12985
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(t){if(0===t.length||void 0===t[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12985
12986
|
const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
|
|
12986
12987
|
for(const i of t)i.x<e.x&&(e.x=i.x),i.y<e.y&&(e.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
12987
|
-
return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=
|
|
12988
|
-
return t===
|
|
12989
|
-
return t===
|
|
12990
|
-
return t===
|
|
12991
|
-
return t===
|
|
12992
|
-
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?
|
|
12988
|
+
return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=HH().domain(PH(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
12989
|
+
return t===pB||t===mB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=uB().domain([0,n])
|
|
12990
|
+
return t===pB||t===mB?i.range(PH(e.origin.x,e.origin.x+e.cols)):i.range(PH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=HH().domain(PH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
12991
|
+
return t===pB||t===fB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=uB().domain([0,n])
|
|
12992
|
+
return t===pB||t===fB?i.range(PH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(PH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}(t),this.prerendering=new class{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
|
|
12993
|
+
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?hB().domain(t.values.map((t=>+t))).range(t.colors):VH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
|
|
12993
12994
|
const o=`${t}${i}`
|
|
12994
12995
|
return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
|
|
12995
12996
|
const n=new Set(e)
|
|
12996
|
-
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===
|
|
12997
|
+
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===yB}isColorScaleOrdinal(t){return t===wB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
|
|
12997
12998
|
if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
|
|
12998
12999
|
let s=Ko(o)
|
|
12999
|
-
return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}(this.asRequiredFieldsWaferMap),this.workerRenderer=new
|
|
13000
|
+
return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}(this.asRequiredFieldsWaferMap),this.workerRenderer=new aq(this.asRequiredFieldsWaferMap),this.renderer=new SB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=cH,this.hoverTransform="",this.hoverOpacity=bB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
|
|
13000
13001
|
const e={x:t.offsetX,y:t.offsetY}
|
|
13001
13002
|
if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
|
|
13002
13003
|
const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
13003
|
-
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===
|
|
13004
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===pB||e===mB?Math.floor:Math.ceil,i=e===pB||e===fB?Math.floor:Math.ceil
|
|
13004
13005
|
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
|
|
13005
13006
|
let n=0
|
|
13006
13007
|
for(const t of e)n+=t
|
|
13007
|
-
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new
|
|
13008
|
+
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new lq(this.asRequiredFieldsWaferMap),this.zoomHandler=new cq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new rq(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}experimentalUpdate(){this.validity.invalidDiesTableSchema||(this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate||this.waferMapUpdateTracker.requiresScalesUpdate?(this.experimentalDataManager.updateComputations(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate||this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.experimentalDataManager.updatePrerendering(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.workerRenderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.workerRenderer.renderHover())}update(){this.validate(),this.isExperimentalUpdate()?this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
|
|
13008
13009
|
if(void 0===e)return
|
|
13009
13010
|
const{height:n,width:i}=e.contentRect
|
|
13010
|
-
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([lt({attribute:"origin-location"})],
|
|
13011
|
-
const dq
|
|
13012
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
13011
|
+
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([lt({attribute:"origin-location"})],dq.prototype,"originLocation",void 0),t([lt({attribute:"grid-min-x",converter:rt})],dq.prototype,"gridMinX",void 0),t([lt({attribute:"grid-max-x",converter:rt})],dq.prototype,"gridMaxX",void 0),t([lt({attribute:"grid-min-y",converter:rt})],dq.prototype,"gridMinY",void 0),t([lt({attribute:"grid-max-y",converter:rt})],dq.prototype,"gridMaxY",void 0),t([lt],dq.prototype,"orientation",void 0),t([lt({attribute:"max-characters",converter:rt})],dq.prototype,"maxCharacters",void 0),t([lt({attribute:"die-labels-hidden",mode:"boolean"})],dq.prototype,"dieLabelsHidden",void 0),t([lt({attribute:"die-labels-suffix"})],dq.prototype,"dieLabelsSuffix",void 0),t([lt({attribute:"color-scale-mode"})],dq.prototype,"colorScaleMode",void 0),t([g],dq.prototype,"renderer",void 0),t([g],dq.prototype,"canvasWidth",void 0),t([g],dq.prototype,"canvasHeight",void 0),t([g],dq.prototype,"transform",void 0),t([g],dq.prototype,"hoverTransform",void 0),t([g],dq.prototype,"hoverOpacity",void 0),t([g],dq.prototype,"hoverWidth",void 0),t([g],dq.prototype,"hoverHeight",void 0),t([g],dq.prototype,"hoverDie",void 0),t([g],dq.prototype,"highlightedTags",void 0),t([g],dq.prototype,"dies",void 0),t([g],dq.prototype,"diesTable",void 0),t([g],dq.prototype,"colorScale",void 0)
|
|
13012
|
+
const hq=dq.compose({baseName:"wafer-map",template:yH,styles:wH})
|
|
13013
|
+
wi.getOrCreate().withPrefix("nimble").register(hq())}()
|
|
13013
13014
|
//# sourceMappingURL=all-components-bundle.min.js.map
|