@ni/nimble-components 18.1.2 → 18.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +3900 -3849
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +349 -345
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/cell/index.d.ts +1 -0
- package/dist/esm/table/components/cell/index.js +7 -0
- package/dist/esm/table/components/cell/index.js.map +1 -1
- package/dist/esm/wafer-map/index.d.ts +30 -6
- package/dist/esm/wafer-map/index.js +53 -36
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/data-manager.d.ts +3 -2
- package/dist/esm/wafer-map/modules/data-manager.js +6 -3
- package/dist/esm/wafer-map/modules/data-manager.js.map +1 -1
- package/dist/esm/wafer-map/modules/event-coordinator.d.ts +19 -0
- package/dist/esm/wafer-map/modules/event-coordinator.js +41 -0
- package/dist/esm/wafer-map/modules/event-coordinator.js.map +1 -0
- package/dist/esm/wafer-map/modules/rendering.d.ts +7 -5
- package/dist/esm/wafer-map/modules/rendering.js +26 -16
- package/dist/esm/wafer-map/modules/rendering.js.map +1 -1
- package/dist/esm/wafer-map/modules/zoom-handler.d.ts +5 -13
- package/dist/esm/wafer-map/modules/zoom-handler.js +23 -52
- package/dist/esm/wafer-map/modules/zoom-handler.js.map +1 -1
- package/dist/esm/wafer-map/template.js +5 -1
- package/dist/esm/wafer-map/template.js.map +1 -1
- package/dist/esm/wafer-map/types.d.ts +7 -0
- package/dist/esm/wafer-map/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -5004,7 +5004,7 @@ const Jg=fe`
|
|
|
5004
5004
|
<div ${Se("cellContentContainer")} class="cell-content-container"></div>
|
|
5005
5005
|
</template>
|
|
5006
5006
|
`
|
|
5007
|
-
class iv extends St{constructor(){super(...arguments),this.customCellView=void 0}connectedCallback(){super.connectedCallback(),this.customCellView=this.cellTemplate?.render(this.cellState,this.cellContentContainer)}cellStateChanged(){this.customCellView?.bind(this.cellState,x)}cellTemplateChanged(){this.$fastController.isConnected&&(this.customCellView=this.cellTemplate?.render(this.cellState,this.cellContentContainer))}cellStylesChanged(e,t){e&&this.$fastController.removeStyles(e),t&&this.$fastController.addStyles(t)}}e([f],iv.prototype,"cellState",void 0),e([f],iv.prototype,"cellTemplate",void 0),e([f],iv.prototype,"cellStyles",void 0)
|
|
5007
|
+
class iv extends St{constructor(){super(...arguments),this.customCellView=void 0}connectedCallback(){super.connectedCallback(),this.customCellView=this.cellTemplate?.render(this.cellState,this.cellContentContainer)}disconnectedCallback(){super.disconnectedCallback(),this.customCellView&&(this.customCellView.dispose(),this.customCellView=void 0)}cellStateChanged(){this.customCellView?.bind(this.cellState,x)}cellTemplateChanged(){this.$fastController.isConnected&&(this.customCellView=this.cellTemplate?.render(this.cellState,this.cellContentContainer))}cellStylesChanged(e,t){e&&this.$fastController.removeStyles(e),t&&this.$fastController.addStyles(t)}}e([f],iv.prototype,"cellState",void 0),e([f],iv.prototype,"cellTemplate",void 0),e([f],iv.prototype,"cellStyles",void 0)
|
|
5008
5008
|
const nv=iv.compose({baseName:"table-cell",template:tv,styles:ev})
|
|
5009
5009
|
sn.getOrCreate().withPrefix("nimble").register(nv())
|
|
5010
5010
|
const ov=G`
|
|
@@ -6172,10 +6172,269 @@ const lf=af.compose({baseName:"tree-view",baseClass:mo,template:(e,t)=>G`
|
|
|
6172
6172
|
</template>
|
|
6173
6173
|
`,styles:rf})
|
|
6174
6174
|
sn.getOrCreate().withPrefix("nimble").register(lf())
|
|
6175
|
-
|
|
6175
|
+
var cf={value:()=>{}}
|
|
6176
|
+
function df(){for(var e,t=0,i=arguments.length,n={};t<i;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw new Error("illegal type: "+e)
|
|
6177
|
+
n[e]=[]}return new hf(n)}function hf(e){this._=e}function uf(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",n=e.indexOf(".")
|
|
6178
|
+
if(n>=0&&(i=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
6179
|
+
return{type:e,name:i}}))}function pf(e,t){for(var i,n=0,o=e.length;n<o;++n)if((i=e[n]).name===t)return i.value}function gf(e,t,i){for(var n=0,o=e.length;n<o;++n)if(e[n].name===t){e[n]=cf,e=e.slice(0,n).concat(e.slice(n+1))
|
|
6180
|
+
break}return null!=i&&e.push({name:t,value:i}),e}hf.prototype=df.prototype={constructor:hf,on:function(e,t){var i,n=this._,o=uf(e+"",n),s=-1,r=o.length
|
|
6181
|
+
if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
|
|
6182
|
+
for(;++s<r;)if(i=(e=o[s]).type)n[i]=gf(n[i],e.name,t)
|
|
6183
|
+
else if(null==t)for(i in n)n[i]=gf(n[i],e.name,null)
|
|
6184
|
+
return this}for(;++s<r;)if((i=(e=o[s]).type)&&(i=pf(n[i],e.name)))return i},copy:function(){var e={},t=this._
|
|
6185
|
+
for(var i in t)e[i]=t[i].slice()
|
|
6186
|
+
return new hf(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,n,o=new Array(i),s=0;s<i;++s)o[s]=arguments[s+2]
|
|
6187
|
+
if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
6188
|
+
for(s=0,i=(n=this._[e]).length;s<i;++s)n[s].value.apply(t,o)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
6189
|
+
for(var n=this._[e],o=0,s=n.length;o<s;++o)n[o].value.apply(t,i)}}
|
|
6190
|
+
var vf="http://www.w3.org/1999/xhtml",ff={svg:"http://www.w3.org/2000/svg",xhtml:vf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
6191
|
+
function mf(e){var t=e+="",i=t.indexOf(":")
|
|
6192
|
+
return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),ff.hasOwnProperty(t)?{space:ff[t],local:e}:e}function bf(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
|
|
6193
|
+
return i===vf&&t.documentElement.namespaceURI===vf?t.createElement(e):t.createElementNS(i,e)}}function wf(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function xf(e){var t=mf(e)
|
|
6194
|
+
return(t.local?wf:bf)(t)}function yf(){}function $f(e){return null==e?yf:function(){return this.querySelector(e)}}function Cf(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function kf(){return[]}function _f(e){return null==e?kf:function(){return this.querySelectorAll(e)}}function Sf(e){return function(){return this.matches(e)}}function Rf(e){return function(t){return t.matches(e)}}var Mf=Array.prototype.find
|
|
6195
|
+
function If(){return this.firstElementChild}var Af=Array.prototype.filter
|
|
6196
|
+
function Of(){return Array.from(this.children)}function Ef(e){return new Array(e.length)}function Vf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Hf(e){return function(){return e}}function Lf(e,t,i,n,o,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],n[a]=r):i[a]=new Vf(e,s[a])
|
|
6197
|
+
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function Tf(e,t,i,n,o,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
|
|
6198
|
+
for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
6199
|
+
for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(n[a]=l,l.__data__=s[a],d.delete(c)):i[a]=new Vf(e,s[a])
|
|
6200
|
+
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function Pf(e){return e.__data__}function zf(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Df(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ff(e){return function(){this.removeAttribute(e)}}function Bf(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nf(e,t){return function(){this.setAttribute(e,t)}}function Zf(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qf(e,t){return function(){var i=t.apply(this,arguments)
|
|
6201
|
+
null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function jf(e,t){return function(){var i=t.apply(this,arguments)
|
|
6202
|
+
null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Uf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gf(e){return function(){this.style.removeProperty(e)}}function Xf(e,t,i){return function(){this.style.setProperty(e,t,i)}}function Wf(e,t,i){return function(){var n=t.apply(this,arguments)
|
|
6203
|
+
null==n?this.style.removeProperty(e):this.style.setProperty(e,n,i)}}function Kf(e,t){return e.style.getPropertyValue(t)||Uf(e).getComputedStyle(e,null).getPropertyValue(t)}function Yf(e){return function(){delete this[e]}}function Qf(e,t){return function(){this[e]=t}}function Jf(e,t){return function(){var i=t.apply(this,arguments)
|
|
6204
|
+
null==i?delete this[e]:this[e]=i}}function em(e){return e.trim().split(/^|\s+/)}function tm(e){return e.classList||new im(e)}function im(e){this._node=e,this._names=em(e.getAttribute("class")||"")}function nm(e,t){for(var i=tm(e),n=-1,o=t.length;++n<o;)i.add(t[n])}function om(e,t){for(var i=tm(e),n=-1,o=t.length;++n<o;)i.remove(t[n])}function sm(e){return function(){nm(this,e)}}function rm(e){return function(){om(this,e)}}function am(e,t){return function(){(t.apply(this,arguments)?nm:om)(this,e)}}function lm(){this.textContent=""}function cm(e){return function(){this.textContent=e}}function dm(e){return function(){var t=e.apply(this,arguments)
|
|
6205
|
+
this.textContent=null==t?"":t}}function hm(){this.innerHTML=""}function um(e){return function(){this.innerHTML=e}}function pm(e){return function(){var t=e.apply(this,arguments)
|
|
6206
|
+
this.innerHTML=null==t?"":t}}function gm(){this.nextSibling&&this.parentNode.appendChild(this)}function vm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fm(){return null}function mm(){var e=this.parentNode
|
|
6207
|
+
e&&e.removeChild(this)}function bm(){var e=this.cloneNode(!1),t=this.parentNode
|
|
6208
|
+
return t?t.insertBefore(e,this.nextSibling):e}function wm(){var e=this.cloneNode(!0),t=this.parentNode
|
|
6209
|
+
return t?t.insertBefore(e,this.nextSibling):e}function xm(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
|
|
6210
|
+
return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function ym(e){return function(){var t=this.__on
|
|
6211
|
+
if(t){for(var i,n=0,o=-1,s=t.length;n<s;++n)i=t[n],e.type&&i.type!==e.type||i.name!==e.name?t[++o]=i:this.removeEventListener(i.type,i.listener,i.options);++o?t.length=o:delete this.__on}}}function $m(e,t,i){return function(){var n,o=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|
6212
|
+
if(o)for(var r=0,a=o.length;r<a;++r)if((n=o[r]).type===e.type&&n.name===e.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),void(n.value=t)
|
|
6213
|
+
this.addEventListener(e.type,s,i),n={type:e.type,name:e.name,value:t,listener:s,options:i},o?o.push(n):this.__on=[n]}}function Cm(e,t,i){var n=Uf(e),o=n.CustomEvent
|
|
6214
|
+
"function"==typeof o?o=new o(t,i):(o=n.document.createEvent("Event"),i?(o.initEvent(t,i.bubbles,i.cancelable),o.detail=i.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function km(e,t){return function(){return Cm(this,e,t)}}function _m(e,t){return function(){return Cm(this,e,t.apply(this,arguments))}}Vf.prototype={constructor:Vf,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)}},im.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)
|
|
6215
|
+
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|
6216
|
+
var Sm=[null]
|
|
6217
|
+
function Rm(e,t){this._groups=e,this._parents=t}function Mm(){return new Rm([[document.documentElement]],Sm)}function Im(e){return"string"==typeof e?new Rm([[document.querySelector(e)]],[document.documentElement]):new Rm([[e]],Sm)}function Am(e,t){if(e=function(e){let t
|
|
6218
|
+
for(;t=e.sourceEvent;)e=t
|
|
6219
|
+
return e}(e),void 0===t&&(t=e.currentTarget),t){var i=t.ownerSVGElement||t
|
|
6220
|
+
if(i.createSVGPoint){var n=i.createSVGPoint()
|
|
6221
|
+
return n.x=e.clientX,n.y=e.clientY,[(n=n.matrixTransform(t.getScreenCTM().inverse())).x,n.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
|
|
6222
|
+
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Rm.prototype=Mm.prototype={constructor:Rm,select:function(e){"function"!=typeof e&&(e=$f(e))
|
|
6223
|
+
for(var t=this._groups,i=t.length,n=new Array(i),o=0;o<i;++o)for(var s,r,a=t[o],l=a.length,c=n[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
|
|
6224
|
+
return new Rm(n,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Cf(e.apply(this,arguments))}}(e):_f(e)
|
|
6225
|
+
for(var t=this._groups,i=t.length,n=[],o=[],s=0;s<i;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(n.push(e.call(r,r.__data__,c,a)),o.push(r))
|
|
6226
|
+
return new Rm(n,o)},selectChild:function(e){return this.select(null==e?If:function(e){return function(){return Mf.call(this.children,e)}}("function"==typeof e?e:Rf(e)))},selectChildren:function(e){return this.selectAll(null==e?Of:function(e){return function(){return Af.call(this.children,e)}}("function"==typeof e?e:Rf(e)))},filter:function(e){"function"!=typeof e&&(e=Sf(e))
|
|
6227
|
+
for(var t=this._groups,i=t.length,n=new Array(i),o=0;o<i;++o)for(var s,r=t[o],a=r.length,l=n[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
6228
|
+
return new Rm(n,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Pf)
|
|
6229
|
+
var i=t?Tf:Lf,n=this._parents,o=this._groups
|
|
6230
|
+
"function"!=typeof e&&(e=Hf(e))
|
|
6231
|
+
for(var s=o.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=n[c],h=o[c],u=h.length,p=zf(e.call(d,d&&d.__data__,c,n)),g=p.length,v=a[c]=new Array(g),f=r[c]=new Array(g),m=l[c]=new Array(u)
|
|
6232
|
+
i(d,h,v,f,m,p,t)
|
|
6233
|
+
for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=f[y])&&++y<g;);b._next=w||null}}return(r=new Rm(r,n))._enter=a,r._exit=l,r},enter:function(){return new Rm(this._enter||this._groups.map(Ef),this._parents)},exit:function(){return new Rm(this._exit||this._groups.map(Ef),this._parents)},join:function(e,t,i){var n=this.enter(),o=this,s=this.exit()
|
|
6234
|
+
return"function"==typeof e?(n=e(n))&&(n=n.selection()):n=n.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==i?s.remove():i(s),n&&o?n.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,i=this._groups,n=t._groups,o=i.length,s=n.length,r=Math.min(o,s),a=new Array(o),l=0;l<r;++l)for(var c,d=i[l],h=n[l],u=d.length,p=a[l]=new Array(u),g=0;g<u;++g)(c=d[g]||h[g])&&(p[g]=c)
|
|
6235
|
+
for(;l<o;++l)a[l]=i[l]
|
|
6236
|
+
return new Rm(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var n,o=e[t],s=o.length-1,r=o[s];--s>=0;)(n=o[s])&&(r&&4^n.compareDocumentPosition(r)&&r.parentNode.insertBefore(n,r),r=n)
|
|
6237
|
+
return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=Df)
|
|
6238
|
+
for(var i=this._groups,n=i.length,o=new Array(n),s=0;s<n;++s){for(var r,a=i[s],l=a.length,c=o[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
|
|
6239
|
+
c.sort(t)}return new Rm(o,this._parents).order()},call:function(){var e=arguments[0]
|
|
6240
|
+
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var n=e[t],o=0,s=n.length;o<s;++o){var r=n[o]
|
|
6241
|
+
if(r)return r}return null},size:function(){let e=0
|
|
6242
|
+
for(const t of this)++e
|
|
6243
|
+
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,i=0,n=t.length;i<n;++i)for(var o,s=t[i],r=0,a=s.length;r<a;++r)(o=s[r])&&e.call(o,o.__data__,r,s)
|
|
6244
|
+
return this},attr:function(e,t){var i=mf(e)
|
|
6245
|
+
if(arguments.length<2){var n=this.node()
|
|
6246
|
+
return i.local?n.getAttributeNS(i.space,i.local):n.getAttribute(i)}return this.each((null==t?i.local?Bf:Ff:"function"==typeof t?i.local?jf:qf:i.local?Zf:Nf)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?Gf:"function"==typeof t?Wf:Xf)(e,t,null==i?"":i)):Kf(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Yf:"function"==typeof t?Jf:Qf)(e,t)):this.node()[e]},classed:function(e,t){var i=em(e+"")
|
|
6247
|
+
if(arguments.length<2){for(var n=tm(this.node()),o=-1,s=i.length;++o<s;)if(!n.contains(i[o]))return!1
|
|
6248
|
+
return!0}return this.each(("function"==typeof t?am:t?sm:rm)(i,t))},text:function(e){return arguments.length?this.each(null==e?lm:("function"==typeof e?dm:cm)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?hm:("function"==typeof e?pm:um)(e)):this.node().innerHTML},raise:function(){return this.each(gm)},lower:function(){return this.each(vm)},append:function(e){var t="function"==typeof e?e:xf(e)
|
|
6249
|
+
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:xf(e),n=null==t?fm:"function"==typeof t?t:$f(t)
|
|
6250
|
+
return this.select((function(){return this.insertBefore(i.apply(this,arguments),n.apply(this,arguments)||null)}))},remove:function(){return this.each(mm)},clone:function(e){return this.select(e?wm:bm)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var n,o,s=xm(e+""),r=s.length
|
|
6251
|
+
if(!(arguments.length<2)){for(a=t?$m:ym,n=0;n<r;++n)this.each(a(s[n],t,i))
|
|
6252
|
+
return this}var a=this.node().__on
|
|
6253
|
+
if(a)for(var l,c=0,d=a.length;c<d;++c)for(n=0,l=a[c];n<r;++n)if((o=s[n]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?_m:km)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var n,o=e[t],s=0,r=o.length;s<r;++s)(n=o[s])&&(yield n)}}
|
|
6254
|
+
const Om={capture:!0,passive:!1}
|
|
6255
|
+
function Em(e){e.preventDefault(),e.stopImmediatePropagation()}function Vm(e){var t=e.document.documentElement,i=Im(e).on("dragstart.drag",Em,Om)
|
|
6256
|
+
"onselectstart"in t?i.on("selectstart.drag",Em,Om):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Hm(e,t){var i=e.document.documentElement,n=Im(e).on("dragstart.drag",null)
|
|
6257
|
+
t&&(n.on("click.drag",Em,Om),setTimeout((function(){n.on("click.drag",null)}),0)),"onselectstart"in i?n.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function Lm(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function Tm(e,t){var i=Object.create(e.prototype)
|
|
6258
|
+
for(var n in t)i[n]=t[n]
|
|
6259
|
+
return i}function Pm(){}var zm=.7,Dm=1/zm,Fm="\\s*([+-]?\\d+)\\s*",Bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zm=/^#([0-9a-f]{3,8})$/,qm=new RegExp(`^rgb\\(${Fm},${Fm},${Fm}\\)$`),jm=new RegExp(`^rgb\\(${Nm},${Nm},${Nm}\\)$`),Um=new RegExp(`^rgba\\(${Fm},${Fm},${Fm},${Bm}\\)$`),Gm=new RegExp(`^rgba\\(${Nm},${Nm},${Nm},${Bm}\\)$`),Xm=new RegExp(`^hsl\\(${Bm},${Nm},${Nm}\\)$`),Wm=new RegExp(`^hsla\\(${Bm},${Nm},${Nm},${Bm}\\)$`),Km={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}
|
|
6260
|
+
function Ym(){return this.rgb().formatHex()}function Qm(){return this.rgb().formatRgb()}function Jm(e){var t,i
|
|
6261
|
+
return e=(e+"").trim().toLowerCase(),(t=Zm.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?eb(t):3===i?new ob(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?tb(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?tb(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=qm.exec(e))?new ob(t[1],t[2],t[3],1):(t=jm.exec(e))?new ob(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Um.exec(e))?tb(t[1],t[2],t[3],t[4]):(t=Gm.exec(e))?tb(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xm.exec(e))?db(t[1],t[2]/100,t[3]/100,1):(t=Wm.exec(e))?db(t[1],t[2]/100,t[3]/100,t[4]):Km.hasOwnProperty(e)?eb(Km[e]):"transparent"===e?new ob(NaN,NaN,NaN,0):null}function eb(e){return new ob(e>>16&255,e>>8&255,255&e,1)}function tb(e,t,i,n){return n<=0&&(e=t=i=NaN),new ob(e,t,i,n)}function ib(e){return e instanceof Pm||(e=Jm(e)),e?new ob((e=e.rgb()).r,e.g,e.b,e.opacity):new ob}function nb(e,t,i,n){return 1===arguments.length?ib(e):new ob(e,t,i,null==n?1:n)}function ob(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function sb(){return`#${cb(this.r)}${cb(this.g)}${cb(this.b)}`}function rb(){const e=ab(this.opacity)
|
|
6262
|
+
return`${1===e?"rgb(":"rgba("}${lb(this.r)}, ${lb(this.g)}, ${lb(this.b)}${1===e?")":`, ${e})`}`}function ab(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lb(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cb(e){return((e=lb(e))<16?"0":"")+e.toString(16)}function db(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new ub(e,t,i,n)}function hb(e){if(e instanceof ub)return new ub(e.h,e.s,e.l,e.opacity)
|
|
6263
|
+
if(e instanceof Pm||(e=Jm(e)),!e)return new ub
|
|
6264
|
+
if(e instanceof ub)return e
|
|
6265
|
+
var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,o=Math.min(t,i,n),s=Math.max(t,i,n),r=NaN,a=s-o,l=(s+o)/2
|
|
6266
|
+
return a?(r=t===s?(i-n)/a+6*(i<n):i===s?(n-t)/a+2:(t-i)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new ub(r,a,l,e.opacity)}function ub(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function pb(e){return(e=(e||0)%360)<0?e+360:e}function gb(e){return Math.max(0,Math.min(1,e||0))}function vb(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}Lm(Pm,Jm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ym,formatHex:Ym,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hb(this).formatHsl()},formatRgb:Qm,toString:Qm}),Lm(ob,nb,Tm(Pm,{brighter(e){return e=null==e?Dm:Math.pow(Dm,e),new ob(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zm:Math.pow(zm,e),new ob(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ob(lb(this.r),lb(this.g),lb(this.b),ab(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:sb,formatHex:sb,formatHex8:function(){return`#${cb(this.r)}${cb(this.g)}${cb(this.b)}${cb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rb,toString:rb})),Lm(ub,(function(e,t,i,n){return 1===arguments.length?hb(e):new ub(e,t,i,null==n?1:n)}),Tm(Pm,{brighter(e){return e=null==e?Dm:Math.pow(Dm,e),new ub(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zm:Math.pow(zm,e),new ub(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,o=2*i-n
|
|
6267
|
+
return new ob(vb(e>=240?e-240:e+120,o,n),vb(e,o,n),vb(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ub(pb(this.h),gb(this.s),gb(this.l),ab(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=ab(this.opacity)
|
|
6268
|
+
return`${1===e?"hsl(":"hsla("}${pb(this.h)}, ${100*gb(this.s)}%, ${100*gb(this.l)}%${1===e?")":`, ${e})`}`}}))
|
|
6269
|
+
var fb=e=>()=>e
|
|
6270
|
+
function mb(e){return 1==(e=+e)?bb:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(n){return Math.pow(e+n*t,i)}}(t,i,e):fb(isNaN(t)?i:t)}}function bb(e,t){var i=t-e
|
|
6271
|
+
return i?function(e,t){return function(i){return e+i*t}}(e,i):fb(isNaN(e)?t:e)}var wb=function e(t){var i=mb(t)
|
|
6272
|
+
function n(e,t){var n=i((e=nb(e)).r,(t=nb(t)).r),o=i(e.g,t.g),s=i(e.b,t.b),r=bb(e.opacity,t.opacity)
|
|
6273
|
+
return function(t){return e.r=n(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return n.gamma=e,n}(1)
|
|
6274
|
+
function xb(e,t){t||(t=[])
|
|
6275
|
+
var i,n=e?Math.min(t.length,e.length):0,o=t.slice()
|
|
6276
|
+
return function(s){for(i=0;i<n;++i)o[i]=e[i]*(1-s)+t[i]*s
|
|
6277
|
+
return o}}function yb(e,t){var i,n=t?t.length:0,o=e?Math.min(n,e.length):0,s=new Array(o),r=new Array(n)
|
|
6278
|
+
for(i=0;i<o;++i)s[i]=Mb(e[i],t[i])
|
|
6279
|
+
for(;i<n;++i)r[i]=t[i]
|
|
6280
|
+
return function(e){for(i=0;i<o;++i)r[i]=s[i](e)
|
|
6281
|
+
return r}}function $b(e,t){var i=new Date
|
|
6282
|
+
return e=+e,t=+t,function(n){return i.setTime(e*(1-n)+t*n),i}}function Cb(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function kb(e,t){var i,n={},o={}
|
|
6283
|
+
for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?n[i]=Mb(e[i],t[i]):o[i]=t[i]
|
|
6284
|
+
return function(e){for(i in n)o[i]=n[i](e)
|
|
6285
|
+
return o}}var _b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sb=new RegExp(_b.source,"g")
|
|
6286
|
+
function Rb(e,t){var i,n,o,s=_b.lastIndex=Sb.lastIndex=0,r=-1,a=[],l=[]
|
|
6287
|
+
for(e+="",t+="";(i=_b.exec(e))&&(n=Sb.exec(t));)(o=n.index)>s&&(o=t.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(i=i[0])===(n=n[0])?a[r]?a[r]+=n:a[++r]=n:(a[++r]=null,l.push({i:r,x:Cb(i,n)})),s=Sb.lastIndex
|
|
6288
|
+
return s<t.length&&(o=t.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var i,n=0;n<t;++n)a[(i=l[n]).i]=i.x(e)
|
|
6289
|
+
return a.join("")})}function Mb(e,t){var i,n,o=typeof t
|
|
6290
|
+
return null==t||"boolean"===o?fb(t):("number"===o?Cb:"string"===o?(i=Jm(t))?(t=i,wb):Rb:t instanceof Jm?wb:t instanceof Date?$b:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?yb:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?kb:Cb:xb))(e,t)}function Ib(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var Ab,Ob=180/Math.PI,Eb={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
6291
|
+
function Vb(e,t,i,n,o,s){var r,a,l
|
|
6292
|
+
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*n)&&(i-=e*l,n-=t*l),(a=Math.sqrt(i*i+n*n))&&(i/=a,n/=a,l/=a),e*n<t*i&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Ob,skewX:Math.atan(l)*Ob,scaleX:r,scaleY:a}}function Hb(e,t,i,n){function o(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
6293
|
+
return s=e(s),r=e(r),function(e,n,o,s,r,a){if(e!==o||n!==s){var l=r.push("translate(",null,t,null,i)
|
|
6294
|
+
a.push({i:l-4,x:Cb(e,o)},{i:l-2,x:Cb(n,s)})}else(o||s)&&r.push("translate("+o+t+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,i,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:i.push(o(i)+"rotate(",null,n)-2,x:Cb(e,t)})):t&&i.push(o(i)+"rotate("+t+n)}(s.rotate,r.rotate,a,l),function(e,t,i,s){e!==t?s.push({i:i.push(o(i)+"skewX(",null,n)-2,x:Cb(e,t)}):t&&i.push(o(i)+"skewX("+t+n)}(s.skewX,r.skewX,a,l),function(e,t,i,n,s,r){if(e!==i||t!==n){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
6295
|
+
r.push({i:a-4,x:Cb(e,i)},{i:a-2,x:Cb(t,n)})}else 1===i&&1===n||s.push(o(s)+"scale("+i+","+n+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,i=-1,n=l.length;++i<n;)a[(t=l[i]).i]=t.x(e)
|
|
6296
|
+
return a.join("")}}}var Lb=Hb((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
|
|
6297
|
+
return t.isIdentity?Eb:Vb(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Tb=Hb((function(e){return null==e?Eb:(Ab||(Ab=document.createElementNS("http://www.w3.org/2000/svg","g")),Ab.setAttribute("transform",e),(e=Ab.transform.baseVal.consolidate())?Vb((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Eb)}),", ",")",")")
|
|
6298
|
+
function Pb(e){return((e=Math.exp(e))+1/e)/2}var zb,Db,Fb=function e(t,i,n){function o(e,o){var s,r,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,g=h-l,v=p*p+g*g
|
|
6299
|
+
if(v<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*g,c*Math.exp(t*e*r)]}
|
|
6300
|
+
else{var f=Math.sqrt(v),m=(u*u-c*c+n*v)/(2*c*i*f),b=(u*u-c*c-n*v)/(2*u*i*f),w=Math.log(Math.sqrt(m*m+1)-m),x=Math.log(Math.sqrt(b*b+1)-b)
|
|
6301
|
+
r=(x-w)/t,s=function(e){var n,o=e*r,s=Pb(w),d=c/(i*f)*(s*(n=t*o+w,((n=Math.exp(2*n))-1)/(n+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
|
|
6302
|
+
return[a+d*p,l+d*g,c*s/Pb(t*o+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return o.rho=function(t){var i=Math.max(.001,+t),n=i*i
|
|
6303
|
+
return e(i,n,n*n)},o}(Math.SQRT2,2,4),Bb=0,Nb=0,Zb=0,qb=0,jb=0,Ub=0,Gb="object"==typeof performance&&performance.now?performance:Date,Xb="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
|
|
6304
|
+
function Wb(){return jb||(Xb(Kb),jb=Gb.now()+Ub)}function Kb(){jb=0}function Yb(){this._call=this._time=this._next=null}function Qb(e,t,i){var n=new Yb
|
|
6305
|
+
return n.restart(e,t,i),n}function Jb(){jb=(qb=Gb.now())+Ub,Bb=Nb=0
|
|
6306
|
+
try{!function(){Wb(),++Bb
|
|
6307
|
+
for(var e,t=zb;t;)(e=jb-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Bb}()}finally{Bb=0,function(){var e,t,i=zb,n=1/0
|
|
6308
|
+
for(;i;)i._call?(n>i._time&&(n=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:zb=t)
|
|
6309
|
+
Db=e,tw(n)}(),jb=0}}function ew(){var e=Gb.now(),t=e-qb
|
|
6310
|
+
t>1e3&&(Ub-=t,qb=e)}function tw(e){Bb||(Nb&&(Nb=clearTimeout(Nb)),e-jb>24?(e<1/0&&(Nb=setTimeout(Jb,e-Gb.now()-Ub)),Zb&&(Zb=clearInterval(Zb))):(Zb||(qb=Gb.now(),Zb=setInterval(ew,1e3)),Bb=1,Xb(Jb)))}function iw(e,t,i){var n=new Yb
|
|
6311
|
+
return t=null==t?0:+t,n.restart((i=>{n.stop(),e(i+t)}),t,i),n}Yb.prototype=Qb.prototype={constructor:Yb,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
|
|
6312
|
+
i=(null==i?Wb():+i)+(null==t?0:+t),this._next||Db===this||(Db?Db._next=this:zb=this,Db=this),this._call=e,this._time=i,tw()},stop:function(){this._call&&(this._call=null,this._time=1/0,tw())}}
|
|
6313
|
+
var nw=df("start","end","cancel","interrupt"),ow=[]
|
|
6314
|
+
function sw(e,t,i,n,o,s){var r=e.__transition
|
|
6315
|
+
if(r){if(i in r)return}else e.__transition={}
|
|
6316
|
+
!function(e,t,i){var n,o=e.__transition
|
|
6317
|
+
function s(e){i.state=1,i.timer.restart(r,i.delay,i.time),i.delay<=e&&r(e-i.delay)}function r(s){var c,d,h,u
|
|
6318
|
+
if(1!==i.state)return l()
|
|
6319
|
+
for(c in o)if((u=o[c]).name===i.name){if(3===u.state)return iw(r)
|
|
6320
|
+
4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(iw((function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(s))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=3,n=new Array(h=i.tween.length),c=0,d=-1;c<h;++c)(u=i.tween[c].value.call(e,e.__data__,i.index,i.group))&&(n[++d]=u)
|
|
6321
|
+
n.length=d+1}}function a(t){for(var o=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(l),i.state=5,1),s=-1,r=n.length;++s<r;)n[s].call(e,o)
|
|
6322
|
+
5===i.state&&(i.on.call("end",e,e.__data__,i.index,i.group),l())}function l(){for(var n in i.state=6,i.timer.stop(),delete o[t],o)return
|
|
6323
|
+
delete e.__transition}o[t]=i,i.timer=Qb(s,0,i.time)}(e,i,{name:t,index:n,group:o,on:nw,tween:ow,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function rw(e,t){var i=lw(e,t)
|
|
6324
|
+
if(i.state>0)throw new Error("too late; already scheduled")
|
|
6325
|
+
return i}function aw(e,t){var i=lw(e,t)
|
|
6326
|
+
if(i.state>3)throw new Error("too late; already running")
|
|
6327
|
+
return i}function lw(e,t){var i=e.__transition
|
|
6328
|
+
if(!i||!(i=i[t]))throw new Error("transition not found")
|
|
6329
|
+
return i}function cw(e,t){var i,n,o,s=e.__transition,r=!0
|
|
6330
|
+
if(s){for(o in t=null==t?null:t+"",s)(i=s[o]).name===t?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete s[o]):r=!1
|
|
6331
|
+
r&&delete e.__transition}}function dw(e,t){var i,n
|
|
6332
|
+
return function(){var o=aw(this,e),s=o.tween
|
|
6333
|
+
if(s!==i)for(var r=0,a=(n=i=s).length;r<a;++r)if(n[r].name===t){(n=n.slice()).splice(r,1)
|
|
6334
|
+
break}o.tween=n}}function hw(e,t,i){var n,o
|
|
6335
|
+
if("function"!=typeof i)throw new Error
|
|
6336
|
+
return function(){var s=aw(this,e),r=s.tween
|
|
6337
|
+
if(r!==n){o=(n=r).slice()
|
|
6338
|
+
for(var a={name:t,value:i},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
|
|
6339
|
+
break}l===c&&o.push(a)}s.tween=o}}function uw(e,t,i){var n=e._id
|
|
6340
|
+
return e.each((function(){var e=aw(this,n);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return lw(e,n).value[t]}}function pw(e,t){var i
|
|
6341
|
+
return("number"==typeof t?Cb:t instanceof Jm?wb:(i=Jm(t))?(t=i,wb):Rb)(e,t)}function gw(e){return function(){this.removeAttribute(e)}}function vw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function fw(e,t,i){var n,o,s=i+""
|
|
6342
|
+
return function(){var r=this.getAttribute(e)
|
|
6343
|
+
return r===s?null:r===n?o:o=t(n=r,i)}}function mw(e,t,i){var n,o,s=i+""
|
|
6344
|
+
return function(){var r=this.getAttributeNS(e.space,e.local)
|
|
6345
|
+
return r===s?null:r===n?o:o=t(n=r,i)}}function bw(e,t,i){var n,o,s
|
|
6346
|
+
return function(){var r,a,l=i(this)
|
|
6347
|
+
if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===n&&a===o?s:(o=a,s=t(n=r,l))
|
|
6348
|
+
this.removeAttribute(e)}}function ww(e,t,i){var n,o,s
|
|
6349
|
+
return function(){var r,a,l=i(this)
|
|
6350
|
+
if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===n&&a===o?s:(o=a,s=t(n=r,l))
|
|
6351
|
+
this.removeAttributeNS(e.space,e.local)}}function xw(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function yw(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function $w(e,t){var i,n
|
|
6352
|
+
function o(){var o=t.apply(this,arguments)
|
|
6353
|
+
return o!==n&&(i=(n=o)&&yw(e,o)),i}return o._value=t,o}function Cw(e,t){var i,n
|
|
6354
|
+
function o(){var o=t.apply(this,arguments)
|
|
6355
|
+
return o!==n&&(i=(n=o)&&xw(e,o)),i}return o._value=t,o}function kw(e,t){return function(){rw(this,e).delay=+t.apply(this,arguments)}}function _w(e,t){return t=+t,function(){rw(this,e).delay=t}}function Sw(e,t){return function(){aw(this,e).duration=+t.apply(this,arguments)}}function Rw(e,t){return t=+t,function(){aw(this,e).duration=t}}function Mw(e,t){if("function"!=typeof t)throw new Error
|
|
6356
|
+
return function(){aw(this,e).ease=t}}function Iw(e,t,i){var n,o,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
|
|
6357
|
+
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?rw:aw
|
|
6358
|
+
return function(){var r=s(this,e),a=r.on
|
|
6359
|
+
a!==n&&(o=(n=a).copy()).on(t,i),r.on=o}}var Aw=Mm.prototype.constructor
|
|
6360
|
+
function Ow(e){return function(){this.style.removeProperty(e)}}function Ew(e,t,i){return function(n){this.style.setProperty(e,t.call(this,n),i)}}function Vw(e,t,i){var n,o
|
|
6361
|
+
function s(){var s=t.apply(this,arguments)
|
|
6362
|
+
return s!==o&&(n=(o=s)&&Ew(e,s,i)),n}return s._value=t,s}function Hw(e){return function(t){this.textContent=e.call(this,t)}}function Lw(e){var t,i
|
|
6363
|
+
function n(){var n=e.apply(this,arguments)
|
|
6364
|
+
return n!==i&&(t=(i=n)&&Hw(n)),t}return n._value=e,n}var Tw=0
|
|
6365
|
+
function Pw(e,t,i,n){this._groups=e,this._parents=t,this._name=i,this._id=n}function zw(){return++Tw}var Dw=Mm.prototype
|
|
6366
|
+
Pw.prototype={constructor:Pw,select:function(e){var t=this._name,i=this._id
|
|
6367
|
+
"function"!=typeof e&&(e=$f(e))
|
|
6368
|
+
for(var n=this._groups,o=n.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=n[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,sw(h[u],t,i,u,h,lw(a,i)))
|
|
6369
|
+
return new Pw(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
|
|
6370
|
+
"function"!=typeof e&&(e=_f(e))
|
|
6371
|
+
for(var n=this._groups,o=n.length,s=[],r=[],a=0;a<o;++a)for(var l,c=n[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=lw(l,i),v=0,f=p.length;v<f;++v)(u=p[v])&&sw(u,t,i,v,p,g)
|
|
6372
|
+
s.push(p),r.push(l)}return new Pw(s,r,t,i)},selectChild:Dw.selectChild,selectChildren:Dw.selectChildren,filter:function(e){"function"!=typeof e&&(e=Sf(e))
|
|
6373
|
+
for(var t=this._groups,i=t.length,n=new Array(i),o=0;o<i;++o)for(var s,r=t[o],a=r.length,l=n[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
6374
|
+
return new Pw(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
|
|
6375
|
+
for(var t=this._groups,i=e._groups,n=t.length,o=i.length,s=Math.min(n,o),r=new Array(n),a=0;a<s;++a)for(var l,c=t[a],d=i[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
6376
|
+
for(;a<n;++a)r[a]=t[a]
|
|
6377
|
+
return new Pw(r,this._parents,this._name,this._id)},selection:function(){return new Aw(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=zw(),n=this._groups,o=n.length,s=0;s<o;++s)for(var r,a=n[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=lw(r,t)
|
|
6378
|
+
sw(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Pw(n,this._parents,e,i)},call:Dw.call,nodes:Dw.nodes,node:Dw.node,size:Dw.size,empty:Dw.empty,each:Dw.each,on:function(e,t){var i=this._id
|
|
6379
|
+
return arguments.length<2?lw(this.node(),i).on.on(e):this.each(Iw(i,e,t))},attr:function(e,t){var i=mf(e),n="transform"===i?Tb:pw
|
|
6380
|
+
return this.attrTween(e,"function"==typeof t?(i.local?ww:bw)(i,n,uw(this,"attr."+e,t)):null==t?(i.local?vw:gw)(i):(i.local?mw:fw)(i,n,t))},attrTween:function(e,t){var i="attr."+e
|
|
6381
|
+
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
6382
|
+
if(null==t)return this.tween(i,null)
|
|
6383
|
+
if("function"!=typeof t)throw new Error
|
|
6384
|
+
var n=mf(e)
|
|
6385
|
+
return this.tween(i,(n.local?$w:Cw)(n,t))},style:function(e,t,i){var n="transform"==(e+="")?Lb:pw
|
|
6386
|
+
return null==t?this.styleTween(e,function(e,t){var i,n,o
|
|
6387
|
+
return function(){var s=Kf(this,e),r=(this.style.removeProperty(e),Kf(this,e))
|
|
6388
|
+
return s===r?null:s===i&&r===n?o:o=t(i=s,n=r)}}(e,n)).on("end.style."+e,Ow(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var n,o,s
|
|
6389
|
+
return function(){var r=Kf(this,e),a=i(this),l=a+""
|
|
6390
|
+
return null==a&&(this.style.removeProperty(e),l=a=Kf(this,e)),r===l?null:r===n&&l===o?s:(o=l,s=t(n=r,a))}}(e,n,uw(this,"style."+e,t))).each(function(e,t){var i,n,o,s,r="style."+t,a="end."+r
|
|
6391
|
+
return function(){var l=aw(this,e),c=l.on,d=null==l.value[r]?s||(s=Ow(t)):void 0
|
|
6392
|
+
c===i&&o===d||(n=(i=c).copy()).on(a,o=d),l.on=n}}(this._id,e)):this.styleTween(e,function(e,t,i){var n,o,s=i+""
|
|
6393
|
+
return function(){var r=Kf(this,e)
|
|
6394
|
+
return r===s?null:r===n?o:o=t(n=r,i)}}(e,n,t),i).on("end.style."+e,null)},styleTween:function(e,t,i){var n="style."+(e+="")
|
|
6395
|
+
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
6396
|
+
if(null==t)return this.tween(n,null)
|
|
6397
|
+
if("function"!=typeof t)throw new Error
|
|
6398
|
+
return this.tween(n,Vw(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
|
|
6399
|
+
this.textContent=null==t?"":t}}(uw(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
|
|
6400
|
+
if(arguments.length<1)return(t=this.tween(t))&&t._value
|
|
6401
|
+
if(null==e)return this.tween(t,null)
|
|
6402
|
+
if("function"!=typeof e)throw new Error
|
|
6403
|
+
return this.tween(t,Lw(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
|
|
6404
|
+
for(var i in this.__transition)if(+i!==e)return
|
|
6405
|
+
t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id
|
|
6406
|
+
if(e+="",arguments.length<2){for(var n,o=lw(this.node(),i).tween,s=0,r=o.length;s<r;++s)if((n=o[s]).name===e)return n.value
|
|
6407
|
+
return null}return this.each((null==t?dw:hw)(i,e,t))},delay:function(e){var t=this._id
|
|
6408
|
+
return arguments.length?this.each(("function"==typeof e?kw:_w)(t,e)):lw(this.node(),t).delay},duration:function(e){var t=this._id
|
|
6409
|
+
return arguments.length?this.each(("function"==typeof e?Sw:Rw)(t,e)):lw(this.node(),t).duration},ease:function(e){var t=this._id
|
|
6410
|
+
return arguments.length?this.each(Mw(t,e)):lw(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
|
|
6411
|
+
return this.each(function(e,t){return function(){var i=t.apply(this,arguments)
|
|
6412
|
+
if("function"!=typeof i)throw new Error
|
|
6413
|
+
aw(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,n=i._id,o=i.size()
|
|
6414
|
+
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
6415
|
+
i.each((function(){var i=aw(this,n),o=i.on
|
|
6416
|
+
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),i.on=t})),0===o&&s()}))},[Symbol.iterator]:Dw[Symbol.iterator]}
|
|
6417
|
+
var Fw={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
|
|
6418
|
+
function Bw(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
|
|
6419
|
+
return i}Mm.prototype.interrupt=function(e){return this.each((function(){cw(this,e)}))},Mm.prototype.transition=function(e){var t,i
|
|
6420
|
+
e instanceof Pw?(t=e._id,e=e._name):(t=zw(),(i=Fw).time=Wb(),e=null==e?null:e+"")
|
|
6421
|
+
for(var n=this._groups,o=n.length,s=0;s<o;++s)for(var r,a=n[s],l=a.length,c=0;c<l;++c)(r=a[c])&&sw(r,e,t,c,a,i||Bw(r,t))
|
|
6422
|
+
return new Pw(n,this._parents,e,t)}
|
|
6423
|
+
var Nw=e=>()=>e
|
|
6424
|
+
function Zw(e,{sourceEvent:t,target:i,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function qw(e,t,i){this.k=e,this.x=t,this.y=i}qw.prototype={constructor:qw,scale:function(e){return 1===e?this:new qw(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new qw(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+")"}}
|
|
6425
|
+
var jw=new qw(1,0,0)
|
|
6426
|
+
function Uw(e){for(;!e.__zoom;)if(!(e=e.parentNode))return jw
|
|
6427
|
+
return e.__zoom}function Gw(e){e.stopImmediatePropagation()}function Xw(e){e.preventDefault(),e.stopImmediatePropagation()}function Ww(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Kw(){var e=this
|
|
6428
|
+
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 Yw(){return this.__zoom||jw}function Qw(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Jw(){return navigator.maxTouchPoints||"ontouchstart"in this}function ex(e,t,i){var n=e.invertX(t[0][0])-i[0][0],o=e.invertX(t[1][0])-i[1][0],s=e.invertY(t[0][1])-i[0][1],r=e.invertY(t[1][1])-i[1][1]
|
|
6429
|
+
return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}Uw.prototype=qw.prototype
|
|
6430
|
+
const tx=G`
|
|
6176
6431
|
<div class="wafer-map-container">
|
|
6177
6432
|
<svg class="svg-root">
|
|
6178
|
-
<g
|
|
6433
|
+
<g
|
|
6434
|
+
class="zoom-container"
|
|
6435
|
+
${Se("zoomContainer")}
|
|
6436
|
+
transform=${e=>e.transform.toString()}
|
|
6437
|
+
>
|
|
6179
6438
|
<g class="notch ${e=>e.orientation}">
|
|
6180
6439
|
<svg
|
|
6181
6440
|
class="circle-base"
|
|
@@ -6196,7 +6455,7 @@ const cf=G`
|
|
|
6196
6455
|
<canvas class="wafer-map-canvas" ${Se("canvas")}></canvas>
|
|
6197
6456
|
</div>
|
|
6198
6457
|
</div>
|
|
6199
|
-
`,
|
|
6458
|
+
`,ix=fe`
|
|
6200
6459
|
:host {
|
|
6201
6460
|
display: inline-block;
|
|
6202
6461
|
width: 500px;
|
|
@@ -6271,113 +6530,66 @@ const cf=G`
|
|
|
6271
6530
|
width: 100%;
|
|
6272
6531
|
height: 100%;
|
|
6273
6532
|
}
|
|
6274
|
-
|
|
6275
|
-
function
|
|
6533
|
+
`
|
|
6534
|
+
function nx(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ox(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function sx(e){let t,i,n
|
|
6276
6535
|
function o(e,n,o=0,s=e.length){if(o<s){if(0!==t(n,n))return s
|
|
6277
6536
|
do{const t=o+s>>>1
|
|
6278
|
-
i(e[t],n)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=
|
|
6537
|
+
i(e[t],n)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=nx,i=(t,i)=>nx(e(t),i),n=(t,i)=>e(t)-i):(t=e===nx||e===ox?e:rx,i=e,n=e),{left:o,center:function(e,t,i=0,s=e.length){const r=o(e,t,i,s-1)
|
|
6279
6538
|
return r>i&&n(e[r-1],t)>-n(e[r],t)?r-1:r},right:function(e,n,o=0,s=e.length){if(o<s){if(0!==t(n,n))return s
|
|
6280
6539
|
do{const t=o+s>>>1
|
|
6281
|
-
i(e[t],n)<=0?o=t+1:s=t}while(o<s)}return o}}}function
|
|
6282
|
-
|
|
6283
|
-
var
|
|
6284
|
-
class
|
|
6540
|
+
i(e[t],n)<=0?o=t+1:s=t}while(o<s)}return o}}}function rx(){return 0}const ax=sx(nx).right
|
|
6541
|
+
sx((function(e){return null===e?NaN:+e})).center
|
|
6542
|
+
var lx=ax
|
|
6543
|
+
class cx extends Map{constructor(e,t=hx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(dx(this,e))}has(e){return super.has(dx(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const n=t(i)
|
|
6285
6544
|
return e.has(n)?e.get(n):(e.set(n,i),i)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},i){const n=t(i)
|
|
6286
6545
|
e.has(n)&&(i=e.get(n),e.delete(n))
|
|
6287
|
-
return i}(this,e))}}function
|
|
6288
|
-
return e.has(n)?e.get(n):i}function
|
|
6289
|
-
function
|
|
6546
|
+
return i}(this,e))}}function dx({_intern:e,_key:t},i){const n=t(i)
|
|
6547
|
+
return e.has(n)?e.get(n):i}function hx(e){return null!==e&&"object"==typeof e?e.valueOf():e}const ux=Math.sqrt(50),px=Math.sqrt(10),gx=Math.sqrt(2)
|
|
6548
|
+
function vx(e,t,i){const n=(t-e)/Math.max(0,i),o=Math.floor(Math.log10(n)),s=n/Math.pow(10,o),r=s>=ux?10:s>=px?5:s>=gx?2:1
|
|
6290
6549
|
let a,l,c
|
|
6291
|
-
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=i&&i<2?
|
|
6550
|
+
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=i&&i<2?vx(e,t,2*i):[a,l,c]}function fx(e,t,i){return vx(e=+e,t=+t,i=+i)[2]}function mx(e,t,i){e=+e,t=+t,i=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+i
|
|
6292
6551
|
for(var n=-1,o=0|Math.max(0,Math.ceil((t-e)/i)),s=new Array(o);++n<o;)s[n]=e+n*i
|
|
6293
|
-
return s}function
|
|
6552
|
+
return s}function bx(e,t){switch(arguments.length){case 0:break
|
|
6294
6553
|
case 1:this.range(e)
|
|
6295
6554
|
break
|
|
6296
|
-
default:this.range(t).domain(e)}return this}const
|
|
6297
|
-
function
|
|
6555
|
+
default:this.range(t).domain(e)}return this}const wx=Symbol("implicit")
|
|
6556
|
+
function xx(){var e=new cx,t=[],i=[],n=wx
|
|
6298
6557
|
function o(o){let s=e.get(o)
|
|
6299
|
-
if(void 0===s){if(n!==
|
|
6558
|
+
if(void 0===s){if(n!==wx)return n
|
|
6300
6559
|
e.set(o,s=t.push(o)-1)}return i[s%i.length]}return o.domain=function(i){if(!arguments.length)return t.slice()
|
|
6301
|
-
t=[],e=new
|
|
6560
|
+
t=[],e=new cx
|
|
6302
6561
|
for(const n of i)e.has(n)||e.set(n,t.push(n)-1)
|
|
6303
|
-
return o},o.range=function(e){return arguments.length?(i=Array.from(e),o):i.slice()},o.unknown=function(e){return arguments.length?(n=e,o):n},o.copy=function(){return
|
|
6562
|
+
return o},o.range=function(e){return arguments.length?(i=Array.from(e),o):i.slice()},o.unknown=function(e){return arguments.length?(n=e,o):n},o.copy=function(){return xx(t,i).unknown(n)},bx.apply(o,arguments),o}function yx(){var e,t,i=xx().unknown(void 0),n=i.domain,o=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
|
|
6304
6563
|
function h(){var i=n().length,h=r<s,u=h?r:s,p=h?s:r
|
|
6305
6564
|
e=(p-u)/Math.max(1,i-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(i-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
|
|
6306
|
-
var g=
|
|
6307
|
-
return o(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(n(e),h()):n()},i.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},i.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
return
|
|
6313
|
-
|
|
6314
|
-
if(e instanceof pm)return e
|
|
6315
|
-
var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,o=Math.min(t,i,n),s=Math.max(t,i,n),r=NaN,a=s-o,l=(s+o)/2
|
|
6316
|
-
return a?(r=t===s?(i-n)/a+6*(i<n):i===s?(n-t)/a+2:(t-i)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new pm(r,a,l,e.opacity)}function pm(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function gm(e){return(e=(e||0)%360)<0?e+360:e}function vm(e){return Math.max(0,Math.min(1,e||0))}function fm(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}Tf(zf,em,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qf,formatHex:Qf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return um(this).formatHsl()},formatRgb:Jf,toString:Jf}),Tf(sm,om,Pf(zf,{brighter(e){return e=null==e?Ff:Math.pow(Ff,e),new sm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Df:Math.pow(Df,e),new sm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sm(cm(this.r),cm(this.g),cm(this.b),lm(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:rm,formatHex:rm,formatHex8:function(){return`#${dm(this.r)}${dm(this.g)}${dm(this.b)}${dm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:am,toString:am})),Tf(pm,(function(e,t,i,n){return 1===arguments.length?um(e):new pm(e,t,i,null==n?1:n)}),Pf(zf,{brighter(e){return e=null==e?Ff:Math.pow(Ff,e),new pm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Df:Math.pow(Df,e),new pm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,o=2*i-n
|
|
6317
|
-
return new sm(fm(e>=240?e-240:e+120,o,n),fm(e,o,n),fm(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new pm(gm(this.h),vm(this.s),vm(this.l),lm(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=lm(this.opacity)
|
|
6318
|
-
return`${1===e?"hsl(":"hsla("}${gm(this.h)}, ${100*vm(this.s)}%, ${100*vm(this.l)}%${1===e?")":`, ${e})`}`}}))
|
|
6319
|
-
var mm=e=>()=>e
|
|
6320
|
-
function bm(e){return 1==(e=+e)?wm:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(n){return Math.pow(e+n*t,i)}}(t,i,e):mm(isNaN(t)?i:t)}}function wm(e,t){var i=t-e
|
|
6321
|
-
return i?function(e,t){return function(i){return e+i*t}}(e,i):mm(isNaN(e)?t:e)}var xm=function e(t){var i=bm(t)
|
|
6322
|
-
function n(e,t){var n=i((e=om(e)).r,(t=om(t)).r),o=i(e.g,t.g),s=i(e.b,t.b),r=wm(e.opacity,t.opacity)
|
|
6323
|
-
return function(t){return e.r=n(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return n.gamma=e,n}(1)
|
|
6324
|
-
function ym(e,t){t||(t=[])
|
|
6325
|
-
var i,n=e?Math.min(t.length,e.length):0,o=t.slice()
|
|
6326
|
-
return function(s){for(i=0;i<n;++i)o[i]=e[i]*(1-s)+t[i]*s
|
|
6327
|
-
return o}}function $m(e,t){var i,n=t?t.length:0,o=e?Math.min(n,e.length):0,s=new Array(o),r=new Array(n)
|
|
6328
|
-
for(i=0;i<o;++i)s[i]=Im(e[i],t[i])
|
|
6329
|
-
for(;i<n;++i)r[i]=t[i]
|
|
6330
|
-
return function(e){for(i=0;i<o;++i)r[i]=s[i](e)
|
|
6331
|
-
return r}}function Cm(e,t){var i=new Date
|
|
6332
|
-
return e=+e,t=+t,function(n){return i.setTime(e*(1-n)+t*n),i}}function km(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function _m(e,t){var i,n={},o={}
|
|
6333
|
-
for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?n[i]=Im(e[i],t[i]):o[i]=t[i]
|
|
6334
|
-
return function(e){for(i in n)o[i]=n[i](e)
|
|
6335
|
-
return o}}var Sm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rm=new RegExp(Sm.source,"g")
|
|
6336
|
-
function Mm(e,t){var i,n,o,s=Sm.lastIndex=Rm.lastIndex=0,r=-1,a=[],l=[]
|
|
6337
|
-
for(e+="",t+="";(i=Sm.exec(e))&&(n=Rm.exec(t));)(o=n.index)>s&&(o=t.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(i=i[0])===(n=n[0])?a[r]?a[r]+=n:a[++r]=n:(a[++r]=null,l.push({i:r,x:km(i,n)})),s=Rm.lastIndex
|
|
6338
|
-
return s<t.length&&(o=t.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var i,n=0;n<t;++n)a[(i=l[n]).i]=i.x(e)
|
|
6339
|
-
return a.join("")})}function Im(e,t){var i,n,o=typeof t
|
|
6340
|
-
return null==t||"boolean"===o?mm(t):("number"===o?km:"string"===o?(i=em(t))?(t=i,xm):Mm:t instanceof em?xm:t instanceof Date?Cm:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?$m:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?_m:km:ym))(e,t)}function Am(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var Om,Em=180/Math.PI,Vm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
6341
|
-
function Hm(e,t,i,n,o,s){var r,a,l
|
|
6342
|
-
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*n)&&(i-=e*l,n-=t*l),(a=Math.sqrt(i*i+n*n))&&(i/=a,n/=a,l/=a),e*n<t*i&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Em,skewX:Math.atan(l)*Em,scaleX:r,scaleY:a}}function Lm(e,t,i,n){function o(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
6343
|
-
return s=e(s),r=e(r),function(e,n,o,s,r,a){if(e!==o||n!==s){var l=r.push("translate(",null,t,null,i)
|
|
6344
|
-
a.push({i:l-4,x:km(e,o)},{i:l-2,x:km(n,s)})}else(o||s)&&r.push("translate("+o+t+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,i,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:i.push(o(i)+"rotate(",null,n)-2,x:km(e,t)})):t&&i.push(o(i)+"rotate("+t+n)}(s.rotate,r.rotate,a,l),function(e,t,i,s){e!==t?s.push({i:i.push(o(i)+"skewX(",null,n)-2,x:km(e,t)}):t&&i.push(o(i)+"skewX("+t+n)}(s.skewX,r.skewX,a,l),function(e,t,i,n,s,r){if(e!==i||t!==n){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
6345
|
-
r.push({i:a-4,x:km(e,i)},{i:a-2,x:km(t,n)})}else 1===i&&1===n||s.push(o(s)+"scale("+i+","+n+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,i=-1,n=l.length;++i<n;)a[(t=l[i]).i]=t.x(e)
|
|
6346
|
-
return a.join("")}}}var Tm=Lm((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
|
|
6347
|
-
return t.isIdentity?Vm:Hm(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Pm=Lm((function(e){return null==e?Vm:(Om||(Om=document.createElementNS("http://www.w3.org/2000/svg","g")),Om.setAttribute("transform",e),(e=Om.transform.baseVal.consolidate())?Hm((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Vm)}),", ",")",")")
|
|
6348
|
-
function zm(e){return((e=Math.exp(e))+1/e)/2}var Dm=function e(t,i,n){function o(e,o){var s,r,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,g=h-l,v=p*p+g*g
|
|
6349
|
-
if(v<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*g,c*Math.exp(t*e*r)]}
|
|
6350
|
-
else{var f=Math.sqrt(v),m=(u*u-c*c+n*v)/(2*c*i*f),b=(u*u-c*c-n*v)/(2*u*i*f),w=Math.log(Math.sqrt(m*m+1)-m),x=Math.log(Math.sqrt(b*b+1)-b)
|
|
6351
|
-
r=(x-w)/t,s=function(e){var n,o=e*r,s=zm(w),d=c/(i*f)*(s*(n=t*o+w,((n=Math.exp(2*n))-1)/(n+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
|
|
6352
|
-
return[a+d*p,l+d*g,c*s/zm(t*o+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return o.rho=function(t){var i=Math.max(.001,+t),n=i*i
|
|
6353
|
-
return e(i,n,n*n)},o}(Math.SQRT2,2,4)
|
|
6354
|
-
function Fm(e){return+e}var Bm=[0,1]
|
|
6355
|
-
function Nm(e){return e}function Zm(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
|
|
6356
|
-
var i}function qm(e,t,i){var n=e[0],o=e[1],s=t[0],r=t[1]
|
|
6357
|
-
return o<n?(n=Zm(o,n),s=i(r,s)):(n=Zm(n,o),s=i(s,r)),function(e){return s(n(e))}}function jm(e,t,i){var n=Math.min(e.length,t.length)-1,o=new Array(n),s=new Array(n),r=-1
|
|
6358
|
-
for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<n;)o[r]=Zm(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
|
|
6359
|
-
return function(t){var i=$f(e,t,1,n)-1
|
|
6360
|
-
return s[i](o[i](t))}}function Um(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Gm(){var e,t,i,n,o,s,r=Bm,a=Bm,l=Im,c=Nm
|
|
6565
|
+
var g=mx(i).map((function(t){return u+e*t}))
|
|
6566
|
+
return o(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(n(e),h()):n()},i.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},i.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return yx(n(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},bx.apply(h(),arguments)}function $x(e){return+e}var Cx=[0,1]
|
|
6567
|
+
function kx(e){return e}function _x(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
|
|
6568
|
+
var i}function Sx(e,t,i){var n=e[0],o=e[1],s=t[0],r=t[1]
|
|
6569
|
+
return o<n?(n=_x(o,n),s=i(r,s)):(n=_x(n,o),s=i(s,r)),function(e){return s(n(e))}}function Rx(e,t,i){var n=Math.min(e.length,t.length)-1,o=new Array(n),s=new Array(n),r=-1
|
|
6570
|
+
for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<n;)o[r]=_x(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
|
|
6571
|
+
return function(t){var i=lx(e,t,1,n)-1
|
|
6572
|
+
return s[i](o[i](t))}}function Mx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ix(){var e,t,i,n,o,s,r=Cx,a=Cx,l=Mb,c=kx
|
|
6361
6573
|
function d(){var e,t,i,l=Math.min(r.length,a.length)
|
|
6362
|
-
return c!==
|
|
6574
|
+
return c!==kx&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),n=l>2?Rx:Sx,o=s=null,h}function h(t){return null==t||isNaN(t=+t)?i:(o||(o=n(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((s||(s=n(a,r.map(e),Cb)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,$x),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=Ib,d()},h.clamp=function(e){return arguments.length?(c=!!e||kx,d()):c!==kx},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,n){return e=i,t=n,d()}}function Ax(){return Ix()(kx,kx)}function Ox(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
|
|
6363
6575
|
var i,n=e.slice(0,i)
|
|
6364
|
-
return[n.length>1?n[0]+n.slice(2):n,+e.slice(i+1)]}function
|
|
6365
|
-
function
|
|
6576
|
+
return[n.length>1?n[0]+n.slice(2):n,+e.slice(i+1)]}function Ex(e){return(e=Ox(Math.abs(e)))?e[1]:NaN}var Vx,Hx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
6577
|
+
function Lx(e){if(!(t=Hx.exec(e)))throw new Error("invalid format: "+e)
|
|
6366
6578
|
var t
|
|
6367
|
-
return new
|
|
6579
|
+
return new Tx({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 Tx(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 Px(e,t){var i=Ox(e,t)
|
|
6368
6580
|
if(!i)return e+""
|
|
6369
6581
|
var n=i[0],o=i[1]
|
|
6370
|
-
return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}
|
|
6371
|
-
var
|
|
6582
|
+
return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Lx.prototype=Tx.prototype,Tx.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}
|
|
6583
|
+
var zx={"%":(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)=>Px(100*e,t),r:Px,s:function(e,t){var i=Ox(e,t)
|
|
6372
6584
|
if(!i)return e+""
|
|
6373
|
-
var n=i[0],o=i[1],s=o-(
|
|
6374
|
-
return s===r?n:s>r?n+new Array(s-r+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+
|
|
6375
|
-
function
|
|
6376
|
-
function
|
|
6377
|
-
return s.reverse().join(i)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?
|
|
6378
|
-
function h(e){var t=(e=
|
|
6379
|
-
"n"===b?(v=!0,b="g"):
|
|
6380
|
-
var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=
|
|
6585
|
+
var n=i[0],o=i[1],s=o-(Vx=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=n.length
|
|
6586
|
+
return s===r?n:s>r?n+new Array(s-r+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+Ox(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
|
|
6587
|
+
function Dx(e){return e}var Fx,Bx,Nx,Zx=Array.prototype.map,qx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
6588
|
+
function jx(e){var t,i,n=void 0===e.grouping||void 0===e.thousands?Dx:(t=Zx.call(e.grouping,Number),i=e.thousands+"",function(e,n){for(var o=e.length,s=[],r=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),s.push(e.substring(o-=a,o+a)),!((l+=a+1)>n));)a=t[r=(r+1)%t.length]
|
|
6589
|
+
return s.reverse().join(i)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Dx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Zx.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+""
|
|
6590
|
+
function h(e){var t=(e=Lx(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,f=e.precision,m=e.trim,b=e.type
|
|
6591
|
+
"n"===b?(v=!0,b="g"):zx[b]||(void 0===f&&(f=12),m=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
|
|
6592
|
+
var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=zx[b],$=/[defgprs%]/.test(b)
|
|
6381
6593
|
function C(e){var o,s,l,u=w,C=x
|
|
6382
6594
|
if("c"===b)C=y(e)+C,e=""
|
|
6383
6595
|
else{var k=(e=+e)<0||1/e<0
|
|
@@ -6386,7 +6598,7 @@ break
|
|
|
6386
6598
|
case"0":0===o&&(o=n),t=n
|
|
6387
6599
|
break
|
|
6388
6600
|
default:if(!+e[n])break e
|
|
6389
|
-
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?
|
|
6601
|
+
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?qx[8+Vx/3]:"")+C+(k&&"("===h?")":""),$)for(o=-1,s=e.length;++o<s;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?r+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
|
|
6390
6602
|
break}}v&&!p&&(e=n(e,1/0))
|
|
6391
6603
|
var _=u.length+e.length+C.length,S=_<g?new Array(g-_+1).join(t):""
|
|
6392
6604
|
switch(v&&p&&(e=n(S+e,S.length?g-C.length:1/0),S=""),i){case"<":e=u+e+C+S
|
|
@@ -6395,19 +6607,19 @@ case"=":e=u+S+e+C
|
|
|
6395
6607
|
break
|
|
6396
6608
|
case"^":e=S.slice(0,_=S.length>>1)+u+e+C+S.slice(_)
|
|
6397
6609
|
break
|
|
6398
|
-
default:e=S+u+e+C}return a(e)}return f=void 0===f?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=
|
|
6399
|
-
return function(e){return i(o*e)+s}}}}function
|
|
6400
|
-
const n=(t=+t)<(e=+e),o=n?
|
|
6610
|
+
default:e=S+u+e+C}return a(e)}return f=void 0===f?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=Lx(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(Ex(t)/3))),o=Math.pow(10,-n),s=qx[8+n/3]
|
|
6611
|
+
return function(e){return i(o*e)+s}}}}function Ux(e,t,i,n){var o,s=function(e,t,i){i=+i
|
|
6612
|
+
const n=(t=+t)<(e=+e),o=n?fx(t,e,i):fx(e,t,i)
|
|
6401
6613
|
return(n?-1:1)*(o<0?1/-o:o)}(e,t,i)
|
|
6402
|
-
switch((n=
|
|
6403
|
-
return null!=n.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
6404
|
-
case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,
|
|
6614
|
+
switch((n=Lx(null==n?",f":n)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
|
|
6615
|
+
return null!=n.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ex(t)/3)))-Ex(Math.abs(e)))}(s,r))||(n.precision=o),Nx(n,r)
|
|
6616
|
+
case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ex(t)-Ex(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=o-("e"===n.type))
|
|
6405
6617
|
break
|
|
6406
|
-
case"f":case"%":null!=n.precision||isNaN(o=function(e){return Math.max(0,-
|
|
6618
|
+
case"f":case"%":null!=n.precision||isNaN(o=function(e){return Math.max(0,-Ex(Math.abs(e)))}(s))||(n.precision=o-2*("%"===n.type))}return Bx(n)}function Gx(e){var t=e.domain
|
|
6407
6619
|
return e.ticks=function(e){var i=t()
|
|
6408
6620
|
return function(e,t,i){if(!((i=+i)>0))return[]
|
|
6409
6621
|
if((e=+e)==(t=+t))return[e]
|
|
6410
|
-
const n=t<e,[o,s,r]=n?
|
|
6622
|
+
const n=t<e,[o,s,r]=n?vx(t,e,i):vx(e,t,i)
|
|
6411
6623
|
if(!(s>=o))return[]
|
|
6412
6624
|
const a=s-o+1,l=new Array(a)
|
|
6413
6625
|
if(n)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
|
|
@@ -6415,272 +6627,64 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
|
|
|
6415
6627
|
else if(r<0)for(let e=0;e<a;++e)l[e]=(o+e)/-r
|
|
6416
6628
|
else for(let e=0;e<a;++e)l[e]=(o+e)*r
|
|
6417
6629
|
return l}(i[0],i[i.length-1],null==e?10:e)},e.tickFormat=function(e,i){var n=t()
|
|
6418
|
-
return
|
|
6630
|
+
return Ux(n[0],n[n.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
|
|
6419
6631
|
var n,o,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
|
|
6420
|
-
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=
|
|
6632
|
+
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=fx(l,c,i))===n)return s[r]=l,s[a]=c,t(s)
|
|
6421
6633
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
6422
6634
|
else{if(!(o<0))break
|
|
6423
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}n=o}return e},e}function
|
|
6424
|
-
return e.copy=function(){return
|
|
6425
|
-
|
|
6635
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}n=o}return e},e}function Xx(){var e=Ax()
|
|
6636
|
+
return e.copy=function(){return Mx(e,Xx())},bx.apply(e,arguments),Gx(e)}Fx=jx({thousands:",",grouping:[3],currency:["$",""]}),Bx=Fx.format,Nx=Fx.formatPrefix
|
|
6637
|
+
const Wx="bottom-left",Kx="bottom-right",Yx="top-left",Qx="top",Jx="linear",ey="ordinal"
|
|
6638
|
+
class ty{constructor(e,t,i){this.baseMargin={top:20,right:20,bottom:20,left:20},this.dieSizeFactor=1.5,this.defaultAlign=.5,this.margin=this.baseMargin
|
|
6426
6639
|
const n=this.calculateMapDimensions(e)
|
|
6427
6640
|
this.containerDimensions=this.calculateContainerDimensions(i,this.margin),this.horizontalScale=this.createHorizontalScale(t,n,this.containerDimensions.width),this.dieDimensions={width:this.calculateGridWidth(n.cols,this.containerDimensions.width),height:0},this.radius=this.containerDimensions.width/2+this.dieDimensions.width*this.dieSizeFactor,this.radius>i.width/2&&(this.margin=this.calculateMarginWithAddition(this.radius-i.width/2),this.containerDimensions=this.calculateContainerDimensions(i,this.margin),this.horizontalScale=this.createHorizontalScale(t,n,this.containerDimensions.width),this.dieDimensions={width:this.calculateGridWidth(n.cols,this.containerDimensions.width),height:0},this.radius=this.containerDimensions.width/2+this.dieDimensions.width*this.dieSizeFactor),this.verticalScale=this.createVerticalScale(t,n,this.containerDimensions.height),this.dieDimensions={width:this.dieDimensions.width,height:this.calculateGridHeight(n.rows,this.containerDimensions.height)}}calculateMapDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
6428
6641
|
const t={x:e[0].x,y:e[0].y},i={x:e[0].x,y:e[0].y}
|
|
6429
6642
|
for(const n of e)n.x<t.x&&(t.x=n.x),n.y<t.y&&(t.y=n.y),n.x>i.x&&(i.x=n.x),n.y>i.y&&(i.y=n.y)
|
|
6430
|
-
return{origin:t,rows:i.y-t.y+1,cols:i.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,i){return e===
|
|
6431
|
-
for(const t of e)this.diesRenderInfo.push({x:n(t.x)+d.right,y:o(t.y)+d.top,fillStyle:this.calculateFillStyle(t.value,s,i),text:this.buildLabel(t.value,l,r,a)})}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?
|
|
6643
|
+
return{origin:t,rows:i.y-t.y+1,cols:i.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,i){return e===Wx||e===Yx?Xx().domain([t.origin.x,t.origin.x+t.cols]).range([0,i]):Xx().domain([t.origin.x-1,t.origin.x+t.cols-1]).range([i,0])}createVerticalScale(e,t,i){return e===Wx||e===Kx?Xx().domain([t.origin.y-1,t.origin.y+t.rows-1]).range([i,0]):Xx().domain([t.origin.y,t.origin.y+t.rows]).range([0,i])}calculateGridWidth(e,t){return yx().align(this.defaultAlign).padding(0).domain(this.horizontalScale.ticks(e)).range([0,t]).bandwidth()}calculateGridHeight(e,t){return yx().align(this.defaultAlign).padding(0).domain(this.verticalScale.ticks(e)).range([0,t]).bandwidth()}calculateMarginWithAddition(e=0){return{top:this.baseMargin.top+e,right:this.baseMargin.right+e,bottom:this.baseMargin.bottom+e,left:this.baseMargin.top+e}}}class iy{constructor(e,t,i,n,o,s,r,a,l,c,d){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(t,s),this.labelsFontSize=this.calculateLabelsFontSize(c,l),this.diesRenderInfo=[]
|
|
6644
|
+
for(const t of e)this.diesRenderInfo.push({x:n(t.x)+d.right,y:o(t.y)+d.top,fillStyle:this.calculateFillStyle(t.value,s,i),text:this.buildLabel(t.value,l,r,a)})}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?Xx().domain(e.values.map((e=>+e))).range(e.colors):xx().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,n){if(i||!this.dieHasData(e))return""
|
|
6432
6645
|
const o=`${e}${n}`
|
|
6433
|
-
return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===
|
|
6646
|
+
return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===Jx}isColorScaleOrdinal(e){return e===ey}calculateFillStyle(e,t,i){let n=this.emptyDieColor
|
|
6434
6647
|
if(this.dieHasData(e)&&(isNaN(+e)?n=this.nanDieColor:this.isColorScaleLinear(t)?n=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(n=this.d3ColorScale(e))),void 0===n)return this.emptyDieColor
|
|
6435
6648
|
let o=Ho(n)
|
|
6436
|
-
return null===o?this.emptyDieColor:(o=new So(o.r,o.g,o.b,this.calculateOpacity(e,i)),o.toStringWebRGBA())}}class
|
|
6437
|
-
this.
|
|
6438
|
-
for(const
|
|
6439
|
-
const
|
|
6440
|
-
this.context.font=`${
|
|
6441
|
-
const
|
|
6442
|
-
if(this.dieSize>=50)for(const e of this.dies)this.context.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+
|
|
6443
|
-
function
|
|
6444
|
-
|
|
6445
|
-
return
|
|
6446
|
-
return(t.local?yb:xb)(t)}function Cb(){}function kb(e){return null==e?Cb:function(){return this.querySelector(e)}}function _b(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Sb(){return[]}function Rb(e){return null==e?Sb:function(){return this.querySelectorAll(e)}}function Mb(e){return function(){return this.matches(e)}}function Ib(e){return function(t){return t.matches(e)}}var Ab=Array.prototype.find
|
|
6447
|
-
function Ob(){return this.firstElementChild}var Eb=Array.prototype.filter
|
|
6448
|
-
function Vb(){return Array.from(this.children)}function Hb(e){return new Array(e.length)}function Lb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Tb(e){return function(){return e}}function Pb(e,t,i,n,o,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],n[a]=r):i[a]=new Lb(e,s[a])
|
|
6449
|
-
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function zb(e,t,i,n,o,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
|
|
6450
|
-
for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
6451
|
-
for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(n[a]=l,l.__data__=s[a],d.delete(c)):i[a]=new Lb(e,s[a])
|
|
6452
|
-
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function Db(e){return e.__data__}function Fb(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Bb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Nb(e){return function(){this.removeAttribute(e)}}function Zb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qb(e,t){return function(){this.setAttribute(e,t)}}function jb(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ub(e,t){return function(){var i=t.apply(this,arguments)
|
|
6453
|
-
null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function Gb(e,t){return function(){var i=t.apply(this,arguments)
|
|
6454
|
-
null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Xb(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Wb(e){return function(){this.style.removeProperty(e)}}function Kb(e,t,i){return function(){this.style.setProperty(e,t,i)}}function Yb(e,t,i){return function(){var n=t.apply(this,arguments)
|
|
6455
|
-
null==n?this.style.removeProperty(e):this.style.setProperty(e,n,i)}}function Qb(e,t){return e.style.getPropertyValue(t)||Xb(e).getComputedStyle(e,null).getPropertyValue(t)}function Jb(e){return function(){delete this[e]}}function ew(e,t){return function(){this[e]=t}}function tw(e,t){return function(){var i=t.apply(this,arguments)
|
|
6456
|
-
null==i?delete this[e]:this[e]=i}}function iw(e){return e.trim().split(/^|\s+/)}function nw(e){return e.classList||new ow(e)}function ow(e){this._node=e,this._names=iw(e.getAttribute("class")||"")}function sw(e,t){for(var i=nw(e),n=-1,o=t.length;++n<o;)i.add(t[n])}function rw(e,t){for(var i=nw(e),n=-1,o=t.length;++n<o;)i.remove(t[n])}function aw(e){return function(){sw(this,e)}}function lw(e){return function(){rw(this,e)}}function cw(e,t){return function(){(t.apply(this,arguments)?sw:rw)(this,e)}}function dw(){this.textContent=""}function hw(e){return function(){this.textContent=e}}function uw(e){return function(){var t=e.apply(this,arguments)
|
|
6457
|
-
this.textContent=null==t?"":t}}function pw(){this.innerHTML=""}function gw(e){return function(){this.innerHTML=e}}function vw(e){return function(){var t=e.apply(this,arguments)
|
|
6458
|
-
this.innerHTML=null==t?"":t}}function fw(){this.nextSibling&&this.parentNode.appendChild(this)}function mw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bw(){return null}function ww(){var e=this.parentNode
|
|
6459
|
-
e&&e.removeChild(this)}function xw(){var e=this.cloneNode(!1),t=this.parentNode
|
|
6460
|
-
return t?t.insertBefore(e,this.nextSibling):e}function yw(){var e=this.cloneNode(!0),t=this.parentNode
|
|
6461
|
-
return t?t.insertBefore(e,this.nextSibling):e}function $w(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
|
|
6462
|
-
return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function Cw(e){return function(){var t=this.__on
|
|
6463
|
-
if(t){for(var i,n=0,o=-1,s=t.length;n<s;++n)i=t[n],e.type&&i.type!==e.type||i.name!==e.name?t[++o]=i:this.removeEventListener(i.type,i.listener,i.options);++o?t.length=o:delete this.__on}}}function kw(e,t,i){return function(){var n,o=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|
6464
|
-
if(o)for(var r=0,a=o.length;r<a;++r)if((n=o[r]).type===e.type&&n.name===e.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),void(n.value=t)
|
|
6465
|
-
this.addEventListener(e.type,s,i),n={type:e.type,name:e.name,value:t,listener:s,options:i},o?o.push(n):this.__on=[n]}}function _w(e,t,i){var n=Xb(e),o=n.CustomEvent
|
|
6466
|
-
"function"==typeof o?o=new o(t,i):(o=n.document.createEvent("Event"),i?(o.initEvent(t,i.bubbles,i.cancelable),o.detail=i.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Sw(e,t){return function(){return _w(this,e,t)}}function Rw(e,t){return function(){return _w(this,e,t.apply(this,arguments))}}Lb.prototype={constructor:Lb,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)}},ow.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)
|
|
6467
|
-
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|
6468
|
-
var Mw=[null]
|
|
6469
|
-
function Iw(e,t){this._groups=e,this._parents=t}function Aw(){return new Iw([[document.documentElement]],Mw)}function Ow(e){return"string"==typeof e?new Iw([[document.querySelector(e)]],[document.documentElement]):new Iw([[e]],Mw)}function Ew(e,t){if(e=function(e){let t
|
|
6470
|
-
for(;t=e.sourceEvent;)e=t
|
|
6471
|
-
return e}(e),void 0===t&&(t=e.currentTarget),t){var i=t.ownerSVGElement||t
|
|
6472
|
-
if(i.createSVGPoint){var n=i.createSVGPoint()
|
|
6473
|
-
return n.x=e.clientX,n.y=e.clientY,[(n=n.matrixTransform(t.getScreenCTM().inverse())).x,n.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
|
|
6474
|
-
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Iw.prototype=Aw.prototype={constructor:Iw,select:function(e){"function"!=typeof e&&(e=kb(e))
|
|
6475
|
-
for(var t=this._groups,i=t.length,n=new Array(i),o=0;o<i;++o)for(var s,r,a=t[o],l=a.length,c=n[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
|
|
6476
|
-
return new Iw(n,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return _b(e.apply(this,arguments))}}(e):Rb(e)
|
|
6477
|
-
for(var t=this._groups,i=t.length,n=[],o=[],s=0;s<i;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(n.push(e.call(r,r.__data__,c,a)),o.push(r))
|
|
6478
|
-
return new Iw(n,o)},selectChild:function(e){return this.select(null==e?Ob:function(e){return function(){return Ab.call(this.children,e)}}("function"==typeof e?e:Ib(e)))},selectChildren:function(e){return this.selectAll(null==e?Vb:function(e){return function(){return Eb.call(this.children,e)}}("function"==typeof e?e:Ib(e)))},filter:function(e){"function"!=typeof e&&(e=Mb(e))
|
|
6479
|
-
for(var t=this._groups,i=t.length,n=new Array(i),o=0;o<i;++o)for(var s,r=t[o],a=r.length,l=n[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
6480
|
-
return new Iw(n,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Db)
|
|
6481
|
-
var i=t?zb:Pb,n=this._parents,o=this._groups
|
|
6482
|
-
"function"!=typeof e&&(e=Tb(e))
|
|
6483
|
-
for(var s=o.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=n[c],h=o[c],u=h.length,p=Fb(e.call(d,d&&d.__data__,c,n)),g=p.length,v=a[c]=new Array(g),f=r[c]=new Array(g),m=l[c]=new Array(u)
|
|
6484
|
-
i(d,h,v,f,m,p,t)
|
|
6485
|
-
for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=f[y])&&++y<g;);b._next=w||null}}return(r=new Iw(r,n))._enter=a,r._exit=l,r},enter:function(){return new Iw(this._enter||this._groups.map(Hb),this._parents)},exit:function(){return new Iw(this._exit||this._groups.map(Hb),this._parents)},join:function(e,t,i){var n=this.enter(),o=this,s=this.exit()
|
|
6486
|
-
return"function"==typeof e?(n=e(n))&&(n=n.selection()):n=n.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==i?s.remove():i(s),n&&o?n.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,i=this._groups,n=t._groups,o=i.length,s=n.length,r=Math.min(o,s),a=new Array(o),l=0;l<r;++l)for(var c,d=i[l],h=n[l],u=d.length,p=a[l]=new Array(u),g=0;g<u;++g)(c=d[g]||h[g])&&(p[g]=c)
|
|
6487
|
-
for(;l<o;++l)a[l]=i[l]
|
|
6488
|
-
return new Iw(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var n,o=e[t],s=o.length-1,r=o[s];--s>=0;)(n=o[s])&&(r&&4^n.compareDocumentPosition(r)&&r.parentNode.insertBefore(n,r),r=n)
|
|
6489
|
-
return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=Bb)
|
|
6490
|
-
for(var i=this._groups,n=i.length,o=new Array(n),s=0;s<n;++s){for(var r,a=i[s],l=a.length,c=o[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
|
|
6491
|
-
c.sort(t)}return new Iw(o,this._parents).order()},call:function(){var e=arguments[0]
|
|
6492
|
-
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var n=e[t],o=0,s=n.length;o<s;++o){var r=n[o]
|
|
6493
|
-
if(r)return r}return null},size:function(){let e=0
|
|
6494
|
-
for(const t of this)++e
|
|
6495
|
-
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,i=0,n=t.length;i<n;++i)for(var o,s=t[i],r=0,a=s.length;r<a;++r)(o=s[r])&&e.call(o,o.__data__,r,s)
|
|
6496
|
-
return this},attr:function(e,t){var i=wb(e)
|
|
6497
|
-
if(arguments.length<2){var n=this.node()
|
|
6498
|
-
return i.local?n.getAttributeNS(i.space,i.local):n.getAttribute(i)}return this.each((null==t?i.local?Zb:Nb:"function"==typeof t?i.local?Gb:Ub:i.local?jb:qb)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?Wb:"function"==typeof t?Yb:Kb)(e,t,null==i?"":i)):Qb(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Jb:"function"==typeof t?tw:ew)(e,t)):this.node()[e]},classed:function(e,t){var i=iw(e+"")
|
|
6499
|
-
if(arguments.length<2){for(var n=nw(this.node()),o=-1,s=i.length;++o<s;)if(!n.contains(i[o]))return!1
|
|
6500
|
-
return!0}return this.each(("function"==typeof t?cw:t?aw:lw)(i,t))},text:function(e){return arguments.length?this.each(null==e?dw:("function"==typeof e?uw:hw)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?pw:("function"==typeof e?vw:gw)(e)):this.node().innerHTML},raise:function(){return this.each(fw)},lower:function(){return this.each(mw)},append:function(e){var t="function"==typeof e?e:$b(e)
|
|
6501
|
-
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:$b(e),n=null==t?bw:"function"==typeof t?t:kb(t)
|
|
6502
|
-
return this.select((function(){return this.insertBefore(i.apply(this,arguments),n.apply(this,arguments)||null)}))},remove:function(){return this.each(ww)},clone:function(e){return this.select(e?yw:xw)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var n,o,s=$w(e+""),r=s.length
|
|
6503
|
-
if(!(arguments.length<2)){for(a=t?kw:Cw,n=0;n<r;++n)this.each(a(s[n],t,i))
|
|
6504
|
-
return this}var a=this.node().__on
|
|
6505
|
-
if(a)for(var l,c=0,d=a.length;c<d;++c)for(n=0,l=a[c];n<r;++n)if((o=s[n]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Rw:Sw)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var n,o=e[t],s=0,r=o.length;s<r;++s)(n=o[s])&&(yield n)}}
|
|
6506
|
-
var Vw={value:()=>{}}
|
|
6507
|
-
function Hw(){for(var e,t=0,i=arguments.length,n={};t<i;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw new Error("illegal type: "+e)
|
|
6508
|
-
n[e]=[]}return new Lw(n)}function Lw(e){this._=e}function Tw(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",n=e.indexOf(".")
|
|
6509
|
-
if(n>=0&&(i=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
6510
|
-
return{type:e,name:i}}))}function Pw(e,t){for(var i,n=0,o=e.length;n<o;++n)if((i=e[n]).name===t)return i.value}function zw(e,t,i){for(var n=0,o=e.length;n<o;++n)if(e[n].name===t){e[n]=Vw,e=e.slice(0,n).concat(e.slice(n+1))
|
|
6511
|
-
break}return null!=i&&e.push({name:t,value:i}),e}Lw.prototype=Hw.prototype={constructor:Lw,on:function(e,t){var i,n=this._,o=Tw(e+"",n),s=-1,r=o.length
|
|
6512
|
-
if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
|
|
6513
|
-
for(;++s<r;)if(i=(e=o[s]).type)n[i]=zw(n[i],e.name,t)
|
|
6514
|
-
else if(null==t)for(i in n)n[i]=zw(n[i],e.name,null)
|
|
6515
|
-
return this}for(;++s<r;)if((i=(e=o[s]).type)&&(i=Pw(n[i],e.name)))return i},copy:function(){var e={},t=this._
|
|
6516
|
-
for(var i in t)e[i]=t[i].slice()
|
|
6517
|
-
return new Lw(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,n,o=new Array(i),s=0;s<i;++s)o[s]=arguments[s+2]
|
|
6518
|
-
if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
6519
|
-
for(s=0,i=(n=this._[e]).length;s<i;++s)n[s].value.apply(t,o)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
6520
|
-
for(var n=this._[e],o=0,s=n.length;o<s;++o)n[o].value.apply(t,i)}}
|
|
6521
|
-
const Dw={capture:!0,passive:!1}
|
|
6522
|
-
function Fw(e){e.preventDefault(),e.stopImmediatePropagation()}function Bw(e){var t=e.document.documentElement,i=Ow(e).on("dragstart.drag",Fw,Dw)
|
|
6523
|
-
"onselectstart"in t?i.on("selectstart.drag",Fw,Dw):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Nw(e,t){var i=e.document.documentElement,n=Ow(e).on("dragstart.drag",null)
|
|
6524
|
-
t&&(n.on("click.drag",Fw,Dw),setTimeout((function(){n.on("click.drag",null)}),0)),"onselectstart"in i?n.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}var Zw,qw,jw=0,Uw=0,Gw=0,Xw=0,Ww=0,Kw=0,Yw="object"==typeof performance&&performance.now?performance:Date,Qw="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
|
|
6525
|
-
function Jw(){return Ww||(Qw(ex),Ww=Yw.now()+Kw)}function ex(){Ww=0}function tx(){this._call=this._time=this._next=null}function ix(e,t,i){var n=new tx
|
|
6526
|
-
return n.restart(e,t,i),n}function nx(){Ww=(Xw=Yw.now())+Kw,jw=Uw=0
|
|
6527
|
-
try{!function(){Jw(),++jw
|
|
6528
|
-
for(var e,t=Zw;t;)(e=Ww-t._time)>=0&&t._call.call(void 0,e),t=t._next;--jw}()}finally{jw=0,function(){var e,t,i=Zw,n=1/0
|
|
6529
|
-
for(;i;)i._call?(n>i._time&&(n=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:Zw=t)
|
|
6530
|
-
qw=e,sx(n)}(),Ww=0}}function ox(){var e=Yw.now(),t=e-Xw
|
|
6531
|
-
t>1e3&&(Kw-=t,Xw=e)}function sx(e){jw||(Uw&&(Uw=clearTimeout(Uw)),e-Ww>24?(e<1/0&&(Uw=setTimeout(nx,e-Yw.now()-Kw)),Gw&&(Gw=clearInterval(Gw))):(Gw||(Xw=Yw.now(),Gw=setInterval(ox,1e3)),jw=1,Qw(nx)))}function rx(e,t,i){var n=new tx
|
|
6532
|
-
return t=null==t?0:+t,n.restart((i=>{n.stop(),e(i+t)}),t,i),n}tx.prototype=ix.prototype={constructor:tx,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
|
|
6533
|
-
i=(null==i?Jw():+i)+(null==t?0:+t),this._next||qw===this||(qw?qw._next=this:Zw=this,qw=this),this._call=e,this._time=i,sx()},stop:function(){this._call&&(this._call=null,this._time=1/0,sx())}}
|
|
6534
|
-
var ax=Hw("start","end","cancel","interrupt"),lx=[]
|
|
6535
|
-
function cx(e,t,i,n,o,s){var r=e.__transition
|
|
6536
|
-
if(r){if(i in r)return}else e.__transition={}
|
|
6537
|
-
!function(e,t,i){var n,o=e.__transition
|
|
6538
|
-
function s(e){i.state=1,i.timer.restart(r,i.delay,i.time),i.delay<=e&&r(e-i.delay)}function r(s){var c,d,h,u
|
|
6539
|
-
if(1!==i.state)return l()
|
|
6540
|
-
for(c in o)if((u=o[c]).name===i.name){if(3===u.state)return rx(r)
|
|
6541
|
-
4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(rx((function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(s))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=3,n=new Array(h=i.tween.length),c=0,d=-1;c<h;++c)(u=i.tween[c].value.call(e,e.__data__,i.index,i.group))&&(n[++d]=u)
|
|
6542
|
-
n.length=d+1}}function a(t){for(var o=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(l),i.state=5,1),s=-1,r=n.length;++s<r;)n[s].call(e,o)
|
|
6543
|
-
5===i.state&&(i.on.call("end",e,e.__data__,i.index,i.group),l())}function l(){for(var n in i.state=6,i.timer.stop(),delete o[t],o)return
|
|
6544
|
-
delete e.__transition}o[t]=i,i.timer=ix(s,0,i.time)}(e,i,{name:t,index:n,group:o,on:ax,tween:lx,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function dx(e,t){var i=ux(e,t)
|
|
6545
|
-
if(i.state>0)throw new Error("too late; already scheduled")
|
|
6546
|
-
return i}function hx(e,t){var i=ux(e,t)
|
|
6547
|
-
if(i.state>3)throw new Error("too late; already running")
|
|
6548
|
-
return i}function ux(e,t){var i=e.__transition
|
|
6549
|
-
if(!i||!(i=i[t]))throw new Error("transition not found")
|
|
6550
|
-
return i}function px(e,t){var i,n,o,s=e.__transition,r=!0
|
|
6551
|
-
if(s){for(o in t=null==t?null:t+"",s)(i=s[o]).name===t?(n=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete s[o]):r=!1
|
|
6552
|
-
r&&delete e.__transition}}function gx(e,t){var i,n
|
|
6553
|
-
return function(){var o=hx(this,e),s=o.tween
|
|
6554
|
-
if(s!==i)for(var r=0,a=(n=i=s).length;r<a;++r)if(n[r].name===t){(n=n.slice()).splice(r,1)
|
|
6555
|
-
break}o.tween=n}}function vx(e,t,i){var n,o
|
|
6556
|
-
if("function"!=typeof i)throw new Error
|
|
6557
|
-
return function(){var s=hx(this,e),r=s.tween
|
|
6558
|
-
if(r!==n){o=(n=r).slice()
|
|
6559
|
-
for(var a={name:t,value:i},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
|
|
6560
|
-
break}l===c&&o.push(a)}s.tween=o}}function fx(e,t,i){var n=e._id
|
|
6561
|
-
return e.each((function(){var e=hx(this,n);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return ux(e,n).value[t]}}function mx(e,t){var i
|
|
6562
|
-
return("number"==typeof t?km:t instanceof em?xm:(i=em(t))?(t=i,xm):Mm)(e,t)}function bx(e){return function(){this.removeAttribute(e)}}function wx(e){return function(){this.removeAttributeNS(e.space,e.local)}}function xx(e,t,i){var n,o,s=i+""
|
|
6563
|
-
return function(){var r=this.getAttribute(e)
|
|
6564
|
-
return r===s?null:r===n?o:o=t(n=r,i)}}function yx(e,t,i){var n,o,s=i+""
|
|
6565
|
-
return function(){var r=this.getAttributeNS(e.space,e.local)
|
|
6566
|
-
return r===s?null:r===n?o:o=t(n=r,i)}}function $x(e,t,i){var n,o,s
|
|
6567
|
-
return function(){var r,a,l=i(this)
|
|
6568
|
-
if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===n&&a===o?s:(o=a,s=t(n=r,l))
|
|
6569
|
-
this.removeAttribute(e)}}function Cx(e,t,i){var n,o,s
|
|
6570
|
-
return function(){var r,a,l=i(this)
|
|
6571
|
-
if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===n&&a===o?s:(o=a,s=t(n=r,l))
|
|
6572
|
-
this.removeAttributeNS(e.space,e.local)}}function kx(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function _x(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function Sx(e,t){var i,n
|
|
6573
|
-
function o(){var o=t.apply(this,arguments)
|
|
6574
|
-
return o!==n&&(i=(n=o)&&_x(e,o)),i}return o._value=t,o}function Rx(e,t){var i,n
|
|
6575
|
-
function o(){var o=t.apply(this,arguments)
|
|
6576
|
-
return o!==n&&(i=(n=o)&&kx(e,o)),i}return o._value=t,o}function Mx(e,t){return function(){dx(this,e).delay=+t.apply(this,arguments)}}function Ix(e,t){return t=+t,function(){dx(this,e).delay=t}}function Ax(e,t){return function(){hx(this,e).duration=+t.apply(this,arguments)}}function Ox(e,t){return t=+t,function(){hx(this,e).duration=t}}function Ex(e,t){if("function"!=typeof t)throw new Error
|
|
6577
|
-
return function(){hx(this,e).ease=t}}function Vx(e,t,i){var n,o,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
|
|
6578
|
-
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?dx:hx
|
|
6579
|
-
return function(){var r=s(this,e),a=r.on
|
|
6580
|
-
a!==n&&(o=(n=a).copy()).on(t,i),r.on=o}}var Hx=Aw.prototype.constructor
|
|
6581
|
-
function Lx(e){return function(){this.style.removeProperty(e)}}function Tx(e,t,i){return function(n){this.style.setProperty(e,t.call(this,n),i)}}function Px(e,t,i){var n,o
|
|
6582
|
-
function s(){var s=t.apply(this,arguments)
|
|
6583
|
-
return s!==o&&(n=(o=s)&&Tx(e,s,i)),n}return s._value=t,s}function zx(e){return function(t){this.textContent=e.call(this,t)}}function Dx(e){var t,i
|
|
6584
|
-
function n(){var n=e.apply(this,arguments)
|
|
6585
|
-
return n!==i&&(t=(i=n)&&zx(n)),t}return n._value=e,n}var Fx=0
|
|
6586
|
-
function Bx(e,t,i,n){this._groups=e,this._parents=t,this._name=i,this._id=n}function Nx(){return++Fx}var Zx=Aw.prototype
|
|
6587
|
-
Bx.prototype={constructor:Bx,select:function(e){var t=this._name,i=this._id
|
|
6588
|
-
"function"!=typeof e&&(e=kb(e))
|
|
6589
|
-
for(var n=this._groups,o=n.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=n[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,cx(h[u],t,i,u,h,ux(a,i)))
|
|
6590
|
-
return new Bx(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
|
|
6591
|
-
"function"!=typeof e&&(e=Rb(e))
|
|
6592
|
-
for(var n=this._groups,o=n.length,s=[],r=[],a=0;a<o;++a)for(var l,c=n[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=ux(l,i),v=0,f=p.length;v<f;++v)(u=p[v])&&cx(u,t,i,v,p,g)
|
|
6593
|
-
s.push(p),r.push(l)}return new Bx(s,r,t,i)},selectChild:Zx.selectChild,selectChildren:Zx.selectChildren,filter:function(e){"function"!=typeof e&&(e=Mb(e))
|
|
6594
|
-
for(var t=this._groups,i=t.length,n=new Array(i),o=0;o<i;++o)for(var s,r=t[o],a=r.length,l=n[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
6595
|
-
return new Bx(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
|
|
6596
|
-
for(var t=this._groups,i=e._groups,n=t.length,o=i.length,s=Math.min(n,o),r=new Array(n),a=0;a<s;++a)for(var l,c=t[a],d=i[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
6597
|
-
for(;a<n;++a)r[a]=t[a]
|
|
6598
|
-
return new Bx(r,this._parents,this._name,this._id)},selection:function(){return new Hx(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=Nx(),n=this._groups,o=n.length,s=0;s<o;++s)for(var r,a=n[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=ux(r,t)
|
|
6599
|
-
cx(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Bx(n,this._parents,e,i)},call:Zx.call,nodes:Zx.nodes,node:Zx.node,size:Zx.size,empty:Zx.empty,each:Zx.each,on:function(e,t){var i=this._id
|
|
6600
|
-
return arguments.length<2?ux(this.node(),i).on.on(e):this.each(Vx(i,e,t))},attr:function(e,t){var i=wb(e),n="transform"===i?Pm:mx
|
|
6601
|
-
return this.attrTween(e,"function"==typeof t?(i.local?Cx:$x)(i,n,fx(this,"attr."+e,t)):null==t?(i.local?wx:bx)(i):(i.local?yx:xx)(i,n,t))},attrTween:function(e,t){var i="attr."+e
|
|
6602
|
-
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
6603
|
-
if(null==t)return this.tween(i,null)
|
|
6604
|
-
if("function"!=typeof t)throw new Error
|
|
6605
|
-
var n=wb(e)
|
|
6606
|
-
return this.tween(i,(n.local?Sx:Rx)(n,t))},style:function(e,t,i){var n="transform"==(e+="")?Tm:mx
|
|
6607
|
-
return null==t?this.styleTween(e,function(e,t){var i,n,o
|
|
6608
|
-
return function(){var s=Qb(this,e),r=(this.style.removeProperty(e),Qb(this,e))
|
|
6609
|
-
return s===r?null:s===i&&r===n?o:o=t(i=s,n=r)}}(e,n)).on("end.style."+e,Lx(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var n,o,s
|
|
6610
|
-
return function(){var r=Qb(this,e),a=i(this),l=a+""
|
|
6611
|
-
return null==a&&(this.style.removeProperty(e),l=a=Qb(this,e)),r===l?null:r===n&&l===o?s:(o=l,s=t(n=r,a))}}(e,n,fx(this,"style."+e,t))).each(function(e,t){var i,n,o,s,r="style."+t,a="end."+r
|
|
6612
|
-
return function(){var l=hx(this,e),c=l.on,d=null==l.value[r]?s||(s=Lx(t)):void 0
|
|
6613
|
-
c===i&&o===d||(n=(i=c).copy()).on(a,o=d),l.on=n}}(this._id,e)):this.styleTween(e,function(e,t,i){var n,o,s=i+""
|
|
6614
|
-
return function(){var r=Qb(this,e)
|
|
6615
|
-
return r===s?null:r===n?o:o=t(n=r,i)}}(e,n,t),i).on("end.style."+e,null)},styleTween:function(e,t,i){var n="style."+(e+="")
|
|
6616
|
-
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
6617
|
-
if(null==t)return this.tween(n,null)
|
|
6618
|
-
if("function"!=typeof t)throw new Error
|
|
6619
|
-
return this.tween(n,Px(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
|
|
6620
|
-
this.textContent=null==t?"":t}}(fx(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
|
|
6621
|
-
if(arguments.length<1)return(t=this.tween(t))&&t._value
|
|
6622
|
-
if(null==e)return this.tween(t,null)
|
|
6623
|
-
if("function"!=typeof e)throw new Error
|
|
6624
|
-
return this.tween(t,Dx(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
|
|
6625
|
-
for(var i in this.__transition)if(+i!==e)return
|
|
6626
|
-
t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id
|
|
6627
|
-
if(e+="",arguments.length<2){for(var n,o=ux(this.node(),i).tween,s=0,r=o.length;s<r;++s)if((n=o[s]).name===e)return n.value
|
|
6628
|
-
return null}return this.each((null==t?gx:vx)(i,e,t))},delay:function(e){var t=this._id
|
|
6629
|
-
return arguments.length?this.each(("function"==typeof e?Mx:Ix)(t,e)):ux(this.node(),t).delay},duration:function(e){var t=this._id
|
|
6630
|
-
return arguments.length?this.each(("function"==typeof e?Ax:Ox)(t,e)):ux(this.node(),t).duration},ease:function(e){var t=this._id
|
|
6631
|
-
return arguments.length?this.each(Ex(t,e)):ux(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
|
|
6632
|
-
return this.each(function(e,t){return function(){var i=t.apply(this,arguments)
|
|
6633
|
-
if("function"!=typeof i)throw new Error
|
|
6634
|
-
hx(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,n=i._id,o=i.size()
|
|
6635
|
-
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
6636
|
-
i.each((function(){var i=hx(this,n),o=i.on
|
|
6637
|
-
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),i.on=t})),0===o&&s()}))},[Symbol.iterator]:Zx[Symbol.iterator]}
|
|
6638
|
-
var qx={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
|
|
6639
|
-
function jx(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
|
|
6640
|
-
return i}Aw.prototype.interrupt=function(e){return this.each((function(){px(this,e)}))},Aw.prototype.transition=function(e){var t,i
|
|
6641
|
-
e instanceof Bx?(t=e._id,e=e._name):(t=Nx(),(i=qx).time=Jw(),e=null==e?null:e+"")
|
|
6642
|
-
for(var n=this._groups,o=n.length,s=0;s<o;++s)for(var r,a=n[s],l=a.length,c=0;c<l;++c)(r=a[c])&&cx(r,e,t,c,a,i||jx(r,t))
|
|
6643
|
-
return new Bx(n,this._parents,e,t)}
|
|
6644
|
-
var Ux=e=>()=>e
|
|
6645
|
-
function Gx(e,{sourceEvent:t,target:i,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function Xx(e,t,i){this.k=e,this.x=t,this.y=i}Xx.prototype={constructor:Xx,scale:function(e){return 1===e?this:new Xx(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Xx(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+")"}}
|
|
6646
|
-
var Wx=new Xx(1,0,0)
|
|
6647
|
-
function Kx(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Wx
|
|
6648
|
-
return e.__zoom}function Yx(e){e.stopImmediatePropagation()}function Qx(e){e.preventDefault(),e.stopImmediatePropagation()}function Jx(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function ey(){var e=this
|
|
6649
|
-
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 ty(){return this.__zoom||Wx}function iy(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ny(){return navigator.maxTouchPoints||"ontouchstart"in this}function oy(e,t,i){var n=e.invertX(t[0][0])-i[0][0],o=e.invertX(t[1][0])-i[1][0],s=e.invertY(t[0][1])-i[0][1],r=e.invertY(t[1][1])-i[1][1]
|
|
6650
|
-
return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}Kx.prototype=Xx.prototype
|
|
6651
|
-
class sy{constructor(e,t,i,n,o){this.canvas=e,this.zoomContainer=t,this.dataManager=i,this.renderingModule=n,this.canvasLength=o,this.zoomTransform=Wx,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}attachZoomBehavior(){this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(Ow(this.canvas))}resetTransform(){const e=this.canvas.getContext("2d")
|
|
6652
|
-
null!==e&&(this.zoomTransform=Wx,this.clearCanvas(e,this.canvasLength,this.canvasLength),this.scaleCanvas(e,Wx.x,Wx.y,Wx.k),this.renderingModule.drawWafer(this.zoomTransform.k),this.zoomBehavior?.transform(Ow(this.canvas),Wx))}createZoomBehavior(){const e=function(){var e,t,i,n=Jx,o=ey,s=oy,r=iy,a=ny,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Dm,u=Hw("start","zoom","end"),p=500,g=0,v=10
|
|
6653
|
-
function f(e){e.property("__zoom",ty).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new Xx(t,e.x,e.y)}function b(e,t,i){var n=t[0]-i[0]*e.k,o=t[1]-i[1]*e.k
|
|
6654
|
-
return n===e.x&&o===e.y?e:new Xx(e.k,n,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,i,n){e.on("start.zoom",(function(){y(this,arguments).event(n).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(n).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(n),a=o.apply(e,s),l=null==i?w(a):"function"==typeof i?i.apply(e,s):i,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
6649
|
+
return null===o?this.emptyDieColor:(o=new So(o.r,o.g,o.b,this.calculateOpacity(e,i)),o.toStringWebRGBA())}}class ny{constructor(e){this.computations=new ty(e.dies,e.quadrant,{width:e.canvasSideLength,height:e.canvasSideLength}),this.prerendering=new iy(e.dies,e.colorScale,e.highlightedValues,this.computations.horizontalScale,this.computations.verticalScale,e.colorScaleMode,e.dieLabelsHidden,e.dieLabelsSuffix,e.maxCharacters,this.computations.dieDimensions,this.computations.margin)}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get mainCircleLocation(){return{x:this.computations.containerDimensions.width/2,y:this.computations.containerDimensions.height/2}}}class oy{constructor(e){this.wafermap=e,this.context=e.canvas.getContext("2d"),this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}drawWafer(){this.context.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.context.restore()}renderDies(){let e
|
|
6650
|
+
this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
|
|
6651
|
+
for(const t of this.dies)e||(this.context.fillStyle=t.fillStyle),e&&t.fillStyle!==e.fillStyle&&t.fillStyle&&(this.context.fillStyle=t.fillStyle),this.context.fillRect(t.x,t.y,this.dimensions.width,this.dimensions.height),e=t}renderText(){this.dieSize=this.dimensions.width*this.dimensions.height*(this.wafermap.transform.k||1)
|
|
6652
|
+
const e=this.labelFontSize
|
|
6653
|
+
this.context.font=`${e.toString()}px sans-serif`,this.context.fillStyle="#ffffff",this.context.textAlign="center",this.context.lineCap="butt"
|
|
6654
|
+
const t=this.context.measureText("M")
|
|
6655
|
+
if(this.dieSize>=50)for(const e of this.dies)this.context.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+t.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.context.clearRect(0,0,this.wafermap.canvasSideLength*this.wafermap.transform.k,this.wafermap.canvasSideLength*this.wafermap.transform.k)}scaleCanvas(){this.context.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.context.scale(this.wafermap.transform.k,this.wafermap.transform.k)}}class sy{constructor(e){this.wafermap=e,this.zoomTransform=jw,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(Im(this.wafermap.canvas))}rescale(e){const t=e.transform
|
|
6656
|
+
t.k===this.minScale?(this.zoomTransform=jw,this.zoomBehavior.transform(Im(this.wafermap.canvas),jw)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,n=Ww,o=Kw,s=ex,r=Qw,a=Jw,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Fb,u=df("start","zoom","end"),p=500,g=0,v=10
|
|
6657
|
+
function f(e){e.property("__zoom",Yw).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",S).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new qw(t,e.x,e.y)}function b(e,t,i){var n=t[0]-i[0]*e.k,o=t[1]-i[1]*e.k
|
|
6658
|
+
return n===e.x&&o===e.y?e:new qw(e.k,n,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,i,n){e.on("start.zoom",(function(){y(this,arguments).event(n).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(n).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(n),a=o.apply(e,s),l=null==i?w(a):"function"==typeof i?i.apply(e,s):i,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
6655
6659
|
return function(e){if(1===e)e=u
|
|
6656
6660
|
else{var t=p(e),i=c/t[2]
|
|
6657
|
-
e=new
|
|
6661
|
+
e=new qw(i,l[0]-t[0]*i,l[1]-t[1]*i)}r.zoom(null,e)}}))}function y(e,t,i){return!i&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function C(e,...t){if(n.apply(this,arguments)){var i=y(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=Am(e)
|
|
6658
6662
|
if(i.wheel)i.mouse[0][0]===d[0]&&i.mouse[0][1]===d[1]||(i.mouse[1]=o.invert(i.mouse[0]=d)),clearTimeout(i.wheel)
|
|
6659
6663
|
else{if(o.k===a)return
|
|
6660
|
-
i.mouse=[d,o.invert(d)],
|
|
6661
|
-
|
|
6662
|
-
r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=
|
|
6663
|
-
|
|
6664
|
-
for(
|
|
6665
|
-
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),
|
|
6666
|
-
for(
|
|
6664
|
+
i.mouse=[d,o.invert(d)],cw(this),i.start()}Xw(e),i.wheel=setTimeout(h,150),i.zoom("mouse",s(b(m(o,a),i.mouse[0],i.mouse[1]),i.extent,c))}function h(){i.wheel=null,i.end()}}function k(e,...t){if(!i&&n.apply(this,arguments)){var o=e.currentTarget,r=y(this,t,!0).event(e),a=Im(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=Am(e,o),d=e.clientX,h=e.clientY
|
|
6665
|
+
Vm(e.view),Gw(e),r.mouse=[l,this.__zoom.invert(l)],cw(this),r.start()}function u(e){if(Xw(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
|
|
6666
|
+
r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=Am(e,o),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),Hm(e.view,r.moved),Xw(e),r.event(e).end()}}function _(e,...t){if(n.apply(this,arguments)){var i=this.__zoom,r=Am(e.changedTouches?e.changedTouches[0]:e,this),a=i.invert(r),l=i.k*(e.shiftKey?.5:2),h=s(b(m(i,l),r,a),o.apply(this,t),c)
|
|
6667
|
+
Xw(e),d>0?Im(this).transition().duration(d).call(x,h,r,e):Im(this).call(f.transform,h,r,e)}}function S(i,...o){if(n.apply(this,arguments)){var s,r,a,l,c=i.touches,d=c.length,h=y(this,o,i.changedTouches.length===d).event(i)
|
|
6668
|
+
for(Gw(i),r=0;r<d;++r)l=[l=Am(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
|
|
6669
|
+
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),cw(this),h.start())}}function R(e,...t){if(this.__zooming){var i,n,o,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
|
|
6670
|
+
for(Xw(e),i=0;i<d;++i)o=Am(n=l[i],this),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=o)
|
|
6667
6671
|
if(n=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],g=a.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,f=(f=g[0]-u[0])*f+(f=g[1]-u[1])*f
|
|
6668
6672
|
n=m(n,Math.sqrt(v/f)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+g[0])/2,(u[1]+g[1])/2]}else{if(!a.touch0)return
|
|
6669
6673
|
o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(b(n,o,r),a.extent,c))}}function M(e,...n){if(this.__zooming){var o,s,r=y(this,n).event(e),a=e.changedTouches,l=a.length
|
|
6670
|
-
for(
|
|
6674
|
+
for(Gw(e),i&&clearTimeout(i),i=setTimeout((function(){i=null}),p),o=0;o<l;++o)s=a[o],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
|
|
6671
6675
|
if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
|
|
6672
|
-
else if(r.end(),2===r.taps&&(s=
|
|
6676
|
+
else if(r.end(),2===r.taps&&(s=Am(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=Im(this).on("dblclick.zoom")
|
|
6673
6677
|
c&&c.apply(this,arguments)}}}return f.transform=function(e,t,i,n){var o=e.selection?e.selection():e
|
|
6674
|
-
o.property("__zoom",
|
|
6678
|
+
o.property("__zoom",Yw),e!==o?x(e,t,i,n):o.interrupt().each((function(){y(this,arguments).event(n).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},f.scaleBy=function(e,t,i,n){f.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),i,n)},f.scaleTo=function(e,t,i,n){f.transform(e,(function(){var e=o.apply(this,arguments),n=this.__zoom,r=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i,a=n.invert(r),l="function"==typeof t?t.apply(this,arguments):t
|
|
6675
6679
|
return s(b(m(n,l),r,a),e,c)}),i,n)},f.translateBy=function(e,t,i,n){f.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof i?i.apply(this,arguments):i),o.apply(this,arguments),c)}),null,n)},f.translateTo=function(e,t,i,n,r){f.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?w(e):"function"==typeof n?n.apply(this,arguments):n
|
|
6676
|
-
return s(
|
|
6677
|
-
u.call(e,this.that,new
|
|
6678
|
-
return e===u?f:e},f.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,f):Math.sqrt(g)},f.tapDistance=function(e){return arguments.length?(v=+e,f):v},f}().scaleExtent([1.1,this.getZoomMax(this.
|
|
6679
|
-
|
|
6680
|
-
return e}getZoomMax(e,t){return Math.ceil(t/e*100)}clearCanvas(e,t,i){e.clearRect(0,0,t,i)}scaleCanvas(e,t=0,i=0,n=1){e.translate(t,i),e.scale(n,n)}}class ry extends St{constructor(){super(...arguments),this.quadrant=pf,this.orientation=gf,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=vf,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.renderQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((e=>{const t=e[0]
|
|
6680
|
+
return s(jw.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof i?-i.apply(this,arguments):-i),e,c)}),n,r)},$.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=Im(this.that).datum()
|
|
6681
|
+
u.call(e,this.that,new Zw(e,{sourceEvent:this.sourceEvent,target:f,type:e,transform:this.that.__zoom,dispatch:u}),t)}},f.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:Nw(+e),f):r},f.filter=function(e){return arguments.length?(n="function"==typeof e?e:Nw(!!e),f):n},f.touchable=function(e){return arguments.length?(a="function"==typeof e?e:Nw(!!e),f):a},f.extent=function(e){return arguments.length?(o="function"==typeof e?e:Nw([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),f):o},f.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],f):[l[0],l[1]]},f.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],f):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},f.constrain=function(e){return arguments.length?(s=e,f):s},f.duration=function(e){return arguments.length?(d=+e,f):d},f.interpolate=function(e){return arguments.length?(h=e,f):h},f.on=function(){var e=u.on.apply(u,arguments)
|
|
6682
|
+
return e===u?f:e},f.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,f):Math.sqrt(g)},f.tapDistance=function(e){return arguments.length?(v=+e,f):v},f}().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasSideLength*this.wafermap.canvasSideLength,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasSideLength+this.extentPadding,this.wafermap.canvasSideLength+this.extentPadding]]).filter((e=>Uw(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
|
|
6683
|
+
return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class ry{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=()=>{},this.onMouseOut=()=>{},this.zoomHandler=new sy(e),this.attachEvents()}get selectedDie(){}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class ay extends St{constructor(){super(...arguments),this.quadrant=Yx,this.orientation=Qx,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=Jx,this.renderQueued=!1,this.canvasSideLength=0,this.transform=jw,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.emitDieSelected=e=>{this.$emit("die-selected",{detail:{die:e}})}}connectedCallback(){super.connectedCallback(),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initalizeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}initalizeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new ny(this),this.renderer=new oy(this),this.eventCoordinator=new ry(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
|
|
6681
6684
|
if(void 0===t)return
|
|
6682
6685
|
const{height:i,width:n}=t.contentRect
|
|
6683
|
-
this.canvasSideLength=Math.min(i,n)}))
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
+
this.canvasSideLength=Math.min(i,n)}))
|
|
6687
|
+
return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasSideLengthChanged(){void 0!==this.canvasSideLength&&0!==this.canvasSideLength&&(this.canvas.width=this.canvasSideLength,this.canvas.height=this.canvasSideLength,this.queueRender())}}e([oe],ay.prototype,"quadrant",void 0),e([oe],ay.prototype,"orientation",void 0),e([oe({attribute:"max-characters",converter:ie})],ay.prototype,"maxCharacters",void 0),e([oe({attribute:"die-labels-hidden",mode:"boolean"})],ay.prototype,"dieLabelsHidden",void 0),e([oe({attribute:"die-labels-suffix"})],ay.prototype,"dieLabelsSuffix",void 0),e([oe({attribute:"color-scale-mode"})],ay.prototype,"colorScaleMode",void 0),e([f],ay.prototype,"canvasSideLength",void 0),e([f],ay.prototype,"transform",void 0),e([f],ay.prototype,"highlightedValues",void 0),e([f],ay.prototype,"dies",void 0),e([f],ay.prototype,"colorScale",void 0)
|
|
6688
|
+
const ly=ay.compose({baseName:"wafer-map",template:tx,styles:ix})
|
|
6689
|
+
sn.getOrCreate().withPrefix("nimble").register(ly())}()
|
|
6686
6690
|
//# sourceMappingURL=all-components-bundle.min.js.map
|