@ni/nimble-components 30.0.6 → 30.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/all-components-bundle.js +19 -14
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +1195 -1191
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/anchor-menu-item/index.js.map +1 -1
  6. package/dist/esm/anchor-tabs/index.js.map +1 -1
  7. package/dist/esm/anchor-tree-item/index.js.map +1 -1
  8. package/dist/esm/combobox/index.js.map +1 -1
  9. package/dist/esm/combobox/testing/combobox.pageobject.js +1 -1
  10. package/dist/esm/combobox/testing/combobox.pageobject.js.map +1 -1
  11. package/dist/esm/dialog/index.js.map +1 -1
  12. package/dist/esm/drawer/index.js.map +1 -1
  13. package/dist/esm/label-provider/base/index.js.map +1 -1
  14. package/dist/esm/list-option/index.js.map +1 -1
  15. package/dist/esm/list-option-group/index.js.map +1 -1
  16. package/dist/esm/mapping/icon/index.js.map +1 -1
  17. package/dist/esm/menu-button/index.js.map +1 -1
  18. package/dist/esm/menu-button/testing/menu-button.pageobject.js +1 -1
  19. package/dist/esm/menu-button/testing/menu-button.pageobject.js.map +1 -1
  20. package/dist/esm/rich-text/base/index.js.map +1 -1
  21. package/dist/esm/rich-text/editor/index.js.map +1 -1
  22. package/dist/esm/rich-text/editor/models/create-tiptap-editor.js.map +1 -1
  23. package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js.map +1 -1
  24. package/dist/esm/rich-text/mention-listbox/index.js.map +1 -1
  25. package/dist/esm/rich-text/models/markdown-parser.js +12 -12
  26. package/dist/esm/rich-text/models/markdown-parser.js.map +1 -1
  27. package/dist/esm/rich-text/models/rich-text-tracker.js.map +1 -1
  28. package/dist/esm/rich-text/models/testing/markdown-parser-utils.js.map +1 -1
  29. package/dist/esm/rich-text/viewer/index.js.map +1 -1
  30. package/dist/esm/rich-text/viewer/testing/rich-text-viewer.pageobject.js.map +1 -1
  31. package/dist/esm/rich-text-mention/base/index.js.map +1 -1
  32. package/dist/esm/rich-text-mention/base/models/mention-validator.js.map +1 -1
  33. package/dist/esm/rich-text-mention/users/index.js.map +1 -1
  34. package/dist/esm/select/index.js.map +1 -1
  35. package/dist/esm/select/testing/select.pageobject.js.map +1 -1
  36. package/dist/esm/table/components/group-row/index.js.map +1 -1
  37. package/dist/esm/table/components/header/index.js.map +1 -1
  38. package/dist/esm/table/components/row/index.js.map +1 -1
  39. package/dist/esm/table/index.js.map +1 -1
  40. package/dist/esm/table/models/array-to-tree.js.map +1 -1
  41. package/dist/esm/table/models/data-hierarchy-manager.js.map +1 -1
  42. package/dist/esm/table/models/expansion-manager.js.map +1 -1
  43. package/dist/esm/table/models/interactive-selection-manager.js.map +1 -1
  44. package/dist/esm/table/models/keyboard-navigation-manager.js.map +1 -1
  45. package/dist/esm/table/models/selection-managers/multi-selection-manager.js.map +1 -1
  46. package/dist/esm/table/models/selection-managers/selection-manager-base.js.map +1 -1
  47. package/dist/esm/table/models/sort-operations.js.map +1 -1
  48. package/dist/esm/table/models/table-layout-manager.js.map +1 -1
  49. package/dist/esm/table/models/table-update-tracker.js.map +1 -1
  50. package/dist/esm/table/models/table-validator.js.map +1 -1
  51. package/dist/esm/table/models/virtualizer.js.map +1 -1
  52. package/dist/esm/table/testing/table.pageobject.js.map +1 -1
  53. package/dist/esm/table-column/anchor/cell-view/index.js.map +1 -1
  54. package/dist/esm/table-column/anchor/cell-view/template.js.map +1 -1
  55. package/dist/esm/table-column/base/cell-view/index.js.map +1 -1
  56. package/dist/esm/table-column/base/cell-view/template.js.map +1 -1
  57. package/dist/esm/table-column/base/group-header-view/template.js.map +1 -1
  58. package/dist/esm/table-column/base/models/column-internals.js.map +1 -1
  59. package/dist/esm/table-column/base/models/column-validator.js.map +1 -1
  60. package/dist/esm/table-column/date-text/cell-view/index.js.map +1 -1
  61. package/dist/esm/table-column/date-text/group-header-view/index.js.map +1 -1
  62. package/dist/esm/table-column/date-text/index.js.map +1 -1
  63. package/dist/esm/table-column/date-text/models/format-helper.js.map +1 -1
  64. package/dist/esm/table-column/date-text/testing/table-column-date-text.pageobject.js.map +1 -1
  65. package/dist/esm/table-column/duration-text/group-header-view/index.js.map +1 -1
  66. package/dist/esm/table-column/duration-text/models/duration-formatter.js.map +1 -1
  67. package/dist/esm/table-column/duration-text/testing/table-column-duration-text.pageobject.js.map +1 -1
  68. package/dist/esm/table-column/enum-base/index.js.map +1 -1
  69. package/dist/esm/table-column/enum-base/models/mapping-key-resolver.js.map +1 -1
  70. package/dist/esm/table-column/mapping/cell-view/index.js.map +1 -1
  71. package/dist/esm/table-column/mapping/group-header-view/index.js.map +1 -1
  72. package/dist/esm/table-column/mapping/index.js.map +1 -1
  73. package/dist/esm/table-column/mapping/testing/table-column-mapping.pageobject.js.map +1 -1
  74. package/dist/esm/table-column/menu-button/cell-view/index.js.map +1 -1
  75. package/dist/esm/table-column/menu-button/index.js.map +1 -1
  76. package/dist/esm/table-column/mixins/custom-sort-order.js.map +1 -1
  77. package/dist/esm/table-column/mixins/sortable-column.js.map +1 -1
  78. package/dist/esm/table-column/number-text/index.js.map +1 -1
  79. package/dist/esm/table-column/number-text/models/number-text-unit-format.js.map +1 -1
  80. package/dist/esm/table-column/text-base/cell-view/index.js.map +1 -1
  81. package/dist/esm/table-column/text-base/group-header-view/index.js.map +1 -1
  82. package/dist/esm/text-area/index.js.map +1 -1
  83. package/dist/esm/theme-provider/design-tokens.js.map +1 -1
  84. package/dist/esm/theme-provider/index.js.map +1 -1
  85. package/dist/esm/tree-view/index.js.map +1 -1
  86. package/dist/esm/utilities/models/converter.js.map +1 -1
  87. package/dist/esm/utilities/models/document-element-lang.js.map +1 -1
  88. package/dist/esm/utilities/models/tracker.js.map +1 -1
  89. package/dist/esm/utilities/style/direction.js.map +1 -1
  90. package/dist/esm/utilities/style/multivalue-property-stylesheet-behavior.js.map +1 -1
  91. package/dist/esm/utilities/style/theme.js.map +1 -1
  92. package/dist/esm/utilities/testing/component.d.ts +20 -0
  93. package/dist/esm/utilities/testing/component.js +68 -0
  94. package/dist/esm/utilities/testing/component.js.map +1 -0
  95. package/dist/esm/utilities/unit-format/decimal-unit-format.js.map +1 -1
  96. package/dist/esm/utilities/unit-format/default-unit-format.js.map +1 -1
  97. package/dist/esm/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.js.map +1 -1
  98. package/dist/esm/utilities/unit-format/unit-format.js.map +1 -1
  99. package/dist/esm/utilities/unit-format/unit-scale/unit-scale.js.map +1 -1
  100. package/dist/esm/wafer-map/experimental/computations.js.map +1 -1
  101. package/dist/esm/wafer-map/experimental/hover-handler.js.map +1 -1
  102. package/dist/esm/wafer-map/experimental/worker-renderer.js.map +1 -1
  103. package/dist/esm/wafer-map/index.js.map +1 -1
  104. package/dist/esm/wafer-map/modules/computations.js.map +1 -1
  105. package/dist/esm/wafer-map/modules/create-matrix-renderer.js.map +1 -1
  106. package/dist/esm/wafer-map/modules/hover-handler.js.map +1 -1
  107. package/dist/esm/wafer-map/modules/prerendering.js.map +1 -1
  108. package/dist/esm/wafer-map/modules/rendering.js.map +1 -1
  109. package/dist/esm/wafer-map/modules/wafer-map-update-tracker.js.map +1 -1
  110. package/dist/esm/wafer-map/modules/wafer-map-validator.js.map +1 -1
  111. package/dist/esm/wafer-map/modules/zoom-handler.js.map +1 -1
  112. package/package.json +4 -4
@@ -5756,7 +5756,7 @@ if(i.isAtom){if(!o&&Tw.isSelectable(i))return Tw.create(t,n-(s<0?i.nodeSize:0))}
5756
5756
  if(e)return e}n+=i.nodeSize*s}return null}function Lw(t,e,n){let i=t.steps.length-1
5757
5757
  if(i<e)return
5758
5758
  let s,o=t.steps[i];(o instanceof Qy||o instanceof tw)&&(t.mapping.maps[i].forEach(((t,e,n,i)=>{null==s&&(s=i)})),t.setSelection(Iw.near(t.doc.resolve(s),n)))}class Bw extends Sw{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document")
5759
- return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return Lb.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection
5759
+ return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return Lb.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection
5760
5760
  return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Lb.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let i=this.doc.type.schema
5761
5761
  if(null==e)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection()
5762
5762
  {if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n)
@@ -6777,7 +6777,7 @@ return{...i,...s}}}}function jS(t){return Object.fromEntries(Object.entries(t).f
6777
6777
  const i=t.parentOffset
6778
6778
  return t.parent.nodesBetween(Math.max(0,i-e),i,((t,e,s,o)=>{var r,a
6779
6779
  const l=(null===(a=(r=t.type.spec).toText)||void 0===a?void 0:a.call(r,{node:t,pos:e,parent:s,index:o}))||t.textContent||"%leaf%"
6780
- n+=l.slice(0,Math.max(0,i-e))})),n}
6780
+ n+=t.isAtom?l:l.slice(0,Math.max(0,i-e))})),n}
6781
6781
  function KS(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class YS{constructor(t){this.find=t.find,this.handler=t.handler}}const XS=(t,e)=>{if(KS(e))return e.exec(t)
6782
6782
  const n=e(t)
6783
6783
  if(!n)return null
@@ -7198,7 +7198,7 @@ return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDes
7198
7198
  if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach((t=>{var e
7199
7199
  return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)})):void(this.capturedTransaction=t)
7200
7200
  const e=this.state.apply(t),n=!this.state.selection.eq(e.selection)
7201
- this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t})
7201
+ this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t})
7202
7202
  const i=t.getMeta("focus"),s=t.getMeta("blur")
7203
7203
  i&&this.emit("focus",{editor:this,event:i.event,transaction:t}),s&&this.emit("blur",{editor:this,event:s.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return E_(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,i="string"==typeof t?e:t
7204
7204
  return function(t,e,n={}){if(!e)return k_(t,null,n)||O_(t,null,n)
@@ -7801,7 +7801,7 @@ a=e-1}}return-1}const aM=oM(GI)
7801
7801
  function lM(t,e=tM.Legacy){return aM(t,e)}function cM(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)}oM(ZI)
7802
7802
  const dM=Object.prototype.hasOwnProperty
7803
7803
  function hM(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object")
7804
- Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function uM(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function pM(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!=(65535&t)&&65534!=(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function fM(t){if(t>65535){const e=55296+((t-=65536)>>10),n=56320+(1023&t)
7804
+ Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function uM(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function pM(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(!!(65535&~t&&65534!=(65535&t))&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function fM(t){if(t>65535){const e=55296+((t-=65536)>>10),n=56320+(1023&t)
7805
7805
  return String.fromCharCode(e,n)}return String.fromCharCode(t)}const mM=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,gM=new RegExp(mM.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),vM=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i
7806
7806
  function bM(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(gM,(function(t,e,n){return e||function(t,e){if(35===e.charCodeAt(0)&&vM.test(e)){const n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10)
7807
7807
  return pM(n)?fM(n):t}const n=lM(t)
@@ -8599,11 +8599,11 @@ return e[0]+t+e[1]}repeat(t,e){let n=""
8599
8599
  for(let i=0;i<e;i++)n+=t
8600
8600
  return n}markString(t,e,n,i){let s=this.getMark(t.type.name),o=e?s.open:s.close
8601
8601
  return"string"==typeof o?o:o(this,t,n,i)}getEnclosingWhitespace(t){return{leading:(t.match(/^(\s+)/)||[void 0])[0],trailing:(t.match(/(\s+)$/)||[void 0])[0]}}}var _E
8602
- class IE{static parseMarkdownToDOM(t,e){try{IE.setup(e)
8602
+ class IE{static parseMarkdownToDOM(t,e){try{_E.setup(e)
8603
8603
  const n=this.markdownParser.parse(t)
8604
- return null===n?{fragment:document.createDocumentFragment(),mentionedHrefs:Array.from(IE.mentionedHrefs)}:{fragment:this.domSerializer.serializeFragment(n.content),mentionedHrefs:Array.from(IE.mentionedHrefs)}}finally{IE.cleanup()}}static initializeMarkdownParser(){const t=yE.tokenizer.configure("zero").enable(["emphasis","list","escape","autolink","newline"])
8605
- return t.normalizeLinkText=t=>t,new vE(this.updatedSchema,t,yE.tokens)}static getCustomSchemaConfiguration(){return new Cy({nodes:hE.spec.nodes,marks:{link:{attrs:{href:{},rel:{default:"noopener noreferrer"},class:{default:""}},inclusive:!1,excludes:"_",toDOM(t){const e=t.attrs.href,n=IE.mentionConfigs?.find((t=>t.isValidMentionHref(e))),i=n?.getDisplayName(e)
8606
- return n&&i?(IE.mentionedHrefs.add(e),[n.viewElement,{"mention-href":e,"mention-label":i}]):[nh,{href:IE.startsWithHttpOrHttps(e)?e:null,rel:t.attrs.rel,class:e,"underline-hidden":!IE.startsWithHttpOrHttps(e)||null}]}},em:hE.spec.marks.get("em"),strong:hE.spec.marks.get("strong")}})}static setup(t){IE.mentionConfigs=t,IE.mentionedHrefs.clear()}static cleanup(){IE.mentionConfigs=void 0,IE.mentionedHrefs.clear()}static startsWithHttpOrHttps(t){return/^https?:\/\//i.test(t)}}_E=IE,IE.mentionedHrefs=new Set,IE.updatedSchema=_E.getCustomSchemaConfiguration(),IE.markdownParser=_E.initializeMarkdownParser(),IE.domSerializer=Ry.fromSchema(_E.updatedSchema)
8604
+ return null===n?{fragment:document.createDocumentFragment(),mentionedHrefs:Array.from(_E.mentionedHrefs)}:{fragment:this.domSerializer.serializeFragment(n.content),mentionedHrefs:Array.from(_E.mentionedHrefs)}}finally{_E.cleanup()}}static initializeMarkdownParser(){const t=yE.tokenizer.configure("zero").enable(["emphasis","list","escape","autolink","newline"])
8605
+ return t.normalizeLinkText=t=>t,new vE(this.updatedSchema,t,yE.tokens)}static getCustomSchemaConfiguration(){return new Cy({nodes:hE.spec.nodes,marks:{link:{attrs:{href:{},rel:{default:"noopener noreferrer"},class:{default:""}},inclusive:!1,excludes:"_",toDOM(t){const e=t.attrs.href,n=_E.mentionConfigs?.find((t=>t.isValidMentionHref(e))),i=n?.getDisplayName(e)
8606
+ return n&&i?(_E.mentionedHrefs.add(e),[n.viewElement,{"mention-href":e,"mention-label":i}]):[nh,{href:_E.startsWithHttpOrHttps(e)?e:null,rel:t.attrs.rel,class:e,"underline-hidden":!_E.startsWithHttpOrHttps(e)||null}]}},em:hE.spec.marks.get("em"),strong:hE.spec.marks.get("strong")}})}static setup(t){_E.mentionConfigs=t,_E.mentionedHrefs.clear()}static cleanup(){_E.mentionConfigs=void 0,_E.mentionedHrefs.clear()}static startsWithHttpOrHttps(t){return/^https?:\/\//i.test(t)}}_E=IE,IE.mentionedHrefs=new Set,IE.updatedSchema=_E.getCustomSchemaConfiguration(),IE.markdownParser=_E.initializeMarkdownParser(),IE.domSerializer=Ry.fromSchema(_E.updatedSchema)
8607
8607
  class ME{constructor(t){this.markdownSerializer=this.initializeMarkdownSerializerForTipTap(t)}serializeDOMToMarkdown(t){return this.markdownSerializer.serialize(t)}initializeMarkdownSerializerForTipTap(t){const e=function(t,e){const n=e.attrs.href
8608
8608
  t.write(`<${n}>`)},n={bulletList:CE.nodes.bullet_list,listItem:CE.nodes.list_item,orderedList:function(t,e){const n=e.attrs.start||1,i=String(n+e.childCount-1).length,s=t.repeat(" ",i+2)
8609
8609
  t.renderList(e,s,(e=>{const s=String(n+e)
@@ -11281,17 +11281,7 @@ return l(),n.addEventListener("scroll",a,bF),n.addEventListener("scrollend",l,bF
11281
11281
  if(t){return Math.round(t[n.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(t.getBoundingClientRect()[n.options.horizontal?"width":"height"])},CF=(t,{adjustments:e=0,behavior:n},i)=>{var s,o
11282
11282
  const r=t+e
11283
11283
  null==(o=null==(s=i.scrollElement)?void 0:s.scrollTo)||o.call(s,{[i.options.horizontal?"left":"top"]:r,behavior:n})}
11284
- const kF=(t,e,n,i)=>{for(;t<=e;){const s=(t+e)/2|0,o=n(s)
11285
- if(o<i)t=s+1
11286
- else{if(!(o>i))return s
11287
- e=s-1}}return t>0?t-1:0}
11288
- class SF{get pageSize(){return this._pageSize}get rowHeight(){return parseFloat(xl.getValueFor(this.table))+2*parseFloat(Ml.getValueFor(this.table))}constructor(t,e){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this._pageSize=0,this.table=t,this.tanStackTable=e,this.viewportResizeObserver=new ResizeObserver((t=>{const e=t[0]?.borderBoxSize[0]
11289
- if(e){this.updatePageSize()
11290
- const t=e.inlineSize
11291
- this.headerContainerMarginRight=t-this.table.viewport.clientWidth}}))}connect(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer()
11292
- const t=this.virtualizer.scrollOffset
11293
- null!==t&&this.table.viewport.scrollTo({top:t})}disconnect(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}scrollToIndex(t,e){this.virtualizer?.scrollToIndex(t,e)}updateVirtualizer(){const t=this.createVirtualizerOptions()
11294
- this.virtualizer?this.virtualizer.setOptions(t):this.virtualizer=new class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null
11284
+ let kF=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null
11295
11285
  const e=()=>t||(this.targetWindow&&this.targetWindow.ResizeObserver?t=new this.targetWindow.ResizeObserver((t=>{t.forEach((t=>{this._measureElement(t.target,t)}))})):null)
11296
11286
  return{disconnect:()=>{var t
11297
11287
  return null==(t=e())?void 0:t.disconnect()},observe:t=>{var n
@@ -11316,10 +11306,10 @@ for(let s=a;s<t;s++){let t=null==(r=this.measurementsCache[s])?void 0:r.measureE
11316
11306
  t||(t=t=>{const e=i(s),n=this.elementsCache.get(e)
11317
11307
  t?(n!==t&&(n&&this.observer.unobserve(n),this.observer.observe(t),this.elementsCache.set(e,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,void 0,this))):n&&(this.observer.unobserve(n),this.elementsCache.delete(e))})
11318
11308
  const a=i(s),c=1===this.options.lanes?l[s-1]:this.getFurthestMeasurement(l,s),d=c?c.end+this.options.gap:e+n,h=o.get(a),u="number"==typeof h?h:this.options.estimateSize(s),p=d+u,f=c?c.lane:s%this.options.lanes
11319
- l[s]={index:s,start:d,size:u,end:p,key:a,lane:f,measureElement:t}}return this.measurementsCache=l,l}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=uF((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((t,e,n)=>this.range=t.length>0&&e>0?function({measurements:t,outerSize:e,scrollOffset:n}){const i=t.length-1,s=kF(0,i,(e=>t[e].start),n)
11320
- let o=s
11321
- for(;o<i&&t[o].end<n+e;)o++
11322
- return{startIndex:s,endIndex:o}}({measurements:t,outerSize:e,scrollOffset:n}):null),{key:!1,debug:()=>this.options.debug}),this.getIndexes=uF((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((t,e,n,i)=>null===e?[]:t({startIndex:e.startIndex,endIndex:e.endIndex,overscan:n,count:i})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,n=t.getAttribute(e)
11309
+ l[s]={index:s,start:d,size:u,end:p,key:a,lane:f,measureElement:t}}return this.measurementsCache=l,l}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=uF((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((t,e,n)=>this.range=t.length>0&&e>0?function({measurements:t,outerSize:e,scrollOffset:n}){const i=t.length-1,s=e=>t[e].start,o=SF(0,i,s,n)
11310
+ let r=o
11311
+ for(;r<i&&t[r].end<n+e;)r++
11312
+ return{startIndex:o,endIndex:r}}({measurements:t,outerSize:e,scrollOffset:n}):null),{key:!1,debug:()=>this.options.debug}),this.getIndexes=uF((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((t,e,n,i)=>null===e?[]:t({startIndex:e.startIndex,endIndex:e.endIndex,overscan:n,count:i})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,n=t.getAttribute(e)
11323
11313
  return n?parseInt(n,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{const n=this.indexFromElement(t),i=this.getMeasurements()[n]
11324
11314
  if(!i||!t.isConnected)return void this.elementsCache.forEach(((e,n)=>{e===t&&(this.observer.unobserve(t),this.elementsCache.delete(n))}))
11325
11315
  const s=this.elementsCache.get(i.key)
@@ -11329,7 +11319,7 @@ const i=e-(this.itemSizeCache.get(n.key)??n.size)
11329
11319
  0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,e)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=uF((()=>[this.getIndexes(),this.getMeasurements()]),((t,e)=>{const n=[]
11330
11320
  for(let i=0,s=t.length;i<s;i++){const s=e[t[i]]
11331
11321
  n.push(s)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const e=this.getMeasurements()
11332
- if(0!==e.length)return pF(e[kF(0,e.length-1,(t=>pF(e[t]).start),t)])},this.getOffsetForAlignment=(t,e)=>{const n=this.getSize(),i=this.getScrollOffset()
11322
+ if(0!==e.length)return pF(e[SF(0,e.length-1,(t=>pF(e[t]).start),t)])},this.getOffsetForAlignment=(t,e)=>{const n=this.getSize(),i=this.getScrollOffset()
11333
11323
  "auto"===e&&(e=t<=i?"start":t>=i+n?"end":"start"),"start"===e||("end"===e?t-=n:"center"===e&&(t-=n/2))
11334
11324
  const s=this.options.horizontal?"scrollWidth":"scrollHeight",o=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-n
11335
11325
  return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1))
@@ -11343,22 +11333,34 @@ return[this.getOffsetForAlignment(o,e),e]},this.isDynamicMode=()=>this.elementsC
11343
11333
  const i=this.getOffsetForIndex(t,e)
11344
11334
  if(!i)return
11345
11335
  const[s,o]=i
11346
- this._scrollToOffset(s,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[s]=pF(this.getOffsetForIndex(t,o))
11336
+ this._scrollToOffset(s,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null
11337
+ if(this.elementsCache.has(this.options.getItemKey(t))){const[s]=pF(this.getOffsetForIndex(t,o))
11347
11338
  e=s,i=this.getScrollOffset(),Math.abs(e-i)<1||this.scrollToIndex(t,{align:o,behavior:n})}else this.scrollToIndex(t,{align:o,behavior:n})
11348
11339
  var e,i})))},this.scrollBy=(t,{behavior:e}={})=>{this.cancelScrollToIndex(),"smooth"===e&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:e})},this.getTotalSize=()=>{var t
11349
11340
  const e=this.getMeasurements()
11350
11341
  let n
11351
11342
  return n=0===e.length?this.options.paddingStart:1===this.options.lanes?(null==(t=e[e.length-1])?void 0:t.end)??0:Math.max(...e.slice(-this.options.lanes).map((t=>t.end))),n-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:e,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:e},this)},this.measure=()=>{var t,e
11352
- this.itemSizeCache=new Map,null==(e=(t=this.options).onChange)||e.call(t,this,!1)},this.setOptions(t)}}(t),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const t=this.rowHeight
11343
+ this.itemSizeCache=new Map,null==(e=(t=this.options).onChange)||e.call(t,this,!1)},this.setOptions(t)}}
11344
+ const SF=(t,e,n,i)=>{for(;t<=e;){const s=(t+e)/2|0,o=n(s)
11345
+ if(o<i)t=s+1
11346
+ else{if(!(o>i))return s
11347
+ e=s-1}}return t>0?t-1:0}
11348
+ class _F{get pageSize(){return this._pageSize}get rowHeight(){return parseFloat(xl.getValueFor(this.table))+2*parseFloat(Ml.getValueFor(this.table))}constructor(t,e){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this._pageSize=0,this.table=t,this.tanStackTable=e,this.viewportResizeObserver=new ResizeObserver((t=>{const e=t[0]?.borderBoxSize[0]
11349
+ if(e){this.updatePageSize()
11350
+ const t=e.inlineSize
11351
+ this.headerContainerMarginRight=t-this.table.viewport.clientWidth}}))}connect(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer()
11352
+ const t=this.virtualizer.scrollOffset
11353
+ null!==t&&this.table.viewport.scrollTo({top:t})}disconnect(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}scrollToIndex(t,e){this.virtualizer?.scrollToIndex(t,e)}updateVirtualizer(){const t=this.createVirtualizerOptions()
11354
+ this.virtualizer?this.virtualizer.setOptions(t):this.virtualizer=new kF(t),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const t=this.rowHeight
11353
11355
  return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:e=>t,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:CF,observeElementOffset:wF,observeElementRect:vF,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){const t=this.virtualizer
11354
11356
  this.visibleItems=t.getVirtualItems(),this.scrollHeight=t.getTotalSize()
11355
11357
  let e=0
11356
- if(this.visibleItems.length>0){e=this.visibleItems[0].start}this.rowContainerYOffset=e}updatePageSize(){this._pageSize=Math.round(this.table.viewport.clientHeight/this.rowHeight)}}function _F(t){switch(t){case ER:return MF
11357
- case DR:return IF
11358
- default:return MF}}function IF(t,e,n){const i=t.getValue(n),s=e.getValue(n)
11359
- return"string"==typeof i&&"string"==typeof s?i.localeCompare(s):i===s?0:void 0===i||null===i&&void 0!==s?-1:1}function MF(t,e,n){const i=t.getValue(n),s=e.getValue(n)
11360
- return Object.is(i,s)?0:void 0===i?-1:void 0===s?1:null===i?-1:null===s?1:Number.isNaN(i)?-1:Number.isNaN(s)?1:0===i&&0===s?Object.is(i,-0)?-1:1:i>s?1:-1}t([C],SF.prototype,"visibleItems",void 0),t([C],SF.prototype,"scrollHeight",void 0),t([C],SF.prototype,"headerContainerMarginRight",void 0),t([C],SF.prototype,"rowContainerYOffset",void 0)
11361
- class $F{constructor(t){this.table=t,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=t=>{const e=t
11358
+ if(this.visibleItems.length>0){e=this.visibleItems[0].start}this.rowContainerYOffset=e}updatePageSize(){this._pageSize=Math.round(this.table.viewport.clientHeight/this.rowHeight)}}function IF(t){switch(t){case ER:return $F
11359
+ case DR:return MF
11360
+ default:return $F}}function MF(t,e,n){const i=t.getValue(n),s=e.getValue(n)
11361
+ return"string"==typeof i&&"string"==typeof s?i.localeCompare(s):i===s?0:void 0===i||null===i&&void 0!==s?-1:1}function $F(t,e,n){const i=t.getValue(n),s=e.getValue(n)
11362
+ return Object.is(i,s)?0:void 0===i?-1:void 0===s?1:null===i?-1:null===s?1:Number.isNaN(i)?-1:Number.isNaN(s)?1:0===i&&0===s?Object.is(i,-0)?-1:1:i>s?1:-1}t([C],_F.prototype,"visibleItems",void 0),t([C],_F.prototype,"scrollHeight",void 0),t([C],_F.prototype,"headerContainerMarginRight",void 0),t([C],_F.prototype,"rowContainerYOffset",void 0)
11363
+ class EF{constructor(t){this.table=t,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=t=>{const e=t
11362
11364
  for(let t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].columnInternals.currentPixelWidth=this.initialColumnWidths[t]?.initialPixelWidth
11363
11365
  this.currentTotalDelta=this.getAllowedSizeDelta(e.clientX-this.dragStart),this.performCascadeSizeLeft(this.leftColumnIndex,this.currentTotalDelta),this.performCascadeSizeRight(this.rightColumnIndex,this.currentTotalDelta)
11364
11366
  const n=this.getTotalColumnFixedWidth()-this.initialColumnTotalWidth
@@ -11395,10 +11397,10 @@ for(const t of this.visibleColumns)this.initialColumnWidths.push({initalColumnFr
11395
11397
  const t=this.gridSizedColumns.reduce(((t,e)=>t+e.columnInternals.currentPixelWidth),0),e=t/this.gridSizedColumns.length
11396
11398
  let n=0
11397
11399
  for(let t=0;t<this.visibleColumns.length&&n<this.gridSizedColumns.length;t++){const i=this.visibleColumns[t]
11398
- i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/e,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((t=>!t.columnHidden))}getLeftColumnIndexFromDivider(t){return Math.floor(t/2)}}t([C],$F.prototype,"isColumnBeingSized",void 0),t([C],$F.prototype,"activeColumnIndex",void 0),t([C],$F.prototype,"activeColumnDivider",void 0)
11399
- const EF=(t,...e)=>{for(const n of e)if(t===n)return!0
11400
- return!1},DF=["rowIds","rowParentIds","groupRows","columnIds","columnHidden","columnSort","columnSortDisabled","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
11401
- class AF extends OE{constructor(t){super(DF),this.table=t,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")}get requiresKeyboardFocusReset(){return this.isTracked("columnSortDisabled")||this.isTracked("columnDefinition")||this.isTracked("columnHidden")||this.isTracked("selectionMode")||this.isTracked("actionMenuSlots")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(t){EF(t,"columnId")?this.track("columnIds"):zR(t,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):zR(t,"sortingDisabled")?(this.track("columnSort"),this.track("columnSortDisabled")):zR(t,"currentSortDirection","currentSortIndex")?this.track("columnSort"):zR(t,"currentFractionalWidth","currentPixelWidth","minPixelWidth","resizingDisabled")?this.track("columnWidths"):EF(t,"columnHidden")?(this.track("columnWidths"),this.track("columnHidden")):EF(t,"actionMenuSlot")?this.track("actionMenuSlots"):zR(t,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnSortDisabled"),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,b.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class TF{constructor(t){this.tanStackTable=t}reset(){}toggleIsRowSelected(t,e){t.isGroupRow&&t.selectionState===vR?this.deselectAllLeafRows(t.id):this.tanStackTable.getRow(t.id).toggleSelected(e,{selectChildren:t.isGroupRow})}selectSingleRow(t){if(t.isGroupRow)throw new Error("function not intended to select grouped rows")
11400
+ i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/e,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((t=>!t.columnHidden))}getLeftColumnIndexFromDivider(t){return Math.floor(t/2)}}t([C],EF.prototype,"isColumnBeingSized",void 0),t([C],EF.prototype,"activeColumnIndex",void 0),t([C],EF.prototype,"activeColumnDivider",void 0)
11401
+ const DF=(t,...e)=>{for(const n of e)if(t===n)return!0
11402
+ return!1},AF=["rowIds","rowParentIds","groupRows","columnIds","columnHidden","columnSort","columnSortDisabled","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
11403
+ class TF extends OE{constructor(t){super(AF),this.table=t,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")}get requiresKeyboardFocusReset(){return this.isTracked("columnSortDisabled")||this.isTracked("columnDefinition")||this.isTracked("columnHidden")||this.isTracked("selectionMode")||this.isTracked("actionMenuSlots")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(t){DF(t,"columnId")?this.track("columnIds"):zR(t,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):zR(t,"sortingDisabled")?(this.track("columnSort"),this.track("columnSortDisabled")):zR(t,"currentSortDirection","currentSortIndex")?this.track("columnSort"):zR(t,"currentFractionalWidth","currentPixelWidth","minPixelWidth","resizingDisabled")?this.track("columnWidths"):DF(t,"columnHidden")?(this.track("columnWidths"),this.track("columnHidden")):DF(t,"actionMenuSlot")?this.track("actionMenuSlots"):zR(t,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnSortDisabled"),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,b.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class OF{constructor(t){this.tanStackTable=t}reset(){}toggleIsRowSelected(t,e){t.isGroupRow&&t.selectionState===vR?this.deselectAllLeafRows(t.id):this.tanStackTable.getRow(t.id).toggleSelected(e,{selectChildren:t.isGroupRow})}selectSingleRow(t){if(t.isGroupRow)throw new Error("function not intended to select grouped rows")
11402
11404
  const e=this.tanStackTable.getState().rowSelection,n=[]
11403
11405
  if(Object.entries(e).forEach((([t,e])=>{e&&n.push(t)})),1===n.length&&n[0]===t.id)return!1
11404
11406
  const i={}
@@ -11408,7 +11410,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(t){const e=this.tanStackT
11408
11410
  return e?.getIsGrouped()?e.getLeafRows().filter((t=>!t.getIsGrouped())).map((t=>t.id)):[]}getAllOrderedRows(){const t=this.tanStackTable.getPreExpandedRowModel().rows
11409
11411
  return this.getOrderedRows(t)}getOrderedRows(t){const e=[]
11410
11412
  for(const n of t)e.push(n),n.subRows?.length&&e.push(...this.getOrderedRows(n.subRows))
11411
- return e}}class OF extends TF{handleRowSelectionToggle(t,e,n){return!1}handleRowClick(t,e,n){return!1}handleActionMenuOpening(t){return!1}}class RF extends TF{handleRowSelectionToggle(t,e,n){return n&&this.tryUpdateRangeSelection(t.id,!0)||(this.shiftSelectStartRowId=e?t.id:void 0,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t,e)),!0}handleRowClick(t,e,n){if(e){const e=n
11413
+ return e}}class RF extends OF{handleRowSelectionToggle(t,e,n){return!1}handleRowClick(t,e,n){return!1}handleActionMenuOpening(t){return!1}}class FF extends OF{handleRowSelectionToggle(t,e,n){return n&&this.tryUpdateRangeSelection(t.id,!0)||(this.shiftSelectStartRowId=e?t.id:void 0,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t,e)),!0}handleRowClick(t,e,n){if(e){const e=n
11412
11414
  if(this.tryUpdateRangeSelection(t.id,e))return!0}if(n){const e=t.selectionState!==vR
11413
11415
  return this.shiftSelectStartRowId=e?t.id:void 0,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t),!0}return this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(t)}handleActionMenuOpening(t){return t.selectionState!==vR&&this.selectSingleRow(t)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(t,e){if(void 0===this.shiftSelectStartRowId)return!1
11414
11416
  const n=this.getAllOrderedRows(),i=this.getRowIndexForId(this.shiftSelectStartRowId,n)
@@ -11420,20 +11422,20 @@ this.updateSelectionStateForRange(t,n,s,i,!0)}updateSelectionStateForRange(t,e,n
11420
11422
  const o=Math.min(e,n),r=Math.max(e,n)
11421
11423
  for(let e=o;e<=r;e++){const n=i[e]
11422
11424
  n.getIsGrouped()||this.updateSelectionStateForRow(t,n.id,s)}const a=i[n]
11423
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((e=>this.updateSelectionStateForRow(t,e,s)))}updateSelectionStateForRow(t,e,n){n?t[e]=!0:delete t[e]}getRowIndexForId(t,e){return t?e.findIndex((e=>e.id===t)):-1}}class FF extends TF{handleRowSelectionToggle(t,e,n){return this.toggleIsRowSelected(t,e),!0}handleRowClick(t,e,n){return this.selectSingleRow(t)}handleActionMenuOpening(t){return this.handleRowClick(t,!1,!1)}}class NF{constructor(t,e){this.tanStackTable=t,this.selectionManager=this.createSelectionManager(e)}handleRowSelectionToggle(t,e,n){return!!t&&this.selectionManager.handleRowSelectionToggle(t,e,n)}handleRowClick(t,e,n){return!!t&&this.selectionManager.handleRowClick(t,e,n)}handleActionMenuOpening(t){return!!t&&this.selectionManager.handleActionMenuOpening(t)}handleSelectionModeChanged(t){this.selectionManager=this.createSelectionManager(t)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const t=this.tanStackTable.options.state.rowSelection
11425
+ a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((e=>this.updateSelectionStateForRow(t,e,s)))}updateSelectionStateForRow(t,e,n){n?t[e]=!0:delete t[e]}getRowIndexForId(t,e){return t?e.findIndex((e=>e.id===t)):-1}}class NF extends OF{handleRowSelectionToggle(t,e,n){return this.toggleIsRowSelected(t,e),!0}handleRowClick(t,e,n){return this.selectSingleRow(t)}handleActionMenuOpening(t){return this.handleRowClick(t,!1,!1)}}class LF{constructor(t,e){this.tanStackTable=t,this.selectionManager=this.createSelectionManager(e)}handleRowSelectionToggle(t,e,n){return!!t&&this.selectionManager.handleRowSelectionToggle(t,e,n)}handleRowClick(t,e,n){return!!t&&this.selectionManager.handleRowClick(t,e,n)}handleActionMenuOpening(t){return!!t&&this.selectionManager.handleActionMenuOpening(t)}handleSelectionModeChanged(t){this.selectionManager=this.createSelectionManager(t)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const t=this.tanStackTable.options.state.rowSelection
11424
11426
  if(!t)return[]
11425
11427
  const e=[]
11426
- return Object.entries(t).forEach((([t,n])=>{n&&e.push(t)})),e}createSelectionManager(t){switch(t){case mR.multiple:return new RF(this.tanStackTable)
11427
- case mR.single:return new FF(this.tanStackTable)
11428
- case mR.none:return new OF(this.tanStackTable)
11429
- default:throw new Error("unknown selection mode found")}}}function LF(t,e){const n=e,i=[],s={},o=new Set
11428
+ return Object.entries(t).forEach((([t,n])=>{n&&e.push(t)})),e}createSelectionManager(t){switch(t){case mR.multiple:return new FF(this.tanStackTable)
11429
+ case mR.single:return new NF(this.tanStackTable)
11430
+ case mR.none:return new RF(this.tanStackTable)
11431
+ default:throw new Error("unknown selection mode found")}}}function BF(t,e){const n=e,i=[],s={},o=new Set
11430
11432
  for(let e=0;e<t.length;e++){const r=t[e],a=r[n.id],l=r[n.parentId]
11431
11433
  Object.prototype.hasOwnProperty.call(s,a)||(s[a]={subRows:[],clientRecord:void 0,originalIndex:void 0}),o&&o.delete(a),s[a].clientRecord=r
11432
11434
  const c=s[a]
11433
11435
  c.originalIndex=e,null==l?i.push(c):(Object.prototype.hasOwnProperty.call(s,l)||(s[l]={subRows:[],clientRecord:void 0,originalIndex:void 0},o&&o.add(l)),s[l].subRows.push(c))}if(o?.size){const t=Array.from(o.values()).join(",")
11434
- throw new Error(`The items array contains orphans that point to the following parentIds: [${t}]. These parentIds do not exist in the items array.`)}if(BF(i)<Object.keys(s).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
11435
- return i}function BF(t){return t.reduce(((t,e)=>t+1+(e.subRows&&BF(e.subRows))),0)}class PF{constructor(t,e,n){if(this.isDataFlat=!1,"string"==typeof e&&"string"==typeof n)try{this._hierarchicalData=LF(t,{id:e,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(t=!1){const e=[]
11436
- return this.getAllNodes(this._hierarchicalData,e),this.isDataFlat||!t?e.map((t=>t.clientRecord)):e.sort(((t,e)=>t.originalIndex-e.originalIndex)).map((t=>t.clientRecord))}getAllNodes(t,e){for(const n of t)e.push(n),n.subRows&&this.getAllNodes(n.subRows,e)}}class zF{constructor(t){this.tanStackTable=t,this.explicitExpansionStates=new Map,this.hierarchyOptions=new Map,this.isHierarchyEnabled=!1,this.parentRowsWithChildren=new Set}isRowExpanded(t){if(!this.isRowExpandable(t))return!1
11436
+ throw new Error(`The items array contains orphans that point to the following parentIds: [${t}]. These parentIds do not exist in the items array.`)}if(PF(i)<Object.keys(s).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
11437
+ return i}function PF(t){return t.reduce(((t,e)=>t+1+(e.subRows&&PF(e.subRows))),0)}class zF{constructor(t,e,n){if(this.isDataFlat=!1,"string"==typeof e&&"string"==typeof n)try{this._hierarchicalData=BF(t,{id:e,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(t=!1){const e=[]
11438
+ return this.getAllNodes(this._hierarchicalData,e),this.isDataFlat||!t?e.map((t=>t.clientRecord)):e.sort(((t,e)=>t.originalIndex-e.originalIndex)).map((t=>t.clientRecord))}getAllNodes(t,e){for(const n of t)e.push(n),n.subRows&&this.getAllNodes(n.subRows,e)}}class VF{constructor(t){this.tanStackTable=t,this.explicitExpansionStates=new Map,this.hierarchyOptions=new Map,this.isHierarchyEnabled=!1,this.parentRowsWithChildren=new Set}isRowExpanded(t){if(!this.isRowExpandable(t))return!1
11437
11439
  return this.explicitExpansionStates.get(t.id)??this.getDefaultExpansionState(t)}toggleRowExpansion(t){if(!this.isRowExpandable(t))return
11438
11440
  const e=this.isRowExpanded(t)
11439
11441
  this.explicitExpansionStates.set(t.id,!e),t.toggleExpanded()}collapseAll(){this.resetExpansionState()
@@ -11448,8 +11450,8 @@ for(const{recordId:n,options:i}of t){e.set(n,i)
11448
11450
  const t=this.hierarchyOptions.get(n)?.delayedHierarchyState,s=i.delayedHierarchyState
11449
11451
  t!==pR||s!==uR||this.parentRowsWithChildren.has(n)||this.explicitExpansionStates.delete(n)}this.hierarchyOptions=e}isRowExpandable(t){return t.subRows.length>0||this.canLoadDelayedChildren(t.id)}setHierarchyEnabled(t){this.isHierarchyEnabled=t}isLoadingChildren(t){return!!this.isHierarchyEnabled&&(this.hierarchyOptions.get(t)?.delayedHierarchyState===pR??!1)}canLoadDelayedChildren(t){if(!this.isHierarchyEnabled)return!1
11450
11452
  const e=this.hierarchyOptions.get(t)?.delayedHierarchyState
11451
- return e!==hR}getDefaultExpansionState(t){return 0!==t.subRows.length}}class VF extends TE{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class HF extends VF{constructor(t){super(t),this.isColumnValid=!0}getValidity(){return this.getValidationFlags()}onTrackingChange(){super.onTrackingChange(),this.isColumnValid=this.isValid()}setConditionValue(t,e){e?this.track(t):this.untrack(t)}}t([C],HF.prototype,"isColumnValid",void 0)
11452
- class UF{get inNavigationMode(){return this.focusType!==MR&&this.focusType!==$R}constructor(t,e){this.table=t,this.virtualizer=e,this.focusType=xR,this.headerActionIndex=-1,this.rowIndex=-1,this.cellContentIndex=-1,this.columnIndex=-1,this.focusWithinTable=!1,this.isCurrentlyFocusingElement=!1,this.visibleRowNotifiers=[],this.onTableFocusIn=t=>{this.focusWithinTable=!0,this.updateFocusStateFromActiveElement(!1)
11453
+ return e!==hR}getDefaultExpansionState(t){return 0!==t.subRows.length}}class HF extends TE{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class UF extends HF{constructor(t){super(t),this.isColumnValid=!0}getValidity(){return this.getValidationFlags()}onTrackingChange(){super.onTrackingChange(),this.isColumnValid=this.isValid()}setConditionValue(t,e){e?this.track(t):this.untrack(t)}}t([C],UF.prototype,"isColumnValid",void 0)
11454
+ class qF{get inNavigationMode(){return this.focusType!==MR&&this.focusType!==$R}constructor(t,e){this.table=t,this.virtualizer=e,this.focusType=xR,this.headerActionIndex=-1,this.rowIndex=-1,this.cellContentIndex=-1,this.columnIndex=-1,this.focusWithinTable=!1,this.isCurrentlyFocusingElement=!1,this.visibleRowNotifiers=[],this.onTableFocusIn=t=>{this.focusWithinTable=!0,this.updateFocusStateFromActiveElement(!1)
11453
11455
  const e=void 0!==this.table.openActionMenuRecordId
11454
11456
  if((t.target===this.table||this.focusType===xR)&&!e){let t=!0
11455
11457
  this.hasRowOrCellFocusType()&&this.scrollToAndFocusRow(this.rowIndex)&&(t=!1),t&&!this.setFocusOnHeader()&&this.table.blur()}},this.onTableFocusOut=()=>{this.focusWithinTable=!1},this.onCellActionMenuBlur=t=>{t.stopPropagation()
@@ -11581,7 +11583,7 @@ const i=e??this.columnIndex,s=n??this.rowIndex
11581
11583
  return i>=0&&i<t.cells.length&&(this.focusType=IR,this.setRowCellFocusState(i,s,!0),!0)}trySetCellContentFocus(t,e,n,i){if(!t)return!1
11582
11584
  const s=n??this.columnIndex,o=i??this.rowIndex
11583
11585
  return s>=0&&s<t.cells.length&&e>=0&&e<t.cells[s].cell.cellView.tabbableChildren.length&&(this.setCellContentFocusState(e,o,s,!0),!0)}trySetCellActionMenuFocus(t,e,n){const i=e??this.columnIndex,s=n??this.rowIndex
11584
- return!!(i>=0&&i<t.cells.length&&t.cells[i].actionMenuButton)&&(this.setCellActionMenuFocusState(s,i,!0),!0)}setCellActionMenuFocusState(t,e,n){this.focusType=MR,this.setRowCellFocusState(e,t,n)}setCellContentFocusState(t,e,n,i){this.focusType=$R,this.cellContentIndex=t,this.setRowCellFocusState(n,e,i)}setRowFocusState(t){this.focusType=SR,void 0!==t&&(this.rowIndex=t)}setCellFocusState(t,e,n){this.focusType=IR,this.setRowCellFocusState(t,e,n)}setRowCellFocusState(t,e,n){this.rowIndex=e,this.columnIndex=t,n&&this.focusCurrentRow(!0)}isResolvedRowType(t){return t instanceof iF||t instanceof lF}}let qF=class extends We{get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===mR.multiple||this.showCollapseAll}get collapseButtonVisibility(){return this.canHaveCollapsibleRows?this.showCollapseAll?"visible":"":"hidden-size-reduced"}constructor(){super(),this.selectionMode=mR.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=gR,this.showCollapseAll=!1,this.canHaveCollapsibleRows=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.windowShiftKeyDown=!1,this.tableValidator=new HR,this.tableUpdateTracker=new AF(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.requestedSlots=new Map,this.actionMenuSlots=[],this.onViewPortScroll=t=>{this.scrollX=t.target.scrollLeft},this.onKeyDown=t=>{this.windowShiftKeyDown=t.shiftKey},this.onKeyUp=t=>{this.windowShiftKeyDown=t.shiftKey},this.onBlur=()=>{this.windowShiftKeyDown=!1},this.getRowCanExpand=t=>this.expansionManager.isRowExpandable(t),this.getIsRowExpanded=t=>this.expansionManager.isRowExpanded(t),this.handleRowSelectionChange=t=>{const e=t instanceof Function?t(this.table.getState().rowSelection):t
11586
+ return!!(i>=0&&i<t.cells.length&&t.cells[i].actionMenuButton)&&(this.setCellActionMenuFocusState(s,i,!0),!0)}setCellActionMenuFocusState(t,e,n){this.focusType=MR,this.setRowCellFocusState(e,t,n)}setCellContentFocusState(t,e,n,i){this.focusType=$R,this.cellContentIndex=t,this.setRowCellFocusState(n,e,i)}setRowFocusState(t){this.focusType=SR,void 0!==t&&(this.rowIndex=t)}setCellFocusState(t,e,n){this.focusType=IR,this.setRowCellFocusState(t,e,n)}setRowCellFocusState(t,e,n){this.rowIndex=e,this.columnIndex=t,n&&this.focusCurrentRow(!0)}isResolvedRowType(t){return t instanceof iF||t instanceof lF}}let jF=class extends We{get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===mR.multiple||this.showCollapseAll}get collapseButtonVisibility(){return this.canHaveCollapsibleRows?this.showCollapseAll?"visible":"":"hidden-size-reduced"}constructor(){super(),this.selectionMode=mR.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=gR,this.showCollapseAll=!1,this.canHaveCollapsibleRows=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.windowShiftKeyDown=!1,this.tableValidator=new HR,this.tableUpdateTracker=new TF(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.requestedSlots=new Map,this.actionMenuSlots=[],this.onViewPortScroll=t=>{this.scrollX=t.target.scrollLeft},this.onKeyDown=t=>{this.windowShiftKeyDown=t.shiftKey},this.onKeyUp=t=>{this.windowShiftKeyDown=t.shiftKey},this.onBlur=()=>{this.windowShiftKeyDown=!1},this.getRowCanExpand=t=>this.expansionManager.isRowExpandable(t),this.getIsRowExpanded=t=>this.expansionManager.isRowExpanded(t),this.handleRowSelectionChange=t=>{const e=t instanceof Function?t(this.table.getState().rowSelection):t
11585
11587
  this.updateTableOptions({state:{rowSelection:e}})},this.handleExpandedChange=t=>{const e=t instanceof Function?t(this.table.getState().expanded):t
11586
11588
  this.updateTableOptions({state:{expanded:e}})},this.options={data:[],onStateChange:t=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:t=>mO((()=>[t.options.data]),(e=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(e,s,o){void 0===s&&(s=0)
11587
11589
  const r=[]
@@ -11604,11 +11606,11 @@ d=n&&i?0:n?l:-l}}if(0===d&&(d=a.sortingFn(t,e,s.id)),0!==d)return c&&(d*=-1),a.i
11604
11606
  s.push(t),null!=(e=t.subRows)&&e.length&&(t.subRows=a(t.subRows))})),e}
11605
11607
  return{rows:a(n.rows),flatRows:s,rowsById:n.rowsById}}),gO(t.options,"debugTable",0,(()=>t._autoResetPageIndex()))),getGroupedRowModel:dR(),getExpandedRowModel:t=>mO((()=>[t.getState().expanded,t.getPreExpandedRowModel(),t.options.paginateExpandedRows]),((t,e,n)=>!e.rows.length||!0!==t&&!Object.keys(null!=t?t:{}).length?e:n?function(t){const e=[],n=t=>{var i
11606
11608
  e.push(t),null!=(i=t.subRows)&&i.length&&t.getIsExpanded()&&t.subRows.forEach(n)}
11607
- return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}(e):e),gO(t.options,"debugTable")),getRowCanExpand:this.getRowCanExpand,getIsRowExpanded:this.getIsRowExpanded,getSubRows:t=>t.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:t=>!t.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=cR(this.options),this.virtualizer=new SF(this,this.table),this.keyboardNavigationManager=new UF(this,this.virtualizer),this.layoutManager=new $F(this),this.layoutManagerNotifier=x.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new NF(this.table,this.selectionMode),this.expansionManager=new zF(this.table)}async setData(t){await this.processPendingUpdates()
11609
+ return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}(e):e),gO(t.options,"debugTable")),getRowCanExpand:this.getRowCanExpand,getIsRowExpanded:this.getIsRowExpanded,getSubRows:t=>t.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:t=>!t.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=cR(this.options),this.virtualizer=new _F(this,this.table),this.keyboardNavigationManager=new qF(this,this.virtualizer),this.layoutManager=new EF(this),this.layoutManagerNotifier=x.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new LF(this.table,this.selectionMode),this.expansionManager=new VF(this.table)}async setData(t){await this.processPendingUpdates()
11608
11610
  const e=this.calculateTanStackData(t)
11609
11611
  this.updateTableOptions(e)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(t){await this.processPendingUpdates(),this.selectionMode!==mR.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(t)}})}async setRecordHierarchyOptions(t){await this.processPendingUpdates()
11610
11612
  const e=structuredClone(t),n=this.tableValidator.getOptionsWithPresentIds(e)
11611
- this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),this.keyboardNavigationManager.connect(),window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp),window.addEventListener("blur",this.onBlur)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.keyboardNavigationManager.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp),window.removeEventListener("blur",this.onBlur)}checkValidity(){return this.tableValidator.isValid()}handleChange(t,e){(t instanceof VR||t instanceof PR)&&"string"==typeof e?this.tableUpdateTracker.trackColumnPropertyChanged(e):t instanceof HF&&"isColumnValid"===e?this.tableValidator.validateColumnConfigurations(this.columns):t instanceof $F&&"isColumnBeingSized"===e&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(t,e){e.stopImmediatePropagation()
11613
+ this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),this.keyboardNavigationManager.connect(),window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp),window.addEventListener("blur",this.onBlur)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.keyboardNavigationManager.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp),window.removeEventListener("blur",this.onBlur)}checkValidity(){return this.tableValidator.isValid()}handleChange(t,e){(t instanceof VR||t instanceof PR)&&"string"==typeof e?this.tableUpdateTracker.trackColumnPropertyChanged(e):t instanceof UF&&"isColumnValid"===e?this.tableValidator.validateColumnConfigurations(this.columns):t instanceof EF&&"isColumnBeingSized"===e&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(t,e){e.stopImmediatePropagation()
11612
11614
  this.selectionManager.handleRowSelectionToggle(this.tableData[t],e.detail.newState,this.windowShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(t,e){return this.selectionManager.handleRowClick(this.tableData[t],e.shiftKey,e.ctrlKey||e.metaKey)&&this.emitSelectionChangeEvent(),!0}onRowFocusIn(t){this.keyboardNavigationManager.onRowFocusIn(t)}onRowBlur(t){this.keyboardNavigationManager.onRowBlur(t)}onAllRowsSelectionChange(t){t.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(t,e){e.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(t,e)}onRowActionMenuToggle(t){t.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(t)}onRowSlotsRequest(t){t.stopImmediatePropagation()
11613
11615
  for(const e of t.detail.slots){const n=NR(t.detail.columnInternalId,e.slot)
11614
11616
  this.requestedSlots.set(e.name,{recordId:t.detail.recordId,uniqueSlot:n})}this.refreshRows()}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(t,e){0===t.button&&this.layoutManager.beginColumnInteractiveSize(t.clientX,this.getRightDividerIndex(e))}onLeftDividerMouseDown(t,e){0===t.button&&this.layoutManager.beginColumnInteractiveSize(t.clientX,this.getLeftDividerIndex(e))}getLeftDividerIndex(t){return 2*t-1}getRightDividerIndex(t){return 2*t}handleGroupRowExpanded(t,e){this.toggleRowExpanded(t),e.stopPropagation()}handleRowExpanded(t){this.toggleRowExpanded(t)}toggleColumnSort(t,e){if(t.columnInternals.sortingDisabled)return
@@ -11620,7 +11622,7 @@ e?n[i].columnInternals.currentSortIndex=i:s===t?s.columnInternals.currentSortInd
11620
11622
  return e.key===Aa&&this.toggleColumnSort(t,n),!0}update(){if(this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows){const t=this.isHierarchyEnabled(),e=this.columns.some((t=>!t.columnInternals.groupingDisabled))
11621
11623
  this.canHaveCollapsibleRows=t||e}this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((t=>!t.columnHidden))),this.tableUpdateTracker.requiresKeyboardFocusReset&&this.keyboardNavigationManager.resetFocusState()}get ariaMultiSelectable(){switch(this.selectionMode){case mR.multiple:return"true"
11622
11624
  case mR.single:return"false"
11623
- default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(t){this.dataHierarchyManager=new PF(t,this.idFieldName,this.parentIdFieldName)
11625
+ default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(t){this.dataHierarchyManager=new zF(t,this.idFieldName,this.parentIdFieldName)
11624
11626
  const e=this.dataHierarchyManager.hierarchicalData
11625
11627
  this.tableValidator.setParentIdConfigurationValidity(this.dataHierarchyManager.parentIdConfigurationValid)
11626
11628
  const n={data:e}
@@ -11659,14 +11661,14 @@ if(void 0!==e)return this.columns.find((t=>t.columnInternals.uniqueId===e))}upda
11659
11661
  this.expansionManager.processDataUpdate(t)}this.refreshRows()}toggleRowExpanded(t){const e=this.table.getRowModel().rows[t]
11660
11662
  this.expansionManager.toggleRowExpansion(e)}calculateTanStackSortState(){const t=this.getColumnsParticipatingInSorting().sort(((t,e)=>t.columnInternals.currentSortIndex-e.columnInternals.currentSortIndex))
11661
11663
  return this.firstSortedColumn=t.length?t[0]:void 0,t.map((t=>({id:t.columnInternals.uniqueId,desc:t.columnInternals.currentSortDirection===fR.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((t,e)=>t.columnInternals.groupIndex-e.columnInternals.groupIndex)).map((t=>t.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:t=>t.clientRecord[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((t=>({id:t.columnInternals.uniqueId,accessorFn:e=>{const n=t.columnInternals.operandDataRecordFieldName
11662
- if("string"==typeof n)return e.clientRecord[n]},sortingFn:_F(t.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(t){if(this.selectionMode===mR.none)return{}
11664
+ if("string"==typeof n)return e.clientRecord[n]},sortingFn:IF(t.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(t){if(this.selectionMode===mR.none)return{}
11663
11665
  const e={},n=this.tableValidator.getPresentRecordIds(t)
11664
11666
  for(const t of n)if(e[t]=!0,this.selectionMode===mR.single)break
11665
11667
  return e}}
11666
- t([ft({attribute:"id-field-name"})],qF.prototype,"idFieldName",void 0),t([ft({attribute:"parent-id-field-name"})],qF.prototype,"parentIdFieldName",void 0),t([ft({attribute:"selection-mode"})],qF.prototype,"selectionMode",void 0),t([C],qF.prototype,"tableData",void 0),t([C],qF.prototype,"columns",void 0),t([C],qF.prototype,"childItems",void 0),t([C],qF.prototype,"rowElements",void 0),t([C],qF.prototype,"openActionMenuRecordId",void 0),t([C],qF.prototype,"canRenderRows",void 0),t([C],qF.prototype,"scrollX",void 0),t([C],qF.prototype,"rowGridColumns",void 0),t([C],qF.prototype,"selectionState",void 0),t([C],qF.prototype,"selectionCheckbox",void 0),t([C],qF.prototype,"collapseAllButton",void 0),t([C],qF.prototype,"showCollapseAll",void 0),t([C],qF.prototype,"canHaveCollapsibleRows",void 0),t([k],qF.prototype,"collapseButtonVisibility",null),t([C],qF.prototype,"firstSortedColumn",void 0),t([C],qF.prototype,"visibleColumns",void 0),t([C],qF.prototype,"tableScrollableMinWidth",void 0),t([C],qF.prototype,"windowShiftKeyDown",void 0)
11667
- const jF=qF.compose({baseName:"table",template:hF,styles:UR})
11668
- _i.getOrCreate().withPrefix("nimble").register(jF())
11669
- const WF=Mt`
11668
+ t([ft({attribute:"id-field-name"})],jF.prototype,"idFieldName",void 0),t([ft({attribute:"parent-id-field-name"})],jF.prototype,"parentIdFieldName",void 0),t([ft({attribute:"selection-mode"})],jF.prototype,"selectionMode",void 0),t([C],jF.prototype,"tableData",void 0),t([C],jF.prototype,"columns",void 0),t([C],jF.prototype,"childItems",void 0),t([C],jF.prototype,"rowElements",void 0),t([C],jF.prototype,"openActionMenuRecordId",void 0),t([C],jF.prototype,"canRenderRows",void 0),t([C],jF.prototype,"scrollX",void 0),t([C],jF.prototype,"rowGridColumns",void 0),t([C],jF.prototype,"selectionState",void 0),t([C],jF.prototype,"selectionCheckbox",void 0),t([C],jF.prototype,"collapseAllButton",void 0),t([C],jF.prototype,"showCollapseAll",void 0),t([C],jF.prototype,"canHaveCollapsibleRows",void 0),t([k],jF.prototype,"collapseButtonVisibility",null),t([C],jF.prototype,"firstSortedColumn",void 0),t([C],jF.prototype,"visibleColumns",void 0),t([C],jF.prototype,"tableScrollableMinWidth",void 0),t([C],jF.prototype,"windowShiftKeyDown",void 0)
11669
+ const WF=jF.compose({baseName:"table",template:hF,styles:UR})
11670
+ _i.getOrCreate().withPrefix("nimble").register(WF())
11671
+ const GF=Mt`
11670
11672
  ${zs("contents")}
11671
11673
 
11672
11674
  .header-content {
@@ -11674,14 +11676,14 @@ const WF=Mt`
11674
11676
  overflow: hidden;
11675
11677
  text-overflow: ellipsis;
11676
11678
  }
11677
- `,GF=Q`<span
11679
+ `,ZF=Q`<span
11678
11680
  ${Dg("hasOverflow")}
11679
11681
  class="header-content"
11680
11682
  title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
11681
11683
  >
11682
11684
  <slot ${Ut("contentSlot")}></slot>
11683
11685
  </span>`
11684
- function ZF(t){class e extends t{fractionalWidthChanged(){this.columnInternals.fractionalWidth=this.fractionalWidth??TR}minPixelWidthChanged(){this.columnInternals.minPixelWidth=this.minPixelWidth??AR}}return ft({attribute:"fractional-width",converter:ut})(e.prototype,"fractionalWidth"),ft({attribute:"min-pixel-width",converter:ut})(e.prototype,"minPixelWidth"),e}function KF(t){class e extends t{constructor(){super(...arguments),this.groupingDisabled=!1}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){this.columnInternals.groupIndex=this.groupIndex??void 0}}return ft({attribute:"grouping-disabled",mode:"boolean"})(e.prototype,"groupingDisabled"),ft({attribute:"group-index",converter:ut})(e.prototype,"groupIndex"),e}function YF(t){class e extends t{}return ft({attribute:"placeholder"})(e.prototype,"placeholder"),e}const XF=Mt`
11686
+ function KF(t){class e extends t{fractionalWidthChanged(){this.columnInternals.fractionalWidth=this.fractionalWidth??TR}minPixelWidthChanged(){this.columnInternals.minPixelWidth=this.minPixelWidth??AR}}return ft({attribute:"fractional-width",converter:ut})(e.prototype,"fractionalWidth"),ft({attribute:"min-pixel-width",converter:ut})(e.prototype,"minPixelWidth"),e}function YF(t){class e extends t{constructor(){super(...arguments),this.groupingDisabled=!1}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){this.columnInternals.groupIndex=this.groupIndex??void 0}}return ft({attribute:"grouping-disabled",mode:"boolean"})(e.prototype,"groupingDisabled"),ft({attribute:"group-index",converter:ut})(e.prototype,"groupIndex"),e}function XF(t){class e extends t{}return ft({attribute:"placeholder"})(e.prototype,"placeholder"),e}const JF=Mt`
11685
11687
  ${zs("flex")}
11686
11688
 
11687
11689
  :host {
@@ -11710,7 +11712,7 @@ function ZF(t){class e extends t{fractionalWidthChanged(){this.columnInternals.f
11710
11712
  font: ${Tc};
11711
11713
  color: ${Oc};
11712
11714
  }
11713
- `,JF=Q`
11715
+ `,QF=Q`
11714
11716
  <template
11715
11717
  @click="${(t,e)=>("string"==typeof t.cellRecord?.href&&e.event.stopPropagation(),!0)}"
11716
11718
  class="${t=>t.isPlaceholder?"placeholder":""}"
@@ -11744,19 +11746,19 @@ function ZF(t){class e extends t{fractionalWidthChanged(){this.columnInternals.f
11744
11746
  </span>`)}
11745
11747
  </template>
11746
11748
  `
11747
- class QF extends FR{constructor(){super(...arguments),this.hasOverflow=!1,this.isPlaceholder=!1}get text(){const t=this.cellRecord?.label??this.cellRecord?.href
11748
- return null==t&&this.columnConfig?.placeholder?(this.isPlaceholder=!0,this.columnConfig.placeholder):(this.isPlaceholder=!1,"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:"")}get showAnchor(){return"string"==typeof this.cellRecord?.href}get tabbableChildren(){return this.showAnchor?[this.anchor]:[]}}t([C],QF.prototype,"hasOverflow",void 0),t([C],QF.prototype,"isPlaceholder",void 0),t([k],QF.prototype,"text",null),t([k],QF.prototype,"showAnchor",null)
11749
- const tN=QF.compose({baseName:"table-column-anchor-cell-view",template:JF,styles:XF})
11750
- _i.getOrCreate().withPrefix("nimble").register(tN())
11751
- class eN extends OR{constructor(){super(...arguments),this.hasOverflow=!1,this.text=Pv.getValueFor(this),this.noValuePlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}},this.emptyPlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}}}connectedCallback(){super.connectedCallback(),Pv.subscribe(this.noValuePlaceholderLabelSubscriber,this),zv.subscribe(this.emptyPlaceholderLabelSubscriber,this),this.applyPlaceholderTextIfNeeded()}disconnectedCallback(){super.disconnectedCallback(),Pv.unsubscribe(this.noValuePlaceholderLabelSubscriber),zv.unsubscribe(this.emptyPlaceholderLabelSubscriber)}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}groupHeaderValueChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){return null===this.groupHeaderValue||void 0===this.groupHeaderValue?(this.text=Pv.getValueFor(this),!0):""===this.groupHeaderValue&&(this.text=zv.getValueFor(this),!0)}}t([C],eN.prototype,"hasOverflow",void 0),t([C],eN.prototype,"text",void 0)
11752
- const nN=Q`
11749
+ class tN extends FR{constructor(){super(...arguments),this.hasOverflow=!1,this.isPlaceholder=!1}get text(){const t=this.cellRecord?.label??this.cellRecord?.href
11750
+ return null==t&&this.columnConfig?.placeholder?(this.isPlaceholder=!0,this.columnConfig.placeholder):(this.isPlaceholder=!1,"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:"")}get showAnchor(){return"string"==typeof this.cellRecord?.href}get tabbableChildren(){return this.showAnchor?[this.anchor]:[]}}t([C],tN.prototype,"hasOverflow",void 0),t([C],tN.prototype,"isPlaceholder",void 0),t([k],tN.prototype,"text",null),t([k],tN.prototype,"showAnchor",null)
11751
+ const eN=tN.compose({baseName:"table-column-anchor-cell-view",template:QF,styles:JF})
11752
+ _i.getOrCreate().withPrefix("nimble").register(eN())
11753
+ class nN extends OR{constructor(){super(...arguments),this.hasOverflow=!1,this.text=Pv.getValueFor(this),this.noValuePlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}},this.emptyPlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}}}connectedCallback(){super.connectedCallback(),Pv.subscribe(this.noValuePlaceholderLabelSubscriber,this),zv.subscribe(this.emptyPlaceholderLabelSubscriber,this),this.applyPlaceholderTextIfNeeded()}disconnectedCallback(){super.disconnectedCallback(),Pv.unsubscribe(this.noValuePlaceholderLabelSubscriber),zv.unsubscribe(this.emptyPlaceholderLabelSubscriber)}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}groupHeaderValueChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){return null===this.groupHeaderValue||void 0===this.groupHeaderValue?(this.text=Pv.getValueFor(this),!0):""===this.groupHeaderValue&&(this.text=zv.getValueFor(this),!0)}}t([C],nN.prototype,"hasOverflow",void 0),t([C],nN.prototype,"text",void 0)
11754
+ const iN=Q`
11753
11755
  <span
11754
11756
  ${Dg("hasOverflow")}
11755
11757
  title="${t=>t.hasOverflow&&t.text?t.text:null}"
11756
11758
  >
11757
11759
  ${t=>t.text}
11758
11760
  </span>
11759
- `,iN=Mt`
11761
+ `,sN=Mt`
11760
11762
  ${zs("flex")}
11761
11763
 
11762
11764
  span {
@@ -11767,19 +11769,19 @@ const nN=Q`
11767
11769
  text-overflow: ellipsis;
11768
11770
  }
11769
11771
  `
11770
- const sN=class extends eN{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:nN,styles:iN})
11771
- _i.getOrCreate().withPrefix("nimble").register(sN())
11772
- const oN="nimble-table-column-text-group-header-view"
11773
- function rN(t){class e extends t{constructor(){super(...arguments),this.sortingDisabled=!1,this.sortDirection=fR.none}sortingDisabledChanged(){this.columnInternals.sortingDisabled=this.sortingDisabled,this.sortingDisabled?(this.columnInternals.currentSortDirection=fR.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 ft({attribute:"sorting-disabled",mode:"boolean"})(e.prototype,"sortingDisabled"),ft({attribute:"sort-index",converter:ut})(e.prototype,"sortIndex"),ft({attribute:"sort-direction"})(e.prototype,"sortDirection"),e}function aN(t){class e extends t{constructor(){super(...arguments),this.customSortOrderColumnChangeHandler={handleChange:this.handleCustomSortOrderColumnChange.bind(this)}}getResolvedOperandDataRecordFieldName(t){return"string"==typeof this.sortByFieldName?this.sortByFieldName:t}getResolvedSortOperation(t){return"string"==typeof this.sortByFieldName?ER:t}sortByFieldNameChanged(){this.handleSortConfigurationChange(),this.updateCustomColumnSortingValidity(),"string"!=typeof this.sortByFieldName||this.customSortOrderColumnNotifier?(this.customSortOrderColumnNotifier?.unsubscribe(this.customSortOrderColumnChangeHandler),this.customSortOrderColumnNotifier=void 0):(this.customSortOrderColumnNotifier=x.getNotifier(this.columnInternals),this.customSortOrderColumnNotifier.subscribe(this.customSortOrderColumnChangeHandler))}handleCustomSortOrderColumnChange(t,e){"groupingDisabled"===e&&this.updateCustomColumnSortingValidity()}updateCustomColumnSortingValidity(){const t="string"==typeof this.sortByFieldName
11774
- !!this.columnInternals.groupingDisabled||!t?this.columnInternals.validator.untrack("invalidCustomSortWithGrouping"):this.columnInternals.validator.track("invalidCustomSortWithGrouping")}}return ft({attribute:"sort-by-field-name"})(e.prototype,"sortByFieldName"),e}const lN=["invalidCustomSortWithGrouping"]
11775
- class cN extends HF{constructor(){super(lN)}}class dN extends(KF(ZF(YF(rN(aN(VR)))))){constructor(){super(...arguments),this.underlineHidden=!1,this.defaultSortOperation=DR}placeholderChanged(){this.updateColumnConfig()}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:oN,delegatedEvents:["click"],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new cN}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.updateColumnInternalsSortConfiguration()}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}}updateColumnInternalsSortConfiguration(){this.columnInternals.operandDataRecordFieldName=this.getResolvedOperandDataRecordFieldName(this.labelFieldName),this.columnInternals.sortOperation=this.getResolvedSortOperation(this.defaultSortOperation)}}t([ft({attribute:"label-field-name"})],dN.prototype,"labelFieldName",void 0),t([ft({attribute:"href-field-name"})],dN.prototype,"hrefFieldName",void 0),t([ft],dN.prototype,"appearance",void 0),t([ft({attribute:"underline-hidden",mode:"boolean"})],dN.prototype,"underlineHidden",void 0),t([ft],dN.prototype,"hreflang",void 0),t([ft],dN.prototype,"ping",void 0),t([ft],dN.prototype,"referrerpolicy",void 0),t([ft],dN.prototype,"rel",void 0),t([ft],dN.prototype,"target",void 0),t([ft],dN.prototype,"type",void 0),t([ft],dN.prototype,"download",void 0)
11776
- const hN=dN.compose({baseName:"table-column-anchor",template:GF,styles:WF})
11777
- _i.getOrCreate().withPrefix("nimble").register(hN())
11778
- class uN extends VR{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function pN(t){return KF(ZF(YF(rN(t))))}function fN(t,e){if("number"!=typeof e)return""
11779
- try{return t.format(e)}catch(t){return""}}t([ft({attribute:"field-name"})],uN.prototype,"fieldName",void 0)
11780
- const mN=class extends eN{updateText(){this.columnConfig?this.text=fN(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:nN,styles:iN})
11781
- _i.getOrCreate().withPrefix("nimble").register(mN())
11782
- const gN=Q`
11772
+ const oN=class extends nN{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:iN,styles:sN})
11773
+ _i.getOrCreate().withPrefix("nimble").register(oN())
11774
+ const rN="nimble-table-column-text-group-header-view"
11775
+ function aN(t){class e extends t{constructor(){super(...arguments),this.sortingDisabled=!1,this.sortDirection=fR.none}sortingDisabledChanged(){this.columnInternals.sortingDisabled=this.sortingDisabled,this.sortingDisabled?(this.columnInternals.currentSortDirection=fR.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 ft({attribute:"sorting-disabled",mode:"boolean"})(e.prototype,"sortingDisabled"),ft({attribute:"sort-index",converter:ut})(e.prototype,"sortIndex"),ft({attribute:"sort-direction"})(e.prototype,"sortDirection"),e}function lN(t){class e extends t{constructor(){super(...arguments),this.customSortOrderColumnChangeHandler={handleChange:this.handleCustomSortOrderColumnChange.bind(this)}}getResolvedOperandDataRecordFieldName(t){return"string"==typeof this.sortByFieldName?this.sortByFieldName:t}getResolvedSortOperation(t){return"string"==typeof this.sortByFieldName?ER:t}sortByFieldNameChanged(){this.handleSortConfigurationChange(),this.updateCustomColumnSortingValidity(),"string"!=typeof this.sortByFieldName||this.customSortOrderColumnNotifier?(this.customSortOrderColumnNotifier?.unsubscribe(this.customSortOrderColumnChangeHandler),this.customSortOrderColumnNotifier=void 0):(this.customSortOrderColumnNotifier=x.getNotifier(this.columnInternals),this.customSortOrderColumnNotifier.subscribe(this.customSortOrderColumnChangeHandler))}handleCustomSortOrderColumnChange(t,e){"groupingDisabled"===e&&this.updateCustomColumnSortingValidity()}updateCustomColumnSortingValidity(){const t="string"==typeof this.sortByFieldName
11776
+ !!this.columnInternals.groupingDisabled||!t?this.columnInternals.validator.untrack("invalidCustomSortWithGrouping"):this.columnInternals.validator.track("invalidCustomSortWithGrouping")}}return ft({attribute:"sort-by-field-name"})(e.prototype,"sortByFieldName"),e}const cN=["invalidCustomSortWithGrouping"]
11777
+ class dN extends UF{constructor(){super(cN)}}class hN extends(YF(KF(XF(aN(lN(VR)))))){constructor(){super(...arguments),this.underlineHidden=!1,this.defaultSortOperation=DR}placeholderChanged(){this.updateColumnConfig()}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:rN,delegatedEvents:["click"],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new dN}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.updateColumnInternalsSortConfiguration()}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}}updateColumnInternalsSortConfiguration(){this.columnInternals.operandDataRecordFieldName=this.getResolvedOperandDataRecordFieldName(this.labelFieldName),this.columnInternals.sortOperation=this.getResolvedSortOperation(this.defaultSortOperation)}}t([ft({attribute:"label-field-name"})],hN.prototype,"labelFieldName",void 0),t([ft({attribute:"href-field-name"})],hN.prototype,"hrefFieldName",void 0),t([ft],hN.prototype,"appearance",void 0),t([ft({attribute:"underline-hidden",mode:"boolean"})],hN.prototype,"underlineHidden",void 0),t([ft],hN.prototype,"hreflang",void 0),t([ft],hN.prototype,"ping",void 0),t([ft],hN.prototype,"referrerpolicy",void 0),t([ft],hN.prototype,"rel",void 0),t([ft],hN.prototype,"target",void 0),t([ft],hN.prototype,"type",void 0),t([ft],hN.prototype,"download",void 0)
11778
+ const uN=hN.compose({baseName:"table-column-anchor",template:ZF,styles:GF})
11779
+ _i.getOrCreate().withPrefix("nimble").register(uN())
11780
+ class pN extends VR{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function fN(t){return YF(KF(XF(aN(t))))}function mN(t,e){if("number"!=typeof e)return""
11781
+ try{return t.format(e)}catch(t){return""}}t([ft({attribute:"field-name"})],pN.prototype,"fieldName",void 0)
11782
+ const gN=class extends nN{updateText(){this.columnConfig?this.text=mN(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:iN,styles:sN})
11783
+ _i.getOrCreate().withPrefix("nimble").register(gN())
11784
+ const vN=Q`
11783
11785
  <template
11784
11786
  class="
11785
11787
  ${t=>t.alignment===wR?"right-align":""}
@@ -11793,7 +11795,7 @@ const gN=Q`
11793
11795
  ${t=>t.text}
11794
11796
  </span>
11795
11797
  </template>
11796
- `,vN=Mt`
11798
+ `,bN=Mt`
11797
11799
  ${zs("flex")}
11798
11800
 
11799
11801
  :host {
@@ -11817,22 +11819,22 @@ const gN=Q`
11817
11819
  color: ${Oc};
11818
11820
  }
11819
11821
  `
11820
- class bN extends FR{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=yR,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
11821
- return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([C],bN.prototype,"hasOverflow",void 0),t([C],bN.prototype,"text",void 0),t([C],bN.prototype,"alignment",void 0),t([C],bN.prototype,"isPlaceholder",void 0)
11822
- const yN=class extends bN{updateText(){this.columnConfig?this.text=fN(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:gN,styles:vN})
11823
- _i.getOrCreate().withPrefix("nimble").register(yN())
11824
- const wN=void 0,xN=["invalidCustomOptionsCombination"]
11825
- class CN extends HF{constructor(){super(xN)}setCustomOptionsValidity(t){this.setConditionValue("invalidCustomOptionsCombination",!t)}}const kN={toView:t=>"boolean"==typeof t?t.toString():null,fromView:t=>"true"===t||!0===t||"false"!==t&&!1!==t&&void 0}
11826
- class SN extends(pN(uN)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Wa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Wa.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:ER,validator:new CN}}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 t=this.createFormatter()
11822
+ class yN extends FR{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=yR,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
11823
+ return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([C],yN.prototype,"hasOverflow",void 0),t([C],yN.prototype,"text",void 0),t([C],yN.prototype,"alignment",void 0),t([C],yN.prototype,"isPlaceholder",void 0)
11824
+ const wN=class extends yN{updateText(){this.columnConfig?this.text=mN(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:vN,styles:bN})
11825
+ _i.getOrCreate().withPrefix("nimble").register(wN())
11826
+ const xN=void 0,CN=["invalidCustomOptionsCombination"]
11827
+ class kN extends UF{constructor(){super(CN)}setCustomOptionsValidity(t){this.setConditionValue("invalidCustomOptionsCombination",!t)}}const SN={toView:t=>"boolean"==typeof t?t.toString():null,fromView:t=>"true"===t||!0===t||"false"!==t&&!1!==t&&void 0}
11828
+ class _N extends(fN(pN)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Wa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Wa.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:ER,validator:new kN}}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 t=this.createFormatter()
11827
11829
  if(t){const e={formatter:t,placeholder:this.placeholder}
11828
11830
  this.columnInternals.columnConfig=e,this.columnInternals.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.columnInternals.validator.setCustomOptionsValidity(!1)}createFormatter(){let t
11829
- t=this.format===wN?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
11830
- try{return new Intl.DateTimeFormat(Wa.getValueFor(this),t)}catch(t){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}}}t([ft],SN.prototype,"format",void 0),t([ft({attribute:"custom-locale-matcher"})],SN.prototype,"customLocaleMatcher",void 0),t([ft({attribute:"custom-weekday"})],SN.prototype,"customWeekday",void 0),t([ft({attribute:"custom-era"})],SN.prototype,"customEra",void 0),t([ft({attribute:"custom-year"})],SN.prototype,"customYear",void 0),t([ft({attribute:"custom-month"})],SN.prototype,"customMonth",void 0),t([ft({attribute:"custom-day"})],SN.prototype,"customDay",void 0),t([ft({attribute:"custom-hour"})],SN.prototype,"customHour",void 0),t([ft({attribute:"custom-minute"})],SN.prototype,"customMinute",void 0),t([ft({attribute:"custom-second"})],SN.prototype,"customSecond",void 0),t([ft({attribute:"custom-time-zone-name"})],SN.prototype,"customTimeZoneName",void 0),t([ft({attribute:"custom-format-matcher"})],SN.prototype,"customFormatMatcher",void 0),t([ft({attribute:"custom-hour12",converter:kN})],SN.prototype,"customHour12",void 0),t([ft({attribute:"custom-time-zone"})],SN.prototype,"customTimeZone",void 0),t([ft({attribute:"custom-calendar"})],SN.prototype,"customCalendar",void 0),t([ft({attribute:"custom-day-period"})],SN.prototype,"customDayPeriod",void 0),t([ft({attribute:"custom-numbering-system"})],SN.prototype,"customNumberingSystem",void 0),t([ft({attribute:"custom-date-style"})],SN.prototype,"customDateStyle",void 0),t([ft({attribute:"custom-time-style"})],SN.prototype,"customTimeStyle",void 0),t([ft({attribute:"custom-hour-cycle"})],SN.prototype,"customHourCycle",void 0)
11831
- const _N=SN.compose({baseName:"table-column-date-text",template:GF,styles:WF})
11832
- _i.getOrCreate().withPrefix("nimble").register(_N())
11833
- const IN=class extends bN{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:gN,styles:vN})
11831
+ t=this.format===xN?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
11832
+ try{return new Intl.DateTimeFormat(Wa.getValueFor(this),t)}catch(t){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}}}t([ft],_N.prototype,"format",void 0),t([ft({attribute:"custom-locale-matcher"})],_N.prototype,"customLocaleMatcher",void 0),t([ft({attribute:"custom-weekday"})],_N.prototype,"customWeekday",void 0),t([ft({attribute:"custom-era"})],_N.prototype,"customEra",void 0),t([ft({attribute:"custom-year"})],_N.prototype,"customYear",void 0),t([ft({attribute:"custom-month"})],_N.prototype,"customMonth",void 0),t([ft({attribute:"custom-day"})],_N.prototype,"customDay",void 0),t([ft({attribute:"custom-hour"})],_N.prototype,"customHour",void 0),t([ft({attribute:"custom-minute"})],_N.prototype,"customMinute",void 0),t([ft({attribute:"custom-second"})],_N.prototype,"customSecond",void 0),t([ft({attribute:"custom-time-zone-name"})],_N.prototype,"customTimeZoneName",void 0),t([ft({attribute:"custom-format-matcher"})],_N.prototype,"customFormatMatcher",void 0),t([ft({attribute:"custom-hour12",converter:SN})],_N.prototype,"customHour12",void 0),t([ft({attribute:"custom-time-zone"})],_N.prototype,"customTimeZone",void 0),t([ft({attribute:"custom-calendar"})],_N.prototype,"customCalendar",void 0),t([ft({attribute:"custom-day-period"})],_N.prototype,"customDayPeriod",void 0),t([ft({attribute:"custom-numbering-system"})],_N.prototype,"customNumberingSystem",void 0),t([ft({attribute:"custom-date-style"})],_N.prototype,"customDateStyle",void 0),t([ft({attribute:"custom-time-style"})],_N.prototype,"customTimeStyle",void 0),t([ft({attribute:"custom-hour-cycle"})],_N.prototype,"customHourCycle",void 0)
11833
+ const IN=_N.compose({baseName:"table-column-date-text",template:ZF,styles:GF})
11834
11834
  _i.getOrCreate().withPrefix("nimble").register(IN())
11835
- class MN{constructor(t){this.lang=t,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(t){if("number"!=typeof t||t<0||!Number.isFinite(t))return""
11835
+ const MN=class extends yN{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:vN,styles:bN})
11836
+ _i.getOrCreate().withPrefix("nimble").register(MN())
11837
+ class $N{constructor(t){this.lang=t,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(t){if("number"!=typeof t||t<0||!Number.isFinite(t))return""
11836
11838
  const e=[],n=1e3,i=6e4,s=36e5,o=864e5,r=t/o
11837
11839
  let a=t
11838
11840
  const l=Math.floor(r)
@@ -11845,37 +11847,37 @@ if(a-=d*i,d){const t=this.minutesFormatter.format(d)
11845
11847
  e.push(t)}const h=a/n,u=0===h?0:h%60
11846
11848
  if(t<1&&0!==h)return this.scientificSecondsFormatter.format(h)
11847
11849
  if(u>=5e-4||0===u&&0===e.length){const t=this.secondsFormatter.format(u)
11848
- e.push(t)}return e.join(", ")}}const $N=class extends eN{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:nN,styles:iN})
11849
- _i.getOrCreate().withPrefix("nimble").register($N())
11850
- class EN extends(pN(uN)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Wa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Wa.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:ER,validator:new HF([])}}updateColumnConfig(){const t={formatter:new MN(Wa.getValueFor(this)),placeholder:this.placeholder}
11851
- this.columnInternals.columnConfig=t}}const DN=EN.compose({baseName:"table-column-duration-text",template:GF,styles:WF})
11852
- _i.getOrCreate().withPrefix("nimble").register(DN())
11853
- const AN=(t,e)=>{if("number"===e){const e=ut.fromView(t)
11850
+ e.push(t)}return e.join(", ")}}const EN=class extends nN{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:iN,styles:sN})
11851
+ _i.getOrCreate().withPrefix("nimble").register(EN())
11852
+ class DN extends(fN(pN)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Wa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Wa.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:ER,validator:new UF([])}}updateColumnConfig(){const t={formatter:new $N(Wa.getValueFor(this)),placeholder:this.placeholder}
11853
+ this.columnInternals.columnConfig=t}}const AN=DN.compose({baseName:"table-column-duration-text",template:ZF,styles:GF})
11854
+ _i.getOrCreate().withPrefix("nimble").register(AN())
11855
+ const TN=(t,e)=>{if("number"===e){const e=ut.fromView(t)
11854
11856
  return null===e?void 0:e}return"boolean"===e?!1!==t&&"false"!==t&&(!0===t||"true"===t||void 0):t?.toString()??void 0}
11855
- class TN extends VR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof Jv&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
11856
- return this.mappings.forEach((e=>{const n=AN(e.key,this.keyType)
11857
+ class ON extends VR{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof Jv&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.checkValidity()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
11858
+ return this.mappings.forEach((e=>{const n=TN(e.key,this.keyType)
11857
11859
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
11858
11860
  const i=this.createMappingConfig(e)
11859
11861
  t.set(n,i)})),t}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((t=>{t.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
11860
11862
  for(const t of this.mappings){const e=x.getNotifier(t)
11861
- e.subscribe(this),this.mappingNotifiers.push(e)}}}t([C],TN.prototype,"mappings",void 0),t([ft({attribute:"field-name"})],TN.prototype,"fieldName",void 0),t([ft({attribute:"key-type"})],TN.prototype,"keyType",void 0)
11862
- const ON=Mt`
11863
- ${WF}
11863
+ e.subscribe(this),this.mappingNotifiers.push(e)}}}t([C],ON.prototype,"mappings",void 0),t([ft({attribute:"field-name"})],ON.prototype,"fieldName",void 0),t([ft({attribute:"key-type"})],ON.prototype,"keyType",void 0)
11864
+ const RN=Mt`
11865
+ ${GF}
11864
11866
 
11865
11867
  slot[name='mapping'] {
11866
11868
  display: none;
11867
11869
  }
11868
- `,RN=Q`${GF}<slot ${ie("mappings")} name="mapping"></slot>`
11869
- class FN extends HF{constructor(t){super(t)}validate(t,e){this.untrackAll()
11870
+ `,FN=Q`${ZF}<slot ${ie("mappings")} name="mapping"></slot>`
11871
+ class NN extends UF{constructor(t){super(t)}validate(t,e){this.untrackAll()
11870
11872
  const n=t.map((t=>t.key))
11871
- this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===AN(t,e)))
11872
- this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>AN(t,e))),i=new Set(n).size!==n.length
11873
+ this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===TN(t,e)))
11874
+ this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>TN(t,e))),i=new Set(n).size!==n.length
11873
11875
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(t){const e=t.some((t=>void 0===t.key))
11874
- this.setConditionValue("missingKeyValue",e)}}const NN=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
11875
- class LN extends FN{constructor(){super(NN)}static isIconMappingElement(t){return t instanceof sb}static isSupportedMappingElement(t){return t instanceof sb||t instanceof rb||t instanceof lb||t instanceof eb}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(LN.isIconMappingElement).some((t=>void 0===t.resolvedIcon))
11876
- this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(LN.isSupportedMappingElement).some((t=>void 0===t.text))
11877
- this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(LN.isSupportedMappingElement)
11878
- this.setConditionValue("unsupportedMappingType",!e)}}const BN=Mt`
11876
+ this.setConditionValue("missingKeyValue",e)}}const LN=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
11877
+ class BN extends NN{constructor(){super(LN)}static isIconMappingElement(t){return t instanceof sb}static isSupportedMappingElement(t){return t instanceof sb||t instanceof rb||t instanceof lb||t instanceof eb}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(BN.isIconMappingElement).some((t=>void 0===t.resolvedIcon))
11878
+ this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(BN.isSupportedMappingElement).some((t=>void 0===t.text))
11879
+ this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(BN.isSupportedMappingElement)
11880
+ this.setConditionValue("unsupportedMappingType",!e)}}const PN=Mt`
11879
11881
  ${zs("inline-flex")}
11880
11882
 
11881
11883
  :host {
@@ -11897,7 +11899,7 @@ this.setConditionValue("unsupportedMappingType",!e)}}const BN=Mt`
11897
11899
  overflow: hidden;
11898
11900
  text-overflow: ellipsis;
11899
11901
  }
11900
- `,PN=Q`
11902
+ `,zN=Q`
11901
11903
  ${Gt((t=>t.visualizationTemplate),Q`
11902
11904
  <span class="reserve-icon-size">
11903
11905
  ${t=>t.visualizationTemplate}
@@ -11908,8 +11910,8 @@ this.setConditionValue("unsupportedMappingType",!e)}}const BN=Mt`
11908
11910
  title="${t=>t.hasOverflow&&t.text?t.text:null}"
11909
11911
  class="text"
11910
11912
  >${t=>t.text}</span>
11911
- `,zN={default:void 0,error:"error",warning:"warning",success:"success",information:"information"}
11912
- class VN{constructor(t){this.text=t}}class HN extends VN{constructor(t,e,n,i){var s
11913
+ `,VN={default:void 0,error:"error",warning:"warning",success:"success",information:"information"}
11914
+ class HN{constructor(t){this.text=t}}class UN extends HN{constructor(t,e,n,i){var s
11913
11915
  super(n),this.severity=e,this.textHidden=i,this.iconTemplate=Q`
11914
11916
  <${s=t}
11915
11917
  title="${t=>t.textHidden?t.text:""}"
@@ -11919,7 +11921,7 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=Q`
11919
11921
  severity="${t=>t.severity}"
11920
11922
  >
11921
11923
  </${s}>
11922
- `}}const UN=Q`
11924
+ `}}const qN=Q`
11923
11925
  <${KT}
11924
11926
  title="${t=>t.textHidden?t.text:""}"
11925
11927
  aria-label="${t=>t.text}"
@@ -11927,12 +11929,12 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=Q`
11927
11929
  >
11928
11930
  </${KT}>
11929
11931
  `
11930
- class qN extends VN{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=UN}}class jN extends VN{}class WN extends VN{}class GN extends OR{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
11932
+ class jN extends HN{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=qN}}class WN extends HN{}class GN extends HN{}class ZN extends OR{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
11931
11933
  const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
11932
- e instanceof HN?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof qN?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):(e instanceof jN||e instanceof WN)&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=zN.default}}t([C],GN.prototype,"hasOverflow",void 0),t([C],GN.prototype,"text",void 0),t([C],GN.prototype,"severity",void 0),t([C],GN.prototype,"visualizationTemplate",void 0)
11933
- const ZN=GN.compose({baseName:"table-column-mapping-group-header-view",template:PN,styles:BN})
11934
- _i.getOrCreate().withPrefix("nimble").register(ZN())
11935
- const KN=Mt`
11934
+ e instanceof UN?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof jN?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):(e instanceof WN||e instanceof GN)&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=VN.default}}t([C],ZN.prototype,"hasOverflow",void 0),t([C],ZN.prototype,"text",void 0),t([C],ZN.prototype,"severity",void 0),t([C],ZN.prototype,"visualizationTemplate",void 0)
11935
+ const KN=ZN.compose({baseName:"table-column-mapping-group-header-view",template:zN,styles:PN})
11936
+ _i.getOrCreate().withPrefix("nimble").register(KN())
11937
+ const YN=Mt`
11936
11938
  ${zs("inline-flex")}
11937
11939
 
11938
11940
  :host {
@@ -11954,7 +11956,7 @@ const KN=Mt`
11954
11956
  overflow: hidden;
11955
11957
  text-overflow: ellipsis;
11956
11958
  }
11957
- `,YN=Q`
11959
+ `,XN=Q`
11958
11960
  ${Gt((t=>t.visualizationTemplate),Q`
11959
11961
  <span class="reserve-icon-size">
11960
11962
  ${t=>t.visualizationTemplate}
@@ -11970,26 +11972,26 @@ const KN=Mt`
11970
11972
  </span>
11971
11973
  `)}
11972
11974
  `
11973
- class XN extends FR{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
11975
+ class JN extends FR{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
11974
11976
  const t=this.cellRecord.value
11975
11977
  if(null==t)return
11976
11978
  const e=this.columnConfig.mappingConfigs.get(t)
11977
- e instanceof HN?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof qN?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof jN?(this.text=e.text,this.textHidden=!1):e instanceof WN&&(this.text=e.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=zN.default}}t([C],XN.prototype,"severity",void 0),t([C],XN.prototype,"text",void 0),t([C],XN.prototype,"visualizationTemplate",void 0),t([C],XN.prototype,"textHidden",void 0),t([C],XN.prototype,"hasOverflow",void 0)
11978
- const JN=XN.compose({baseName:"table-column-mapping-cell-view",template:YN,styles:KN})
11979
- _i.getOrCreate().withPrefix("nimble").register(JN())
11980
- const QN="icon-size"
11981
- class tL extends(KF(ZF(rN(TN)))){minPixelWidthChanged(){this.widthMode!==QN&&(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:ER,validator:new LN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof sb){if(!t.resolvedIcon)throw Error("Unresolved icon")
11982
- return new HN(t.resolvedIcon,t.severity,t.text,t.textHidden)}if(t instanceof rb)return new qN(t.text,t.textHidden)
11983
- if(t instanceof lb)return new jN(t.text)
11984
- if(t instanceof eb)return new WN(t.text)
11985
- throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===QN?(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:AR}}t([ft({attribute:"width-mode"})],tL.prototype,"widthMode",void 0)
11986
- const eL=tL.compose({baseName:"table-column-mapping",template:RN,styles:ON})
11987
- _i.getOrCreate().withPrefix("nimble").register(eL())
11988
- const nL=Q`
11979
+ e instanceof UN?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof jN?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof WN?(this.text=e.text,this.textHidden=!1):e instanceof GN&&(this.text=e.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=VN.default}}t([C],JN.prototype,"severity",void 0),t([C],JN.prototype,"text",void 0),t([C],JN.prototype,"visualizationTemplate",void 0),t([C],JN.prototype,"textHidden",void 0),t([C],JN.prototype,"hasOverflow",void 0)
11980
+ const QN=JN.compose({baseName:"table-column-mapping-cell-view",template:XN,styles:YN})
11981
+ _i.getOrCreate().withPrefix("nimble").register(QN())
11982
+ const tL="icon-size"
11983
+ class eL extends(YF(KF(aN(ON)))){minPixelWidthChanged(){this.widthMode!==tL&&(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:ER,validator:new BN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof sb){if(!t.resolvedIcon)throw Error("Unresolved icon")
11984
+ return new UN(t.resolvedIcon,t.severity,t.text,t.textHidden)}if(t instanceof rb)return new jN(t.text,t.textHidden)
11985
+ if(t instanceof lb)return new WN(t.text)
11986
+ if(t instanceof eb)return new GN(t.text)
11987
+ throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===tL?(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:AR}}t([ft({attribute:"width-mode"})],eL.prototype,"widthMode",void 0)
11988
+ const nL=eL.compose({baseName:"table-column-mapping",template:FN,styles:RN})
11989
+ _i.getOrCreate().withPrefix("nimble").register(nL())
11990
+ const iL=Q`
11989
11991
  <template @delegated-event="${(t,e)=>t.onDelegatedEvent(e.event)}"
11990
- >${GF}</template
11992
+ >${ZF}</template
11991
11993
  >
11992
- `,iL="menu-button-menu",sL=Q`
11994
+ `,sL="menu-button-menu",oL=Q`
11993
11995
  ${Gt((t=>t.showMenuButton),Q`
11994
11996
  <${vb}
11995
11997
  ${Ut("menuButton")}
@@ -12003,10 +12005,10 @@ const nL=Q`
12003
12005
  <span ${Ut("valueSpan")} class="value-label">${t=>t.cellRecord.value}</span>
12004
12006
  <${wg} slot="end"></${wg}>
12005
12007
 
12006
- <slot name="${iL}" slot="menu"></slot>
12008
+ <slot name="${sL}" slot="menu"></slot>
12007
12009
  </${vb}>
12008
12010
  `)}
12009
- `,oL=Mt`
12011
+ `,rL=Mt`
12010
12012
  :host {
12011
12013
  align-self: center;
12012
12014
  width: 100%;
@@ -12024,18 +12026,18 @@ const nL=Q`
12024
12026
  white-space: nowrap;
12025
12027
  }
12026
12028
  `
12027
- class rL extends FR{constructor(){super(...arguments),this.hasOverflow=!1}get showMenuButton(){return!!this.cellRecord?.value}get tabbableChildren(){return this.showMenuButton?[this.menuButton]:[]}onMenuButtonBeforeToggle(t){const e=this.columnConfig?.menuSlot
12028
- if(e&&t.detail.newState){const t={slots:[{name:e,slot:iL}]}
12029
- this.$emit("cell-view-slots-request",t)}return!0}onMenuButtonMouseOver(){this.valueSpan&&(this.hasOverflow=this.valueSpan.offsetWidth<this.valueSpan.scrollWidth)}onMenuButtonMouseOut(){this.hasOverflow=!1}onMenuButtonClick(t){t.stopPropagation()}}t([C],rL.prototype,"hasOverflow",void 0),t([k],rL.prototype,"showMenuButton",null)
12030
- const aL=rL.compose({baseName:"table-column-menu-button-cell-view",template:sL,styles:oL})
12031
- _i.getOrCreate().withPrefix("nimble").register(aL())
12032
- class lL extends(ZF(VR)){onDelegatedEvent(t){t.stopImmediatePropagation()
12029
+ class aL extends FR{constructor(){super(...arguments),this.hasOverflow=!1}get showMenuButton(){return!!this.cellRecord?.value}get tabbableChildren(){return this.showMenuButton?[this.menuButton]:[]}onMenuButtonBeforeToggle(t){const e=this.columnConfig?.menuSlot
12030
+ if(e&&t.detail.newState){const t={slots:[{name:e,slot:sL}]}
12031
+ this.$emit("cell-view-slots-request",t)}return!0}onMenuButtonMouseOver(){this.valueSpan&&(this.hasOverflow=this.valueSpan.offsetWidth<this.valueSpan.scrollWidth)}onMenuButtonMouseOut(){this.hasOverflow=!1}onMenuButtonClick(t){t.stopPropagation()}}t([C],aL.prototype,"hasOverflow",void 0),t([k],aL.prototype,"showMenuButton",null)
12032
+ const lL=aL.compose({baseName:"table-column-menu-button-cell-view",template:oL,styles:rL})
12033
+ _i.getOrCreate().withPrefix("nimble").register(lL())
12034
+ class cL extends(KF(VR)){onDelegatedEvent(t){t.stopImmediatePropagation()
12033
12035
  const e=t,n=e.detail.originalEvent
12034
12036
  if("beforetoggle"===n.type||"toggle"===n.type){const t=`menu-button-column-${n.type}`,i={...n.detail,recordId:e.detail.recordId}
12035
- this.$emit(t,i)}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-menu-button-cell-view",delegatedEvents:["beforetoggle","toggle"],slotNames:[iL],validator:new HF([])}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}menuSlotChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={menuSlot:this.menuSlot}}}t([ft({attribute:"field-name"})],lL.prototype,"fieldName",void 0),t([ft({attribute:"menu-slot"})],lL.prototype,"menuSlot",void 0)
12036
- const cL=lL.compose({baseName:"table-column-menu-button",template:nL,styles:WF})
12037
- _i.getOrCreate().withPrefix("nimble").register(cL())
12038
- const dL=Q`<span
12037
+ this.$emit(t,i)}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-menu-button-cell-view",delegatedEvents:["beforetoggle","toggle"],slotNames:[sL],validator:new UF([])}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}menuSlotChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={menuSlot:this.menuSlot}}}t([ft({attribute:"field-name"})],cL.prototype,"fieldName",void 0),t([ft({attribute:"menu-slot"})],cL.prototype,"menuSlot",void 0)
12038
+ const dL=cL.compose({baseName:"table-column-menu-button",template:iL,styles:GF})
12039
+ _i.getOrCreate().withPrefix("nimble").register(dL())
12040
+ const hL=Q`<span
12039
12041
  ${Dg("hasOverflow")}
12040
12042
  class="header-content"
12041
12043
  title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
@@ -12043,13 +12045,13 @@ const dL=Q`<span
12043
12045
  <slot ${Ut("contentSlot")}></slot>
12044
12046
  <slot ${ie({property:"unitElements",filter:te()})} name="unit"></slot>
12045
12047
  </span>`
12046
- const hL=class extends eN{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:nN,styles:iN})
12047
- _i.getOrCreate().withPrefix("nimble").register(hL())
12048
- const uL=class extends bN{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??yR}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:gN,styles:vN})
12048
+ const uL=class extends nN{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:iN,styles:sN})
12049
12049
  _i.getOrCreate().withPrefix("nimble").register(uL())
12050
- const pL={default:void 0,decimal:"decimal"},fL="left",mL="right"
12051
- class gL{format(t){if("number"!=typeof t)return""
12052
- try{return this.tryFormat(t)}catch{return""}}}class vL{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class bL extends vL{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new bL(e,t)}format(t){return this.formatter.format(t)}}class yL{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class wL{constructor(t){this.supportedScaledUnits=t
12050
+ const pL=class extends yN{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??yR}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:vN,styles:bN})
12051
+ _i.getOrCreate().withPrefix("nimble").register(pL())
12052
+ const fL={default:void 0,decimal:"decimal"},mL="left",gL="right"
12053
+ class vL{format(t){if("number"!=typeof t)return""
12054
+ try{return this.tryFormat(t)}catch{return""}}}class bL{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class yL extends bL{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new yL(e,t)}format(t){return this.formatter.format(t)}}class wL{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class xL{constructor(t){this.supportedScaledUnits=t
12053
12055
  const e=t.every(((t,e,n)=>0===e||n[e-1].scaleFactor<t.scaleFactor))
12054
12056
  if(!e)throw new Error("Supported scaled units must have unique and ordered scale factors")
12055
12057
  const n=t.find((t=>t.isBase()))
@@ -12058,40 +12060,40 @@ this.supportedScaledUnits=t,this.baseScaledUnit=n}scaleNumber(t){const e=Math.ab
12058
12060
  if(1===this.supportedScaledUnits.length||0===e||e===1/0||Number.isNaN(e))return{scaledValue:t,scaledUnit:this.baseScaledUnit}
12059
12061
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
12060
12062
  if(e/i.scaleFactor>=1)return{scaledValue:t/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
12061
- return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const xL=new class extends wL{constructor(){super([new yL(1,bL.createFactory({}))])}},CL="negative"
12062
- class kL extends gL{constructor(t,{unitScale:e=xL}={unitScale:xL}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:kL.maximumDigits,maximumFractionDigits:kL.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:CL},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:kL.maximumDigits,notation:"scientific",signDisplay:CL}
12063
+ return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const CL=new class extends xL{constructor(){super([new wL(1,yL.createFactory({}))])}},kL="negative"
12064
+ class SL extends vL{constructor(t,{unitScale:e=CL}={unitScale:CL}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:SL.maximumDigits,maximumFractionDigits:SL.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:kL},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:SL.maximumDigits,notation:"scientific",signDisplay:kL}
12063
12065
  for(const n of e.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
12064
12066
  this.exponentialScaledUnitFormatter=e.baseScaledUnit.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=e}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t),i=Math.abs(e)
12065
- return 0!==i&&(i>=kL.exponentialUpperBound||i<kL.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}kL.maximumDigits=6,kL.exponentialLowerBound=995e-6,kL.exponentialUpperBound=999999.5
12066
- class SL extends gL{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=xL}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:xL}){super(),this.scaledUnitFormatters=new Map
12067
+ return 0!==i&&(i>=SL.exponentialUpperBound||i<SL.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}SL.maximumDigits=6,SL.exponentialLowerBound=995e-6,SL.exponentialUpperBound=999999.5
12068
+ class _L extends vL{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=CL}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:CL}){super(),this.scaledUnitFormatters=new Map
12067
12069
  const s={maximumFractionDigits:n,minimumFractionDigits:e,signDisplay:"negative"}
12068
12070
  for(const e of i.supportedScaledUnits)this.scaledUnitFormatters.set(e.scaleFactor,e.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:s}))
12069
12071
  this.unitScale=i,this.minimumFractionDigits=e,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t)
12070
- return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class _L extends gL{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
12072
+ return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class IL extends vL{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
12071
12073
  return this._resolvedOptions.decimalDigits===e.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===e.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===e.numberTextFormat&&this._resolvedOptions.unitScale===e.unitScale}tryFormat(t){return this.resolvedUnitFormat.format(t)}resolveUnitFormat(t,e){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:s,unitScale:o}=e
12072
- return n===pL.default?new kL(t,{unitScale:o}):new SL(t,"number"==typeof s?{minimumFractionDigits:s,maximumFractionDigits:s,unitScale:o}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:o})}resolveOptions(t){if(!t||t.numberTextFormat===pL.default)return{numberTextFormat:pL.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??xL}
12074
+ return n===fL.default?new SL(t,{unitScale:o}):new _L(t,"number"==typeof s?{minimumFractionDigits:s,maximumFractionDigits:s,unitScale:o}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:o})}resolveOptions(t){if(!t||t.numberTextFormat===fL.default)return{numberTextFormat:fL.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??CL}
12073
12075
  const e="number"==typeof t.decimalDigits,n="number"==typeof t.decimalMaximumDigits
12074
12076
  if(e&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
12075
- return e||n?{numberTextFormat:pL.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??xL}:{numberTextFormat:pL.decimal,decimalDigits:_L.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??xL}}}_L.defaultDecimalDigits=2
12076
- const IL=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
12077
- class ML extends HF{constructor(){super(IL)}validateDecimalDigits(t,e){const n=!!(t===pL.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
12078
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===pL.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
12079
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===pL.decimal)&&("number"==typeof e&&"number"==typeof n)
12077
+ return e||n?{numberTextFormat:fL.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??CL}:{numberTextFormat:fL.decimal,decimalDigits:IL.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??CL}}}IL.defaultDecimalDigits=2
12078
+ const ML=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
12079
+ class $L extends UF{constructor(){super(ML)}validateDecimalDigits(t,e){const n=!!(t===fL.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
12080
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===fL.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
12081
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===fL.decimal)&&("number"==typeof e&&"number"==typeof n)
12080
12082
  this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(t){const e=t.length>1
12081
- this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class $L extends We{}t([C],$L.prototype,"resolvedUnitScale",void 0)
12082
- class EL extends(pN(uN)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Wa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Wa.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:ER,validator:new ML}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=x.getNotifier(this.unit)
12083
- t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await LE(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof $L))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.columnInternals.validator
12083
+ this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class EL extends We{}t([C],EL.prototype,"resolvedUnitScale",void 0)
12084
+ class DL extends(fN(pN)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Wa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Wa.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:ER,validator:new $L}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=x.getNotifier(this.unit)
12085
+ t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await LE(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof EL))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.columnInternals.validator
12084
12086
  if(t.validateDecimalDigits(this.format,this.decimalDigits),t.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),t.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),t.validateAtMostOneUnit(this.unitElements??[]),t.isValid()){const t={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
12085
12087
  this.columnInternals.headerAlignment=t.alignment,this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}createFormatter(){const t=this.unit?.resolvedUnitScale
12086
- return new _L(Wa.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===fL?yR:this.alignment===mL?wR:this.format!==pL.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?yR:wR}}t([ft],EL.prototype,"format",void 0),t([ft],EL.prototype,"alignment",void 0),t([ft({attribute:"decimal-digits",converter:ut})],EL.prototype,"decimalDigits",void 0),t([ft({attribute:"decimal-maximum-digits",converter:ut})],EL.prototype,"decimalMaximumDigits",void 0),t([C],EL.prototype,"unitElements",void 0),t([C],EL.prototype,"unit",void 0)
12087
- const DL=EL.compose({baseName:"table-column-number-text",template:dL,styles:WF})
12088
- _i.getOrCreate().withPrefix("nimble").register(DL())
12089
- const AL=class extends bN{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:gN,styles:vN})
12088
+ return new IL(Wa.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===mL?yR:this.alignment===gL?wR:this.format!==fL.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?yR:wR}}t([ft],DL.prototype,"format",void 0),t([ft],DL.prototype,"alignment",void 0),t([ft({attribute:"decimal-digits",converter:ut})],DL.prototype,"decimalDigits",void 0),t([ft({attribute:"decimal-maximum-digits",converter:ut})],DL.prototype,"decimalMaximumDigits",void 0),t([C],DL.prototype,"unitElements",void 0),t([C],DL.prototype,"unit",void 0)
12089
+ const AL=DL.compose({baseName:"table-column-number-text",template:hL,styles:GF})
12090
12090
  _i.getOrCreate().withPrefix("nimble").register(AL())
12091
- const TL=["invalidCustomSortWithGrouping"]
12092
- class OL extends HF{constructor(){super(TL)}}class RL extends(aN(pN(uN))){constructor(){super(...arguments),this.defaultSortOperation=DR}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:oN,delegatedEvents:[],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new OL}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.updateColumnInternalsSortConfiguration()}updateColumnInternalsSortConfiguration(){this.columnInternals.operandDataRecordFieldName=this.getResolvedOperandDataRecordFieldName(this.fieldName),this.columnInternals.sortOperation=this.getResolvedSortOperation(this.defaultSortOperation)}}const FL=RL.compose({baseName:"table-column-text",template:GF,styles:WF})
12093
- _i.getOrCreate().withPrefix("nimble").register(FL())
12094
- const NL=Mt`
12091
+ const TL=class extends yN{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:vN,styles:bN})
12092
+ _i.getOrCreate().withPrefix("nimble").register(TL())
12093
+ const OL=["invalidCustomSortWithGrouping"]
12094
+ class RL extends UF{constructor(){super(OL)}}class FL extends(lN(fN(pN))){constructor(){super(...arguments),this.defaultSortOperation=DR}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:rN,delegatedEvents:[],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new RL}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.updateColumnInternalsSortConfiguration()}updateColumnInternalsSortConfiguration(){this.columnInternals.operandDataRecordFieldName=this.getResolvedOperandDataRecordFieldName(this.fieldName),this.columnInternals.sortOperation=this.getResolvedSortOperation(this.defaultSortOperation)}}const NL=FL.compose({baseName:"table-column-text",template:ZF,styles:GF})
12095
+ _i.getOrCreate().withPrefix("nimble").register(NL())
12096
+ const LL=Mt`
12095
12097
  ${zs("grid")}
12096
12098
 
12097
12099
  :host {
@@ -12118,7 +12120,7 @@ const NL=Mt`
12118
12120
  overflow: auto;
12119
12121
  }
12120
12122
  `
12121
- const LL=class extends us{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:us,template:(t,e)=>Q`
12123
+ const BL=class extends us{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:us,template:(t,e)=>Q`
12122
12124
  <template class="${t=>t.orientation}">
12123
12125
  ${le(0,e)}
12124
12126
  <div class="tablist" part="tablist" role="tablist">
@@ -12137,9 +12139,9 @@ const LL=class extends us{constructor(){super(),this.activeindicator=!1}}.compos
12137
12139
  <slot name="tabpanel" ${ie("tabpanels")}></slot>
12138
12140
  </div>
12139
12141
  </template>
12140
- `,styles:NL})
12141
- _i.getOrCreate().withPrefix("nimble").register(LL())
12142
- const BL=Mt`
12142
+ `,styles:LL})
12143
+ _i.getOrCreate().withPrefix("nimble").register(BL())
12144
+ const PL=Mt`
12143
12145
  ${zs("flex")}
12144
12146
 
12145
12147
  :host {
@@ -12156,15 +12158,15 @@ const BL=Mt`
12156
12158
  rgba(${ol}, 0.3);
12157
12159
  margin: ${kl} ${Sl};
12158
12160
  }
12159
- `,PL=Q`
12161
+ `,zL=Q`
12160
12162
  <template slot="end">
12161
12163
  <div class="separator"></div>
12162
12164
  <slot></slot>
12163
12165
  </template>
12164
12166
  `
12165
- const zL=class extends We{}.compose({baseName:"tabs-toolbar",template:PL,styles:BL})
12166
- _i.getOrCreate().withPrefix("nimble").register(zL())
12167
- const VL="outline",HL="block",UL=Mt`
12167
+ const VL=class extends We{}.compose({baseName:"tabs-toolbar",template:zL,styles:PL})
12168
+ _i.getOrCreate().withPrefix("nimble").register(VL())
12169
+ const HL="outline",UL="block",qL=Mt`
12168
12170
  ${zs("inline-flex")}
12169
12171
  ${Ig}
12170
12172
 
@@ -12303,12 +12305,12 @@ const VL="outline",HL="block",UL=Mt`
12303
12305
  top: ${Sl};
12304
12306
  right: var(--ni-private-scrollbar-width);
12305
12307
  }
12306
- `.withBehaviors(lh(VL,Mt`
12308
+ `.withBehaviors(lh(HL,Mt`
12307
12309
  .control {
12308
12310
  border-color: rgba(${ol}, 0.3);
12309
12311
  background-color: transparent;
12310
12312
  }
12311
- `),lh(HL,Mt`
12313
+ `),lh(UL,Mt`
12312
12314
  .control {
12313
12315
  background-color: rgba(${ol}, 0.1);
12314
12316
  }
@@ -12326,8 +12328,8 @@ const VL="outline",HL="block",UL=Mt`
12326
12328
  border-bottom-color: ${rl};
12327
12329
  }
12328
12330
  `))
12329
- class qL extends gs{constructor(){super(...arguments),this.appearance=VL,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,b.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([ft],qL.prototype,"appearance",void 0),t([ft({attribute:"error-text"})],qL.prototype,"errorText",void 0),t([ft({attribute:"error-visible",mode:"boolean"})],qL.prototype,"errorVisible",void 0),t([C],qL.prototype,"scrollbarWidth",void 0)
12330
- const jL=qL.compose({baseName:"text-area",baseClass:gs,template:()=>Q`
12331
+ class jL extends gs{constructor(){super(...arguments),this.appearance=HL,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,b.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([ft],jL.prototype,"appearance",void 0),t([ft({attribute:"error-text"})],jL.prototype,"errorText",void 0),t([ft({attribute:"error-visible",mode:"boolean"})],jL.prototype,"errorVisible",void 0),t([C],jL.prototype,"scrollbarWidth",void 0)
12332
+ const WL=jL.compose({baseName:"text-area",baseClass:gs,template:()=>Q`
12331
12333
  <label
12332
12334
  part="label"
12333
12335
  for="control"
@@ -12384,9 +12386,9 @@ const jL=qL.compose({baseName:"text-area",baseClass:gs,template:()=>Q`
12384
12386
  ></${$m}>
12385
12387
  ${yg}
12386
12388
  </div>
12387
- `,styles:UL,shadowOptions:{delegatesFocus:!0}})
12388
- _i.getOrCreate().withPrefix("nimble").register(jL())
12389
- const WL="underline",GL="outline",ZL="block",KL="frameless",YL=Mt`
12389
+ `,styles:qL,shadowOptions:{delegatesFocus:!0}})
12390
+ _i.getOrCreate().withPrefix("nimble").register(WL())
12391
+ const GL="underline",ZL="outline",KL="block",YL="frameless",XL=Mt`
12390
12392
  ${zs("inline-block")}
12391
12393
  ${Ig}
12392
12394
 
@@ -12561,12 +12563,12 @@ const WL="underline",GL="outline",ZL="block",KL="frameless",YL=Mt`
12561
12563
  slot[name='actions']::slotted(*) {
12562
12564
  ${xl.cssCustomProperty}: 24px;
12563
12565
  }
12564
- `.withBehaviors(lh(WL,Mt`
12566
+ `.withBehaviors(lh(GL,Mt`
12565
12567
  .root {
12566
12568
  border-bottom-width: ${Ml};
12567
12569
  padding-bottom: 0;
12568
12570
  }
12569
- `),lh(ZL,Mt`
12571
+ `),lh(KL,Mt`
12570
12572
  .root {
12571
12573
  background-color: rgba(${ol}, 0.1);
12572
12574
  }
@@ -12594,12 +12596,12 @@ const WL="underline",GL="outline",ZL="block",KL="frameless",YL=Mt`
12594
12596
  :host([disabled]) .root {
12595
12597
  background-color: rgba(${ol}, 0.07);
12596
12598
  }
12597
- `),lh(GL,Mt`
12599
+ `),lh(ZL,Mt`
12598
12600
  .root {
12599
12601
  border-width: ${Ml};
12600
12602
  padding: 0;
12601
12603
  }
12602
- `),lh(KL,Mt`
12604
+ `),lh(YL,Mt`
12603
12605
  .control {
12604
12606
  padding-left: ${Ml};
12605
12607
  padding-right: ${Ml};
@@ -12617,8 +12619,8 @@ const WL="underline",GL="outline",ZL="block",KL="frameless",YL=Mt`
12617
12619
  filter: invert(100%);
12618
12620
  }
12619
12621
  `))
12620
- class XL extends ji{constructor(){super(...arguments),this.appearance=WL,this.errorVisible=!1,this.fullBleed=!1}}t([ft],XL.prototype,"appearance",void 0),t([ft({attribute:"error-text"})],XL.prototype,"errorText",void 0),t([ft({attribute:"error-visible",mode:"boolean"})],XL.prototype,"errorVisible",void 0),t([ft({attribute:"full-bleed",mode:"boolean"})],XL.prototype,"fullBleed",void 0)
12621
- const JL=XL.compose({baseName:"text-field",baseClass:ji,template:(t,e)=>Q`
12622
+ class JL extends ji{constructor(){super(...arguments),this.appearance=GL,this.errorVisible=!1,this.fullBleed=!1}}t([ft],JL.prototype,"appearance",void 0),t([ft({attribute:"error-text"})],JL.prototype,"errorText",void 0),t([ft({attribute:"error-visible",mode:"boolean"})],JL.prototype,"errorVisible",void 0),t([ft({attribute:"full-bleed",mode:"boolean"})],JL.prototype,"fullBleed",void 0)
12623
+ const QL=JL.compose({baseName:"text-field",baseClass:ji,template:(t,e)=>Q`
12622
12624
  <template
12623
12625
  class="
12624
12626
  ${t=>t.readOnly?"readonly":""}
@@ -12678,7 +12680,7 @@ const JL=XL.compose({baseName:"text-field",baseClass:ji,template:(t,e)=>Q`
12678
12680
  ${ae(0,e)}
12679
12681
  </div>
12680
12682
  </template>
12681
- `,styles:YL,shadowOptions:{delegatesFocus:!0},end:Q`
12683
+ `,styles:XL,shadowOptions:{delegatesFocus:!0},end:Q`
12682
12684
  <${$m}
12683
12685
  severity="error"
12684
12686
  class="error-icon"
@@ -12688,8 +12690,8 @@ const JL=XL.compose({baseName:"text-field",baseClass:ji,template:(t,e)=>Q`
12688
12690
  </span>
12689
12691
  ${yg}
12690
12692
  `})
12691
- _i.getOrCreate().withPrefix("nimble").register(JL())
12692
- const QL=Mt`
12693
+ _i.getOrCreate().withPrefix("nimble").register(QL())
12694
+ const tB=Mt`
12693
12695
  ${zs("inline-flex")}
12694
12696
 
12695
12697
  :host {
@@ -12773,7 +12775,7 @@ const QL=Mt`
12773
12775
  .status-icon {
12774
12776
  opacity: 0.6;
12775
12777
  }
12776
- `)),tB=Q`
12778
+ `)),eB=Q`
12777
12779
  ${Gt((t=>t.tooltipVisible),Q`
12778
12780
  <${Th}
12779
12781
  class="anchored-region"
@@ -12806,11 +12808,11 @@ const QL=Mt`
12806
12808
  </${Th}>
12807
12809
  `)}
12808
12810
  `
12809
- class eB extends Rs{constructor(){super(...arguments),this.iconVisible=!1}}t([ft],eB.prototype,"severity",void 0),t([ft({attribute:"icon-visible",mode:"boolean"})],eB.prototype,"iconVisible",void 0)
12810
- const nB=eB.compose({baseName:"tooltip",baseClass:Rs,template:tB,styles:QL})
12811
- _i.getOrCreate().withPrefix("nimble").register(nB())
12812
- const iB="group-selected",sB="all",oB="leaves-only",rB="none"
12813
- class aB{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const lB=Mt`
12811
+ class nB extends Rs{constructor(){super(...arguments),this.iconVisible=!1}}t([ft],nB.prototype,"severity",void 0),t([ft({attribute:"icon-visible",mode:"boolean"})],nB.prototype,"iconVisible",void 0)
12812
+ const iB=nB.compose({baseName:"tooltip",baseClass:Rs,template:eB,styles:tB})
12813
+ _i.getOrCreate().withPrefix("nimble").register(iB())
12814
+ const sB="group-selected",oB="all",rB="leaves-only",aB="none"
12815
+ class lB{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const cB=Mt`
12814
12816
  ${zs("block")}
12815
12817
 
12816
12818
  :host {
@@ -12831,7 +12833,7 @@ class aB{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12831
12833
  }
12832
12834
 
12833
12835
  ${""}
12834
- :host([${iB}])::after {
12836
+ :host([${sB}])::after {
12835
12837
  background: ${dl};
12836
12838
  border-radius: 0px;
12837
12839
  content: '';
@@ -12852,7 +12854,7 @@ class aB{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12852
12854
  background: ${il};
12853
12855
  }
12854
12856
 
12855
- :host([${iB}]) .positioning-region:hover {
12857
+ :host([${sB}]) .positioning-region:hover {
12856
12858
  background: ${nl};
12857
12859
  }
12858
12860
 
@@ -12958,7 +12960,7 @@ class aB{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12958
12960
  display: block;
12959
12961
  }
12960
12962
  `.withBehaviors(new class{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
12961
- e&&Ga.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new aB(this.ltr,this.rtl,t),n=Ga.getValueFor(t)
12963
+ e&&Ga.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new lB(this.ltr,this.rtl,t),n=Ga.getValueFor(t)
12962
12964
  Ga.subscribe(e),e.attach(n),this.cache.set(t,e)}}(Mt`
12963
12965
  .expand-collapse-button {
12964
12966
  left: var(
@@ -12990,8 +12992,8 @@ Ga.subscribe(e),e.attach(n),this.cache.set(t,e)}}(Mt`
12990
12992
  transform: rotate(135deg);
12991
12993
  }
12992
12994
  `))
12993
- class cB extends Ns{constructor(){super(...arguments),this.groupSelected=!1}}t([ft({attribute:"group-selected",mode:"boolean"})],cB.prototype,"groupSelected",void 0)
12994
- const dB=cB.compose({baseName:"tree-item",baseClass:Ns,template:(t,e)=>Q`
12995
+ class dB extends Ns{constructor(){super(...arguments),this.groupSelected=!1}}t([ft({attribute:"group-selected",mode:"boolean"})],dB.prototype,"groupSelected",void 0)
12996
+ const hB=dB.compose({baseName:"tree-item",baseClass:Ns,template:(t,e)=>Q`
12995
12997
  <template
12996
12998
  role="treeitem"
12997
12999
  slot="${t=>t.isNestedItem()?"item":void 0}"
@@ -13031,9 +13033,9 @@ const dB=cB.compose({baseName:"tree-item",baseClass:Ns,template:(t,e)=>Q`
13031
13033
  </div>
13032
13034
  `)}
13033
13035
  </template>
13034
- `,styles:lB,expandCollapseGlyph:Zh.data})
13035
- _i.getOrCreate().withPrefix("nimble").register(dB())
13036
- const hB=Mt`
13036
+ `,styles:cB,expandCollapseGlyph:Zh.data})
13037
+ _i.getOrCreate().withPrefix("nimble").register(hB())
13038
+ const uB=Mt`
13037
13039
  ${zs("flex")}
13038
13040
 
13039
13041
  :host {
@@ -13045,7 +13047,7 @@ const hB=Mt`
13045
13047
  :host(${Vs}) {
13046
13048
  outline: none;
13047
13049
  }
13048
- `,uB=Q`
13050
+ `,pB=Q`
13049
13051
  <template
13050
13052
  role="tree"
13051
13053
  ${Ut("treeView")}
@@ -13059,248 +13061,248 @@ const hB=Mt`
13059
13061
  <slot ${ie("slottedTreeItems")}></slot>
13060
13062
  </template>
13061
13063
  `
13062
- class pB extends Ls{constructor(){super(...arguments),this.selectionMode=sB,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
13064
+ class fB extends Ls{constructor(){super(...arguments),this.selectionMode=oB,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
13063
13065
  if(!(t.target instanceof Element&&Fs(t.target)))return!0
13064
13066
  const e=t.target
13065
- return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case sB:return!0
13066
- case rB:return!1
13067
- case oB:return!this.itemHasChildren(t)
13068
- default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof cB&&(t.groupSelected=!1)
13067
+ return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case oB:return!0
13068
+ case aB:return!1
13069
+ case rB:return!this.itemHasChildren(t)
13070
+ default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof dB&&(t.groupSelected=!1)
13069
13071
  for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
13070
- t instanceof cB&&(t.groupSelected=!0)}}}t([ft({attribute:"selection-mode"})],pB.prototype,"selectionMode",void 0),t([C],pB.prototype,"selectedItems",void 0)
13071
- const fB=pB.compose({baseName:"tree-view",baseClass:Ls,template:uB,styles:hB})
13072
- _i.getOrCreate().withPrefix("nimble").register(fB())
13073
- const mB=Q`<template slot="unit"></template>`
13074
- class gB{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class vB extends vL{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
13075
- this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new vB(e,t)}format(t){const e=this.formatter.format(t)
13072
+ t instanceof dB&&(t.groupSelected=!0)}}}t([ft({attribute:"selection-mode"})],fB.prototype,"selectionMode",void 0),t([C],fB.prototype,"selectedItems",void 0)
13073
+ const mB=fB.compose({baseName:"tree-view",baseClass:Ls,template:pB,styles:uB})
13074
+ _i.getOrCreate().withPrefix("nimble").register(mB())
13075
+ const gB=Q`<template slot="unit"></template>`
13076
+ class vB{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class bB extends bL{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
13077
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new bB(e,t)}format(t){const e=this.formatter.format(t)
13076
13078
  if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
13077
13079
  return`${e} ${"one"===this.pluralRules.select(t)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(t,e){const n=new Intl.Locale(e??"en"),i=n.language,s=n.region
13078
- return(s?t.get(`${i}-${s}`):void 0)??t.get(i)??t.get("en")}}const bB=new Map([["en",new gB("byte","bytes","B")],["fr",new gB("octet","octets","o")],["de",new gB("Byte","Byte","B")],["ja",new gB("バイト","バイト","B")],["zh",new gB("字节","字节","B")]]),yB=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
13079
- const wB=new class extends wL{constructor(){super(yB.map((([t,e])=>new yL(t,vB.createFactory({unitTranslations:bB,scaledPrefixText:e})))))}},xB=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
13080
- const CB=new class extends wL{constructor(){super(xB.map((([t,e,n])=>new yL(t,bL.createFactory({style:"unit",unit:e,unitDisplay:n})))))}},kB=Mt`
13080
+ return(s?t.get(`${i}-${s}`):void 0)??t.get(i)??t.get("en")}}const yB=new Map([["en",new vB("byte","bytes","B")],["fr",new vB("octet","octets","o")],["de",new vB("Byte","Byte","B")],["ja",new vB("バイト","バイト","B")],["zh",new vB("字节","字节","B")]]),wB=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
13081
+ const xB=new class extends xL{constructor(){super(wB.map((([t,e])=>new wL(t,bB.createFactory({unitTranslations:yB,scaledPrefixText:e})))))}},CB=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
13082
+ const kB=new class extends xL{constructor(){super(CB.map((([t,e,n])=>new wL(t,yL.createFactory({style:"unit",unit:e,unitDisplay:n})))))}},SB=Mt`
13081
13083
  ${zs("none")}
13082
13084
  `
13083
- class SB extends $L{constructor(){super(),this.binary=!1,this.resolvedUnitScale=CB}binaryChanged(){this.resolvedUnitScale=this.binary?wB:CB}}t([ft({mode:"boolean"})],SB.prototype,"binary",void 0)
13084
- const _B=SB.compose({baseName:"unit-byte",template:mB,styles:kB})
13085
- _i.getOrCreate().withPrefix("nimble").register(_B())
13086
- const IB=[[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"]],MB=new Map([["en",new gB("volt","volts","V")],["fr",new gB("volt","volts","V")],["de",new gB("Volt","Volt","V")],["ja",new gB("ボルト","ボルト","V")],["zh",new gB("伏特","伏特","V")]])
13087
- const $B=new class extends wL{constructor(){super(IB.map((([t,e])=>new yL(t,vB.createFactory({unitTranslations:MB,scaledPrefixText:e})))))}}
13088
- const EB=class extends $L{constructor(){super(),this.resolvedUnitScale=$B}}.compose({baseName:"unit-volt",template:mB,styles:kB})
13089
- _i.getOrCreate().withPrefix("nimble").register(EB())
13090
- var DB={value:()=>{}}
13091
- function AB(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
13092
- i[t]=[]}return new TB(i)}function TB(t){this._=t}function OB(t,e){for(var n,i=0,s=t.length;i<s;++i)if((n=t[i]).name===e)return n.value}function RB(t,e,n){for(var i=0,s=t.length;i<s;++i)if(t[i].name===e){t[i]=DB,t=t.slice(0,i).concat(t.slice(i+1))
13093
- break}return null!=n&&t.push({name:e,value:n}),t}TB.prototype=AB.prototype={constructor:TB,on:function(t,e){var n,i,s=this._,o=(i=s,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
13085
+ class _B extends EL{constructor(){super(),this.binary=!1,this.resolvedUnitScale=kB}binaryChanged(){this.resolvedUnitScale=this.binary?xB:kB}}t([ft({mode:"boolean"})],_B.prototype,"binary",void 0)
13086
+ const IB=_B.compose({baseName:"unit-byte",template:gB,styles:SB})
13087
+ _i.getOrCreate().withPrefix("nimble").register(IB())
13088
+ const MB=[[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"]],$B=new Map([["en",new vB("volt","volts","V")],["fr",new vB("volt","volts","V")],["de",new vB("Volt","Volt","V")],["ja",new vB("ボルト","ボルト","V")],["zh",new vB("伏特","伏特","V")]])
13089
+ const EB=new class extends xL{constructor(){super(MB.map((([t,e])=>new wL(t,bB.createFactory({unitTranslations:$B,scaledPrefixText:e})))))}}
13090
+ const DB=class extends EL{constructor(){super(),this.resolvedUnitScale=EB}}.compose({baseName:"unit-volt",template:gB,styles:SB})
13091
+ _i.getOrCreate().withPrefix("nimble").register(DB())
13092
+ var AB={value:()=>{}}
13093
+ function TB(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
13094
+ i[t]=[]}return new OB(i)}function OB(t){this._=t}function RB(t,e){for(var n,i=0,s=t.length;i<s;++i)if((n=t[i]).name===e)return n.value}function FB(t,e,n){for(var i=0,s=t.length;i<s;++i)if(t[i].name===e){t[i]=AB,t=t.slice(0,i).concat(t.slice(i+1))
13095
+ break}return null!=n&&t.push({name:e,value:n}),t}OB.prototype=TB.prototype={constructor:OB,on:function(t,e){var n,i,s=this._,o=(i=s,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
13094
13096
  if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
13095
13097
  return{type:t,name:e}}))),r=-1,a=o.length
13096
13098
  if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
13097
- for(;++r<a;)if(n=(t=o[r]).type)s[n]=RB(s[n],t.name,e)
13098
- else if(null==e)for(n in s)s[n]=RB(s[n],t.name,null)
13099
- return this}for(;++r<a;)if((n=(t=o[r]).type)&&(n=OB(s[n],t.name)))return n},copy:function(){var t={},e=this._
13099
+ for(;++r<a;)if(n=(t=o[r]).type)s[n]=FB(s[n],t.name,e)
13100
+ else if(null==e)for(n in s)s[n]=FB(s[n],t.name,null)
13101
+ return this}for(;++r<a;)if((n=(t=o[r]).type)&&(n=RB(s[n],t.name)))return n},copy:function(){var t={},e=this._
13100
13102
  for(var n in e)t[n]=e[n].slice()
13101
- return new TB(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,s=new Array(n),o=0;o<n;++o)s[o]=arguments[o+2]
13103
+ return new OB(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,s=new Array(n),o=0;o<n;++o)s[o]=arguments[o+2]
13102
13104
  if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
13103
13105
  for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,s)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
13104
13106
  for(var i=this._[t],s=0,o=i.length;s<o;++s)i[s].value.apply(e,n)}}
13105
- var FB="http://www.w3.org/1999/xhtml",NB={svg:"http://www.w3.org/2000/svg",xhtml:FB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
13106
- function LB(t){var e=t+="",n=e.indexOf(":")
13107
- return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),NB.hasOwnProperty(e)?{space:NB[e],local:t}:t}function BB(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
13108
- return n===FB&&e.documentElement.namespaceURI===FB?e.createElement(t):e.createElementNS(n,t)}}function PB(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function zB(t){var e=LB(t)
13109
- return(e.local?PB:BB)(e)}function VB(){}function HB(t){return null==t?VB:function(){return this.querySelector(t)}}function UB(){return[]}function qB(t){return null==t?UB:function(){return this.querySelectorAll(t)}}function jB(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
13110
- var e}}function WB(t){return function(){return this.matches(t)}}function GB(t){return function(e){return e.matches(t)}}var ZB=Array.prototype.find
13111
- function KB(){return this.firstElementChild}var YB=Array.prototype.filter
13112
- function XB(){return Array.from(this.children)}function JB(t){return new Array(t.length)}function QB(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function tP(t,e,n,i,s,o){for(var r,a=0,l=e.length,c=o.length;a<c;++a)(r=e[a])?(r.__data__=o[a],i[a]=r):n[a]=new QB(t,o[a])
13113
- for(;a<l;++a)(r=e[a])&&(s[a]=r)}function eP(t,e,n,i,s,o,r){var a,l,c,d=new Map,h=e.length,u=o.length,p=new Array(h)
13107
+ var NB="http://www.w3.org/1999/xhtml",LB={svg:"http://www.w3.org/2000/svg",xhtml:NB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
13108
+ function BB(t){var e=t+="",n=e.indexOf(":")
13109
+ return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),LB.hasOwnProperty(e)?{space:LB[e],local:t}:t}function PB(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
13110
+ return n===NB&&e.documentElement.namespaceURI===NB?e.createElement(t):e.createElementNS(n,t)}}function zB(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function VB(t){var e=BB(t)
13111
+ return(e.local?zB:PB)(e)}function HB(){}function UB(t){return null==t?HB:function(){return this.querySelector(t)}}function qB(){return[]}function jB(t){return null==t?qB:function(){return this.querySelectorAll(t)}}function WB(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
13112
+ var e}}function GB(t){return function(){return this.matches(t)}}function ZB(t){return function(e){return e.matches(t)}}var KB=Array.prototype.find
13113
+ function YB(){return this.firstElementChild}var XB=Array.prototype.filter
13114
+ function JB(){return Array.from(this.children)}function QB(t){return new Array(t.length)}function tP(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function eP(t,e,n,i,s,o){for(var r,a=0,l=e.length,c=o.length;a<c;++a)(r=e[a])?(r.__data__=o[a],i[a]=r):n[a]=new tP(t,o[a])
13115
+ for(;a<l;++a)(r=e[a])&&(s[a]=r)}function nP(t,e,n,i,s,o,r){var a,l,c,d=new Map,h=e.length,u=o.length,p=new Array(h)
13114
13116
  for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=r.call(l,l.__data__,a,e)+"",d.has(c)?s[a]=l:d.set(c,l))
13115
- for(a=0;a<u;++a)c=r.call(t,o[a],a,o)+"",(l=d.get(c))?(i[a]=l,l.__data__=o[a],d.delete(c)):n[a]=new QB(t,o[a])
13116
- for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(s[a]=l)}function nP(t){return t.__data__}function iP(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function sP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function oP(t){return function(){this.removeAttribute(t)}}function rP(t){return function(){this.removeAttributeNS(t.space,t.local)}}function aP(t,e){return function(){this.setAttribute(t,e)}}function lP(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function cP(t,e){return function(){var n=e.apply(this,arguments)
13117
- null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function dP(t,e){return function(){var n=e.apply(this,arguments)
13118
- null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function hP(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function uP(t){return function(){this.style.removeProperty(t)}}function pP(t,e,n){return function(){this.style.setProperty(t,e,n)}}function fP(t,e,n){return function(){var i=e.apply(this,arguments)
13119
- null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function mP(t,e){return t.style.getPropertyValue(e)||hP(t).getComputedStyle(t,null).getPropertyValue(e)}function gP(t){return function(){delete this[t]}}function vP(t,e){return function(){this[t]=e}}function bP(t,e){return function(){var n=e.apply(this,arguments)
13120
- null==n?delete this[t]:this[t]=n}}function yP(t){return t.trim().split(/^|\s+/)}function wP(t){return t.classList||new xP(t)}function xP(t){this._node=t,this._names=yP(t.getAttribute("class")||"")}function CP(t,e){for(var n=wP(t),i=-1,s=e.length;++i<s;)n.add(e[i])}function kP(t,e){for(var n=wP(t),i=-1,s=e.length;++i<s;)n.remove(e[i])}function SP(t){return function(){CP(this,t)}}function _P(t){return function(){kP(this,t)}}function IP(t,e){return function(){(e.apply(this,arguments)?CP:kP)(this,t)}}function MP(){this.textContent=""}function $P(t){return function(){this.textContent=t}}function EP(t){return function(){var e=t.apply(this,arguments)
13121
- this.textContent=null==e?"":e}}function DP(){this.innerHTML=""}function AP(t){return function(){this.innerHTML=t}}function TP(t){return function(){var e=t.apply(this,arguments)
13122
- this.innerHTML=null==e?"":e}}function OP(){this.nextSibling&&this.parentNode.appendChild(this)}function RP(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function FP(){return null}function NP(){var t=this.parentNode
13123
- t&&t.removeChild(this)}function LP(){var t=this.cloneNode(!1),e=this.parentNode
13124
- return e?e.insertBefore(t,this.nextSibling):t}function BP(){var t=this.cloneNode(!0),e=this.parentNode
13125
- return e?e.insertBefore(t,this.nextSibling):t}function PP(t){return function(){var e=this.__on
13126
- if(e){for(var n,i=0,s=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++s]=n:this.removeEventListener(n.type,n.listener,n.options);++s?e.length=s:delete this.__on}}}function zP(t,e,n){return function(){var i,s=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
13117
+ for(a=0;a<u;++a)c=r.call(t,o[a],a,o)+"",(l=d.get(c))?(i[a]=l,l.__data__=o[a],d.delete(c)):n[a]=new tP(t,o[a])
13118
+ for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(s[a]=l)}function iP(t){return t.__data__}function sP(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function oP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function rP(t){return function(){this.removeAttribute(t)}}function aP(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lP(t,e){return function(){this.setAttribute(t,e)}}function cP(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function dP(t,e){return function(){var n=e.apply(this,arguments)
13119
+ null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function hP(t,e){return function(){var n=e.apply(this,arguments)
13120
+ null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function uP(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pP(t){return function(){this.style.removeProperty(t)}}function fP(t,e,n){return function(){this.style.setProperty(t,e,n)}}function mP(t,e,n){return function(){var i=e.apply(this,arguments)
13121
+ null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function gP(t,e){return t.style.getPropertyValue(e)||uP(t).getComputedStyle(t,null).getPropertyValue(e)}function vP(t){return function(){delete this[t]}}function bP(t,e){return function(){this[t]=e}}function yP(t,e){return function(){var n=e.apply(this,arguments)
13122
+ null==n?delete this[t]:this[t]=n}}function wP(t){return t.trim().split(/^|\s+/)}function xP(t){return t.classList||new CP(t)}function CP(t){this._node=t,this._names=wP(t.getAttribute("class")||"")}function kP(t,e){for(var n=xP(t),i=-1,s=e.length;++i<s;)n.add(e[i])}function SP(t,e){for(var n=xP(t),i=-1,s=e.length;++i<s;)n.remove(e[i])}function _P(t){return function(){kP(this,t)}}function IP(t){return function(){SP(this,t)}}function MP(t,e){return function(){(e.apply(this,arguments)?kP:SP)(this,t)}}function $P(){this.textContent=""}function EP(t){return function(){this.textContent=t}}function DP(t){return function(){var e=t.apply(this,arguments)
13123
+ this.textContent=null==e?"":e}}function AP(){this.innerHTML=""}function TP(t){return function(){this.innerHTML=t}}function OP(t){return function(){var e=t.apply(this,arguments)
13124
+ this.innerHTML=null==e?"":e}}function RP(){this.nextSibling&&this.parentNode.appendChild(this)}function FP(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function NP(){return null}function LP(){var t=this.parentNode
13125
+ t&&t.removeChild(this)}function BP(){var t=this.cloneNode(!1),e=this.parentNode
13126
+ return e?e.insertBefore(t,this.nextSibling):t}function PP(){var t=this.cloneNode(!0),e=this.parentNode
13127
+ return e?e.insertBefore(t,this.nextSibling):t}function zP(t){return function(){var e=this.__on
13128
+ if(e){for(var n,i=0,s=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++s]=n:this.removeEventListener(n.type,n.listener,n.options);++s?e.length=s:delete this.__on}}}function VP(t,e,n){return function(){var i,s=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
13127
13129
  if(s)for(var r=0,a=s.length;r<a;++r)if((i=s[r]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e)
13128
- this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},s?s.push(i):this.__on=[i]}}function VP(t,e,n){var i=hP(t),s=i.CustomEvent
13129
- "function"==typeof s?s=new s(e,n):(s=i.document.createEvent("Event"),n?(s.initEvent(e,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function HP(t,e){return function(){return VP(this,t,e)}}function UP(t,e){return function(){return VP(this,t,e.apply(this,arguments))}}QB.prototype={constructor:QB,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},xP.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
13130
+ this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},s?s.push(i):this.__on=[i]}}function HP(t,e,n){var i=uP(t),s=i.CustomEvent
13131
+ "function"==typeof s?s=new s(e,n):(s=i.document.createEvent("Event"),n?(s.initEvent(e,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function UP(t,e){return function(){return HP(this,t,e)}}function qP(t,e){return function(){return HP(this,t,e.apply(this,arguments))}}tP.prototype={constructor:tP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},CP.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
13130
13132
  e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
13131
- var qP=[null]
13132
- function jP(t,e){this._groups=t,this._parents=e}function WP(){return new jP([[document.documentElement]],qP)}function GP(t){return"string"==typeof t?new jP([[document.querySelector(t)]],[document.documentElement]):new jP([[t]],qP)}function ZP(t,e){if(t=function(t){let e
13133
+ var jP=[null]
13134
+ function WP(t,e){this._groups=t,this._parents=e}function GP(){return new WP([[document.documentElement]],jP)}function ZP(t){return"string"==typeof t?new WP([[document.querySelector(t)]],[document.documentElement]):new WP([[t]],jP)}function KP(t,e){if(t=function(t){let e
13133
13135
  for(;e=t.sourceEvent;)t=e
13134
13136
  return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
13135
13137
  if(n.createSVGPoint){var i=n.createSVGPoint()
13136
13138
  return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var s=e.getBoundingClientRect()
13137
- return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}}return[t.pageX,t.pageY]}jP.prototype=WP.prototype={constructor:jP,select:function(t){"function"!=typeof t&&(t=HB(t))
13139
+ return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}}return[t.pageX,t.pageY]}WP.prototype=GP.prototype={constructor:WP,select:function(t){"function"!=typeof t&&(t=UB(t))
13138
13140
  for(var e=this._groups,n=e.length,i=new Array(n),s=0;s<n;++s)for(var o,r,a=e[s],l=a.length,c=i[s]=new Array(l),d=0;d<l;++d)(o=a[d])&&(r=t.call(o,o.__data__,d,a))&&("__data__"in o&&(r.__data__=o.__data__),c[d]=r)
13139
- return new jP(i,this._parents)},selectAll:function(t){t="function"==typeof t?jB(t):qB(t)
13141
+ return new WP(i,this._parents)},selectAll:function(t){t="function"==typeof t?WB(t):jB(t)
13140
13142
  for(var e=this._groups,n=e.length,i=[],s=[],o=0;o<n;++o)for(var r,a=e[o],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(t.call(r,r.__data__,c,a)),s.push(r))
13141
- return new jP(i,s)},selectChild:function(t){return this.select(null==t?KB:function(t){return function(){return ZB.call(this.children,t)}}("function"==typeof t?t:GB(t)))},selectChildren:function(t){return this.selectAll(null==t?XB:function(t){return function(){return YB.call(this.children,t)}}("function"==typeof t?t:GB(t)))},filter:function(t){"function"!=typeof t&&(t=WB(t))
13143
+ return new WP(i,s)},selectChild:function(t){return this.select(null==t?YB:function(t){return function(){return KB.call(this.children,t)}}("function"==typeof t?t:ZB(t)))},selectChildren:function(t){return this.selectAll(null==t?JB:function(t){return function(){return XB.call(this.children,t)}}("function"==typeof t?t:ZB(t)))},filter:function(t){"function"!=typeof t&&(t=GB(t))
13142
13144
  for(var e=this._groups,n=e.length,i=new Array(n),s=0;s<n;++s)for(var o,r=e[s],a=r.length,l=i[s]=[],c=0;c<a;++c)(o=r[c])&&t.call(o,o.__data__,c,r)&&l.push(o)
13143
- return new jP(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,nP)
13144
- var n,i=e?eP:tP,s=this._parents,o=this._groups
13145
+ return new WP(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,iP)
13146
+ var n,i=e?nP:eP,s=this._parents,o=this._groups
13145
13147
  "function"!=typeof t&&(n=t,t=function(){return n})
13146
- for(var r=o.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=s[d],u=o[d],p=u.length,f=iP(t.call(h,h&&h.__data__,d,s)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
13148
+ for(var r=o.length,a=new Array(r),l=new Array(r),c=new Array(r),d=0;d<r;++d){var h=s[d],u=o[d],p=u.length,f=sP(t.call(h,h&&h.__data__,d,s)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
13147
13149
  i(h,u,g,v,c[d]=new Array(p),f,e)
13148
- 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 jP(a,s))._enter=l,a._exit=c,a},enter:function(){return new jP(this._enter||this._groups.map(JB),this._parents)},exit:function(){return new jP(this._exit||this._groups.map(JB),this._parents)},join:function(t,e,n){var i=this.enter(),s=this,o=this.exit()
13150
+ 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 WP(a,s))._enter=l,a._exit=c,a},enter:function(){return new WP(this._enter||this._groups.map(QB),this._parents)},exit:function(){return new WP(this._exit||this._groups.map(QB),this._parents)},join:function(t,e,n){var i=this.enter(),s=this,o=this.exit()
13149
13151
  return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(s=e(s))&&(s=s.selection()),null==n?o.remove():n(o),i&&s?i.merge(s).order():s},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,s=n.length,o=i.length,r=Math.min(s,o),a=new Array(s),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)
13150
13152
  for(;l<s;++l)a[l]=n[l]
13151
- return new jP(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,s=t[e],o=s.length-1,r=s[o];--o>=0;)(i=s[o])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
13152
- return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=sP)
13153
+ return new WP(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,s=t[e],o=s.length-1,r=s[o];--o>=0;)(i=s[o])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
13154
+ return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=oP)
13153
13155
  for(var n=this._groups,i=n.length,s=new Array(i),o=0;o<i;++o){for(var r,a=n[o],l=a.length,c=s[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
13154
- c.sort(e)}return new jP(s,this._parents).order()},call:function(){var t=arguments[0]
13156
+ c.sort(e)}return new WP(s,this._parents).order()},call:function(){var t=arguments[0]
13155
13157
  return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],s=0,o=i.length;s<o;++s){var r=i[s]
13156
13158
  if(r)return r}return null},size:function(){let t=0
13157
13159
  for(const e of this)++t
13158
13160
  return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s,o=e[n],r=0,a=o.length;r<a;++r)(s=o[r])&&t.call(s,s.__data__,r,o)
13159
- return this},attr:function(t,e){var n=LB(t)
13161
+ return this},attr:function(t,e){var n=BB(t)
13160
13162
  if(arguments.length<2){var i=this.node()
13161
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?rP:oP:"function"==typeof e?n.local?dP:cP:n.local?lP:aP)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?uP:"function"==typeof e?fP:pP)(t,e,null==n?"":n)):mP(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?gP:"function"==typeof e?bP:vP)(t,e)):this.node()[t]},classed:function(t,e){var n=yP(t+"")
13162
- if(arguments.length<2){for(var i=wP(this.node()),s=-1,o=n.length;++s<o;)if(!i.contains(n[s]))return!1
13163
- return!0}return this.each(("function"==typeof e?IP:e?SP:_P)(n,e))},text:function(t){return arguments.length?this.each(null==t?MP:("function"==typeof t?EP:$P)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?DP:("function"==typeof t?TP:AP)(t)):this.node().innerHTML},raise:function(){return this.each(OP)},lower:function(){return this.each(RP)},append:function(t){var e="function"==typeof t?t:zB(t)
13164
- return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:zB(t),i=null==e?FP:"function"==typeof e?e:HB(e)
13165
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(NP)},clone:function(t){return this.select(t?BP:LP)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,s,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
13163
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?aP:rP:"function"==typeof e?n.local?hP:dP:n.local?cP:lP)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?pP:"function"==typeof e?mP:fP)(t,e,null==n?"":n)):gP(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?vP:"function"==typeof e?yP:bP)(t,e)):this.node()[t]},classed:function(t,e){var n=wP(t+"")
13164
+ if(arguments.length<2){for(var i=xP(this.node()),s=-1,o=n.length;++s<o;)if(!i.contains(n[s]))return!1
13165
+ return!0}return this.each(("function"==typeof e?MP:e?_P:IP)(n,e))},text:function(t){return arguments.length?this.each(null==t?$P:("function"==typeof t?DP:EP)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?AP:("function"==typeof t?OP:TP)(t)):this.node().innerHTML},raise:function(){return this.each(RP)},lower:function(){return this.each(FP)},append:function(t){var e="function"==typeof t?t:VB(t)
13166
+ return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:VB(t),i=null==e?NP:"function"==typeof e?e:UB(e)
13167
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(LP)},clone:function(t){return this.select(t?PP:BP)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,s,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
13166
13168
  return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),r=o.length
13167
- if(!(arguments.length<2)){for(a=e?zP:PP,i=0;i<r;++i)this.each(a(o[i],e,n))
13169
+ if(!(arguments.length<2)){for(a=e?VP:zP,i=0;i<r;++i)this.each(a(o[i],e,n))
13168
13170
  return this}var a=this.node().__on
13169
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((s=o[i]).type===l.type&&s.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?UP:HP)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,s=t[e],o=0,r=s.length;o<r;++o)(i=s[o])&&(yield i)}}
13170
- const KP={capture:!0,passive:!1}
13171
- function YP(t){t.preventDefault(),t.stopImmediatePropagation()}function XP(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function JP(t,e){var n=Object.create(t.prototype)
13171
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<r;++i)if((s=o[i]).type===l.type&&s.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?qP:UP)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,s=t[e],o=0,r=s.length;o<r;++o)(i=s[o])&&(yield i)}}
13172
+ const YP={capture:!0,passive:!1}
13173
+ function XP(t){t.preventDefault(),t.stopImmediatePropagation()}function JP(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function QP(t,e){var n=Object.create(t.prototype)
13172
13174
  for(var i in e)n[i]=e[i]
13173
- return n}function QP(){}var tz=.7,ez=1/tz,nz="\\s*([+-]?\\d+)\\s*",iz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oz=/^#([0-9a-f]{3,8})$/,rz=new RegExp(`^rgb\\(${nz},${nz},${nz}\\)$`),az=new RegExp(`^rgb\\(${sz},${sz},${sz}\\)$`),lz=new RegExp(`^rgba\\(${nz},${nz},${nz},${iz}\\)$`),cz=new RegExp(`^rgba\\(${sz},${sz},${sz},${iz}\\)$`),dz=new RegExp(`^hsl\\(${iz},${sz},${sz}\\)$`),hz=new RegExp(`^hsla\\(${iz},${sz},${sz},${iz}\\)$`),uz={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}
13174
- function pz(){return this.rgb().formatHex()}function fz(){return this.rgb().formatRgb()}function mz(t){var e,n
13175
- return t=(t+"").trim().toLowerCase(),(e=oz.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?gz(e):3===n?new yz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?vz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?vz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=rz.exec(t))?new yz(e[1],e[2],e[3],1):(e=az.exec(t))?new yz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=lz.exec(t))?vz(e[1],e[2],e[3],e[4]):(e=cz.exec(t))?vz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dz.exec(t))?_z(e[1],e[2]/100,e[3]/100,1):(e=hz.exec(t))?_z(e[1],e[2]/100,e[3]/100,e[4]):uz.hasOwnProperty(t)?gz(uz[t]):"transparent"===t?new yz(NaN,NaN,NaN,0):null}function gz(t){return new yz(t>>16&255,t>>8&255,255&t,1)}function vz(t,e,n,i){return i<=0&&(t=e=n=NaN),new yz(t,e,n,i)}function bz(t,e,n,i){return 1===arguments.length?((s=t)instanceof QP||(s=mz(s)),s?new yz((s=s.rgb()).r,s.g,s.b,s.opacity):new yz):new yz(t,e,n,null==i?1:i)
13176
- var s}function yz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function wz(){return`#${Sz(this.r)}${Sz(this.g)}${Sz(this.b)}`}function xz(){const t=Cz(this.opacity)
13177
- return`${1===t?"rgb(":"rgba("}${kz(this.r)}, ${kz(this.g)}, ${kz(this.b)}${1===t?")":`, ${t})`}`}function Cz(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function kz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Sz(t){return((t=kz(t))<16?"0":"")+t.toString(16)}function _z(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Mz(t,e,n,i)}function Iz(t){if(t instanceof Mz)return new Mz(t.h,t.s,t.l,t.opacity)
13178
- if(t instanceof QP||(t=mz(t)),!t)return new Mz
13179
- if(t instanceof Mz)return t
13175
+ return n}function tz(){}var ez=.7,nz=1/ez,iz="\\s*([+-]?\\d+)\\s*",sz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rz=/^#([0-9a-f]{3,8})$/,az=new RegExp(`^rgb\\(${iz},${iz},${iz}\\)$`),lz=new RegExp(`^rgb\\(${oz},${oz},${oz}\\)$`),cz=new RegExp(`^rgba\\(${iz},${iz},${iz},${sz}\\)$`),dz=new RegExp(`^rgba\\(${oz},${oz},${oz},${sz}\\)$`),hz=new RegExp(`^hsl\\(${sz},${oz},${oz}\\)$`),uz=new RegExp(`^hsla\\(${sz},${oz},${oz},${sz}\\)$`),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}
13176
+ function fz(){return this.rgb().formatHex()}function mz(){return this.rgb().formatRgb()}function gz(t){var e,n
13177
+ return t=(t+"").trim().toLowerCase(),(e=rz.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?vz(e):3===n?new wz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?bz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?bz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=az.exec(t))?new wz(e[1],e[2],e[3],1):(e=lz.exec(t))?new wz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=cz.exec(t))?bz(e[1],e[2],e[3],e[4]):(e=dz.exec(t))?bz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=hz.exec(t))?Iz(e[1],e[2]/100,e[3]/100,1):(e=uz.exec(t))?Iz(e[1],e[2]/100,e[3]/100,e[4]):pz.hasOwnProperty(t)?vz(pz[t]):"transparent"===t?new wz(NaN,NaN,NaN,0):null}function vz(t){return new wz(t>>16&255,t>>8&255,255&t,1)}function bz(t,e,n,i){return i<=0&&(t=e=n=NaN),new wz(t,e,n,i)}function yz(t,e,n,i){return 1===arguments.length?((s=t)instanceof tz||(s=gz(s)),s?new wz((s=s.rgb()).r,s.g,s.b,s.opacity):new wz):new wz(t,e,n,null==i?1:i)
13178
+ var s}function wz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function xz(){return`#${_z(this.r)}${_z(this.g)}${_z(this.b)}`}function Cz(){const t=kz(this.opacity)
13179
+ return`${1===t?"rgb(":"rgba("}${Sz(this.r)}, ${Sz(this.g)}, ${Sz(this.b)}${1===t?")":`, ${t})`}`}function kz(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Sz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _z(t){return((t=Sz(t))<16?"0":"")+t.toString(16)}function Iz(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new $z(t,e,n,i)}function Mz(t){if(t instanceof $z)return new $z(t.h,t.s,t.l,t.opacity)
13180
+ if(t instanceof tz||(t=gz(t)),!t)return new $z
13181
+ if(t instanceof $z)return t
13180
13182
  var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,s=Math.min(e,n,i),o=Math.max(e,n,i),r=NaN,a=o-s,l=(o+s)/2
13181
- return a?(r=e===o?(n-i)/a+6*(n<i):n===o?(i-e)/a+2:(e-n)/a+4,a/=l<.5?o+s:2-o-s,r*=60):a=l>0&&l<1?0:r,new Mz(r,a,l,t.opacity)}function Mz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function $z(t){return(t=(t||0)%360)<0?t+360:t}function Ez(t){return Math.max(0,Math.min(1,t||0))}function Dz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}XP(QP,mz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pz,formatHex:pz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Iz(this).formatHsl()},formatRgb:fz,toString:fz}),XP(yz,bz,JP(QP,{brighter(t){return t=null==t?ez:Math.pow(ez,t),new yz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?tz:Math.pow(tz,t),new yz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new yz(kz(this.r),kz(this.g),kz(this.b),Cz(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:wz,formatHex:wz,formatHex8:function(){return`#${Sz(this.r)}${Sz(this.g)}${Sz(this.b)}${Sz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:xz,toString:xz})),XP(Mz,(function(t,e,n,i){return 1===arguments.length?Iz(t):new Mz(t,e,n,null==i?1:i)}),JP(QP,{brighter(t){return t=null==t?ez:Math.pow(ez,t),new Mz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?tz:Math.pow(tz,t),new Mz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,s=2*n-i
13182
- return new yz(Dz(t>=240?t-240:t+120,s,i),Dz(t,s,i),Dz(t<120?t+240:t-120,s,i),this.opacity)},clamp(){return new Mz($z(this.h),Ez(this.s),Ez(this.l),Cz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Cz(this.opacity)
13183
- return`${1===t?"hsl(":"hsla("}${$z(this.h)}, ${100*Ez(this.s)}%, ${100*Ez(this.l)}%${1===t?")":`, ${t})`}`}}))
13184
- var Az=t=>()=>t
13185
- function Tz(t){return 1==(t=+t)?Oz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Az(isNaN(e)?n:e)}}function Oz(t,e){var n=e-t
13186
- return n?function(t,e){return function(n){return t+n*e}}(t,n):Az(isNaN(t)?e:t)}var Rz=function t(e){var n=Tz(e)
13187
- function i(t,e){var i=n((t=bz(t)).r,(e=bz(e)).r),s=n(t.g,e.g),o=n(t.b,e.b),r=Oz(t.opacity,e.opacity)
13183
+ return a?(r=e===o?(n-i)/a+6*(n<i):n===o?(i-e)/a+2:(e-n)/a+4,a/=l<.5?o+s:2-o-s,r*=60):a=l>0&&l<1?0:r,new $z(r,a,l,t.opacity)}function $z(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Ez(t){return(t=(t||0)%360)<0?t+360:t}function Dz(t){return Math.max(0,Math.min(1,t||0))}function Az(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}JP(tz,gz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fz,formatHex:fz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Mz(this).formatHsl()},formatRgb:mz,toString:mz}),JP(wz,yz,QP(tz,{brighter(t){return t=null==t?nz:Math.pow(nz,t),new wz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ez:Math.pow(ez,t),new wz(this.r*t,this.g*t,this.b*t,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})),JP($z,(function(t,e,n,i){return 1===arguments.length?Mz(t):new $z(t,e,n,null==i?1:i)}),QP(tz,{brighter(t){return t=null==t?nz:Math.pow(nz,t),new $z(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ez:Math.pow(ez,t),new $z(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,s=2*n-i
13184
+ return new wz(Az(t>=240?t-240:t+120,s,i),Az(t,s,i),Az(t<120?t+240:t-120,s,i),this.opacity)},clamp(){return new $z(Ez(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 t=kz(this.opacity)
13185
+ return`${1===t?"hsl(":"hsla("}${Ez(this.h)}, ${100*Dz(this.s)}%, ${100*Dz(this.l)}%${1===t?")":`, ${t})`}`}}))
13186
+ var Tz=t=>()=>t
13187
+ function Oz(t){return 1==(t=+t)?Rz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Tz(isNaN(e)?n:e)}}function Rz(t,e){var n=e-t
13188
+ return n?function(t,e){return function(n){return t+n*e}}(t,n):Tz(isNaN(t)?e:t)}var Fz=function t(e){var n=Oz(e)
13189
+ function i(t,e){var i=n((t=yz(t)).r,(e=yz(e)).r),s=n(t.g,e.g),o=n(t.b,e.b),r=Rz(t.opacity,e.opacity)
13188
13190
  return function(e){return t.r=i(e),t.g=s(e),t.b=o(e),t.opacity=r(e),t+""}}return i.gamma=t,i}(1)
13189
- function Fz(t,e){e||(e=[])
13191
+ function Nz(t,e){e||(e=[])
13190
13192
  var n,i=t?Math.min(e.length,t.length):0,s=e.slice()
13191
13193
  return function(o){for(n=0;n<i;++n)s[n]=t[n]*(1-o)+e[n]*o
13192
- return s}}function Nz(t,e){var n,i=e?e.length:0,s=t?Math.min(i,t.length):0,o=new Array(s),r=new Array(i)
13193
- for(n=0;n<s;++n)o[n]=Uz(t[n],e[n])
13194
+ return s}}function Lz(t,e){var n,i=e?e.length:0,s=t?Math.min(i,t.length):0,o=new Array(s),r=new Array(i)
13195
+ for(n=0;n<s;++n)o[n]=qz(t[n],e[n])
13194
13196
  for(;n<i;++n)r[n]=e[n]
13195
13197
  return function(t){for(n=0;n<s;++n)r[n]=o[n](t)
13196
- return r}}function Lz(t,e){var n=new Date
13197
- return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Bz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Pz(t,e){var n,i={},s={}
13198
- for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Uz(t[n],e[n]):s[n]=e[n]
13198
+ return r}}function Bz(t,e){var n=new Date
13199
+ return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Pz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function zz(t,e){var n,i={},s={}
13200
+ for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=qz(t[n],e[n]):s[n]=e[n]
13199
13201
  return function(t){for(n in i)s[n]=i[n](t)
13200
- return s}}var zz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vz=new RegExp(zz.source,"g")
13201
- function Hz(t,e){var n,i,s,o=zz.lastIndex=Vz.lastIndex=0,r=-1,a=[],l=[]
13202
- for(t+="",e+="";(n=zz.exec(t))&&(i=Vz.exec(e));)(s=i.index)>o&&(s=e.slice(o,s),a[r]?a[r]+=s:a[++r]=s),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:Bz(n,i)})),o=Vz.lastIndex
13202
+ return s}}var Vz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hz=new RegExp(Vz.source,"g")
13203
+ function Uz(t,e){var n,i,s,o=Vz.lastIndex=Hz.lastIndex=0,r=-1,a=[],l=[]
13204
+ for(t+="",e+="";(n=Vz.exec(t))&&(i=Hz.exec(e));)(s=i.index)>o&&(s=e.slice(o,s),a[r]?a[r]+=s:a[++r]=s),(n=n[0])===(i=i[0])?a[r]?a[r]+=i:a[++r]=i:(a[++r]=null,l.push({i:r,x:Pz(n,i)})),o=Hz.lastIndex
13203
13205
  return o<e.length&&(s=e.slice(o),a[r]?a[r]+=s:a[++r]=s),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t)
13204
- return a.join("")})}function Uz(t,e){var n,i,s=typeof e
13205
- return null==e||"boolean"===s?Az(e):("number"===s?Bz:"string"===s?(n=mz(e))?(e=n,Rz):Hz:e instanceof mz?Rz:e instanceof Date?Lz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Nz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Pz:Bz:Fz))(t,e)}function qz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var jz,Wz=180/Math.PI,Gz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
13206
- function Zz(t,e,n,i,s,o){var r,a,l
13207
- return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:s,translateY:o,rotate:Math.atan2(e,t)*Wz,skewX:Math.atan(l)*Wz,scaleX:r,scaleY:a}}function Kz(t,e,n,i){function s(t){return t.length?t.pop()+" ":""}return function(o,r){var a=[],l=[]
13206
+ return a.join("")})}function qz(t,e){var n,i,s=typeof e
13207
+ return null==e||"boolean"===s?Tz(e):("number"===s?Pz:"string"===s?(n=gz(e))?(e=n,Fz):Uz:e instanceof gz?Fz:e instanceof Date?Bz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Lz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?zz:Pz:Nz))(t,e)}function jz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Wz,Gz=180/Math.PI,Zz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
13208
+ function Kz(t,e,n,i,s,o){var r,a,l
13209
+ return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:s,translateY:o,rotate:Math.atan2(e,t)*Gz,skewX:Math.atan(l)*Gz,scaleX:r,scaleY:a}}function Yz(t,e,n,i){function s(t){return t.length?t.pop()+" ":""}return function(o,r){var a=[],l=[]
13208
13210
  return o=t(o),r=t(r),function(t,i,s,o,r,a){if(t!==s||i!==o){var l=r.push("translate(",null,e,null,n)
13209
- a.push({i:l-4,x:Bz(t,s)},{i:l-2,x:Bz(i,o)})}else(s||o)&&r.push("translate("+s+e+o+n)}(o.translateX,o.translateY,r.translateX,r.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(s(n)+"rotate(",null,i)-2,x:Bz(t,e)})):e&&n.push(s(n)+"rotate("+e+i)}(o.rotate,r.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(s(n)+"skewX(",null,i)-2,x:Bz(t,e)}):e&&n.push(s(n)+"skewX("+e+i)}(o.skewX,r.skewX,a,l),function(t,e,n,i,o,r){if(t!==n||e!==i){var a=o.push(s(o)+"scale(",null,",",null,")")
13210
- r.push({i:a-4,x:Bz(t,n)},{i:a-2,x:Bz(e,i)})}else 1===n&&1===i||o.push(s(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,r.scaleX,r.scaleY,a,l),o=r=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
13211
- return a.join("")}}}var Yz=Kz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
13212
- return e.isIdentity?Gz:Zz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Xz=Kz((function(t){return null==t?Gz:(jz||(jz=document.createElementNS("http://www.w3.org/2000/svg","g")),jz.setAttribute("transform",t),(t=jz.transform.baseVal.consolidate())?Zz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Gz)}),", ",")",")")
13213
- function Jz(t){return((t=Math.exp(t))+1/t)/2}var Qz,tV,eV=function t(e,n,i){function s(t,s){var o,r,a=t[0],l=t[1],c=t[2],d=s[0],h=s[1],u=s[2],p=d-a,f=h-l,m=p*p+f*f
13211
+ a.push({i:l-4,x:Pz(t,s)},{i:l-2,x:Pz(i,o)})}else(s||o)&&r.push("translate("+s+e+o+n)}(o.translateX,o.translateY,r.translateX,r.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(s(n)+"rotate(",null,i)-2,x:Pz(t,e)})):e&&n.push(s(n)+"rotate("+e+i)}(o.rotate,r.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(s(n)+"skewX(",null,i)-2,x:Pz(t,e)}):e&&n.push(s(n)+"skewX("+e+i)}(o.skewX,r.skewX,a,l),function(t,e,n,i,o,r){if(t!==n||e!==i){var a=o.push(s(o)+"scale(",null,",",null,")")
13212
+ r.push({i:a-4,x:Pz(t,n)},{i:a-2,x:Pz(e,i)})}else 1===n&&1===i||o.push(s(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,r.scaleX,r.scaleY,a,l),o=r=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
13213
+ return a.join("")}}}var Xz=Yz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
13214
+ return e.isIdentity?Zz:Kz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Jz=Yz((function(t){return null==t?Zz:(Wz||(Wz=document.createElementNS("http://www.w3.org/2000/svg","g")),Wz.setAttribute("transform",t),(t=Wz.transform.baseVal.consolidate())?Kz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Zz)}),", ",")",")")
13215
+ function Qz(t){return((t=Math.exp(t))+1/t)/2}var tV,eV,nV=function t(e,n,i){function s(t,s){var o,r,a=t[0],l=t[1],c=t[2],d=s[0],h=s[1],u=s[2],p=d-a,f=h-l,m=p*p+f*f
13214
13216
  if(m<1e-12)r=Math.log(u/c)/e,o=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*r)]}
13215
13217
  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)
13216
- r=(w-y)/e,o=function(t){var i,s=t*r,o=Jz(y),d=c/(n*g)*(o*(i=e*s+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
13217
- return[a+d*p,l+d*f,c*o/Jz(e*s+y)]}}return o.duration=1e3*r*e/Math.SQRT2,o}return s.rho=function(e){var n=Math.max(.001,+e),i=n*n
13218
- return t(n,i,i*i)},s}(Math.SQRT2,2,4),nV=0,iV=0,sV=0,oV=1e3,rV=0,aV=0,lV=0,cV="object"==typeof performance&&performance.now?performance:Date,dV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
13219
- function hV(){return aV||(dV(uV),aV=cV.now()+lV)}function uV(){aV=0}function pV(){this._call=this._time=this._next=null}function fV(t,e,n){var i=new pV
13220
- return i.restart(t,e,n),i}function mV(){aV=(rV=cV.now())+lV,nV=iV=0
13221
- try{!function(){hV(),++nV
13222
- for(var t,e=Qz;e;)(t=aV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nV}()}finally{nV=0,function(){var t,e,n=Qz,i=1/0
13223
- for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Qz=e)
13224
- tV=t,vV(i)}(),aV=0}}function gV(){var t=cV.now(),e=t-rV
13225
- e>oV&&(lV-=e,rV=t)}function vV(t){nV||(iV&&(iV=clearTimeout(iV)),t-aV>24?(t<1/0&&(iV=setTimeout(mV,t-cV.now()-lV)),sV&&(sV=clearInterval(sV))):(sV||(rV=cV.now(),sV=setInterval(gV,oV)),nV=1,dV(mV)))}function bV(t,e,n){var i=new pV
13226
- return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}pV.prototype=fV.prototype={constructor:pV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
13227
- n=(null==n?hV():+n)+(null==e?0:+e),this._next||tV===this||(tV?tV._next=this:Qz=this,tV=this),this._call=t,this._time=n,vV()},stop:function(){this._call&&(this._call=null,this._time=1/0,vV())}}
13228
- var yV=AB("start","end","cancel","interrupt"),wV=[],xV=0,CV=1,kV=2,SV=3,_V=4,IV=5,MV=6
13229
- function $V(t,e,n,i,s,o){var r=t.__transition
13218
+ r=(w-y)/e,o=function(t){var i,s=t*r,o=Qz(y),d=c/(n*g)*(o*(i=e*s+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
13219
+ return[a+d*p,l+d*f,c*o/Qz(e*s+y)]}}return o.duration=1e3*r*e/Math.SQRT2,o}return s.rho=function(e){var n=Math.max(.001,+e),i=n*n
13220
+ return t(n,i,i*i)},s}(Math.SQRT2,2,4),iV=0,sV=0,oV=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(t){setTimeout(t,17)}
13221
+ 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(t,e,n){var i=new fV
13222
+ return i.restart(t,e,n),i}function gV(){lV=(aV=dV.now())+cV,iV=sV=0
13223
+ try{!function(){uV(),++iV
13224
+ for(var t,e=tV;e;)(t=lV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--iV}()}finally{iV=0,function(){var t,e,n=tV,i=1/0
13225
+ for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:tV=e)
13226
+ eV=t,bV(i)}(),lV=0}}function vV(){var t=dV.now(),e=t-aV
13227
+ e>rV&&(cV-=e,aV=t)}function bV(t){iV||(sV&&(sV=clearTimeout(sV)),t-lV>24?(t<1/0&&(sV=setTimeout(gV,t-dV.now()-cV)),oV&&(oV=clearInterval(oV))):(oV||(aV=dV.now(),oV=setInterval(vV,rV)),iV=1,hV(gV)))}function yV(t,e,n){var i=new fV
13228
+ return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}fV.prototype=mV.prototype={constructor:fV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
13229
+ n=(null==n?uV():+n)+(null==e?0:+e),this._next||eV===this||(eV?eV._next=this:tV=this,eV=this),this._call=t,this._time=n,bV()},stop:function(){this._call&&(this._call=null,this._time=1/0,bV())}}
13230
+ var wV=TB("start","end","cancel","interrupt"),xV=[],CV=0,kV=1,SV=2,_V=3,IV=4,MV=5,$V=6
13231
+ function EV(t,e,n,i,s,o){var r=t.__transition
13230
13232
  if(r){if(n in r)return}else t.__transition={}
13231
13233
  !function(t,e,n){var i,s=t.__transition
13232
- function o(t){n.state=CV,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}function r(o){var c,d,h,u
13233
- if(n.state!==CV)return l()
13234
- for(c in s)if((u=s[c]).name===n.name){if(u.state===SV)return bV(r)
13235
- u.state===_V?(u.state=MV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete s[c]):+c<e&&(u.state=MV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete s[c])}if(bV((function(){n.state===SV&&(n.state=_V,n.timer.restart(a,n.delay,n.time),a(o))})),n.state=kV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===kV){for(n.state=SV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
13236
- i.length=d+1}}function a(e){for(var s=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=IV,1),o=-1,r=i.length;++o<r;)i[o].call(t,s)
13237
- n.state===IV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=MV,n.timer.stop(),delete s[e],s)return
13238
- delete t.__transition}s[e]=n,n.timer=fV(o,0,n.time)}(t,n,{name:e,index:i,group:s,on:yV,tween:wV,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:xV})}function EV(t,e){var n=AV(t,e)
13239
- if(n.state>xV)throw new Error("too late; already scheduled")
13240
- return n}function DV(t,e){var n=AV(t,e)
13241
- if(n.state>SV)throw new Error("too late; already running")
13242
- return n}function AV(t,e){var n=t.__transition
13234
+ function o(t){n.state=kV,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}function r(o){var c,d,h,u
13235
+ if(n.state!==kV)return l()
13236
+ for(c in s)if((u=s[c]).name===n.name){if(u.state===_V)return yV(r)
13237
+ u.state===IV?(u.state=$V,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete s[c]):+c<e&&(u.state=$V,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete s[c])}if(yV((function(){n.state===_V&&(n.state=IV,n.timer.restart(a,n.delay,n.time),a(o))})),n.state=SV,n.on.call("start",t,t.__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(t,t.__data__,n.index,n.group))&&(i[++d]=u)
13238
+ i.length=d+1}}function a(e){for(var s=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=MV,1),o=-1,r=i.length;++o<r;)i[o].call(t,s)
13239
+ n.state===MV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=$V,n.timer.stop(),delete s[e],s)return
13240
+ delete t.__transition}s[e]=n,n.timer=mV(o,0,n.time)}(t,n,{name:e,index:i,group:s,on:wV,tween:xV,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:CV})}function DV(t,e){var n=TV(t,e)
13241
+ if(n.state>CV)throw new Error("too late; already scheduled")
13242
+ return n}function AV(t,e){var n=TV(t,e)
13243
+ if(n.state>_V)throw new Error("too late; already running")
13244
+ return n}function TV(t,e){var n=t.__transition
13243
13245
  if(!n||!(n=n[e]))throw new Error("transition not found")
13244
- return n}function TV(t,e){var n,i,s,o=t.__transition,r=!0
13245
- if(o){for(s in e=null==e?null:e+"",o)(n=o[s]).name===e?(i=n.state>kV&&n.state<IV,n.state=MV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[s]):r=!1
13246
- r&&delete t.__transition}}function OV(t,e){var n,i
13247
- return function(){var s=DV(this,t),o=s.tween
13246
+ return n}function OV(t,e){var n,i,s,o=t.__transition,r=!0
13247
+ if(o){for(s in e=null==e?null:e+"",o)(n=o[s]).name===e?(i=n.state>SV&&n.state<MV,n.state=$V,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[s]):r=!1
13248
+ r&&delete t.__transition}}function RV(t,e){var n,i
13249
+ return function(){var s=AV(this,t),o=s.tween
13248
13250
  if(o!==n)for(var r=0,a=(i=n=o).length;r<a;++r)if(i[r].name===e){(i=i.slice()).splice(r,1)
13249
- break}s.tween=i}}function RV(t,e,n){var i,s
13251
+ break}s.tween=i}}function FV(t,e,n){var i,s
13250
13252
  if("function"!=typeof n)throw new Error
13251
- return function(){var o=DV(this,t),r=o.tween
13253
+ return function(){var o=AV(this,t),r=o.tween
13252
13254
  if(r!==i){s=(i=r).slice()
13253
13255
  for(var a={name:e,value:n},l=0,c=s.length;l<c;++l)if(s[l].name===e){s[l]=a
13254
- break}l===c&&s.push(a)}o.tween=s}}function FV(t,e,n){var i=t._id
13255
- return t.each((function(){var t=DV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return AV(t,i).value[e]}}function NV(t,e){var n
13256
- return("number"==typeof e?Bz:e instanceof mz?Rz:(n=mz(e))?(e=n,Rz):Hz)(t,e)}function LV(t){return function(){this.removeAttribute(t)}}function BV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function PV(t,e,n){var i,s,o=n+""
13256
+ break}l===c&&s.push(a)}o.tween=s}}function NV(t,e,n){var i=t._id
13257
+ return t.each((function(){var t=AV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return TV(t,i).value[e]}}function LV(t,e){var n
13258
+ return("number"==typeof e?Pz:e instanceof gz?Fz:(n=gz(e))?(e=n,Fz):Uz)(t,e)}function BV(t){return function(){this.removeAttribute(t)}}function PV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zV(t,e,n){var i,s,o=n+""
13257
13259
  return function(){var r=this.getAttribute(t)
13258
- return r===o?null:r===i?s:s=e(i=r,n)}}function zV(t,e,n){var i,s,o=n+""
13260
+ return r===o?null:r===i?s:s=e(i=r,n)}}function VV(t,e,n){var i,s,o=n+""
13259
13261
  return function(){var r=this.getAttributeNS(t.space,t.local)
13260
- return r===o?null:r===i?s:s=e(i=r,n)}}function VV(t,e,n){var i,s,o
13262
+ return r===o?null:r===i?s:s=e(i=r,n)}}function HV(t,e,n){var i,s,o
13261
13263
  return function(){var r,a,l=n(this)
13262
13264
  if(null!=l)return(r=this.getAttribute(t))===(a=l+"")?null:r===i&&a===s?o:(s=a,o=e(i=r,l))
13263
- this.removeAttribute(t)}}function HV(t,e,n){var i,s,o
13265
+ this.removeAttribute(t)}}function UV(t,e,n){var i,s,o
13264
13266
  return function(){var r,a,l=n(this)
13265
13267
  if(null!=l)return(r=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:r===i&&a===s?o:(s=a,o=e(i=r,l))
13266
- this.removeAttributeNS(t.space,t.local)}}function UV(t,e){var n,i
13268
+ this.removeAttributeNS(t.space,t.local)}}function qV(t,e){var n,i
13267
13269
  function s(){var s=e.apply(this,arguments)
13268
- return s!==i&&(n=(i=s)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,s)),n}return s._value=e,s}function qV(t,e){var n,i
13270
+ return s!==i&&(n=(i=s)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,s)),n}return s._value=e,s}function jV(t,e){var n,i
13269
13271
  function s(){var s=e.apply(this,arguments)
13270
- return s!==i&&(n=(i=s)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,s)),n}return s._value=e,s}function jV(t,e){return function(){EV(this,t).delay=+e.apply(this,arguments)}}function WV(t,e){return e=+e,function(){EV(this,t).delay=e}}function GV(t,e){return function(){DV(this,t).duration=+e.apply(this,arguments)}}function ZV(t,e){return e=+e,function(){DV(this,t).duration=e}}var KV=WP.prototype.constructor
13271
- function YV(t){return function(){this.style.removeProperty(t)}}var XV=0
13272
- function JV(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function QV(){return++XV}var tH=WP.prototype
13273
- JV.prototype={constructor:JV,select:function(t){var e=this._name,n=this._id
13274
- "function"!=typeof t&&(t=HB(t))
13275
- for(var i=this._groups,s=i.length,o=new Array(s),r=0;r<s;++r)for(var a,l,c=i[r],d=c.length,h=o[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,$V(h[u],e,n,u,h,AV(a,n)))
13276
- return new JV(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
13277
- "function"!=typeof t&&(t=qB(t))
13278
- for(var i=this._groups,s=i.length,o=[],r=[],a=0;a<s;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=AV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&$V(u,e,n,m,p,f)
13279
- o.push(p),r.push(l)}return new JV(o,r,e,n)},selectChild:tH.selectChild,selectChildren:tH.selectChildren,filter:function(t){"function"!=typeof t&&(t=WB(t))
13272
+ return s!==i&&(n=(i=s)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,s)),n}return s._value=e,s}function WV(t,e){return function(){DV(this,t).delay=+e.apply(this,arguments)}}function GV(t,e){return e=+e,function(){DV(this,t).delay=e}}function ZV(t,e){return function(){AV(this,t).duration=+e.apply(this,arguments)}}function KV(t,e){return e=+e,function(){AV(this,t).duration=e}}var YV=GP.prototype.constructor
13273
+ function XV(t){return function(){this.style.removeProperty(t)}}var JV=0
13274
+ function QV(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function tH(){return++JV}var eH=GP.prototype
13275
+ QV.prototype={constructor:QV,select:function(t){var e=this._name,n=this._id
13276
+ "function"!=typeof t&&(t=UB(t))
13277
+ for(var i=this._groups,s=i.length,o=new Array(s),r=0;r<s;++r)for(var a,l,c=i[r],d=c.length,h=o[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,EV(h[u],e,n,u,h,TV(a,n)))
13278
+ return new QV(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
13279
+ "function"!=typeof t&&(t=jB(t))
13280
+ for(var i=this._groups,s=i.length,o=[],r=[],a=0;a<s;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=TV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&EV(u,e,n,m,p,f)
13281
+ o.push(p),r.push(l)}return new QV(o,r,e,n)},selectChild:eH.selectChild,selectChildren:eH.selectChildren,filter:function(t){"function"!=typeof t&&(t=GB(t))
13280
13282
  for(var e=this._groups,n=e.length,i=new Array(n),s=0;s<n;++s)for(var o,r=e[s],a=r.length,l=i[s]=[],c=0;c<a;++c)(o=r[c])&&t.call(o,o.__data__,c,r)&&l.push(o)
13281
- return new JV(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
13283
+ return new QV(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
13282
13284
  for(var e=this._groups,n=t._groups,i=e.length,s=n.length,o=Math.min(i,s),r=new Array(i),a=0;a<o;++a)for(var l,c=e[a],d=n[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
13283
13285
  for(;a<i;++a)r[a]=e[a]
13284
- return new JV(r,this._parents,this._name,this._id)},selection:function(){return new KV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=QV(),i=this._groups,s=i.length,o=0;o<s;++o)for(var r,a=i[o],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=AV(r,e)
13285
- $V(r,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new JV(i,this._parents,t,n)},call:tH.call,nodes:tH.nodes,node:tH.node,size:tH.size,empty:tH.empty,each:tH.each,on:function(t,e){var n=this._id
13286
- return arguments.length<2?AV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,s,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
13287
- return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?EV:DV
13286
+ return new QV(r,this._parents,this._name,this._id)},selection:function(){return new YV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=tH(),i=this._groups,s=i.length,o=0;o<s;++o)for(var r,a=i[o],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=TV(r,e)
13287
+ EV(r,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new QV(i,this._parents,t,n)},call:eH.call,nodes:eH.nodes,node:eH.node,size:eH.size,empty:eH.empty,each:eH.each,on:function(t,e){var n=this._id
13288
+ return arguments.length<2?TV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,s,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
13289
+ return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?DV:AV
13288
13290
  return function(){var r=o(this,t),a=r.on
13289
- a!==i&&(s=(i=a).copy()).on(e,n),r.on=s}}(n,t,e))},attr:function(t,e){var n=LB(t),i="transform"===n?Xz:NV
13290
- return this.attrTween(t,"function"==typeof e?(n.local?HV:VV)(n,i,FV(this,"attr."+t,e)):null==e?(n.local?BV:LV)(n):(n.local?zV:PV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
13291
+ a!==i&&(s=(i=a).copy()).on(e,n),r.on=s}}(n,t,e))},attr:function(t,e){var n=BB(t),i="transform"===n?Jz:LV
13292
+ return this.attrTween(t,"function"==typeof e?(n.local?UV:HV)(n,i,NV(this,"attr."+t,e)):null==e?(n.local?PV:BV)(n):(n.local?VV:zV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
13291
13293
  if(arguments.length<2)return(n=this.tween(n))&&n._value
13292
13294
  if(null==e)return this.tween(n,null)
13293
13295
  if("function"!=typeof e)throw new Error
13294
- var i=LB(t)
13295
- return this.tween(n,(i.local?UV:qV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Yz:NV
13296
+ var i=BB(t)
13297
+ return this.tween(n,(i.local?qV:jV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Xz:LV
13296
13298
  return null==e?this.styleTween(t,function(t,e){var n,i,s
13297
- return function(){var o=mP(this,t),r=(this.style.removeProperty(t),mP(this,t))
13298
- return o===r?null:o===n&&r===i?s:s=e(n=o,i=r)}}(t,i)).on("end.style."+t,YV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,s,o
13299
- return function(){var r=mP(this,t),a=n(this),l=a+""
13300
- return null==a&&(this.style.removeProperty(t),l=a=mP(this,t)),r===l?null:r===i&&l===s?o:(s=l,o=e(i=r,a))}}(t,i,FV(this,"style."+t,e))).each(function(t,e){var n,i,s,o,r="style."+e,a="end."+r
13301
- return function(){var l=DV(this,t),c=l.on,d=null==l.value[r]?o||(o=YV(e)):void 0
13299
+ return function(){var o=gP(this,t),r=(this.style.removeProperty(t),gP(this,t))
13300
+ return o===r?null:o===n&&r===i?s:s=e(n=o,i=r)}}(t,i)).on("end.style."+t,XV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,s,o
13301
+ return function(){var r=gP(this,t),a=n(this),l=a+""
13302
+ return null==a&&(this.style.removeProperty(t),l=a=gP(this,t)),r===l?null:r===i&&l===s?o:(s=l,o=e(i=r,a))}}(t,i,NV(this,"style."+t,e))).each(function(t,e){var n,i,s,o,r="style."+e,a="end."+r
13303
+ return function(){var l=AV(this,t),c=l.on,d=null==l.value[r]?o||(o=XV(e)):void 0
13302
13304
  c===n&&s===d||(i=(n=c).copy()).on(a,s=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,s,o=n+""
13303
- return function(){var r=mP(this,t)
13305
+ return function(){var r=gP(this,t)
13304
13306
  return r===o?null:r===i?s:s=e(i=r,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
13305
13307
  if(arguments.length<2)return(i=this.tween(i))&&i._value
13306
13308
  if(null==e)return this.tween(i,null)
@@ -13308,7 +13310,7 @@ if("function"!=typeof e)throw new Error
13308
13310
  return this.tween(i,function(t,e,n){var i,s
13309
13311
  function o(){var o=e.apply(this,arguments)
13310
13312
  return o!==s&&(i=(s=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
13311
- this.textContent=null==e?"":e}}(FV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
13313
+ this.textContent=null==e?"":e}}(NV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
13312
13314
  if(arguments.length<1)return(e=this.tween(e))&&e._value
13313
13315
  if(null==t)return this.tween(e,null)
13314
13316
  if("function"!=typeof t)throw new Error
@@ -13317,108 +13319,108 @@ function i(){var i=t.apply(this,arguments)
13317
13319
  return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode
13318
13320
  for(var n in this.__transition)if(+n!==t)return
13319
13321
  e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
13320
- if(t+="",arguments.length<2){for(var i,s=AV(this.node(),n).tween,o=0,r=s.length;o<r;++o)if((i=s[o]).name===t)return i.value
13321
- return null}return this.each((null==e?OV:RV)(n,t,e))},delay:function(t){var e=this._id
13322
- return arguments.length?this.each(("function"==typeof t?jV:WV)(e,t)):AV(this.node(),e).delay},duration:function(t){var e=this._id
13323
- return arguments.length?this.each(("function"==typeof t?GV:ZV)(e,t)):AV(this.node(),e).duration},ease:function(t){var e=this._id
13322
+ if(t+="",arguments.length<2){for(var i,s=TV(this.node(),n).tween,o=0,r=s.length;o<r;++o)if((i=s[o]).name===t)return i.value
13323
+ return null}return this.each((null==e?RV:FV)(n,t,e))},delay:function(t){var e=this._id
13324
+ return arguments.length?this.each(("function"==typeof t?WV:GV)(e,t)):TV(this.node(),e).delay},duration:function(t){var e=this._id
13325
+ return arguments.length?this.each(("function"==typeof t?ZV:KV)(e,t)):TV(this.node(),e).duration},ease:function(t){var e=this._id
13324
13326
  return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
13325
- return function(){DV(this,t).ease=e}}(e,t)):AV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
13327
+ return function(){AV(this,t).ease=e}}(e,t)):TV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
13326
13328
  return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
13327
13329
  if("function"!=typeof n)throw new Error
13328
- DV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,s=n.size()
13330
+ AV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,s=n.size()
13329
13331
  return new Promise((function(o,r){var a={value:r},l={value:function(){0==--s&&o()}}
13330
- n.each((function(){var n=DV(this,i),s=n.on
13331
- s!==t&&((e=(t=s).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===s&&o()}))},[Symbol.iterator]:tH[Symbol.iterator]}
13332
- var eH={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
13333
- function nH(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
13334
- return n}WP.prototype.interrupt=function(t){return this.each((function(){TV(this,t)}))},WP.prototype.transition=function(t){var e,n
13335
- t instanceof JV?(e=t._id,t=t._name):(e=QV(),(n=eH).time=hV(),t=null==t?null:t+"")
13336
- for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var r,a=i[o],l=a.length,c=0;c<l;++c)(r=a[c])&&$V(r,t,e,c,a,n||nH(r,e))
13337
- return new JV(i,this._parents,t,e)}
13338
- var iH=t=>()=>t
13339
- function sH(t,{sourceEvent:e,target:n,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function oH(t,e,n){this.k=t,this.x=e,this.y=n}oH.prototype={constructor:oH,scale:function(t){return 1===t?this:new oH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new oH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
13340
- var rH=new oH(1,0,0)
13341
- function aH(t){t.stopImmediatePropagation()}function lH(t){t.preventDefault(),t.stopImmediatePropagation()}function cH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function dH(){var t=this
13342
- return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function hH(){return this.__zoom||rH}function uH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function pH(){return navigator.maxTouchPoints||"ontouchstart"in this}function fH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],s=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1]
13343
- return t.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r))}function mH(){var t,e,n,i=cH,s=dH,o=fH,r=uH,a=pH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=eV,u=AB("start","zoom","end"),p=500,f=150,m=0,g=10
13344
- function v(t){t.property("__zoom",hH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",I).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",E).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new oH(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,s=e[1]-n[1]*t.k
13345
- return i===t.x&&s===t.y?t:new oH(t.k,i,s)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,r=C(t,o).event(i),a=s.apply(t,o),l=null==n?w(a):"function"==typeof n?n.apply(t,o):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,o):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
13332
+ n.each((function(){var n=AV(this,i),s=n.on
13333
+ s!==t&&((e=(t=s).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===s&&o()}))},[Symbol.iterator]:eH[Symbol.iterator]}
13334
+ var nH={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
13335
+ function iH(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
13336
+ return n}GP.prototype.interrupt=function(t){return this.each((function(){OV(this,t)}))},GP.prototype.transition=function(t){var e,n
13337
+ t instanceof QV?(e=t._id,t=t._name):(e=tH(),(n=nH).time=uV(),t=null==t?null:t+"")
13338
+ for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var r,a=i[o],l=a.length,c=0;c<l;++c)(r=a[c])&&EV(r,t,e,c,a,n||iH(r,e))
13339
+ return new QV(i,this._parents,t,e)}
13340
+ var sH=t=>()=>t
13341
+ function oH(t,{sourceEvent:e,target:n,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function rH(t,e,n){this.k=t,this.x=e,this.y=n}rH.prototype={constructor:rH,scale:function(t){return 1===t?this:new rH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new rH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
13342
+ var aH=new rH(1,0,0)
13343
+ function lH(t){t.stopImmediatePropagation()}function cH(t){t.preventDefault(),t.stopImmediatePropagation()}function dH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function hH(){var t=this
13344
+ return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function uH(){return this.__zoom||aH}function pH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function fH(){return navigator.maxTouchPoints||"ontouchstart"in this}function mH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],s=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1]
13345
+ return t.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r))}function gH(){var t,e,n,i=dH,s=hH,o=mH,r=pH,a=fH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=nV,u=TB("start","zoom","end"),p=500,f=150,m=0,g=10
13346
+ function v(t){t.property("__zoom",uH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",I).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",E).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new rH(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,s=e[1]-n[1]*t.k
13347
+ return i===t.x&&s===t.y?t:new rH(t.k,i,s)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,r=C(t,o).event(i),a=s.apply(t,o),l=null==n?w(a):"function"==typeof n?n.apply(t,o):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,o):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
13346
13348
  return function(t){if(1===t)t=u
13347
13349
  else{var e=p(t),n=c/e[2]
13348
- t=new oH(n,l[0]-e[0]*n,l[1]-e[1]*n)}r.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=s.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),s=this.__zoom,a=Math.max(l[0],Math.min(l[1],s.k*Math.pow(2,r.apply(this,arguments)))),d=ZP(t)
13350
+ t=new rH(n,l[0]-e[0]*n,l[1]-e[1]*n)}r.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=s.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),s=this.__zoom,a=Math.max(l[0],Math.min(l[1],s.k*Math.pow(2,r.apply(this,arguments)))),d=KP(t)
13349
13351
  if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=s.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
13350
13352
  else{if(s.k===a)return
13351
- n.mouse=[d,s.invert(d)],TV(this),n.start()}lH(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",o(y(b(s,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function _(t,...e){if(!n&&i.apply(this,arguments)){var s=t.currentTarget,r=C(this,e,!0).event(t),a=GP(t.view).on("mousemove.zoom",(function(t){if(lH(t),!r.moved){var e=t.clientX-d,n=t.clientY-h
13352
- r.moved=e*e+n*n>m}r.event(t).zoom("mouse",o(y(r.that.__zoom,r.mouse[0]=ZP(t,s),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=GP(t).on("dragstart.drag",null)
13353
- e&&(i.on("click.drag",YP,KP),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,r.moved),lH(t),r.event(t).end()}),!0),l=ZP(t,s),d=t.clientX,h=t.clientY
13354
- !function(t){var e=t.document.documentElement,n=GP(t).on("dragstart.drag",YP,KP)
13355
- "onselectstart"in e?n.on("selectstart.drag",YP,KP):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),aH(t),r.mouse=[l,this.__zoom.invert(l)],TV(this),r.start()}}function I(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,r=ZP(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(r),l=n.k*(t.shiftKey?.5:2),h=o(y(b(n,l),r,a),s.apply(this,e),c)
13356
- lH(t),d>0?GP(this).transition().duration(d).call(x,h,r,t):GP(this).call(v.transform,h,r,t)}}function M(n,...s){if(i.apply(this,arguments)){var o,r,a,l,c=n.touches,d=c.length,h=C(this,s,n.changedTouches.length===d).event(n)
13357
- for(aH(n),r=0;r<d;++r)l=[l=ZP(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,o=!0,h.taps=1+!!t)
13358
- t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),TV(this),h.start())}}function $(t,...e){if(this.__zooming){var n,i,s,r,a=C(this,e).event(t),l=t.changedTouches,d=l.length
13359
- for(lH(t),n=0;n<d;++n)s=ZP(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=s:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=s)
13353
+ n.mouse=[d,s.invert(d)],OV(this),n.start()}cH(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",o(y(b(s,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function _(t,...e){if(!n&&i.apply(this,arguments)){var s=t.currentTarget,r=C(this,e,!0).event(t),a=ZP(t.view).on("mousemove.zoom",(function(t){if(cH(t),!r.moved){var e=t.clientX-d,n=t.clientY-h
13354
+ r.moved=e*e+n*n>m}r.event(t).zoom("mouse",o(y(r.that.__zoom,r.mouse[0]=KP(t,s),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=ZP(t).on("dragstart.drag",null)
13355
+ e&&(i.on("click.drag",XP,YP),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,r.moved),cH(t),r.event(t).end()}),!0),l=KP(t,s),d=t.clientX,h=t.clientY
13356
+ !function(t){var e=t.document.documentElement,n=ZP(t).on("dragstart.drag",XP,YP)
13357
+ "onselectstart"in e?n.on("selectstart.drag",XP,YP):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),lH(t),r.mouse=[l,this.__zoom.invert(l)],OV(this),r.start()}}function I(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,r=KP(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(r),l=n.k*(t.shiftKey?.5:2),h=o(y(b(n,l),r,a),s.apply(this,e),c)
13358
+ cH(t),d>0?ZP(this).transition().duration(d).call(x,h,r,t):ZP(this).call(v.transform,h,r,t)}}function M(n,...s){if(i.apply(this,arguments)){var o,r,a,l,c=n.touches,d=c.length,h=C(this,s,n.changedTouches.length===d).event(n)
13359
+ for(lH(n),r=0;r<d;++r)l=[l=KP(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,o=!0,h.taps=1+!!t)
13360
+ t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),OV(this),h.start())}}function $(t,...e){if(this.__zooming){var n,i,s,r,a=C(this,e).event(t),l=t.changedTouches,d=l.length
13361
+ for(cH(t),n=0;n<d;++n)s=KP(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=s:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=s)
13360
13362
  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
13361
13363
  i=b(i,Math.sqrt(m/g)),s=[(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
13362
13364
  s=a.touch0[0],r=a.touch0[1]}a.zoom("touch",o(y(i,s,r),a.extent,c))}}function E(t,...i){if(this.__zooming){var s,o,r=C(this,i).event(t),a=t.changedTouches,l=a.length
13363
- for(aH(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),s=0;s<l;++s)o=a[s],r.touch0&&r.touch0[2]===o.identifier?delete r.touch0:r.touch1&&r.touch1[2]===o.identifier&&delete r.touch1
13365
+ for(lH(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),s=0;s<l;++s)o=a[s],r.touch0&&r.touch0[2]===o.identifier?delete r.touch0:r.touch1&&r.touch1[2]===o.identifier&&delete r.touch1
13364
13366
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
13365
- else if(r.end(),2===r.taps&&(o=ZP(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<g)){var c=GP(this).on("dblclick.zoom")
13367
+ else if(r.end(),2===r.taps&&(o=KP(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<g)){var c=ZP(this).on("dblclick.zoom")
13366
13368
  c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,i){var s=t.selection?t.selection():t
13367
- s.property("__zoom",hH),t!==s?x(t,e,n,i):s.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=s.apply(this,arguments),i=this.__zoom,r=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof e?e.apply(this,arguments):e
13369
+ s.property("__zoom",uH),t!==s?x(t,e,n,i):s.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=s.apply(this,arguments),i=this.__zoom,r=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof e?e.apply(this,arguments):e
13368
13370
  return o(y(b(i,l),r,a),t,c)}),n,i)},v.translateBy=function(t,e,n,i){v.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),s.apply(this,arguments),c)}),null,i)},v.translateTo=function(t,e,n,i,r){v.transform(t,(function(){var t=s.apply(this,arguments),r=this.__zoom,a=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i
13369
- return o(rH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,r)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=GP(this.that).datum()
13370
- u.call(t,this.that,new sH(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(r="function"==typeof t?t:iH(+t),v):r},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:iH(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:iH(!!t),v):a},v.extent=function(t){return arguments.length?(s="function"==typeof t?t:iH([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):s},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(o=t,v):o},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
13371
- return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}oH.prototype
13372
- const gH=new TextDecoder("utf-8"),vH=t=>gH.decode(t),bH=new TextEncoder,yH=t=>bH.encode(t),wH=t=>"function"==typeof t,xH=t=>null!=t&&Object(t)===t,CH=t=>xH(t)&&wH(t.then),kH=t=>xH(t)&&wH(t[Symbol.iterator]),SH=t=>xH(t)&&wH(t[Symbol.asyncIterator]),_H=t=>xH(t)&&xH(t.schema),IH=t=>xH(t)&&"done"in t&&"value"in t,MH=t=>xH(t)&&wH(t.stat)&&(t=>"number"==typeof t)(t.fd),$H=t=>xH(t)&&DH(t.body),EH=t=>"_getDOMStream"in t&&"_getNodeStream"in t,DH=t=>xH(t)&&wH(t.cancel)&&wH(t.getReader)&&!EH(t),AH=t=>xH(t)&&wH(t.read)&&wH(t.pipe)&&(t=>"boolean"==typeof t)(t.readable)&&!EH(t),TH=t=>xH(t)&&wH(t.clear)&&wH(t.bytes)&&wH(t.position)&&wH(t.setPosition)&&wH(t.capacity)&&wH(t.getBufferIdentifier)&&wH(t.createLong),OH="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer
13373
- function RH(t,e,n=0,i=e.byteLength){const s=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,s),r=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,s))
13374
- return o.set(r,n),t}function FH(t,e){const n=function(t){const e=t[0]?[t[0]]:[]
13371
+ return o(aH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,r)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=ZP(this.that).datum()
13372
+ u.call(t,this.that,new oH(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(r="function"==typeof t?t:sH(+t),v):r},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:sH(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:sH(!!t),v):a},v.extent=function(t){return arguments.length?(s="function"==typeof t?t:sH([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):s},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(o=t,v):o},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
13373
+ return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}rH.prototype
13374
+ const vH=new TextDecoder("utf-8"),bH=t=>vH.decode(t),yH=new TextEncoder,wH=t=>yH.encode(t),xH=t=>"function"==typeof t,CH=t=>null!=t&&Object(t)===t,kH=t=>CH(t)&&xH(t.then),SH=t=>CH(t)&&xH(t[Symbol.iterator]),_H=t=>CH(t)&&xH(t[Symbol.asyncIterator]),IH=t=>CH(t)&&CH(t.schema),MH=t=>CH(t)&&"done"in t&&"value"in t,$H=t=>CH(t)&&xH(t.stat)&&(t=>"number"==typeof t)(t.fd),EH=t=>CH(t)&&AH(t.body),DH=t=>"_getDOMStream"in t&&"_getNodeStream"in t,AH=t=>CH(t)&&xH(t.cancel)&&xH(t.getReader)&&!DH(t),TH=t=>CH(t)&&xH(t.read)&&xH(t.pipe)&&(t=>"boolean"==typeof t)(t.readable)&&!DH(t),OH=t=>CH(t)&&xH(t.clear)&&xH(t.bytes)&&xH(t.position)&&xH(t.setPosition)&&xH(t.capacity)&&xH(t.getBufferIdentifier)&&xH(t.createLong),RH="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer
13375
+ function FH(t,e,n=0,i=e.byteLength){const s=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,s),r=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,s))
13376
+ return o.set(r,n),t}function NH(t,e){const n=function(t){const e=t[0]?[t[0]]:[]
13375
13377
  let n,i,s,o
13376
13378
  for(let r,a,l=0,c=0,d=t.length;++l<d;)r=e[c],a=t[l],!r||!a||r.buffer!==a.buffer||a.byteOffset<r.byteOffset?a&&(e[++c]=a):(({byteOffset:n,byteLength:s}=r),({byteOffset:i,byteLength:o}=a),n+s<i||i+o<n?a&&(e[++c]=a):e[c]=new Uint8Array(r.buffer,n,i-n+o))
13377
13379
  return e}(t),i=n.reduce(((t,e)=>t+e.byteLength),0)
13378
13380
  let s,o,r,a=0,l=-1
13379
13381
  const c=Math.min(e||Number.POSITIVE_INFINITY,i)
13380
- for(const t=n.length;++l<t;){if(s=n[l],o=s.subarray(0,Math.min(s.length,c-a)),c<=a+o.length){o.length<s.length?n[l]=s.subarray(o.length):o.length===s.length&&l++,r?RH(r,o,a):r=o
13381
- break}RH(r||(r=new Uint8Array(c)),o,a),a+=o.length}return[r||new Uint8Array(0),n.slice(l),i-(r?r.byteLength:0)]}function NH(t,e){let n=IH(e)?e.value:e
13382
- return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"==typeof n&&(n=yH(n)),n instanceof ArrayBuffer||n instanceof OH?new t(n):TH(n)?NH(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const LH=t=>NH(Int32Array,t),BH=t=>NH(BigInt64Array,t),PH=t=>NH(Uint8Array,t),zH=t=>(t.next(),t)
13383
- const VH=t=>function*(t,e){const n=function*(t){yield t},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof OH?n(e):kH(e)?e:n(e)
13384
- return yield*zH(function*(e){let n=null
13385
- do{n=e.next(yield NH(t,n))}while(!n.done)}(i[Symbol.iterator]())),new t}(Uint8Array,t)
13386
- function HH(t,e){return s(this,arguments,(function*(){if(CH(e))return yield i(yield i(yield*o(r(HH(t,yield i(e))))))
13387
- const n=function(t){return s(this,arguments,(function*(){yield yield i(yield i(t))}))},a="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof OH?n(e):kH(e)?function(t){return s(this,arguments,(function*(){yield i(yield*o(r(zH(function*(t){let e=null
13388
- do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))}))}(e):SH(e)?e:n(e)
13389
- return yield i(yield*o(r(zH(function(e){return s(this,arguments,(function*(){let n=null
13390
- do{n=yield i(e.next(yield yield i(NH(t,n))))}while(!n.done)}))}(a[Symbol.asyncIterator]()))))),yield i(new t)}))}const UH=t=>HH(Uint8Array,t)
13391
- var qH={fromIterable:t=>jH(function*(t){let e,n,i,s,o=!1,r=[],a=0
13392
- function l(){return"peek"===i?FH(r,s)[0]:([n,r,a]=FH(r,s),n)}({cmd:i,size:s}=(yield null)||{cmd:"read",size:0})
13393
- const c=VH(t)[Symbol.iterator]()
13394
- try{do{if(({done:e,value:n}=Number.isNaN(s-a)?c.next():c.next(s-a)),!e&&n.byteLength>0&&(r.push(n),a+=n.byteLength),e||s<=a)do{({cmd:i,size:s}=yield l())}while(s<a)}while(!e)}catch(t){(o=!0)&&"function"==typeof c.throw&&c.throw(t)}finally{!1===o&&"function"==typeof c.return&&c.return(null)}return null}(t)),fromAsyncIterable:t=>jH(function(t){return s(this,arguments,(function*(){let e,n,s,o,r=!1,a=[],l=0
13395
- function c(){return"peek"===s?FH(a,o)[0]:([n,a,l]=FH(a,o),n)}({cmd:s,size:o}=(yield yield i(null))||{cmd:"read",size:0})
13396
- const d=UH(t)[Symbol.asyncIterator]()
13397
- try{do{if(({done:e,value:n}=Number.isNaN(o-l)?yield i(d.next()):yield i(d.next(o-l))),!e&&n.byteLength>0&&(a.push(n),l+=n.byteLength),e||o<=l)do{({cmd:s,size:o}=yield yield i(c()))}while(o<l)}while(!e)}catch(t){(r=!0)&&"function"==typeof d.throw&&(yield i(d.throw(t)))}finally{!1===r&&"function"==typeof d.return&&(yield i(d.return(new Uint8Array(0))))}return yield i(null)}))}(t)),fromDOMStream:t=>jH(function(t){return s(this,arguments,(function*(){let e,n,s,o=!1,r=!1,a=[],l=0
13398
- function c(){return"peek"===n?FH(a,s)[0]:([e,a,l]=FH(a,s),e)}({cmd:n,size:s}=(yield yield i(null))||{cmd:"read",size:0})
13399
- const d=new WH(t)
13400
- try{do{if(({done:o,value:e}=Number.isNaN(s-l)?yield i(d.read()):yield i(d.read(s-l))),!o&&e.byteLength>0&&(a.push(PH(e)),l+=e.byteLength),o||s<=l)do{({cmd:n,size:s}=yield yield i(c()))}while(s<l)}while(!o)}catch(t){(r=!0)&&(yield i(d.cancel(t)))}finally{!1===r?yield i(d.cancel()):t.locked&&d.releaseLock()}return yield i(null)}))}(t)),fromNodeStream:t=>jH(function(t){return s(this,arguments,(function*(){const e=[]
13382
+ for(const t=n.length;++l<t;){if(s=n[l],o=s.subarray(0,Math.min(s.length,c-a)),c<=a+o.length){o.length<s.length?n[l]=s.subarray(o.length):o.length===s.length&&l++,r?FH(r,o,a):r=o
13383
+ break}FH(r||(r=new Uint8Array(c)),o,a),a+=o.length}return[r||new Uint8Array(0),n.slice(l),i-(r?r.byteLength:0)]}function LH(t,e){let n=MH(e)?e.value:e
13384
+ return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"==typeof n&&(n=wH(n)),n instanceof ArrayBuffer||n instanceof RH?new t(n):OH(n)?LH(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const BH=t=>LH(Int32Array,t),PH=t=>LH(BigInt64Array,t),zH=t=>LH(Uint8Array,t),VH=t=>(t.next(),t)
13385
+ const HH=t=>function*(t,e){const n=function*(t){yield t},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof RH?n(e):SH(e)?e:n(e)
13386
+ return yield*VH(function*(e){let n=null
13387
+ do{n=e.next(yield LH(t,n))}while(!n.done)}(i[Symbol.iterator]())),new t}(Uint8Array,t)
13388
+ function UH(t,e){return s(this,arguments,(function*(){if(kH(e))return yield i(yield i(yield*o(r(UH(t,yield i(e))))))
13389
+ const n=function(t){return s(this,arguments,(function*(){yield yield i(yield i(t))}))},a="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof RH?n(e):SH(e)?function(t){return s(this,arguments,(function*(){yield i(yield*o(r(VH(function*(t){let e=null
13390
+ do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))}))}(e):_H(e)?e:n(e)
13391
+ return yield i(yield*o(r(VH(function(e){return s(this,arguments,(function*(){let n=null
13392
+ do{n=yield i(e.next(yield yield i(LH(t,n))))}while(!n.done)}))}(a[Symbol.asyncIterator]()))))),yield i(new t)}))}const qH=t=>UH(Uint8Array,t)
13393
+ var jH={fromIterable:t=>WH(function*(t){let e,n,i,s,o=!1,r=[],a=0
13394
+ function l(){return"peek"===i?NH(r,s)[0]:([n,r,a]=NH(r,s),n)}({cmd:i,size:s}=(yield null)||{cmd:"read",size:0})
13395
+ const c=HH(t)[Symbol.iterator]()
13396
+ try{do{if(({done:e,value:n}=Number.isNaN(s-a)?c.next():c.next(s-a)),!e&&n.byteLength>0&&(r.push(n),a+=n.byteLength),e||s<=a)do{({cmd:i,size:s}=yield l())}while(s<a)}while(!e)}catch(t){(o=!0)&&"function"==typeof c.throw&&c.throw(t)}finally{!1===o&&"function"==typeof c.return&&c.return(null)}return null}(t)),fromAsyncIterable:t=>WH(function(t){return s(this,arguments,(function*(){let e,n,s,o,r=!1,a=[],l=0
13397
+ function c(){return"peek"===s?NH(a,o)[0]:([n,a,l]=NH(a,o),n)}({cmd:s,size:o}=(yield yield i(null))||{cmd:"read",size:0})
13398
+ const d=qH(t)[Symbol.asyncIterator]()
13399
+ try{do{if(({done:e,value:n}=Number.isNaN(o-l)?yield i(d.next()):yield i(d.next(o-l))),!e&&n.byteLength>0&&(a.push(n),l+=n.byteLength),e||o<=l)do{({cmd:s,size:o}=yield yield i(c()))}while(o<l)}while(!e)}catch(t){(r=!0)&&"function"==typeof d.throw&&(yield i(d.throw(t)))}finally{!1===r&&"function"==typeof d.return&&(yield i(d.return(new Uint8Array(0))))}return yield i(null)}))}(t)),fromDOMStream:t=>WH(function(t){return s(this,arguments,(function*(){let e,n,s,o=!1,r=!1,a=[],l=0
13400
+ function c(){return"peek"===n?NH(a,s)[0]:([e,a,l]=NH(a,s),e)}({cmd:n,size:s}=(yield yield i(null))||{cmd:"read",size:0})
13401
+ const d=new GH(t)
13402
+ try{do{if(({done:o,value:e}=Number.isNaN(s-l)?yield i(d.read()):yield i(d.read(s-l))),!o&&e.byteLength>0&&(a.push(zH(e)),l+=e.byteLength),o||s<=l)do{({cmd:n,size:s}=yield yield i(c()))}while(s<l)}while(!o)}catch(t){(r=!0)&&(yield i(d.cancel(t)))}finally{!1===r?yield i(d.cancel()):t.locked&&d.releaseLock()}return yield i(null)}))}(t)),fromNodeStream:t=>WH(function(t){return s(this,arguments,(function*(){const e=[]
13401
13403
  let n,s,o,r="error",a=!1,l=null,c=0,d=[]
13402
- function h(){return"peek"===n?FH(d,s)[0]:([o,d,c]=FH(d,s),o)}if(({cmd:n,size:s}=(yield yield i(null))||{cmd:"read",size:0}),t.isTTY)return yield yield i(new Uint8Array(0)),yield i(null)
13403
- try{e[0]=GH(t,"end"),e[1]=GH(t,"error")
13404
- do{if(e[2]=GH(t,"readable"),[r,l]=yield i(Promise.race(e.map((t=>t[2])))),"error"===r)break
13405
- if((a="end"===r)||(Number.isFinite(s-c)?(o=PH(t.read(s-c)),o.byteLength<s-c&&(o=PH(t.read()))):o=PH(t.read()),o.byteLength>0&&(d.push(o),c+=o.byteLength)),a||s<=c)do{({cmd:n,size:s}=yield yield i(h()))}while(s<c)}while(!a)}finally{yield i(u(e,"error"===r?l:null))}return yield i(null)
13404
+ function h(){return"peek"===n?NH(d,s)[0]:([o,d,c]=NH(d,s),o)}if(({cmd:n,size:s}=(yield yield i(null))||{cmd:"read",size:0}),t.isTTY)return yield yield i(new Uint8Array(0)),yield i(null)
13405
+ try{e[0]=ZH(t,"end"),e[1]=ZH(t,"error")
13406
+ do{if(e[2]=ZH(t,"readable"),[r,l]=yield i(Promise.race(e.map((t=>t[2])))),"error"===r)break
13407
+ if((a="end"===r)||(Number.isFinite(s-c)?(o=zH(t.read(s-c)),o.byteLength<s-c&&(o=zH(t.read()))):o=zH(t.read()),o.byteLength>0&&(d.push(o),c+=o.byteLength)),a||s<=c)do{({cmd:n,size:s}=yield yield i(h()))}while(s<c)}while(!a)}finally{yield i(u(e,"error"===r?l:null))}return yield i(null)
13406
13408
  function u(e,n){return o=d=null,new Promise(((i,s)=>{for(const[n,i]of e)t.off(n,i)
13407
13409
  try{const e=t.destroy
13408
13410
  e&&e.call(t,n),n=void 0}catch(t){n=t||n}finally{null!=n?s(n):i()}}))}}))}(t)),toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}}
13409
- const jH=t=>(t.next(),t)
13410
- class WH{constructor(t){this.source=t,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch((()=>{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return e(this,void 0,void 0,(function*(){const{reader:e,source:n}=this
13411
+ const WH=t=>(t.next(),t)
13412
+ class GH{constructor(t){this.source=t,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch((()=>{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return e(this,void 0,void 0,(function*(){const{reader:e,source:n}=this
13411
13413
  e&&(yield e.cancel(t).catch((()=>{}))),n&&n.locked&&this.releaseLock()}))}read(t){return e(this,void 0,void 0,(function*(){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)}
13412
13414
  const e=yield this.reader.read()
13413
- return!e.done&&(e.value=PH(e)),e}))}}const GH=(t,e)=>{const n=t=>i([e,t])
13415
+ return!e.done&&(e.value=zH(e)),e}))}}const ZH=(t,e)=>{const n=t=>i([e,t])
13414
13416
  let i
13415
13417
  return[e,n,new Promise((s=>(i=s)&&t.once(e,n)))]}
13416
- var ZH,KH,YH,XH,JH,QH
13417
- !function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(ZH||(ZH={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(KH||(KH={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(YH||(YH={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(XH||(XH={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(JH||(JH={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(QH||(QH={}))
13418
- const tU=new Int32Array(2),eU=new Float32Array(tU.buffer),nU=new Float64Array(tU.buffer),iU=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0]
13419
- var sU
13420
- !function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(sU||(sU={}))
13421
- let oU=class t{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new t(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readUint64(t){return BigInt.asUintN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readFloat32(t){return tU[0]=this.readInt32(t),eU[0]}readFloat64(t){return tU[iU?0:1]=this.readInt32(t),tU[iU?1:0]=this.readInt32(t+4),nU[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){eU[0]=e,this.writeInt32(t,tU[0])}writeFloat64(t,e){nU[0]=e,this.writeInt32(t,tU[iU?0:1]),this.writeInt32(t+4,tU[iU?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.")
13418
+ var KH,YH,XH,JH,QH,tU
13419
+ !function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(KH||(KH={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(YH||(YH={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(XH||(XH={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(JH||(JH={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(QH||(QH={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(tU||(tU={}))
13420
+ const eU=new Int32Array(2),nU=new Float32Array(eU.buffer),iU=new Float64Array(eU.buffer),sU=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0]
13421
+ var oU
13422
+ !function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(oU||(oU={}))
13423
+ let rU=class t{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new t(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readUint64(t){return BigInt.asUintN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readFloat32(t){return eU[0]=this.readInt32(t),nU[0]}readFloat64(t){return eU[sU?0:1]=this.readInt32(t),eU[sU?1:0]=this.readInt32(t+4),iU[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){nU[0]=e,this.writeInt32(t,eU[0])}writeFloat64(t,e){iU[0]=e,this.writeInt32(t,eU[sU?0:1]),this.writeInt32(t+4,eU[sU?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.")
13422
13424
  let t=""
13423
13425
  for(let e=0;e<4;e++)t+=String.fromCharCode(this.readInt8(this.position_+4+e))
13424
13426
  return t}__offset(t,e){const n=t-this.readInt32(t)
@@ -13426,19 +13428,19 @@ return e<this.readInt16(n)?this.readInt16(n+e):0}__union(t,e){return t.bb_pos=e+
13426
13428
  const n=this.readInt32(t)
13427
13429
  t+=4
13428
13430
  const i=this.bytes_.subarray(t,t+n)
13429
- return e===sU.UTF8_BYTES?i:this.text_decoder_.decode(i)}__union_with_string(t,e){return"string"==typeof t?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(4!=t.length)throw new Error("FlatBuffers: file identifier must be length 4")
13431
+ return e===oU.UTF8_BYTES?i:this.text_decoder_.decode(i)}__union_with_string(t,e){return"string"==typeof t?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(4!=t.length)throw new Error("FlatBuffers: file identifier must be length 4")
13430
13432
  for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1
13431
13433
  return!0}createScalarList(t,e){const n=[]
13432
13434
  for(let i=0;i<e;++i){const e=t(i)
13433
13435
  null!==e&&n.push(e)}return n}createObjList(t,e){const n=[]
13434
13436
  for(let i=0;i<e;++i){const e=t(i)
13435
- null!==e&&n.push(e.unpack())}return n}},rU=class t{constructor(t){let e
13436
- this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder,e=t||1024,this.bb=oU.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e)
13437
+ null!==e&&n.push(e.unpack())}return n}},aU=class t{constructor(t){let e
13438
+ this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder,e=t||1024,this.bb=rU.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e)
13437
13439
  const i=1+~(this.bb.capacity()-this.space+n)&e-1
13438
13440
  for(;this.space<i+e+n;){const e=this.bb.capacity()
13439
13441
  this.bb=t.growByteBuffer(this.bb),this.space+=this.bb.capacity()-e}this.pad(i)}pad(t){for(let e=0;e<t;e++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,e,n){(this.force_defaults||e!=n)&&(this.addInt8(e),this.slot(t))}addFieldInt16(t,e,n){(this.force_defaults||e!=n)&&(this.addInt16(e),this.slot(t))}addFieldInt32(t,e,n){(this.force_defaults||e!=n)&&(this.addInt32(e),this.slot(t))}addFieldInt64(t,e,n){(this.force_defaults||e!==n)&&(this.addInt64(e),this.slot(t))}addFieldFloat32(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat32(e),this.slot(t))}addFieldFloat64(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat64(e),this.slot(t))}addFieldOffset(t,e,n){(this.force_defaults||e!=n)&&(this.addOffset(e),this.slot(t))}addFieldStruct(t,e,n){e!=n&&(this.nested(e),this.slot(t))}nested(t){if(t!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(t){null!==this.vtable&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){const e=t.capacity()
13440
13442
  if(3221225472&e)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.")
13441
- const n=e<<1,i=oU.allocate(n)
13443
+ const n=e<<1,i=rU.allocate(n)
13442
13444
  return i.setPosition(n-e),i.bytes().set(t.bytes(),n-e),i}addOffset(t){this.prep(4,0),this.writeInt32(this.offset()-t+4)}startObject(t){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=t
13443
13445
  for(let e=0;e<t;e++)this.vtable[e]=0
13444
13446
  this.isNested=!0,this.object_start=this.offset()}endObject(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject")
@@ -13468,105 +13470,105 @@ return e=t instanceof Uint8Array?t:this.text_encoder.encode(t),this.addInt8(0),t
13468
13470
  for(let n=0;n<t.length;++n){const i=t[n]
13469
13471
  if(null===i)throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")
13470
13472
  e.push(this.createObjectOffset(i))}return e}createStructOffsetList(t,e){return e(this,t.length),this.createObjectOffsetList(t.slice().reverse()),this.endVector()}}
13471
- var aU,lU
13472
- !function(t){t[t.BUFFER=0]="BUFFER"}(aU||(aU={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(lU||(lU={}))
13473
- class cU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new cU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new cU).__init(t.readInt32(t.position())+t.position(),t)}codec(){const t=this.bb.__offset(this.bb_pos,4)
13474
- return t?this.bb.readInt8(this.bb_pos+t):lU.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6)
13475
- return t?this.bb.readInt8(this.bb_pos+t):aU.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,lU.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,aU.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,n){return cU.startBodyCompression(t),cU.addCodec(t,e),cU.addMethod(t,n),cU.endBodyCompression(t)}}class dU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(null!=n?n:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}let hU=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(null!=n?n:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}},uU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}length(){const t=this.bb.__offset(this.bb_pos,4)
13473
+ var lU,cU
13474
+ !function(t){t[t.BUFFER=0]="BUFFER"}(lU||(lU={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(cU||(cU={}))
13475
+ class dU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new dU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new dU).__init(t.readInt32(t.position())+t.position(),t)}codec(){const t=this.bb.__offset(this.bb_pos,4)
13476
+ return t?this.bb.readInt8(this.bb_pos+t):cU.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6)
13477
+ return t?this.bb.readInt8(this.bb_pos+t):lU.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,cU.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,lU.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,n){return dU.startBodyCompression(t),dU.addCodec(t,e),dU.addMethod(t,n),dU.endBodyCompression(t)}}class hU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(null!=n?n:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}let uU=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(null!=n?n:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}},pU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}length(){const t=this.bb.__offset(this.bb_pos,4)
13476
13478
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}nodes(t,e){const n=this.bb.__offset(this.bb_pos,6)
13477
- return n?(e||new hU).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6)
13479
+ return n?(e||new uU).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6)
13478
13480
  return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){const n=this.bb.__offset(this.bb_pos,8)
13479
- return n?(e||new dU).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8)
13481
+ return n?(e||new hU).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8)
13480
13482
  return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){const e=this.bb.__offset(this.bb_pos,10)
13481
- return e?(t||new cU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}},pU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){const t=this.bb.__offset(this.bb_pos,4)
13483
+ return e?(t||new dU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}},fU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){const t=this.bb.__offset(this.bb_pos,4)
13482
13484
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}data(t){const e=this.bb.__offset(this.bb_pos,6)
13483
- return e?(t||new uU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8)
13485
+ return e?(t||new pU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8)
13484
13486
  return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}}
13485
- var fU,mU
13486
- !function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(fU||(fU={})),function(t){t[t.DenseArray=0]="DenseArray"}(mU||(mU={}))
13487
- class gU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,e){return(e||new gU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new gU).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4)
13487
+ var mU,gU
13488
+ !function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(mU||(mU={})),function(t){t[t.DenseArray=0]="DenseArray"}(gU||(gU={}))
13489
+ class vU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,e){return(e||new vU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new vU).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4)
13488
13490
  return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){const t=this.bb.__offset(this.bb_pos,6)
13489
- return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){return t.endObject()}static createInt(t,e,n){return gU.startInt(t),gU.addBitWidth(t,e),gU.addIsSigned(t,n),gU.endInt(t)}}class vU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new vU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new vU).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4)
13491
+ return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){return t.endObject()}static createInt(t,e,n){return vU.startInt(t),vU.addBitWidth(t,e),vU.addIsSigned(t,n),vU.endInt(t)}}class bU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new bU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new bU).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4)
13490
13492
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}indexType(t){const e=this.bb.__offset(this.bb_pos,6)
13491
- return e?(t||new gU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8)
13493
+ return e?(t||new vU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8)
13492
13494
  return!!t&&!!this.bb.readInt8(this.bb_pos+t)}dictionaryKind(){const t=this.bb.__offset(this.bb_pos,10)
13493
- return t?this.bb.readInt16(this.bb_pos+t):mU.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static addDictionaryKind(t,e){t.addFieldInt16(3,e,mU.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class bU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,e){return(e||new bU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new bU).__init(t.readInt32(t.position())+t.position(),t)}key(t){const e=this.bb.__offset(this.bb_pos,4)
13495
+ return t?this.bb.readInt16(this.bb_pos+t):gU.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static addDictionaryKind(t,e){t.addFieldInt16(3,e,gU.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class yU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,e){return(e||new yU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new yU).__init(t.readInt32(t.position())+t.position(),t)}key(t){const e=this.bb.__offset(this.bb_pos,4)
13494
13496
  return e?this.bb.__string(this.bb_pos+e,t):null}value(t){const e=this.bb.__offset(this.bb_pos,6)
13495
- return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,e,n){return bU.startKeyValue(t),bU.addKey(t,e),bU.addValue(t,n),bU.endKeyValue(t)}}let yU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(e){return t.startBinary(e),t.endBinary(e)}},wU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(e){return t.startBool(e),t.endBool(e)}},xU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13496
- return t?this.bb.readInt16(this.bb_pos+t):XH.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,XH.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(e,n){return t.startDate(e),t.addUnit(e,n),t.endDate(e)}},CU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){const t=this.bb.__offset(this.bb_pos,4)
13497
+ return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,e,n){return yU.startKeyValue(t),yU.addKey(t,e),yU.addValue(t,n),yU.endKeyValue(t)}}let wU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(e){return t.startBinary(e),t.endBinary(e)}},xU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(e){return t.startBool(e),t.endBool(e)}},CU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13498
+ return t?this.bb.readInt16(this.bb_pos+t):JH.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,JH.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(e,n){return t.startDate(e),t.addUnit(e,n),t.endDate(e)}},kU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){const t=this.bb.__offset(this.bb_pos,4)
13497
13499
  return t?this.bb.readInt32(this.bb_pos+t):0}scale(){const t=this.bb.__offset(this.bb_pos,6)
13498
13500
  return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){const t=this.bb.__offset(this.bb_pos,8)
13499
- return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static addBitWidth(t,e){t.addFieldInt32(2,e,128)}static endDecimal(t){return t.endObject()}static createDecimal(e,n,i,s){return t.startDecimal(e),t.addPrecision(e,n),t.addScale(e,i),t.addBitWidth(e,s),t.endDecimal(e)}},kU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13500
- return t?this.bb.readInt16(this.bb_pos+t):JH.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,JH.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(e,n){return t.startDuration(e),t.addUnit(e,n),t.endDuration(e)}},SU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const t=this.bb.__offset(this.bb_pos,4)
13501
- return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(e,n){return t.startFixedSizeBinary(e),t.addByteWidth(e,n),t.endFixedSizeBinary(e)}},_U=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const t=this.bb.__offset(this.bb_pos,4)
13501
+ return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static addBitWidth(t,e){t.addFieldInt32(2,e,128)}static endDecimal(t){return t.endObject()}static createDecimal(e,n,i,s){return t.startDecimal(e),t.addPrecision(e,n),t.addScale(e,i),t.addBitWidth(e,s),t.endDecimal(e)}},SU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13502
+ return t?this.bb.readInt16(this.bb_pos+t):QH.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,QH.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(e,n){return t.startDuration(e),t.addUnit(e,n),t.endDuration(e)}},_U=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const t=this.bb.__offset(this.bb_pos,4)
13503
+ return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(e,n){return t.startFixedSizeBinary(e),t.addByteWidth(e,n),t.endFixedSizeBinary(e)}},IU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const t=this.bb.__offset(this.bb_pos,4)
13502
13504
  return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(e,n){return t.startFixedSizeList(e),t.addListSize(e,n),t.endFixedSizeList(e)}}
13503
- class IU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new IU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new IU).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4)
13504
- return t?this.bb.readInt16(this.bb_pos+t):YH.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,YH.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return IU.startFloatingPoint(t),IU.addPrecision(t,e),IU.endFloatingPoint(t)}}class MU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new MU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new MU).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13505
- return t?this.bb.readInt16(this.bb_pos+t):QH.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,QH.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return MU.startInterval(t),MU.addUnit(t,e),MU.endInterval(t)}}let $U=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){return t.endObject()}static createLargeBinary(e){return t.startLargeBinary(e),t.endLargeBinary(e)}},EU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){return t.endObject()}static createLargeUtf8(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}},DU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(e){return t.startList(e),t.endList(e)}},AU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const t=this.bb.__offset(this.bb_pos,4)
13506
- return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){return t.endObject()}static createMap(e,n){return t.startMap(e),t.addKeysSorted(e,n),t.endMap(e)}},TU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(e){return t.startNull(e),t.endNull(e)}}
13507
- class OU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,e){return(e||new OU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new OU).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return OU.startStruct_(t),OU.endStruct_(t)}}class RU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new RU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new RU).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13508
- return t?this.bb.readInt16(this.bb_pos+t):JH.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6)
13509
- return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,JH.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,n){return RU.startTime(t),RU.addUnit(t,e),RU.addBitWidth(t,n),RU.endTime(t)}}class FU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new FU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new FU).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13510
- return t?this.bb.readInt16(this.bb_pos+t):JH.SECOND}timezone(t){const e=this.bb.__offset(this.bb_pos,6)
13511
- return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,JH.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,n){return FU.startTimestamp(t),FU.addUnit(t,e),FU.addTimezone(t,n),FU.endTimestamp(t)}}class NU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new NU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new NU).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4)
13512
- return t?this.bb.readInt16(this.bb_pos+t):KH.Sparse}typeIds(t){const e=this.bb.__offset(this.bb_pos,6)
13505
+ class MU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new MU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new MU).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4)
13506
+ return t?this.bb.readInt16(this.bb_pos+t):XH.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,XH.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return MU.startFloatingPoint(t),MU.addPrecision(t,e),MU.endFloatingPoint(t)}}class $U{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new $U).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new $U).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13507
+ return t?this.bb.readInt16(this.bb_pos+t):tU.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,tU.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return $U.startInterval(t),$U.addUnit(t,e),$U.endInterval(t)}}let EU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){return t.endObject()}static createLargeBinary(e){return t.startLargeBinary(e),t.endLargeBinary(e)}},DU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){return t.endObject()}static createLargeUtf8(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}},AU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(e){return t.startList(e),t.endList(e)}},TU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const t=this.bb.__offset(this.bb_pos,4)
13508
+ return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){return t.endObject()}static createMap(e,n){return t.startMap(e),t.addKeysSorted(e,n),t.endMap(e)}},OU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(e){return t.startNull(e),t.endNull(e)}}
13509
+ class RU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,e){return(e||new RU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new RU).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return RU.startStruct_(t),RU.endStruct_(t)}}class FU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new FU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new FU).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13510
+ return t?this.bb.readInt16(this.bb_pos+t):QH.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6)
13511
+ return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,QH.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,n){return FU.startTime(t),FU.addUnit(t,e),FU.addBitWidth(t,n),FU.endTime(t)}}class NU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new NU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new NU).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
13512
+ return t?this.bb.readInt16(this.bb_pos+t):QH.SECOND}timezone(t){const e=this.bb.__offset(this.bb_pos,6)
13513
+ return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,QH.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,n){return NU.startTimestamp(t),NU.addUnit(t,e),NU.addTimezone(t,n),NU.endTimestamp(t)}}class LU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new LU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new LU).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4)
13514
+ return t?this.bb.readInt16(this.bb_pos+t):YH.Sparse}typeIds(t){const e=this.bb.__offset(this.bb_pos,6)
13513
13515
  return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}typeIdsLength(){const t=this.bb.__offset(this.bb_pos,6)
13514
13516
  return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){const t=this.bb.__offset(this.bb_pos,6)
13515
- return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,e){t.addFieldInt16(0,e,KH.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4)
13517
+ return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,e){t.addFieldInt16(0,e,YH.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4)
13516
13518
  for(let n=e.length-1;n>=0;n--)t.addInt32(e[n])
13517
- return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,n){return NU.startUnion(t),NU.addMode(t,e),NU.addTypeIds(t,n),NU.endUnion(t)}}let LU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(e){return t.startUtf8(e),t.endUtf8(e)}}
13518
- var BU
13519
- !function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded"}(BU||(BU={}))
13520
- let PU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}name(t){const e=this.bb.__offset(this.bb_pos,4)
13519
+ return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,n){return LU.startUnion(t),LU.addMode(t,e),LU.addTypeIds(t,n),LU.endUnion(t)}}let BU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(e){return t.startUtf8(e),t.endUtf8(e)}}
13520
+ var PU
13521
+ !function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded"}(PU||(PU={}))
13522
+ let zU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}name(t){const e=this.bb.__offset(this.bb_pos,4)
13521
13523
  return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){const t=this.bb.__offset(this.bb_pos,6)
13522
13524
  return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){const t=this.bb.__offset(this.bb_pos,8)
13523
- return t?this.bb.readUint8(this.bb_pos+t):BU.NONE}type(t){const e=this.bb.__offset(this.bb_pos,10)
13525
+ return t?this.bb.readUint8(this.bb_pos+t):PU.NONE}type(t){const e=this.bb.__offset(this.bb_pos,10)
13524
13526
  return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){const e=this.bb.__offset(this.bb_pos,12)
13525
- return e?(t||new vU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(e,n){const i=this.bb.__offset(this.bb_pos,14)
13527
+ return e?(t||new bU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(e,n){const i=this.bb.__offset(this.bb_pos,14)
13526
13528
  return i?(n||new t).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*e),this.bb):null}childrenLength(){const t=this.bb.__offset(this.bb_pos,14)
13527
13529
  return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,16)
13528
- return n?(e||new bU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,16)
13529
- return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,BU.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4)
13530
+ return n?(e||new yU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,16)
13531
+ return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,PU.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4)
13530
13532
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
13531
13533
  return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4)
13532
13534
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
13533
- return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},zU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const t=this.bb.__offset(this.bb_pos,4)
13534
- return t?this.bb.readInt16(this.bb_pos+t):fU.Little}fields(t,e){const n=this.bb.__offset(this.bb_pos,6)
13535
- return n?(e||new PU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}fieldsLength(){const t=this.bb.__offset(this.bb_pos,6)
13535
+ return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},VU=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const t=this.bb.__offset(this.bb_pos,4)
13536
+ return t?this.bb.readInt16(this.bb_pos+t):mU.Little}fields(t,e){const n=this.bb.__offset(this.bb_pos,6)
13537
+ return n?(e||new zU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}fieldsLength(){const t=this.bb.__offset(this.bb_pos,6)
13536
13538
  return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,8)
13537
- return n?(e||new bU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,8)
13539
+ return n?(e||new yU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,8)
13538
13540
  return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){const e=this.bb.__offset(this.bb_pos,10)
13539
13541
  return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):BigInt(0)}featuresLength(){const t=this.bb.__offset(this.bb_pos,10)
13540
- return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,fU.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4)
13542
+ return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,mU.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4)
13541
13543
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
13542
13544
  return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4)
13543
13545
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
13544
13546
  return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8)
13545
13547
  for(let n=e.length-1;n>=0;n--)t.addInt64(e[n])
13546
13548
  return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(e,n,i,s,o){return t.startSchema(e),t.addEndianness(e,n),t.addFields(e,i),t.addCustomMetadata(e,s),t.addFeatures(e,o),t.endSchema(e)}}
13547
- var VU,HU,UU
13548
- !function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(VU||(VU={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(HU||(HU={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(UU||(UU={}))
13549
- function qU(t){if(null===t)return"null"
13549
+ var HU,UU,qU
13550
+ !function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(HU||(HU={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(UU||(UU={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(qU||(qU={}))
13551
+ function jU(t){if(null===t)return"null"
13550
13552
  if(undefined===t)return"undefined"
13551
13553
  switch(typeof t){case"number":case"bigint":return`${t}`
13552
- case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map((t=>qU(t)))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,((t,e)=>"bigint"==typeof e?`${e}`:e))}function jU(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
13553
- return Number(t)}function WU(t,e){return jU(t/e)+jU(t%e)/jU(e)}const GU=Symbol.for("isArrowBigNum")
13554
- function ZU(t,...e){return 0===e.length?Object.setPrototypeOf(NH(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function KU(...t){return ZU.apply(this,t)}function YU(...t){return ZU.apply(this,t)}function XU(...t){return ZU.apply(this,t)}ZU.prototype[GU]=!0,ZU.prototype.toJSON=function(){return`"${tq(this)}"`},ZU.prototype.valueOf=function(t){return QU(this,t)},ZU.prototype.toString=function(){return tq(this)},ZU.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return QU(this)
13555
- case"string":return tq(this)
13556
- case"default":return function(t){if(8===t.byteLength){return new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}return tq(t)}(this)}return tq(this)},Object.setPrototypeOf(KU.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(YU.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(XU.prototype,Object.create(Uint32Array.prototype)),Object.assign(KU.prototype,ZU.prototype,{constructor:KU,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(YU.prototype,ZU.prototype,{constructor:YU,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(XU.prototype,ZU.prototype,{constructor:XU,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array})
13557
- const JU=BigInt(4294967296)*BigInt(4294967296)-BigInt(1)
13558
- function QU(t,e){const{buffer:n,byteOffset:i,byteLength:s,signed:o}=t,r=new BigUint64Array(n,i,s/8),a=o&&r.at(-1)&BigInt(1)<<BigInt(63)
13554
+ case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map((t=>jU(t)))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,((t,e)=>"bigint"==typeof e?`${e}`:e))}function WU(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
13555
+ return Number(t)}function GU(t,e){return WU(t/e)+WU(t%e)/WU(e)}const ZU=Symbol.for("isArrowBigNum")
13556
+ function KU(t,...e){return 0===e.length?Object.setPrototypeOf(LH(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function YU(...t){return KU.apply(this,t)}function XU(...t){return KU.apply(this,t)}function JU(...t){return KU.apply(this,t)}KU.prototype[ZU]=!0,KU.prototype.toJSON=function(){return`"${eq(this)}"`},KU.prototype.valueOf=function(t){return tq(this,t)},KU.prototype.toString=function(){return eq(this)},KU.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return tq(this)
13557
+ case"string":return eq(this)
13558
+ case"default":return function(t){if(8===t.byteLength){return new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}return eq(t)}(this)}return eq(this)},Object.setPrototypeOf(YU.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(XU.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(JU.prototype,Object.create(Uint32Array.prototype)),Object.assign(YU.prototype,KU.prototype,{constructor:YU,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(XU.prototype,KU.prototype,{constructor:XU,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(JU.prototype,KU.prototype,{constructor:JU,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array})
13559
+ const QU=BigInt(4294967296)*BigInt(4294967296)-BigInt(1)
13560
+ function tq(t,e){const{buffer:n,byteOffset:i,byteLength:s,signed:o}=t,r=new BigUint64Array(n,i,s/8),a=o&&r.at(-1)&BigInt(1)<<BigInt(63)
13559
13561
  let l=BigInt(0),c=0
13560
- if(a){for(const t of r)l|=(t^JU)*(BigInt(1)<<BigInt(64*c++))
13562
+ if(a){for(const t of r)l|=(t^QU)*(BigInt(1)<<BigInt(64*c++))
13561
13563
  l*=BigInt(-1),l-=BigInt(1)}else for(const t of r)l|=t*(BigInt(1)<<BigInt(64*c++))
13562
13564
  if("number"==typeof e){const t=BigInt(Math.pow(10,e)),n=l%t
13563
- return jU(l/t)+jU(n)/jU(t)}return jU(l)}function tq(t){if(8===t.byteLength){return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`}if(!t.signed)return eq(t)
13565
+ return WU(l/t)+WU(n)/WU(t)}return WU(l)}function eq(t){if(8===t.byteLength){return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`}if(!t.signed)return nq(t)
13564
13566
  let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2)
13565
- if(new Int16Array([e.at(-1)])[0]>=0)return eq(t)
13567
+ if(new Int16Array([e.at(-1)])[0]>=0)return nq(t)
13566
13568
  e=e.slice()
13567
13569
  let n=1
13568
13570
  for(let t=0;t<e.length;t++){const i=e[t],s=~i+n
13569
- e[t]=s,n&=0===i?1:0}return`-${eq(e)}`}function eq(t){let e=""
13571
+ e[t]=s,n&=0===i?1:0}return`-${nq(e)}`}function nq(t){let e=""
13570
13572
  const n=new Uint32Array(2)
13571
13573
  let i=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2)
13572
13574
  const s=new Uint32Array((i=new Uint16Array(i).reverse()).buffer)
@@ -13574,269 +13576,269 @@ let o=-1
13574
13576
  const r=i.length-1
13575
13577
  do{for(n[0]=i[o=0];o<r;)i[o++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+i[o]
13576
13578
  i[o]=n[1]=n[0]/10,n[0]=n[0]-10*n[1],e=`${n[0]}${e}`}while(s[0]||s[1]||s[2]||s[3])
13577
- return null!=e?e:"0"}class nq{static new(t,e){switch(e){case!0:return new KU(t)
13578
- case!1:return new YU(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new KU(t)}return 16===t.byteLength?new XU(t):new YU(t)}static signed(t){return new KU(t)}static unsigned(t){return new YU(t)}static decimal(t){return new XU(t)}constructor(t,e){return nq.new(t,e)}}var iq,sq,oq,rq,aq,lq,cq,dq,hq,uq,pq,fq,mq,gq,vq,bq,yq,wq,xq,Cq,kq,Sq,_q
13579
- class Iq{static isNull(t){return(null==t?void 0:t.typeId)===HU.Null}static isInt(t){return(null==t?void 0:t.typeId)===HU.Int}static isFloat(t){return(null==t?void 0:t.typeId)===HU.Float}static isBinary(t){return(null==t?void 0:t.typeId)===HU.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===HU.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===HU.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===HU.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===HU.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===HU.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===HU.Date}static isTime(t){return(null==t?void 0:t.typeId)===HU.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===HU.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===HU.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===HU.Duration}static isList(t){return(null==t?void 0:t.typeId)===HU.List}static isStruct(t){return(null==t?void 0:t.typeId)===HU.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===HU.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===HU.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===HU.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===HU.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===HU.Dictionary}static isDenseUnion(t){return Iq.isUnion(t)&&t.mode===KH.Dense}static isSparseUnion(t){return Iq.isUnion(t)&&t.mode===KH.Sparse}constructor(t){this.typeId=t}}iq=Symbol.toStringTag,Iq[iq]=((_q=Iq.prototype).children=null,_q.ArrayType=Array,_q.OffsetArrayType=Int32Array,_q[Symbol.toStringTag]="DataType")
13580
- class Mq extends Iq{constructor(){super(HU.Null)}toString(){return"Null"}}sq=Symbol.toStringTag,Mq[sq]=(t=>t[Symbol.toStringTag]="Null")(Mq.prototype)
13581
- class $q extends Iq{constructor(t,e){super(HU.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
13579
+ return null!=e?e:"0"}class iq{static new(t,e){switch(e){case!0:return new YU(t)
13580
+ case!1:return new XU(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new YU(t)}return 16===t.byteLength?new JU(t):new XU(t)}static signed(t){return new YU(t)}static unsigned(t){return new XU(t)}static decimal(t){return new JU(t)}constructor(t,e){return iq.new(t,e)}}var sq,oq,rq,aq,lq,cq,dq,hq,uq,pq,fq,mq,gq,vq,bq,yq,wq,xq,Cq,kq,Sq,_q,Iq
13581
+ class Mq{static isNull(t){return(null==t?void 0:t.typeId)===UU.Null}static isInt(t){return(null==t?void 0:t.typeId)===UU.Int}static isFloat(t){return(null==t?void 0:t.typeId)===UU.Float}static isBinary(t){return(null==t?void 0:t.typeId)===UU.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===UU.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===UU.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===UU.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===UU.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===UU.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===UU.Date}static isTime(t){return(null==t?void 0:t.typeId)===UU.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===UU.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===UU.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===UU.Duration}static isList(t){return(null==t?void 0:t.typeId)===UU.List}static isStruct(t){return(null==t?void 0:t.typeId)===UU.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===UU.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===UU.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===UU.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===UU.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===UU.Dictionary}static isDenseUnion(t){return Mq.isUnion(t)&&t.mode===YH.Dense}static isSparseUnion(t){return Mq.isUnion(t)&&t.mode===YH.Sparse}constructor(t){this.typeId=t}}sq=Symbol.toStringTag,Mq[sq]=((Iq=Mq.prototype).children=null,Iq.ArrayType=Array,Iq.OffsetArrayType=Int32Array,Iq[Symbol.toStringTag]="DataType")
13582
+ class $q extends Mq{constructor(){super(UU.Null)}toString(){return"Null"}}oq=Symbol.toStringTag,$q[oq]=(t=>t[Symbol.toStringTag]="Null")($q.prototype)
13583
+ class Eq extends Mq{constructor(t,e){super(UU.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
13582
13584
  case 16:return this.isSigned?Int16Array:Uint16Array
13583
13585
  case 32:return this.isSigned?Int32Array:Uint32Array
13584
- case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}oq=Symbol.toStringTag,$q[oq]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))($q.prototype)
13585
- class Eq extends $q{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Eq.prototype,"ArrayType",{value:Int32Array})
13586
- class Dq extends Iq{constructor(t){super(HU.Float),this.precision=t}get ArrayType(){switch(this.precision){case YH.HALF:return Uint16Array
13587
- case YH.SINGLE:return Float32Array
13588
- case YH.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}rq=Symbol.toStringTag,Dq[rq]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Dq.prototype)
13589
- class Aq extends Iq{constructor(){super(HU.Binary)}toString(){return"Binary"}}aq=Symbol.toStringTag,Aq[aq]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Aq.prototype)
13590
- class Tq extends Iq{constructor(){super(HU.LargeBinary)}toString(){return"LargeBinary"}}lq=Symbol.toStringTag,Tq[lq]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(Tq.prototype)
13591
- class Oq extends Iq{constructor(){super(HU.Utf8)}toString(){return"Utf8"}}cq=Symbol.toStringTag,Oq[cq]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Oq.prototype)
13592
- class Rq extends Iq{constructor(){super(HU.LargeUtf8)}toString(){return"LargeUtf8"}}dq=Symbol.toStringTag,Rq[dq]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(Rq.prototype)
13593
- class Fq extends Iq{constructor(){super(HU.Bool)}toString(){return"Bool"}}hq=Symbol.toStringTag,Fq[hq]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Fq.prototype)
13594
- class Nq extends Iq{constructor(t,e,n=128){super(HU.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}uq=Symbol.toStringTag,Nq[uq]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Nq.prototype)
13595
- class Lq extends Iq{constructor(t){super(HU.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${XH[this.unit]}>`}get ArrayType(){return this.unit===XH.DAY?Int32Array:BigInt64Array}}pq=Symbol.toStringTag,Lq[pq]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(Lq.prototype)
13596
- class Bq extends Iq{constructor(t,e){super(HU.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${JH[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
13597
- case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}fq=Symbol.toStringTag,Bq[fq]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Bq.prototype)
13598
- class Pq extends Iq{constructor(t,e){super(HU.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${JH[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}mq=Symbol.toStringTag,Pq[mq]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(Pq.prototype)
13599
- class zq extends Iq{constructor(t){super(HU.Interval),this.unit=t}toString(){return`Interval<${QH[this.unit]}>`}}gq=Symbol.toStringTag,zq[gq]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(zq.prototype)
13600
- class Vq extends Iq{constructor(t){super(HU.Duration),this.unit=t}toString(){return`Duration<${JH[this.unit]}>`}}vq=Symbol.toStringTag,Vq[vq]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(Vq.prototype)
13601
- class Hq extends Iq{constructor(t){super(HU.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}bq=Symbol.toStringTag,Hq[bq]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Hq.prototype)
13602
- class Uq extends Iq{constructor(t){super(HU.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}yq=Symbol.toStringTag,Uq[yq]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(Uq.prototype)
13603
- class qq extends Iq{constructor(t,e,n){super(HU.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}wq=Symbol.toStringTag,qq[wq]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(qq.prototype)
13604
- class jq extends Iq{constructor(t){super(HU.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}xq=Symbol.toStringTag,jq[xq]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(jq.prototype)
13605
- class Wq extends Iq{constructor(t,e){super(HU.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}Cq=Symbol.toStringTag,Wq[Cq]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Wq.prototype)
13606
- class Gq extends Iq{constructor(t,e=!1){var n,i,s
13607
- if(super(HU.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
13586
+ case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}rq=Symbol.toStringTag,Eq[rq]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Eq.prototype)
13587
+ class Dq extends Eq{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Dq.prototype,"ArrayType",{value:Int32Array})
13588
+ class Aq extends Mq{constructor(t){super(UU.Float),this.precision=t}get ArrayType(){switch(this.precision){case XH.HALF:return Uint16Array
13589
+ case XH.SINGLE:return Float32Array
13590
+ case XH.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}aq=Symbol.toStringTag,Aq[aq]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Aq.prototype)
13591
+ class Tq extends Mq{constructor(){super(UU.Binary)}toString(){return"Binary"}}lq=Symbol.toStringTag,Tq[lq]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Tq.prototype)
13592
+ class Oq extends Mq{constructor(){super(UU.LargeBinary)}toString(){return"LargeBinary"}}cq=Symbol.toStringTag,Oq[cq]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(Oq.prototype)
13593
+ class Rq extends Mq{constructor(){super(UU.Utf8)}toString(){return"Utf8"}}dq=Symbol.toStringTag,Rq[dq]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Rq.prototype)
13594
+ class Fq extends Mq{constructor(){super(UU.LargeUtf8)}toString(){return"LargeUtf8"}}hq=Symbol.toStringTag,Fq[hq]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(Fq.prototype)
13595
+ class Nq extends Mq{constructor(){super(UU.Bool)}toString(){return"Bool"}}uq=Symbol.toStringTag,Nq[uq]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Nq.prototype)
13596
+ class Lq extends Mq{constructor(t,e,n=128){super(UU.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}pq=Symbol.toStringTag,Lq[pq]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Lq.prototype)
13597
+ class Bq extends Mq{constructor(t){super(UU.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${JH[this.unit]}>`}get ArrayType(){return this.unit===JH.DAY?Int32Array:BigInt64Array}}fq=Symbol.toStringTag,Bq[fq]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(Bq.prototype)
13598
+ class Pq extends Mq{constructor(t,e){super(UU.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${QH[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
13599
+ case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}mq=Symbol.toStringTag,Pq[mq]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Pq.prototype)
13600
+ class zq extends Mq{constructor(t,e){super(UU.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${QH[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}gq=Symbol.toStringTag,zq[gq]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(zq.prototype)
13601
+ class Vq extends Mq{constructor(t){super(UU.Interval),this.unit=t}toString(){return`Interval<${tU[this.unit]}>`}}vq=Symbol.toStringTag,Vq[vq]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Vq.prototype)
13602
+ class Hq extends Mq{constructor(t){super(UU.Duration),this.unit=t}toString(){return`Duration<${QH[this.unit]}>`}}bq=Symbol.toStringTag,Hq[bq]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(Hq.prototype)
13603
+ class Uq extends Mq{constructor(t){super(UU.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}yq=Symbol.toStringTag,Uq[yq]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Uq.prototype)
13604
+ class qq extends Mq{constructor(t){super(UU.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}wq=Symbol.toStringTag,qq[wq]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(qq.prototype)
13605
+ class jq extends Mq{constructor(t,e,n){super(UU.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}xq=Symbol.toStringTag,jq[xq]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(jq.prototype)
13606
+ class Wq extends Mq{constructor(t){super(UU.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}Cq=Symbol.toStringTag,Wq[Cq]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Wq.prototype)
13607
+ class Gq extends Mq{constructor(t,e){super(UU.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}kq=Symbol.toStringTag,Gq[kq]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Gq.prototype)
13608
+ class Zq extends Mq{constructor(t,e=!1){var n,i,s
13609
+ if(super(UU.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
13608
13610
  e&&(e.name="key")
13609
13611
  const n=null===(s=null==t?void 0:t.type)||void 0===s?void 0:s.children[1]
13610
- n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}kq=Symbol.toStringTag,Gq[kq]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Gq.prototype)
13611
- const Zq=(Kq=-1,()=>++Kq)
13612
- var Kq
13613
- class Yq extends Iq{constructor(t,e,n,i){super(HU.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?Zq():jU(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}>`}}function Xq(t){const e=t
13614
- switch(t.typeId){case HU.Decimal:return t.bitWidth/32
13615
- case HU.Interval:return 1+e.unit
13616
- case HU.FixedSizeList:return e.listSize
13617
- case HU.FixedSizeBinary:return e.byteWidth
13618
- default:return 1}}Sq=Symbol.toStringTag,Yq[Sq]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Yq.prototype)
13619
- class Jq{visitMany(t,...e){return t.map(((t,n)=>this.visit(t,...e.map((t=>t[n])))))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return function(t,e,n=!0){if("number"==typeof e)return Qq(t,e,n)
13620
- if("string"==typeof e&&e in HU)return Qq(t,HU[e],n)
13621
- if(e&&e instanceof Iq)return Qq(t,tj(e),n)
13622
- if((null==e?void 0:e.type)&&e.type instanceof Iq)return Qq(t,tj(e.type),n)
13623
- return Qq(t,HU.NONE,n)}(this,t,e)}getVisitFnByTypeId(t,e=!0){return Qq(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitLargeUtf8(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitDuration(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}}function Qq(t,e,n=!0){let i=null
13624
- switch(e){case HU.Null:i=t.visitNull
13612
+ n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}Sq=Symbol.toStringTag,Zq[Sq]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Zq.prototype)
13613
+ const Kq=(Yq=-1,()=>++Yq)
13614
+ var Yq
13615
+ class Xq extends Mq{constructor(t,e,n,i){super(UU.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?Kq():WU(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}>`}}function Jq(t){const e=t
13616
+ switch(t.typeId){case UU.Decimal:return t.bitWidth/32
13617
+ case UU.Interval:return 1+e.unit
13618
+ case UU.FixedSizeList:return e.listSize
13619
+ case UU.FixedSizeBinary:return e.byteWidth
13620
+ default:return 1}}_q=Symbol.toStringTag,Xq[_q]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Xq.prototype)
13621
+ class Qq{visitMany(t,...e){return t.map(((t,n)=>this.visit(t,...e.map((t=>t[n])))))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return function(t,e,n=!0){if("number"==typeof e)return tj(t,e,n)
13622
+ if("string"==typeof e&&e in UU)return tj(t,UU[e],n)
13623
+ if(e&&e instanceof Mq)return tj(t,ej(e),n)
13624
+ if((null==e?void 0:e.type)&&e.type instanceof Mq)return tj(t,ej(e.type),n)
13625
+ return tj(t,UU.NONE,n)}(this,t,e)}getVisitFnByTypeId(t,e=!0){return tj(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitLargeUtf8(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitDuration(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}}function tj(t,e,n=!0){let i=null
13626
+ switch(e){case UU.Null:i=t.visitNull
13625
13627
  break
13626
- case HU.Bool:i=t.visitBool
13628
+ case UU.Bool:i=t.visitBool
13627
13629
  break
13628
- case HU.Int:i=t.visitInt
13630
+ case UU.Int:i=t.visitInt
13629
13631
  break
13630
- case HU.Int8:i=t.visitInt8||t.visitInt
13632
+ case UU.Int8:i=t.visitInt8||t.visitInt
13631
13633
  break
13632
- case HU.Int16:i=t.visitInt16||t.visitInt
13634
+ case UU.Int16:i=t.visitInt16||t.visitInt
13633
13635
  break
13634
- case HU.Int32:i=t.visitInt32||t.visitInt
13636
+ case UU.Int32:i=t.visitInt32||t.visitInt
13635
13637
  break
13636
- case HU.Int64:i=t.visitInt64||t.visitInt
13638
+ case UU.Int64:i=t.visitInt64||t.visitInt
13637
13639
  break
13638
- case HU.Uint8:i=t.visitUint8||t.visitInt
13640
+ case UU.Uint8:i=t.visitUint8||t.visitInt
13639
13641
  break
13640
- case HU.Uint16:i=t.visitUint16||t.visitInt
13642
+ case UU.Uint16:i=t.visitUint16||t.visitInt
13641
13643
  break
13642
- case HU.Uint32:i=t.visitUint32||t.visitInt
13644
+ case UU.Uint32:i=t.visitUint32||t.visitInt
13643
13645
  break
13644
- case HU.Uint64:i=t.visitUint64||t.visitInt
13646
+ case UU.Uint64:i=t.visitUint64||t.visitInt
13645
13647
  break
13646
- case HU.Float:i=t.visitFloat
13648
+ case UU.Float:i=t.visitFloat
13647
13649
  break
13648
- case HU.Float16:i=t.visitFloat16||t.visitFloat
13650
+ case UU.Float16:i=t.visitFloat16||t.visitFloat
13649
13651
  break
13650
- case HU.Float32:i=t.visitFloat32||t.visitFloat
13652
+ case UU.Float32:i=t.visitFloat32||t.visitFloat
13651
13653
  break
13652
- case HU.Float64:i=t.visitFloat64||t.visitFloat
13654
+ case UU.Float64:i=t.visitFloat64||t.visitFloat
13653
13655
  break
13654
- case HU.Utf8:i=t.visitUtf8
13656
+ case UU.Utf8:i=t.visitUtf8
13655
13657
  break
13656
- case HU.LargeUtf8:i=t.visitLargeUtf8
13658
+ case UU.LargeUtf8:i=t.visitLargeUtf8
13657
13659
  break
13658
- case HU.Binary:i=t.visitBinary
13660
+ case UU.Binary:i=t.visitBinary
13659
13661
  break
13660
- case HU.LargeBinary:i=t.visitLargeBinary
13662
+ case UU.LargeBinary:i=t.visitLargeBinary
13661
13663
  break
13662
- case HU.FixedSizeBinary:i=t.visitFixedSizeBinary
13664
+ case UU.FixedSizeBinary:i=t.visitFixedSizeBinary
13663
13665
  break
13664
- case HU.Date:i=t.visitDate
13666
+ case UU.Date:i=t.visitDate
13665
13667
  break
13666
- case HU.DateDay:i=t.visitDateDay||t.visitDate
13668
+ case UU.DateDay:i=t.visitDateDay||t.visitDate
13667
13669
  break
13668
- case HU.DateMillisecond:i=t.visitDateMillisecond||t.visitDate
13670
+ case UU.DateMillisecond:i=t.visitDateMillisecond||t.visitDate
13669
13671
  break
13670
- case HU.Timestamp:i=t.visitTimestamp
13672
+ case UU.Timestamp:i=t.visitTimestamp
13671
13673
  break
13672
- case HU.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp
13674
+ case UU.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp
13673
13675
  break
13674
- case HU.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp
13676
+ case UU.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp
13675
13677
  break
13676
- case HU.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp
13678
+ case UU.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp
13677
13679
  break
13678
- case HU.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp
13680
+ case UU.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp
13679
13681
  break
13680
- case HU.Time:i=t.visitTime
13682
+ case UU.Time:i=t.visitTime
13681
13683
  break
13682
- case HU.TimeSecond:i=t.visitTimeSecond||t.visitTime
13684
+ case UU.TimeSecond:i=t.visitTimeSecond||t.visitTime
13683
13685
  break
13684
- case HU.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime
13686
+ case UU.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime
13685
13687
  break
13686
- case HU.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime
13688
+ case UU.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime
13687
13689
  break
13688
- case HU.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime
13690
+ case UU.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime
13689
13691
  break
13690
- case HU.Decimal:i=t.visitDecimal
13692
+ case UU.Decimal:i=t.visitDecimal
13691
13693
  break
13692
- case HU.List:i=t.visitList
13694
+ case UU.List:i=t.visitList
13693
13695
  break
13694
- case HU.Struct:i=t.visitStruct
13696
+ case UU.Struct:i=t.visitStruct
13695
13697
  break
13696
- case HU.Union:i=t.visitUnion
13698
+ case UU.Union:i=t.visitUnion
13697
13699
  break
13698
- case HU.DenseUnion:i=t.visitDenseUnion||t.visitUnion
13700
+ case UU.DenseUnion:i=t.visitDenseUnion||t.visitUnion
13699
13701
  break
13700
- case HU.SparseUnion:i=t.visitSparseUnion||t.visitUnion
13702
+ case UU.SparseUnion:i=t.visitSparseUnion||t.visitUnion
13701
13703
  break
13702
- case HU.Dictionary:i=t.visitDictionary
13704
+ case UU.Dictionary:i=t.visitDictionary
13703
13705
  break
13704
- case HU.Interval:i=t.visitInterval
13706
+ case UU.Interval:i=t.visitInterval
13705
13707
  break
13706
- case HU.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval
13708
+ case UU.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval
13707
13709
  break
13708
- case HU.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval
13710
+ case UU.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval
13709
13711
  break
13710
- case HU.Duration:i=t.visitDuration
13712
+ case UU.Duration:i=t.visitDuration
13711
13713
  break
13712
- case HU.DurationSecond:i=t.visitDurationSecond||t.visitDuration
13714
+ case UU.DurationSecond:i=t.visitDurationSecond||t.visitDuration
13713
13715
  break
13714
- case HU.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration
13716
+ case UU.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration
13715
13717
  break
13716
- case HU.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration
13718
+ case UU.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration
13717
13719
  break
13718
- case HU.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration
13720
+ case UU.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration
13719
13721
  break
13720
- case HU.FixedSizeList:i=t.visitFixedSizeList
13722
+ case UU.FixedSizeList:i=t.visitFixedSizeList
13721
13723
  break
13722
- case HU.Map:i=t.visitMap}if("function"==typeof i)return i
13724
+ case UU.Map:i=t.visitMap}if("function"==typeof i)return i
13723
13725
  if(!n)return()=>null
13724
- throw new Error(`Unrecognized type '${HU[e]}'`)}function tj(t){switch(t.typeId){case HU.Null:return HU.Null
13725
- case HU.Int:{const{bitWidth:e,isSigned:n}=t
13726
- switch(e){case 8:return n?HU.Int8:HU.Uint8
13727
- case 16:return n?HU.Int16:HU.Uint16
13728
- case 32:return n?HU.Int32:HU.Uint32
13729
- case 64:return n?HU.Int64:HU.Uint64}return HU.Int}case HU.Float:switch(t.precision){case YH.HALF:return HU.Float16
13730
- case YH.SINGLE:return HU.Float32
13731
- case YH.DOUBLE:return HU.Float64}return HU.Float
13732
- case HU.Binary:return HU.Binary
13733
- case HU.LargeBinary:return HU.LargeBinary
13734
- case HU.Utf8:return HU.Utf8
13735
- case HU.LargeUtf8:return HU.LargeUtf8
13736
- case HU.Bool:return HU.Bool
13737
- case HU.Decimal:return HU.Decimal
13738
- case HU.Time:switch(t.unit){case JH.SECOND:return HU.TimeSecond
13739
- case JH.MILLISECOND:return HU.TimeMillisecond
13740
- case JH.MICROSECOND:return HU.TimeMicrosecond
13741
- case JH.NANOSECOND:return HU.TimeNanosecond}return HU.Time
13742
- case HU.Timestamp:switch(t.unit){case JH.SECOND:return HU.TimestampSecond
13743
- case JH.MILLISECOND:return HU.TimestampMillisecond
13744
- case JH.MICROSECOND:return HU.TimestampMicrosecond
13745
- case JH.NANOSECOND:return HU.TimestampNanosecond}return HU.Timestamp
13746
- case HU.Date:switch(t.unit){case XH.DAY:return HU.DateDay
13747
- case XH.MILLISECOND:return HU.DateMillisecond}return HU.Date
13748
- case HU.Interval:switch(t.unit){case QH.DAY_TIME:return HU.IntervalDayTime
13749
- case QH.YEAR_MONTH:return HU.IntervalYearMonth}return HU.Interval
13750
- case HU.Duration:switch(t.unit){case JH.SECOND:return HU.DurationSecond
13751
- case JH.MILLISECOND:return HU.DurationMillisecond
13752
- case JH.MICROSECOND:return HU.DurationMicrosecond
13753
- case JH.NANOSECOND:return HU.DurationNanosecond}return HU.Duration
13754
- case HU.Map:return HU.Map
13755
- case HU.List:return HU.List
13756
- case HU.Struct:return HU.Struct
13757
- case HU.Union:switch(t.mode){case KH.Dense:return HU.DenseUnion
13758
- case KH.Sparse:return HU.SparseUnion}return HU.Union
13759
- case HU.FixedSizeBinary:return HU.FixedSizeBinary
13760
- case HU.FixedSizeList:return HU.FixedSizeList
13761
- case HU.Dictionary:return HU.Dictionary}throw new Error(`Unrecognized type '${HU[t.typeId]}'`)}Jq.prototype.visitInt8=null,Jq.prototype.visitInt16=null,Jq.prototype.visitInt32=null,Jq.prototype.visitInt64=null,Jq.prototype.visitUint8=null,Jq.prototype.visitUint16=null,Jq.prototype.visitUint32=null,Jq.prototype.visitUint64=null,Jq.prototype.visitFloat16=null,Jq.prototype.visitFloat32=null,Jq.prototype.visitFloat64=null,Jq.prototype.visitDateDay=null,Jq.prototype.visitDateMillisecond=null,Jq.prototype.visitTimestampSecond=null,Jq.prototype.visitTimestampMillisecond=null,Jq.prototype.visitTimestampMicrosecond=null,Jq.prototype.visitTimestampNanosecond=null,Jq.prototype.visitTimeSecond=null,Jq.prototype.visitTimeMillisecond=null,Jq.prototype.visitTimeMicrosecond=null,Jq.prototype.visitTimeNanosecond=null,Jq.prototype.visitDenseUnion=null,Jq.prototype.visitSparseUnion=null,Jq.prototype.visitIntervalDayTime=null,Jq.prototype.visitIntervalYearMonth=null,Jq.prototype.visitDuration=null,Jq.prototype.visitDurationSecond=null,Jq.prototype.visitDurationMillisecond=null,Jq.prototype.visitDurationMicrosecond=null,Jq.prototype.visitDurationNanosecond=null
13762
- const ej=new Float64Array(1),nj=new Uint32Array(ej.buffer)
13763
- function ij(t){const e=(31744&t)>>10,n=(1023&t)/1024,i=Math.pow(-1,(32768&t)>>15)
13726
+ throw new Error(`Unrecognized type '${UU[e]}'`)}function ej(t){switch(t.typeId){case UU.Null:return UU.Null
13727
+ case UU.Int:{const{bitWidth:e,isSigned:n}=t
13728
+ switch(e){case 8:return n?UU.Int8:UU.Uint8
13729
+ case 16:return n?UU.Int16:UU.Uint16
13730
+ case 32:return n?UU.Int32:UU.Uint32
13731
+ case 64:return n?UU.Int64:UU.Uint64}return UU.Int}case UU.Float:switch(t.precision){case XH.HALF:return UU.Float16
13732
+ case XH.SINGLE:return UU.Float32
13733
+ case XH.DOUBLE:return UU.Float64}return UU.Float
13734
+ case UU.Binary:return UU.Binary
13735
+ case UU.LargeBinary:return UU.LargeBinary
13736
+ case UU.Utf8:return UU.Utf8
13737
+ case UU.LargeUtf8:return UU.LargeUtf8
13738
+ case UU.Bool:return UU.Bool
13739
+ case UU.Decimal:return UU.Decimal
13740
+ case UU.Time:switch(t.unit){case QH.SECOND:return UU.TimeSecond
13741
+ case QH.MILLISECOND:return UU.TimeMillisecond
13742
+ case QH.MICROSECOND:return UU.TimeMicrosecond
13743
+ case QH.NANOSECOND:return UU.TimeNanosecond}return UU.Time
13744
+ case UU.Timestamp:switch(t.unit){case QH.SECOND:return UU.TimestampSecond
13745
+ case QH.MILLISECOND:return UU.TimestampMillisecond
13746
+ case QH.MICROSECOND:return UU.TimestampMicrosecond
13747
+ case QH.NANOSECOND:return UU.TimestampNanosecond}return UU.Timestamp
13748
+ case UU.Date:switch(t.unit){case JH.DAY:return UU.DateDay
13749
+ case JH.MILLISECOND:return UU.DateMillisecond}return UU.Date
13750
+ case UU.Interval:switch(t.unit){case tU.DAY_TIME:return UU.IntervalDayTime
13751
+ case tU.YEAR_MONTH:return UU.IntervalYearMonth}return UU.Interval
13752
+ case UU.Duration:switch(t.unit){case QH.SECOND:return UU.DurationSecond
13753
+ case QH.MILLISECOND:return UU.DurationMillisecond
13754
+ case QH.MICROSECOND:return UU.DurationMicrosecond
13755
+ case QH.NANOSECOND:return UU.DurationNanosecond}return UU.Duration
13756
+ case UU.Map:return UU.Map
13757
+ case UU.List:return UU.List
13758
+ case UU.Struct:return UU.Struct
13759
+ case UU.Union:switch(t.mode){case YH.Dense:return UU.DenseUnion
13760
+ case YH.Sparse:return UU.SparseUnion}return UU.Union
13761
+ case UU.FixedSizeBinary:return UU.FixedSizeBinary
13762
+ case UU.FixedSizeList:return UU.FixedSizeList
13763
+ case UU.Dictionary:return UU.Dictionary}throw new Error(`Unrecognized type '${UU[t.typeId]}'`)}Qq.prototype.visitInt8=null,Qq.prototype.visitInt16=null,Qq.prototype.visitInt32=null,Qq.prototype.visitInt64=null,Qq.prototype.visitUint8=null,Qq.prototype.visitUint16=null,Qq.prototype.visitUint32=null,Qq.prototype.visitUint64=null,Qq.prototype.visitFloat16=null,Qq.prototype.visitFloat32=null,Qq.prototype.visitFloat64=null,Qq.prototype.visitDateDay=null,Qq.prototype.visitDateMillisecond=null,Qq.prototype.visitTimestampSecond=null,Qq.prototype.visitTimestampMillisecond=null,Qq.prototype.visitTimestampMicrosecond=null,Qq.prototype.visitTimestampNanosecond=null,Qq.prototype.visitTimeSecond=null,Qq.prototype.visitTimeMillisecond=null,Qq.prototype.visitTimeMicrosecond=null,Qq.prototype.visitTimeNanosecond=null,Qq.prototype.visitDenseUnion=null,Qq.prototype.visitSparseUnion=null,Qq.prototype.visitIntervalDayTime=null,Qq.prototype.visitIntervalYearMonth=null,Qq.prototype.visitDuration=null,Qq.prototype.visitDurationSecond=null,Qq.prototype.visitDurationMillisecond=null,Qq.prototype.visitDurationMicrosecond=null,Qq.prototype.visitDurationNanosecond=null
13764
+ const nj=new Float64Array(1),ij=new Uint32Array(nj.buffer)
13765
+ function sj(t){const e=(31744&t)>>10,n=(1023&t)/1024,i=Math.pow(-1,(32768&t)>>15)
13764
13766
  switch(e){case 31:return i*(n?Number.NaN:1/0)
13765
- case 0:return i*(n?6103515625e-14*n:0)}return i*Math.pow(2,e-15)*(1+n)}class sj extends Jq{}function oj(t){return(e,n,i)=>{if(e.setValid(n,null!=i))return t(e,n,i)}}const rj=(t,e,n,i)=>{if(n+1<e.length){const s=jU(e[n]),o=jU(e[n+1])
13766
- t.set(i.subarray(0,o-s),s)}},aj=({values:t},e,n)=>{t[e]=n},lj=({values:t},e,n)=>{t[e]=n},cj=({values:t},e,n)=>{t[e]=function(t){if(t!=t)return 32256
13767
- ej[0]=t
13768
- const e=(2147483648&nj[1])>>16&65535
13769
- let n=2146435072&nj[1],i=0
13770
- return n>=1089470464?nj[0]>0?n=31744:(n=(2080374784&n)>>16,i=(1048575&nj[1])>>10):n<=1056964608?(i=1048576+(1048575&nj[1]),i=1048576+(i<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,i=512+(1048575&nj[1])>>10),e|n|65535&i}(n)},dj=({values:t},e,n)=>{((t,e,n)=>{t[e]=Math.floor(n/864e5)})(t,e,n.valueOf())},hj=({values:t},e,n)=>{t[e]=BigInt(n)},uj=({values:t,valueOffsets:e},n,i)=>rj(t,e,n,i),pj=({values:t,valueOffsets:e},n,i)=>rj(t,e,n,yH(i)),fj=({values:t},e,n)=>{t[e]=BigInt(n/1e3)},mj=({values:t},e,n)=>{t[e]=BigInt(n)},gj=({values:t},e,n)=>{t[e]=BigInt(1e3*n)},vj=({values:t},e,n)=>{t[e]=BigInt(1e6*n)},bj=({values:t},e,n)=>{t[e]=n},yj=({values:t},e,n)=>{t[e]=n},wj=({values:t},e,n)=>{t[e]=n},xj=({values:t},e,n)=>{t[e]=n},Cj=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[i]
13771
- Dj.visit(s,t.valueOffsets[e],n)},kj=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[i]
13772
- Dj.visit(s,e,n)},Sj=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},_j=({values:t},e,n)=>{t[e]=12*n[0]+n[1]%12},Ij=({values:t},e,n)=>{t[e]=n},Mj=({values:t},e,n)=>{t[e]=n},$j=({values:t},e,n)=>{t[e]=n},Ej=({values:t},e,n)=>{t[e]=n}
13773
- sj.prototype.visitBool=oj((({offset:t,values:e},n,i)=>{const s=t+n
13774
- i?e[s>>3]|=1<<s%8:e[s>>3]&=~(1<<s%8)})),sj.prototype.visitInt=oj(aj),sj.prototype.visitInt8=oj(aj),sj.prototype.visitInt16=oj(aj),sj.prototype.visitInt32=oj(aj),sj.prototype.visitInt64=oj(aj),sj.prototype.visitUint8=oj(aj),sj.prototype.visitUint16=oj(aj),sj.prototype.visitUint32=oj(aj),sj.prototype.visitUint64=oj(aj),sj.prototype.visitFloat=oj(((t,e,n)=>{switch(t.type.precision){case YH.HALF:return cj(t,e,n)
13775
- case YH.SINGLE:case YH.DOUBLE:return lj(t,e,n)}})),sj.prototype.visitFloat16=oj(cj),sj.prototype.visitFloat32=oj(lj),sj.prototype.visitFloat64=oj(lj),sj.prototype.visitUtf8=oj(pj),sj.prototype.visitLargeUtf8=oj(pj),sj.prototype.visitBinary=oj(uj),sj.prototype.visitLargeBinary=oj(uj),sj.prototype.visitFixedSizeBinary=oj((({stride:t,values:e},n,i)=>{e.set(i.subarray(0,t),t*n)})),sj.prototype.visitDate=oj(((t,e,n)=>{t.type.unit===XH.DAY?dj(t,e,n):hj(t,e,n)})),sj.prototype.visitDateDay=oj(dj),sj.prototype.visitDateMillisecond=oj(hj),sj.prototype.visitTimestamp=oj(((t,e,n)=>{switch(t.type.unit){case JH.SECOND:return fj(t,e,n)
13776
- case JH.MILLISECOND:return mj(t,e,n)
13777
- case JH.MICROSECOND:return gj(t,e,n)
13778
- case JH.NANOSECOND:return vj(t,e,n)}})),sj.prototype.visitTimestampSecond=oj(fj),sj.prototype.visitTimestampMillisecond=oj(mj),sj.prototype.visitTimestampMicrosecond=oj(gj),sj.prototype.visitTimestampNanosecond=oj(vj),sj.prototype.visitTime=oj(((t,e,n)=>{switch(t.type.unit){case JH.SECOND:return bj(t,e,n)
13779
- case JH.MILLISECOND:return yj(t,e,n)
13780
- case JH.MICROSECOND:return wj(t,e,n)
13781
- case JH.NANOSECOND:return xj(t,e,n)}})),sj.prototype.visitTimeSecond=oj(bj),sj.prototype.visitTimeMillisecond=oj(yj),sj.prototype.visitTimeMicrosecond=oj(wj),sj.prototype.visitTimeNanosecond=oj(xj),sj.prototype.visitDecimal=oj((({values:t,stride:e},n,i)=>{t.set(i.subarray(0,e),e*n)})),sj.prototype.visitList=oj(((t,e,n)=>{const i=t.children[0],s=t.valueOffsets,o=Dj.getVisitFn(i)
13767
+ case 0:return i*(n?6103515625e-14*n:0)}return i*Math.pow(2,e-15)*(1+n)}class oj extends Qq{}function rj(t){return(e,n,i)=>{if(e.setValid(n,null!=i))return t(e,n,i)}}const aj=(t,e,n,i)=>{if(n+1<e.length){const s=WU(e[n]),o=WU(e[n+1])
13768
+ t.set(i.subarray(0,o-s),s)}},lj=({values:t},e,n)=>{t[e]=n},cj=({values:t},e,n)=>{t[e]=n},dj=({values:t},e,n)=>{t[e]=function(t){if(t!=t)return 32256
13769
+ nj[0]=t
13770
+ const e=(2147483648&ij[1])>>16&65535
13771
+ let n=2146435072&ij[1],i=0
13772
+ return n>=1089470464?ij[0]>0?n=31744:(n=(2080374784&n)>>16,i=(1048575&ij[1])>>10):n<=1056964608?(i=1048576+(1048575&ij[1]),i=1048576+(i<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,i=512+(1048575&ij[1])>>10),e|n|65535&i}(n)},hj=({values:t},e,n)=>{((t,e,n)=>{t[e]=Math.floor(n/864e5)})(t,e,n.valueOf())},uj=({values:t},e,n)=>{t[e]=BigInt(n)},pj=({values:t,valueOffsets:e},n,i)=>aj(t,e,n,i),fj=({values:t,valueOffsets:e},n,i)=>aj(t,e,n,wH(i)),mj=({values:t},e,n)=>{t[e]=BigInt(n/1e3)},gj=({values:t},e,n)=>{t[e]=BigInt(n)},vj=({values:t},e,n)=>{t[e]=BigInt(1e3*n)},bj=({values:t},e,n)=>{t[e]=BigInt(1e6*n)},yj=({values:t},e,n)=>{t[e]=n},wj=({values:t},e,n)=>{t[e]=n},xj=({values:t},e,n)=>{t[e]=n},Cj=({values:t},e,n)=>{t[e]=n},kj=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[i]
13773
+ Aj.visit(s,t.valueOffsets[e],n)},Sj=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],s=t.children[i]
13774
+ Aj.visit(s,e,n)},_j=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},Ij=({values:t},e,n)=>{t[e]=12*n[0]+n[1]%12},Mj=({values:t},e,n)=>{t[e]=n},$j=({values:t},e,n)=>{t[e]=n},Ej=({values:t},e,n)=>{t[e]=n},Dj=({values:t},e,n)=>{t[e]=n}
13775
+ oj.prototype.visitBool=rj((({offset:t,values:e},n,i)=>{const s=t+n
13776
+ i?e[s>>3]|=1<<s%8:e[s>>3]&=~(1<<s%8)})),oj.prototype.visitInt=rj(lj),oj.prototype.visitInt8=rj(lj),oj.prototype.visitInt16=rj(lj),oj.prototype.visitInt32=rj(lj),oj.prototype.visitInt64=rj(lj),oj.prototype.visitUint8=rj(lj),oj.prototype.visitUint16=rj(lj),oj.prototype.visitUint32=rj(lj),oj.prototype.visitUint64=rj(lj),oj.prototype.visitFloat=rj(((t,e,n)=>{switch(t.type.precision){case XH.HALF:return dj(t,e,n)
13777
+ case XH.SINGLE:case XH.DOUBLE:return cj(t,e,n)}})),oj.prototype.visitFloat16=rj(dj),oj.prototype.visitFloat32=rj(cj),oj.prototype.visitFloat64=rj(cj),oj.prototype.visitUtf8=rj(fj),oj.prototype.visitLargeUtf8=rj(fj),oj.prototype.visitBinary=rj(pj),oj.prototype.visitLargeBinary=rj(pj),oj.prototype.visitFixedSizeBinary=rj((({stride:t,values:e},n,i)=>{e.set(i.subarray(0,t),t*n)})),oj.prototype.visitDate=rj(((t,e,n)=>{t.type.unit===JH.DAY?hj(t,e,n):uj(t,e,n)})),oj.prototype.visitDateDay=rj(hj),oj.prototype.visitDateMillisecond=rj(uj),oj.prototype.visitTimestamp=rj(((t,e,n)=>{switch(t.type.unit){case QH.SECOND:return mj(t,e,n)
13778
+ case QH.MILLISECOND:return gj(t,e,n)
13779
+ case QH.MICROSECOND:return vj(t,e,n)
13780
+ case QH.NANOSECOND:return bj(t,e,n)}})),oj.prototype.visitTimestampSecond=rj(mj),oj.prototype.visitTimestampMillisecond=rj(gj),oj.prototype.visitTimestampMicrosecond=rj(vj),oj.prototype.visitTimestampNanosecond=rj(bj),oj.prototype.visitTime=rj(((t,e,n)=>{switch(t.type.unit){case QH.SECOND:return yj(t,e,n)
13781
+ case QH.MILLISECOND:return wj(t,e,n)
13782
+ case QH.MICROSECOND:return xj(t,e,n)
13783
+ case QH.NANOSECOND:return Cj(t,e,n)}})),oj.prototype.visitTimeSecond=rj(yj),oj.prototype.visitTimeMillisecond=rj(wj),oj.prototype.visitTimeMicrosecond=rj(xj),oj.prototype.visitTimeNanosecond=rj(Cj),oj.prototype.visitDecimal=rj((({values:t,stride:e},n,i)=>{t.set(i.subarray(0,e),e*n)})),oj.prototype.visitList=rj(((t,e,n)=>{const i=t.children[0],s=t.valueOffsets,o=Aj.getVisitFn(i)
13782
13784
  if(Array.isArray(n))for(let t=-1,r=s[e],a=s[e+1];r<a;)o(i,r++,n[++t])
13783
- else for(let t=-1,r=s[e],a=s[e+1];r<a;)o(i,r++,n.get(++t))})),sj.prototype.visitStruct=oj(((t,e,n)=>{const i=t.type.children.map((t=>Dj.getVisitFn(t.type))),s=n instanceof Map?(o=e,r=n,(t,e,n,i)=>e&&t(e,o,r.get(n.name))):n instanceof QW?((t,e)=>(n,i,s,o)=>i&&n(i,t,e.get(o)))(e,n):Array.isArray(n)?((t,e)=>(n,i,s,o)=>i&&n(i,t,e[o]))(e,n):((t,e)=>(n,i,s,o)=>i&&n(i,t,e[s.name]))(e,n)
13785
+ else for(let t=-1,r=s[e],a=s[e+1];r<a;)o(i,r++,n.get(++t))})),oj.prototype.visitStruct=rj(((t,e,n)=>{const i=t.type.children.map((t=>Aj.getVisitFn(t.type))),s=n instanceof Map?(o=e,r=n,(t,e,n,i)=>e&&t(e,o,r.get(n.name))):n instanceof tG?((t,e)=>(n,i,s,o)=>i&&n(i,t,e.get(o)))(e,n):Array.isArray(n)?((t,e)=>(n,i,s,o)=>i&&n(i,t,e[o]))(e,n):((t,e)=>(n,i,s,o)=>i&&n(i,t,e[s.name]))(e,n)
13784
13786
  var o,r
13785
- t.type.children.forEach(((e,n)=>s(i[n],t.children[n],e,n)))})),sj.prototype.visitUnion=oj(((t,e,n)=>{t.type.mode===KH.Dense?Cj(t,e,n):kj(t,e,n)})),sj.prototype.visitDenseUnion=oj(Cj),sj.prototype.visitSparseUnion=oj(kj),sj.prototype.visitDictionary=oj(((t,e,n)=>{var i
13786
- null===(i=t.dictionary)||void 0===i||i.set(t.values[e],n)})),sj.prototype.visitInterval=oj(((t,e,n)=>{t.type.unit===QH.DAY_TIME?Sj(t,e,n):_j(t,e,n)})),sj.prototype.visitIntervalDayTime=oj(Sj),sj.prototype.visitIntervalYearMonth=oj(_j),sj.prototype.visitDuration=oj(((t,e,n)=>{switch(t.type.unit){case JH.SECOND:return Ij(t,e,n)
13787
- case JH.MILLISECOND:return Mj(t,e,n)
13788
- case JH.MICROSECOND:return $j(t,e,n)
13789
- case JH.NANOSECOND:return Ej(t,e,n)}})),sj.prototype.visitDurationSecond=oj(Ij),sj.prototype.visitDurationMillisecond=oj(Mj),sj.prototype.visitDurationMicrosecond=oj($j),sj.prototype.visitDurationNanosecond=oj(Ej),sj.prototype.visitFixedSizeList=oj(((t,e,n)=>{const{stride:i}=t,s=t.children[0],o=Dj.getVisitFn(s)
13787
+ t.type.children.forEach(((e,n)=>s(i[n],t.children[n],e,n)))})),oj.prototype.visitUnion=rj(((t,e,n)=>{t.type.mode===YH.Dense?kj(t,e,n):Sj(t,e,n)})),oj.prototype.visitDenseUnion=rj(kj),oj.prototype.visitSparseUnion=rj(Sj),oj.prototype.visitDictionary=rj(((t,e,n)=>{var i
13788
+ null===(i=t.dictionary)||void 0===i||i.set(t.values[e],n)})),oj.prototype.visitInterval=rj(((t,e,n)=>{t.type.unit===tU.DAY_TIME?_j(t,e,n):Ij(t,e,n)})),oj.prototype.visitIntervalDayTime=rj(_j),oj.prototype.visitIntervalYearMonth=rj(Ij),oj.prototype.visitDuration=rj(((t,e,n)=>{switch(t.type.unit){case QH.SECOND:return Mj(t,e,n)
13789
+ case QH.MILLISECOND:return $j(t,e,n)
13790
+ case QH.MICROSECOND:return Ej(t,e,n)
13791
+ case QH.NANOSECOND:return Dj(t,e,n)}})),oj.prototype.visitDurationSecond=rj(Mj),oj.prototype.visitDurationMillisecond=rj($j),oj.prototype.visitDurationMicrosecond=rj(Ej),oj.prototype.visitDurationNanosecond=rj(Dj),oj.prototype.visitFixedSizeList=rj(((t,e,n)=>{const{stride:i}=t,s=t.children[0],o=Aj.getVisitFn(s)
13790
13792
  if(Array.isArray(n))for(let t=-1,r=e*i;++t<i;)o(s,r+t,n[t])
13791
- else for(let t=-1,r=e*i;++t<i;)o(s,r+t,n.get(t))})),sj.prototype.visitMap=oj(((t,e,n)=>{const i=t.children[0],{valueOffsets:s}=t,o=Dj.getVisitFn(i)
13793
+ else for(let t=-1,r=e*i;++t<i;)o(s,r+t,n.get(t))})),oj.prototype.visitMap=rj(((t,e,n)=>{const i=t.children[0],{valueOffsets:s}=t,o=Aj.getVisitFn(i)
13792
13794
  let{[e]:r,[e+1]:a}=s
13793
13795
  const l=n instanceof Map?n.entries():Object.entries(n)
13794
13796
  for(const t of l)if(o(i,r,t),++r>=a)break}))
13795
- const Dj=new sj,Aj=Symbol.for("parent"),Tj=Symbol.for("rowIndex")
13796
- class Oj{constructor(t,e){return this[Aj]=t,this[Tj]=e,new Proxy(this,new Fj)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[Tj],e=this[Aj],n=e.type.children,i={}
13797
- for(let s=-1,o=n.length;++s<o;)i[n[s].name]=aW.visit(e.children[s],t)
13798
- return i}toString(){return`{${[...this].map((([t,e])=>`${qU(t)}: ${qU(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Rj(this[Aj],this[Tj])}}class Rj{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const t=this.childIndex
13799
- return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,aW.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Oj.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Aj]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Tj]:{writable:!0,enumerable:!1,configurable:!1,value:-1}})
13800
- class Fj{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Aj].type.children.map((t=>t.name))}has(t,e){return-1!==t[Aj].type.children.findIndex((t=>t.name===e))}getOwnPropertyDescriptor(t,e){if(-1!==t[Aj].type.children.findIndex((t=>t.name===e)))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
13801
- const n=t[Aj].type.children.findIndex((t=>t.name===e))
13802
- if(-1!==n){const i=aW.visit(t[Aj].children[n],t[Tj])
13803
- return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[Aj].type.children.findIndex((t=>t.name===e))
13804
- return-1!==i?(Dj.visit(t[Aj].children[i],t[Tj],n),Reflect.set(t,e,n)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,n)}}class Nj extends Jq{}function Lj(t){return(e,n)=>e.getValid(n)?t(e,n):null}const Bj=(t,e,n)=>{if(n+1>=e.length)return null
13805
- const i=jU(e[n]),s=jU(e[n+1])
13806
- return t.subarray(i,s)},Pj=({values:t},e)=>((t,e)=>864e5*t[e])(t,e),zj=({values:t},e)=>jU(t[e]),Vj=({stride:t,values:e},n)=>e[t*n],Hj=({values:t},e)=>t[e],Uj=({values:t,valueOffsets:e},n)=>Bj(t,e,n),qj=({values:t,valueOffsets:e},n)=>{const i=Bj(t,e,n)
13807
- return null!==i?vH(i):null},jj=({values:t},e)=>1e3*jU(t[e]),Wj=({values:t},e)=>jU(t[e]),Gj=({values:t},e)=>WU(t[e],BigInt(1e3)),Zj=({values:t},e)=>WU(t[e],BigInt(1e6)),Kj=({values:t},e)=>t[e],Yj=({values:t},e)=>t[e],Xj=({values:t},e)=>t[e],Jj=({values:t},e)=>t[e],Qj=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
13808
- return aW.visit(i,t.valueOffsets[e])},tW=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
13809
- return aW.visit(i,e)},eW=({values:t},e)=>t.subarray(2*e,2*(e+1)),nW=({values:t},e)=>{const n=t[e],i=new Int32Array(2)
13810
- return i[0]=Math.trunc(n/12),i[1]=Math.trunc(n%12),i},iW=({values:t},e)=>t[e],sW=({values:t},e)=>t[e],oW=({values:t},e)=>t[e],rW=({values:t},e)=>t[e]
13811
- Nj.prototype.visitNull=Lj(((t,e)=>null)),Nj.prototype.visitBool=Lj((({offset:t,values:e},n)=>{const i=t+n
13812
- return 0!=(e[i>>3]&1<<i%8)})),Nj.prototype.visitInt=Lj((({values:t},e)=>t[e])),Nj.prototype.visitInt8=Lj(Vj),Nj.prototype.visitInt16=Lj(Vj),Nj.prototype.visitInt32=Lj(Vj),Nj.prototype.visitInt64=Lj(Hj),Nj.prototype.visitUint8=Lj(Vj),Nj.prototype.visitUint16=Lj(Vj),Nj.prototype.visitUint32=Lj(Vj),Nj.prototype.visitUint64=Lj(Hj),Nj.prototype.visitFloat=Lj((({type:t,values:e},n)=>t.precision!==YH.HALF?e[n]:ij(e[n]))),Nj.prototype.visitFloat16=Lj((({stride:t,values:e},n)=>ij(e[t*n]))),Nj.prototype.visitFloat32=Lj(Vj),Nj.prototype.visitFloat64=Lj(Vj),Nj.prototype.visitUtf8=Lj(qj),Nj.prototype.visitLargeUtf8=Lj(qj),Nj.prototype.visitBinary=Lj(Uj),Nj.prototype.visitLargeBinary=Lj(Uj),Nj.prototype.visitFixedSizeBinary=Lj((({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)))),Nj.prototype.visitDate=Lj(((t,e)=>t.type.unit===XH.DAY?Pj(t,e):zj(t,e))),Nj.prototype.visitDateDay=Lj(Pj),Nj.prototype.visitDateMillisecond=Lj(zj),Nj.prototype.visitTimestamp=Lj(((t,e)=>{switch(t.type.unit){case JH.SECOND:return jj(t,e)
13813
- case JH.MILLISECOND:return Wj(t,e)
13814
- case JH.MICROSECOND:return Gj(t,e)
13815
- case JH.NANOSECOND:return Zj(t,e)}})),Nj.prototype.visitTimestampSecond=Lj(jj),Nj.prototype.visitTimestampMillisecond=Lj(Wj),Nj.prototype.visitTimestampMicrosecond=Lj(Gj),Nj.prototype.visitTimestampNanosecond=Lj(Zj),Nj.prototype.visitTime=Lj(((t,e)=>{switch(t.type.unit){case JH.SECOND:return Kj(t,e)
13816
- case JH.MILLISECOND:return Yj(t,e)
13817
- case JH.MICROSECOND:return Xj(t,e)
13818
- case JH.NANOSECOND:return Jj(t,e)}})),Nj.prototype.visitTimeSecond=Lj(Kj),Nj.prototype.visitTimeMillisecond=Lj(Yj),Nj.prototype.visitTimeMicrosecond=Lj(Xj),Nj.prototype.visitTimeNanosecond=Lj(Jj),Nj.prototype.visitDecimal=Lj((({values:t,stride:e},n)=>nq.decimal(t.subarray(e*n,e*(n+1))))),Nj.prototype.visitList=Lj(((t,e)=>{const{valueOffsets:n,stride:i,children:s}=t,{[e*i]:o,[e*i+1]:r}=n,a=s[0].slice(o,r-o)
13819
- return new QW([a])})),Nj.prototype.visitStruct=Lj(((t,e)=>new Oj(t,e))),Nj.prototype.visitUnion=Lj(((t,e)=>t.type.mode===KH.Dense?Qj(t,e):tW(t,e))),Nj.prototype.visitDenseUnion=Lj(Qj),Nj.prototype.visitSparseUnion=Lj(tW),Nj.prototype.visitDictionary=Lj(((t,e)=>{var n
13820
- return null===(n=t.dictionary)||void 0===n?void 0:n.get(t.values[e])})),Nj.prototype.visitInterval=Lj(((t,e)=>t.type.unit===QH.DAY_TIME?eW(t,e):nW(t,e))),Nj.prototype.visitIntervalDayTime=Lj(eW),Nj.prototype.visitIntervalYearMonth=Lj(nW),Nj.prototype.visitDuration=Lj(((t,e)=>{switch(t.type.unit){case JH.SECOND:return iW(t,e)
13821
- case JH.MILLISECOND:return sW(t,e)
13822
- case JH.MICROSECOND:return oW(t,e)
13823
- case JH.NANOSECOND:return rW(t,e)}})),Nj.prototype.visitDurationSecond=Lj(iW),Nj.prototype.visitDurationMillisecond=Lj(sW),Nj.prototype.visitDurationMicrosecond=Lj(oW),Nj.prototype.visitDurationNanosecond=Lj(rW),Nj.prototype.visitFixedSizeList=Lj(((t,e)=>{const{stride:n,children:i}=t,s=i[0].slice(e*n,n)
13824
- return new QW([s])})),Nj.prototype.visitMap=Lj(((t,e)=>{const{valueOffsets:n,children:i}=t,{[e]:s,[e+1]:o}=n,r=i[0]
13825
- return new uW(r.slice(s,o-s))}))
13826
- const aW=new Nj,lW=Symbol.for("keys"),cW=Symbol.for("vals"),dW=Symbol.for("kKeysAsStrings"),hW=Symbol.for("_kKeysAsStrings")
13827
- class uW{constructor(t){return this[lW]=new QW([t.children[0]]).memoize(),this[cW]=t.children[1],new Proxy(this,new fW)}get[dW](){return this[hW]||(this[hW]=Array.from(this[lW].toArray(),String))}[Symbol.iterator](){return new pW(this[lW],this[cW])}get size(){return this[lW].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[lW],e=this[cW],n={}
13828
- for(let i=-1,s=t.length;++i<s;)n[t.get(i)]=aW.visit(e,i)
13829
- return n}toString(){return`{${[...this].map((([t,e])=>`${qU(t)}: ${qU(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class pW{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){const t=this.keyIndex
13830
- return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),aW.visit(this.vals,t)]})}}class fW{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[dW]}has(t,e){return t[dW].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[dW].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
13831
- const n=t[dW].indexOf(e)
13832
- if(-1!==n){const i=aW.visit(Reflect.get(t,cW),n)
13833
- return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[dW].indexOf(e)
13834
- return-1!==i?(Dj.visit(Reflect.get(t,cW),i,n),Reflect.set(t,e,n)):!!Reflect.has(t,e)&&Reflect.set(t,e,n)}}let mW
13835
- function gW(t,e,n,i){const{length:s=0}=t
13797
+ const Aj=new oj,Tj=Symbol.for("parent"),Oj=Symbol.for("rowIndex")
13798
+ class Rj{constructor(t,e){return this[Tj]=t,this[Oj]=e,new Proxy(this,new Nj)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[Oj],e=this[Tj],n=e.type.children,i={}
13799
+ for(let s=-1,o=n.length;++s<o;)i[n[s].name]=lW.visit(e.children[s],t)
13800
+ return i}toString(){return`{${[...this].map((([t,e])=>`${jU(t)}: ${jU(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Fj(this[Tj],this[Oj])}}class Fj{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const t=this.childIndex
13801
+ return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,lW.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Rj.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Tj]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Oj]:{writable:!0,enumerable:!1,configurable:!1,value:-1}})
13802
+ class Nj{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Tj].type.children.map((t=>t.name))}has(t,e){return-1!==t[Tj].type.children.findIndex((t=>t.name===e))}getOwnPropertyDescriptor(t,e){if(-1!==t[Tj].type.children.findIndex((t=>t.name===e)))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
13803
+ const n=t[Tj].type.children.findIndex((t=>t.name===e))
13804
+ if(-1!==n){const i=lW.visit(t[Tj].children[n],t[Oj])
13805
+ return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[Tj].type.children.findIndex((t=>t.name===e))
13806
+ return-1!==i?(Aj.visit(t[Tj].children[i],t[Oj],n),Reflect.set(t,e,n)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,n)}}class Lj extends Qq{}function Bj(t){return(e,n)=>e.getValid(n)?t(e,n):null}const Pj=(t,e,n)=>{if(n+1>=e.length)return null
13807
+ const i=WU(e[n]),s=WU(e[n+1])
13808
+ return t.subarray(i,s)},zj=({values:t},e)=>((t,e)=>864e5*t[e])(t,e),Vj=({values:t},e)=>WU(t[e]),Hj=({stride:t,values:e},n)=>e[t*n],Uj=({values:t},e)=>t[e],qj=({values:t,valueOffsets:e},n)=>Pj(t,e,n),jj=({values:t,valueOffsets:e},n)=>{const i=Pj(t,e,n)
13809
+ return null!==i?bH(i):null},Wj=({values:t},e)=>1e3*WU(t[e]),Gj=({values:t},e)=>WU(t[e]),Zj=({values:t},e)=>GU(t[e],BigInt(1e3)),Kj=({values:t},e)=>GU(t[e],BigInt(1e6)),Yj=({values:t},e)=>t[e],Xj=({values:t},e)=>t[e],Jj=({values:t},e)=>t[e],Qj=({values:t},e)=>t[e],tW=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
13810
+ return lW.visit(i,t.valueOffsets[e])},eW=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
13811
+ return lW.visit(i,e)},nW=({values:t},e)=>t.subarray(2*e,2*(e+1)),iW=({values:t},e)=>{const n=t[e],i=new Int32Array(2)
13812
+ return i[0]=Math.trunc(n/12),i[1]=Math.trunc(n%12),i},sW=({values:t},e)=>t[e],oW=({values:t},e)=>t[e],rW=({values:t},e)=>t[e],aW=({values:t},e)=>t[e]
13813
+ Lj.prototype.visitNull=Bj(((t,e)=>null)),Lj.prototype.visitBool=Bj((({offset:t,values:e},n)=>{const i=t+n
13814
+ return!!(e[i>>3]&1<<i%8)})),Lj.prototype.visitInt=Bj((({values:t},e)=>t[e])),Lj.prototype.visitInt8=Bj(Hj),Lj.prototype.visitInt16=Bj(Hj),Lj.prototype.visitInt32=Bj(Hj),Lj.prototype.visitInt64=Bj(Uj),Lj.prototype.visitUint8=Bj(Hj),Lj.prototype.visitUint16=Bj(Hj),Lj.prototype.visitUint32=Bj(Hj),Lj.prototype.visitUint64=Bj(Uj),Lj.prototype.visitFloat=Bj((({type:t,values:e},n)=>t.precision!==XH.HALF?e[n]:sj(e[n]))),Lj.prototype.visitFloat16=Bj((({stride:t,values:e},n)=>sj(e[t*n]))),Lj.prototype.visitFloat32=Bj(Hj),Lj.prototype.visitFloat64=Bj(Hj),Lj.prototype.visitUtf8=Bj(jj),Lj.prototype.visitLargeUtf8=Bj(jj),Lj.prototype.visitBinary=Bj(qj),Lj.prototype.visitLargeBinary=Bj(qj),Lj.prototype.visitFixedSizeBinary=Bj((({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)))),Lj.prototype.visitDate=Bj(((t,e)=>t.type.unit===JH.DAY?zj(t,e):Vj(t,e))),Lj.prototype.visitDateDay=Bj(zj),Lj.prototype.visitDateMillisecond=Bj(Vj),Lj.prototype.visitTimestamp=Bj(((t,e)=>{switch(t.type.unit){case QH.SECOND:return Wj(t,e)
13815
+ case QH.MILLISECOND:return Gj(t,e)
13816
+ case QH.MICROSECOND:return Zj(t,e)
13817
+ case QH.NANOSECOND:return Kj(t,e)}})),Lj.prototype.visitTimestampSecond=Bj(Wj),Lj.prototype.visitTimestampMillisecond=Bj(Gj),Lj.prototype.visitTimestampMicrosecond=Bj(Zj),Lj.prototype.visitTimestampNanosecond=Bj(Kj),Lj.prototype.visitTime=Bj(((t,e)=>{switch(t.type.unit){case QH.SECOND:return Yj(t,e)
13818
+ case QH.MILLISECOND:return Xj(t,e)
13819
+ case QH.MICROSECOND:return Jj(t,e)
13820
+ case QH.NANOSECOND:return Qj(t,e)}})),Lj.prototype.visitTimeSecond=Bj(Yj),Lj.prototype.visitTimeMillisecond=Bj(Xj),Lj.prototype.visitTimeMicrosecond=Bj(Jj),Lj.prototype.visitTimeNanosecond=Bj(Qj),Lj.prototype.visitDecimal=Bj((({values:t,stride:e},n)=>iq.decimal(t.subarray(e*n,e*(n+1))))),Lj.prototype.visitList=Bj(((t,e)=>{const{valueOffsets:n,stride:i,children:s}=t,{[e*i]:o,[e*i+1]:r}=n,a=s[0].slice(o,r-o)
13821
+ return new tG([a])})),Lj.prototype.visitStruct=Bj(((t,e)=>new Rj(t,e))),Lj.prototype.visitUnion=Bj(((t,e)=>t.type.mode===YH.Dense?tW(t,e):eW(t,e))),Lj.prototype.visitDenseUnion=Bj(tW),Lj.prototype.visitSparseUnion=Bj(eW),Lj.prototype.visitDictionary=Bj(((t,e)=>{var n
13822
+ return null===(n=t.dictionary)||void 0===n?void 0:n.get(t.values[e])})),Lj.prototype.visitInterval=Bj(((t,e)=>t.type.unit===tU.DAY_TIME?nW(t,e):iW(t,e))),Lj.prototype.visitIntervalDayTime=Bj(nW),Lj.prototype.visitIntervalYearMonth=Bj(iW),Lj.prototype.visitDuration=Bj(((t,e)=>{switch(t.type.unit){case QH.SECOND:return sW(t,e)
13823
+ case QH.MILLISECOND:return oW(t,e)
13824
+ case QH.MICROSECOND:return rW(t,e)
13825
+ case QH.NANOSECOND:return aW(t,e)}})),Lj.prototype.visitDurationSecond=Bj(sW),Lj.prototype.visitDurationMillisecond=Bj(oW),Lj.prototype.visitDurationMicrosecond=Bj(rW),Lj.prototype.visitDurationNanosecond=Bj(aW),Lj.prototype.visitFixedSizeList=Bj(((t,e)=>{const{stride:n,children:i}=t,s=i[0].slice(e*n,n)
13826
+ return new tG([s])})),Lj.prototype.visitMap=Bj(((t,e)=>{const{valueOffsets:n,children:i}=t,{[e]:s,[e+1]:o}=n,r=i[0]
13827
+ return new pW(r.slice(s,o-s))}))
13828
+ const lW=new Lj,cW=Symbol.for("keys"),dW=Symbol.for("vals"),hW=Symbol.for("kKeysAsStrings"),uW=Symbol.for("_kKeysAsStrings")
13829
+ class pW{constructor(t){return this[cW]=new tG([t.children[0]]).memoize(),this[dW]=t.children[1],new Proxy(this,new mW)}get[hW](){return this[uW]||(this[uW]=Array.from(this[cW].toArray(),String))}[Symbol.iterator](){return new fW(this[cW],this[dW])}get size(){return this[cW].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[cW],e=this[dW],n={}
13830
+ for(let i=-1,s=t.length;++i<s;)n[t.get(i)]=lW.visit(e,i)
13831
+ return n}toString(){return`{${[...this].map((([t,e])=>`${jU(t)}: ${jU(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class fW{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){const t=this.keyIndex
13832
+ return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),lW.visit(this.vals,t)]})}}class mW{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[hW]}has(t,e){return t[hW].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[hW].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
13833
+ const n=t[hW].indexOf(e)
13834
+ if(-1!==n){const i=lW.visit(Reflect.get(t,dW),n)
13835
+ return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[hW].indexOf(e)
13836
+ return-1!==i?(Aj.visit(Reflect.get(t,dW),i,n),Reflect.set(t,e,n)):!!Reflect.has(t,e)&&Reflect.set(t,e,n)}}let gW
13837
+ function vW(t,e,n,i){const{length:s=0}=t
13836
13838
  let o="number"!=typeof e?0:e,r="number"!=typeof n?s:n
13837
- return o<0&&(o=(o%s+s)%s),r<0&&(r=(r%s+s)%s),r<o&&(mW=o,o=r,r=mW),r>s&&(r=s),i?i(t,o,r):[o,r]}Object.defineProperties(uW.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[lW]:{writable:!0,enumerable:!1,configurable:!1,value:null},[cW]:{writable:!0,enumerable:!1,configurable:!1,value:null},[hW]:{writable:!0,enumerable:!1,configurable:!1,value:null}})
13838
- const vW=(t,e)=>t<0?e+t:t,bW=t=>t!=t
13839
- function yW(t){if("object"!==typeof t||null===t)return bW(t)?bW:e=>e===t
13839
+ return o<0&&(o=(o%s+s)%s),r<0&&(r=(r%s+s)%s),r<o&&(gW=o,o=r,r=gW),r>s&&(r=s),i?i(t,o,r):[o,r]}Object.defineProperties(pW.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[cW]:{writable:!0,enumerable:!1,configurable:!1,value:null},[dW]:{writable:!0,enumerable:!1,configurable:!1,value:null},[uW]:{writable:!0,enumerable:!1,configurable:!1,value:null}})
13840
+ const bW=(t,e)=>t<0?e+t:t,yW=t=>t!=t
13841
+ function wW(t){if("object"!==typeof t||null===t)return yW(t)?yW:e=>e===t
13840
13842
  if(t instanceof Date){const e=t.valueOf()
13841
13843
  return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&function(t,e){let n=0
13842
13844
  const i=t.length
@@ -13844,203 +13846,203 @@ if(i!==e.length)return!1
13844
13846
  if(i>0)do{if(t[n]!==e[n])return!1}while(++n<i)
13845
13847
  return!0}(t,e):t instanceof Map?function(t){let e=-1
13846
13848
  const n=[]
13847
- for(const i of t.values())n[++e]=yW(i)
13848
- return wW(n)}(t):Array.isArray(t)?function(t){const e=[]
13849
- for(let n=-1,i=t.length;++n<i;)e[n]=yW(t[n])
13850
- return wW(e)}(t):t instanceof QW?function(t){const e=[]
13851
- for(let n=-1,i=t.length;++n<i;)e[n]=yW(t.get(n))
13852
- return wW(e)}(t):function(t,e=!1){const n=Object.keys(t)
13849
+ for(const i of t.values())n[++e]=wW(i)
13850
+ return xW(n)}(t):Array.isArray(t)?function(t){const e=[]
13851
+ for(let n=-1,i=t.length;++n<i;)e[n]=wW(t[n])
13852
+ return xW(e)}(t):t instanceof tG?function(t){const e=[]
13853
+ for(let n=-1,i=t.length;++n<i;)e[n]=wW(t.get(n))
13854
+ return xW(e)}(t):function(t,e=!1){const n=Object.keys(t)
13853
13855
  if(!e&&0===n.length)return()=>!1
13854
13856
  const i=[]
13855
- for(let e=-1,s=n.length;++e<s;)i[e]=yW(t[n[e]])
13856
- return wW(i,n)}(t,!0)}function wW(t,e){return n=>{if(!n||"object"!=typeof n)return!1
13857
+ for(let e=-1,s=n.length;++e<s;)i[e]=wW(t[n[e]])
13858
+ return xW(i,n)}(t,!0)}function xW(t,e){return n=>{if(!n||"object"!=typeof n)return!1
13857
13859
  switch(n.constructor){case Array:return function(t,e){const n=t.length
13858
13860
  if(e.length!==n)return!1
13859
13861
  for(let i=-1;++i<n;)if(!t[i](e[i]))return!1
13860
13862
  return!0}(t,n)
13861
- case Map:return xW(t,n,n.keys())
13862
- case uW:case Oj:case Object:case void 0:return xW(t,n,e||Object.keys(n))}return n instanceof QW&&function(t,e){const n=t.length
13863
+ case Map:return CW(t,n,n.keys())
13864
+ case pW:case Rj:case Object:case void 0:return CW(t,n,e||Object.keys(n))}return n instanceof tG&&function(t,e){const n=t.length
13863
13865
  if(e.length!==n)return!1
13864
13866
  for(let i=-1;++i<n;)if(!t[i](e.get(i)))return!1
13865
- return!0}(t,n)}}function xW(t,e,n){const i=n[Symbol.iterator](),s=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]()
13867
+ return!0}(t,n)}}function CW(t,e,n){const i=n[Symbol.iterator](),s=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]()
13866
13868
  let r=0
13867
13869
  const a=t.length
13868
13870
  let l=o.next(),c=i.next(),d=s.next()
13869
- for(;r<a&&!c.done&&!d.done&&!l.done&&(c.value===d.value&&t[r](l.value));++r,c=i.next(),d=s.next(),l=o.next());return!!(r===a&&c.done&&d.done&&l.done)||(i.return&&i.return(),s.return&&s.return(),o.return&&o.return(),!1)}function CW(t,e,n,i){return 0!=(n&1<<i)}function kW(t,e,n,i){return(n&1<<i)>>i}function SW(t,e,n){const i=n.byteLength+7&-8
13871
+ for(;r<a&&!c.done&&!d.done&&!l.done&&(c.value===d.value&&t[r](l.value));++r,c=i.next(),d=s.next(),l=o.next());return!!(r===a&&c.done&&d.done&&l.done)||(i.return&&i.return(),s.return&&s.return(),o.return&&o.return(),!1)}function kW(t,e,n,i){return!!(n&1<<i)}function SW(t,e,n,i){return(n&1<<i)>>i}function _W(t,e,n){const i=n.byteLength+7&-8
13870
13872
  if(t>0||n.byteLength<i){const s=new Uint8Array(i)
13871
- return s.set(t%8==0?n.subarray(t>>3):_W(new IW(n,t,e,null,CW)).subarray(0,i)),s}return n}function _W(t){const e=[]
13873
+ return s.set(t%8==0?n.subarray(t>>3):IW(new MW(n,t,e,null,kW)).subarray(0,i)),s}return n}function IW(t){const e=[]
13872
13874
  let n=0,i=0,s=0
13873
13875
  for(const o of t)o&&(s|=1<<i),8==++i&&(e[n++]=s,s=i=0);(0===n||i>0)&&(e[n++]=s)
13874
13876
  const o=new Uint8Array(e.length+7&-8)
13875
- return o.set(e),o}class IW{constructor(t,e,n,i,s){this.bytes=t,this.length=n,this.context=i,this.get=s,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index<this.length?(8===this.bit&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function MW(t,e,n){if(n-e<=0)return 0
13877
+ return o.set(e),o}class MW{constructor(t,e,n,i,s){this.bytes=t,this.length=n,this.context=i,this.get=s,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index<this.length?(8===this.bit&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function $W(t,e,n){if(n-e<=0)return 0
13876
13878
  if(n-e<8){let i=0
13877
- for(const s of new IW(t,e,n-e,t,kW))i+=s
13879
+ for(const s of new MW(t,e,n-e,t,SW))i+=s
13878
13880
  return i}const i=n>>3<<3,s=e+(e%8==0?0:8-e%8)
13879
- return MW(t,e,s)+MW(t,i,n)+function(t,e,n){let i=0,s=Math.trunc(e)
13881
+ return $W(t,e,s)+$W(t,i,n)+function(t,e,n){let i=0,s=Math.trunc(e)
13880
13882
  const o=new DataView(t.buffer,t.byteOffset,t.byteLength),r=void 0===n?t.byteLength:s+n
13881
- for(;r-s>=4;)i+=$W(o.getUint32(s)),s+=4
13882
- for(;r-s>=2;)i+=$W(o.getUint16(s)),s+=2
13883
- for(;r-s>=1;)i+=$W(o.getUint8(s)),s+=1
13884
- return i}(t,s>>3,i-s>>3)}function $W(t){let e=Math.trunc(t)
13885
- return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}class EW{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){const{type:t}=this
13886
- return Iq.isSparseUnion(t)||Iq.isDenseUnion(t)?this.children.some((t=>t.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0
13883
+ for(;r-s>=4;)i+=EW(o.getUint32(s)),s+=4
13884
+ for(;r-s>=2;)i+=EW(o.getUint16(s)),s+=2
13885
+ for(;r-s>=1;)i+=EW(o.getUint8(s)),s+=1
13886
+ return i}(t,s>>3,i-s>>3)}function EW(t){let e=Math.trunc(t)
13887
+ return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}class DW{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){const{type:t}=this
13888
+ return Mq.isSparseUnion(t)||Mq.isDenseUnion(t)?this.children.some((t=>t.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0
13887
13889
  const{valueOffsets:e,values:n,nullBitmap:i,typeIds:s}=this
13888
- return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.children.reduce(((t,e)=>t+e.byteLength),t)}get nullCount(){if(Iq.isUnion(this.type))return this.children.reduce(((t,e)=>t+e.nullCount),0)
13890
+ return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.children.reduce(((t,e)=>t+e.byteLength),t)}get nullCount(){if(Mq.isUnion(this.type))return this.children.reduce(((t,e)=>t+e.nullCount),0)
13889
13891
  let t,e=this._nullCount
13890
- return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=0===t.length?0:this.length-MW(t,this.offset,this.offset+this.length)),e}constructor(t,e,n,i,s,o=[],r){let a
13891
- this.type=t,this.children=o,this.dictionary=r,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),s instanceof EW?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=Xq(t),s&&((a=s[0])&&(this.valueOffsets=a),(a=s[1])&&(this.values=a),(a=s[2])&&(this.nullBitmap=a),(a=s[3])&&(this.typeIds=a)))}getValid(t){const{type:e}=this
13892
- if(Iq.isUnion(e)){const n=e,i=this.children[n.typeIdToChildIndex[this.typeIds[t]]],s=n.mode===KH.Dense?this.valueOffsets[t]:t
13892
+ return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=0===t.length?0:this.length-$W(t,this.offset,this.offset+this.length)),e}constructor(t,e,n,i,s,o=[],r){let a
13893
+ this.type=t,this.children=o,this.dictionary=r,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),s instanceof DW?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=Jq(t),s&&((a=s[0])&&(this.valueOffsets=a),(a=s[1])&&(this.values=a),(a=s[2])&&(this.nullBitmap=a),(a=s[3])&&(this.typeIds=a)))}getValid(t){const{type:e}=this
13894
+ if(Mq.isUnion(e)){const n=e,i=this.children[n.typeIdToChildIndex[this.typeIds[t]]],s=n.mode===YH.Dense?this.valueOffsets[t]:t
13893
13895
  return i.getValid(s)}if(this.nullable&&this.nullCount>0){const e=this.offset+t
13894
- return 0!=(this.nullBitmap[e>>3]&1<<e%8)}return!0}setValid(t,e){let n
13896
+ return!!(this.nullBitmap[e>>3]&1<<e%8)}return!0}setValid(t,e){let n
13895
13897
  const{type:i}=this
13896
- if(Iq.isUnion(i)){const s=i,o=this.children[s.typeIdToChildIndex[this.typeIds[t]]],r=s.mode===KH.Dense?this.valueOffsets[t]:t
13898
+ if(Mq.isUnion(i)){const s=i,o=this.children[s.typeIdToChildIndex[this.typeIds[t]]],r=s.mode===YH.Dense?this.valueOffsets[t]:t
13897
13899
  n=o.getValid(r),o.setValid(r,e)}else{let{nullBitmap:i}=this
13898
- const{offset:s,length:o}=this,r=s+t,a=1<<r%8,l=r>>3;(!i||i.byteLength<=l)&&(i=new Uint8Array((s+o+63&-64)>>3).fill(255),this.nullCount>0?(i.set(SW(s,o,this.nullBitmap),0),Object.assign(this,{nullBitmap:i})):Object.assign(this,{nullBitmap:i,_nullCount:0}))
13900
+ const{offset:s,length:o}=this,r=s+t,a=1<<r%8,l=r>>3;(!i||i.byteLength<=l)&&(i=new Uint8Array((s+o+63&-64)>>3).fill(255),this.nullCount>0?(i.set(_W(s,o,this.nullBitmap),0),Object.assign(this,{nullBitmap:i})):Object.assign(this,{nullBitmap:i,_nullCount:0}))
13899
13901
  const c=i[l]
13900
- n=0!=(c&a),i[l]=e?c|a:c&~a}return n!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(t=this.type,e=this.offset,n=this.length,i=this._nullCount,s=this,o=this.children){return new EW(t,e,n,i,s,o,this.dictionary)}slice(t,e){const{stride:n,typeId:i,children:s}=this,o=+(0===this._nullCount)-1,r=16===i?n:1,a=this._sliceBuffers(t,e,n,i)
13901
- return this.clone(this.type,this.offset+t,e,o,a,0===s.length||this.valueOffsets?s:this._sliceChildren(s,r*t,r*e))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===HU.Null)return this.clone(this.type,0,t,0)
13902
+ n=!!(c&a),i[l]=e?c|a:c&~a}return n!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(t=this.type,e=this.offset,n=this.length,i=this._nullCount,s=this,o=this.children){return new DW(t,e,n,i,s,o,this.dictionary)}slice(t,e){const{stride:n,typeId:i,children:s}=this,o=+(0===this._nullCount)-1,r=16===i?n:1,a=this._sliceBuffers(t,e,n,i)
13903
+ return this.clone(this.type,this.offset+t,e,o,a,0===s.length||this.valueOffsets?s:this._sliceChildren(s,r*t,r*e))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===UU.Null)return this.clone(this.type,0,t,0)
13902
13904
  const{length:e,nullCount:n}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3)
13903
- i[e>>3]=(1<<e-(-8&e))-1,n>0&&i.set(SW(this.offset,e,this.nullBitmap),0)
13905
+ i[e>>3]=(1<<e-(-8&e))-1,n>0&&i.set(_W(this.offset,e,this.nullBitmap),0)
13904
13906
  const s=this.buffers
13905
- return s[UU.VALIDITY]=i,this.clone(this.type,0,t,n+(t-e),s)}_sliceBuffers(t,e,n,i){let s
13907
+ return s[qU.VALIDITY]=i,this.clone(this.type,0,t,n+(t-e),s)}_sliceBuffers(t,e,n,i){let s
13906
13908
  const{buffers:o}=this
13907
- return(s=o[UU.TYPE])&&(o[UU.TYPE]=s.subarray(t,t+e)),(s=o[UU.OFFSET])&&(o[UU.OFFSET]=s.subarray(t,t+e+1))||(s=o[UU.DATA])&&(o[UU.DATA]=6===i?s:s.subarray(n*t,n*(t+e))),o}_sliceChildren(t,e,n){return t.map((t=>t.slice(e,n)))}}EW.prototype.children=Object.freeze([])
13908
- class DW extends Jq{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{type:e,offset:n=0,length:i=0}=t
13909
- return new EW(e,n,i,i)}visitBool(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length>>3,nullCount:r=(t.nullBitmap?-1:0)}=t
13910
- return new EW(e,n,o,r,[void 0,s,i])}visitInt(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length,nullCount:r=(t.nullBitmap?-1:0)}=t
13911
- return new EW(e,n,o,r,[void 0,s,i])}visitFloat(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length,nullCount:r=(t.nullBitmap?-1:0)}=t
13912
- return new EW(e,n,o,r,[void 0,s,i])}visitUtf8(t){const{type:e,offset:n=0}=t,i=PH(t.data),s=PH(t.nullBitmap),o=LH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13913
- return new EW(e,n,r,a,[o,i,s])}visitLargeUtf8(t){const{type:e,offset:n=0}=t,i=PH(t.data),s=PH(t.nullBitmap),o=BH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13914
- return new EW(e,n,r,a,[o,i,s])}visitBinary(t){const{type:e,offset:n=0}=t,i=PH(t.data),s=PH(t.nullBitmap),o=LH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13915
- return new EW(e,n,r,a,[o,i,s])}visitLargeBinary(t){const{type:e,offset:n=0}=t,i=PH(t.data),s=PH(t.nullBitmap),o=BH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13916
- return new EW(e,n,r,a,[o,i,s])}visitFixedSizeBinary(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13917
- return new EW(e,n,o,r,[void 0,s,i])}visitDate(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13918
- return new EW(e,n,o,r,[void 0,s,i])}visitTimestamp(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13919
- return new EW(e,n,o,r,[void 0,s,i])}visitTime(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13920
- return new EW(e,n,o,r,[void 0,s,i])}visitDecimal(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13921
- return new EW(e,n,o,r,[void 0,s,i])}visitList(t){const{type:e,offset:n=0,child:i}=t,s=PH(t.nullBitmap),o=LH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13922
- return new EW(e,n,r,a,[o,void 0,s],[i])}visitStruct(t){const{type:e,offset:n=0,children:i=[]}=t,s=PH(t.nullBitmap),{length:o=i.reduce(((t,{length:e})=>Math.max(t,e)),0),nullCount:r=(t.nullBitmap?-1:0)}=t
13923
- return new EW(e,n,o,r,[void 0,void 0,s],i)}visitUnion(t){const{type:e,offset:n=0,children:i=[]}=t,s=NH(e.ArrayType,t.typeIds),{length:o=s.length,nullCount:r=-1}=t
13924
- if(Iq.isSparseUnion(e))return new EW(e,n,o,r,[void 0,void 0,void 0,s],i)
13925
- const a=LH(t.valueOffsets)
13926
- return new EW(e,n,o,r,[a,void 0,void 0,s],i)}visitDictionary(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.indices.ArrayType,t.data),{dictionary:o=new QW([(new DW).visit({type:e.dictionary})])}=t,{length:r=s.length,nullCount:a=(t.nullBitmap?-1:0)}=t
13927
- return new EW(e,n,r,a,[void 0,s,i],[],o)}visitInterval(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13928
- return new EW(e,n,o,r,[void 0,s,i])}visitDuration(t){const{type:e,offset:n=0}=t,i=PH(t.nullBitmap),s=NH(e.ArrayType,t.data),{length:o=s.length,nullCount:r=(t.nullBitmap?-1:0)}=t
13929
- return new EW(e,n,o,r,[void 0,s,i])}visitFixedSizeList(t){const{type:e,offset:n=0,child:i=(new DW).visit({type:e.valueType})}=t,s=PH(t.nullBitmap),{length:o=i.length/Xq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13930
- return new EW(e,n,o,r,[void 0,void 0,s],[i])}visitMap(t){const{type:e,offset:n=0,child:i=(new DW).visit({type:e.childType})}=t,s=PH(t.nullBitmap),o=LH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13931
- return new EW(e,n,r,a,[o,void 0,s],[i])}}const AW=new DW
13932
- function TW(t){return AW.visit(t)}class OW{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const t=this.chunkIterator.next()
13933
- if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function RW(t){return t.reduce(((t,e)=>t+e.nullCount),0)}function FW(t){return t.reduce(((t,e,n)=>(t[n+1]=t[n]+e.length,t)),new Uint32Array(t.length+1))}function NW(t,e,n,i){const s=[]
13909
+ return(s=o[qU.TYPE])&&(o[qU.TYPE]=s.subarray(t,t+e)),(s=o[qU.OFFSET])&&(o[qU.OFFSET]=s.subarray(t,t+e+1))||(s=o[qU.DATA])&&(o[qU.DATA]=6===i?s:s.subarray(n*t,n*(t+e))),o}_sliceChildren(t,e,n){return t.map((t=>t.slice(e,n)))}}DW.prototype.children=Object.freeze([])
13910
+ class AW extends Qq{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{type:e,offset:n=0,length:i=0}=t
13911
+ return new DW(e,n,i,i)}visitBool(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length>>3,nullCount:r=(t.nullBitmap?-1:0)}=t
13912
+ return new DW(e,n,o,r,[void 0,s,i])}visitInt(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length,nullCount:r=(t.nullBitmap?-1:0)}=t
13913
+ return new DW(e,n,o,r,[void 0,s,i])}visitFloat(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length,nullCount:r=(t.nullBitmap?-1:0)}=t
13914
+ return new DW(e,n,o,r,[void 0,s,i])}visitUtf8(t){const{type:e,offset:n=0}=t,i=zH(t.data),s=zH(t.nullBitmap),o=BH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13915
+ return new DW(e,n,r,a,[o,i,s])}visitLargeUtf8(t){const{type:e,offset:n=0}=t,i=zH(t.data),s=zH(t.nullBitmap),o=PH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13916
+ return new DW(e,n,r,a,[o,i,s])}visitBinary(t){const{type:e,offset:n=0}=t,i=zH(t.data),s=zH(t.nullBitmap),o=BH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13917
+ return new DW(e,n,r,a,[o,i,s])}visitLargeBinary(t){const{type:e,offset:n=0}=t,i=zH(t.data),s=zH(t.nullBitmap),o=PH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13918
+ return new DW(e,n,r,a,[o,i,s])}visitFixedSizeBinary(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13919
+ return new DW(e,n,o,r,[void 0,s,i])}visitDate(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13920
+ return new DW(e,n,o,r,[void 0,s,i])}visitTimestamp(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13921
+ return new DW(e,n,o,r,[void 0,s,i])}visitTime(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13922
+ return new DW(e,n,o,r,[void 0,s,i])}visitDecimal(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13923
+ return new DW(e,n,o,r,[void 0,s,i])}visitList(t){const{type:e,offset:n=0,child:i}=t,s=zH(t.nullBitmap),o=BH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13924
+ return new DW(e,n,r,a,[o,void 0,s],[i])}visitStruct(t){const{type:e,offset:n=0,children:i=[]}=t,s=zH(t.nullBitmap),{length:o=i.reduce(((t,{length:e})=>Math.max(t,e)),0),nullCount:r=(t.nullBitmap?-1:0)}=t
13925
+ return new DW(e,n,o,r,[void 0,void 0,s],i)}visitUnion(t){const{type:e,offset:n=0,children:i=[]}=t,s=LH(e.ArrayType,t.typeIds),{length:o=s.length,nullCount:r=-1}=t
13926
+ if(Mq.isSparseUnion(e))return new DW(e,n,o,r,[void 0,void 0,void 0,s],i)
13927
+ const a=BH(t.valueOffsets)
13928
+ return new DW(e,n,o,r,[a,void 0,void 0,s],i)}visitDictionary(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.indices.ArrayType,t.data),{dictionary:o=new tG([(new AW).visit({type:e.dictionary})])}=t,{length:r=s.length,nullCount:a=(t.nullBitmap?-1:0)}=t
13929
+ return new DW(e,n,r,a,[void 0,s,i],[],o)}visitInterval(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13930
+ return new DW(e,n,o,r,[void 0,s,i])}visitDuration(t){const{type:e,offset:n=0}=t,i=zH(t.nullBitmap),s=LH(e.ArrayType,t.data),{length:o=s.length,nullCount:r=(t.nullBitmap?-1:0)}=t
13931
+ return new DW(e,n,o,r,[void 0,s,i])}visitFixedSizeList(t){const{type:e,offset:n=0,child:i=(new AW).visit({type:e.valueType})}=t,s=zH(t.nullBitmap),{length:o=i.length/Jq(e),nullCount:r=(t.nullBitmap?-1:0)}=t
13932
+ return new DW(e,n,o,r,[void 0,void 0,s],[i])}visitMap(t){const{type:e,offset:n=0,child:i=(new AW).visit({type:e.childType})}=t,s=zH(t.nullBitmap),o=BH(t.valueOffsets),{length:r=o.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
13933
+ return new DW(e,n,r,a,[o,void 0,s],[i])}}const TW=new AW
13934
+ function OW(t){return TW.visit(t)}class RW{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const t=this.chunkIterator.next()
13935
+ if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function FW(t){return t.reduce(((t,e)=>t+e.nullCount),0)}function NW(t){return t.reduce(((t,e,n)=>(t[n+1]=t[n]+e.length,t)),new Uint32Array(t.length+1))}function LW(t,e,n,i){const s=[]
13934
13936
  for(let o=-1,r=t.length;++o<r;){const r=t[o],a=e[o],{length:l}=r
13935
13937
  if(a>=i)break
13936
13938
  if(n>=a+l)continue
13937
13939
  if(a>=n&&a+l<=i){s.push(r)
13938
13940
  continue}const c=Math.max(0,n-a),d=Math.min(i-a,l)
13939
- s.push(r.slice(c,d-c))}return 0===s.length&&s.push(t[0].slice(0,0)),s}function LW(t,e,n,i){let s=0,o=0,r=e.length-1
13941
+ s.push(r.slice(c,d-c))}return 0===s.length&&s.push(t[0].slice(0,0)),s}function BW(t,e,n,i){let s=0,o=0,r=e.length-1
13940
13942
  do{if(s>=r-1)return n<e[r]?i(t,s,n-e[s]):null
13941
- o=s+Math.trunc(.5*(r-s)),n<e[o]?r=o:s=o}while(s<r)}function BW(t,e){return t.getValid(e)}function PW(t){function e(e,n,i){return t(e[n],i)}return function(t){return LW(this.data,this._offsets,t,e)}}function zW(t){let e
13943
+ o=s+Math.trunc(.5*(r-s)),n<e[o]?r=o:s=o}while(s<r)}function PW(t,e){return t.getValid(e)}function zW(t){function e(e,n,i){return t(e[n],i)}return function(t){return BW(this.data,this._offsets,t,e)}}function VW(t){let e
13942
13944
  function n(n,i,s){return t(n[i],s,e)}return function(t,i){const s=this.data
13943
13945
  e=i
13944
- const o=LW(s,this._offsets,t,n)
13945
- return e=void 0,o}}function VW(t){let e
13946
+ const o=BW(s,this._offsets,t,n)
13947
+ return e=void 0,o}}function HW(t){let e
13946
13948
  function n(n,i,s){let o=s,r=0,a=0
13947
13949
  for(let s=i-1,l=n.length;++s<l;){const i=n[s]
13948
13950
  if(~(r=t(i,e,o)))return a+r
13949
13951
  o=0,a+=i.length}return-1}return function(t,i){e=t
13950
- const s=this.data,o="number"!=typeof i?n(s,0,0):LW(s,this._offsets,i,n)
13951
- return e=void 0,o}}class HW extends Jq{}function UW(t,e,n){if(void 0===e)return-1
13952
- if(null===e)switch(t.typeId){case HU.Union:case HU.Dictionary:break
13952
+ const s=this.data,o="number"!=typeof i?n(s,0,0):BW(s,this._offsets,i,n)
13953
+ return e=void 0,o}}class UW extends Qq{}function qW(t,e,n){if(void 0===e)return-1
13954
+ if(null===e)switch(t.typeId){case UU.Union:case UU.Dictionary:break
13953
13955
  default:return function(t,e){const{nullBitmap:n}=t
13954
13956
  if(!n||t.nullCount<=0)return-1
13955
13957
  let i=0
13956
- for(const s of new IW(n,t.offset+(e||0),t.length,n,CW)){if(!s)return i;++i}return-1}(t,n)}const i=aW.getVisitFn(t),s=yW(e)
13958
+ for(const s of new MW(n,t.offset+(e||0),t.length,n,kW)){if(!s)return i;++i}return-1}(t,n)}const i=lW.getVisitFn(t),s=wW(e)
13957
13959
  for(let e=(n||0)-1,o=t.length;++e<o;)if(s(i(t,e)))return e
13958
- return-1}function qW(t,e,n){const i=aW.getVisitFn(t),s=yW(e)
13960
+ return-1}function jW(t,e,n){const i=lW.getVisitFn(t),s=wW(e)
13959
13961
  for(let e=(n||0)-1,o=t.length;++e<o;)if(s(i(t,e)))return e
13960
- return-1}HW.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},HW.prototype.visitBool=UW,HW.prototype.visitInt=UW,HW.prototype.visitInt8=UW,HW.prototype.visitInt16=UW,HW.prototype.visitInt32=UW,HW.prototype.visitInt64=UW,HW.prototype.visitUint8=UW,HW.prototype.visitUint16=UW,HW.prototype.visitUint32=UW,HW.prototype.visitUint64=UW,HW.prototype.visitFloat=UW,HW.prototype.visitFloat16=UW,HW.prototype.visitFloat32=UW,HW.prototype.visitFloat64=UW,HW.prototype.visitUtf8=UW,HW.prototype.visitLargeUtf8=UW,HW.prototype.visitBinary=UW,HW.prototype.visitLargeBinary=UW,HW.prototype.visitFixedSizeBinary=UW,HW.prototype.visitDate=UW,HW.prototype.visitDateDay=UW,HW.prototype.visitDateMillisecond=UW,HW.prototype.visitTimestamp=UW,HW.prototype.visitTimestampSecond=UW,HW.prototype.visitTimestampMillisecond=UW,HW.prototype.visitTimestampMicrosecond=UW,HW.prototype.visitTimestampNanosecond=UW,HW.prototype.visitTime=UW,HW.prototype.visitTimeSecond=UW,HW.prototype.visitTimeMillisecond=UW,HW.prototype.visitTimeMicrosecond=UW,HW.prototype.visitTimeNanosecond=UW,HW.prototype.visitDecimal=UW,HW.prototype.visitList=UW,HW.prototype.visitStruct=UW,HW.prototype.visitUnion=UW,HW.prototype.visitDenseUnion=qW,HW.prototype.visitSparseUnion=qW,HW.prototype.visitDictionary=UW,HW.prototype.visitInterval=UW,HW.prototype.visitIntervalDayTime=UW,HW.prototype.visitIntervalYearMonth=UW,HW.prototype.visitDuration=UW,HW.prototype.visitDurationSecond=UW,HW.prototype.visitDurationMillisecond=UW,HW.prototype.visitDurationMicrosecond=UW,HW.prototype.visitDurationNanosecond=UW,HW.prototype.visitFixedSizeList=UW,HW.prototype.visitMap=UW
13961
- const jW=new HW
13962
- class WW extends Jq{}function GW(t){const{type:e}=t
13963
- if(0===t.nullCount&&1===t.stride&&(Iq.isInt(e)&&64!==e.bitWidth||Iq.isTime(e)&&64!==e.bitWidth||Iq.isFloat(e)&&e.precision!==YH.HALF))return new OW(t.data.length,(e=>{const n=t.data[e]
13962
+ return-1}UW.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},UW.prototype.visitBool=qW,UW.prototype.visitInt=qW,UW.prototype.visitInt8=qW,UW.prototype.visitInt16=qW,UW.prototype.visitInt32=qW,UW.prototype.visitInt64=qW,UW.prototype.visitUint8=qW,UW.prototype.visitUint16=qW,UW.prototype.visitUint32=qW,UW.prototype.visitUint64=qW,UW.prototype.visitFloat=qW,UW.prototype.visitFloat16=qW,UW.prototype.visitFloat32=qW,UW.prototype.visitFloat64=qW,UW.prototype.visitUtf8=qW,UW.prototype.visitLargeUtf8=qW,UW.prototype.visitBinary=qW,UW.prototype.visitLargeBinary=qW,UW.prototype.visitFixedSizeBinary=qW,UW.prototype.visitDate=qW,UW.prototype.visitDateDay=qW,UW.prototype.visitDateMillisecond=qW,UW.prototype.visitTimestamp=qW,UW.prototype.visitTimestampSecond=qW,UW.prototype.visitTimestampMillisecond=qW,UW.prototype.visitTimestampMicrosecond=qW,UW.prototype.visitTimestampNanosecond=qW,UW.prototype.visitTime=qW,UW.prototype.visitTimeSecond=qW,UW.prototype.visitTimeMillisecond=qW,UW.prototype.visitTimeMicrosecond=qW,UW.prototype.visitTimeNanosecond=qW,UW.prototype.visitDecimal=qW,UW.prototype.visitList=qW,UW.prototype.visitStruct=qW,UW.prototype.visitUnion=qW,UW.prototype.visitDenseUnion=jW,UW.prototype.visitSparseUnion=jW,UW.prototype.visitDictionary=qW,UW.prototype.visitInterval=qW,UW.prototype.visitIntervalDayTime=qW,UW.prototype.visitIntervalYearMonth=qW,UW.prototype.visitDuration=qW,UW.prototype.visitDurationSecond=qW,UW.prototype.visitDurationMillisecond=qW,UW.prototype.visitDurationMicrosecond=qW,UW.prototype.visitDurationNanosecond=qW,UW.prototype.visitFixedSizeList=qW,UW.prototype.visitMap=qW
13963
+ const WW=new UW
13964
+ class GW extends Qq{}function ZW(t){const{type:e}=t
13965
+ if(0===t.nullCount&&1===t.stride&&(Mq.isInt(e)&&64!==e.bitWidth||Mq.isTime(e)&&64!==e.bitWidth||Mq.isFloat(e)&&e.precision!==XH.HALF))return new RW(t.data.length,(e=>{const n=t.data[e]
13964
13966
  return n.values.subarray(0,n.length)[Symbol.iterator]()}))
13965
13967
  let n=0
13966
- return new OW(t.data.length,(e=>{const i=t.data[e].length,s=t.slice(n,n+i)
13967
- return n+=i,new ZW(s)}))}class ZW{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}WW.prototype.visitNull=GW,WW.prototype.visitBool=GW,WW.prototype.visitInt=GW,WW.prototype.visitInt8=GW,WW.prototype.visitInt16=GW,WW.prototype.visitInt32=GW,WW.prototype.visitInt64=GW,WW.prototype.visitUint8=GW,WW.prototype.visitUint16=GW,WW.prototype.visitUint32=GW,WW.prototype.visitUint64=GW,WW.prototype.visitFloat=GW,WW.prototype.visitFloat16=GW,WW.prototype.visitFloat32=GW,WW.prototype.visitFloat64=GW,WW.prototype.visitUtf8=GW,WW.prototype.visitLargeUtf8=GW,WW.prototype.visitBinary=GW,WW.prototype.visitLargeBinary=GW,WW.prototype.visitFixedSizeBinary=GW,WW.prototype.visitDate=GW,WW.prototype.visitDateDay=GW,WW.prototype.visitDateMillisecond=GW,WW.prototype.visitTimestamp=GW,WW.prototype.visitTimestampSecond=GW,WW.prototype.visitTimestampMillisecond=GW,WW.prototype.visitTimestampMicrosecond=GW,WW.prototype.visitTimestampNanosecond=GW,WW.prototype.visitTime=GW,WW.prototype.visitTimeSecond=GW,WW.prototype.visitTimeMillisecond=GW,WW.prototype.visitTimeMicrosecond=GW,WW.prototype.visitTimeNanosecond=GW,WW.prototype.visitDecimal=GW,WW.prototype.visitList=GW,WW.prototype.visitStruct=GW,WW.prototype.visitUnion=GW,WW.prototype.visitDenseUnion=GW,WW.prototype.visitSparseUnion=GW,WW.prototype.visitDictionary=GW,WW.prototype.visitInterval=GW,WW.prototype.visitIntervalDayTime=GW,WW.prototype.visitIntervalYearMonth=GW,WW.prototype.visitDuration=GW,WW.prototype.visitDurationSecond=GW,WW.prototype.visitDurationMillisecond=GW,WW.prototype.visitDurationMicrosecond=GW,WW.prototype.visitDurationNanosecond=GW,WW.prototype.visitFixedSizeList=GW,WW.prototype.visitMap=GW
13968
- const KW=new WW
13969
- var YW
13970
- const XW={},JW={}
13971
- class QW{constructor(t){var e,n,i
13972
- const s=t[0]instanceof QW?t.flatMap((t=>t.data)):t
13973
- if(0===s.length||s.some((t=>!(t instanceof EW))))throw new TypeError("Vector constructor expects an Array of Data instances.")
13968
+ return new RW(t.data.length,(e=>{const i=t.data[e].length,s=t.slice(n,n+i)
13969
+ return n+=i,new KW(s)}))}class KW{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}GW.prototype.visitNull=ZW,GW.prototype.visitBool=ZW,GW.prototype.visitInt=ZW,GW.prototype.visitInt8=ZW,GW.prototype.visitInt16=ZW,GW.prototype.visitInt32=ZW,GW.prototype.visitInt64=ZW,GW.prototype.visitUint8=ZW,GW.prototype.visitUint16=ZW,GW.prototype.visitUint32=ZW,GW.prototype.visitUint64=ZW,GW.prototype.visitFloat=ZW,GW.prototype.visitFloat16=ZW,GW.prototype.visitFloat32=ZW,GW.prototype.visitFloat64=ZW,GW.prototype.visitUtf8=ZW,GW.prototype.visitLargeUtf8=ZW,GW.prototype.visitBinary=ZW,GW.prototype.visitLargeBinary=ZW,GW.prototype.visitFixedSizeBinary=ZW,GW.prototype.visitDate=ZW,GW.prototype.visitDateDay=ZW,GW.prototype.visitDateMillisecond=ZW,GW.prototype.visitTimestamp=ZW,GW.prototype.visitTimestampSecond=ZW,GW.prototype.visitTimestampMillisecond=ZW,GW.prototype.visitTimestampMicrosecond=ZW,GW.prototype.visitTimestampNanosecond=ZW,GW.prototype.visitTime=ZW,GW.prototype.visitTimeSecond=ZW,GW.prototype.visitTimeMillisecond=ZW,GW.prototype.visitTimeMicrosecond=ZW,GW.prototype.visitTimeNanosecond=ZW,GW.prototype.visitDecimal=ZW,GW.prototype.visitList=ZW,GW.prototype.visitStruct=ZW,GW.prototype.visitUnion=ZW,GW.prototype.visitDenseUnion=ZW,GW.prototype.visitSparseUnion=ZW,GW.prototype.visitDictionary=ZW,GW.prototype.visitInterval=ZW,GW.prototype.visitIntervalDayTime=ZW,GW.prototype.visitIntervalYearMonth=ZW,GW.prototype.visitDuration=ZW,GW.prototype.visitDurationSecond=ZW,GW.prototype.visitDurationMillisecond=ZW,GW.prototype.visitDurationMicrosecond=ZW,GW.prototype.visitDurationNanosecond=ZW,GW.prototype.visitFixedSizeList=ZW,GW.prototype.visitMap=ZW
13970
+ const YW=new GW
13971
+ var XW
13972
+ const JW={},QW={}
13973
+ class tG{constructor(t){var e,n,i
13974
+ const s=t[0]instanceof tG?t.flatMap((t=>t.data)):t
13975
+ if(0===s.length||s.some((t=>!(t instanceof DW))))throw new TypeError("Vector constructor expects an Array of Data instances.")
13974
13976
  const o=null===(e=s[0])||void 0===e?void 0:e.type
13975
13977
  switch(s.length){case 0:this._offsets=[0]
13976
13978
  break
13977
- case 1:{const{get:t,set:e,indexOf:n}=XW[o.typeId],i=s[0]
13978
- this.isValid=t=>BW(i,t),this.get=e=>t(i,e),this.set=(t,n)=>e(i,t,n),this.indexOf=t=>n(i,t),this._offsets=[0,i.length]
13979
- break}default:Object.setPrototypeOf(this,JW[o.typeId]),this._offsets=FW(s)}this.data=s,this.type=o,this.stride=Xq(o),this.numChildren=null!==(i=null===(n=o.children)||void 0===n?void 0:n.length)&&void 0!==i?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((t,e)=>t+e.byteLength),0)}get nullable(){return this.data.some((t=>t.nullable))}get nullCount(){return RW(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${HU[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(vW(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return KW.visit(this)}concat(...t){return new QW(this.data.concat(t.flatMap((t=>t.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new QW(gW(this,t,e,(({data:t,_offsets:e},n,i)=>NW(t,e,n,i))))}toJSON(){return[...this]}toArray(){const{type:t,data:e,length:n,stride:i,ArrayType:s}=this
13980
- switch(t.typeId){case HU.Int:case HU.Float:case HU.Decimal:case HU.Time:case HU.Timestamp:switch(e.length){case 0:return new s
13979
+ case 1:{const{get:t,set:e,indexOf:n}=JW[o.typeId],i=s[0]
13980
+ this.isValid=t=>PW(i,t),this.get=e=>t(i,e),this.set=(t,n)=>e(i,t,n),this.indexOf=t=>n(i,t),this._offsets=[0,i.length]
13981
+ break}default:Object.setPrototypeOf(this,QW[o.typeId]),this._offsets=NW(s)}this.data=s,this.type=o,this.stride=Jq(o),this.numChildren=null!==(i=null===(n=o.children)||void 0===n?void 0:n.length)&&void 0!==i?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((t,e)=>t+e.byteLength),0)}get nullable(){return this.data.some((t=>t.nullable))}get nullCount(){return FW(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${UU[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(bW(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return YW.visit(this)}concat(...t){return new tG(this.data.concat(t.flatMap((t=>t.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new tG(vW(this,t,e,(({data:t,_offsets:e},n,i)=>LW(t,e,n,i))))}toJSON(){return[...this]}toArray(){const{type:t,data:e,length:n,stride:i,ArrayType:s}=this
13982
+ switch(t.typeId){case UU.Int:case UU.Float:case UU.Decimal:case UU.Time:case UU.Timestamp:switch(e.length){case 0:return new s
13981
13983
  case 1:return e[0].values.subarray(0,n*i)
13982
13984
  default:return e.reduce(((t,{values:e,length:n})=>(t.array.set(e.subarray(0,n*i),t.offset),t.offset+=n*i,t)),{array:new s(n*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e
13983
- return this.getChildAt(null===(e=this.type.children)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&t<this.numChildren?new QW(this.data.map((({children:e})=>e[t]))):null}get isMemoized(){return!!Iq.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(Iq.isDictionary(this.type)){const t=new tG(this.data[0].dictionary),e=this.data.map((e=>{const n=e.clone()
13985
+ return this.getChildAt(null===(e=this.type.children)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&t<this.numChildren?new tG(this.data.map((({children:e})=>e[t]))):null}get isMemoized(){return!!Mq.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(Mq.isDictionary(this.type)){const t=new eG(this.data[0].dictionary),e=this.data.map((e=>{const n=e.clone()
13984
13986
  return n.dictionary=t,n}))
13985
- return new QW(e)}return new tG(this)}unmemoize(){if(Iq.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),e=this.data.map((e=>{const n=e.clone()
13987
+ return new tG(e)}return new eG(this)}unmemoize(){if(Mq.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),e=this.data.map((e=>{const n=e.clone()
13986
13988
  return n.dictionary=t,n}))
13987
- return new QW(e)}return this}}YW=Symbol.toStringTag,QW[YW]=(t=>{t.type=Iq.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0
13988
- const e=Object.keys(HU).map((t=>HU[t])).filter((t=>"number"==typeof t&&t!==HU.NONE))
13989
- for(const n of e){const e=aW.getVisitFnByTypeId(n),i=Dj.getVisitFnByTypeId(n),s=jW.getVisitFnByTypeId(n)
13990
- XW[n]={get:e,set:i,indexOf:s},JW[n]=Object.create(t,{isValid:{value:PW(BW)},get:{value:PW(aW.getVisitFnByTypeId(n))},set:{value:zW(Dj.getVisitFnByTypeId(n))},indexOf:{value:VW(jW.getVisitFnByTypeId(n))}})}return"Vector"})(QW.prototype)
13991
- class tG extends QW{constructor(t){super(t.data)
13989
+ return new tG(e)}return this}}XW=Symbol.toStringTag,tG[XW]=(t=>{t.type=Mq.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0
13990
+ const e=Object.keys(UU).map((t=>UU[t])).filter((t=>"number"==typeof t&&t!==UU.NONE))
13991
+ for(const n of e){const e=lW.getVisitFnByTypeId(n),i=Aj.getVisitFnByTypeId(n),s=WW.getVisitFnByTypeId(n)
13992
+ JW[n]={get:e,set:i,indexOf:s},QW[n]=Object.create(t,{isValid:{value:zW(PW)},get:{value:zW(lW.getVisitFnByTypeId(n))},set:{value:VW(Aj.getVisitFnByTypeId(n))},indexOf:{value:HW(WW.getVisitFnByTypeId(n))}})}return"Vector"})(tG.prototype)
13993
+ class eG extends tG{constructor(t){super(t.data)
13992
13994
  const e=this.get,n=this.set,i=this.slice,s=new Array(this.length)
13993
13995
  Object.defineProperty(this,"get",{value(t){const n=s[t]
13994
13996
  if(void 0!==n)return n
13995
13997
  const i=e.call(this,t)
13996
- return s[t]=i,i}}),Object.defineProperty(this,"set",{value(t,e){n.call(this,t,e),s[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new tG(i.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new QW(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class eG{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,n,i){return t.prep(8,24),t.writeInt64(BigInt(null!=i?i:0)),t.pad(4),t.writeInt32(n),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class nG{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new nG).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new nG).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4)
13997
- return t?this.bb.readInt16(this.bb_pos+t):ZH.V1}schema(t){const e=this.bb.__offset(this.bb_pos,6)
13998
- return e?(t||new zU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){const n=this.bb.__offset(this.bb_pos,8)
13999
- return n?(e||new eG).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8)
13998
+ return s[t]=i,i}}),Object.defineProperty(this,"set",{value(t,e){n.call(this,t,e),s[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new eG(i.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new tG(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class nG{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,n,i){return t.prep(8,24),t.writeInt64(BigInt(null!=i?i:0)),t.pad(4),t.writeInt32(n),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class iG{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new iG).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new iG).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4)
13999
+ return t?this.bb.readInt16(this.bb_pos+t):KH.V1}schema(t){const e=this.bb.__offset(this.bb_pos,6)
14000
+ return e?(t||new VU).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){const n=this.bb.__offset(this.bb_pos,8)
14001
+ return n?(e||new nG).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8)
14000
14002
  return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){const n=this.bb.__offset(this.bb_pos,10)
14001
- return n?(e||new eG).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10)
14003
+ return n?(e||new nG).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10)
14002
14004
  return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,12)
14003
- return n?(e||new bU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12)
14004
- return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,ZH.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4)
14005
+ return n?(e||new yU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12)
14006
+ return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,KH.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4)
14005
14007
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
14006
- return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}}class iG{constructor(t=[],e,n,i=ZH.V5){this.fields=t||[],this.metadata=e||new Map,n||(n=rG(t)),this.dictionaries=n,this.metadataVersion=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((t=>t.name))}toString(){return`Schema<{ ${this.fields.map(((t,e)=>`${e}: ${t}`)).join(", ")} }>`}select(t){const e=new Set(t),n=this.fields.filter((t=>e.has(t.name)))
14007
- return new iG(n,this.metadata)}selectAt(t){const e=t.map((t=>this.fields[t])).filter(Boolean)
14008
- return new iG(e,this.metadata)}assign(...t){const e=t[0]instanceof iG?t[0]:Array.isArray(t[0])?new iG(t[0]):new iG(t),n=[...this.fields],i=oG(oG(new Map,this.metadata),e.metadata),s=e.fields.filter((t=>{const e=n.findIndex((e=>e.name===t.name))
14009
- return!~e||(n[e]=t.clone({metadata:oG(oG(new Map,n[e].metadata),t.metadata)}))&&!1})),o=rG(s,new Map)
14010
- return new iG([...n,...s],i,new Map([...this.dictionaries,...o]))}}iG.prototype.fields=null,iG.prototype.metadata=null,iG.prototype.dictionaries=null
14011
- class sG{static new(...t){let[e,n,i,s]=t
14012
- return t[0]&&"object"==typeof t[0]&&(({name:e}=t[0]),void 0===n&&(n=t[0].type),void 0===i&&(i=t[0].nullable),void 0===s&&(s=t[0].metadata)),new sG(`${e}`,n,i,s)}constructor(t,e,n=!1,i){this.name=t,this.type=e,this.nullable=n,this.metadata=i||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,n,i,s]=t
14013
- return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:n=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0]):[e=this.name,n=this.type,i=this.nullable,s=this.metadata]=t,sG.new(e,n,i,s)}}function oG(t,e){return new Map([...t||new Map,...e||new Map])}function rG(t,e=new Map){for(let n=-1,i=t.length;++n<i;){const i=t[n].type
14014
- if(Iq.isDictionary(i))if(e.has(i.id)){if(e.get(i.id)!==i.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else e.set(i.id,i.dictionary)
14015
- i.children&&i.children.length>0&&rG(i.children,e)}return e}sG.prototype.type=null,sG.prototype.name=null,sG.prototype.nullable=null,sG.prototype.metadata=null
14016
- var aG=rU,lG=oU
14017
- class cG{static decode(t){t=new lG(PH(t))
14018
- const e=nG.getRootAsFooter(t),n=iG.decode(e.schema(),new Map,e.version())
14019
- return new dG(n,e)}static encode(t){const e=new aG,n=iG.encode(e,t.schema)
14020
- nG.startRecordBatchesVector(e,t.numRecordBatches)
14021
- for(const n of[...t.recordBatches()].slice().reverse())hG.encode(e,n)
14008
+ return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}}class sG{constructor(t=[],e,n,i=KH.V5){this.fields=t||[],this.metadata=e||new Map,n||(n=aG(t)),this.dictionaries=n,this.metadataVersion=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((t=>t.name))}toString(){return`Schema<{ ${this.fields.map(((t,e)=>`${e}: ${t}`)).join(", ")} }>`}select(t){const e=new Set(t),n=this.fields.filter((t=>e.has(t.name)))
14009
+ return new sG(n,this.metadata)}selectAt(t){const e=t.map((t=>this.fields[t])).filter(Boolean)
14010
+ return new sG(e,this.metadata)}assign(...t){const e=t[0]instanceof sG?t[0]:Array.isArray(t[0])?new sG(t[0]):new sG(t),n=[...this.fields],i=rG(rG(new Map,this.metadata),e.metadata),s=e.fields.filter((t=>{const e=n.findIndex((e=>e.name===t.name))
14011
+ return!~e||(n[e]=t.clone({metadata:rG(rG(new Map,n[e].metadata),t.metadata)}))&&!1})),o=aG(s,new Map)
14012
+ return new sG([...n,...s],i,new Map([...this.dictionaries,...o]))}}sG.prototype.fields=null,sG.prototype.metadata=null,sG.prototype.dictionaries=null
14013
+ class oG{static new(...t){let[e,n,i,s]=t
14014
+ return t[0]&&"object"==typeof t[0]&&(({name:e}=t[0]),void 0===n&&(n=t[0].type),void 0===i&&(i=t[0].nullable),void 0===s&&(s=t[0].metadata)),new oG(`${e}`,n,i,s)}constructor(t,e,n=!1,i){this.name=t,this.type=e,this.nullable=n,this.metadata=i||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,n,i,s]=t
14015
+ return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:n=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0]):[e=this.name,n=this.type,i=this.nullable,s=this.metadata]=t,oG.new(e,n,i,s)}}function rG(t,e){return new Map([...t||new Map,...e||new Map])}function aG(t,e=new Map){for(let n=-1,i=t.length;++n<i;){const i=t[n].type
14016
+ if(Mq.isDictionary(i))if(e.has(i.id)){if(e.get(i.id)!==i.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else e.set(i.id,i.dictionary)
14017
+ i.children&&i.children.length>0&&aG(i.children,e)}return e}oG.prototype.type=null,oG.prototype.name=null,oG.prototype.nullable=null,oG.prototype.metadata=null
14018
+ var lG=aU,cG=rU
14019
+ class dG{static decode(t){t=new cG(zH(t))
14020
+ const e=iG.getRootAsFooter(t),n=sG.decode(e.schema(),new Map,e.version())
14021
+ return new hG(n,e)}static encode(t){const e=new lG,n=sG.encode(e,t.schema)
14022
+ iG.startRecordBatchesVector(e,t.numRecordBatches)
14023
+ for(const n of[...t.recordBatches()].slice().reverse())uG.encode(e,n)
14022
14024
  const i=e.endVector()
14023
- nG.startDictionariesVector(e,t.numDictionaries)
14024
- for(const n of[...t.dictionaryBatches()].slice().reverse())hG.encode(e,n)
14025
+ iG.startDictionariesVector(e,t.numDictionaries)
14026
+ for(const n of[...t.dictionaryBatches()].slice().reverse())uG.encode(e,n)
14025
14027
  const s=e.endVector()
14026
- return nG.startFooter(e),nG.addSchema(e,n),nG.addVersion(e,ZH.V5),nG.addRecordBatches(e,i),nG.addDictionaries(e,s),nG.finishFooterBuffer(e,nG.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=ZH.V5,n,i){this.schema=t,this.version=e,n&&(this._recordBatches=n),i&&(this._dictionaryBatches=i)}*recordBatches(){for(let t,e=-1,n=this.numRecordBatches;++e<n;)(t=this.getRecordBatch(e))&&(yield t)}*dictionaryBatches(){for(let t,e=-1,n=this.numDictionaries;++e<n;)(t=this.getDictionaryBatch(e))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}}class dG extends cG{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(t,e){super(t,e.version()),this._footer=e}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){const e=this._footer.recordBatches(t)
14027
- if(e)return hG.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const e=this._footer.dictionaries(t)
14028
- if(e)return hG.decode(e)}return null}}class hG{static decode(t){return new hG(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){const{metaDataLength:n}=e,i=BigInt(e.offset),s=BigInt(e.bodyLength)
14029
- return eG.createBlock(t,i,n,s)}constructor(t,e,n){this.metaDataLength=t,this.offset=jU(n),this.bodyLength=jU(e)}}const uG=Object.freeze({done:!0,value:void 0})
14030
- class pG{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class fG{tee(){return this._getDOMStream().tee()}pipe(t,e){return this._getNodeStream().pipe(t,e)}pipeTo(t,e){return this._getDOMStream().pipeTo(t,e)}pipeThrough(t,e){return this._getDOMStream().pipeThrough(t,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class mG extends fG{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}get closed(){return this._closedPromise}cancel(t){return e(this,void 0,void 0,(function*(){yield this.return(t)}))}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this
14031
- for(;t.length>0;)t.shift().resolve(uG)
14032
- this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return qH.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return qH.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return e(this,void 0,void 0,(function*(){return yield this.abort(t),uG}))}return(t){return e(this,void 0,void 0,(function*(){return yield this.close(),uG}))}read(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((t,e)=>{this.resolvers.push({resolve:t,reject:e})})):Promise.resolve(uG)}_ensureOpen(){if(this._closedPromiseResolve)return!0
14033
- throw new Error("AsyncQueue is closed")}}class gG extends mG{write(t){if((t=PH(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?vH(this.toUint8Array(!0)):this.toUint8Array(!1).then(vH)}toUint8Array(t=!1){return t?FH(this._values)[0]:(()=>e(this,void 0,void 0,(function*(){var t,e,n,i
14028
+ return iG.startFooter(e),iG.addSchema(e,n),iG.addVersion(e,KH.V5),iG.addRecordBatches(e,i),iG.addDictionaries(e,s),iG.finishFooterBuffer(e,iG.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=KH.V5,n,i){this.schema=t,this.version=e,n&&(this._recordBatches=n),i&&(this._dictionaryBatches=i)}*recordBatches(){for(let t,e=-1,n=this.numRecordBatches;++e<n;)(t=this.getRecordBatch(e))&&(yield t)}*dictionaryBatches(){for(let t,e=-1,n=this.numDictionaries;++e<n;)(t=this.getDictionaryBatch(e))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}}class hG extends dG{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(t,e){super(t,e.version()),this._footer=e}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){const e=this._footer.recordBatches(t)
14029
+ if(e)return uG.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const e=this._footer.dictionaries(t)
14030
+ if(e)return uG.decode(e)}return null}}class uG{static decode(t){return new uG(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){const{metaDataLength:n}=e,i=BigInt(e.offset),s=BigInt(e.bodyLength)
14031
+ return nG.createBlock(t,i,n,s)}constructor(t,e,n){this.metaDataLength=t,this.offset=WU(n),this.bodyLength=WU(e)}}const pG=Object.freeze({done:!0,value:void 0})
14032
+ class fG{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class mG{tee(){return this._getDOMStream().tee()}pipe(t,e){return this._getNodeStream().pipe(t,e)}pipeTo(t,e){return this._getDOMStream().pipeTo(t,e)}pipeThrough(t,e){return this._getDOMStream().pipeThrough(t,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class gG extends mG{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}get closed(){return this._closedPromise}cancel(t){return e(this,void 0,void 0,(function*(){yield this.return(t)}))}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this
14033
+ for(;t.length>0;)t.shift().resolve(pG)
14034
+ this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return jH.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return jH.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return e(this,void 0,void 0,(function*(){return yield this.abort(t),pG}))}return(t){return e(this,void 0,void 0,(function*(){return yield this.close(),pG}))}read(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((t,e)=>{this.resolvers.push({resolve:t,reject:e})})):Promise.resolve(pG)}_ensureOpen(){if(this._closedPromiseResolve)return!0
14035
+ throw new Error("AsyncQueue is closed")}}class vG extends gG{write(t){if((t=zH(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?bH(this.toUint8Array(!0)):this.toUint8Array(!1).then(bH)}toUint8Array(t=!1){return t?NH(this._values)[0]:(()=>e(this,void 0,void 0,(function*(){var t,e,n,i
14034
14036
  const s=[]
14035
14037
  let o=0
14036
14038
  try{for(var a,l=!0,c=r(this);!(t=(a=yield c.next()).done);l=!0){i=a.value,l=!1
14037
14039
  const t=i
14038
- s.push(t),o+=t.byteLength}}catch(t){e={error:t}}finally{try{l||t||!(n=c.return)||(yield n.call(c))}finally{if(e)throw e.error}}return FH(s,o)[0]})))()}}class vG{constructor(t){t&&(this.source=new yG(qH.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class bG{constructor(t){t instanceof bG?this.source=t.source:t instanceof gG?this.source=new wG(qH.fromAsyncIterable(t)):AH(t)?this.source=new wG(qH.fromNodeStream(t)):DH(t)?this.source=new wG(qH.fromDOMStream(t)):$H(t)?this.source=new wG(qH.fromDOMStream(t.body)):kH(t)?this.source=new wG(qH.fromIterable(t)):(CH(t)||SH(t))&&(this.source=new wG(qH.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class yG{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||uG)}return(t){return Object.create(this.source.return&&this.source.return(t)||uG)}}class wG{constructor(t){this.source=t,this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}cancel(t){return e(this,void 0,void 0,(function*(){yield this.return(t)}))}get closed(){return this._closedPromise}read(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(t){return e(this,arguments,void 0,(function*(t,e="read"){return yield this.source.next({cmd:e,size:t})}))}throw(t){return e(this,void 0,void 0,(function*(){const e=this.source.throw&&(yield this.source.throw(t))||uG
14039
- return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}return(t){return e(this,void 0,void 0,(function*(){const e=this.source.return&&(yield this.source.return(t))||uG
14040
- return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}}class xG extends vG{constructor(t,e){super(),this.position=0,this.buffer=PH(t),this.size=void 0===e?this.buffer.byteLength:e}readInt32(t){const{buffer:e,byteOffset:n}=this.readAt(t,4)
14040
+ s.push(t),o+=t.byteLength}}catch(t){e={error:t}}finally{try{l||t||!(n=c.return)||(yield n.call(c))}finally{if(e)throw e.error}}return NH(s,o)[0]})))()}}class bG{constructor(t){t&&(this.source=new wG(jH.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class yG{constructor(t){t instanceof yG?this.source=t.source:t instanceof vG?this.source=new xG(jH.fromAsyncIterable(t)):TH(t)?this.source=new xG(jH.fromNodeStream(t)):AH(t)?this.source=new xG(jH.fromDOMStream(t)):EH(t)?this.source=new xG(jH.fromDOMStream(t.body)):SH(t)?this.source=new xG(jH.fromIterable(t)):(kH(t)||_H(t))&&(this.source=new xG(jH.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class wG{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||pG)}return(t){return Object.create(this.source.return&&this.source.return(t)||pG)}}class xG{constructor(t){this.source=t,this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}cancel(t){return e(this,void 0,void 0,(function*(){yield this.return(t)}))}get closed(){return this._closedPromise}read(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return e(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(t){return e(this,arguments,void 0,(function*(t,e="read"){return yield this.source.next({cmd:e,size:t})}))}throw(t){return e(this,void 0,void 0,(function*(){const e=this.source.throw&&(yield this.source.throw(t))||pG
14041
+ return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}return(t){return e(this,void 0,void 0,(function*(){const e=this.source.return&&(yield this.source.return(t))||pG
14042
+ return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}}class CG extends bG{constructor(t,e){super(),this.position=0,this.buffer=zH(t),this.size=void 0===e?this.buffer.byteLength:e}readInt32(t){const{buffer:e,byteOffset:n}=this.readAt(t,4)
14041
14043
  return new DataView(e,n).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){const{buffer:e,size:n,position:i}=this
14042
14044
  return e&&i<n?("number"!=typeof t&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(n,i+Math.min(n-i,t)),e.subarray(i,this.position)):null}readAt(t,e){const n=this.buffer,i=Math.min(this.size,t+e)
14043
- return n?n.subarray(t,i):new Uint8Array(e)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}}class CG extends bG{constructor(t,n){super(),this.position=0,this._handle=t,"number"==typeof n?this.size=n:this._pending=(()=>e(this,void 0,void 0,(function*(){this.size=(yield t.stat()).size,delete this._pending})))()}readInt32(t){return e(this,void 0,void 0,(function*(){const{buffer:e,byteOffset:n}=yield this.readAt(t,4)
14045
+ return n?n.subarray(t,i):new Uint8Array(e)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}}class kG extends yG{constructor(t,n){super(),this.position=0,this._handle=t,"number"==typeof n?this.size=n:this._pending=(()=>e(this,void 0,void 0,(function*(){this.size=(yield t.stat()).size,delete this._pending})))()}readInt32(t){return e(this,void 0,void 0,(function*(){const{buffer:e,byteOffset:n}=yield this.readAt(t,4)
14044
14046
  return new DataView(e,n).getInt32(0,!0)}))}seek(t){return e(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size}))}read(t){return e(this,void 0,void 0,(function*(){this._pending&&(yield this._pending)
14045
14047
  const{_handle:e,size:n,position:i}=this
14046
14048
  if(e&&i<n){"number"!=typeof t&&(t=Number.POSITIVE_INFINITY)
@@ -14051,255 +14053,255 @@ return l}return null}))}readAt(t,n){return e(this,void 0,void 0,(function*(){thi
14051
14053
  const{_handle:e,size:i}=this
14052
14054
  if(e&&t+n<i){const s=Math.min(i,t+n),o=new Uint8Array(s-t)
14053
14055
  return(yield e.read(o,0,n,t)).buffer}return new Uint8Array(n)}))}close(){return e(this,void 0,void 0,(function*(){const t=this._handle
14054
- this._handle=null,t&&(yield t.close())}))}throw(t){return e(this,void 0,void 0,(function*(){return yield this.close(),{done:!0,value:t}}))}return(t){return e(this,void 0,void 0,(function*(){return yield this.close(),{done:!0,value:t}}))}}function kG(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const SG=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8]
14055
- class _G{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){const e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]])
14056
+ this._handle=null,t&&(yield t.close())}))}throw(t){return e(this,void 0,void 0,(function*(){return yield this.close(),{done:!0,value:t}}))}return(t){return e(this,void 0,void 0,(function*(){return yield this.close(),{done:!0,value:t}}))}}function SG(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const _G=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8]
14057
+ class IG{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){const e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]])
14056
14058
  let i=e[3]*n[3]
14057
14059
  this.buffer[0]=65535&i
14058
14060
  let s=i>>>16
14059
14061
  return i=e[2]*n[3],s+=i,i=e[3]*n[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?65536:0,this.buffer[1]+=s>>>16,this.buffer[1]+=e[1]*n[3]+e[2]*n[2]+e[3]*n[1],this.buffer[1]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0]<<16,this}_plus(t){const e=this.buffer[0]+t.buffer[0]>>>0
14060
- this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${kG(this.buffer[1])} ${kG(this.buffer[0])}`}}class IG extends _G{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return IG.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return IG.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.length,i=new IG(e)
14061
- for(let e=0;e<n;){const s=8<n-e?8:n-e,o=new IG(new Uint32Array([Number.parseInt(t.slice(e,e+s),10),0])),r=new IG(new Uint32Array([SG[s],0]))
14062
+ this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${SG(this.buffer[1])} ${SG(this.buffer[0])}`}}class MG extends IG{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return MG.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return MG.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.length,i=new MG(e)
14063
+ for(let e=0;e<n;){const s=8<n-e?8:n-e,o=new MG(new Uint32Array([Number.parseInt(t.slice(e,e+s),10),0])),r=new MG(new Uint32Array([_G[s],0]))
14062
14064
  i.times(r),i.plus(o),e+=s}return i}static convertArray(t){const e=new Uint32Array(2*t.length)
14063
- for(let n=-1,i=t.length;++n<i;)IG.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2))
14064
- return e}static multiply(t,e){return new IG(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new IG(new Uint32Array(t.buffer)).plus(e)}}class MG extends _G{negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){const e=this.buffer[1]<<0,n=t.buffer[1]<<0
14065
- return e<n||e===n&&this.buffer[0]<t.buffer[0]}static from(t,e=new Uint32Array(2)){return MG.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return MG.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.startsWith("-"),i=t.length,s=new MG(e)
14066
- for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,o=new MG(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0])),r=new MG(new Uint32Array([SG[n],0]))
14067
- s.times(r),s.plus(o),e+=n}return n?s.negate():s}static convertArray(t){const e=new Uint32Array(2*t.length)
14068
14065
  for(let n=-1,i=t.length;++n<i;)MG.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2))
14069
- return e}static multiply(t,e){return new MG(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new MG(new Uint32Array(t.buffer)).plus(e)}}class $G{constructor(t){this.buffer=t}high(){return new MG(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new MG(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}times(t){const e=new IG(new Uint32Array([this.buffer[3],0])),n=new IG(new Uint32Array([this.buffer[2],0])),i=new IG(new Uint32Array([this.buffer[1],0])),s=new IG(new Uint32Array([this.buffer[0],0])),o=new IG(new Uint32Array([t.buffer[3],0])),r=new IG(new Uint32Array([t.buffer[2],0])),a=new IG(new Uint32Array([t.buffer[1],0])),l=new IG(new Uint32Array([t.buffer[0],0]))
14070
- let c=IG.multiply(s,l)
14066
+ return e}static multiply(t,e){return new MG(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new MG(new Uint32Array(t.buffer)).plus(e)}}class $G extends IG{negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){const e=this.buffer[1]|0,n=t.buffer[1]|0
14067
+ return e<n||e===n&&this.buffer[0]<t.buffer[0]}static from(t,e=new Uint32Array(2)){return $G.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return $G.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.startsWith("-"),i=t.length,s=new $G(e)
14068
+ for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,o=new $G(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0])),r=new $G(new Uint32Array([_G[n],0]))
14069
+ s.times(r),s.plus(o),e+=n}return n?s.negate():s}static convertArray(t){const e=new Uint32Array(2*t.length)
14070
+ for(let n=-1,i=t.length;++n<i;)$G.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2))
14071
+ return e}static multiply(t,e){return new $G(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new $G(new Uint32Array(t.buffer)).plus(e)}}class EG{constructor(t){this.buffer=t}high(){return new $G(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new $G(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}times(t){const e=new MG(new Uint32Array([this.buffer[3],0])),n=new MG(new Uint32Array([this.buffer[2],0])),i=new MG(new Uint32Array([this.buffer[1],0])),s=new MG(new Uint32Array([this.buffer[0],0])),o=new MG(new Uint32Array([t.buffer[3],0])),r=new MG(new Uint32Array([t.buffer[2],0])),a=new MG(new Uint32Array([t.buffer[1],0])),l=new MG(new Uint32Array([t.buffer[0],0]))
14072
+ let c=MG.multiply(s,l)
14071
14073
  this.buffer[0]=c.low()
14072
- const d=new IG(new Uint32Array([c.high(),0]))
14073
- c=IG.multiply(i,l),d.plus(c),c=IG.multiply(s,a),d.plus(c),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(c)?1:0,this.buffer[2]=d.high()
14074
- return new IG(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(IG.multiply(n,l)).plus(IG.multiply(i,a)).plus(IG.multiply(s,r)),this.buffer[3]+=IG.multiply(e,l).plus(IG.multiply(n,a)).plus(IG.multiply(i,r)).plus(IG.multiply(s,o)).low(),this}plus(t){const e=new Uint32Array(4)
14075
- return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${kG(this.buffer[3])} ${kG(this.buffer[2])} ${kG(this.buffer[1])} ${kG(this.buffer[0])}`}static multiply(t,e){return new $G(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new $G(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return $G.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return $G.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){const n=t.startsWith("-"),i=t.length,s=new $G(e)
14076
- for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,o=new $G(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0,0,0])),r=new $G(new Uint32Array([SG[n],0,0,0]))
14074
+ const d=new MG(new Uint32Array([c.high(),0]))
14075
+ c=MG.multiply(i,l),d.plus(c),c=MG.multiply(s,a),d.plus(c),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(c)?1:0,this.buffer[2]=d.high()
14076
+ return new MG(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(MG.multiply(n,l)).plus(MG.multiply(i,a)).plus(MG.multiply(s,r)),this.buffer[3]+=MG.multiply(e,l).plus(MG.multiply(n,a)).plus(MG.multiply(i,r)).plus(MG.multiply(s,o)).low(),this}plus(t){const e=new Uint32Array(4)
14077
+ return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${SG(this.buffer[3])} ${SG(this.buffer[2])} ${SG(this.buffer[1])} ${SG(this.buffer[0])}`}static multiply(t,e){return new EG(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new EG(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return EG.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return EG.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){const n=t.startsWith("-"),i=t.length,s=new EG(e)
14078
+ for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,o=new EG(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0,0,0])),r=new EG(new Uint32Array([_G[n],0,0,0]))
14077
14079
  s.times(r),s.plus(o),e+=n}return n?s.negate():s}static convertArray(t){const e=new Uint32Array(4*t.length)
14078
- for(let n=-1,i=t.length;++n<i;)$G.from(t[n],new Uint32Array(e.buffer,e.byteOffset+16*n,4))
14079
- return e}}class EG extends Jq{constructor(t,e,n,i,s=ZH.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=e,this.buffers=n,this.dictionaries=i,this.metadataVersion=s}visit(t){return super.visit(t instanceof sG?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return TW({type:t,length:e})}visitBool(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitInt(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDate(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTime(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitList(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),children:this.visitMany(t.children)})}visitUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return this.metadataVersion<ZH.V5&&this.readNullBitmap(t,n),t.mode===KH.Sparse?this.visitSparseUnion(t,{length:e,nullCount:n}):this.visitDenseUnion(t,{length:e,nullCount:n})}visitDenseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),child:this.visit(t.children[0])})}visitMap(t,{length:e,nullCount:n}=this.nextFieldNode()){return TW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,e,n=this.nextBufferRange()){return e>0&&this.readData(t,n)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+e)}readDictionary(t){return this.dictionaries.get(t.id)}}class DG extends EG{constructor(t,e,n,i,s){super(new Uint8Array(0),e,n,i,s),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):_W(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return NH(Uint8Array,NH(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return NH(Uint8Array,NH(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){const{sources:n}=this
14080
- return Iq.isTimestamp(t)||(Iq.isInt(t)||Iq.isTime(t))&&64===t.bitWidth||Iq.isDuration(t)||Iq.isDate(t)&&t.unit===XH.MILLISECOND?NH(Uint8Array,MG.convertArray(n[e])):Iq.isDecimal(t)?NH(Uint8Array,$G.convertArray(n[e])):Iq.isBinary(t)||Iq.isLargeBinary(t)||Iq.isFixedSizeBinary(t)?function(t){const e=t.join(""),n=new Uint8Array(e.length/2)
14080
+ for(let n=-1,i=t.length;++n<i;)EG.from(t[n],new Uint32Array(e.buffer,e.byteOffset+16*n,4))
14081
+ return e}}class DG extends Qq{constructor(t,e,n,i,s=KH.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=e,this.buffers=n,this.dictionaries=i,this.metadataVersion=s}visit(t){return super.visit(t instanceof oG?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return OW({type:t,length:e})}visitBool(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitInt(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDate(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTime(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitList(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),children:this.visitMany(t.children)})}visitUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return this.metadataVersion<KH.V5&&this.readNullBitmap(t,n),t.mode===YH.Sparse?this.visitSparseUnion(t,{length:e,nullCount:n}):this.visitDenseUnion(t,{length:e,nullCount:n})}visitDenseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),child:this.visit(t.children[0])})}visitMap(t,{length:e,nullCount:n}=this.nextFieldNode()){return OW({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,e,n=this.nextBufferRange()){return e>0&&this.readData(t,n)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+e)}readDictionary(t){return this.dictionaries.get(t.id)}}class AG extends DG{constructor(t,e,n,i,s){super(new Uint8Array(0),e,n,i,s),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):IW(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return LH(Uint8Array,LH(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return LH(Uint8Array,LH(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){const{sources:n}=this
14082
+ return Mq.isTimestamp(t)||(Mq.isInt(t)||Mq.isTime(t))&&64===t.bitWidth||Mq.isDuration(t)||Mq.isDate(t)&&t.unit===JH.MILLISECOND?LH(Uint8Array,$G.convertArray(n[e])):Mq.isDecimal(t)?LH(Uint8Array,EG.convertArray(n[e])):Mq.isBinary(t)||Mq.isLargeBinary(t)||Mq.isFixedSizeBinary(t)?function(t){const e=t.join(""),n=new Uint8Array(e.length/2)
14081
14083
  for(let t=0;t<e.length;t+=2)n[t>>1]=Number.parseInt(e.slice(t,t+2),16)
14082
- return n}(n[e]):Iq.isBool(t)?_W(n[e]):Iq.isUtf8(t)||Iq.isLargeUtf8(t)?yH(n[e].join("")):NH(Uint8Array,NH(t.ArrayType,n[e].map((t=>+t))))}}class AG extends Jq{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((t,n)=>this.compareFields(t,e[n])))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}}function TG(t,e){return e instanceof t.constructor}function OG(t,e){return t===e||TG(t,e)}function RG(t,e){return t===e||TG(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function FG(t,e){return t===e||TG(t,e)&&t.precision===e.precision}function NG(t,e){return t===e||TG(t,e)&&t.unit===e.unit}function LG(t,e){return t===e||TG(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function BG(t,e){return t===e||TG(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function PG(t,e){return t===e||TG(t,e)&&t.mode===e.mode&&t.typeIds.every(((t,n)=>t===e.typeIds[n]))&&HG.compareManyFields(t.children,e.children)}function zG(t,e){return t===e||TG(t,e)&&t.unit===e.unit}function VG(t,e){return t===e||TG(t,e)&&t.unit===e.unit}AG.prototype.visitNull=OG,AG.prototype.visitBool=OG,AG.prototype.visitInt=RG,AG.prototype.visitInt8=RG,AG.prototype.visitInt16=RG,AG.prototype.visitInt32=RG,AG.prototype.visitInt64=RG,AG.prototype.visitUint8=RG,AG.prototype.visitUint16=RG,AG.prototype.visitUint32=RG,AG.prototype.visitUint64=RG,AG.prototype.visitFloat=FG,AG.prototype.visitFloat16=FG,AG.prototype.visitFloat32=FG,AG.prototype.visitFloat64=FG,AG.prototype.visitUtf8=OG,AG.prototype.visitLargeUtf8=OG,AG.prototype.visitBinary=OG,AG.prototype.visitLargeBinary=OG,AG.prototype.visitFixedSizeBinary=function(t,e){return t===e||TG(t,e)&&t.byteWidth===e.byteWidth},AG.prototype.visitDate=NG,AG.prototype.visitDateDay=NG,AG.prototype.visitDateMillisecond=NG,AG.prototype.visitTimestamp=LG,AG.prototype.visitTimestampSecond=LG,AG.prototype.visitTimestampMillisecond=LG,AG.prototype.visitTimestampMicrosecond=LG,AG.prototype.visitTimestampNanosecond=LG,AG.prototype.visitTime=BG,AG.prototype.visitTimeSecond=BG,AG.prototype.visitTimeMillisecond=BG,AG.prototype.visitTimeMicrosecond=BG,AG.prototype.visitTimeNanosecond=BG,AG.prototype.visitDecimal=OG,AG.prototype.visitList=function(t,e){return t===e||TG(t,e)&&t.children.length===e.children.length&&HG.compareManyFields(t.children,e.children)},AG.prototype.visitStruct=function(t,e){return t===e||TG(t,e)&&t.children.length===e.children.length&&HG.compareManyFields(t.children,e.children)},AG.prototype.visitUnion=PG,AG.prototype.visitDenseUnion=PG,AG.prototype.visitSparseUnion=PG,AG.prototype.visitDictionary=function(t,e){return t===e||TG(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&HG.visit(t.indices,e.indices)&&HG.visit(t.dictionary,e.dictionary)},AG.prototype.visitInterval=zG,AG.prototype.visitIntervalDayTime=zG,AG.prototype.visitIntervalYearMonth=zG,AG.prototype.visitDuration=VG,AG.prototype.visitDurationSecond=VG,AG.prototype.visitDurationMillisecond=VG,AG.prototype.visitDurationMicrosecond=VG,AG.prototype.visitDurationNanosecond=VG,AG.prototype.visitFixedSizeList=function(t,e){return t===e||TG(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&HG.compareManyFields(t.children,e.children)},AG.prototype.visitMap=function(t,e){return t===e||TG(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&HG.compareManyFields(t.children,e.children)}
14083
- const HG=new AG
14084
- function UG(t,e){return HG.compareSchemas(t,e)}function qG(t,e){return function(t,e){const n=[...t.fields],i=[],s={numBatches:e.reduce(((t,e)=>Math.max(t,e.length)),0)}
14084
+ return n}(n[e]):Mq.isBool(t)?IW(n[e]):Mq.isUtf8(t)||Mq.isLargeUtf8(t)?wH(n[e].join("")):LH(Uint8Array,LH(t.ArrayType,n[e].map((t=>+t))))}}class TG extends Qq{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((t,n)=>this.compareFields(t,e[n])))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}}function OG(t,e){return e instanceof t.constructor}function RG(t,e){return t===e||OG(t,e)}function FG(t,e){return t===e||OG(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function NG(t,e){return t===e||OG(t,e)&&t.precision===e.precision}function LG(t,e){return t===e||OG(t,e)&&t.unit===e.unit}function BG(t,e){return t===e||OG(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function PG(t,e){return t===e||OG(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function zG(t,e){return t===e||OG(t,e)&&t.mode===e.mode&&t.typeIds.every(((t,n)=>t===e.typeIds[n]))&&UG.compareManyFields(t.children,e.children)}function VG(t,e){return t===e||OG(t,e)&&t.unit===e.unit}function HG(t,e){return t===e||OG(t,e)&&t.unit===e.unit}TG.prototype.visitNull=RG,TG.prototype.visitBool=RG,TG.prototype.visitInt=FG,TG.prototype.visitInt8=FG,TG.prototype.visitInt16=FG,TG.prototype.visitInt32=FG,TG.prototype.visitInt64=FG,TG.prototype.visitUint8=FG,TG.prototype.visitUint16=FG,TG.prototype.visitUint32=FG,TG.prototype.visitUint64=FG,TG.prototype.visitFloat=NG,TG.prototype.visitFloat16=NG,TG.prototype.visitFloat32=NG,TG.prototype.visitFloat64=NG,TG.prototype.visitUtf8=RG,TG.prototype.visitLargeUtf8=RG,TG.prototype.visitBinary=RG,TG.prototype.visitLargeBinary=RG,TG.prototype.visitFixedSizeBinary=function(t,e){return t===e||OG(t,e)&&t.byteWidth===e.byteWidth},TG.prototype.visitDate=LG,TG.prototype.visitDateDay=LG,TG.prototype.visitDateMillisecond=LG,TG.prototype.visitTimestamp=BG,TG.prototype.visitTimestampSecond=BG,TG.prototype.visitTimestampMillisecond=BG,TG.prototype.visitTimestampMicrosecond=BG,TG.prototype.visitTimestampNanosecond=BG,TG.prototype.visitTime=PG,TG.prototype.visitTimeSecond=PG,TG.prototype.visitTimeMillisecond=PG,TG.prototype.visitTimeMicrosecond=PG,TG.prototype.visitTimeNanosecond=PG,TG.prototype.visitDecimal=RG,TG.prototype.visitList=function(t,e){return t===e||OG(t,e)&&t.children.length===e.children.length&&UG.compareManyFields(t.children,e.children)},TG.prototype.visitStruct=function(t,e){return t===e||OG(t,e)&&t.children.length===e.children.length&&UG.compareManyFields(t.children,e.children)},TG.prototype.visitUnion=zG,TG.prototype.visitDenseUnion=zG,TG.prototype.visitSparseUnion=zG,TG.prototype.visitDictionary=function(t,e){return t===e||OG(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&UG.visit(t.indices,e.indices)&&UG.visit(t.dictionary,e.dictionary)},TG.prototype.visitInterval=VG,TG.prototype.visitIntervalDayTime=VG,TG.prototype.visitIntervalYearMonth=VG,TG.prototype.visitDuration=HG,TG.prototype.visitDurationSecond=HG,TG.prototype.visitDurationMillisecond=HG,TG.prototype.visitDurationMicrosecond=HG,TG.prototype.visitDurationNanosecond=HG,TG.prototype.visitFixedSizeList=function(t,e){return t===e||OG(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&UG.compareManyFields(t.children,e.children)},TG.prototype.visitMap=function(t,e){return t===e||OG(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&UG.compareManyFields(t.children,e.children)}
14085
+ const UG=new TG
14086
+ function qG(t,e){return UG.compareSchemas(t,e)}function jG(t,e){return function(t,e){const n=[...t.fields],i=[],s={numBatches:e.reduce(((t,e)=>Math.max(t,e.length)),0)}
14085
14087
  let o=0,r=0,a=-1
14086
14088
  const l=e.length
14087
14089
  let c,d=[]
14088
14090
  for(;s.numBatches-- >0;){for(r=Number.POSITIVE_INFINITY,a=-1;++a<l;)d[a]=c=e[a].shift(),r=Math.min(r,c?c.length:r)
14089
- Number.isFinite(r)&&(d=jG(n,r,d,e,s),r>0&&(i[o++]=TW({type:new Uq(n),length:r,nullCount:0,children:d.slice()})))}return[t=t.assign(n),i.map((e=>new KG(t,e)))]}(t,e.map((t=>t.data.concat())))}function jG(t,e,n,i,s){var o
14091
+ Number.isFinite(r)&&(d=WG(n,r,d,e,s),r>0&&(i[o++]=OW({type:new qq(n),length:r,nullCount:0,children:d.slice()})))}return[t=t.assign(n),i.map((e=>new YG(t,e)))]}(t,e.map((t=>t.data.concat())))}function WG(t,e,n,i,s){var o
14090
14092
  const r=(e+63&-64)>>3
14091
14093
  for(let a=-1,l=i.length;++a<l;){const l=n[a],c=null==l?void 0:l.length
14092
14094
  if(c>=e)c===e?n[a]=l:(n[a]=l.slice(0,e),s.numBatches=Math.max(s.numBatches,i[a].unshift(l.slice(e,c-e))))
14093
14095
  else{const i=t[a]
14094
- t[a]=i.clone({nullable:!0}),n[a]=null!==(o=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==o?o:TW({type:i.type,length:e,nullCount:e,nullBitmap:new Uint8Array(r)})}}return n}var WG,GG
14095
- class ZG{constructor(...t){var e,n
14096
- if(0===t.length)return this.batches=[],this.schema=new iG([]),this._offsets=[0],this
14096
+ t[a]=i.clone({nullable:!0}),n[a]=null!==(o=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==o?o:OW({type:i.type,length:e,nullCount:e,nullBitmap:new Uint8Array(r)})}}return n}var GG,ZG
14097
+ class KG{constructor(...t){var e,n
14098
+ if(0===t.length)return this.batches=[],this.schema=new sG([]),this._offsets=[0],this
14097
14099
  let i,s
14098
- t[0]instanceof iG&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(s=t.pop())
14099
- const o=t=>{if(t){if(t instanceof KG)return[t]
14100
- if(t instanceof ZG)return t.batches
14101
- if(t instanceof EW){if(t.type instanceof Uq)return[new KG(new iG(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((t=>o(t)))
14100
+ t[0]instanceof sG&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(s=t.pop())
14101
+ const o=t=>{if(t){if(t instanceof YG)return[t]
14102
+ if(t instanceof KG)return t.batches
14103
+ if(t instanceof DW){if(t.type instanceof qq)return[new YG(new sG(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((t=>o(t)))
14102
14104
  if("function"==typeof t[Symbol.iterator])return[...t].flatMap((t=>o(t)))
14103
- if("object"==typeof t){const e=Object.keys(t),n=e.map((e=>new QW([t[e]]))),s=null!=i?i:new iG(e.map(((t,e)=>new sG(String(t),n[e].type,n[e].nullable)))),[,o]=qG(s,n)
14104
- return 0===o.length?[new KG(t)]:o}}}return[]},r=t.flatMap((t=>o(t)))
14105
- if(i=null!==(n=null!=i?i:null===(e=r[0])||void 0===e?void 0:e.schema)&&void 0!==n?n:new iG([]),!(i instanceof iG))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
14106
- for(const t of r){if(!(t instanceof KG))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
14107
- if(!UG(i,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=r,this._offsets=null!=s?s:FW(this.data)}get data(){return this.batches.map((({data:t})=>t))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((t,e)=>t+e.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=RW(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(vW(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?KW.visit(new QW(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(...t){const e=this.schema,n=this.data.concat(t.flatMap((({data:t})=>t)))
14108
- return new ZG(e,n.map((t=>new KG(e,t))))}slice(t,e){const n=this.schema;[t,e]=gW({length:this.numRows},t,e)
14109
- const i=NW(this.data,this._offsets,t,e)
14110
- return new ZG(n,i.map((t=>new KG(n,t))))}getChild(t){return this.getChildAt(this.schema.fields.findIndex((e=>e.name===t)))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){const e=this.data.map((e=>e.children[t]))
14111
- if(0===e.length){const{type:n}=this.schema.fields[t],i=TW({type:n,length:0,nullCount:0})
14112
- e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new QW(e)}return null}setChild(t,e){var n
14105
+ if("object"==typeof t){const e=Object.keys(t),n=e.map((e=>new tG([t[e]]))),s=null!=i?i:new sG(e.map(((t,e)=>new oG(String(t),n[e].type,n[e].nullable)))),[,o]=jG(s,n)
14106
+ return 0===o.length?[new YG(t)]:o}}}return[]},r=t.flatMap((t=>o(t)))
14107
+ if(i=null!==(n=null!=i?i:null===(e=r[0])||void 0===e?void 0:e.schema)&&void 0!==n?n:new sG([]),!(i instanceof sG))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
14108
+ for(const t of r){if(!(t instanceof YG))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
14109
+ if(!qG(i,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=r,this._offsets=null!=s?s:NW(this.data)}get data(){return this.batches.map((({data:t})=>t))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((t,e)=>t+e.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=FW(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(bW(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?YW.visit(new tG(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(...t){const e=this.schema,n=this.data.concat(t.flatMap((({data:t})=>t)))
14110
+ return new KG(e,n.map((t=>new YG(e,t))))}slice(t,e){const n=this.schema;[t,e]=vW({length:this.numRows},t,e)
14111
+ const i=LW(this.data,this._offsets,t,e)
14112
+ return new KG(n,i.map((t=>new YG(n,t))))}getChild(t){return this.getChildAt(this.schema.fields.findIndex((e=>e.name===t)))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){const e=this.data.map((e=>e.children[t]))
14113
+ if(0===e.length){const{type:n}=this.schema.fields[t],i=OW({type:n,length:0,nullCount:0})
14114
+ e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new tG(e)}return null}setChild(t,e){var n
14113
14115
  return this.setChildAt(null===(n=this.schema.fields)||void 0===n?void 0:n.findIndex((e=>e.name===t)),e)}setChildAt(t,e){let n=this.schema,i=[...this.batches]
14114
- if(t>-1&&t<this.numCols){e||(e=new QW([TW({type:new Mq,length:this.numRows})]))
14115
- const s=n.fields.slice(),o=s[t].clone({type:e.type}),r=this.schema.fields.map(((t,e)=>this.getChildAt(e)));[s[t],r[t]]=[o,e],[n,i]=qG(n,r)}return new ZG(n,i)}select(t){const e=this.schema.fields.reduce(((t,e,n)=>t.set(e.name,n)),new Map)
14116
+ if(t>-1&&t<this.numCols){e||(e=new tG([OW({type:new $q,length:this.numRows})]))
14117
+ const s=n.fields.slice(),o=s[t].clone({type:e.type}),r=this.schema.fields.map(((t,e)=>this.getChildAt(e)));[s[t],r[t]]=[o,e],[n,i]=jG(n,r)}return new KG(n,i)}select(t){const e=this.schema.fields.reduce(((t,e,n)=>t.set(e.name,n)),new Map)
14116
14118
  return this.selectAt(t.map((t=>e.get(t))).filter((t=>t>-1)))}selectAt(t){const e=this.schema.selectAt(t),n=this.batches.map((e=>e.selectAt(t)))
14117
- return new ZG(e,n)}assign(t){const e=this.schema.fields,[n,i]=t.schema.fields.reduce(((t,n,i)=>{const[s,o]=t,r=e.findIndex((t=>t.name===n.name))
14119
+ return new KG(e,n)}assign(t){const e=this.schema.fields,[n,i]=t.schema.fields.reduce(((t,n,i)=>{const[s,o]=t,r=e.findIndex((t=>t.name===n.name))
14118
14120
  return~r?o[r]=i:s.push(i),t}),[[],[]]),s=this.schema.assign(t.schema),o=[...e.map(((t,e)=>[e,i[e]])).map((([e,n])=>void 0===n?this.getChildAt(e):t.getChildAt(n))),...n.map((e=>t.getChildAt(e)))].filter(Boolean)
14119
- return new ZG(...qG(s,o))}}WG=Symbol.toStringTag,ZG[WG]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=PW(BW),t.get=PW(aW.getVisitFn(HU.Struct)),t.set=zW(Dj.getVisitFn(HU.Struct)),t.indexOf=VW(jW.getVisitFn(HU.Struct)),"Table"))(ZG.prototype)
14120
- let KG=class t{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof iG))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.")
14121
- if([,this.data=TW({nullCount:0,type:new Uq(this.schema.fields),children:this.schema.fields.map((t=>TW({type:t.type,nullCount:0})))})]=t,!(this.data instanceof EW))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=YG(this.schema,this.data.children)
14121
+ return new KG(...jG(s,o))}}GG=Symbol.toStringTag,KG[GG]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=zW(PW),t.get=zW(lW.getVisitFn(UU.Struct)),t.set=VW(Aj.getVisitFn(UU.Struct)),t.indexOf=HW(WW.getVisitFn(UU.Struct)),"Table"))(KG.prototype)
14122
+ let YG=class t{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof sG))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.")
14123
+ if([,this.data=OW({nullCount:0,type:new qq(this.schema.fields),children:this.schema.fields.map((t=>OW({type:t.type,nullCount:0})))})]=t,!(this.data instanceof DW))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=XG(this.schema,this.data.children)
14122
14124
  break
14123
- case 1:{const[e]=t,{fields:n,children:i,length:s}=Object.keys(e).reduce(((t,n,i)=>(t.children[i]=e[n],t.length=Math.max(t.length,e[n].length),t.fields[i]=sG.new({name:n,type:e[n].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),o=new iG(n),r=TW({type:new Uq(n),length:s,children:i,nullCount:0});[this.schema,this.data]=YG(o,r.children,s)
14124
- break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=XG(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return aW.visit(this.data,t)}at(t){return this.get(vW(t,this.numRows))}set(t,e){return Dj.visit(this.data,t,e)}indexOf(t,e){return jW.visit(this.data,t,e)}[Symbol.iterator](){return KW.visit(new QW([this.data]))}toArray(){return[...this]}concat(...t){return new ZG(this.schema,[this,...t])}slice(e,n){const[i]=new QW([this.data]).slice(e,n).data
14125
+ case 1:{const[e]=t,{fields:n,children:i,length:s}=Object.keys(e).reduce(((t,n,i)=>(t.children[i]=e[n],t.length=Math.max(t.length,e[n].length),t.fields[i]=oG.new({name:n,type:e[n].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),o=new sG(n),r=OW({type:new qq(n),length:s,children:i,nullCount:0});[this.schema,this.data]=XG(o,r.children,s)
14126
+ break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=JG(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return lW.visit(this.data,t)}at(t){return this.get(bW(t,this.numRows))}set(t,e){return Aj.visit(this.data,t,e)}indexOf(t,e){return WW.visit(this.data,t,e)}[Symbol.iterator](){return YW.visit(new tG([this.data]))}toArray(){return[...this]}concat(...t){return new KG(this.schema,[this,...t])}slice(e,n){const[i]=new tG([this.data]).slice(e,n).data
14125
14127
  return new t(this.schema,i)}getChild(t){var e
14126
- return this.getChildAt(null===(e=this.schema.fields)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new QW([this.data.children[t]]):null}setChild(t,e){var n
14128
+ return this.getChildAt(null===(e=this.schema.fields)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new tG([this.data.children[t]]):null}setChild(t,e){var n
14127
14129
  return this.setChildAt(null===(n=this.schema.fields)||void 0===n?void 0:n.findIndex((e=>e.name===t)),e)}setChildAt(e,n){let i=this.schema,s=this.data
14128
- if(e>-1&&e<this.numCols){n||(n=new QW([TW({type:new Mq,length:this.numRows})]))
14129
- const t=i.fields.slice(),o=s.children.slice(),r=t[e].clone({type:n.type});[t[e],o[e]]=[r,n.data[0]],i=new iG(t,new Map(this.schema.metadata)),s=TW({type:new Uq(t),children:o})}return new t(i,s)}select(e){const n=this.schema.select(e),i=new Uq(n.fields),s=[]
14130
+ if(e>-1&&e<this.numCols){n||(n=new tG([OW({type:new $q,length:this.numRows})]))
14131
+ const t=i.fields.slice(),o=s.children.slice(),r=t[e].clone({type:n.type});[t[e],o[e]]=[r,n.data[0]],i=new sG(t,new Map(this.schema.metadata)),s=OW({type:new qq(t),children:o})}return new t(i,s)}select(e){const n=this.schema.select(e),i=new qq(n.fields),s=[]
14130
14132
  for(const t of e){const e=this.schema.fields.findIndex((e=>e.name===t))
14131
- ~e&&(s[e]=this.data.children[e])}return new t(n,TW({type:i,length:this.numRows,children:s}))}selectAt(e){const n=this.schema.selectAt(e),i=e.map((t=>this.data.children[t])).filter(Boolean),s=TW({type:new Uq(n.fields),length:this.numRows,children:i})
14133
+ ~e&&(s[e]=this.data.children[e])}return new t(n,OW({type:i,length:this.numRows,children:s}))}selectAt(e){const n=this.schema.selectAt(e),i=e.map((t=>this.data.children[t])).filter(Boolean),s=OW({type:new qq(n.fields),length:this.numRows,children:i})
14132
14134
  return new t(n,s)}}
14133
- function YG(t,e,n=e.reduce(((t,e)=>Math.max(t,e.length)),0)){var i
14135
+ function XG(t,e,n=e.reduce(((t,e)=>Math.max(t,e.length)),0)){var i
14134
14136
  const s=[...t.fields],o=[...e],r=(n+63&-64)>>3
14135
14137
  for(const[a,l]of t.fields.entries()){const t=e[a]
14136
- t&&t.length===n||(s[a]=l.clone({nullable:!0}),o[a]=null!==(i=null==t?void 0:t._changeLengthAndBackfillNullBitmap(n))&&void 0!==i?i:TW({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(r)}))}return[t.assign(s),TW({type:new Uq(s),length:n,children:o})]}function XG(t,e,n=new Map){var i,s
14138
+ t&&t.length===n||(s[a]=l.clone({nullable:!0}),o[a]=null!==(i=null==t?void 0:t._changeLengthAndBackfillNullBitmap(n))&&void 0!==i?i:OW({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(r)}))}return[t.assign(s),OW({type:new qq(s),length:n,children:o})]}function JG(t,e,n=new Map){var i,s
14137
14139
  if((null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0)>0&&(null==t?void 0:t.length)===(null==e?void 0:e.length))for(let i=-1,o=t.length;++i<o;){const{type:o}=t[i],r=e[i]
14138
- for(const t of[r,...(null===(s=null==r?void 0:r.dictionary)||void 0===s?void 0:s.data)||[]])XG(o.children,null==t?void 0:t.children,n)
14139
- if(Iq.isDictionary(o)){const{id:t}=o
14140
- if(n.has(t)){if(n.get(t)!==r.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else(null==r?void 0:r.dictionary)&&n.set(t,r.dictionary)}}return n}GG=Symbol.toStringTag,KG[GG]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(KG.prototype)
14141
- class JG extends KG{constructor(t){const e=t.fields.map((t=>TW({type:t.type})))
14142
- super(t,TW({type:new Uq(t.fields),nullCount:0,children:e}))}}let QG=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}version(){const t=this.bb.__offset(this.bb_pos,4)
14143
- return t?this.bb.readInt16(this.bb_pos+t):ZH.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6)
14144
- return t?this.bb.readUint8(this.bb_pos+t):VU.NONE}header(t){const e=this.bb.__offset(this.bb_pos,8)
14140
+ for(const t of[r,...(null===(s=null==r?void 0:r.dictionary)||void 0===s?void 0:s.data)||[]])JG(o.children,null==t?void 0:t.children,n)
14141
+ if(Mq.isDictionary(o)){const{id:t}=o
14142
+ if(n.has(t)){if(n.get(t)!==r.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else(null==r?void 0:r.dictionary)&&n.set(t,r.dictionary)}}return n}ZG=Symbol.toStringTag,YG[ZG]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(YG.prototype)
14143
+ class QG extends YG{constructor(t){const e=t.fields.map((t=>OW({type:t.type})))
14144
+ super(t,OW({type:new qq(t.fields),nullCount:0,children:e}))}}let tZ=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}version(){const t=this.bb.__offset(this.bb_pos,4)
14145
+ return t?this.bb.readInt16(this.bb_pos+t):KH.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6)
14146
+ return t?this.bb.readUint8(this.bb_pos+t):HU.NONE}header(t){const e=this.bb.__offset(this.bb_pos,8)
14145
14147
  return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){const t=this.bb.__offset(this.bb_pos,10)
14146
14148
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,12)
14147
- return n?(e||new bU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12)
14148
- return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,ZH.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,VU.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4)
14149
+ return n?(e||new yU).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12)
14150
+ return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,KH.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,HU.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4)
14149
14151
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
14150
14152
  return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(e,n,i,s,o,r){return t.startMessage(e),t.addVersion(e,n),t.addHeaderType(e,i),t.addHeader(e,s),t.addBodyLength(e,o),t.addCustomMetadata(e,r),t.endMessage(e)}}
14151
- const tZ=new class extends Jq{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return TU.startNull(e),TU.endNull(e)}visitInt(t,e){return gU.startInt(e),gU.addBitWidth(e,t.bitWidth),gU.addIsSigned(e,t.isSigned),gU.endInt(e)}visitFloat(t,e){return IU.startFloatingPoint(e),IU.addPrecision(e,t.precision),IU.endFloatingPoint(e)}visitBinary(t,e){return yU.startBinary(e),yU.endBinary(e)}visitLargeBinary(t,e){return $U.startLargeBinary(e),$U.endLargeBinary(e)}visitBool(t,e){return wU.startBool(e),wU.endBool(e)}visitUtf8(t,e){return LU.startUtf8(e),LU.endUtf8(e)}visitLargeUtf8(t,e){return EU.startLargeUtf8(e),EU.endLargeUtf8(e)}visitDecimal(t,e){return CU.startDecimal(e),CU.addScale(e,t.scale),CU.addPrecision(e,t.precision),CU.addBitWidth(e,t.bitWidth),CU.endDecimal(e)}visitDate(t,e){return xU.startDate(e),xU.addUnit(e,t.unit),xU.endDate(e)}visitTime(t,e){return RU.startTime(e),RU.addUnit(e,t.unit),RU.addBitWidth(e,t.bitWidth),RU.endTime(e)}visitTimestamp(t,e){const n=t.timezone&&e.createString(t.timezone)||void 0
14152
- return FU.startTimestamp(e),FU.addUnit(e,t.unit),void 0!==n&&FU.addTimezone(e,n),FU.endTimestamp(e)}visitInterval(t,e){return MU.startInterval(e),MU.addUnit(e,t.unit),MU.endInterval(e)}visitDuration(t,e){return kU.startDuration(e),kU.addUnit(e,t.unit),kU.endDuration(e)}visitList(t,e){return DU.startList(e),DU.endList(e)}visitStruct(t,e){return OU.startStruct_(e),OU.endStruct_(e)}visitUnion(t,e){NU.startTypeIdsVector(e,t.typeIds.length)
14153
- const n=NU.createTypeIdsVector(e,t.typeIds)
14154
- return NU.startUnion(e),NU.addMode(e,t.mode),NU.addTypeIds(e,n),NU.endUnion(e)}visitDictionary(t,e){const n=this.visit(t.indices,e)
14155
- return vU.startDictionaryEncoding(e),vU.addId(e,BigInt(t.id)),vU.addIsOrdered(e,t.isOrdered),void 0!==n&&vU.addIndexType(e,n),vU.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return SU.startFixedSizeBinary(e),SU.addByteWidth(e,t.byteWidth),SU.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return _U.startFixedSizeList(e),_U.addListSize(e,t.listSize),_U.endFixedSizeList(e)}visitMap(t,e){return AU.startMap(e),AU.addKeysSorted(e,t.keysSorted),AU.endMap(e)}}
14156
- function eZ(t){return new hZ(t.count,iZ(t.columns),sZ(t.columns))}function nZ(t,e){return(t.children||[]).filter(Boolean).map((t=>sG.fromJSON(t,e)))}function iZ(t){return(t||[]).reduce(((t,e)=>{return[...t,new fZ(e.count,(n=e.VALIDITY,(n||[]).reduce(((t,e)=>t+ +(0===e)),0))),...iZ(e.children)]
14157
- var n}),[])}function sZ(t,e=[]){for(let n=-1,i=(t||[]).length;++n<i;){const i=t[n]
14158
- i.VALIDITY&&e.push(new pZ(e.length,i.VALIDITY.length)),i.TYPE_ID&&e.push(new pZ(e.length,i.TYPE_ID.length)),i.OFFSET&&e.push(new pZ(e.length,i.OFFSET.length)),i.DATA&&e.push(new pZ(e.length,i.DATA.length)),e=sZ(i.children,e)}return e}function oZ(t=[]){return new Map(t.map((({key:t,value:e})=>[t,e])))}function rZ(t){return new $q(t.isSigned,t.bitWidth)}function aZ(t,e){const n=t.type.name
14159
- switch(n){case"NONE":case"null":return new Mq
14160
- case"binary":return new Aq
14161
- case"largebinary":return new Tq
14162
- case"utf8":return new Oq
14163
- case"largeutf8":return new Rq
14164
- case"bool":return new Fq
14165
- case"list":return new Hq((e||[])[0])
14166
- case"struct":case"struct_":return new Uq(e||[])}switch(n){case"int":{const e=t.type
14167
- return new $q(e.isSigned,e.bitWidth)}case"floatingpoint":{const e=t.type
14168
- return new Dq(YH[e.precision])}case"decimal":{const e=t.type
14169
- return new Nq(e.scale,e.precision,e.bitWidth)}case"date":{const e=t.type
14170
- return new Lq(XH[e.unit])}case"time":{const e=t.type
14171
- return new Bq(JH[e.unit],e.bitWidth)}case"timestamp":{const e=t.type
14172
- return new Pq(JH[e.unit],e.timezone)}case"interval":{const e=t.type
14173
- return new zq(QH[e.unit])}case"duration":{const e=t.type
14174
- return new Vq(JH[e.unit])}case"union":{const n=t.type,[i,...s]=(n.mode+"").toLowerCase(),o=i.toUpperCase()+s.join("")
14175
- return new qq(KH[o],n.typeIds||[],e||[])}case"fixedsizebinary":{const e=t.type
14176
- return new jq(e.byteWidth)}case"fixedsizelist":{const n=t.type
14177
- return new Wq(n.listSize,(e||[])[0])}case"map":{const n=t.type
14178
- return new Gq((e||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var lZ=rU,cZ=oU
14179
- class dZ{static fromJSON(t,e){const n=new dZ(0,ZH.V5,e)
14180
- return n._createHeader=function(t,e){return()=>{switch(e){case VU.Schema:return iG.fromJSON(t)
14181
- case VU.RecordBatch:return hZ.fromJSON(t)
14182
- case VU.DictionaryBatch:return uZ.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${VU[e]}, type: ${e} }`)}}(t,e),n}static decode(t){t=new cZ(PH(t))
14183
- const e=QG.getRootAsMessage(t),n=e.bodyLength(),i=e.version(),s=e.headerType(),o=new dZ(n,i,s)
14184
- return o._createHeader=function(t,e){return()=>{switch(e){case VU.Schema:return iG.decode(t.header(new zU),new Map,t.version())
14185
- case VU.RecordBatch:return hZ.decode(t.header(new uU),t.version())
14186
- case VU.DictionaryBatch:return uZ.decode(t.header(new pU),t.version())}throw new Error(`Unrecognized Message type: { name: ${VU[e]}, type: ${e} }`)}}(e,s),o}static encode(t){const e=new lZ
14153
+ const eZ=new class extends Qq{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return OU.startNull(e),OU.endNull(e)}visitInt(t,e){return vU.startInt(e),vU.addBitWidth(e,t.bitWidth),vU.addIsSigned(e,t.isSigned),vU.endInt(e)}visitFloat(t,e){return MU.startFloatingPoint(e),MU.addPrecision(e,t.precision),MU.endFloatingPoint(e)}visitBinary(t,e){return wU.startBinary(e),wU.endBinary(e)}visitLargeBinary(t,e){return EU.startLargeBinary(e),EU.endLargeBinary(e)}visitBool(t,e){return xU.startBool(e),xU.endBool(e)}visitUtf8(t,e){return BU.startUtf8(e),BU.endUtf8(e)}visitLargeUtf8(t,e){return DU.startLargeUtf8(e),DU.endLargeUtf8(e)}visitDecimal(t,e){return kU.startDecimal(e),kU.addScale(e,t.scale),kU.addPrecision(e,t.precision),kU.addBitWidth(e,t.bitWidth),kU.endDecimal(e)}visitDate(t,e){return CU.startDate(e),CU.addUnit(e,t.unit),CU.endDate(e)}visitTime(t,e){return FU.startTime(e),FU.addUnit(e,t.unit),FU.addBitWidth(e,t.bitWidth),FU.endTime(e)}visitTimestamp(t,e){const n=t.timezone&&e.createString(t.timezone)||void 0
14154
+ return NU.startTimestamp(e),NU.addUnit(e,t.unit),void 0!==n&&NU.addTimezone(e,n),NU.endTimestamp(e)}visitInterval(t,e){return $U.startInterval(e),$U.addUnit(e,t.unit),$U.endInterval(e)}visitDuration(t,e){return SU.startDuration(e),SU.addUnit(e,t.unit),SU.endDuration(e)}visitList(t,e){return AU.startList(e),AU.endList(e)}visitStruct(t,e){return RU.startStruct_(e),RU.endStruct_(e)}visitUnion(t,e){LU.startTypeIdsVector(e,t.typeIds.length)
14155
+ const n=LU.createTypeIdsVector(e,t.typeIds)
14156
+ return LU.startUnion(e),LU.addMode(e,t.mode),LU.addTypeIds(e,n),LU.endUnion(e)}visitDictionary(t,e){const n=this.visit(t.indices,e)
14157
+ return bU.startDictionaryEncoding(e),bU.addId(e,BigInt(t.id)),bU.addIsOrdered(e,t.isOrdered),void 0!==n&&bU.addIndexType(e,n),bU.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return _U.startFixedSizeBinary(e),_U.addByteWidth(e,t.byteWidth),_U.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return IU.startFixedSizeList(e),IU.addListSize(e,t.listSize),IU.endFixedSizeList(e)}visitMap(t,e){return TU.startMap(e),TU.addKeysSorted(e,t.keysSorted),TU.endMap(e)}}
14158
+ function nZ(t){return new uZ(t.count,sZ(t.columns),oZ(t.columns))}function iZ(t,e){return(t.children||[]).filter(Boolean).map((t=>oG.fromJSON(t,e)))}function sZ(t){return(t||[]).reduce(((t,e)=>{return[...t,new mZ(e.count,(n=e.VALIDITY,(n||[]).reduce(((t,e)=>t+ +(0===e)),0))),...sZ(e.children)]
14159
+ var n}),[])}function oZ(t,e=[]){for(let n=-1,i=(t||[]).length;++n<i;){const i=t[n]
14160
+ i.VALIDITY&&e.push(new fZ(e.length,i.VALIDITY.length)),i.TYPE_ID&&e.push(new fZ(e.length,i.TYPE_ID.length)),i.OFFSET&&e.push(new fZ(e.length,i.OFFSET.length)),i.DATA&&e.push(new fZ(e.length,i.DATA.length)),e=oZ(i.children,e)}return e}function rZ(t=[]){return new Map(t.map((({key:t,value:e})=>[t,e])))}function aZ(t){return new Eq(t.isSigned,t.bitWidth)}function lZ(t,e){const n=t.type.name
14161
+ switch(n){case"NONE":case"null":return new $q
14162
+ case"binary":return new Tq
14163
+ case"largebinary":return new Oq
14164
+ case"utf8":return new Rq
14165
+ case"largeutf8":return new Fq
14166
+ case"bool":return new Nq
14167
+ case"list":return new Uq((e||[])[0])
14168
+ case"struct":case"struct_":return new qq(e||[])}switch(n){case"int":{const e=t.type
14169
+ return new Eq(e.isSigned,e.bitWidth)}case"floatingpoint":{const e=t.type
14170
+ return new Aq(XH[e.precision])}case"decimal":{const e=t.type
14171
+ return new Lq(e.scale,e.precision,e.bitWidth)}case"date":{const e=t.type
14172
+ return new Bq(JH[e.unit])}case"time":{const e=t.type
14173
+ return new Pq(QH[e.unit],e.bitWidth)}case"timestamp":{const e=t.type
14174
+ return new zq(QH[e.unit],e.timezone)}case"interval":{const e=t.type
14175
+ return new Vq(tU[e.unit])}case"duration":{const e=t.type
14176
+ return new Hq(QH[e.unit])}case"union":{const n=t.type,[i,...s]=(n.mode+"").toLowerCase(),o=i.toUpperCase()+s.join("")
14177
+ return new jq(YH[o],n.typeIds||[],e||[])}case"fixedsizebinary":{const e=t.type
14178
+ return new Wq(e.byteWidth)}case"fixedsizelist":{const n=t.type
14179
+ return new Gq(n.listSize,(e||[])[0])}case"map":{const n=t.type
14180
+ return new Zq((e||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var cZ=aU,dZ=rU
14181
+ class hZ{static fromJSON(t,e){const n=new hZ(0,KH.V5,e)
14182
+ return n._createHeader=function(t,e){return()=>{switch(e){case HU.Schema:return sG.fromJSON(t)
14183
+ case HU.RecordBatch:return uZ.fromJSON(t)
14184
+ case HU.DictionaryBatch:return pZ.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${HU[e]}, type: ${e} }`)}}(t,e),n}static decode(t){t=new dZ(zH(t))
14185
+ const e=tZ.getRootAsMessage(t),n=e.bodyLength(),i=e.version(),s=e.headerType(),o=new hZ(n,i,s)
14186
+ return o._createHeader=function(t,e){return()=>{switch(e){case HU.Schema:return sG.decode(t.header(new VU),new Map,t.version())
14187
+ case HU.RecordBatch:return uZ.decode(t.header(new pU),t.version())
14188
+ case HU.DictionaryBatch:return pZ.decode(t.header(new fU),t.version())}throw new Error(`Unrecognized Message type: { name: ${HU[e]}, type: ${e} }`)}}(e,s),o}static encode(t){const e=new cZ
14187
14189
  let n=-1
14188
- return t.isSchema()?n=iG.encode(e,t.header()):t.isRecordBatch()?n=hZ.encode(e,t.header()):t.isDictionaryBatch()&&(n=uZ.encode(e,t.header())),QG.startMessage(e),QG.addVersion(e,ZH.V5),QG.addHeader(e,n),QG.addHeaderType(e,t.headerType),QG.addBodyLength(e,BigInt(t.bodyLength)),QG.finishMessageBuffer(e,QG.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof iG)return new dZ(0,ZH.V5,VU.Schema,t)
14189
- if(t instanceof hZ)return new dZ(e,ZH.V5,VU.RecordBatch,t)
14190
- if(t instanceof uZ)return new dZ(e,ZH.V5,VU.DictionaryBatch,t)
14191
- throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===VU.Schema}isRecordBatch(){return this.headerType===VU.RecordBatch}isDictionaryBatch(){return this.headerType===VU.DictionaryBatch}constructor(t,e,n,i){this._version=e,this._headerType=n,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=jU(t)}}class hZ{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,e,n){this._nodes=e,this._buffers=n,this._length=jU(t)}}class uZ{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(t,e,n=!1){this._data=t,this._isDelta=n,this._id=jU(e)}}class pZ{constructor(t,e){this.offset=jU(t),this.length=jU(e)}}class fZ{constructor(t,e){this.length=jU(t),this.nullCount=jU(e)}}function mZ(t,e){const n=[]
14192
- for(let i,s=-1,o=-1,r=t.childrenLength();++s<r;)(i=t.children(s))&&(n[++o]=sG.decode(i,e))
14193
- return n}function gZ(t){const e=new Map
14190
+ return t.isSchema()?n=sG.encode(e,t.header()):t.isRecordBatch()?n=uZ.encode(e,t.header()):t.isDictionaryBatch()&&(n=pZ.encode(e,t.header())),tZ.startMessage(e),tZ.addVersion(e,KH.V5),tZ.addHeader(e,n),tZ.addHeaderType(e,t.headerType),tZ.addBodyLength(e,BigInt(t.bodyLength)),tZ.finishMessageBuffer(e,tZ.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof sG)return new hZ(0,KH.V5,HU.Schema,t)
14191
+ if(t instanceof uZ)return new hZ(e,KH.V5,HU.RecordBatch,t)
14192
+ if(t instanceof pZ)return new hZ(e,KH.V5,HU.DictionaryBatch,t)
14193
+ throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===HU.Schema}isRecordBatch(){return this.headerType===HU.RecordBatch}isDictionaryBatch(){return this.headerType===HU.DictionaryBatch}constructor(t,e,n,i){this._version=e,this._headerType=n,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=WU(t)}}class uZ{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,e,n){this._nodes=e,this._buffers=n,this._length=WU(t)}}class pZ{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(t,e,n=!1){this._data=t,this._isDelta=n,this._id=WU(e)}}class fZ{constructor(t,e){this.offset=WU(t),this.length=WU(e)}}class mZ{constructor(t,e){this.length=WU(t),this.nullCount=WU(e)}}function gZ(t,e){const n=[]
14194
+ for(let i,s=-1,o=-1,r=t.childrenLength();++s<r;)(i=t.children(s))&&(n[++o]=oG.decode(i,e))
14195
+ return n}function vZ(t){const e=new Map
14194
14196
  if(t)for(let n,i,s=-1,o=Math.trunc(t.customMetadataLength());++s<o;)(n=t.customMetadata(s))&&null!=(i=n.key())&&e.set(i,n.value())
14195
- return e}function vZ(t){return new $q(t.isSigned(),t.bitWidth())}function bZ(t,e){const n=t.typeType()
14196
- switch(n){case BU.NONE:case BU.Null:return new Mq
14197
- case BU.Binary:return new Aq
14198
- case BU.LargeBinary:return new Tq
14199
- case BU.Utf8:return new Oq
14200
- case BU.LargeUtf8:return new Rq
14201
- case BU.Bool:return new Fq
14202
- case BU.List:return new Hq((e||[])[0])
14203
- case BU.Struct_:return new Uq(e||[])}switch(n){case BU.Int:{const e=t.type(new gU)
14204
- return new $q(e.isSigned(),e.bitWidth())}case BU.FloatingPoint:{const e=t.type(new IU)
14205
- return new Dq(e.precision())}case BU.Decimal:{const e=t.type(new CU)
14206
- return new Nq(e.scale(),e.precision(),e.bitWidth())}case BU.Date:{const e=t.type(new xU)
14207
- return new Lq(e.unit())}case BU.Time:{const e=t.type(new RU)
14208
- return new Bq(e.unit(),e.bitWidth())}case BU.Timestamp:{const e=t.type(new FU)
14209
- return new Pq(e.unit(),e.timezone())}case BU.Interval:{const e=t.type(new MU)
14210
- return new zq(e.unit())}case BU.Duration:{const e=t.type(new kU)
14211
- return new Vq(e.unit())}case BU.Union:{const n=t.type(new NU)
14212
- return new qq(n.mode(),n.typeIdsArray()||[],e||[])}case BU.FixedSizeBinary:{const e=t.type(new SU)
14213
- return new jq(e.byteWidth())}case BU.FixedSizeList:{const n=t.type(new _U)
14214
- return new Wq(n.listSize(),(e||[])[0])}case BU.Map:{const n=t.type(new AU)
14215
- return new Gq((e||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${BU[n]}" (${n})`)}sG.encode=function(t,e){let n=-1,i=-1,s=-1
14197
+ return e}function bZ(t){return new Eq(t.isSigned(),t.bitWidth())}function yZ(t,e){const n=t.typeType()
14198
+ switch(n){case PU.NONE:case PU.Null:return new $q
14199
+ case PU.Binary:return new Tq
14200
+ case PU.LargeBinary:return new Oq
14201
+ case PU.Utf8:return new Rq
14202
+ case PU.LargeUtf8:return new Fq
14203
+ case PU.Bool:return new Nq
14204
+ case PU.List:return new Uq((e||[])[0])
14205
+ case PU.Struct_:return new qq(e||[])}switch(n){case PU.Int:{const e=t.type(new vU)
14206
+ return new Eq(e.isSigned(),e.bitWidth())}case PU.FloatingPoint:{const e=t.type(new MU)
14207
+ return new Aq(e.precision())}case PU.Decimal:{const e=t.type(new kU)
14208
+ return new Lq(e.scale(),e.precision(),e.bitWidth())}case PU.Date:{const e=t.type(new CU)
14209
+ return new Bq(e.unit())}case PU.Time:{const e=t.type(new FU)
14210
+ return new Pq(e.unit(),e.bitWidth())}case PU.Timestamp:{const e=t.type(new NU)
14211
+ return new zq(e.unit(),e.timezone())}case PU.Interval:{const e=t.type(new $U)
14212
+ return new Vq(e.unit())}case PU.Duration:{const e=t.type(new SU)
14213
+ return new Hq(e.unit())}case PU.Union:{const n=t.type(new LU)
14214
+ return new jq(n.mode(),n.typeIdsArray()||[],e||[])}case PU.FixedSizeBinary:{const e=t.type(new _U)
14215
+ return new Wq(e.byteWidth())}case PU.FixedSizeList:{const n=t.type(new IU)
14216
+ return new Gq(n.listSize(),(e||[])[0])}case PU.Map:{const n=t.type(new TU)
14217
+ return new Zq((e||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${PU[n]}" (${n})`)}oG.encode=function(t,e){let n=-1,i=-1,s=-1
14216
14218
  const o=e.type
14217
14219
  let r=e.typeId
14218
- Iq.isDictionary(o)?(r=o.dictionary.typeId,s=tZ.visit(o,t),i=tZ.visit(o.dictionary,t)):i=tZ.visit(o,t)
14219
- const a=(o.children||[]).map((e=>sG.encode(t,e))),l=PU.createChildrenVector(t,a),c=e.metadata&&e.metadata.size>0?PU.createCustomMetadataVector(t,[...e.metadata].map((([e,n])=>{const i=t.createString(`${e}`),s=t.createString(`${n}`)
14220
- return bU.startKeyValue(t),bU.addKey(t,i),bU.addValue(t,s),bU.endKeyValue(t)}))):-1
14220
+ Mq.isDictionary(o)?(r=o.dictionary.typeId,s=eZ.visit(o,t),i=eZ.visit(o.dictionary,t)):i=eZ.visit(o,t)
14221
+ const a=(o.children||[]).map((e=>oG.encode(t,e))),l=zU.createChildrenVector(t,a),c=e.metadata&&e.metadata.size>0?zU.createCustomMetadataVector(t,[...e.metadata].map((([e,n])=>{const i=t.createString(`${e}`),s=t.createString(`${n}`)
14222
+ return yU.startKeyValue(t),yU.addKey(t,i),yU.addValue(t,s),yU.endKeyValue(t)}))):-1
14221
14223
  e.name&&(n=t.createString(e.name))
14222
- PU.startField(t),PU.addType(t,i),PU.addTypeType(t,r),PU.addChildren(t,l),PU.addNullable(t,!!e.nullable),-1!==n&&PU.addName(t,n);-1!==s&&PU.addDictionary(t,s);-1!==c&&PU.addCustomMetadata(t,c)
14223
- return PU.endField(t)},sG.decode=function(t,e){let n,i,s,o,r,a
14224
- e&&(a=t.dictionary())?e.has(n=jU(a.id()))?(o=(o=a.indexType())?vZ(o):new Eq,r=new Yq(e.get(n),o,n,a.isOrdered()),i=new sG(t.name(),r,t.nullable(),gZ(t))):(o=(o=a.indexType())?vZ(o):new Eq,e.set(n,s=bZ(t,mZ(t,e))),r=new Yq(s,o,n,a.isOrdered()),i=new sG(t.name(),r,t.nullable(),gZ(t))):(s=bZ(t,mZ(t,e)),i=new sG(t.name(),s,t.nullable(),gZ(t)))
14225
- return i||null},sG.fromJSON=function(t,e){let n,i,s,o,r,a
14226
- return e&&(o=t.dictionary)?e.has(n=o.id)?(i=(i=o.indexType)?rZ(i):new Eq,a=new Yq(e.get(n),i,n,o.isOrdered),s=new sG(t.name,a,t.nullable,oZ(t.metadata))):(i=(i=o.indexType)?rZ(i):new Eq,e.set(n,r=aZ(t,nZ(t,e))),a=new Yq(r,i,n,o.isOrdered),s=new sG(t.name,a,t.nullable,oZ(t.metadata))):(r=aZ(t,nZ(t,e)),s=new sG(t.name,r,t.nullable,oZ(t.metadata))),s||null},iG.encode=function(t,e){const n=e.fields.map((e=>sG.encode(t,e)))
14227
- zU.startFieldsVector(t,n.length)
14228
- const i=zU.createFieldsVector(t,n),s=e.metadata&&e.metadata.size>0?zU.createCustomMetadataVector(t,[...e.metadata].map((([e,n])=>{const i=t.createString(`${e}`),s=t.createString(`${n}`)
14229
- return bU.startKeyValue(t),bU.addKey(t,i),bU.addValue(t,s),bU.endKeyValue(t)}))):-1
14230
- zU.startSchema(t),zU.addFields(t,i),zU.addEndianness(t,yZ?fU.Little:fU.Big),-1!==s&&zU.addCustomMetadata(t,s)
14231
- return zU.endSchema(t)},iG.decode=function(t,e=new Map,n=ZH.V5){const i=function(t,e){const n=[]
14232
- for(let i,s=-1,o=-1,r=t.fieldsLength();++s<r;)(i=t.fields(s))&&(n[++o]=sG.decode(i,e))
14224
+ zU.startField(t),zU.addType(t,i),zU.addTypeType(t,r),zU.addChildren(t,l),zU.addNullable(t,!!e.nullable),-1!==n&&zU.addName(t,n);-1!==s&&zU.addDictionary(t,s);-1!==c&&zU.addCustomMetadata(t,c)
14225
+ return zU.endField(t)},oG.decode=function(t,e){let n,i,s,o,r,a
14226
+ e&&(a=t.dictionary())?e.has(n=WU(a.id()))?(o=(o=a.indexType())?bZ(o):new Dq,r=new Xq(e.get(n),o,n,a.isOrdered()),i=new oG(t.name(),r,t.nullable(),vZ(t))):(o=(o=a.indexType())?bZ(o):new Dq,e.set(n,s=yZ(t,gZ(t,e))),r=new Xq(s,o,n,a.isOrdered()),i=new oG(t.name(),r,t.nullable(),vZ(t))):(s=yZ(t,gZ(t,e)),i=new oG(t.name(),s,t.nullable(),vZ(t)))
14227
+ return i||null},oG.fromJSON=function(t,e){let n,i,s,o,r,a
14228
+ return e&&(o=t.dictionary)?e.has(n=o.id)?(i=(i=o.indexType)?aZ(i):new Dq,a=new Xq(e.get(n),i,n,o.isOrdered),s=new oG(t.name,a,t.nullable,rZ(t.metadata))):(i=(i=o.indexType)?aZ(i):new Dq,e.set(n,r=lZ(t,iZ(t,e))),a=new Xq(r,i,n,o.isOrdered),s=new oG(t.name,a,t.nullable,rZ(t.metadata))):(r=lZ(t,iZ(t,e)),s=new oG(t.name,r,t.nullable,rZ(t.metadata))),s||null},sG.encode=function(t,e){const n=e.fields.map((e=>oG.encode(t,e)))
14229
+ VU.startFieldsVector(t,n.length)
14230
+ const i=VU.createFieldsVector(t,n),s=e.metadata&&e.metadata.size>0?VU.createCustomMetadataVector(t,[...e.metadata].map((([e,n])=>{const i=t.createString(`${e}`),s=t.createString(`${n}`)
14231
+ return yU.startKeyValue(t),yU.addKey(t,i),yU.addValue(t,s),yU.endKeyValue(t)}))):-1
14232
+ VU.startSchema(t),VU.addFields(t,i),VU.addEndianness(t,wZ?mU.Little:mU.Big),-1!==s&&VU.addCustomMetadata(t,s)
14233
+ return VU.endSchema(t)},sG.decode=function(t,e=new Map,n=KH.V5){const i=function(t,e){const n=[]
14234
+ for(let i,s=-1,o=-1,r=t.fieldsLength();++s<r;)(i=t.fields(s))&&(n[++o]=oG.decode(i,e))
14233
14235
  return n}(t,e)
14234
- return new iG(i,gZ(t),e,n)},iG.fromJSON=function(t,e=new Map){return new iG(function(t,e){return(t.fields||[]).filter(Boolean).map((t=>sG.fromJSON(t,e)))}(t,e),oZ(t.metadata),e)},hZ.encode=function(t,e){const n=e.nodes||[],i=e.buffers||[]
14235
- uU.startNodesVector(t,n.length)
14236
- for(const e of n.slice().reverse())fZ.encode(t,e)
14236
+ return new sG(i,vZ(t),e,n)},sG.fromJSON=function(t,e=new Map){return new sG(function(t,e){return(t.fields||[]).filter(Boolean).map((t=>oG.fromJSON(t,e)))}(t,e),rZ(t.metadata),e)},uZ.encode=function(t,e){const n=e.nodes||[],i=e.buffers||[]
14237
+ pU.startNodesVector(t,n.length)
14238
+ for(const e of n.slice().reverse())mZ.encode(t,e)
14237
14239
  const s=t.endVector()
14238
- uU.startBuffersVector(t,i.length)
14239
- for(const e of i.slice().reverse())pZ.encode(t,e)
14240
+ pU.startBuffersVector(t,i.length)
14241
+ for(const e of i.slice().reverse())fZ.encode(t,e)
14240
14242
  const o=t.endVector()
14241
- return uU.startRecordBatch(t),uU.addLength(t,BigInt(e.length)),uU.addNodes(t,s),uU.addBuffers(t,o),uU.endRecordBatch(t)},hZ.decode=function(t,e=ZH.V5){if(null!==t.compression())throw new Error("Record batch compression not implemented")
14242
- return new hZ(t.length(),function(t){const e=[]
14243
- for(let n,i=-1,s=-1,o=t.nodesLength();++i<o;)(n=t.nodes(i))&&(e[++s]=fZ.decode(n))
14243
+ return pU.startRecordBatch(t),pU.addLength(t,BigInt(e.length)),pU.addNodes(t,s),pU.addBuffers(t,o),pU.endRecordBatch(t)},uZ.decode=function(t,e=KH.V5){if(null!==t.compression())throw new Error("Record batch compression not implemented")
14244
+ return new uZ(t.length(),function(t){const e=[]
14245
+ for(let n,i=-1,s=-1,o=t.nodesLength();++i<o;)(n=t.nodes(i))&&(e[++s]=mZ.decode(n))
14244
14246
  return e}(t),function(t,e){const n=[]
14245
- for(let i,s=-1,o=-1,r=t.buffersLength();++s<r;)(i=t.buffers(s))&&(e<ZH.V4&&(i.bb_pos+=8*(s+1)),n[++o]=pZ.decode(i))
14246
- return n}(t,e))},hZ.fromJSON=eZ,uZ.encode=function(t,e){const n=hZ.encode(t,e.data)
14247
- return pU.startDictionaryBatch(t),pU.addId(t,BigInt(e.id)),pU.addIsDelta(t,e.isDelta),pU.addData(t,n),pU.endDictionaryBatch(t)},uZ.decode=function(t,e=ZH.V5){return new uZ(hZ.decode(t.data(),e),t.id(),t.isDelta())},uZ.fromJSON=function(t){return new uZ(eZ(t.data),t.id,t.isDelta)},fZ.encode=function(t,e){return hU.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))},fZ.decode=function(t){return new fZ(t.length(),t.nullCount())},pZ.encode=function(t,e){return dU.createBuffer(t,BigInt(e.offset),BigInt(e.length))},pZ.decode=function(t){return new pZ(t.offset(),t.length())}
14248
- const yZ=(()=>{const t=new ArrayBuffer(2)
14249
- return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),wZ=t=>`Expected ${VU[t]} Message in stream, but was null or length 0.`,xZ=t=>`Header pointer of flatbuffer-encoded ${VU[t]} Message is null or length 0.`,CZ=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,kZ=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`
14250
- class SZ{constructor(t){this.source=t instanceof vG?t:new vG(t)}[Symbol.iterator](){return this}next(){let t
14251
- return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?uG:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e
14247
+ for(let i,s=-1,o=-1,r=t.buffersLength();++s<r;)(i=t.buffers(s))&&(e<KH.V4&&(i.bb_pos+=8*(s+1)),n[++o]=fZ.decode(i))
14248
+ return n}(t,e))},uZ.fromJSON=nZ,pZ.encode=function(t,e){const n=uZ.encode(t,e.data)
14249
+ return fU.startDictionaryBatch(t),fU.addId(t,BigInt(e.id)),fU.addIsDelta(t,e.isDelta),fU.addData(t,n),fU.endDictionaryBatch(t)},pZ.decode=function(t,e=KH.V5){return new pZ(uZ.decode(t.data(),e),t.id(),t.isDelta())},pZ.fromJSON=function(t){return new pZ(nZ(t.data),t.id,t.isDelta)},mZ.encode=function(t,e){return uU.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))},mZ.decode=function(t){return new mZ(t.length(),t.nullCount())},fZ.encode=function(t,e){return hU.createBuffer(t,BigInt(e.offset),BigInt(e.length))},fZ.decode=function(t){return new fZ(t.offset(),t.length())}
14250
+ const wZ=(()=>{const t=new ArrayBuffer(2)
14251
+ return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),xZ=t=>`Expected ${HU[t]} Message in stream, but was null or length 0.`,CZ=t=>`Header pointer of flatbuffer-encoded ${HU[t]} Message is null or length 0.`,kZ=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,SZ=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`
14252
+ class _Z{constructor(t){this.source=t instanceof bG?t:new bG(t)}[Symbol.iterator](){return this}next(){let t
14253
+ return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?pG:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e
14252
14254
  if((e=this.next()).done)return null
14253
- if(null!=t&&e.value.headerType!==t)throw new Error(wZ(t))
14255
+ if(null!=t&&e.value.headerType!==t)throw new Error(xZ(t))
14254
14256
  return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0)
14255
- const e=PH(this.source.read(t))
14256
- if(e.byteLength<t)throw new Error(kZ(t,e.byteLength))
14257
- return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){const e=VU.Schema,n=this.readMessage(e),i=null==n?void 0:n.header()
14258
- if(t&&!i)throw new Error(xZ(e))
14259
- return i}readMetadataLength(){const t=this.source.read(MZ),e=t&&new oU(t),n=(null==e?void 0:e.readInt32(0))||0
14257
+ const e=zH(this.source.read(t))
14258
+ if(e.byteLength<t)throw new Error(SZ(t,e.byteLength))
14259
+ return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){const e=HU.Schema,n=this.readMessage(e),i=null==n?void 0:n.header()
14260
+ if(t&&!i)throw new Error(CZ(e))
14261
+ return i}readMetadataLength(){const t=this.source.read($Z),e=t&&new rU(t),n=(null==e?void 0:e.readInt32(0))||0
14260
14262
  return{done:0===n,value:n}}readMetadata(t){const e=this.source.read(t)
14261
- if(!e)return uG
14262
- if(e.byteLength<t)throw new Error(CZ(t,e.byteLength))
14263
- return{done:!1,value:dZ.decode(e)}}}class _Z{constructor(t,e){this.source=t instanceof bG?t:MH(t)?new CG(t,e):new bG(t)}[Symbol.asyncIterator](){return this}next(){return e(this,void 0,void 0,(function*(){let t
14264
- return(t=yield this.readMetadataLength()).done||-1===t.value&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?uG:t}))}throw(t){return e(this,void 0,void 0,(function*(){return yield this.source.throw(t)}))}return(t){return e(this,void 0,void 0,(function*(){return yield this.source.return(t)}))}readMessage(t){return e(this,void 0,void 0,(function*(){let e
14263
+ if(!e)return pG
14264
+ if(e.byteLength<t)throw new Error(kZ(t,e.byteLength))
14265
+ return{done:!1,value:hZ.decode(e)}}}class IZ{constructor(t,e){this.source=t instanceof yG?t:$H(t)?new kG(t,e):new yG(t)}[Symbol.asyncIterator](){return this}next(){return e(this,void 0,void 0,(function*(){let t
14266
+ return(t=yield this.readMetadataLength()).done||-1===t.value&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?pG:t}))}throw(t){return e(this,void 0,void 0,(function*(){return yield this.source.throw(t)}))}return(t){return e(this,void 0,void 0,(function*(){return yield this.source.return(t)}))}readMessage(t){return e(this,void 0,void 0,(function*(){let e
14265
14267
  if((e=yield this.next()).done)return null
14266
- if(null!=t&&e.value.headerType!==t)throw new Error(wZ(t))
14268
+ if(null!=t&&e.value.headerType!==t)throw new Error(xZ(t))
14267
14269
  return e.value}))}readMessageBody(t){return e(this,void 0,void 0,(function*(){if(t<=0)return new Uint8Array(0)
14268
- const e=PH(yield this.source.read(t))
14269
- if(e.byteLength<t)throw new Error(kZ(t,e.byteLength))
14270
- return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}))}readSchema(){return e(this,arguments,void 0,(function*(t=!1){const e=VU.Schema,n=yield this.readMessage(e),i=null==n?void 0:n.header()
14271
- if(t&&!i)throw new Error(xZ(e))
14272
- return i}))}readMetadataLength(){return e(this,void 0,void 0,(function*(){const t=yield this.source.read(MZ),e=t&&new oU(t),n=(null==e?void 0:e.readInt32(0))||0
14270
+ const e=zH(yield this.source.read(t))
14271
+ if(e.byteLength<t)throw new Error(SZ(t,e.byteLength))
14272
+ return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}))}readSchema(){return e(this,arguments,void 0,(function*(t=!1){const e=HU.Schema,n=yield this.readMessage(e),i=null==n?void 0:n.header()
14273
+ if(t&&!i)throw new Error(CZ(e))
14274
+ return i}))}readMetadataLength(){return e(this,void 0,void 0,(function*(){const t=yield this.source.read($Z),e=t&&new rU(t),n=(null==e?void 0:e.readInt32(0))||0
14273
14275
  return{done:0===n,value:n}}))}readMetadata(t){return e(this,void 0,void 0,(function*(){const e=yield this.source.read(t)
14274
- if(!e)return uG
14275
- if(e.byteLength<t)throw new Error(CZ(t,e.byteLength))
14276
- return{done:!1,value:dZ.decode(e)}}))}}class IZ extends SZ{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof pG?t:new pG(t)}next(){const{_json:t}=this
14276
+ if(!e)return pG
14277
+ if(e.byteLength<t)throw new Error(kZ(t,e.byteLength))
14278
+ return{done:!1,value:hZ.decode(e)}}))}}class MZ extends _Z{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof fG?t:new fG(t)}next(){const{_json:t}=this
14277
14279
  if(!this._schema){this._schema=!0
14278
- return{done:!1,value:dZ.fromJSON(t.schema,VU.Schema)}}if(this._dictionaryIndex<t.dictionaries.length){const e=t.dictionaries[this._dictionaryIndex++]
14280
+ return{done:!1,value:hZ.fromJSON(t.schema,HU.Schema)}}if(this._dictionaryIndex<t.dictionaries.length){const e=t.dictionaries[this._dictionaryIndex++]
14279
14281
  this._body=e.data.columns
14280
- return{done:!1,value:dZ.fromJSON(e,VU.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const e=t.batches[this._batchIndex++]
14282
+ return{done:!1,value:hZ.fromJSON(e,HU.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const e=t.batches[this._batchIndex++]
14281
14283
  this._body=e.columns
14282
- return{done:!1,value:dZ.fromJSON(e,VU.RecordBatch)}}return this._body=[],uG}readMessageBody(t){return function t(e){return(e||[]).reduce(((e,n)=>[...e,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...t(n.children)]),[])}(this._body)}readMessage(t){let e
14284
+ return{done:!1,value:hZ.fromJSON(e,HU.RecordBatch)}}return this._body=[],pG}readMessageBody(t){return function t(e){return(e||[]).reduce(((e,n)=>[...e,...n.VALIDITY&&[n.VALIDITY]||[],...n.TYPE_ID&&[n.TYPE_ID]||[],...n.OFFSET&&[n.OFFSET]||[],...n.DATA&&[n.DATA]||[],...t(n.children)]),[])}(this._body)}readMessage(t){let e
14283
14285
  if((e=this.next()).done)return null
14284
- if(null!=t&&e.value.headerType!==t)throw new Error(wZ(t))
14285
- return e.value}readSchema(){const t=VU.Schema,e=this.readMessage(t),n=null==e?void 0:e.header()
14286
- if(!e||!n)throw new Error(xZ(t))
14287
- return n}}const MZ=4,$Z="ARROW1",EZ=new Uint8Array(6)
14288
- for(let t=0;t<6;t+=1)EZ[t]=$Z.codePointAt(t)
14289
- function DZ(t,e=0){for(let n=-1,i=EZ.length;++n<i;)if(EZ[n]!==t[e+n])return!1
14290
- return!0}const AZ=EZ.length,TZ=AZ+MZ,OZ=2*AZ+MZ
14291
- class RZ extends fG{constructor(t){super(),this._impl=t}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){const e=this._impl.open(t)
14292
- return CH(e)?e.then((()=>this)):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return qH.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return qH.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof RZ?t:_H(t)?function(t){return new FZ(new qZ(t))}(t):MH(t)?function(t){return e(this,void 0,void 0,(function*(){const{size:e}=yield t.stat(),n=new CG(t,e)
14293
- return e>=OZ&&DZ(yield n.readAt(0,AZ+7&-8))?new BZ(new UZ(n)):new NZ(new VZ(n))}))}(t):CH(t)?(()=>e(this,void 0,void 0,(function*(){return yield RZ.from(yield t)})))():$H(t)||DH(t)||AH(t)||SH(t)?function(t){return e(this,void 0,void 0,(function*(){const e=yield t.peek(AZ+7&-8)
14294
- return e&&e.byteLength>=4?DZ(e)?new LZ(new HZ(yield t.read())):new NZ(new VZ(t)):new NZ(new VZ(function(){return s(this,arguments,(function*(){}))}()))}))}(new bG(t)):function(t){const e=t.peek(AZ+7&-8)
14295
- return e&&e.byteLength>=4?DZ(e)?new LZ(new HZ(t.read())):new FZ(new zZ(t)):new FZ(new zZ(function*(){}()))}(new vG(t))}static readAll(t){return t instanceof RZ?t.isSync()?WZ(t):GZ(t):_H(t)||ArrayBuffer.isView(t)||kH(t)||IH(t)?WZ(t):GZ(t)}}class FZ extends RZ{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return s(this,arguments,(function*(){yield i(yield*o(r(this[Symbol.iterator]())))}))}}class NZ extends RZ{constructor(t){super(t),this._impl=t}readAll(){return e(this,void 0,void 0,(function*(){var t,e,n,i
14286
+ if(null!=t&&e.value.headerType!==t)throw new Error(xZ(t))
14287
+ return e.value}readSchema(){const t=HU.Schema,e=this.readMessage(t),n=null==e?void 0:e.header()
14288
+ if(!e||!n)throw new Error(CZ(t))
14289
+ return n}}const $Z=4,EZ="ARROW1",DZ=new Uint8Array(6)
14290
+ for(let t=0;t<6;t+=1)DZ[t]=EZ.codePointAt(t)
14291
+ function AZ(t,e=0){for(let n=-1,i=DZ.length;++n<i;)if(DZ[n]!==t[e+n])return!1
14292
+ return!0}const TZ=DZ.length,OZ=TZ+$Z,RZ=2*TZ+$Z
14293
+ class FZ extends mG{constructor(t){super(),this._impl=t}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){const e=this._impl.open(t)
14294
+ return kH(e)?e.then((()=>this)):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return jH.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return jH.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof FZ?t:IH(t)?function(t){return new NZ(new jZ(t))}(t):$H(t)?function(t){return e(this,void 0,void 0,(function*(){const{size:e}=yield t.stat(),n=new kG(t,e)
14295
+ return e>=RZ&&AZ(yield n.readAt(0,TZ+7&-8))?new PZ(new qZ(n)):new LZ(new HZ(n))}))}(t):kH(t)?(()=>e(this,void 0,void 0,(function*(){return yield FZ.from(yield t)})))():EH(t)||AH(t)||TH(t)||_H(t)?function(t){return e(this,void 0,void 0,(function*(){const e=yield t.peek(TZ+7&-8)
14296
+ return e&&e.byteLength>=4?AZ(e)?new BZ(new UZ(yield t.read())):new LZ(new HZ(t)):new LZ(new HZ(function(){return s(this,arguments,(function*(){}))}()))}))}(new yG(t)):function(t){const e=t.peek(TZ+7&-8)
14297
+ return e&&e.byteLength>=4?AZ(e)?new BZ(new UZ(t.read())):new NZ(new VZ(t)):new NZ(new VZ(function*(){}()))}(new bG(t))}static readAll(t){return t instanceof FZ?t.isSync()?GZ(t):ZZ(t):IH(t)||ArrayBuffer.isView(t)||SH(t)||MH(t)?GZ(t):ZZ(t)}}class NZ extends FZ{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return s(this,arguments,(function*(){yield i(yield*o(r(this[Symbol.iterator]())))}))}}class LZ extends FZ{constructor(t){super(t),this._impl=t}readAll(){return e(this,void 0,void 0,(function*(){var t,e,n,i
14296
14298
  const s=new Array
14297
14299
  try{for(var o,a=!0,l=r(this);!(t=(o=yield l.next()).done);a=!0){i=o.value,a=!1
14298
14300
  const t=i
14299
- s.push(t)}}catch(t){e={error:t}}finally{try{a||t||!(n=l.return)||(yield n.call(l))}finally{if(e)throw e.error}}return s}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class LZ extends FZ{constructor(t){super(t),this._impl=t}}class BZ extends NZ{constructor(t){super(t),this._impl=t}}class PZ{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){const n=this._loadVectors(t,e,this.schema.fields),i=TW({type:new Uq(this.schema.fields),length:t.length,children:n})
14300
- return new KG(this.schema,i)}_loadDictionaryBatch(t,e){const{id:n,isDelta:i}=t,{dictionaries:s,schema:o}=this,r=s.get(n)
14301
+ s.push(t)}}catch(t){e={error:t}}finally{try{a||t||!(n=l.return)||(yield n.call(l))}finally{if(e)throw e.error}}return s}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class BZ extends NZ{constructor(t){super(t),this._impl=t}}class PZ extends LZ{constructor(t){super(t),this._impl=t}}class zZ{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){const n=this._loadVectors(t,e,this.schema.fields),i=OW({type:new qq(this.schema.fields),length:t.length,children:n})
14302
+ return new YG(this.schema,i)}_loadDictionaryBatch(t,e){const{id:n,isDelta:i}=t,{dictionaries:s,schema:o}=this,r=s.get(n)
14301
14303
  if(i||!r){const s=o.dictionaries.get(n),a=this._loadVectors(t.data,e,[s])
14302
- return(r&&i?r.concat(new QW(a)):new QW(a)).memoize()}return r.memoize()}_loadVectors(t,e,n){return new EG(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}class zZ extends PZ{constructor(t,e){super(e),this._reader=_H(t)?new IZ(this._handle=t):new SZ(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=jZ(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):uG}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):uG}next(){if(this.closed)return uG
14304
+ return(r&&i?r.concat(new tG(a)):new tG(a)).memoize()}return r.memoize()}_loadVectors(t,e,n){return new DG(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}class VZ extends zZ{constructor(t,e){super(e),this._reader=IH(t)?new MZ(this._handle=t):new _Z(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=WZ(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):pG}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):pG}next(){if(this.closed)return pG
14303
14305
  let t
14304
14306
  const{_reader:e}=this
14305
14307
  for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header())
@@ -14307,7 +14309,7 @@ else{if(t.isRecordBatch()){this._recordBatchIndex++
14307
14309
  const n=t.header(),i=e.readMessageBody(t.bodyLength)
14308
14310
  return{done:!1,value:this._loadRecordBatch(n,i)}}if(t.isDictionaryBatch()){this._dictionaryIndex++
14309
14311
  const n=t.header(),i=e.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(n,i)
14310
- this.dictionaries.set(n.id,s)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new JG(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class VZ extends PZ{constructor(t,e){super(e),this._reader=new _Z(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return e(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(t){return e(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=jZ(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(t){return e(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):uG}))}return(t){return e(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):uG}))}next(){return e(this,void 0,void 0,(function*(){if(this.closed)return uG
14312
+ this.dictionaries.set(n.id,s)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new QG(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class HZ extends zZ{constructor(t,e){super(e),this._reader=new IZ(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return e(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(t){return e(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=WZ(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(t){return e(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):pG}))}return(t){return e(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):pG}))}next(){return e(this,void 0,void 0,(function*(){if(this.closed)return pG
14311
14313
  let t
14312
14314
  const{_reader:e}=this
14313
14315
  for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header())
@@ -14315,40 +14317,40 @@ else{if(t.isRecordBatch()){this._recordBatchIndex++
14315
14317
  const n=t.header(),i=yield e.readMessageBody(t.bodyLength)
14316
14318
  return{done:!1,value:this._loadRecordBatch(n,i)}}if(t.isDictionaryBatch()){this._dictionaryIndex++
14317
14319
  const n=t.header(),i=yield e.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(n,i)
14318
- this.dictionaries.set(n.id,s)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new JG(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(t){return e(this,void 0,void 0,(function*(){return yield this._reader.readMessage(t)}))}}class HZ extends zZ{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,e){super(t instanceof xG?t:new xG(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema
14320
+ this.dictionaries.set(n.id,s)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new QG(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(t){return e(this,void 0,void 0,(function*(){return yield this._reader.readMessage(t)}))}}class UZ extends VZ{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,e){super(t instanceof CG?t:new CG(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema
14319
14321
  for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e
14320
14322
  if(this.closed)return null
14321
14323
  this._footer||this.open()
14322
14324
  const n=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t)
14323
- if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(VU.RecordBatch)
14325
+ if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(HU.RecordBatch)
14324
14326
  if(null==t?void 0:t.isRecordBatch()){const e=t.header(),n=this._reader.readMessageBody(t.bodyLength)
14325
14327
  return this._loadRecordBatch(e,n)}}return null}_readDictionaryBatch(t){var e
14326
14328
  const n=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t)
14327
- if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(VU.DictionaryBatch)
14329
+ if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(HU.DictionaryBatch)
14328
14330
  if(null==t?void 0:t.isDictionaryBatch()){const e=t.header(),n=this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,n)
14329
- this.dictionaries.set(e.id,i)}}}_readFooter(){const{_handle:t}=this,e=t.size-TZ,n=t.readInt32(e),i=t.readAt(e-n,n)
14330
- return cG.decode(i)}_readNextMessageAndValidate(t){var e
14331
+ this.dictionaries.set(e.id,i)}}}_readFooter(){const{_handle:t}=this,e=t.size-OZ,n=t.readInt32(e),i=t.readAt(e-n,n)
14332
+ return dG.decode(i)}_readNextMessageAndValidate(t){var e
14331
14333
  if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(this._recordBatchIndex)
14332
- if(n&&this._handle.seek(n.offset))return this._reader.readMessage(t)}return null}}class UZ extends VZ{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,...e){const n="number"!=typeof e[0]?e.shift():void 0,i=e[0]instanceof Map?e.shift():void 0
14333
- super(t instanceof CG?t:new CG(t,n),i)}isFile(){return!0}isAsync(){return!0}open(t){const n=Object.create(null,{open:{get:()=>super.open}})
14334
+ if(n&&this._handle.seek(n.offset))return this._reader.readMessage(t)}return null}}class qZ extends HZ{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,...e){const n="number"!=typeof e[0]?e.shift():void 0,i=e[0]instanceof Map?e.shift():void 0
14335
+ super(t instanceof kG?t:new kG(t,n),i)}isFile(){return!0}isAsync(){return!0}open(t){const n=Object.create(null,{open:{get:()=>super.open}})
14334
14336
  return e(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema
14335
14337
  for(const t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield n.open.call(this,t)}))}readRecordBatch(t){return e(this,void 0,void 0,(function*(){var e
14336
14338
  if(this.closed)return null
14337
14339
  this._footer||(yield this.open())
14338
14340
  const n=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t)
14339
- if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(VU.RecordBatch)
14341
+ if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(HU.RecordBatch)
14340
14342
  if(null==t?void 0:t.isRecordBatch()){const e=t.header(),n=yield this._reader.readMessageBody(t.bodyLength)
14341
14343
  return this._loadRecordBatch(e,n)}}return null}))}_readDictionaryBatch(t){return e(this,void 0,void 0,(function*(){var e
14342
14344
  const n=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t)
14343
- if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(VU.DictionaryBatch)
14345
+ if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(HU.DictionaryBatch)
14344
14346
  if(null==t?void 0:t.isDictionaryBatch()){const e=t.header(),n=yield this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,n)
14345
14347
  this.dictionaries.set(e.id,i)}}}))}_readFooter(){return e(this,void 0,void 0,(function*(){const{_handle:t}=this
14346
14348
  t._pending&&(yield t._pending)
14347
- const e=t.size-TZ,n=yield t.readInt32(e),i=yield t.readAt(e-n,n)
14348
- return cG.decode(i)}))}_readNextMessageAndValidate(t){return e(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const e=this._footer.getRecordBatch(this._recordBatchIndex)
14349
- if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null}))}}class qZ extends zZ{constructor(t,e){super(t,e)}_loadVectors(t,e,n){return new DG(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}function jZ(t,e){return e&&"boolean"==typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function*WZ(t){const e=RZ.from(t)
14350
- try{if(!e.open({autoDestroy:!1}).closed)do{yield e}while(!e.reset().open().closed)}finally{e.cancel()}}function GZ(t){return s(this,arguments,(function*(){const e=yield i(RZ.from(t))
14351
- try{if(!(yield i(e.open({autoDestroy:!1}))).closed)do{yield yield i(e)}while(!(yield i(e.reset().open())).closed)}finally{yield i(e.cancel())}}))}const ZZ=Q`
14349
+ const e=t.size-OZ,n=yield t.readInt32(e),i=yield t.readAt(e-n,n)
14350
+ return dG.decode(i)}))}_readNextMessageAndValidate(t){return e(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const e=this._footer.getRecordBatch(this._recordBatchIndex)
14351
+ if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null}))}}class jZ extends VZ{constructor(t,e){super(t,e)}_loadVectors(t,e,n){return new AG(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}function WZ(t,e){return e&&"boolean"==typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function*GZ(t){const e=FZ.from(t)
14352
+ try{if(!e.open({autoDestroy:!1}).closed)do{yield e}while(!e.reset().open().closed)}finally{e.cancel()}}function ZZ(t){return s(this,arguments,(function*(){const e=yield i(FZ.from(t))
14353
+ try{if(!(yield i(e.open({autoDestroy:!1}))).closed)do{yield yield i(e)}while(!(yield i(e.reset().open())).closed)}finally{yield i(e.cancel())}}))}const KZ=Q`
14352
14354
  <div class="wafer-map-container">
14353
14355
  <svg class="svg-root">
14354
14356
  <g ${Ut("zoomContainer")} transform=${t=>t.transform.toString()}>
@@ -14379,7 +14381,7 @@ try{if(!(yield i(e.open({autoDestroy:!1}))).closed)do{yield yield i(e)}while(!(y
14379
14381
  />
14380
14382
  </svg>
14381
14383
  </div>
14382
- `,KZ=Mt`
14384
+ `,YZ=Mt`
14383
14385
  ${zs("inline-block")}
14384
14386
 
14385
14387
  :host {
@@ -14469,67 +14471,67 @@ try{if(!(yield i(e.open({autoDestroy:!1}))).closed)do{yield yield i(e)}while(!(y
14469
14471
  outline-width: 0px;
14470
14472
  }
14471
14473
  `
14472
- function YZ(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function XZ(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function JZ(t){let e,n,i
14474
+ function XZ(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function JZ(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function QZ(t){let e,n,i
14473
14475
  function s(t,i,s=0,o=t.length){if(s<o){if(0!==e(i,i))return o
14474
14476
  do{const e=s+o>>>1
14475
- n(t[e],i)<0?s=e+1:o=e}while(s<o)}return s}return 2!==t.length?(e=YZ,n=(e,n)=>YZ(t(e),n),i=(e,n)=>t(e)-n):(e=t===YZ||t===XZ?t:QZ,n=t,i=t),{left:s,center:function(t,e,n=0,o=t.length){const r=s(t,e,n,o-1)
14477
+ n(t[e],i)<0?s=e+1:o=e}while(s<o)}return s}return 2!==t.length?(e=XZ,n=(e,n)=>XZ(t(e),n),i=(e,n)=>t(e)-n):(e=t===XZ||t===JZ?t:tK,n=t,i=t),{left:s,center:function(t,e,n=0,o=t.length){const r=s(t,e,n,o-1)
14476
14478
  return r>n&&i(t[r-1],e)>-i(t[r],e)?r-1:r},right:function(t,i,s=0,o=t.length){if(s<o){if(0!==e(i,i))return o
14477
14479
  do{const e=s+o>>>1
14478
- n(t[e],i)<=0?s=e+1:o=e}while(s<o)}return s}}}function QZ(){return 0}function tK(t){return null===t?NaN:+t}const eK=JZ(YZ).right
14479
- JZ(tK).center
14480
- class nK extends Map{constructor(t,e=sK){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(iK(this,t))}has(t){return super.has(iK(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
14480
+ n(t[e],i)<=0?s=e+1:o=e}while(s<o)}return s}}}function tK(){return 0}function eK(t){return null===t?NaN:+t}const nK=QZ(XZ).right
14481
+ QZ(eK).center
14482
+ class iK extends Map{constructor(t,e=oK){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(sK(this,t))}has(t){return super.has(sK(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
14481
14483
  return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n)
14482
14484
  t.has(i)&&(n=t.get(i),t.delete(i))
14483
- return n}(this,t))}}function iK({_intern:t,_key:e},n){const i=e(n)
14484
- return t.has(i)?t.get(i):n}function sK(t){return null!==t&&"object"==typeof t?t.valueOf():t}const oK=Math.sqrt(50),rK=Math.sqrt(10),aK=Math.sqrt(2)
14485
- function lK(t,e,n){const i=(e-t)/Math.max(0,n),s=Math.floor(Math.log10(i)),o=i/Math.pow(10,s),r=o>=oK?10:o>=rK?5:o>=aK?2:1
14485
+ return n}(this,t))}}function sK({_intern:t,_key:e},n){const i=e(n)
14486
+ return t.has(i)?t.get(i):n}function oK(t){return null!==t&&"object"==typeof t?t.valueOf():t}const rK=Math.sqrt(50),aK=Math.sqrt(10),lK=Math.sqrt(2)
14487
+ function cK(t,e,n){const i=(e-t)/Math.max(0,n),s=Math.floor(Math.log10(i)),o=i/Math.pow(10,s),r=o>=rK?10:o>=aK?5:o>=lK?2:1
14486
14488
  let a,l,c
14487
- return s<0?(c=Math.pow(10,-s)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,s)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?lK(t,e,2*n):[a,l,c]}function cK(t,e,n){return lK(t=+t,e=+e,n=+n)[2]}function dK(t,e,n=tK){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
14489
+ return s<0?(c=Math.pow(10,-s)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,s)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?cK(t,e,2*n):[a,l,c]}function dK(t,e,n){return cK(t=+t,e=+e,n=+n)[2]}function hK(t,e,n=eK){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
14488
14490
  if(e>=1)return+n(t[i-1],i-1,t)
14489
14491
  var i,s=(i-1)*e,o=Math.floor(s),r=+n(t[o],o,t)
14490
- return r+(+n(t[o+1],o+1,t)-r)*(s-o)}}function hK(t,e,n){t=+t,e=+e,n=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+n
14492
+ return r+(+n(t[o+1],o+1,t)-r)*(s-o)}}function uK(t,e,n){t=+t,e=+e,n=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+n
14491
14493
  for(var i=-1,s=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(s);++i<s;)o[i]=t+i*n
14492
- return o}function uK(t,e){switch(arguments.length){case 0:break
14494
+ return o}function pK(t,e){switch(arguments.length){case 0:break
14493
14495
  case 1:this.range(t)
14494
14496
  break
14495
- default:this.range(e).domain(t)}return this}const pK=Symbol("implicit")
14496
- function fK(){var t=new nK,e=[],n=[],i=pK
14497
+ default:this.range(e).domain(t)}return this}const fK=Symbol("implicit")
14498
+ function mK(){var t=new iK,e=[],n=[],i=fK
14497
14499
  function s(s){let o=t.get(s)
14498
- if(void 0===o){if(i!==pK)return i
14500
+ if(void 0===o){if(i!==fK)return i
14499
14501
  t.set(s,o=e.push(s)-1)}return n[o%n.length]}return s.domain=function(n){if(!arguments.length)return e.slice()
14500
- e=[],t=new nK
14502
+ e=[],t=new iK
14501
14503
  for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
14502
- return s},s.range=function(t){return arguments.length?(n=Array.from(t),s):n.slice()},s.unknown=function(t){return arguments.length?(i=t,s):i},s.copy=function(){return fK(e,n).unknown(i)},uK.apply(s,arguments),s}function mK(){var t,e,n=fK().unknown(void 0),i=n.domain,s=n.range,o=0,r=1,a=!1,l=0,c=0,d=.5
14504
+ return s},s.range=function(t){return arguments.length?(n=Array.from(t),s):n.slice()},s.unknown=function(t){return arguments.length?(i=t,s):i},s.copy=function(){return mK(e,n).unknown(i)},pK.apply(s,arguments),s}function gK(){var t,e,n=mK().unknown(void 0),i=n.domain,s=n.range,o=0,r=1,a=!1,l=0,c=0,d=.5
14503
14505
  function h(){var n=i().length,h=r<o,u=h?r:o,p=h?o:r
14504
14506
  t=(p-u)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),u+=(p-u-t*(n-l))*d,e=t*(1-l),a&&(u=Math.round(u),e=Math.round(e))
14505
- var f=hK(n).map((function(e){return u+t*e}))
14506
- return s(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([o,r]=t,o=+o,r=+r,h()):[o,r]},n.rangeRound=function(t){return[o,r]=t,o=+o,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return mK(i(),[o,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},uK.apply(h(),arguments)}function gK(t){return+t}var vK=[0,1]
14507
- function bK(t){return t}function yK(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
14508
- var n}function wK(t,e,n){var i=t[0],s=t[1],o=e[0],r=e[1]
14509
- return s<i?(i=yK(s,i),o=n(r,o)):(i=yK(i,s),o=n(o,r)),function(t){return o(i(t))}}function xK(t,e,n){var i=Math.min(t.length,e.length)-1,s=new Array(i),o=new Array(i),r=-1
14510
- for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)s[r]=yK(t[r],t[r+1]),o[r]=n(e[r],e[r+1])
14511
- return function(e){var n=eK(t,e,1,i)-1
14512
- return o[n](s[n](e))}}function CK(){var t,e,n,i,s,o,r=vK,a=vK,l=Uz,c=bK
14507
+ var f=uK(n).map((function(e){return u+t*e}))
14508
+ return s(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([o,r]=t,o=+o,r=+r,h()):[o,r]},n.rangeRound=function(t){return[o,r]=t,o=+o,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return gK(i(),[o,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},pK.apply(h(),arguments)}function vK(t){return+t}var bK=[0,1]
14509
+ function yK(t){return t}function wK(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
14510
+ var n}function xK(t,e,n){var i=t[0],s=t[1],o=e[0],r=e[1]
14511
+ return s<i?(i=wK(s,i),o=n(r,o)):(i=wK(i,s),o=n(o,r)),function(t){return o(i(t))}}function CK(t,e,n){var i=Math.min(t.length,e.length)-1,s=new Array(i),o=new Array(i),r=-1
14512
+ for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)s[r]=wK(t[r],t[r+1]),o[r]=n(e[r],e[r+1])
14513
+ return function(e){var n=nK(t,e,1,i)-1
14514
+ return o[n](s[n](e))}}function kK(){var t,e,n,i,s,o,r=bK,a=bK,l=qz,c=yK
14513
14515
  function d(){var t,e,n,l=Math.min(r.length,a.length)
14514
- return c!==bK&&(t=r[0],e=r[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?xK:wK,s=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(s||(s=i(r.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=i(a,r.map(t),Bz)))(n)))},h.domain=function(t){return arguments.length?(r=Array.from(t,gK),d()):r.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=qz,d()},h.clamp=function(t){return arguments.length?(c=!!t||bK,d()):c!==bK},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function kK(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
14516
+ return c!==yK&&(t=r[0],e=r[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?CK:xK,s=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(s||(s=i(r.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=i(a,r.map(t),Pz)))(n)))},h.domain=function(t){return arguments.length?(r=Array.from(t,vK),d()):r.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=jz,d()},h.clamp=function(t){return arguments.length?(c=!!t||yK,d()):c!==yK},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function SK(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
14515
14517
  var n,i=t.slice(0,n)
14516
- return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function SK(t){return(t=kK(Math.abs(t)))?t[1]:NaN}var _K,IK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
14517
- function MK(t){if(!(e=IK.exec(t)))throw new Error("invalid format: "+t)
14518
+ return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function _K(t){return(t=SK(Math.abs(t)))?t[1]:NaN}var IK,MK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
14519
+ function $K(t){if(!(e=MK.exec(t)))throw new Error("invalid format: "+t)
14518
14520
  var e
14519
- return new $K({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function $K(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function EK(t,e){var n=kK(t,e)
14521
+ return new EK({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function EK(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function DK(t,e){var n=SK(t,e)
14520
14522
  if(!n)return t+""
14521
14523
  var i=n[0],s=n[1]
14522
- return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}MK.prototype=$K.prototype,$K.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}
14523
- var DK={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>EK(100*t,e),r:EK,s:function(t,e){var n=kK(t,e)
14524
+ return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}$K.prototype=EK.prototype,EK.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}
14525
+ var AK={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>DK(100*t,e),r:DK,s:function(t,e){var n=SK(t,e)
14524
14526
  if(!n)return t+""
14525
- var i=n[0],s=n[1],o=s-(_K=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,r=i.length
14526
- return o===r?i:o>r?i+new Array(o-r+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+kK(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
14527
- function AK(t){return t}var TK,OK,RK,FK=Array.prototype.map,NK=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
14528
- function LK(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?AK:(e=FK.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var s=t.length,o=[],r=0,a=e[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(t.substring(s-=a,s+a)),!((l+=a+1)>i));)a=e[r=(r+1)%e.length]
14529
- return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?AK:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(FK.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
14530
- function h(t){var e=(t=MK(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
14531
- "n"===b?(m=!0,b="g"):DK[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
14532
- var y="$"===u?s:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?o:/[%p]/.test(b)?l:"",x=DK[b],C=/[defgprs%]/.test(b)
14527
+ var i=n[0],s=n[1],o=s-(IK=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,r=i.length
14528
+ return o===r?i:o>r?i+new Array(o-r+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+SK(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
14529
+ function TK(t){return t}var OK,RK,FK,NK=Array.prototype.map,LK=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
14530
+ function BK(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?TK:(e=NK.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var s=t.length,o=[],r=0,a=e[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(t.substring(s-=a,s+a)),!((l+=a+1)>i));)a=e[r=(r+1)%e.length]
14531
+ return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?TK:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(NK.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
14532
+ function h(t){var e=(t=$K(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
14533
+ "n"===b?(m=!0,b="g"):AK[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
14534
+ var y="$"===u?s:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?o:/[%p]/.test(b)?l:"",x=AK[b],C=/[defgprs%]/.test(b)
14533
14535
  function k(t){var s,o,l,u=y,k=w
14534
14536
  if("c"===b)k=x(t)+k,t=""
14535
14537
  else{var S=(t=+t)<0||1/t<0
@@ -14538,7 +14540,7 @@ break
14538
14540
  case"0":0===s&&(s=i),e=i
14539
14541
  break
14540
14542
  default:if(!+t[i])break t
14541
- s>0&&(s=0)}return s>0?t.slice(0,s)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?NK[8+_K/3]:"")+k+(S&&"("===h?")":""),C)for(s=-1,o=t.length;++s<o;)if(48>(l=t.charCodeAt(s))||l>57){k=(46===l?r+t.slice(s+1):t.slice(s))+k,t=t.slice(0,s)
14543
+ s>0&&(s=0)}return s>0?t.slice(0,s)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?LK[8+IK/3]:"")+k+(S&&"("===h?")":""),C)for(s=-1,o=t.length;++s<o;)if(48>(l=t.charCodeAt(s))||l>57){k=(46===l?r+t.slice(s+1):t.slice(s))+k,t=t.slice(0,s)
14542
14544
  break}}m&&!p&&(t=i(t,1/0))
14543
14545
  var _=u.length+t.length+k.length,I=_<f?new Array(f-_+1).join(e):""
14544
14546
  switch(m&&p&&(t=i(I+t,I.length?f-k.length:1/0),I=""),n){case"<":t=u+t+k+I
@@ -14547,19 +14549,19 @@ case"=":t=u+I+t+k
14547
14549
  break
14548
14550
  case"^":t=I.slice(0,_=I.length>>1)+u+t+k+I.slice(_)
14549
14551
  break
14550
- default:t=I+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=MK(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(SK(e)/3))),s=Math.pow(10,-i),o=NK[8+i/3]
14551
- return function(t){return n(s*t)+o}}}}function BK(t,e,n,i){var s,o=function(t,e,n){n=+n
14552
- const i=(e=+e)<(t=+t),s=i?cK(e,t,n):cK(t,e,n)
14552
+ default:t=I+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=$K(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(_K(e)/3))),s=Math.pow(10,-i),o=LK[8+i/3]
14553
+ return function(t){return n(s*t)+o}}}}function PK(t,e,n,i){var s,o=function(t,e,n){n=+n
14554
+ const i=(e=+e)<(t=+t),s=i?dK(e,t,n):dK(t,e,n)
14553
14555
  return(i?-1:1)*(s<0?1/-s:s)}(t,e,n)
14554
- switch((i=MK(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e))
14555
- return null!=i.precision||isNaN(s=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(SK(e)/3)))-SK(Math.abs(t)))}(o,r))||(i.precision=s),RK(i,r)
14556
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(s=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,SK(e)-SK(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=s-("e"===i.type))
14556
+ switch((i=$K(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e))
14557
+ return null!=i.precision||isNaN(s=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_K(e)/3)))-_K(Math.abs(t)))}(o,r))||(i.precision=s),FK(i,r)
14558
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(s=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_K(e)-_K(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=s-("e"===i.type))
14557
14559
  break
14558
- case"f":case"%":null!=i.precision||isNaN(s=function(t){return Math.max(0,-SK(Math.abs(t)))}(o))||(i.precision=s-2*("%"===i.type))}return OK(i)}function PK(t){var e=t.domain
14560
+ case"f":case"%":null!=i.precision||isNaN(s=function(t){return Math.max(0,-_K(Math.abs(t)))}(o))||(i.precision=s-2*("%"===i.type))}return RK(i)}function zK(t){var e=t.domain
14559
14561
  return t.ticks=function(t){var n=e()
14560
14562
  return function(t,e,n){if(!((n=+n)>0))return[]
14561
14563
  if((t=+t)==(e=+e))return[t]
14562
- const i=e<t,[s,o,r]=i?lK(e,t,n):lK(t,e,n)
14564
+ const i=e<t,[s,o,r]=i?cK(e,t,n):cK(t,e,n)
14563
14565
  if(!(o>=s))return[]
14564
14566
  const a=o-s+1,l=new Array(a)
14565
14567
  if(i)if(r<0)for(let t=0;t<a;++t)l[t]=(o-t)/-r
@@ -14567,33 +14569,23 @@ else for(let t=0;t<a;++t)l[t]=(o-t)*r
14567
14569
  else if(r<0)for(let t=0;t<a;++t)l[t]=(s+t)/-r
14568
14570
  else for(let t=0;t<a;++t)l[t]=(s+t)*r
14569
14571
  return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
14570
- return BK(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
14572
+ return PK(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
14571
14573
  var i,s,o=e(),r=0,a=o.length-1,l=o[r],c=o[a],d=10
14572
- for(c<l&&(s=l,l=c,c=s,s=r,r=a,a=s);d-- >0;){if((s=cK(l,c,n))===i)return o[r]=l,o[a]=c,e(o)
14574
+ for(c<l&&(s=l,l=c,c=s,s=r,r=a,a=s);d-- >0;){if((s=dK(l,c,n))===i)return o[r]=l,o[a]=c,e(o)
14573
14575
  if(s>0)l=Math.floor(l/s)*s,c=Math.ceil(c/s)*s
14574
14576
  else{if(!(s<0))break
14575
- l=Math.ceil(l*s)/s,c=Math.floor(c*s)/s}i=s}return t},t}function zK(){var t=CK()(bK,bK)
14576
- return t.copy=function(){return e=t,zK().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
14577
- var e},uK.apply(t,arguments),PK(t)}function VK(){var t,e=[],n=[],i=[]
14577
+ l=Math.ceil(l*s)/s,c=Math.floor(c*s)/s}i=s}return t},t}function VK(){var t=kK()(yK,yK)
14578
+ return t.copy=function(){return e=t,VK().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
14579
+ var e},pK.apply(t,arguments),zK(t)}function HK(){var t,e=[],n=[],i=[]
14578
14580
  function s(){var t=0,s=Math.max(1,n.length)
14579
- for(i=new Array(s-1);++t<s;)i[t-1]=dK(e,t/s)
14580
- return o}function o(e){return null==e||isNaN(e=+e)?t:n[eK(i,e)]}return o.invertExtent=function(t){var s=n.indexOf(t)
14581
+ for(i=new Array(s-1);++t<s;)i[t-1]=hK(e,t/s)
14582
+ return o}function o(e){return null==e||isNaN(e=+e)?t:n[nK(i,e)]}return o.invertExtent=function(t){var s=n.indexOf(t)
14581
14583
  return s<0?[NaN,NaN]:[s>0?i[s-1]:e[0],s<i.length?i[s]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice()
14582
14584
  e=[]
14583
14585
  for(let n of t)null==n||isNaN(n=+n)||e.push(n)
14584
- return e.sort(YZ),s()},o.range=function(t){return arguments.length?(n=Array.from(t),s()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return i.slice()},o.copy=function(){return VK().domain(e).range(n).unknown(t)},uK.apply(o,arguments)}TK=LK({thousands:",",grouping:[3],currency:["$",""]}),OK=TK.format,RK=TK.formatPrefix
14585
- const HK="bottom-left",UK="bottom-right",qK="top-left",jK="top",WK="show",GK="hide",ZK="linear",KK="ordinal"
14586
- class YK{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
14587
- const t=t=>null!==t
14588
- void 0===this.wafermap.diesTable&&(this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter(t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
14589
- return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?zK().domain(t.values.map((t=>+t))).range(t.colors):fK().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
14590
- const s=`${t}${i}`
14591
- return s.length>=e?`${s.substring(0,e)}…`:s}calculateOpacity(t,e){if(!e||0===e.length)return 1
14592
- const n=new Set(e)
14593
- return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===ZK}isColorScaleOrdinal(t){return t===KK}calculateFillStyle(t,e,n,i){let s=this.emptyDieColor
14594
- if(this.dieHasData(t)&&(isNaN(+t)?s=this.nanDieColor:this.isColorScaleLinear(e)?s=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(s=this.d3ColorScale(t))),void 0===s)return this.emptyDieColor
14595
- let o=to(s)
14596
- return null===o?this.emptyDieColor:(o=new Ws(o.r,o.g,o.b,this.calculateOpacity(i,n)),o.toStringWebRGBA())}}class XK{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
14586
+ return e.sort(XZ),s()},o.range=function(t){return arguments.length?(n=Array.from(t),s()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return i.slice()},o.copy=function(){return HK().domain(e).range(n).unknown(t)},pK.apply(o,arguments)}OK=BK({thousands:",",grouping:[3],currency:["$",""]}),RK=OK.format,FK=OK.formatPrefix
14587
+ const UK="bottom-left",qK="bottom-right",jK="top-left",WK="top",GK="show",ZK="hide",KK="linear",YK="ordinal"
14588
+ let XK=class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
14597
14589
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
14598
14590
  const s=Math.min(this._containerDimensions.width,this._containerDimensions.height)
14599
14591
  this._radius=s/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -14603,11 +14595,22 @@ this._dieDimensions={width:isNaN(i)?0:i,height:isNaN(s)?0:s}}gridDimensionsValid
14603
14595
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(t){if(0===t.length||void 0===t[0])return{origin:{x:0,y:0},rows:0,cols:0}
14604
14596
  const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
14605
14597
  for(const i of t)i.x<e.x&&(e.x=i.x),i.y<e.y&&(e.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
14606
- return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=mK().domain(hK(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
14607
- return t===HK||t===qK?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=VK().domain([0,n])
14608
- return t===HK||t===qK?i.range(hK(e.origin.x,e.origin.x+e.cols)):i.range(hK(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=mK().domain(hK(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
14609
- return t===HK||t===UK?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=VK().domain([0,n])
14610
- return t===HK||t===UK?i.range(hK(e.origin.y,e.origin.y+e.rows).reverse()):i.range(hK(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}(t),this.prerendering=new YK(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}class JK{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){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?GK:WK,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
14598
+ return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=gK().domain(uK(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
14599
+ return t===UK||t===jK?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=HK().domain([0,n])
14600
+ return t===UK||t===jK?i.range(uK(e.origin.x,e.origin.x+e.cols)):i.range(uK(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=gK().domain(uK(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
14601
+ return t===UK||t===qK?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=HK().domain([0,n])
14602
+ return t===UK||t===qK?i.range(uK(e.origin.y,e.origin.y+e.rows).reverse()):i.range(uK(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}
14603
+ class JK{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
14604
+ const t=t=>null!==t
14605
+ void 0===this.wafermap.diesTable&&(this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter(t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
14606
+ return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?VK().domain(t.values.map((t=>+t))).range(t.colors):mK().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
14607
+ const s=`${t}${i}`
14608
+ return s.length>=e?`${s.substring(0,e)}…`:s}calculateOpacity(t,e){if(!e||0===e.length)return 1
14609
+ const n=new Set(e)
14610
+ return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===KK}isColorScaleOrdinal(t){return t===YK}calculateFillStyle(t,e,n,i){let s=this.emptyDieColor
14611
+ if(this.dieHasData(t)&&(isNaN(+t)?s=this.nanDieColor:this.isColorScaleLinear(e)?s=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(s=this.d3ColorScale(t))),void 0===s)return this.emptyDieColor
14612
+ let o=to(s)
14613
+ return null===o?this.emptyDieColor:(o=new Ws(o.r,o.g,o.b,this.calculateOpacity(i,n)),o.toStringWebRGBA())}}class QK{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new XK(t),this.prerendering=new JK(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}class tY{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){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?ZK:GK,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
14611
14614
  if(void 0===t)return""
14612
14615
  const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
14613
14616
  if(void 0===e)return""
@@ -14620,80 +14623,89 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
14620
14623
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
14621
14624
  const s=i.measureText("M"),o=this.wafermap.transform.invert([0,0]),r=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
14622
14625
  o[0]-=t,o[1]-=e
14623
- for(const n of this.dies)this.isDieVisible(n,o,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+s.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const QK=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
14624
- class tY extends OE{constructor(t){super(QK),this.wafermap=t,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?b.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1})):(async()=>{await this.wafermap.currentTask,b.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0}))})())}}class eY{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
14626
+ for(const n of this.dies)this.isDieVisible(n,o,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+s.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const eY=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
14627
+ class nY extends OE{constructor(t){super(eY),this.wafermap=t,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?b.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1})):(async()=>{await this.wafermap.currentTask,b.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0}))})())}}class iY{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
14625
14628
  else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
14626
- e&&n&&i&&Iq.isInt(e.type)&&32===e.type.bitWidth&&Iq.isInt(n.type)&&32===n.type.bitWidth&&Iq.isFloat(i.type)&&i.type.precision===YH.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
14629
+ e&&n&&i&&Mq.isInt(e.type)&&32===e.type.bitWidth&&Mq.isInt(n.type)&&32===n.type.bitWidth&&Mq.isFloat(i.type)&&i.type.precision===XH.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
14627
14630
  /**
14628
14631
  * @license
14629
14632
  * Copyright 2019 Google LLC
14630
14633
  * SPDX-License-Identifier: Apache-2.0
14631
- */const nY=Symbol("Comlink.proxy"),iY=Symbol("Comlink.endpoint"),sY=Symbol("Comlink.releaseProxy"),oY=Symbol("Comlink.finalizer"),rY=Symbol("Comlink.thrown"),aY=t=>"object"==typeof t&&null!==t||"function"==typeof t,lY=new Map([["proxy",{canHandle:t=>aY(t)&&t[nY],serialize(t){const{port1:e,port2:n}=new MessageChannel
14632
- return cY(t,e),[n,[n]]},deserialize:t=>(t.start(),hY(t))}],["throw",{canHandle:t=>aY(t)&&rY in t,serialize({value:t}){let e
14634
+ */const sY=Symbol("Comlink.proxy"),oY=Symbol("Comlink.endpoint"),rY=Symbol("Comlink.releaseProxy"),aY=Symbol("Comlink.finalizer"),lY=Symbol("Comlink.thrown"),cY=t=>"object"==typeof t&&null!==t||"function"==typeof t,dY=new Map([["proxy",{canHandle:t=>cY(t)&&t[sY],serialize(t){const{port1:e,port2:n}=new MessageChannel
14635
+ return hY(t,e),[n,[n]]},deserialize:t=>(t.start(),pY(t))}],["throw",{canHandle:t=>cY(t)&&lY in t,serialize({value:t}){let e
14633
14636
  return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value)
14634
14637
  throw t.value}}]])
14635
- function cY(t,e=globalThis,n=["*"]){e.addEventListener("message",(function i(s){if(!s||!s.data)return
14638
+ function hY(t,e=globalThis,n=["*"]){e.addEventListener("message",(function i(s){if(!s||!s.data)return
14636
14639
  if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0
14637
14640
  if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,s.origin))return void console.warn(`Invalid origin '${s.origin}' for comlink proxy`)
14638
- const{id:o,type:r,path:a}=Object.assign({path:[]},s.data),l=(s.data.argumentList||[]).map(xY)
14641
+ const{id:o,type:r,path:a}=Object.assign({path:[]},s.data),l=(s.data.argumentList||[]).map(kY)
14639
14642
  let c
14640
14643
  try{const e=a.slice(0,-1).reduce(((t,e)=>t[e]),t),n=a.reduce(((t,e)=>t[e]),t)
14641
14644
  switch(r){case"GET":c=n
14642
14645
  break
14643
- case"SET":e[a.slice(-1)[0]]=xY(s.data.value),c=!0
14646
+ case"SET":e[a.slice(-1)[0]]=kY(s.data.value),c=!0
14644
14647
  break
14645
14648
  case"APPLY":c=n.apply(e,l)
14646
14649
  break
14647
- case"CONSTRUCT":c=function(t){return Object.assign(t,{[nY]:!0})}(new n(...l))
14650
+ case"CONSTRUCT":c=function(t){return Object.assign(t,{[sY]:!0})}(new n(...l))
14648
14651
  break
14649
14652
  case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel
14650
- cY(t,n),c=yY(e,[e])}break
14653
+ hY(t,n),c=xY(e,[e])}break
14651
14654
  case"RELEASE":c=void 0
14652
14655
  break
14653
- default:return}}catch(t){c={value:t,[rY]:0}}Promise.resolve(c).catch((t=>({value:t,[rY]:0}))).then((n=>{const[s,a]=wY(n)
14654
- e.postMessage(Object.assign(Object.assign({},s),{id:o}),a),"RELEASE"===r&&(e.removeEventListener("message",i),dY(e),oY in t&&"function"==typeof t[oY]&&t[oY]())})).catch((t=>{const[n,i]=wY({value:new TypeError("Unserializable return value"),[rY]:0})
14655
- e.postMessage(Object.assign(Object.assign({},n),{id:o}),i)}))})),e.start&&e.start()}function dY(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function hY(t,e){return gY(t,[],e)}function uY(t){if(t)throw new Error("Proxy has been released and is not useable")}function pY(t){return CY(t,{type:"RELEASE"}).then((()=>{dY(t)}))}const fY=new WeakMap,mY="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const e=(fY.get(t)||0)-1
14656
- fY.set(t,e),0===e&&pY(t)}))
14657
- function gY(t,e=[],n=function(){}){let i=!1
14658
- const s=new Proxy(n,{get(n,o){if(uY(i),o===sY)return()=>{!function(t){mY&&mY.unregister(t)}(s),pY(t),i=!0}
14656
+ default:return}}catch(t){c={value:t,[lY]:0}}Promise.resolve(c).catch((t=>({value:t,[lY]:0}))).then((n=>{const[s,a]=CY(n)
14657
+ e.postMessage(Object.assign(Object.assign({},s),{id:o}),a),"RELEASE"===r&&(e.removeEventListener("message",i),uY(e),aY in t&&"function"==typeof t[aY]&&t[aY]())})).catch((t=>{const[n,i]=CY({value:new TypeError("Unserializable return value"),[lY]:0})
14658
+ e.postMessage(Object.assign(Object.assign({},n),{id:o}),i)}))})),e.start&&e.start()}function uY(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function pY(t,e){return bY(t,[],e)}function fY(t){if(t)throw new Error("Proxy has been released and is not useable")}function mY(t){return SY(t,{type:"RELEASE"}).then((()=>{uY(t)}))}const gY=new WeakMap,vY="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const e=(gY.get(t)||0)-1
14659
+ gY.set(t,e),0===e&&mY(t)}))
14660
+ function bY(t,e=[],n=function(){}){let i=!1
14661
+ const s=new Proxy(n,{get(n,o){if(fY(i),o===rY)return()=>{!function(t){vY&&vY.unregister(t)}(s),mY(t),i=!0}
14659
14662
  if("then"===o){if(0===e.length)return{then:()=>s}
14660
- const n=CY(t,{type:"GET",path:e.map((t=>t.toString()))}).then(xY)
14661
- return n.then.bind(n)}return gY(t,[...e,o])},set(n,s,o){uY(i)
14662
- const[r,a]=wY(o)
14663
- return CY(t,{type:"SET",path:[...e,s].map((t=>t.toString())),value:r},a).then(xY)},apply(n,s,o){uY(i)
14663
+ const n=SY(t,{type:"GET",path:e.map((t=>t.toString()))}).then(kY)
14664
+ return n.then.bind(n)}return bY(t,[...e,o])},set(n,s,o){fY(i)
14665
+ const[r,a]=CY(o)
14666
+ return SY(t,{type:"SET",path:[...e,s].map((t=>t.toString())),value:r},a).then(kY)},apply(n,s,o){fY(i)
14664
14667
  const r=e[e.length-1]
14665
- if(r===iY)return CY(t,{type:"ENDPOINT"}).then(xY)
14666
- if("bind"===r)return gY(t,e.slice(0,-1))
14667
- const[a,l]=vY(o)
14668
- return CY(t,{type:"APPLY",path:e.map((t=>t.toString())),argumentList:a},l).then(xY)},construct(n,s){uY(i)
14669
- const[o,r]=vY(s)
14670
- return CY(t,{type:"CONSTRUCT",path:e.map((t=>t.toString())),argumentList:o},r).then(xY)}})
14671
- return function(t,e){const n=(fY.get(e)||0)+1
14672
- fY.set(e,n),mY&&mY.register(t,e,t)}(s,t),s}function vY(t){const e=t.map(wY)
14668
+ if(r===oY)return SY(t,{type:"ENDPOINT"}).then(kY)
14669
+ if("bind"===r)return bY(t,e.slice(0,-1))
14670
+ const[a,l]=yY(o)
14671
+ return SY(t,{type:"APPLY",path:e.map((t=>t.toString())),argumentList:a},l).then(kY)},construct(n,s){fY(i)
14672
+ const[o,r]=yY(s)
14673
+ return SY(t,{type:"CONSTRUCT",path:e.map((t=>t.toString())),argumentList:o},r).then(kY)}})
14674
+ return function(t,e){const n=(gY.get(e)||0)+1
14675
+ gY.set(e,n),vY&&vY.register(t,e,t)}(s,t),s}function yY(t){const e=t.map(CY)
14673
14676
  return[e.map((t=>t[0])),(n=e.map((t=>t[1])),Array.prototype.concat.apply([],n))]
14674
- var n}const bY=new WeakMap
14675
- function yY(t,e){return bY.set(t,e),t}function wY(t){for(const[e,n]of lY)if(n.canHandle(t)){const[i,s]=n.serialize(t)
14676
- return[{type:"HANDLER",name:e,value:i},s]}return[{type:"RAW",value:t},bY.get(t)||[]]}function xY(t){switch(t.type){case"HANDLER":return lY.get(t.name).deserialize(t.value)
14677
- case"RAW":return t.value}}function CY(t,e,n){return new Promise((i=>{const s=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-")
14678
- t.addEventListener("message",(function e(n){n.data&&n.data.id&&n.data.id===s&&(t.removeEventListener("message",e),i(n.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:s},e),n)}))}let kY
14679
- class SY{constructor(t){this.wafermap=t,this.minDieDim=100}async setupWafer(t){if(void 0===this.matrixRenderer){const{matrixRenderer:t}=await(async()=>{if(void 0===kY){const t=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"})
14680
- kY=URL.createObjectURL(t)}const t=new Worker(kY),e=hY(t)
14677
+ var n}const wY=new WeakMap
14678
+ function xY(t,e){return wY.set(t,e),t}function CY(t){for(const[e,n]of dY)if(n.canHandle(t)){const[i,s]=n.serialize(t)
14679
+ return[{type:"HANDLER",name:e,value:i},s]}return[{type:"RAW",value:t},wY.get(t)||[]]}function kY(t){switch(t.type){case"HANDLER":return dY.get(t.name).deserialize(t.value)
14680
+ case"RAW":return t.value}}function SY(t,e,n){return new Promise((i=>{const s=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-")
14681
+ t.addEventListener("message",(function e(n){n.data&&n.data.id&&n.data.id===s&&(t.removeEventListener("message",e),i(n.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:s},e),n)}))}let _Y
14682
+ class IY{constructor(t){this.wafermap=t,this.minDieDim=100}async setupWafer(t){if(void 0===this.matrixRenderer){const{matrixRenderer:t}=await(async()=>{if(void 0===_Y){const t=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"})
14683
+ _Y=URL.createObjectURL(t)}const t=new Worker(_Y),e=pY(t)
14681
14684
  return{matrixRenderer:await new e,terminate:()=>t.terminate()}})()
14682
14685
  this.matrixRenderer=t
14683
14686
  const e=this.wafermap.workerCanvas.transferControlToOffscreen()
14684
- await this.matrixRenderer.setCanvas(yY(e,[e]))}await this.matrixRenderer.setCanvasDimensions(t.canvasDimensions),await this.matrixRenderer.setRenderConfig(t.renderConfig),await this.matrixRenderer.setMatrixData(t.columnIndices,t.rowIndices,t.values)}async drawWafer(t){const e=t.transform.invert([0,0]),n=t.transform.invert([t.canvasDimensions.width,t.canvasDimensions.height])
14685
- await this.matrixRenderer.setTransformConfig({transform:t.transform,topLeftCanvasCorner:{x:e[0]-t.dieDimensions.width,y:e[1]-t.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!t.dieLabelsHidden&&t.dieDimensions&&t.dieDimensions.width*t.dieDimensions.height*(t.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?GK:WK,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
14687
+ await this.matrixRenderer.setCanvas(xY(e,[e]))}await this.matrixRenderer.setCanvasDimensions(t.canvasDimensions),await this.matrixRenderer.setRenderConfig(t.renderConfig),await this.matrixRenderer.setMatrixData(t.columnIndices,t.rowIndices,t.values)}async drawWafer(t){const e=t.transform.invert([0,0]),n=t.transform.invert([t.canvasDimensions.width,t.canvasDimensions.height])
14688
+ await this.matrixRenderer.setTransformConfig({transform:t.transform,topLeftCanvasCorner:{x:e[0]-t.dieDimensions.width,y:e[1]-t.dieDimensions.height},bottomRightCanvasCorner:{x:n[0],y:n[1]}}),await this.matrixRenderer.drawWafer(),!t.dieLabelsHidden&&t.dieDimensions&&t.dieDimensions.width*t.dieDimensions.height*(t.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?ZK:GK,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
14686
14689
  if(void 0===t)return""
14687
14690
  const e=this.wafermap.computations.verticalScale(this.wafermap.hoverDie.y)
14688
14691
  if(void 0===e)return""
14689
14692
  const n=this.wafermap.transform.apply([t+this.wafermap.computations.margin.left,e+this.wafermap.computations.margin.top])
14690
- return`translate(${n[0]}, ${n[1]})`}return""}}class _Y{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
14693
+ return`translate(${n[0]}, ${n[1]})`}return""}}let MY=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
14694
+ const e={x:t.offsetX,y:t.offsetY}
14695
+ if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
14696
+ const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
14697
+ this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===UK||e===jK?Math.floor:Math.ceil,i=e===UK||e===qK?Math.floor:Math.ceil
14698
+ return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
14699
+ let n=0
14700
+ for(const t of e)n+=t
14701
+ return n>0}}
14702
+ class $Y{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
14691
14703
  const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
14692
14704
  if(void 0===n||!this.isDieInGrid(n.x,n.y))return void(this.wafermap.hoverDie=void 0)
14693
14705
  const i=this.wafermap.diesTable.getChild("colIndex").toArray(),s=this.wafermap.diesTable.getChild("rowIndex").toArray()
14694
14706
  for(let t=0;t<i.length;t++)if(i[t]===n.x&&s[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
14695
- this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===HK||e===qK?Math.floor:Math.ceil,i=e===HK||e===UK?Math.ceil:Math.floor
14696
- return{x:n(this.wafermap.computations.horizontalScale.invert(t.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(t.y-this.wafermap.computations.margin.top))}}}isDieInGrid(t,e){return t>=this.wafermap.computations.gridMinX&&t<=this.wafermap.computations.gridMaxX&&e>=this.wafermap.computations.gridMinY&&e<=this.wafermap.computations.gridMaxY}}class IY{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()},this.wafermapNotifier=x.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(){mH().on("zoom",null)(GP(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(t,e){t!==this.wafermap||"canvasWidth"!==e&&"canvasHeight"!==e||this.createZoomBehavior()}createZoomBehavior(){mH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(GP(this.wafermap))}}class MY{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(t){this.wafermap=t,this.baseMarginPercentage=.04,this.fontSizeFactor=.8,this.colorScaleResolution=10}componentResizeUpdate(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
14707
+ this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===UK||e===jK?Math.floor:Math.ceil,i=e===UK||e===qK?Math.ceil:Math.floor
14708
+ return{x:n(this.wafermap.computations.horizontalScale.invert(t.x-this.wafermap.computations.margin.left)),y:i(this.wafermap.computations.verticalScale.invert(t.y-this.wafermap.computations.margin.top))}}}isDieInGrid(t,e){return t>=this.wafermap.computations.gridMinX&&t<=this.wafermap.computations.gridMaxX&&e>=this.wafermap.computations.gridMinY&&e<=this.wafermap.computations.gridMaxY}}class EY{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()},this.wafermapNotifier=x.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)(ZP(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(t,e){t!==this.wafermap||"canvasWidth"!==e&&"canvasHeight"!==e||this.createZoomBehavior()}createZoomBehavior(){gH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(ZP(this.wafermap))}}class DY{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(t){this.wafermap=t,this.baseMarginPercentage=.04,this.fontSizeFactor=.8,this.colorScaleResolution=10}componentResizeUpdate(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
14697
14709
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this.margin),this.inputDataUpdate()}inputDataUpdate(){if(void 0===this._containerDimensions)return void this.componentResizeUpdate()
14698
14710
  const t=Math.min(this._containerDimensions.width,this._containerDimensions.height)
14699
14711
  this.gridDimensionsValidAndDefined()?this.setGridDimensionsFromBoundingBox():this.setGridDimensionsFromDies()
@@ -14701,28 +14713,20 @@ const e=this.wafermap.originLocation
14701
14713
  this._horizontalScale=this.createHorizontalScale(e,t),this._verticalScale=this.createVerticalScale(e,t),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
14702
14714
  const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
14703
14715
  for(let s=0;s<t.length;s++)t[s]<n.x&&(n.x=t[s]),t[s]>i.x&&(i.x=t[s]),e[s]<n.y&&(n.y=e[s]),e[s]>i.y&&(i.y=e[s])
14704
- this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e){const n=zK()
14705
- return t===HK||t===qK?n.domain([this._gridMinX,this._gridMaxX+1]).range([0,e]):n.domain([this._gridMinX-1,this._gridMaxX]).range([e,0])}createVerticalScale(t,e){const n=zK()
14706
- return t===HK||t===UK?n.domain([this._gridMinY-1,this._gridMaxY]).range([e,0]):n.domain([this._gridMinY,this._gridMaxY+1]).range([0,e])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}calculateColorScale(){if(this.wafermap.colorScaleMode===ZK){const t=this.wafermap.colorScale.values.map((t=>+t)),e=zK().domain(t).range(this.wafermap.colorScale.colors)
14716
+ this._gridMinX=n.x,this._gridMinY=n.y,this._gridMaxX=i.x,this._gridMaxY=i.y}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e){const n=VK()
14717
+ return t===UK||t===jK?n.domain([this._gridMinX,this._gridMaxX+1]).range([0,e]):n.domain([this._gridMinX-1,this._gridMaxX]).range([e,0])}createVerticalScale(t,e){const n=VK()
14718
+ return t===UK||t===qK?n.domain([this._gridMinY-1,this._gridMaxY]).range([e,0]):n.domain([this._gridMinY,this._gridMaxY+1]).range([0,e])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}calculateColorScale(){if(this.wafermap.colorScaleMode===KK){const t=this.wafermap.colorScale.values.map((t=>+t)),e=VK().domain(t).range(this.wafermap.colorScale.colors)
14707
14719
  let n=t[0],i=t[0]
14708
14720
  t.forEach((t=>{t<n&&(n=t),t>i&&(i=t)}))
14709
- return hK(n,i,(i-n)/(t.length*this.colorScaleResolution)).concat(i).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class $Y extends We{constructor(){super(...arguments),this.waferMapUpdateTracker=new tY(this.asRequiredFieldsWaferMap),this.originLocation=HK,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=jK,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=ZK,this.computations=new MY(this.asRequiredFieldsWaferMap),this.dataManager=new XK(this.asRequiredFieldsWaferMap),this.workerRenderer=new SY(this.asRequiredFieldsWaferMap),this.renderer=new JK(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=rH,this.hoverTransform="",this.hoverOpacity=GK,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
14710
- const e={x:t.offsetX,y:t.offsetY}
14711
- if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
14712
- const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
14713
- this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===HK||e===qK?Math.floor:Math.ceil,i=e===HK||e===UK?Math.floor:Math.ceil
14714
- return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
14715
- let n=0
14716
- for(const t of e)n+=t
14717
- return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new _Y(this.asRequiredFieldsWaferMap),this.zoomHandler=new IY(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new eY(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()
14721
+ return uK(n,i,(i-n)/(t.length*this.colorScaleResolution)).concat(i).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class AY extends We{constructor(){super(...arguments),this.waferMapUpdateTracker=new nY(this.asRequiredFieldsWaferMap),this.originLocation=UK,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=WK,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=KK,this.computations=new DY(this.asRequiredFieldsWaferMap),this.dataManager=new QK(this.asRequiredFieldsWaferMap),this.workerRenderer=new IY(this.asRequiredFieldsWaferMap),this.renderer=new tY(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=aH,this.hoverTransform="",this.hoverOpacity=ZK,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new MY(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new $Y(this.asRequiredFieldsWaferMap),this.zoomHandler=new EY(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new iY(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()
14718
14722
  const t=this.createSnapshot()
14719
14723
  this.waferMapUpdateTracker.requiresWorkerWaferSetup&&await this.workerRenderer.setupWafer(t),await this.workerRenderer.drawWafer(t)}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}async setData(t){Array.isArray(t)?this.dies=t:this.diesTable=t,await b.nextUpdate(),void 0!==this.currentTask&&await this.currentTask}createSnapshot(){const t={width:this.canvasWidth??0,height:this.canvasHeight??0},e={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,s=this.dieLabelsHidden
14720
14724
  if(void 0===this.diesTable)return{canvasDimensions:t,renderConfig:e,dieDimensions:n,transform:i,dieLabelsHidden:s,columnIndices:Int32Array.from([]),rowIndices:Int32Array.from([]),values:Float64Array.from([])}
14721
14725
  return{canvasDimensions:t,renderConfig:e,columnIndices:this.diesTable.getChild("colIndex").toArray(),rowIndices:this.diesTable.getChild("rowIndex").toArray(),values:this.diesTable.getChild("value").toArray(),dieDimensions:n,transform:i,dieLabelsHidden:s}}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
14722
14726
  if(void 0===e)return
14723
14727
  const{height:n,width:i}=e.contentRect
14724
- 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}}$Y.Arrow={tableFromIPC:function t(e){const n=RZ.from(e)
14725
- return CH(n)?n.then((e=>t(e))):n.isAsync()?n.readAll().then((t=>new ZG(t))):new ZG(n.readAll())}},t([ft({attribute:"origin-location"})],$Y.prototype,"originLocation",void 0),t([ft({attribute:"grid-min-x",converter:ut})],$Y.prototype,"gridMinX",void 0),t([ft({attribute:"grid-max-x",converter:ut})],$Y.prototype,"gridMaxX",void 0),t([ft({attribute:"grid-min-y",converter:ut})],$Y.prototype,"gridMinY",void 0),t([ft({attribute:"grid-max-y",converter:ut})],$Y.prototype,"gridMaxY",void 0),t([ft],$Y.prototype,"orientation",void 0),t([ft({attribute:"max-characters",converter:ut})],$Y.prototype,"maxCharacters",void 0),t([ft({attribute:"die-labels-hidden",mode:"boolean"})],$Y.prototype,"dieLabelsHidden",void 0),t([ft({attribute:"die-labels-suffix"})],$Y.prototype,"dieLabelsSuffix",void 0),t([ft({attribute:"color-scale-mode"})],$Y.prototype,"colorScaleMode",void 0),t([C],$Y.prototype,"renderer",void 0),t([C],$Y.prototype,"canvasWidth",void 0),t([C],$Y.prototype,"canvasHeight",void 0),t([C],$Y.prototype,"transform",void 0),t([C],$Y.prototype,"hoverTransform",void 0),t([C],$Y.prototype,"hoverOpacity",void 0),t([C],$Y.prototype,"hoverWidth",void 0),t([C],$Y.prototype,"hoverHeight",void 0),t([C],$Y.prototype,"hoverDie",void 0),t([C],$Y.prototype,"highlightedTags",void 0),t([C],$Y.prototype,"dies",void 0),t([C],$Y.prototype,"diesTable",void 0),t([C],$Y.prototype,"colorScale",void 0)
14726
- const EY=$Y.compose({baseName:"wafer-map",template:ZZ,styles:KZ})
14727
- _i.getOrCreate().withPrefix("nimble").register(EY())}()
14728
+ 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}}AY.Arrow={tableFromIPC:function t(e){const n=FZ.from(e)
14729
+ return kH(n)?n.then((e=>t(e))):n.isAsync()?n.readAll().then((t=>new KG(t))):new KG(n.readAll())}},t([ft({attribute:"origin-location"})],AY.prototype,"originLocation",void 0),t([ft({attribute:"grid-min-x",converter:ut})],AY.prototype,"gridMinX",void 0),t([ft({attribute:"grid-max-x",converter:ut})],AY.prototype,"gridMaxX",void 0),t([ft({attribute:"grid-min-y",converter:ut})],AY.prototype,"gridMinY",void 0),t([ft({attribute:"grid-max-y",converter:ut})],AY.prototype,"gridMaxY",void 0),t([ft],AY.prototype,"orientation",void 0),t([ft({attribute:"max-characters",converter:ut})],AY.prototype,"maxCharacters",void 0),t([ft({attribute:"die-labels-hidden",mode:"boolean"})],AY.prototype,"dieLabelsHidden",void 0),t([ft({attribute:"die-labels-suffix"})],AY.prototype,"dieLabelsSuffix",void 0),t([ft({attribute:"color-scale-mode"})],AY.prototype,"colorScaleMode",void 0),t([C],AY.prototype,"renderer",void 0),t([C],AY.prototype,"canvasWidth",void 0),t([C],AY.prototype,"canvasHeight",void 0),t([C],AY.prototype,"transform",void 0),t([C],AY.prototype,"hoverTransform",void 0),t([C],AY.prototype,"hoverOpacity",void 0),t([C],AY.prototype,"hoverWidth",void 0),t([C],AY.prototype,"hoverHeight",void 0),t([C],AY.prototype,"hoverDie",void 0),t([C],AY.prototype,"highlightedTags",void 0),t([C],AY.prototype,"dies",void 0),t([C],AY.prototype,"diesTable",void 0),t([C],AY.prototype,"colorScale",void 0)
14730
+ const TY=AY.compose({baseName:"wafer-map",template:KZ,styles:YZ})
14731
+ _i.getOrCreate().withPrefix("nimble").register(TY())}()
14728
14732
  //# sourceMappingURL=all-components-bundle.min.js.map