@ni/nimble-components 16.1.1 → 16.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4731,67 +4731,78 @@ const sg=ve`
4731
4731
  color: ${Ta};
4732
4732
  }
4733
4733
 
4734
- .table-header {
4734
+ .header-row {
4735
4735
  display: flex;
4736
4736
  flex-direction: row;
4737
4737
  }
4738
4738
 
4739
- .table-cell {
4739
+ .header {
4740
4740
  flex: 1;
4741
4741
  }
4742
4742
  `,ng=ve`
4743
4743
  ${fs("flex")}
4744
+ `,rg=U`
4745
+ <template role="columnheader">
4746
+ <slot></slot>
4747
+ </template>
4748
+ `
4749
+ class ag extends St{}const lg=ag.compose({baseName:"table-header",template:rg,styles:ng})
4750
+ no.getOrCreate().withPrefix("nimble").register(lg())
4751
+ const cg=ve`
4752
+ ${fs("flex")}
4744
4753
 
4745
4754
  .cell {
4746
4755
  flex: 1;
4747
4756
  }
4748
- `,rg=ve`
4757
+ `,dg=ve`
4749
4758
  ${fs("flex")}
4750
- `,ag=U`
4759
+ `,hg=U`
4751
4760
  <template role="cell">
4752
4761
  ${e=>e.data}
4753
4762
  </template>
4754
4763
  `
4755
- class lg extends St{}e([m],lg.prototype,"data",void 0)
4756
- const cg=lg.compose({baseName:"table-cell",template:ag,styles:rg})
4757
- no.getOrCreate().withPrefix("nimble").register(cg())
4758
- const dg=U`
4764
+ class ug extends St{}e([m],ug.prototype,"data",void 0)
4765
+ const pg=ug.compose({baseName:"table-cell",template:hg,styles:dg})
4766
+ no.getOrCreate().withPrefix("nimble").register(pg())
4767
+ const gg=U`
4759
4768
  <template role="row">
4760
4769
  ${Oe((e=>e.columns),U`
4761
- <${no.tagFor(lg)}
4770
+ <${no.tagFor(ug)}
4762
4771
  class="cell"
4763
4772
  :data="${(e,t)=>t.parent.getCellValue(e)}"
4764
4773
  >
4765
- </${no.tagFor(lg)}>
4774
+ </${no.tagFor(ug)}>
4766
4775
  `)}
4767
4776
  </template>
4768
4777
  `
4769
- class hg extends St{constructor(){super(...arguments),this.columns=[]}getCellValue(e){return this.data?this.data[e]:void 0}}e([m],hg.prototype,"data",void 0),e([m],hg.prototype,"columns",void 0)
4770
- const ug=hg.compose({baseName:"table-row",template:dg,styles:ng})
4771
- no.getOrCreate().withPrefix("nimble").register(ug())
4772
- const pg=U`
4778
+ class vg extends St{constructor(){super(...arguments),this.columns=[]}getCellValue(e){return this.data?this.data[e]:void 0}}e([m],vg.prototype,"data",void 0),e([m],vg.prototype,"columns",void 0)
4779
+ const mg=vg.compose({baseName:"table-row",template:gg,styles:cg})
4780
+ no.getOrCreate().withPrefix("nimble").register(mg())
4781
+ const bg=U`
4773
4782
  <template role="table">
4774
4783
  <div class="table-container">
4775
4784
  <div role="rowgroup">
4776
- <div class="table-header" role="row">
4785
+ <div class="header-row" role="row">
4777
4786
  ${Oe((e=>e.columnHeaders),U`
4778
- <span class="table-cell" role="columnheader">${e=>e}</span>
4787
+ <${no.tagFor(ag)} class="header">
4788
+ ${e=>e}
4789
+ </${no.tagFor(ag)}>
4779
4790
  `)}
4780
4791
  </div>
4781
4792
  </div>
4782
4793
  <div class="table-viewport" role="rowgroup">
4783
4794
  ${Oe((e=>e.data),U`
4784
- <${no.tagFor(hg)}
4795
+ <${no.tagFor(vg)}
4785
4796
  :data="${e=>e}"
4786
4797
  :columns="${(e,t)=>t.parent.columns}"
4787
4798
  >
4788
- </${no.tagFor(hg)}>
4799
+ </${no.tagFor(vg)}>
4789
4800
  `)}
4790
4801
  </div>
4791
4802
  </div>
4792
4803
  </template>
4793
4804
  `
4794
- class gg extends St{constructor(){super(),this.data=[],this.columns=[],this.columnHeaders=[],this.tableInitialized=!1,this.update=e=>{this.table.setOptions((t=>({...t,...this.options,state:e,onStateChange:t=>{const i="function"==typeof t?t(e):t
4805
+ class fg extends St{constructor(){super(),this.data=[],this.columns=[],this.columnHeaders=[],this.tableInitialized=!1,this.update=e=>{this.table.setOptions((t=>({...t,...this.options,state:e,onStateChange:t=>{const i="function"==typeof t?t(e):t
4795
4806
  this.update(i)}})))},this.options={data:[],onStateChange:e=>{},getCoreRowModel:e=>Cp((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,s,n){void 0===s&&(s=0)
4796
4807
  const r=[]
4797
4808
  for(let l=0;l<t.length;l++){const c=og(e,e._getRowId(t[l],l,n),t[l],l,s)
@@ -4800,10 +4811,10 @@ i.flatRows.push(c),i.rowsById[c.id]=c,r.push(c),e.options.getSubRows&&(c.origina
4800
4811
  return i.rows=o(t),i}),{key:"development"===process.env.NODE_ENV&&"getRowModel",debug:()=>{var t
4801
4812
  return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),columns:[],state:{},renderFallbackValue:null,autoResetAll:!1},this.table=ig(this.options),this.tableInitialized=!0}dataChanged(e,t){(!e||0===e.length)&&t&&t.length>0&&this.generateColumns(),this.tableInitialized&&this.updateTableOptions({data:this.data})}updateTableOptions(e){this.options={...this.options,...e},this.update(this.table.initialState)}generateColumns(){if(0===this.data.length)return
4802
4813
  const e=this.data[0],t=Object.keys(e).map((e=>({id:e,accessorKey:e,header:e})))
4803
- this.updateTableOptions({columns:t}),this.columnHeaders=t.map((e=>e.header)),this.columns=this.columnHeaders}}e([m],gg.prototype,"data",void 0),e([m],gg.prototype,"columns",void 0),e([m],gg.prototype,"columnHeaders",void 0)
4804
- const vg=gg.compose({baseName:"table",template:pg,styles:sg})
4805
- no.getOrCreate().withPrefix("nimble").register(vg())
4806
- const mg=ve`
4814
+ this.updateTableOptions({columns:t}),this.columnHeaders=t.map((e=>e.header)),this.columns=this.columnHeaders}}e([m],fg.prototype,"data",void 0),e([m],fg.prototype,"columns",void 0),e([m],fg.prototype,"columnHeaders",void 0)
4815
+ const wg=fg.compose({baseName:"table",template:bg,styles:sg})
4816
+ no.getOrCreate().withPrefix("nimble").register(wg())
4817
+ const xg=ve`
4807
4818
  ${fs("grid")}
4808
4819
 
4809
4820
  :host {
@@ -4826,7 +4837,7 @@ const mg=ve`
4826
4837
  grid-column-end: 4;
4827
4838
  }
4828
4839
  `
4829
- const bg=class extends Uo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:Uo,template:(e,t)=>U`
4840
+ const yg=class extends Uo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:Uo,template:(e,t)=>U`
4830
4841
  <template class="${e=>e.orientation}">
4831
4842
  ${Be(0,t)}
4832
4843
  <div class="tablist" part="tablist" role="tablist">
@@ -4845,9 +4856,9 @@ const bg=class extends Uo{constructor(){super(),this.activeindicator=!1}}.compos
4845
4856
  <slot name="tabpanel" part="tabpanel" ${Le("tabpanels")}></slot>
4846
4857
  </div>
4847
4858
  </template>
4848
- `,styles:mg})
4849
- no.getOrCreate().withPrefix("nimble").register(bg())
4850
- const fg=ve`
4859
+ `,styles:xg})
4860
+ no.getOrCreate().withPrefix("nimble").register(yg())
4861
+ const $g=ve`
4851
4862
  ${fs("flex")}
4852
4863
 
4853
4864
  :host {
@@ -4865,15 +4876,15 @@ const fg=ve`
4865
4876
  rgba(${gr}, 0.3);
4866
4877
  margin: calc(${Sr} / 4) calc(${Sr} / 2);
4867
4878
  }
4868
- `,wg=U`
4879
+ `,Cg=U`
4869
4880
  <template slot="end">
4870
4881
  <div class="separator"></div>
4871
4882
  <slot></slot>
4872
4883
  </template>
4873
4884
  `
4874
- const xg=class extends St{}.compose({baseName:"tabs-toolbar",template:wg,styles:fg})
4875
- no.getOrCreate().withPrefix("nimble").register(xg())
4876
- const yg="outline",$g="block",Cg=ve`
4885
+ const kg=class extends St{}.compose({baseName:"tabs-toolbar",template:Cg,styles:$g})
4886
+ no.getOrCreate().withPrefix("nimble").register(kg())
4887
+ const Sg="outline",_g="block",Rg=ve`
4877
4888
  ${fs("inline-flex")}
4878
4889
 
4879
4890
  :host {
@@ -4965,12 +4976,12 @@ const yg="outline",$g="block",Cg=ve`
4965
4976
  :host([resize='vertical']) .control {
4966
4977
  resize: vertical;
4967
4978
  }
4968
- `.withBehaviors(Yl(yg,ve`
4979
+ `.withBehaviors(Yl(Sg,ve`
4969
4980
  .control {
4970
4981
  border-color: rgba(${gr}, 0.3);
4971
4982
  background-color: transparent;
4972
4983
  }
4973
- `),Yl($g,ve`
4984
+ `),Yl(_g,ve`
4974
4985
  .control {
4975
4986
  background-color: rgba(${gr}, 0.1);
4976
4987
  }
@@ -4984,8 +4995,8 @@ const yg="outline",$g="block",Cg=ve`
4984
4995
  background-color: rgba(${gr}, 0.1);
4985
4996
  }
4986
4997
  `))
4987
- class kg extends Yo{constructor(){super(...arguments),this.appearance=yg}}e([oe],kg.prototype,"appearance",void 0)
4988
- const Sg=kg.compose({baseName:"text-area",baseClass:Yo,template:(e,t)=>U`
4998
+ class zg extends Yo{constructor(){super(...arguments),this.appearance=Sg}}e([oe],zg.prototype,"appearance",void 0)
4999
+ const Mg=zg.compose({baseName:"text-area",baseClass:Yo,template:(e,t)=>U`
4989
5000
  <template
4990
5001
  class="
4991
5002
  ${e=>e.readOnly?"readonly":""}
@@ -5040,9 +5051,9 @@ const Sg=kg.compose({baseName:"text-area",baseClass:Yo,template:(e,t)=>U`
5040
5051
  ${Se("control")}
5041
5052
  ></textarea>
5042
5053
  </template>
5043
- `,styles:Cg,shadowOptions:{delegatesFocus:!0}})
5044
- no.getOrCreate().withPrefix("nimble").register(Sg())
5045
- const _g="underline",Rg="outline",zg="block",Mg="frameless",Ig=ve`
5054
+ `,styles:Rg,shadowOptions:{delegatesFocus:!0}})
5055
+ no.getOrCreate().withPrefix("nimble").register(Mg())
5056
+ const Ig="underline",Vg="outline",Og="block",Eg="frameless",Ag=ve`
5046
5057
  ${fs("inline-block")}
5047
5058
  ${Cu}
5048
5059
 
@@ -5214,12 +5225,12 @@ const _g="underline",Rg="outline",zg="block",Mg="frameless",Ig=ve`
5214
5225
  slot[name='actions']::slotted(*) {
5215
5226
  ${Cr.cssCustomProperty}: 24px;
5216
5227
  }
5217
- `.withBehaviors(Yl(_g,ve`
5228
+ `.withBehaviors(Yl(Ig,ve`
5218
5229
  .root {
5219
5230
  border-bottom-width: ${_r};
5220
5231
  padding-bottom: 0;
5221
5232
  }
5222
- `),Yl(zg,ve`
5233
+ `),Yl(Og,ve`
5223
5234
  .root {
5224
5235
  background-color: rgba(${gr}, 0.1);
5225
5236
  }
@@ -5247,12 +5258,12 @@ const _g="underline",Rg="outline",zg="block",Mg="frameless",Ig=ve`
5247
5258
  :host([disabled]) .root {
5248
5259
  background-color: rgba(${gr}, 0.07);
5249
5260
  }
5250
- `),Yl(Rg,ve`
5261
+ `),Yl(Vg,ve`
5251
5262
  .root {
5252
5263
  border-width: ${_r};
5253
5264
  padding: 0;
5254
5265
  }
5255
- `),Yl(Mg,ve`
5266
+ `),Yl(Eg,ve`
5256
5267
  .control {
5257
5268
  padding-left: ${_r};
5258
5269
  padding-right: ${_r};
@@ -5270,8 +5281,8 @@ const _g="underline",Rg="outline",zg="block",Mg="frameless",Ig=ve`
5270
5281
  filter: invert(100%);
5271
5282
  }
5272
5283
  `))
5273
- class Vg extends _o{constructor(){super(...arguments),this.appearance=_g,this.errorVisible=!1,this.fullBleed=!1}}e([oe],Vg.prototype,"appearance",void 0),e([oe({attribute:"error-text"})],Vg.prototype,"errorText",void 0),e([oe({attribute:"error-visible",mode:"boolean"})],Vg.prototype,"errorVisible",void 0),e([oe({attribute:"full-bleed",mode:"boolean"})],Vg.prototype,"fullBleed",void 0)
5274
- const Og=Vg.compose({baseName:"text-field",baseClass:_o,template:(e,t)=>U`
5284
+ class Hg extends _o{constructor(){super(...arguments),this.appearance=Ig,this.errorVisible=!1,this.fullBleed=!1}}e([oe],Hg.prototype,"appearance",void 0),e([oe({attribute:"error-text"})],Hg.prototype,"errorText",void 0),e([oe({attribute:"error-visible",mode:"boolean"})],Hg.prototype,"errorVisible",void 0),e([oe({attribute:"full-bleed",mode:"boolean"})],Hg.prototype,"fullBleed",void 0)
5285
+ const Lg=Hg.compose({baseName:"text-field",baseClass:_o,template:(e,t)=>U`
5275
5286
  <template
5276
5287
  class="
5277
5288
  ${e=>e.readOnly?"readonly":""}
@@ -5331,7 +5342,7 @@ const Og=Vg.compose({baseName:"text-field",baseClass:_o,template:(e,t)=>U`
5331
5342
  ${Te(0,t)}
5332
5343
  </div>
5333
5344
  </template>
5334
- `,styles:Ig,shadowOptions:{delegatesFocus:!0},end:U`
5345
+ `,styles:Ag,shadowOptions:{delegatesFocus:!0},end:U`
5335
5346
  <${no.tagFor(fu)}
5336
5347
  severity="error"
5337
5348
  class="error-icon"
@@ -5341,8 +5352,8 @@ const Og=Vg.compose({baseName:"text-field",baseClass:_o,template:(e,t)=>U`
5341
5352
  </span>
5342
5353
  ${uu}
5343
5354
  `})
5344
- no.getOrCreate().withPrefix("nimble").register(Og())
5345
- const Eg=ve`
5355
+ no.getOrCreate().withPrefix("nimble").register(Lg())
5356
+ const Pg=ve`
5346
5357
  .positioning-region {
5347
5358
  display: flex;
5348
5359
  padding: ${kr} ${Sr};
@@ -5367,7 +5378,7 @@ const Eg=ve`
5367
5378
  margin-left: auto;
5368
5379
  }
5369
5380
  `
5370
- const Ag=class extends Zo{}.compose({baseName:"toolbar",baseClass:Zo,template:(e,t)=>U`
5381
+ const Dg=class extends Zo{}.compose({baseName:"toolbar",baseClass:Zo,template:(e,t)=>U`
5371
5382
  <template
5372
5383
  aria-label="${e=>e.ariaLabel}"
5373
5384
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -5388,9 +5399,9 @@ const Ag=class extends Zo{}.compose({baseName:"toolbar",baseClass:Zo,template:(e
5388
5399
  ${Te(0,t)}
5389
5400
  </div>
5390
5401
  </template>
5391
- `,styles:Eg,shadowOptions:{delegatesFocus:!0}})
5392
- no.getOrCreate().withPrefix("nimble").register(Ag())
5393
- const Hg=ve`
5402
+ `,styles:Pg,shadowOptions:{delegatesFocus:!0}})
5403
+ no.getOrCreate().withPrefix("nimble").register(Dg())
5404
+ const Fg=ve`
5394
5405
  ${fs("inline-flex")}
5395
5406
 
5396
5407
  :host {
@@ -5475,7 +5486,7 @@ const Hg=ve`
5475
5486
  .status-icon {
5476
5487
  opacity: 0.6;
5477
5488
  }
5478
- `)),Lg=U`
5489
+ `)),Tg=U`
5479
5490
  ${_e((e=>e.tooltipVisible),U`
5480
5491
  <${no.tagFor(oc)}
5481
5492
  class="anchored-region"
@@ -5508,11 +5519,11 @@ const Hg=ve`
5508
5519
  </${no.tagFor(oc)}>
5509
5520
  `)}
5510
5521
  `
5511
- class Pg extends gs{constructor(){super(...arguments),this.iconVisible=!1}}e([oe],Pg.prototype,"severity",void 0),e([oe({attribute:"icon-visible",mode:"boolean"})],Pg.prototype,"iconVisible",void 0)
5512
- const Dg=Pg.compose({baseName:"tooltip",baseClass:gs,template:Lg,styles:Hg})
5513
- no.getOrCreate().withPrefix("nimble").register(Dg())
5514
- const Fg="group-selected",Tg="all",Bg="leaves-only",Ng="none"
5515
- class qg{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const jg=ve`
5522
+ class Bg extends gs{constructor(){super(...arguments),this.iconVisible=!1}}e([oe],Bg.prototype,"severity",void 0),e([oe({attribute:"icon-visible",mode:"boolean"})],Bg.prototype,"iconVisible",void 0)
5523
+ const Ng=Bg.compose({baseName:"tooltip",baseClass:gs,template:Tg,styles:Fg})
5524
+ no.getOrCreate().withPrefix("nimble").register(Ng())
5525
+ const qg="group-selected",jg="all",Gg="leaves-only",Ug="none"
5526
+ class Wg{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Kg=ve`
5516
5527
  ${fs("block")}
5517
5528
 
5518
5529
  :host {
@@ -5528,7 +5539,7 @@ class qg{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
5528
5539
  }
5529
5540
 
5530
5541
  ${""}
5531
- :host([${Fg}])::after {
5542
+ :host([${qg}])::after {
5532
5543
  background: ${wr};
5533
5544
  border-radius: 0px;
5534
5545
  content: '';
@@ -5550,7 +5561,7 @@ class qg{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
5550
5561
  background: ${ur};
5551
5562
  }
5552
5563
 
5553
- :host([${Fg}]) .positioning-region:hover {
5564
+ :host([${qg}]) .positioning-region:hover {
5554
5565
  background: ${hr};
5555
5566
  }
5556
5567
 
@@ -5662,7 +5673,7 @@ class qg{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
5662
5673
  display: block;
5663
5674
  }
5664
5675
  `.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
5665
- t&&sr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new qg(this.ltr,this.rtl,e),i=sr.getValueFor(e)
5676
+ t&&sr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Wg(this.ltr,this.rtl,e),i=sr.getValueFor(e)
5666
5677
  sr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(ve`
5667
5678
  .expand-collapse-button {
5668
5679
  left: var(
@@ -5694,11 +5705,11 @@ sr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(ve`
5694
5705
  transform: rotate(135deg);
5695
5706
  }
5696
5707
  `))
5697
- const Gg=class extends ms{constructor(){super(...arguments),this.treeView=null,this.handleSelectedChange=e=>{e.target===this&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("selected-change",this.handleSelectedChange),this.treeView=this.getParentTreeView(),this.treeView&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("selected-change",this.handleSelectedChange),this.treeView=null}clearTreeGroupSelection(){const e=this.treeView?.querySelectorAll("[group-selected]")
5698
- e?.forEach((e=>e.removeAttribute(Fg)))}setGroupSelectionOnRootParentTreeItem(e){this.clearTreeGroupSelection()
5708
+ const Xg=class extends ms{constructor(){super(...arguments),this.treeView=null,this.handleSelectedChange=e=>{e.target===this&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("selected-change",this.handleSelectedChange),this.treeView=this.getParentTreeView(),this.treeView&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("selected-change",this.handleSelectedChange),this.treeView=null}clearTreeGroupSelection(){const e=this.treeView?.querySelectorAll("[group-selected]")
5709
+ e?.forEach((e=>e.removeAttribute(qg)))}setGroupSelectionOnRootParentTreeItem(e){this.clearTreeGroupSelection()
5699
5710
  let t=e
5700
5711
  for(;t?.parentElement!==this.treeView;)t=t?.parentElement
5701
- t&&t.setAttribute(Fg,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}.compose({baseName:"tree-item",baseClass:ms,template:(e,t)=>U`
5712
+ t&&t.setAttribute(qg,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}.compose({baseName:"tree-item",baseClass:ms,template:(e,t)=>U`
5702
5713
  <template
5703
5714
  role="treeitem"
5704
5715
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -5738,9 +5749,9 @@ t&&t.setAttribute(Fg,"true")}getParentTreeView(){return this.parentElement.close
5738
5749
  </div>
5739
5750
  `)}
5740
5751
  </template>
5741
- `,styles:jg,expandCollapseGlyph:pc.data})
5742
- no.getOrCreate().withPrefix("nimble").register(Gg())
5743
- const Ug=ve`
5752
+ `,styles:Kg,expandCollapseGlyph:pc.data})
5753
+ no.getOrCreate().withPrefix("nimble").register(Xg())
5754
+ const Yg=ve`
5744
5755
  ${fs("flex")}
5745
5756
 
5746
5757
  :host {
@@ -5753,14 +5764,14 @@ const Ug=ve`
5753
5764
  outline: none;
5754
5765
  }
5755
5766
  `
5756
- class Wg extends bs{constructor(){super(...arguments),this.selectionMode=Tg}handleClick(e){if(e.defaultPrevented)return!1
5767
+ class Qg extends bs{constructor(){super(...arguments),this.selectionMode=jg}handleClick(e){if(e.defaultPrevented)return!1
5757
5768
  if(!(e.target instanceof Element&&vs(e.target)))return!0
5758
5769
  const t=e.target
5759
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Tg:return!0
5760
- case Ng:return!1
5761
- case Bg:return!this.itemHasChildren(e)
5762
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}}e([oe({attribute:"selection-mode"})],Wg.prototype,"selectionMode",void 0)
5763
- const Kg=Wg.compose({baseName:"tree-view",baseClass:bs,template:(e,t)=>U`
5770
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case jg:return!0
5771
+ case Ug:return!1
5772
+ case Gg:return!this.itemHasChildren(e)
5773
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}}e([oe({attribute:"selection-mode"})],Qg.prototype,"selectionMode",void 0)
5774
+ const Zg=Qg.compose({baseName:"tree-view",baseClass:bs,template:(e,t)=>U`
5764
5775
  <template
5765
5776
  role="tree"
5766
5777
  ${Se("treeView")}
@@ -5772,9 +5783,9 @@ const Kg=Wg.compose({baseName:"tree-view",baseClass:bs,template:(e,t)=>U`
5772
5783
  >
5773
5784
  <slot ${Le("slottedTreeItems")}></slot>
5774
5785
  </template>
5775
- `,styles:Ug})
5776
- no.getOrCreate().withPrefix("nimble").register(Kg())
5777
- const Xg=U`
5786
+ `,styles:Yg})
5787
+ no.getOrCreate().withPrefix("nimble").register(Zg())
5788
+ const Jg=U`
5778
5789
  <div class="wafer-map-container">
5779
5790
  <svg class="svg-root ${e=>e.orientation}">
5780
5791
  <g class="zoom-container">
@@ -5787,7 +5798,7 @@ const Xg=U`
5787
5798
  <canvas width=500 height="500" ${Se("canvas")}>
5788
5799
  </div>
5789
5800
  </div>
5790
- `,Yg=ve`
5801
+ `,ev=ve`
5791
5802
  .wafer-map-container {
5792
5803
  width: 500px;
5793
5804
  height: 500px;
@@ -5840,98 +5851,98 @@ const Xg=U`
5840
5851
  .wafer-map-area {
5841
5852
  position: absolute;
5842
5853
  }
5843
- `,Qg="bottom-left",Zg="bottom-right",Jg="top-left",ev="top",tv="linear",iv="ordinal"
5844
- function ov(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sv(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nv(e){let t,i,o
5854
+ `,tv="bottom-left",iv="bottom-right",ov="top-left",sv="top",nv="linear",rv="ordinal"
5855
+ function av(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lv(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cv(e){let t,i,o
5845
5856
  function s(e,o,s=0,n=e.length){if(s<n){if(0!==t(o,o))return n
5846
5857
  do{const t=s+n>>>1
5847
- i(e[t],o)<0?s=t+1:n=t}while(s<n)}return s}return 2!==e.length?(t=ov,i=(t,i)=>ov(e(t),i),o=(t,i)=>e(t)-i):(t=e===ov||e===sv?e:rv,i=e,o=e),{left:s,center:function(e,t,i=0,n=e.length){const r=s(e,t,i,n-1)
5858
+ i(e[t],o)<0?s=t+1:n=t}while(s<n)}return s}return 2!==e.length?(t=av,i=(t,i)=>av(e(t),i),o=(t,i)=>e(t)-i):(t=e===av||e===lv?e:dv,i=e,o=e),{left:s,center:function(e,t,i=0,n=e.length){const r=s(e,t,i,n-1)
5848
5859
  return r>i&&o(e[r-1],t)>-o(e[r],t)?r-1:r},right:function(e,o,s=0,n=e.length){if(s<n){if(0!==t(o,o))return n
5849
5860
  do{const t=s+n>>>1
5850
- i(e[t],o)<=0?s=t+1:n=t}while(s<n)}return s}}}function rv(){return 0}const av=nv(ov).right
5851
- nv((function(e){return null===e?NaN:+e})).center
5852
- var lv=av
5853
- class cv extends Map{constructor(e,t=hv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(dv(this,e))}has(e){return super.has(dv(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
5861
+ i(e[t],o)<=0?s=t+1:n=t}while(s<n)}return s}}}function dv(){return 0}const hv=cv(av).right
5862
+ cv((function(e){return null===e?NaN:+e})).center
5863
+ var uv=hv
5864
+ class pv extends Map{constructor(e,t=vv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(gv(this,e))}has(e){return super.has(gv(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
5854
5865
  return e.has(o)?e.get(o):(e.set(o,i),i)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},i){const o=t(i)
5855
5866
  e.has(o)&&(i=e.get(o),e.delete(o))
5856
- return i}(this,e))}}function dv({_intern:e,_key:t},i){const o=t(i)
5857
- return e.has(o)?e.get(o):i}function hv(e){return null!==e&&"object"==typeof e?e.valueOf():e}var uv=Math.sqrt(50),pv=Math.sqrt(10),gv=Math.sqrt(2)
5858
- function vv(e,t,i){var o=(t-e)/Math.max(0,i),s=Math.floor(Math.log(o)/Math.LN10),n=o/Math.pow(10,s)
5859
- return s>=0?(n>=uv?10:n>=pv?5:n>=gv?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(n>=uv?10:n>=pv?5:n>=gv?2:1)}function mv(e,t,i){e=+e,t=+t,i=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+i
5867
+ return i}(this,e))}}function gv({_intern:e,_key:t},i){const o=t(i)
5868
+ return e.has(o)?e.get(o):i}function vv(e){return null!==e&&"object"==typeof e?e.valueOf():e}var mv=Math.sqrt(50),bv=Math.sqrt(10),fv=Math.sqrt(2)
5869
+ function wv(e,t,i){var o=(t-e)/Math.max(0,i),s=Math.floor(Math.log(o)/Math.LN10),n=o/Math.pow(10,s)
5870
+ return s>=0?(n>=mv?10:n>=bv?5:n>=fv?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(n>=mv?10:n>=bv?5:n>=fv?2:1)}function xv(e,t,i){e=+e,t=+t,i=(s=arguments.length)<2?(t=e,e=0,1):s<3?1:+i
5860
5871
  for(var o=-1,s=0|Math.max(0,Math.ceil((t-e)/i)),n=new Array(s);++o<s;)n[o]=e+o*i
5861
- return n}function bv(e,t){switch(arguments.length){case 0:break
5872
+ return n}function yv(e,t){switch(arguments.length){case 0:break
5862
5873
  case 1:this.range(e)
5863
5874
  break
5864
- default:this.range(t).domain(e)}return this}const fv=Symbol("implicit")
5865
- function wv(){var e=new cv,t=[],i=[],o=fv
5875
+ default:this.range(t).domain(e)}return this}const $v=Symbol("implicit")
5876
+ function Cv(){var e=new pv,t=[],i=[],o=$v
5866
5877
  function s(s){let n=e.get(s)
5867
- if(void 0===n){if(o!==fv)return o
5878
+ if(void 0===n){if(o!==$v)return o
5868
5879
  e.set(s,n=t.push(s)-1)}return i[n%i.length]}return s.domain=function(i){if(!arguments.length)return t.slice()
5869
- t=[],e=new cv
5880
+ t=[],e=new pv
5870
5881
  for(const o of i)e.has(o)||e.set(o,t.push(o)-1)
5871
- return s},s.range=function(e){return arguments.length?(i=Array.from(e),s):i.slice()},s.unknown=function(e){return arguments.length?(o=e,s):o},s.copy=function(){return wv(t,i).unknown(o)},bv.apply(s,arguments),s}function xv(){var e,t,i=wv().unknown(void 0),o=i.domain,s=i.range,n=0,r=1,a=!1,l=0,c=0,d=.5
5882
+ return s},s.range=function(e){return arguments.length?(i=Array.from(e),s):i.slice()},s.unknown=function(e){return arguments.length?(o=e,s):o},s.copy=function(){return Cv(t,i).unknown(o)},yv.apply(s,arguments),s}function kv(){var e,t,i=Cv().unknown(void 0),o=i.domain,s=i.range,n=0,r=1,a=!1,l=0,c=0,d=.5
5872
5883
  function h(){var i=o().length,h=r<n,u=h?r:n,p=h?n:r
5873
5884
  e=(p-u)/Math.max(1,i-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(i-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
5874
- var g=mv(i).map((function(t){return u+e*t}))
5875
- return s(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),h()):o()},i.range=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,h()):[n,r]},i.rangeRound=function(e){return[n,r]=e,n=+n,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return xv(o(),[n,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},bv.apply(h(),arguments)}function yv(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function $v(e,t){var i=Object.create(e.prototype)
5885
+ var g=xv(i).map((function(t){return u+e*t}))
5886
+ return s(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),h()):o()},i.range=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,h()):[n,r]},i.rangeRound=function(e){return[n,r]=e,n=+n,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return kv(o(),[n,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},yv.apply(h(),arguments)}function Sv(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function _v(e,t){var i=Object.create(e.prototype)
5876
5887
  for(var o in t)i[o]=t[o]
5877
- return i}function Cv(){}var kv=.7,Sv=1/kv,_v="\\s*([+-]?\\d+)\\s*",Rv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mv=/^#([0-9a-f]{3,8})$/,Iv=new RegExp(`^rgb\\(${_v},${_v},${_v}\\)$`),Vv=new RegExp(`^rgb\\(${zv},${zv},${zv}\\)$`),Ov=new RegExp(`^rgba\\(${_v},${_v},${_v},${Rv}\\)$`),Ev=new RegExp(`^rgba\\(${zv},${zv},${zv},${Rv}\\)$`),Av=new RegExp(`^hsl\\(${Rv},${zv},${zv}\\)$`),Hv=new RegExp(`^hsla\\(${Rv},${zv},${zv},${Rv}\\)$`),Lv={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}
5878
- function Pv(){return this.rgb().formatHex()}function Dv(){return this.rgb().formatRgb()}function Fv(e){var t,i
5879
- return e=(e+"").trim().toLowerCase(),(t=Mv.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?Tv(t):3===i?new jv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?Bv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?Bv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Iv.exec(e))?new jv(t[1],t[2],t[3],1):(t=Vv.exec(e))?new jv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ov.exec(e))?Bv(t[1],t[2],t[3],t[4]):(t=Ev.exec(e))?Bv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Av.exec(e))?Yv(t[1],t[2]/100,t[3]/100,1):(t=Hv.exec(e))?Yv(t[1],t[2]/100,t[3]/100,t[4]):Lv.hasOwnProperty(e)?Tv(Lv[e]):"transparent"===e?new jv(NaN,NaN,NaN,0):null}function Tv(e){return new jv(e>>16&255,e>>8&255,255&e,1)}function Bv(e,t,i,o){return o<=0&&(e=t=i=NaN),new jv(e,t,i,o)}function Nv(e){return e instanceof Cv||(e=Fv(e)),e?new jv((e=e.rgb()).r,e.g,e.b,e.opacity):new jv}function qv(e,t,i,o){return 1===arguments.length?Nv(e):new jv(e,t,i,null==o?1:o)}function jv(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function Gv(){return`#${Xv(this.r)}${Xv(this.g)}${Xv(this.b)}`}function Uv(){const e=Wv(this.opacity)
5880
- return`${1===e?"rgb(":"rgba("}${Kv(this.r)}, ${Kv(this.g)}, ${Kv(this.b)}${1===e?")":`, ${e})`}`}function Wv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xv(e){return((e=Kv(e))<16?"0":"")+e.toString(16)}function Yv(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Zv(e,t,i,o)}function Qv(e){if(e instanceof Zv)return new Zv(e.h,e.s,e.l,e.opacity)
5881
- if(e instanceof Cv||(e=Fv(e)),!e)return new Zv
5882
- if(e instanceof Zv)return e
5888
+ return i}function Rv(){}var zv=.7,Mv=1/zv,Iv="\\s*([+-]?\\d+)\\s*",Vv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ov="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ev=/^#([0-9a-f]{3,8})$/,Av=new RegExp(`^rgb\\(${Iv},${Iv},${Iv}\\)$`),Hv=new RegExp(`^rgb\\(${Ov},${Ov},${Ov}\\)$`),Lv=new RegExp(`^rgba\\(${Iv},${Iv},${Iv},${Vv}\\)$`),Pv=new RegExp(`^rgba\\(${Ov},${Ov},${Ov},${Vv}\\)$`),Dv=new RegExp(`^hsl\\(${Vv},${Ov},${Ov}\\)$`),Fv=new RegExp(`^hsla\\(${Vv},${Ov},${Ov},${Vv}\\)$`),Tv={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}
5889
+ function Bv(){return this.rgb().formatHex()}function Nv(){return this.rgb().formatRgb()}function qv(e){var t,i
5890
+ return e=(e+"").trim().toLowerCase(),(t=Ev.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?jv(t):3===i?new Kv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?Gv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?Gv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Av.exec(e))?new Kv(t[1],t[2],t[3],1):(t=Hv.exec(e))?new Kv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Lv.exec(e))?Gv(t[1],t[2],t[3],t[4]):(t=Pv.exec(e))?Gv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Dv.exec(e))?em(t[1],t[2]/100,t[3]/100,1):(t=Fv.exec(e))?em(t[1],t[2]/100,t[3]/100,t[4]):Tv.hasOwnProperty(e)?jv(Tv[e]):"transparent"===e?new Kv(NaN,NaN,NaN,0):null}function jv(e){return new Kv(e>>16&255,e>>8&255,255&e,1)}function Gv(e,t,i,o){return o<=0&&(e=t=i=NaN),new Kv(e,t,i,o)}function Uv(e){return e instanceof Rv||(e=qv(e)),e?new Kv((e=e.rgb()).r,e.g,e.b,e.opacity):new Kv}function Wv(e,t,i,o){return 1===arguments.length?Uv(e):new Kv(e,t,i,null==o?1:o)}function Kv(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function Xv(){return`#${Jv(this.r)}${Jv(this.g)}${Jv(this.b)}`}function Yv(){const e=Qv(this.opacity)
5891
+ return`${1===e?"rgb(":"rgba("}${Zv(this.r)}, ${Zv(this.g)}, ${Zv(this.b)}${1===e?")":`, ${e})`}`}function Qv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jv(e){return((e=Zv(e))<16?"0":"")+e.toString(16)}function em(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new im(e,t,i,o)}function tm(e){if(e instanceof im)return new im(e.h,e.s,e.l,e.opacity)
5892
+ if(e instanceof Rv||(e=qv(e)),!e)return new im
5893
+ if(e instanceof im)return e
5883
5894
  var t=(e=e.rgb()).r/255,i=e.g/255,o=e.b/255,s=Math.min(t,i,o),n=Math.max(t,i,o),r=NaN,a=n-s,l=(n+s)/2
5884
- return a?(r=t===n?(i-o)/a+6*(i<o):i===n?(o-t)/a+2:(t-i)/a+4,a/=l<.5?n+s:2-n-s,r*=60):a=l>0&&l<1?0:r,new Zv(r,a,l,e.opacity)}function Zv(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function Jv(e){return(e=(e||0)%360)<0?e+360:e}function em(e){return Math.max(0,Math.min(1,e||0))}function tm(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}yv(Cv,Fv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pv,formatHex:Pv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Qv(this).formatHsl()},formatRgb:Dv,toString:Dv}),yv(jv,qv,$v(Cv,{brighter(e){return e=null==e?Sv:Math.pow(Sv,e),new jv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?kv:Math.pow(kv,e),new jv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jv(Kv(this.r),Kv(this.g),Kv(this.b),Wv(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:Gv,formatHex:Gv,formatHex8:function(){return`#${Xv(this.r)}${Xv(this.g)}${Xv(this.b)}${Xv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Uv,toString:Uv})),yv(Zv,(function(e,t,i,o){return 1===arguments.length?Qv(e):new Zv(e,t,i,null==o?1:o)}),$v(Cv,{brighter(e){return e=null==e?Sv:Math.pow(Sv,e),new Zv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?kv:Math.pow(kv,e),new Zv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,s=2*i-o
5885
- return new jv(tm(e>=240?e-240:e+120,s,o),tm(e,s,o),tm(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Zv(Jv(this.h),em(this.s),em(this.l),Wv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Wv(this.opacity)
5886
- return`${1===e?"hsl(":"hsla("}${Jv(this.h)}, ${100*em(this.s)}%, ${100*em(this.l)}%${1===e?")":`, ${e})`}`}}))
5887
- var im=e=>()=>e
5888
- function om(e){return 1==(e=+e)?sm:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(o){return Math.pow(e+o*t,i)}}(t,i,e):im(isNaN(t)?i:t)}}function sm(e,t){var i=t-e
5889
- return i?function(e,t){return function(i){return e+i*t}}(e,i):im(isNaN(e)?t:e)}var nm=function e(t){var i=om(t)
5890
- function o(e,t){var o=i((e=qv(e)).r,(t=qv(t)).r),s=i(e.g,t.g),n=i(e.b,t.b),r=sm(e.opacity,t.opacity)
5895
+ return a?(r=t===n?(i-o)/a+6*(i<o):i===n?(o-t)/a+2:(t-i)/a+4,a/=l<.5?n+s:2-n-s,r*=60):a=l>0&&l<1?0:r,new im(r,a,l,e.opacity)}function im(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function om(e){return(e=(e||0)%360)<0?e+360:e}function sm(e){return Math.max(0,Math.min(1,e||0))}function nm(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}Sv(Rv,qv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bv,formatHex:Bv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tm(this).formatHsl()},formatRgb:Nv,toString:Nv}),Sv(Kv,Wv,_v(Rv,{brighter(e){return e=null==e?Mv:Math.pow(Mv,e),new Kv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zv:Math.pow(zv,e),new Kv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kv(Zv(this.r),Zv(this.g),Zv(this.b),Qv(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:Xv,formatHex:Xv,formatHex8:function(){return`#${Jv(this.r)}${Jv(this.g)}${Jv(this.b)}${Jv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Yv,toString:Yv})),Sv(im,(function(e,t,i,o){return 1===arguments.length?tm(e):new im(e,t,i,null==o?1:o)}),_v(Rv,{brighter(e){return e=null==e?Mv:Math.pow(Mv,e),new im(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zv:Math.pow(zv,e),new im(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,s=2*i-o
5896
+ return new Kv(nm(e>=240?e-240:e+120,s,o),nm(e,s,o),nm(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new im(om(this.h),sm(this.s),sm(this.l),Qv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qv(this.opacity)
5897
+ return`${1===e?"hsl(":"hsla("}${om(this.h)}, ${100*sm(this.s)}%, ${100*sm(this.l)}%${1===e?")":`, ${e})`}`}}))
5898
+ var rm=e=>()=>e
5899
+ function am(e){return 1==(e=+e)?lm:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(o){return Math.pow(e+o*t,i)}}(t,i,e):rm(isNaN(t)?i:t)}}function lm(e,t){var i=t-e
5900
+ return i?function(e,t){return function(i){return e+i*t}}(e,i):rm(isNaN(e)?t:e)}var cm=function e(t){var i=am(t)
5901
+ function o(e,t){var o=i((e=Wv(e)).r,(t=Wv(t)).r),s=i(e.g,t.g),n=i(e.b,t.b),r=lm(e.opacity,t.opacity)
5891
5902
  return function(t){return e.r=o(t),e.g=s(t),e.b=n(t),e.opacity=r(t),e+""}}return o.gamma=e,o}(1)
5892
- function rm(e,t){t||(t=[])
5903
+ function dm(e,t){t||(t=[])
5893
5904
  var i,o=e?Math.min(t.length,e.length):0,s=t.slice()
5894
5905
  return function(n){for(i=0;i<o;++i)s[i]=e[i]*(1-n)+t[i]*n
5895
- return s}}function am(e,t){var i,o=t?t.length:0,s=e?Math.min(o,e.length):0,n=new Array(s),r=new Array(o)
5896
- for(i=0;i<s;++i)n[i]=gm(e[i],t[i])
5906
+ return s}}function hm(e,t){var i,o=t?t.length:0,s=e?Math.min(o,e.length):0,n=new Array(s),r=new Array(o)
5907
+ for(i=0;i<s;++i)n[i]=fm(e[i],t[i])
5897
5908
  for(;i<o;++i)r[i]=t[i]
5898
5909
  return function(e){for(i=0;i<s;++i)r[i]=n[i](e)
5899
- return r}}function lm(e,t){var i=new Date
5900
- return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function cm(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function dm(e,t){var i,o={},s={}
5901
- for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=gm(e[i],t[i]):s[i]=t[i]
5910
+ return r}}function um(e,t){var i=new Date
5911
+ return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function pm(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function gm(e,t){var i,o={},s={}
5912
+ for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=fm(e[i],t[i]):s[i]=t[i]
5902
5913
  return function(e){for(i in o)s[i]=o[i](e)
5903
- return s}}var hm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,um=new RegExp(hm.source,"g")
5904
- function pm(e,t){var i,o,s,n=hm.lastIndex=um.lastIndex=0,r=-1,a=[],l=[]
5905
- for(e+="",t+="";(i=hm.exec(e))&&(o=um.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),a[r]?a[r]+=s:a[++r]=s),(i=i[0])===(o=o[0])?a[r]?a[r]+=o:a[++r]=o:(a[++r]=null,l.push({i:r,x:cm(i,o)})),n=um.lastIndex
5914
+ return s}}var vm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mm=new RegExp(vm.source,"g")
5915
+ function bm(e,t){var i,o,s,n=vm.lastIndex=mm.lastIndex=0,r=-1,a=[],l=[]
5916
+ for(e+="",t+="";(i=vm.exec(e))&&(o=mm.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),a[r]?a[r]+=s:a[++r]=s),(i=i[0])===(o=o[0])?a[r]?a[r]+=o:a[++r]=o:(a[++r]=null,l.push({i:r,x:pm(i,o)})),n=mm.lastIndex
5906
5917
  return n<t.length&&(s=t.slice(n),a[r]?a[r]+=s:a[++r]=s),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var i,o=0;o<t;++o)a[(i=l[o]).i]=i.x(e)
5907
- return a.join("")})}function gm(e,t){var i,o,s=typeof t
5908
- return null==t||"boolean"===s?im(t):("number"===s?cm:"string"===s?(i=Fv(t))?(t=i,nm):pm:t instanceof Fv?nm:t instanceof Date?lm:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?am:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?dm:cm:rm))(e,t)}function vm(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}function mm(e){return+e}var bm=[0,1]
5909
- function fm(e){return e}function wm(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
5910
- var i}function xm(e,t,i){var o=e[0],s=e[1],n=t[0],r=t[1]
5911
- return s<o?(o=wm(s,o),n=i(r,n)):(o=wm(o,s),n=i(n,r)),function(e){return n(o(e))}}function ym(e,t,i){var o=Math.min(e.length,t.length)-1,s=new Array(o),n=new Array(o),r=-1
5912
- for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)s[r]=wm(e[r],e[r+1]),n[r]=i(t[r],t[r+1])
5913
- return function(t){var i=lv(e,t,1,o)-1
5914
- return n[i](s[i](t))}}function $m(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Cm(){var e,t,i,o,s,n,r=bm,a=bm,l=gm,c=fm
5918
+ return a.join("")})}function fm(e,t){var i,o,s=typeof t
5919
+ return null==t||"boolean"===s?rm(t):("number"===s?pm:"string"===s?(i=qv(t))?(t=i,cm):bm:t instanceof qv?cm:t instanceof Date?um:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?hm:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?gm:pm:dm))(e,t)}function wm(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}function xm(e){return+e}var ym=[0,1]
5920
+ function $m(e){return e}function Cm(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
5921
+ var i}function km(e,t,i){var o=e[0],s=e[1],n=t[0],r=t[1]
5922
+ return s<o?(o=Cm(s,o),n=i(r,n)):(o=Cm(o,s),n=i(n,r)),function(e){return n(o(e))}}function Sm(e,t,i){var o=Math.min(e.length,t.length)-1,s=new Array(o),n=new Array(o),r=-1
5923
+ for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)s[r]=Cm(e[r],e[r+1]),n[r]=i(t[r],t[r+1])
5924
+ return function(t){var i=uv(e,t,1,o)-1
5925
+ return n[i](s[i](t))}}function _m(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rm(){var e,t,i,o,s,n,r=ym,a=ym,l=fm,c=$m
5915
5926
  function d(){var e,t,i,l=Math.min(r.length,a.length)
5916
- return c!==fm&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),o=l>2?ym:xm,s=n=null,h}function h(t){return null==t||isNaN(t=+t)?i:(s||(s=o(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((n||(n=o(a,r.map(e),cm)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,mm),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=vm,d()},h.clamp=function(e){return arguments.length?(c=!!e||fm,d()):c!==fm},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,o){return e=i,t=o,d()}}function km(){return Cm()(fm,fm)}function Sm(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
5927
+ return c!==$m&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),o=l>2?Sm:km,s=n=null,h}function h(t){return null==t||isNaN(t=+t)?i:(s||(s=o(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((n||(n=o(a,r.map(e),pm)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,xm),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=wm,d()},h.clamp=function(e){return arguments.length?(c=!!e||$m,d()):c!==$m},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,o){return e=i,t=o,d()}}function zm(){return Rm()($m,$m)}function Mm(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
5917
5928
  var i,o=e.slice(0,i)
5918
- return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function _m(e){return(e=Sm(Math.abs(e)))?e[1]:NaN}var Rm,zm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
5919
- function Mm(e){if(!(t=zm.exec(e)))throw new Error("invalid format: "+e)
5929
+ return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function Im(e){return(e=Mm(Math.abs(e)))?e[1]:NaN}var Vm,Om=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
5930
+ function Em(e){if(!(t=Om.exec(e)))throw new Error("invalid format: "+e)
5920
5931
  var t
5921
- return new Im({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Im(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Vm(e,t){var i=Sm(e,t)
5932
+ return new Am({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Am(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Hm(e,t){var i=Mm(e,t)
5922
5933
  if(!i)return e+""
5923
5934
  var o=i[0],s=i[1]
5924
- return s<0?"0."+new Array(-s).join("0")+o:o.length>s+1?o.slice(0,s+1)+"."+o.slice(s+1):o+new Array(s-o.length+2).join("0")}Mm.prototype=Im.prototype,Im.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}
5925
- var Om={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Vm(100*e,t),r:Vm,s:function(e,t){var i=Sm(e,t)
5935
+ return s<0?"0."+new Array(-s).join("0")+o:o.length>s+1?o.slice(0,s+1)+"."+o.slice(s+1):o+new Array(s-o.length+2).join("0")}Em.prototype=Am.prototype,Am.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}
5936
+ var Lm={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Hm(100*e,t),r:Hm,s:function(e,t){var i=Mm(e,t)
5926
5937
  if(!i)return e+""
5927
- var o=i[0],s=i[1],n=s-(Rm=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,r=o.length
5928
- return n===r?o:n>r?o+new Array(n-r+1).join("0"):n>0?o.slice(0,n)+"."+o.slice(n):"0."+new Array(1-n).join("0")+Sm(e,Math.max(0,t+n-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
5929
- function Em(e){return e}var Am,Hm,Lm,Pm=Array.prototype.map,Dm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
5930
- function Fm(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?Em:(t=Pm.call(e.grouping,Number),i=e.thousands+"",function(e,o){for(var s=e.length,n=[],r=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>o&&(a=Math.max(1,o-l)),n.push(e.substring(s-=a,s+a)),!((l+=a+1)>o));)a=t[r=(r+1)%t.length]
5931
- return n.reverse().join(i)}),s=void 0===e.currency?"":e.currency[0]+"",n=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Em:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Pm.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
5932
- function h(e){var t=(e=Mm(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,b=e.trim,f=e.type
5933
- "n"===f?(v=!0,f="g"):Om[f]||(void 0===m&&(m=12),b=!0,f="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
5934
- var w="$"===u?s:"#"===u&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",x="$"===u?n:/[%p]/.test(f)?l:"",y=Om[f],$=/[defgprs%]/.test(f)
5938
+ var o=i[0],s=i[1],n=s-(Vm=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,r=o.length
5939
+ return n===r?o:n>r?o+new Array(n-r+1).join("0"):n>0?o.slice(0,n)+"."+o.slice(n):"0."+new Array(1-n).join("0")+Mm(e,Math.max(0,t+n-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
5940
+ function Pm(e){return e}var Dm,Fm,Tm,Bm=Array.prototype.map,Nm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
5941
+ function qm(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?Pm:(t=Bm.call(e.grouping,Number),i=e.thousands+"",function(e,o){for(var s=e.length,n=[],r=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>o&&(a=Math.max(1,o-l)),n.push(e.substring(s-=a,s+a)),!((l+=a+1)>o));)a=t[r=(r+1)%t.length]
5942
+ return n.reverse().join(i)}),s=void 0===e.currency?"":e.currency[0]+"",n=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Pm:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Bm.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
5943
+ function h(e){var t=(e=Em(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,b=e.trim,f=e.type
5944
+ "n"===f?(v=!0,f="g"):Lm[f]||(void 0===m&&(m=12),b=!0,f="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
5945
+ var w="$"===u?s:"#"===u&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",x="$"===u?n:/[%p]/.test(f)?l:"",y=Lm[f],$=/[defgprs%]/.test(f)
5935
5946
  function C(e){var s,n,l,u=w,C=x
5936
5947
  if("c"===f)C=y(e)+C,e=""
5937
5948
  else{var k=(e=+e)<0||1/e<0
@@ -5940,7 +5951,7 @@ break
5940
5951
  case"0":0===s&&(s=o),t=o
5941
5952
  break
5942
5953
  default:if(!+e[o])break e
5943
- s>0&&(s=0)}return s>0?e.slice(0,s)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===f?Dm[8+Rm/3]:"")+C+(k&&"("===h?")":""),$)for(s=-1,n=e.length;++s<n;)if(48>(l=e.charCodeAt(s))||l>57){C=(46===l?r+e.slice(s+1):e.slice(s))+C,e=e.slice(0,s)
5954
+ s>0&&(s=0)}return s>0?e.slice(0,s)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===f?Nm[8+Vm/3]:"")+C+(k&&"("===h?")":""),$)for(s=-1,n=e.length;++s<n;)if(48>(l=e.charCodeAt(s))||l>57){C=(46===l?r+e.slice(s+1):e.slice(s))+C,e=e.slice(0,s)
5944
5955
  break}}v&&!p&&(e=o(e,1/0))
5945
5956
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
5946
5957
  switch(v&&p&&(e=o(_+e,_.length?g-C.length:1/0),_=""),i){case"<":e=u+e+C+_
@@ -5949,66 +5960,66 @@ case"=":e=u+_+e+C
5949
5960
  break
5950
5961
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
5951
5962
  break
5952
- default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=Mm(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(_m(t)/3))),s=Math.pow(10,-o),n=Dm[8+o/3]
5953
- return function(e){return i(s*e)+n}}}}function Tm(e,t,i,o){var s,n=function(e,t,i){var o=Math.abs(t-e)/Math.max(0,i),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),n=o/s
5954
- return n>=uv?s*=10:n>=pv?s*=5:n>=gv&&(s*=2),t<e?-s:s}(e,t,i)
5955
- switch((o=Mm(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
5956
- return null!=o.precision||isNaN(s=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_m(t)/3)))-_m(Math.abs(e)))}(n,r))||(o.precision=s),Lm(o,r)
5957
- case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(s=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_m(t)-_m(e))+1}(n,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=s-("e"===o.type))
5963
+ default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=Em(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(Im(t)/3))),s=Math.pow(10,-o),n=Nm[8+o/3]
5964
+ return function(e){return i(s*e)+n}}}}function jm(e,t,i,o){var s,n=function(e,t,i){var o=Math.abs(t-e)/Math.max(0,i),s=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),n=o/s
5965
+ return n>=mv?s*=10:n>=bv?s*=5:n>=fv&&(s*=2),t<e?-s:s}(e,t,i)
5966
+ switch((o=Em(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
5967
+ return null!=o.precision||isNaN(s=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Im(t)/3)))-Im(Math.abs(e)))}(n,r))||(o.precision=s),Tm(o,r)
5968
+ case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(s=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Im(t)-Im(e))+1}(n,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=s-("e"===o.type))
5958
5969
  break
5959
- case"f":case"%":null!=o.precision||isNaN(s=function(e){return Math.max(0,-_m(Math.abs(e)))}(n))||(o.precision=s-2*("%"===o.type))}return Hm(o)}function Bm(e){var t=e.domain
5970
+ case"f":case"%":null!=o.precision||isNaN(s=function(e){return Math.max(0,-Im(Math.abs(e)))}(n))||(o.precision=s-2*("%"===o.type))}return Fm(o)}function Gm(e){var t=e.domain
5960
5971
  return e.ticks=function(e){var i=t()
5961
5972
  return function(e,t,i){var o,s,n,r,a=-1
5962
5973
  if(i=+i,(e=+e)==(t=+t)&&i>0)return[e]
5963
- if((o=t<e)&&(s=e,e=t,t=s),0===(r=vv(e,t,i))||!isFinite(r))return[]
5974
+ if((o=t<e)&&(s=e,e=t,t=s),0===(r=wv(e,t,i))||!isFinite(r))return[]
5964
5975
  if(r>0){let i=Math.round(e/r),o=Math.round(t/r)
5965
5976
  for(i*r<e&&++i,o*r>t&&--o,n=new Array(s=o-i+1);++a<s;)n[a]=(i+a)*r}else{r=-r
5966
5977
  let i=Math.round(e*r),o=Math.round(t*r)
5967
5978
  for(i/r<e&&++i,o/r>t&&--o,n=new Array(s=o-i+1);++a<s;)n[a]=(i+a)/r}return o&&n.reverse(),n}(i[0],i[i.length-1],null==e?10:e)},e.tickFormat=function(e,i){var o=t()
5968
- return Tm(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
5979
+ return jm(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
5969
5980
  var o,s,n=t(),r=0,a=n.length-1,l=n[r],c=n[a],d=10
5970
- for(c<l&&(s=l,l=c,c=s,s=r,r=a,a=s);d-- >0;){if((s=vv(l,c,i))===o)return n[r]=l,n[a]=c,t(n)
5981
+ for(c<l&&(s=l,l=c,c=s,s=r,r=a,a=s);d-- >0;){if((s=wv(l,c,i))===o)return n[r]=l,n[a]=c,t(n)
5971
5982
  if(s>0)l=Math.floor(l/s)*s,c=Math.ceil(c/s)*s
5972
5983
  else{if(!(s<0))break
5973
- l=Math.ceil(l*s)/s,c=Math.floor(c*s)/s}o=s}return e},e}function Nm(){var e=km()
5974
- return e.copy=function(){return $m(e,Nm())},bv.apply(e,arguments),Bm(e)}Am=Fm({thousands:",",grouping:[3],currency:["$",""]}),Hm=Am.format,Lm=Am.formatPrefix
5975
- class qm{constructor(e,t,i){this.baseMargin={top:20,right:20,bottom:20,left:20},this.dieSizeFactor=1.5,this.defaultAlign=.5,this.margin=this.baseMargin
5984
+ l=Math.ceil(l*s)/s,c=Math.floor(c*s)/s}o=s}return e},e}function Um(){var e=zm()
5985
+ return e.copy=function(){return _m(e,Um())},yv.apply(e,arguments),Gm(e)}Dm=qm({thousands:",",grouping:[3],currency:["$",""]}),Fm=Dm.format,Tm=Dm.formatPrefix
5986
+ class Wm{constructor(e,t,i){this.baseMargin={top:20,right:20,bottom:20,left:20},this.dieSizeFactor=1.5,this.defaultAlign=.5,this.margin=this.baseMargin
5976
5987
  const o=this.calculateMapDimensions(e)
5977
5988
  this.containerDimensions=this.calculateContainerDimensions(i,this.margin),this.horizontalScale=this.createHorizontalScale(t,o,this.containerDimensions.width),this.dieDimensions={width:this.calculateGridWidth(o.cols,this.containerDimensions.width),height:0},this.radius=this.containerDimensions.width/2+this.dieDimensions.width*this.dieSizeFactor,this.radius>i.width/2&&(this.margin=this.calculateMarginWithAddition(this.radius-i.width/2),this.containerDimensions=this.calculateContainerDimensions(i,this.margin),this.horizontalScale=this.createHorizontalScale(t,o,this.containerDimensions.width),this.dieDimensions={width:this.calculateGridWidth(o.cols,this.containerDimensions.width),height:0},this.radius=this.containerDimensions.width/2+this.dieDimensions.width*this.dieSizeFactor),this.verticalScale=this.createVerticalScale(t,o,this.containerDimensions.height),this.dieDimensions={width:this.dieDimensions.width,height:this.calculateGridHeight(o.rows,this.containerDimensions.height)}}calculateMapDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
5978
5989
  const t={x:e[0].x,y:e[0].y},i={x:e[0].x,y:e[0].y}
5979
5990
  for(const o of e)o.x<t.x&&(t.x=o.x),o.y<t.y&&(t.y=o.y),o.x>i.x&&(i.x=o.x),o.y>i.y&&(i.y=o.y)
5980
- return{origin:t,rows:i.y-t.y+1,cols:i.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,i){return e===Qg||e===Jg?Nm().domain([t.origin.x,t.origin.x+t.cols]).range([0,i]):Nm().domain([t.origin.x-1,t.origin.x+t.cols-1]).range([i,0])}createVerticalScale(e,t,i){return e===Qg||e===Zg?Nm().domain([t.origin.y-1,t.origin.y+t.rows-1]).range([i,0]):Nm().domain([t.origin.y,t.origin.y+t.rows]).range([0,i])}calculateGridWidth(e,t){return xv().align(this.defaultAlign).padding(0).domain(this.horizontalScale.ticks(e)).range([0,t]).bandwidth()}calculateGridHeight(e,t){return xv().align(this.defaultAlign).padding(0).domain(this.verticalScale.ticks(e)).range([0,t]).bandwidth()}calculateMarginWithAddition(e=0){return{top:this.baseMargin.top+e,right:this.baseMargin.right+e,bottom:this.baseMargin.bottom+e,left:this.baseMargin.top+e}}}function jm(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function Gm(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function Um(e,t,i){return isNaN(e)?t:t+e*(i-t)}function Wm(e,t){const i=Math.pow(10,t)
5981
- return Math.round(e*i)/i}class Km{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new Km(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Um(this.r,0,255))},${Math.round(Um(this.g,0,255))},${Math.round(Um(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Um(this.r,0,255))},${Math.round(Um(this.g,0,255))},${Math.round(Um(this.b,0,255))},${jm(this.a,0,1)})`}roundToPrecision(e){return new Km(Wm(this.r,e),Wm(this.g,e),Wm(this.b,e),Wm(this.a,e))}clamp(){return new Km(jm(this.r,0,1),jm(this.g,0,1),jm(this.b,0,1),jm(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return function(e){const t=Math.round(jm(e,0,255)).toString(16)
5982
- return 1===t.length?"0"+t:t}(Um(e,0,255))}}const Xm={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},Ym=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,Qm=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Zm=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,Jm=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i
5983
- function eb(e){return function(e){return Jm.test(e)}(e)}function tb(e){const t=e.toLowerCase()
5984
- return function(e){return Zm.test(e)}(t)?function(e){const t=Zm.exec(e)
5991
+ return{origin:t,rows:i.y-t.y+1,cols:i.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,i){return e===tv||e===ov?Um().domain([t.origin.x,t.origin.x+t.cols]).range([0,i]):Um().domain([t.origin.x-1,t.origin.x+t.cols-1]).range([i,0])}createVerticalScale(e,t,i){return e===tv||e===iv?Um().domain([t.origin.y-1,t.origin.y+t.rows-1]).range([i,0]):Um().domain([t.origin.y,t.origin.y+t.rows]).range([0,i])}calculateGridWidth(e,t){return kv().align(this.defaultAlign).padding(0).domain(this.horizontalScale.ticks(e)).range([0,t]).bandwidth()}calculateGridHeight(e,t){return kv().align(this.defaultAlign).padding(0).domain(this.verticalScale.ticks(e)).range([0,t]).bandwidth()}calculateMarginWithAddition(e=0){return{top:this.baseMargin.top+e,right:this.baseMargin.right+e,bottom:this.baseMargin.bottom+e,left:this.baseMargin.top+e}}}function Km(e,t,i){return isNaN(e)||e<=t?t:e>=i?i:e}function Xm(e,t,i){return isNaN(e)||e<=t?0:e>=i?1:e/(i-t)}function Ym(e,t,i){return isNaN(e)?t:t+e*(i-t)}function Qm(e,t){const i=Math.pow(10,t)
5992
+ return Math.round(e*i)/i}class Zm{constructor(e,t,i,o){this.r=e,this.g=t,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new Zm(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Ym(this.r,0,255))},${Math.round(Ym(this.g,0,255))},${Math.round(Ym(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Ym(this.r,0,255))},${Math.round(Ym(this.g,0,255))},${Math.round(Ym(this.b,0,255))},${Km(this.a,0,1)})`}roundToPrecision(e){return new Zm(Qm(this.r,e),Qm(this.g,e),Qm(this.b,e),Qm(this.a,e))}clamp(){return new Zm(Km(this.r,0,1),Km(this.g,0,1),Km(this.b,0,1),Km(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return function(e){const t=Math.round(Km(e,0,255)).toString(16)
5993
+ return 1===t.length?"0"+t:t}(Ym(e,0,255))}}const Jm={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},eb=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,tb=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,ib=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,ob=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i
5994
+ function sb(e){return function(e){return ob.test(e)}(e)}function nb(e){const t=e.toLowerCase()
5995
+ return function(e){return ib.test(e)}(t)?function(e){const t=ib.exec(e)
5985
5996
  if(null===t)return null
5986
5997
  let i=t[1]
5987
5998
  if(3===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2)
5988
5999
  i=e.concat(e,t,t,o,o)}const o=parseInt(i,16)
5989
- return isNaN(o)?null:new Km(Gm((16711680&o)>>>16,0,255),Gm((65280&o)>>>8,0,255),Gm(255&o,0,255),1)}(t):eb(t)?function(e){const t=Jm.exec(e)
6000
+ return isNaN(o)?null:new Zm(Xm((16711680&o)>>>16,0,255),Xm((65280&o)>>>8,0,255),Xm(255&o,0,255),1)}(t):sb(t)?function(e){const t=ob.exec(e)
5990
6001
  if(null===t)return null
5991
6002
  let i=t[1]
5992
6003
  if(4===i.length){const e=i.charAt(0),t=i.charAt(1),o=i.charAt(2),s=i.charAt(3)
5993
6004
  i=e.concat(e,t,t,o,o,s,s)}const o=parseInt(i,16)
5994
- return isNaN(o)?null:new Km(Gm((16711680&o)>>>16,0,255),Gm((65280&o)>>>8,0,255),Gm(255&o,0,255),Gm((4278190080&o)>>>24,0,255))}(t):function(e){return Ym.test(e)}(t)?function(e){const t=Ym.exec(e)
6005
+ return isNaN(o)?null:new Zm(Xm((16711680&o)>>>16,0,255),Xm((65280&o)>>>8,0,255),Xm(255&o,0,255),Xm((4278190080&o)>>>24,0,255))}(t):function(e){return eb.test(e)}(t)?function(e){const t=eb.exec(e)
5995
6006
  if(null===t)return null
5996
6007
  const i=t[1].split(",")
5997
- return new Km(Gm(Number(i[0]),0,255),Gm(Number(i[1]),0,255),Gm(Number(i[2]),0,255),1)}(t):function(e){return Qm.test(e)}(t)?function(e){const t=Qm.exec(e)
6008
+ return new Zm(Xm(Number(i[0]),0,255),Xm(Number(i[1]),0,255),Xm(Number(i[2]),0,255),1)}(t):function(e){return tb.test(e)}(t)?function(e){const t=tb.exec(e)
5998
6009
  if(null===t)return null
5999
6010
  const i=t[1].split(",")
6000
- return 4===i.length?new Km(Gm(Number(i[0]),0,255),Gm(Number(i[1]),0,255),Gm(Number(i[2]),0,255),Number(i[3])):null}(t):function(e){return Xm.hasOwnProperty(e)}(t)?function(e){const t=Xm[e.toLowerCase()]
6001
- return t?new Km(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}(t):null}class ib{constructor(e,t,i,o,s,n,r,a,l,c,d){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(t,n),this.labelsFontSize=this.calculateLabelsFontSize(c,l),this.diesRenderInfo=[]
6002
- for(const t of e)this.diesRenderInfo.push({x:o(t.x)+d.right,y:s(t.y)+d.top,fillStyle:this.calculateFillStyle(t.value,n,i),text:this.buildLabel(t.value,l,r,a)})}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?Nm().domain(e.values.map((e=>+e))).range(e.colors):wv().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
6011
+ return 4===i.length?new Zm(Xm(Number(i[0]),0,255),Xm(Number(i[1]),0,255),Xm(Number(i[2]),0,255),Number(i[3])):null}(t):function(e){return Jm.hasOwnProperty(e)}(t)?function(e){const t=Jm[e.toLowerCase()]
6012
+ return t?new Zm(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}(t):null}class rb{constructor(e,t,i,o,s,n,r,a,l,c,d){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(t,n),this.labelsFontSize=this.calculateLabelsFontSize(c,l),this.diesRenderInfo=[]
6013
+ for(const t of e)this.diesRenderInfo.push({x:o(t.x)+d.right,y:s(t.y)+d.top,fillStyle:this.calculateFillStyle(t.value,n,i),text:this.buildLabel(t.value,l,r,a)})}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?Um().domain(e.values.map((e=>+e))).range(e.colors):Cv().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
6003
6014
  const s=`${e}${o}`
6004
- return s.length>t?`${s.substring(0,t)}…`:s}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===tv}isColorScaleOrdinal(e){return e===iv}calculateFillStyle(e,t,i){let o=this.emptyDieColor
6015
+ return s.length>t?`${s.substring(0,t)}…`:s}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===nv}isColorScaleOrdinal(e){return e===rv}calculateFillStyle(e,t,i){let o=this.emptyDieColor
6005
6016
  if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
6006
- let s=tb(o)
6007
- return null===s?this.emptyDieColor:(s=new Km(s.r,s.g,s.b,this.calculateOpacity(e,i)),s.toStringWebRGBA())}}class ob{constructor(e,t,i,o,s,n,r,a,l){this.computations=new qm(e,t,i),this.prerendering=new ib(e,o,s,this.computations.horizontalScale,this.computations.verticalScale,n,r,a,l,this.computations.dieDimensions,this.computations.margin)}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 verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get mainCircleLocation(){return{x:this.computations.containerDimensions.width/2,y:this.computations.containerDimensions.height/2}}}class sb{constructor(e,t){this.waferData=e,this.context=t.getContext("2d")}drawWafer(){const e=this.waferData.diesRenderInfo,t=this.waferData.dieDimensions
6017
+ let s=nb(o)
6018
+ return null===s?this.emptyDieColor:(s=new Zm(s.r,s.g,s.b,this.calculateOpacity(e,i)),s.toStringWebRGBA())}}class ab{constructor(e,t,i,o,s,n,r,a,l){this.computations=new Wm(e,t,i),this.prerendering=new rb(e,o,s,this.computations.horizontalScale,this.computations.verticalScale,n,r,a,l,this.computations.dieDimensions,this.computations.margin)}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 verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get mainCircleLocation(){return{x:this.computations.containerDimensions.width/2,y:this.computations.containerDimensions.height/2}}}class lb{constructor(e,t){this.waferData=e,this.context=t.getContext("2d")}drawWafer(){const e=this.waferData.diesRenderInfo,t=this.waferData.dieDimensions
6008
6019
  for(const i of e){this.context.fillStyle=i.fillStyle,this.context?.fillRect(i.x,i.y,t.width,t.height),this.context.font=this.waferData.labelsFontSize.toString(),this.context.fillStyle="#ffffff",this.context.textAlign="center"
6009
6020
  const e=this.context.measureText("M")
6010
- this.context.fillText(i.text,i.x+t.width/2,i.y+t.height/2+e.width/2)}}clearCanvas(){this.context.clearRect(0,0,this.waferData.containerDimensions.width,this.waferData.containerDimensions.height)}}class nb extends St{constructor(){super(...arguments),this.quadrant=Jg,this.orientation=ev,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=tv,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.renderQueued=!1}connectedCallback(){super.connectedCallback(),this.queueRender()}render(){this.renderQueued=!1,this.dataManager=new ob(this.dies,this.quadrant,{width:500,height:500},this.colorScale,this.highlightedValues,this.colorScaleMode,this.dieLabelsHidden,this.dieLabelsSuffix,this.maxCharacters)
6011
- new sb(this.dataManager,this.canvas).drawWafer()}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}}e([oe],nb.prototype,"quadrant",void 0),e([oe],nb.prototype,"orientation",void 0),e([oe({attribute:"max-characters",converter:te})],nb.prototype,"maxCharacters",void 0),e([oe({attribute:"die-labels-hidden",mode:"boolean"})],nb.prototype,"dieLabelsHidden",void 0),e([oe({attribute:"die-labels-suffix"})],nb.prototype,"dieLabelsSuffix",void 0),e([oe({attribute:"color-scale-mode"})],nb.prototype,"canvas",void 0),e([m],nb.prototype,"colorScaleMode",void 0),e([m],nb.prototype,"highlightedValues",void 0),e([m],nb.prototype,"dies",void 0),e([m],nb.prototype,"colorScale",void 0)
6012
- const rb=nb.compose({baseName:"wafer-map",template:Xg,styles:Yg})
6013
- no.getOrCreate().withPrefix("nimble").register(rb())}()
6021
+ this.context.fillText(i.text,i.x+t.width/2,i.y+t.height/2+e.width/2)}}clearCanvas(){this.context.clearRect(0,0,this.waferData.containerDimensions.width,this.waferData.containerDimensions.height)}}class cb extends St{constructor(){super(...arguments),this.quadrant=ov,this.orientation=sv,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=nv,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.renderQueued=!1}connectedCallback(){super.connectedCallback(),this.queueRender()}render(){this.renderQueued=!1,this.dataManager=new ab(this.dies,this.quadrant,{width:500,height:500},this.colorScale,this.highlightedValues,this.colorScaleMode,this.dieLabelsHidden,this.dieLabelsSuffix,this.maxCharacters)
6022
+ new lb(this.dataManager,this.canvas).drawWafer()}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}}e([oe],cb.prototype,"quadrant",void 0),e([oe],cb.prototype,"orientation",void 0),e([oe({attribute:"max-characters",converter:te})],cb.prototype,"maxCharacters",void 0),e([oe({attribute:"die-labels-hidden",mode:"boolean"})],cb.prototype,"dieLabelsHidden",void 0),e([oe({attribute:"die-labels-suffix"})],cb.prototype,"dieLabelsSuffix",void 0),e([oe({attribute:"color-scale-mode"})],cb.prototype,"canvas",void 0),e([m],cb.prototype,"colorScaleMode",void 0),e([m],cb.prototype,"highlightedValues",void 0),e([m],cb.prototype,"dies",void 0),e([m],cb.prototype,"colorScale",void 0)
6023
+ const db=cb.compose({baseName:"wafer-map",template:Jg,styles:ev})
6024
+ no.getOrCreate().withPrefix("nimble").register(db())}()
6014
6025
  //# sourceMappingURL=all-components-bundle.min.js.map