@ni/nimble-components 20.18.0 → 20.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/all-components-bundle.js +90 -134
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +280 -279
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/table-column/number-text/index.d.ts +1 -1
  6. package/dist/esm/unit/base/unit.d.ts +1 -1
  7. package/dist/esm/unit/byte/index.js +1 -1
  8. package/dist/esm/unit/byte/index.js.map +1 -1
  9. package/dist/esm/unit/volt/index.js +1 -1
  10. package/dist/esm/unit/volt/index.js.map +1 -1
  11. package/dist/esm/utilities/unit-format/decimal-unit-format.d.ts +2 -2
  12. package/dist/esm/utilities/unit-format/decimal-unit-format.js +1 -1
  13. package/dist/esm/utilities/unit-format/decimal-unit-format.js.map +1 -1
  14. package/dist/esm/utilities/unit-format/default-unit-format.d.ts +1 -1
  15. package/dist/esm/utilities/unit-format/default-unit-format.js +1 -1
  16. package/dist/esm/utilities/unit-format/default-unit-format.js.map +1 -1
  17. package/dist/esm/utilities/unit-format/{unit-scale/base → scaled-unit}/scaled-unit.d.ts +1 -1
  18. package/dist/esm/utilities/unit-format/scaled-unit/scaled-unit.js.map +1 -0
  19. package/dist/esm/utilities/unit-format/scaled-unit-format/intl-number-format-scaled-unit-format.d.ts +11 -0
  20. package/dist/esm/utilities/unit-format/{unit-scale/base → scaled-unit-format}/intl-number-format-scaled-unit-format.js +2 -2
  21. package/dist/esm/utilities/unit-format/scaled-unit-format/intl-number-format-scaled-unit-format.js.map +1 -0
  22. package/dist/esm/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.d.ts +43 -0
  23. package/dist/esm/utilities/unit-format/{manually-translated-unit-scale/base → scaled-unit-format}/manually-translated-scaled-unit-format.js +27 -14
  24. package/dist/esm/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.js.map +1 -0
  25. package/dist/esm/utilities/unit-format/{unit-scale/base → scaled-unit-format}/scaled-unit-format.d.ts +1 -1
  26. package/dist/esm/utilities/unit-format/{unit-scale/base → scaled-unit-format}/scaled-unit-format.js.map +1 -1
  27. package/dist/esm/utilities/unit-format/{base/unit-format.d.ts → unit-format.d.ts} +1 -1
  28. package/dist/esm/utilities/unit-format/unit-format.js.map +1 -0
  29. package/dist/esm/utilities/unit-format/unit-scale/byte-1024-unit-scale.d.ts +9 -0
  30. package/dist/esm/utilities/unit-format/unit-scale/byte-1024-unit-scale.js +31 -0
  31. package/dist/esm/utilities/unit-format/unit-scale/byte-1024-unit-scale.js.map +1 -0
  32. package/dist/esm/utilities/unit-format/unit-scale/byte-unit-scale.d.ts +1 -1
  33. package/dist/esm/utilities/unit-format/unit-scale/byte-unit-scale.js +16 -35
  34. package/dist/esm/utilities/unit-format/unit-scale/byte-unit-scale.js.map +1 -1
  35. package/dist/esm/utilities/unit-format/unit-scale/passthrough-unit-scale.d.ts +1 -1
  36. package/dist/esm/utilities/unit-format/unit-scale/passthrough-unit-scale.js +4 -4
  37. package/dist/esm/utilities/unit-format/unit-scale/passthrough-unit-scale.js.map +1 -1
  38. package/dist/esm/utilities/unit-format/unit-scale/{base/unit-scale.d.ts → unit-scale.d.ts} +1 -1
  39. package/dist/esm/utilities/unit-format/unit-scale/unit-scale.js.map +1 -0
  40. package/dist/esm/utilities/unit-format/unit-scale/utilities/metrix-prefixes.d.ts +1 -0
  41. package/dist/esm/utilities/unit-format/unit-scale/utilities/metrix-prefixes.js +17 -0
  42. package/dist/esm/utilities/unit-format/unit-scale/utilities/metrix-prefixes.js.map +1 -0
  43. package/dist/esm/utilities/unit-format/unit-scale/volt-unit-scale.d.ts +9 -0
  44. package/dist/esm/utilities/unit-format/unit-scale/volt-unit-scale.js +24 -0
  45. package/dist/esm/utilities/unit-format/unit-scale/volt-unit-scale.js.map +1 -0
  46. package/package.json +1 -1
  47. package/dist/esm/utilities/unit-format/base/unit-format.js.map +0 -1
  48. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/manually-translated-scaled-unit-format.d.ts +0 -18
  49. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/manually-translated-scaled-unit-format.js.map +0 -1
  50. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/manually-translated-unit-scale.d.ts +0 -10
  51. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/manually-translated-unit-scale.js +0 -19
  52. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/manually-translated-unit-scale.js.map +0 -1
  53. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-prefix.d.ts +0 -10
  54. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-prefix.js +0 -17
  55. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-prefix.js.map +0 -1
  56. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-prefixes-metric.d.ts +0 -5
  57. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-prefixes-metric.js +0 -21
  58. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-prefixes-metric.js.map +0 -1
  59. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-translation.d.ts +0 -9
  60. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-translation.js +0 -11
  61. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/base/unit-translation.js.map +0 -1
  62. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/byte-1024-unit-scale.d.ts +0 -9
  63. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/byte-1024-unit-scale.js +0 -26
  64. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/byte-1024-unit-scale.js.map +0 -1
  65. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/volt-unit-scale.d.ts +0 -9
  66. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/volt-unit-scale.js +0 -19
  67. package/dist/esm/utilities/unit-format/manually-translated-unit-scale/volt-unit-scale.js.map +0 -1
  68. package/dist/esm/utilities/unit-format/unit-scale/base/intl-number-format-scaled-unit-format.d.ts +0 -11
  69. package/dist/esm/utilities/unit-format/unit-scale/base/intl-number-format-scaled-unit-format.js.map +0 -1
  70. package/dist/esm/utilities/unit-format/unit-scale/base/scaled-unit.js.map +0 -1
  71. package/dist/esm/utilities/unit-format/unit-scale/base/unit-scale.js.map +0 -1
  72. /package/dist/esm/utilities/unit-format/{unit-scale/base → scaled-unit}/scaled-unit.js +0 -0
  73. /package/dist/esm/utilities/unit-format/{unit-scale/base → scaled-unit-format}/scaled-unit-format.js +0 -0
  74. /package/dist/esm/utilities/unit-format/{base/unit-format.js → unit-format.js} +0 -0
  75. /package/dist/esm/utilities/unit-format/unit-scale/{base/unit-scale.js → unit-scale.js} +0 -0
@@ -10884,7 +10884,7 @@ const HD=class extends hD{columnConfigChanged(){this.updateText(),this.alignment
10884
10884
  bi.getOrCreate().withPrefix("nimble").register(HD())
10885
10885
  const BD="decimal",qD="left",jD="right"
10886
10886
  class UD{format(e){if("number"!=typeof e)return""
10887
- try{return this.tryFormat(e)}catch{return""}}}class WD{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class ZD extends WD{constructor(e,t={}){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e={}){return t=>new ZD(t,e)}format(e){return this.formatter.format(e)}}class GD{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class KD{constructor(e){this.supportedScaledUnits=e
10887
+ try{return this.tryFormat(e)}catch{return""}}}class WD{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class ZD extends WD{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new ZD(t,e)}format(e){return this.formatter.format(e)}}class GD{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class KD{constructor(e){this.supportedScaledUnits=e
10888
10888
  const t=e.every(((e,t,n)=>0===t||n[t-1].scaleFactor<e.scaleFactor))
10889
10889
  if(!t)throw new Error("Supported scaled units must have unique and ordered scale factors")
10890
10890
  const n=e.find((e=>e.isBase()))
@@ -10893,7 +10893,7 @@ this.supportedScaledUnits=e,this.baseScaledUnit=n}scaleNumber(e){const t=Math.ab
10893
10893
  if(1===this.supportedScaledUnits.length||0===t||t===1/0||Number.isNaN(t))return{scaledValue:e,scaledUnit:this.baseScaledUnit}
10894
10894
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
10895
10895
  if(t/i.scaleFactor>=1)return{scaledValue:e/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
10896
- return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const JD=new class extends KD{constructor(){super([new GD(1,ZD.createFactory())])}}
10896
+ return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const JD=new class extends KD{constructor(){super([new GD(1,ZD.createFactory({}))])}}
10897
10897
  class XD extends UD{constructor(e,{unitScale:t=JD}={unitScale:JD}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:XD.maximumDigits,useGrouping:!0},this.defaultScaledUnitFormatters=new Map,this.leadingZeroIntlNumberFormatOptions={maximumFractionDigits:XD.maximumDigits-1,useGrouping:!0},this.leadingZeroScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:XD.maximumDigits,notation:"scientific"}
10898
10898
  for(const n of t.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions})),this.leadingZeroScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.leadingZeroIntlNumberFormatOptions}))
10899
10899
  this.exponentialScaledUnitFormatter=t.baseScaledUnit.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=t}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(e){const t=0===e?0:e,{scaledValue:n,scaledUnit:i}=this.unitScale.scaleNumber(t)
@@ -11986,233 +11986,234 @@ e instanceof WN&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],JN.
11986
11986
  const XN=JN.compose({baseName:"tree-view",baseClass:Ao,template:KN,styles:GN})
11987
11987
  bi.getOrCreate().withPrefix("nimble").register(XN())
11988
11988
  const YN=Z`<template slot="unit"></template>`
11989
- class QN extends WD{constructor(e,t,n){super(e),this.unitTranslations=t,this.unitPrefix=n,this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(this.locale)}static createFactory(e,t){return n=>new QN(n,e,t)}format(e){const t=this.formatter.format(e)
11990
- if(!this.unitPrefix.isBase())return`${t} ${this.unitPrefix.text}${this.unitTranslation.symbol}`
11991
- return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e){const t=new Intl.Locale(e??"en"),n=t.language,i=t.region
11992
- return(i?this.unitTranslations.get(`${n}-${i}`):null)??this.unitTranslations.get(n)??this.unitTranslations.get("en")}}class eP extends KD{constructor(e,t){super(eP.createSupportedScaledUnits(e,t))}static createSupportedScaledUnits(e,t){if(!e.get("en"))throw new Error("English translations must exist")
11993
- return t.map((t=>new GD(t.scaleFactor,QN.createFactory(e,t))))}}class tP{constructor(e,t){if(this.scaleFactor=e,this.text=t,1===e&&""!==t)throw new Error("Base scale factor of 1 has unused text and should be empty string")}isBase(){return 1===this.scaleFactor}}class nP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}const iP=new class extends eP{constructor(){super(new Map([["en",new nP("byte","bytes","B")],["fr",new nP("octet","octets","o")],["de",new nP("Byte","Byte","B")],["ja",new nP("バイト","バイト","B")],["zh",new nP("字节","字节","B")]]),[new tP(1,""),new tP(1024,"Ki"),new tP(1048576,"Mi"),new tP(1024**3,"Gi"),new tP(1024**4,"Ti"),new tP(1024**5,"Pi")])}}
11994
- const oP=new class extends KD{constructor(){super([new GD(1,ZD.createFactory({style:"unit",unit:"byte",unitDisplay:"long"})),new GD(1e3,ZD.createFactory({style:"unit",unit:"kilobyte",unitDisplay:"short"})),new GD(10**6,ZD.createFactory({style:"unit",unit:"megabyte",unitDisplay:"short"})),new GD(10**9,ZD.createFactory({style:"unit",unit:"gigabyte",unitDisplay:"short"})),new GD(10**12,ZD.createFactory({style:"unit",unit:"terabyte",unitDisplay:"short"})),new GD(10**15,ZD.createFactory({style:"unit",unit:"petabyte",unitDisplay:"short"}))])}}
11995
- class rP extends tN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=oP}binaryChanged(){this.resolvedUnitScale=this.binary?iP:oP}}e([se({mode:"boolean"})],rP.prototype,"binary",void 0)
11996
- const sP=rP.compose({baseName:"unit-byte",template:YN})
11997
- bi.getOrCreate().withPrefix("nimble").register(sP())
11998
- const aP=[new tP(1e-15,"f"),new tP(1e-12,"p"),new tP(1e-9,"n"),new tP(10**-6,"μ"),new tP(.001,"m"),new tP(.01,"c"),new tP(.1,"d"),new tP(1,""),new tP(1e3,"k"),new tP(10**6,"M"),new tP(10**9,"G"),new tP(10**12,"T"),new tP(10**15,"P"),new tP(10**18,"E")]
11999
- const lP=new class extends eP{constructor(){super(new Map([["en",new nP("volt","volts","V")],["fr",new nP("volt","volts","V")],["de",new nP("Volt","Volt","V")],["ja",new nP("ボルト","ボルト","V")],["zh",new nP("伏特","伏特","V")]]),aP)}}
12000
- const cP=class extends tN{constructor(){super(),this.resolvedUnitScale=lP}}.compose({baseName:"unit-volt",template:YN})
12001
- bi.getOrCreate().withPrefix("nimble").register(cP())
12002
- var dP={value:()=>{}}
12003
- function hP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12004
- i[e]=[]}return new uP(i)}function uP(e){this._=e}function pP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function fP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=dP,e=e.slice(0,i).concat(e.slice(i+1))
12005
- break}return null!=n&&e.push({name:t,value:n}),e}uP.prototype=hP.prototype={constructor:uP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
11989
+ class QN{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class eP extends WD{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
11990
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new eP(t,e)}format(e){const t=this.formatter.format(e)
11991
+ if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
11992
+ return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
11993
+ return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const tP=new Map([["en",new QN("byte","bytes","B")],["fr",new QN("octet","octets","o")],["de",new QN("Byte","Byte","B")],["ja",new QN("バイト","バイト","B")],["zh",new QN("字节","字节","B")]]),nP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
11994
+ const iP=new class extends KD{constructor(){super(nP.map((([e,t])=>new GD(e,eP.createFactory({unitTranslations:tP,scaledPrefixText:t})))))}},oP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
11995
+ const rP=new class extends KD{constructor(){super(oP.map((([e,t,n])=>new GD(e,ZD.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
11996
+ class sP extends tN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=rP}binaryChanged(){this.resolvedUnitScale=this.binary?iP:rP}}e([se({mode:"boolean"})],sP.prototype,"binary",void 0)
11997
+ const aP=sP.compose({baseName:"unit-byte",template:YN})
11998
+ bi.getOrCreate().withPrefix("nimble").register(aP())
11999
+ const lP=[[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"]],cP=new Map([["en",new QN("volt","volts","V")],["fr",new QN("volt","volts","V")],["de",new QN("Volt","Volt","V")],["ja",new QN("ボルト","ボルト","V")],["zh",new QN("伏特","伏特","V")]])
12000
+ const dP=new class extends KD{constructor(){super(lP.map((([e,t])=>new GD(e,eP.createFactory({unitTranslations:cP,scaledPrefixText:t})))))}}
12001
+ const hP=class extends tN{constructor(){super(),this.resolvedUnitScale=dP}}.compose({baseName:"unit-volt",template:YN})
12002
+ bi.getOrCreate().withPrefix("nimble").register(hP())
12003
+ var uP={value:()=>{}}
12004
+ function pP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12005
+ i[e]=[]}return new fP(i)}function fP(e){this._=e}function mP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function gP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=uP,e=e.slice(0,i).concat(e.slice(i+1))
12006
+ break}return null!=n&&e.push({name:t,value:n}),e}fP.prototype=pP.prototype={constructor:fP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12006
12007
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
12007
12008
  return{type:e,name:t}}))),s=-1,a=r.length
12008
12009
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
12009
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=fP(o[n],e.name,t)
12010
- else if(null==t)for(n in o)o[n]=fP(o[n],e.name,null)
12011
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=pP(o[n],e.name)))return n},copy:function(){var e={},t=this._
12010
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=gP(o[n],e.name,t)
12011
+ else if(null==t)for(n in o)o[n]=gP(o[n],e.name,null)
12012
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=mP(o[n],e.name)))return n},copy:function(){var e={},t=this._
12012
12013
  for(var n in t)e[n]=t[n].slice()
12013
- return new uP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12014
+ return new fP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12014
12015
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12015
12016
  for(r=0,n=(i=this._[e]).length;r<n;++r)i[r].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12016
12017
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
12017
- var mP="http://www.w3.org/1999/xhtml",gP={svg:"http://www.w3.org/2000/svg",xhtml:mP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12018
- function vP(e){var t=e+="",n=t.indexOf(":")
12019
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),gP.hasOwnProperty(t)?{space:gP[t],local:e}:e}function bP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12020
- return n===mP&&t.documentElement.namespaceURI===mP?t.createElement(e):t.createElementNS(n,e)}}function wP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function yP(e){var t=vP(e)
12021
- return(t.local?wP:bP)(t)}function xP(){}function kP(e){return null==e?xP:function(){return this.querySelector(e)}}function CP(){return[]}function SP(e){return null==e?CP:function(){return this.querySelectorAll(e)}}function $P(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12022
- var t}}function MP(e){return function(){return this.matches(e)}}function _P(e){return function(t){return t.matches(e)}}var EP=Array.prototype.find
12023
- function IP(){return this.firstElementChild}var AP=Array.prototype.filter
12024
- function OP(){return Array.from(this.children)}function TP(e){return new Array(e.length)}function RP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function DP(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new RP(e,r[a])
12025
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function NP(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12018
+ var vP="http://www.w3.org/1999/xhtml",bP={svg:"http://www.w3.org/2000/svg",xhtml:vP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12019
+ function wP(e){var t=e+="",n=t.indexOf(":")
12020
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),bP.hasOwnProperty(t)?{space:bP[t],local:e}:e}function yP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12021
+ return n===vP&&t.documentElement.namespaceURI===vP?t.createElement(e):t.createElementNS(n,e)}}function xP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function kP(e){var t=wP(e)
12022
+ return(t.local?xP:yP)(t)}function CP(){}function SP(e){return null==e?CP:function(){return this.querySelector(e)}}function $P(){return[]}function MP(e){return null==e?$P:function(){return this.querySelectorAll(e)}}function _P(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12023
+ var t}}function EP(e){return function(){return this.matches(e)}}function IP(e){return function(t){return t.matches(e)}}var AP=Array.prototype.find
12024
+ function OP(){return this.firstElementChild}var TP=Array.prototype.filter
12025
+ function RP(){return Array.from(this.children)}function DP(e){return new Array(e.length)}function NP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function PP(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new NP(e,r[a])
12026
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function zP(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12026
12027
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
12027
- for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new RP(e,r[a])
12028
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function PP(e){return e.__data__}function zP(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function LP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function FP(e){return function(){this.removeAttribute(e)}}function VP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function HP(e,t){return function(){this.setAttribute(e,t)}}function BP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qP(e,t){return function(){var n=t.apply(this,arguments)
12029
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function jP(e,t){return function(){var n=t.apply(this,arguments)
12030
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function UP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function WP(e){return function(){this.style.removeProperty(e)}}function ZP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function GP(e,t,n){return function(){var i=t.apply(this,arguments)
12031
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function KP(e,t){return e.style.getPropertyValue(t)||UP(e).getComputedStyle(e,null).getPropertyValue(t)}function JP(e){return function(){delete this[e]}}function XP(e,t){return function(){this[e]=t}}function YP(e,t){return function(){var n=t.apply(this,arguments)
12032
- null==n?delete this[e]:this[e]=n}}function QP(e){return e.trim().split(/^|\s+/)}function ez(e){return e.classList||new tz(e)}function tz(e){this._node=e,this._names=QP(e.getAttribute("class")||"")}function nz(e,t){for(var n=ez(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function iz(e,t){for(var n=ez(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function oz(e){return function(){nz(this,e)}}function rz(e){return function(){iz(this,e)}}function sz(e,t){return function(){(t.apply(this,arguments)?nz:iz)(this,e)}}function az(){this.textContent=""}function lz(e){return function(){this.textContent=e}}function cz(e){return function(){var t=e.apply(this,arguments)
12033
- this.textContent=null==t?"":t}}function dz(){this.innerHTML=""}function hz(e){return function(){this.innerHTML=e}}function uz(e){return function(){var t=e.apply(this,arguments)
12034
- this.innerHTML=null==t?"":t}}function pz(){this.nextSibling&&this.parentNode.appendChild(this)}function fz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mz(){return null}function gz(){var e=this.parentNode
12035
- e&&e.removeChild(this)}function vz(){var e=this.cloneNode(!1),t=this.parentNode
12036
- return t?t.insertBefore(e,this.nextSibling):e}function bz(){var e=this.cloneNode(!0),t=this.parentNode
12037
- return t?t.insertBefore(e,this.nextSibling):e}function wz(e){return function(){var t=this.__on
12038
- if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function yz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12028
+ for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new NP(e,r[a])
12029
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function LP(e){return e.__data__}function FP(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function VP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function HP(e){return function(){this.removeAttribute(e)}}function BP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qP(e,t){return function(){this.setAttribute(e,t)}}function jP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function UP(e,t){return function(){var n=t.apply(this,arguments)
12030
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function WP(e,t){return function(){var n=t.apply(this,arguments)
12031
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ZP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function GP(e){return function(){this.style.removeProperty(e)}}function KP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function JP(e,t,n){return function(){var i=t.apply(this,arguments)
12032
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function XP(e,t){return e.style.getPropertyValue(t)||ZP(e).getComputedStyle(e,null).getPropertyValue(t)}function YP(e){return function(){delete this[e]}}function QP(e,t){return function(){this[e]=t}}function ez(e,t){return function(){var n=t.apply(this,arguments)
12033
+ null==n?delete this[e]:this[e]=n}}function tz(e){return e.trim().split(/^|\s+/)}function nz(e){return e.classList||new iz(e)}function iz(e){this._node=e,this._names=tz(e.getAttribute("class")||"")}function oz(e,t){for(var n=nz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function rz(e,t){for(var n=nz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function sz(e){return function(){oz(this,e)}}function az(e){return function(){rz(this,e)}}function lz(e,t){return function(){(t.apply(this,arguments)?oz:rz)(this,e)}}function cz(){this.textContent=""}function dz(e){return function(){this.textContent=e}}function hz(e){return function(){var t=e.apply(this,arguments)
12034
+ this.textContent=null==t?"":t}}function uz(){this.innerHTML=""}function pz(e){return function(){this.innerHTML=e}}function fz(e){return function(){var t=e.apply(this,arguments)
12035
+ this.innerHTML=null==t?"":t}}function mz(){this.nextSibling&&this.parentNode.appendChild(this)}function gz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vz(){return null}function bz(){var e=this.parentNode
12036
+ e&&e.removeChild(this)}function wz(){var e=this.cloneNode(!1),t=this.parentNode
12037
+ return t?t.insertBefore(e,this.nextSibling):e}function yz(){var e=this.cloneNode(!0),t=this.parentNode
12038
+ return t?t.insertBefore(e,this.nextSibling):e}function xz(e){return function(){var t=this.__on
12039
+ if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function kz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12039
12040
  if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=t)
12040
- this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function xz(e,t,n){var i=UP(e),o=i.CustomEvent
12041
- "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function kz(e,t){return function(){return xz(this,e,t)}}function Cz(e,t){return function(){return xz(this,e,t.apply(this,arguments))}}RP.prototype={constructor:RP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},tz.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12041
+ this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function Cz(e,t,n){var i=ZP(e),o=i.CustomEvent
12042
+ "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Sz(e,t){return function(){return Cz(this,e,t)}}function $z(e,t){return function(){return Cz(this,e,t.apply(this,arguments))}}NP.prototype={constructor:NP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},iz.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12042
12043
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
12043
- var Sz=[null]
12044
- function $z(e,t){this._groups=e,this._parents=t}function Mz(){return new $z([[document.documentElement]],Sz)}function _z(e){return"string"==typeof e?new $z([[document.querySelector(e)]],[document.documentElement]):new $z([[e]],Sz)}function Ez(e,t){if(e=function(e){let t
12044
+ var Mz=[null]
12045
+ function _z(e,t){this._groups=e,this._parents=t}function Ez(){return new _z([[document.documentElement]],Mz)}function Iz(e){return"string"==typeof e?new _z([[document.querySelector(e)]],[document.documentElement]):new _z([[e]],Mz)}function Az(e,t){if(e=function(e){let t
12045
12046
  for(;t=e.sourceEvent;)e=t
12046
12047
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
12047
12048
  if(n.createSVGPoint){var i=n.createSVGPoint()
12048
12049
  return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
12049
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}$z.prototype=Mz.prototype={constructor:$z,select:function(e){"function"!=typeof e&&(e=kP(e))
12050
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}_z.prototype=Ez.prototype={constructor:_z,select:function(e){"function"!=typeof e&&(e=SP(e))
12050
12051
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=e.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
12051
- return new $z(i,this._parents)},selectAll:function(e){e="function"==typeof e?$P(e):SP(e)
12052
+ return new _z(i,this._parents)},selectAll:function(e){e="function"==typeof e?_P(e):MP(e)
12052
12053
  for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s,a=t[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),o.push(s))
12053
- return new $z(i,o)},selectChild:function(e){return this.select(null==e?IP:function(e){return function(){return EP.call(this.children,e)}}("function"==typeof e?e:_P(e)))},selectChildren:function(e){return this.selectAll(null==e?OP:function(e){return function(){return AP.call(this.children,e)}}("function"==typeof e?e:_P(e)))},filter:function(e){"function"!=typeof e&&(e=MP(e))
12054
+ return new _z(i,o)},selectChild:function(e){return this.select(null==e?OP:function(e){return function(){return AP.call(this.children,e)}}("function"==typeof e?e:IP(e)))},selectChildren:function(e){return this.selectAll(null==e?RP:function(e){return function(){return TP.call(this.children,e)}}("function"==typeof e?e:IP(e)))},filter:function(e){"function"!=typeof e&&(e=EP(e))
12054
12055
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12055
- return new $z(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,PP)
12056
- var n,i=t?NP:DP,o=this._parents,r=this._groups
12056
+ return new _z(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,LP)
12057
+ var n,i=t?zP:PP,o=this._parents,r=this._groups
12057
12058
  "function"!=typeof e&&(n=e,e=function(){return n})
12058
- for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=zP(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12059
+ for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=FP(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12059
12060
  i(h,u,g,v,c[d]=new Array(p),f,t)
12060
- for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new $z(a,o))._enter=l,a._exit=c,a},enter:function(){return new $z(this._enter||this._groups.map(TP),this._parents)},exit:function(){return new $z(this._exit||this._groups.map(TP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12061
+ for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new _z(a,o))._enter=l,a._exit=c,a},enter:function(){return new _z(this._enter||this._groups.map(DP),this._parents)},exit:function(){return new _z(this._exit||this._groups.map(DP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12061
12062
  return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
12062
12063
  for(;l<o;++l)a[l]=n[l]
12063
- return new $z(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12064
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=LP)
12064
+ return new _z(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12065
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=VP)
12065
12066
  for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
12066
- c.sort(t)}return new $z(o,this._parents).order()},call:function(){var e=arguments[0]
12067
+ c.sort(t)}return new _z(o,this._parents).order()},call:function(){var e=arguments[0]
12067
12068
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o]
12068
12069
  if(s)return s}return null},size:function(){let e=0
12069
12070
  for(const t of this)++e
12070
12071
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,r=t[n],s=0,a=r.length;s<a;++s)(o=r[s])&&e.call(o,o.__data__,s,r)
12071
- return this},attr:function(e,t){var n=vP(e)
12072
+ return this},attr:function(e,t){var n=wP(e)
12072
12073
  if(arguments.length<2){var i=this.node()
12073
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?VP:FP:"function"==typeof t?n.local?jP:qP:n.local?BP:HP)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?WP:"function"==typeof t?GP:ZP)(e,t,null==n?"":n)):KP(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?JP:"function"==typeof t?YP:XP)(e,t)):this.node()[e]},classed:function(e,t){var n=QP(e+"")
12074
- if(arguments.length<2){for(var i=ez(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12075
- return!0}return this.each(("function"==typeof t?sz:t?oz:rz)(n,t))},text:function(e){return arguments.length?this.each(null==e?az:("function"==typeof e?cz:lz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?dz:("function"==typeof e?uz:hz)(e)):this.node().innerHTML},raise:function(){return this.each(pz)},lower:function(){return this.each(fz)},append:function(e){var t="function"==typeof e?e:yP(e)
12076
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:yP(e),i=null==t?mz:"function"==typeof t?t:kP(t)
12077
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(gz)},clone:function(e){return this.select(e?bz:vz)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12074
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?BP:HP:"function"==typeof t?n.local?WP:UP:n.local?jP:qP)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?GP:"function"==typeof t?JP:KP)(e,t,null==n?"":n)):XP(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?YP:"function"==typeof t?ez:QP)(e,t)):this.node()[e]},classed:function(e,t){var n=tz(e+"")
12075
+ if(arguments.length<2){for(var i=nz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12076
+ return!0}return this.each(("function"==typeof t?lz:t?sz:az)(n,t))},text:function(e){return arguments.length?this.each(null==e?cz:("function"==typeof e?hz:dz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?uz:("function"==typeof e?fz:pz)(e)):this.node().innerHTML},raise:function(){return this.each(mz)},lower:function(){return this.each(gz)},append:function(e){var t="function"==typeof e?e:kP(e)
12077
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:kP(e),i=null==t?vz:"function"==typeof t?t:SP(t)
12078
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(bz)},clone:function(e){return this.select(e?yz:wz)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12078
12079
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
12079
- if(!(arguments.length<2)){for(a=t?yz:wz,i=0;i<s;++i)this.each(a(r[i],t,n))
12080
+ if(!(arguments.length<2)){for(a=t?kz:xz,i=0;i<s;++i)this.each(a(r[i],t,n))
12080
12081
  return this}var a=this.node().__on
12081
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Cz:kz)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12082
- const Iz={capture:!0,passive:!1}
12083
- function Az(e){e.preventDefault(),e.stopImmediatePropagation()}function Oz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tz(e,t){var n=Object.create(e.prototype)
12082
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?$z:Sz)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12083
+ const Oz={capture:!0,passive:!1}
12084
+ function Tz(e){e.preventDefault(),e.stopImmediatePropagation()}function Rz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dz(e,t){var n=Object.create(e.prototype)
12084
12085
  for(var i in t)n[i]=t[i]
12085
- return n}function Rz(){}var Dz=.7,Nz=1/Dz,Pz="\\s*([+-]?\\d+)\\s*",zz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fz=/^#([0-9a-f]{3,8})$/,Vz=new RegExp(`^rgb\\(${Pz},${Pz},${Pz}\\)$`),Hz=new RegExp(`^rgb\\(${Lz},${Lz},${Lz}\\)$`),Bz=new RegExp(`^rgba\\(${Pz},${Pz},${Pz},${zz}\\)$`),qz=new RegExp(`^rgba\\(${Lz},${Lz},${Lz},${zz}\\)$`),jz=new RegExp(`^hsl\\(${zz},${Lz},${Lz}\\)$`),Uz=new RegExp(`^hsla\\(${zz},${Lz},${Lz},${zz}\\)$`),Wz={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}
12086
- function Zz(){return this.rgb().formatHex()}function Gz(){return this.rgb().formatRgb()}function Kz(e){var t,n
12087
- return e=(e+"").trim().toLowerCase(),(t=Fz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Jz(t):3===n?new Qz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Xz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Xz(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=Vz.exec(e))?new Qz(t[1],t[2],t[3],1):(t=Hz.exec(e))?new Qz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Bz.exec(e))?Xz(t[1],t[2],t[3],t[4]):(t=qz.exec(e))?Xz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jz.exec(e))?rL(t[1],t[2]/100,t[3]/100,1):(t=Uz.exec(e))?rL(t[1],t[2]/100,t[3]/100,t[4]):Wz.hasOwnProperty(e)?Jz(Wz[e]):"transparent"===e?new Qz(NaN,NaN,NaN,0):null}function Jz(e){return new Qz(e>>16&255,e>>8&255,255&e,1)}function Xz(e,t,n,i){return i<=0&&(e=t=n=NaN),new Qz(e,t,n,i)}function Yz(e,t,n,i){return 1===arguments.length?((o=e)instanceof Rz||(o=Kz(o)),o?new Qz((o=o.rgb()).r,o.g,o.b,o.opacity):new Qz):new Qz(e,t,n,null==i?1:i)
12088
- var o}function Qz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function eL(){return`#${oL(this.r)}${oL(this.g)}${oL(this.b)}`}function tL(){const e=nL(this.opacity)
12089
- return`${1===e?"rgb(":"rgba("}${iL(this.r)}, ${iL(this.g)}, ${iL(this.b)}${1===e?")":`, ${e})`}`}function nL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function iL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oL(e){return((e=iL(e))<16?"0":"")+e.toString(16)}function rL(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new aL(e,t,n,i)}function sL(e){if(e instanceof aL)return new aL(e.h,e.s,e.l,e.opacity)
12090
- if(e instanceof Rz||(e=Kz(e)),!e)return new aL
12091
- if(e instanceof aL)return e
12086
+ return n}function Nz(){}var Pz=.7,zz=1/Pz,Lz="\\s*([+-]?\\d+)\\s*",Fz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hz=/^#([0-9a-f]{3,8})$/,Bz=new RegExp(`^rgb\\(${Lz},${Lz},${Lz}\\)$`),qz=new RegExp(`^rgb\\(${Vz},${Vz},${Vz}\\)$`),jz=new RegExp(`^rgba\\(${Lz},${Lz},${Lz},${Fz}\\)$`),Uz=new RegExp(`^rgba\\(${Vz},${Vz},${Vz},${Fz}\\)$`),Wz=new RegExp(`^hsl\\(${Fz},${Vz},${Vz}\\)$`),Zz=new RegExp(`^hsla\\(${Fz},${Vz},${Vz},${Fz}\\)$`),Gz={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}
12087
+ function Kz(){return this.rgb().formatHex()}function Jz(){return this.rgb().formatRgb()}function Xz(e){var t,n
12088
+ return e=(e+"").trim().toLowerCase(),(t=Hz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Yz(t):3===n?new tL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Qz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Qz(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=Bz.exec(e))?new tL(t[1],t[2],t[3],1):(t=qz.exec(e))?new tL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jz.exec(e))?Qz(t[1],t[2],t[3],t[4]):(t=Uz.exec(e))?Qz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Wz.exec(e))?aL(t[1],t[2]/100,t[3]/100,1):(t=Zz.exec(e))?aL(t[1],t[2]/100,t[3]/100,t[4]):Gz.hasOwnProperty(e)?Yz(Gz[e]):"transparent"===e?new tL(NaN,NaN,NaN,0):null}function Yz(e){return new tL(e>>16&255,e>>8&255,255&e,1)}function Qz(e,t,n,i){return i<=0&&(e=t=n=NaN),new tL(e,t,n,i)}function eL(e,t,n,i){return 1===arguments.length?((o=e)instanceof Nz||(o=Xz(o)),o?new tL((o=o.rgb()).r,o.g,o.b,o.opacity):new tL):new tL(e,t,n,null==i?1:i)
12089
+ var o}function tL(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function nL(){return`#${sL(this.r)}${sL(this.g)}${sL(this.b)}`}function iL(){const e=oL(this.opacity)
12090
+ return`${1===e?"rgb(":"rgba("}${rL(this.r)}, ${rL(this.g)}, ${rL(this.b)}${1===e?")":`, ${e})`}`}function oL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sL(e){return((e=rL(e))<16?"0":"")+e.toString(16)}function aL(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cL(e,t,n,i)}function lL(e){if(e instanceof cL)return new cL(e.h,e.s,e.l,e.opacity)
12091
+ if(e instanceof Nz||(e=Xz(e)),!e)return new cL
12092
+ if(e instanceof cL)return e
12092
12093
  var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2
12093
- return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new aL(s,a,l,e.opacity)}function aL(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function lL(e){return(e=(e||0)%360)<0?e+360:e}function cL(e){return Math.max(0,Math.min(1,e||0))}function dL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Oz(Rz,Kz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zz,formatHex:Zz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return sL(this).formatHsl()},formatRgb:Gz,toString:Gz}),Oz(Qz,Yz,Tz(Rz,{brighter(e){return e=null==e?Nz:Math.pow(Nz,e),new Qz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Dz:Math.pow(Dz,e),new Qz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qz(iL(this.r),iL(this.g),iL(this.b),nL(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:eL,formatHex:eL,formatHex8:function(){return`#${oL(this.r)}${oL(this.g)}${oL(this.b)}${oL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tL,toString:tL})),Oz(aL,(function(e,t,n,i){return 1===arguments.length?sL(e):new aL(e,t,n,null==i?1:i)}),Tz(Rz,{brighter(e){return e=null==e?Nz:Math.pow(Nz,e),new aL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Dz:Math.pow(Dz,e),new aL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12094
- return new Qz(dL(e>=240?e-240:e+120,o,i),dL(e,o,i),dL(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new aL(lL(this.h),cL(this.s),cL(this.l),nL(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=nL(this.opacity)
12095
- return`${1===e?"hsl(":"hsla("}${lL(this.h)}, ${100*cL(this.s)}%, ${100*cL(this.l)}%${1===e?")":`, ${e})`}`}}))
12096
- var hL=e=>()=>e
12097
- function uL(e){return 1==(e=+e)?pL:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):hL(isNaN(t)?n:t)}}function pL(e,t){var n=t-e
12098
- return n?function(e,t){return function(n){return e+n*t}}(e,n):hL(isNaN(e)?t:e)}var fL=function e(t){var n=uL(t)
12099
- function i(e,t){var i=n((e=Yz(e)).r,(t=Yz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=pL(e.opacity,t.opacity)
12094
+ return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new cL(s,a,l,e.opacity)}function cL(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function dL(e){return(e=(e||0)%360)<0?e+360:e}function hL(e){return Math.max(0,Math.min(1,e||0))}function uL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Rz(Nz,Xz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Kz,formatHex:Kz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lL(this).formatHsl()},formatRgb:Jz,toString:Jz}),Rz(tL,eL,Dz(Nz,{brighter(e){return e=null==e?zz:Math.pow(zz,e),new tL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pz:Math.pow(Pz,e),new tL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tL(rL(this.r),rL(this.g),rL(this.b),oL(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:nL,formatHex:nL,formatHex8:function(){return`#${sL(this.r)}${sL(this.g)}${sL(this.b)}${sL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:iL,toString:iL})),Rz(cL,(function(e,t,n,i){return 1===arguments.length?lL(e):new cL(e,t,n,null==i?1:i)}),Dz(Nz,{brighter(e){return e=null==e?zz:Math.pow(zz,e),new cL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pz:Math.pow(Pz,e),new cL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12095
+ return new tL(uL(e>=240?e-240:e+120,o,i),uL(e,o,i),uL(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new cL(dL(this.h),hL(this.s),hL(this.l),oL(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=oL(this.opacity)
12096
+ return`${1===e?"hsl(":"hsla("}${dL(this.h)}, ${100*hL(this.s)}%, ${100*hL(this.l)}%${1===e?")":`, ${e})`}`}}))
12097
+ var pL=e=>()=>e
12098
+ function fL(e){return 1==(e=+e)?mL:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):pL(isNaN(t)?n:t)}}function mL(e,t){var n=t-e
12099
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):pL(isNaN(e)?t:e)}var gL=function e(t){var n=fL(t)
12100
+ function i(e,t){var i=n((e=eL(e)).r,(t=eL(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=mL(e.opacity,t.opacity)
12100
12101
  return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1)
12101
- function mL(e,t){t||(t=[])
12102
+ function vL(e,t){t||(t=[])
12102
12103
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
12103
12104
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
12104
- return o}}function gL(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12105
- for(n=0;n<o;++n)r[n]=CL(e[n],t[n])
12105
+ return o}}function bL(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12106
+ for(n=0;n<o;++n)r[n]=$L(e[n],t[n])
12106
12107
  for(;n<i;++n)s[n]=t[n]
12107
12108
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
12108
- return s}}function vL(e,t){var n=new Date
12109
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function bL(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function wL(e,t){var n,i={},o={}
12110
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=CL(e[n],t[n]):o[n]=t[n]
12109
+ return s}}function wL(e,t){var n=new Date
12110
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function yL(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function xL(e,t){var n,i={},o={}
12111
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=$L(e[n],t[n]):o[n]=t[n]
12111
12112
  return function(e){for(n in i)o[n]=i[n](e)
12112
- return o}}var yL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xL=new RegExp(yL.source,"g")
12113
- function kL(e,t){var n,i,o,r=yL.lastIndex=xL.lastIndex=0,s=-1,a=[],l=[]
12114
- for(e+="",t+="";(n=yL.exec(e))&&(i=xL.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:bL(n,i)})),r=xL.lastIndex
12113
+ return o}}var kL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,CL=new RegExp(kL.source,"g")
12114
+ function SL(e,t){var n,i,o,r=kL.lastIndex=CL.lastIndex=0,s=-1,a=[],l=[]
12115
+ for(e+="",t+="";(n=kL.exec(e))&&(i=CL.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:yL(n,i)})),r=CL.lastIndex
12115
12116
  return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
12116
- return a.join("")})}function CL(e,t){var n,i,o=typeof t
12117
- return null==t||"boolean"===o?hL(t):("number"===o?bL:"string"===o?(n=Kz(t))?(t=n,fL):kL:t instanceof Kz?fL:t instanceof Date?vL:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?gL:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?wL:bL:mL))(e,t)}function SL(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var $L,ML=180/Math.PI,_L={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12118
- function EL(e,t,n,i,o,r){var s,a,l
12119
- return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*ML,skewX:Math.atan(l)*ML,scaleX:s,scaleY:a}}function IL(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12117
+ return a.join("")})}function $L(e,t){var n,i,o=typeof t
12118
+ return null==t||"boolean"===o?pL(t):("number"===o?yL:"string"===o?(n=Xz(t))?(t=n,gL):SL:t instanceof Xz?gL:t instanceof Date?wL:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?bL:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?xL:yL:vL))(e,t)}function ML(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var _L,EL=180/Math.PI,IL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12119
+ function AL(e,t,n,i,o,r){var s,a,l
12120
+ return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*EL,skewX:Math.atan(l)*EL,scaleX:s,scaleY:a}}function OL(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12120
12121
  return r=e(r),s=e(s),function(e,i,o,r,s,a){if(e!==o||i!==r){var l=s.push("translate(",null,t,null,n)
12121
- a.push({i:l-4,x:bL(e,o)},{i:l-2,x:bL(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:bL(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:bL(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12122
- s.push({i:a-4,x:bL(e,n)},{i:a-2,x:bL(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12123
- return a.join("")}}}var AL=IL((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12124
- return t.isIdentity?_L:EL(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),OL=IL((function(e){return null==e?_L:($L||($L=document.createElementNS("http://www.w3.org/2000/svg","g")),$L.setAttribute("transform",e),(e=$L.transform.baseVal.consolidate())?EL((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):_L)}),", ",")",")")
12125
- function TL(e){return((e=Math.exp(e))+1/e)/2}var RL,DL,NL=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12122
+ a.push({i:l-4,x:yL(e,o)},{i:l-2,x:yL(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:yL(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:yL(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12123
+ s.push({i:a-4,x:yL(e,n)},{i:a-2,x:yL(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12124
+ return a.join("")}}}var TL=OL((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12125
+ return t.isIdentity?IL:AL(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),RL=OL((function(e){return null==e?IL:(_L||(_L=document.createElementNS("http://www.w3.org/2000/svg","g")),_L.setAttribute("transform",e),(e=_L.transform.baseVal.consolidate())?AL((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):IL)}),", ",")",")")
12126
+ function DL(e){return((e=Math.exp(e))+1/e)/2}var NL,PL,zL=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12126
12127
  if(m<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
12127
12128
  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),w=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(b*b+1)-b)
12128
- s=(y-w)/t,r=function(e){var i,o=e*s,r=TL(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12129
- return[a+d*p,l+d*f,c*r/TL(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12130
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),PL=0,zL=0,LL=0,FL=1e3,VL=0,HL=0,BL=0,qL="object"==typeof performance&&performance.now?performance:Date,jL="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12131
- function UL(){return HL||(jL(WL),HL=qL.now()+BL)}function WL(){HL=0}function ZL(){this._call=this._time=this._next=null}function GL(e,t,n){var i=new ZL
12132
- return i.restart(e,t,n),i}function KL(){HL=(VL=qL.now())+BL,PL=zL=0
12133
- try{!function(){UL(),++PL
12134
- for(var e,t=RL;t;)(e=HL-t._time)>=0&&t._call.call(void 0,e),t=t._next;--PL}()}finally{PL=0,function(){var e,t,n=RL,i=1/0
12135
- for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:RL=t)
12136
- DL=e,XL(i)}(),HL=0}}function JL(){var e=qL.now(),t=e-VL
12137
- t>FL&&(BL-=t,VL=e)}function XL(e){PL||(zL&&(zL=clearTimeout(zL)),e-HL>24?(e<1/0&&(zL=setTimeout(KL,e-qL.now()-BL)),LL&&(LL=clearInterval(LL))):(LL||(VL=qL.now(),LL=setInterval(JL,FL)),PL=1,jL(KL)))}function YL(e,t,n){var i=new ZL
12138
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}ZL.prototype=GL.prototype={constructor:ZL,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12139
- n=(null==n?UL():+n)+(null==t?0:+t),this._next||DL===this||(DL?DL._next=this:RL=this,DL=this),this._call=e,this._time=n,XL()},stop:function(){this._call&&(this._call=null,this._time=1/0,XL())}}
12140
- var QL=hP("start","end","cancel","interrupt"),eF=[],tF=0,nF=1,iF=2,oF=3,rF=4,sF=5,aF=6
12141
- function lF(e,t,n,i,o,r){var s=e.__transition
12129
+ s=(y-w)/t,r=function(e){var i,o=e*s,r=DL(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12130
+ return[a+d*p,l+d*f,c*r/DL(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12131
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),LL=0,FL=0,VL=0,HL=1e3,BL=0,qL=0,jL=0,UL="object"==typeof performance&&performance.now?performance:Date,WL="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12132
+ function ZL(){return qL||(WL(GL),qL=UL.now()+jL)}function GL(){qL=0}function KL(){this._call=this._time=this._next=null}function JL(e,t,n){var i=new KL
12133
+ return i.restart(e,t,n),i}function XL(){qL=(BL=UL.now())+jL,LL=FL=0
12134
+ try{!function(){ZL(),++LL
12135
+ for(var e,t=NL;t;)(e=qL-t._time)>=0&&t._call.call(void 0,e),t=t._next;--LL}()}finally{LL=0,function(){var e,t,n=NL,i=1/0
12136
+ for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:NL=t)
12137
+ PL=e,QL(i)}(),qL=0}}function YL(){var e=UL.now(),t=e-BL
12138
+ t>HL&&(jL-=t,BL=e)}function QL(e){LL||(FL&&(FL=clearTimeout(FL)),e-qL>24?(e<1/0&&(FL=setTimeout(XL,e-UL.now()-jL)),VL&&(VL=clearInterval(VL))):(VL||(BL=UL.now(),VL=setInterval(YL,HL)),LL=1,WL(XL)))}function eF(e,t,n){var i=new KL
12139
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}KL.prototype=JL.prototype={constructor:KL,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12140
+ n=(null==n?ZL():+n)+(null==t?0:+t),this._next||PL===this||(PL?PL._next=this:NL=this,PL=this),this._call=e,this._time=n,QL()},stop:function(){this._call&&(this._call=null,this._time=1/0,QL())}}
12141
+ var tF=pP("start","end","cancel","interrupt"),nF=[],iF=0,oF=1,rF=2,sF=3,aF=4,lF=5,cF=6
12142
+ function dF(e,t,n,i,o,r){var s=e.__transition
12142
12143
  if(s){if(n in s)return}else e.__transition={}
12143
12144
  !function(e,t,n){var i,o=e.__transition
12144
- function r(e){n.state=nF,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12145
- if(n.state!==nF)return l()
12146
- for(c in o)if((u=o[c]).name===n.name){if(u.state===oF)return YL(s)
12147
- u.state===rF?(u.state=aF,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=aF,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(YL((function(){n.state===oF&&(n.state=rF,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=iF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===iF){for(n.state=oF,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12148
- i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=sF,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12149
- n.state===sF&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=aF,n.timer.stop(),delete o[t],o)return
12150
- delete e.__transition}o[t]=n,n.timer=GL(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:QL,tween:eF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:tF})}function cF(e,t){var n=hF(e,t)
12151
- if(n.state>tF)throw new Error("too late; already scheduled")
12152
- return n}function dF(e,t){var n=hF(e,t)
12153
- if(n.state>oF)throw new Error("too late; already running")
12154
- return n}function hF(e,t){var n=e.__transition
12145
+ function r(e){n.state=oF,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12146
+ if(n.state!==oF)return l()
12147
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===sF)return eF(s)
12148
+ u.state===aF?(u.state=cF,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=cF,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(eF((function(){n.state===sF&&(n.state=aF,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=rF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===rF){for(n.state=sF,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12149
+ i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=lF,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12150
+ n.state===lF&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=cF,n.timer.stop(),delete o[t],o)return
12151
+ delete e.__transition}o[t]=n,n.timer=JL(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:tF,tween:nF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:iF})}function hF(e,t){var n=pF(e,t)
12152
+ if(n.state>iF)throw new Error("too late; already scheduled")
12153
+ return n}function uF(e,t){var n=pF(e,t)
12154
+ if(n.state>sF)throw new Error("too late; already running")
12155
+ return n}function pF(e,t){var n=e.__transition
12155
12156
  if(!n||!(n=n[t]))throw new Error("transition not found")
12156
- return n}function uF(e,t){var n,i,o,r=e.__transition,s=!0
12157
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>iF&&n.state<sF,n.state=aF,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12158
- s&&delete e.__transition}}function pF(e,t){var n,i
12159
- return function(){var o=dF(this,e),r=o.tween
12157
+ return n}function fF(e,t){var n,i,o,r=e.__transition,s=!0
12158
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>rF&&n.state<lF,n.state=cF,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12159
+ s&&delete e.__transition}}function mF(e,t){var n,i
12160
+ return function(){var o=uF(this,e),r=o.tween
12160
12161
  if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===t){(i=i.slice()).splice(s,1)
12161
- break}o.tween=i}}function fF(e,t,n){var i,o
12162
+ break}o.tween=i}}function gF(e,t,n){var i,o
12162
12163
  if("function"!=typeof n)throw new Error
12163
- return function(){var r=dF(this,e),s=r.tween
12164
+ return function(){var r=uF(this,e),s=r.tween
12164
12165
  if(s!==i){o=(i=s).slice()
12165
12166
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
12166
- break}l===c&&o.push(a)}r.tween=o}}function mF(e,t,n){var i=e._id
12167
- return e.each((function(){var e=dF(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return hF(e,i).value[t]}}function gF(e,t){var n
12168
- return("number"==typeof t?bL:t instanceof Kz?fL:(n=Kz(t))?(t=n,fL):kL)(e,t)}function vF(e){return function(){this.removeAttribute(e)}}function bF(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wF(e,t,n){var i,o,r=n+""
12167
+ break}l===c&&o.push(a)}r.tween=o}}function vF(e,t,n){var i=e._id
12168
+ return e.each((function(){var e=uF(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return pF(e,i).value[t]}}function bF(e,t){var n
12169
+ return("number"==typeof t?yL:t instanceof Xz?gL:(n=Xz(t))?(t=n,gL):SL)(e,t)}function wF(e){return function(){this.removeAttribute(e)}}function yF(e){return function(){this.removeAttributeNS(e.space,e.local)}}function xF(e,t,n){var i,o,r=n+""
12169
12170
  return function(){var s=this.getAttribute(e)
12170
- return s===r?null:s===i?o:o=t(i=s,n)}}function yF(e,t,n){var i,o,r=n+""
12171
+ return s===r?null:s===i?o:o=t(i=s,n)}}function kF(e,t,n){var i,o,r=n+""
12171
12172
  return function(){var s=this.getAttributeNS(e.space,e.local)
12172
- return s===r?null:s===i?o:o=t(i=s,n)}}function xF(e,t,n){var i,o,r
12173
+ return s===r?null:s===i?o:o=t(i=s,n)}}function CF(e,t,n){var i,o,r
12173
12174
  return function(){var s,a,l=n(this)
12174
12175
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12175
- this.removeAttribute(e)}}function kF(e,t,n){var i,o,r
12176
+ this.removeAttribute(e)}}function SF(e,t,n){var i,o,r
12176
12177
  return function(){var s,a,l=n(this)
12177
12178
  if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12178
- this.removeAttributeNS(e.space,e.local)}}function CF(e,t){var n,i
12179
+ this.removeAttributeNS(e.space,e.local)}}function $F(e,t){var n,i
12179
12180
  function o(){var o=t.apply(this,arguments)
12180
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function SF(e,t){var n,i
12181
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function MF(e,t){var n,i
12181
12182
  function o(){var o=t.apply(this,arguments)
12182
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function $F(e,t){return function(){cF(this,e).delay=+t.apply(this,arguments)}}function MF(e,t){return t=+t,function(){cF(this,e).delay=t}}function _F(e,t){return function(){dF(this,e).duration=+t.apply(this,arguments)}}function EF(e,t){return t=+t,function(){dF(this,e).duration=t}}var IF=Mz.prototype.constructor
12183
- function AF(e){return function(){this.style.removeProperty(e)}}var OF=0
12184
- function TF(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function RF(){return++OF}var DF=Mz.prototype
12185
- TF.prototype={constructor:TF,select:function(e){var t=this._name,n=this._id
12186
- "function"!=typeof e&&(e=kP(e))
12187
- for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,lF(h[u],t,n,u,h,hF(a,n)))
12188
- return new TF(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12183
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function _F(e,t){return function(){hF(this,e).delay=+t.apply(this,arguments)}}function EF(e,t){return t=+t,function(){hF(this,e).delay=t}}function IF(e,t){return function(){uF(this,e).duration=+t.apply(this,arguments)}}function AF(e,t){return t=+t,function(){uF(this,e).duration=t}}var OF=Ez.prototype.constructor
12184
+ function TF(e){return function(){this.style.removeProperty(e)}}var RF=0
12185
+ function DF(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function NF(){return++RF}var PF=Ez.prototype
12186
+ DF.prototype={constructor:DF,select:function(e){var t=this._name,n=this._id
12189
12187
  "function"!=typeof e&&(e=SP(e))
12190
- for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=hF(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&lF(u,t,n,m,p,f)
12191
- r.push(p),s.push(l)}return new TF(r,s,t,n)},selectChild:DF.selectChild,selectChildren:DF.selectChildren,filter:function(e){"function"!=typeof e&&(e=MP(e))
12188
+ for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,dF(h[u],t,n,u,h,pF(a,n)))
12189
+ return new DF(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12190
+ "function"!=typeof e&&(e=MP(e))
12191
+ for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=pF(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&dF(u,t,n,m,p,f)
12192
+ r.push(p),s.push(l)}return new DF(r,s,t,n)},selectChild:PF.selectChild,selectChildren:PF.selectChildren,filter:function(e){"function"!=typeof e&&(e=EP(e))
12192
12193
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12193
- return new TF(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12194
+ return new DF(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12194
12195
  for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=t[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
12195
12196
  for(;a<i;++a)s[a]=t[a]
12196
- return new TF(s,this._parents,this._name,this._id)},selection:function(){return new IF(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=RF(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=hF(s,t)
12197
- lF(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new TF(i,this._parents,e,n)},call:DF.call,nodes:DF.nodes,node:DF.node,size:DF.size,empty:DF.empty,each:DF.each,on:function(e,t){var n=this._id
12198
- return arguments.length<2?hF(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12199
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?cF:dF
12197
+ return new DF(s,this._parents,this._name,this._id)},selection:function(){return new OF(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=NF(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=pF(s,t)
12198
+ dF(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new DF(i,this._parents,e,n)},call:PF.call,nodes:PF.nodes,node:PF.node,size:PF.size,empty:PF.empty,each:PF.each,on:function(e,t){var n=this._id
12199
+ return arguments.length<2?pF(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12200
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?hF:uF
12200
12201
  return function(){var s=r(this,e),a=s.on
12201
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=vP(e),i="transform"===n?OL:gF
12202
- return this.attrTween(e,"function"==typeof t?(n.local?kF:xF)(n,i,mF(this,"attr."+e,t)):null==t?(n.local?bF:vF)(n):(n.local?yF:wF)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12202
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=wP(e),i="transform"===n?RL:bF
12203
+ return this.attrTween(e,"function"==typeof t?(n.local?SF:CF)(n,i,vF(this,"attr."+e,t)):null==t?(n.local?yF:wF)(n):(n.local?kF:xF)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12203
12204
  if(arguments.length<2)return(n=this.tween(n))&&n._value
12204
12205
  if(null==t)return this.tween(n,null)
12205
12206
  if("function"!=typeof t)throw new Error
12206
- var i=vP(e)
12207
- return this.tween(n,(i.local?CF:SF)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?AL:gF
12207
+ var i=wP(e)
12208
+ return this.tween(n,(i.local?$F:MF)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?TL:bF
12208
12209
  return null==t?this.styleTween(e,function(e,t){var n,i,o
12209
- return function(){var r=KP(this,e),s=(this.style.removeProperty(e),KP(this,e))
12210
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,AF(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12211
- return function(){var s=KP(this,e),a=n(this),l=a+""
12212
- return null==a&&(this.style.removeProperty(e),l=a=KP(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,mF(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12213
- return function(){var l=dF(this,e),c=l.on,d=null==l.value[s]?r||(r=AF(t)):void 0
12210
+ return function(){var r=XP(this,e),s=(this.style.removeProperty(e),XP(this,e))
12211
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,TF(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12212
+ return function(){var s=XP(this,e),a=n(this),l=a+""
12213
+ return null==a&&(this.style.removeProperty(e),l=a=XP(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,vF(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12214
+ return function(){var l=uF(this,e),c=l.on,d=null==l.value[s]?r||(r=TF(t)):void 0
12214
12215
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,r=n+""
12215
- return function(){var s=KP(this,e)
12216
+ return function(){var s=XP(this,e)
12216
12217
  return s===r?null:s===i?o:o=t(i=s,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
12217
12218
  if(arguments.length<2)return(i=this.tween(i))&&i._value
12218
12219
  if(null==t)return this.tween(i,null)
@@ -12220,7 +12221,7 @@ if("function"!=typeof t)throw new Error
12220
12221
  return this.tween(i,function(e,t,n){var i,o
12221
12222
  function r(){var r=t.apply(this,arguments)
12222
12223
  return r!==o&&(i=(o=r)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,r,n)),i}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
12223
- this.textContent=null==t?"":t}}(mF(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12224
+ this.textContent=null==t?"":t}}(vF(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12224
12225
  if(arguments.length<1)return(t=this.tween(t))&&t._value
12225
12226
  if(null==e)return this.tween(t,null)
12226
12227
  if("function"!=typeof e)throw new Error
@@ -12229,60 +12230,60 @@ function i(){var i=e.apply(this,arguments)
12229
12230
  return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
12230
12231
  for(var n in this.__transition)if(+n!==e)return
12231
12232
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
12232
- if(e+="",arguments.length<2){for(var i,o=hF(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12233
- return null}return this.each((null==t?pF:fF)(n,e,t))},delay:function(e){var t=this._id
12234
- return arguments.length?this.each(("function"==typeof e?$F:MF)(t,e)):hF(this.node(),t).delay},duration:function(e){var t=this._id
12235
- return arguments.length?this.each(("function"==typeof e?_F:EF)(t,e)):hF(this.node(),t).duration},ease:function(e){var t=this._id
12233
+ if(e+="",arguments.length<2){for(var i,o=pF(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12234
+ return null}return this.each((null==t?mF:gF)(n,e,t))},delay:function(e){var t=this._id
12235
+ return arguments.length?this.each(("function"==typeof e?_F:EF)(t,e)):pF(this.node(),t).delay},duration:function(e){var t=this._id
12236
+ return arguments.length?this.each(("function"==typeof e?IF:AF)(t,e)):pF(this.node(),t).duration},ease:function(e){var t=this._id
12236
12237
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
12237
- return function(){dF(this,e).ease=t}}(t,e)):hF(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12238
+ return function(){uF(this,e).ease=t}}(t,e)):pF(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12238
12239
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
12239
12240
  if("function"!=typeof n)throw new Error
12240
- dF(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12241
+ uF(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12241
12242
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
12242
- n.each((function(){var n=dF(this,i),o=n.on
12243
- o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:DF[Symbol.iterator]}
12244
- var NF={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12245
- function PF(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12246
- return n}Mz.prototype.interrupt=function(e){return this.each((function(){uF(this,e)}))},Mz.prototype.transition=function(e){var t,n
12247
- e instanceof TF?(t=e._id,e=e._name):(t=RF(),(n=NF).time=UL(),e=null==e?null:e+"")
12248
- for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&lF(s,e,t,c,a,n||PF(s,t))
12249
- return new TF(i,this._parents,e,t)}
12250
- var zF=e=>()=>e
12251
- function LF(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function FF(e,t,n){this.k=e,this.x=t,this.y=n}FF.prototype={constructor:FF,scale:function(e){return 1===e?this:new FF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new FF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12252
- var VF=new FF(1,0,0)
12253
- function HF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return VF
12254
- return e.__zoom}function BF(e){e.stopImmediatePropagation()}function qF(e){e.preventDefault(),e.stopImmediatePropagation()}function jF(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function UF(){var e=this
12255
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function WF(){return this.__zoom||VF}function ZF(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function GF(){return navigator.maxTouchPoints||"ontouchstart"in this}function KF(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12256
- return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function JF(){var e,t,n,i=jF,o=UF,r=KF,s=ZF,a=GF,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=NL,u=hP("start","zoom","end"),p=500,f=150,m=0,g=10
12257
- function v(e){e.property("__zoom",WF).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new FF(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12258
- return i===e.x&&o===e.y?e:new FF(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12243
+ n.each((function(){var n=uF(this,i),o=n.on
12244
+ o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:PF[Symbol.iterator]}
12245
+ var zF={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12246
+ function LF(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12247
+ return n}Ez.prototype.interrupt=function(e){return this.each((function(){fF(this,e)}))},Ez.prototype.transition=function(e){var t,n
12248
+ e instanceof DF?(t=e._id,e=e._name):(t=NF(),(n=zF).time=ZL(),e=null==e?null:e+"")
12249
+ for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&dF(s,e,t,c,a,n||LF(s,t))
12250
+ return new DF(i,this._parents,e,t)}
12251
+ var FF=e=>()=>e
12252
+ function VF(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function HF(e,t,n){this.k=e,this.x=t,this.y=n}HF.prototype={constructor:HF,scale:function(e){return 1===e?this:new HF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new HF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12253
+ var BF=new HF(1,0,0)
12254
+ function qF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return BF
12255
+ return e.__zoom}function jF(e){e.stopImmediatePropagation()}function UF(e){e.preventDefault(),e.stopImmediatePropagation()}function WF(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function ZF(){var e=this
12256
+ return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function GF(){return this.__zoom||BF}function KF(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function JF(){return navigator.maxTouchPoints||"ontouchstart"in this}function XF(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12257
+ return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function YF(){var e,t,n,i=WF,o=ZF,r=XF,s=KF,a=JF,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=zL,u=pP("start","zoom","end"),p=500,f=150,m=0,g=10
12258
+ function v(e){e.property("__zoom",GF).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new HF(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12259
+ return i===e.x&&o===e.y?e:new HF(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12259
12260
  return function(e){if(1===e)e=u
12260
12261
  else{var t=p(e),n=c/t[2]
12261
- e=new FF(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=Ez(e)
12262
+ e=new HF(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=Az(e)
12262
12263
  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)
12263
12264
  else{if(o.k===a)return
12264
- n.mouse=[d,o.invert(d)],uF(this),n.start()}qF(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=_z(e.view).on("mousemove.zoom",(function(e){if(qF(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12265
- s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=Ez(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=_z(e).on("dragstart.drag",null)
12266
- t&&(i.on("click.drag",Az,Iz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),qF(e),s.event(e).end()}),!0),l=Ez(e,o),d=e.clientX,h=e.clientY
12267
- !function(e){var t=e.document.documentElement,n=_z(e).on("dragstart.drag",Az,Iz)
12268
- "onselectstart"in t?n.on("selectstart.drag",Az,Iz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),BF(e),s.mouse=[l,this.__zoom.invert(l)],uF(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=Ez(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12269
- qF(e),d>0?_z(this).transition().duration(d).call(x,h,s,e):_z(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12270
- for(BF(n),s=0;s<d;++s)l=[l=Ez(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
12271
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),uF(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12272
- for(qF(e),n=0;n<d;++n)o=Ez(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)
12265
+ n.mouse=[d,o.invert(d)],fF(this),n.start()}UF(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=Iz(e.view).on("mousemove.zoom",(function(e){if(UF(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12266
+ s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=Az(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=Iz(e).on("dragstart.drag",null)
12267
+ t&&(i.on("click.drag",Tz,Oz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),UF(e),s.event(e).end()}),!0),l=Az(e,o),d=e.clientX,h=e.clientY
12268
+ !function(e){var t=e.document.documentElement,n=Iz(e).on("dragstart.drag",Tz,Oz)
12269
+ "onselectstart"in t?n.on("selectstart.drag",Tz,Oz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),jF(e),s.mouse=[l,this.__zoom.invert(l)],fF(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=Az(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12270
+ UF(e),d>0?Iz(this).transition().duration(d).call(x,h,s,e):Iz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12271
+ for(jF(n),s=0;s<d;++s)l=[l=Az(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
12272
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),fF(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12273
+ for(UF(e),n=0;n<d;++n)o=Az(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)
12273
12274
  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
12274
12275
  i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
12275
12276
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(w(i,o,s),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,r,s=k(this,i).event(e),a=e.changedTouches,l=a.length
12276
- for(BF(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12277
+ for(jF(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12277
12278
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
12278
- else if(s.end(),2===s.taps&&(r=Ez(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=_z(this).on("dblclick.zoom")
12279
+ else if(s.end(),2===s.taps&&(r=Az(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=Iz(this).on("dblclick.zoom")
12279
12280
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
12280
- o.property("__zoom",WF),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12281
+ o.property("__zoom",GF),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12281
12282
  return r(w(b(i,l),s,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,s){v.transform(e,(function(){var e=o.apply(this,arguments),s=this.__zoom,a=null==i?y(e):"function"==typeof i?i.apply(this,arguments):i
12282
- return r(VF.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=_z(this.that).datum()
12283
- u.call(e,this.that,new LF(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:zF(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:zF(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:zF(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:zF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12284
- return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}HF.prototype=FF.prototype
12285
- const XF=Z`
12283
+ return r(BF.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Iz(this.that).datum()
12284
+ u.call(e,this.that,new VF(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:FF(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:FF(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:FF(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:FF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12285
+ return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}qF.prototype=HF.prototype
12286
+ const QF=Z`
12286
12287
  <div class="wafer-map-container">
12287
12288
  <svg class="svg-root">
12288
12289
  <g ${Ne("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -12312,7 +12313,7 @@ const XF=Z`
12312
12313
  />
12313
12314
  </svg>
12314
12315
  </div>
12315
- `,YF=we`
12316
+ `,eV=we`
12316
12317
  :host {
12317
12318
  display: inline-block;
12318
12319
  width: 500px;
@@ -12396,68 +12397,68 @@ const XF=Z`
12396
12397
  outline-width: 0px;
12397
12398
  }
12398
12399
  `
12399
- function QF(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tV(e){let t,n,i
12400
+ function tV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function iV(e){let t,n,i
12400
12401
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12401
12402
  do{const t=o+r>>>1
12402
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=QF,n=(t,n)=>QF(e(t),n),i=(t,n)=>e(t)-n):(t=e===QF||e===eV?e:nV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12403
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=tV,n=(t,n)=>tV(e(t),n),i=(t,n)=>e(t)-n):(t=e===tV||e===nV?e:oV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12403
12404
  return s>n&&i(e[s-1],t)>-i(e[s],t)?s-1:s},right:function(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12404
12405
  do{const t=o+r>>>1
12405
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function nV(){return 0}function iV(e){return null===e?NaN:+e}const oV=tV(QF).right
12406
- tV(iV).center
12407
- var rV=oV
12408
- class sV extends Map{constructor(e,t=lV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(aV(this,e))}has(e){return super.has(aV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12406
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function oV(){return 0}function rV(e){return null===e?NaN:+e}const sV=iV(tV).right
12407
+ iV(rV).center
12408
+ var aV=sV
12409
+ class lV extends Map{constructor(e,t=dV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(cV(this,e))}has(e){return super.has(cV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12409
12410
  return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
12410
12411
  e.has(i)&&(n=e.get(i),e.delete(i))
12411
- return n}(this,e))}}function aV({_intern:e,_key:t},n){const i=t(n)
12412
- return e.has(i)?e.get(i):n}function lV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const cV=Math.sqrt(50),dV=Math.sqrt(10),hV=Math.sqrt(2)
12413
- function uV(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=cV?10:r>=dV?5:r>=hV?2:1
12412
+ return n}(this,e))}}function cV({_intern:e,_key:t},n){const i=t(n)
12413
+ return e.has(i)?e.get(i):n}function dV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const hV=Math.sqrt(50),uV=Math.sqrt(10),pV=Math.sqrt(2)
12414
+ function fV(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=hV?10:r>=uV?5:r>=pV?2:1
12414
12415
  let a,l,c
12415
- return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?uV(e,t,2*n):[a,l,c]}function pV(e,t,n){return uV(e=+e,t=+t,n=+n)[2]}function fV(e,t,n=iV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12416
+ return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?fV(e,t,2*n):[a,l,c]}function mV(e,t,n){return fV(e=+e,t=+t,n=+n)[2]}function gV(e,t,n=rV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12416
12417
  if(t>=1)return+n(e[i-1],i-1,e)
12417
12418
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
12418
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function mV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12419
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function vV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12419
12420
  for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),r=new Array(o);++i<o;)r[i]=e+i*n
12420
- return r}function gV(e,t){switch(arguments.length){case 0:break
12421
+ return r}function bV(e,t){switch(arguments.length){case 0:break
12421
12422
  case 1:this.range(e)
12422
12423
  break
12423
- default:this.range(t).domain(e)}return this}const vV=Symbol("implicit")
12424
- function bV(){var e=new sV,t=[],n=[],i=vV
12424
+ default:this.range(t).domain(e)}return this}const wV=Symbol("implicit")
12425
+ function yV(){var e=new lV,t=[],n=[],i=wV
12425
12426
  function o(o){let r=e.get(o)
12426
- if(void 0===r){if(i!==vV)return i
12427
+ if(void 0===r){if(i!==wV)return i
12427
12428
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
12428
- t=[],e=new sV
12429
+ t=[],e=new lV
12429
12430
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
12430
- return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return bV(t,n).unknown(i)},gV.apply(o,arguments),o}function wV(){var e,t,n=bV().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12431
+ return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return yV(t,n).unknown(i)},bV.apply(o,arguments),o}function xV(){var e,t,n=yV().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12431
12432
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
12432
12433
  e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
12433
- var f=mV(n).map((function(t){return u+e*t}))
12434
- return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return wV(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},gV.apply(h(),arguments)}function yV(e){return+e}var xV=[0,1]
12435
- function kV(e){return e}function CV(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12436
- var n}function SV(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12437
- return o<i?(i=CV(o,i),r=n(s,r)):(i=CV(i,o),r=n(r,s)),function(e){return r(i(e))}}function $V(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12438
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=CV(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12439
- return function(t){var n=rV(e,t,1,i)-1
12440
- return r[n](o[n](t))}}function MV(){var e,t,n,i,o,r,s=xV,a=xV,l=CL,c=kV
12434
+ var f=vV(n).map((function(t){return u+e*t}))
12435
+ return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return xV(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},bV.apply(h(),arguments)}function kV(e){return+e}var CV=[0,1]
12436
+ function SV(e){return e}function $V(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12437
+ var n}function MV(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12438
+ return o<i?(i=$V(o,i),r=n(s,r)):(i=$V(i,o),r=n(r,s)),function(e){return r(i(e))}}function _V(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12439
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=$V(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12440
+ return function(t){var n=aV(e,t,1,i)-1
12441
+ return r[n](o[n](t))}}function EV(){var e,t,n,i,o,r,s=CV,a=CV,l=$L,c=SV
12441
12442
  function d(){var e,t,n,l=Math.min(s.length,a.length)
12442
- return c!==kV&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?$V:SV,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),bL)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,yV),d()):s.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=SL,d()},h.clamp=function(e){return arguments.length?(c=!!e||kV,d()):c!==kV},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function _V(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12443
+ return c!==SV&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?_V:MV,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),yL)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,kV),d()):s.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=ML,d()},h.clamp=function(e){return arguments.length?(c=!!e||SV,d()):c!==SV},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function IV(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12443
12444
  var n,i=e.slice(0,n)
12444
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function EV(e){return(e=_V(Math.abs(e)))?e[1]:NaN}var IV,AV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12445
- function OV(e){if(!(t=AV.exec(e)))throw new Error("invalid format: "+e)
12445
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function AV(e){return(e=IV(Math.abs(e)))?e[1]:NaN}var OV,TV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12446
+ function RV(e){if(!(t=TV.exec(e)))throw new Error("invalid format: "+e)
12446
12447
  var t
12447
- return new TV({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 TV(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 RV(e,t){var n=_V(e,t)
12448
+ return new DV({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 DV(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 NV(e,t){var n=IV(e,t)
12448
12449
  if(!n)return e+""
12449
12450
  var i=n[0],o=n[1]
12450
- 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")}OV.prototype=TV.prototype,TV.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}
12451
- var DV={"%":(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)=>RV(100*e,t),r:RV,s:function(e,t){var n=_V(e,t)
12451
+ 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")}RV.prototype=DV.prototype,DV.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}
12452
+ var PV={"%":(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)=>NV(100*e,t),r:NV,s:function(e,t){var n=IV(e,t)
12452
12453
  if(!n)return e+""
12453
- var i=n[0],o=n[1],r=o-(IV=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12454
- return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+_V(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12455
- function NV(e){return e}var PV,zV,LV,FV=Array.prototype.map,VV=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12456
- function HV(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?NV:(t=FV.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12457
- return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?NV:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(FV.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+""
12458
- function h(e){var t=(e=OV(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12459
- "n"===b?(m=!0,b="g"):DV[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12460
- var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=DV[b],k=/[defgprs%]/.test(b)
12454
+ var i=n[0],o=n[1],r=o-(OV=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12455
+ return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+IV(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12456
+ function zV(e){return e}var LV,FV,VV,HV=Array.prototype.map,BV=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12457
+ function qV(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?zV:(t=HV.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12458
+ return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?zV:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(HV.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+""
12459
+ function h(e){var t=(e=RV(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12460
+ "n"===b?(m=!0,b="g"):PV[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12461
+ var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=PV[b],k=/[defgprs%]/.test(b)
12461
12462
  function C(e){var o,r,l,u=w,C=y
12462
12463
  if("c"===b)C=x(e)+C,e=""
12463
12464
  else{var S=(e=+e)<0||1/e<0
@@ -12466,7 +12467,7 @@ break
12466
12467
  case"0":0===o&&(o=i),t=i
12467
12468
  break
12468
12469
  default:if(!+e[i])break e
12469
- o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?VV[8+IV/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12470
+ o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?BV[8+OV/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12470
12471
  break}}m&&!p&&(e=i(e,1/0))
12471
12472
  var $=u.length+e.length+C.length,M=$<f?new Array(f-$+1).join(t):""
12472
12473
  switch(m&&p&&(e=i(M+e,M.length?f-C.length:1/0),M=""),n){case"<":e=u+e+C+M
@@ -12475,19 +12476,19 @@ case"=":e=u+M+e+C
12475
12476
  break
12476
12477
  case"^":e=M.slice(0,$=M.length>>1)+u+e+C+M.slice($)
12477
12478
  break
12478
- default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=OV(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(EV(t)/3))),o=Math.pow(10,-i),r=VV[8+i/3]
12479
- return function(e){return n(o*e)+r}}}}function BV(e,t,n,i){var o,r=function(e,t,n){n=+n
12480
- const i=(t=+t)<(e=+e),o=i?pV(t,e,n):pV(e,t,n)
12479
+ default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=RV(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(AV(t)/3))),o=Math.pow(10,-i),r=BV[8+i/3]
12480
+ return function(e){return n(o*e)+r}}}}function jV(e,t,n,i){var o,r=function(e,t,n){n=+n
12481
+ const i=(t=+t)<(e=+e),o=i?mV(t,e,n):mV(e,t,n)
12481
12482
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
12482
- switch((i=OV(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12483
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(EV(t)/3)))-EV(Math.abs(e)))}(r,s))||(i.precision=o),LV(i,s)
12484
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,EV(t)-EV(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12483
+ switch((i=RV(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12484
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(AV(t)/3)))-AV(Math.abs(e)))}(r,s))||(i.precision=o),VV(i,s)
12485
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,AV(t)-AV(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12485
12486
  break
12486
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-EV(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return zV(i)}function qV(e){var t=e.domain
12487
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-AV(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return FV(i)}function UV(e){var t=e.domain
12487
12488
  return e.ticks=function(e){var n=t()
12488
12489
  return function(e,t,n){if(!((n=+n)>0))return[]
12489
12490
  if((e=+e)==(t=+t))return[e]
12490
- const i=t<e,[o,r,s]=i?uV(t,e,n):uV(e,t,n)
12491
+ const i=t<e,[o,r,s]=i?fV(t,e,n):fV(e,t,n)
12491
12492
  if(!(r>=o))return[]
12492
12493
  const a=r-o+1,l=new Array(a)
12493
12494
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -12495,23 +12496,23 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
12495
12496
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
12496
12497
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
12497
12498
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
12498
- return BV(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12499
+ return jV(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12499
12500
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
12500
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=pV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12501
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=mV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12501
12502
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
12502
12503
  else{if(!(o<0))break
12503
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function jV(){var e=MV()(kV,kV)
12504
- return e.copy=function(){return t=e,jV().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12505
- var t},gV.apply(e,arguments),qV(e)}function UV(){var e,t=[],n=[],i=[]
12504
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function WV(){var e=EV()(SV,SV)
12505
+ return e.copy=function(){return t=e,WV().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12506
+ var t},bV.apply(e,arguments),UV(e)}function ZV(){var e,t=[],n=[],i=[]
12506
12507
  function o(){var e=0,o=Math.max(1,n.length)
12507
- for(i=new Array(o-1);++e<o;)i[e-1]=fV(t,e/o)
12508
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[rV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12508
+ for(i=new Array(o-1);++e<o;)i[e-1]=gV(t,e/o)
12509
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[aV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12509
12510
  return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},r.domain=function(e){if(!arguments.length)return t.slice()
12510
12511
  t=[]
12511
12512
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
12512
- return t.sort(QF),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return UV().domain(t).range(n).unknown(e)},gV.apply(r,arguments)}PV=HV({thousands:",",grouping:[3],currency:["$",""]}),zV=PV.format,LV=PV.formatPrefix
12513
- const WV="bottom-left",ZV="bottom-right",GV="top-left",KV="top",JV="show",XV="hide",YV="linear",QV="ordinal"
12514
- class eH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}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}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12513
+ return t.sort(tV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return ZV().domain(t).range(n).unknown(e)},bV.apply(r,arguments)}LV=qV({thousands:",",grouping:[3],currency:["$",""]}),FV=LV.format,VV=LV.formatPrefix
12514
+ const GV="bottom-left",KV="bottom-right",JV="top-left",XV="top",YV="show",QV="hide",eH="linear",tH="ordinal"
12515
+ class nH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}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}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12515
12516
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
12516
12517
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
12517
12518
  this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -12519,19 +12520,19 @@ this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontal
12519
12520
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
12520
12521
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
12521
12522
  for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
12522
- return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=wV().domain(mV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12523
- return e===WV||e===GV?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=UV().domain([0,n])
12524
- return e===WV||e===GV?i.range(mV(t.origin.x,t.origin.x+t.cols)):i.range(mV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=wV().domain(mV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12525
- return e===WV||e===ZV?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=UV().domain([0,n])
12526
- return e===WV||e===ZV?i.range(mV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(mV(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class tH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12527
- return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?jV().domain(e.values.map((e=>+e))).range(e.colors):bV().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12523
+ return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=xV().domain(vV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12524
+ return e===GV||e===JV?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=ZV().domain([0,n])
12525
+ return e===GV||e===JV?i.range(vV(t.origin.x,t.origin.x+t.cols)):i.range(vV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=xV().domain(vV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12526
+ return e===GV||e===KV?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=ZV().domain([0,n])
12527
+ return e===GV||e===KV?i.range(vV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(vV(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class iH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12528
+ return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?WV().domain(e.values.map((e=>+e))).range(e.colors):yV().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12528
12529
  const o=`${e}${i}`
12529
12530
  return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
12530
12531
  const n=new Set(t)
12531
- return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===YV}isColorScaleOrdinal(e){return e===QV}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12532
+ return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===eH}isColorScaleOrdinal(e){return e===tH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12532
12533
  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
12533
12534
  let r=Zo(o)
12534
- return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class nH{constructor(e){this.wafermap=e,this.computations=new eH(e),this.prerendering=new tH(e,this)}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}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class iH{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){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?XV:JV,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12535
+ return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class oH{constructor(e){this.wafermap=e,this.computations=new nH(e),this.prerendering=new iH(e,this)}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}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class rH{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){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?QV:YV,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12535
12536
  if(void 0===e)return""
12536
12537
  const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
12537
12538
  if(void 0===t)return""
@@ -12544,19 +12545,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
12544
12545
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
12545
12546
  const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
12546
12547
  r[0]-=e,r[1]-=t
12547
- for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class oH{constructor(e){this.wafermap=e,this.zoomTransform=VF,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=JF().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>HF(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(_z(this.wafermap.canvas))}rescale(e){const t=e.transform
12548
- t.k===this.minScale?(this.zoomTransform=VF,this.zoomBehavior.transform(_z(this.wafermap.canvas),VF)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class rH{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12548
+ for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class sH{constructor(e){this.wafermap=e,this.zoomTransform=BF,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=YF().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>qF(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(Iz(this.wafermap.canvas))}rescale(e){const t=e.transform
12549
+ t.k===this.minScale?(this.zoomTransform=BF,this.zoomBehavior.transform(Iz(this.wafermap.canvas),BF)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class aH{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12549
12550
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
12550
12551
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
12551
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===WV||n===GV?Math.floor:Math.ceil,o=n===WV||n===ZV?Math.floor:Math.ceil
12552
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===GV||n===JV?Math.floor:Math.ceil,o=n===GV||n===KV?Math.floor:Math.ceil
12552
12553
  return{x:i(e.dataManager.invertedHorizontalScale(t.x-e.dataManager.margin.left)),y:o(e.dataManager.invertedVerticalScale(t.y-e.dataManager.margin.top))}}hoversOverDie(e,t){const n=e.canvasContext.getImageData(t.x,t.y,1,1).data
12553
12554
  let i=0
12554
12555
  for(const e of n)i+=e
12555
- return i>0}}class sH{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new oH(e),this.hoverHandler=new rH(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const aH=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12556
- class lH extends TR{constructor(e){super(aH),this.wafermap=e,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}))))}}class cH{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class dH extends Lt{constructor(){super(...arguments),this.waferMapUpdateTracker=new lH(this),this.originLocation=WV,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=KV,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=YV,this.dataManager=new nH(this),this.renderer=new iH(this),this.renderQueued=!1,this.transform=VF,this.hoverTransform="",this.hoverOpacity=XV,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new sH(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new cH(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),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.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12556
+ return i>0}}class lH{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new sH(e),this.hoverHandler=new aH(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const cH=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12557
+ class dH extends TR{constructor(e){super(cH),this.wafermap=e,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}))))}}class hH{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class uH extends Lt{constructor(){super(...arguments),this.waferMapUpdateTracker=new dH(this),this.originLocation=GV,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=XV,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=eH,this.dataManager=new oH(this),this.renderer=new rH(this),this.renderQueued=!1,this.transform=BF,this.hoverTransform="",this.hoverOpacity=QV,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new lH(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new hH(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),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.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12557
12558
  if(void 0===t)return
12558
12559
  const{height:n,width:i}=t.contentRect
12559
- 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()}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()}}e([se({attribute:"origin-location"})],dH.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],dH.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],dH.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],dH.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],dH.prototype,"gridMaxY",void 0),e([se],dH.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],dH.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],dH.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],dH.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],dH.prototype,"colorScaleMode",void 0),e([g],dH.prototype,"canvasWidth",void 0),e([g],dH.prototype,"canvasHeight",void 0),e([g],dH.prototype,"transform",void 0),e([g],dH.prototype,"hoverTransform",void 0),e([g],dH.prototype,"hoverOpacity",void 0),e([g],dH.prototype,"hoverWidth",void 0),e([g],dH.prototype,"hoverHeight",void 0),e([g],dH.prototype,"hoverDie",void 0),e([g],dH.prototype,"highlightedTags",void 0),e([g],dH.prototype,"dies",void 0),e([g],dH.prototype,"colorScale",void 0)
12560
- const hH=dH.compose({baseName:"wafer-map",template:XF,styles:YF})
12561
- bi.getOrCreate().withPrefix("nimble").register(hH())}()
12560
+ 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()}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()}}e([se({attribute:"origin-location"})],uH.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],uH.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],uH.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],uH.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],uH.prototype,"gridMaxY",void 0),e([se],uH.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],uH.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],uH.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],uH.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],uH.prototype,"colorScaleMode",void 0),e([g],uH.prototype,"canvasWidth",void 0),e([g],uH.prototype,"canvasHeight",void 0),e([g],uH.prototype,"transform",void 0),e([g],uH.prototype,"hoverTransform",void 0),e([g],uH.prototype,"hoverOpacity",void 0),e([g],uH.prototype,"hoverWidth",void 0),e([g],uH.prototype,"hoverHeight",void 0),e([g],uH.prototype,"hoverDie",void 0),e([g],uH.prototype,"highlightedTags",void 0),e([g],uH.prototype,"dies",void 0),e([g],uH.prototype,"colorScale",void 0)
12561
+ const pH=uH.compose({baseName:"wafer-map",template:QF,styles:eV})
12562
+ bi.getOrCreate().withPrefix("nimble").register(pH())}()
12562
12563
  //# sourceMappingURL=all-components-bundle.min.js.map