@ni/nimble-components 29.3.4 → 29.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +90 -107
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +515 -543
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor/styles.js +0 -1
- package/dist/esm/anchor/styles.js.map +1 -1
- package/dist/esm/anchor-menu-item/styles.js +0 -1
- package/dist/esm/anchor-menu-item/styles.js.map +1 -1
- package/dist/esm/anchor-tab/styles.js +0 -1
- package/dist/esm/anchor-tab/styles.js.map +1 -1
- package/dist/esm/anchor-tabs/styles.js +0 -1
- package/dist/esm/anchor-tabs/styles.js.map +1 -1
- package/dist/esm/anchor-tree-item/styles.js +0 -1
- package/dist/esm/anchor-tree-item/styles.js.map +1 -1
- package/dist/esm/breadcrumb/styles.js +0 -1
- package/dist/esm/breadcrumb/styles.js.map +1 -1
- package/dist/esm/breadcrumb-item/styles.js +0 -1
- package/dist/esm/breadcrumb-item/styles.js.map +1 -1
- package/dist/esm/card-button/styles.js +0 -1
- package/dist/esm/card-button/styles.js.map +1 -1
- package/dist/esm/checkbox/styles.js +0 -1
- package/dist/esm/checkbox/styles.js.map +1 -1
- package/dist/esm/combobox/styles.js +1 -1
- package/dist/esm/combobox/styles.js.map +1 -1
- package/dist/esm/drawer/styles.js +0 -1
- package/dist/esm/drawer/styles.js.map +1 -1
- package/dist/esm/menu/styles.js +1 -1
- package/dist/esm/menu/styles.js.map +1 -1
- package/dist/esm/menu-item/styles.js +0 -1
- package/dist/esm/menu-item/styles.js.map +1 -1
- package/dist/esm/number-field/styles.js +1 -2
- package/dist/esm/number-field/styles.js.map +1 -1
- package/dist/esm/patterns/button/styles.js +1 -4
- package/dist/esm/patterns/button/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/styles.js +0 -3
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/radio/styles.js +0 -1
- package/dist/esm/radio/styles.js.map +1 -1
- package/dist/esm/rich-text/editor/styles.js +0 -3
- package/dist/esm/rich-text/editor/styles.js.map +1 -1
- package/dist/esm/rich-text/viewer/styles.js +0 -1
- package/dist/esm/rich-text/viewer/styles.js.map +1 -1
- package/dist/esm/rich-text-mention/users/view/styles.js +0 -1
- package/dist/esm/rich-text-mention/users/view/styles.js.map +1 -1
- package/dist/esm/switch/styles.js +0 -2
- package/dist/esm/switch/styles.js.map +1 -1
- package/dist/esm/tab/styles.js +0 -1
- package/dist/esm/tab/styles.js.map +1 -1
- package/dist/esm/tab-panel/styles.js +0 -1
- package/dist/esm/tab-panel/styles.js.map +1 -1
- package/dist/esm/table/components/group-row/styles.js +0 -1
- package/dist/esm/table/components/group-row/styles.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +14 -8
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/index.js +2 -2
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/table-update-tracker.js +1 -2
- package/dist/esm/table/models/table-update-tracker.js.map +1 -1
- package/dist/esm/table/testing/table.pageobject.js +1 -1
- package/dist/esm/table/testing/table.pageobject.js.map +1 -1
- package/dist/esm/table-column/anchor/index.d.ts +8 -0
- package/dist/esm/table-column/anchor/index.js +2 -1
- package/dist/esm/table-column/anchor/index.js.map +1 -1
- package/dist/esm/table-column/base/index.d.ts +0 -7
- package/dist/esm/table-column/base/index.js +1 -33
- package/dist/esm/table-column/base/index.js.map +1 -1
- package/dist/esm/table-column/base/models/column-internals.d.ts +5 -1
- package/dist/esm/table-column/base/models/column-internals.js +7 -0
- package/dist/esm/table-column/base/models/column-internals.js.map +1 -1
- package/dist/esm/table-column/date-text/index.d.ts +8 -0
- package/dist/esm/table-column/duration-text/index.d.ts +8 -0
- package/dist/esm/table-column/mapping/index.d.ts +8 -0
- package/dist/esm/table-column/mapping/index.js +2 -1
- package/dist/esm/table-column/mapping/index.js.map +1 -1
- package/dist/esm/table-column/mixins/fractional-width-column.js +2 -12
- package/dist/esm/table-column/mixins/fractional-width-column.js.map +1 -1
- package/dist/esm/table-column/mixins/groupable-column.js +1 -7
- package/dist/esm/table-column/mixins/groupable-column.js.map +1 -1
- package/dist/esm/table-column/mixins/sortable-column.d.ts +17 -0
- package/dist/esm/table-column/mixins/sortable-column.js +52 -0
- package/dist/esm/table-column/mixins/sortable-column.js.map +1 -0
- package/dist/esm/table-column/number-text/index.d.ts +8 -0
- package/dist/esm/table-column/text/index.d.ts +8 -0
- package/dist/esm/table-column/text-base/index.d.ts +8 -0
- package/dist/esm/table-column/text-base/index.js +2 -1
- package/dist/esm/table-column/text-base/index.js.map +1 -1
- package/dist/esm/tabs/styles.js +0 -1
- package/dist/esm/tabs/styles.js.map +1 -1
- package/dist/esm/tabs-toolbar/styles.js +0 -1
- package/dist/esm/tabs-toolbar/styles.js.map +1 -1
- package/dist/esm/text-area/styles.js +0 -1
- package/dist/esm/text-area/styles.js.map +1 -1
- package/dist/esm/text-field/styles.js +0 -1
- package/dist/esm/text-field/styles.js.map +1 -1
- package/dist/esm/tooltip/styles.js +0 -1
- package/dist/esm/tooltip/styles.js.map +1 -1
- package/dist/esm/tree-item/styles.js +0 -1
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/dist/esm/utilities/style/display.d.ts +4 -2
- package/dist/esm/utilities/style/display.js +5 -3
- package/dist/esm/utilities/style/display.js.map +1 -1
- package/package.json +1 -1
|
@@ -1095,7 +1095,7 @@ const e=document.createElement("style"),t=function(){const e=document.querySelec
|
|
|
1095
1095
|
return e?e.getAttribute("content"):null}()
|
|
1096
1096
|
null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e)
|
|
1097
1097
|
try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Gt=!0}catch(e){Gt=!1}finally{document.head.removeChild(e)}return Gt}()?"focus-visible":"focus"
|
|
1098
|
-
class Oo extends mn{}const Ro=e=>`${function(e){return`:host([hidden]){display:none}:host{display:${e}}`}(e)}`,Fo=`:${To}`
|
|
1098
|
+
class Oo extends mn{}const Ro=e=>`${function(e){return`:host([hidden]){display:none}:host{display:${e}}`}(e)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`,Fo=`:${To}`
|
|
1099
1099
|
function No(e,t,n){return isNaN(e)||e<=t?t:e>=n?n:e}function Po(e,t,n){return isNaN(e)||e<=t?0:e>=n?1:e/(n-t)}function Lo(e,t,n){return isNaN(e)?t:t+e*(n-t)}function zo(e,t){const n=Math.pow(10,t)
|
|
1100
1100
|
return Math.round(e*n)/n}class Vo{constructor(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a="number"!=typeof i||isNaN(i)?1:i}static fromObject(e){return!e||isNaN(e.r)||isNaN(e.g)||isNaN(e.b)?null:new Vo(e.r,e.g,e.b,e.a)}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Lo(this.r,0,255))},${Math.round(Lo(this.g,0,255))},${Math.round(Lo(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Lo(this.r,0,255))},${Math.round(Lo(this.g,0,255))},${Math.round(Lo(this.b,0,255))},${No(this.a,0,1)})`}roundToPrecision(e){return new Vo(zo(this.r,e),zo(this.g,e),zo(this.b,e),zo(this.a,e))}clamp(){return new Vo(No(this.r,0,1),No(this.g,0,1),No(this.b,0,1),No(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return function(e){const t=Math.round(No(e,0,255)).toString(16)
|
|
1101
1101
|
return 1===t.length?"0"+t:t}(Lo(e,0,255))}}const Ho={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}},Bo=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,qo=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Uo=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,jo=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i
|
|
@@ -1179,7 +1179,6 @@ default:return t}}function Ed(e){return _d(e,es,"#ff4646",ss)}function Id(e){ret
|
|
|
1179
1179
|
${Ro("inline")}
|
|
1180
1180
|
|
|
1181
1181
|
:host {
|
|
1182
|
-
box-sizing: border-box;
|
|
1183
1182
|
font: ${Ll};
|
|
1184
1183
|
}
|
|
1185
1184
|
|
|
@@ -1342,7 +1341,6 @@ class Hd{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(
|
|
|
1342
1341
|
cursor: pointer;
|
|
1343
1342
|
outline: none;
|
|
1344
1343
|
border: none;
|
|
1345
|
-
box-sizing: border-box;
|
|
1346
1344
|
${""}
|
|
1347
1345
|
vertical-align: middle;
|
|
1348
1346
|
}
|
|
@@ -1352,7 +1350,6 @@ class Hd{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(
|
|
|
1352
1350
|
height: 100%;
|
|
1353
1351
|
width: 100%;
|
|
1354
1352
|
border: ${al} solid transparent;
|
|
1355
|
-
box-sizing: border-box;
|
|
1356
1353
|
color: inherit;
|
|
1357
1354
|
border-radius: inherit;
|
|
1358
1355
|
fill: inherit;
|
|
@@ -1386,10 +1383,9 @@ class Hd{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(
|
|
|
1386
1383
|
width: 100%;
|
|
1387
1384
|
height: 100%;
|
|
1388
1385
|
pointer-events: none;
|
|
1389
|
-
box-sizing: border-box;
|
|
1390
1386
|
outline: 0px solid transparent;
|
|
1391
1387
|
color: transparent;
|
|
1392
|
-
background-clip:
|
|
1388
|
+
background-clip: border-box;
|
|
1393
1389
|
transition: outline ${Cd} ease-in-out;
|
|
1394
1390
|
}
|
|
1395
1391
|
|
|
@@ -1684,7 +1680,6 @@ const Kd=xe`
|
|
|
1684
1680
|
display: grid;
|
|
1685
1681
|
contain: layout;
|
|
1686
1682
|
overflow: visible;
|
|
1687
|
-
box-sizing: border-box;
|
|
1688
1683
|
height: ${tl};
|
|
1689
1684
|
grid-template-columns: 1fr;
|
|
1690
1685
|
column-gap: 8px;
|
|
@@ -1780,7 +1775,6 @@ const Jd=xe`
|
|
|
1780
1775
|
|
|
1781
1776
|
:host {
|
|
1782
1777
|
position: relative;
|
|
1783
|
-
box-sizing: border-box;
|
|
1784
1778
|
font: ${Gc};
|
|
1785
1779
|
height: ${tl};
|
|
1786
1780
|
color: ${wc};
|
|
@@ -1915,7 +1909,6 @@ const th=xe`
|
|
|
1915
1909
|
${Ro("grid")}
|
|
1916
1910
|
|
|
1917
1911
|
:host {
|
|
1918
|
-
box-sizing: border-box;
|
|
1919
1912
|
grid-template-columns: auto 1fr;
|
|
1920
1913
|
grid-template-rows: auto 1fr;
|
|
1921
1914
|
}
|
|
@@ -2006,7 +1999,6 @@ const oh=ke`
|
|
|
2006
1999
|
.positioning-region {
|
|
2007
2000
|
display: flex;
|
|
2008
2001
|
position: relative;
|
|
2009
|
-
box-sizing: border-box;
|
|
2010
2002
|
height: calc(${ll} * 2);
|
|
2011
2003
|
width: 100%;
|
|
2012
2004
|
}
|
|
@@ -2420,7 +2412,6 @@ const Sm=xe`
|
|
|
2420
2412
|
${Ro("inline-block")}
|
|
2421
2413
|
|
|
2422
2414
|
:host {
|
|
2423
|
-
box-sizing: border-box;
|
|
2424
2415
|
font: ${Ll};
|
|
2425
2416
|
--ni-private-breadcrumb-link-font-color: ${zl};
|
|
2426
2417
|
--ni-private-breadcrumb-link-active-font-color: ${Wl};
|
|
@@ -2460,7 +2451,6 @@ const _m=xe`
|
|
|
2460
2451
|
|
|
2461
2452
|
:host {
|
|
2462
2453
|
height: ${tl};
|
|
2463
|
-
box-sizing: border-box;
|
|
2464
2454
|
padding-left: calc(4px - ${al});
|
|
2465
2455
|
|
|
2466
2456
|
${""}
|
|
@@ -2619,7 +2609,6 @@ const Tm=xe`
|
|
|
2619
2609
|
cursor: pointer;
|
|
2620
2610
|
outline: none;
|
|
2621
2611
|
border: none;
|
|
2622
|
-
box-sizing: border-box;
|
|
2623
2612
|
transition: box-shadow ${Cd};
|
|
2624
2613
|
}
|
|
2625
2614
|
|
|
@@ -2803,7 +2792,6 @@ const Fm=xe`
|
|
|
2803
2792
|
.control {
|
|
2804
2793
|
width: calc(${tl} / 2);
|
|
2805
2794
|
height: calc(${tl} / 2);
|
|
2806
|
-
box-sizing: border-box;
|
|
2807
2795
|
flex-shrink: 0;
|
|
2808
2796
|
border: ${al} solid ${La};
|
|
2809
2797
|
padding: 2px;
|
|
@@ -3021,7 +3009,6 @@ const Um="nimble-icon-arrow-expander-down",jm="above",Wm="underline",Gm="outline
|
|
|
3021
3009
|
${Ro("inline-flex")}
|
|
3022
3010
|
|
|
3023
3011
|
:host {
|
|
3024
|
-
box-sizing: border-box;
|
|
3025
3012
|
color: ${wc};
|
|
3026
3013
|
font: ${yc};
|
|
3027
3014
|
height: ${tl};
|
|
@@ -3099,7 +3086,6 @@ const Um="nimble-icon-arrow-expander-down",jm="above",Wm="underline",Gm="outline
|
|
|
3099
3086
|
|
|
3100
3087
|
.control {
|
|
3101
3088
|
align-items: center;
|
|
3102
|
-
box-sizing: border-box;
|
|
3103
3089
|
cursor: pointer;
|
|
3104
3090
|
display: flex;
|
|
3105
3091
|
min-height: 100%;
|
|
@@ -3126,7 +3112,6 @@ const Um="nimble-icon-arrow-expander-down",jm="above",Wm="underline",Gm="outline
|
|
|
3126
3112
|
}
|
|
3127
3113
|
|
|
3128
3114
|
.listbox {
|
|
3129
|
-
box-sizing: border-box;
|
|
3130
3115
|
display: inline-flex;
|
|
3131
3116
|
flex-direction: column;
|
|
3132
3117
|
overflow-y: auto;
|
|
@@ -3327,7 +3312,7 @@ const Um="nimble-icon-arrow-expander-down",jm="above",Wm="underline",Gm="outline
|
|
|
3327
3312
|
border-right: 2px solid rgba(${za}, 0.15);
|
|
3328
3313
|
height: calc(${tl} - 12px);
|
|
3329
3314
|
align-self: center;
|
|
3330
|
-
|
|
3315
|
+
margin-left: 4px;
|
|
3331
3316
|
}
|
|
3332
3317
|
|
|
3333
3318
|
.dropdown-button {
|
|
@@ -3659,7 +3644,6 @@ const dg=xe`
|
|
|
3659
3644
|
}
|
|
3660
3645
|
|
|
3661
3646
|
.dialog-contents {
|
|
3662
|
-
box-sizing: border-box;
|
|
3663
3647
|
display: flex;
|
|
3664
3648
|
flex-direction: column;
|
|
3665
3649
|
position: absolute;
|
|
@@ -4218,7 +4202,7 @@ const Rv=xe`
|
|
|
4218
4202
|
}
|
|
4219
4203
|
|
|
4220
4204
|
::slotted(hr) {
|
|
4221
|
-
box-sizing:
|
|
4205
|
+
box-sizing: border-box;
|
|
4222
4206
|
height: 2px;
|
|
4223
4207
|
margin: ${il};
|
|
4224
4208
|
border: none;
|
|
@@ -4337,7 +4321,6 @@ const Hv="nimble-menu-button",Bv=xe`
|
|
|
4337
4321
|
:host {
|
|
4338
4322
|
contain: layout;
|
|
4339
4323
|
overflow: visible;
|
|
4340
|
-
box-sizing: border-box;
|
|
4341
4324
|
height: ${tl};
|
|
4342
4325
|
grid-template-columns: 1fr;
|
|
4343
4326
|
column-gap: 8px;
|
|
@@ -4510,7 +4493,6 @@ const Uv="underline",jv="outline",Wv="block",Gv=xe`
|
|
|
4510
4493
|
}
|
|
4511
4494
|
|
|
4512
4495
|
.root {
|
|
4513
|
-
box-sizing: border-box;
|
|
4514
4496
|
position: relative;
|
|
4515
4497
|
display: flex;
|
|
4516
4498
|
flex-direction: row;
|
|
@@ -4625,7 +4607,7 @@ const Uv="underline",jv="outline",Wv="block",Gv=xe`
|
|
|
4625
4607
|
|
|
4626
4608
|
.error-icon {
|
|
4627
4609
|
order: 1;
|
|
4628
|
-
|
|
4610
|
+
margin-right: ${il};
|
|
4629
4611
|
}
|
|
4630
4612
|
`.withBehaviors(Bd(Uv,xe`
|
|
4631
4613
|
.root {
|
|
@@ -4786,7 +4768,6 @@ const Xv=xe`
|
|
|
4786
4768
|
position: relative;
|
|
4787
4769
|
width: calc(${tl} / 2);
|
|
4788
4770
|
height: calc(${tl} / 2);
|
|
4789
|
-
box-sizing: border-box;
|
|
4790
4771
|
flex-shrink: 0;
|
|
4791
4772
|
border: ${al} solid ${La};
|
|
4792
4773
|
border-radius: 100%;
|
|
@@ -7392,7 +7373,6 @@ const O$="nimble-rich-text-mention-listbox",R$=G`
|
|
|
7392
7373
|
}
|
|
7393
7374
|
|
|
7394
7375
|
.container {
|
|
7395
|
-
box-sizing: border-box;
|
|
7396
7376
|
display: flex;
|
|
7397
7377
|
flex-direction: column;
|
|
7398
7378
|
position: relative;
|
|
@@ -7472,7 +7452,6 @@ const O$="nimble-rich-text-mention-listbox",R$=G`
|
|
|
7472
7452
|
padding: 8px;
|
|
7473
7453
|
${""}
|
|
7474
7454
|
padding-right: calc(${ll});
|
|
7475
|
-
box-sizing: border-box;
|
|
7476
7455
|
position: relative;
|
|
7477
7456
|
color: inherit;
|
|
7478
7457
|
}
|
|
@@ -7571,7 +7550,6 @@ const O$="nimble-rich-text-mention-listbox",R$=G`
|
|
|
7571
7550
|
${y$}::part(positioning-region) {
|
|
7572
7551
|
background: transparent;
|
|
7573
7552
|
padding-right: 8px;
|
|
7574
|
-
box-sizing: border-box;
|
|
7575
7553
|
gap: 0px;
|
|
7576
7554
|
height: var(--ni-private-rich-text-editor-footer-section-height);
|
|
7577
7555
|
}
|
|
@@ -8876,7 +8854,6 @@ const dT=G`
|
|
|
8876
8854
|
.viewer {
|
|
8877
8855
|
font: inherit;
|
|
8878
8856
|
outline: none;
|
|
8879
|
-
box-sizing: border-box;
|
|
8880
8857
|
position: relative;
|
|
8881
8858
|
color: inherit;
|
|
8882
8859
|
overflow-wrap: anywhere;
|
|
@@ -9477,7 +9454,6 @@ const ET="nimble-spinner",IT=xe`
|
|
|
9477
9454
|
display: flex;
|
|
9478
9455
|
height: var(--ni-private-switch-height);
|
|
9479
9456
|
width: calc(var(--ni-private-switch-height) * 2);
|
|
9480
|
-
box-sizing: border-box;
|
|
9481
9457
|
background-color: ${Pa};
|
|
9482
9458
|
border-radius: calc(var(--ni-private-switch-height) / 2);
|
|
9483
9459
|
align-items: center;
|
|
@@ -9506,7 +9482,6 @@ const ET="nimble-spinner",IT=xe`
|
|
|
9506
9482
|
justify-content: center;
|
|
9507
9483
|
align-items: center;
|
|
9508
9484
|
background-color: var(--ni-private-switch-indicator-background-color);
|
|
9509
|
-
box-sizing: border-box;
|
|
9510
9485
|
width: var(--ni-private-switch-indicator-size);
|
|
9511
9486
|
height: var(--ni-private-switch-indicator-size);
|
|
9512
9487
|
border-radius: calc(var(--ni-private-switch-indicator-size) / 2);
|
|
@@ -9632,7 +9607,6 @@ const TT=xe`
|
|
|
9632
9607
|
|
|
9633
9608
|
:host {
|
|
9634
9609
|
position: relative;
|
|
9635
|
-
box-sizing: border-box;
|
|
9636
9610
|
font: ${Gc};
|
|
9637
9611
|
height: ${tl};
|
|
9638
9612
|
color: ${wc};
|
|
@@ -9738,7 +9712,6 @@ const RT=xe`
|
|
|
9738
9712
|
${Ro("block")}
|
|
9739
9713
|
|
|
9740
9714
|
:host {
|
|
9741
|
-
box-sizing: border-box;
|
|
9742
9715
|
font: ${yc};
|
|
9743
9716
|
color: ${wc};
|
|
9744
9717
|
padding-top: ${sl};
|
|
@@ -10138,9 +10111,9 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof XO))throw new Error(
|
|
|
10138
10111
|
>
|
|
10139
10112
|
</${e}>
|
|
10140
10113
|
`)
|
|
10141
|
-
class JO{constructor(e){this.uniqueId=wa("table-column-slot"),this.sortOperation=UO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=GO,this.minPixelWidth=WO,this.resizingDisabled=!1,this.hideHeaderIndicators=!1,this.currentFractionalWidth=GO,this.currentSortDirection=zO.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=YO(e.cellViewTag),this.groupHeaderViewTemplate=KO(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??UO,this.validator=e.validator}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function QO(e,...t){for(const n of t)if(e===n)return!0
|
|
10142
|
-
return!1}e([g],JO.prototype,"columnConfig",void 0),e([g],JO.prototype,"operandDataRecordFieldName",void 0),e([g],JO.prototype,"sortOperation",void 0),e([g],JO.prototype,"dataRecordFieldNames",void 0),e([g],JO.prototype,"groupingDisabled",void 0),e([g],JO.prototype,"groupIndex",void 0),e([g],JO.prototype,"pixelWidth",void 0),e([g],JO.prototype,"fractionalWidth",void 0),e([g],JO.prototype,"minPixelWidth",void 0),e([g],JO.prototype,"resizingDisabled",void 0),e([g],JO.prototype,"hideHeaderIndicators",void 0),e([g],JO.prototype,"currentFractionalWidth",void 0),e([g],JO.prototype,"currentPixelWidth",void 0),e([g],JO.prototype,"currentSortIndex",void 0),e([g],JO.prototype,"currentSortDirection",void 0)
|
|
10143
|
-
class eR extends Vt{constructor(){super(...arguments),this.columnInternals=new JO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.
|
|
10114
|
+
class JO{constructor(e){this.uniqueId=wa("table-column-slot"),this.sortOperation=UO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=GO,this.minPixelWidth=WO,this.resizingDisabled=!1,this.hideHeaderIndicators=!1,this.currentFractionalWidth=GO,this.sortingDisabled=!1,this.currentSortDirection=zO.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=YO(e.cellViewTag),this.groupHeaderViewTemplate=KO(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??UO,this.validator=e.validator}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function QO(e,...t){for(const n of t)if(e===n)return!0
|
|
10115
|
+
return!1}e([g],JO.prototype,"columnConfig",void 0),e([g],JO.prototype,"operandDataRecordFieldName",void 0),e([g],JO.prototype,"sortOperation",void 0),e([g],JO.prototype,"dataRecordFieldNames",void 0),e([g],JO.prototype,"groupingDisabled",void 0),e([g],JO.prototype,"groupIndex",void 0),e([g],JO.prototype,"pixelWidth",void 0),e([g],JO.prototype,"fractionalWidth",void 0),e([g],JO.prototype,"minPixelWidth",void 0),e([g],JO.prototype,"resizingDisabled",void 0),e([g],JO.prototype,"hideHeaderIndicators",void 0),e([g],JO.prototype,"currentFractionalWidth",void 0),e([g],JO.prototype,"currentPixelWidth",void 0),e([g],JO.prototype,"sortingDisabled",void 0),e([g],JO.prototype,"currentSortIndex",void 0),e([g],JO.prototype,"currentSortDirection",void 0)
|
|
10116
|
+
class eR extends Vt{constructor(){super(...arguments),this.columnInternals=new JO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validator.isColumnValid}get validity(){return this.columnInternals.validator.getValidity()}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}}e([le({attribute:"column-id"})],eR.prototype,"columnId",void 0),e([le({attribute:"action-menu-slot"})],eR.prototype,"actionMenuSlot",void 0),e([le({attribute:"action-menu-label"})],eR.prototype,"actionMenuLabel",void 0),e([le({attribute:"column-hidden",mode:"boolean"})],eR.prototype,"columnHidden",void 0),e([g],eR.prototype,"hasOverflow",void 0)
|
|
10144
10117
|
class tR{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
|
|
10145
10118
|
return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==VO.none||"string"==typeof n
|
|
10146
10119
|
return this.idFieldNameNotConfigured=!!i&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
|
|
@@ -10423,7 +10396,6 @@ const aR="nimble-table-header",lR=xe`
|
|
|
10423
10396
|
background-color: ${Oa};
|
|
10424
10397
|
height: calc(${tl} + 2 * ${al});
|
|
10425
10398
|
border-top: calc(2 * ${al}) solid transparent;
|
|
10426
|
-
box-sizing: border-box;
|
|
10427
10399
|
background-clip: padding-box;
|
|
10428
10400
|
}
|
|
10429
10401
|
|
|
@@ -10432,7 +10404,6 @@ const aR="nimble-table-header",lR=xe`
|
|
|
10432
10404
|
width: 100%;
|
|
10433
10405
|
height: ${tl};
|
|
10434
10406
|
pointer-events: none;
|
|
10435
|
-
box-sizing: border-box;
|
|
10436
10407
|
bottom: 0px;
|
|
10437
10408
|
position: absolute;
|
|
10438
10409
|
}
|
|
@@ -10451,9 +10422,13 @@ const aR="nimble-table-header",lR=xe`
|
|
|
10451
10422
|
|
|
10452
10423
|
.expand-collapse-button {
|
|
10453
10424
|
flex: 0 0 auto;
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
${
|
|
10425
|
+
margin-left: max(
|
|
10426
|
+
calc(
|
|
10427
|
+
${ol} +
|
|
10428
|
+
(var(--ni-private-table-row-indent-level) - 1) *
|
|
10429
|
+
${tl}
|
|
10430
|
+
),
|
|
10431
|
+
0px
|
|
10457
10432
|
);
|
|
10458
10433
|
}
|
|
10459
10434
|
|
|
@@ -10465,9 +10440,13 @@ const aR="nimble-table-header",lR=xe`
|
|
|
10465
10440
|
display: flex;
|
|
10466
10441
|
align-items: center;
|
|
10467
10442
|
justify-content: center;
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
${
|
|
10443
|
+
margin-left: max(
|
|
10444
|
+
calc(
|
|
10445
|
+
${ol} +
|
|
10446
|
+
(var(--ni-private-table-row-indent-level) - 1) *
|
|
10447
|
+
${tl}
|
|
10448
|
+
),
|
|
10449
|
+
0px
|
|
10471
10450
|
);
|
|
10472
10451
|
}
|
|
10473
10452
|
|
|
@@ -10687,7 +10666,6 @@ const bR="nimble-table-row",yR=xe`
|
|
|
10687
10666
|
align-items: center;
|
|
10688
10667
|
height: calc(${tl} + 2 * ${al});
|
|
10689
10668
|
border-top: calc(2 * ${al}) solid ${Oa};
|
|
10690
|
-
box-sizing: border-box;
|
|
10691
10669
|
grid-template-columns:
|
|
10692
10670
|
calc(
|
|
10693
10671
|
${tl} *
|
|
@@ -11097,7 +11075,7 @@ for(let e=0;e<this.visibleColumns.length&&n<this.gridSizedColumns.length;e++){co
|
|
|
11097
11075
|
i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],HR.prototype,"isColumnBeingSized",void 0),e([g],HR.prototype,"activeColumnIndex",void 0),e([g],HR.prototype,"activeColumnDivider",void 0)
|
|
11098
11076
|
const BR=(e,...t)=>{for(const n of t)if(e===n)return!0
|
|
11099
11077
|
return!1},qR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
|
|
11100
|
-
class UR extends aI{constructor(e){super(qR),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){BR(e,"columnId")?this.track("columnIds"):QO(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):
|
|
11078
|
+
class UR extends aI{constructor(e){super(qR),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){BR(e,"columnId")?this.track("columnIds"):QO(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):QO(e,"sortingDisabled","currentSortDirection","currentSortIndex")?this.track("columnSort"):BR(e,"columnHidden")||QO(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth","resizingDisabled")?this.track("columnWidths"):BR(e,"actionMenuSlot")?this.track("actionMenuSlots"):QO(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class jR{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===BO?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
|
|
11101
11079
|
const t=this.tanStackTable.getState().rowSelection,n=[]
|
|
11102
11080
|
if(Object.entries(t).forEach((([e,t])=>{t&&n.push(e)})),1===n.length&&n[0]===e.id)return!1
|
|
11103
11081
|
const i={}
|
|
@@ -11174,7 +11152,7 @@ const t=this.calculateTanStackData(e)
|
|
|
11174
11152
|
this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==VO.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}async setRecordHierarchyOptions(e){await this.processPendingUpdates()
|
|
11175
11153
|
const t=structuredClone(e),n=this.tableValidator.getOptionsWithPresentIds(t)
|
|
11176
11154
|
this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof eR||e instanceof JO)&&"string"==typeof t?this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof tF&&"isColumnValid"===t?this.tableValidator.validateColumnConfigurations(this.columns):e instanceof HR&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
|
|
11177
|
-
this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getRightDividerIndex(t))}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getLeftDividerIndex(t))}getLeftDividerIndex(e){return 2*e-1}getRightDividerIndex(e){return 2*e}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.sortingDisabled)return
|
|
11155
|
+
this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getRightDividerIndex(t))}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,this.getLeftDividerIndex(t))}getLeftDividerIndex(e){return 2*e-1}getRightDividerIndex(e){return 2*e}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.columnInternals.sortingDisabled)return
|
|
11178
11156
|
const n=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=n.indexOf(e),o=i>-1,s=e.columnInternals.currentSortDirection
|
|
11179
11157
|
let r=zO.ascending
|
|
11180
11158
|
o?s===zO.descending?(n.splice(i,1),r=zO.none,e.columnInternals.currentSortIndex=void 0):r=zO.descending:n.push(e),e.columnInternals.currentSortDirection=r
|
|
@@ -11196,7 +11174,7 @@ t.subscribe(this),this.columnNotifiers.push(t)
|
|
|
11196
11174
|
const n=m.getNotifier(e.columnInternals)
|
|
11197
11175
|
n.subscribe(this),this.columnNotifiers.push(n)
|
|
11198
11176
|
const i=m.getNotifier(e.columnInternals.validator)
|
|
11199
|
-
i.subscribe(this),this.columnNotifiers.push(i)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==zO.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await hI(this.childItems),this.columns=this.childItems.filter((e=>e instanceof eR))}updateTanStack(){const e={state:{}}
|
|
11177
|
+
i.subscribe(this),this.columnNotifiers.push(i)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.columnInternals.sortingDisabled&&e.columnInternals.currentSortDirection!==zO.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await hI(this.childItems),this.columns=this.childItems.filter((e=>e instanceof eR))}updateTanStack(){const e={state:{}}
|
|
11200
11178
|
if(this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset(),this.expansionManager.resetHierarchyOptions()),this.tableUpdateTracker.updateRowParentIds&&this.expansionManager.setHierarchyEnabled(this.isHierarchyEnabled()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===VO.multiple,e.enableSubRowSelection=this.selectionMode===VO.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
|
|
11201
11179
|
n.state&&(e.state.rowSelection=n.state.rowSelection),e.data=n.data}else e.data=[...this.table.options.data]
|
|
11202
11180
|
this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState()),(this.tableUpdateTracker.updateRowIds||this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows)&&(e.state.expanded=!0,this.expansionManager.resetExpansionState()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
|
|
@@ -11236,7 +11214,7 @@ const oF=xe`
|
|
|
11236
11214
|
>
|
|
11237
11215
|
<slot ${Pe("contentSlot")}></slot>
|
|
11238
11216
|
</span>`
|
|
11239
|
-
function rF(e){class t extends e{fractionalWidthChanged(){
|
|
11217
|
+
function rF(e){class t extends e{fractionalWidthChanged(){this.columnInternals.fractionalWidth=this.fractionalWidth??GO}minPixelWidthChanged(){this.columnInternals.minPixelWidth=this.minPixelWidth??WO}}return le({attribute:"fractional-width",converter:re})(t.prototype,"fractionalWidth"),le({attribute:"min-pixel-width",converter:re})(t.prototype,"minPixelWidth"),t}function aF(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){this.columnInternals.groupIndex=this.groupIndex??void 0}}return le({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),le({attribute:"group-index",converter:re})(t.prototype,"groupIndex"),t}function lF(e){class t extends e{}return le({attribute:"placeholder"})(t.prototype,"placeholder"),t}const cF=xe`
|
|
11240
11218
|
${Ro("flex")}
|
|
11241
11219
|
|
|
11242
11220
|
:host {
|
|
@@ -11323,17 +11301,17 @@ const fF=G`
|
|
|
11323
11301
|
const gF=class extends pF{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:fF,styles:mF})
|
|
11324
11302
|
yi.getOrCreate().withPrefix("nimble").register(gF())
|
|
11325
11303
|
const vF="nimble-table-column-text-group-header-view"
|
|
11326
|
-
|
|
11327
|
-
const yF
|
|
11328
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11329
|
-
class
|
|
11330
|
-
try{return e.format(t)}catch(e){return""}}e([le({attribute:"field-name"})],
|
|
11331
|
-
const
|
|
11332
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11333
|
-
const
|
|
11304
|
+
function bF(e){class t extends e{constructor(){super(...arguments),this.sortingDisabled=!1,this.sortDirection=zO.none}sortingDisabledChanged(){this.columnInternals.sortingDisabled=this.sortingDisabled,this.sortingDisabled?(this.columnInternals.currentSortDirection=zO.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex??void 0)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex??void 0)}}return le({attribute:"sorting-disabled",mode:"boolean"})(t.prototype,"sortingDisabled"),le({attribute:"sort-index",converter:re})(t.prototype,"sortIndex"),le({attribute:"sort-direction"})(t.prototype,"sortDirection"),t}class yF extends(aF(rF(lF(bF(eR))))){constructor(){super(...arguments),this.underlineHidden=!1}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:vF,delegatedEvents:["click"],sortOperation:jO,validator:new tF([])}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download,placeholder:this.placeholder}}}e([le({attribute:"label-field-name"})],yF.prototype,"labelFieldName",void 0),e([le({attribute:"href-field-name"})],yF.prototype,"hrefFieldName",void 0),e([le],yF.prototype,"appearance",void 0),e([le({attribute:"underline-hidden",mode:"boolean"})],yF.prototype,"underlineHidden",void 0),e([le],yF.prototype,"hreflang",void 0),e([le],yF.prototype,"ping",void 0),e([le],yF.prototype,"referrerpolicy",void 0),e([le],yF.prototype,"rel",void 0),e([le],yF.prototype,"target",void 0),e([le],yF.prototype,"type",void 0),e([le],yF.prototype,"download",void 0)
|
|
11305
|
+
const wF=yF.compose({baseName:"table-column-anchor",template:sF,styles:oF})
|
|
11306
|
+
yi.getOrCreate().withPrefix("nimble").register(wF())
|
|
11307
|
+
class xF extends eR{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function CF(e){return aF(rF(lF(bF(e))))}function kF(e,t){if("number"!=typeof t)return""
|
|
11308
|
+
try{return e.format(t)}catch(e){return""}}e([le({attribute:"field-name"})],xF.prototype,"fieldName",void 0)
|
|
11309
|
+
const SF=class extends pF{updateText(){this.columnConfig?this.text=kF(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:fF,styles:mF})
|
|
11310
|
+
yi.getOrCreate().withPrefix("nimble").register(SF())
|
|
11311
|
+
const $F="left",MF="right",_F=G`
|
|
11334
11312
|
<template
|
|
11335
11313
|
class="
|
|
11336
|
-
${e=>e.alignment
|
|
11314
|
+
${e=>e.alignment===MF?"right-align":""}
|
|
11337
11315
|
${e=>e.isPlaceholder?"placeholder":""}
|
|
11338
11316
|
"
|
|
11339
11317
|
>
|
|
@@ -11344,7 +11322,7 @@ const SF="left",$F="right",MF=G`
|
|
|
11344
11322
|
${e=>e.text}
|
|
11345
11323
|
</span>
|
|
11346
11324
|
</template>
|
|
11347
|
-
`,
|
|
11325
|
+
`,EF=xe`
|
|
11348
11326
|
${Ro("flex")}
|
|
11349
11327
|
|
|
11350
11328
|
:host {
|
|
@@ -11368,22 +11346,22 @@ const SF="left",$F="right",MF=G`
|
|
|
11368
11346
|
color: ${pc};
|
|
11369
11347
|
}
|
|
11370
11348
|
`
|
|
11371
|
-
class
|
|
11372
|
-
return"string"==typeof t&&null==e?(this.text=t,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}e([g],
|
|
11373
|
-
const
|
|
11374
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11375
|
-
const
|
|
11376
|
-
class
|
|
11377
|
-
class
|
|
11349
|
+
class IF extends XO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=$F,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const e=this.cellRecord?.value,t=this.columnConfig?.placeholder
|
|
11350
|
+
return"string"==typeof t&&null==e?(this.text=t,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}e([g],IF.prototype,"hasOverflow",void 0),e([g],IF.prototype,"text",void 0),e([g],IF.prototype,"alignment",void 0),e([g],IF.prototype,"isPlaceholder",void 0)
|
|
11351
|
+
const DF=class extends IF{updateText(){this.columnConfig?this.text=kF(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:_F,styles:EF})
|
|
11352
|
+
yi.getOrCreate().withPrefix("nimble").register(DF())
|
|
11353
|
+
const AF=void 0,TF=["invalidCustomOptionsCombination"]
|
|
11354
|
+
class OF extends tF{constructor(){super(TF)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const RF={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
|
|
11355
|
+
class FF extends(CF(xF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ma.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ma.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:UO,validator:new OF}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
|
|
11378
11356
|
if(e){const t={formatter:e,placeholder:this.placeholder}
|
|
11379
11357
|
this.columnInternals.columnConfig=t,this.columnInternals.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.columnInternals.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
|
|
11380
|
-
e=this.format===
|
|
11381
|
-
try{return new Intl.DateTimeFormat(Ma.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([le],
|
|
11382
|
-
const FF
|
|
11383
|
-
yi.getOrCreate().withPrefix("nimble").register(FF())
|
|
11384
|
-
const NF=class extends EF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:MF,styles:_F})
|
|
11358
|
+
e=this.format===AF?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
|
|
11359
|
+
try{return new Intl.DateTimeFormat(Ma.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([le],FF.prototype,"format",void 0),e([le({attribute:"custom-locale-matcher"})],FF.prototype,"customLocaleMatcher",void 0),e([le({attribute:"custom-weekday"})],FF.prototype,"customWeekday",void 0),e([le({attribute:"custom-era"})],FF.prototype,"customEra",void 0),e([le({attribute:"custom-year"})],FF.prototype,"customYear",void 0),e([le({attribute:"custom-month"})],FF.prototype,"customMonth",void 0),e([le({attribute:"custom-day"})],FF.prototype,"customDay",void 0),e([le({attribute:"custom-hour"})],FF.prototype,"customHour",void 0),e([le({attribute:"custom-minute"})],FF.prototype,"customMinute",void 0),e([le({attribute:"custom-second"})],FF.prototype,"customSecond",void 0),e([le({attribute:"custom-time-zone-name"})],FF.prototype,"customTimeZoneName",void 0),e([le({attribute:"custom-format-matcher"})],FF.prototype,"customFormatMatcher",void 0),e([le({attribute:"custom-hour12",converter:RF})],FF.prototype,"customHour12",void 0),e([le({attribute:"custom-time-zone"})],FF.prototype,"customTimeZone",void 0),e([le({attribute:"custom-calendar"})],FF.prototype,"customCalendar",void 0),e([le({attribute:"custom-day-period"})],FF.prototype,"customDayPeriod",void 0),e([le({attribute:"custom-numbering-system"})],FF.prototype,"customNumberingSystem",void 0),e([le({attribute:"custom-date-style"})],FF.prototype,"customDateStyle",void 0),e([le({attribute:"custom-time-style"})],FF.prototype,"customTimeStyle",void 0),e([le({attribute:"custom-hour-cycle"})],FF.prototype,"customHourCycle",void 0)
|
|
11360
|
+
const NF=FF.compose({baseName:"table-column-date-text",template:sF,styles:oF})
|
|
11385
11361
|
yi.getOrCreate().withPrefix("nimble").register(NF())
|
|
11386
|
-
class
|
|
11362
|
+
const PF=class extends IF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:_F,styles:EF})
|
|
11363
|
+
yi.getOrCreate().withPrefix("nimble").register(PF())
|
|
11364
|
+
class LF{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
|
|
11387
11365
|
const t=[],n=1e3,i=6e4,o=36e5,s=864e5,r=e/s
|
|
11388
11366
|
let a=e
|
|
11389
11367
|
const l=Math.floor(r)
|
|
@@ -11396,37 +11374,37 @@ if(a-=d*i,d){const e=this.minutesFormatter.format(d)
|
|
|
11396
11374
|
t.push(e)}const h=a/n,u=0===h?0:h%60
|
|
11397
11375
|
if(e<1&&0!==h)return this.scientificSecondsFormatter.format(h)
|
|
11398
11376
|
if(u>=5e-4||0===u&&0===t.length){const e=this.secondsFormatter.format(u)
|
|
11399
|
-
t.push(e)}return t.join(", ")}}const
|
|
11400
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11401
|
-
class
|
|
11402
|
-
this.columnInternals.columnConfig=e}}const VF
|
|
11403
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11404
|
-
const
|
|
11377
|
+
t.push(e)}return t.join(", ")}}const zF=class extends pF{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:fF,styles:mF})
|
|
11378
|
+
yi.getOrCreate().withPrefix("nimble").register(zF())
|
|
11379
|
+
class VF extends(CF(xF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ma.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ma.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:UO,validator:new tF([])}}updateColumnConfig(){const e={formatter:new LF(Ma.getValueFor(this)),placeholder:this.placeholder}
|
|
11380
|
+
this.columnInternals.columnConfig=e}}const HF=VF.compose({baseName:"table-column-duration-text",template:sF,styles:oF})
|
|
11381
|
+
yi.getOrCreate().withPrefix("nimble").register(HF())
|
|
11382
|
+
const BF=(e,t)=>{if("number"===t){const t=re.fromView(e)
|
|
11405
11383
|
return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
|
|
11406
|
-
class
|
|
11407
|
-
return this.mappings.forEach((t=>{const n=
|
|
11384
|
+
class qF extends eR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Cv&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
|
|
11385
|
+
return this.mappings.forEach((t=>{const n=BF(t.key,this.keyType)
|
|
11408
11386
|
if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
|
|
11409
11387
|
const i=this.createMappingConfig(t)
|
|
11410
11388
|
e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
|
|
11411
11389
|
for(const e of this.mappings){const t=m.getNotifier(e)
|
|
11412
|
-
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],
|
|
11413
|
-
const
|
|
11390
|
+
t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],qF.prototype,"mappings",void 0),e([le({attribute:"field-name"})],qF.prototype,"fieldName",void 0),e([le({attribute:"key-type"})],qF.prototype,"keyType",void 0)
|
|
11391
|
+
const UF=xe`
|
|
11414
11392
|
${oF}
|
|
11415
11393
|
|
|
11416
11394
|
slot[name='mapping'] {
|
|
11417
11395
|
display: none;
|
|
11418
11396
|
}
|
|
11419
|
-
`,
|
|
11420
|
-
class
|
|
11397
|
+
`,jF=G`${sF}<slot ${Ye("mappings")} name="mapping"></slot>`
|
|
11398
|
+
class WF extends tF{constructor(e){super(e)}validate(e,t){this.untrackAll()
|
|
11421
11399
|
const n=e.map((e=>e.key))
|
|
11422
|
-
this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===
|
|
11423
|
-
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>
|
|
11400
|
+
this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===BF(e,t)))
|
|
11401
|
+
this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>BF(e,t))),i=new Set(n).size!==n.length
|
|
11424
11402
|
this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
|
|
11425
|
-
this.setConditionValue("missingKeyValue",t)}}const
|
|
11426
|
-
class
|
|
11427
|
-
this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(
|
|
11428
|
-
this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(
|
|
11429
|
-
this.setConditionValue("unsupportedMappingType",!t)}}const
|
|
11403
|
+
this.setConditionValue("missingKeyValue",t)}}const GF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
|
|
11404
|
+
class ZF extends WF{constructor(){super(GF)}static isIconMappingElement(e){return e instanceof Ev}static isSupportedMappingElement(e){return e instanceof Ev||e instanceof Dv||e instanceof Tv||e instanceof $v}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(ZF.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
|
|
11405
|
+
this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(ZF.isSupportedMappingElement).some((e=>void 0===e.text))
|
|
11406
|
+
this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(ZF.isSupportedMappingElement)
|
|
11407
|
+
this.setConditionValue("unsupportedMappingType",!t)}}const KF=xe`
|
|
11430
11408
|
${Ro("inline-flex")}
|
|
11431
11409
|
|
|
11432
11410
|
:host {
|
|
@@ -11448,7 +11426,7 @@ this.setConditionValue("unsupportedMappingType",!t)}}const ZF=xe`
|
|
|
11448
11426
|
overflow: hidden;
|
|
11449
11427
|
text-overflow: ellipsis;
|
|
11450
11428
|
}
|
|
11451
|
-
`,
|
|
11429
|
+
`,XF=G`
|
|
11452
11430
|
${He((e=>e.visualizationTemplate),G`
|
|
11453
11431
|
<span class="reserve-icon-size">
|
|
11454
11432
|
${e=>e.visualizationTemplate}
|
|
@@ -11459,8 +11437,8 @@ this.setConditionValue("unsupportedMappingType",!t)}}const ZF=xe`
|
|
|
11459
11437
|
title="${e=>e.hasOverflow&&e.text?e.text:null}"
|
|
11460
11438
|
class="text"
|
|
11461
11439
|
>${e=>e.text}</span>
|
|
11462
|
-
`,
|
|
11463
|
-
class
|
|
11440
|
+
`,YF={default:void 0,error:"error",warning:"warning",success:"success",information:"information"}
|
|
11441
|
+
class JF{constructor(e){this.text=e}}class QF extends JF{constructor(e,t,n,i){var o
|
|
11464
11442
|
super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
11465
11443
|
<${o=e}
|
|
11466
11444
|
title="${e=>e.textHidden?e.text:""}"
|
|
@@ -11470,7 +11448,7 @@ super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
|
11470
11448
|
severity="${e=>e.severity}"
|
|
11471
11449
|
>
|
|
11472
11450
|
</${o}>
|
|
11473
|
-
`}}const
|
|
11451
|
+
`}}const eN=G`
|
|
11474
11452
|
<${ET}
|
|
11475
11453
|
title="${e=>e.textHidden?e.text:""}"
|
|
11476
11454
|
aria-label="${e=>e.text}"
|
|
@@ -11478,12 +11456,12 @@ super(n),this.severity=t,this.textHidden=i,this.iconTemplate=G`
|
|
|
11478
11456
|
>
|
|
11479
11457
|
</${ET}>
|
|
11480
11458
|
`
|
|
11481
|
-
class
|
|
11459
|
+
class tN extends JF{constructor(e,t){super(e),this.textHidden=t,this.spinnerTemplate=eN}}class nN extends JF{}class iN extends JF{}class oN extends ZO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
|
|
11482
11460
|
const e=this.groupHeaderValue,t=this.columnConfig.mappingConfigs.get(e)
|
|
11483
|
-
t instanceof
|
|
11484
|
-
const oN
|
|
11485
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11486
|
-
const
|
|
11461
|
+
t instanceof QF?(this.severity=t.severity,this.text=t.text??"",this.visualizationTemplate=t.iconTemplate):t instanceof tN?(this.text=t.text??"",this.visualizationTemplate=t.spinnerTemplate):(t instanceof nN||t instanceof iN)&&(this.text=t.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=YF.default}}e([g],oN.prototype,"hasOverflow",void 0),e([g],oN.prototype,"text",void 0),e([g],oN.prototype,"severity",void 0),e([g],oN.prototype,"visualizationTemplate",void 0)
|
|
11462
|
+
const sN=oN.compose({baseName:"table-column-mapping-group-header-view",template:XF,styles:KF})
|
|
11463
|
+
yi.getOrCreate().withPrefix("nimble").register(sN())
|
|
11464
|
+
const rN=xe`
|
|
11487
11465
|
${Ro("inline-flex")}
|
|
11488
11466
|
|
|
11489
11467
|
:host {
|
|
@@ -11505,7 +11483,7 @@ const sN=xe`
|
|
|
11505
11483
|
overflow: hidden;
|
|
11506
11484
|
text-overflow: ellipsis;
|
|
11507
11485
|
}
|
|
11508
|
-
`,
|
|
11486
|
+
`,aN=G`
|
|
11509
11487
|
${He((e=>e.visualizationTemplate),G`
|
|
11510
11488
|
<span class="reserve-icon-size">
|
|
11511
11489
|
${e=>e.visualizationTemplate}
|
|
@@ -11521,22 +11499,22 @@ const sN=xe`
|
|
|
11521
11499
|
</span>
|
|
11522
11500
|
`)}
|
|
11523
11501
|
`
|
|
11524
|
-
class
|
|
11502
|
+
class lN extends XO{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
|
|
11525
11503
|
const e=this.cellRecord.value
|
|
11526
11504
|
if(null==e)return
|
|
11527
11505
|
const t=this.columnConfig.mappingConfigs.get(e)
|
|
11528
|
-
t instanceof
|
|
11529
|
-
const lN
|
|
11530
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11531
|
-
const
|
|
11532
|
-
class
|
|
11533
|
-
return new
|
|
11534
|
-
if(e instanceof Tv)return new
|
|
11535
|
-
if(e instanceof $v)return new
|
|
11536
|
-
throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===
|
|
11537
|
-
const hN
|
|
11538
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11539
|
-
const
|
|
11506
|
+
t instanceof QF?(this.severity=t.severity,this.text=t.text,this.visualizationTemplate=t.iconTemplate,this.textHidden=t.textHidden):t instanceof tN?(this.text=t.text,this.visualizationTemplate=t.spinnerTemplate,this.textHidden=t.textHidden):t instanceof nN?(this.text=t.text,this.textHidden=!1):t instanceof iN&&(this.text=t.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=YF.default}}e([g],lN.prototype,"severity",void 0),e([g],lN.prototype,"text",void 0),e([g],lN.prototype,"visualizationTemplate",void 0),e([g],lN.prototype,"textHidden",void 0),e([g],lN.prototype,"hasOverflow",void 0)
|
|
11507
|
+
const cN=lN.compose({baseName:"table-column-mapping-cell-view",template:aN,styles:rN})
|
|
11508
|
+
yi.getOrCreate().withPrefix("nimble").register(cN())
|
|
11509
|
+
const dN="icon-size"
|
|
11510
|
+
class hN extends(aF(rF(bF(qF)))){minPixelWidthChanged(){this.widthMode!==dN&&(this.columnInternals.minPixelWidth=this.getConfiguredMinPixelWidth())}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-mapping-cell-view",groupHeaderViewTag:"nimble-table-column-mapping-group-header-view",delegatedEvents:[],sortOperation:UO,validator:new ZF}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Ev){if(!e.resolvedIcon)throw Error("Unresolved icon")
|
|
11511
|
+
return new QF(e.resolvedIcon,e.severity,e.text,e.textHidden)}if(e instanceof Dv)return new tN(e.text,e.textHidden)
|
|
11512
|
+
if(e instanceof Tv)return new nN(e.text)
|
|
11513
|
+
if(e instanceof $v)return new iN(e.text)
|
|
11514
|
+
throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===dN?(this.columnInternals.resizingDisabled=!0,this.columnInternals.hideHeaderIndicators=!0,this.columnInternals.pixelWidth=32,this.columnInternals.minPixelWidth=32):(this.columnInternals.resizingDisabled=!1,this.columnInternals.hideHeaderIndicators=!1,this.columnInternals.pixelWidth=void 0,this.columnInternals.minPixelWidth=this.getConfiguredMinPixelWidth())}getConfiguredMinPixelWidth(){return"number"==typeof this.minPixelWidth?this.minPixelWidth:WO}}e([le({attribute:"width-mode"})],hN.prototype,"widthMode",void 0)
|
|
11515
|
+
const uN=hN.compose({baseName:"table-column-mapping",template:jF,styles:UF})
|
|
11516
|
+
yi.getOrCreate().withPrefix("nimble").register(uN())
|
|
11517
|
+
const pN=G`<span
|
|
11540
11518
|
${eg("hasOverflow")}
|
|
11541
11519
|
class="header-content"
|
|
11542
11520
|
title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
|
|
@@ -11544,13 +11522,13 @@ const uN=G`<span
|
|
|
11544
11522
|
<slot ${Pe("contentSlot")}></slot>
|
|
11545
11523
|
<slot ${Ye({property:"unitElements",filter:Ze()})} name="unit"></slot>
|
|
11546
11524
|
</span>`
|
|
11547
|
-
const
|
|
11548
|
-
yi.getOrCreate().withPrefix("nimble").register(pN())
|
|
11549
|
-
const fN=class extends EF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??SF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:MF,styles:_F})
|
|
11525
|
+
const fN=class extends pF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:fF,styles:mF})
|
|
11550
11526
|
yi.getOrCreate().withPrefix("nimble").register(fN())
|
|
11551
|
-
const mN={
|
|
11552
|
-
|
|
11553
|
-
|
|
11527
|
+
const mN=class extends IF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??$F}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:_F,styles:EF})
|
|
11528
|
+
yi.getOrCreate().withPrefix("nimble").register(mN())
|
|
11529
|
+
const gN={default:void 0,decimal:"decimal"},vN="left",bN="right"
|
|
11530
|
+
class yN{format(e){if("number"!=typeof e)return""
|
|
11531
|
+
try{return this.tryFormat(e)}catch{return""}}}class wN{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class xN extends wN{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new xN(t,e)}format(e){return this.formatter.format(e)}}class CN{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class kN{constructor(e){this.supportedScaledUnits=e
|
|
11554
11532
|
const t=e.every(((e,t,n)=>0===t||n[t-1].scaleFactor<e.scaleFactor))
|
|
11555
11533
|
if(!t)throw new Error("Supported scaled units must have unique and ordered scale factors")
|
|
11556
11534
|
const n=e.find((e=>e.isBase()))
|
|
@@ -11559,43 +11537,42 @@ this.supportedScaledUnits=e,this.baseScaledUnit=n}scaleNumber(e){const t=Math.ab
|
|
|
11559
11537
|
if(1===this.supportedScaledUnits.length||0===t||t===1/0||Number.isNaN(t))return{scaledValue:e,scaledUnit:this.baseScaledUnit}
|
|
11560
11538
|
for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
|
|
11561
11539
|
if(t/i.scaleFactor>=1)return{scaledValue:e/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
|
|
11562
|
-
return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const
|
|
11563
|
-
class
|
|
11540
|
+
return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const SN=new class extends kN{constructor(){super([new CN(1,xN.createFactory({}))])}},$N="negative"
|
|
11541
|
+
class MN extends yN{constructor(e,{unitScale:t=SN}={unitScale:SN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:MN.maximumDigits,maximumFractionDigits:MN.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:$N},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:MN.maximumDigits,notation:"scientific",signDisplay:$N}
|
|
11564
11542
|
for(const n of t.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
|
|
11565
11543
|
this.exponentialScaledUnitFormatter=t.baseScaledUnit.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=t}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e),i=Math.abs(t)
|
|
11566
|
-
return 0!==i&&(i
|
|
11567
|
-
class
|
|
11544
|
+
return 0!==i&&(i>=MN.exponentialUpperBound||i<MN.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(e):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(t)}}MN.maximumDigits=6,MN.exponentialLowerBound=995e-6,MN.exponentialUpperBound=999999.5
|
|
11545
|
+
class _N extends yN{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=SN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:SN}){super(),this.scaledUnitFormatters=new Map
|
|
11568
11546
|
const o={maximumFractionDigits:n,minimumFractionDigits:t,signDisplay:"negative"}
|
|
11569
11547
|
for(const t of i.supportedScaledUnits)this.scaledUnitFormatters.set(t.scaleFactor,t.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:o}))
|
|
11570
11548
|
this.unitScale=i,this.minimumFractionDigits=t,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e)
|
|
11571
|
-
return this.scaledUnitFormatters.get(n.scaleFactor).format(t)}}class
|
|
11549
|
+
return this.scaledUnitFormatters.get(n.scaleFactor).format(t)}}class EN extends yN{constructor(e,t){super(),this._resolvedOptions=this.resolveOptions(t),this.resolvedUnitFormat=this.resolveUnitFormat(e,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(e){const t=this.resolveOptions(e)
|
|
11572
11550
|
return this._resolvedOptions.decimalDigits===t.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===t.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===t.numberTextFormat&&this._resolvedOptions.unitScale===t.unitScale}tryFormat(e){return this.resolvedUnitFormat.format(e)}resolveUnitFormat(e,t){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:s}=t
|
|
11573
|
-
return n===
|
|
11551
|
+
return n===gN.default?new MN(e,{unitScale:s}):new _N(e,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:s}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:s})}resolveOptions(e){if(!e||e.numberTextFormat===gN.default)return{numberTextFormat:gN.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:e?.unitScale??SN}
|
|
11574
11552
|
const t="number"==typeof e.decimalDigits,n="number"==typeof e.decimalMaximumDigits
|
|
11575
11553
|
if(t&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
|
|
11576
|
-
return t||n?{numberTextFormat:
|
|
11577
|
-
const
|
|
11578
|
-
class
|
|
11579
|
-
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===
|
|
11580
|
-
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===
|
|
11554
|
+
return t||n?{numberTextFormat:gN.decimal,decimalDigits:e.decimalDigits,decimalMaximumDigits:e.decimalMaximumDigits,unitScale:e.unitScale??SN}:{numberTextFormat:gN.decimal,decimalDigits:EN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:e.unitScale??SN}}}EN.defaultDecimalDigits=2
|
|
11555
|
+
const IN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
|
|
11556
|
+
class DN extends tF{constructor(){super(IN)}validateDecimalDigits(e,t){const n=!!(e===gN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
|
|
11557
|
+
this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===gN.decimal&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
|
|
11558
|
+
this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===gN.decimal)&&("number"==typeof t&&"number"==typeof n)
|
|
11581
11559
|
this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(e){const t=e.length>1
|
|
11582
|
-
this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class
|
|
11583
|
-
class
|
|
11584
|
-
e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await hI(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof
|
|
11560
|
+
this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class AN extends Vt{}e([g],AN.prototype,"resolvedUnitScale",void 0)
|
|
11561
|
+
class TN extends(CF(xF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ma.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ma.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:UO,validator:new DN}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
|
|
11562
|
+
e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await hI(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof AN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.columnInternals.validator
|
|
11585
11563
|
if(e.validateDecimalDigits(this.format,this.decimalDigits),e.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),e.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),e.validateAtMostOneUnit(this.unitElements??[]),e.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
|
|
11586
11564
|
this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){const e=this.unit?.resolvedUnitScale
|
|
11587
|
-
return new
|
|
11588
|
-
const TN
|
|
11589
|
-
yi.getOrCreate().withPrefix("nimble").register(TN())
|
|
11590
|
-
const ON=class extends EF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:MF,styles:_F})
|
|
11565
|
+
return new EN(Ma.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:e})}determineCellContentAlignment(){return this.alignment===vN?$F:this.alignment===bN?MF:this.format!==gN.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?$F:MF}}e([le],TN.prototype,"format",void 0),e([le],TN.prototype,"alignment",void 0),e([le({attribute:"decimal-digits",converter:re})],TN.prototype,"decimalDigits",void 0),e([le({attribute:"decimal-maximum-digits",converter:re})],TN.prototype,"decimalMaximumDigits",void 0),e([g],TN.prototype,"unitElements",void 0),e([g],TN.prototype,"unit",void 0)
|
|
11566
|
+
const ON=TN.compose({baseName:"table-column-number-text",template:pN,styles:oF})
|
|
11591
11567
|
yi.getOrCreate().withPrefix("nimble").register(ON())
|
|
11592
|
-
|
|
11593
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11594
|
-
const NN=
|
|
11568
|
+
const RN=class extends IF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:_F,styles:EF})
|
|
11569
|
+
yi.getOrCreate().withPrefix("nimble").register(RN())
|
|
11570
|
+
class FN extends(CF(xF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:vF,delegatedEvents:[],sortOperation:jO,validator:new tF([])}}}const NN=FN.compose({baseName:"table-column-text",template:sF,styles:oF})
|
|
11571
|
+
yi.getOrCreate().withPrefix("nimble").register(NN())
|
|
11572
|
+
const PN=xe`
|
|
11595
11573
|
${Ro("grid")}
|
|
11596
11574
|
|
|
11597
11575
|
:host {
|
|
11598
|
-
box-sizing: border-box;
|
|
11599
11576
|
grid-template-columns: auto 1fr;
|
|
11600
11577
|
grid-template-rows: auto 1fr;
|
|
11601
11578
|
}
|
|
@@ -11619,7 +11596,7 @@ const NN=xe`
|
|
|
11619
11596
|
overflow: auto;
|
|
11620
11597
|
}
|
|
11621
11598
|
`
|
|
11622
|
-
const
|
|
11599
|
+
const LN=class extends so{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:so,template:(e,t)=>G`
|
|
11623
11600
|
<template class="${e=>e.orientation}">
|
|
11624
11601
|
${nt(0,t)}
|
|
11625
11602
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -11638,15 +11615,14 @@ const PN=class extends so{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
11638
11615
|
<slot name="tabpanel" ${Ye("tabpanels")}></slot>
|
|
11639
11616
|
</div>
|
|
11640
11617
|
</template>
|
|
11641
|
-
`,styles:
|
|
11642
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11643
|
-
const
|
|
11618
|
+
`,styles:PN})
|
|
11619
|
+
yi.getOrCreate().withPrefix("nimble").register(LN())
|
|
11620
|
+
const zN=xe`
|
|
11644
11621
|
${Ro("flex")}
|
|
11645
11622
|
|
|
11646
11623
|
:host {
|
|
11647
11624
|
align-items: center;
|
|
11648
11625
|
height: ${tl};
|
|
11649
|
-
box-sizing: border-box;
|
|
11650
11626
|
font: ${yc};
|
|
11651
11627
|
color: ${wc};
|
|
11652
11628
|
}
|
|
@@ -11658,15 +11634,15 @@ const LN=xe`
|
|
|
11658
11634
|
rgba(${za}, 0.3);
|
|
11659
11635
|
margin: ${il} ${ol};
|
|
11660
11636
|
}
|
|
11661
|
-
`,
|
|
11637
|
+
`,VN=G`
|
|
11662
11638
|
<template slot="end">
|
|
11663
11639
|
<div class="separator"></div>
|
|
11664
11640
|
<slot></slot>
|
|
11665
11641
|
</template>
|
|
11666
11642
|
`
|
|
11667
|
-
const
|
|
11668
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11669
|
-
const
|
|
11643
|
+
const HN=class extends Vt{}.compose({baseName:"tabs-toolbar",template:VN,styles:zN})
|
|
11644
|
+
yi.getOrCreate().withPrefix("nimble").register(HN())
|
|
11645
|
+
const BN="outline",qN="block",UN=xe`
|
|
11670
11646
|
${Ro("inline-flex")}
|
|
11671
11647
|
${Xm}
|
|
11672
11648
|
|
|
@@ -11737,7 +11713,6 @@ const HN="outline",BN="block",qN=xe`
|
|
|
11737
11713
|
font: inherit;
|
|
11738
11714
|
flex-grow: 1;
|
|
11739
11715
|
outline: none;
|
|
11740
|
-
box-sizing: border-box;
|
|
11741
11716
|
position: relative;
|
|
11742
11717
|
color: inherit;
|
|
11743
11718
|
border-radius: 0px;
|
|
@@ -11806,12 +11781,12 @@ const HN="outline",BN="block",qN=xe`
|
|
|
11806
11781
|
top: ${ol};
|
|
11807
11782
|
right: var(--ni-private-scrollbar-width);
|
|
11808
11783
|
}
|
|
11809
|
-
`.withBehaviors(Bd(
|
|
11784
|
+
`.withBehaviors(Bd(BN,xe`
|
|
11810
11785
|
.control {
|
|
11811
11786
|
border-color: rgba(${za}, 0.3);
|
|
11812
11787
|
background-color: transparent;
|
|
11813
11788
|
}
|
|
11814
|
-
`),Bd(
|
|
11789
|
+
`),Bd(qN,xe`
|
|
11815
11790
|
.control {
|
|
11816
11791
|
background-color: rgba(${za}, 0.1);
|
|
11817
11792
|
}
|
|
@@ -11829,8 +11804,8 @@ const HN="outline",BN="block",qN=xe`
|
|
|
11829
11804
|
border-bottom-color: ${Va};
|
|
11830
11805
|
}
|
|
11831
11806
|
`))
|
|
11832
|
-
class
|
|
11833
|
-
const jN
|
|
11807
|
+
class jN extends co{constructor(){super(...arguments),this.appearance=BN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([le],jN.prototype,"appearance",void 0),e([le({attribute:"error-text"})],jN.prototype,"errorText",void 0),e([le({attribute:"error-visible",mode:"boolean"})],jN.prototype,"errorVisible",void 0),e([g],jN.prototype,"scrollbarWidth",void 0)
|
|
11808
|
+
const WN=jN.compose({baseName:"text-area",baseClass:co,template:()=>G`
|
|
11834
11809
|
<label
|
|
11835
11810
|
part="label"
|
|
11836
11811
|
for="control"
|
|
@@ -11887,9 +11862,9 @@ const jN=UN.compose({baseName:"text-area",baseClass:co,template:()=>G`
|
|
|
11887
11862
|
></${em}>
|
|
11888
11863
|
${qm}
|
|
11889
11864
|
</div>
|
|
11890
|
-
`,styles:
|
|
11891
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
11892
|
-
const
|
|
11865
|
+
`,styles:UN,shadowOptions:{delegatesFocus:!0}})
|
|
11866
|
+
yi.getOrCreate().withPrefix("nimble").register(WN())
|
|
11867
|
+
const GN="underline",ZN="outline",KN="block",XN="frameless",YN=xe`
|
|
11893
11868
|
${Ro("inline-block")}
|
|
11894
11869
|
${Xm}
|
|
11895
11870
|
|
|
@@ -11919,7 +11894,6 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
11919
11894
|
}
|
|
11920
11895
|
|
|
11921
11896
|
.root {
|
|
11922
|
-
box-sizing: border-box;
|
|
11923
11897
|
position: relative;
|
|
11924
11898
|
display: flex;
|
|
11925
11899
|
flex-direction: row;
|
|
@@ -12065,12 +12039,12 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
12065
12039
|
slot[name='actions']::slotted(*) {
|
|
12066
12040
|
${tl.cssCustomProperty}: 24px;
|
|
12067
12041
|
}
|
|
12068
|
-
`.withBehaviors(Bd(
|
|
12042
|
+
`.withBehaviors(Bd(GN,xe`
|
|
12069
12043
|
.root {
|
|
12070
12044
|
border-bottom-width: ${al};
|
|
12071
12045
|
padding-bottom: 0;
|
|
12072
12046
|
}
|
|
12073
|
-
`),Bd(
|
|
12047
|
+
`),Bd(KN,xe`
|
|
12074
12048
|
.root {
|
|
12075
12049
|
background-color: rgba(${za}, 0.1);
|
|
12076
12050
|
}
|
|
@@ -12098,12 +12072,12 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
12098
12072
|
:host([disabled]) .root {
|
|
12099
12073
|
background-color: rgba(${za}, 0.07);
|
|
12100
12074
|
}
|
|
12101
|
-
`),Bd(
|
|
12075
|
+
`),Bd(ZN,xe`
|
|
12102
12076
|
.root {
|
|
12103
12077
|
border-width: ${al};
|
|
12104
12078
|
padding: 0;
|
|
12105
12079
|
}
|
|
12106
|
-
`),Bd(
|
|
12080
|
+
`),Bd(XN,xe`
|
|
12107
12081
|
.control {
|
|
12108
12082
|
padding-left: ${al};
|
|
12109
12083
|
padding-right: ${al};
|
|
@@ -12121,8 +12095,8 @@ const WN="underline",GN="outline",ZN="block",KN="frameless",XN=xe`
|
|
|
12121
12095
|
filter: invert(100%);
|
|
12122
12096
|
}
|
|
12123
12097
|
`))
|
|
12124
|
-
class
|
|
12125
|
-
const JN
|
|
12098
|
+
class JN extends zi{constructor(){super(...arguments),this.appearance=GN,this.errorVisible=!1,this.fullBleed=!1}}e([le],JN.prototype,"appearance",void 0),e([le({attribute:"error-text"})],JN.prototype,"errorText",void 0),e([le({attribute:"error-visible",mode:"boolean"})],JN.prototype,"errorVisible",void 0),e([le({attribute:"full-bleed",mode:"boolean"})],JN.prototype,"fullBleed",void 0)
|
|
12099
|
+
const QN=JN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
12126
12100
|
<template
|
|
12127
12101
|
class="
|
|
12128
12102
|
${e=>e.readOnly?"readonly":""}
|
|
@@ -12182,7 +12156,7 @@ const JN=YN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
|
12182
12156
|
${tt(0,t)}
|
|
12183
12157
|
</div>
|
|
12184
12158
|
</template>
|
|
12185
|
-
`,styles:
|
|
12159
|
+
`,styles:YN,shadowOptions:{delegatesFocus:!0},end:G`
|
|
12186
12160
|
<${em}
|
|
12187
12161
|
severity="error"
|
|
12188
12162
|
class="error-icon"
|
|
@@ -12192,8 +12166,8 @@ const JN=YN.compose({baseName:"text-field",baseClass:zi,template:(e,t)=>G`
|
|
|
12192
12166
|
</span>
|
|
12193
12167
|
${qm}
|
|
12194
12168
|
`})
|
|
12195
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12196
|
-
const
|
|
12169
|
+
yi.getOrCreate().withPrefix("nimble").register(QN())
|
|
12170
|
+
const eP=xe`
|
|
12197
12171
|
${Ro("inline-flex")}
|
|
12198
12172
|
|
|
12199
12173
|
:host {
|
|
@@ -12205,7 +12179,6 @@ const QN=xe`
|
|
|
12205
12179
|
}
|
|
12206
12180
|
|
|
12207
12181
|
.tooltip {
|
|
12208
|
-
box-sizing: border-box;
|
|
12209
12182
|
flex-shrink: 0;
|
|
12210
12183
|
max-width: 440px;
|
|
12211
12184
|
box-shadow: ${ml};
|
|
@@ -12278,7 +12251,7 @@ const QN=xe`
|
|
|
12278
12251
|
.status-icon {
|
|
12279
12252
|
opacity: 0.6;
|
|
12280
12253
|
}
|
|
12281
|
-
`)),
|
|
12254
|
+
`)),tP=G`
|
|
12282
12255
|
${He((e=>e.tooltipVisible),G`
|
|
12283
12256
|
<${uh}
|
|
12284
12257
|
class="anchored-region"
|
|
@@ -12311,11 +12284,11 @@ const QN=xe`
|
|
|
12311
12284
|
</${uh}>
|
|
12312
12285
|
`)}
|
|
12313
12286
|
`
|
|
12314
|
-
class
|
|
12315
|
-
const nP
|
|
12316
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12317
|
-
const
|
|
12318
|
-
class
|
|
12287
|
+
class nP extends Eo{constructor(){super(...arguments),this.iconVisible=!1}}e([le],nP.prototype,"severity",void 0),e([le({attribute:"icon-visible",mode:"boolean"})],nP.prototype,"iconVisible",void 0)
|
|
12288
|
+
const iP=nP.compose({baseName:"tooltip",baseClass:Eo,template:tP,styles:eP})
|
|
12289
|
+
yi.getOrCreate().withPrefix("nimble").register(iP())
|
|
12290
|
+
const oP="group-selected",sP="all",rP="leaves-only",aP="none"
|
|
12291
|
+
class lP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const cP=xe`
|
|
12319
12292
|
${Ro("block")}
|
|
12320
12293
|
|
|
12321
12294
|
:host {
|
|
@@ -12336,7 +12309,7 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12336
12309
|
}
|
|
12337
12310
|
|
|
12338
12311
|
${""}
|
|
12339
|
-
:host([${
|
|
12312
|
+
:host([${oP}])::after {
|
|
12340
12313
|
background: ${Ua};
|
|
12341
12314
|
border-radius: 0px;
|
|
12342
12315
|
content: '';
|
|
@@ -12350,7 +12323,6 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12350
12323
|
.positioning-region {
|
|
12351
12324
|
display: flex;
|
|
12352
12325
|
position: relative;
|
|
12353
|
-
box-sizing: border-box;
|
|
12354
12326
|
height: calc(${ll} * 2);
|
|
12355
12327
|
}
|
|
12356
12328
|
|
|
@@ -12358,7 +12330,7 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12358
12330
|
background: ${Pa};
|
|
12359
12331
|
}
|
|
12360
12332
|
|
|
12361
|
-
:host([${
|
|
12333
|
+
:host([${oP}]) .positioning-region:hover {
|
|
12362
12334
|
background: ${Na};
|
|
12363
12335
|
}
|
|
12364
12336
|
|
|
@@ -12464,7 +12436,7 @@ class aP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
|
|
|
12464
12436
|
display: block;
|
|
12465
12437
|
}
|
|
12466
12438
|
`.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
|
|
12467
|
-
t&&_a.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new
|
|
12439
|
+
t&&_a.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new lP(this.ltr,this.rtl,e),n=_a.getValueFor(e)
|
|
12468
12440
|
_a.subscribe(t),t.attach(n),this.cache.set(e,t)}}(xe`
|
|
12469
12441
|
.expand-collapse-button {
|
|
12470
12442
|
left: var(
|
|
@@ -12496,8 +12468,8 @@ _a.subscribe(t),t.attach(n),this.cache.set(e,t)}}(xe`
|
|
|
12496
12468
|
transform: rotate(135deg);
|
|
12497
12469
|
}
|
|
12498
12470
|
`))
|
|
12499
|
-
class
|
|
12500
|
-
const dP
|
|
12471
|
+
class dP extends Do{constructor(){super(...arguments),this.groupSelected=!1}}e([le({attribute:"group-selected",mode:"boolean"})],dP.prototype,"groupSelected",void 0)
|
|
12472
|
+
const hP=dP.compose({baseName:"tree-item",baseClass:Do,template:(e,t)=>G`
|
|
12501
12473
|
<template
|
|
12502
12474
|
role="treeitem"
|
|
12503
12475
|
slot="${e=>e.isNestedItem()?"item":void 0}"
|
|
@@ -12537,9 +12509,9 @@ const dP=cP.compose({baseName:"tree-item",baseClass:Do,template:(e,t)=>G`
|
|
|
12537
12509
|
</div>
|
|
12538
12510
|
`)}
|
|
12539
12511
|
</template>
|
|
12540
|
-
`,styles:
|
|
12541
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12542
|
-
const
|
|
12512
|
+
`,styles:cP,expandCollapseGlyph:Eh.data})
|
|
12513
|
+
yi.getOrCreate().withPrefix("nimble").register(hP())
|
|
12514
|
+
const uP=xe`
|
|
12543
12515
|
${Ro("flex")}
|
|
12544
12516
|
|
|
12545
12517
|
:host {
|
|
@@ -12551,7 +12523,7 @@ const hP=xe`
|
|
|
12551
12523
|
:host(${Fo}) {
|
|
12552
12524
|
outline: none;
|
|
12553
12525
|
}
|
|
12554
|
-
`,
|
|
12526
|
+
`,pP=G`
|
|
12555
12527
|
<template
|
|
12556
12528
|
role="tree"
|
|
12557
12529
|
${Pe("treeView")}
|
|
@@ -12565,248 +12537,248 @@ const hP=xe`
|
|
|
12565
12537
|
<slot ${Ye("slottedTreeItems")}></slot>
|
|
12566
12538
|
</template>
|
|
12567
12539
|
`
|
|
12568
|
-
class
|
|
12540
|
+
class fP extends Ao{constructor(){super(...arguments),this.selectionMode=sP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
|
|
12569
12541
|
if(!(e.target instanceof Element&&Io(e.target)))return!0
|
|
12570
12542
|
const t=e.target
|
|
12571
|
-
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case
|
|
12572
|
-
case
|
|
12573
|
-
case
|
|
12574
|
-
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof
|
|
12543
|
+
return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case sP:return!0
|
|
12544
|
+
case aP:return!1
|
|
12545
|
+
case rP:return!this.itemHasChildren(e)
|
|
12546
|
+
default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof dP&&(e.groupSelected=!1)
|
|
12575
12547
|
for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
|
|
12576
|
-
e instanceof
|
|
12577
|
-
const fP
|
|
12578
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12579
|
-
const
|
|
12580
|
-
class
|
|
12581
|
-
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new
|
|
12548
|
+
e instanceof dP&&(e.groupSelected=!0)}}}e([le({attribute:"selection-mode"})],fP.prototype,"selectionMode",void 0),e([g],fP.prototype,"selectedItems",void 0)
|
|
12549
|
+
const mP=fP.compose({baseName:"tree-view",baseClass:Ao,template:pP,styles:uP})
|
|
12550
|
+
yi.getOrCreate().withPrefix("nimble").register(mP())
|
|
12551
|
+
const gP=G`<template slot="unit"></template>`
|
|
12552
|
+
class vP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class bP extends wN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
|
|
12553
|
+
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new bP(t,e)}format(e){const t=this.formatter.format(e)
|
|
12582
12554
|
if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
|
|
12583
12555
|
return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
|
|
12584
|
-
return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const
|
|
12585
|
-
const
|
|
12586
|
-
const
|
|
12556
|
+
return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const yP=new Map([["en",new vP("byte","bytes","B")],["fr",new vP("octet","octets","o")],["de",new vP("Byte","Byte","B")],["ja",new vP("バイト","バイト","B")],["zh",new vP("字节","字节","B")]]),wP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
|
|
12557
|
+
const xP=new class extends kN{constructor(){super(wP.map((([e,t])=>new CN(e,bP.createFactory({unitTranslations:yP,scaledPrefixText:t})))))}},CP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
|
|
12558
|
+
const kP=new class extends kN{constructor(){super(CP.map((([e,t,n])=>new CN(e,xN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}},SP=xe`
|
|
12587
12559
|
${Ro("none")}
|
|
12588
12560
|
`
|
|
12589
|
-
class
|
|
12590
|
-
const
|
|
12591
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12592
|
-
const
|
|
12593
|
-
const
|
|
12594
|
-
const
|
|
12595
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
12596
|
-
var
|
|
12597
|
-
function
|
|
12598
|
-
i[e]=[]}return new
|
|
12599
|
-
break}return null!=n&&e.push({name:t,value:n}),e}
|
|
12561
|
+
class $P extends AN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=kP}binaryChanged(){this.resolvedUnitScale=this.binary?xP:kP}}e([le({mode:"boolean"})],$P.prototype,"binary",void 0)
|
|
12562
|
+
const MP=$P.compose({baseName:"unit-byte",template:gP,styles:SP})
|
|
12563
|
+
yi.getOrCreate().withPrefix("nimble").register(MP())
|
|
12564
|
+
const _P=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],EP=new Map([["en",new vP("volt","volts","V")],["fr",new vP("volt","volts","V")],["de",new vP("Volt","Volt","V")],["ja",new vP("ボルト","ボルト","V")],["zh",new vP("伏特","伏特","V")]])
|
|
12565
|
+
const IP=new class extends kN{constructor(){super(_P.map((([e,t])=>new CN(e,bP.createFactory({unitTranslations:EP,scaledPrefixText:t})))))}}
|
|
12566
|
+
const DP=class extends AN{constructor(){super(),this.resolvedUnitScale=IP}}.compose({baseName:"unit-volt",template:gP,styles:SP})
|
|
12567
|
+
yi.getOrCreate().withPrefix("nimble").register(DP())
|
|
12568
|
+
var AP={value:()=>{}}
|
|
12569
|
+
function TP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
|
|
12570
|
+
i[e]=[]}return new OP(i)}function OP(e){this._=e}function RP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function FP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=AP,e=e.slice(0,i).concat(e.slice(i+1))
|
|
12571
|
+
break}return null!=n&&e.push({name:t,value:n}),e}OP.prototype=TP.prototype={constructor:OP,on:function(e,t){var n,i,o=this._,s=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
12600
12572
|
if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12601
12573
|
return{type:e,name:t}}))),r=-1,a=s.length
|
|
12602
12574
|
if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
|
|
12603
|
-
for(;++r<a;)if(n=(e=s[r]).type)o[n]=
|
|
12604
|
-
else if(null==t)for(n in o)o[n]=
|
|
12605
|
-
return this}for(;++r<a;)if((n=(e=s[r]).type)&&(n=
|
|
12575
|
+
for(;++r<a;)if(n=(e=s[r]).type)o[n]=FP(o[n],e.name,t)
|
|
12576
|
+
else if(null==t)for(n in o)o[n]=FP(o[n],e.name,null)
|
|
12577
|
+
return this}for(;++r<a;)if((n=(e=s[r]).type)&&(n=RP(o[n],e.name)))return n},copy:function(){var e={},t=this._
|
|
12606
12578
|
for(var n in t)e[n]=t[n].slice()
|
|
12607
|
-
return new
|
|
12579
|
+
return new OP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
|
|
12608
12580
|
if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12609
12581
|
for(s=0,n=(i=this._[e]).length;s<n;++s)i[s].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
|
|
12610
12582
|
for(var i=this._[e],o=0,s=i.length;o<s;++o)i[o].value.apply(t,n)}}
|
|
12611
|
-
var
|
|
12612
|
-
function
|
|
12613
|
-
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),
|
|
12614
|
-
return n===
|
|
12615
|
-
return(t.local?zP
|
|
12616
|
-
var t}}function
|
|
12617
|
-
function
|
|
12618
|
-
function
|
|
12619
|
-
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function
|
|
12583
|
+
var NP="http://www.w3.org/1999/xhtml",PP={svg:"http://www.w3.org/2000/svg",xhtml:NP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
|
|
12584
|
+
function LP(e){var t=e+="",n=t.indexOf(":")
|
|
12585
|
+
return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),PP.hasOwnProperty(t)?{space:PP[t],local:e}:e}function zP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
|
|
12586
|
+
return n===NP&&t.documentElement.namespaceURI===NP?t.createElement(e):t.createElementNS(n,e)}}function VP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function HP(e){var t=LP(e)
|
|
12587
|
+
return(t.local?VP:zP)(t)}function BP(){}function qP(e){return null==e?BP:function(){return this.querySelector(e)}}function UP(){return[]}function jP(e){return null==e?UP:function(){return this.querySelectorAll(e)}}function WP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
|
|
12588
|
+
var t}}function GP(e){return function(){return this.matches(e)}}function ZP(e){return function(t){return t.matches(e)}}var KP=Array.prototype.find
|
|
12589
|
+
function XP(){return this.firstElementChild}var YP=Array.prototype.filter
|
|
12590
|
+
function JP(){return Array.from(this.children)}function QP(e){return new Array(e.length)}function eL(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function tL(e,t,n,i,o,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],i[a]=r):n[a]=new eL(e,s[a])
|
|
12591
|
+
for(;a<l;++a)(r=t[a])&&(o[a]=r)}function nL(e,t,n,i,o,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
|
|
12620
12592
|
for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
12621
|
-
for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new
|
|
12622
|
-
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
12623
|
-
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function
|
|
12624
|
-
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function
|
|
12625
|
-
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function
|
|
12626
|
-
null==n?delete this[e]:this[e]=n}}function
|
|
12627
|
-
this.textContent=null==t?"":t}}function
|
|
12628
|
-
this.innerHTML=null==t?"":t}}function
|
|
12629
|
-
e&&e.removeChild(this)}function
|
|
12630
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
12631
|
-
return t?t.insertBefore(e,this.nextSibling):e}function
|
|
12632
|
-
if(t){for(var n,i=0,o=-1,s=t.length;i<s;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function
|
|
12593
|
+
for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new eL(e,s[a])
|
|
12594
|
+
for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function iL(e){return e.__data__}function oL(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function sL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function rL(e){return function(){this.removeAttribute(e)}}function aL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function lL(e,t){return function(){this.setAttribute(e,t)}}function cL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function dL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12595
|
+
null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function hL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12596
|
+
null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function uL(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function pL(e){return function(){this.style.removeProperty(e)}}function fL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function mL(e,t,n){return function(){var i=t.apply(this,arguments)
|
|
12597
|
+
null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function gL(e,t){return e.style.getPropertyValue(t)||uL(e).getComputedStyle(e,null).getPropertyValue(t)}function vL(e){return function(){delete this[e]}}function bL(e,t){return function(){this[e]=t}}function yL(e,t){return function(){var n=t.apply(this,arguments)
|
|
12598
|
+
null==n?delete this[e]:this[e]=n}}function wL(e){return e.trim().split(/^|\s+/)}function xL(e){return e.classList||new CL(e)}function CL(e){this._node=e,this._names=wL(e.getAttribute("class")||"")}function kL(e,t){for(var n=xL(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function SL(e,t){for(var n=xL(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function $L(e){return function(){kL(this,e)}}function ML(e){return function(){SL(this,e)}}function _L(e,t){return function(){(t.apply(this,arguments)?kL:SL)(this,e)}}function EL(){this.textContent=""}function IL(e){return function(){this.textContent=e}}function DL(e){return function(){var t=e.apply(this,arguments)
|
|
12599
|
+
this.textContent=null==t?"":t}}function AL(){this.innerHTML=""}function TL(e){return function(){this.innerHTML=e}}function OL(e){return function(){var t=e.apply(this,arguments)
|
|
12600
|
+
this.innerHTML=null==t?"":t}}function RL(){this.nextSibling&&this.parentNode.appendChild(this)}function FL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function NL(){return null}function PL(){var e=this.parentNode
|
|
12601
|
+
e&&e.removeChild(this)}function LL(){var e=this.cloneNode(!1),t=this.parentNode
|
|
12602
|
+
return t?t.insertBefore(e,this.nextSibling):e}function zL(){var e=this.cloneNode(!0),t=this.parentNode
|
|
12603
|
+
return t?t.insertBefore(e,this.nextSibling):e}function VL(e){return function(){var t=this.__on
|
|
12604
|
+
if(t){for(var n,i=0,o=-1,s=t.length;i<s;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function HL(e,t,n){return function(){var i,o=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
|
|
12633
12605
|
if(o)for(var r=0,a=o.length;r<a;++r)if((i=o[r]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=t)
|
|
12634
|
-
this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},o?o.push(i):this.__on=[i]}}function
|
|
12635
|
-
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function
|
|
12606
|
+
this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},o?o.push(i):this.__on=[i]}}function BL(e,t,n){var i=uL(e),o=i.CustomEvent
|
|
12607
|
+
"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function qL(e,t){return function(){return BL(this,e,t)}}function UL(e,t){return function(){return BL(this,e,t.apply(this,arguments))}}eL.prototype={constructor:eL,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},CL.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
|
|
12636
12608
|
t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
|
|
12637
|
-
var
|
|
12638
|
-
function
|
|
12609
|
+
var jL=[null]
|
|
12610
|
+
function WL(e,t){this._groups=e,this._parents=t}function GL(){return new WL([[document.documentElement]],jL)}function ZL(e){return"string"==typeof e?new WL([[document.querySelector(e)]],[document.documentElement]):new WL([[e]],jL)}function KL(e,t){if(e=function(e){let t
|
|
12639
12611
|
for(;t=e.sourceEvent;)e=t
|
|
12640
12612
|
return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
|
|
12641
12613
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
12642
12614
|
return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
|
|
12643
|
-
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}
|
|
12615
|
+
return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}WL.prototype=GL.prototype={constructor:WL,select:function(e){"function"!=typeof e&&(e=qP(e))
|
|
12644
12616
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
|
|
12645
|
-
return new
|
|
12617
|
+
return new WL(i,this._parents)},selectAll:function(e){e="function"==typeof e?WP(e):jP(e)
|
|
12646
12618
|
for(var t=this._groups,n=t.length,i=[],o=[],s=0;s<n;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(e.call(r,r.__data__,c,a)),o.push(r))
|
|
12647
|
-
return new
|
|
12619
|
+
return new WL(i,o)},selectChild:function(e){return this.select(null==e?XP:function(e){return function(){return KP.call(this.children,e)}}("function"==typeof e?e:ZP(e)))},selectChildren:function(e){return this.selectAll(null==e?JP:function(e){return function(){return YP.call(this.children,e)}}("function"==typeof e?e:ZP(e)))},filter:function(e){"function"!=typeof e&&(e=GP(e))
|
|
12648
12620
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r=t[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
12649
|
-
return new
|
|
12650
|
-
var n,i=t?tL
|
|
12621
|
+
return new WL(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,iL)
|
|
12622
|
+
var n,i=t?nL:tL,o=this._parents,s=this._groups
|
|
12651
12623
|
"function"!=typeof e&&(n=e,e=function(){return n})
|
|
12652
|
-
for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=
|
|
12624
|
+
for(var r=s.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=o[d],u=s[d],p=u.length,f=oL(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
|
|
12653
12625
|
i(h,u,g,v,c[d]=new Array(p),f,t)
|
|
12654
|
-
for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new
|
|
12626
|
+
for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new WL(a,o))._enter=l,a._exit=c,a},enter:function(){return new WL(this._enter||this._groups.map(QP),this._parents)},exit:function(){return new WL(this._exit||this._groups.map(QP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,s=this.exit()
|
|
12655
12627
|
return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?s.remove():n(s),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,s=i.length,r=Math.min(o,s),a=new Array(o),l=0;l<r;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
|
|
12656
12628
|
for(;l<o;++l)a[l]=n[l]
|
|
12657
|
-
return new
|
|
12658
|
-
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=
|
|
12629
|
+
return new WL(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
|
|
12630
|
+
return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=sL)
|
|
12659
12631
|
for(var n=this._groups,i=n.length,o=new Array(i),s=0;s<i;++s){for(var r,a=n[s],l=a.length,c=o[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
|
|
12660
|
-
c.sort(t)}return new
|
|
12632
|
+
c.sort(t)}return new WL(o,this._parents).order()},call:function(){var e=arguments[0]
|
|
12661
12633
|
return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,s=i.length;o<s;++o){var r=i[o]
|
|
12662
12634
|
if(r)return r}return null},size:function(){let e=0
|
|
12663
12635
|
for(const t of this)++e
|
|
12664
12636
|
return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,s=t[n],r=0,a=s.length;r<a;++r)(o=s[r])&&e.call(o,o.__data__,r,s)
|
|
12665
|
-
return this},attr:function(e,t){var n=
|
|
12637
|
+
return this},attr:function(e,t){var n=LP(e)
|
|
12666
12638
|
if(arguments.length<2){var i=this.node()
|
|
12667
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?rL:
|
|
12668
|
-
if(arguments.length<2){for(var i=
|
|
12669
|
-
return!0}return this.each(("function"==typeof t?
|
|
12670
|
-
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:
|
|
12671
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
12639
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?aL:rL:"function"==typeof t?n.local?hL:dL:n.local?cL:lL)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?pL:"function"==typeof t?mL:fL)(e,t,null==n?"":n)):gL(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?vL:"function"==typeof t?yL:bL)(e,t)):this.node()[e]},classed:function(e,t){var n=wL(e+"")
|
|
12640
|
+
if(arguments.length<2){for(var i=xL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
|
|
12641
|
+
return!0}return this.each(("function"==typeof t?_L:t?$L:ML)(n,t))},text:function(e){return arguments.length?this.each(null==e?EL:("function"==typeof e?DL:IL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?AL:("function"==typeof e?OL:TL)(e)):this.node().innerHTML},raise:function(){return this.each(RL)},lower:function(){return this.each(FL)},append:function(e){var t="function"==typeof e?e:HP(e)
|
|
12642
|
+
return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:HP(e),i=null==t?NL:"function"==typeof t?t:qP(t)
|
|
12643
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(PL)},clone:function(e){return this.select(e?zL:LL)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,s=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
|
|
12672
12644
|
return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),r=s.length
|
|
12673
|
-
if(!(arguments.length<2)){for(a=t?VL
|
|
12645
|
+
if(!(arguments.length<2)){for(a=t?HL:VL,i=0;i<r;++i)this.each(a(s[i],t,n))
|
|
12674
12646
|
return this}var a=this.node().__on
|
|
12675
|
-
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?qL
|
|
12676
|
-
const
|
|
12677
|
-
function
|
|
12647
|
+
if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((o=s[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?UL:qL)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
|
|
12648
|
+
const XL={capture:!0,passive:!1}
|
|
12649
|
+
function YL(e){e.preventDefault(),e.stopImmediatePropagation()}function JL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QL(e,t){var n=Object.create(e.prototype)
|
|
12678
12650
|
for(var i in t)n[i]=t[i]
|
|
12679
|
-
return n}function
|
|
12680
|
-
function
|
|
12681
|
-
return e=(e+"").trim().toLowerCase(),(t=
|
|
12682
|
-
var o}function
|
|
12683
|
-
return`${1===e?"rgb(":"rgba("}${
|
|
12684
|
-
if(e instanceof
|
|
12685
|
-
if(e instanceof
|
|
12651
|
+
return n}function ez(){}var tz=.7,nz=1/tz,iz="\\s*([+-]?\\d+)\\s*",oz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rz=/^#([0-9a-f]{3,8})$/,az=new RegExp(`^rgb\\(${iz},${iz},${iz}\\)$`),lz=new RegExp(`^rgb\\(${sz},${sz},${sz}\\)$`),cz=new RegExp(`^rgba\\(${iz},${iz},${iz},${oz}\\)$`),dz=new RegExp(`^rgba\\(${sz},${sz},${sz},${oz}\\)$`),hz=new RegExp(`^hsl\\(${oz},${sz},${sz}\\)$`),uz=new RegExp(`^hsla\\(${oz},${sz},${sz},${oz}\\)$`),pz={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
|
|
12652
|
+
function fz(){return this.rgb().formatHex()}function mz(){return this.rgb().formatRgb()}function gz(e){var t,n
|
|
12653
|
+
return e=(e+"").trim().toLowerCase(),(t=rz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vz(t):3===n?new wz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?bz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?bz(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=az.exec(e))?new wz(t[1],t[2],t[3],1):(t=lz.exec(e))?new wz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cz.exec(e))?bz(t[1],t[2],t[3],t[4]):(t=dz.exec(e))?bz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=hz.exec(e))?Mz(t[1],t[2]/100,t[3]/100,1):(t=uz.exec(e))?Mz(t[1],t[2]/100,t[3]/100,t[4]):pz.hasOwnProperty(e)?vz(pz[e]):"transparent"===e?new wz(NaN,NaN,NaN,0):null}function vz(e){return new wz(e>>16&255,e>>8&255,255&e,1)}function bz(e,t,n,i){return i<=0&&(e=t=n=NaN),new wz(e,t,n,i)}function yz(e,t,n,i){return 1===arguments.length?((o=e)instanceof ez||(o=gz(o)),o?new wz((o=o.rgb()).r,o.g,o.b,o.opacity):new wz):new wz(e,t,n,null==i?1:i)
|
|
12654
|
+
var o}function wz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function xz(){return`#${$z(this.r)}${$z(this.g)}${$z(this.b)}`}function Cz(){const e=kz(this.opacity)
|
|
12655
|
+
return`${1===e?"rgb(":"rgba("}${Sz(this.r)}, ${Sz(this.g)}, ${Sz(this.b)}${1===e?")":`, ${e})`}`}function kz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $z(e){return((e=Sz(e))<16?"0":"")+e.toString(16)}function Mz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ez(e,t,n,i)}function _z(e){if(e instanceof Ez)return new Ez(e.h,e.s,e.l,e.opacity)
|
|
12656
|
+
if(e instanceof ez||(e=gz(e)),!e)return new Ez
|
|
12657
|
+
if(e instanceof Ez)return e
|
|
12686
12658
|
var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),s=Math.max(t,n,i),r=NaN,a=s-o,l=(s+o)/2
|
|
12687
|
-
return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new
|
|
12688
|
-
return new
|
|
12689
|
-
return`${1===e?"hsl(":"hsla("}${
|
|
12690
|
-
var
|
|
12691
|
-
function
|
|
12692
|
-
return n?function(e,t){return function(n){return e+n*t}}(e,n):
|
|
12693
|
-
function i(e,t){var i=n((e=
|
|
12659
|
+
return a?(r=t===s?(n-i)/a+6*(n<i):n===s?(i-t)/a+2:(t-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new Ez(r,a,l,e.opacity)}function Ez(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Iz(e){return(e=(e||0)%360)<0?e+360:e}function Dz(e){return Math.max(0,Math.min(1,e||0))}function Az(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}JL(ez,gz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fz,formatHex:fz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _z(this).formatHsl()},formatRgb:mz,toString:mz}),JL(wz,yz,QL(ez,{brighter(e){return e=null==e?nz:Math.pow(nz,e),new wz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?tz:Math.pow(tz,e),new wz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wz(Sz(this.r),Sz(this.g),Sz(this.b),kz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xz,formatHex:xz,formatHex8:function(){return`#${$z(this.r)}${$z(this.g)}${$z(this.b)}${$z(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Cz,toString:Cz})),JL(Ez,(function(e,t,n,i){return 1===arguments.length?_z(e):new Ez(e,t,n,null==i?1:i)}),QL(ez,{brighter(e){return e=null==e?nz:Math.pow(nz,e),new Ez(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?tz:Math.pow(tz,e),new Ez(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
|
|
12660
|
+
return new wz(Az(e>=240?e-240:e+120,o,i),Az(e,o,i),Az(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Ez(Iz(this.h),Dz(this.s),Dz(this.l),kz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kz(this.opacity)
|
|
12661
|
+
return`${1===e?"hsl(":"hsla("}${Iz(this.h)}, ${100*Dz(this.s)}%, ${100*Dz(this.l)}%${1===e?")":`, ${e})`}`}}))
|
|
12662
|
+
var Tz=e=>()=>e
|
|
12663
|
+
function Oz(e){return 1==(e=+e)?Rz:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):Tz(isNaN(t)?n:t)}}function Rz(e,t){var n=t-e
|
|
12664
|
+
return n?function(e,t){return function(n){return e+n*t}}(e,n):Tz(isNaN(e)?t:e)}var Fz=function e(t){var n=Oz(t)
|
|
12665
|
+
function i(e,t){var i=n((e=yz(e)).r,(t=yz(t)).r),o=n(e.g,t.g),s=n(e.b,t.b),r=Rz(e.opacity,t.opacity)
|
|
12694
12666
|
return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=r(t),e+""}}return i.gamma=e,i}(1)
|
|
12695
|
-
function
|
|
12667
|
+
function Nz(e,t){t||(t=[])
|
|
12696
12668
|
var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
|
|
12697
12669
|
return function(s){for(n=0;n<i;++n)o[n]=e[n]*(1-s)+t[n]*s
|
|
12698
|
-
return o}}function
|
|
12699
|
-
for(n=0;n<o;++n)s[n]=
|
|
12670
|
+
return o}}function Pz(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,s=new Array(o),r=new Array(i)
|
|
12671
|
+
for(n=0;n<o;++n)s[n]=Uz(e[n],t[n])
|
|
12700
12672
|
for(;n<i;++n)r[n]=t[n]
|
|
12701
12673
|
return function(e){for(n=0;n<o;++n)r[n]=s[n](e)
|
|
12702
|
-
return r}}function
|
|
12703
|
-
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function
|
|
12704
|
-
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=
|
|
12674
|
+
return r}}function Lz(e,t){var n=new Date
|
|
12675
|
+
return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function zz(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vz(e,t){var n,i={},o={}
|
|
12676
|
+
for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=Uz(e[n],t[n]):o[n]=t[n]
|
|
12705
12677
|
return function(e){for(n in i)o[n]=i[n](e)
|
|
12706
|
-
return o}}var
|
|
12707
|
-
function
|
|
12708
|
-
for(e+="",t+="";(n=
|
|
12678
|
+
return o}}var Hz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bz=new RegExp(Hz.source,"g")
|
|
12679
|
+
function qz(e,t){var n,i,o,s=Hz.lastIndex=Bz.lastIndex=0,r=-1,a=[],l=[]
|
|
12680
|
+
for(e+="",t+="";(n=Hz.exec(e))&&(i=Bz.exec(t));)(o=i.index)>s&&(o=t.slice(s,o),a[r]?a[r]+=o:a[++r]=o),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:zz(n,i)})),s=Bz.lastIndex
|
|
12709
12681
|
return s<t.length&&(o=t.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
|
|
12710
|
-
return a.join("")})}function
|
|
12711
|
-
return null==t||"boolean"===o?
|
|
12712
|
-
function
|
|
12713
|
-
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*
|
|
12682
|
+
return a.join("")})}function Uz(e,t){var n,i,o=typeof t
|
|
12683
|
+
return null==t||"boolean"===o?Tz(t):("number"===o?zz:"string"===o?(n=gz(t))?(t=n,Fz):qz:t instanceof gz?Fz:t instanceof Date?Lz:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?Pz:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Vz:zz:Nz))(e,t)}function jz(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Wz,Gz=180/Math.PI,Zz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
12684
|
+
function Kz(e,t,n,i,o,s){var r,a,l
|
|
12685
|
+
return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(t,e)*Gz,skewX:Math.atan(l)*Gz,scaleX:r,scaleY:a}}function Xz(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
12714
12686
|
return s=e(s),r=e(r),function(e,i,o,s,r,a){if(e!==o||i!==s){var l=r.push("translate(",null,t,null,n)
|
|
12715
|
-
a.push({i:l-4,x:
|
|
12716
|
-
r.push({i:a-4,x:
|
|
12717
|
-
return a.join("")}}}var Xz
|
|
12718
|
-
return t.isIdentity?
|
|
12719
|
-
function
|
|
12687
|
+
a.push({i:l-4,x:zz(e,o)},{i:l-2,x:zz(i,s)})}else(o||s)&&r.push("translate("+o+t+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,n,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:zz(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(s.rotate,r.rotate,a,l),function(e,t,n,s){e!==t?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:zz(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(s.skewX,r.skewX,a,l),function(e,t,n,i,s,r){if(e!==n||t!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
12688
|
+
r.push({i:a-4,x:zz(e,n)},{i:a-2,x:zz(t,i)})}else 1===n&&1===i||s.push(o(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
|
|
12689
|
+
return a.join("")}}}var Yz=Xz((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
|
|
12690
|
+
return t.isIdentity?Zz:Kz(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Jz=Xz((function(e){return null==e?Zz:(Wz||(Wz=document.createElementNS("http://www.w3.org/2000/svg","g")),Wz.setAttribute("transform",e),(e=Wz.transform.baseVal.consolidate())?Kz((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Zz)}),", ",")",")")
|
|
12691
|
+
function Qz(e){return((e=Math.exp(e))+1/e)/2}var eV,tV,nV=function e(t,n,i){function o(e,o){var s,r,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
|
|
12720
12692
|
if(m<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*r)]}
|
|
12721
12693
|
else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b)
|
|
12722
|
-
r=(w-y)/t,s=function(e){var i,o=e*r,s=
|
|
12723
|
-
return[a+d*p,l+d*f,c*s/
|
|
12724
|
-
return e(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
12725
|
-
function
|
|
12726
|
-
return i.restart(e,t,n),i}function
|
|
12727
|
-
try{!function(){
|
|
12728
|
-
for(var e,t=
|
|
12729
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:
|
|
12730
|
-
|
|
12731
|
-
t>
|
|
12732
|
-
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}
|
|
12733
|
-
n=(null==n?
|
|
12734
|
-
var
|
|
12735
|
-
function
|
|
12694
|
+
r=(w-y)/t,s=function(e){var i,o=e*r,s=Qz(y),d=c/(n*g)*(s*(i=t*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y))
|
|
12695
|
+
return[a+d*p,l+d*f,c*s/Qz(t*o+y)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
|
|
12696
|
+
return e(n,i,i*i)},o}(Math.SQRT2,2,4),iV=0,oV=0,sV=0,rV=1e3,aV=0,lV=0,cV=0,dV="object"==typeof performance&&performance.now?performance:Date,hV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
|
|
12697
|
+
function uV(){return lV||(hV(pV),lV=dV.now()+cV)}function pV(){lV=0}function fV(){this._call=this._time=this._next=null}function mV(e,t,n){var i=new fV
|
|
12698
|
+
return i.restart(e,t,n),i}function gV(){lV=(aV=dV.now())+cV,iV=oV=0
|
|
12699
|
+
try{!function(){uV(),++iV
|
|
12700
|
+
for(var e,t=eV;t;)(e=lV-t._time)>=0&&t._call.call(void 0,e),t=t._next;--iV}()}finally{iV=0,function(){var e,t,n=eV,i=1/0
|
|
12701
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eV=t)
|
|
12702
|
+
tV=e,bV(i)}(),lV=0}}function vV(){var e=dV.now(),t=e-aV
|
|
12703
|
+
t>rV&&(cV-=t,aV=e)}function bV(e){iV||(oV&&(oV=clearTimeout(oV)),e-lV>24?(e<1/0&&(oV=setTimeout(gV,e-dV.now()-cV)),sV&&(sV=clearInterval(sV))):(sV||(aV=dV.now(),sV=setInterval(vV,rV)),iV=1,hV(gV)))}function yV(e,t,n){var i=new fV
|
|
12704
|
+
return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}fV.prototype=mV.prototype={constructor:fV,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
|
|
12705
|
+
n=(null==n?uV():+n)+(null==t?0:+t),this._next||tV===this||(tV?tV._next=this:eV=this,tV=this),this._call=e,this._time=n,bV()},stop:function(){this._call&&(this._call=null,this._time=1/0,bV())}}
|
|
12706
|
+
var wV=TP("start","end","cancel","interrupt"),xV=[],CV=0,kV=1,SV=2,$V=3,MV=4,_V=5,EV=6
|
|
12707
|
+
function IV(e,t,n,i,o,s){var r=e.__transition
|
|
12736
12708
|
if(r){if(n in r)return}else e.__transition={}
|
|
12737
12709
|
!function(e,t,n){var i,o=e.__transition
|
|
12738
|
-
function s(e){n.state=
|
|
12739
|
-
if(n.state!==
|
|
12740
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state
|
|
12741
|
-
u.state
|
|
12742
|
-
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=
|
|
12743
|
-
n.state===
|
|
12744
|
-
delete e.__transition}o[t]=n,n.timer=
|
|
12745
|
-
if(n.state>
|
|
12746
|
-
return n}function
|
|
12747
|
-
if(n.state
|
|
12748
|
-
return n}function
|
|
12710
|
+
function s(e){n.state=kV,n.timer.restart(r,n.delay,n.time),n.delay<=e&&r(e-n.delay)}function r(s){var c,d,h,u
|
|
12711
|
+
if(n.state!==kV)return l()
|
|
12712
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===$V)return yV(r)
|
|
12713
|
+
u.state===MV?(u.state=EV,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=EV,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(yV((function(){n.state===$V&&(n.state=MV,n.timer.restart(a,n.delay,n.time),a(s))})),n.state=SV,n.on.call("start",e,e.__data__,n.index,n.group),n.state===SV){for(n.state=$V,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
|
|
12714
|
+
i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=_V,1),s=-1,r=i.length;++s<r;)i[s].call(e,o)
|
|
12715
|
+
n.state===_V&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=EV,n.timer.stop(),delete o[t],o)return
|
|
12716
|
+
delete e.__transition}o[t]=n,n.timer=mV(s,0,n.time)}(e,n,{name:t,index:i,group:o,on:wV,tween:xV,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:CV})}function DV(e,t){var n=TV(e,t)
|
|
12717
|
+
if(n.state>CV)throw new Error("too late; already scheduled")
|
|
12718
|
+
return n}function AV(e,t){var n=TV(e,t)
|
|
12719
|
+
if(n.state>$V)throw new Error("too late; already running")
|
|
12720
|
+
return n}function TV(e,t){var n=e.__transition
|
|
12749
12721
|
if(!n||!(n=n[t]))throw new Error("transition not found")
|
|
12750
|
-
return n}function
|
|
12751
|
-
if(s){for(o in t=null==t?null:t+"",s)(n=s[o]).name===t?(i=n.state>
|
|
12752
|
-
r&&delete e.__transition}}function
|
|
12753
|
-
return function(){var o=
|
|
12722
|
+
return n}function OV(e,t){var n,i,o,s=e.__transition,r=!0
|
|
12723
|
+
if(s){for(o in t=null==t?null:t+"",s)(n=s[o]).name===t?(i=n.state>SV&&n.state<_V,n.state=EV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete s[o]):r=!1
|
|
12724
|
+
r&&delete e.__transition}}function RV(e,t){var n,i
|
|
12725
|
+
return function(){var o=AV(this,e),s=o.tween
|
|
12754
12726
|
if(s!==n)for(var r=0,a=(i=n=s).length;r<a;++r)if(i[r].name===t){(i=i.slice()).splice(r,1)
|
|
12755
|
-
break}o.tween=i}}function
|
|
12727
|
+
break}o.tween=i}}function FV(e,t,n){var i,o
|
|
12756
12728
|
if("function"!=typeof n)throw new Error
|
|
12757
|
-
return function(){var s=
|
|
12729
|
+
return function(){var s=AV(this,e),r=s.tween
|
|
12758
12730
|
if(r!==i){o=(i=r).slice()
|
|
12759
12731
|
for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
|
|
12760
|
-
break}l===c&&o.push(a)}s.tween=o}}function
|
|
12761
|
-
return e.each((function(){var e=
|
|
12762
|
-
return("number"==typeof t?
|
|
12732
|
+
break}l===c&&o.push(a)}s.tween=o}}function NV(e,t,n){var i=e._id
|
|
12733
|
+
return e.each((function(){var e=AV(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return TV(e,i).value[t]}}function PV(e,t){var n
|
|
12734
|
+
return("number"==typeof t?zz:t instanceof gz?Fz:(n=gz(t))?(t=n,Fz):qz)(e,t)}function LV(e){return function(){this.removeAttribute(e)}}function zV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function VV(e,t,n){var i,o,s=n+""
|
|
12763
12735
|
return function(){var r=this.getAttribute(e)
|
|
12764
|
-
return r===s?null:r===i?o:o=t(i=r,n)}}function
|
|
12736
|
+
return r===s?null:r===i?o:o=t(i=r,n)}}function HV(e,t,n){var i,o,s=n+""
|
|
12765
12737
|
return function(){var r=this.getAttributeNS(e.space,e.local)
|
|
12766
|
-
return r===s?null:r===i?o:o=t(i=r,n)}}function
|
|
12738
|
+
return r===s?null:r===i?o:o=t(i=r,n)}}function BV(e,t,n){var i,o,s
|
|
12767
12739
|
return function(){var r,a,l=n(this)
|
|
12768
12740
|
if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=t(i=r,l))
|
|
12769
|
-
this.removeAttribute(e)}}function
|
|
12741
|
+
this.removeAttribute(e)}}function qV(e,t,n){var i,o,s
|
|
12770
12742
|
return function(){var r,a,l=n(this)
|
|
12771
12743
|
if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=t(i=r,l))
|
|
12772
|
-
this.removeAttributeNS(e.space,e.local)}}function
|
|
12744
|
+
this.removeAttributeNS(e.space,e.local)}}function UV(e,t){var n,i
|
|
12773
12745
|
function o(){var o=t.apply(this,arguments)
|
|
12774
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
12746
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function jV(e,t){var n,i
|
|
12775
12747
|
function o(){var o=t.apply(this,arguments)
|
|
12776
|
-
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function
|
|
12777
|
-
function
|
|
12778
|
-
function
|
|
12779
|
-
|
|
12780
|
-
"function"!=typeof e&&(e=
|
|
12781
|
-
for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,
|
|
12782
|
-
return new
|
|
12783
|
-
"function"!=typeof e&&(e=
|
|
12784
|
-
for(var i=this._groups,o=i.length,s=[],r=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=
|
|
12785
|
-
s.push(p),r.push(l)}return new
|
|
12748
|
+
return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function WV(e,t){return function(){DV(this,e).delay=+t.apply(this,arguments)}}function GV(e,t){return t=+t,function(){DV(this,e).delay=t}}function ZV(e,t){return function(){AV(this,e).duration=+t.apply(this,arguments)}}function KV(e,t){return t=+t,function(){AV(this,e).duration=t}}var XV=GL.prototype.constructor
|
|
12749
|
+
function YV(e){return function(){this.style.removeProperty(e)}}var JV=0
|
|
12750
|
+
function QV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function eH(){return++JV}var tH=GL.prototype
|
|
12751
|
+
QV.prototype={constructor:QV,select:function(e){var t=this._name,n=this._id
|
|
12752
|
+
"function"!=typeof e&&(e=qP(e))
|
|
12753
|
+
for(var i=this._groups,o=i.length,s=new Array(o),r=0;r<o;++r)for(var a,l,c=i[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,IV(h[u],t,n,u,h,TV(a,n)))
|
|
12754
|
+
return new QV(s,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
|
|
12755
|
+
"function"!=typeof e&&(e=jP(e))
|
|
12756
|
+
for(var i=this._groups,o=i.length,s=[],r=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=TV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&IV(u,t,n,m,p,f)
|
|
12757
|
+
s.push(p),r.push(l)}return new QV(s,r,t,n)},selectChild:tH.selectChild,selectChildren:tH.selectChildren,filter:function(e){"function"!=typeof e&&(e=GP(e))
|
|
12786
12758
|
for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var s,r=t[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
|
|
12787
|
-
return new
|
|
12759
|
+
return new QV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
|
|
12788
12760
|
for(var t=this._groups,n=e._groups,i=t.length,o=n.length,s=Math.min(i,o),r=new Array(i),a=0;a<s;++a)for(var l,c=t[a],d=n[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
|
|
12789
12761
|
for(;a<i;++a)r[a]=t[a]
|
|
12790
|
-
return new
|
|
12791
|
-
|
|
12792
|
-
return arguments.length<2?
|
|
12793
|
-
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?
|
|
12762
|
+
return new QV(r,this._parents,this._name,this._id)},selection:function(){return new XV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=eH(),i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=TV(r,t)
|
|
12763
|
+
IV(r,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new QV(i,this._parents,e,n)},call:tH.call,nodes:tH.nodes,node:tH.node,size:tH.size,empty:tH.empty,each:tH.each,on:function(e,t){var n=this._id
|
|
12764
|
+
return arguments.length<2?TV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
|
|
12765
|
+
return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?DV:AV
|
|
12794
12766
|
return function(){var r=s(this,e),a=r.on
|
|
12795
|
-
a!==i&&(o=(i=a).copy()).on(t,n),r.on=o}}(n,e,t))},attr:function(e,t){var n=
|
|
12796
|
-
return this.attrTween(e,"function"==typeof t?(n.local?BV
|
|
12767
|
+
a!==i&&(o=(i=a).copy()).on(t,n),r.on=o}}(n,e,t))},attr:function(e,t){var n=LP(e),i="transform"===n?Jz:PV
|
|
12768
|
+
return this.attrTween(e,"function"==typeof t?(n.local?qV:BV)(n,i,NV(this,"attr."+e,t)):null==t?(n.local?zV:LV)(n):(n.local?HV:VV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
|
|
12797
12769
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
12798
12770
|
if(null==t)return this.tween(n,null)
|
|
12799
12771
|
if("function"!=typeof t)throw new Error
|
|
12800
|
-
var i=
|
|
12801
|
-
return this.tween(n,(i.local?
|
|
12772
|
+
var i=LP(e)
|
|
12773
|
+
return this.tween(n,(i.local?UV:jV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?Yz:PV
|
|
12802
12774
|
return null==t?this.styleTween(e,function(e,t){var n,i,o
|
|
12803
|
-
return function(){var s=
|
|
12804
|
-
return s===r?null:s===n&&r===i?o:o=t(n=s,i=r)}}(e,i)).on("end.style."+e,
|
|
12805
|
-
return function(){var r=
|
|
12806
|
-
return null==a&&(this.style.removeProperty(e),l=a=
|
|
12807
|
-
return function(){var l=
|
|
12775
|
+
return function(){var s=gL(this,e),r=(this.style.removeProperty(e),gL(this,e))
|
|
12776
|
+
return s===r?null:s===n&&r===i?o:o=t(n=s,i=r)}}(e,i)).on("end.style."+e,YV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,s
|
|
12777
|
+
return function(){var r=gL(this,e),a=n(this),l=a+""
|
|
12778
|
+
return null==a&&(this.style.removeProperty(e),l=a=gL(this,e)),r===l?null:r===i&&l===o?s:(o=l,s=t(i=r,a))}}(e,i,NV(this,"style."+e,t))).each(function(e,t){var n,i,o,s,r="style."+t,a="end."+r
|
|
12779
|
+
return function(){var l=AV(this,e),c=l.on,d=null==l.value[r]?s||(s=YV(t)):void 0
|
|
12808
12780
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,s=n+""
|
|
12809
|
-
return function(){var r=
|
|
12781
|
+
return function(){var r=gL(this,e)
|
|
12810
12782
|
return r===s?null:r===i?o:o=t(i=r,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
|
|
12811
12783
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
12812
12784
|
if(null==t)return this.tween(i,null)
|
|
@@ -12814,7 +12786,7 @@ if("function"!=typeof t)throw new Error
|
|
|
12814
12786
|
return this.tween(i,function(e,t,n){var i,o
|
|
12815
12787
|
function s(){var s=t.apply(this,arguments)
|
|
12816
12788
|
return s!==o&&(i=(o=s)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,s,n)),i}return s._value=t,s}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
|
|
12817
|
-
this.textContent=null==t?"":t}}(
|
|
12789
|
+
this.textContent=null==t?"":t}}(NV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
|
|
12818
12790
|
if(arguments.length<1)return(t=this.tween(t))&&t._value
|
|
12819
12791
|
if(null==e)return this.tween(t,null)
|
|
12820
12792
|
if("function"!=typeof e)throw new Error
|
|
@@ -12823,59 +12795,59 @@ function i(){var i=e.apply(this,arguments)
|
|
|
12823
12795
|
return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
|
|
12824
12796
|
for(var n in this.__transition)if(+n!==e)return
|
|
12825
12797
|
t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
|
|
12826
|
-
if(e+="",arguments.length<2){for(var i,o=
|
|
12827
|
-
return null}return this.each((null==t?
|
|
12828
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
12829
|
-
return arguments.length?this.each(("function"==typeof e?
|
|
12798
|
+
if(e+="",arguments.length<2){for(var i,o=TV(this.node(),n).tween,s=0,r=o.length;s<r;++s)if((i=o[s]).name===e)return i.value
|
|
12799
|
+
return null}return this.each((null==t?RV:FV)(n,e,t))},delay:function(e){var t=this._id
|
|
12800
|
+
return arguments.length?this.each(("function"==typeof e?WV:GV)(t,e)):TV(this.node(),t).delay},duration:function(e){var t=this._id
|
|
12801
|
+
return arguments.length?this.each(("function"==typeof e?ZV:KV)(t,e)):TV(this.node(),t).duration},ease:function(e){var t=this._id
|
|
12830
12802
|
return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
|
|
12831
|
-
return function(){
|
|
12803
|
+
return function(){AV(this,e).ease=t}}(t,e)):TV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
|
|
12832
12804
|
return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
|
|
12833
12805
|
if("function"!=typeof n)throw new Error
|
|
12834
|
-
|
|
12806
|
+
AV(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
|
|
12835
12807
|
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
12836
|
-
n.each((function(){var n=
|
|
12837
|
-
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&s()}))},[Symbol.iterator]:
|
|
12838
|
-
var
|
|
12839
|
-
function
|
|
12840
|
-
return n}
|
|
12841
|
-
e instanceof
|
|
12842
|
-
for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&
|
|
12843
|
-
return new
|
|
12844
|
-
var
|
|
12845
|
-
function
|
|
12846
|
-
var
|
|
12847
|
-
function
|
|
12848
|
-
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
|
|
12849
|
-
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function
|
|
12850
|
-
function v(e){e.property("__zoom",
|
|
12851
|
-
return i===e.x&&o===e.y?e:new
|
|
12808
|
+
n.each((function(){var n=AV(this,i),o=n.on
|
|
12809
|
+
o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&s()}))},[Symbol.iterator]:tH[Symbol.iterator]}
|
|
12810
|
+
var nH={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
|
|
12811
|
+
function iH(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
|
|
12812
|
+
return n}GL.prototype.interrupt=function(e){return this.each((function(){OV(this,e)}))},GL.prototype.transition=function(e){var t,n
|
|
12813
|
+
e instanceof QV?(t=e._id,e=e._name):(t=eH(),(n=nH).time=uV(),e=null==e?null:e+"")
|
|
12814
|
+
for(var i=this._groups,o=i.length,s=0;s<o;++s)for(var r,a=i[s],l=a.length,c=0;c<l;++c)(r=a[c])&&IV(r,e,t,c,a,n||iH(r,t))
|
|
12815
|
+
return new QV(i,this._parents,e,t)}
|
|
12816
|
+
var oH=e=>()=>e
|
|
12817
|
+
function sH(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function rH(e,t,n){this.k=e,this.x=t,this.y=n}rH.prototype={constructor:rH,scale:function(e){return 1===e?this:new rH(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new rH(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
|
|
12818
|
+
var aH=new rH(1,0,0)
|
|
12819
|
+
function lH(e){e.stopImmediatePropagation()}function cH(e){e.preventDefault(),e.stopImmediatePropagation()}function dH(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function hH(){var e=this
|
|
12820
|
+
return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function uH(){return this.__zoom||aH}function pH(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function fH(){return navigator.maxTouchPoints||"ontouchstart"in this}function mH(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],r=e.invertY(t[1][1])-n[1][1]
|
|
12821
|
+
return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}function gH(){var e,t,n,i=dH,o=hH,s=mH,r=pH,a=fH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=nV,u=TP("start","zoom","end"),p=500,f=150,m=0,g=10
|
|
12822
|
+
function v(e){e.property("__zoom",uH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new rH(t,e.x,e.y)}function y(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
|
|
12823
|
+
return i===e.x&&o===e.y?e:new rH(e.k,i,o)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,s=arguments,r=C(e,s).event(i),a=o.apply(e,s),l=null==n?w(a):"function"==typeof n?n.apply(e,s):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
12852
12824
|
return function(e){if(1===e)e=u
|
|
12853
12825
|
else{var t=p(e),n=c/t[2]
|
|
12854
|
-
e=new
|
|
12826
|
+
e=new rH(n,l[0]-t[0]*n,l[1]-t[1]*n)}r.zoom(null,e)}}))}function C(e,t,n){return!n&&e.__zooming||new k(e,t)}function k(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=C(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=KL(e)
|
|
12855
12827
|
if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
|
|
12856
12828
|
else{if(o.k===a)return
|
|
12857
|
-
n.mouse=[d,o.invert(d)],
|
|
12858
|
-
r.moved=t*t+n*n>m}r.event(e).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=
|
|
12859
|
-
t&&(i.on("click.drag",XL
|
|
12860
|
-
!function(e){var t=e.document.documentElement,n=
|
|
12861
|
-
"onselectstart"in t?n.on("selectstart.drag",XL
|
|
12862
|
-
|
|
12863
|
-
for(
|
|
12864
|
-
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),
|
|
12865
|
-
for(
|
|
12829
|
+
n.mouse=[d,o.invert(d)],OV(this),n.start()}cH(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",s(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,r=C(this,t,!0).event(e),a=ZL(e.view).on("mousemove.zoom",(function(e){if(cH(e),!r.moved){var t=e.clientX-d,n=e.clientY-h
|
|
12830
|
+
r.moved=t*t+n*n>m}r.event(e).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=KL(e,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=ZL(e).on("dragstart.drag",null)
|
|
12831
|
+
t&&(i.on("click.drag",YL,XL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,r.moved),cH(e),r.event(e).end()}),!0),l=KL(e,o),d=e.clientX,h=e.clientY
|
|
12832
|
+
!function(e){var t=e.document.documentElement,n=ZL(e).on("dragstart.drag",YL,XL)
|
|
12833
|
+
"onselectstart"in t?n.on("selectstart.drag",YL,XL):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),lH(e),r.mouse=[l,this.__zoom.invert(l)],OV(this),r.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,r=KL(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(r),l=n.k*(e.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,t),c)
|
|
12834
|
+
cH(e),d>0?ZL(this).transition().duration(d).call(x,h,r,e):ZL(this).call(v.transform,h,r,e)}}function _(n,...o){if(i.apply(this,arguments)){var s,r,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
|
|
12835
|
+
for(lH(n),r=0;r<d;++r)l=[l=KL(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
|
|
12836
|
+
e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),OV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,r,a=C(this,t).event(e),l=e.changedTouches,d=l.length
|
|
12837
|
+
for(cH(e),n=0;n<d;++n)o=KL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
|
|
12866
12838
|
if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
|
|
12867
12839
|
i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
|
|
12868
12840
|
o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(y(i,o,r),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,s,r=C(this,i).event(e),a=e.changedTouches,l=a.length
|
|
12869
|
-
for(
|
|
12841
|
+
for(lH(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)s=a[o],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
|
|
12870
12842
|
if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
|
|
12871
|
-
else if(r.end(),2===r.taps&&(s=
|
|
12843
|
+
else if(r.end(),2===r.taps&&(s=KL(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<g)){var c=ZL(this).on("dblclick.zoom")
|
|
12872
12844
|
c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
|
|
12873
|
-
o.property("__zoom",
|
|
12845
|
+
o.property("__zoom",uH),e!==o?x(e,t,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,r=null==n?w(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof t?t.apply(this,arguments):t
|
|
12874
12846
|
return s(y(b(i,l),r,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i
|
|
12875
|
-
return s(
|
|
12876
|
-
u.call(e,this.that,new
|
|
12877
|
-
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}
|
|
12878
|
-
const
|
|
12847
|
+
return s(aH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,r)},k.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=ZL(this.that).datum()
|
|
12848
|
+
u.call(e,this.that,new sH(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:oH(+e),v):r},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:oH(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:oH(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:oH([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(s=e,v):s},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
|
|
12849
|
+
return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}rH.prototype
|
|
12850
|
+
const vH=G`
|
|
12879
12851
|
<div class="wafer-map-container">
|
|
12880
12852
|
<svg class="svg-root">
|
|
12881
12853
|
<g ${Pe("zoomContainer")} transform=${e=>e.transform.toString()}>
|
|
@@ -12906,7 +12878,7 @@ const gH=G`
|
|
|
12906
12878
|
/>
|
|
12907
12879
|
</svg>
|
|
12908
12880
|
</div>
|
|
12909
|
-
`,
|
|
12881
|
+
`,bH=xe`
|
|
12910
12882
|
${Ro("inline-block")}
|
|
12911
12883
|
|
|
12912
12884
|
:host {
|
|
@@ -12996,67 +12968,67 @@ const gH=G`
|
|
|
12996
12968
|
outline-width: 0px;
|
|
12997
12969
|
}
|
|
12998
12970
|
`
|
|
12999
|
-
function
|
|
12971
|
+
function yH(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wH(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xH(e){let t,n,i
|
|
13000
12972
|
function o(e,i,o=0,s=e.length){if(o<s){if(0!==t(i,i))return s
|
|
13001
12973
|
do{const t=o+s>>>1
|
|
13002
|
-
n(e[t],i)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=
|
|
12974
|
+
n(e[t],i)<0?o=t+1:s=t}while(o<s)}return o}return 2!==e.length?(t=yH,n=(t,n)=>yH(e(t),n),i=(t,n)=>e(t)-n):(t=e===yH||e===wH?e:CH,n=e,i=e),{left:o,center:function(e,t,n=0,s=e.length){const r=o(e,t,n,s-1)
|
|
13003
12975
|
return r>n&&i(e[r-1],t)>-i(e[r],t)?r-1:r},right:function(e,i,o=0,s=e.length){if(o<s){if(0!==t(i,i))return s
|
|
13004
12976
|
do{const t=o+s>>>1
|
|
13005
|
-
n(e[t],i)<=0?o=t+1:s=t}while(o<s)}return o}}}function
|
|
13006
|
-
|
|
13007
|
-
class
|
|
12977
|
+
n(e[t],i)<=0?o=t+1:s=t}while(o<s)}return o}}}function CH(){return 0}function kH(e){return null===e?NaN:+e}const SH=xH(yH).right
|
|
12978
|
+
xH(kH).center
|
|
12979
|
+
class $H extends Map{constructor(e,t=_H){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(MH(this,e))}has(e){return super.has(MH(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
|
|
13008
12980
|
return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
|
|
13009
12981
|
e.has(i)&&(n=e.get(i),e.delete(i))
|
|
13010
|
-
return n}(this,e))}}function
|
|
13011
|
-
return e.has(i)?e.get(i):n}function
|
|
13012
|
-
function
|
|
12982
|
+
return n}(this,e))}}function MH({_intern:e,_key:t},n){const i=t(n)
|
|
12983
|
+
return e.has(i)?e.get(i):n}function _H(e){return null!==e&&"object"==typeof e?e.valueOf():e}const EH=Math.sqrt(50),IH=Math.sqrt(10),DH=Math.sqrt(2)
|
|
12984
|
+
function AH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),s=i/Math.pow(10,o),r=s>=EH?10:s>=IH?5:s>=DH?2:1
|
|
13013
12985
|
let a,l,c
|
|
13014
|
-
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?
|
|
12986
|
+
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?AH(e,t,2*n):[a,l,c]}function TH(e,t,n){return AH(e=+e,t=+t,n=+n)[2]}function OH(e,t,n=kH){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
|
|
13015
12987
|
if(t>=1)return+n(e[i-1],i-1,e)
|
|
13016
12988
|
var i,o=(i-1)*t,s=Math.floor(o),r=+n(e[s],s,e)
|
|
13017
|
-
return r+(+n(e[s+1],s+1,e)-r)*(o-s)}}function
|
|
12989
|
+
return r+(+n(e[s+1],s+1,e)-r)*(o-s)}}function RH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
|
|
13018
12990
|
for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),s=new Array(o);++i<o;)s[i]=e+i*n
|
|
13019
|
-
return s}function
|
|
12991
|
+
return s}function FH(e,t){switch(arguments.length){case 0:break
|
|
13020
12992
|
case 1:this.range(e)
|
|
13021
12993
|
break
|
|
13022
|
-
default:this.range(t).domain(e)}return this}const
|
|
13023
|
-
function
|
|
12994
|
+
default:this.range(t).domain(e)}return this}const NH=Symbol("implicit")
|
|
12995
|
+
function PH(){var e=new $H,t=[],n=[],i=NH
|
|
13024
12996
|
function o(o){let s=e.get(o)
|
|
13025
|
-
if(void 0===s){if(i!==
|
|
12997
|
+
if(void 0===s){if(i!==NH)return i
|
|
13026
12998
|
e.set(o,s=t.push(o)-1)}return n[s%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
|
|
13027
|
-
t=[],e=new
|
|
12999
|
+
t=[],e=new $H
|
|
13028
13000
|
for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
|
|
13029
|
-
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return
|
|
13001
|
+
return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return PH(t,n).unknown(i)},FH.apply(o,arguments),o}function LH(){var e,t,n=PH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
|
|
13030
13002
|
function h(){var n=i().length,h=r<s,u=h?r:s,p=h?s:r
|
|
13031
13003
|
e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
|
|
13032
|
-
var f=
|
|
13033
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return
|
|
13034
|
-
function
|
|
13035
|
-
var n}function
|
|
13036
|
-
return o<i?(i=
|
|
13037
|
-
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)o[r]=
|
|
13038
|
-
return function(t){var n=
|
|
13039
|
-
return s[n](o[n](t))}}function
|
|
13004
|
+
var f=RH(n).map((function(t){return u+e*t}))
|
|
13005
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return LH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},FH.apply(h(),arguments)}function zH(e){return+e}var VH=[0,1]
|
|
13006
|
+
function HH(e){return e}function BH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
|
|
13007
|
+
var n}function qH(e,t,n){var i=e[0],o=e[1],s=t[0],r=t[1]
|
|
13008
|
+
return o<i?(i=BH(o,i),s=n(r,s)):(i=BH(i,o),s=n(s,r)),function(e){return s(i(e))}}function UH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),s=new Array(i),r=-1
|
|
13009
|
+
for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<i;)o[r]=BH(e[r],e[r+1]),s[r]=n(t[r],t[r+1])
|
|
13010
|
+
return function(t){var n=SH(e,t,1,i)-1
|
|
13011
|
+
return s[n](o[n](t))}}function jH(){var e,t,n,i,o,s,r=VH,a=VH,l=Uz,c=HH
|
|
13040
13012
|
function d(){var e,t,n,l=Math.min(r.length,a.length)
|
|
13041
|
-
return c!==
|
|
13013
|
+
return c!==HH&&(e=r[0],t=r[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?UH:qH,o=s=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(r.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((s||(s=i(a,r.map(e),zz)))(n)))},h.domain=function(e){return arguments.length?(r=Array.from(e,zH),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=jz,d()},h.clamp=function(e){return arguments.length?(c=!!e||HH,d()):c!==HH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function WH(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
|
|
13042
13014
|
var n,i=e.slice(0,n)
|
|
13043
|
-
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function
|
|
13044
|
-
function
|
|
13015
|
+
return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function GH(e){return(e=WH(Math.abs(e)))?e[1]:NaN}var ZH,KH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
13016
|
+
function XH(e){if(!(t=KH.exec(e)))throw new Error("invalid format: "+e)
|
|
13045
13017
|
var t
|
|
13046
|
-
return new
|
|
13018
|
+
return new YH({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function YH(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function JH(e,t){var n=WH(e,t)
|
|
13047
13019
|
if(!n)return e+""
|
|
13048
13020
|
var i=n[0],o=n[1]
|
|
13049
|
-
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}
|
|
13050
|
-
var
|
|
13021
|
+
return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}XH.prototype=YH.prototype,YH.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
|
|
13022
|
+
var QH={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>JH(100*e,t),r:JH,s:function(e,t){var n=WH(e,t)
|
|
13051
13023
|
if(!n)return e+""
|
|
13052
|
-
var i=n[0],o=n[1],s=o-(
|
|
13053
|
-
return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+
|
|
13054
|
-
function
|
|
13055
|
-
function
|
|
13056
|
-
return s.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?
|
|
13057
|
-
function h(e){var t=(e=
|
|
13058
|
-
"n"===b?(m=!0,b="g"):
|
|
13059
|
-
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=
|
|
13024
|
+
var i=n[0],o=n[1],s=o-(ZH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
|
|
13025
|
+
return s===r?i:s>r?i+new Array(s-r+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+WH(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
|
|
13026
|
+
function eB(e){return e}var tB,nB,iB,oB=Array.prototype.map,sB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
13027
|
+
function rB(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?eB:(t=oB.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,s=[],r=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[r=(r+1)%t.length]
|
|
13028
|
+
return s.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?eB:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(oB.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
|
|
13029
|
+
function h(e){var t=(e=XH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
|
|
13030
|
+
"n"===b?(m=!0,b="g"):QH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
|
|
13031
|
+
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=QH[b],C=/[defgprs%]/.test(b)
|
|
13060
13032
|
function k(e){var o,s,l,u=y,k=w
|
|
13061
13033
|
if("c"===b)k=x(e)+k,e=""
|
|
13062
13034
|
else{var S=(e=+e)<0||1/e<0
|
|
@@ -13065,7 +13037,7 @@ break
|
|
|
13065
13037
|
case"0":0===o&&(o=i),t=i
|
|
13066
13038
|
break
|
|
13067
13039
|
default:if(!+e[i])break e
|
|
13068
|
-
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?
|
|
13040
|
+
o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?sB[8+ZH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=e.length;++o<s;)if(48>(l=e.charCodeAt(o))||l>57){k=(46===l?r+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o)
|
|
13069
13041
|
break}}m&&!p&&(e=i(e,1/0))
|
|
13070
13042
|
var $=u.length+e.length+k.length,M=$<f?new Array(f-$+1).join(t):""
|
|
13071
13043
|
switch(m&&p&&(e=i(M+e,M.length?f-k.length:1/0),M=""),n){case"<":e=u+e+k+M
|
|
@@ -13074,19 +13046,19 @@ case"=":e=u+M+e+k
|
|
|
13074
13046
|
break
|
|
13075
13047
|
case"^":e=M.slice(0,$=M.length>>1)+u+e+k+M.slice($)
|
|
13076
13048
|
break
|
|
13077
|
-
default:e=M+u+e+k}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=
|
|
13078
|
-
return function(e){return n(o*e)+s}}}}function
|
|
13079
|
-
const i=(t=+t)<(e=+e),o=i?
|
|
13049
|
+
default:e=M+u+e+k}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return e+""},k}return{format:h,formatPrefix:function(e,t){var n=h(((e=XH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(GH(t)/3))),o=Math.pow(10,-i),s=sB[8+i/3]
|
|
13050
|
+
return function(e){return n(o*e)+s}}}}function aB(e,t,n,i){var o,s=function(e,t,n){n=+n
|
|
13051
|
+
const i=(t=+t)<(e=+e),o=i?TH(t,e,n):TH(e,t,n)
|
|
13080
13052
|
return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
|
|
13081
|
-
switch((i=
|
|
13082
|
-
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
13083
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,
|
|
13053
|
+
switch((i=XH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
|
|
13054
|
+
return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(GH(t)/3)))-GH(Math.abs(e)))}(s,r))||(i.precision=o),iB(i,r)
|
|
13055
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,GH(t)-GH(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
|
|
13084
13056
|
break
|
|
13085
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-
|
|
13057
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-GH(Math.abs(e)))}(s))||(i.precision=o-2*("%"===i.type))}return nB(i)}function lB(e){var t=e.domain
|
|
13086
13058
|
return e.ticks=function(e){var n=t()
|
|
13087
13059
|
return function(e,t,n){if(!((n=+n)>0))return[]
|
|
13088
13060
|
if((e=+e)==(t=+t))return[e]
|
|
13089
|
-
const i=t<e,[o,s,r]=i?
|
|
13061
|
+
const i=t<e,[o,s,r]=i?AH(t,e,n):AH(e,t,n)
|
|
13090
13062
|
if(!(s>=o))return[]
|
|
13091
13063
|
const a=s-o+1,l=new Array(a)
|
|
13092
13064
|
if(i)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
|
|
@@ -13094,33 +13066,33 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
|
|
|
13094
13066
|
else if(r<0)for(let e=0;e<a;++e)l[e]=(o+e)/-r
|
|
13095
13067
|
else for(let e=0;e<a;++e)l[e]=(o+e)*r
|
|
13096
13068
|
return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
|
|
13097
|
-
return
|
|
13069
|
+
return aB(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
|
|
13098
13070
|
var i,o,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
|
|
13099
|
-
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=
|
|
13071
|
+
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=TH(l,c,n))===i)return s[r]=l,s[a]=c,t(s)
|
|
13100
13072
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
13101
13073
|
else{if(!(o<0))break
|
|
13102
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function
|
|
13103
|
-
return e.copy=function(){return t=e,
|
|
13104
|
-
var t},
|
|
13074
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function cB(){var e=jH()(HH,HH)
|
|
13075
|
+
return e.copy=function(){return t=e,cB().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
|
|
13076
|
+
var t},FH.apply(e,arguments),lB(e)}function dB(){var e,t=[],n=[],i=[]
|
|
13105
13077
|
function o(){var e=0,o=Math.max(1,n.length)
|
|
13106
|
-
for(i=new Array(o-1);++e<o;)i[e-1]=
|
|
13107
|
-
return s}function s(t){return null==t||isNaN(t=+t)?e:n[
|
|
13078
|
+
for(i=new Array(o-1);++e<o;)i[e-1]=OH(t,e/o)
|
|
13079
|
+
return s}function s(t){return null==t||isNaN(t=+t)?e:n[SH(i,t)]}return s.invertExtent=function(e){var o=n.indexOf(e)
|
|
13108
13080
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice()
|
|
13109
13081
|
t=[]
|
|
13110
13082
|
for(let n of e)null==n||isNaN(n=+n)||t.push(n)
|
|
13111
|
-
return t.sort(
|
|
13112
|
-
const
|
|
13113
|
-
class
|
|
13083
|
+
return t.sort(yH),o()},s.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return dB().domain(t).range(n).unknown(e)},FH.apply(s,arguments)}tB=rB({thousands:",",grouping:[3],currency:["$",""]}),nB=tB.format,iB=tB.formatPrefix
|
|
13084
|
+
const hB="bottom-left",uB="bottom-right",pB="top-left",fB="top",mB="show",gB="hide",vB="linear",bB="ordinal"
|
|
13085
|
+
class yB{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(e){this.wafermap=e,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
|
|
13114
13086
|
const e=e=>null!==e
|
|
13115
13087
|
void 0===this.wafermap.diesTable&&(this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter(e))}computeDieRenderInfo(e){const t=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(e.x),i=this.wafermap.dataManager.verticalScale(e.y)
|
|
13116
|
-
return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?
|
|
13088
|
+
return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?cB().domain(e.values.map((e=>+e))).range(e.colors):PH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
|
|
13117
13089
|
const o=`${e}${i}`
|
|
13118
13090
|
return o.length>=t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
|
|
13119
13091
|
const n=new Set(t)
|
|
13120
|
-
return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===
|
|
13092
|
+
return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===vB}isColorScaleOrdinal(e){return e===bB}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
|
|
13121
13093
|
if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
|
|
13122
13094
|
let s=Zo(o)
|
|
13123
|
-
return null===s?this.emptyDieColor:(s=new Vo(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}class
|
|
13095
|
+
return null===s?this.emptyDieColor:(s=new Vo(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}class wB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(e){this.wafermap=e,this.computations=new class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
13124
13096
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
|
|
13125
13097
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
13126
13098
|
this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -13130,11 +13102,11 @@ this._dieDimensions={width:isNaN(i)?0:i,height:isNaN(o)?0:o}}gridDimensionsValid
|
|
|
13130
13102
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
13131
13103
|
const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
|
|
13132
13104
|
for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
13133
|
-
return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=
|
|
13134
|
-
return e===
|
|
13135
|
-
return e===
|
|
13136
|
-
return e===
|
|
13137
|
-
return e===
|
|
13105
|
+
return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=LH().domain(RH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
13106
|
+
return e===hB||e===pB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=dB().domain([0,n])
|
|
13107
|
+
return e===hB||e===pB?i.range(RH(t.origin.x,t.origin.x+t.cols)):i.range(RH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=LH().domain(RH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
13108
|
+
return e===hB||e===uB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=dB().domain([0,n])
|
|
13109
|
+
return e===hB||e===uB?i.range(RH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(RH(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}(e),this.prerendering=new yB(e)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class xB{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){void 0!==this.wafermap.dataManager.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?gB:mB,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
13138
13110
|
if(void 0===e)return""
|
|
13139
13111
|
const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
13140
13112
|
if(void 0===t)return""
|
|
@@ -13147,117 +13119,117 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
13147
13119
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
13148
13120
|
const o=i.measureText("M"),s=this.wafermap.transform.invert([0,0]),r=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
|
|
13149
13121
|
s[0]-=e,s[1]-=t
|
|
13150
|
-
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}const
|
|
13151
|
-
class
|
|
13152
|
-
!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(
|
|
13153
|
-
class
|
|
13154
|
-
class
|
|
13155
|
-
class
|
|
13122
|
+
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}const CB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
13123
|
+
class kB extends aI{constructor(e){super(CB),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresWorkerWaferSetup(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresComponentResizeUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresInputDataUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresColorAndTextUpdate(){return this.isTracked("maxCharacters")||this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&!this.updateQueued&&(this.updateQueued=!0,void 0===this.wafermap.currentTask?u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1})):(async()=>{await this.wafermap.currentTask,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0}))})())}}var SB,$B,MB,_B,EB,IB,DB,AB,TB
|
|
13124
|
+
!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(SB||(SB={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}($B||($B={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(MB||(MB={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(_B||(_B={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(EB||(EB={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(IB||(IB={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(DB||(DB={}))
|
|
13125
|
+
class OB{static isNull(e){return(null==e?void 0:e.typeId)===IB.Null}static isInt(e){return(null==e?void 0:e.typeId)===IB.Int}static isFloat(e){return(null==e?void 0:e.typeId)===IB.Float}static isBinary(e){return(null==e?void 0:e.typeId)===IB.Binary}static isLargeBinary(e){return(null==e?void 0:e.typeId)===IB.LargeBinary}static isUtf8(e){return(null==e?void 0:e.typeId)===IB.Utf8}static isLargeUtf8(e){return(null==e?void 0:e.typeId)===IB.LargeUtf8}static isBool(e){return(null==e?void 0:e.typeId)===IB.Bool}static isDecimal(e){return(null==e?void 0:e.typeId)===IB.Decimal}static isDate(e){return(null==e?void 0:e.typeId)===IB.Date}static isTime(e){return(null==e?void 0:e.typeId)===IB.Time}static isTimestamp(e){return(null==e?void 0:e.typeId)===IB.Timestamp}static isInterval(e){return(null==e?void 0:e.typeId)===IB.Interval}static isDuration(e){return(null==e?void 0:e.typeId)===IB.Duration}static isList(e){return(null==e?void 0:e.typeId)===IB.List}static isStruct(e){return(null==e?void 0:e.typeId)===IB.Struct}static isUnion(e){return(null==e?void 0:e.typeId)===IB.Union}static isFixedSizeBinary(e){return(null==e?void 0:e.typeId)===IB.FixedSizeBinary}static isFixedSizeList(e){return(null==e?void 0:e.typeId)===IB.FixedSizeList}static isMap(e){return(null==e?void 0:e.typeId)===IB.Map}static isDictionary(e){return(null==e?void 0:e.typeId)===IB.Dictionary}static isDenseUnion(e){return OB.isUnion(e)&&e.mode===SB.Dense}static isSparseUnion(e){return OB.isUnion(e)&&e.mode===SB.Sparse}constructor(e){this.typeId=e}}AB=Symbol.toStringTag,OB[AB]=((TB=OB.prototype).children=null,TB.ArrayType=Array,TB.OffsetArrayType=Int32Array,TB[Symbol.toStringTag]="DataType")
|
|
13126
|
+
class RB extends OB{constructor(){super(IB.Null)}toString(){return"Null"}}RB[Symbol.toStringTag]=(e=>e[Symbol.toStringTag]="Null")(RB.prototype)
|
|
13127
|
+
class FB extends OB{constructor(e,t){super(IB.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
13156
13128
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
13157
13129
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
13158
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
13159
|
-
class
|
|
13160
|
-
case
|
|
13161
|
-
case
|
|
13162
|
-
class
|
|
13163
|
-
class
|
|
13164
|
-
class
|
|
13165
|
-
class
|
|
13166
|
-
class
|
|
13167
|
-
class
|
|
13168
|
-
class
|
|
13169
|
-
class
|
|
13170
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
13171
|
-
class
|
|
13172
|
-
class
|
|
13173
|
-
class
|
|
13174
|
-
class
|
|
13175
|
-
class
|
|
13176
|
-
class
|
|
13177
|
-
class
|
|
13178
|
-
class
|
|
13179
|
-
class
|
|
13180
|
-
if(super(
|
|
13130
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}FB[Symbol.toStringTag]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(FB.prototype)
|
|
13131
|
+
class NB extends OB{constructor(e){super(IB.Float),this.precision=e}get ArrayType(){switch(this.precision){case $B.HALF:return Uint16Array
|
|
13132
|
+
case $B.SINGLE:return Float32Array
|
|
13133
|
+
case $B.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}NB[Symbol.toStringTag]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(NB.prototype)
|
|
13134
|
+
class PB extends OB{constructor(){super(IB.Binary)}toString(){return"Binary"}}PB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(PB.prototype)
|
|
13135
|
+
class LB extends OB{constructor(){super(IB.LargeBinary)}toString(){return"LargeBinary"}}LB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(LB.prototype)
|
|
13136
|
+
class zB extends OB{constructor(){super(IB.Utf8)}toString(){return"Utf8"}}zB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(zB.prototype)
|
|
13137
|
+
class VB extends OB{constructor(){super(IB.LargeUtf8)}toString(){return"LargeUtf8"}}VB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))(VB.prototype)
|
|
13138
|
+
class HB extends OB{constructor(){super(IB.Bool)}toString(){return"Bool"}}HB[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(HB.prototype)
|
|
13139
|
+
class BB extends OB{constructor(e,t,n=128){super(IB.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}BB[Symbol.toStringTag]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(BB.prototype)
|
|
13140
|
+
class qB extends OB{constructor(e){super(IB.Date),this.unit=e}toString(){return`Date${32*(this.unit+1)}<${MB[this.unit]}>`}}qB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(qB.prototype)
|
|
13141
|
+
class UB extends OB{constructor(e,t){super(IB.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${_B[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
13142
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}UB[Symbol.toStringTag]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(UB.prototype)
|
|
13143
|
+
class jB extends OB{constructor(e,t){super(IB.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${_B[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}jB[Symbol.toStringTag]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(jB.prototype)
|
|
13144
|
+
class WB extends OB{constructor(e){super(IB.Interval),this.unit=e}toString(){return`Interval<${EB[this.unit]}>`}}WB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(WB.prototype)
|
|
13145
|
+
class GB extends OB{constructor(e){super(IB.Duration),this.unit=e}toString(){return`Duration<${_B[this.unit]}>`}}GB[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(GB.prototype)
|
|
13146
|
+
class ZB extends OB{constructor(e){super(IB.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}ZB[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(ZB.prototype)
|
|
13147
|
+
class KB extends OB{constructor(e){super(IB.Struct),this.children=e}toString(){return`Struct<{${this.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}KB[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(KB.prototype)
|
|
13148
|
+
class XB extends OB{constructor(e,t,n){super(IB.Union),this.mode=e,this.children=n,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,n)=>(e[t]=n)&&e||e),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((e=>`${e.type}`)).join(" | ")}>`}}XB[Symbol.toStringTag]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(XB.prototype)
|
|
13149
|
+
class YB extends OB{constructor(e){super(IB.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}YB[Symbol.toStringTag]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(YB.prototype)
|
|
13150
|
+
class JB extends OB{constructor(e,t){super(IB.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}JB[Symbol.toStringTag]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(JB.prototype)
|
|
13151
|
+
class QB extends OB{constructor(e,t=!1){var n,i,o
|
|
13152
|
+
if(super(IB.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.children)){const t=null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.children[0]
|
|
13181
13153
|
t&&(t.name="key")
|
|
13182
13154
|
const n=null===(o=null==e?void 0:e.type)||void 0===o?void 0:o.children[1]
|
|
13183
|
-
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}
|
|
13184
|
-
const
|
|
13185
|
-
var
|
|
13186
|
-
class
|
|
13187
|
-
return Number(e)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}
|
|
13188
|
-
class
|
|
13155
|
+
n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((e=>`${e.name}:${e.type}`)).join(", ")}}>`}}QB[Symbol.toStringTag]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(QB.prototype)
|
|
13156
|
+
const eq=(tq=-1,()=>++tq)
|
|
13157
|
+
var tq
|
|
13158
|
+
class nq extends OB{constructor(e,t,n,i){super(IB.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=i||!1,this.id=null==n?eq():function(e){if("bigint"==typeof e&&(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER))throw new TypeError(`${e} is not safe to convert to a number.`)
|
|
13159
|
+
return Number(e)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}nq[Symbol.toStringTag]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(nq.prototype)
|
|
13160
|
+
class iq{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
|
|
13189
13161
|
else{const e=this.wafermap.diesTable.schema.fields,t=e.find((e=>"colIndex"===e.name)),n=e.find((e=>"rowIndex"===e.name)),i=e.find((e=>"value"===e.name))
|
|
13190
|
-
t&&n&&i&&
|
|
13162
|
+
t&&n&&i&&OB.isInt(t.type)&&32===t.type.bitWidth&&OB.isInt(n.type)&&32===n.type.bitWidth&&OB.isFloat(i.type)&&i.type.precision===$B.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
|
|
13191
13163
|
/**
|
|
13192
13164
|
* @license
|
|
13193
13165
|
* Copyright 2019 Google LLC
|
|
13194
13166
|
* SPDX-License-Identifier: Apache-2.0
|
|
13195
|
-
*/const
|
|
13196
|
-
return
|
|
13167
|
+
*/const oq=Symbol("Comlink.proxy"),sq=Symbol("Comlink.endpoint"),rq=Symbol("Comlink.releaseProxy"),aq=Symbol("Comlink.finalizer"),lq=Symbol("Comlink.thrown"),cq=e=>"object"==typeof e&&null!==e||"function"==typeof e,dq=new Map([["proxy",{canHandle:e=>cq(e)&&e[oq],serialize(e){const{port1:t,port2:n}=new MessageChannel
|
|
13168
|
+
return hq(e,t),[n,[n]]},deserialize:e=>(e.start(),pq(e))}],["throw",{canHandle:e=>cq(e)&&lq in e,serialize({value:e}){let t
|
|
13197
13169
|
return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value)
|
|
13198
13170
|
throw e.value}}]])
|
|
13199
|
-
function
|
|
13171
|
+
function hq(e,t=globalThis,n=["*"]){t.addEventListener("message",(function i(o){if(!o||!o.data)return
|
|
13200
13172
|
if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0
|
|
13201
13173
|
if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`)
|
|
13202
|
-
const{id:s,type:r,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(
|
|
13174
|
+
const{id:s,type:r,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(kq)
|
|
13203
13175
|
let c
|
|
13204
13176
|
try{const t=a.slice(0,-1).reduce(((e,t)=>e[t]),e),n=a.reduce(((e,t)=>e[t]),e)
|
|
13205
13177
|
switch(r){case"GET":c=n
|
|
13206
13178
|
break
|
|
13207
|
-
case"SET":t[a.slice(-1)[0]]=
|
|
13179
|
+
case"SET":t[a.slice(-1)[0]]=kq(o.data.value),c=!0
|
|
13208
13180
|
break
|
|
13209
13181
|
case"APPLY":c=n.apply(t,l)
|
|
13210
13182
|
break
|
|
13211
|
-
case"CONSTRUCT":c=function(e){return Object.assign(e,{[
|
|
13183
|
+
case"CONSTRUCT":c=function(e){return Object.assign(e,{[oq]:!0})}(new n(...l))
|
|
13212
13184
|
break
|
|
13213
13185
|
case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel
|
|
13214
|
-
|
|
13186
|
+
hq(e,n),c=xq(t,[t])}break
|
|
13215
13187
|
case"RELEASE":c=void 0
|
|
13216
13188
|
break
|
|
13217
|
-
default:return}}catch(e){c={value:e,[
|
|
13218
|
-
t.postMessage(Object.assign(Object.assign({},o),{id:s}),a),"RELEASE"===r&&(t.removeEventListener("message",i),
|
|
13219
|
-
t.postMessage(Object.assign(Object.assign({},n),{id:s}),i)}))})),t.start&&t.start()}function
|
|
13220
|
-
|
|
13221
|
-
function
|
|
13222
|
-
const o=new Proxy(n,{get(n,s){if(
|
|
13189
|
+
default:return}}catch(e){c={value:e,[lq]:0}}Promise.resolve(c).catch((e=>({value:e,[lq]:0}))).then((n=>{const[o,a]=Cq(n)
|
|
13190
|
+
t.postMessage(Object.assign(Object.assign({},o),{id:s}),a),"RELEASE"===r&&(t.removeEventListener("message",i),uq(t),aq in e&&"function"==typeof e[aq]&&e[aq]())})).catch((e=>{const[n,i]=Cq({value:new TypeError("Unserializable return value"),[lq]:0})
|
|
13191
|
+
t.postMessage(Object.assign(Object.assign({},n),{id:s}),i)}))})),t.start&&t.start()}function uq(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function pq(e,t){return bq(e,[],t)}function fq(e){if(e)throw new Error("Proxy has been released and is not useable")}function mq(e){return Sq(e,{type:"RELEASE"}).then((()=>{uq(e)}))}const gq=new WeakMap,vq="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(gq.get(e)||0)-1
|
|
13192
|
+
gq.set(e,t),0===t&&mq(e)}))
|
|
13193
|
+
function bq(e,t=[],n=function(){}){let i=!1
|
|
13194
|
+
const o=new Proxy(n,{get(n,s){if(fq(i),s===rq)return()=>{!function(e){vq&&vq.unregister(e)}(o),mq(e),i=!0}
|
|
13223
13195
|
if("then"===s){if(0===t.length)return{then:()=>o}
|
|
13224
|
-
const n=
|
|
13225
|
-
return n.then.bind(n)}return
|
|
13226
|
-
const[r,a]=
|
|
13227
|
-
return
|
|
13196
|
+
const n=Sq(e,{type:"GET",path:t.map((e=>e.toString()))}).then(kq)
|
|
13197
|
+
return n.then.bind(n)}return bq(e,[...t,s])},set(n,o,s){fq(i)
|
|
13198
|
+
const[r,a]=Cq(s)
|
|
13199
|
+
return Sq(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:r},a).then(kq)},apply(n,o,s){fq(i)
|
|
13228
13200
|
const r=t[t.length-1]
|
|
13229
|
-
if(r===
|
|
13230
|
-
if("bind"===r)return
|
|
13231
|
-
const[a,l]=
|
|
13232
|
-
return
|
|
13233
|
-
const[s,r]=
|
|
13234
|
-
return
|
|
13235
|
-
return function(e,t){const n=(
|
|
13236
|
-
|
|
13201
|
+
if(r===sq)return Sq(e,{type:"ENDPOINT"}).then(kq)
|
|
13202
|
+
if("bind"===r)return bq(e,t.slice(0,-1))
|
|
13203
|
+
const[a,l]=yq(s)
|
|
13204
|
+
return Sq(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:a},l).then(kq)},construct(n,o){fq(i)
|
|
13205
|
+
const[s,r]=yq(o)
|
|
13206
|
+
return Sq(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:s},r).then(kq)}})
|
|
13207
|
+
return function(e,t){const n=(gq.get(t)||0)+1
|
|
13208
|
+
gq.set(t,n),vq&&vq.register(e,t,e)}(o,e),o}function yq(e){const t=e.map(Cq)
|
|
13237
13209
|
return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))]
|
|
13238
|
-
var n}const
|
|
13239
|
-
function
|
|
13240
|
-
return[{type:"HANDLER",name:t,value:i},o]}return[{type:"RAW",value:e},
|
|
13241
|
-
case"RAW":return e.value}}function
|
|
13242
|
-
e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}let
|
|
13243
|
-
class $q{constructor(e){this.wafermap=e,this.minDieDim=100}async setupWafer(e){if(void 0===this.matrixRenderer){const{matrixRenderer:e}=await(async()=>{if(void 0===Sq){const e=new Blob(['var MatrixRenderer = (function (exports) {\n \'use strict\';\n\n /**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n const proxyMarker = Symbol("Comlink.proxy");\n const createEndpoint = Symbol("Comlink.endpoint");\n const releaseProxy = Symbol("Comlink.releaseProxy");\n const finalizer = Symbol("Comlink.finalizer");\n const throwMarker = Symbol("Comlink.thrown");\n const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";\n /**\n * Internal transfer handle to handle objects marked to proxy.\n */\n const proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n };\n /**\n * Internal transfer handler to handle thrown exceptions.\n */\n const throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n };\n /**\n * Allows customizing the serialization of certain values.\n */\n const transferHandlers = new Map([\n ["proxy", proxyTransferHandler],\n ["throw", throwTransferHandler],\n ]);\n function isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === "*") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n }\n function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {\n ep.addEventListener("message", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin \'${ev.origin}\' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case "GET" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case "SET" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case "APPLY" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case "CONSTRUCT" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case "ENDPOINT" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case "RELEASE" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === "RELEASE" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener("message", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === "function") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError("Unserializable return value"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n }\n function isMessagePort(endpoint) {\n return endpoint.constructor.name === "MessagePort";\n }\n function closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n }\n function wrap(ep, target) {\n return createProxy(ep, [], target);\n }\n function throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error("Proxy has been released and is not useable");\n }\n }\n function releaseEndpoint(ep) {\n return requestResponseMessage(ep, {\n type: "RELEASE" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n }\n const proxyCounter = new WeakMap();\n const proxyFinalizers = "FinalizationRegistry" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n function registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n }\n function unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n }\n function createProxy(ep, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, {\n type: "GET" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, {\n type: "SET" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, {\n type: "ENDPOINT" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === "bind") {\n return createProxy(ep, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "APPLY" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "CONSTRUCT" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n }\n function myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n }\n function processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n }\n const transferCache = new WeakMap();\n function transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n }\n function proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n }\n function toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: "HANDLER" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: "RAW" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n }\n function fromWireValue(value) {\n switch (value.type) {\n case "HANDLER" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case "RAW" /* WireValueType.RAW */:\n return value.value;\n }\n }\n function requestResponseMessage(ep, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n ep.addEventListener("message", function l(ev) {\n if (!ev.data || !ev.data.id || ev.data.id !== id) {\n return;\n }\n ep.removeEventListener("message", l);\n resolve(ev.data);\n });\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n }\n function generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join("-");\n }\n\n /**\n * MatrixRenderer class is meant to be used within a Web Worker context,\n * using Comlink to facilitate communication between the main thread and the worker.\n * The MatrixRenderer class manages a matrix of dies, once an instance of MatrixRenderer is created,\n * it is exposed to the main thread using Comlink\'s `expose` method.\n * This setup is used in the wafer-map component to perform heavy computational duties\n */\n class MatrixRenderer {\n constructor() {\n this.values = Float64Array.from([]);\n this.scaledColumnIndices = Float64Array.from([]);\n this.scaledRowIndices = Float64Array.from([]);\n this.columnIndicesPositions = Int32Array.from([]);\n this.colorIndices = Int32Array.from([]);\n this.colors = [];\n this.colorValues = Float64Array.from([]);\n this.outsideRangeDieColor = \'rgba(218,223,236,1)\';\n this.fontSizeFactor = 0.8;\n this.renderConfig = {\n dieDimensions: {\n width: 0,\n height: 0\n },\n margin: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n verticalCoefficient: 1,\n horizontalCoefficient: 1,\n horizontalConstant: 0,\n verticalConstant: 0,\n gridMinX: 0,\n gridMaxX: 0,\n gridMinY: 0,\n gridMaxY: 0,\n labelsFontSize: 0,\n colorScale: [],\n dieLabelsSuffix: \'\',\n maxCharacters: 0\n };\n this.transformConfig = {\n transform: {\n k: 1,\n x: 0,\n y: 0\n },\n topLeftCanvasCorner: {\n x: 0,\n y: 0\n },\n bottomRightCanvasCorner: {\n x: 0,\n y: 0\n }\n };\n }\n setMatrixData(columnIndices, rowIndices, valuesBuffer) {\n const scaledColumnIndex = [];\n const columnPositions = [];\n const scaledRowIndices = [];\n const values = [];\n const colorIndices = [];\n let prevXIndex;\n let dieCount = 0;\n for (let i = 0; i < columnIndices.length; i++) {\n const xIndex = columnIndices[i];\n const yIndex = rowIndices[i];\n if (this.isDieInGrid(xIndex, yIndex)) {\n if (xIndex !== prevXIndex) {\n scaledColumnIndex.push(this.calculateHorizontalScaledIndices(xIndex));\n columnPositions.push(dieCount);\n prevXIndex = xIndex;\n }\n scaledRowIndices.push(this.calculateVerticalScaledIndices(yIndex));\n const value = valuesBuffer[i];\n values.push(value);\n colorIndices.push(this.findColorIndex(value));\n dieCount += 1;\n }\n }\n this.scaledColumnIndices = Float64Array.from(scaledColumnIndex);\n this.columnIndicesPositions = Int32Array.from(columnPositions);\n this.scaledRowIndices = Float64Array.from(scaledRowIndices);\n this.values = Float64Array.from(values);\n this.colorIndices = Int32Array.from(colorIndices);\n }\n setRenderConfig(renderConfig) {\n this.renderConfig = renderConfig;\n this.colors = renderConfig.colorScale.map(marker => marker.color);\n this.colorValues = Float64Array.from(renderConfig.colorScale.map(marker => marker.value));\n }\n setTransformConfig(transformData) {\n this.transformConfig = transformData;\n }\n setCanvas(canvas) {\n this.canvas = canvas;\n this.context = canvas.getContext(\'2d\');\n }\n scaleCanvas() {\n this.context.translate(this.transformConfig.transform.x, this.transformConfig.transform.y);\n this.context.scale(this.transformConfig.transform.k, this.transformConfig.transform.k);\n }\n setCanvasDimensions(data) {\n this.canvas.width = data.width;\n this.canvas.height = data.height;\n }\n getCanvasDimensions() {\n return {\n width: this.canvas.width,\n height: this.canvas.height\n };\n }\n clearCanvas() {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n }\n drawWafer() {\n this.context.restore();\n this.context.save();\n this.clearCanvas();\n this.scaleCanvas();\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n // Fill style is temporary green for all dies, will be replaced with a color based on the value of the die in a future implementation\n this.context.fillStyle = this.colors[this.colorIndices[columnStartIndex]]\n ?? this.outsideRangeDieColor;\n this.context.fillRect(scaledX, scaledY, this.renderConfig.dieDimensions.width, this.renderConfig.dieDimensions.height);\n }\n }\n }\n drawText() {\n this.context.font = `${this.renderConfig.labelsFontSize.toString()}px sans-serif`;\n this.context.fillStyle = \'#ffffff\';\n this.context.textAlign = \'center\';\n this.context.lineCap = \'butt\';\n const approximateTextHeight = this.context.measureText(\'M\');\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n let label = `${this.values[columnStartIndex] || \'NaN\'}${this.renderConfig.dieLabelsSuffix}`;\n if (label.length >= this.renderConfig.maxCharacters) {\n label = `${label.substring(0, this.renderConfig.maxCharacters)}…`;\n }\n this.context.fillText(label, scaledX + this.renderConfig.dieDimensions.width / 2, scaledY\n + this.renderConfig.dieDimensions.height / 2\n + approximateTextHeight.width / 2, this.renderConfig.dieDimensions.width * this.fontSizeFactor);\n }\n }\n }\n isDieInGrid(x, y) {\n return (x >= this.renderConfig.gridMinX\n && x <= this.renderConfig.gridMaxX\n && y >= this.renderConfig.gridMinY\n && y <= this.renderConfig.gridMaxY);\n }\n calculateHorizontalScaledIndices(columnIndex) {\n return (this.renderConfig.horizontalCoefficient * columnIndex\n + this.renderConfig.horizontalConstant\n + this.renderConfig.margin.left);\n }\n calculateVerticalScaledIndices(rowIndex) {\n return (this.renderConfig.verticalCoefficient * rowIndex\n + this.renderConfig.verticalConstant\n + this.renderConfig.margin.top);\n }\n findColorIndex(value) {\n let index = -1;\n if (this.colorValues.length === 0 || this.colorValues[0] >= value) {\n return index;\n }\n for (let i = 0; i < this.colorValues.length; i++) {\n if (value <= this.colorValues[i]) {\n index = i;\n break;\n }\n }\n return index;\n }\n }\n expose(MatrixRenderer);\n\n exports.MatrixRenderer = MatrixRenderer;\n\n return exports;\n\n})({});\n'],{type:"text/javascript"})
|
|
13244
|
-
|
|
13210
|
+
var n}const wq=new WeakMap
|
|
13211
|
+
function xq(e,t){return wq.set(e,t),e}function Cq(e){for(const[t,n]of dq)if(n.canHandle(e)){const[i,o]=n.serialize(e)
|
|
13212
|
+
return[{type:"HANDLER",name:t,value:i},o]}return[{type:"RAW",value:e},wq.get(e)||[]]}function kq(e){switch(e.type){case"HANDLER":return dq.get(e.name).deserialize(e.value)
|
|
13213
|
+
case"RAW":return e.value}}function Sq(e,t,n){return new Promise((i=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-")
|
|
13214
|
+
e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),i(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}let $q
|
|
13215
|
+
class Mq{constructor(e){this.wafermap=e,this.minDieDim=100}async setupWafer(e){if(void 0===this.matrixRenderer){const{matrixRenderer:e}=await(async()=>{if(void 0===$q){const e=new Blob(['var MatrixRenderer = (function (exports) {\n \'use strict\';\n\n /**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n const proxyMarker = Symbol("Comlink.proxy");\n const createEndpoint = Symbol("Comlink.endpoint");\n const releaseProxy = Symbol("Comlink.releaseProxy");\n const finalizer = Symbol("Comlink.finalizer");\n const throwMarker = Symbol("Comlink.thrown");\n const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";\n /**\n * Internal transfer handle to handle objects marked to proxy.\n */\n const proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n };\n /**\n * Internal transfer handler to handle thrown exceptions.\n */\n const throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n };\n /**\n * Allows customizing the serialization of certain values.\n */\n const transferHandlers = new Map([\n ["proxy", proxyTransferHandler],\n ["throw", throwTransferHandler],\n ]);\n function isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === "*") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n }\n function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {\n ep.addEventListener("message", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin \'${ev.origin}\' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case "GET" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case "SET" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case "APPLY" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case "CONSTRUCT" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case "ENDPOINT" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case "RELEASE" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === "RELEASE" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener("message", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === "function") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError("Unserializable return value"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n }\n function isMessagePort(endpoint) {\n return endpoint.constructor.name === "MessagePort";\n }\n function closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n }\n function wrap(ep, target) {\n return createProxy(ep, [], target);\n }\n function throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error("Proxy has been released and is not useable");\n }\n }\n function releaseEndpoint(ep) {\n return requestResponseMessage(ep, {\n type: "RELEASE" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n }\n const proxyCounter = new WeakMap();\n const proxyFinalizers = "FinalizationRegistry" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\n function registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n }\n function unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n }\n function createProxy(ep, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, {\n type: "GET" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, {\n type: "SET" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, {\n type: "ENDPOINT" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === "bind") {\n return createProxy(ep, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "APPLY" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, {\n type: "CONSTRUCT" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n }\n function myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n }\n function processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n }\n const transferCache = new WeakMap();\n function transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n }\n function proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n }\n function toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: "HANDLER" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: "RAW" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n }\n function fromWireValue(value) {\n switch (value.type) {\n case "HANDLER" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case "RAW" /* WireValueType.RAW */:\n return value.value;\n }\n }\n function requestResponseMessage(ep, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n ep.addEventListener("message", function l(ev) {\n if (!ev.data || !ev.data.id || ev.data.id !== id) {\n return;\n }\n ep.removeEventListener("message", l);\n resolve(ev.data);\n });\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n }\n function generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join("-");\n }\n\n /**\n * MatrixRenderer class is meant to be used within a Web Worker context,\n * using Comlink to facilitate communication between the main thread and the worker.\n * The MatrixRenderer class manages a matrix of dies, once an instance of MatrixRenderer is created,\n * it is exposed to the main thread using Comlink\'s `expose` method.\n * This setup is used in the wafer-map component to perform heavy computational duties\n */\n class MatrixRenderer {\n constructor() {\n this.values = Float64Array.from([]);\n this.scaledColumnIndices = Float64Array.from([]);\n this.scaledRowIndices = Float64Array.from([]);\n this.columnIndicesPositions = Int32Array.from([]);\n this.colorIndices = Int32Array.from([]);\n this.colors = [];\n this.colorValues = Float64Array.from([]);\n this.outsideRangeDieColor = \'rgba(218,223,236,1)\';\n this.fontSizeFactor = 0.8;\n this.renderConfig = {\n dieDimensions: {\n width: 0,\n height: 0\n },\n margin: {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n },\n verticalCoefficient: 1,\n horizontalCoefficient: 1,\n horizontalConstant: 0,\n verticalConstant: 0,\n gridMinX: 0,\n gridMaxX: 0,\n gridMinY: 0,\n gridMaxY: 0,\n labelsFontSize: 0,\n colorScale: [],\n dieLabelsSuffix: \'\',\n maxCharacters: 0\n };\n this.transformConfig = {\n transform: {\n k: 1,\n x: 0,\n y: 0\n },\n topLeftCanvasCorner: {\n x: 0,\n y: 0\n },\n bottomRightCanvasCorner: {\n x: 0,\n y: 0\n }\n };\n }\n setMatrixData(columnIndices, rowIndices, valuesBuffer) {\n const scaledColumnIndex = [];\n const columnPositions = [];\n const scaledRowIndices = [];\n const values = [];\n const colorIndices = [];\n let prevXIndex;\n let dieCount = 0;\n for (let i = 0; i < columnIndices.length; i++) {\n const xIndex = columnIndices[i];\n const yIndex = rowIndices[i];\n if (this.isDieInGrid(xIndex, yIndex)) {\n if (xIndex !== prevXIndex) {\n scaledColumnIndex.push(this.calculateHorizontalScaledIndices(xIndex));\n columnPositions.push(dieCount);\n prevXIndex = xIndex;\n }\n scaledRowIndices.push(this.calculateVerticalScaledIndices(yIndex));\n const value = valuesBuffer[i];\n values.push(value);\n colorIndices.push(this.findColorIndex(value));\n dieCount += 1;\n }\n }\n this.scaledColumnIndices = Float64Array.from(scaledColumnIndex);\n this.columnIndicesPositions = Int32Array.from(columnPositions);\n this.scaledRowIndices = Float64Array.from(scaledRowIndices);\n this.values = Float64Array.from(values);\n this.colorIndices = Int32Array.from(colorIndices);\n }\n setRenderConfig(renderConfig) {\n this.renderConfig = renderConfig;\n this.colors = renderConfig.colorScale.map(marker => marker.color);\n this.colorValues = Float64Array.from(renderConfig.colorScale.map(marker => marker.value));\n }\n setTransformConfig(transformData) {\n this.transformConfig = transformData;\n }\n setCanvas(canvas) {\n this.canvas = canvas;\n this.context = canvas.getContext(\'2d\');\n }\n scaleCanvas() {\n this.context.translate(this.transformConfig.transform.x, this.transformConfig.transform.y);\n this.context.scale(this.transformConfig.transform.k, this.transformConfig.transform.k);\n }\n setCanvasDimensions(data) {\n this.canvas.width = data.width;\n this.canvas.height = data.height;\n }\n getCanvasDimensions() {\n return {\n width: this.canvas.width,\n height: this.canvas.height\n };\n }\n clearCanvas() {\n this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n }\n drawWafer() {\n this.context.restore();\n this.context.save();\n this.clearCanvas();\n this.scaleCanvas();\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n // Fill style is temporary green for all dies, will be replaced with a color based on the value of the die in a future implementation\n this.context.fillStyle = this.colors[this.colorIndices[columnStartIndex]]\n ?? this.outsideRangeDieColor;\n this.context.fillRect(scaledX, scaledY, this.renderConfig.dieDimensions.width, this.renderConfig.dieDimensions.height);\n }\n }\n }\n drawText() {\n this.context.font = `${this.renderConfig.labelsFontSize.toString()}px sans-serif`;\n this.context.fillStyle = \'#ffffff\';\n this.context.textAlign = \'center\';\n this.context.lineCap = \'butt\';\n const approximateTextHeight = this.context.measureText(\'M\');\n for (let i = 0; i < this.scaledColumnIndices.length; i++) {\n const scaledX = this.scaledColumnIndices[i];\n if (!(scaledX >= this.transformConfig.topLeftCanvasCorner.x\n && scaledX < this.transformConfig.bottomRightCanvasCorner.x)) {\n continue;\n }\n // columnIndexPositions is used to get chunks to determine the start and end index of the column, it looks something like [0, 1, 4, 9, 12]\n // This means that the first column has a start index of 0 and an end index of 1, the second column has a start index of 1 and an end index of 4, and so on\n // scaledRowIndices is used when we reach the end of the columnIndexPositions, when columnIndexPositions is [0, 1, 4, 9, 12], scaledRowIndices is 13\n const columnEndIndex = this.columnIndicesPositions[i + 1] !== undefined\n ? this.columnIndicesPositions[i + 1]\n : this.scaledRowIndices.length;\n for (let columnStartIndex = this.columnIndicesPositions[i]; columnStartIndex < columnEndIndex; columnStartIndex++) {\n const scaledY = this.scaledRowIndices[columnStartIndex];\n if (!(scaledY >= this.transformConfig.topLeftCanvasCorner.y\n && scaledY < this.transformConfig.bottomRightCanvasCorner.y)) {\n continue;\n }\n let label = `${this.values[columnStartIndex] || \'NaN\'}${this.renderConfig.dieLabelsSuffix}`;\n if (label.length >= this.renderConfig.maxCharacters) {\n label = `${label.substring(0, this.renderConfig.maxCharacters)}…`;\n }\n this.context.fillText(label, scaledX + this.renderConfig.dieDimensions.width / 2, scaledY\n + this.renderConfig.dieDimensions.height / 2\n + approximateTextHeight.width / 2, this.renderConfig.dieDimensions.width * this.fontSizeFactor);\n }\n }\n }\n isDieInGrid(x, y) {\n return (x >= this.renderConfig.gridMinX\n && x <= this.renderConfig.gridMaxX\n && y >= this.renderConfig.gridMinY\n && y <= this.renderConfig.gridMaxY);\n }\n calculateHorizontalScaledIndices(columnIndex) {\n return (this.renderConfig.horizontalCoefficient * columnIndex\n + this.renderConfig.horizontalConstant\n + this.renderConfig.margin.left);\n }\n calculateVerticalScaledIndices(rowIndex) {\n return (this.renderConfig.verticalCoefficient * rowIndex\n + this.renderConfig.verticalConstant\n + this.renderConfig.margin.top);\n }\n findColorIndex(value) {\n let index = -1;\n if (this.colorValues.length === 0 || this.colorValues[0] >= value) {\n return index;\n }\n for (let i = 0; i < this.colorValues.length; i++) {\n if (value <= this.colorValues[i]) {\n index = i;\n break;\n }\n }\n return index;\n }\n }\n expose(MatrixRenderer);\n\n exports.MatrixRenderer = MatrixRenderer;\n\n return exports;\n\n})({});\n'],{type:"text/javascript"})
|
|
13216
|
+
$q=URL.createObjectURL(e)}const e=new Worker($q),t=pq(e)
|
|
13245
13217
|
return{matrixRenderer:await new t,terminate:()=>e.terminate()}})()
|
|
13246
13218
|
this.matrixRenderer=e
|
|
13247
13219
|
const t=this.wafermap.workerCanvas.transferControlToOffscreen()
|
|
13248
|
-
await this.matrixRenderer.setCanvas(
|
|
13249
|
-
await this.matrixRenderer.setTransformConfig({transform:e.transform,topLeftCanvasCorner:{x:t[0]-e.dieDimensions.width,y:t[1]-e.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!e.dieLabelsHidden&&e.dieDimensions&&e.dieDimensions.width*e.dieDimensions.height*(e.transform.k||1)>=this.minDieDim&&await this.matrixRenderer.drawText()}renderHover(){void 0!==this.wafermap.computations.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.computations.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.computations.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?mB
|
|
13220
|
+
await this.matrixRenderer.setCanvas(xq(t,[t]))}await this.matrixRenderer.setCanvasDimensions(e.canvasDimensions),await this.matrixRenderer.setRenderConfig(e.renderConfig),await this.matrixRenderer.setMatrixData(e.columnIndices,e.rowIndices,e.values)}async drawWafer(e){const t=e.transform.invert([0,0]),n=e.transform.invert([e.canvasDimensions.width,e.canvasDimensions.height])
|
|
13221
|
+
await this.matrixRenderer.setTransformConfig({transform:e.transform,topLeftCanvasCorner:{x:t[0]-e.dieDimensions.width,y:t[1]-e.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!e.dieLabelsHidden&&e.dieDimensions&&e.dieDimensions.width*e.dieDimensions.height*(e.transform.k||1)>=this.minDieDim&&await this.matrixRenderer.drawText()}renderHover(){void 0!==this.wafermap.computations.dieDimensions&&void 0!==this.wafermap.transform&&(this.wafermap.hoverWidth=this.wafermap.computations.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.computations.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?gB:mB,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
|
|
13250
13222
|
if(void 0===e)return""
|
|
13251
13223
|
const t=this.wafermap.computations.verticalScale(this.wafermap.hoverDie.y)
|
|
13252
13224
|
if(void 0===t)return""
|
|
13253
13225
|
const n=this.wafermap.transform.apply([e+this.wafermap.computations.margin.left,t+this.wafermap.computations.margin.top])
|
|
13254
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}class
|
|
13226
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}class _q{constructor(e){this.wafermap=e,this.onMouseMove=e=>{if(!this.wafermap.isExperimentalUpdate())return
|
|
13255
13227
|
const t=this.wafermap.transform.invert([e.offsetX,e.offsetY]),n=this.calculateDieCoordinates({x:t[0],y:t[1]})
|
|
13256
13228
|
if(void 0===n||!this.isDieInGrid(n.x,n.y))return void(this.wafermap.hoverDie=void 0)
|
|
13257
13229
|
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
13258
13230
|
for(let e=0;e<i.length;e++)if(i[e]===n.x&&o[e]===n.y)return void(this.wafermap.hoverDie={index:e,x:n.x,y:n.y})
|
|
13259
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===
|
|
13260
|
-
return{x:n(this.wafermap.computations.horizontalScale.invert(e.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(e.y-this.wafermap.computations.margin.top))}}}isDieInGrid(e,t){return e>=this.wafermap.computations.gridMinX&&e<=this.wafermap.computations.gridMaxX&&t>=this.wafermap.computations.gridMinY&&t<=this.wafermap.computations.gridMaxY}}class
|
|
13231
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===hB||t===pB?Math.floor:Math.ceil,i=t===hB||t===uB?Math.ceil:Math.floor
|
|
13232
|
+
return{x:n(this.wafermap.computations.horizontalScale.invert(e.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(e.y-this.wafermap.computations.margin.top))}}}isDieInGrid(e,t){return e>=this.wafermap.computations.gridMinX&&e<=this.wafermap.computations.gridMaxX&&t>=this.wafermap.computations.gridMinY&&t<=this.wafermap.computations.gridMaxY}}class Eq{constructor(e){this.wafermap=e,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=e=>{e.preventDefault()},this.wafermapNotifier=m.getNotifier(this.wafermap),this.wafermapNotifier.subscribe(this,"canvasWidth"),this.wafermapNotifier.subscribe(this,"canvasHeight")}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){gH().on("zoom",null)(ZL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(e,t){e!==this.wafermap||"canvasWidth"!==t&&"canvasHeight"!==t||this.createZoomBehavior()}createZoomBehavior(){gH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(e=>{this.wafermap.transform=e.transform}))(ZL(this.wafermap))}}class Iq{get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get verticalCoefficient(){return this._verticalCoefficient}get horizontalCoefficient(){return this._horizontalCoefficient}get horizontalConstant(){return this._horizontalConstant}get verticalConstant(){return this._verticalConstant}get gridMinX(){return this._gridMinX}get gridMaxX(){return this._gridMaxX}get gridMinY(){return this._gridMinY}get gridMaxY(){return this._gridMaxY}get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(e){this.wafermap=e,this.baseMarginPercentage=.04,this.fontSizeFactor=.8,this.colorScaleResolution=10}componentResizeUpdate(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
|
|
13261
13233
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this.margin),this.inputDataUpdate()}inputDataUpdate(){if(void 0===this._containerDimensions)return void this.componentResizeUpdate()
|
|
13262
13234
|
const e=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
13263
13235
|
this.gridDimensionsValidAndDefined()?this.setGridDimensionsFromBoundingBox():this.setGridDimensionsFromDies()
|
|
@@ -13265,27 +13237,27 @@ const t=this.wafermap.originLocation
|
|
|
13265
13237
|
this._horizontalScale=this.createHorizontalScale(t,e),this._verticalScale=this.createVerticalScale(t,e),this._horizontalCoefficient=this._horizontalScale(1)-this._horizontalScale(0),this._verticalCoefficient=this._verticalScale(1)-this._verticalScale(0),this._horizontalConstant=this._horizontalScale(0),this._verticalConstant=this._verticalScale(0),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))},this.colorAndTextUpdate()}colorAndTextUpdate(){void 0!==this._dieDimensions?(this._labelsFontSize=this.calculateLabelsFontSize(this._dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()):this.inputDataUpdate()}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}setGridDimensionsFromBoundingBox(){this._gridMinX=this.wafermap.gridMinX,this._gridMinY=this.wafermap.gridMinY,this._gridMaxX=this.wafermap.gridMaxX,this._gridMaxY=this.wafermap.gridMaxY}setGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return
|
|
13266
13238
|
const e=this.wafermap.diesTable.getChild("colIndex").toArray(),t=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:e[0],y:t[0]},i={x:e[0],y:t[0]}
|
|
13267
13239
|
for(let o=0;o<e.length;o++)e[o]<n.x&&(n.x=e[o]),e[o]>i.x&&(i.x=e[o]),t[o]<n.y&&(n.y=t[o]),t[o]>i.y&&(i.y=t[o])
|
|
13268
|
-
this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t){const n=
|
|
13269
|
-
return e===
|
|
13270
|
-
return e===
|
|
13240
|
+
this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t){const n=cB()
|
|
13241
|
+
return e===hB||e===pB?n.domain([this._gridMinX,this._gridMaxX+1]).range([0,t]):n.domain([this._gridMinX-1,this._gridMaxX]).range([t,0])}createVerticalScale(e,t){const n=cB()
|
|
13242
|
+
return e===hB||e===uB?n.domain([this._gridMinY-1,this._gridMaxY]).range([t,0]):n.domain([this._gridMinY,this._gridMaxY+1]).range([0,t])}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}calculateColorScale(){if(this.wafermap.colorScaleMode===vB){const e=this.wafermap.colorScale.values.map((e=>+e)),t=cB().domain(e).range(this.wafermap.colorScale.colors)
|
|
13271
13243
|
let n=e[0],i=e[0]
|
|
13272
13244
|
e.forEach((e=>{e<n&&(n=e),e>i&&(i=e)}))
|
|
13273
|
-
return
|
|
13245
|
+
return RH(n,i,(i-n)/(e.length*this.colorScaleResolution)).concat(i).map((e=>({color:t(e),value:e})))}return this.wafermap.colorScale.colors.map(((e,t)=>({color:e,value:+this.wafermap.colorScale.values[t]}))).sort(((e,t)=>e.value-t.value))}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}}class Dq extends Vt{constructor(){super(...arguments),this.waferMapUpdateTracker=new kB(this.asRequiredFieldsWaferMap),this.originLocation=hB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=fB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=vB,this.computations=new Iq(this.asRequiredFieldsWaferMap),this.dataManager=new wB(this.asRequiredFieldsWaferMap),this.workerRenderer=new Mq(this.asRequiredFieldsWaferMap),this.renderer=new xB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=aH,this.hoverTransform="",this.hoverOpacity=gB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(e){this.wafermap=e,this.onMouseMove=e=>{if(this.wafermap.isExperimentalUpdate())return
|
|
13274
13246
|
const t={x:e.offsetX,y:e.offsetY}
|
|
13275
13247
|
if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
|
|
13276
13248
|
const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
13277
|
-
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(!this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===
|
|
13249
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=e=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(e){if(!this.wafermap.isExperimentalUpdate()){const t=this.wafermap.originLocation,n=t===hB||t===pB?Math.floor:Math.ceil,i=t===hB||t===uB?Math.floor:Math.ceil
|
|
13278
13250
|
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(e.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(e.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(e){const t=this.wafermap.canvasContext.getImageData(e.x,e.y,1,1).data
|
|
13279
13251
|
let n=0
|
|
13280
13252
|
for(const e of t)n+=e
|
|
13281
|
-
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new
|
|
13253
|
+
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new _q(this.asRequiredFieldsWaferMap),this.zoomHandler=new Eq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new iq(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}async experimentalUpdate(){if(!this.validity.invalidDiesTableSchema){if(this.waferMapUpdateTracker.requiresEventsUpdate){this.waferMapUpdateTracker.requiresComponentResizeUpdate?this.computations.componentResizeUpdate():this.waferMapUpdateTracker.requiresInputDataUpdate?this.computations.inputDataUpdate():this.waferMapUpdateTracker.requiresColorAndTextUpdate&&this.computations.colorAndTextUpdate()
|
|
13282
13254
|
const e=this.createSnapshot()
|
|
13283
13255
|
this.waferMapUpdateTracker.requiresWorkerWaferSetup&&await this.workerRenderer.setupWafer(e),await this.workerRenderer.drawWafer(e)}this.workerRenderer.renderHover()}}update(){this.validate(),this.isExperimentalUpdate()?this.currentTask=this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer():this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}createSnapshot(){const e={width:this.canvasWidth??0,height:this.canvasHeight??0},t={dieDimensions:this.computations.dieDimensions,margin:this.computations.margin,verticalCoefficient:this.computations.verticalCoefficient,horizontalCoefficient:this.computations.horizontalCoefficient,horizontalConstant:this.computations.horizontalConstant,verticalConstant:this.computations.verticalConstant,gridMinX:this.computations.gridMinX,gridMaxX:this.computations.gridMaxX,gridMinY:this.computations.gridMinY,gridMaxY:this.computations.gridMaxY,labelsFontSize:this.computations.labelsFontSize,colorScale:this.computations.colorScale,dieLabelsSuffix:this.dieLabelsSuffix,maxCharacters:this.maxCharacters},n=this.computations.dieDimensions,i=this.transform,o=this.dieLabelsHidden
|
|
13284
13256
|
if(void 0===this.diesTable)return{canvasDimensions:e,renderConfig:t,dieDimensions:n,transform:i,dieLabelsHidden:o,columnIndices:Int32Array.from([]),rowIndices:Int32Array.from([]),values:Float64Array.from([])}
|
|
13285
13257
|
return{canvasDimensions:e,renderConfig:t,columnIndices:this.diesTable.getChild("colIndex").toArray(),rowIndices:this.diesTable.getChild("rowIndex").toArray(),values:this.diesTable.getChild("value").toArray(),dieDimensions:n,transform:i,dieLabelsHidden:o}}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
|
|
13286
13258
|
if(void 0===t)return
|
|
13287
13259
|
const{height:n,width:i}=t.contentRect
|
|
13288
|
-
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}e([le({attribute:"origin-location"})],
|
|
13289
|
-
const Dq
|
|
13290
|
-
yi.getOrCreate().withPrefix("nimble").register(
|
|
13260
|
+
this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}e([le({attribute:"origin-location"})],Dq.prototype,"originLocation",void 0),e([le({attribute:"grid-min-x",converter:re})],Dq.prototype,"gridMinX",void 0),e([le({attribute:"grid-max-x",converter:re})],Dq.prototype,"gridMaxX",void 0),e([le({attribute:"grid-min-y",converter:re})],Dq.prototype,"gridMinY",void 0),e([le({attribute:"grid-max-y",converter:re})],Dq.prototype,"gridMaxY",void 0),e([le],Dq.prototype,"orientation",void 0),e([le({attribute:"max-characters",converter:re})],Dq.prototype,"maxCharacters",void 0),e([le({attribute:"die-labels-hidden",mode:"boolean"})],Dq.prototype,"dieLabelsHidden",void 0),e([le({attribute:"die-labels-suffix"})],Dq.prototype,"dieLabelsSuffix",void 0),e([le({attribute:"color-scale-mode"})],Dq.prototype,"colorScaleMode",void 0),e([g],Dq.prototype,"renderer",void 0),e([g],Dq.prototype,"canvasWidth",void 0),e([g],Dq.prototype,"canvasHeight",void 0),e([g],Dq.prototype,"transform",void 0),e([g],Dq.prototype,"hoverTransform",void 0),e([g],Dq.prototype,"hoverOpacity",void 0),e([g],Dq.prototype,"hoverWidth",void 0),e([g],Dq.prototype,"hoverHeight",void 0),e([g],Dq.prototype,"hoverDie",void 0),e([g],Dq.prototype,"highlightedTags",void 0),e([g],Dq.prototype,"dies",void 0),e([g],Dq.prototype,"diesTable",void 0),e([g],Dq.prototype,"colorScale",void 0)
|
|
13261
|
+
const Aq=Dq.compose({baseName:"wafer-map",template:vH,styles:bH})
|
|
13262
|
+
yi.getOrCreate().withPrefix("nimble").register(Aq())}()
|
|
13291
13263
|
//# sourceMappingURL=all-components-bundle.min.js.map
|