@ni/nimble-components 35.13.3 → 35.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14608,11 +14608,10 @@ function cU(t){class e extends t{constructor(){super(...arguments),this.sortingD
14608
14608
  class uU extends jH{constructor(){super(hU)}}class pU extends(JH(XH(QH(cU(dU(Bz)))))){constructor(){super(...arguments),this.underlineHidden=!1,this.defaultSortOperation=Mz}placeholderChanged(){this.updateColumnConfig()}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:lU,delegatedEvents:["click"],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new uU}}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"})],pU.prototype,"labelFieldName",void 0),t([ft({attribute:"href-field-name"})],pU.prototype,"hrefFieldName",void 0),t([ft],pU.prototype,"appearance",void 0),t([ft({attribute:"underline-hidden",mode:"boolean"})],pU.prototype,"underlineHidden",void 0),t([ft],pU.prototype,"hreflang",void 0),t([ft],pU.prototype,"ping",void 0),t([ft],pU.prototype,"referrerpolicy",void 0),t([ft],pU.prototype,"rel",void 0),t([ft],pU.prototype,"target",void 0),t([ft],pU.prototype,"type",void 0),t([ft],pU.prototype,"download",void 0)
14609
14609
  const fU=pU.compose({baseName:"table-column-anchor",template:YH,styles:KH})
14610
14610
  Ei.getOrCreate().withPrefix("nimble").register(fU())
14611
- class mU extends Bz{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function gU(t){return JH(XH(QH(cU(t))))}function vU(t,e){if("number"!=typeof e)return""
14612
- try{return t.format(e)}catch(t){return""}}t([ft({attribute:"field-name"})],mU.prototype,"fieldName",void 0)
14613
- const bU=class extends oU{updateText(){this.columnConfig?this.text=vU(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:rU,styles:sU})
14614
- Ei.getOrCreate().withPrefix("nimble").register(bU())
14615
- const yU=Q`
14611
+ class mU extends Bz{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function gU(t){return JH(XH(QH(cU(t))))}t([ft({attribute:"field-name"})],mU.prototype,"fieldName",void 0)
14612
+ const vU=class extends oU{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:rU,styles:sU})
14613
+ Ei.getOrCreate().withPrefix("nimble").register(vU())
14614
+ const bU=Q`
14616
14615
  <template
14617
14616
  class="
14618
14617
  ${t=>t.alignment===bz?"right-align":""}
@@ -14626,7 +14625,7 @@ const yU=Q`
14626
14625
  ${t=>t.text}
14627
14626
  </span>
14628
14627
  </template>
14629
- `,wU=It`
14628
+ `,yU=It`
14630
14629
  ${Uo("flex")}
14631
14630
 
14632
14631
  :host {
@@ -14650,22 +14649,29 @@ const yU=Q`
14650
14649
  color: ${Qc};
14651
14650
  }
14652
14651
  `
14653
- class xU extends Tz{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=vz,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
14654
- return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([k],xU.prototype,"hasOverflow",void 0),t([k],xU.prototype,"text",void 0),t([k],xU.prototype,"alignment",void 0),t([k],xU.prototype,"isPlaceholder",void 0)
14655
- const CU=class extends xU{updateText(){this.columnConfig?this.text=vU(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:yU,styles:wU})
14656
- Ei.getOrCreate().withPrefix("nimble").register(CU())
14657
- const kU=void 0,SU=["invalidCustomOptionsCombination"]
14652
+ class wU extends Tz{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=vz,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
14653
+ return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([k],wU.prototype,"hasOverflow",void 0),t([k],wU.prototype,"text",void 0),t([k],wU.prototype,"alignment",void 0),t([k],wU.prototype,"isPlaceholder",void 0)
14654
+ const xU=class extends wU{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:bU,styles:yU})
14655
+ Ei.getOrCreate().withPrefix("nimble").register(xU())
14656
+ const CU=void 0,kU=["localeMatcher","weekday","era","year","month","day","hour","minute","second","dayPeriod","timeZoneName","formatMatcher","hour12","timeZone","calendar","numberingSystem","dateStyle","timeStyle","hourCycle"],SU=["invalidCustomOptionsCombination"]
14658
14657
  class $U extends jH{constructor(){super(SU)}setCustomOptionsValidity(t){this.setConditionValue("invalidCustomOptionsCombination",!t)}}const _U={toView:t=>"boolean"==typeof t?t.toString():null,fromView:t=>"true"===t||!0===t||"false"!==t&&!1!==t&&void 0}
14659
- class IU extends(gU(mU)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ia.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ia.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:Iz,validator:new $U}}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()
14658
+ class IU{constructor(t,e){this.options=this.resolveOptions(e),this.formatter=new Intl.DateTimeFormat(t,this.options)}format(t){const e=this.parseValue(t)
14659
+ if(void 0===e||!Number.isFinite(e))return""
14660
+ try{return this.formatter.format(e)}catch(t){return""}}optionsMatch(t){const e=t??IU.defaultOptions
14661
+ for(const t of kU)if(this.options[t]!==e[t])return!1
14662
+ return!0}parseValue(t){return t instanceof Date?t.getTime():"number"==typeof t?t:void 0}resolveOptions(t){if(void 0===t)return IU.defaultOptions
14663
+ const e={}
14664
+ for(const n of kU)this.resolveOption(e,t,n)
14665
+ return e}resolveOption(t,e,n){void 0!==e[n]&&(t[n]=e[n])}}IU.defaultOptions={dateStyle:"medium",timeStyle:"medium"}
14666
+ class MU extends(gU(mU)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ia.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ia.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:Iz,validator:new $U}}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()
14660
14667
  if(t){const e={formatter:t,placeholder:this.placeholder}
14661
- this.columnInternals.columnConfig=e,this.columnInternals.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.columnInternals.validator.setCustomOptionsValidity(!1)}createFormatter(){let t
14662
- t=this.format===kU?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
14663
- try{return new Intl.DateTimeFormat(Ia.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],IU.prototype,"format",void 0),t([ft({attribute:"custom-locale-matcher"})],IU.prototype,"customLocaleMatcher",void 0),t([ft({attribute:"custom-weekday"})],IU.prototype,"customWeekday",void 0),t([ft({attribute:"custom-era"})],IU.prototype,"customEra",void 0),t([ft({attribute:"custom-year"})],IU.prototype,"customYear",void 0),t([ft({attribute:"custom-month"})],IU.prototype,"customMonth",void 0),t([ft({attribute:"custom-day"})],IU.prototype,"customDay",void 0),t([ft({attribute:"custom-hour"})],IU.prototype,"customHour",void 0),t([ft({attribute:"custom-minute"})],IU.prototype,"customMinute",void 0),t([ft({attribute:"custom-second"})],IU.prototype,"customSecond",void 0),t([ft({attribute:"custom-time-zone-name"})],IU.prototype,"customTimeZoneName",void 0),t([ft({attribute:"custom-format-matcher"})],IU.prototype,"customFormatMatcher",void 0),t([ft({attribute:"custom-hour12",converter:_U})],IU.prototype,"customHour12",void 0),t([ft({attribute:"custom-time-zone"})],IU.prototype,"customTimeZone",void 0),t([ft({attribute:"custom-calendar"})],IU.prototype,"customCalendar",void 0),t([ft({attribute:"custom-day-period"})],IU.prototype,"customDayPeriod",void 0),t([ft({attribute:"custom-numbering-system"})],IU.prototype,"customNumberingSystem",void 0),t([ft({attribute:"custom-date-style"})],IU.prototype,"customDateStyle",void 0),t([ft({attribute:"custom-time-style"})],IU.prototype,"customTimeStyle",void 0),t([ft({attribute:"custom-hour-cycle"})],IU.prototype,"customHourCycle",void 0)
14664
- const MU=IU.compose({baseName:"table-column-date-text",template:YH,styles:KH})
14665
- Ei.getOrCreate().withPrefix("nimble").register(MU())
14666
- const EU=class extends xU{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:yU,styles:wU})
14668
+ this.columnInternals.columnConfig=e,this.columnInternals.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.columnInternals.validator.setCustomOptionsValidity(!1)}createFormatter(){const t=this.format===CU?void 0:this.getCustomFormattingOptions()
14669
+ try{return new IU(Ia.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],MU.prototype,"format",void 0),t([ft({attribute:"custom-locale-matcher"})],MU.prototype,"customLocaleMatcher",void 0),t([ft({attribute:"custom-weekday"})],MU.prototype,"customWeekday",void 0),t([ft({attribute:"custom-era"})],MU.prototype,"customEra",void 0),t([ft({attribute:"custom-year"})],MU.prototype,"customYear",void 0),t([ft({attribute:"custom-month"})],MU.prototype,"customMonth",void 0),t([ft({attribute:"custom-day"})],MU.prototype,"customDay",void 0),t([ft({attribute:"custom-hour"})],MU.prototype,"customHour",void 0),t([ft({attribute:"custom-minute"})],MU.prototype,"customMinute",void 0),t([ft({attribute:"custom-second"})],MU.prototype,"customSecond",void 0),t([ft({attribute:"custom-time-zone-name"})],MU.prototype,"customTimeZoneName",void 0),t([ft({attribute:"custom-format-matcher"})],MU.prototype,"customFormatMatcher",void 0),t([ft({attribute:"custom-hour12",converter:_U})],MU.prototype,"customHour12",void 0),t([ft({attribute:"custom-time-zone"})],MU.prototype,"customTimeZone",void 0),t([ft({attribute:"custom-calendar"})],MU.prototype,"customCalendar",void 0),t([ft({attribute:"custom-day-period"})],MU.prototype,"customDayPeriod",void 0),t([ft({attribute:"custom-numbering-system"})],MU.prototype,"customNumberingSystem",void 0),t([ft({attribute:"custom-date-style"})],MU.prototype,"customDateStyle",void 0),t([ft({attribute:"custom-time-style"})],MU.prototype,"customTimeStyle",void 0),t([ft({attribute:"custom-hour-cycle"})],MU.prototype,"customHourCycle",void 0)
14670
+ const EU=MU.compose({baseName:"table-column-date-text",template:YH,styles:KH})
14667
14671
  Ei.getOrCreate().withPrefix("nimble").register(EU())
14668
- class AU{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""
14672
+ const AU=class extends wU{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:bU,styles:yU})
14673
+ Ei.getOrCreate().withPrefix("nimble").register(AU())
14674
+ class TU{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""
14669
14675
  const e=[],n=1e3,i=6e4,o=36e5,r=864e5,s=t/r
14670
14676
  let a=t
14671
14677
  const l=Math.floor(s)
@@ -14678,37 +14684,37 @@ if(a-=d*i,0!==d){const t=this.minutesFormatter.format(d)
14678
14684
  e.push(t)}const h=a/n,u=0===h?0:h%60
14679
14685
  if(t<1&&0!==h)return this.scientificSecondsFormatter.format(h)
14680
14686
  if(u>=5e-4||0===u&&0===e.length){const t=this.secondsFormatter.format(u)
14681
- e.push(t)}return e.join(", ")}}const TU=class extends oU{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:rU,styles:sU})
14682
- Ei.getOrCreate().withPrefix("nimble").register(TU())
14683
- class DU extends(gU(mU)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ia.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ia.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:Iz,validator:new jH([])}}updateColumnConfig(){const t={formatter:new AU(Ia.getValueFor(this)),placeholder:this.placeholder}
14684
- this.columnInternals.columnConfig=t}}const OU=DU.compose({baseName:"table-column-duration-text",template:YH,styles:KH})
14685
- Ei.getOrCreate().withPrefix("nimble").register(OU())
14686
- const RU=(t,e)=>{if("number"===e){const e=ut.fromView(t)
14687
+ e.push(t)}return e.join(", ")}}const DU=class extends oU{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:rU,styles:sU})
14688
+ Ei.getOrCreate().withPrefix("nimble").register(DU())
14689
+ class OU extends(gU(mU)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ia.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ia.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:Iz,validator:new jH([])}}updateColumnConfig(){const t={formatter:new TU(Ia.getValueFor(this)),placeholder:this.placeholder}
14690
+ this.columnInternals.columnConfig=t}}const RU=OU.compose({baseName:"table-column-duration-text",template:YH,styles:KH})
14691
+ Ei.getOrCreate().withPrefix("nimble").register(RU())
14692
+ const FU=(t,e)=>{if("number"===e){const e=ut.fromView(t)
14687
14693
  return null===e?void 0:e}return"boolean"===e?!1!==t&&"false"!==t&&(!0===t||"true"===t||void 0):t?.toString()??void 0}
14688
- class FU extends Bz{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof uy&&"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
14689
- return this.mappings.forEach(e=>{const n=RU(e.key,this.keyType)
14694
+ class LU extends Bz{constructor(){super(...arguments),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof uy&&"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
14695
+ return this.mappings.forEach(e=>{const n=FU(e.key,this.keyType)
14690
14696
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
14691
14697
  const i=this.createMappingConfig(e)
14692
14698
  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()
14693
14699
  for(const t of this.mappings){const e=C.getNotifier(t)
14694
- e.subscribe(this),this.mappingNotifiers.push(e)}}}t([k],FU.prototype,"mappings",void 0),t([ft({attribute:"field-name"})],FU.prototype,"fieldName",void 0),t([ft({attribute:"key-type"})],FU.prototype,"keyType",void 0)
14695
- const LU=It`
14700
+ e.subscribe(this),this.mappingNotifiers.push(e)}}}t([k],LU.prototype,"mappings",void 0),t([ft({attribute:"field-name"})],LU.prototype,"fieldName",void 0),t([ft({attribute:"key-type"})],LU.prototype,"keyType",void 0)
14701
+ const BU=It`
14696
14702
  ${KH}
14697
14703
 
14698
14704
  slot[name='mapping'] {
14699
14705
  display: none;
14700
14706
  }
14701
- `,BU=Q`${YH}<slot ${te("mappings")} name="mapping"></slot>`
14702
- class NU extends jH{constructor(t){super(t)}validate(t,e){this.untrackAll()
14707
+ `,NU=Q`${YH}<slot ${te("mappings")} name="mapping"></slot>`
14708
+ class PU extends jH{constructor(t){super(t)}validate(t,e){this.untrackAll()
14703
14709
  const n=t.map(t=>t.key)
14704
- this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some(t=>void 0!==t&&void 0===RU(t,e))
14705
- this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map(t=>RU(t,e)),i=new Set(n).size!==n.length
14710
+ this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some(t=>void 0!==t&&void 0===FU(t,e))
14711
+ this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map(t=>FU(t,e)),i=new Set(n).size!==n.length
14706
14712
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(t){const e=t.some(t=>void 0===t.key)
14707
- this.setConditionValue("missingKeyValue",e)}}const PU=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
14708
- class VU extends NU{constructor(){super(PU)}static isIconMappingElement(t){return t instanceof by}static isSupportedMappingElement(t){return t instanceof by||t instanceof wy||t instanceof Cy||t instanceof my}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(VU.isIconMappingElement).some(t=>void 0===t.resolvedIcon)
14709
- this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(VU.isSupportedMappingElement).some(t=>void 0===t.text)
14710
- this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(VU.isSupportedMappingElement)
14711
- this.setConditionValue("unsupportedMappingType",!e)}}const zU=It`
14713
+ this.setConditionValue("missingKeyValue",e)}}const VU=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue","unsupportedMappingType","invalidIconName","missingTextValue"]
14714
+ class zU extends PU{constructor(){super(VU)}static isIconMappingElement(t){return t instanceof by}static isSupportedMappingElement(t){return t instanceof by||t instanceof wy||t instanceof Cy||t instanceof my}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(zU.isIconMappingElement).some(t=>void 0===t.resolvedIcon)
14715
+ this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(zU.isSupportedMappingElement).some(t=>void 0===t.text)
14716
+ this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(zU.isSupportedMappingElement)
14717
+ this.setConditionValue("unsupportedMappingType",!e)}}const HU=It`
14712
14718
  ${Uo("inline-flex")}
14713
14719
 
14714
14720
  :host {
@@ -14730,7 +14736,7 @@ this.setConditionValue("unsupportedMappingType",!e)}}const zU=It`
14730
14736
  overflow: hidden;
14731
14737
  text-overflow: ellipsis;
14732
14738
  }
14733
- `,HU=Q`
14739
+ `,UU=Q`
14734
14740
  ${qt(t=>t.visualizationTemplate,Q`
14735
14741
  <span class="reserve-icon-size">
14736
14742
  ${t=>t.visualizationTemplate}
@@ -14741,8 +14747,8 @@ this.setConditionValue("unsupportedMappingType",!e)}}const zU=It`
14741
14747
  title="${t=>t.hasOverflow&&t.text?t.text:null}"
14742
14748
  class="text"
14743
14749
  >${t=>t.text}</span>
14744
- `,UU={default:void 0}
14745
- class qU{constructor(t){this.text=t}}class jU extends qU{constructor(t,e,n,i){var o
14750
+ `,qU={default:void 0}
14751
+ class jU{constructor(t){this.text=t}}class WU extends jU{constructor(t,e,n,i){var o
14746
14752
  super(n),this.severity=e,this.textHidden=i,this.iconTemplate=Q`
14747
14753
  <${o=t}
14748
14754
  title="${t=>t.textHidden?t.text:""}"
@@ -14752,7 +14758,7 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=Q`
14752
14758
  severity="${t=>t.severity}"
14753
14759
  >
14754
14760
  </${o}>
14755
- `}}const WU=Q`
14761
+ `}}const GU=Q`
14756
14762
  <${LP}
14757
14763
  title="${t=>t.textHidden?t.text:""}"
14758
14764
  aria-label="${t=>t.text}"
@@ -14760,12 +14766,12 @@ super(n),this.severity=e,this.textHidden=i,this.iconTemplate=Q`
14760
14766
  >
14761
14767
  </${LP}>
14762
14768
  `
14763
- class GU extends qU{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=WU}}class ZU extends qU{}class KU extends qU{}class YU extends Ez{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
14769
+ class ZU extends jU{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=GU}}class KU extends jU{}class YU extends jU{}class XU extends Ez{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.textHidden=!1}columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig)return
14764
14770
  const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
14765
- e instanceof jU?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof GU?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):(e instanceof ZU||e instanceof KU)&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=UU.default}}t([k],YU.prototype,"hasOverflow",void 0),t([k],YU.prototype,"text",void 0),t([k],YU.prototype,"severity",void 0),t([k],YU.prototype,"visualizationTemplate",void 0)
14766
- const XU=YU.compose({baseName:"table-column-mapping-group-header-view",template:HU,styles:zU})
14767
- Ei.getOrCreate().withPrefix("nimble").register(XU())
14768
- const JU=It`
14771
+ e instanceof WU?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof ZU?(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate):(e instanceof KU||e instanceof YU)&&(this.text=e.text??"")}resetState(){this.text="",this.visualizationTemplate=void 0,this.severity=qU.default}}t([k],XU.prototype,"hasOverflow",void 0),t([k],XU.prototype,"text",void 0),t([k],XU.prototype,"severity",void 0),t([k],XU.prototype,"visualizationTemplate",void 0)
14772
+ const JU=XU.compose({baseName:"table-column-mapping-group-header-view",template:UU,styles:HU})
14773
+ Ei.getOrCreate().withPrefix("nimble").register(JU())
14774
+ const QU=It`
14769
14775
  ${Uo("inline-flex")}
14770
14776
 
14771
14777
  :host {
@@ -14787,7 +14793,7 @@ const JU=It`
14787
14793
  overflow: hidden;
14788
14794
  text-overflow: ellipsis;
14789
14795
  }
14790
- `,QU=Q`
14796
+ `,tq=Q`
14791
14797
  ${qt(t=>t.visualizationTemplate,Q`
14792
14798
  <span class="reserve-icon-size">
14793
14799
  ${t=>t.visualizationTemplate}
@@ -14803,26 +14809,26 @@ const JU=It`
14803
14809
  </span>
14804
14810
  `)}
14805
14811
  `
14806
- class tq extends Tz{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
14812
+ class eq extends Tz{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.resetState(),!this.columnConfig||!this.cellRecord)return
14807
14813
  const t=this.cellRecord.value
14808
14814
  if(null==t)return
14809
14815
  const e=this.columnConfig.mappingConfigs.get(t)
14810
- e instanceof jU?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof GU?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof ZU?(this.text=e.text,this.textHidden=!1):e instanceof KU&&(this.text=e.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=UU.default}}t([k],tq.prototype,"severity",void 0),t([k],tq.prototype,"text",void 0),t([k],tq.prototype,"visualizationTemplate",void 0),t([k],tq.prototype,"textHidden",void 0),t([k],tq.prototype,"hasOverflow",void 0)
14811
- const eq=tq.compose({baseName:"table-column-mapping-cell-view",template:QU,styles:JU})
14812
- Ei.getOrCreate().withPrefix("nimble").register(eq())
14813
- const nq="icon-size"
14814
- class iq extends(JH(XH(function(t){class e extends t{pinLocationChanged(){this.columnInternals.pinLocation=this.pinLocation}}return ft({attribute:"pin-location"})(e.prototype,"pinLocation"),e}(cU(FU))))){minPixelWidthChanged(){this.widthMode!==nq&&(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:Iz,validator:new VU}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof by){if(!t.resolvedIcon)throw Error("Unresolved icon")
14815
- return new jU(t.resolvedIcon,t.severity,t.text,t.textHidden)}if(t instanceof wy)return new GU(t.text,t.textHidden)
14816
- if(t instanceof Cy)return new ZU(t.text)
14817
- if(t instanceof my)return new KU(t.text)
14818
- throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===nq?(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:117}}t([ft({attribute:"width-mode"})],iq.prototype,"widthMode",void 0)
14819
- const oq=iq.compose({baseName:"table-column-mapping",template:BU,styles:LU})
14820
- Ei.getOrCreate().withPrefix("nimble").register(oq())
14821
- const rq=Q`
14816
+ e instanceof WU?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof ZU?(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden):e instanceof KU?(this.text=e.text,this.textHidden=!1):e instanceof YU&&(this.text=e.text,this.textHidden=!0)}resetState(){this.text=void 0,this.textHidden=!1,this.visualizationTemplate=void 0,this.severity=qU.default}}t([k],eq.prototype,"severity",void 0),t([k],eq.prototype,"text",void 0),t([k],eq.prototype,"visualizationTemplate",void 0),t([k],eq.prototype,"textHidden",void 0),t([k],eq.prototype,"hasOverflow",void 0)
14817
+ const nq=eq.compose({baseName:"table-column-mapping-cell-view",template:tq,styles:QU})
14818
+ Ei.getOrCreate().withPrefix("nimble").register(nq())
14819
+ const iq="icon-size"
14820
+ class oq extends(JH(XH(function(t){class e extends t{pinLocationChanged(){this.columnInternals.pinLocation=this.pinLocation}}return ft({attribute:"pin-location"})(e.prototype,"pinLocation"),e}(cU(LU))))){minPixelWidthChanged(){this.widthMode!==iq&&(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:Iz,validator:new zU}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof by){if(!t.resolvedIcon)throw Error("Unresolved icon")
14821
+ return new WU(t.resolvedIcon,t.severity,t.text,t.textHidden)}if(t instanceof wy)return new ZU(t.text,t.textHidden)
14822
+ if(t instanceof Cy)return new KU(t.text)
14823
+ if(t instanceof my)return new YU(t.text)
14824
+ throw new Error("Unsupported mapping")}widthModeChanged(){this.widthMode===iq?(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:117}}t([ft({attribute:"width-mode"})],oq.prototype,"widthMode",void 0)
14825
+ const rq=oq.compose({baseName:"table-column-mapping",template:NU,styles:BU})
14826
+ Ei.getOrCreate().withPrefix("nimble").register(rq())
14827
+ const sq=Q`
14822
14828
  <template @delegated-event="${(t,e)=>t.onDelegatedEvent(e.event)}"
14823
14829
  >${YH}</template
14824
14830
  >
14825
- `,sq="menu-button-menu",aq=Q`
14831
+ `,aq="menu-button-menu",lq=Q`
14826
14832
  ${qt(t=>t.showMenuButton,Q`
14827
14833
  <${Dy}
14828
14834
  ${Vt("menuButton")}
@@ -14836,10 +14842,10 @@ const rq=Q`
14836
14842
  <span ${Vt("valueSpan")} class="value-label">${t=>t.cellRecord.value}</span>
14837
14843
  <${Tv} slot="end"></${Tv}>
14838
14844
 
14839
- <slot name="${sq}" slot="menu"></slot>
14845
+ <slot name="${aq}" slot="menu"></slot>
14840
14846
  </${Dy}>
14841
14847
  `)}
14842
- `,lq=It`
14848
+ `,cq=It`
14843
14849
  :host {
14844
14850
  align-self: center;
14845
14851
  width: 100%;
@@ -14856,18 +14862,18 @@ const rq=Q`
14856
14862
  white-space: nowrap;
14857
14863
  }
14858
14864
  `
14859
- class cq extends Tz{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
14860
- if(e&&t.detail.newState){const t={slots:[{name:e,slot:sq}]}
14861
- 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([k],cq.prototype,"hasOverflow",void 0),t([S],cq.prototype,"showMenuButton",null)
14862
- const dq=cq.compose({baseName:"table-column-menu-button-cell-view",template:aq,styles:lq})
14863
- Ei.getOrCreate().withPrefix("nimble").register(dq())
14864
- class hq extends(XH(Bz)){onDelegatedEvent(t){t.stopImmediatePropagation()
14865
+ class dq extends Tz{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
14866
+ if(e&&t.detail.newState){const t={slots:[{name:e,slot:aq}]}
14867
+ 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([k],dq.prototype,"hasOverflow",void 0),t([S],dq.prototype,"showMenuButton",null)
14868
+ const hq=dq.compose({baseName:"table-column-menu-button-cell-view",template:lq,styles:cq})
14869
+ Ei.getOrCreate().withPrefix("nimble").register(hq())
14870
+ class uq extends(XH(Bz)){onDelegatedEvent(t){t.stopImmediatePropagation()
14865
14871
  const e=t,n=e.detail.originalEvent
14866
14872
  if("beforetoggle"===n.type||"toggle"===n.type){const t=`menu-button-column-${n.type}`,i={...n.detail,recordId:e.detail.recordId}
14867
- this.$emit(t,i)}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-menu-button-cell-view",delegatedEvents:["beforetoggle","toggle"],slotNames:[sq],validator:new jH([])}}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"})],hq.prototype,"fieldName",void 0),t([ft({attribute:"menu-slot"})],hq.prototype,"menuSlot",void 0)
14868
- const uq=hq.compose({baseName:"table-column-menu-button",template:rq,styles:KH})
14869
- Ei.getOrCreate().withPrefix("nimble").register(uq())
14870
- const pq=Q`<span
14873
+ this.$emit(t,i)}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-menu-button-cell-view",delegatedEvents:["beforetoggle","toggle"],slotNames:[aq],validator:new jH([])}}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"})],uq.prototype,"fieldName",void 0),t([ft({attribute:"menu-slot"})],uq.prototype,"menuSlot",void 0)
14874
+ const pq=uq.compose({baseName:"table-column-menu-button",template:sq,styles:KH})
14875
+ Ei.getOrCreate().withPrefix("nimble").register(pq())
14876
+ const fq=Q`<span
14871
14877
  ${fh("hasOverflow")}
14872
14878
  class="header-content"
14873
14879
  title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
@@ -14875,13 +14881,13 @@ const pq=Q`<span
14875
14881
  <slot ${Vt("contentSlot")}></slot>
14876
14882
  <slot ${te({property:"unitElements",filter:Xt()})} name="unit"></slot>
14877
14883
  </span>`
14878
- const fq=class extends oU{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:rU,styles:sU})
14879
- Ei.getOrCreate().withPrefix("nimble").register(fq())
14880
- const mq=class extends xU{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??vz}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:yU,styles:wU})
14884
+ const mq=class extends oU{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:rU,styles:sU})
14881
14885
  Ei.getOrCreate().withPrefix("nimble").register(mq())
14882
- const gq={default:void 0,decimal:"decimal"},vq="left",bq="right"
14883
- class yq{format(t){if("number"!=typeof t)return""
14884
- try{return this.tryFormat(t)}catch{return""}}}class wq{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class xq extends wq{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new xq(e,t)}format(t){return this.formatter.format(t)}}class Cq{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class kq{constructor(t){this.supportedScaledUnits=t
14886
+ const gq=class extends wU{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??vz}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:bU,styles:yU})
14887
+ Ei.getOrCreate().withPrefix("nimble").register(gq())
14888
+ const vq={default:void 0,decimal:"decimal"},bq="left",yq="right"
14889
+ class wq{format(t){if("number"!=typeof t)return""
14890
+ try{return this.tryFormat(t)}catch{return""}}}class xq{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class Cq extends xq{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new Cq(e,t)}format(t){return this.formatter.format(t)}}class kq{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class Sq{constructor(t){this.supportedScaledUnits=t
14885
14891
  const e=t.every((t,e,n)=>0===e||n[e-1].scaleFactor<t.scaleFactor)
14886
14892
  if(!e)throw new Error("Supported scaled units must have unique and ordered scale factors")
14887
14893
  const n=t.find(t=>t.isBase())
@@ -14890,52 +14896,52 @@ this.supportedScaledUnits=t,this.baseScaledUnit=n}scaleNumber(t){const e=Math.ab
14890
14896
  if(1===this.supportedScaledUnits.length||0===e||e===1/0||Number.isNaN(e))return{scaledValue:t,scaledUnit:this.baseScaledUnit}
14891
14897
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
14892
14898
  if(e/i.scaleFactor>=1)return{scaledValue:t/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
14893
- return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const Sq=new class extends kq{constructor(){super([new Cq(1,xq.createFactory({}))])}},$q="negative"
14894
- class _q extends yq{constructor(t,{unitScale:e=Sq}={unitScale:Sq}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:_q.maximumDigits,maximumFractionDigits:_q.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:$q},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:_q.maximumDigits,notation:"scientific",signDisplay:$q}
14899
+ return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const $q=new class extends Sq{constructor(){super([new kq(1,Cq.createFactory({}))])}},_q="negative"
14900
+ class Iq extends wq{constructor(t,{unitScale:e=$q}={unitScale:$q}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:Iq.maximumDigits,maximumFractionDigits:Iq.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:_q},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:Iq.maximumDigits,notation:"scientific",signDisplay:_q}
14895
14901
  for(const n of e.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
14896
14902
  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)
14897
- return 0!==i&&(i>=_q.exponentialUpperBound||i<_q.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}_q.maximumDigits=6,_q.exponentialLowerBound=995e-6,_q.exponentialUpperBound=999999.5
14898
- class Iq extends yq{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=Sq}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:Sq}){super(),this.scaledUnitFormatters=new Map
14903
+ return 0!==i&&(i>=Iq.exponentialUpperBound||i<Iq.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}Iq.maximumDigits=6,Iq.exponentialLowerBound=995e-6,Iq.exponentialUpperBound=999999.5
14904
+ class Mq extends wq{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=$q}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:$q}){super(),this.scaledUnitFormatters=new Map
14899
14905
  const o={maximumFractionDigits:n,minimumFractionDigits:e,signDisplay:"negative"}
14900
14906
  for(const e of i.supportedScaledUnits)this.scaledUnitFormatters.set(e.scaleFactor,e.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:o}))
14901
14907
  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)
14902
- return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class Mq extends yq{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)
14908
+ return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class Eq extends wq{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)
14903
14909
  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:o,unitScale:r}=e
14904
- return n===gq.default?new _q(t,{unitScale:r}):new Iq(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(t){if(t?.numberTextFormat===gq.default)return{numberTextFormat:gq.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??Sq}
14910
+ return n===vq.default?new Iq(t,{unitScale:r}):new Mq(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(t){if(t?.numberTextFormat===vq.default)return{numberTextFormat:vq.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??$q}
14905
14911
  const e="number"==typeof t.decimalDigits,n="number"==typeof t.decimalMaximumDigits
14906
14912
  if(e&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
14907
- return e||n?{numberTextFormat:gq.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??Sq}:{numberTextFormat:gq.decimal,decimalDigits:Mq.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??Sq}}}Mq.defaultDecimalDigits=2
14908
- const Eq=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
14909
- class Aq extends jH{constructor(){super(Eq)}validateDecimalDigits(t,e){const n=!!(t===gq.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
14910
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===gq.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
14911
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===gq.decimal)&&("number"==typeof e&&"number"==typeof n)
14913
+ return e||n?{numberTextFormat:vq.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??$q}:{numberTextFormat:vq.decimal,decimalDigits:Eq.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??$q}}}Eq.defaultDecimalDigits=2
14914
+ const Aq=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
14915
+ class Tq extends jH{constructor(){super(Aq)}validateDecimalDigits(t,e){const n=!!(t===vq.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
14916
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===vq.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
14917
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===vq.decimal)&&("number"==typeof e&&"number"==typeof n)
14912
14918
  this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(t){const e=t.length>1
14913
- this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class Tq extends qe{}t([k],Tq.prototype,"resolvedUnitScale",void 0)
14914
- class Dq extends(gU(mU)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ia.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ia.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:Iz,validator:new Aq}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=C.getNotifier(this.unit)
14915
- 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 LO(this.unitElements),this.unit=this.unitElements.find(t=>t instanceof Tq)),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.columnInternals.validator
14919
+ this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class Dq extends qe{}t([k],Dq.prototype,"resolvedUnitScale",void 0)
14920
+ class Oq extends(gU(mU)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),Ia.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),Ia.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:Iz,validator:new Tq}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=C.getNotifier(this.unit)
14921
+ 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 LO(this.unitElements),this.unit=this.unitElements.find(t=>t instanceof Dq)),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.columnInternals.validator
14916
14922
  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}
14917
14923
  this.columnInternals.headerAlignment=t.alignment,this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}createFormatter(){const t=this.unit?.resolvedUnitScale
14918
- return new Mq(Ia.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===vq?vz:this.alignment===bq?bz:this.format!==gq.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?vz:bz}}t([ft],Dq.prototype,"format",void 0),t([ft],Dq.prototype,"alignment",void 0),t([ft({attribute:"decimal-digits",converter:ut})],Dq.prototype,"decimalDigits",void 0),t([ft({attribute:"decimal-maximum-digits",converter:ut})],Dq.prototype,"decimalMaximumDigits",void 0),t([k],Dq.prototype,"unitElements",void 0),t([k],Dq.prototype,"unit",void 0)
14919
- const Oq=Dq.compose({baseName:"table-column-number-text",template:pq,styles:KH})
14920
- Ei.getOrCreate().withPrefix("nimble").register(Oq())
14921
- const Rq=class extends xU{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:yU,styles:wU})
14924
+ return new Eq(Ia.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===bq?vz:this.alignment===yq?bz:this.format!==vq.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?vz:bz}}t([ft],Oq.prototype,"format",void 0),t([ft],Oq.prototype,"alignment",void 0),t([ft({attribute:"decimal-digits",converter:ut})],Oq.prototype,"decimalDigits",void 0),t([ft({attribute:"decimal-maximum-digits",converter:ut})],Oq.prototype,"decimalMaximumDigits",void 0),t([k],Oq.prototype,"unitElements",void 0),t([k],Oq.prototype,"unit",void 0)
14925
+ const Rq=Oq.compose({baseName:"table-column-number-text",template:fq,styles:KH})
14922
14926
  Ei.getOrCreate().withPrefix("nimble").register(Rq())
14923
- const Fq=["invalidCustomSortWithGrouping"]
14924
- class Lq extends jH{constructor(){super(Fq)}}class Bq extends(dU(gU(mU))){constructor(){super(...arguments),this.defaultSortOperation=Mz}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:lU,delegatedEvents:[],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new Lq}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.updateColumnInternalsSortConfiguration()}updateColumnInternalsSortConfiguration(){this.columnInternals.operandDataRecordFieldName=this.getResolvedOperandDataRecordFieldName(this.fieldName),this.columnInternals.sortOperation=this.getResolvedSortOperation(this.defaultSortOperation)}}const Nq=Bq.compose({baseName:"table-column-text",template:YH,styles:KH})
14925
- Ei.getOrCreate().withPrefix("nimble").register(Nq())
14926
- const Pq=It`
14927
+ const Fq=class extends wU{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:bU,styles:yU})
14928
+ Ei.getOrCreate().withPrefix("nimble").register(Fq())
14929
+ const Lq=["invalidCustomSortWithGrouping"]
14930
+ class Bq extends jH{constructor(){super(Lq)}}class Nq extends(dU(gU(mU))){constructor(){super(...arguments),this.defaultSortOperation=Mz}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}handleSortConfigurationChange(){this.updateColumnInternalsSortConfiguration()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:lU,delegatedEvents:[],sortOperation:this.getResolvedSortOperation(this.defaultSortOperation),validator:new Bq}}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.updateColumnInternalsSortConfiguration()}updateColumnInternalsSortConfiguration(){this.columnInternals.operandDataRecordFieldName=this.getResolvedOperandDataRecordFieldName(this.fieldName),this.columnInternals.sortOperation=this.getResolvedSortOperation(this.defaultSortOperation)}}const Pq=Nq.compose({baseName:"table-column-text",template:YH,styles:KH})
14931
+ Ei.getOrCreate().withPrefix("nimble").register(Pq())
14932
+ const Vq=It`
14927
14933
  ${Dg}
14928
14934
 
14929
14935
  .tabpanel {
14930
14936
  overflow: auto;
14931
14937
  }
14932
14938
  `
14933
- class Vq extends mo{constructor(){super(),this.showScrollButtons=!1,this.tabSlotName="tab",this.activeindicator=!1,this.tabListResizeObserver=new ResizeObserver(t=>{let e=t[0]?.contentRect.width
14939
+ class zq extends mo{constructor(){super(),this.showScrollButtons=!1,this.tabSlotName="tab",this.activeindicator=!1,this.tabListResizeObserver=new ResizeObserver(t=>{let e=t[0]?.contentRect.width
14934
14940
  if(void 0!==e){const t=this.leftScrollButton?.clientWidth??0
14935
- e=Math.ceil(e),this.showScrollButtons&&(e+=2*t),this.showScrollButtons=e<this.tablist.scrollWidth}})}connectedCallback(){super.connectedCallback(),this.tabListResizeObserver.observe(this.tablist)}disconnectedCallback(){super.disconnectedCallback(),this.tabListResizeObserver.disconnect()}activeidChanged(t,e){super.activeidChanged(t,e),this.activetab?.scrollIntoView({block:"nearest",inline:"nearest"})}onScrollLeftClick(){this.tablist.scrollBy({left:-this.tablist.clientWidth,behavior:"smooth"})}onScrollRightClick(){this.tablist.scrollBy({left:this.tablist.clientWidth,behavior:"smooth"})}}t([k],Vq.prototype,"showScrollButtons",void 0)
14936
- const zq=Vq.compose({baseName:"tabs",baseClass:mo,template:Pg,styles:Pq})
14937
- Ei.getOrCreate().withPrefix("nimble").register(zq())
14938
- const Hq=It`
14941
+ e=Math.ceil(e),this.showScrollButtons&&(e+=2*t),this.showScrollButtons=e<this.tablist.scrollWidth}})}connectedCallback(){super.connectedCallback(),this.tabListResizeObserver.observe(this.tablist)}disconnectedCallback(){super.disconnectedCallback(),this.tabListResizeObserver.disconnect()}activeidChanged(t,e){super.activeidChanged(t,e),this.activetab?.scrollIntoView({block:"nearest",inline:"nearest"})}onScrollLeftClick(){this.tablist.scrollBy({left:-this.tablist.clientWidth,behavior:"smooth"})}onScrollRightClick(){this.tablist.scrollBy({left:this.tablist.clientWidth,behavior:"smooth"})}}t([k],zq.prototype,"showScrollButtons",void 0)
14942
+ const Hq=zq.compose({baseName:"tabs",baseClass:mo,template:Pg,styles:Vq})
14943
+ Ei.getOrCreate().withPrefix("nimble").register(Hq())
14944
+ const Uq=It`
14939
14945
  ${Uo("flex")}
14940
14946
 
14941
14947
  :host {
@@ -14966,8 +14972,8 @@ const Hq=It`
14966
14972
  display: flex;
14967
14973
  }
14968
14974
  `
14969
- class Uq extends qe{constructor(){super(...arguments),this.defaultSlottedElements=[]}}t([k],Uq.prototype,"defaultSlottedElements",void 0)
14970
- const qq=Uq.compose({baseName:"tabs-toolbar",template:(t,e)=>Q`
14975
+ class qq extends qe{constructor(){super(...arguments),this.defaultSlottedElements=[]}}t([k],qq.prototype,"defaultSlottedElements",void 0)
14976
+ const jq=qq.compose({baseName:"tabs-toolbar",template:(t,e)=>Q`
14971
14977
  <template slot="end">
14972
14978
  ${qt(t=>t.defaultSlottedElements.length>0,Q`
14973
14979
  <div class="separator"></div>
@@ -14979,9 +14985,9 @@ const qq=Uq.compose({baseName:"tabs-toolbar",template:(t,e)=>Q`
14979
14985
  </slot>
14980
14986
  ${oe(0,e)}
14981
14987
  </template>
14982
- `,styles:Hq})
14983
- Ei.getOrCreate().withPrefix("nimble").register(qq()),Ge(Uq,ie)
14984
- const jq="outline",Wq="block",Gq=It`
14988
+ `,styles:Uq})
14989
+ Ei.getOrCreate().withPrefix("nimble").register(jq()),Ge(qq,ie)
14990
+ const Wq="outline",Gq="block",Zq=It`
14985
14991
  ${Uo("inline-flex")}
14986
14992
  ${fv}
14987
14993
  ${Nv}
@@ -15140,12 +15146,12 @@ const jq="outline",Wq="block",Gq=It`
15140
15146
  top: ${Sc};
15141
15147
  right: var(--ni-private-scrollbar-width);
15142
15148
  }
15143
- `.withBehaviors(Yd(jq,It`
15149
+ `.withBehaviors(Yd(Wq,It`
15144
15150
  .control {
15145
15151
  border-color: rgba(${ic}, 0.3);
15146
15152
  background-color: transparent;
15147
15153
  }
15148
- `),Yd(Wq,It`
15154
+ `),Yd(Gq,It`
15149
15155
  .control {
15150
15156
  background-color: rgba(${ic}, 0.1);
15151
15157
  }
@@ -15167,7 +15173,7 @@ const jq="outline",Wq="block",Gq=It`
15167
15173
  :host([error-visible][disabled]) .control {
15168
15174
  border-bottom-color: ${oc};
15169
15175
  }
15170
- `)),Zq=Hv(Q`
15176
+ `)),Kq=Hv(Q`
15171
15177
  <label
15172
15178
  part="label"
15173
15179
  for="control"
@@ -15176,9 +15182,9 @@ const jq="outline",Wq="block",Gq=It`
15176
15182
  <slot ${te("defaultSlottedNodes")}></slot>
15177
15183
  </label>
15178
15184
  `)
15179
- class Kq extends(vv(Wv(yo))){constructor(){super(...arguments),this.appearance=jq,this.appearanceReadOnly=!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,y.queueUpdate(()=>this.updateScrollbarWidth())))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([ft],Kq.prototype,"appearance",void 0),t([ft({attribute:"appearance-readonly",mode:"boolean"})],Kq.prototype,"appearanceReadOnly",void 0),t([k],Kq.prototype,"scrollbarWidth",void 0)
15180
- const Yq=Kq.compose({baseName:"text-area",baseClass:yo,template:()=>Q`
15181
- ${Zq}
15185
+ class Yq extends(vv(Wv(yo))){constructor(){super(...arguments),this.appearance=Wq,this.appearanceReadOnly=!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,y.queueUpdate(()=>this.updateScrollbarWidth())))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}t([ft],Yq.prototype,"appearance",void 0),t([ft({attribute:"appearance-readonly",mode:"boolean"})],Yq.prototype,"appearanceReadOnly",void 0),t([k],Yq.prototype,"scrollbarWidth",void 0)
15186
+ const Xq=Yq.compose({baseName:"text-area",baseClass:yo,template:()=>Q`
15187
+ ${Kq}
15182
15188
  <div class="container">
15183
15189
  <textarea
15184
15190
  part="control"
@@ -15229,9 +15235,9 @@ const Yq=Kq.compose({baseName:"text-area",baseClass:yo,template:()=>Q`
15229
15235
  ></${Gm}>
15230
15236
  ${gv}
15231
15237
  </div>
15232
- `,styles:Gq,shadowOptions:{delegatesFocus:!0}})
15233
- Ei.getOrCreate().withPrefix("nimble").register(Yq())
15234
- const Xq="underline",Jq="outline",Qq="block",tj="frameless",ej=It`
15238
+ `,styles:Zq,shadowOptions:{delegatesFocus:!0}})
15239
+ Ei.getOrCreate().withPrefix("nimble").register(Xq())
15240
+ const Jq="underline",Qq="outline",tj="block",ej="frameless",nj=It`
15235
15241
  ${Uo("inline-block")}
15236
15242
  ${fv}
15237
15243
  ${Nv}
@@ -15434,12 +15440,12 @@ const Xq="underline",Jq="outline",Qq="block",tj="frameless",ej=It`
15434
15440
  slot[name='actions']::slotted(*) {
15435
15441
  ${xc.cssCustomProperty}: 24px;
15436
15442
  }
15437
- `.withBehaviors(Yd(Xq,It`
15443
+ `.withBehaviors(Yd(Jq,It`
15438
15444
  .root {
15439
15445
  border-bottom-width: ${Ic};
15440
15446
  padding-bottom: 0;
15441
15447
  }
15442
- `),Yd(Qq,It`
15448
+ `),Yd(tj,It`
15443
15449
  .root {
15444
15450
  background-color: rgba(${ic}, 0.1);
15445
15451
  }
@@ -15467,13 +15473,13 @@ const Xq="underline",Jq="outline",Qq="block",tj="frameless",ej=It`
15467
15473
  :host([disabled]) .root {
15468
15474
  background-color: rgba(${ic}, 0.07);
15469
15475
  }
15470
- `),Yd(Jq,It`
15476
+ `),Yd(Qq,It`
15471
15477
  .root {
15472
15478
  border-width: ${Ic};
15473
15479
  padding: 0;
15474
15480
  padding-left: ${kc};
15475
15481
  }
15476
- `),Yd(tj,It`
15482
+ `),Yd(ej,It`
15477
15483
  .control {
15478
15484
  padding-left: ${Ic};
15479
15485
  padding-right: ${Ic};
@@ -15490,7 +15496,7 @@ const Xq="underline",Jq="outline",Qq="block",tj="frameless",ej=It`
15490
15496
  .control::-ms-reveal {
15491
15497
  filter: invert(100%);
15492
15498
  }
15493
- `)),nj=Hv(Q`<label
15499
+ `)),ij=Hv(Q`<label
15494
15500
  part="label"
15495
15501
  for="control"
15496
15502
  class="${t=>t.defaultSlottedNodes?.length>0?"label":"label label__hidden"}"
@@ -15499,14 +15505,14 @@ const Xq="underline",Jq="outline",Qq="block",tj="frameless",ej=It`
15499
15505
  ${te({property:"defaultSlottedNodes",filter:function(t,e,n){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}})}
15500
15506
  ></slot>
15501
15507
  </label>`)
15502
- class ij extends(vv(Wv(Ki))){constructor(){super(...arguments),this.appearance=Xq,this.fullBleed=!1,this.appearanceReadOnly=!1}}t([ft],ij.prototype,"appearance",void 0),t([ft],ij.prototype,"autocomplete",void 0),t([ft({attribute:"full-bleed",mode:"boolean"})],ij.prototype,"fullBleed",void 0),t([ft({attribute:"appearance-readonly",mode:"boolean"})],ij.prototype,"appearanceReadOnly",void 0)
15503
- const oj=ij.compose({baseName:"text-field",baseClass:Ki,template:(t,e)=>Q`
15508
+ class oj extends(vv(Wv(Ki))){constructor(){super(...arguments),this.appearance=Jq,this.fullBleed=!1,this.appearanceReadOnly=!1}}t([ft],oj.prototype,"appearance",void 0),t([ft],oj.prototype,"autocomplete",void 0),t([ft({attribute:"full-bleed",mode:"boolean"})],oj.prototype,"fullBleed",void 0),t([ft({attribute:"appearance-readonly",mode:"boolean"})],oj.prototype,"appearanceReadOnly",void 0)
15509
+ const rj=oj.compose({baseName:"text-field",baseClass:Ki,template:(t,e)=>Q`
15504
15510
  <template
15505
15511
  class="
15506
15512
  ${t=>t.readOnly?"readonly":""}
15507
15513
  "
15508
15514
  >
15509
- ${nj}
15515
+ ${ij}
15510
15516
  <div class="root" part="root">
15511
15517
  ${re(0,e)}
15512
15518
  <input
@@ -15554,7 +15560,7 @@ const oj=ij.compose({baseName:"text-field",baseClass:Ki,template:(t,e)=>Q`
15554
15560
  ${oe(0,e)}
15555
15561
  </div>
15556
15562
  </template>
15557
- `,styles:ej,shadowOptions:{delegatesFocus:!0},end:Q`
15563
+ `,styles:nj,shadowOptions:{delegatesFocus:!0},end:Q`
15558
15564
  <${Gm}
15559
15565
  severity="error"
15560
15566
  class="error-icon"
@@ -15564,8 +15570,8 @@ const oj=ij.compose({baseName:"text-field",baseClass:Ki,template:(t,e)=>Q`
15564
15570
  </span>
15565
15571
  ${gv}
15566
15572
  `})
15567
- Ei.getOrCreate().withPrefix("nimble").register(oj())
15568
- const rj=It`
15573
+ Ei.getOrCreate().withPrefix("nimble").register(rj())
15574
+ const sj=It`
15569
15575
  ${Uo("inline-flex")}
15570
15576
 
15571
15577
  :host {
@@ -15649,7 +15655,7 @@ const rj=It`
15649
15655
  .status-icon {
15650
15656
  opacity: 0.6;
15651
15657
  }
15652
- `)),sj=Q`
15658
+ `)),aj=Q`
15653
15659
  ${qt(t=>t.tooltipVisible,Q`
15654
15660
  <${Kg}
15655
15661
  class="anchored-region"
@@ -15682,11 +15688,11 @@ const rj=It`
15682
15688
  </${Kg}>
15683
15689
  `)}
15684
15690
  `
15685
- class aj extends Bo{constructor(){super(...arguments),this.iconVisible=!1}}t([ft],aj.prototype,"severity",void 0),t([ft({attribute:"icon-visible",mode:"boolean"})],aj.prototype,"iconVisible",void 0)
15686
- const lj=aj.compose({baseName:"tooltip",baseClass:Bo,template:sj,styles:rj})
15687
- Ei.getOrCreate().withPrefix("nimble").register(lj())
15688
- const cj="group-selected",dj="all",hj="leaves-only",uj="none"
15689
- class pj{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 fj=It`
15691
+ class lj extends Bo{constructor(){super(...arguments),this.iconVisible=!1}}t([ft],lj.prototype,"severity",void 0),t([ft({attribute:"icon-visible",mode:"boolean"})],lj.prototype,"iconVisible",void 0)
15692
+ const cj=lj.compose({baseName:"tooltip",baseClass:Bo,template:aj,styles:sj})
15693
+ Ei.getOrCreate().withPrefix("nimble").register(cj())
15694
+ const dj="group-selected",hj="all",uj="leaves-only",pj="none"
15695
+ class fj{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 mj=It`
15690
15696
  ${Uo("block")}
15691
15697
 
15692
15698
  :host {
@@ -15707,7 +15713,7 @@ class pj{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
15707
15713
  }
15708
15714
 
15709
15715
  ${""}
15710
- :host([${cj}])::after {
15716
+ :host([${dj}])::after {
15711
15717
  background: ${cc};
15712
15718
  border-radius: 0px;
15713
15719
  content: '';
@@ -15728,7 +15734,7 @@ class pj{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
15728
15734
  background: ${ec};
15729
15735
  }
15730
15736
 
15731
- :host([${cj}]) .positioning-region:hover {
15737
+ :host([${dj}]) .positioning-region:hover {
15732
15738
  background: ${tc};
15733
15739
  }
15734
15740
 
@@ -15834,7 +15840,7 @@ class pj{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
15834
15840
  display: block;
15835
15841
  }
15836
15842
  `.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)
15837
- e&&Ma.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new pj(this.ltr,this.rtl,t),n=Ma.getValueFor(t)
15843
+ e&&Ma.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new fj(this.ltr,this.rtl,t),n=Ma.getValueFor(t)
15838
15844
  Ma.subscribe(e),e.attach(n),this.cache.set(t,e)}}(It`
15839
15845
  .expand-collapse-button {
15840
15846
  left: var(
@@ -15866,8 +15872,8 @@ Ma.subscribe(e),e.attach(n),this.cache.set(t,e)}}(It`
15866
15872
  transform: rotate(135deg);
15867
15873
  }
15868
15874
  `))
15869
- class mj extends Po{constructor(){super(...arguments),this.groupSelected=!1}}t([ft({attribute:"group-selected",mode:"boolean"})],mj.prototype,"groupSelected",void 0)
15870
- const gj=mj.compose({baseName:"tree-item",baseClass:Po,template:(t,e)=>Q`
15875
+ class gj extends Po{constructor(){super(...arguments),this.groupSelected=!1}}t([ft({attribute:"group-selected",mode:"boolean"})],gj.prototype,"groupSelected",void 0)
15876
+ const vj=gj.compose({baseName:"tree-item",baseClass:Po,template:(t,e)=>Q`
15871
15877
  <template
15872
15878
  role="treeitem"
15873
15879
  slot="${t=>t.isNestedItem()?"item":void 0}"
@@ -15907,9 +15913,9 @@ const gj=mj.compose({baseName:"tree-item",baseClass:Po,template:(t,e)=>Q`
15907
15913
  </div>
15908
15914
  `)}
15909
15915
  </template>
15910
- `,styles:fj,expandCollapseGlyph:Ih.data})
15911
- Ei.getOrCreate().withPrefix("nimble").register(gj())
15912
- const vj=It`
15916
+ `,styles:mj,expandCollapseGlyph:Ih.data})
15917
+ Ei.getOrCreate().withPrefix("nimble").register(vj())
15918
+ const bj=It`
15913
15919
  ${Uo("flex")}
15914
15920
 
15915
15921
  :host {
@@ -15921,7 +15927,7 @@ const vj=It`
15921
15927
  :host(${qo}) {
15922
15928
  outline: none;
15923
15929
  }
15924
- `,bj=Q`
15930
+ `,yj=Q`
15925
15931
  <template
15926
15932
  role="tree"
15927
15933
  ${Vt("treeView")}
@@ -15935,247 +15941,247 @@ const vj=It`
15935
15941
  <slot ${te("slottedTreeItems")}></slot>
15936
15942
  </template>
15937
15943
  `
15938
- class yj extends Vo{constructor(){super(...arguments),this.selectionMode=dj,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
15944
+ class wj extends Vo{constructor(){super(...arguments),this.selectionMode=hj,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
15939
15945
  if(!(t.target instanceof Element&&No(t.target)))return!0
15940
15946
  const e=t.target
15941
- return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case dj:return!0
15942
- case uj:return!1
15943
- case hj:return!this.itemHasChildren(t)
15944
- default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof mj&&(t.groupSelected=!1)
15947
+ return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case hj:return!0
15948
+ case pj:return!1
15949
+ case uj:return!this.itemHasChildren(t)
15950
+ default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof gj&&(t.groupSelected=!1)
15945
15951
  for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
15946
- t instanceof mj&&(t.groupSelected=!0)}}}t([ft({attribute:"selection-mode"})],yj.prototype,"selectionMode",void 0),t([k],yj.prototype,"selectedItems",void 0)
15947
- const wj=yj.compose({baseName:"tree-view",baseClass:Vo,template:bj,styles:vj})
15948
- Ei.getOrCreate().withPrefix("nimble").register(wj())
15949
- class xj{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class Cj extends wq{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
15950
- 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 Cj(e,t)}format(t){const e=this.formatter.format(t)
15952
+ t instanceof gj&&(t.groupSelected=!0)}}}t([ft({attribute:"selection-mode"})],wj.prototype,"selectionMode",void 0),t([k],wj.prototype,"selectedItems",void 0)
15953
+ const xj=wj.compose({baseName:"tree-view",baseClass:Vo,template:yj,styles:bj})
15954
+ Ei.getOrCreate().withPrefix("nimble").register(xj())
15955
+ class Cj{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class kj extends xq{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
15956
+ 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 kj(e,t)}format(t){const e=this.formatter.format(t)
15951
15957
  if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
15952
15958
  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,o=n.region
15953
- return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const kj=new Map([["en",new xj("byte","bytes","B")],["fr",new xj("octet","octets","o")],["de",new xj("Byte","Byte","B")],["ja",new xj("バイト","バイト","B")],["zh",new xj("字节","字节","B")]]),Sj=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
15954
- const $j=new class extends kq{constructor(){super(Sj.map(([t,e])=>new Cq(t,Cj.createFactory({unitTranslations:kj,scaledPrefixText:e}))))}},_j=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
15955
- const Ij=new class extends kq{constructor(){super(_j.map(([t,e,n])=>new Cq(t,xq.createFactory({style:"unit",unit:e,unitDisplay:n}))))}},Mj=Q`<template slot="unit"></template>`,Ej=It`
15959
+ return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const Sj=new Map([["en",new Cj("byte","bytes","B")],["fr",new Cj("octet","octets","o")],["de",new Cj("Byte","Byte","B")],["ja",new Cj("バイト","バイト","B")],["zh",new Cj("字节","字节","B")]]),$j=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
15960
+ const _j=new class extends Sq{constructor(){super($j.map(([t,e])=>new kq(t,kj.createFactory({unitTranslations:Sj,scaledPrefixText:e}))))}},Ij=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
15961
+ const Mj=new class extends Sq{constructor(){super(Ij.map(([t,e,n])=>new kq(t,Cq.createFactory({style:"unit",unit:e,unitDisplay:n}))))}},Ej=Q`<template slot="unit"></template>`,Aj=It`
15956
15962
  ${Uo("none")}
15957
15963
  `
15958
- class Aj extends Tq{constructor(){super(),this.binary=!1,this.resolvedUnitScale=Ij}binaryChanged(){this.resolvedUnitScale=this.binary?$j:Ij}}t([ft({mode:"boolean"})],Aj.prototype,"binary",void 0)
15959
- const Tj=Aj.compose({baseName:"unit-byte",template:Mj,styles:Ej})
15960
- Ei.getOrCreate().withPrefix("nimble").register(Tj())
15961
- const Dj=[[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"]],Oj=new Map([["en",new xj("volt","volts","V")],["fr",new xj("volt","volts","V")],["de",new xj("Volt","Volt","V")],["ja",new xj("ボルト","ボルト","V")],["zh",new xj("伏特","伏特","V")]])
15962
- const Rj=new class extends kq{constructor(){super(Dj.map(([t,e])=>new Cq(t,Cj.createFactory({unitTranslations:Oj,scaledPrefixText:e}))))}}
15963
- const Fj=class extends Tq{constructor(){super(),this.resolvedUnitScale=Rj}}.compose({baseName:"unit-volt",template:Mj,styles:Ej})
15964
- Ei.getOrCreate().withPrefix("nimble").register(Fj())
15965
- var Lj={value:()=>{}}
15966
- function Bj(){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)
15967
- i[t]=[]}return new Nj(i)}function Nj(t){this._=t}function Pj(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function Vj(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=Lj,t=t.slice(0,i).concat(t.slice(i+1))
15968
- break}return null!=n&&t.push({name:e,value:n}),t}Nj.prototype=Bj.prototype={constructor:Nj,on:function(t,e){var n,i,o=this._,r=(i=o,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".")
15964
+ class Tj extends Dq{constructor(){super(),this.binary=!1,this.resolvedUnitScale=Mj}binaryChanged(){this.resolvedUnitScale=this.binary?_j:Mj}}t([ft({mode:"boolean"})],Tj.prototype,"binary",void 0)
15965
+ const Dj=Tj.compose({baseName:"unit-byte",template:Ej,styles:Aj})
15966
+ Ei.getOrCreate().withPrefix("nimble").register(Dj())
15967
+ const Oj=[[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"]],Rj=new Map([["en",new Cj("volt","volts","V")],["fr",new Cj("volt","volts","V")],["de",new Cj("Volt","Volt","V")],["ja",new Cj("ボルト","ボルト","V")],["zh",new Cj("伏特","伏特","V")]])
15968
+ const Fj=new class extends Sq{constructor(){super(Oj.map(([t,e])=>new kq(t,kj.createFactory({unitTranslations:Rj,scaledPrefixText:e}))))}}
15969
+ const Lj=class extends Dq{constructor(){super(),this.resolvedUnitScale=Fj}}.compose({baseName:"unit-volt",template:Ej,styles:Aj})
15970
+ Ei.getOrCreate().withPrefix("nimble").register(Lj())
15971
+ var Bj={value:()=>{}}
15972
+ function Nj(){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)
15973
+ i[t]=[]}return new Pj(i)}function Pj(t){this._=t}function Vj(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function zj(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=Bj,t=t.slice(0,i).concat(t.slice(i+1))
15974
+ break}return null!=n&&t.push({name:e,value:n}),t}Pj.prototype=Nj.prototype={constructor:Pj,on:function(t,e){var n,i,o=this._,r=(i=o,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".")
15969
15975
  if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
15970
15976
  return{type:t,name:e}})),s=-1,a=r.length
15971
15977
  if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
15972
- for(;++s<a;)if(n=(t=r[s]).type)o[n]=Vj(o[n],t.name,e)
15973
- else if(null==e)for(n in o)o[n]=Vj(o[n],t.name,null)
15974
- return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=Pj(o[n],t.name)))return n},copy:function(){var t={},e=this._
15978
+ for(;++s<a;)if(n=(t=r[s]).type)o[n]=zj(o[n],t.name,e)
15979
+ else if(null==e)for(n in o)o[n]=zj(o[n],t.name,null)
15980
+ return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=Vj(o[n],t.name)))return n},copy:function(){var t={},e=this._
15975
15981
  for(var n in e)t[n]=e[n].slice()
15976
- return new Nj(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
15982
+ return new Pj(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
15977
15983
  if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
15978
15984
  for(r=0,n=(i=this._[t]).length;r<n;++r)i[r].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
15979
15985
  for(var i=this._[t],o=0,r=i.length;o<r;++o)i[o].value.apply(e,n)}}
15980
- var zj="http://www.w3.org/1999/xhtml",Hj={svg:"http://www.w3.org/2000/svg",xhtml:zj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
15981
- function Uj(t){var e=t+="",n=e.indexOf(":")
15982
- return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Hj.hasOwnProperty(e)?{space:Hj[e],local:t}:t}function qj(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
15983
- return n===zj&&e.documentElement.namespaceURI===zj?e.createElement(t):e.createElementNS(n,t)}}function jj(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Wj(t){var e=Uj(t)
15984
- return(e.local?jj:qj)(e)}function Gj(){}function Zj(t){return null==t?Gj:function(){return this.querySelector(t)}}function Kj(){return[]}function Yj(t){return null==t?Kj:function(){return this.querySelectorAll(t)}}function Xj(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
15985
- var e}}function Jj(t){return function(){return this.matches(t)}}function Qj(t){return function(e){return e.matches(t)}}var tW=Array.prototype.find
15986
- function eW(){return this.firstElementChild}var nW=Array.prototype.filter
15987
- function iW(){return Array.from(this.children)}function oW(t){return new Array(t.length)}function rW(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function sW(t,e,n,i,o,r){for(var s,a=0,l=e.length,c=r.length;a<c;++a)(s=e[a])?(s.__data__=r[a],i[a]=s):n[a]=new rW(t,r[a])
15988
- for(;a<l;++a)(s=e[a])&&(o[a]=s)}function aW(t,e,n,i,o,r,s){var a,l,c,d=new Map,h=e.length,u=r.length,p=new Array(h)
15986
+ var Hj="http://www.w3.org/1999/xhtml",Uj={svg:"http://www.w3.org/2000/svg",xhtml:Hj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
15987
+ function qj(t){var e=t+="",n=e.indexOf(":")
15988
+ return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Uj.hasOwnProperty(e)?{space:Uj[e],local:t}:t}function jj(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
15989
+ return n===Hj&&e.documentElement.namespaceURI===Hj?e.createElement(t):e.createElementNS(n,t)}}function Wj(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Gj(t){var e=qj(t)
15990
+ return(e.local?Wj:jj)(e)}function Zj(){}function Kj(t){return null==t?Zj:function(){return this.querySelector(t)}}function Yj(){return[]}function Xj(t){return null==t?Yj:function(){return this.querySelectorAll(t)}}function Jj(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
15991
+ var e}}function Qj(t){return function(){return this.matches(t)}}function tW(t){return function(e){return e.matches(t)}}var eW=Array.prototype.find
15992
+ function nW(){return this.firstElementChild}var iW=Array.prototype.filter
15993
+ function oW(){return Array.from(this.children)}function rW(t){return new Array(t.length)}function sW(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function aW(t,e,n,i,o,r){for(var s,a=0,l=e.length,c=r.length;a<c;++a)(s=e[a])?(s.__data__=r[a],i[a]=s):n[a]=new sW(t,r[a])
15994
+ for(;a<l;++a)(s=e[a])&&(o[a]=s)}function lW(t,e,n,i,o,r,s){var a,l,c,d=new Map,h=e.length,u=r.length,p=new Array(h)
15989
15995
  for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=s.call(l,l.__data__,a,e)+"",d.has(c)?o[a]=l:d.set(c,l))
15990
- for(a=0;a<u;++a)c=s.call(t,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new rW(t,r[a])
15991
- for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function lW(t){return t.__data__}function cW(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function dW(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function hW(t){return function(){this.removeAttribute(t)}}function uW(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pW(t,e){return function(){this.setAttribute(t,e)}}function fW(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mW(t,e){return function(){var n=e.apply(this,arguments)
15992
- null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function gW(t,e){return function(){var n=e.apply(this,arguments)
15993
- null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vW(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bW(t){return function(){this.style.removeProperty(t)}}function yW(t,e,n){return function(){this.style.setProperty(t,e,n)}}function wW(t,e,n){return function(){var i=e.apply(this,arguments)
15994
- null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function xW(t,e){return t.style.getPropertyValue(e)||vW(t).getComputedStyle(t,null).getPropertyValue(e)}function CW(t){return function(){delete this[t]}}function kW(t,e){return function(){this[t]=e}}function SW(t,e){return function(){var n=e.apply(this,arguments)
15995
- null==n?delete this[t]:this[t]=n}}function $W(t){return t.trim().split(/^|\s+/)}function _W(t){return t.classList||new IW(t)}function IW(t){this._node=t,this._names=$W(t.getAttribute("class")||"")}function MW(t,e){for(var n=_W(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function EW(t,e){for(var n=_W(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function AW(t){return function(){MW(this,t)}}function TW(t){return function(){EW(this,t)}}function DW(t,e){return function(){(e.apply(this,arguments)?MW:EW)(this,t)}}function OW(){this.textContent=""}function RW(t){return function(){this.textContent=t}}function FW(t){return function(){var e=t.apply(this,arguments)
15996
- this.textContent=null==e?"":e}}function LW(){this.innerHTML=""}function BW(t){return function(){this.innerHTML=t}}function NW(t){return function(){var e=t.apply(this,arguments)
15997
- this.innerHTML=null==e?"":e}}function PW(){this.nextSibling&&this.parentNode.appendChild(this)}function VW(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zW(){return null}function HW(){var t=this.parentNode
15998
- t&&t.removeChild(this)}function UW(){var t=this.cloneNode(!1),e=this.parentNode
15999
- return e?e.insertBefore(t,this.nextSibling):t}function qW(){var t=this.cloneNode(!0),e=this.parentNode
16000
- return e?e.insertBefore(t,this.nextSibling):t}function jW(t){return function(){var e=this.__on
16001
- if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function WW(t,e,n){return function(){var i,o=this.__on,r=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
15996
+ for(a=0;a<u;++a)c=s.call(t,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new sW(t,r[a])
15997
+ for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function cW(t){return t.__data__}function dW(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function hW(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function uW(t){return function(){this.removeAttribute(t)}}function pW(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fW(t,e){return function(){this.setAttribute(t,e)}}function mW(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function gW(t,e){return function(){var n=e.apply(this,arguments)
15998
+ null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function vW(t,e){return function(){var n=e.apply(this,arguments)
15999
+ null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function bW(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function yW(t){return function(){this.style.removeProperty(t)}}function wW(t,e,n){return function(){this.style.setProperty(t,e,n)}}function xW(t,e,n){return function(){var i=e.apply(this,arguments)
16000
+ null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function CW(t,e){return t.style.getPropertyValue(e)||bW(t).getComputedStyle(t,null).getPropertyValue(e)}function kW(t){return function(){delete this[t]}}function SW(t,e){return function(){this[t]=e}}function $W(t,e){return function(){var n=e.apply(this,arguments)
16001
+ null==n?delete this[t]:this[t]=n}}function _W(t){return t.trim().split(/^|\s+/)}function IW(t){return t.classList||new MW(t)}function MW(t){this._node=t,this._names=_W(t.getAttribute("class")||"")}function EW(t,e){for(var n=IW(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function AW(t,e){for(var n=IW(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function TW(t){return function(){EW(this,t)}}function DW(t){return function(){AW(this,t)}}function OW(t,e){return function(){(e.apply(this,arguments)?EW:AW)(this,t)}}function RW(){this.textContent=""}function FW(t){return function(){this.textContent=t}}function LW(t){return function(){var e=t.apply(this,arguments)
16002
+ this.textContent=null==e?"":e}}function BW(){this.innerHTML=""}function NW(t){return function(){this.innerHTML=t}}function PW(t){return function(){var e=t.apply(this,arguments)
16003
+ this.innerHTML=null==e?"":e}}function VW(){this.nextSibling&&this.parentNode.appendChild(this)}function zW(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function HW(){return null}function UW(){var t=this.parentNode
16004
+ t&&t.removeChild(this)}function qW(){var t=this.cloneNode(!1),e=this.parentNode
16005
+ return e?e.insertBefore(t,this.nextSibling):t}function jW(){var t=this.cloneNode(!0),e=this.parentNode
16006
+ return e?e.insertBefore(t,this.nextSibling):t}function WW(t){return function(){var e=this.__on
16007
+ if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function GW(t,e,n){return function(){var i,o=this.__on,r=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
16002
16008
  if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=e)
16003
- this.addEventListener(t.type,r,n),i={type:t.type,name:t.name,value:e,listener:r,options:n},o?o.push(i):this.__on=[i]}}function GW(t,e,n){var i=vW(t),o=i.CustomEvent
16004
- "function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function ZW(t,e){return function(){return GW(this,t,e)}}function KW(t,e){return function(){return GW(this,t,e.apply(this,arguments))}}rW.prototype={constructor:rW,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)}},IW.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)
16009
+ this.addEventListener(t.type,r,n),i={type:t.type,name:t.name,value:e,listener:r,options:n},o?o.push(i):this.__on=[i]}}function ZW(t,e,n){var i=bW(t),o=i.CustomEvent
16010
+ "function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function KW(t,e){return function(){return ZW(this,t,e)}}function YW(t,e){return function(){return ZW(this,t,e.apply(this,arguments))}}sW.prototype={constructor:sW,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)}},MW.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)
16005
16011
  e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
16006
- var YW=[null]
16007
- function XW(t,e){this._groups=t,this._parents=e}function JW(){return new XW([[document.documentElement]],YW)}function QW(t){return"string"==typeof t?new XW([[document.querySelector(t)]],[document.documentElement]):new XW([[t]],YW)}function tG(t,e){if(t=function(t){let e
16012
+ var XW=[null]
16013
+ function JW(t,e){this._groups=t,this._parents=e}function QW(){return new JW([[document.documentElement]],XW)}function tG(t){return"string"==typeof t?new JW([[document.querySelector(t)]],[document.documentElement]):new JW([[t]],XW)}function eG(t,e){if(t=function(t){let e
16008
16014
  for(;e=t.sourceEvent;)t=e
16009
16015
  return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
16010
16016
  if(n.createSVGPoint){var i=n.createSVGPoint()
16011
16017
  return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect()
16012
- return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}XW.prototype=JW.prototype={constructor:XW,select:function(t){"function"!=typeof t&&(t=Zj(t))
16018
+ return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}JW.prototype=QW.prototype={constructor:JW,select:function(t){"function"!=typeof t&&(t=Kj(t))
16013
16019
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=e[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=t.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
16014
- return new XW(i,this._parents)},selectAll:function(t){t="function"==typeof t?Xj(t):Yj(t)
16020
+ return new JW(i,this._parents)},selectAll:function(t){t="function"==typeof t?Jj(t):Xj(t)
16015
16021
  for(var e=this._groups,n=e.length,i=[],o=[],r=0;r<n;++r)for(var s,a=e[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(t.call(s,s.__data__,c,a)),o.push(s))
16016
- return new XW(i,o)},selectChild:function(t){return this.select(null==t?eW:function(t){return function(){return tW.call(this.children,t)}}("function"==typeof t?t:Qj(t)))},selectChildren:function(t){return this.selectAll(null==t?iW:function(t){return function(){return nW.call(this.children,t)}}("function"==typeof t?t:Qj(t)))},filter:function(t){"function"!=typeof t&&(t=Jj(t))
16022
+ return new JW(i,o)},selectChild:function(t){return this.select(null==t?nW:function(t){return function(){return eW.call(this.children,t)}}("function"==typeof t?t:tW(t)))},selectChildren:function(t){return this.selectAll(null==t?oW:function(t){return function(){return iW.call(this.children,t)}}("function"==typeof t?t:tW(t)))},filter:function(t){"function"!=typeof t&&(t=Qj(t))
16017
16023
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s=e[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&t.call(r,r.__data__,c,s)&&l.push(r)
16018
- return new XW(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,lW)
16019
- var n,i=e?aW:sW,o=this._parents,r=this._groups
16024
+ return new JW(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,cW)
16025
+ var n,i=e?lW:aW,o=this._parents,r=this._groups
16020
16026
  "function"!=typeof t&&(n=t,t=function(){return n})
16021
- for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=cW(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
16027
+ for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=dW(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
16022
16028
  i(h,u,g,v,c[d]=new Array(p),f,e)
16023
- 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 XW(a,o))._enter=l,a._exit=c,a},enter:function(){return new XW(this._enter||this._groups.map(oW),this._parents)},exit:function(){return new XW(this._exit||this._groups.map(oW),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit()
16029
+ 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 JW(a,o))._enter=l,a._exit=c,a},enter:function(){return new JW(this._enter||this._groups.map(rW),this._parents)},exit:function(){return new JW(this._exit||this._groups.map(rW),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit()
16024
16030
  return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
16025
16031
  for(;l<o;++l)a[l]=n[l]
16026
- return new XW(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
16027
- return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=dW)
16032
+ return new JW(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
16033
+ return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=hW)
16028
16034
  for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
16029
- c.sort(e)}return new XW(o,this._parents).order()},call:function(){var t=arguments[0]
16035
+ c.sort(e)}return new JW(o,this._parents).order()},call:function(){var t=arguments[0]
16030
16036
  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],o=0,r=i.length;o<r;++o){var s=i[o]
16031
16037
  if(s)return s}return null},size:function(){let t=0
16032
16038
  for(const e of this)++t
16033
16039
  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 o,r=e[n],s=0,a=r.length;s<a;++s)(o=r[s])&&t.call(o,o.__data__,s,r)
16034
- return this},attr:function(t,e){var n=Uj(t)
16040
+ return this},attr:function(t,e){var n=qj(t)
16035
16041
  if(arguments.length<2){var i=this.node()
16036
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?uW:hW:"function"==typeof e?n.local?gW:mW:n.local?fW:pW)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?bW:"function"==typeof e?wW:yW)(t,e,null==n?"":n)):xW(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?CW:"function"==typeof e?SW:kW)(t,e)):this.node()[t]},classed:function(t,e){var n=$W(t+"")
16037
- if(arguments.length<2){for(var i=_W(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
16038
- return!0}return this.each(("function"==typeof e?DW:e?AW:TW)(n,e))},text:function(t){return arguments.length?this.each(null==t?OW:("function"==typeof t?FW:RW)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?LW:("function"==typeof t?NW:BW)(t)):this.node().innerHTML},raise:function(){return this.each(PW)},lower:function(){return this.each(VW)},append:function(t){var e="function"==typeof t?t:Wj(t)
16039
- return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Wj(t),i=null==e?zW:"function"==typeof e?e:Zj(e)
16040
- return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(HW)},clone:function(t){return this.select(t?qW:UW)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".")
16042
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?pW:uW:"function"==typeof e?n.local?vW:gW:n.local?mW:fW)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?yW:"function"==typeof e?xW:wW)(t,e,null==n?"":n)):CW(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?kW:"function"==typeof e?$W:SW)(t,e)):this.node()[t]},classed:function(t,e){var n=_W(t+"")
16043
+ if(arguments.length<2){for(var i=IW(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
16044
+ return!0}return this.each(("function"==typeof e?OW:e?TW:DW)(n,e))},text:function(t){return arguments.length?this.each(null==t?RW:("function"==typeof t?LW:FW)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?BW:("function"==typeof t?PW:NW)(t)):this.node().innerHTML},raise:function(){return this.each(VW)},lower:function(){return this.each(zW)},append:function(t){var e="function"==typeof t?t:Gj(t)
16045
+ return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Gj(t),i=null==e?HW:"function"==typeof e?e:Kj(e)
16046
+ return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(UW)},clone:function(t){return this.select(t?jW:qW)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".")
16041
16047
  return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=r.length
16042
- if(!(arguments.length<2)){for(a=e?WW:jW,i=0;i<s;++i)this.each(a(r[i],e,n))
16048
+ if(!(arguments.length<2)){for(a=e?GW:WW,i=0;i<s;++i)this.each(a(r[i],e,n))
16043
16049
  return this}var a=this.node().__on
16044
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?KW:ZW)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
16045
- const eG={capture:!0,passive:!1}
16046
- function nG(t){t.preventDefault(),t.stopImmediatePropagation()}function iG(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function oG(t,e){var n=Object.create(t.prototype)
16050
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?YW:KW)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
16051
+ const nG={capture:!0,passive:!1}
16052
+ function iG(t){t.preventDefault(),t.stopImmediatePropagation()}function oG(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function rG(t,e){var n=Object.create(t.prototype)
16047
16053
  for(var i in e)n[i]=e[i]
16048
- return n}function rG(){}var sG=.7,aG=1/sG,lG="\\s*([+-]?\\d+)\\s*",cG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hG=/^#([0-9a-f]{3,8})$/,uG=new RegExp(`^rgb\\(${lG},${lG},${lG}\\)$`),pG=new RegExp(`^rgb\\(${dG},${dG},${dG}\\)$`),fG=new RegExp(`^rgba\\(${lG},${lG},${lG},${cG}\\)$`),mG=new RegExp(`^rgba\\(${dG},${dG},${dG},${cG}\\)$`),gG=new RegExp(`^hsl\\(${cG},${dG},${dG}\\)$`),vG=new RegExp(`^hsla\\(${cG},${dG},${dG},${cG}\\)$`),bG={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}
16049
- function yG(){return this.rgb().formatHex()}function wG(){return this.rgb().formatRgb()}function xG(t){var e,n
16050
- return t=(t+"").trim().toLowerCase(),(e=hG.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?CG(e):3===n?new $G(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?kG(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?kG(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=uG.exec(t))?new $G(e[1],e[2],e[3],1):(e=pG.exec(t))?new $G(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fG.exec(t))?kG(e[1],e[2],e[3],e[4]):(e=mG.exec(t))?kG(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=gG.exec(t))?TG(e[1],e[2]/100,e[3]/100,1):(e=vG.exec(t))?TG(e[1],e[2]/100,e[3]/100,e[4]):bG.hasOwnProperty(t)?CG(bG[t]):"transparent"===t?new $G(NaN,NaN,NaN,0):null}function CG(t){return new $G(t>>16&255,t>>8&255,255&t,1)}function kG(t,e,n,i){return i<=0&&(t=e=n=NaN),new $G(t,e,n,i)}function SG(t,e,n,i){return 1===arguments.length?((o=t)instanceof rG||(o=xG(o)),o?new $G((o=o.rgb()).r,o.g,o.b,o.opacity):new $G):new $G(t,e,n,null==i?1:i)
16051
- var o}function $G(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function _G(){return`#${AG(this.r)}${AG(this.g)}${AG(this.b)}`}function IG(){const t=MG(this.opacity)
16052
- return`${1===t?"rgb(":"rgba("}${EG(this.r)}, ${EG(this.g)}, ${EG(this.b)}${1===t?")":`, ${t})`}`}function MG(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function EG(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function AG(t){return((t=EG(t))<16?"0":"")+t.toString(16)}function TG(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new OG(t,e,n,i)}function DG(t){if(t instanceof OG)return new OG(t.h,t.s,t.l,t.opacity)
16053
- if(t instanceof rG||(t=xG(t)),!t)return new OG
16054
- if(t instanceof OG)return t
16054
+ return n}function sG(){}var aG=.7,lG=1/aG,cG="\\s*([+-]?\\d+)\\s*",dG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hG="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",uG=/^#([0-9a-f]{3,8})$/,pG=new RegExp(`^rgb\\(${cG},${cG},${cG}\\)$`),fG=new RegExp(`^rgb\\(${hG},${hG},${hG}\\)$`),mG=new RegExp(`^rgba\\(${cG},${cG},${cG},${dG}\\)$`),gG=new RegExp(`^rgba\\(${hG},${hG},${hG},${dG}\\)$`),vG=new RegExp(`^hsl\\(${dG},${hG},${hG}\\)$`),bG=new RegExp(`^hsla\\(${dG},${hG},${hG},${dG}\\)$`),yG={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}
16055
+ function wG(){return this.rgb().formatHex()}function xG(){return this.rgb().formatRgb()}function CG(t){var e,n
16056
+ return t=(t+"").trim().toLowerCase(),(e=uG.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?kG(e):3===n?new _G(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?SG(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?SG(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=pG.exec(t))?new _G(e[1],e[2],e[3],1):(e=fG.exec(t))?new _G(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=mG.exec(t))?SG(e[1],e[2],e[3],e[4]):(e=gG.exec(t))?SG(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=vG.exec(t))?DG(e[1],e[2]/100,e[3]/100,1):(e=bG.exec(t))?DG(e[1],e[2]/100,e[3]/100,e[4]):yG.hasOwnProperty(t)?kG(yG[t]):"transparent"===t?new _G(NaN,NaN,NaN,0):null}function kG(t){return new _G(t>>16&255,t>>8&255,255&t,1)}function SG(t,e,n,i){return i<=0&&(t=e=n=NaN),new _G(t,e,n,i)}function $G(t,e,n,i){return 1===arguments.length?((o=t)instanceof sG||(o=CG(o)),o?new _G((o=o.rgb()).r,o.g,o.b,o.opacity):new _G):new _G(t,e,n,null==i?1:i)
16057
+ var o}function _G(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function IG(){return`#${TG(this.r)}${TG(this.g)}${TG(this.b)}`}function MG(){const t=EG(this.opacity)
16058
+ return`${1===t?"rgb(":"rgba("}${AG(this.r)}, ${AG(this.g)}, ${AG(this.b)}${1===t?")":`, ${t})`}`}function EG(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function AG(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function TG(t){return((t=AG(t))<16?"0":"")+t.toString(16)}function DG(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new RG(t,e,n,i)}function OG(t){if(t instanceof RG)return new RG(t.h,t.s,t.l,t.opacity)
16059
+ if(t instanceof sG||(t=CG(t)),!t)return new RG
16060
+ if(t instanceof RG)return t
16055
16061
  var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),r=Math.max(e,n,i),s=NaN,a=r-o,l=(r+o)/2
16056
- return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new OG(s,a,l,t.opacity)}function OG(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function RG(t){return(t=(t||0)%360)<0?t+360:t}function FG(t){return Math.max(0,Math.min(1,t||0))}function LG(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}iG(rG,xG,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:yG,formatHex:yG,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return DG(this).formatHsl()},formatRgb:wG,toString:wG}),iG($G,SG,oG(rG,{brighter(t){return t=null==t?aG:Math.pow(aG,t),new $G(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?sG:Math.pow(sG,t),new $G(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new $G(EG(this.r),EG(this.g),EG(this.b),MG(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:_G,formatHex:_G,formatHex8:function(){return`#${AG(this.r)}${AG(this.g)}${AG(this.b)}${AG(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:IG,toString:IG})),iG(OG,function(t,e,n,i){return 1===arguments.length?DG(t):new OG(t,e,n,null==i?1:i)},oG(rG,{brighter(t){return t=null==t?aG:Math.pow(aG,t),new OG(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?sG:Math.pow(sG,t),new OG(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,o=2*n-i
16057
- return new $G(LG(t>=240?t-240:t+120,o,i),LG(t,o,i),LG(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new OG(RG(this.h),FG(this.s),FG(this.l),MG(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=MG(this.opacity)
16058
- return`${1===t?"hsl(":"hsla("}${RG(this.h)}, ${100*FG(this.s)}%, ${100*FG(this.l)}%${1===t?")":`, ${t})`}`}}))
16059
- var BG=t=>()=>t
16060
- function NG(t){return 1===(t=+t)?PG: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):BG(isNaN(e)?n:e)}}function PG(t,e){var n=e-t
16061
- return n?function(t,e){return function(n){return t+n*e}}(t,n):BG(isNaN(t)?e:t)}var VG=function t(e){var n=NG(e)
16062
- function i(t,e){var i=n((t=SG(t)).r,(e=SG(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=PG(t.opacity,e.opacity)
16062
+ return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new RG(s,a,l,t.opacity)}function RG(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function FG(t){return(t=(t||0)%360)<0?t+360:t}function LG(t){return Math.max(0,Math.min(1,t||0))}function BG(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}oG(sG,CG,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:wG,formatHex:wG,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return OG(this).formatHsl()},formatRgb:xG,toString:xG}),oG(_G,$G,rG(sG,{brighter(t){return t=null==t?lG:Math.pow(lG,t),new _G(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?aG:Math.pow(aG,t),new _G(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new _G(AG(this.r),AG(this.g),AG(this.b),EG(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:IG,formatHex:IG,formatHex8:function(){return`#${TG(this.r)}${TG(this.g)}${TG(this.b)}${TG(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:MG,toString:MG})),oG(RG,function(t,e,n,i){return 1===arguments.length?OG(t):new RG(t,e,n,null==i?1:i)},rG(sG,{brighter(t){return t=null==t?lG:Math.pow(lG,t),new RG(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?aG:Math.pow(aG,t),new RG(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,o=2*n-i
16063
+ return new _G(BG(t>=240?t-240:t+120,o,i),BG(t,o,i),BG(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new RG(FG(this.h),LG(this.s),LG(this.l),EG(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=EG(this.opacity)
16064
+ return`${1===t?"hsl(":"hsla("}${FG(this.h)}, ${100*LG(this.s)}%, ${100*LG(this.l)}%${1===t?")":`, ${t})`}`}}))
16065
+ var NG=t=>()=>t
16066
+ function PG(t){return 1===(t=+t)?VG: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):NG(isNaN(e)?n:e)}}function VG(t,e){var n=e-t
16067
+ return n?function(t,e){return function(n){return t+n*e}}(t,n):NG(isNaN(t)?e:t)}var zG=function t(e){var n=PG(e)
16068
+ function i(t,e){var i=n((t=$G(t)).r,(e=$G(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=VG(t.opacity,e.opacity)
16063
16069
  return function(e){return t.r=i(e),t.g=o(e),t.b=r(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1)
16064
- function zG(t,e){e||(e=[])
16070
+ function HG(t,e){e||(e=[])
16065
16071
  var n,i=t?Math.min(e.length,t.length):0,o=e.slice()
16066
16072
  return function(r){for(n=0;n<i;++n)o[n]=t[n]*(1-r)+e[n]*r
16067
- return o}}function HG(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i)
16068
- for(n=0;n<o;++n)r[n]=KG(t[n],e[n])
16073
+ return o}}function UG(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i)
16074
+ for(n=0;n<o;++n)r[n]=YG(t[n],e[n])
16069
16075
  for(;n<i;++n)s[n]=e[n]
16070
16076
  return function(t){for(n=0;n<o;++n)s[n]=r[n](t)
16071
- return s}}function UG(t,e){var n=new Date
16072
- return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function qG(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function jG(t,e){var n,i={},o={}
16073
- for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=KG(t[n],e[n]):o[n]=e[n]
16077
+ return s}}function qG(t,e){var n=new Date
16078
+ return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function jG(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function WG(t,e){var n,i={},o={}
16079
+ for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=YG(t[n],e[n]):o[n]=e[n]
16074
16080
  return function(t){for(n in i)o[n]=i[n](t)
16075
- return o}}var WG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GG=new RegExp(WG.source,"g")
16076
- function ZG(t,e){var n,i,o,r=WG.lastIndex=GG.lastIndex=0,s=-1,a=[],l=[]
16077
- for(t+="",e+="";(n=WG.exec(t))&&(i=GG.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:qG(n,i)})),r=GG.lastIndex
16081
+ return o}}var GG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ZG=new RegExp(GG.source,"g")
16082
+ function KG(t,e){var n,i,o,r=GG.lastIndex=ZG.lastIndex=0,s=-1,a=[],l=[]
16083
+ for(t+="",e+="";(n=GG.exec(t))&&(i=ZG.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:jG(n,i)})),r=ZG.lastIndex
16078
16084
  return r<e.length&&(o=e.slice(r),a[s]?a[s]+=o:a[++s]=o),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)
16079
- return a.join("")})}function KG(t,e){var n,i,o=typeof e
16080
- return null==e||"boolean"===o?BG(e):("number"===o?qG:"string"===o?(n=xG(e))?(e=n,VG):ZG:e instanceof xG?VG:e instanceof Date?UG:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?HG:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?jG:qG:zG))(t,e)}function YG(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var XG,JG=180/Math.PI,QG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
16081
- function tZ(t,e,n,i,o,r){var s,a,l
16082
- return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(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,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(e,t)*JG,skewX:Math.atan(l)*JG,scaleX:s,scaleY:a}}function eZ(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(r,s){var a=[],l=[]
16085
+ return a.join("")})}function YG(t,e){var n,i,o=typeof e
16086
+ return null==e||"boolean"===o?NG(e):("number"===o?jG:"string"===o?(n=CG(e))?(e=n,zG):KG:e instanceof CG?zG:e instanceof Date?qG:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?UG:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?WG:jG:HG))(t,e)}function XG(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var JG,QG=180/Math.PI,tZ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
16087
+ function eZ(t,e,n,i,o,r){var s,a,l
16088
+ return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(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,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(e,t)*QG,skewX:Math.atan(l)*QG,scaleX:s,scaleY:a}}function nZ(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(r,s){var a=[],l=[]
16083
16089
  return r=t(r),s=t(s),function(t,i,o,r,s,a){if(t!==o||i!==r){var l=s.push("translate(",null,e,null,n)
16084
- a.push({i:l-4,x:qG(t,o)},{i:l-2,x:qG(i,r)})}else(o||r)&&s.push("translate("+o+e+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:qG(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(r.rotate,s.rotate,a,l),function(t,e,n,r){t!==e?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:qG(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(r.skewX,s.skewX,a,l),function(t,e,n,i,r,s){if(t!==n||e!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
16085
- s.push({i:a-4,x:qG(t,n)},{i:a-2,x:qG(e,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
16086
- return a.join("")}}}var nZ=eZ(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
16087
- return e.isIdentity?QG:tZ(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),iZ=eZ(function(t){return null==t?QG:(XG||(XG=document.createElementNS("http://www.w3.org/2000/svg","g")),XG.setAttribute("transform",t),(t=XG.transform.baseVal.consolidate())?tZ((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):QG)},", ",")",")")
16088
- function oZ(t){return((t=Math.exp(t))+1/t)/2}var rZ,sZ,aZ=function t(e,n,i){function o(t,o){var r,s,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
16090
+ a.push({i:l-4,x:jG(t,o)},{i:l-2,x:jG(i,r)})}else(o||r)&&s.push("translate("+o+e+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:jG(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(r.rotate,s.rotate,a,l),function(t,e,n,r){t!==e?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:jG(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(r.skewX,s.skewX,a,l),function(t,e,n,i,r,s){if(t!==n||e!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
16091
+ s.push({i:a-4,x:jG(t,n)},{i:a-2,x:jG(e,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
16092
+ return a.join("")}}}var iZ=nZ(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
16093
+ return e.isIdentity?tZ:eZ(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),oZ=nZ(function(t){return null==t?tZ:(JG||(JG=document.createElementNS("http://www.w3.org/2000/svg","g")),JG.setAttribute("transform",t),(t=JG.transform.baseVal.consolidate())?eZ((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tZ)},", ",")",")")
16094
+ function rZ(t){return((t=Math.exp(t))+1/t)/2}var sZ,aZ,lZ=function t(e,n,i){function o(t,o){var r,s,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
16089
16095
  if(m<1e-12)s=Math.log(u/c)/e,r=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*s)]}
16090
16096
  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)
16091
- s=(w-y)/e,r=function(t){var i,o=t*s,r=oZ(y),d=c/(n*g)*(r*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
16092
- return[a+d*p,l+d*f,c*r/oZ(e*o+y)]}}return r.duration=1e3*s*e/Math.SQRT2,r}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
16093
- return t(n,i,i*i)},o}(Math.SQRT2,2,4),lZ=0,cZ=0,dZ=0,hZ=0,uZ=0,pZ=0,fZ="object"==typeof performance&&performance.now?performance:Date,mZ="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
16094
- function gZ(){return uZ||(mZ(vZ),uZ=fZ.now()+pZ)}function vZ(){uZ=0}function bZ(){this._call=this._time=this._next=null}function yZ(t,e,n){var i=new bZ
16095
- return i.restart(t,e,n),i}function wZ(){uZ=(hZ=fZ.now())+pZ,lZ=cZ=0
16096
- try{!function(){gZ(),++lZ
16097
- for(var t,e=rZ;e;)(t=uZ-e._time)>=0&&e._call.call(void 0,t),e=e._next;--lZ}()}finally{lZ=0,function(){var t,e,n=rZ,i=1/0
16098
- 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:rZ=e)
16099
- sZ=t,CZ(i)}(),uZ=0}}function xZ(){var t=fZ.now(),e=t-hZ
16100
- e>1e3&&(pZ-=e,hZ=t)}function CZ(t){lZ||(cZ&&(cZ=clearTimeout(cZ)),t-uZ>24?(t<1/0&&(cZ=setTimeout(wZ,t-fZ.now()-pZ)),dZ&&(dZ=clearInterval(dZ))):(dZ||(hZ=fZ.now(),dZ=setInterval(xZ,1e3)),lZ=1,mZ(wZ)))}function kZ(t,e,n){var i=new bZ
16101
- return e=null==e?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,n),i}bZ.prototype=yZ.prototype={constructor:bZ,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
16102
- n=(null==n?gZ():+n)+(null==e?0:+e),this._next||sZ===this||(sZ?sZ._next=this:rZ=this,sZ=this),this._call=t,this._time=n,CZ()},stop:function(){this._call&&(this._call=null,this._time=1/0,CZ())}}
16103
- var SZ=Bj("start","end","cancel","interrupt"),$Z=[]
16104
- function _Z(t,e,n,i,o,r){var s=t.__transition
16097
+ s=(w-y)/e,r=function(t){var i,o=t*s,r=rZ(y),d=c/(n*g)*(r*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
16098
+ return[a+d*p,l+d*f,c*r/rZ(e*o+y)]}}return r.duration=1e3*s*e/Math.SQRT2,r}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
16099
+ return t(n,i,i*i)},o}(Math.SQRT2,2,4),cZ=0,dZ=0,hZ=0,uZ=0,pZ=0,fZ=0,mZ="object"==typeof performance&&performance.now?performance:Date,gZ="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
16100
+ function vZ(){return pZ||(gZ(bZ),pZ=mZ.now()+fZ)}function bZ(){pZ=0}function yZ(){this._call=this._time=this._next=null}function wZ(t,e,n){var i=new yZ
16101
+ return i.restart(t,e,n),i}function xZ(){pZ=(uZ=mZ.now())+fZ,cZ=dZ=0
16102
+ try{!function(){vZ(),++cZ
16103
+ for(var t,e=sZ;e;)(t=pZ-e._time)>=0&&e._call.call(void 0,t),e=e._next;--cZ}()}finally{cZ=0,function(){var t,e,n=sZ,i=1/0
16104
+ 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:sZ=e)
16105
+ aZ=t,kZ(i)}(),pZ=0}}function CZ(){var t=mZ.now(),e=t-uZ
16106
+ e>1e3&&(fZ-=e,uZ=t)}function kZ(t){cZ||(dZ&&(dZ=clearTimeout(dZ)),t-pZ>24?(t<1/0&&(dZ=setTimeout(xZ,t-mZ.now()-fZ)),hZ&&(hZ=clearInterval(hZ))):(hZ||(uZ=mZ.now(),hZ=setInterval(CZ,1e3)),cZ=1,gZ(xZ)))}function SZ(t,e,n){var i=new yZ
16107
+ return e=null==e?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,n),i}yZ.prototype=wZ.prototype={constructor:yZ,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
16108
+ n=(null==n?vZ():+n)+(null==e?0:+e),this._next||aZ===this||(aZ?aZ._next=this:sZ=this,aZ=this),this._call=t,this._time=n,kZ()},stop:function(){this._call&&(this._call=null,this._time=1/0,kZ())}}
16109
+ var $Z=Nj("start","end","cancel","interrupt"),_Z=[]
16110
+ function IZ(t,e,n,i,o,r){var s=t.__transition
16105
16111
  if(s){if(n in s)return}else t.__transition={}
16106
16112
  !function(t,e,n){var i,o=t.__transition
16107
16113
  function r(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(r){var c,d,h,u
16108
16114
  if(1!==n.state)return l()
16109
- for(c in o)if((u=o[c]).name===n.name){if(3===u.state)return kZ(s)
16110
- 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=6,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(kZ(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(r))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,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)
16115
+ for(c in o)if((u=o[c]).name===n.name){if(3===u.state)return SZ(s)
16116
+ 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=6,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(SZ(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(r))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,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)
16111
16117
  i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),r=-1,s=i.length;++r<s;)i[r].call(t,o)
16112
16118
  5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete o[e],o)return
16113
- delete t.__transition}o[e]=n,n.timer=yZ(r,0,n.time)}(t,n,{name:e,index:i,group:o,on:SZ,tween:$Z,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function IZ(t,e){var n=EZ(t,e)
16119
+ delete t.__transition}o[e]=n,n.timer=wZ(r,0,n.time)}(t,n,{name:e,index:i,group:o,on:$Z,tween:_Z,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function MZ(t,e){var n=AZ(t,e)
16114
16120
  if(n.state>0)throw new Error("too late; already scheduled")
16115
- return n}function MZ(t,e){var n=EZ(t,e)
16121
+ return n}function EZ(t,e){var n=AZ(t,e)
16116
16122
  if(n.state>3)throw new Error("too late; already running")
16117
- return n}function EZ(t,e){var n=t.__transition
16123
+ return n}function AZ(t,e){var n=t.__transition
16118
16124
  if(!n||!(n=n[e]))throw new Error("transition not found")
16119
- return n}function AZ(t,e){var n,i,o,r=t.__transition,s=!0
16125
+ return n}function TZ(t,e){var n,i,o,r=t.__transition,s=!0
16120
16126
  if(r){for(o in e=null==e?null:e+"",r)(n=r[o]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[o]):s=!1
16121
- s&&delete t.__transition}}function TZ(t,e){var n,i
16122
- return function(){var o=MZ(this,t),r=o.tween
16127
+ s&&delete t.__transition}}function DZ(t,e){var n,i
16128
+ return function(){var o=EZ(this,t),r=o.tween
16123
16129
  if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1)
16124
- break}o.tween=i}}function DZ(t,e,n){var i,o
16130
+ break}o.tween=i}}function OZ(t,e,n){var i,o
16125
16131
  if("function"!=typeof n)throw new Error
16126
- return function(){var r=MZ(this,t),s=r.tween
16132
+ return function(){var r=EZ(this,t),s=r.tween
16127
16133
  if(s!==i){o=(i=s).slice()
16128
16134
  for(var a={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=a
16129
- break}l===c&&o.push(a)}r.tween=o}}function OZ(t,e,n){var i=t._id
16130
- return t.each(function(){var t=MZ(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return EZ(t,i).value[e]}}function RZ(t,e){var n
16131
- return("number"==typeof e?qG:e instanceof xG?VG:(n=xG(e))?(e=n,VG):ZG)(t,e)}function FZ(t){return function(){this.removeAttribute(t)}}function LZ(t){return function(){this.removeAttributeNS(t.space,t.local)}}function BZ(t,e,n){var i,o,r=n+""
16135
+ break}l===c&&o.push(a)}r.tween=o}}function RZ(t,e,n){var i=t._id
16136
+ return t.each(function(){var t=EZ(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return AZ(t,i).value[e]}}function FZ(t,e){var n
16137
+ return("number"==typeof e?jG:e instanceof CG?zG:(n=CG(e))?(e=n,zG):KG)(t,e)}function LZ(t){return function(){this.removeAttribute(t)}}function BZ(t){return function(){this.removeAttributeNS(t.space,t.local)}}function NZ(t,e,n){var i,o,r=n+""
16132
16138
  return function(){var s=this.getAttribute(t)
16133
- return s===r?null:s===i?o:o=e(i=s,n)}}function NZ(t,e,n){var i,o,r=n+""
16139
+ return s===r?null:s===i?o:o=e(i=s,n)}}function PZ(t,e,n){var i,o,r=n+""
16134
16140
  return function(){var s=this.getAttributeNS(t.space,t.local)
16135
- return s===r?null:s===i?o:o=e(i=s,n)}}function PZ(t,e,n){var i,o,r
16141
+ return s===r?null:s===i?o:o=e(i=s,n)}}function VZ(t,e,n){var i,o,r
16136
16142
  return function(){var s,a,l=n(this)
16137
16143
  if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=e(i=s,l))
16138
- this.removeAttribute(t)}}function VZ(t,e,n){var i,o,r
16144
+ this.removeAttribute(t)}}function zZ(t,e,n){var i,o,r
16139
16145
  return function(){var s,a,l=n(this)
16140
16146
  if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=e(i=s,l))
16141
- this.removeAttributeNS(t.space,t.local)}}function zZ(t,e){var n,i
16147
+ this.removeAttributeNS(t.space,t.local)}}function HZ(t,e){var n,i
16142
16148
  function o(){var o=e.apply(this,arguments)
16143
- return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function HZ(t,e){var n,i
16149
+ return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function UZ(t,e){var n,i
16144
16150
  function o(){var o=e.apply(this,arguments)
16145
- return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function UZ(t,e){return function(){IZ(this,t).delay=+e.apply(this,arguments)}}function qZ(t,e){return e=+e,function(){IZ(this,t).delay=e}}function jZ(t,e){return function(){MZ(this,t).duration=+e.apply(this,arguments)}}function WZ(t,e){return e=+e,function(){MZ(this,t).duration=e}}var GZ=JW.prototype.constructor
16146
- function ZZ(t){return function(){this.style.removeProperty(t)}}var KZ=0
16147
- function YZ(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function XZ(){return++KZ}var JZ=JW.prototype
16148
- YZ.prototype={constructor:YZ,select:function(t){var e=this._name,n=this._id
16149
- "function"!=typeof t&&(t=Zj(t))
16150
- for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,_Z(h[u],e,n,u,h,EZ(a,n)))
16151
- return new YZ(r,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
16152
- "function"!=typeof t&&(t=Yj(t))
16153
- for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=EZ(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&_Z(u,e,n,m,p,f)
16154
- r.push(p),s.push(l)}return new YZ(r,s,e,n)},selectChild:JZ.selectChild,selectChildren:JZ.selectChildren,filter:function(t){"function"!=typeof t&&(t=Jj(t))
16151
+ return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function qZ(t,e){return function(){MZ(this,t).delay=+e.apply(this,arguments)}}function jZ(t,e){return e=+e,function(){MZ(this,t).delay=e}}function WZ(t,e){return function(){EZ(this,t).duration=+e.apply(this,arguments)}}function GZ(t,e){return e=+e,function(){EZ(this,t).duration=e}}var ZZ=QW.prototype.constructor
16152
+ function KZ(t){return function(){this.style.removeProperty(t)}}var YZ=0
16153
+ function XZ(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function JZ(){return++YZ}var QZ=QW.prototype
16154
+ XZ.prototype={constructor:XZ,select:function(t){var e=this._name,n=this._id
16155
+ "function"!=typeof t&&(t=Kj(t))
16156
+ for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,IZ(h[u],e,n,u,h,AZ(a,n)))
16157
+ return new XZ(r,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
16158
+ "function"!=typeof t&&(t=Xj(t))
16159
+ for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=AZ(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&IZ(u,e,n,m,p,f)
16160
+ r.push(p),s.push(l)}return new XZ(r,s,e,n)},selectChild:QZ.selectChild,selectChildren:QZ.selectChildren,filter:function(t){"function"!=typeof t&&(t=Qj(t))
16155
16161
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s=e[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&t.call(r,r.__data__,c,s)&&l.push(r)
16156
- return new YZ(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
16162
+ return new XZ(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
16157
16163
  for(var e=this._groups,n=t._groups,i=e.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=e[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
16158
16164
  for(;a<i;++a)s[a]=e[a]
16159
- return new YZ(s,this._parents,this._name,this._id)},selection:function(){return new GZ(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=XZ(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=EZ(s,e)
16160
- _Z(s,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new YZ(i,this._parents,t,n)},call:JZ.call,nodes:JZ.nodes,node:JZ.node,size:JZ.size,empty:JZ.empty,each:JZ.each,on:function(t,e){var n=this._id
16161
- return arguments.length<2?EZ(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,r=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".")
16162
- return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?IZ:MZ
16165
+ return new XZ(s,this._parents,this._name,this._id)},selection:function(){return new ZZ(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=JZ(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=AZ(s,e)
16166
+ IZ(s,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new XZ(i,this._parents,t,n)},call:QZ.call,nodes:QZ.nodes,node:QZ.node,size:QZ.size,empty:QZ.empty,each:QZ.each,on:function(t,e){var n=this._id
16167
+ return arguments.length<2?AZ(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,r=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".")
16168
+ return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?MZ:EZ
16163
16169
  return function(){var s=r(this,t),a=s.on
16164
- a!==i&&(o=(i=a).copy()).on(e,n),s.on=o}}(n,t,e))},attr:function(t,e){var n=Uj(t),i="transform"===n?iZ:RZ
16165
- return this.attrTween(t,"function"==typeof e?(n.local?VZ:PZ)(n,i,OZ(this,"attr."+t,e)):null==e?(n.local?LZ:FZ)(n):(n.local?NZ:BZ)(n,i,e))},attrTween:function(t,e){var n="attr."+t
16170
+ a!==i&&(o=(i=a).copy()).on(e,n),s.on=o}}(n,t,e))},attr:function(t,e){var n=qj(t),i="transform"===n?oZ:FZ
16171
+ return this.attrTween(t,"function"==typeof e?(n.local?zZ:VZ)(n,i,RZ(this,"attr."+t,e)):null==e?(n.local?BZ:LZ)(n):(n.local?PZ:NZ)(n,i,e))},attrTween:function(t,e){var n="attr."+t
16166
16172
  if(arguments.length<2)return(n=this.tween(n))&&n._value
16167
16173
  if(null==e)return this.tween(n,null)
16168
16174
  if("function"!=typeof e)throw new Error
16169
- var i=Uj(t)
16170
- return this.tween(n,(i.local?zZ:HZ)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?nZ:RZ
16175
+ var i=qj(t)
16176
+ return this.tween(n,(i.local?HZ:UZ)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?iZ:FZ
16171
16177
  return null==e?this.styleTween(t,function(t,e){var n,i,o
16172
- return function(){var r=xW(this,t),s=(this.style.removeProperty(t),xW(this,t))
16173
- return r===s?null:r===n&&s===i?o:o=e(n=r,i=s)}}(t,i)).on("end.style."+t,ZZ(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,r
16174
- return function(){var s=xW(this,t),a=n(this),l=a+""
16175
- return null==a&&(this.style.removeProperty(t),l=a=xW(this,t)),s===l?null:s===i&&l===o?r:(o=l,r=e(i=s,a))}}(t,i,OZ(this,"style."+t,e))).each(function(t,e){var n,i,o,r,s="style."+e,a="end."+s
16176
- return function(){var l=MZ(this,t),c=l.on,d=null==l.value[s]?r||(r=ZZ(e)):void 0
16178
+ return function(){var r=CW(this,t),s=(this.style.removeProperty(t),CW(this,t))
16179
+ return r===s?null:r===n&&s===i?o:o=e(n=r,i=s)}}(t,i)).on("end.style."+t,KZ(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,r
16180
+ return function(){var s=CW(this,t),a=n(this),l=a+""
16181
+ return null==a&&(this.style.removeProperty(t),l=a=CW(this,t)),s===l?null:s===i&&l===o?r:(o=l,r=e(i=s,a))}}(t,i,RZ(this,"style."+t,e))).each(function(t,e){var n,i,o,r,s="style."+e,a="end."+s
16182
+ return function(){var l=EZ(this,t),c=l.on,d=null==l.value[s]?r||(r=KZ(e)):void 0
16177
16183
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,r=n+""
16178
- return function(){var s=xW(this,t)
16184
+ return function(){var s=CW(this,t)
16179
16185
  return s===r?null:s===i?o:o=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
16180
16186
  if(arguments.length<2)return(i=this.tween(i))&&i._value
16181
16187
  if(null==e)return this.tween(i,null)
@@ -16183,7 +16189,7 @@ if("function"!=typeof e)throw new Error
16183
16189
  return this.tween(i,function(t,e,n){var i,o
16184
16190
  function r(){var r=e.apply(this,arguments)
16185
16191
  return r!==o&&(i=(o=r)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,r,n)),i}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
16186
- this.textContent=null==e?"":e}}(OZ(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
16192
+ this.textContent=null==e?"":e}}(RZ(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
16187
16193
  if(arguments.length<1)return(e=this.tween(e))&&e._value
16188
16194
  if(null==t)return this.tween(e,null)
16189
16195
  if("function"!=typeof t)throw new Error
@@ -16192,109 +16198,109 @@ function i(){var i=t.apply(this,arguments)
16192
16198
  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
16193
16199
  for(var n in this.__transition)if(+n!==t)return
16194
16200
  e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
16195
- if(t+="",arguments.length<2){for(var i,o=EZ(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===t)return i.value
16196
- return null}return this.each((null==e?TZ:DZ)(n,t,e))},delay:function(t){var e=this._id
16197
- return arguments.length?this.each(("function"==typeof t?UZ:qZ)(e,t)):EZ(this.node(),e).delay},duration:function(t){var e=this._id
16198
- return arguments.length?this.each(("function"==typeof t?jZ:WZ)(e,t)):EZ(this.node(),e).duration},ease:function(t){var e=this._id
16201
+ if(t+="",arguments.length<2){for(var i,o=AZ(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===t)return i.value
16202
+ return null}return this.each((null==e?DZ:OZ)(n,t,e))},delay:function(t){var e=this._id
16203
+ return arguments.length?this.each(("function"==typeof t?qZ:jZ)(e,t)):AZ(this.node(),e).delay},duration:function(t){var e=this._id
16204
+ return arguments.length?this.each(("function"==typeof t?WZ:GZ)(e,t)):AZ(this.node(),e).duration},ease:function(t){var e=this._id
16199
16205
  return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
16200
- return function(){MZ(this,t).ease=e}}(e,t)):EZ(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
16206
+ return function(){EZ(this,t).ease=e}}(e,t)):AZ(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
16201
16207
  return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
16202
16208
  if("function"!=typeof n)throw new Error
16203
- MZ(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
16209
+ EZ(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
16204
16210
  return new Promise(function(r,s){var a={value:s},l={value:function(){0===--o&&r()}}
16205
- n.each(function(){var n=MZ(this,i),o=n.on
16206
- o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===o&&r()})},[Symbol.iterator]:JZ[Symbol.iterator]}
16207
- var QZ={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
16208
- function tK(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
16209
- return n}JW.prototype.interrupt=function(t){return this.each(function(){AZ(this,t)})},JW.prototype.transition=function(t){var e,n
16210
- t instanceof YZ?(e=t._id,t=t._name):(e=XZ(),(n=QZ).time=gZ(),t=null==t?null:t+"")
16211
- for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&_Z(s,t,e,c,a,n||tK(s,e))
16212
- return new YZ(i,this._parents,t,e)}
16213
- var eK=t=>()=>t
16214
- function nK(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){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:o}})}function iK(t,e,n){this.k=t,this.x=e,this.y=n}iK.prototype={constructor:iK,scale:function(t){return 1===t?this:new iK(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new iK(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+")"}}
16215
- var oK=new iK(1,0,0)
16216
- function rK(t){t.stopImmediatePropagation()}function sK(t){t.preventDefault(),t.stopImmediatePropagation()}function aK(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function lK(){var t=this
16217
- 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 cK(){return this.__zoom||oK}function dK(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function hK(){return navigator.maxTouchPoints||"ontouchstart"in this}function uK(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],r=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1]
16218
- return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function pK(){var t,e,n,i=aK,o=lK,r=uK,s=dK,a=hK,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=aZ,u=Bj("start","zoom","end"),p=0,f=10
16219
- function m(t){t.property("__zoom",cK).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",$).on("touchmove.zoom",_).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new iK(e,t.x,t.y)}function v(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
16220
- return i===t.x&&o===t.y?t:new iK(t.k,i,o)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,e,n,i){t.on("start.zoom",function(){w(this,arguments).event(i).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(i).end()}).tween("zoom",function(){var t=this,r=arguments,s=w(t,r).event(i),a=o.apply(t,r),l=null==n?b(a):"function"==typeof n?n.apply(t,r):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,r):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
16211
+ n.each(function(){var n=EZ(this,i),o=n.on
16212
+ o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===o&&r()})},[Symbol.iterator]:QZ[Symbol.iterator]}
16213
+ var tK={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
16214
+ function eK(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
16215
+ return n}QW.prototype.interrupt=function(t){return this.each(function(){TZ(this,t)})},QW.prototype.transition=function(t){var e,n
16216
+ t instanceof XZ?(e=t._id,t=t._name):(e=JZ(),(n=tK).time=vZ(),t=null==t?null:t+"")
16217
+ for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&IZ(s,t,e,c,a,n||eK(s,e))
16218
+ return new XZ(i,this._parents,t,e)}
16219
+ var nK=t=>()=>t
16220
+ function iK(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){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:o}})}function oK(t,e,n){this.k=t,this.x=e,this.y=n}oK.prototype={constructor:oK,scale:function(t){return 1===t?this:new oK(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new oK(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+")"}}
16221
+ var rK=new oK(1,0,0)
16222
+ function sK(t){t.stopImmediatePropagation()}function aK(t){t.preventDefault(),t.stopImmediatePropagation()}function lK(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function cK(){var t=this
16223
+ 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 dK(){return this.__zoom||rK}function hK(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function uK(){return navigator.maxTouchPoints||"ontouchstart"in this}function pK(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],r=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1]
16224
+ return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function fK(){var t,e,n,i=lK,o=cK,r=pK,s=hK,a=uK,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=lZ,u=Nj("start","zoom","end"),p=0,f=10
16225
+ function m(t){t.property("__zoom",dK).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",$).on("touchmove.zoom",_).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new oK(e,t.x,t.y)}function v(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
16226
+ return i===t.x&&o===t.y?t:new oK(t.k,i,o)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,e,n,i){t.on("start.zoom",function(){w(this,arguments).event(i).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(i).end()}).tween("zoom",function(){var t=this,r=arguments,s=w(t,r).event(i),a=o.apply(t,r),l=null==n?b(a):"function"==typeof n?n.apply(t,r):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,r):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
16221
16227
  return function(t){if(1===t)t=u
16222
16228
  else{var e=p(t),n=c/e[2]
16223
- t=new iK(n,l[0]-e[0]*n,l[1]-e[1]*n)}s.zoom(null,t)}})}function w(t,e,n){return!n&&t.__zooming||new x(t,e)}function x(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function C(t,...e){if(i.apply(this,arguments)){var n=w(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=tG(t)
16229
+ t=new oK(n,l[0]-e[0]*n,l[1]-e[1]*n)}s.zoom(null,t)}})}function w(t,e,n){return!n&&t.__zooming||new x(t,e)}function x(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function C(t,...e){if(i.apply(this,arguments)){var n=w(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=eG(t)
16224
16230
  if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
16225
16231
  else{if(o.k===a)return
16226
- n.mouse=[d,o.invert(d)],AZ(this),n.start()}sK(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",r(v(g(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,s=w(this,e,!0).event(t),a=QW(t.view).on("mousemove.zoom",function(t){if(sK(t),!s.moved){var e=t.clientX-d,n=t.clientY-h
16227
- s.moved=e*e+n*n>p}s.event(t).zoom("mouse",r(v(s.that.__zoom,s.mouse[0]=tG(t,o),s.mouse[1]),s.extent,c))},!0).on("mouseup.zoom",function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=QW(t).on("dragstart.drag",null)
16228
- e&&(i.on("click.drag",nG,eG),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,s.moved),sK(t),s.event(t).end()},!0),l=tG(t,o),d=t.clientX,h=t.clientY
16229
- !function(t){var e=t.document.documentElement,n=QW(t).on("dragstart.drag",nG,eG)
16230
- "onselectstart"in e?n.on("selectstart.drag",nG,eG):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),rK(t),s.mouse=[l,this.__zoom.invert(l)],AZ(this),s.start()}}function S(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,s=tG(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(s),l=n.k*(t.shiftKey?.5:2),h=r(v(g(n,l),s,a),o.apply(this,e),c)
16231
- sK(t),d>0?QW(this).transition().duration(d).call(y,h,s,t):QW(this).call(m.transform,h,s,t)}}function $(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=w(this,o,n.changedTouches.length===d).event(n)
16232
- for(rK(n),s=0;s<d;++s)l=[l=tG(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!t)
16233
- t&&(t=clearTimeout(t)),r&&(h.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),AZ(this),h.start())}}function _(t,...e){if(this.__zooming){var n,i,o,s,a=w(this,e).event(t),l=t.changedTouches,d=l.length
16234
- for(sK(t),n=0;n<d;++n)o=tG(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
16232
+ n.mouse=[d,o.invert(d)],TZ(this),n.start()}aK(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",r(v(g(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,s=w(this,e,!0).event(t),a=tG(t.view).on("mousemove.zoom",function(t){if(aK(t),!s.moved){var e=t.clientX-d,n=t.clientY-h
16233
+ s.moved=e*e+n*n>p}s.event(t).zoom("mouse",r(v(s.that.__zoom,s.mouse[0]=eG(t,o),s.mouse[1]),s.extent,c))},!0).on("mouseup.zoom",function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=tG(t).on("dragstart.drag",null)
16234
+ e&&(i.on("click.drag",iG,nG),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,s.moved),aK(t),s.event(t).end()},!0),l=eG(t,o),d=t.clientX,h=t.clientY
16235
+ !function(t){var e=t.document.documentElement,n=tG(t).on("dragstart.drag",iG,nG)
16236
+ "onselectstart"in e?n.on("selectstart.drag",iG,nG):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),sK(t),s.mouse=[l,this.__zoom.invert(l)],TZ(this),s.start()}}function S(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,s=eG(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(s),l=n.k*(t.shiftKey?.5:2),h=r(v(g(n,l),s,a),o.apply(this,e),c)
16237
+ aK(t),d>0?tG(this).transition().duration(d).call(y,h,s,t):tG(this).call(m.transform,h,s,t)}}function $(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=w(this,o,n.changedTouches.length===d).event(n)
16238
+ for(sK(n),s=0;s<d;++s)l=[l=eG(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!t)
16239
+ t&&(t=clearTimeout(t)),r&&(h.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),TZ(this),h.start())}}function _(t,...e){if(this.__zooming){var n,i,o,s,a=w(this,e).event(t),l=t.changedTouches,d=l.length
16240
+ for(aK(t),n=0;n<d;++n)o=eG(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
16235
16241
  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,b=(b=f[0]-u[0])*b+(b=f[1]-u[1])*b
16236
16242
  i=g(i,Math.sqrt(m/b)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
16237
16243
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(v(i,o,s),a.extent,c))}}function I(t,...i){if(this.__zooming){var o,r,s=w(this,i).event(t),a=t.changedTouches,l=a.length
16238
- for(rK(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
16244
+ for(sK(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
16239
16245
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
16240
- else if(s.end(),2===s.taps&&(r=tG(r,this),Math.hypot(e[0]-r[0],e[1]-r[1])<f)){var c=QW(this).on("dblclick.zoom")
16246
+ else if(s.end(),2===s.taps&&(r=eG(r,this),Math.hypot(e[0]-r[0],e[1]-r[1])<f)){var c=tG(this).on("dblclick.zoom")
16241
16247
  c&&c.apply(this,arguments)}}}return m.transform=function(t,e,n,i){var o=t.selection?t.selection():t
16242
- o.property("__zoom",cK),t!==o?y(t,e,n,i):o.interrupt().each(function(){w(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},m.scaleBy=function(t,e,n,i){m.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,i)},m.scaleTo=function(t,e,n,i){m.transform(t,function(){var t=o.apply(this,arguments),i=this.__zoom,s=null==n?b(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof e?e.apply(this,arguments):e
16248
+ o.property("__zoom",dK),t!==o?y(t,e,n,i):o.interrupt().each(function(){w(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},m.scaleBy=function(t,e,n,i){m.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,i)},m.scaleTo=function(t,e,n,i){m.transform(t,function(){var t=o.apply(this,arguments),i=this.__zoom,s=null==n?b(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof e?e.apply(this,arguments):e
16243
16249
  return r(v(g(i,l),s,a),t,c)},n,i)},m.translateBy=function(t,e,n,i){m.transform(t,function(){return r(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)},null,i)},m.translateTo=function(t,e,n,i,s){m.transform(t,function(){var t=o.apply(this,arguments),s=this.__zoom,a=null==i?b(t):"function"==typeof i?i.apply(this,arguments):i
16244
- return r(oK.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},i,s)},x.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=QW(this.that).datum()
16245
- u.call(t,this.that,new nK(t,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:u}),e)}},m.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:eK(+t),m):s},m.filter=function(t){return arguments.length?(i="function"==typeof t?t:eK(!!t),m):i},m.touchable=function(t){return arguments.length?(a="function"==typeof t?t:eK(!!t),m):a},m.extent=function(t){return arguments.length?(o="function"==typeof t?t:eK([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):o},m.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],m):[l[0],l[1]]},m.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],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(t){return arguments.length?(r=t,m):r},m.duration=function(t){return arguments.length?(d=+t,m):d},m.interpolate=function(t){return arguments.length?(h=t,m):h},m.on=function(){var t=u.on.apply(u,arguments)
16246
- return t===u?m:t},m.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,m):Math.sqrt(p)},m.tapDistance=function(t){return arguments.length?(f=+t,m):f},m}iK.prototype
16247
- const fK=new TextDecoder("utf-8"),mK=fK.decode.bind(fK),gK=new TextEncoder,vK=t=>gK.encode(t),bK=t=>"function"==typeof t,yK=t=>null!=t&&Object(t)===t,wK=t=>yK(t)&&bK(t.then),xK=t=>yK(t)&&bK(t[Symbol.iterator]),CK=t=>yK(t)&&bK(t[Symbol.asyncIterator]),kK=t=>yK(t)&&yK(t.schema),SK=t=>yK(t)&&"done"in t&&"value"in t,$K=t=>yK(t)&&bK(t.stat)&&(t=>"number"==typeof t)(t.fd),_K=t=>yK(t)&&MK(t.body),IK=t=>"_getDOMStream"in t&&"_getNodeStream"in t,MK=t=>yK(t)&&bK(t.cancel)&&bK(t.getReader)&&!IK(t),EK=t=>yK(t)&&bK(t.read)&&bK(t.pipe)&&(t=>"boolean"==typeof t)(t.readable)&&!IK(t),AK="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer
16248
- function TK(t,e,n=0,i=e.byteLength){const o=t.byteLength,r=new Uint8Array(t.buffer,t.byteOffset,o),s=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,o))
16249
- return r.set(s,n),t}function DK(t,e){const n=function(t){const e=t[0]?[t[0]]:[]
16250
+ return r(rK.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)},i,s)},x.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=tG(this.that).datum()
16251
+ u.call(t,this.that,new iK(t,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:u}),e)}},m.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:nK(+t),m):s},m.filter=function(t){return arguments.length?(i="function"==typeof t?t:nK(!!t),m):i},m.touchable=function(t){return arguments.length?(a="function"==typeof t?t:nK(!!t),m):a},m.extent=function(t){return arguments.length?(o="function"==typeof t?t:nK([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),m):o},m.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],m):[l[0],l[1]]},m.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],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(t){return arguments.length?(r=t,m):r},m.duration=function(t){return arguments.length?(d=+t,m):d},m.interpolate=function(t){return arguments.length?(h=t,m):h},m.on=function(){var t=u.on.apply(u,arguments)
16252
+ return t===u?m:t},m.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,m):Math.sqrt(p)},m.tapDistance=function(t){return arguments.length?(f=+t,m):f},m}oK.prototype
16253
+ const mK=new TextDecoder("utf-8"),gK=mK.decode.bind(mK),vK=new TextEncoder,bK=t=>vK.encode(t),yK=t=>"function"==typeof t,wK=t=>null!=t&&Object(t)===t,xK=t=>wK(t)&&yK(t.then),CK=t=>wK(t)&&yK(t[Symbol.iterator]),kK=t=>wK(t)&&yK(t[Symbol.asyncIterator]),SK=t=>wK(t)&&wK(t.schema),$K=t=>wK(t)&&"done"in t&&"value"in t,_K=t=>wK(t)&&yK(t.stat)&&(t=>"number"==typeof t)(t.fd),IK=t=>wK(t)&&EK(t.body),MK=t=>"_getDOMStream"in t&&"_getNodeStream"in t,EK=t=>wK(t)&&yK(t.cancel)&&yK(t.getReader)&&!MK(t),AK=t=>wK(t)&&yK(t.read)&&yK(t.pipe)&&(t=>"boolean"==typeof t)(t.readable)&&!MK(t),TK="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer
16254
+ function DK(t,e,n=0,i=e.byteLength){const o=t.byteLength,r=new Uint8Array(t.buffer,t.byteOffset,o),s=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,o))
16255
+ return r.set(s,n),t}function OK(t,e){const n=function(t){const e=t[0]?[t[0]]:[]
16250
16256
  let n,i,o,r
16251
16257
  for(let s,a,l=0,c=0,d=t.length;++l<d;)s=e[c],a=t[l],!s||!a||s.buffer!==a.buffer||a.byteOffset<s.byteOffset?a&&(e[++c]=a):(({byteOffset:n,byteLength:o}=s),({byteOffset:i,byteLength:r}=a),n+o<i||i+r<n?a&&(e[++c]=a):e[c]=new Uint8Array(s.buffer,n,i-n+r))
16252
16258
  return e}(t),i=n.reduce((t,e)=>t+e.byteLength,0)
16253
16259
  let o,r,s,a=0,l=-1
16254
16260
  const c=Math.min(e||Number.POSITIVE_INFINITY,i)
16255
- for(const t=n.length;++l<t;){if(o=n[l],r=o.subarray(0,Math.min(o.length,c-a)),c<=a+r.length){r.length<o.length?n[l]=o.subarray(r.length):r.length===o.length&&l++,s?TK(s,r,a):s=r
16256
- break}TK(s||(s=new Uint8Array(c)),r,a),a+=r.length}return[s||new Uint8Array(0),n.slice(l),i-(s?s.byteLength:0)]}function OK(t,e){let n=SK(e)?e.value:e
16257
- return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"==typeof n&&(n=vK(n)),n instanceof ArrayBuffer||n instanceof AK?new t(n):yK(i=n)&&bK(i.clear)&&bK(i.bytes)&&bK(i.position)&&bK(i.setPosition)&&bK(i.capacity)&&bK(i.getBufferIdentifier)&&bK(i.createLong)?OK(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)
16258
- var i}const RK=t=>OK(Int32Array,t),FK=t=>OK(BigInt64Array,t),LK=t=>OK(Uint8Array,t),BK=t=>(t.next(),t)
16259
- const NK=t=>function*(t,e){const n=function*(t){yield t},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof AK?n(e):xK(e)?e:n(e)
16260
- return yield*BK(function*(e){let n=null
16261
- do{n=e.next(yield OK(t,n))}while(!n.done)}(i[Symbol.iterator]())),new t}(Uint8Array,t)
16262
- function PK(t,e){return o(this,arguments,function*(){if(wK(e))return yield i(yield i(yield*r(s(PK(t,yield i(e))))))
16263
- const n=function(t){return o(this,arguments,function*(){yield yield i(yield i(t))})},a="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof AK?n(e):xK(e)?function(t){return o(this,arguments,function*(){yield i(yield*r(s(BK(function*(t){let e=null
16264
- do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))})}(e):CK(e)?e:n(e)
16265
- return yield i(yield*r(s(BK(function(e){return o(this,arguments,function*(){let n=null
16266
- do{n=yield i(e.next(yield yield i(OK(t,n))))}while(!n.done)})}(a[Symbol.asyncIterator]()))))),yield i(new t)})}const VK=t=>PK(Uint8Array,t)
16267
- var zK={fromIterable:t=>HK(function*(t){let e,n,i,o,r=!1,s=[],a=0
16268
- function l(){return"peek"===i?DK(s,o)[0]:([n,s,a]=DK(s,o),n)}({cmd:i,size:o}=(yield null)||{cmd:"read",size:0})
16269
- const c=NK(t)[Symbol.iterator]()
16270
- try{do{if(({done:e,value:n}=Number.isNaN(o-a)?c.next():c.next(o-a)),!e&&n.byteLength>0&&(s.push(n),a+=n.byteLength),e||o<=a)do{({cmd:i,size:o}=yield l())}while(o<a)}while(!e)}catch(t){r=!0,"function"==typeof c.throw&&c.throw(t)}finally{!1===r&&"function"==typeof c.return&&c.return(null)}return null}(t)),fromAsyncIterable:t=>HK(function(t){return o(this,arguments,function*(){let e,n,o,r,s=!1,a=[],l=0
16271
- function c(){return"peek"===o?DK(a,r)[0]:([n,a,l]=DK(a,r),n)}({cmd:o,size:r}=(yield yield i(null))||{cmd:"read",size:0})
16272
- const d=VK(t)[Symbol.asyncIterator]()
16273
- try{do{if(({done:e,value:n}=Number.isNaN(r-l)?yield i(d.next()):yield i(d.next(r-l))),!e&&n.byteLength>0&&(a.push(n),l+=n.byteLength),e||r<=l)do{({cmd:o,size:r}=yield yield i(c()))}while(r<l)}while(!e)}catch(t){s=!0,"function"==typeof d.throw&&(yield i(d.throw(t)))}finally{!1===s&&"function"==typeof d.return&&(yield i(d.return(new Uint8Array(0))))}return yield i(null)})}(t)),fromDOMStream:t=>HK(function(t){return o(this,arguments,function*(){let e,n,o,r=!1,s=!1,a=[],l=0
16274
- function c(){return"peek"===n?DK(a,o)[0]:([e,a,l]=DK(a,o),e)}({cmd:n,size:o}=(yield yield i(null))||{cmd:"read",size:0})
16275
- const d=new UK(t)
16276
- try{do{if(({done:r,value:e}=Number.isNaN(o-l)?yield i(d.read()):yield i(d.read(o-l))),!r&&e.byteLength>0&&(a.push(LK(e)),l+=e.byteLength),r||o<=l)do{({cmd:n,size:o}=yield yield i(c()))}while(o<l)}while(!r)}catch(t){s=!0,yield i(d.cancel(t))}finally{!1===s?yield i(d.cancel()):t.locked&&d.releaseLock()}return yield i(null)})}(t)),fromNodeStream:t=>HK(function(t){return o(this,arguments,function*(){const e=[]
16261
+ for(const t=n.length;++l<t;){if(o=n[l],r=o.subarray(0,Math.min(o.length,c-a)),c<=a+r.length){r.length<o.length?n[l]=o.subarray(r.length):r.length===o.length&&l++,s?DK(s,r,a):s=r
16262
+ break}DK(s||(s=new Uint8Array(c)),r,a),a+=r.length}return[s||new Uint8Array(0),n.slice(l),i-(s?s.byteLength:0)]}function RK(t,e){let n=$K(e)?e.value:e
16263
+ return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"==typeof n&&(n=bK(n)),n instanceof ArrayBuffer||n instanceof TK?new t(n):wK(i=n)&&yK(i.clear)&&yK(i.bytes)&&yK(i.position)&&yK(i.setPosition)&&yK(i.capacity)&&yK(i.getBufferIdentifier)&&yK(i.createLong)?RK(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)
16264
+ var i}const FK=t=>RK(Int32Array,t),LK=t=>RK(BigInt64Array,t),BK=t=>RK(Uint8Array,t),NK=t=>(t.next(),t)
16265
+ const PK=t=>function*(t,e){const n=function*(t){yield t},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof TK?n(e):CK(e)?e:n(e)
16266
+ return yield*NK(function*(e){let n=null
16267
+ do{n=e.next(yield RK(t,n))}while(!n.done)}(i[Symbol.iterator]())),new t}(Uint8Array,t)
16268
+ function VK(t,e){return o(this,arguments,function*(){if(xK(e))return yield i(yield i(yield*r(s(VK(t,yield i(e))))))
16269
+ const n=function(t){return o(this,arguments,function*(){yield yield i(yield i(t))})},a="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof TK?n(e):CK(e)?function(t){return o(this,arguments,function*(){yield i(yield*r(s(NK(function*(t){let e=null
16270
+ do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))})}(e):kK(e)?e:n(e)
16271
+ return yield i(yield*r(s(NK(function(e){return o(this,arguments,function*(){let n=null
16272
+ do{n=yield i(e.next(yield yield i(RK(t,n))))}while(!n.done)})}(a[Symbol.asyncIterator]()))))),yield i(new t)})}const zK=t=>VK(Uint8Array,t)
16273
+ var HK={fromIterable:t=>UK(function*(t){let e,n,i,o,r=!1,s=[],a=0
16274
+ function l(){return"peek"===i?OK(s,o)[0]:([n,s,a]=OK(s,o),n)}({cmd:i,size:o}=(yield null)||{cmd:"read",size:0})
16275
+ const c=PK(t)[Symbol.iterator]()
16276
+ try{do{if(({done:e,value:n}=Number.isNaN(o-a)?c.next():c.next(o-a)),!e&&n.byteLength>0&&(s.push(n),a+=n.byteLength),e||o<=a)do{({cmd:i,size:o}=yield l())}while(o<a)}while(!e)}catch(t){r=!0,"function"==typeof c.throw&&c.throw(t)}finally{!1===r&&"function"==typeof c.return&&c.return(null)}return null}(t)),fromAsyncIterable:t=>UK(function(t){return o(this,arguments,function*(){let e,n,o,r,s=!1,a=[],l=0
16277
+ function c(){return"peek"===o?OK(a,r)[0]:([n,a,l]=OK(a,r),n)}({cmd:o,size:r}=(yield yield i(null))||{cmd:"read",size:0})
16278
+ const d=zK(t)[Symbol.asyncIterator]()
16279
+ try{do{if(({done:e,value:n}=Number.isNaN(r-l)?yield i(d.next()):yield i(d.next(r-l))),!e&&n.byteLength>0&&(a.push(n),l+=n.byteLength),e||r<=l)do{({cmd:o,size:r}=yield yield i(c()))}while(r<l)}while(!e)}catch(t){s=!0,"function"==typeof d.throw&&(yield i(d.throw(t)))}finally{!1===s&&"function"==typeof d.return&&(yield i(d.return(new Uint8Array(0))))}return yield i(null)})}(t)),fromDOMStream:t=>UK(function(t){return o(this,arguments,function*(){let e,n,o,r=!1,s=!1,a=[],l=0
16280
+ function c(){return"peek"===n?OK(a,o)[0]:([e,a,l]=OK(a,o),e)}({cmd:n,size:o}=(yield yield i(null))||{cmd:"read",size:0})
16281
+ const d=new qK(t)
16282
+ try{do{if(({done:r,value:e}=Number.isNaN(o-l)?yield i(d.read()):yield i(d.read(o-l))),!r&&e.byteLength>0&&(a.push(BK(e)),l+=e.byteLength),r||o<=l)do{({cmd:n,size:o}=yield yield i(c()))}while(o<l)}while(!r)}catch(t){s=!0,yield i(d.cancel(t))}finally{!1===s?yield i(d.cancel()):t.locked&&d.releaseLock()}return yield i(null)})}(t)),fromNodeStream:t=>UK(function(t){return o(this,arguments,function*(){const e=[]
16277
16283
  let n,o,r,s="error",a=!1,l=null,c=0,d=[]
16278
- function h(){return"peek"===n?DK(d,o)[0]:([r,d,c]=DK(d,o),r)}if(({cmd:n,size:o}=(yield yield i(null))||{cmd:"read",size:0}),t.isTTY)return yield yield i(new Uint8Array(0)),yield i(null)
16279
- try{e[0]=qK(t,"end"),e[1]=qK(t,"error")
16280
- do{if(e[2]=qK(t,"readable"),[s,l]=yield i(Promise.race(e.map(t=>t[2]))),"error"===s)break
16281
- if((a="end"===s)||(Number.isFinite(o-c)?(r=LK(t.read(o-c)),r.byteLength<o-c&&(r=LK(t.read()))):r=LK(t.read()),r.byteLength>0&&(d.push(r),c+=r.byteLength)),a||o<=c)do{({cmd:n,size:o}=yield yield i(h()))}while(o<c)}while(!a)}finally{yield i(u(e,"error"===s?l:null))}return yield i(null)
16284
+ function h(){return"peek"===n?OK(d,o)[0]:([r,d,c]=OK(d,o),r)}if(({cmd:n,size:o}=(yield yield i(null))||{cmd:"read",size:0}),t.isTTY)return yield yield i(new Uint8Array(0)),yield i(null)
16285
+ try{e[0]=jK(t,"end"),e[1]=jK(t,"error")
16286
+ do{if(e[2]=jK(t,"readable"),[s,l]=yield i(Promise.race(e.map(t=>t[2]))),"error"===s)break
16287
+ if((a="end"===s)||(Number.isFinite(o-c)?(r=BK(t.read(o-c)),r.byteLength<o-c&&(r=BK(t.read()))):r=BK(t.read()),r.byteLength>0&&(d.push(r),c+=r.byteLength)),a||o<=c)do{({cmd:n,size:o}=yield yield i(h()))}while(o<c)}while(!a)}finally{yield i(u(e,"error"===s?l:null))}return yield i(null)
16282
16288
  function u(e,n){return r=d=null,new Promise((i,o)=>{for(const[n,i]of e)t.off(n,i)
16283
16289
  try{const e=t.destroy
16284
16290
  e&&e.call(t,n),n=void 0}catch(t){n=t||n}finally{null!=n?o(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')}}
16285
- const HK=t=>(t.next(),t)
16286
- class UK{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
16291
+ const UK=t=>(t.next(),t)
16292
+ class qK{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
16287
16293
  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)}
16288
16294
  const e=yield this.reader.read()
16289
- return!e.done&&(e.value=LK(e)),e})}}const qK=(t,e)=>{const n=t=>i([e,t])
16295
+ return!e.done&&(e.value=BK(e)),e})}}const jK=(t,e)=>{const n=t=>i([e,t])
16290
16296
  let i
16291
16297
  return[e,n,new Promise(o=>(i=o)&&t.once(e,n))]}
16292
- var jK,WK,GK,ZK,KK,YK
16293
- !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"}(jK||(jK={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(WK||(WK={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(GK||(GK={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(ZK||(ZK={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(KK||(KK={})),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"}(YK||(YK={}))
16294
- const XK=new Int32Array(2),JK=new Float32Array(XK.buffer),QK=new Float64Array(XK.buffer),tY=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0]
16295
- var eY
16296
- !function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(eY||(eY={}))
16297
- let nY=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 XK[0]=this.readInt32(t),JK[0]}readFloat64(t){return XK[tY?0:1]=this.readInt32(t),XK[tY?1:0]=this.readInt32(t+4),QK[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){JK[0]=e,this.writeInt32(t,XK[0])}writeFloat64(t,e){QK[0]=e,this.writeInt32(t,XK[tY?0:1]),this.writeInt32(t+4,XK[tY?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.")
16298
+ var WK,GK,ZK,KK,YK,XK
16299
+ !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"}(WK||(WK={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(GK||(GK={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(ZK||(ZK={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(KK||(KK={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(YK||(YK={})),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"}(XK||(XK={}))
16300
+ const JK=new Int32Array(2),QK=new Float32Array(JK.buffer),tY=new Float64Array(JK.buffer),eY=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0]
16301
+ var nY
16302
+ !function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(nY||(nY={}))
16303
+ let iY=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 JK[0]=this.readInt32(t),QK[0]}readFloat64(t){return JK[eY?0:1]=this.readInt32(t),JK[eY?1:0]=this.readInt32(t+4),tY[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){QK[0]=e,this.writeInt32(t,JK[0])}writeFloat64(t,e){tY[0]=e,this.writeInt32(t,JK[eY?0:1]),this.writeInt32(t+4,JK[eY?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.")
16298
16304
  let t=""
16299
16305
  for(let e=0;e<4;e++)t+=String.fromCharCode(this.readInt8(this.position_+4+e))
16300
16306
  return t}__offset(t,e){const n=t-this.readInt32(t)
@@ -16302,19 +16308,19 @@ return e<this.readInt16(n)?this.readInt16(n+e):0}__union(t,e){return t.bb_pos=e+
16302
16308
  const n=this.readInt32(t)
16303
16309
  t+=4
16304
16310
  const i=this.bytes_.subarray(t,t+n)
16305
- return e===eY.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")
16311
+ return e===nY.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")
16306
16312
  for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1
16307
16313
  return!0}createScalarList(t,e){const n=[]
16308
16314
  for(let i=0;i<e;++i){const e=t(i)
16309
16315
  null!==e&&n.push(e)}return n}createObjList(t,e){const n=[]
16310
16316
  for(let i=0;i<e;++i){const e=t(i)
16311
- null!==e&&n.push(e.unpack())}return n}},iY=class t{constructor(t){let e
16312
- 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=nY.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)
16317
+ null!==e&&n.push(e.unpack())}return n}},oY=class t{constructor(t){let e
16318
+ 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=iY.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)
16313
16319
  const i=1+~(this.bb.capacity()-this.space+n)&e-1
16314
16320
  for(;this.space<i+e+n;){const e=this.bb.capacity()
16315
16321
  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()
16316
16322
  if(3221225472&e)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.")
16317
- const n=e<<1,i=nY.allocate(n)
16323
+ const n=e<<1,i=iY.allocate(n)
16318
16324
  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
16319
16325
  for(let e=0;e<t;e++)this.vtable[e]=0
16320
16326
  this.isNested=!0,this.object_start=this.offset()}endObject(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject")
@@ -16344,110 +16350,110 @@ return e=t instanceof Uint8Array?t:this.text_encoder.encode(t),this.addInt8(0),t
16344
16350
  for(let n=0;n<t.length;++n){const i=t[n]
16345
16351
  if(null===i)throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")
16346
16352
  e.push(this.createObjectOffset(i))}return e}createStructOffsetList(t,e){return e(this,t.length),this.createObjectOffsetList(t.slice().reverse()),this.endVector()}}
16347
- var oY,rY
16348
- !function(t){t[t.BUFFER=0]="BUFFER"}(oY||(oY={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(rY||(rY={}))
16349
- let sY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}codec(){const t=this.bb.__offset(this.bb_pos,4)
16350
- return t?this.bb.readInt8(this.bb_pos+t):rY.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6)
16351
- return t?this.bb.readInt8(this.bb_pos+t):oY.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,rY.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,oY.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(e,n,i){return t.startBodyCompression(e),t.addCodec(e,n),t.addMethod(e,i),t.endBodyCompression(e)}}
16352
- class aY{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 lY=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()}},cY=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)
16353
+ var rY,sY
16354
+ !function(t){t[t.BUFFER=0]="BUFFER"}(rY||(rY={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(sY||(sY={}))
16355
+ let aY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}codec(){const t=this.bb.__offset(this.bb_pos,4)
16356
+ return t?this.bb.readInt8(this.bb_pos+t):sY.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6)
16357
+ return t?this.bb.readInt8(this.bb_pos+t):rY.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,sY.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,rY.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(e,n,i){return t.startBodyCompression(e),t.addCodec(e,n),t.addMethod(e,i),t.endBodyCompression(e)}}
16358
+ class lY{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 cY=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()}},dY=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)
16353
16359
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}nodes(t,e){const n=this.bb.__offset(this.bb_pos,6)
16354
- return n?(e||new lY).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6)
16360
+ return n?(e||new cY).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6)
16355
16361
  return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){const n=this.bb.__offset(this.bb_pos,8)
16356
- return n?(e||new aY).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8)
16362
+ return n?(e||new lY).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8)
16357
16363
  return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){const e=this.bb.__offset(this.bb_pos,10)
16358
- return e?(t||new sY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}variadicBufferCounts(t){const e=this.bb.__offset(this.bb_pos,12)
16364
+ return e?(t||new aY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}variadicBufferCounts(t){const e=this.bb.__offset(this.bb_pos,12)
16359
16365
  return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):BigInt(0)}variadicBufferCountsLength(){const t=this.bb.__offset(this.bb_pos,12)
16360
16366
  return t?this.bb.__vector_len(this.bb_pos+t):0}static startRecordBatch(t){t.startObject(5)}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 addVariadicBufferCounts(t,e){t.addFieldOffset(4,e,0)}static createVariadicBufferCountsVector(t,e){t.startVector(8,e.length,8)
16361
16367
  for(let n=e.length-1;n>=0;n--)t.addInt64(e[n])
16362
- return t.endVector()}static startVariadicBufferCountsVector(t,e){t.startVector(8,e,8)}static endRecordBatch(t){return t.endObject()}},dY=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)
16368
+ return t.endVector()}static startVariadicBufferCountsVector(t,e){t.startVector(8,e,8)}static endRecordBatch(t){return t.endObject()}},hY=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)
16363
16369
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}data(t){const e=this.bb.__offset(this.bb_pos,6)
16364
- return e?(t||new cY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8)
16370
+ return e?(t||new dY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8)
16365
16371
  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()}}
16366
- var hY,uY
16367
- !function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(hY||(hY={})),function(t){t[t.DenseArray=0]="DenseArray"}(uY||(uY={}))
16368
- class pY{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 pY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new pY).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4)
16372
+ var uY,pY
16373
+ !function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(uY||(uY={})),function(t){t[t.DenseArray=0]="DenseArray"}(pY||(pY={}))
16374
+ class fY{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 fY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new fY).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4)
16369
16375
  return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){const t=this.bb.__offset(this.bb_pos,6)
16370
- 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 pY.startInt(t),pY.addBitWidth(t,e),pY.addIsSigned(t,n),pY.endInt(t)}}class fY{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 fY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new fY).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4)
16376
+ 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 fY.startInt(t),fY.addBitWidth(t,e),fY.addIsSigned(t,n),fY.endInt(t)}}class mY{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 mY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new mY).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4)
16371
16377
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}indexType(t){const e=this.bb.__offset(this.bb_pos,6)
16372
- return e?(t||new pY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8)
16378
+ return e?(t||new fY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8)
16373
16379
  return!!t&&!!this.bb.readInt8(this.bb_pos+t)}dictionaryKind(){const t=this.bb.__offset(this.bb_pos,10)
16374
- return t?this.bb.readInt16(this.bb_pos+t):uY.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,uY.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class mY{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 mY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new mY).__init(t.readInt32(t.position())+t.position(),t)}key(t){const e=this.bb.__offset(this.bb_pos,4)
16380
+ return t?this.bb.readInt16(this.bb_pos+t):pY.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,pY.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class gY{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 gY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new gY).__init(t.readInt32(t.position())+t.position(),t)}key(t){const e=this.bb.__offset(this.bb_pos,4)
16375
16381
  return e?this.bb.__string(this.bb_pos+e,t):null}value(t){const e=this.bb.__offset(this.bb_pos,6)
16376
- 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 mY.startKeyValue(t),mY.addKey(t,e),mY.addValue(t,n),mY.endKeyValue(t)}}let gY=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)}},vY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinaryView(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinaryView(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinaryView(t){t.startObject(0)}static endBinaryView(t){return t.endObject()}static createBinaryView(e){return t.startBinaryView(e),t.endBinaryView(e)}},bY=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)}},yY=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)
16377
- return t?this.bb.readInt16(this.bb_pos+t):ZK.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,ZK.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(e,n){return t.startDate(e),t.addUnit(e,n),t.endDate(e)}},wY=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)
16382
+ 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 gY.startKeyValue(t),gY.addKey(t,e),gY.addValue(t,n),gY.endKeyValue(t)}}let vY=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)}},bY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinaryView(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinaryView(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinaryView(t){t.startObject(0)}static endBinaryView(t){return t.endObject()}static createBinaryView(e){return t.startBinaryView(e),t.endBinaryView(e)}},yY=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)}},wY=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)
16383
+ return t?this.bb.readInt16(this.bb_pos+t):KK.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,KK.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(e,n){return t.startDate(e),t.addUnit(e,n),t.endDate(e)}},xY=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)
16378
16384
  return t?this.bb.readInt32(this.bb_pos+t):0}scale(){const t=this.bb.__offset(this.bb_pos,6)
16379
16385
  return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){const t=this.bb.__offset(this.bb_pos,8)
16380
- 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,o){return t.startDecimal(e),t.addPrecision(e,n),t.addScale(e,i),t.addBitWidth(e,o),t.endDecimal(e)}},xY=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)
16381
- return t?this.bb.readInt16(this.bb_pos+t):KK.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,KK.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(e,n){return t.startDuration(e),t.addUnit(e,n),t.endDuration(e)}},CY=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)
16382
- 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)}},kY=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)
16386
+ 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,o){return t.startDecimal(e),t.addPrecision(e,n),t.addScale(e,i),t.addBitWidth(e,o),t.endDecimal(e)}},CY=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)
16387
+ return t?this.bb.readInt16(this.bb_pos+t):YK.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,YK.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(e,n){return t.startDuration(e),t.addUnit(e,n),t.endDuration(e)}},kY=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)
16388
+ 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)}},SY=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)
16383
16389
  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)}}
16384
- class SY{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 SY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new SY).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4)
16385
- return t?this.bb.readInt16(this.bb_pos+t):GK.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,GK.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return SY.startFloatingPoint(t),SY.addPrecision(t,e),SY.endFloatingPoint(t)}}class $Y{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 $Y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new $Y).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
16386
- return t?this.bb.readInt16(this.bb_pos+t):YK.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,YK.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return $Y.startInterval(t),$Y.addUnit(t,e),$Y.endInterval(t)}}let _Y=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)}},IY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeList(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(t){t.startObject(0)}static endLargeList(t){return t.endObject()}static createLargeList(e){return t.startLargeList(e),t.endLargeList(e)}},MY=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)}},EY=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)}},AY=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)
16387
- 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)}},TY=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)}}
16388
- class DY{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 DY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new DY).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return DY.startStruct_(t),DY.endStruct_(t)}}class OY{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 OY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new OY).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
16389
- return t?this.bb.readInt16(this.bb_pos+t):KK.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6)
16390
- return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,KK.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,n){return OY.startTime(t),OY.addUnit(t,e),OY.addBitWidth(t,n),OY.endTime(t)}}class RY{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 RY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new RY).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
16391
- return t?this.bb.readInt16(this.bb_pos+t):KK.SECOND}timezone(t){const e=this.bb.__offset(this.bb_pos,6)
16392
- 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,KK.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,n){return RY.startTimestamp(t),RY.addUnit(t,e),RY.addTimezone(t,n),RY.endTimestamp(t)}}class FY{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 FY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new FY).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4)
16393
- return t?this.bb.readInt16(this.bb_pos+t):WK.Sparse}typeIds(t){const e=this.bb.__offset(this.bb_pos,6)
16390
+ class $Y{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 $Y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new $Y).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4)
16391
+ return t?this.bb.readInt16(this.bb_pos+t):ZK.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,ZK.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return $Y.startFloatingPoint(t),$Y.addPrecision(t,e),$Y.endFloatingPoint(t)}}class _Y{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 _Y).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new _Y).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
16392
+ return t?this.bb.readInt16(this.bb_pos+t):XK.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,XK.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return _Y.startInterval(t),_Y.addUnit(t,e),_Y.endInterval(t)}}let IY=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)}},MY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeList(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(t){t.startObject(0)}static endLargeList(t){return t.endObject()}static createLargeList(e){return t.startLargeList(e),t.endLargeList(e)}},EY=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)}},AY=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)}},TY=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)
16393
+ 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)}},DY=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)}}
16394
+ class OY{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 OY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new OY).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return OY.startStruct_(t),OY.endStruct_(t)}}class RY{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 RY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new RY).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
16395
+ return t?this.bb.readInt16(this.bb_pos+t):YK.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6)
16396
+ return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,YK.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,n){return RY.startTime(t),RY.addUnit(t,e),RY.addBitWidth(t,n),RY.endTime(t)}}class FY{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 FY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new FY).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4)
16397
+ return t?this.bb.readInt16(this.bb_pos+t):YK.SECOND}timezone(t){const e=this.bb.__offset(this.bb_pos,6)
16398
+ 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,YK.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,n){return FY.startTimestamp(t),FY.addUnit(t,e),FY.addTimezone(t,n),FY.endTimestamp(t)}}class LY{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 LY).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new LY).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4)
16399
+ return t?this.bb.readInt16(this.bb_pos+t):GK.Sparse}typeIds(t){const e=this.bb.__offset(this.bb_pos,6)
16394
16400
  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)
16395
16401
  return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){const t=this.bb.__offset(this.bb_pos,6)
16396
- 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,WK.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4)
16402
+ 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,GK.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4)
16397
16403
  for(let n=e.length-1;n>=0;n--)t.addInt32(e[n])
16398
- return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,n){return FY.startUnion(t),FY.addMode(t,e),FY.addTypeIds(t,n),FY.endUnion(t)}}let LY=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)}},BY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8View(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8View(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8View(t){t.startObject(0)}static endUtf8View(t){return t.endObject()}static createUtf8View(e){return t.startUtf8View(e),t.endUtf8View(e)}}
16399
- var NY
16400
- !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",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.ListView=25]="ListView",t[t.LargeListView=26]="LargeListView"}(NY||(NY={}))
16401
- let PY=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)
16404
+ return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,n){return LY.startUnion(t),LY.addMode(t,e),LY.addTypeIds(t,n),LY.endUnion(t)}}let BY=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)}},NY=class t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8View(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8View(e,n){return e.setPosition(e.position()+4),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8View(t){t.startObject(0)}static endUtf8View(t){return t.endObject()}static createUtf8View(e){return t.startUtf8View(e),t.endUtf8View(e)}}
16405
+ var PY
16406
+ !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",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.ListView=25]="ListView",t[t.LargeListView=26]="LargeListView"}(PY||(PY={}))
16407
+ let VY=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)
16402
16408
  return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){const t=this.bb.__offset(this.bb_pos,6)
16403
16409
  return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){const t=this.bb.__offset(this.bb_pos,8)
16404
- return t?this.bb.readUint8(this.bb_pos+t):NY.NONE}type(t){const e=this.bb.__offset(this.bb_pos,10)
16410
+ return t?this.bb.readUint8(this.bb_pos+t):PY.NONE}type(t){const e=this.bb.__offset(this.bb_pos,10)
16405
16411
  return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){const e=this.bb.__offset(this.bb_pos,12)
16406
- return e?(t||new fY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(e,n){const i=this.bb.__offset(this.bb_pos,14)
16412
+ return e?(t||new mY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(e,n){const i=this.bb.__offset(this.bb_pos,14)
16407
16413
  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)
16408
16414
  return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,16)
16409
- return n?(e||new mY).__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)
16410
- 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,NY.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)
16415
+ return n?(e||new gY).__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)
16416
+ 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,PY.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)
16411
16417
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
16412
16418
  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)
16413
16419
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
16414
- return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},VY=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)
16415
- return t?this.bb.readInt16(this.bb_pos+t):hY.Little}fields(t,e){const n=this.bb.__offset(this.bb_pos,6)
16416
- return n?(e||new PY).__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)
16420
+ return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},zY=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)
16421
+ return t?this.bb.readInt16(this.bb_pos+t):uY.Little}fields(t,e){const n=this.bb.__offset(this.bb_pos,6)
16422
+ return n?(e||new VY).__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)
16417
16423
  return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,8)
16418
- return n?(e||new mY).__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)
16424
+ return n?(e||new gY).__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)
16419
16425
  return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){const e=this.bb.__offset(this.bb_pos,10)
16420
16426
  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)
16421
- 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,hY.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4)
16427
+ 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,uY.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4)
16422
16428
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
16423
16429
  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)
16424
16430
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
16425
16431
  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)
16426
16432
  for(let n=e.length-1;n>=0;n--)t.addInt64(e[n])
16427
16433
  return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static createSchema(e,n,i,o,r){return t.startSchema(e),t.addEndianness(e,n),t.addFields(e,i),t.addCustomMetadata(e,o),t.addFeatures(e,r),t.endSchema(e)}}
16428
- var zY,HY,UY
16429
- !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"}(zY||(zY={})),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.LargeList=21]="LargeList",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",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",t[t.IntervalMonthDayNano=-31]="IntervalMonthDayNano"}(HY||(HY={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(UY||(UY={}))
16430
- function qY(t){if(null===t)return"null"
16434
+ var HY,UY,qY
16435
+ !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"}(HY||(HY={})),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.LargeList=21]="LargeList",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",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",t[t.IntervalMonthDayNano=-31]="IntervalMonthDayNano"}(UY||(UY={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(qY||(qY={}))
16436
+ function jY(t){if(null===t)return"null"
16431
16437
  if(void 0===t)return"undefined"
16432
16438
  switch(typeof t){case"number":case"bigint":return`${t}`
16433
- 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=>qY(t))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(t,e)=>"bigint"==typeof e?`${e}`:e)}function jY(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.`)
16434
- return Number(t)}function WY(t,e){return jY(t/e)+jY(t%e)/jY(e)}const GY=Symbol.for("isArrowBigNum")
16435
- function ZY(t,...e){return 0===e.length?Object.setPrototypeOf(OK(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function KY(...t){return ZY.apply(this,t)}function YY(...t){return ZY.apply(this,t)}function XY(...t){return ZY.apply(this,t)}ZY.prototype[GY]=!0,ZY.prototype.toJSON=function(){return`"${tX(this)}"`},ZY.prototype.valueOf=function(t){return QY(this,t)},ZY.prototype.toString=function(){return tX(this)},ZY.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return QY(this)
16436
- case"string":return tX(this)
16437
- case"default":return function(t){if(8===t.byteLength){return new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}return tX(t)}(this)}return tX(this)},Object.setPrototypeOf(KY.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(YY.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(XY.prototype,Object.create(Uint32Array.prototype)),Object.assign(KY.prototype,ZY.prototype,{constructor:KY,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(YY.prototype,ZY.prototype,{constructor:YY,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(XY.prototype,ZY.prototype,{constructor:XY,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array})
16438
- const JY=BigInt(4294967296)*BigInt(4294967296)-BigInt(1)
16439
- function QY(t,e){const{buffer:n,byteOffset:i,byteLength:o,signed:r}=t,s=new BigUint64Array(n,i,o/8),a=r&&s.at(-1)&BigInt(1)<<BigInt(63)
16439
+ 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=>jY(t))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(t,e)=>"bigint"==typeof e?`${e}`:e)}function WY(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.`)
16440
+ return Number(t)}function GY(t,e){return WY(t/e)+WY(t%e)/WY(e)}const ZY=Symbol.for("isArrowBigNum")
16441
+ function KY(t,...e){return 0===e.length?Object.setPrototypeOf(RK(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function YY(...t){return KY.apply(this,t)}function XY(...t){return KY.apply(this,t)}function JY(...t){return KY.apply(this,t)}KY.prototype[ZY]=!0,KY.prototype.toJSON=function(){return`"${eX(this)}"`},KY.prototype.valueOf=function(t){return tX(this,t)},KY.prototype.toString=function(){return eX(this)},KY.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return tX(this)
16442
+ case"string":return eX(this)
16443
+ case"default":return function(t){if(8===t.byteLength){return new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}return eX(t)}(this)}return eX(this)},Object.setPrototypeOf(YY.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(XY.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(JY.prototype,Object.create(Uint32Array.prototype)),Object.assign(YY.prototype,KY.prototype,{constructor:YY,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(XY.prototype,KY.prototype,{constructor:XY,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(JY.prototype,KY.prototype,{constructor:JY,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array})
16444
+ const QY=BigInt(4294967296)*BigInt(4294967296)-BigInt(1)
16445
+ function tX(t,e){const{buffer:n,byteOffset:i,byteLength:o,signed:r}=t,s=new BigUint64Array(n,i,o/8),a=r&&s.at(-1)&BigInt(1)<<BigInt(63)
16440
16446
  let l=BigInt(0),c=0
16441
- if(a){for(const t of s)l|=(t^JY)*(BigInt(1)<<BigInt(64*c++))
16447
+ if(a){for(const t of s)l|=(t^QY)*(BigInt(1)<<BigInt(64*c++))
16442
16448
  l*=BigInt(-1),l-=BigInt(1)}else for(const t of s)l|=t*(BigInt(1)<<BigInt(64*c++))
16443
- if("number"==typeof e&&e>0){const t=BigInt("1".padEnd(e+1,"0")),n=a?-l%t:l%t,i=jY(l/t)
16444
- return+`${a&&0===i?"-":""}${i}.${`${n}`.padStart(e,"0")}`}return jY(l)}function tX(t){if(8===t.byteLength){return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`}if(!t.signed)return eX(t)
16449
+ if("number"==typeof e&&e>0){const t=BigInt("1".padEnd(e+1,"0")),n=a?-l%t:l%t,i=WY(l/t)
16450
+ return+`${a&&0===i?"-":""}${i}.${`${n}`.padStart(e,"0")}`}return WY(l)}function eX(t){if(8===t.byteLength){return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`}if(!t.signed)return nX(t)
16445
16451
  let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2)
16446
- if(new Int16Array([e.at(-1)])[0]>=0)return eX(t)
16452
+ if(new Int16Array([e.at(-1)])[0]>=0)return nX(t)
16447
16453
  e=e.slice()
16448
16454
  let n=1
16449
16455
  for(let t=0;t<e.length;t++){const i=e[t],o=~i+n
16450
- e[t]=o,n&=0===i?1:0}return`-${eX(e)}`}function eX(t){let e=""
16456
+ e[t]=o,n&=0===i?1:0}return`-${nX(e)}`}function nX(t){let e=""
16451
16457
  const n=new Uint32Array(2)
16452
16458
  let i=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2)
16453
16459
  const o=new Uint32Array((i=new Uint16Array(i).reverse()).buffer)
@@ -16455,317 +16461,317 @@ let r=-1
16455
16461
  const s=i.length-1
16456
16462
  do{for(n[0]=i[r=0];r<s;)i[r++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+i[r]
16457
16463
  i[r]=n[1]=n[0]/10,n[0]=n[0]-10*n[1],e=`${n[0]}${e}`}while(o[0]||o[1]||o[2]||o[3])
16458
- return null!=e?e:"0"}class nX{static new(t,e){switch(e){case!0:return new KY(t)
16459
- case!1:return new YY(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new KY(t)}return 16===t.byteLength?new XY(t):new YY(t)}static signed(t){return new KY(t)}static unsigned(t){return new YY(t)}static decimal(t){return new XY(t)}constructor(t,e){return nX.new(t,e)}}var iX,oX,rX,sX,aX,lX,cX,dX,hX,uX,pX,fX,mX,gX,vX,bX,yX,wX,xX,CX,kX,SX,$X,_X,IX
16460
- const MX=Symbol.for("apache-arrow/DataType")
16461
- class EX{static isDataType(t){return!0===(null==t?void 0:t[MX])}static isNull(t){return(null==t?void 0:t.typeId)===HY.Null}static isInt(t){return(null==t?void 0:t.typeId)===HY.Int}static isFloat(t){return(null==t?void 0:t.typeId)===HY.Float}static isBinary(t){return(null==t?void 0:t.typeId)===HY.Binary}static isBinaryView(t){return(null==t?void 0:t.typeId)===HY.BinaryView}static isLargeBinary(t){return(null==t?void 0:t.typeId)===HY.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===HY.Utf8}static isUtf8View(t){return(null==t?void 0:t.typeId)===HY.Utf8View}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===HY.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===HY.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===HY.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===HY.Date}static isTime(t){return(null==t?void 0:t.typeId)===HY.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===HY.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===HY.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===HY.Duration}static isList(t){return(null==t?void 0:t.typeId)===HY.List}static isLargeList(t){return(null==t?void 0:t.typeId)===HY.LargeList}static isStruct(t){return(null==t?void 0:t.typeId)===HY.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===HY.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===HY.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===HY.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===HY.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===HY.Dictionary}static isDenseUnion(t){return EX.isUnion(t)&&t.mode===WK.Dense}static isSparseUnion(t){return EX.isUnion(t)&&t.mode===WK.Sparse}constructor(t){this.typeId=t}}var AX
16462
- iX=Symbol.toStringTag,EX[iX]=((AX=EX.prototype).children=null,AX.ArrayType=Array,AX.OffsetArrayType=Int32Array,AX[MX]=!0,AX[Symbol.toStringTag]="DataType")
16463
- class TX extends EX{constructor(){super(HY.Null)}toString(){return"Null"}}oX=Symbol.toStringTag,TX[oX]=(t=>t[Symbol.toStringTag]="Null")(TX.prototype)
16464
- class DX extends EX{constructor(t,e){super(HY.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
16464
+ return null!=e?e:"0"}class iX{static new(t,e){switch(e){case!0:return new YY(t)
16465
+ case!1:return new XY(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new YY(t)}return 16===t.byteLength?new JY(t):new XY(t)}static signed(t){return new YY(t)}static unsigned(t){return new XY(t)}static decimal(t){return new JY(t)}constructor(t,e){return iX.new(t,e)}}var oX,rX,sX,aX,lX,cX,dX,hX,uX,pX,fX,mX,gX,vX,bX,yX,wX,xX,CX,kX,SX,$X,_X,IX,MX
16466
+ const EX=Symbol.for("apache-arrow/DataType")
16467
+ class AX{static isDataType(t){return!0===(null==t?void 0:t[EX])}static isNull(t){return(null==t?void 0:t.typeId)===UY.Null}static isInt(t){return(null==t?void 0:t.typeId)===UY.Int}static isFloat(t){return(null==t?void 0:t.typeId)===UY.Float}static isBinary(t){return(null==t?void 0:t.typeId)===UY.Binary}static isBinaryView(t){return(null==t?void 0:t.typeId)===UY.BinaryView}static isLargeBinary(t){return(null==t?void 0:t.typeId)===UY.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===UY.Utf8}static isUtf8View(t){return(null==t?void 0:t.typeId)===UY.Utf8View}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===UY.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===UY.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===UY.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===UY.Date}static isTime(t){return(null==t?void 0:t.typeId)===UY.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===UY.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===UY.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===UY.Duration}static isList(t){return(null==t?void 0:t.typeId)===UY.List}static isLargeList(t){return(null==t?void 0:t.typeId)===UY.LargeList}static isStruct(t){return(null==t?void 0:t.typeId)===UY.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===UY.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===UY.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===UY.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===UY.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===UY.Dictionary}static isDenseUnion(t){return AX.isUnion(t)&&t.mode===GK.Dense}static isSparseUnion(t){return AX.isUnion(t)&&t.mode===GK.Sparse}constructor(t){this.typeId=t}}var TX
16468
+ oX=Symbol.toStringTag,AX[oX]=((TX=AX.prototype).children=null,TX.ArrayType=Array,TX.OffsetArrayType=Int32Array,TX[EX]=!0,TX[Symbol.toStringTag]="DataType")
16469
+ class DX extends AX{constructor(){super(UY.Null)}toString(){return"Null"}}rX=Symbol.toStringTag,DX[rX]=(t=>t[Symbol.toStringTag]="Null")(DX.prototype)
16470
+ class OX extends AX{constructor(t,e){super(UY.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
16465
16471
  case 16:return this.isSigned?Int16Array:Uint16Array
16466
16472
  case 32:return this.isSigned?Int32Array:Uint32Array
16467
- case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}rX=Symbol.toStringTag,DX[rX]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(DX.prototype)
16468
- class OX extends DX{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(OX.prototype,"ArrayType",{value:Int32Array})
16469
- class RX extends EX{constructor(t){super(HY.Float),this.precision=t}get ArrayType(){switch(this.precision){case GK.HALF:return Uint16Array
16470
- case GK.SINGLE:return Float32Array
16471
- case GK.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}sX=Symbol.toStringTag,RX[sX]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(RX.prototype)
16472
- class FX extends EX{constructor(){super(HY.Binary)}toString(){return"Binary"}}aX=Symbol.toStringTag,FX[aX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(FX.prototype)
16473
- class LX extends EX{constructor(){super(HY.BinaryView)}toString(){return"BinaryView"}}lX=Symbol.toStringTag,LX.ELEMENT_WIDTH=16,LX.INLINE_CAPACITY=12,LX.LENGTH_OFFSET=0,LX.INLINE_OFFSET=4,LX.BUFFER_INDEX_OFFSET=8,LX.BUFFER_OFFSET_OFFSET=12,LX[lX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="BinaryView"))(LX.prototype)
16474
- class BX extends EX{constructor(){super(HY.LargeBinary)}toString(){return"LargeBinary"}}cX=Symbol.toStringTag,BX[cX]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(BX.prototype)
16475
- class NX extends EX{constructor(){super(HY.Utf8)}toString(){return"Utf8"}}dX=Symbol.toStringTag,NX[dX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(NX.prototype)
16476
- class PX extends EX{constructor(){super(HY.Utf8View)}toString(){return"Utf8View"}}hX=Symbol.toStringTag,PX.ELEMENT_WIDTH=LX.ELEMENT_WIDTH,PX.INLINE_CAPACITY=LX.INLINE_CAPACITY,PX[hX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8View"))(PX.prototype)
16477
- class VX extends EX{constructor(){super(HY.LargeUtf8)}toString(){return"LargeUtf8"}}uX=Symbol.toStringTag,VX[uX]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(VX.prototype)
16478
- class zX extends EX{constructor(){super(HY.Bool)}toString(){return"Bool"}}pX=Symbol.toStringTag,zX[pX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(zX.prototype)
16479
- class HX extends EX{constructor(t,e,n=128){super(HY.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}fX=Symbol.toStringTag,HX[fX]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(HX.prototype)
16480
- class UX extends EX{constructor(t){super(HY.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${ZK[this.unit]}>`}get ArrayType(){return this.unit===ZK.DAY?Int32Array:BigInt64Array}}mX=Symbol.toStringTag,UX[mX]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(UX.prototype)
16481
- class qX extends EX{constructor(t,e){super(HY.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${KK[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
16482
- case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}gX=Symbol.toStringTag,qX[gX]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(qX.prototype)
16483
- class jX extends EX{constructor(t,e){super(HY.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${KK[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}vX=Symbol.toStringTag,jX[vX]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(jX.prototype)
16484
- class WX extends EX{constructor(t){super(HY.Interval),this.unit=t}toString(){return`Interval<${YK[this.unit]}>`}}bX=Symbol.toStringTag,WX[bX]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(WX.prototype)
16485
- class GX extends EX{constructor(t){super(HY.Duration),this.unit=t}toString(){return`Duration<${KK[this.unit]}>`}}yX=Symbol.toStringTag,GX[yX]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(GX.prototype)
16486
- class ZX extends EX{constructor(t){super(HY.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}}wX=Symbol.toStringTag,ZX[wX]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(ZX.prototype)
16487
- class KX extends EX{constructor(t){super(HY.LargeList),this.children=[t]}toString(){return`LargeList<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}xX=Symbol.toStringTag,KX[xX]=(t=>(t.children=null,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeList"))(KX.prototype)
16488
- class YX extends EX{constructor(t){super(HY.Struct),this.children=t}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}CX=Symbol.toStringTag,YX[CX]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(YX.prototype)
16489
- class XX extends EX{constructor(t,e,n){super(HY.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(" | ")}>`}}kX=Symbol.toStringTag,XX[kX]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(XX.prototype)
16490
- class JX extends EX{constructor(t){super(HY.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}SX=Symbol.toStringTag,JX[SX]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(JX.prototype)
16491
- class QX extends EX{constructor(t,e){super(HY.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}>`}}$X=Symbol.toStringTag,QX[$X]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(QX.prototype)
16492
- class tJ extends EX{constructor(t,e=!1){var n,i,o
16493
- if(super(HY.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]
16473
+ case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}sX=Symbol.toStringTag,OX[sX]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(OX.prototype)
16474
+ class RX extends OX{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(RX.prototype,"ArrayType",{value:Int32Array})
16475
+ class FX extends AX{constructor(t){super(UY.Float),this.precision=t}get ArrayType(){switch(this.precision){case ZK.HALF:return Uint16Array
16476
+ case ZK.SINGLE:return Float32Array
16477
+ case ZK.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}aX=Symbol.toStringTag,FX[aX]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(FX.prototype)
16478
+ class LX extends AX{constructor(){super(UY.Binary)}toString(){return"Binary"}}lX=Symbol.toStringTag,LX[lX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(LX.prototype)
16479
+ class BX extends AX{constructor(){super(UY.BinaryView)}toString(){return"BinaryView"}}cX=Symbol.toStringTag,BX.ELEMENT_WIDTH=16,BX.INLINE_CAPACITY=12,BX.LENGTH_OFFSET=0,BX.INLINE_OFFSET=4,BX.BUFFER_INDEX_OFFSET=8,BX.BUFFER_OFFSET_OFFSET=12,BX[cX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="BinaryView"))(BX.prototype)
16480
+ class NX extends AX{constructor(){super(UY.LargeBinary)}toString(){return"LargeBinary"}}dX=Symbol.toStringTag,NX[dX]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(NX.prototype)
16481
+ class PX extends AX{constructor(){super(UY.Utf8)}toString(){return"Utf8"}}hX=Symbol.toStringTag,PX[hX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(PX.prototype)
16482
+ class VX extends AX{constructor(){super(UY.Utf8View)}toString(){return"Utf8View"}}uX=Symbol.toStringTag,VX.ELEMENT_WIDTH=BX.ELEMENT_WIDTH,VX.INLINE_CAPACITY=BX.INLINE_CAPACITY,VX[uX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8View"))(VX.prototype)
16483
+ class zX extends AX{constructor(){super(UY.LargeUtf8)}toString(){return"LargeUtf8"}}pX=Symbol.toStringTag,zX[pX]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(zX.prototype)
16484
+ class HX extends AX{constructor(){super(UY.Bool)}toString(){return"Bool"}}fX=Symbol.toStringTag,HX[fX]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(HX.prototype)
16485
+ class UX extends AX{constructor(t,e,n=128){super(UY.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}mX=Symbol.toStringTag,UX[mX]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(UX.prototype)
16486
+ class qX extends AX{constructor(t){super(UY.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${KK[this.unit]}>`}get ArrayType(){return this.unit===KK.DAY?Int32Array:BigInt64Array}}gX=Symbol.toStringTag,qX[gX]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(qX.prototype)
16487
+ class jX extends AX{constructor(t,e){super(UY.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${YK[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
16488
+ case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}vX=Symbol.toStringTag,jX[vX]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(jX.prototype)
16489
+ class WX extends AX{constructor(t,e){super(UY.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${YK[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}bX=Symbol.toStringTag,WX[bX]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(WX.prototype)
16490
+ class GX extends AX{constructor(t){super(UY.Interval),this.unit=t}toString(){return`Interval<${XK[this.unit]}>`}}yX=Symbol.toStringTag,GX[yX]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(GX.prototype)
16491
+ class ZX extends AX{constructor(t){super(UY.Duration),this.unit=t}toString(){return`Duration<${YK[this.unit]}>`}}wX=Symbol.toStringTag,ZX[wX]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(ZX.prototype)
16492
+ class KX extends AX{constructor(t){super(UY.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}}xX=Symbol.toStringTag,KX[xX]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(KX.prototype)
16493
+ class YX extends AX{constructor(t){super(UY.LargeList),this.children=[t]}toString(){return`LargeList<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}CX=Symbol.toStringTag,YX[CX]=(t=>(t.children=null,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeList"))(YX.prototype)
16494
+ class XX extends AX{constructor(t){super(UY.Struct),this.children=t}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}kX=Symbol.toStringTag,XX[kX]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(XX.prototype)
16495
+ class JX extends AX{constructor(t,e,n){super(UY.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(" | ")}>`}}SX=Symbol.toStringTag,JX[SX]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(JX.prototype)
16496
+ class QX extends AX{constructor(t){super(UY.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}$X=Symbol.toStringTag,QX[$X]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(QX.prototype)
16497
+ class tJ extends AX{constructor(t,e){super(UY.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}>`}}_X=Symbol.toStringTag,tJ[_X]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(tJ.prototype)
16498
+ class eJ extends AX{constructor(t,e=!1){var n,i,o
16499
+ if(super(UY.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]
16494
16500
  e&&(e.name="key")
16495
16501
  const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
16496
- 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(", ")}}>`}}_X=Symbol.toStringTag,tJ[_X]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(tJ.prototype)
16497
- const eJ=(nJ=-1,()=>++nJ)
16498
- var nJ
16499
- class iJ extends EX{constructor(t,e,n,i){super(HY.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?eJ():jY(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 oJ(t){const e=t
16500
- switch(t.typeId){case HY.Decimal:return t.bitWidth/32
16501
- case HY.Interval:return e.unit===YK.MONTH_DAY_NANO?4:1+e.unit
16502
- case HY.BinaryView:case HY.Utf8View:return 16
16503
- case HY.FixedSizeList:return e.listSize
16504
- case HY.FixedSizeBinary:return e.byteWidth
16505
- default:return 1}}IX=Symbol.toStringTag,iJ[IX]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(iJ.prototype)
16506
- class rJ{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 sJ(t,e,n)
16507
- if("string"==typeof e&&e in HY)return sJ(t,HY[e],n)
16508
- if(e&&e instanceof EX)return sJ(t,aJ(e),n)
16509
- if((null==e?void 0:e.type)&&e.type instanceof EX)return sJ(t,aJ(e.type),n)
16510
- return sJ(t,HY.NONE,n)}(this,t,e)}getVisitFnByTypeId(t,e=!0){return sJ(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}visitUtf8View(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitBinaryView(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}visitLargeList(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 sJ(t,e,n=!0){let i=null
16511
- switch(e){case HY.Null:i=t.visitNull
16502
+ 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(", ")}}>`}}IX=Symbol.toStringTag,eJ[IX]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(eJ.prototype)
16503
+ const nJ=(iJ=-1,()=>++iJ)
16504
+ var iJ
16505
+ class oJ extends AX{constructor(t,e,n,i){super(UY.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?nJ():WY(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 rJ(t){const e=t
16506
+ switch(t.typeId){case UY.Decimal:return t.bitWidth/32
16507
+ case UY.Interval:return e.unit===XK.MONTH_DAY_NANO?4:1+e.unit
16508
+ case UY.BinaryView:case UY.Utf8View:return 16
16509
+ case UY.FixedSizeList:return e.listSize
16510
+ case UY.FixedSizeBinary:return e.byteWidth
16511
+ default:return 1}}MX=Symbol.toStringTag,oJ[MX]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(oJ.prototype)
16512
+ class sJ{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 aJ(t,e,n)
16513
+ if("string"==typeof e&&e in UY)return aJ(t,UY[e],n)
16514
+ if(e&&e instanceof AX)return aJ(t,lJ(e),n)
16515
+ if((null==e?void 0:e.type)&&e.type instanceof AX)return aJ(t,lJ(e.type),n)
16516
+ return aJ(t,UY.NONE,n)}(this,t,e)}getVisitFnByTypeId(t,e=!0){return aJ(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}visitUtf8View(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitBinaryView(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}visitLargeList(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 aJ(t,e,n=!0){let i=null
16517
+ switch(e){case UY.Null:i=t.visitNull
16512
16518
  break
16513
- case HY.Bool:i=t.visitBool
16519
+ case UY.Bool:i=t.visitBool
16514
16520
  break
16515
- case HY.Int:i=t.visitInt
16521
+ case UY.Int:i=t.visitInt
16516
16522
  break
16517
- case HY.Int8:i=t.visitInt8||t.visitInt
16523
+ case UY.Int8:i=t.visitInt8||t.visitInt
16518
16524
  break
16519
- case HY.Int16:i=t.visitInt16||t.visitInt
16525
+ case UY.Int16:i=t.visitInt16||t.visitInt
16520
16526
  break
16521
- case HY.Int32:i=t.visitInt32||t.visitInt
16527
+ case UY.Int32:i=t.visitInt32||t.visitInt
16522
16528
  break
16523
- case HY.Int64:i=t.visitInt64||t.visitInt
16529
+ case UY.Int64:i=t.visitInt64||t.visitInt
16524
16530
  break
16525
- case HY.Uint8:i=t.visitUint8||t.visitInt
16531
+ case UY.Uint8:i=t.visitUint8||t.visitInt
16526
16532
  break
16527
- case HY.Uint16:i=t.visitUint16||t.visitInt
16533
+ case UY.Uint16:i=t.visitUint16||t.visitInt
16528
16534
  break
16529
- case HY.Uint32:i=t.visitUint32||t.visitInt
16535
+ case UY.Uint32:i=t.visitUint32||t.visitInt
16530
16536
  break
16531
- case HY.Uint64:i=t.visitUint64||t.visitInt
16537
+ case UY.Uint64:i=t.visitUint64||t.visitInt
16532
16538
  break
16533
- case HY.Float:i=t.visitFloat
16539
+ case UY.Float:i=t.visitFloat
16534
16540
  break
16535
- case HY.Float16:i=t.visitFloat16||t.visitFloat
16541
+ case UY.Float16:i=t.visitFloat16||t.visitFloat
16536
16542
  break
16537
- case HY.Float32:i=t.visitFloat32||t.visitFloat
16543
+ case UY.Float32:i=t.visitFloat32||t.visitFloat
16538
16544
  break
16539
- case HY.Float64:i=t.visitFloat64||t.visitFloat
16545
+ case UY.Float64:i=t.visitFloat64||t.visitFloat
16540
16546
  break
16541
- case HY.Utf8:i=t.visitUtf8
16547
+ case UY.Utf8:i=t.visitUtf8
16542
16548
  break
16543
- case HY.LargeUtf8:i=t.visitLargeUtf8
16549
+ case UY.LargeUtf8:i=t.visitLargeUtf8
16544
16550
  break
16545
- case HY.Utf8View:i=t.visitUtf8View||t.visitUtf8
16551
+ case UY.Utf8View:i=t.visitUtf8View||t.visitUtf8
16546
16552
  break
16547
- case HY.Binary:i=t.visitBinary
16553
+ case UY.Binary:i=t.visitBinary
16548
16554
  break
16549
- case HY.LargeBinary:i=t.visitLargeBinary
16555
+ case UY.LargeBinary:i=t.visitLargeBinary
16550
16556
  break
16551
- case HY.BinaryView:i=t.visitBinaryView||t.visitBinary
16557
+ case UY.BinaryView:i=t.visitBinaryView||t.visitBinary
16552
16558
  break
16553
- case HY.FixedSizeBinary:i=t.visitFixedSizeBinary
16559
+ case UY.FixedSizeBinary:i=t.visitFixedSizeBinary
16554
16560
  break
16555
- case HY.Date:i=t.visitDate
16561
+ case UY.Date:i=t.visitDate
16556
16562
  break
16557
- case HY.DateDay:i=t.visitDateDay||t.visitDate
16563
+ case UY.DateDay:i=t.visitDateDay||t.visitDate
16558
16564
  break
16559
- case HY.DateMillisecond:i=t.visitDateMillisecond||t.visitDate
16565
+ case UY.DateMillisecond:i=t.visitDateMillisecond||t.visitDate
16560
16566
  break
16561
- case HY.Timestamp:i=t.visitTimestamp
16567
+ case UY.Timestamp:i=t.visitTimestamp
16562
16568
  break
16563
- case HY.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp
16569
+ case UY.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp
16564
16570
  break
16565
- case HY.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp
16571
+ case UY.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp
16566
16572
  break
16567
- case HY.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp
16573
+ case UY.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp
16568
16574
  break
16569
- case HY.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp
16575
+ case UY.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp
16570
16576
  break
16571
- case HY.Time:i=t.visitTime
16577
+ case UY.Time:i=t.visitTime
16572
16578
  break
16573
- case HY.TimeSecond:i=t.visitTimeSecond||t.visitTime
16579
+ case UY.TimeSecond:i=t.visitTimeSecond||t.visitTime
16574
16580
  break
16575
- case HY.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime
16581
+ case UY.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime
16576
16582
  break
16577
- case HY.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime
16583
+ case UY.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime
16578
16584
  break
16579
- case HY.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime
16585
+ case UY.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime
16580
16586
  break
16581
- case HY.Decimal:i=t.visitDecimal
16587
+ case UY.Decimal:i=t.visitDecimal
16582
16588
  break
16583
- case HY.List:i=t.visitList
16589
+ case UY.List:i=t.visitList
16584
16590
  break
16585
- case HY.LargeList:i=t.visitLargeList
16591
+ case UY.LargeList:i=t.visitLargeList
16586
16592
  break
16587
- case HY.Struct:i=t.visitStruct
16593
+ case UY.Struct:i=t.visitStruct
16588
16594
  break
16589
- case HY.Union:i=t.visitUnion
16595
+ case UY.Union:i=t.visitUnion
16590
16596
  break
16591
- case HY.DenseUnion:i=t.visitDenseUnion||t.visitUnion
16597
+ case UY.DenseUnion:i=t.visitDenseUnion||t.visitUnion
16592
16598
  break
16593
- case HY.SparseUnion:i=t.visitSparseUnion||t.visitUnion
16599
+ case UY.SparseUnion:i=t.visitSparseUnion||t.visitUnion
16594
16600
  break
16595
- case HY.Dictionary:i=t.visitDictionary
16601
+ case UY.Dictionary:i=t.visitDictionary
16596
16602
  break
16597
- case HY.Interval:i=t.visitInterval
16603
+ case UY.Interval:i=t.visitInterval
16598
16604
  break
16599
- case HY.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval
16605
+ case UY.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval
16600
16606
  break
16601
- case HY.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval
16607
+ case UY.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval
16602
16608
  break
16603
- case HY.IntervalMonthDayNano:i=t.visitIntervalMonthDayNano||t.visitInterval
16609
+ case UY.IntervalMonthDayNano:i=t.visitIntervalMonthDayNano||t.visitInterval
16604
16610
  break
16605
- case HY.Duration:i=t.visitDuration
16611
+ case UY.Duration:i=t.visitDuration
16606
16612
  break
16607
- case HY.DurationSecond:i=t.visitDurationSecond||t.visitDuration
16613
+ case UY.DurationSecond:i=t.visitDurationSecond||t.visitDuration
16608
16614
  break
16609
- case HY.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration
16615
+ case UY.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration
16610
16616
  break
16611
- case HY.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration
16617
+ case UY.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration
16612
16618
  break
16613
- case HY.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration
16619
+ case UY.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration
16614
16620
  break
16615
- case HY.FixedSizeList:i=t.visitFixedSizeList
16621
+ case UY.FixedSizeList:i=t.visitFixedSizeList
16616
16622
  break
16617
- case HY.Map:i=t.visitMap}if("function"==typeof i)return i
16623
+ case UY.Map:i=t.visitMap}if("function"==typeof i)return i
16618
16624
  if(!n)return()=>null
16619
- throw new Error(`Unrecognized type '${HY[e]}'`)}function aJ(t){switch(t.typeId){case HY.Null:return HY.Null
16620
- case HY.Int:{const{bitWidth:e,isSigned:n}=t
16621
- switch(e){case 8:return n?HY.Int8:HY.Uint8
16622
- case 16:return n?HY.Int16:HY.Uint16
16623
- case 32:return n?HY.Int32:HY.Uint32
16624
- case 64:return n?HY.Int64:HY.Uint64}return HY.Int}case HY.Float:switch(t.precision){case GK.HALF:return HY.Float16
16625
- case GK.SINGLE:return HY.Float32
16626
- case GK.DOUBLE:return HY.Float64}return HY.Float
16627
- case HY.Binary:return HY.Binary
16628
- case HY.LargeBinary:return HY.LargeBinary
16629
- case HY.BinaryView:return HY.BinaryView
16630
- case HY.Utf8:return HY.Utf8
16631
- case HY.LargeUtf8:return HY.LargeUtf8
16632
- case HY.Utf8View:return HY.Utf8View
16633
- case HY.Bool:return HY.Bool
16634
- case HY.Decimal:return HY.Decimal
16635
- case HY.Time:switch(t.unit){case KK.SECOND:return HY.TimeSecond
16636
- case KK.MILLISECOND:return HY.TimeMillisecond
16637
- case KK.MICROSECOND:return HY.TimeMicrosecond
16638
- case KK.NANOSECOND:return HY.TimeNanosecond}return HY.Time
16639
- case HY.Timestamp:switch(t.unit){case KK.SECOND:return HY.TimestampSecond
16640
- case KK.MILLISECOND:return HY.TimestampMillisecond
16641
- case KK.MICROSECOND:return HY.TimestampMicrosecond
16642
- case KK.NANOSECOND:return HY.TimestampNanosecond}return HY.Timestamp
16643
- case HY.Date:switch(t.unit){case ZK.DAY:return HY.DateDay
16644
- case ZK.MILLISECOND:return HY.DateMillisecond}return HY.Date
16645
- case HY.Interval:switch(t.unit){case YK.DAY_TIME:return HY.IntervalDayTime
16646
- case YK.YEAR_MONTH:return HY.IntervalYearMonth
16647
- case YK.MONTH_DAY_NANO:return HY.IntervalMonthDayNano}return HY.Interval
16648
- case HY.Duration:switch(t.unit){case KK.SECOND:return HY.DurationSecond
16649
- case KK.MILLISECOND:return HY.DurationMillisecond
16650
- case KK.MICROSECOND:return HY.DurationMicrosecond
16651
- case KK.NANOSECOND:return HY.DurationNanosecond}return HY.Duration
16652
- case HY.Map:return HY.Map
16653
- case HY.List:return HY.List
16654
- case HY.LargeList:return HY.LargeList
16655
- case HY.Struct:return HY.Struct
16656
- case HY.Union:switch(t.mode){case WK.Dense:return HY.DenseUnion
16657
- case WK.Sparse:return HY.SparseUnion}return HY.Union
16658
- case HY.FixedSizeBinary:return HY.FixedSizeBinary
16659
- case HY.FixedSizeList:return HY.FixedSizeList
16660
- case HY.Dictionary:return HY.Dictionary}throw new Error(`Unrecognized type '${HY[t.typeId]}'`)}rJ.prototype.visitInt8=null,rJ.prototype.visitInt16=null,rJ.prototype.visitInt32=null,rJ.prototype.visitInt64=null,rJ.prototype.visitUint8=null,rJ.prototype.visitUint16=null,rJ.prototype.visitUint32=null,rJ.prototype.visitUint64=null,rJ.prototype.visitFloat16=null,rJ.prototype.visitFloat32=null,rJ.prototype.visitFloat64=null,rJ.prototype.visitDateDay=null,rJ.prototype.visitDateMillisecond=null,rJ.prototype.visitTimestampSecond=null,rJ.prototype.visitTimestampMillisecond=null,rJ.prototype.visitTimestampMicrosecond=null,rJ.prototype.visitTimestampNanosecond=null,rJ.prototype.visitTimeSecond=null,rJ.prototype.visitTimeMillisecond=null,rJ.prototype.visitTimeMicrosecond=null,rJ.prototype.visitTimeNanosecond=null,rJ.prototype.visitDenseUnion=null,rJ.prototype.visitSparseUnion=null,rJ.prototype.visitIntervalDayTime=null,rJ.prototype.visitIntervalYearMonth=null,rJ.prototype.visitIntervalMonthDayNano=null,rJ.prototype.visitDuration=null,rJ.prototype.visitDurationSecond=null,rJ.prototype.visitDurationMillisecond=null,rJ.prototype.visitDurationMicrosecond=null,rJ.prototype.visitDurationNanosecond=null
16661
- const lJ=new Float64Array(1),cJ=new Uint32Array(lJ.buffer)
16662
- function dJ(t){const e=(31744&t)>>10,n=(1023&t)/1024,i=Math.pow(-1,(32768&t)>>15)
16625
+ throw new Error(`Unrecognized type '${UY[e]}'`)}function lJ(t){switch(t.typeId){case UY.Null:return UY.Null
16626
+ case UY.Int:{const{bitWidth:e,isSigned:n}=t
16627
+ switch(e){case 8:return n?UY.Int8:UY.Uint8
16628
+ case 16:return n?UY.Int16:UY.Uint16
16629
+ case 32:return n?UY.Int32:UY.Uint32
16630
+ case 64:return n?UY.Int64:UY.Uint64}return UY.Int}case UY.Float:switch(t.precision){case ZK.HALF:return UY.Float16
16631
+ case ZK.SINGLE:return UY.Float32
16632
+ case ZK.DOUBLE:return UY.Float64}return UY.Float
16633
+ case UY.Binary:return UY.Binary
16634
+ case UY.LargeBinary:return UY.LargeBinary
16635
+ case UY.BinaryView:return UY.BinaryView
16636
+ case UY.Utf8:return UY.Utf8
16637
+ case UY.LargeUtf8:return UY.LargeUtf8
16638
+ case UY.Utf8View:return UY.Utf8View
16639
+ case UY.Bool:return UY.Bool
16640
+ case UY.Decimal:return UY.Decimal
16641
+ case UY.Time:switch(t.unit){case YK.SECOND:return UY.TimeSecond
16642
+ case YK.MILLISECOND:return UY.TimeMillisecond
16643
+ case YK.MICROSECOND:return UY.TimeMicrosecond
16644
+ case YK.NANOSECOND:return UY.TimeNanosecond}return UY.Time
16645
+ case UY.Timestamp:switch(t.unit){case YK.SECOND:return UY.TimestampSecond
16646
+ case YK.MILLISECOND:return UY.TimestampMillisecond
16647
+ case YK.MICROSECOND:return UY.TimestampMicrosecond
16648
+ case YK.NANOSECOND:return UY.TimestampNanosecond}return UY.Timestamp
16649
+ case UY.Date:switch(t.unit){case KK.DAY:return UY.DateDay
16650
+ case KK.MILLISECOND:return UY.DateMillisecond}return UY.Date
16651
+ case UY.Interval:switch(t.unit){case XK.DAY_TIME:return UY.IntervalDayTime
16652
+ case XK.YEAR_MONTH:return UY.IntervalYearMonth
16653
+ case XK.MONTH_DAY_NANO:return UY.IntervalMonthDayNano}return UY.Interval
16654
+ case UY.Duration:switch(t.unit){case YK.SECOND:return UY.DurationSecond
16655
+ case YK.MILLISECOND:return UY.DurationMillisecond
16656
+ case YK.MICROSECOND:return UY.DurationMicrosecond
16657
+ case YK.NANOSECOND:return UY.DurationNanosecond}return UY.Duration
16658
+ case UY.Map:return UY.Map
16659
+ case UY.List:return UY.List
16660
+ case UY.LargeList:return UY.LargeList
16661
+ case UY.Struct:return UY.Struct
16662
+ case UY.Union:switch(t.mode){case GK.Dense:return UY.DenseUnion
16663
+ case GK.Sparse:return UY.SparseUnion}return UY.Union
16664
+ case UY.FixedSizeBinary:return UY.FixedSizeBinary
16665
+ case UY.FixedSizeList:return UY.FixedSizeList
16666
+ case UY.Dictionary:return UY.Dictionary}throw new Error(`Unrecognized type '${UY[t.typeId]}'`)}sJ.prototype.visitInt8=null,sJ.prototype.visitInt16=null,sJ.prototype.visitInt32=null,sJ.prototype.visitInt64=null,sJ.prototype.visitUint8=null,sJ.prototype.visitUint16=null,sJ.prototype.visitUint32=null,sJ.prototype.visitUint64=null,sJ.prototype.visitFloat16=null,sJ.prototype.visitFloat32=null,sJ.prototype.visitFloat64=null,sJ.prototype.visitDateDay=null,sJ.prototype.visitDateMillisecond=null,sJ.prototype.visitTimestampSecond=null,sJ.prototype.visitTimestampMillisecond=null,sJ.prototype.visitTimestampMicrosecond=null,sJ.prototype.visitTimestampNanosecond=null,sJ.prototype.visitTimeSecond=null,sJ.prototype.visitTimeMillisecond=null,sJ.prototype.visitTimeMicrosecond=null,sJ.prototype.visitTimeNanosecond=null,sJ.prototype.visitDenseUnion=null,sJ.prototype.visitSparseUnion=null,sJ.prototype.visitIntervalDayTime=null,sJ.prototype.visitIntervalYearMonth=null,sJ.prototype.visitIntervalMonthDayNano=null,sJ.prototype.visitDuration=null,sJ.prototype.visitDurationSecond=null,sJ.prototype.visitDurationMillisecond=null,sJ.prototype.visitDurationMicrosecond=null,sJ.prototype.visitDurationNanosecond=null
16667
+ const cJ=new Float64Array(1),dJ=new Uint32Array(cJ.buffer)
16668
+ function hJ(t){const e=(31744&t)>>10,n=(1023&t)/1024,i=Math.pow(-1,(32768&t)>>15)
16663
16669
  switch(e){case 31:return i*(n?Number.NaN:1/0)
16664
- case 0:return i*(n?6103515625e-14*n:0)}return i*Math.pow(2,e-15)*(1+n)}class hJ extends rJ{}function uJ(t){return(e,n,i)=>{if(e.setValid(n,null!=i))return t(e,n,i)}}const pJ=(t,e,n,i)=>{if(n+1<e.length){const o=jY(e[n]),r=jY(e[n+1])
16665
- t.set(i.subarray(0,r-o),o)}},fJ=({values:t},e,n)=>{t[e]=n},mJ=({values:t},e,n)=>{t[e]=n},gJ=({values:t},e,n)=>{t[e]=function(t){if(t!=t)return 32256
16666
- lJ[0]=t
16667
- const e=(2147483648&cJ[1])>>16&65535
16668
- let n=2146435072&cJ[1],i=0
16669
- return n>=1089470464?cJ[0]>0?n=31744:(n=(2080374784&n)>>16,i=(1048575&cJ[1])>>10):n<=1056964608?(i=1048576+(1048575&cJ[1]),i=1048576+(i<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,i=512+(1048575&cJ[1])>>10),e|n|65535&i}(n)},vJ=({values:t},e,n)=>{((t,e,n)=>{t[e]=Math.floor(n/864e5)})(t,e,n.valueOf())},bJ=({values:t},e,n)=>{t[e]=BigInt(n)},yJ=({values:t,valueOffsets:e},n,i)=>pJ(t,e,n,i),wJ=(t,e,n)=>{var i,o,r,s
16670
+ case 0:return i*(n?6103515625e-14*n:0)}return i*Math.pow(2,e-15)*(1+n)}class uJ extends sJ{}function pJ(t){return(e,n,i)=>{if(e.setValid(n,null!=i))return t(e,n,i)}}const fJ=(t,e,n,i)=>{if(n+1<e.length){const o=WY(e[n]),r=WY(e[n+1])
16671
+ t.set(i.subarray(0,r-o),o)}},mJ=({values:t},e,n)=>{t[e]=n},gJ=({values:t},e,n)=>{t[e]=n},vJ=({values:t},e,n)=>{t[e]=function(t){if(t!=t)return 32256
16672
+ cJ[0]=t
16673
+ const e=(2147483648&dJ[1])>>16&65535
16674
+ let n=2146435072&dJ[1],i=0
16675
+ return n>=1089470464?dJ[0]>0?n=31744:(n=(2080374784&n)>>16,i=(1048575&dJ[1])>>10):n<=1056964608?(i=1048576+(1048575&dJ[1]),i=1048576+(i<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,i=512+(1048575&dJ[1])>>10),e|n|65535&i}(n)},bJ=({values:t},e,n)=>{((t,e,n)=>{t[e]=Math.floor(n/864e5)})(t,e,n.valueOf())},yJ=({values:t},e,n)=>{t[e]=BigInt(n)},wJ=({values:t,valueOffsets:e},n,i)=>fJ(t,e,n,i),xJ=(t,e,n)=>{var i,o,r,s
16670
16676
  const a=t.values
16671
16677
  if(!a)throw new Error("BinaryView data is missing view buffer")
16672
- const l=LX.ELEMENT_WIDTH,c=e*l,d=c+l
16678
+ const l=BX.ELEMENT_WIDTH,c=e*l,d=c+l
16673
16679
  if(c<0||d>a.length)throw new RangeError(`BinaryView index ${e} out of bounds`)
16674
16680
  a.fill(0,c,d)
16675
16681
  const h=new DataView(a.buffer,a.byteOffset+c,l),u=n.length
16676
- if(h.setInt32(LX.LENGTH_OFFSET,u,!0),u<=LX.INLINE_CAPACITY)return void a.set(n,c+LX.INLINE_OFFSET)
16682
+ if(h.setInt32(BX.LENGTH_OFFSET,u,!0),u<=BX.INLINE_CAPACITY)return void a.set(n,c+BX.INLINE_OFFSET)
16677
16683
  const p=(null!==(i=n[0])&&void 0!==i?i:0)|(null!==(o=n[1])&&void 0!==o?o:0)<<8|(null!==(r=n[2])&&void 0!==r?r:0)<<16|(null!==(s=n[3])&&void 0!==s?s:0)<<24
16678
- h.setUint32(LX.INLINE_OFFSET,p>>>0,!0)
16684
+ h.setUint32(BX.INLINE_OFFSET,p>>>0,!0)
16679
16685
  const f=(t=>{let e=t.variadicBuffers
16680
16686
  return Array.isArray(e)&&!Object.isFrozen(e)||(e=Array.from(e),t.variadicBuffers=e),e})(t),m=n.slice(),g=f.push(m)-1
16681
- h.setInt32(LX.BUFFER_INDEX_OFFSET,g,!0),h.setInt32(LX.BUFFER_OFFSET_OFFSET,0,!0)},xJ=({values:t,valueOffsets:e},n,i)=>pJ(t,e,n,vK(i)),CJ=({values:t},e,n)=>{t[e]=BigInt(n/1e3)},kJ=({values:t},e,n)=>{t[e]=BigInt(n)},SJ=({values:t},e,n)=>{t[e]=BigInt(1e3*n)},$J=({values:t},e,n)=>{t[e]=BigInt(1e6*n)},_J=({values:t},e,n)=>{t[e]=n},IJ=({values:t},e,n)=>{t[e]=n},MJ=({values:t},e,n)=>{t[e]=n},EJ=({values:t},e,n)=>{t[e]=n},AJ=(t,e,n)=>{const i=t.children[0],o=t.valueOffsets,r=VJ.getVisitFn(i),s=jY(o[e]),a=jY(o[e+1])
16687
+ h.setInt32(BX.BUFFER_INDEX_OFFSET,g,!0),h.setInt32(BX.BUFFER_OFFSET_OFFSET,0,!0)},CJ=({values:t,valueOffsets:e},n,i)=>fJ(t,e,n,bK(i)),kJ=({values:t},e,n)=>{t[e]=BigInt(n/1e3)},SJ=({values:t},e,n)=>{t[e]=BigInt(n)},$J=({values:t},e,n)=>{t[e]=BigInt(1e3*n)},_J=({values:t},e,n)=>{t[e]=BigInt(1e6*n)},IJ=({values:t},e,n)=>{t[e]=n},MJ=({values:t},e,n)=>{t[e]=n},EJ=({values:t},e,n)=>{t[e]=n},AJ=({values:t},e,n)=>{t[e]=n},TJ=(t,e,n)=>{const i=t.children[0],o=t.valueOffsets,r=zJ.getVisitFn(i),s=WY(o[e]),a=WY(o[e+1])
16682
16688
  if(Array.isArray(n))for(let t=-1,e=s;e<a;)r(i,e++,n[++t])
16683
- else for(let t=-1,e=s;e<a;)r(i,e++,n.get(++t))},TJ=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],o=t.children[i]
16684
- VJ.visit(o,t.valueOffsets[e],n)},DJ=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],o=t.children[i]
16685
- VJ.visit(o,e,n)},OJ=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},RJ=({values:t},e,n)=>{t[e]=12*n[0]+n[1]%12},FJ=({values:t,stride:e},n,i)=>{t.set(i.subarray(0,e),e*n)},LJ=({values:t},e,n)=>{t[e]=n},BJ=({values:t},e,n)=>{t[e]=n},NJ=({values:t},e,n)=>{t[e]=n},PJ=({values:t},e,n)=>{t[e]=n}
16686
- hJ.prototype.visitBool=uJ(({offset:t,values:e},n,i)=>{const o=t+n
16687
- i?e[o>>3]|=1<<o%8:e[o>>3]&=~(1<<o%8)}),hJ.prototype.visitInt=uJ(fJ),hJ.prototype.visitInt8=uJ(fJ),hJ.prototype.visitInt16=uJ(fJ),hJ.prototype.visitInt32=uJ(fJ),hJ.prototype.visitInt64=uJ(fJ),hJ.prototype.visitUint8=uJ(fJ),hJ.prototype.visitUint16=uJ(fJ),hJ.prototype.visitUint32=uJ(fJ),hJ.prototype.visitUint64=uJ(fJ),hJ.prototype.visitFloat=uJ((t,e,n)=>{switch(t.type.precision){case GK.HALF:return gJ(t,e,n)
16688
- case GK.SINGLE:case GK.DOUBLE:return mJ(t,e,n)}}),hJ.prototype.visitFloat16=uJ(gJ),hJ.prototype.visitFloat32=uJ(mJ),hJ.prototype.visitFloat64=uJ(mJ),hJ.prototype.visitUtf8=uJ(xJ),hJ.prototype.visitLargeUtf8=uJ(xJ),hJ.prototype.visitUtf8View=uJ((t,e,n)=>{const i=vK(n)
16689
- wJ(t,e,i)}),hJ.prototype.visitBinary=uJ(yJ),hJ.prototype.visitLargeBinary=uJ(yJ),hJ.prototype.visitBinaryView=uJ((t,e,n)=>{const i=n instanceof Uint8Array?n:new Uint8Array(n)
16690
- wJ(t,e,i)}),hJ.prototype.visitFixedSizeBinary=uJ(({stride:t,values:e},n,i)=>{e.set(i.subarray(0,t),t*n)}),hJ.prototype.visitDate=uJ((t,e,n)=>{t.type.unit===ZK.DAY?vJ(t,e,n):bJ(t,e,n)}),hJ.prototype.visitDateDay=uJ(vJ),hJ.prototype.visitDateMillisecond=uJ(bJ),hJ.prototype.visitTimestamp=uJ((t,e,n)=>{switch(t.type.unit){case KK.SECOND:return CJ(t,e,n)
16691
- case KK.MILLISECOND:return kJ(t,e,n)
16692
- case KK.MICROSECOND:return SJ(t,e,n)
16693
- case KK.NANOSECOND:return $J(t,e,n)}}),hJ.prototype.visitTimestampSecond=uJ(CJ),hJ.prototype.visitTimestampMillisecond=uJ(kJ),hJ.prototype.visitTimestampMicrosecond=uJ(SJ),hJ.prototype.visitTimestampNanosecond=uJ($J),hJ.prototype.visitTime=uJ((t,e,n)=>{switch(t.type.unit){case KK.SECOND:return _J(t,e,n)
16694
- case KK.MILLISECOND:return IJ(t,e,n)
16695
- case KK.MICROSECOND:return MJ(t,e,n)
16696
- case KK.NANOSECOND:return EJ(t,e,n)}}),hJ.prototype.visitTimeSecond=uJ(_J),hJ.prototype.visitTimeMillisecond=uJ(IJ),hJ.prototype.visitTimeMicrosecond=uJ(MJ),hJ.prototype.visitTimeNanosecond=uJ(EJ),hJ.prototype.visitDecimal=uJ(({values:t,stride:e},n,i)=>{t.set(i.subarray(0,e),e*n)}),hJ.prototype.visitList=uJ(AJ),hJ.prototype.visitLargeList=uJ(AJ),hJ.prototype.visitStruct=uJ((t,e,n)=>{const i=t.type.children.map(t=>VJ.getVisitFn(t.type)),o=n instanceof Map?(r=e,s=n,(t,e,n,i)=>e&&t(e,r,s.get(n.name))):n instanceof m0?((t,e)=>(n,i,o,r)=>i&&n(i,t,e.get(r)))(e,n):Array.isArray(n)?((t,e)=>(n,i,o,r)=>i&&n(i,t,e[r]))(e,n):((t,e)=>(n,i,o,r)=>i&&n(i,t,e[o.name]))(e,n)
16689
+ else for(let t=-1,e=s;e<a;)r(i,e++,n.get(++t))},DJ=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],o=t.children[i]
16690
+ zJ.visit(o,t.valueOffsets[e],n)},OJ=(t,e,n)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],o=t.children[i]
16691
+ zJ.visit(o,e,n)},RJ=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},FJ=({values:t},e,n)=>{t[e]=12*n[0]+n[1]%12},LJ=({values:t,stride:e},n,i)=>{t.set(i.subarray(0,e),e*n)},BJ=({values:t},e,n)=>{t[e]=n},NJ=({values:t},e,n)=>{t[e]=n},PJ=({values:t},e,n)=>{t[e]=n},VJ=({values:t},e,n)=>{t[e]=n}
16692
+ uJ.prototype.visitBool=pJ(({offset:t,values:e},n,i)=>{const o=t+n
16693
+ i?e[o>>3]|=1<<o%8:e[o>>3]&=~(1<<o%8)}),uJ.prototype.visitInt=pJ(mJ),uJ.prototype.visitInt8=pJ(mJ),uJ.prototype.visitInt16=pJ(mJ),uJ.prototype.visitInt32=pJ(mJ),uJ.prototype.visitInt64=pJ(mJ),uJ.prototype.visitUint8=pJ(mJ),uJ.prototype.visitUint16=pJ(mJ),uJ.prototype.visitUint32=pJ(mJ),uJ.prototype.visitUint64=pJ(mJ),uJ.prototype.visitFloat=pJ((t,e,n)=>{switch(t.type.precision){case ZK.HALF:return vJ(t,e,n)
16694
+ case ZK.SINGLE:case ZK.DOUBLE:return gJ(t,e,n)}}),uJ.prototype.visitFloat16=pJ(vJ),uJ.prototype.visitFloat32=pJ(gJ),uJ.prototype.visitFloat64=pJ(gJ),uJ.prototype.visitUtf8=pJ(CJ),uJ.prototype.visitLargeUtf8=pJ(CJ),uJ.prototype.visitUtf8View=pJ((t,e,n)=>{const i=bK(n)
16695
+ xJ(t,e,i)}),uJ.prototype.visitBinary=pJ(wJ),uJ.prototype.visitLargeBinary=pJ(wJ),uJ.prototype.visitBinaryView=pJ((t,e,n)=>{const i=n instanceof Uint8Array?n:new Uint8Array(n)
16696
+ xJ(t,e,i)}),uJ.prototype.visitFixedSizeBinary=pJ(({stride:t,values:e},n,i)=>{e.set(i.subarray(0,t),t*n)}),uJ.prototype.visitDate=pJ((t,e,n)=>{t.type.unit===KK.DAY?bJ(t,e,n):yJ(t,e,n)}),uJ.prototype.visitDateDay=pJ(bJ),uJ.prototype.visitDateMillisecond=pJ(yJ),uJ.prototype.visitTimestamp=pJ((t,e,n)=>{switch(t.type.unit){case YK.SECOND:return kJ(t,e,n)
16697
+ case YK.MILLISECOND:return SJ(t,e,n)
16698
+ case YK.MICROSECOND:return $J(t,e,n)
16699
+ case YK.NANOSECOND:return _J(t,e,n)}}),uJ.prototype.visitTimestampSecond=pJ(kJ),uJ.prototype.visitTimestampMillisecond=pJ(SJ),uJ.prototype.visitTimestampMicrosecond=pJ($J),uJ.prototype.visitTimestampNanosecond=pJ(_J),uJ.prototype.visitTime=pJ((t,e,n)=>{switch(t.type.unit){case YK.SECOND:return IJ(t,e,n)
16700
+ case YK.MILLISECOND:return MJ(t,e,n)
16701
+ case YK.MICROSECOND:return EJ(t,e,n)
16702
+ case YK.NANOSECOND:return AJ(t,e,n)}}),uJ.prototype.visitTimeSecond=pJ(IJ),uJ.prototype.visitTimeMillisecond=pJ(MJ),uJ.prototype.visitTimeMicrosecond=pJ(EJ),uJ.prototype.visitTimeNanosecond=pJ(AJ),uJ.prototype.visitDecimal=pJ(({values:t,stride:e},n,i)=>{t.set(i.subarray(0,e),e*n)}),uJ.prototype.visitList=pJ(TJ),uJ.prototype.visitLargeList=pJ(TJ),uJ.prototype.visitStruct=pJ((t,e,n)=>{const i=t.type.children.map(t=>zJ.getVisitFn(t.type)),o=n instanceof Map?(r=e,s=n,(t,e,n,i)=>e&&t(e,r,s.get(n.name))):n instanceof g0?((t,e)=>(n,i,o,r)=>i&&n(i,t,e.get(r)))(e,n):Array.isArray(n)?((t,e)=>(n,i,o,r)=>i&&n(i,t,e[r]))(e,n):((t,e)=>(n,i,o,r)=>i&&n(i,t,e[o.name]))(e,n)
16697
16703
  var r,s
16698
- t.type.children.forEach((e,n)=>o(i[n],t.children[n],e,n))}),hJ.prototype.visitUnion=uJ((t,e,n)=>{t.type.mode===WK.Dense?TJ(t,e,n):DJ(t,e,n)}),hJ.prototype.visitDenseUnion=uJ(TJ),hJ.prototype.visitSparseUnion=uJ(DJ),hJ.prototype.visitDictionary=uJ((t,e,n)=>{var i
16699
- null===(i=t.dictionary)||void 0===i||i.set(t.values[e],n)}),hJ.prototype.visitInterval=uJ((t,e,n)=>{switch(t.type.unit){case YK.YEAR_MONTH:return RJ(t,e,n)
16700
- case YK.DAY_TIME:return OJ(t,e,n)
16701
- case YK.MONTH_DAY_NANO:return FJ(t,e,n)}}),hJ.prototype.visitIntervalDayTime=uJ(OJ),hJ.prototype.visitIntervalYearMonth=uJ(RJ),hJ.prototype.visitIntervalMonthDayNano=uJ(FJ),hJ.prototype.visitDuration=uJ((t,e,n)=>{switch(t.type.unit){case KK.SECOND:return LJ(t,e,n)
16702
- case KK.MILLISECOND:return BJ(t,e,n)
16703
- case KK.MICROSECOND:return NJ(t,e,n)
16704
- case KK.NANOSECOND:return PJ(t,e,n)}}),hJ.prototype.visitDurationSecond=uJ(LJ),hJ.prototype.visitDurationMillisecond=uJ(BJ),hJ.prototype.visitDurationMicrosecond=uJ(NJ),hJ.prototype.visitDurationNanosecond=uJ(PJ),hJ.prototype.visitFixedSizeList=uJ((t,e,n)=>{const{stride:i}=t,o=t.children[0],r=VJ.getVisitFn(o)
16704
+ t.type.children.forEach((e,n)=>o(i[n],t.children[n],e,n))}),uJ.prototype.visitUnion=pJ((t,e,n)=>{t.type.mode===GK.Dense?DJ(t,e,n):OJ(t,e,n)}),uJ.prototype.visitDenseUnion=pJ(DJ),uJ.prototype.visitSparseUnion=pJ(OJ),uJ.prototype.visitDictionary=pJ((t,e,n)=>{var i
16705
+ null===(i=t.dictionary)||void 0===i||i.set(t.values[e],n)}),uJ.prototype.visitInterval=pJ((t,e,n)=>{switch(t.type.unit){case XK.YEAR_MONTH:return FJ(t,e,n)
16706
+ case XK.DAY_TIME:return RJ(t,e,n)
16707
+ case XK.MONTH_DAY_NANO:return LJ(t,e,n)}}),uJ.prototype.visitIntervalDayTime=pJ(RJ),uJ.prototype.visitIntervalYearMonth=pJ(FJ),uJ.prototype.visitIntervalMonthDayNano=pJ(LJ),uJ.prototype.visitDuration=pJ((t,e,n)=>{switch(t.type.unit){case YK.SECOND:return BJ(t,e,n)
16708
+ case YK.MILLISECOND:return NJ(t,e,n)
16709
+ case YK.MICROSECOND:return PJ(t,e,n)
16710
+ case YK.NANOSECOND:return VJ(t,e,n)}}),uJ.prototype.visitDurationSecond=pJ(BJ),uJ.prototype.visitDurationMillisecond=pJ(NJ),uJ.prototype.visitDurationMicrosecond=pJ(PJ),uJ.prototype.visitDurationNanosecond=pJ(VJ),uJ.prototype.visitFixedSizeList=pJ((t,e,n)=>{const{stride:i}=t,o=t.children[0],r=zJ.getVisitFn(o)
16705
16711
  if(Array.isArray(n))for(let t=-1,s=e*i;++t<i;)r(o,s+t,n[t])
16706
- else for(let t=-1,s=e*i;++t<i;)r(o,s+t,n.get(t))}),hJ.prototype.visitMap=uJ((t,e,n)=>{const i=t.children[0],{valueOffsets:o}=t,r=VJ.getVisitFn(i)
16712
+ else for(let t=-1,s=e*i;++t<i;)r(o,s+t,n.get(t))}),uJ.prototype.visitMap=pJ((t,e,n)=>{const i=t.children[0],{valueOffsets:o}=t,r=zJ.getVisitFn(i)
16707
16713
  let{[e]:s,[e+1]:a}=o
16708
16714
  const l=n instanceof Map?n.entries():Object.entries(n)
16709
16715
  for(const t of l)if(r(i,s,t),++s>=a)break})
16710
- const VJ=new hJ,zJ=Symbol.for("parent"),HJ=Symbol.for("rowIndex")
16711
- class UJ{constructor(t,e){return this[zJ]=t,this[HJ]=e,new Proxy(this,jJ)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[HJ],e=this[zJ],n=e.type.children,i={}
16712
- for(let o=-1,r=n.length;++o<r;)i[n[o].name]=xQ.visit(e.children[o],t)
16713
- return i}toString(){return`{${[...this].map(([t,e])=>`${qY(t)}: ${qY(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new qJ(this[zJ],this[HJ])}}class qJ{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
16714
- return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,xQ.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(UJ.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[zJ]:{writable:!0,enumerable:!1,configurable:!1,value:null},[HJ]:{writable:!0,enumerable:!1,configurable:!1,value:-1}})
16715
- const jJ=new class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[zJ].type.children.map(t=>t.name)}has(t,e){return t[zJ].type.children.some(t=>t.name===e)}getOwnPropertyDescriptor(t,e){if(t[zJ].type.children.some(t=>t.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
16716
- const n=t[zJ].type.children.findIndex(t=>t.name===e)
16717
- if(-1!==n){const i=xQ.visit(t[zJ].children[n],t[HJ])
16718
- return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[zJ].type.children.findIndex(t=>t.name===e)
16719
- return-1!==i?(VJ.visit(t[zJ].children[i],t[HJ],n),Reflect.set(t,e,n)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,n)}}
16720
- class WJ extends rJ{}function GJ(t){return(e,n)=>e.getValid(n)?t(e,n):null}const ZJ=16,KJ=(t,e,n)=>{if(n+1>=e.length)return null
16721
- const i=jY(e[n]),o=jY(e[n+1])
16722
- return t.subarray(i,o)},YJ=({values:t},e)=>((t,e)=>864e5*t[e])(t,e),XJ=({values:t},e)=>jY(t[e]),JJ=({stride:t,values:e},n)=>e[t*n],QJ=({values:t},e)=>t[e],tQ=({values:t,valueOffsets:e},n)=>KJ(t,e,n),eQ=(t,e)=>{var n
16716
+ const zJ=new uJ,HJ=Symbol.for("parent"),UJ=Symbol.for("rowIndex")
16717
+ class qJ{constructor(t,e){return this[HJ]=t,this[UJ]=e,new Proxy(this,WJ)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[UJ],e=this[HJ],n=e.type.children,i={}
16718
+ for(let o=-1,r=n.length;++o<r;)i[n[o].name]=CQ.visit(e.children[o],t)
16719
+ return i}toString(){return`{${[...this].map(([t,e])=>`${jY(t)}: ${jY(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new jJ(this[HJ],this[UJ])}}class jJ{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
16720
+ return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,CQ.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(qJ.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[HJ]:{writable:!0,enumerable:!1,configurable:!1,value:null},[UJ]:{writable:!0,enumerable:!1,configurable:!1,value:-1}})
16721
+ const WJ=new class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[HJ].type.children.map(t=>t.name)}has(t,e){return t[HJ].type.children.some(t=>t.name===e)}getOwnPropertyDescriptor(t,e){if(t[HJ].type.children.some(t=>t.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
16722
+ const n=t[HJ].type.children.findIndex(t=>t.name===e)
16723
+ if(-1!==n){const i=CQ.visit(t[HJ].children[n],t[UJ])
16724
+ return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[HJ].type.children.findIndex(t=>t.name===e)
16725
+ return-1!==i?(zJ.visit(t[HJ].children[i],t[UJ],n),Reflect.set(t,e,n)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,n)}}
16726
+ class GJ extends sJ{}function ZJ(t){return(e,n)=>e.getValid(n)?t(e,n):null}const KJ=16,YJ=(t,e,n)=>{if(n+1>=e.length)return null
16727
+ const i=WY(e[n]),o=WY(e[n+1])
16728
+ return t.subarray(i,o)},XJ=({values:t},e)=>((t,e)=>864e5*t[e])(t,e),JJ=({values:t},e)=>WY(t[e]),QJ=({stride:t,values:e},n)=>e[t*n],tQ=({values:t},e)=>t[e],eQ=({values:t,valueOffsets:e},n)=>YJ(t,e,n),nQ=(t,e)=>{var n
16723
16729
  const i=t.values
16724
16730
  if(!i)throw new Error("BinaryView data is missing view buffer")
16725
- const o=e*ZJ,r=o+ZJ
16731
+ const o=e*KJ,r=o+KJ
16726
16732
  if(o<0||r>i.length)throw new Error(`BinaryView data buffer is too short: expected 16 bytes, got ${Math.max(0,i.length-o)}`)
16727
16733
  const s=i.subarray(o,r)
16728
- if(s.length<ZJ)throw new Error(`BinaryView data buffer is too short: expected 16 bytes, got ${s.length}`)
16729
- const a=new DataView(i.buffer,s.byteOffset,ZJ),l=a.getInt32(0,!0)
16734
+ if(s.length<KJ)throw new Error(`BinaryView data buffer is too short: expected 16 bytes, got ${s.length}`)
16735
+ const a=new DataView(i.buffer,s.byteOffset,KJ),l=a.getInt32(0,!0)
16730
16736
  if(l<=0)return new Uint8Array(0)
16731
16737
  if(l<=12)return s.subarray(4,4+l)
16732
16738
  const c=a.getInt32(8,!0),d=a.getInt32(12,!0),h=null===(n=t.variadicBuffers)||void 0===n?void 0:n[c]
16733
16739
  if(!h)throw new Error(`BinaryView variadic buffer ${c} is missing`)
16734
- return h.subarray(d,d+l)},nQ=({values:t,valueOffsets:e},n)=>{const i=KJ(t,e,n)
16735
- return null!==i?mK(i):null},iQ=({values:t},e)=>1e3*jY(t[e]),oQ=({values:t},e)=>jY(t[e]),rQ=({values:t},e)=>WY(t[e],BigInt(1e3)),sQ=({values:t},e)=>WY(t[e],BigInt(1e6)),aQ=({values:t},e)=>t[e],lQ=({values:t},e)=>t[e],cQ=({values:t},e)=>t[e],dQ=({values:t},e)=>t[e],hQ=(t,e)=>{const{valueOffsets:n,stride:i,children:o}=t,r=jY(n[e*i]),s=jY(n[e*i+1]),a=o[0].slice(r,s-r)
16736
- return new m0([a])},uQ=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
16737
- return xQ.visit(i,t.valueOffsets[e])},pQ=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
16738
- return xQ.visit(i,e)},fQ=({values:t},e)=>t.subarray(2*e,2*(e+1)),mQ=({values:t},e)=>{const n=t[e],i=new Int32Array(2)
16739
- return i[0]=Math.trunc(n/12),i[1]=Math.trunc(n%12),i},gQ=({values:t},e)=>t.subarray(4*e,4*(e+1)),vQ=({values:t},e)=>t[e],bQ=({values:t},e)=>t[e],yQ=({values:t},e)=>t[e],wQ=({values:t},e)=>t[e]
16740
- WJ.prototype.visitNull=GJ((t,e)=>null),WJ.prototype.visitBool=GJ(({offset:t,values:e},n)=>{const i=t+n
16741
- return!!(e[i>>3]&1<<i%8)}),WJ.prototype.visitInt=GJ(({values:t},e)=>t[e]),WJ.prototype.visitInt8=GJ(JJ),WJ.prototype.visitInt16=GJ(JJ),WJ.prototype.visitInt32=GJ(JJ),WJ.prototype.visitInt64=GJ(QJ),WJ.prototype.visitUint8=GJ(JJ),WJ.prototype.visitUint16=GJ(JJ),WJ.prototype.visitUint32=GJ(JJ),WJ.prototype.visitUint64=GJ(QJ),WJ.prototype.visitFloat=GJ(({type:t,values:e},n)=>t.precision!==GK.HALF?e[n]:dJ(e[n])),WJ.prototype.visitFloat16=GJ(({stride:t,values:e},n)=>dJ(e[t*n])),WJ.prototype.visitFloat32=GJ(JJ),WJ.prototype.visitFloat64=GJ(JJ),WJ.prototype.visitUtf8=GJ(nQ),WJ.prototype.visitLargeUtf8=GJ(nQ),WJ.prototype.visitUtf8View=GJ((t,e)=>{const n=eQ(t,e)
16742
- return mK(n)}),WJ.prototype.visitBinary=GJ(tQ),WJ.prototype.visitLargeBinary=GJ(tQ),WJ.prototype.visitBinaryView=GJ((t,e)=>eQ(t,e)),WJ.prototype.visitFixedSizeBinary=GJ(({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1))),WJ.prototype.visitDate=GJ((t,e)=>t.type.unit===ZK.DAY?YJ(t,e):XJ(t,e)),WJ.prototype.visitDateDay=GJ(YJ),WJ.prototype.visitDateMillisecond=GJ(XJ),WJ.prototype.visitTimestamp=GJ((t,e)=>{switch(t.type.unit){case KK.SECOND:return iQ(t,e)
16743
- case KK.MILLISECOND:return oQ(t,e)
16744
- case KK.MICROSECOND:return rQ(t,e)
16745
- case KK.NANOSECOND:return sQ(t,e)}}),WJ.prototype.visitTimestampSecond=GJ(iQ),WJ.prototype.visitTimestampMillisecond=GJ(oQ),WJ.prototype.visitTimestampMicrosecond=GJ(rQ),WJ.prototype.visitTimestampNanosecond=GJ(sQ),WJ.prototype.visitTime=GJ((t,e)=>{switch(t.type.unit){case KK.SECOND:return aQ(t,e)
16746
- case KK.MILLISECOND:return lQ(t,e)
16747
- case KK.MICROSECOND:return cQ(t,e)
16748
- case KK.NANOSECOND:return dQ(t,e)}}),WJ.prototype.visitTimeSecond=GJ(aQ),WJ.prototype.visitTimeMillisecond=GJ(lQ),WJ.prototype.visitTimeMicrosecond=GJ(cQ),WJ.prototype.visitTimeNanosecond=GJ(dQ),WJ.prototype.visitDecimal=GJ(({values:t,stride:e},n)=>nX.decimal(t.subarray(e*n,e*(n+1)))),WJ.prototype.visitList=GJ(hQ),WJ.prototype.visitLargeList=GJ(hQ),WJ.prototype.visitStruct=GJ((t,e)=>new UJ(t,e)),WJ.prototype.visitUnion=GJ((t,e)=>t.type.mode===WK.Dense?uQ(t,e):pQ(t,e)),WJ.prototype.visitDenseUnion=GJ(uQ),WJ.prototype.visitSparseUnion=GJ(pQ),WJ.prototype.visitDictionary=GJ((t,e)=>{var n
16749
- return null===(n=t.dictionary)||void 0===n?void 0:n.get(t.values[e])}),WJ.prototype.visitInterval=GJ((t,e)=>t.type.unit===YK.MONTH_DAY_NANO?gQ(t,e):t.type.unit===YK.DAY_TIME?fQ(t,e):mQ(t,e)),WJ.prototype.visitIntervalDayTime=GJ(fQ),WJ.prototype.visitIntervalYearMonth=GJ(mQ),WJ.prototype.visitIntervalMonthDayNano=GJ(gQ),WJ.prototype.visitDuration=GJ((t,e)=>{switch(t.type.unit){case KK.SECOND:return vQ(t,e)
16750
- case KK.MILLISECOND:return bQ(t,e)
16751
- case KK.MICROSECOND:return yQ(t,e)
16752
- case KK.NANOSECOND:return wQ(t,e)}}),WJ.prototype.visitDurationSecond=GJ(vQ),WJ.prototype.visitDurationMillisecond=GJ(bQ),WJ.prototype.visitDurationMicrosecond=GJ(yQ),WJ.prototype.visitDurationNanosecond=GJ(wQ),WJ.prototype.visitFixedSizeList=GJ((t,e)=>{const{stride:n,children:i}=t,o=i[0].slice(e*n,n)
16753
- return new m0([o])}),WJ.prototype.visitMap=GJ((t,e)=>{const{valueOffsets:n,children:i}=t,{[e]:o,[e+1]:r}=n,s=i[0]
16754
- return new _Q(s.slice(o,r-o))})
16755
- const xQ=new WJ,CQ=Symbol.for("keys"),kQ=Symbol.for("vals"),SQ=Symbol.for("kKeysAsStrings"),$Q=Symbol.for("_kKeysAsStrings")
16756
- class _Q{constructor(t){return this[CQ]=new m0([t.children[0]]).memoize(),this[kQ]=t.children[1],new Proxy(this,new MQ)}get[SQ](){return this[$Q]||(this[$Q]=Array.from(this[CQ].toArray(),String))}[Symbol.iterator](){return new IQ(this[CQ],this[kQ])}get size(){return this[CQ].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[CQ],e=this[kQ],n={}
16757
- for(let i=-1,o=t.length;++i<o;)n[t.get(i)]=xQ.visit(e,i)
16758
- return n}toString(){return`{${[...this].map(([t,e])=>`${qY(t)}: ${qY(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class IQ{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
16759
- return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),xQ.visit(this.vals,t)]})}}class MQ{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[SQ]}has(t,e){return t[SQ].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[SQ].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
16760
- const n=t[SQ].indexOf(e)
16761
- if(-1!==n){const i=xQ.visit(Reflect.get(t,kQ),n)
16762
- return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[SQ].indexOf(e)
16763
- return-1!==i?(VJ.visit(Reflect.get(t,kQ),i,n),Reflect.set(t,e,n)):!!Reflect.has(t,e)&&Reflect.set(t,e,n)}}let EQ
16764
- function AQ(t,e,n,i){const{length:o=0}=t
16740
+ return h.subarray(d,d+l)},iQ=({values:t,valueOffsets:e},n)=>{const i=YJ(t,e,n)
16741
+ return null!==i?gK(i):null},oQ=({values:t},e)=>1e3*WY(t[e]),rQ=({values:t},e)=>WY(t[e]),sQ=({values:t},e)=>GY(t[e],BigInt(1e3)),aQ=({values:t},e)=>GY(t[e],BigInt(1e6)),lQ=({values:t},e)=>t[e],cQ=({values:t},e)=>t[e],dQ=({values:t},e)=>t[e],hQ=({values:t},e)=>t[e],uQ=(t,e)=>{const{valueOffsets:n,stride:i,children:o}=t,r=WY(n[e*i]),s=WY(n[e*i+1]),a=o[0].slice(r,s-r)
16742
+ return new g0([a])},pQ=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
16743
+ return CQ.visit(i,t.valueOffsets[e])},fQ=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n]
16744
+ return CQ.visit(i,e)},mQ=({values:t},e)=>t.subarray(2*e,2*(e+1)),gQ=({values:t},e)=>{const n=t[e],i=new Int32Array(2)
16745
+ return i[0]=Math.trunc(n/12),i[1]=Math.trunc(n%12),i},vQ=({values:t},e)=>t.subarray(4*e,4*(e+1)),bQ=({values:t},e)=>t[e],yQ=({values:t},e)=>t[e],wQ=({values:t},e)=>t[e],xQ=({values:t},e)=>t[e]
16746
+ GJ.prototype.visitNull=ZJ((t,e)=>null),GJ.prototype.visitBool=ZJ(({offset:t,values:e},n)=>{const i=t+n
16747
+ return!!(e[i>>3]&1<<i%8)}),GJ.prototype.visitInt=ZJ(({values:t},e)=>t[e]),GJ.prototype.visitInt8=ZJ(QJ),GJ.prototype.visitInt16=ZJ(QJ),GJ.prototype.visitInt32=ZJ(QJ),GJ.prototype.visitInt64=ZJ(tQ),GJ.prototype.visitUint8=ZJ(QJ),GJ.prototype.visitUint16=ZJ(QJ),GJ.prototype.visitUint32=ZJ(QJ),GJ.prototype.visitUint64=ZJ(tQ),GJ.prototype.visitFloat=ZJ(({type:t,values:e},n)=>t.precision!==ZK.HALF?e[n]:hJ(e[n])),GJ.prototype.visitFloat16=ZJ(({stride:t,values:e},n)=>hJ(e[t*n])),GJ.prototype.visitFloat32=ZJ(QJ),GJ.prototype.visitFloat64=ZJ(QJ),GJ.prototype.visitUtf8=ZJ(iQ),GJ.prototype.visitLargeUtf8=ZJ(iQ),GJ.prototype.visitUtf8View=ZJ((t,e)=>{const n=nQ(t,e)
16748
+ return gK(n)}),GJ.prototype.visitBinary=ZJ(eQ),GJ.prototype.visitLargeBinary=ZJ(eQ),GJ.prototype.visitBinaryView=ZJ((t,e)=>nQ(t,e)),GJ.prototype.visitFixedSizeBinary=ZJ(({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1))),GJ.prototype.visitDate=ZJ((t,e)=>t.type.unit===KK.DAY?XJ(t,e):JJ(t,e)),GJ.prototype.visitDateDay=ZJ(XJ),GJ.prototype.visitDateMillisecond=ZJ(JJ),GJ.prototype.visitTimestamp=ZJ((t,e)=>{switch(t.type.unit){case YK.SECOND:return oQ(t,e)
16749
+ case YK.MILLISECOND:return rQ(t,e)
16750
+ case YK.MICROSECOND:return sQ(t,e)
16751
+ case YK.NANOSECOND:return aQ(t,e)}}),GJ.prototype.visitTimestampSecond=ZJ(oQ),GJ.prototype.visitTimestampMillisecond=ZJ(rQ),GJ.prototype.visitTimestampMicrosecond=ZJ(sQ),GJ.prototype.visitTimestampNanosecond=ZJ(aQ),GJ.prototype.visitTime=ZJ((t,e)=>{switch(t.type.unit){case YK.SECOND:return lQ(t,e)
16752
+ case YK.MILLISECOND:return cQ(t,e)
16753
+ case YK.MICROSECOND:return dQ(t,e)
16754
+ case YK.NANOSECOND:return hQ(t,e)}}),GJ.prototype.visitTimeSecond=ZJ(lQ),GJ.prototype.visitTimeMillisecond=ZJ(cQ),GJ.prototype.visitTimeMicrosecond=ZJ(dQ),GJ.prototype.visitTimeNanosecond=ZJ(hQ),GJ.prototype.visitDecimal=ZJ(({values:t,stride:e},n)=>iX.decimal(t.subarray(e*n,e*(n+1)))),GJ.prototype.visitList=ZJ(uQ),GJ.prototype.visitLargeList=ZJ(uQ),GJ.prototype.visitStruct=ZJ((t,e)=>new qJ(t,e)),GJ.prototype.visitUnion=ZJ((t,e)=>t.type.mode===GK.Dense?pQ(t,e):fQ(t,e)),GJ.prototype.visitDenseUnion=ZJ(pQ),GJ.prototype.visitSparseUnion=ZJ(fQ),GJ.prototype.visitDictionary=ZJ((t,e)=>{var n
16755
+ return null===(n=t.dictionary)||void 0===n?void 0:n.get(t.values[e])}),GJ.prototype.visitInterval=ZJ((t,e)=>t.type.unit===XK.MONTH_DAY_NANO?vQ(t,e):t.type.unit===XK.DAY_TIME?mQ(t,e):gQ(t,e)),GJ.prototype.visitIntervalDayTime=ZJ(mQ),GJ.prototype.visitIntervalYearMonth=ZJ(gQ),GJ.prototype.visitIntervalMonthDayNano=ZJ(vQ),GJ.prototype.visitDuration=ZJ((t,e)=>{switch(t.type.unit){case YK.SECOND:return bQ(t,e)
16756
+ case YK.MILLISECOND:return yQ(t,e)
16757
+ case YK.MICROSECOND:return wQ(t,e)
16758
+ case YK.NANOSECOND:return xQ(t,e)}}),GJ.prototype.visitDurationSecond=ZJ(bQ),GJ.prototype.visitDurationMillisecond=ZJ(yQ),GJ.prototype.visitDurationMicrosecond=ZJ(wQ),GJ.prototype.visitDurationNanosecond=ZJ(xQ),GJ.prototype.visitFixedSizeList=ZJ((t,e)=>{const{stride:n,children:i}=t,o=i[0].slice(e*n,n)
16759
+ return new g0([o])}),GJ.prototype.visitMap=ZJ((t,e)=>{const{valueOffsets:n,children:i}=t,{[e]:o,[e+1]:r}=n,s=i[0]
16760
+ return new IQ(s.slice(o,r-o))})
16761
+ const CQ=new GJ,kQ=Symbol.for("keys"),SQ=Symbol.for("vals"),$Q=Symbol.for("kKeysAsStrings"),_Q=Symbol.for("_kKeysAsStrings")
16762
+ class IQ{constructor(t){return this[kQ]=new g0([t.children[0]]).memoize(),this[SQ]=t.children[1],new Proxy(this,new EQ)}get[$Q](){return this[_Q]||(this[_Q]=Array.from(this[kQ].toArray(),String))}[Symbol.iterator](){return new MQ(this[kQ],this[SQ])}get size(){return this[kQ].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[kQ],e=this[SQ],n={}
16763
+ for(let i=-1,o=t.length;++i<o;)n[t.get(i)]=CQ.visit(e,i)
16764
+ return n}toString(){return`{${[...this].map(([t,e])=>`${jY(t)}: ${jY(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class MQ{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
16765
+ return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),CQ.visit(this.vals,t)]})}}class EQ{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[$Q]}has(t,e){return t[$Q].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[$Q].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e]
16766
+ const n=t[$Q].indexOf(e)
16767
+ if(-1!==n){const i=CQ.visit(Reflect.get(t,SQ),n)
16768
+ return Reflect.set(t,e,i),i}}set(t,e,n){const i=t[$Q].indexOf(e)
16769
+ return-1!==i?(zJ.visit(Reflect.get(t,SQ),i,n),Reflect.set(t,e,n)):!!Reflect.has(t,e)&&Reflect.set(t,e,n)}}let AQ
16770
+ function TQ(t,e,n,i){const{length:o=0}=t
16765
16771
  let r="number"!=typeof e?0:e,s="number"!=typeof n?o:n
16766
- return r<0&&(r=(r%o+o)%o),s<0&&(s=(s%o+o)%o),s<r&&(EQ=r,r=s,s=EQ),s>o&&(s=o),i?i(t,r,s):[r,s]}Object.defineProperties(_Q.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[CQ]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kQ]:{writable:!0,enumerable:!1,configurable:!1,value:null},[$Q]:{writable:!0,enumerable:!1,configurable:!1,value:null}})
16767
- const TQ=(t,e)=>t<0?e+t:t,DQ=t=>t!=t
16768
- function OQ(t){if("object"!==typeof t||null===t)return DQ(t)?DQ:e=>e===t
16772
+ return r<0&&(r=(r%o+o)%o),s<0&&(s=(s%o+o)%o),s<r&&(AQ=r,r=s,s=AQ),s>o&&(s=o),i?i(t,r,s):[r,s]}Object.defineProperties(IQ.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kQ]:{writable:!0,enumerable:!1,configurable:!1,value:null},[SQ]:{writable:!0,enumerable:!1,configurable:!1,value:null},[_Q]:{writable:!0,enumerable:!1,configurable:!1,value:null}})
16773
+ const DQ=(t,e)=>t<0?e+t:t,OQ=t=>t!=t
16774
+ function RQ(t){if("object"!==typeof t||null===t)return OQ(t)?OQ:e=>e===t
16769
16775
  if(t instanceof Date){const e=t.valueOf()
16770
16776
  return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&function(t,e){let n=0
16771
16777
  const i=t.length
@@ -16773,339 +16779,339 @@ if(i!==e.length)return!1
16773
16779
  if(i>0)do{if(t[n]!==e[n])return!1}while(++n<i)
16774
16780
  return!0}(t,e):t instanceof Map?function(t){let e=-1
16775
16781
  const n=[]
16776
- for(const i of t.values())n[++e]=OQ(i)
16777
- return RQ(n)}(t):Array.isArray(t)?function(t){const e=[]
16778
- for(let n=-1,i=t.length;++n<i;)e[n]=OQ(t[n])
16779
- return RQ(e)}(t):t instanceof m0?function(t){const e=[]
16780
- for(let n=-1,i=t.length;++n<i;)e[n]=OQ(t.get(n))
16781
- return RQ(e)}(t):function(t,e=!1){const n=Object.keys(t)
16782
+ for(const i of t.values())n[++e]=RQ(i)
16783
+ return FQ(n)}(t):Array.isArray(t)?function(t){const e=[]
16784
+ for(let n=-1,i=t.length;++n<i;)e[n]=RQ(t[n])
16785
+ return FQ(e)}(t):t instanceof g0?function(t){const e=[]
16786
+ for(let n=-1,i=t.length;++n<i;)e[n]=RQ(t.get(n))
16787
+ return FQ(e)}(t):function(t,e=!1){const n=Object.keys(t)
16782
16788
  if(!e&&0===n.length)return()=>!1
16783
16789
  const i=[]
16784
- for(let e=-1,o=n.length;++e<o;)i[e]=OQ(t[n[e]])
16785
- return RQ(i,n)}(t,!0)}function RQ(t,e){return n=>{if(!n||"object"!=typeof n)return!1
16790
+ for(let e=-1,o=n.length;++e<o;)i[e]=RQ(t[n[e]])
16791
+ return FQ(i,n)}(t,!0)}function FQ(t,e){return n=>{if(!n||"object"!=typeof n)return!1
16786
16792
  switch(n.constructor){case Array:return function(t,e){const n=t.length
16787
16793
  if(e.length!==n)return!1
16788
16794
  for(let i=-1;++i<n;)if(!t[i](e[i]))return!1
16789
16795
  return!0}(t,n)
16790
- case Map:return FQ(t,n,n.keys())
16791
- case _Q:case UJ:case Object:case void 0:return FQ(t,n,e||Object.keys(n))}return n instanceof m0&&function(t,e){const n=t.length
16796
+ case Map:return LQ(t,n,n.keys())
16797
+ case IQ:case qJ:case Object:case void 0:return LQ(t,n,e||Object.keys(n))}return n instanceof g0&&function(t,e){const n=t.length
16792
16798
  if(e.length!==n)return!1
16793
16799
  for(let i=-1;++i<n;)if(!t[i](e.get(i)))return!1
16794
- return!0}(t,n)}}function FQ(t,e,n){const i=n[Symbol.iterator](),o=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),r=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]()
16800
+ return!0}(t,n)}}function LQ(t,e,n){const i=n[Symbol.iterator](),o=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),r=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]()
16795
16801
  let s=0
16796
16802
  const a=t.length
16797
16803
  let l=r.next(),c=i.next(),d=o.next()
16798
- for(;s<a&&!c.done&&!d.done&&!l.done&&(c.value===d.value&&t[s](l.value));++s,c=i.next(),d=o.next(),l=r.next());return!!(s===a&&c.done&&d.done&&l.done)||(i.return&&i.return(),o.return&&o.return(),r.return&&r.return(),!1)}function LQ(t,e,n,i){return!!(n&1<<i)}function BQ(t,e,n,i){return(n&1<<i)>>i}function NQ(t,e,n){const i=n.byteLength+7&-8
16804
+ for(;s<a&&!c.done&&!d.done&&!l.done&&(c.value===d.value&&t[s](l.value));++s,c=i.next(),d=o.next(),l=r.next());return!!(s===a&&c.done&&d.done&&l.done)||(i.return&&i.return(),o.return&&o.return(),r.return&&r.return(),!1)}function BQ(t,e,n,i){return!!(n&1<<i)}function NQ(t,e,n,i){return(n&1<<i)>>i}function PQ(t,e,n){const i=n.byteLength+7&-8
16799
16805
  if(t>0||n.byteLength<i){const o=new Uint8Array(i)
16800
- return o.set(t%8==0?n.subarray(t>>3):PQ(new VQ(n,t,e,null,LQ)).subarray(0,i)),o}return n}function PQ(t){const e=[]
16806
+ return o.set(t%8==0?n.subarray(t>>3):VQ(new zQ(n,t,e,null,BQ)).subarray(0,i)),o}return n}function VQ(t){const e=[]
16801
16807
  let n=0,i=0,o=0
16802
16808
  for(const r of t)r&&(o|=1<<i),8===++i&&(e[n++]=o,o=i=0);(0===n||i>0)&&(e[n++]=o)
16803
16809
  const r=new Uint8Array(e.length+7&-8)
16804
- return r.set(e),r}class VQ{constructor(t,e,n,i,o){this.bytes=t,this.length=n,this.context=i,this.get=o,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 zQ(t,e,n){if(n-e<=0)return 0
16810
+ return r.set(e),r}class zQ{constructor(t,e,n,i,o){this.bytes=t,this.length=n,this.context=i,this.get=o,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 HQ(t,e,n){if(n-e<=0)return 0
16805
16811
  if(n-e<8){let i=0
16806
- for(const o of new VQ(t,e,n-e,t,BQ))i+=o
16812
+ for(const o of new zQ(t,e,n-e,t,NQ))i+=o
16807
16813
  return i}const i=n>>3<<3,o=e+(e%8==0?0:8-e%8)
16808
- return zQ(t,e,o)+zQ(t,i,n)+function(t,e,n){let i=0,o=Math.trunc(e)
16814
+ return HQ(t,e,o)+HQ(t,i,n)+function(t,e,n){let i=0,o=Math.trunc(e)
16809
16815
  const r=new DataView(t.buffer,t.byteOffset,t.byteLength),s=void 0===n?t.byteLength:o+n
16810
- for(;s-o>=4;)i+=HQ(r.getUint32(o)),o+=4
16811
- for(;s-o>=2;)i+=HQ(r.getUint16(o)),o+=2
16812
- for(;s-o>=1;)i+=HQ(r.getUint8(o)),o+=1
16813
- return i}(t,o>>3,i-o>>3)}function HQ(t){let e=Math.trunc(t)
16814
- return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}const UQ=Symbol.for("apache-arrow/Data")
16815
- class qQ{static isData(t){return!0===(null==t?void 0:t[UQ])}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
16816
- return EX.isSparseUnion(t)||EX.isDenseUnion(t)?this.children.some(t=>t.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0
16816
+ for(;s-o>=4;)i+=UQ(r.getUint32(o)),o+=4
16817
+ for(;s-o>=2;)i+=UQ(r.getUint16(o)),o+=2
16818
+ for(;s-o>=1;)i+=UQ(r.getUint8(o)),o+=1
16819
+ return i}(t,o>>3,i-o>>3)}function UQ(t){let e=Math.trunc(t)
16820
+ return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}const qQ=Symbol.for("apache-arrow/Data")
16821
+ class jQ{static isData(t){return!0===(null==t?void 0:t[qQ])}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
16822
+ return AX.isSparseUnion(t)||AX.isDenseUnion(t)?this.children.some(t=>t.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0
16817
16823
  const{valueOffsets:e,values:n,nullBitmap:i,typeIds:o}=this
16818
16824
  return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),o&&(t+=o.byteLength),t+=this.variadicBuffers.reduce((t,e)=>{var n
16819
- return t+(null!==(n=null==e?void 0:e.byteLength)&&void 0!==n?n:0)},0),this.children.reduce((t,e)=>t+e.byteLength,t)}get nullCount(){if(EX.isUnion(this.type))return this.children.reduce((t,e)=>t+e.nullCount,0)
16825
+ return t+(null!==(n=null==e?void 0:e.byteLength)&&void 0!==n?n:0)},0),this.children.reduce((t,e)=>t+e.byteLength,t)}get nullCount(){if(AX.isUnion(this.type))return this.children.reduce((t,e)=>t+e.nullCount,0)
16820
16826
  let t,e=this._nullCount
16821
- return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=0===t.length?0:this.length-zQ(t,this.offset,this.offset+this.length)),e}constructor(t,e,n,i,o,r=[],s,a=[]){var l
16827
+ return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=0===t.length?0:this.length-HQ(t,this.offset,this.offset+this.length)),e}constructor(t,e,n,i,o,r=[],s,a=[]){var l
16822
16828
  let c
16823
- this.type=t,this.children=r,this.dictionary=s,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)),o instanceof qQ?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets,this.variadicBuffers=o.variadicBuffers):(this.stride=oJ(t),o&&((c=o[0])&&(this.valueOffsets=c),(c=o[1])&&(this.values=c),(c=o[2])&&(this.nullBitmap=c),(c=o[3])&&(this.typeIds=c)),this.variadicBuffers=a),null!==(l=this.variadicBuffers)&&void 0!==l||(this.variadicBuffers=[])}getValid(t){const{type:e}=this
16824
- if(EX.isUnion(e)){const n=e,i=this.typeIds[t],o=n.typeIdToChildIndex[i],r=this.children[o],s=this.valueOffsets,a=n.mode===WK.Dense&&s?Number(s[t]):t
16829
+ this.type=t,this.children=r,this.dictionary=s,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)),o instanceof jQ?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets,this.variadicBuffers=o.variadicBuffers):(this.stride=rJ(t),o&&((c=o[0])&&(this.valueOffsets=c),(c=o[1])&&(this.values=c),(c=o[2])&&(this.nullBitmap=c),(c=o[3])&&(this.typeIds=c)),this.variadicBuffers=a),null!==(l=this.variadicBuffers)&&void 0!==l||(this.variadicBuffers=[])}getValid(t){const{type:e}=this
16830
+ if(AX.isUnion(e)){const n=e,i=this.typeIds[t],o=n.typeIdToChildIndex[i],r=this.children[o],s=this.valueOffsets,a=n.mode===GK.Dense&&s?Number(s[t]):t
16825
16831
  return r.getValid(a)}if(this.nullable&&this.nullCount>0){const e=this.offset+t
16826
16832
  return!!(this.nullBitmap[e>>3]&1<<e%8)}return!0}setValid(t,e){let n
16827
16833
  const{type:i}=this
16828
- if(EX.isUnion(i)){const o=i,r=this.typeIds[t],s=o.typeIdToChildIndex[r],a=this.children[s],l=this.valueOffsets,c=o.mode===WK.Dense&&l?Number(l[t]):t
16834
+ if(AX.isUnion(i)){const o=i,r=this.typeIds[t],s=o.typeIdToChildIndex[r],a=this.children[s],l=this.valueOffsets,c=o.mode===GK.Dense&&l?Number(l[t]):t
16829
16835
  n=a.getValid(c),a.setValid(c,e)}else{let{nullBitmap:i}=this
16830
- const{offset:o,length:r}=this,s=o+t,a=1<<s%8,l=s>>3;(!i||i.byteLength<=l)&&(i=new Uint8Array((o+r+63&-64)>>3).fill(255),this.nullCount>0?(i.set(NQ(o,r,this.nullBitmap),0),Object.assign(this,{nullBitmap:i})):Object.assign(this,{nullBitmap:i,_nullCount:0}))
16836
+ const{offset:o,length:r}=this,s=o+t,a=1<<s%8,l=s>>3;(!i||i.byteLength<=l)&&(i=new Uint8Array((o+r+63&-64)>>3).fill(255),this.nullCount>0?(i.set(PQ(o,r,this.nullBitmap),0),Object.assign(this,{nullBitmap:i})):Object.assign(this,{nullBitmap:i,_nullCount:0}))
16831
16837
  const c=i[l]
16832
- 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,o=this,r=this.children,s=this.variadicBuffers){return new qQ(t,e,n,i,o,r,this.dictionary,s)}slice(t,e){const{stride:n,typeId:i,children:o}=this,r=+(0===this._nullCount)-1,s=16===i?n:1,a=this._sliceBuffers(t,e,n,i)
16833
- return this.clone(this.type,this.offset+t,e,r,a,0===o.length||this.valueOffsets?o:this._sliceChildren(o,s*t,s*e),this.variadicBuffers)}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===HY.Null)return this.clone(this.type,0,t,0,this.buffers,this.children,this.variadicBuffers)
16838
+ 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,o=this,r=this.children,s=this.variadicBuffers){return new jQ(t,e,n,i,o,r,this.dictionary,s)}slice(t,e){const{stride:n,typeId:i,children:o}=this,r=+(0===this._nullCount)-1,s=16===i?n:1,a=this._sliceBuffers(t,e,n,i)
16839
+ return this.clone(this.type,this.offset+t,e,r,a,0===o.length||this.valueOffsets?o:this._sliceChildren(o,s*t,s*e),this.variadicBuffers)}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===UY.Null)return this.clone(this.type,0,t,0,this.buffers,this.children,this.variadicBuffers)
16834
16840
  const{length:e,nullCount:n}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3)
16835
- i[e>>3]=(1<<e-(-8&e))-1,n>0&&i.set(NQ(this.offset,e,this.nullBitmap),0)
16841
+ i[e>>3]=(1<<e-(-8&e))-1,n>0&&i.set(PQ(this.offset,e,this.nullBitmap),0)
16836
16842
  const o=this.buffers
16837
- return o[UY.VALIDITY]=i,this.clone(this.type,0,t,n+(t-e),o,this.children,this.variadicBuffers)}_sliceBuffers(t,e,n,i){let o
16843
+ return o[qY.VALIDITY]=i,this.clone(this.type,0,t,n+(t-e),o,this.children,this.variadicBuffers)}_sliceBuffers(t,e,n,i){let o
16838
16844
  const{buffers:r}=this
16839
- if((o=r[UY.TYPE])&&(r[UY.TYPE]=o.subarray(t,t+e)),EX.isBinaryView(this.type)||EX.isUtf8View(this.type)){const n=LX.ELEMENT_WIDTH;(o=r[UY.DATA])&&(r[UY.DATA]=o.subarray(t*n,(t+e)*n))}else(o=r[UY.OFFSET])&&(r[UY.OFFSET]=o.subarray(t,t+e+1))||(o=r[UY.DATA])&&(r[UY.DATA]=6===i?o:o.subarray(n*t,n*(t+e)))
16840
- return r}_sliceChildren(t,e,n){return t.map(t=>t.slice(e,n))}}qQ.prototype.children=Object.freeze([]),qQ.prototype[UQ]=!0,Object.defineProperty(qQ,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===qQ&&qQ.isData(t)}})
16841
- class jQ extends rJ{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{type:e,offset:n=0,length:i=0}=t
16842
- return new qQ(e,n,i,i)}visitBool(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length>>3,nullCount:s=(t.nullBitmap?-1:0)}=t
16843
- return new qQ(e,n,r,s,[void 0,o,i])}visitInt(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length,nullCount:s=(t.nullBitmap?-1:0)}=t
16844
- return new qQ(e,n,r,s,[void 0,o,i])}visitFloat(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length,nullCount:s=(t.nullBitmap?-1:0)}=t
16845
- return new qQ(e,n,r,s,[void 0,o,i])}visitUtf8(t){const{type:e,offset:n=0}=t,i=LK(t.data),o=LK(t.nullBitmap),r=RK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16846
- return new qQ(e,n,s,a,[r,i,o])}visitUtf8View(t){var e
16847
- const{type:n,offset:i=0}=t,o=OK(n.ArrayType,t.views),r=LK(t.nullBitmap),s=(t.variadicBuffers||[]).map(t=>LK(t)),a=null!==(e=t.length)&&void 0!==e?e:Math.trunc(o.length/PX.ELEMENT_WIDTH),l=t.nullBitmap?-1:0
16848
- return new qQ(n,i,a,l,[void 0,o,r],[],void 0,s)}visitLargeUtf8(t){const{type:e,offset:n=0}=t,i=LK(t.data),o=LK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16849
- return new qQ(e,n,s,a,[r,i,o])}visitBinary(t){const{type:e,offset:n=0}=t,i=LK(t.data),o=LK(t.nullBitmap),r=RK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16850
- return new qQ(e,n,s,a,[r,i,o])}visitBinaryView(t){var e
16851
- const{type:n,offset:i=0}=t,o=OK(n.ArrayType,t.views),r=LK(t.nullBitmap),s=(t.variadicBuffers||[]).map(t=>LK(t)),a=null!==(e=t.length)&&void 0!==e?e:Math.trunc(o.length/LX.ELEMENT_WIDTH),l=t.nullBitmap?-1:0
16852
- return new qQ(n,i,a,l,[void 0,o,r],[],void 0,s)}visitLargeBinary(t){const{type:e,offset:n=0}=t,i=LK(t.data),o=LK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16853
- return new qQ(e,n,s,a,[r,i,o])}visitFixedSizeBinary(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16854
- return new qQ(e,n,r,s,[void 0,o,i])}visitDate(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16855
- return new qQ(e,n,r,s,[void 0,o,i])}visitTimestamp(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16856
- return new qQ(e,n,r,s,[void 0,o,i])}visitTime(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16857
- return new qQ(e,n,r,s,[void 0,o,i])}visitDecimal(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16858
- return new qQ(e,n,r,s,[void 0,o,i])}visitList(t){const{type:e,offset:n=0,child:i}=t,o=LK(t.nullBitmap),r=RK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16859
- return new qQ(e,n,s,a,[r,void 0,o],[i])}visitLargeList(t){const{type:e,offset:n=0,child:i}=t,o=LK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16860
- return new qQ(e,n,s,a,[r,void 0,o],[i])}visitStruct(t){const{type:e,offset:n=0,children:i=[]}=t,o=LK(t.nullBitmap),{length:r=i.reduce((t,{length:e})=>Math.max(t,e),0),nullCount:s=(t.nullBitmap?-1:0)}=t
16861
- return new qQ(e,n,r,s,[void 0,void 0,o],i)}visitUnion(t){const{type:e,offset:n=0,children:i=[]}=t,o=OK(e.ArrayType,t.typeIds),{length:r=o.length,nullCount:s=-1}=t
16862
- if(EX.isSparseUnion(e))return new qQ(e,n,r,s,[void 0,void 0,void 0,o],i)
16863
- const a=RK(t.valueOffsets)
16864
- return new qQ(e,n,r,s,[a,void 0,void 0,o],i)}visitDictionary(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.indices.ArrayType,t.data),{dictionary:r=new m0([(new jQ).visit({type:e.dictionary})])}=t,{length:s=o.length,nullCount:a=(t.nullBitmap?-1:0)}=t
16865
- return new qQ(e,n,s,a,[void 0,o,i],[],r)}visitInterval(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16866
- return new qQ(e,n,r,s,[void 0,o,i])}visitDuration(t){const{type:e,offset:n=0}=t,i=LK(t.nullBitmap),o=OK(e.ArrayType,t.data),{length:r=o.length,nullCount:s=(t.nullBitmap?-1:0)}=t
16867
- return new qQ(e,n,r,s,[void 0,o,i])}visitFixedSizeList(t){const{type:e,offset:n=0,child:i=(new jQ).visit({type:e.valueType})}=t,o=LK(t.nullBitmap),{length:r=i.length/oJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16868
- return new qQ(e,n,r,s,[void 0,void 0,o],[i])}visitMap(t){const{type:e,offset:n=0,child:i=(new jQ).visit({type:e.childType})}=t,o=LK(t.nullBitmap),r=RK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16869
- return new qQ(e,n,s,a,[r,void 0,o],[i])}}const WQ=new jQ
16870
- function GQ(t){return WQ.visit(t)}class ZQ{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()
16871
- 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 KQ(t){return t.reduce((t,e)=>t+e.nullCount,0)}function YQ(t){return t.reduce((t,e,n)=>(t[n+1]=t[n]+e.length,t),new Uint32Array(t.length+1))}function XQ(t,e,n,i){const o=[]
16845
+ if((o=r[qY.TYPE])&&(r[qY.TYPE]=o.subarray(t,t+e)),AX.isBinaryView(this.type)||AX.isUtf8View(this.type)){const n=BX.ELEMENT_WIDTH;(o=r[qY.DATA])&&(r[qY.DATA]=o.subarray(t*n,(t+e)*n))}else(o=r[qY.OFFSET])&&(r[qY.OFFSET]=o.subarray(t,t+e+1))||(o=r[qY.DATA])&&(r[qY.DATA]=6===i?o:o.subarray(n*t,n*(t+e)))
16846
+ return r}_sliceChildren(t,e,n){return t.map(t=>t.slice(e,n))}}jQ.prototype.children=Object.freeze([]),jQ.prototype[qQ]=!0,Object.defineProperty(jQ,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===jQ&&jQ.isData(t)}})
16847
+ class WQ extends sJ{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{type:e,offset:n=0,length:i=0}=t
16848
+ return new jQ(e,n,i,i)}visitBool(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length>>3,nullCount:s=(t.nullBitmap?-1:0)}=t
16849
+ return new jQ(e,n,r,s,[void 0,o,i])}visitInt(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length,nullCount:s=(t.nullBitmap?-1:0)}=t
16850
+ return new jQ(e,n,r,s,[void 0,o,i])}visitFloat(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length,nullCount:s=(t.nullBitmap?-1:0)}=t
16851
+ return new jQ(e,n,r,s,[void 0,o,i])}visitUtf8(t){const{type:e,offset:n=0}=t,i=BK(t.data),o=BK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16852
+ return new jQ(e,n,s,a,[r,i,o])}visitUtf8View(t){var e
16853
+ const{type:n,offset:i=0}=t,o=RK(n.ArrayType,t.views),r=BK(t.nullBitmap),s=(t.variadicBuffers||[]).map(t=>BK(t)),a=null!==(e=t.length)&&void 0!==e?e:Math.trunc(o.length/VX.ELEMENT_WIDTH),l=t.nullBitmap?-1:0
16854
+ return new jQ(n,i,a,l,[void 0,o,r],[],void 0,s)}visitLargeUtf8(t){const{type:e,offset:n=0}=t,i=BK(t.data),o=BK(t.nullBitmap),r=LK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16855
+ return new jQ(e,n,s,a,[r,i,o])}visitBinary(t){const{type:e,offset:n=0}=t,i=BK(t.data),o=BK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16856
+ return new jQ(e,n,s,a,[r,i,o])}visitBinaryView(t){var e
16857
+ const{type:n,offset:i=0}=t,o=RK(n.ArrayType,t.views),r=BK(t.nullBitmap),s=(t.variadicBuffers||[]).map(t=>BK(t)),a=null!==(e=t.length)&&void 0!==e?e:Math.trunc(o.length/BX.ELEMENT_WIDTH),l=t.nullBitmap?-1:0
16858
+ return new jQ(n,i,a,l,[void 0,o,r],[],void 0,s)}visitLargeBinary(t){const{type:e,offset:n=0}=t,i=BK(t.data),o=BK(t.nullBitmap),r=LK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16859
+ return new jQ(e,n,s,a,[r,i,o])}visitFixedSizeBinary(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16860
+ return new jQ(e,n,r,s,[void 0,o,i])}visitDate(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16861
+ return new jQ(e,n,r,s,[void 0,o,i])}visitTimestamp(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16862
+ return new jQ(e,n,r,s,[void 0,o,i])}visitTime(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16863
+ return new jQ(e,n,r,s,[void 0,o,i])}visitDecimal(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16864
+ return new jQ(e,n,r,s,[void 0,o,i])}visitList(t){const{type:e,offset:n=0,child:i}=t,o=BK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16865
+ return new jQ(e,n,s,a,[r,void 0,o],[i])}visitLargeList(t){const{type:e,offset:n=0,child:i}=t,o=BK(t.nullBitmap),r=LK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16866
+ return new jQ(e,n,s,a,[r,void 0,o],[i])}visitStruct(t){const{type:e,offset:n=0,children:i=[]}=t,o=BK(t.nullBitmap),{length:r=i.reduce((t,{length:e})=>Math.max(t,e),0),nullCount:s=(t.nullBitmap?-1:0)}=t
16867
+ return new jQ(e,n,r,s,[void 0,void 0,o],i)}visitUnion(t){const{type:e,offset:n=0,children:i=[]}=t,o=RK(e.ArrayType,t.typeIds),{length:r=o.length,nullCount:s=-1}=t
16868
+ if(AX.isSparseUnion(e))return new jQ(e,n,r,s,[void 0,void 0,void 0,o],i)
16869
+ const a=FK(t.valueOffsets)
16870
+ return new jQ(e,n,r,s,[a,void 0,void 0,o],i)}visitDictionary(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.indices.ArrayType,t.data),{dictionary:r=new g0([(new WQ).visit({type:e.dictionary})])}=t,{length:s=o.length,nullCount:a=(t.nullBitmap?-1:0)}=t
16871
+ return new jQ(e,n,s,a,[void 0,o,i],[],r)}visitInterval(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16872
+ return new jQ(e,n,r,s,[void 0,o,i])}visitDuration(t){const{type:e,offset:n=0}=t,i=BK(t.nullBitmap),o=RK(e.ArrayType,t.data),{length:r=o.length,nullCount:s=(t.nullBitmap?-1:0)}=t
16873
+ return new jQ(e,n,r,s,[void 0,o,i])}visitFixedSizeList(t){const{type:e,offset:n=0,child:i=(new WQ).visit({type:e.valueType})}=t,o=BK(t.nullBitmap),{length:r=i.length/rJ(e),nullCount:s=(t.nullBitmap?-1:0)}=t
16874
+ return new jQ(e,n,r,s,[void 0,void 0,o],[i])}visitMap(t){const{type:e,offset:n=0,child:i=(new WQ).visit({type:e.childType})}=t,o=BK(t.nullBitmap),r=FK(t.valueOffsets),{length:s=r.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t
16875
+ return new jQ(e,n,s,a,[r,void 0,o],[i])}}const GQ=new WQ
16876
+ function ZQ(t){return GQ.visit(t)}class KQ{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()
16877
+ 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 YQ(t){return t.reduce((t,e)=>t+e.nullCount,0)}function XQ(t){return t.reduce((t,e,n)=>(t[n+1]=t[n]+e.length,t),new Uint32Array(t.length+1))}function JQ(t,e,n,i){const o=[]
16872
16878
  for(let r=-1,s=t.length;++r<s;){const s=t[r],a=e[r],{length:l}=s
16873
16879
  if(a>=i)break
16874
16880
  if(n>=a+l)continue
16875
16881
  if(a>=n&&a+l<=i){o.push(s)
16876
16882
  continue}const c=Math.max(0,n-a),d=Math.min(i-a,l)
16877
- o.push(s.slice(c,d-c))}return 0===o.length&&o.push(t[0].slice(0,0)),o}function JQ(t,e,n,i){let o=0,r=0,s=e.length-1
16883
+ o.push(s.slice(c,d-c))}return 0===o.length&&o.push(t[0].slice(0,0)),o}function QQ(t,e,n,i){let o=0,r=0,s=e.length-1
16878
16884
  do{if(o>=s-1)return n<e[s]?i(t,o,n-e[o]):null
16879
- r=o+Math.trunc(.5*(s-o)),n<e[r]?s=r:o=r}while(o<s)}function QQ(t,e){return t.getValid(e)}function t0(t){function e(e,n,i){return t(e[n],i)}return function(t){return JQ(this.data,this._offsets,t,e)}}function e0(t){let e
16885
+ r=o+Math.trunc(.5*(s-o)),n<e[r]?s=r:o=r}while(o<s)}function t0(t,e){return t.getValid(e)}function e0(t){function e(e,n,i){return t(e[n],i)}return function(t){return QQ(this.data,this._offsets,t,e)}}function n0(t){let e
16880
16886
  function n(n,i,o){return t(n[i],o,e)}return function(t,i){const o=this.data
16881
16887
  e=i
16882
- const r=JQ(o,this._offsets,t,n)
16883
- return e=void 0,r}}function n0(t){let e
16888
+ const r=QQ(o,this._offsets,t,n)
16889
+ return e=void 0,r}}function i0(t){let e
16884
16890
  function n(n,i,o){let r=o,s=0,a=0
16885
16891
  for(let o=i-1,l=n.length;++o<l;){const i=n[o]
16886
16892
  if(~(s=t(i,e,r)))return a+s
16887
16893
  r=0,a+=i.length}return-1}return function(t,i){e=t
16888
- const o=this.data,r="number"!=typeof i?n(o,0,0):JQ(o,this._offsets,i,n)
16889
- return e=void 0,r}}class i0 extends rJ{}function o0(t,e,n){if(void 0===e)return-1
16890
- if(null===e)switch(t.typeId){case HY.Union:case HY.Dictionary:break
16894
+ const o=this.data,r="number"!=typeof i?n(o,0,0):QQ(o,this._offsets,i,n)
16895
+ return e=void 0,r}}class o0 extends sJ{}function r0(t,e,n){if(void 0===e)return-1
16896
+ if(null===e)switch(t.typeId){case UY.Union:case UY.Dictionary:break
16891
16897
  default:return function(t,e){const{nullBitmap:n}=t
16892
16898
  if(!n||t.nullCount<=0)return-1
16893
16899
  let i=0
16894
- for(const o of new VQ(n,t.offset+(e||0),t.length,n,LQ)){if(!o)return i;++i}return-1}(t,n)}const i=xQ.getVisitFn(t),o=OQ(e)
16900
+ for(const o of new zQ(n,t.offset+(e||0),t.length,n,BQ)){if(!o)return i;++i}return-1}(t,n)}const i=CQ.getVisitFn(t),o=RQ(e)
16895
16901
  for(let e=(n||0)-1,r=t.length;++e<r;)if(o(i(t,e)))return e
16896
- return-1}function r0(t,e,n){const i=xQ.getVisitFn(t),o=OQ(e)
16902
+ return-1}function s0(t,e,n){const i=CQ.getVisitFn(t),o=RQ(e)
16897
16903
  for(let e=(n||0)-1,r=t.length;++e<r;)if(o(i(t,e)))return e
16898
- return-1}i0.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},i0.prototype.visitBool=o0,i0.prototype.visitInt=o0,i0.prototype.visitInt8=o0,i0.prototype.visitInt16=o0,i0.prototype.visitInt32=o0,i0.prototype.visitInt64=o0,i0.prototype.visitUint8=o0,i0.prototype.visitUint16=o0,i0.prototype.visitUint32=o0,i0.prototype.visitUint64=o0,i0.prototype.visitFloat=o0,i0.prototype.visitFloat16=o0,i0.prototype.visitFloat32=o0,i0.prototype.visitFloat64=o0,i0.prototype.visitUtf8=o0,i0.prototype.visitLargeUtf8=o0,i0.prototype.visitUtf8View=o0,i0.prototype.visitBinary=o0,i0.prototype.visitLargeBinary=o0,i0.prototype.visitBinaryView=o0,i0.prototype.visitFixedSizeBinary=o0,i0.prototype.visitDate=o0,i0.prototype.visitDateDay=o0,i0.prototype.visitDateMillisecond=o0,i0.prototype.visitTimestamp=o0,i0.prototype.visitTimestampSecond=o0,i0.prototype.visitTimestampMillisecond=o0,i0.prototype.visitTimestampMicrosecond=o0,i0.prototype.visitTimestampNanosecond=o0,i0.prototype.visitTime=o0,i0.prototype.visitTimeSecond=o0,i0.prototype.visitTimeMillisecond=o0,i0.prototype.visitTimeMicrosecond=o0,i0.prototype.visitTimeNanosecond=o0,i0.prototype.visitDecimal=o0,i0.prototype.visitList=o0,i0.prototype.visitLargeList=o0,i0.prototype.visitStruct=o0,i0.prototype.visitUnion=o0,i0.prototype.visitDenseUnion=r0,i0.prototype.visitSparseUnion=r0,i0.prototype.visitDictionary=o0,i0.prototype.visitInterval=o0,i0.prototype.visitIntervalDayTime=o0,i0.prototype.visitIntervalYearMonth=o0,i0.prototype.visitIntervalMonthDayNano=o0,i0.prototype.visitDuration=o0,i0.prototype.visitDurationSecond=o0,i0.prototype.visitDurationMillisecond=o0,i0.prototype.visitDurationMicrosecond=o0,i0.prototype.visitDurationNanosecond=o0,i0.prototype.visitFixedSizeList=o0,i0.prototype.visitMap=o0
16899
- const s0=new i0
16900
- class a0 extends rJ{}function l0(t){const{type:e}=t
16901
- if(0===t.nullCount&&1===t.stride&&(EX.isInt(e)&&64!==e.bitWidth||EX.isTime(e)&&64!==e.bitWidth||EX.isFloat(e)&&e.precision!==GK.HALF))return new ZQ(t.data.length,e=>{const n=t.data[e]
16904
+ return-1}o0.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},o0.prototype.visitBool=r0,o0.prototype.visitInt=r0,o0.prototype.visitInt8=r0,o0.prototype.visitInt16=r0,o0.prototype.visitInt32=r0,o0.prototype.visitInt64=r0,o0.prototype.visitUint8=r0,o0.prototype.visitUint16=r0,o0.prototype.visitUint32=r0,o0.prototype.visitUint64=r0,o0.prototype.visitFloat=r0,o0.prototype.visitFloat16=r0,o0.prototype.visitFloat32=r0,o0.prototype.visitFloat64=r0,o0.prototype.visitUtf8=r0,o0.prototype.visitLargeUtf8=r0,o0.prototype.visitUtf8View=r0,o0.prototype.visitBinary=r0,o0.prototype.visitLargeBinary=r0,o0.prototype.visitBinaryView=r0,o0.prototype.visitFixedSizeBinary=r0,o0.prototype.visitDate=r0,o0.prototype.visitDateDay=r0,o0.prototype.visitDateMillisecond=r0,o0.prototype.visitTimestamp=r0,o0.prototype.visitTimestampSecond=r0,o0.prototype.visitTimestampMillisecond=r0,o0.prototype.visitTimestampMicrosecond=r0,o0.prototype.visitTimestampNanosecond=r0,o0.prototype.visitTime=r0,o0.prototype.visitTimeSecond=r0,o0.prototype.visitTimeMillisecond=r0,o0.prototype.visitTimeMicrosecond=r0,o0.prototype.visitTimeNanosecond=r0,o0.prototype.visitDecimal=r0,o0.prototype.visitList=r0,o0.prototype.visitLargeList=r0,o0.prototype.visitStruct=r0,o0.prototype.visitUnion=r0,o0.prototype.visitDenseUnion=s0,o0.prototype.visitSparseUnion=s0,o0.prototype.visitDictionary=r0,o0.prototype.visitInterval=r0,o0.prototype.visitIntervalDayTime=r0,o0.prototype.visitIntervalYearMonth=r0,o0.prototype.visitIntervalMonthDayNano=r0,o0.prototype.visitDuration=r0,o0.prototype.visitDurationSecond=r0,o0.prototype.visitDurationMillisecond=r0,o0.prototype.visitDurationMicrosecond=r0,o0.prototype.visitDurationNanosecond=r0,o0.prototype.visitFixedSizeList=r0,o0.prototype.visitMap=r0
16905
+ const a0=new o0
16906
+ class l0 extends sJ{}function c0(t){const{type:e}=t
16907
+ if(0===t.nullCount&&1===t.stride&&(AX.isInt(e)&&64!==e.bitWidth||AX.isTime(e)&&64!==e.bitWidth||AX.isFloat(e)&&e.precision!==ZK.HALF))return new KQ(t.data.length,e=>{const n=t.data[e]
16902
16908
  return n.values.subarray(0,n.length)[Symbol.iterator]()})
16903
16909
  let n=0
16904
- return new ZQ(t.data.length,e=>{const i=t.data[e].length,o=t.slice(n,n+i)
16905
- return n+=i,new c0(o)})}class c0{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}}a0.prototype.visitNull=l0,a0.prototype.visitBool=l0,a0.prototype.visitInt=l0,a0.prototype.visitInt8=l0,a0.prototype.visitInt16=l0,a0.prototype.visitInt32=l0,a0.prototype.visitInt64=l0,a0.prototype.visitUint8=l0,a0.prototype.visitUint16=l0,a0.prototype.visitUint32=l0,a0.prototype.visitUint64=l0,a0.prototype.visitFloat=l0,a0.prototype.visitFloat16=l0,a0.prototype.visitFloat32=l0,a0.prototype.visitFloat64=l0,a0.prototype.visitUtf8=l0,a0.prototype.visitLargeUtf8=l0,a0.prototype.visitUtf8View=l0,a0.prototype.visitBinary=l0,a0.prototype.visitLargeBinary=l0,a0.prototype.visitBinaryView=l0,a0.prototype.visitFixedSizeBinary=l0,a0.prototype.visitDate=l0,a0.prototype.visitDateDay=l0,a0.prototype.visitDateMillisecond=l0,a0.prototype.visitTimestamp=l0,a0.prototype.visitTimestampSecond=l0,a0.prototype.visitTimestampMillisecond=l0,a0.prototype.visitTimestampMicrosecond=l0,a0.prototype.visitTimestampNanosecond=l0,a0.prototype.visitTime=l0,a0.prototype.visitTimeSecond=l0,a0.prototype.visitTimeMillisecond=l0,a0.prototype.visitTimeMicrosecond=l0,a0.prototype.visitTimeNanosecond=l0,a0.prototype.visitDecimal=l0,a0.prototype.visitList=l0,a0.prototype.visitLargeList=l0,a0.prototype.visitStruct=l0,a0.prototype.visitUnion=l0,a0.prototype.visitDenseUnion=l0,a0.prototype.visitSparseUnion=l0,a0.prototype.visitDictionary=l0,a0.prototype.visitInterval=l0,a0.prototype.visitIntervalDayTime=l0,a0.prototype.visitIntervalYearMonth=l0,a0.prototype.visitIntervalMonthDayNano=l0,a0.prototype.visitDuration=l0,a0.prototype.visitDurationSecond=l0,a0.prototype.visitDurationMillisecond=l0,a0.prototype.visitDurationMicrosecond=l0,a0.prototype.visitDurationNanosecond=l0,a0.prototype.visitFixedSizeList=l0,a0.prototype.visitMap=l0
16906
- const d0=new a0
16907
- var h0
16908
- const u0=Symbol.for("apache-arrow/Vector"),p0={},f0={}
16909
- class m0{static isVector(t){return!0===(null==t?void 0:t[u0])}constructor(t){var e,n,i
16910
- const o=t[0]instanceof m0?t.flatMap(t=>t.data):t
16911
- if(0===o.length||o.some(t=>!(t instanceof qQ)))throw new TypeError("Vector constructor expects an Array of Data instances.")
16910
+ return new KQ(t.data.length,e=>{const i=t.data[e].length,o=t.slice(n,n+i)
16911
+ return n+=i,new d0(o)})}class d0{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}}l0.prototype.visitNull=c0,l0.prototype.visitBool=c0,l0.prototype.visitInt=c0,l0.prototype.visitInt8=c0,l0.prototype.visitInt16=c0,l0.prototype.visitInt32=c0,l0.prototype.visitInt64=c0,l0.prototype.visitUint8=c0,l0.prototype.visitUint16=c0,l0.prototype.visitUint32=c0,l0.prototype.visitUint64=c0,l0.prototype.visitFloat=c0,l0.prototype.visitFloat16=c0,l0.prototype.visitFloat32=c0,l0.prototype.visitFloat64=c0,l0.prototype.visitUtf8=c0,l0.prototype.visitLargeUtf8=c0,l0.prototype.visitUtf8View=c0,l0.prototype.visitBinary=c0,l0.prototype.visitLargeBinary=c0,l0.prototype.visitBinaryView=c0,l0.prototype.visitFixedSizeBinary=c0,l0.prototype.visitDate=c0,l0.prototype.visitDateDay=c0,l0.prototype.visitDateMillisecond=c0,l0.prototype.visitTimestamp=c0,l0.prototype.visitTimestampSecond=c0,l0.prototype.visitTimestampMillisecond=c0,l0.prototype.visitTimestampMicrosecond=c0,l0.prototype.visitTimestampNanosecond=c0,l0.prototype.visitTime=c0,l0.prototype.visitTimeSecond=c0,l0.prototype.visitTimeMillisecond=c0,l0.prototype.visitTimeMicrosecond=c0,l0.prototype.visitTimeNanosecond=c0,l0.prototype.visitDecimal=c0,l0.prototype.visitList=c0,l0.prototype.visitLargeList=c0,l0.prototype.visitStruct=c0,l0.prototype.visitUnion=c0,l0.prototype.visitDenseUnion=c0,l0.prototype.visitSparseUnion=c0,l0.prototype.visitDictionary=c0,l0.prototype.visitInterval=c0,l0.prototype.visitIntervalDayTime=c0,l0.prototype.visitIntervalYearMonth=c0,l0.prototype.visitIntervalMonthDayNano=c0,l0.prototype.visitDuration=c0,l0.prototype.visitDurationSecond=c0,l0.prototype.visitDurationMillisecond=c0,l0.prototype.visitDurationMicrosecond=c0,l0.prototype.visitDurationNanosecond=c0,l0.prototype.visitFixedSizeList=c0,l0.prototype.visitMap=c0
16912
+ const h0=new l0
16913
+ var u0
16914
+ const p0=Symbol.for("apache-arrow/Vector"),f0={},m0={}
16915
+ class g0{static isVector(t){return!0===(null==t?void 0:t[p0])}constructor(t){var e,n,i
16916
+ const o=t[0]instanceof g0?t.flatMap(t=>t.data):t
16917
+ if(0===o.length||o.some(t=>!(t instanceof jQ)))throw new TypeError("Vector constructor expects an Array of Data instances.")
16912
16918
  const r=null===(e=o[0])||void 0===e?void 0:e.type
16913
16919
  switch(o.length){case 0:this._offsets=[0]
16914
16920
  break
16915
- case 1:{const{get:t,set:e,indexOf:n}=p0[r.typeId],i=o[0]
16916
- this.isValid=t=>QQ(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]
16917
- break}default:Object.setPrototypeOf(this,f0[r.typeId]),this._offsets=YQ(o)}this.data=o,this.type=r,this.stride=oJ(r),this.numChildren=null!==(i=null===(n=r.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 KQ(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${HY[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(TQ(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return d0.visit(this)}concat(...t){return new m0(this.data.concat(t.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new m0(AQ(this,t,e,({data:t,_offsets:e},n,i)=>XQ(t,e,n,i)))}toJSON(){return[...this]}toArray(){const{type:t,data:e,length:n,stride:i,ArrayType:o}=this
16918
- switch(t.typeId){case HY.Int:case HY.Float:case HY.Decimal:case HY.Time:case HY.Timestamp:switch(e.length){case 0:return new o
16921
+ case 1:{const{get:t,set:e,indexOf:n}=f0[r.typeId],i=o[0]
16922
+ this.isValid=t=>t0(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]
16923
+ break}default:Object.setPrototypeOf(this,m0[r.typeId]),this._offsets=XQ(o)}this.data=o,this.type=r,this.stride=rJ(r),this.numChildren=null!==(i=null===(n=r.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 YQ(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${UY[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(DQ(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return h0.visit(this)}concat(...t){return new g0(this.data.concat(t.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new g0(TQ(this,t,e,({data:t,_offsets:e},n,i)=>JQ(t,e,n,i)))}toJSON(){return[...this]}toArray(){const{type:t,data:e,length:n,stride:i,ArrayType:o}=this
16924
+ switch(t.typeId){case UY.Int:case UY.Float:case UY.Decimal:case UY.Time:case UY.Timestamp:switch(e.length){case 0:return new o
16919
16925
  case 1:return e[0].values.subarray(0,n*i)
16920
16926
  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 o(n*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e
16921
- 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 m0(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return!!EX.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(EX.isDictionary(this.type)){const t=new g0(this.data[0].dictionary),e=this.data.map(e=>{const n=e.clone()
16927
+ 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 g0(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return!!AX.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(AX.isDictionary(this.type)){const t=new v0(this.data[0].dictionary),e=this.data.map(e=>{const n=e.clone()
16922
16928
  return n.dictionary=t,n})
16923
- return new m0(e)}return new g0(this)}unmemoize(){if(EX.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),e=this.data.map(e=>{const n=e.clone()
16929
+ return new g0(e)}return new v0(this)}unmemoize(){if(AX.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),e=this.data.map(e=>{const n=e.clone()
16924
16930
  return n.dictionary=t,n})
16925
- return new m0(e)}return this}}h0=Symbol.toStringTag,m0[h0]=(t=>{t.type=EX.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,t[u0]=!0
16926
- const e=Object.keys(HY).map(t=>HY[t]).filter(t=>"number"==typeof t&&t!==HY.NONE)
16927
- for(const n of e){const e=xQ.getVisitFnByTypeId(n),i=VJ.getVisitFnByTypeId(n),o=s0.getVisitFnByTypeId(n)
16928
- p0[n]={get:e,set:i,indexOf:o},f0[n]=Object.create(t,{isValid:{value:t0(QQ)},get:{value:t0(xQ.getVisitFnByTypeId(n))},set:{value:e0(VJ.getVisitFnByTypeId(n))},indexOf:{value:n0(s0.getVisitFnByTypeId(n))}})}return"Vector"})(m0.prototype),Object.defineProperty(m0,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===m0&&m0.isVector(t)}})
16929
- class g0 extends m0{constructor(t){super(t.data)
16931
+ return new g0(e)}return this}}u0=Symbol.toStringTag,g0[u0]=(t=>{t.type=AX.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,t[p0]=!0
16932
+ const e=Object.keys(UY).map(t=>UY[t]).filter(t=>"number"==typeof t&&t!==UY.NONE)
16933
+ for(const n of e){const e=CQ.getVisitFnByTypeId(n),i=zJ.getVisitFnByTypeId(n),o=a0.getVisitFnByTypeId(n)
16934
+ f0[n]={get:e,set:i,indexOf:o},m0[n]=Object.create(t,{isValid:{value:e0(t0)},get:{value:e0(CQ.getVisitFnByTypeId(n))},set:{value:n0(zJ.getVisitFnByTypeId(n))},indexOf:{value:i0(a0.getVisitFnByTypeId(n))}})}return"Vector"})(g0.prototype),Object.defineProperty(g0,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===g0&&g0.isVector(t)}})
16935
+ class v0 extends g0{constructor(t){super(t.data)
16930
16936
  const e=this.get,n=this.set,i=this.slice,o=new Array(this.length)
16931
16937
  Object.defineProperty(this,"get",{value(t){const n=o[t]
16932
16938
  if(void 0!==n)return n
16933
16939
  const i=e.call(this,t)
16934
- return o[t]=i,i}}),Object.defineProperty(this,"set",{value(t,e){n.call(this,t,e),o[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new g0(i.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new m0(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class v0{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 b0{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 b0).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new b0).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4)
16935
- return t?this.bb.readInt16(this.bb_pos+t):jK.V1}schema(t){const e=this.bb.__offset(this.bb_pos,6)
16936
- return e?(t||new VY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){const n=this.bb.__offset(this.bb_pos,8)
16937
- return n?(e||new v0).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8)
16940
+ return o[t]=i,i}}),Object.defineProperty(this,"set",{value(t,e){n.call(this,t,e),o[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new v0(i.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new g0(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class b0{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 y0{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 y0).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new y0).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4)
16941
+ return t?this.bb.readInt16(this.bb_pos+t):WK.V1}schema(t){const e=this.bb.__offset(this.bb_pos,6)
16942
+ return e?(t||new zY).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){const n=this.bb.__offset(this.bb_pos,8)
16943
+ return n?(e||new b0).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8)
16938
16944
  return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){const n=this.bb.__offset(this.bb_pos,10)
16939
- return n?(e||new v0).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10)
16945
+ return n?(e||new b0).__init(this.bb.__vector(this.bb_pos+n)+24*t,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10)
16940
16946
  return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,12)
16941
- return n?(e||new mY).__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)
16942
- 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,jK.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)
16947
+ return n?(e||new gY).__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)
16948
+ 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,WK.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)
16943
16949
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
16944
- 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)}}const y0=Symbol.for("apache-arrow/Schema"),w0=Symbol.for("apache-arrow/Field")
16945
- class x0{static isSchema(t){return!0===(null==t?void 0:t[y0])}constructor(t=[],e,n,i=jK.V5){this.fields=t||[],this.metadata=e||new Map,n||(n=S0(this.fields)),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))
16946
- return new x0(n,this.metadata)}selectAt(t){const e=t.map(t=>this.fields[t]).filter(Boolean)
16947
- return new x0(e,this.metadata)}assign(...t){const e=t[0]instanceof x0?t[0]:Array.isArray(t[0])?new x0(t[0]):new x0(t),n=[...this.fields],i=k0(k0(new Map,this.metadata),e.metadata),o=e.fields.filter(t=>{const e=n.findIndex(e=>e.name===t.name)
16948
- return!~e||(n[e]=t.clone({metadata:k0(k0(new Map,n[e].metadata),t.metadata)}))&&!1}),r=S0(o,new Map)
16949
- return new x0([...n,...o],i,new Map([...this.dictionaries,...r]))}}x0.prototype.fields=null,x0.prototype.metadata=null,x0.prototype.dictionaries=null,x0.prototype[y0]=!0,Object.defineProperty(x0,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===x0&&x0.isSchema(t)}})
16950
- class C0{static isField(t){return!0===(null==t?void 0:t[w0])}static new(...t){let[e,n,i,o]=t
16951
- 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===o&&(o=t[0].metadata)),new C0(`${e}`,n,i,o)}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,o]=t
16952
- return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:n=this.type,nullable:i=this.nullable,metadata:o=this.metadata}=t[0]):[e=this.name,n=this.type,i=this.nullable,o=this.metadata]=t,C0.new(e,n,i,o)}}function k0(t,e){return new Map([...t||new Map,...e||new Map])}function S0(t,e=new Map){for(let n=-1,i=t.length;++n<i;){const i=t[n].type
16953
- if(EX.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)
16954
- i.children&&i.children.length>0&&S0(i.children,e)}return e}C0.prototype.type=null,C0.prototype.name=null,C0.prototype.nullable=null,C0.prototype.metadata=null,C0.prototype[w0]=!0,Object.defineProperty(C0,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===C0&&C0.isField(t)}})
16955
- var $0=iY,_0=nY
16956
- class I0{static decode(t){t=new _0(LK(t))
16957
- const e=b0.getRootAsFooter(t),n=x0.decode(e.schema(),new Map,e.version())
16958
- return new M0(n,e)}static encode(t){const e=new $0,n=x0.encode(e,t.schema)
16959
- b0.startRecordBatchesVector(e,t.numRecordBatches)
16960
- for(const n of[...t.recordBatches()].slice().reverse())E0.encode(e,n)
16950
+ 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)}}const w0=Symbol.for("apache-arrow/Schema"),x0=Symbol.for("apache-arrow/Field")
16951
+ class C0{static isSchema(t){return!0===(null==t?void 0:t[w0])}constructor(t=[],e,n,i=WK.V5){this.fields=t||[],this.metadata=e||new Map,n||(n=$0(this.fields)),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))
16952
+ return new C0(n,this.metadata)}selectAt(t){const e=t.map(t=>this.fields[t]).filter(Boolean)
16953
+ return new C0(e,this.metadata)}assign(...t){const e=t[0]instanceof C0?t[0]:Array.isArray(t[0])?new C0(t[0]):new C0(t),n=[...this.fields],i=S0(S0(new Map,this.metadata),e.metadata),o=e.fields.filter(t=>{const e=n.findIndex(e=>e.name===t.name)
16954
+ return!~e||(n[e]=t.clone({metadata:S0(S0(new Map,n[e].metadata),t.metadata)}))&&!1}),r=$0(o,new Map)
16955
+ return new C0([...n,...o],i,new Map([...this.dictionaries,...r]))}}C0.prototype.fields=null,C0.prototype.metadata=null,C0.prototype.dictionaries=null,C0.prototype[w0]=!0,Object.defineProperty(C0,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===C0&&C0.isSchema(t)}})
16956
+ class k0{static isField(t){return!0===(null==t?void 0:t[x0])}static new(...t){let[e,n,i,o]=t
16957
+ 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===o&&(o=t[0].metadata)),new k0(`${e}`,n,i,o)}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,o]=t
16958
+ return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:n=this.type,nullable:i=this.nullable,metadata:o=this.metadata}=t[0]):[e=this.name,n=this.type,i=this.nullable,o=this.metadata]=t,k0.new(e,n,i,o)}}function S0(t,e){return new Map([...t||new Map,...e||new Map])}function $0(t,e=new Map){for(let n=-1,i=t.length;++n<i;){const i=t[n].type
16959
+ if(AX.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)
16960
+ i.children&&i.children.length>0&&$0(i.children,e)}return e}k0.prototype.type=null,k0.prototype.name=null,k0.prototype.nullable=null,k0.prototype.metadata=null,k0.prototype[x0]=!0,Object.defineProperty(k0,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===k0&&k0.isField(t)}})
16961
+ var _0=oY,I0=iY
16962
+ class M0{static decode(t){t=new I0(BK(t))
16963
+ const e=y0.getRootAsFooter(t),n=C0.decode(e.schema(),new Map,e.version())
16964
+ return new E0(n,e)}static encode(t){const e=new _0,n=C0.encode(e,t.schema)
16965
+ y0.startRecordBatchesVector(e,t.numRecordBatches)
16966
+ for(const n of[...t.recordBatches()].slice().reverse())A0.encode(e,n)
16961
16967
  const i=e.endVector()
16962
- b0.startDictionariesVector(e,t.numDictionaries)
16963
- for(const n of[...t.dictionaryBatches()].slice().reverse())E0.encode(e,n)
16968
+ y0.startDictionariesVector(e,t.numDictionaries)
16969
+ for(const n of[...t.dictionaryBatches()].slice().reverse())A0.encode(e,n)
16964
16970
  const o=e.endVector()
16965
- return b0.startFooter(e),b0.addSchema(e,n),b0.addVersion(e,jK.V5),b0.addRecordBatches(e,i),b0.addDictionaries(e,o),b0.finishFooterBuffer(e,b0.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=jK.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 M0 extends I0{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)
16966
- if(e)return E0.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const e=this._footer.dictionaries(t)
16967
- if(e)return E0.decode(e)}return null}}class E0{static decode(t){return new E0(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){const{metaDataLength:n}=e,i=BigInt(e.offset),o=BigInt(e.bodyLength)
16968
- return v0.createBlock(t,i,n,o)}constructor(t,e,n){this.metaDataLength=t,this.offset=jY(n),this.bodyLength=jY(e)}}let A0=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)
16969
- return t?this.bb.readInt16(this.bb_pos+t):jK.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6)
16970
- return t?this.bb.readUint8(this.bb_pos+t):zY.NONE}header(t){const e=this.bb.__offset(this.bb_pos,8)
16971
+ return y0.startFooter(e),y0.addSchema(e,n),y0.addVersion(e,WK.V5),y0.addRecordBatches(e,i),y0.addDictionaries(e,o),y0.finishFooterBuffer(e,y0.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=WK.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 E0 extends M0{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)
16972
+ if(e)return A0.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){const e=this._footer.dictionaries(t)
16973
+ if(e)return A0.decode(e)}return null}}class A0{static decode(t){return new A0(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){const{metaDataLength:n}=e,i=BigInt(e.offset),o=BigInt(e.bodyLength)
16974
+ return b0.createBlock(t,i,n,o)}constructor(t,e,n){this.metaDataLength=t,this.offset=WY(n),this.bodyLength=WY(e)}}let T0=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)
16975
+ return t?this.bb.readInt16(this.bb_pos+t):WK.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6)
16976
+ return t?this.bb.readUint8(this.bb_pos+t):HY.NONE}header(t){const e=this.bb.__offset(this.bb_pos,8)
16971
16977
  return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){const t=this.bb.__offset(this.bb_pos,10)
16972
16978
  return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}customMetadata(t,e){const n=this.bb.__offset(this.bb_pos,12)
16973
- return n?(e||new mY).__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)
16974
- 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,jK.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,zY.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)
16979
+ return n?(e||new gY).__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)
16980
+ 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,WK.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,HY.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)
16975
16981
  for(let n=e.length-1;n>=0;n--)t.addOffset(e[n])
16976
16982
  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,o,r,s){return t.startMessage(e),t.addVersion(e,n),t.addHeaderType(e,i),t.addHeader(e,o),t.addBodyLength(e,r),t.addCustomMetadata(e,s),t.endMessage(e)}}
16977
- const T0=new class extends rJ{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return TY.startNull(e),TY.endNull(e)}visitInt(t,e){return pY.startInt(e),pY.addBitWidth(e,t.bitWidth),pY.addIsSigned(e,t.isSigned),pY.endInt(e)}visitFloat(t,e){return SY.startFloatingPoint(e),SY.addPrecision(e,t.precision),SY.endFloatingPoint(e)}visitBinary(t,e){return gY.startBinary(e),gY.endBinary(e)}visitBinaryView(t,e){return vY.startBinaryView(e),vY.endBinaryView(e)}visitLargeBinary(t,e){return _Y.startLargeBinary(e),_Y.endLargeBinary(e)}visitBool(t,e){return bY.startBool(e),bY.endBool(e)}visitUtf8(t,e){return LY.startUtf8(e),LY.endUtf8(e)}visitUtf8View(t,e){return BY.startUtf8View(e),BY.endUtf8View(e)}visitLargeUtf8(t,e){return MY.startLargeUtf8(e),MY.endLargeUtf8(e)}visitDecimal(t,e){return wY.startDecimal(e),wY.addScale(e,t.scale),wY.addPrecision(e,t.precision),wY.addBitWidth(e,t.bitWidth),wY.endDecimal(e)}visitDate(t,e){return yY.startDate(e),yY.addUnit(e,t.unit),yY.endDate(e)}visitTime(t,e){return OY.startTime(e),OY.addUnit(e,t.unit),OY.addBitWidth(e,t.bitWidth),OY.endTime(e)}visitTimestamp(t,e){const n=t.timezone&&e.createString(t.timezone)||void 0
16978
- return RY.startTimestamp(e),RY.addUnit(e,t.unit),void 0!==n&&RY.addTimezone(e,n),RY.endTimestamp(e)}visitInterval(t,e){return $Y.startInterval(e),$Y.addUnit(e,t.unit),$Y.endInterval(e)}visitDuration(t,e){return xY.startDuration(e),xY.addUnit(e,t.unit),xY.endDuration(e)}visitList(t,e){return EY.startList(e),EY.endList(e)}visitLargeList(t,e){return IY.startLargeList(e),IY.endLargeList(e)}visitStruct(t,e){return DY.startStruct_(e),DY.endStruct_(e)}visitUnion(t,e){FY.startTypeIdsVector(e,t.typeIds.length)
16979
- const n=FY.createTypeIdsVector(e,t.typeIds)
16980
- return FY.startUnion(e),FY.addMode(e,t.mode),FY.addTypeIds(e,n),FY.endUnion(e)}visitDictionary(t,e){const n=this.visit(t.indices,e)
16981
- return fY.startDictionaryEncoding(e),fY.addId(e,BigInt(t.id)),fY.addIsOrdered(e,t.isOrdered),void 0!==n&&fY.addIndexType(e,n),fY.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return CY.startFixedSizeBinary(e),CY.addByteWidth(e,t.byteWidth),CY.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return kY.startFixedSizeList(e),kY.addListSize(e,t.listSize),kY.endFixedSizeList(e)}visitMap(t,e){return AY.startMap(e),AY.addKeysSorted(e,t.keysSorted),AY.endMap(e)}}
16982
- function D0(t){return new U0(t.count,R0(t.columns),F0(t.columns),null,L0(t.columns))}function O0(t,e){return(t.children||[]).filter(Boolean).map(t=>C0.fromJSON(t,e))}function R0(t){return(t||[]).reduce((t,e)=>{return[...t,new W0(e.count,(n=e.VALIDITY,(n||[]).reduce((t,e)=>t+ +(0===e),0))),...R0(e.children)]
16983
- var n},[])}function F0(t,e=[]){for(let n=-1,i=(t||[]).length;++n<i;){const i=t[n]
16984
- if(i.VALIDITY&&e.push(new j0(e.length,i.VALIDITY.length)),i.TYPE_ID&&e.push(new j0(e.length,i.TYPE_ID.length)),i.OFFSET&&e.push(new j0(e.length,i.OFFSET.length)),i.DATA&&e.push(new j0(e.length,i.DATA.length)),i.VIEWS&&e.push(new j0(e.length,i.VIEWS.length)),i.VARIADIC_DATA_BUFFERS)for(const t of i.VARIADIC_DATA_BUFFERS)e.push(new j0(e.length,t.length))
16985
- e=F0(i.children,e)}return e}function L0(t){return(t||[]).reduce((t,e)=>[...t,...e.VARIADIC_DATA_BUFFERS?[e.VARIADIC_DATA_BUFFERS.length]:[],...L0(e.children)],[])}function B0(t=[]){return new Map(t.map(({key:t,value:e})=>[t,e]))}function N0(t){return new DX(t.isSigned,t.bitWidth)}function P0(t,e){const n=t.type.name
16986
- switch(n){case"NONE":case"null":return new TX
16987
- case"binary":return new FX
16988
- case"largebinary":return new BX
16989
- case"binaryview":return new LX
16990
- case"utf8":return new NX
16991
- case"largeutf8":return new VX
16992
- case"utf8view":return new PX
16993
- case"bool":return new zX
16994
- case"list":return new ZX((e||[])[0])
16995
- case"largelist":return new KX((e||[])[0])
16996
- case"struct":case"struct_":return new YX(e||[])}switch(n){case"int":{const e=t.type
16997
- return new DX(e.isSigned,e.bitWidth)}case"floatingpoint":{const e=t.type
16998
- return new RX(GK[e.precision])}case"decimal":{const e=t.type
16999
- return new HX(e.scale,e.precision,e.bitWidth)}case"date":{const e=t.type
17000
- return new UX(ZK[e.unit])}case"time":{const e=t.type
17001
- return new qX(KK[e.unit],e.bitWidth)}case"timestamp":{const e=t.type
17002
- return new jX(KK[e.unit],e.timezone)}case"interval":{const e=t.type
17003
- return new WX(YK[e.unit])}case"duration":{const e=t.type
17004
- return new GX(KK[e.unit])}case"union":{const n=t.type,[i,...o]=(n.mode+"").toLowerCase(),r=i.toUpperCase()+o.join("")
17005
- return new XX(WK[r],n.typeIds||[],e||[])}case"fixedsizebinary":{const e=t.type
17006
- return new JX(e.byteWidth)}case"fixedsizelist":{const n=t.type
17007
- return new QX(n.listSize,(e||[])[0])}case"map":{const n=t.type
17008
- return new tJ((e||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var V0=iY,z0=nY
17009
- class H0{static fromJSON(t,e){const n=new H0(0,jK.V5,e)
17010
- return n._createHeader=function(t,e){return()=>{switch(e){case zY.Schema:return x0.fromJSON(t)
17011
- case zY.RecordBatch:return U0.fromJSON(t)
17012
- case zY.DictionaryBatch:return q0.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${zY[e]}, type: ${e} }`)}}(t,e),n}static decode(t){t=new z0(LK(t))
17013
- const e=A0.getRootAsMessage(t),n=e.bodyLength(),i=e.version(),o=e.headerType(),r=function(t){const e=new Map
16983
+ const D0=new class extends sJ{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return DY.startNull(e),DY.endNull(e)}visitInt(t,e){return fY.startInt(e),fY.addBitWidth(e,t.bitWidth),fY.addIsSigned(e,t.isSigned),fY.endInt(e)}visitFloat(t,e){return $Y.startFloatingPoint(e),$Y.addPrecision(e,t.precision),$Y.endFloatingPoint(e)}visitBinary(t,e){return vY.startBinary(e),vY.endBinary(e)}visitBinaryView(t,e){return bY.startBinaryView(e),bY.endBinaryView(e)}visitLargeBinary(t,e){return IY.startLargeBinary(e),IY.endLargeBinary(e)}visitBool(t,e){return yY.startBool(e),yY.endBool(e)}visitUtf8(t,e){return BY.startUtf8(e),BY.endUtf8(e)}visitUtf8View(t,e){return NY.startUtf8View(e),NY.endUtf8View(e)}visitLargeUtf8(t,e){return EY.startLargeUtf8(e),EY.endLargeUtf8(e)}visitDecimal(t,e){return xY.startDecimal(e),xY.addScale(e,t.scale),xY.addPrecision(e,t.precision),xY.addBitWidth(e,t.bitWidth),xY.endDecimal(e)}visitDate(t,e){return wY.startDate(e),wY.addUnit(e,t.unit),wY.endDate(e)}visitTime(t,e){return RY.startTime(e),RY.addUnit(e,t.unit),RY.addBitWidth(e,t.bitWidth),RY.endTime(e)}visitTimestamp(t,e){const n=t.timezone&&e.createString(t.timezone)||void 0
16984
+ return FY.startTimestamp(e),FY.addUnit(e,t.unit),void 0!==n&&FY.addTimezone(e,n),FY.endTimestamp(e)}visitInterval(t,e){return _Y.startInterval(e),_Y.addUnit(e,t.unit),_Y.endInterval(e)}visitDuration(t,e){return CY.startDuration(e),CY.addUnit(e,t.unit),CY.endDuration(e)}visitList(t,e){return AY.startList(e),AY.endList(e)}visitLargeList(t,e){return MY.startLargeList(e),MY.endLargeList(e)}visitStruct(t,e){return OY.startStruct_(e),OY.endStruct_(e)}visitUnion(t,e){LY.startTypeIdsVector(e,t.typeIds.length)
16985
+ const n=LY.createTypeIdsVector(e,t.typeIds)
16986
+ return LY.startUnion(e),LY.addMode(e,t.mode),LY.addTypeIds(e,n),LY.endUnion(e)}visitDictionary(t,e){const n=this.visit(t.indices,e)
16987
+ return mY.startDictionaryEncoding(e),mY.addId(e,BigInt(t.id)),mY.addIsOrdered(e,t.isOrdered),void 0!==n&&mY.addIndexType(e,n),mY.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return kY.startFixedSizeBinary(e),kY.addByteWidth(e,t.byteWidth),kY.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return SY.startFixedSizeList(e),SY.addListSize(e,t.listSize),SY.endFixedSizeList(e)}visitMap(t,e){return TY.startMap(e),TY.addKeysSorted(e,t.keysSorted),TY.endMap(e)}}
16988
+ function O0(t){return new q0(t.count,F0(t.columns),L0(t.columns),null,B0(t.columns))}function R0(t,e){return(t.children||[]).filter(Boolean).map(t=>k0.fromJSON(t,e))}function F0(t){return(t||[]).reduce((t,e)=>{return[...t,new G0(e.count,(n=e.VALIDITY,(n||[]).reduce((t,e)=>t+ +(0===e),0))),...F0(e.children)]
16989
+ var n},[])}function L0(t,e=[]){for(let n=-1,i=(t||[]).length;++n<i;){const i=t[n]
16990
+ if(i.VALIDITY&&e.push(new W0(e.length,i.VALIDITY.length)),i.TYPE_ID&&e.push(new W0(e.length,i.TYPE_ID.length)),i.OFFSET&&e.push(new W0(e.length,i.OFFSET.length)),i.DATA&&e.push(new W0(e.length,i.DATA.length)),i.VIEWS&&e.push(new W0(e.length,i.VIEWS.length)),i.VARIADIC_DATA_BUFFERS)for(const t of i.VARIADIC_DATA_BUFFERS)e.push(new W0(e.length,t.length))
16991
+ e=L0(i.children,e)}return e}function B0(t){return(t||[]).reduce((t,e)=>[...t,...e.VARIADIC_DATA_BUFFERS?[e.VARIADIC_DATA_BUFFERS.length]:[],...B0(e.children)],[])}function N0(t=[]){return new Map(t.map(({key:t,value:e})=>[t,e]))}function P0(t){return new OX(t.isSigned,t.bitWidth)}function V0(t,e){const n=t.type.name
16992
+ switch(n){case"NONE":case"null":return new DX
16993
+ case"binary":return new LX
16994
+ case"largebinary":return new NX
16995
+ case"binaryview":return new BX
16996
+ case"utf8":return new PX
16997
+ case"largeutf8":return new zX
16998
+ case"utf8view":return new VX
16999
+ case"bool":return new HX
17000
+ case"list":return new KX((e||[])[0])
17001
+ case"largelist":return new YX((e||[])[0])
17002
+ case"struct":case"struct_":return new XX(e||[])}switch(n){case"int":{const e=t.type
17003
+ return new OX(e.isSigned,e.bitWidth)}case"floatingpoint":{const e=t.type
17004
+ return new FX(ZK[e.precision])}case"decimal":{const e=t.type
17005
+ return new UX(e.scale,e.precision,e.bitWidth)}case"date":{const e=t.type
17006
+ return new qX(KK[e.unit])}case"time":{const e=t.type
17007
+ return new jX(YK[e.unit],e.bitWidth)}case"timestamp":{const e=t.type
17008
+ return new WX(YK[e.unit],e.timezone)}case"interval":{const e=t.type
17009
+ return new GX(XK[e.unit])}case"duration":{const e=t.type
17010
+ return new ZX(YK[e.unit])}case"union":{const n=t.type,[i,...o]=(n.mode+"").toLowerCase(),r=i.toUpperCase()+o.join("")
17011
+ return new JX(GK[r],n.typeIds||[],e||[])}case"fixedsizebinary":{const e=t.type
17012
+ return new QX(e.byteWidth)}case"fixedsizelist":{const n=t.type
17013
+ return new tJ(n.listSize,(e||[])[0])}case"map":{const n=t.type
17014
+ return new eJ((e||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var z0=oY,H0=iY
17015
+ class U0{static fromJSON(t,e){const n=new U0(0,WK.V5,e)
17016
+ return n._createHeader=function(t,e){return()=>{switch(e){case HY.Schema:return C0.fromJSON(t)
17017
+ case HY.RecordBatch:return q0.fromJSON(t)
17018
+ case HY.DictionaryBatch:return j0.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${HY[e]}, type: ${e} }`)}}(t,e),n}static decode(t){t=new H0(BK(t))
17019
+ const e=T0.getRootAsMessage(t),n=e.bodyLength(),i=e.version(),o=e.headerType(),r=function(t){const e=new Map
17014
17020
  for(let n,i,o=-1,r=Math.trunc(t.customMetadataLength());++o<r;)(n=t.customMetadata(o))&&null!=(i=n.key())&&e.set(i,n.value())
17015
- return e}(e),s=new H0(n,i,o,void 0,r)
17016
- return s._createHeader=function(t,e){return()=>{switch(e){case zY.Schema:return x0.decode(t.header(new VY),new Map,t.version())
17017
- case zY.RecordBatch:return U0.decode(t.header(new cY),t.version())
17018
- case zY.DictionaryBatch:return q0.decode(t.header(new dY),t.version())}throw new Error(`Unrecognized Message type: { name: ${zY[e]}, type: ${e} }`)}}(e,o),s}static encode(t){const e=new V0
17021
+ return e}(e),s=new U0(n,i,o,void 0,r)
17022
+ return s._createHeader=function(t,e){return()=>{switch(e){case HY.Schema:return C0.decode(t.header(new zY),new Map,t.version())
17023
+ case HY.RecordBatch:return q0.decode(t.header(new dY),t.version())
17024
+ case HY.DictionaryBatch:return j0.decode(t.header(new hY),t.version())}throw new Error(`Unrecognized Message type: { name: ${HY[e]}, type: ${e} }`)}}(e,o),s}static encode(t){const e=new z0
17019
17025
  let n=-1
17020
- t.isSchema()?n=x0.encode(e,t.header()):t.isRecordBatch()?n=U0.encode(e,t.header()):t.isDictionaryBatch()&&(n=q0.encode(e,t.header()))
17021
- const i=t.metadata&&t.metadata.size>0?A0.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{const i=e.createString(`${t}`),o=e.createString(`${n}`)
17022
- return mY.startKeyValue(e),mY.addKey(e,i),mY.addValue(e,o),mY.endKeyValue(e)})):-1
17023
- return A0.startMessage(e),A0.addVersion(e,jK.V5),A0.addHeader(e,n),A0.addHeaderType(e,t.headerType),A0.addBodyLength(e,BigInt(t.bodyLength)),-1!==i&&A0.addCustomMetadata(e,i),A0.finishMessageBuffer(e,A0.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof x0)return new H0(0,jK.V5,zY.Schema,t)
17024
- if(t instanceof U0)return new H0(e,jK.V5,zY.RecordBatch,t,t.metadata)
17025
- if(t instanceof q0)return new H0(e,jK.V5,zY.DictionaryBatch,t)
17026
- throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}get metadata(){return this._metadata}header(){return this._createHeader()}isSchema(){return this.headerType===zY.Schema}isRecordBatch(){return this.headerType===zY.RecordBatch}isDictionaryBatch(){return this.headerType===zY.DictionaryBatch}constructor(t,e,n,i,o){this._version=e,this._headerType=n,this.body=new Uint8Array(0),this._compression=null==i?void 0:i.compression,i&&(this._createHeader=()=>i),this._bodyLength=jY(t),this._metadata=o||new Map}}let U0=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}get variadicBufferCounts(){return this._variadicBufferCounts}get metadata(){return this._metadata}constructor(t,e,n,i,o=[],r){this._nodes=e,this._buffers=n,this._length=jY(t),this._compression=i,this._variadicBufferCounts=o,this._metadata=r||new Map}}
17027
- class q0{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=jY(e)}}class j0{constructor(t,e){this.offset=jY(t),this.length=jY(e)}}class W0{constructor(t,e){this.length=jY(t),this.nullCount=jY(e)}}class G0{constructor(t,e=oY.BUFFER){this.type=t,this.method=e}}function Z0(t,e){const n=[]
17028
- for(let i,o=-1,r=-1,s=t.childrenLength();++o<s;)(i=t.children(o))&&(n[++r]=C0.decode(i,e))
17029
- return n}function K0(t){const e=new Map
17026
+ t.isSchema()?n=C0.encode(e,t.header()):t.isRecordBatch()?n=q0.encode(e,t.header()):t.isDictionaryBatch()&&(n=j0.encode(e,t.header()))
17027
+ const i=t.metadata&&t.metadata.size>0?T0.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{const i=e.createString(`${t}`),o=e.createString(`${n}`)
17028
+ return gY.startKeyValue(e),gY.addKey(e,i),gY.addValue(e,o),gY.endKeyValue(e)})):-1
17029
+ return T0.startMessage(e),T0.addVersion(e,WK.V5),T0.addHeader(e,n),T0.addHeaderType(e,t.headerType),T0.addBodyLength(e,BigInt(t.bodyLength)),-1!==i&&T0.addCustomMetadata(e,i),T0.finishMessageBuffer(e,T0.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof C0)return new U0(0,WK.V5,HY.Schema,t)
17030
+ if(t instanceof q0)return new U0(e,WK.V5,HY.RecordBatch,t,t.metadata)
17031
+ if(t instanceof j0)return new U0(e,WK.V5,HY.DictionaryBatch,t)
17032
+ throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}get metadata(){return this._metadata}header(){return this._createHeader()}isSchema(){return this.headerType===HY.Schema}isRecordBatch(){return this.headerType===HY.RecordBatch}isDictionaryBatch(){return this.headerType===HY.DictionaryBatch}constructor(t,e,n,i,o){this._version=e,this._headerType=n,this.body=new Uint8Array(0),this._compression=null==i?void 0:i.compression,i&&(this._createHeader=()=>i),this._bodyLength=WY(t),this._metadata=o||new Map}}let q0=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}get variadicBufferCounts(){return this._variadicBufferCounts}get metadata(){return this._metadata}constructor(t,e,n,i,o=[],r){this._nodes=e,this._buffers=n,this._length=WY(t),this._compression=i,this._variadicBufferCounts=o,this._metadata=r||new Map}}
17033
+ class j0{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=WY(e)}}class W0{constructor(t,e){this.offset=WY(t),this.length=WY(e)}}class G0{constructor(t,e){this.length=WY(t),this.nullCount=WY(e)}}class Z0{constructor(t,e=rY.BUFFER){this.type=t,this.method=e}}function K0(t,e){const n=[]
17034
+ for(let i,o=-1,r=-1,s=t.childrenLength();++o<s;)(i=t.children(o))&&(n[++r]=k0.decode(i,e))
17035
+ return n}function Y0(t){const e=new Map
17030
17036
  if(t)for(let n,i,o=-1,r=Math.trunc(t.customMetadataLength());++o<r;)(n=t.customMetadata(o))&&null!=(i=n.key())&&e.set(i,n.value())
17031
- return e}function Y0(t){return new DX(t.isSigned(),t.bitWidth())}function X0(t,e){const n=t.typeType()
17032
- switch(n){case NY.NONE:case NY.Null:return new TX
17033
- case NY.Binary:return new FX
17034
- case NY.LargeBinary:return new BX
17035
- case NY.BinaryView:return new LX
17036
- case NY.Utf8:return new NX
17037
- case NY.LargeUtf8:return new VX
17038
- case NY.Utf8View:return new PX
17039
- case NY.Bool:return new zX
17040
- case NY.List:return new ZX((e||[])[0])
17041
- case NY.LargeList:return new KX((e||[])[0])
17042
- case NY.Struct_:return new YX(e||[])}switch(n){case NY.Int:{const e=t.type(new pY)
17043
- return new DX(e.isSigned(),e.bitWidth())}case NY.FloatingPoint:{const e=t.type(new SY)
17044
- return new RX(e.precision())}case NY.Decimal:{const e=t.type(new wY)
17045
- return new HX(e.scale(),e.precision(),e.bitWidth())}case NY.Date:{const e=t.type(new yY)
17046
- return new UX(e.unit())}case NY.Time:{const e=t.type(new OY)
17047
- return new qX(e.unit(),e.bitWidth())}case NY.Timestamp:{const e=t.type(new RY)
17048
- return new jX(e.unit(),e.timezone())}case NY.Interval:{const e=t.type(new $Y)
17049
- return new WX(e.unit())}case NY.Duration:{const e=t.type(new xY)
17050
- return new GX(e.unit())}case NY.Union:{const n=t.type(new FY)
17051
- return new XX(n.mode(),n.typeIdsArray()||[],e||[])}case NY.FixedSizeBinary:{const e=t.type(new CY)
17052
- return new JX(e.byteWidth())}case NY.FixedSizeList:{const n=t.type(new kY)
17053
- return new QX(n.listSize(),(e||[])[0])}case NY.Map:{const n=t.type(new AY)
17054
- return new tJ((e||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${NY[n]}" (${n})`)}function J0(t){return t?new G0(t.codec(),t.method()):null}function Q0(t,e){return sY.startBodyCompression(t),sY.addCodec(t,e.type),sY.addMethod(t,e.method),sY.endBodyCompression(t)}C0.encode=function(t,e){let n=-1,i=-1,o=-1
17037
+ return e}function X0(t){return new OX(t.isSigned(),t.bitWidth())}function J0(t,e){const n=t.typeType()
17038
+ switch(n){case PY.NONE:case PY.Null:return new DX
17039
+ case PY.Binary:return new LX
17040
+ case PY.LargeBinary:return new NX
17041
+ case PY.BinaryView:return new BX
17042
+ case PY.Utf8:return new PX
17043
+ case PY.LargeUtf8:return new zX
17044
+ case PY.Utf8View:return new VX
17045
+ case PY.Bool:return new HX
17046
+ case PY.List:return new KX((e||[])[0])
17047
+ case PY.LargeList:return new YX((e||[])[0])
17048
+ case PY.Struct_:return new XX(e||[])}switch(n){case PY.Int:{const e=t.type(new fY)
17049
+ return new OX(e.isSigned(),e.bitWidth())}case PY.FloatingPoint:{const e=t.type(new $Y)
17050
+ return new FX(e.precision())}case PY.Decimal:{const e=t.type(new xY)
17051
+ return new UX(e.scale(),e.precision(),e.bitWidth())}case PY.Date:{const e=t.type(new wY)
17052
+ return new qX(e.unit())}case PY.Time:{const e=t.type(new RY)
17053
+ return new jX(e.unit(),e.bitWidth())}case PY.Timestamp:{const e=t.type(new FY)
17054
+ return new WX(e.unit(),e.timezone())}case PY.Interval:{const e=t.type(new _Y)
17055
+ return new GX(e.unit())}case PY.Duration:{const e=t.type(new CY)
17056
+ return new ZX(e.unit())}case PY.Union:{const n=t.type(new LY)
17057
+ return new JX(n.mode(),n.typeIdsArray()||[],e||[])}case PY.FixedSizeBinary:{const e=t.type(new kY)
17058
+ return new QX(e.byteWidth())}case PY.FixedSizeList:{const n=t.type(new SY)
17059
+ return new tJ(n.listSize(),(e||[])[0])}case PY.Map:{const n=t.type(new TY)
17060
+ return new eJ((e||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${PY[n]}" (${n})`)}function Q0(t){return t?new Z0(t.codec(),t.method()):null}function t1(t,e){return aY.startBodyCompression(t),aY.addCodec(t,e.type),aY.addMethod(t,e.method),aY.endBodyCompression(t)}k0.encode=function(t,e){let n=-1,i=-1,o=-1
17055
17061
  const r=e.type
17056
17062
  let s=e.typeId
17057
- EX.isDictionary(r)?(s=r.dictionary.typeId,o=T0.visit(r,t),i=T0.visit(r.dictionary,t)):i=T0.visit(r,t)
17058
- const a=(r.children||[]).map(e=>C0.encode(t,e)),l=PY.createChildrenVector(t,a),c=e.metadata&&e.metadata.size>0?PY.createCustomMetadataVector(t,[...e.metadata].map(([e,n])=>{const i=t.createString(`${e}`),o=t.createString(`${n}`)
17059
- return mY.startKeyValue(t),mY.addKey(t,i),mY.addValue(t,o),mY.endKeyValue(t)})):-1
17063
+ AX.isDictionary(r)?(s=r.dictionary.typeId,o=D0.visit(r,t),i=D0.visit(r.dictionary,t)):i=D0.visit(r,t)
17064
+ const a=(r.children||[]).map(e=>k0.encode(t,e)),l=VY.createChildrenVector(t,a),c=e.metadata&&e.metadata.size>0?VY.createCustomMetadataVector(t,[...e.metadata].map(([e,n])=>{const i=t.createString(`${e}`),o=t.createString(`${n}`)
17065
+ return gY.startKeyValue(t),gY.addKey(t,i),gY.addValue(t,o),gY.endKeyValue(t)})):-1
17060
17066
  e.name&&(n=t.createString(e.name))
17061
- PY.startField(t),PY.addType(t,i),PY.addTypeType(t,s),PY.addChildren(t,l),PY.addNullable(t,!!e.nullable),-1!==n&&PY.addName(t,n);-1!==o&&PY.addDictionary(t,o);-1!==c&&PY.addCustomMetadata(t,c)
17062
- return PY.endField(t)},C0.decode=function(t,e){let n,i,o,r,s,a
17063
- e&&(a=t.dictionary())?e.has(n=jY(a.id()))?(r=(r=a.indexType())?Y0(r):new OX,s=new iJ(e.get(n),r,n,a.isOrdered()),i=new C0(t.name(),s,t.nullable(),K0(t))):(r=(r=a.indexType())?Y0(r):new OX,e.set(n,o=X0(t,Z0(t,e))),s=new iJ(o,r,n,a.isOrdered()),i=new C0(t.name(),s,t.nullable(),K0(t))):(o=X0(t,Z0(t,e)),i=new C0(t.name(),o,t.nullable(),K0(t)))
17064
- return i||null},C0.fromJSON=function(t,e){let n,i,o,r,s,a
17065
- return e&&(r=t.dictionary)?e.has(n=r.id)?(i=(i=r.indexType)?N0(i):new OX,a=new iJ(e.get(n),i,n,r.isOrdered),o=new C0(t.name,a,t.nullable,B0(t.metadata))):(i=(i=r.indexType)?N0(i):new OX,e.set(n,s=P0(t,O0(t,e))),a=new iJ(s,i,n,r.isOrdered),o=new C0(t.name,a,t.nullable,B0(t.metadata))):(s=P0(t,O0(t,e)),o=new C0(t.name,s,t.nullable,B0(t.metadata))),o||null},x0.encode=function(t,e){const n=e.fields.map(e=>C0.encode(t,e))
17066
- VY.startFieldsVector(t,n.length)
17067
- const i=VY.createFieldsVector(t,n),o=e.metadata&&e.metadata.size>0?VY.createCustomMetadataVector(t,[...e.metadata].map(([e,n])=>{const i=t.createString(`${e}`),o=t.createString(`${n}`)
17068
- return mY.startKeyValue(t),mY.addKey(t,i),mY.addValue(t,o),mY.endKeyValue(t)})):-1
17069
- VY.startSchema(t),VY.addFields(t,i),VY.addEndianness(t,t1?hY.Little:hY.Big),-1!==o&&VY.addCustomMetadata(t,o)
17070
- return VY.endSchema(t)},x0.decode=function(t,e=new Map,n=jK.V5){const i=function(t,e){const n=[]
17071
- for(let i,o=-1,r=-1,s=t.fieldsLength();++o<s;)(i=t.fields(o))&&(n[++r]=C0.decode(i,e))
17067
+ VY.startField(t),VY.addType(t,i),VY.addTypeType(t,s),VY.addChildren(t,l),VY.addNullable(t,!!e.nullable),-1!==n&&VY.addName(t,n);-1!==o&&VY.addDictionary(t,o);-1!==c&&VY.addCustomMetadata(t,c)
17068
+ return VY.endField(t)},k0.decode=function(t,e){let n,i,o,r,s,a
17069
+ e&&(a=t.dictionary())?e.has(n=WY(a.id()))?(r=(r=a.indexType())?X0(r):new RX,s=new oJ(e.get(n),r,n,a.isOrdered()),i=new k0(t.name(),s,t.nullable(),Y0(t))):(r=(r=a.indexType())?X0(r):new RX,e.set(n,o=J0(t,K0(t,e))),s=new oJ(o,r,n,a.isOrdered()),i=new k0(t.name(),s,t.nullable(),Y0(t))):(o=J0(t,K0(t,e)),i=new k0(t.name(),o,t.nullable(),Y0(t)))
17070
+ return i||null},k0.fromJSON=function(t,e){let n,i,o,r,s,a
17071
+ return e&&(r=t.dictionary)?e.has(n=r.id)?(i=(i=r.indexType)?P0(i):new RX,a=new oJ(e.get(n),i,n,r.isOrdered),o=new k0(t.name,a,t.nullable,N0(t.metadata))):(i=(i=r.indexType)?P0(i):new RX,e.set(n,s=V0(t,R0(t,e))),a=new oJ(s,i,n,r.isOrdered),o=new k0(t.name,a,t.nullable,N0(t.metadata))):(s=V0(t,R0(t,e)),o=new k0(t.name,s,t.nullable,N0(t.metadata))),o||null},C0.encode=function(t,e){const n=e.fields.map(e=>k0.encode(t,e))
17072
+ zY.startFieldsVector(t,n.length)
17073
+ const i=zY.createFieldsVector(t,n),o=e.metadata&&e.metadata.size>0?zY.createCustomMetadataVector(t,[...e.metadata].map(([e,n])=>{const i=t.createString(`${e}`),o=t.createString(`${n}`)
17074
+ return gY.startKeyValue(t),gY.addKey(t,i),gY.addValue(t,o),gY.endKeyValue(t)})):-1
17075
+ zY.startSchema(t),zY.addFields(t,i),zY.addEndianness(t,e1?uY.Little:uY.Big),-1!==o&&zY.addCustomMetadata(t,o)
17076
+ return zY.endSchema(t)},C0.decode=function(t,e=new Map,n=WK.V5){const i=function(t,e){const n=[]
17077
+ for(let i,o=-1,r=-1,s=t.fieldsLength();++o<s;)(i=t.fields(o))&&(n[++r]=k0.decode(i,e))
17072
17078
  return n}(t,e)
17073
- return new x0(i,K0(t),e,n)},x0.fromJSON=function(t,e=new Map){return new x0(function(t,e){return(t.fields||[]).filter(Boolean).map(t=>C0.fromJSON(t,e))}(t,e),B0(t.metadata),e)},U0.encode=function(t,e){const n=e.nodes||[],i=e.buffers||[],o=e.variadicBufferCounts||[]
17074
- cY.startNodesVector(t,n.length)
17075
- for(const e of n.slice().reverse())W0.encode(t,e)
17079
+ return new C0(i,Y0(t),e,n)},C0.fromJSON=function(t,e=new Map){return new C0(function(t,e){return(t.fields||[]).filter(Boolean).map(t=>k0.fromJSON(t,e))}(t,e),N0(t.metadata),e)},q0.encode=function(t,e){const n=e.nodes||[],i=e.buffers||[],o=e.variadicBufferCounts||[]
17080
+ dY.startNodesVector(t,n.length)
17081
+ for(const e of n.slice().reverse())G0.encode(t,e)
17076
17082
  const r=t.endVector()
17077
- cY.startBuffersVector(t,i.length)
17078
- for(const e of i.slice().reverse())j0.encode(t,e)
17083
+ dY.startBuffersVector(t,i.length)
17084
+ for(const e of i.slice().reverse())W0.encode(t,e)
17079
17085
  const s=t.endVector()
17080
17086
  let a=null
17081
- null!==e.compression&&(a=Q0(t,e.compression))
17087
+ null!==e.compression&&(a=t1(t,e.compression))
17082
17088
  let l=-1
17083
- o.length>0&&(l=cY.createVariadicBufferCountsVector(t,o.map(BigInt)))
17084
- cY.startRecordBatch(t),cY.addLength(t,BigInt(e.length)),cY.addNodes(t,r),cY.addBuffers(t,s),null!==e.compression&&a&&cY.addCompression(t,a);-1!==l&&cY.addVariadicBufferCounts(t,l)
17085
- return cY.endRecordBatch(t)},U0.decode=function(t,e=jK.V5){return new U0(t.length(),function(t){const e=[]
17086
- for(let n,i=-1,o=-1,r=t.nodesLength();++i<r;)(n=t.nodes(i))&&(e[++o]=W0.decode(n))
17089
+ o.length>0&&(l=dY.createVariadicBufferCountsVector(t,o.map(BigInt)))
17090
+ dY.startRecordBatch(t),dY.addLength(t,BigInt(e.length)),dY.addNodes(t,r),dY.addBuffers(t,s),null!==e.compression&&a&&dY.addCompression(t,a);-1!==l&&dY.addVariadicBufferCounts(t,l)
17091
+ return dY.endRecordBatch(t)},q0.decode=function(t,e=WK.V5){return new q0(t.length(),function(t){const e=[]
17092
+ for(let n,i=-1,o=-1,r=t.nodesLength();++i<r;)(n=t.nodes(i))&&(e[++o]=G0.decode(n))
17087
17093
  return e}(t),function(t,e){const n=[]
17088
- for(let i,o=-1,r=-1,s=t.buffersLength();++o<s;)(i=t.buffers(o))&&(e<jK.V4&&(i.bb_pos+=8*(o+1)),n[++r]=j0.decode(i))
17089
- return n}(t,e),J0(t.compression()),function(t){const e=[],n=Math.trunc(t.variadicBufferCountsLength())
17090
- for(let i=0;i<n;++i)e.push(jY(t.variadicBufferCounts(i)))
17091
- return e}(t))},U0.fromJSON=D0,q0.encode=function(t,e){const n=U0.encode(t,e.data)
17092
- return dY.startDictionaryBatch(t),dY.addId(t,BigInt(e.id)),dY.addIsDelta(t,e.isDelta),dY.addData(t,n),dY.endDictionaryBatch(t)},q0.decode=function(t,e=jK.V5){return new q0(U0.decode(t.data(),e),t.id(),t.isDelta())},q0.fromJSON=function(t){return new q0(D0(t.data),t.id,t.isDelta)},W0.encode=function(t,e){return lY.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))},W0.decode=function(t){return new W0(t.length(),t.nullCount())},j0.encode=function(t,e){return aY.createBuffer(t,BigInt(e.offset),BigInt(e.length))},j0.decode=function(t){return new j0(t.offset(),t.length())},G0.encode=Q0,G0.decode=J0
17093
- const t1=(()=>{const t=new ArrayBuffer(2)
17094
- return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),e1=Object.freeze({done:!0,value:void 0})
17095
- class n1{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class i1{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 o1 extends i1{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
17096
- for(;t.length>0;)t.shift().resolve(e1)
17097
- this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return zK.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return zK.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return e(this,void 0,void 0,function*(){return yield this.abort(t),e1})}return(t){return e(this,void 0,void 0,function*(){return yield this.close(),e1})}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(e1)}_ensureOpen(){if(this._closedPromiseResolve)return!0
17098
- throw new Error("AsyncQueue is closed")}}class r1 extends o1{write(t){if((t=LK(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?mK(this.toUint8Array(!0)):this.toUint8Array(!1).then(mK)}toUint8Array(t=!1){return t?DK(this._values)[0]:(()=>e(this,void 0,void 0,function*(){var t,e,n,i
17094
+ for(let i,o=-1,r=-1,s=t.buffersLength();++o<s;)(i=t.buffers(o))&&(e<WK.V4&&(i.bb_pos+=8*(o+1)),n[++r]=W0.decode(i))
17095
+ return n}(t,e),Q0(t.compression()),function(t){const e=[],n=Math.trunc(t.variadicBufferCountsLength())
17096
+ for(let i=0;i<n;++i)e.push(WY(t.variadicBufferCounts(i)))
17097
+ return e}(t))},q0.fromJSON=O0,j0.encode=function(t,e){const n=q0.encode(t,e.data)
17098
+ return hY.startDictionaryBatch(t),hY.addId(t,BigInt(e.id)),hY.addIsDelta(t,e.isDelta),hY.addData(t,n),hY.endDictionaryBatch(t)},j0.decode=function(t,e=WK.V5){return new j0(q0.decode(t.data(),e),t.id(),t.isDelta())},j0.fromJSON=function(t){return new j0(O0(t.data),t.id,t.isDelta)},G0.encode=function(t,e){return cY.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))},G0.decode=function(t){return new G0(t.length(),t.nullCount())},W0.encode=function(t,e){return lY.createBuffer(t,BigInt(e.offset),BigInt(e.length))},W0.decode=function(t){return new W0(t.offset(),t.length())},Z0.encode=t1,Z0.decode=Q0
17099
+ const e1=(()=>{const t=new ArrayBuffer(2)
17100
+ return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),n1=Object.freeze({done:!0,value:void 0})
17101
+ class i1{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class o1{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 r1 extends o1{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
17102
+ for(;t.length>0;)t.shift().resolve(n1)
17103
+ this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return HK.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return HK.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return e(this,void 0,void 0,function*(){return yield this.abort(t),n1})}return(t){return e(this,void 0,void 0,function*(){return yield this.close(),n1})}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(n1)}_ensureOpen(){if(this._closedPromiseResolve)return!0
17104
+ throw new Error("AsyncQueue is closed")}}class s1 extends r1{write(t){if((t=BK(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?gK(this.toUint8Array(!0)):this.toUint8Array(!1).then(gK)}toUint8Array(t=!1){return t?OK(this._values)[0]:(()=>e(this,void 0,void 0,function*(){var t,e,n,i
17099
17105
  const o=[]
17100
17106
  let r=0
17101
17107
  try{for(var a,l=!0,c=s(this);!(t=(a=yield c.next()).done);l=!0){i=a.value,l=!1
17102
17108
  const t=i
17103
- o.push(t),r+=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 DK(o,r)[0]}))()}}class s1{constructor(t){t&&(this.source=new l1(zK.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 a1{constructor(t){t instanceof a1?this.source=t.source:t instanceof r1?this.source=new c1(zK.fromAsyncIterable(t)):EK(t)?this.source=new c1(zK.fromNodeStream(t)):MK(t)?this.source=new c1(zK.fromDOMStream(t)):_K(t)?this.source=new c1(zK.fromDOMStream(t.body)):xK(t)?this.source=new c1(zK.fromIterable(t)):(wK(t)||CK(t))&&(this.source=new c1(zK.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 l1{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)||e1)}return(t){return Object.create(this.source.return&&this.source.return(t)||e1)}}class c1{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))||e1
17104
- 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))||e1
17105
- return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}class d1 extends s1{constructor(t,e){super(),this.position=0,this.buffer=LK(t),this.size=void 0===e?this.buffer.byteLength:e}readInt32(t){const{buffer:e,byteOffset:n}=this.readAt(t,4)
17109
+ o.push(t),r+=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 OK(o,r)[0]}))()}}class a1{constructor(t){t&&(this.source=new c1(HK.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 l1{constructor(t){t instanceof l1?this.source=t.source:t instanceof s1?this.source=new d1(HK.fromAsyncIterable(t)):AK(t)?this.source=new d1(HK.fromNodeStream(t)):EK(t)?this.source=new d1(HK.fromDOMStream(t)):IK(t)?this.source=new d1(HK.fromDOMStream(t.body)):CK(t)?this.source=new d1(HK.fromIterable(t)):(xK(t)||kK(t))&&(this.source=new d1(HK.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 c1{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)||n1)}return(t){return Object.create(this.source.return&&this.source.return(t)||n1)}}class d1{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))||n1
17110
+ 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))||n1
17111
+ return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}class h1 extends a1{constructor(t,e){super(),this.position=0,this.buffer=BK(t),this.size=void 0===e?this.buffer.byteLength:e}readInt32(t){const{buffer:e,byteOffset:n}=this.readAt(t,4)
17106
17112
  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
17107
17113
  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)
17108
- 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 h1 extends a1{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)
17114
+ 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 u1 extends l1{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)
17109
17115
  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)
17110
17116
  const{_handle:e,size:n,position:i}=this
17111
17117
  if(e&&i<n){"number"!=typeof t&&(t=Number.POSITIVE_INFINITY)
@@ -17116,199 +17122,199 @@ return l}return null})}readAt(t,n){return e(this,void 0,void 0,function*(){this.
17116
17122
  const{_handle:e,size:i}=this
17117
17123
  if(e&&t+n<i){const o=Math.min(i,t+n),r=new Uint8Array(o-t)
17118
17124
  return(yield e.read(r,0,n,t)).buffer}return new Uint8Array(n)})}close(){return e(this,void 0,void 0,function*(){const t=this._handle
17119
- 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 u1(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const p1=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8]
17120
- class f1{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]])
17125
+ 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 p1(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const f1=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8]
17126
+ class m1{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]])
17121
17127
  let i=e[3]*n[3]
17122
17128
  this.buffer[0]=65535&i
17123
17129
  let o=i>>>16
17124
17130
  return i=e[2]*n[3],o+=i,i=e[3]*n[2]>>>0,o+=i,this.buffer[0]+=o<<16,this.buffer[1]=o>>>0<i?65536:0,this.buffer[1]+=o>>>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
17125
- 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`${u1(this.buffer[1])} ${u1(this.buffer[0])}`}}class m1 extends f1{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return m1.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return m1.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.length,i=new m1(e)
17126
- for(let e=0;e<n;){const o=8<n-e?8:n-e,r=new m1(new Uint32Array([Number.parseInt(t.slice(e,e+o),10),0])),s=new m1(new Uint32Array([p1[o],0]))
17131
+ 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`${p1(this.buffer[1])} ${p1(this.buffer[0])}`}}class g1 extends m1{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return g1.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return g1.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.length,i=new g1(e)
17132
+ for(let e=0;e<n;){const o=8<n-e?8:n-e,r=new g1(new Uint32Array([Number.parseInt(t.slice(e,e+o),10),0])),s=new g1(new Uint32Array([f1[o],0]))
17127
17133
  i.times(s),i.plus(r),e+=o}return i}static convertArray(t){const e=new Uint32Array(2*t.length)
17128
- for(let n=-1,i=t.length;++n<i;)m1.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2))
17129
- return e}static multiply(t,e){return new m1(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new m1(new Uint32Array(t.buffer)).plus(e)}}class g1 extends f1{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
17130
- return e<n||e===n&&this.buffer[0]<t.buffer[0]}static from(t,e=new Uint32Array(2)){return g1.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return g1.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.startsWith("-"),i=t.length,o=new g1(e)
17131
- for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,r=new g1(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0])),s=new g1(new Uint32Array([p1[n],0]))
17132
- o.times(s),o.plus(r),e+=n}return n?o.negate():o}static convertArray(t){const e=new Uint32Array(2*t.length)
17133
17134
  for(let n=-1,i=t.length;++n<i;)g1.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2))
17134
- return e}static multiply(t,e){return new g1(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new g1(new Uint32Array(t.buffer)).plus(e)}}class v1{constructor(t){this.buffer=t}high(){return new g1(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new g1(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 m1(new Uint32Array([this.buffer[3],0])),n=new m1(new Uint32Array([this.buffer[2],0])),i=new m1(new Uint32Array([this.buffer[1],0])),o=new m1(new Uint32Array([this.buffer[0],0])),r=new m1(new Uint32Array([t.buffer[3],0])),s=new m1(new Uint32Array([t.buffer[2],0])),a=new m1(new Uint32Array([t.buffer[1],0])),l=new m1(new Uint32Array([t.buffer[0],0]))
17135
- let c=m1.multiply(o,l)
17135
+ return e}static multiply(t,e){return new g1(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new g1(new Uint32Array(t.buffer)).plus(e)}}class v1 extends m1{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
17136
+ return e<n||e===n&&this.buffer[0]<t.buffer[0]}static from(t,e=new Uint32Array(2)){return v1.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return v1.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){const n=t.startsWith("-"),i=t.length,o=new v1(e)
17137
+ for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,r=new v1(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0])),s=new v1(new Uint32Array([f1[n],0]))
17138
+ o.times(s),o.plus(r),e+=n}return n?o.negate():o}static convertArray(t){const e=new Uint32Array(2*t.length)
17139
+ for(let n=-1,i=t.length;++n<i;)v1.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2))
17140
+ return e}static multiply(t,e){return new v1(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new v1(new Uint32Array(t.buffer)).plus(e)}}class b1{constructor(t){this.buffer=t}high(){return new v1(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new v1(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 g1(new Uint32Array([this.buffer[3],0])),n=new g1(new Uint32Array([this.buffer[2],0])),i=new g1(new Uint32Array([this.buffer[1],0])),o=new g1(new Uint32Array([this.buffer[0],0])),r=new g1(new Uint32Array([t.buffer[3],0])),s=new g1(new Uint32Array([t.buffer[2],0])),a=new g1(new Uint32Array([t.buffer[1],0])),l=new g1(new Uint32Array([t.buffer[0],0]))
17141
+ let c=g1.multiply(o,l)
17136
17142
  this.buffer[0]=c.low()
17137
- const d=new m1(new Uint32Array([c.high(),0]))
17138
- c=m1.multiply(i,l),d.plus(c),c=m1.multiply(o,a),d.plus(c),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(c)?1:0,this.buffer[2]=d.high()
17139
- return new m1(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(m1.multiply(n,l)).plus(m1.multiply(i,a)).plus(m1.multiply(o,s)),this.buffer[3]+=m1.multiply(e,l).plus(m1.multiply(n,a)).plus(m1.multiply(i,s)).plus(m1.multiply(o,r)).low(),this}plus(t){const e=new Uint32Array(4)
17140
- 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`${u1(this.buffer[3])} ${u1(this.buffer[2])} ${u1(this.buffer[1])} ${u1(this.buffer[0])}`}static multiply(t,e){return new v1(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new v1(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return v1.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return v1.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){const n=t.startsWith("-"),i=t.length,o=new v1(e)
17141
- for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,r=new v1(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0,0,0])),s=new v1(new Uint32Array([p1[n],0,0,0]))
17143
+ const d=new g1(new Uint32Array([c.high(),0]))
17144
+ c=g1.multiply(i,l),d.plus(c),c=g1.multiply(o,a),d.plus(c),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(c)?1:0,this.buffer[2]=d.high()
17145
+ return new g1(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(g1.multiply(n,l)).plus(g1.multiply(i,a)).plus(g1.multiply(o,s)),this.buffer[3]+=g1.multiply(e,l).plus(g1.multiply(n,a)).plus(g1.multiply(i,s)).plus(g1.multiply(o,r)).low(),this}plus(t){const e=new Uint32Array(4)
17146
+ 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`${p1(this.buffer[3])} ${p1(this.buffer[2])} ${p1(this.buffer[1])} ${p1(this.buffer[0])}`}static multiply(t,e){return new b1(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new b1(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return b1.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return b1.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){const n=t.startsWith("-"),i=t.length,o=new b1(e)
17147
+ for(let e=n?1:0;e<i;){const n=8<i-e?8:i-e,r=new b1(new Uint32Array([Number.parseInt(t.slice(e,e+n),10),0,0,0])),s=new b1(new Uint32Array([f1[n],0,0,0]))
17142
17148
  o.times(s),o.plus(r),e+=n}return n?o.negate():o}static convertArray(t){const e=new Uint32Array(4*t.length)
17143
- for(let n=-1,i=t.length;++n<i;)v1.from(t[n],new Uint32Array(e.buffer,e.byteOffset+16*n,4))
17144
- return e}}class b1 extends rJ{constructor(t,e,n,i,o=jK.V5,r=[]){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.variadicBufferIndex=-1,this.bytes=t,this.nodes=e,this.buffers=n,this.dictionaries=i,this.metadataVersion=o,this.variadicBufferCounts=r}visit(t){return super.visit(t instanceof C0?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return GQ({type:t,length:e})}visitBool(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitInt(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({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 GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitUtf8View(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),views:this.readData(t),variadicBuffers:this.readVariadicBuffers(this.nextVariadicBufferCount())})}visitBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({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 GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinaryView(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),views:this.readData(t),variadicBuffers:this.readVariadicBuffers(this.nextVariadicBufferCount())})}visitFixedSizeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDate(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTime(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitList(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitLargeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({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 GQ({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<jK.V5&&this.readNullBitmap(t,n),t.mode===WK.Sparse?this.visitSparseUnion(t,{length:e,nullCount:n}):this.visitDenseUnion(t,{length:e,nullCount:n})}visitDenseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({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 GQ({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({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 GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return GQ({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 GQ({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)}readVariadicBuffers(t){return Array.from({length:t},()=>this.readData(null))}nextVariadicBufferCount(){var t
17145
- return null!==(t=this.variadicBufferCounts[++this.variadicBufferIndex])&&void 0!==t?t:0}readDictionary(t){return this.dictionaries.get(t.id)}}class y1 extends b1{constructor(t,e,n,i,o,r=[]){super(new Uint8Array(0),e,n,i,o,r),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):PQ(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return OK(Uint8Array,OK(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return OK(Uint8Array,OK(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){const{sources:n}=this
17146
- if(EX.isTimestamp(t))return OK(Uint8Array,g1.convertArray(n[e]))
17147
- if((EX.isInt(t)||EX.isTime(t))&&64===t.bitWidth||EX.isDuration(t))return OK(Uint8Array,g1.convertArray(n[e]))
17148
- if(EX.isDate(t)&&t.unit===ZK.MILLISECOND)return OK(Uint8Array,g1.convertArray(n[e]))
17149
- if(EX.isDecimal(t))return OK(Uint8Array,v1.convertArray(n[e]))
17150
- if(EX.isBinary(t)||EX.isLargeBinary(t)||EX.isFixedSizeBinary(t))return w1(n[e].join(""))
17151
- if(EX.isBinaryView(t))return x1(n[e],t=>{const e=new Uint8Array(t.length/2)
17149
+ for(let n=-1,i=t.length;++n<i;)b1.from(t[n],new Uint32Array(e.buffer,e.byteOffset+16*n,4))
17150
+ return e}}class y1 extends sJ{constructor(t,e,n,i,o=WK.V5,r=[]){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.variadicBufferIndex=-1,this.bytes=t,this.nodes=e,this.buffers=n,this.dictionaries=i,this.metadataVersion=o,this.variadicBufferCounts=r}visit(t){return super.visit(t instanceof k0?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return ZQ({type:t,length:e})}visitBool(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitInt(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({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 ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitUtf8View(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),views:this.readData(t),variadicBuffers:this.readVariadicBuffers(this.nextVariadicBufferCount())})}visitBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({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 ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinaryView(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),views:this.readData(t),variadicBuffers:this.readVariadicBuffers(this.nextVariadicBufferCount())})}visitFixedSizeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDate(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTime(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitList(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitLargeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({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 ZQ({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<WK.V5&&this.readNullBitmap(t,n),t.mode===GK.Sparse?this.visitSparseUnion(t,{length:e,nullCount:n}):this.visitDenseUnion(t,{length:e,nullCount:n})}visitDenseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({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 ZQ({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({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 ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return ZQ({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 ZQ({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)}readVariadicBuffers(t){return Array.from({length:t},()=>this.readData(null))}nextVariadicBufferCount(){var t
17151
+ return null!==(t=this.variadicBufferCounts[++this.variadicBufferIndex])&&void 0!==t?t:0}readDictionary(t){return this.dictionaries.get(t.id)}}class w1 extends y1{constructor(t,e,n,i,o,r=[]){super(new Uint8Array(0),e,n,i,o,r),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):VQ(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return RK(Uint8Array,RK(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return RK(Uint8Array,RK(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){const{sources:n}=this
17152
+ if(AX.isTimestamp(t))return RK(Uint8Array,v1.convertArray(n[e]))
17153
+ if((AX.isInt(t)||AX.isTime(t))&&64===t.bitWidth||AX.isDuration(t))return RK(Uint8Array,v1.convertArray(n[e]))
17154
+ if(AX.isDate(t)&&t.unit===KK.MILLISECOND)return RK(Uint8Array,v1.convertArray(n[e]))
17155
+ if(AX.isDecimal(t))return RK(Uint8Array,b1.convertArray(n[e]))
17156
+ if(AX.isBinary(t)||AX.isLargeBinary(t)||AX.isFixedSizeBinary(t))return x1(n[e].join(""))
17157
+ if(AX.isBinaryView(t))return C1(n[e],t=>{const e=new Uint8Array(t.length/2)
17152
17158
  for(let n=0;n<t.length;n+=2)e[n>>1]=Number.parseInt(t.slice(n,n+2),16)
17153
17159
  return e})
17154
- if(EX.isUtf8View(t))return function(t){return x1(t,t=>(new TextEncoder).encode(t))}(n[e])
17155
- if(EX.isBool(t))return PQ(n[e])
17156
- if(EX.isUtf8(t)||EX.isLargeUtf8(t))return vK(n[e].join(""))
17157
- if(EX.isInterval(t))switch(t.unit){case YK.DAY_TIME:return function(t){var e,n
17160
+ if(AX.isUtf8View(t))return function(t){return C1(t,t=>(new TextEncoder).encode(t))}(n[e])
17161
+ if(AX.isBool(t))return VQ(n[e])
17162
+ if(AX.isUtf8(t)||AX.isLargeUtf8(t))return bK(n[e].join(""))
17163
+ if(AX.isInterval(t))switch(t.unit){case XK.DAY_TIME:return function(t){var e,n
17158
17164
  const i=t.length,o=new Int32Array(2*i)
17159
17165
  for(let r=0,s=0;r<i;r++){const i=t[r]
17160
17166
  o[s++]=null!==(e=i.days)&&void 0!==e?e:0,o[s++]=null!==(n=i.milliseconds)&&void 0!==n?n:0}return o}(n[e])
17161
- case YK.MONTH_DAY_NANO:return function(t){var e,n
17167
+ case XK.MONTH_DAY_NANO:return function(t){var e,n
17162
17168
  const i=t.length,o=new Int32Array(4*i)
17163
17169
  for(let r=0,s=0;r<i;r++){const i=t[r]
17164
17170
  o[s++]=null!==(e=i.months)&&void 0!==e?e:0,o[s++]=null!==(n=i.days)&&void 0!==n?n:0
17165
17171
  const a=i.nanoseconds
17166
17172
  if(a){const t=BigInt(a)
17167
- o[s++]=Number(t&BigInt(4294967295))>>>0,o[s++]=Number(t>>BigInt(32))>>>0}else s+=2}return o}(n[e])}return OK(Uint8Array,OK(t.ArrayType,n[e].map(t=>+t)))}readVariadicBuffers(t){const e=[]
17173
+ o[s++]=Number(t&BigInt(4294967295))>>>0,o[s++]=Number(t>>BigInt(32))>>>0}else s+=2}return o}(n[e])}return RK(Uint8Array,RK(t.ArrayType,n[e].map(t=>+t)))}readVariadicBuffers(t){const e=[]
17168
17174
  for(let n=0;n<t;n++){const{offset:t}=this.nextBufferRange(),n=this.sources[t]
17169
- e.push(w1(n))}return e}}function w1(t){const e=new Uint8Array(t.length/2)
17175
+ e.push(x1(n))}return e}}function x1(t){const e=new Uint8Array(t.length/2)
17170
17176
  for(let n=0;n<t.length;n+=2)e[n>>1]=Number.parseInt(t.slice(n,n+2),16)
17171
- return e}function x1(t,e){const n=new Uint8Array(16*t.length),i=new DataView(n.buffer)
17177
+ return e}function C1(t,e){const n=new Uint8Array(16*t.length),i=new DataView(n.buffer)
17172
17178
  for(const[o,r]of t.entries()){const t=16*o,s=r.SIZE
17173
17179
  if(i.setInt32(t,s,!0),void 0!==r.INLINED){const i=e(r.INLINED)
17174
17180
  for(let e=0;e<i.length&&e<12;e++)n[t+4+e]=i[e]}else{const e=r.PREFIX_HEX
17175
17181
  for(let i=0;i<8&&i<e.length;i+=2)n[t+4+(i>>1)]=Number.parseInt(e.slice(i,i+2),16)
17176
- i.setInt32(t+8,r.BUFFER_INDEX,!0),i.setInt32(t+12,r.OFFSET,!0)}}return n}class C1 extends b1{constructor(t,e,n,i,o,r=[]){super(new Uint8Array(0),e,n,i,o,r),this.bodyChunks=t}readData(t,e=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}class k1 extends rJ{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 S1(t,e){return e instanceof t.constructor}function $1(t,e){return t===e||S1(t,e)}function _1(t,e){return t===e||S1(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function I1(t,e){return t===e||S1(t,e)&&t.precision===e.precision}function M1(t,e){return t===e||S1(t,e)&&t.unit===e.unit}function E1(t,e){return t===e||S1(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function A1(t,e){return t===e||S1(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function T1(t,e){return t===e||S1(t,e)&&t.children.length===e.children.length&&F1.compareManyFields(t.children,e.children)}function D1(t,e){return t===e||S1(t,e)&&t.mode===e.mode&&t.typeIds.every((t,n)=>t===e.typeIds[n])&&F1.compareManyFields(t.children,e.children)}function O1(t,e){return t===e||S1(t,e)&&t.unit===e.unit}function R1(t,e){return t===e||S1(t,e)&&t.unit===e.unit}k1.prototype.visitNull=$1,k1.prototype.visitBool=$1,k1.prototype.visitInt=_1,k1.prototype.visitInt8=_1,k1.prototype.visitInt16=_1,k1.prototype.visitInt32=_1,k1.prototype.visitInt64=_1,k1.prototype.visitUint8=_1,k1.prototype.visitUint16=_1,k1.prototype.visitUint32=_1,k1.prototype.visitUint64=_1,k1.prototype.visitFloat=I1,k1.prototype.visitFloat16=I1,k1.prototype.visitFloat32=I1,k1.prototype.visitFloat64=I1,k1.prototype.visitUtf8=$1,k1.prototype.visitLargeUtf8=$1,k1.prototype.visitUtf8View=$1,k1.prototype.visitBinary=$1,k1.prototype.visitLargeBinary=$1,k1.prototype.visitBinaryView=$1,k1.prototype.visitFixedSizeBinary=function(t,e){return t===e||S1(t,e)&&t.byteWidth===e.byteWidth},k1.prototype.visitDate=M1,k1.prototype.visitDateDay=M1,k1.prototype.visitDateMillisecond=M1,k1.prototype.visitTimestamp=E1,k1.prototype.visitTimestampSecond=E1,k1.prototype.visitTimestampMillisecond=E1,k1.prototype.visitTimestampMicrosecond=E1,k1.prototype.visitTimestampNanosecond=E1,k1.prototype.visitTime=A1,k1.prototype.visitTimeSecond=A1,k1.prototype.visitTimeMillisecond=A1,k1.prototype.visitTimeMicrosecond=A1,k1.prototype.visitTimeNanosecond=A1,k1.prototype.visitDecimal=$1,k1.prototype.visitList=T1,k1.prototype.visitLargeList=T1,k1.prototype.visitStruct=function(t,e){return t===e||S1(t,e)&&t.children.length===e.children.length&&F1.compareManyFields(t.children,e.children)},k1.prototype.visitUnion=D1,k1.prototype.visitDenseUnion=D1,k1.prototype.visitSparseUnion=D1,k1.prototype.visitDictionary=function(t,e){return t===e||S1(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&F1.visit(t.indices,e.indices)&&F1.visit(t.dictionary,e.dictionary)},k1.prototype.visitInterval=O1,k1.prototype.visitIntervalDayTime=O1,k1.prototype.visitIntervalYearMonth=O1,k1.prototype.visitIntervalMonthDayNano=O1,k1.prototype.visitDuration=R1,k1.prototype.visitDurationSecond=R1,k1.prototype.visitDurationMillisecond=R1,k1.prototype.visitDurationMicrosecond=R1,k1.prototype.visitDurationNanosecond=R1,k1.prototype.visitFixedSizeList=function(t,e){return t===e||S1(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&F1.compareManyFields(t.children,e.children)},k1.prototype.visitMap=function(t,e){return t===e||S1(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&F1.compareManyFields(t.children,e.children)}
17177
- const F1=new k1
17178
- function L1(t,e){return F1.compareSchemas(t,e)}function B1(t,e){return function(t,e){const n=[...t.fields],i=[],o={numBatches:e.reduce((t,e)=>Math.max(t,e.length),0)}
17182
+ i.setInt32(t+8,r.BUFFER_INDEX,!0),i.setInt32(t+12,r.OFFSET,!0)}}return n}class k1 extends y1{constructor(t,e,n,i,o,r=[]){super(new Uint8Array(0),e,n,i,o,r),this.bodyChunks=t}readData(t,e=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}class S1 extends sJ{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 $1(t,e){return e instanceof t.constructor}function _1(t,e){return t===e||$1(t,e)}function I1(t,e){return t===e||$1(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function M1(t,e){return t===e||$1(t,e)&&t.precision===e.precision}function E1(t,e){return t===e||$1(t,e)&&t.unit===e.unit}function A1(t,e){return t===e||$1(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function T1(t,e){return t===e||$1(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function D1(t,e){return t===e||$1(t,e)&&t.children.length===e.children.length&&L1.compareManyFields(t.children,e.children)}function O1(t,e){return t===e||$1(t,e)&&t.mode===e.mode&&t.typeIds.every((t,n)=>t===e.typeIds[n])&&L1.compareManyFields(t.children,e.children)}function R1(t,e){return t===e||$1(t,e)&&t.unit===e.unit}function F1(t,e){return t===e||$1(t,e)&&t.unit===e.unit}S1.prototype.visitNull=_1,S1.prototype.visitBool=_1,S1.prototype.visitInt=I1,S1.prototype.visitInt8=I1,S1.prototype.visitInt16=I1,S1.prototype.visitInt32=I1,S1.prototype.visitInt64=I1,S1.prototype.visitUint8=I1,S1.prototype.visitUint16=I1,S1.prototype.visitUint32=I1,S1.prototype.visitUint64=I1,S1.prototype.visitFloat=M1,S1.prototype.visitFloat16=M1,S1.prototype.visitFloat32=M1,S1.prototype.visitFloat64=M1,S1.prototype.visitUtf8=_1,S1.prototype.visitLargeUtf8=_1,S1.prototype.visitUtf8View=_1,S1.prototype.visitBinary=_1,S1.prototype.visitLargeBinary=_1,S1.prototype.visitBinaryView=_1,S1.prototype.visitFixedSizeBinary=function(t,e){return t===e||$1(t,e)&&t.byteWidth===e.byteWidth},S1.prototype.visitDate=E1,S1.prototype.visitDateDay=E1,S1.prototype.visitDateMillisecond=E1,S1.prototype.visitTimestamp=A1,S1.prototype.visitTimestampSecond=A1,S1.prototype.visitTimestampMillisecond=A1,S1.prototype.visitTimestampMicrosecond=A1,S1.prototype.visitTimestampNanosecond=A1,S1.prototype.visitTime=T1,S1.prototype.visitTimeSecond=T1,S1.prototype.visitTimeMillisecond=T1,S1.prototype.visitTimeMicrosecond=T1,S1.prototype.visitTimeNanosecond=T1,S1.prototype.visitDecimal=_1,S1.prototype.visitList=D1,S1.prototype.visitLargeList=D1,S1.prototype.visitStruct=function(t,e){return t===e||$1(t,e)&&t.children.length===e.children.length&&L1.compareManyFields(t.children,e.children)},S1.prototype.visitUnion=O1,S1.prototype.visitDenseUnion=O1,S1.prototype.visitSparseUnion=O1,S1.prototype.visitDictionary=function(t,e){return t===e||$1(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&L1.visit(t.indices,e.indices)&&L1.visit(t.dictionary,e.dictionary)},S1.prototype.visitInterval=R1,S1.prototype.visitIntervalDayTime=R1,S1.prototype.visitIntervalYearMonth=R1,S1.prototype.visitIntervalMonthDayNano=R1,S1.prototype.visitDuration=F1,S1.prototype.visitDurationSecond=F1,S1.prototype.visitDurationMillisecond=F1,S1.prototype.visitDurationMicrosecond=F1,S1.prototype.visitDurationNanosecond=F1,S1.prototype.visitFixedSizeList=function(t,e){return t===e||$1(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&L1.compareManyFields(t.children,e.children)},S1.prototype.visitMap=function(t,e){return t===e||$1(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&L1.compareManyFields(t.children,e.children)}
17183
+ const L1=new S1
17184
+ function B1(t,e){return L1.compareSchemas(t,e)}function N1(t,e){return function(t,e){const n=[...t.fields],i=[],o={numBatches:e.reduce((t,e)=>Math.max(t,e.length),0)}
17179
17185
  let r=0,s=0,a=-1
17180
17186
  const l=e.length
17181
17187
  let c,d=[]
17182
17188
  for(;o.numBatches-- >0;){for(s=Number.POSITIVE_INFINITY,a=-1;++a<l;)d[a]=c=e[a].shift(),s=Math.min(s,c?c.length:s)
17183
- Number.isFinite(s)&&(d=N1(n,s,d,e,o),s>0&&(i[r++]=GQ({type:new YX(n),length:s,nullCount:0,children:d.slice()})))}return[t=t.assign(n),i.map(e=>new q1(t,e))]}(t,e.map(t=>t.data.concat()))}function N1(t,e,n,i,o){var r
17189
+ Number.isFinite(s)&&(d=P1(n,s,d,e,o),s>0&&(i[r++]=ZQ({type:new XX(n),length:s,nullCount:0,children:d.slice()})))}return[t=t.assign(n),i.map(e=>new j1(t,e))]}(t,e.map(t=>t.data.concat()))}function P1(t,e,n,i,o){var r
17184
17190
  const s=(e+63&-64)>>3
17185
17191
  for(let a=-1,l=i.length;++a<l;){const l=n[a],c=null==l?void 0:l.length
17186
17192
  if(c>=e)c===e?n[a]=l:(n[a]=l.slice(0,e),o.numBatches=Math.max(o.numBatches,i[a].unshift(l.slice(e,c-e))))
17187
17193
  else{const i=t[a]
17188
- t[a]=i.clone({nullable:!0}),n[a]=null!==(r=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==r?r:GQ({type:i.type,length:e,nullCount:e,nullBitmap:new Uint8Array(s)})}}return n}var P1
17189
- const V1=Symbol.for("apache-arrow/Table")
17190
- class z1{static isTable(t){return!0===(null==t?void 0:t[V1])}constructor(...t){var e,n
17191
- if(0===t.length)return this.batches=[],this.schema=new x0([]),this._offsets=[0],this
17194
+ t[a]=i.clone({nullable:!0}),n[a]=null!==(r=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==r?r:ZQ({type:i.type,length:e,nullCount:e,nullBitmap:new Uint8Array(s)})}}return n}var V1
17195
+ const z1=Symbol.for("apache-arrow/Table")
17196
+ class H1{static isTable(t){return!0===(null==t?void 0:t[z1])}constructor(...t){var e,n
17197
+ if(0===t.length)return this.batches=[],this.schema=new C0([]),this._offsets=[0],this
17192
17198
  let i,o
17193
- t[0]instanceof x0&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(o=t.pop())
17194
- const r=t=>{if(t){if(t instanceof q1)return[t]
17195
- if(t instanceof z1)return t.batches
17196
- if(t instanceof qQ){if(t.type instanceof YX)return[new q1(new x0(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap(t=>r(t))
17199
+ t[0]instanceof C0&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(o=t.pop())
17200
+ const r=t=>{if(t){if(t instanceof j1)return[t]
17201
+ if(t instanceof H1)return t.batches
17202
+ if(t instanceof jQ){if(t.type instanceof XX)return[new j1(new C0(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap(t=>r(t))
17197
17203
  if("function"==typeof t[Symbol.iterator])return[...t].flatMap(t=>r(t))
17198
- if("object"==typeof t){const e=Object.keys(t),n=e.map(e=>new m0([t[e]])),o=null!=i?i:new x0(e.map((t,e)=>new C0(String(t),n[e].type,n[e].nullable))),[,r]=B1(o,n)
17199
- return 0===r.length?[new q1(t)]:r}}}return[]},s=t.flatMap(t=>r(t))
17200
- if(i=null!==(n=null!=i?i:null===(e=s[0])||void 0===e?void 0:e.schema)&&void 0!==n?n:new x0([]),!(i instanceof x0))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
17201
- for(const t of s){if(!(t instanceof q1))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
17202
- if(!L1(i,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=s,this._offsets=null!=o?o:YQ(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=KQ(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(TQ(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?d0.visit(new m0(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))
17203
- return new z1(e,n.map(t=>new q1(e,t)))}slice(t,e){const n=this.schema;[t,e]=AQ({length:this.numRows},t,e)
17204
- const i=XQ(this.data,this._offsets,t,e)
17205
- return new z1(n,i.map(t=>new q1(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])
17206
- if(0===e.length){const{type:n}=this.schema.fields[t],i=GQ({type:n,length:0,nullCount:0})
17207
- e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new m0(e)}return null}setChild(t,e){var n
17204
+ if("object"==typeof t){const e=Object.keys(t),n=e.map(e=>new g0([t[e]])),o=null!=i?i:new C0(e.map((t,e)=>new k0(String(t),n[e].type,n[e].nullable))),[,r]=N1(o,n)
17205
+ return 0===r.length?[new j1(t)]:r}}}return[]},s=t.flatMap(t=>r(t))
17206
+ if(i=null!==(n=null!=i?i:null===(e=s[0])||void 0===e?void 0:e.schema)&&void 0!==n?n:new C0([]),!(i instanceof C0))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
17207
+ for(const t of s){if(!(t instanceof j1))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.")
17208
+ if(!B1(i,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=s,this._offsets=null!=o?o:XQ(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=YQ(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(DQ(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?h0.visit(new g0(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))
17209
+ return new H1(e,n.map(t=>new j1(e,t)))}slice(t,e){const n=this.schema;[t,e]=TQ({length:this.numRows},t,e)
17210
+ const i=JQ(this.data,this._offsets,t,e)
17211
+ return new H1(n,i.map(t=>new j1(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])
17212
+ if(0===e.length){const{type:n}=this.schema.fields[t],i=ZQ({type:n,length:0,nullCount:0})
17213
+ e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new g0(e)}return null}setChild(t,e){var n
17208
17214
  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]
17209
- if(t>-1&&t<this.numCols){e||(e=new m0([GQ({type:new TX,length:this.numRows})]))
17210
- const o=n.fields.slice(),r=o[t].clone({type:e.type}),s=this.schema.fields.map((t,e)=>this.getChildAt(e));[o[t],s[t]]=[r,e],[n,i]=B1(n,s)}return new z1(n,i)}select(t){const e=this.schema.fields.reduce((t,e,n)=>t.set(e.name,n),new Map)
17215
+ if(t>-1&&t<this.numCols){e||(e=new g0([ZQ({type:new DX,length:this.numRows})]))
17216
+ const o=n.fields.slice(),r=o[t].clone({type:e.type}),s=this.schema.fields.map((t,e)=>this.getChildAt(e));[o[t],s[t]]=[r,e],[n,i]=N1(n,s)}return new H1(n,i)}select(t){const e=this.schema.fields.reduce((t,e,n)=>t.set(e.name,n),new Map)
17211
17217
  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))
17212
- return new z1(e,n)}assign(t){const e=this.schema.fields,[n,i]=t.schema.fields.reduce((t,n,i)=>{const[o,r]=t,s=e.findIndex(t=>t.name===n.name)
17218
+ return new H1(e,n)}assign(t){const e=this.schema.fields,[n,i]=t.schema.fields.reduce((t,n,i)=>{const[o,r]=t,s=e.findIndex(t=>t.name===n.name)
17213
17219
  return~s?r[s]=i:o.push(i),t},[[],[]]),o=this.schema.assign(t.schema),r=[...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)
17214
- return new z1(...B1(o,r))}}var H1
17215
- P1=Symbol.toStringTag,z1[P1]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[V1]=!0,t.isValid=t0(QQ),t.get=t0(xQ.getVisitFn(HY.Struct)),t.set=e0(VJ.getVisitFn(HY.Struct)),t.indexOf=n0(s0.getVisitFn(HY.Struct)),"Table"))(z1.prototype),Object.defineProperty(z1,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===z1&&z1.isTable(t)}})
17216
- const U1=Symbol.for("apache-arrow/RecordBatch")
17217
- class q1{static isRecordBatch(t){return!0===(null==t?void 0:t[U1])}constructor(...t){switch(t.length){case 3:case 2:if([this.schema]=t,!(this.schema instanceof x0))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.")
17218
- if([,this.data=GQ({nullCount:0,type:new YX(this.schema.fields),children:this.schema.fields.map(t=>GQ({type:t.type,nullCount:0}))}),this._metadata=new Map]=t,!(this.data instanceof qQ))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=j1(this.schema,this.data.children,this.data.length)
17220
+ return new H1(...N1(o,r))}}var U1
17221
+ V1=Symbol.toStringTag,H1[V1]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[z1]=!0,t.isValid=e0(t0),t.get=e0(CQ.getVisitFn(UY.Struct)),t.set=n0(zJ.getVisitFn(UY.Struct)),t.indexOf=i0(a0.getVisitFn(UY.Struct)),"Table"))(H1.prototype),Object.defineProperty(H1,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===H1&&H1.isTable(t)}})
17222
+ const q1=Symbol.for("apache-arrow/RecordBatch")
17223
+ class j1{static isRecordBatch(t){return!0===(null==t?void 0:t[q1])}constructor(...t){switch(t.length){case 3:case 2:if([this.schema]=t,!(this.schema instanceof C0))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.")
17224
+ if([,this.data=ZQ({nullCount:0,type:new XX(this.schema.fields),children:this.schema.fields.map(t=>ZQ({type:t.type,nullCount:0}))}),this._metadata=new Map]=t,!(this.data instanceof jQ))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=W1(this.schema,this.data.children,this.data.length)
17219
17225
  break
17220
- case 1:{const[e]=t,{fields:n,children:i,length:o}=Object.keys(e).reduce((t,n,i)=>(t.children[i]=e[n],t.length=Math.max(t.length,e[n].length),t.fields[i]=C0.new({name:n,type:e[n].type,nullable:!0}),t),{length:0,fields:new Array,children:new Array}),r=new x0(n),s=GQ({type:new YX(n),length:o,children:i,nullCount:0});[this.schema,this.data]=j1(r,s.children,o),this._metadata=new Map
17221
- break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get metadata(){return this._metadata}get dictionaries(){return this._dictionaries||(this._dictionaries=W1(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 xQ.visit(this.data,t)}at(t){return this.get(TQ(t,this.numRows))}set(t,e){return VJ.visit(this.data,t,e)}indexOf(t,e){return s0.visit(this.data,t,e)}[Symbol.iterator](){return d0.visit(new m0([this.data]))}toArray(){return[...this]}concat(...t){return new z1(this.schema,[this,...t])}slice(t,e){const[n]=new m0([this.data]).slice(t,e).data
17222
- return new q1(this.schema,n,this._metadata)}getChild(t){var e
17223
- 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 m0([this.data.children[t]]):null}setChild(t,e){var n
17226
+ case 1:{const[e]=t,{fields:n,children:i,length:o}=Object.keys(e).reduce((t,n,i)=>(t.children[i]=e[n],t.length=Math.max(t.length,e[n].length),t.fields[i]=k0.new({name:n,type:e[n].type,nullable:!0}),t),{length:0,fields:new Array,children:new Array}),r=new C0(n),s=ZQ({type:new XX(n),length:o,children:i,nullCount:0});[this.schema,this.data]=W1(r,s.children,o),this._metadata=new Map
17227
+ break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get metadata(){return this._metadata}get dictionaries(){return this._dictionaries||(this._dictionaries=G1(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 CQ.visit(this.data,t)}at(t){return this.get(DQ(t,this.numRows))}set(t,e){return zJ.visit(this.data,t,e)}indexOf(t,e){return a0.visit(this.data,t,e)}[Symbol.iterator](){return h0.visit(new g0([this.data]))}toArray(){return[...this]}concat(...t){return new H1(this.schema,[this,...t])}slice(t,e){const[n]=new g0([this.data]).slice(t,e).data
17228
+ return new j1(this.schema,n,this._metadata)}getChild(t){var e
17229
+ 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 g0([this.data.children[t]]):null}setChild(t,e){var n
17224
17230
  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.data
17225
- if(t>-1&&t<this.numCols){e||(e=new m0([GQ({type:new TX,length:this.numRows})]))
17226
- const o=n.fields.slice(),r=i.children.slice(),s=o[t].clone({type:e.type});[o[t],r[t]]=[s,e.data[0]],n=new x0(o,new Map(this.schema.metadata)),i=GQ({type:new YX(o),length:i.length,children:r})}return new q1(n,i,this._metadata)}select(t){const e=this.schema.select(t),n=new YX(e.fields),i=[]
17231
+ if(t>-1&&t<this.numCols){e||(e=new g0([ZQ({type:new DX,length:this.numRows})]))
17232
+ const o=n.fields.slice(),r=i.children.slice(),s=o[t].clone({type:e.type});[o[t],r[t]]=[s,e.data[0]],n=new C0(o,new Map(this.schema.metadata)),i=ZQ({type:new XX(o),length:i.length,children:r})}return new j1(n,i,this._metadata)}select(t){const e=this.schema.select(t),n=new XX(e.fields),i=[]
17227
17233
  for(const e of t){const t=this.schema.fields.findIndex(t=>t.name===e)
17228
- ~t&&(i[t]=this.data.children[t])}return new q1(e,GQ({type:n,length:this.numRows,children:i}),this._metadata)}selectAt(t){const e=this.schema.selectAt(t),n=t.map(t=>this.data.children[t]).filter(Boolean),i=GQ({type:new YX(e.fields),length:this.numRows,children:n})
17229
- return new q1(e,i,this._metadata)}}function j1(t,e,n=e.reduce((t,e)=>Math.max(t,e.length),0)){var i
17234
+ ~t&&(i[t]=this.data.children[t])}return new j1(e,ZQ({type:n,length:this.numRows,children:i}),this._metadata)}selectAt(t){const e=this.schema.selectAt(t),n=t.map(t=>this.data.children[t]).filter(Boolean),i=ZQ({type:new XX(e.fields),length:this.numRows,children:n})
17235
+ return new j1(e,i,this._metadata)}}function W1(t,e,n=e.reduce((t,e)=>Math.max(t,e.length),0)){var i
17230
17236
  const o=[...t.fields],r=[...e],s=(n+63&-64)>>3
17231
17237
  for(const[a,l]of t.fields.entries()){const t=e[a]
17232
- t&&t.length===n||(o[a]=l.clone({nullable:!0}),r[a]=null!==(i=null==t?void 0:t._changeLengthAndBackfillNullBitmap(n))&&void 0!==i?i:GQ({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(s)}))}return[t.assign(o),GQ({type:new YX(o),length:n,children:r})]}function W1(t,e,n=new Map){var i,o
17238
+ t&&t.length===n||(o[a]=l.clone({nullable:!0}),r[a]=null!==(i=null==t?void 0:t._changeLengthAndBackfillNullBitmap(n))&&void 0!==i?i:ZQ({type:l.type,length:n,nullCount:n,nullBitmap:new Uint8Array(s)}))}return[t.assign(o),ZQ({type:new XX(o),length:n,children:r})]}function G1(t,e,n=new Map){var i,o
17233
17239
  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,r=t.length;++i<r;){const{type:r}=t[i],s=e[i]
17234
- for(const t of[s,...(null===(o=null==s?void 0:s.dictionary)||void 0===o?void 0:o.data)||[]])W1(r.children,null==t?void 0:t.children,n)
17235
- if(EX.isDictionary(r)){const{id:t}=r
17236
- if(n.has(t)){if(n.get(t)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else(null==s?void 0:s.dictionary)&&n.set(t,s.dictionary)}}return n}H1=Symbol.toStringTag,q1[H1]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[U1]=!0,"RecordBatch"))(q1.prototype),Object.defineProperty(q1,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===q1&&q1.isRecordBatch(t)}})
17237
- class G1 extends q1{constructor(t,e){const n=t.fields.map(t=>GQ({type:t.type}))
17238
- super(t,GQ({type:new YX(t.fields),length:0,nullCount:0,children:n}),e||new Map)}}const Z1=t=>`Expected ${zY[t]} Message in stream, but was null or length 0.`,K1=t=>`Header pointer of flatbuffer-encoded ${zY[t]} Message is null or length 0.`,Y1=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,X1=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`
17239
- class J1{constructor(t){this.source=t instanceof s1?t:new s1(t)}[Symbol.iterator](){return this}next(){let t
17240
- return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?e1:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e
17240
+ for(const t of[s,...(null===(o=null==s?void 0:s.dictionary)||void 0===o?void 0:o.data)||[]])G1(r.children,null==t?void 0:t.children,n)
17241
+ if(AX.isDictionary(r)){const{id:t}=r
17242
+ if(n.has(t)){if(n.get(t)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else(null==s?void 0:s.dictionary)&&n.set(t,s.dictionary)}}return n}U1=Symbol.toStringTag,j1[U1]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[q1]=!0,"RecordBatch"))(j1.prototype),Object.defineProperty(j1,Symbol.hasInstance,{value:function(t){return Function.prototype[Symbol.hasInstance].call(this,t)||this===j1&&j1.isRecordBatch(t)}})
17243
+ class Z1 extends j1{constructor(t,e){const n=t.fields.map(t=>ZQ({type:t.type}))
17244
+ super(t,ZQ({type:new XX(t.fields),length:0,nullCount:0,children:n}),e||new Map)}}const K1=t=>`Expected ${HY[t]} Message in stream, but was null or length 0.`,Y1=t=>`Header pointer of flatbuffer-encoded ${HY[t]} Message is null or length 0.`,X1=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,J1=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`
17245
+ class Q1{constructor(t){this.source=t instanceof a1?t:new a1(t)}[Symbol.iterator](){return this}next(){let t
17246
+ return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?n1:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e
17241
17247
  if((e=this.next()).done)return null
17242
- if(null!=t&&e.value.headerType!==t)throw new Error(Z1(t))
17248
+ if(null!=t&&e.value.headerType!==t)throw new Error(K1(t))
17243
17249
  return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0)
17244
- const e=LK(this.source.read(t))
17245
- if(e.byteLength<t)throw new Error(X1(t,e.byteLength))
17246
- return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){const e=zY.Schema,n=this.readMessage(e),i=null==n?void 0:n.header()
17247
- if(t&&!i)throw new Error(K1(e))
17248
- return i}readMetadataLength(){const t=this.source.read(e2),e=t&&new nY(t),n=(null==e?void 0:e.readInt32(0))||0
17250
+ const e=BK(this.source.read(t))
17251
+ if(e.byteLength<t)throw new Error(J1(t,e.byteLength))
17252
+ return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){const e=HY.Schema,n=this.readMessage(e),i=null==n?void 0:n.header()
17253
+ if(t&&!i)throw new Error(Y1(e))
17254
+ return i}readMetadataLength(){const t=this.source.read(n2),e=t&&new iY(t),n=(null==e?void 0:e.readInt32(0))||0
17249
17255
  return{done:0===n,value:n}}readMetadata(t){const e=this.source.read(t)
17250
- if(!e)return e1
17251
- if(e.byteLength<t)throw new Error(Y1(t,e.byteLength))
17252
- return{done:!1,value:H0.decode(e)}}}class Q1{constructor(t,e){this.source=t instanceof a1?t:$K(t)?new h1(t,e):new a1(t)}[Symbol.asyncIterator](){return this}next(){return e(this,void 0,void 0,function*(){let t
17253
- return(t=yield this.readMetadataLength()).done||-1===t.value&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?e1: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
17256
+ if(!e)return n1
17257
+ if(e.byteLength<t)throw new Error(X1(t,e.byteLength))
17258
+ return{done:!1,value:U0.decode(e)}}}class t2{constructor(t,e){this.source=t instanceof l1?t:_K(t)?new u1(t,e):new l1(t)}[Symbol.asyncIterator](){return this}next(){return e(this,void 0,void 0,function*(){let t
17259
+ return(t=yield this.readMetadataLength()).done||-1===t.value&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?n1: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
17254
17260
  if((e=yield this.next()).done)return null
17255
- if(null!=t&&e.value.headerType!==t)throw new Error(Z1(t))
17261
+ if(null!=t&&e.value.headerType!==t)throw new Error(K1(t))
17256
17262
  return e.value})}readMessageBody(t){return e(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0)
17257
- const e=LK(yield this.source.read(t))
17258
- if(e.byteLength<t)throw new Error(X1(t,e.byteLength))
17259
- 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=zY.Schema,n=yield this.readMessage(e),i=null==n?void 0:n.header()
17260
- if(t&&!i)throw new Error(K1(e))
17261
- return i})}readMetadataLength(){return e(this,void 0,void 0,function*(){const t=yield this.source.read(e2),e=t&&new nY(t),n=(null==e?void 0:e.readInt32(0))||0
17263
+ const e=BK(yield this.source.read(t))
17264
+ if(e.byteLength<t)throw new Error(J1(t,e.byteLength))
17265
+ 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=HY.Schema,n=yield this.readMessage(e),i=null==n?void 0:n.header()
17266
+ if(t&&!i)throw new Error(Y1(e))
17267
+ return i})}readMetadataLength(){return e(this,void 0,void 0,function*(){const t=yield this.source.read(n2),e=t&&new iY(t),n=(null==e?void 0:e.readInt32(0))||0
17262
17268
  return{done:0===n,value:n}})}readMetadata(t){return e(this,void 0,void 0,function*(){const e=yield this.source.read(t)
17263
- if(!e)return e1
17264
- if(e.byteLength<t)throw new Error(Y1(t,e.byteLength))
17265
- return{done:!1,value:H0.decode(e)}})}}class t2 extends J1{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof n1?t:new n1(t)}next(){const{_json:t}=this
17269
+ if(!e)return n1
17270
+ if(e.byteLength<t)throw new Error(X1(t,e.byteLength))
17271
+ return{done:!1,value:U0.decode(e)}})}}class e2 extends Q1{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof i1?t:new i1(t)}next(){const{_json:t}=this
17266
17272
  if(!this._schema){this._schema=!0
17267
- return{done:!1,value:H0.fromJSON(t.schema,zY.Schema)}}if(this._dictionaryIndex<t.dictionaries.length){const e=t.dictionaries[this._dictionaryIndex++]
17273
+ return{done:!1,value:U0.fromJSON(t.schema,HY.Schema)}}if(this._dictionaryIndex<t.dictionaries.length){const e=t.dictionaries[this._dictionaryIndex++]
17268
17274
  this._body=e.data.columns
17269
- return{done:!1,value:H0.fromJSON(e,zY.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const e=t.batches[this._batchIndex++]
17275
+ return{done:!1,value:U0.fromJSON(e,HY.DictionaryBatch)}}if(this._batchIndex<t.batches.length){const e=t.batches[this._batchIndex++]
17270
17276
  this._body=e.columns
17271
- return{done:!1,value:H0.fromJSON(e,zY.RecordBatch)}}return this._body=[],e1}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]||[],...n.VIEWS&&[n.VIEWS]||[],...n.VARIADIC_DATA_BUFFERS||[],...t(n.children)],[])}(this._body)}readMessage(t){let e
17277
+ return{done:!1,value:U0.fromJSON(e,HY.RecordBatch)}}return this._body=[],n1}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]||[],...n.VIEWS&&[n.VIEWS]||[],...n.VARIADIC_DATA_BUFFERS||[],...t(n.children)],[])}(this._body)}readMessage(t){let e
17272
17278
  if((e=this.next()).done)return null
17273
- if(null!=t&&e.value.headerType!==t)throw new Error(Z1(t))
17274
- return e.value}readSchema(){const t=zY.Schema,e=this.readMessage(t),n=null==e?void 0:e.header()
17275
- if(!e||!n)throw new Error(K1(t))
17276
- return n}}const e2=4,n2="ARROW1",i2=new Uint8Array(6)
17277
- for(let t=0;t<6;t+=1)i2[t]=n2.codePointAt(t)
17278
- function o2(t,e=0){for(let n=-1,i=i2.length;++n<i;)if(i2[n]!==t[e+n])return!1
17279
- return!0}const r2=i2.length,s2=r2+e2,a2=2*r2+e2
17280
- const l2={[rY.LZ4_FRAME]:new class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(t){const e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e)
17281
- return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)&&this._hasValidVersion(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.LZ4_FRAME_MAGIC.every((e,n)=>t[n]===e)}_hasValidVersion(t){return 1===(192&t[4])>>6}},[rY.ZSTD]:new class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(t){const e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e)
17279
+ if(null!=t&&e.value.headerType!==t)throw new Error(K1(t))
17280
+ return e.value}readSchema(){const t=HY.Schema,e=this.readMessage(t),n=null==e?void 0:e.header()
17281
+ if(!e||!n)throw new Error(Y1(t))
17282
+ return n}}const n2=4,i2="ARROW1",o2=new Uint8Array(6)
17283
+ for(let t=0;t<6;t+=1)o2[t]=i2.codePointAt(t)
17284
+ function r2(t,e=0){for(let n=-1,i=o2.length;++n<i;)if(o2[n]!==t[e+n])return!1
17285
+ return!0}const s2=o2.length,a2=s2+n2,l2=2*s2+n2
17286
+ const c2={[sY.LZ4_FRAME]:new class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(t){const e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e)
17287
+ return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)&&this._hasValidVersion(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.LZ4_FRAME_MAGIC.every((e,n)=>t[n]===e)}_hasValidVersion(t){return 1===(192&t[4])>>6}},[sY.ZSTD]:new class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(t){const e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e)
17282
17288
  return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.ZSTD_MAGIC.every((e,n)=>t[n]===e)}}}
17283
- const c2=new class{constructor(){this.registry={}}set(t,e){if((null==e?void 0:e.encode)&&"function"==typeof e.encode&&!l2[t].isValidCodecEncode(e))throw new Error(`Encoder for ${rY[t]} is not valid.`)
17289
+ const d2=new class{constructor(){this.registry={}}set(t,e){if((null==e?void 0:e.encode)&&"function"==typeof e.encode&&!c2[t].isValidCodecEncode(e))throw new Error(`Encoder for ${sY[t]} is not valid.`)
17284
17290
  this.registry[t]=e}get(t){var e
17285
17291
  return(null===(e=this.registry)||void 0===e?void 0:e[t])||null}}
17286
- class d2 extends i1{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)
17287
- return wK(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 zK.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return zK.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 d2?t:kK(t)?function(t){return new h2(new w2(t))}(t):$K(t)?function(t){return e(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new h1(t,e)
17288
- return e>=a2&&o2(yield n.readAt(0,r2+7&-8))?new f2(new y2(n)):new u2(new v2(n))})}(t):wK(t)?(()=>e(this,void 0,void 0,function*(){return yield d2.from(yield t)}))():_K(t)||MK(t)||EK(t)||CK(t)?function(t){return e(this,void 0,void 0,function*(){const e=yield t.peek(r2+7&-8)
17289
- return e&&e.byteLength>=4?o2(e)?new p2(new b2(yield t.read())):new u2(new v2(t)):new u2(new v2(function(){return o(this,arguments,function*(){})}()))})}(new a1(t)):function(t){const e=t.peek(r2+7&-8)
17290
- return e&&e.byteLength>=4?o2(e)?new p2(new b2(t.read())):new h2(new g2(t)):new h2(new g2(function*(){}()))}(new s1(t))}static readAll(t){return t instanceof d2?t.isSync()?C2(t):k2(t):kK(t)||ArrayBuffer.isView(t)||xK(t)||SK(t)?C2(t):k2(t)}}class h2 extends d2{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return o(this,arguments,function*(){yield i(yield*r(s(this[Symbol.iterator]())))})}}class u2 extends d2{constructor(t){super(t),this._impl=t}readAll(){return e(this,void 0,void 0,function*(){var t,e,n,i
17292
+ class h2 extends o1{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)
17293
+ return xK(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 HK.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return HK.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 h2?t:SK(t)?function(t){return new u2(new x2(t))}(t):_K(t)?function(t){return e(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new u1(t,e)
17294
+ return e>=l2&&r2(yield n.readAt(0,s2+7&-8))?new m2(new w2(n)):new p2(new b2(n))})}(t):xK(t)?(()=>e(this,void 0,void 0,function*(){return yield h2.from(yield t)}))():IK(t)||EK(t)||AK(t)||kK(t)?function(t){return e(this,void 0,void 0,function*(){const e=yield t.peek(s2+7&-8)
17295
+ return e&&e.byteLength>=4?r2(e)?new f2(new y2(yield t.read())):new p2(new b2(t)):new p2(new b2(function(){return o(this,arguments,function*(){})}()))})}(new l1(t)):function(t){const e=t.peek(s2+7&-8)
17296
+ return e&&e.byteLength>=4?r2(e)?new f2(new y2(t.read())):new u2(new v2(t)):new u2(new v2(function*(){}()))}(new a1(t))}static readAll(t){return t instanceof h2?t.isSync()?k2(t):S2(t):SK(t)||ArrayBuffer.isView(t)||CK(t)||$K(t)?k2(t):S2(t)}}class u2 extends h2{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return o(this,arguments,function*(){yield i(yield*r(s(this[Symbol.iterator]())))})}}class p2 extends h2{constructor(t){super(t),this._impl=t}readAll(){return e(this,void 0,void 0,function*(){var t,e,n,i
17291
17297
  const o=new Array
17292
17298
  try{for(var r,a=!0,l=s(this);!(t=(r=yield l.next()).done);a=!0){i=r.value,a=!1
17293
17299
  const t=i
17294
- o.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 o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class p2 extends h2{constructor(t){super(t),this._impl=t}}class f2 extends u2{constructor(t){super(t),this._impl=t}}class m2{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,n){let i
17295
- if(null!=t.compression){const n=c2.get(t.compression.type)
17300
+ o.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 o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class f2 extends u2{constructor(t){super(t),this._impl=t}}class m2 extends p2{constructor(t){super(t),this._impl=t}}class g2{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,n){let i
17301
+ if(null!=t.compression){const n=d2.get(t.compression.type)
17296
17302
  if(!(null==n?void 0:n.decode)||"function"!=typeof n.decode)throw new Error("Record batch is compressed but codec not found")
17297
17303
  {const{decommpressedBody:o,buffers:r}=this._decompressBuffers(t,e,n)
17298
- i=this._loadCompressedVectors(t,o,this.schema.fields),t=new U0(t.length,t.nodes,r,null)}}else i=this._loadVectors(t,e,this.schema.fields)
17299
- const o=GQ({type:new YX(this.schema.fields),length:t.length,children:i})
17300
- return new q1(this.schema,o,n)}_loadDictionaryBatch(t,e){const{id:n,isDelta:i}=t,{dictionaries:o,schema:r}=this,s=o.get(n),a=r.dictionaries.get(n)
17304
+ i=this._loadCompressedVectors(t,o,this.schema.fields),t=new q0(t.length,t.nodes,r,null)}}else i=this._loadVectors(t,e,this.schema.fields)
17305
+ const o=ZQ({type:new XX(this.schema.fields),length:t.length,children:i})
17306
+ return new j1(this.schema,o,n)}_loadDictionaryBatch(t,e){const{id:n,isDelta:i}=t,{dictionaries:o,schema:r}=this,s=o.get(n),a=r.dictionaries.get(n)
17301
17307
  let l
17302
- if(null!=t.data.compression){const o=c2.get(t.data.compression.type)
17308
+ if(null!=t.data.compression){const o=d2.get(t.data.compression.type)
17303
17309
  if(!(null==o?void 0:o.decode)||"function"!=typeof o.decode)throw new Error("Dictionary batch is compressed but codec not found")
17304
17310
  {const{decommpressedBody:r,buffers:s}=this._decompressBuffers(t.data,e,o)
17305
- l=this._loadCompressedVectors(t.data,r,[a]),t=new q0(new U0(t.data.length,t.data.nodes,s,null,t.data.variadicBufferCounts),n,i)}}else l=this._loadVectors(t.data,e,[a])
17306
- return(s&&i?s.concat(new m0(l)):new m0(l)).memoize()}_loadVectors(t,e,n){return new b1(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion,t.variadicBufferCounts).visitMany(n)}_loadCompressedVectors(t,e,n){return new C1(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion,t.variadicBufferCounts).visitMany(n)}_decompressBuffers(t,e,n){const i=[],o=[]
17311
+ l=this._loadCompressedVectors(t.data,r,[a]),t=new j0(new q0(t.data.length,t.data.nodes,s,null,t.data.variadicBufferCounts),n,i)}}else l=this._loadVectors(t.data,e,[a])
17312
+ return(s&&i?s.concat(new g0(l)):new g0(l)).memoize()}_loadVectors(t,e,n){return new y1(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion,t.variadicBufferCounts).visitMany(n)}_loadCompressedVectors(t,e,n){return new k1(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion,t.variadicBufferCounts).visitMany(n)}_decompressBuffers(t,e,n){const i=[],o=[]
17307
17313
  let r=0
17308
- for(const{offset:s,length:a}of t.buffers){if(0===a){i.push(new Uint8Array(0)),o.push(new j0(r,0))
17309
- continue}const t=new nY(e.subarray(s,s+a)),l=jY(t.readInt64(0)),c=t.bytes().subarray(8),d=-1===l?c:n.decode(c)
17314
+ for(const{offset:s,length:a}of t.buffers){if(0===a){i.push(new Uint8Array(0)),o.push(new W0(r,0))
17315
+ continue}const t=new iY(e.subarray(s,s+a)),l=WY(t.readInt64(0)),c=t.bytes().subarray(8),d=-1===l?c:n.decode(c)
17310
17316
  i.push(d)
17311
- r+=(r+7&-8)-r,o.push(new j0(r,d.length)),r+=d.length}return{decommpressedBody:i,buffers:o}}}class g2 extends m2{constructor(t,e){super(e),this._reader=kK(t)?new t2(this._handle=t):new J1(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=x2(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):e1}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):e1}next(){if(this.closed)return e1
17317
+ r+=(r+7&-8)-r,o.push(new W0(r,d.length)),r+=d.length}return{decommpressedBody:i,buffers:o}}}class v2 extends g2{constructor(t,e){super(e),this._reader=SK(t)?new e2(this._handle=t):new Q1(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=C2(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):n1}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):n1}next(){if(this.closed)return n1
17312
17318
  let t
17313
17319
  const{_reader:e}=this
17314
17320
  for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header())
@@ -17316,7 +17322,7 @@ else{if(t.isRecordBatch()){this._recordBatchIndex++
17316
17322
  const n=t.header(),i=e.readMessageBody(t.bodyLength)
17317
17323
  return{done:!1,value:this._loadRecordBatch(n,i,t.metadata)}}if(t.isDictionaryBatch()){this._dictionaryIndex++
17318
17324
  const n=t.header(),i=e.readMessageBody(t.bodyLength),o=this._loadDictionaryBatch(n,i)
17319
- this.dictionaries.set(n.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new G1(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class v2 extends m2{constructor(t,e){super(e),this._reader=new Q1(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=x2(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):e1})}return(t){return e(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):e1})}next(){return e(this,void 0,void 0,function*(){if(this.closed)return e1
17325
+ this.dictionaries.set(n.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Z1(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class b2 extends g2{constructor(t,e){super(e),this._reader=new t2(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=C2(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):n1})}return(t){return e(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):n1})}next(){return e(this,void 0,void 0,function*(){if(this.closed)return n1
17320
17326
  let t
17321
17327
  const{_reader:e}=this
17322
17328
  for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header())
@@ -17324,40 +17330,40 @@ else{if(t.isRecordBatch()){this._recordBatchIndex++
17324
17330
  const n=t.header(),i=yield e.readMessageBody(t.bodyLength)
17325
17331
  return{done:!1,value:this._loadRecordBatch(n,i,t.metadata)}}if(t.isDictionaryBatch()){this._dictionaryIndex++
17326
17332
  const n=t.header(),i=yield e.readMessageBody(t.bodyLength),o=this._loadDictionaryBatch(n,i)
17327
- this.dictionaries.set(n.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new G1(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return e(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}}class b2 extends g2{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 d1?t:new d1(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema
17333
+ this.dictionaries.set(n.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Z1(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return e(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}}class y2 extends v2{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 h1?t:new h1(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema
17328
17334
  for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e
17329
17335
  if(this.closed)return null
17330
17336
  this._footer||this.open()
17331
17337
  const n=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t)
17332
- if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(zY.RecordBatch)
17338
+ if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(HY.RecordBatch)
17333
17339
  if(null==t?void 0:t.isRecordBatch()){const e=t.header(),n=this._reader.readMessageBody(t.bodyLength)
17334
17340
  return this._loadRecordBatch(e,n,t.metadata)}}return null}_readDictionaryBatch(t){var e
17335
17341
  const n=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t)
17336
- if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(zY.DictionaryBatch)
17342
+ if(n&&this._handle.seek(n.offset)){const t=this._reader.readMessage(HY.DictionaryBatch)
17337
17343
  if(null==t?void 0:t.isDictionaryBatch()){const e=t.header(),n=this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,n)
17338
- this.dictionaries.set(e.id,i)}}}_readFooter(){const{_handle:t}=this,e=t.size-s2,n=t.readInt32(e),i=t.readAt(e-n,n)
17339
- return I0.decode(i)}_readNextMessageAndValidate(t){var e
17344
+ this.dictionaries.set(e.id,i)}}}_readFooter(){const{_handle:t}=this,e=t.size-a2,n=t.readInt32(e),i=t.readAt(e-n,n)
17345
+ return M0.decode(i)}_readNextMessageAndValidate(t){var e
17340
17346
  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)
17341
- if(n&&this._handle.seek(n.offset))return this._reader.readMessage(t)}return null}}class y2 extends v2{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
17342
- super(t instanceof h1?t:new h1(t,n),i)}isFile(){return!0}isAsync(){return!0}open(t){const n=Object.create(null,{open:{get:()=>super.open}})
17347
+ if(n&&this._handle.seek(n.offset))return this._reader.readMessage(t)}return null}}class w2 extends b2{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
17348
+ super(t instanceof u1?t:new u1(t,n),i)}isFile(){return!0}isAsync(){return!0}open(t){const n=Object.create(null,{open:{get:()=>super.open}})
17343
17349
  return e(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema
17344
17350
  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
17345
17351
  if(this.closed)return null
17346
17352
  this._footer||(yield this.open())
17347
17353
  const n=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t)
17348
- if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(zY.RecordBatch)
17354
+ if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(HY.RecordBatch)
17349
17355
  if(null==t?void 0:t.isRecordBatch()){const e=t.header(),n=yield this._reader.readMessageBody(t.bodyLength)
17350
17356
  return this._loadRecordBatch(e,n,t.metadata)}}return null})}_readDictionaryBatch(t){return e(this,void 0,void 0,function*(){var e
17351
17357
  const n=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t)
17352
- if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(zY.DictionaryBatch)
17358
+ if(n&&(yield this._handle.seek(n.offset))){const t=yield this._reader.readMessage(HY.DictionaryBatch)
17353
17359
  if(null==t?void 0:t.isDictionaryBatch()){const e=t.header(),n=yield this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,n)
17354
17360
  this.dictionaries.set(e.id,i)}}})}_readFooter(){return e(this,void 0,void 0,function*(){const{_handle:t}=this
17355
17361
  t._pending&&(yield t._pending)
17356
- const e=t.size-s2,n=yield t.readInt32(e),i=yield t.readAt(e-n,n)
17357
- return I0.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)
17358
- if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null})}}class w2 extends g2{constructor(t,e){super(t,e)}_loadVectors(t,e,n){return new y1(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion,t.variadicBufferCounts).visitMany(n)}}function x2(t,e){return e&&"boolean"==typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function*C2(t){const e=d2.from(t)
17359
- try{if(!e.open({autoDestroy:!1}).closed)do{yield e}while(!e.reset().open().closed)}finally{e.cancel()}}function k2(t){return o(this,arguments,function*(){const e=yield i(d2.from(t))
17360
- 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 S2=Q`
17362
+ const e=t.size-a2,n=yield t.readInt32(e),i=yield t.readAt(e-n,n)
17363
+ return M0.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)
17364
+ if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null})}}class x2 extends v2{constructor(t,e){super(t,e)}_loadVectors(t,e,n){return new w1(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion,t.variadicBufferCounts).visitMany(n)}}function C2(t,e){return e&&"boolean"==typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function*k2(t){const e=h2.from(t)
17365
+ try{if(!e.open({autoDestroy:!1}).closed)do{yield e}while(!e.reset().open().closed)}finally{e.cancel()}}function S2(t){return o(this,arguments,function*(){const e=yield i(h2.from(t))
17366
+ 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 $2=Q`
17361
17367
  <div class="wafer-map-container">
17362
17368
  <svg class="svg-root">
17363
17369
  <g ${Vt("zoomContainer")} transform=${t=>t.transform.toString()}>
@@ -17388,7 +17394,7 @@ try{if(!(yield i(e.open({autoDestroy:!1}))).closed)do{yield yield i(e)}while(!(y
17388
17394
  />
17389
17395
  </svg>
17390
17396
  </div>
17391
- `,$2=It`
17397
+ `,_2=It`
17392
17398
  ${Uo("inline-block")}
17393
17399
 
17394
17400
  :host {
@@ -17478,67 +17484,67 @@ try{if(!(yield i(e.open({autoDestroy:!1}))).closed)do{yield yield i(e)}while(!(y
17478
17484
  outline-width: 0px;
17479
17485
  }
17480
17486
  `
17481
- function _2(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function I2(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function M2(t){let e,n,i
17487
+ function I2(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function M2(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function E2(t){let e,n,i
17482
17488
  function o(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r
17483
17489
  do{const e=o+r>>>1
17484
- n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=_2,n=(e,n)=>_2(t(e),n),i=(e,n)=>t(e)-n):(e=t===_2||t===I2?t:E2,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1)
17490
+ n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=I2,n=(e,n)=>I2(t(e),n),i=(e,n)=>t(e)-n):(e=t===I2||t===M2?t:A2,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1)
17485
17491
  return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r
17486
17492
  do{const e=o+r>>>1
17487
- n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function E2(){return 0}function A2(t){return null===t?NaN:+t}const T2=M2(_2).right
17488
- M2(A2).center
17489
- class D2 extends Map{constructor(t,e=R2){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(O2(this,t))}has(t){return super.has(O2(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
17493
+ n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function A2(){return 0}function T2(t){return null===t?NaN:+t}const D2=E2(I2).right
17494
+ E2(T2).center
17495
+ class O2 extends Map{constructor(t,e=F2){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(R2(this,t))}has(t){return super.has(R2(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
17490
17496
  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)
17491
17497
  t.has(i)&&(n=t.get(i),t.delete(i))
17492
- return n}(this,t))}}function O2({_intern:t,_key:e},n){const i=e(n)
17493
- return t.has(i)?t.get(i):n}function R2(t){return null!==t&&"object"==typeof t?t.valueOf():t}const F2=Math.sqrt(50),L2=Math.sqrt(10),B2=Math.sqrt(2)
17494
- function N2(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=F2?10:r>=L2?5:r>=B2?2:1
17498
+ return n}(this,t))}}function R2({_intern:t,_key:e},n){const i=e(n)
17499
+ return t.has(i)?t.get(i):n}function F2(t){return null!==t&&"object"==typeof t?t.valueOf():t}const L2=Math.sqrt(50),B2=Math.sqrt(10),N2=Math.sqrt(2)
17500
+ function P2(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=L2?10:r>=B2?5:r>=N2?2:1
17495
17501
  let a,l,c
17496
- return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?N2(t,e,2*n):[a,l,c]}function P2(t,e,n){return N2(t=+t,e=+e,n=+n)[2]}function V2(t,e,n=A2){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
17502
+ return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?P2(t,e,2*n):[a,l,c]}function V2(t,e,n){return P2(t=+t,e=+e,n=+n)[2]}function z2(t,e,n=T2){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
17497
17503
  if(e>=1)return+n(t[i-1],i-1,t)
17498
17504
  var i,o=(i-1)*e,r=Math.floor(o),s=+n(t[r],r,t)
17499
- return s+(+n(t[r+1],r+1,t)-s)*(o-r)}}function z2(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
17505
+ return s+(+n(t[r+1],r+1,t)-s)*(o-r)}}function H2(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
17500
17506
  for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(o);++i<o;)r[i]=t+i*n
17501
- return r}function H2(t,e){switch(arguments.length){case 0:break
17507
+ return r}function U2(t,e){switch(arguments.length){case 0:break
17502
17508
  case 1:this.range(t)
17503
17509
  break
17504
- default:this.range(e).domain(t)}return this}const U2=Symbol("implicit")
17505
- function q2(){var t=new D2,e=[],n=[],i=U2
17510
+ default:this.range(e).domain(t)}return this}const q2=Symbol("implicit")
17511
+ function j2(){var t=new O2,e=[],n=[],i=q2
17506
17512
  function o(o){let r=t.get(o)
17507
- if(void 0===r){if(i!==U2)return i
17513
+ if(void 0===r){if(i!==q2)return i
17508
17514
  t.set(o,r=e.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice()
17509
- e=[],t=new D2
17515
+ e=[],t=new O2
17510
17516
  for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
17511
- return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return q2(e,n).unknown(i)},H2.apply(o,arguments),o}function j2(){var t,e,n=q2().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
17517
+ return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return j2(e,n).unknown(i)},U2.apply(o,arguments),o}function W2(){var t,e,n=j2().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
17512
17518
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
17513
17519
  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))
17514
- var f=z2(n).map(function(e){return u+t*e})
17515
- return o(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?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,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 j2(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},H2.apply(h(),arguments)}function W2(t){return+t}var G2=[0,1]
17516
- function Z2(t){return t}function K2(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
17517
- var n}function Y2(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1]
17518
- return o<i?(i=K2(o,i),r=n(s,r)):(i=K2(i,o),r=n(r,s)),function(t){return r(i(t))}}function X2(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1
17519
- for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=K2(t[s],t[s+1]),r[s]=n(e[s],e[s+1])
17520
- return function(e){var n=T2(t,e,1,i)-1
17521
- return r[n](o[n](e))}}function J2(){var t,e,n,i,o,r,s=G2,a=G2,l=KG,c=Z2
17520
+ var f=H2(n).map(function(e){return u+t*e})
17521
+ return o(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?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,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 W2(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},U2.apply(h(),arguments)}function G2(t){return+t}var Z2=[0,1]
17522
+ function K2(t){return t}function Y2(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
17523
+ var n}function X2(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1]
17524
+ return o<i?(i=Y2(o,i),r=n(s,r)):(i=Y2(i,o),r=n(r,s)),function(t){return r(i(t))}}function J2(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1
17525
+ for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=Y2(t[s],t[s+1]),r[s]=n(e[s],e[s+1])
17526
+ return function(e){var n=D2(t,e,1,i)-1
17527
+ return r[n](o[n](e))}}function Q2(){var t,e,n,i,o,r,s=Z2,a=Z2,l=YG,c=K2
17522
17528
  function d(){var t,e,n,l=Math.min(s.length,a.length)
17523
- return c!==Z2&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?X2:Y2,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),qG)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,W2),d()):s.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=YG,d()},h.clamp=function(t){return arguments.length?(c=!!t||Z2,d()):c!==Z2},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 Q2(t,e){if(!isFinite(t)||0===t)return null
17529
+ return c!==K2&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?J2:X2,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),jG)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,G2),d()):s.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=XG,d()},h.clamp=function(t){return arguments.length?(c=!!t||K2,d()):c!==K2},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 t3(t,e){if(!isFinite(t)||0===t)return null
17524
17530
  var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n)
17525
- return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function t3(t){return(t=Q2(Math.abs(t)))?t[1]:NaN}var e3,n3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
17526
- function i3(t){if(!(e=n3.exec(t)))throw new Error("invalid format: "+t)
17531
+ return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function e3(t){return(t=t3(Math.abs(t)))?t[1]:NaN}var n3,i3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
17532
+ function o3(t){if(!(e=i3.exec(t)))throw new Error("invalid format: "+t)
17527
17533
  var e
17528
- return new o3({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 o3(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 r3(t,e){var n=Q2(t,e)
17534
+ return new r3({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 r3(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 s3(t,e){var n=t3(t,e)
17529
17535
  if(!n)return t+""
17530
17536
  var i=n[0],o=n[1]
17531
- return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}i3.prototype=o3.prototype,o3.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}
17532
- var s3={"%":(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)=>r3(100*t,e),r:r3,s:function(t,e){var n=Q2(t,e)
17533
- if(!n)return e3=void 0,t.toPrecision(e)
17534
- var i=n[0],o=n[1],r=o-(e3=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
17535
- return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+Q2(t,Math.max(0,e+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
17536
- function a3(t){return t}var l3,c3,d3,h3=Array.prototype.map,u3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
17537
- function p3(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?a3:(e=h3.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,r=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[s=(s+1)%e.length]
17538
- return r.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?a3:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(h3.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+""
17539
- function h(t,e){var n=(t=i3(t)).fill,h=t.align,u=t.sign,p=t.symbol,f=t.zero,m=t.width,g=t.comma,v=t.precision,b=t.trim,y=t.type
17540
- "n"===y?(g=!0,y="g"):s3[y]||(void 0===v&&(v=12),b=!0,y="g"),(f||"0"===n&&"="===h)&&(f=!0,n="0",h="=")
17541
- var w=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),x=("$"===p?r:/[%p]/.test(y)?l:"")+(e&&void 0!==e.suffix?e.suffix:""),C=s3[y],k=/[defgprs%]/.test(y)
17537
+ return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}o3.prototype=r3.prototype,r3.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}
17538
+ var a3={"%":(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)=>s3(100*t,e),r:s3,s:function(t,e){var n=t3(t,e)
17539
+ if(!n)return n3=void 0,t.toPrecision(e)
17540
+ var i=n[0],o=n[1],r=o-(n3=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
17541
+ return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+t3(t,Math.max(0,e+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
17542
+ function l3(t){return t}var c3,d3,h3,u3=Array.prototype.map,p3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
17543
+ function f3(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?l3:(e=u3.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,r=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[s=(s+1)%e.length]
17544
+ return r.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?l3:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(u3.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+""
17545
+ function h(t,e){var n=(t=o3(t)).fill,h=t.align,u=t.sign,p=t.symbol,f=t.zero,m=t.width,g=t.comma,v=t.precision,b=t.trim,y=t.type
17546
+ "n"===y?(g=!0,y="g"):a3[y]||(void 0===v&&(v=12),b=!0,y="g"),(f||"0"===n&&"="===h)&&(f=!0,n="0",h="=")
17547
+ var w=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),x=("$"===p?r:/[%p]/.test(y)?l:"")+(e&&void 0!==e.suffix?e.suffix:""),C=a3[y],k=/[defgprs%]/.test(y)
17542
17548
  function S(t){var e,o,r,l=w,p=x
17543
17549
  if("c"===y)p=C(t)+p,t=""
17544
17550
  else{var S=(t=+t)<0||1/t<0
@@ -17547,7 +17553,7 @@ break
17547
17553
  case"0":0===o&&(o=i),e=i
17548
17554
  break
17549
17555
  default:if(!+t[i])break t
17550
- o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==u&&(S=!1),l=(S?"("===u?u:c:"-"===u||"("===u?"":u)+l,p=("s"!==y||isNaN(t)||void 0===e3?"":u3[8+e3/3])+p+(S&&"("===u?")":""),k)for(e=-1,o=t.length;++e<o;)if(48>(r=t.charCodeAt(e))||r>57){p=(46===r?s+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e)
17556
+ o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==u&&(S=!1),l=(S?"("===u?u:c:"-"===u||"("===u?"":u)+l,p=("s"!==y||isNaN(t)||void 0===n3?"":p3[8+n3/3])+p+(S&&"("===u?")":""),k)for(e=-1,o=t.length;++e<o;)if(48>(r=t.charCodeAt(e))||r>57){p=(46===r?s+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e)
17551
17557
  break}}g&&!f&&(t=i(t,1/0))
17552
17558
  var $=l.length+t.length+p.length,_=$<m?new Array(m-$+1).join(n):""
17553
17559
  switch(g&&f&&(t=i(_+t,_.length?m-p.length:1/0),_=""),h){case"<":t=l+t+p+_
@@ -17556,19 +17562,19 @@ case"=":t=l+_+t+p
17556
17562
  break
17557
17563
  case"^":t=_.slice(0,$=_.length>>1)+l+t+p+_.slice($)
17558
17564
  break
17559
- default:t=_+l+t+p}return a(t)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(t3(e)/3))),i=Math.pow(10,-n),o=h(((t=i3(t)).type="f",t),{suffix:u3[8+n/3]})
17560
- return function(t){return o(i*t)}}}}function f3(t,e,n,i){var o,r=function(t,e,n){n=+n
17561
- const i=(e=+e)<(t=+t),o=i?P2(e,t,n):P2(t,e,n)
17565
+ default:t=_+l+t+p}return a(t)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:h,formatPrefix:function(t,e){var n=3*Math.max(-8,Math.min(8,Math.floor(e3(e)/3))),i=Math.pow(10,-n),o=h(((t=o3(t)).type="f",t),{suffix:p3[8+n/3]})
17566
+ return function(t){return o(i*t)}}}}function m3(t,e,n,i){var o,r=function(t,e,n){n=+n
17567
+ const i=(e=+e)<(t=+t),o=i?V2(e,t,n):V2(t,e,n)
17562
17568
  return(i?-1:1)*(o<0?1/-o:o)}(t,e,n)
17563
- switch((i=i3(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e))
17564
- return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(t3(e)/3)))-t3(Math.abs(t)))}(r,s))||(i.precision=o),d3(i,s)
17565
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,t3(e)-t3(t))+1}(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
17569
+ switch((i=o3(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e))
17570
+ return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(e3(e)/3)))-e3(Math.abs(t)))}(r,s))||(i.precision=o),h3(i,s)
17571
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,e3(e)-e3(t))+1}(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
17566
17572
  break
17567
- case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-t3(Math.abs(t)))}(r))||(i.precision=o-2*("%"===i.type))}return c3(i)}function m3(t){var e=t.domain
17573
+ case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-e3(Math.abs(t)))}(r))||(i.precision=o-2*("%"===i.type))}return d3(i)}function g3(t){var e=t.domain
17568
17574
  return t.ticks=function(t){var n=e()
17569
17575
  return function(t,e,n){if(!((n=+n)>0))return[]
17570
17576
  if((t=+t)===(e=+e))return[t]
17571
- const i=e<t,[o,r,s]=i?N2(e,t,n):N2(t,e,n)
17577
+ const i=e<t,[o,r,s]=i?P2(e,t,n):P2(t,e,n)
17572
17578
  if(!(r>=o))return[]
17573
17579
  const a=r-o+1,l=new Array(a)
17574
17580
  if(i)if(s<0)for(let t=0;t<a;++t)l[t]=(r-t)/-s
@@ -17576,23 +17582,23 @@ else for(let t=0;t<a;++t)l[t]=(r-t)*s
17576
17582
  else if(s<0)for(let t=0;t<a;++t)l[t]=(o+t)/-s
17577
17583
  else for(let t=0;t<a;++t)l[t]=(o+t)*s
17578
17584
  return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
17579
- return f3(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
17585
+ return m3(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
17580
17586
  var i,o,r=e(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
17581
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=P2(l,c,n))===i)return r[s]=l,r[a]=c,e(r)
17587
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=V2(l,c,n))===i)return r[s]=l,r[a]=c,e(r)
17582
17588
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
17583
17589
  else{if(!(o<0))break
17584
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}function g3(){var t=J2()(Z2,Z2)
17585
- return t.copy=function(){return e=t,g3().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
17586
- var e},H2.apply(t,arguments),m3(t)}function v3(){var t,e=[],n=[],i=[]
17590
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}function v3(){var t=Q2()(K2,K2)
17591
+ return t.copy=function(){return e=t,v3().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
17592
+ var e},U2.apply(t,arguments),g3(t)}function b3(){var t,e=[],n=[],i=[]
17587
17593
  function o(){var t=0,o=Math.max(1,n.length)
17588
- for(i=new Array(o-1);++t<o;)i[t-1]=V2(e,t/o)
17589
- return r}function r(e){return null==e||isNaN(e=+e)?t:n[T2(i,e)]}return r.invertExtent=function(t){var o=n.indexOf(t)
17594
+ for(i=new Array(o-1);++t<o;)i[t-1]=z2(e,t/o)
17595
+ return r}function r(e){return null==e||isNaN(e=+e)?t:n[D2(i,e)]}return r.invertExtent=function(t){var o=n.indexOf(t)
17590
17596
  return o<0?[NaN,NaN]:[o>0?i[o-1]:e[0],o<i.length?i[o]:e[e.length-1]]},r.domain=function(t){if(!arguments.length)return e.slice()
17591
17597
  e=[]
17592
17598
  for(let n of t)null==n||isNaN(n=+n)||e.push(n)
17593
- return e.sort(_2),o()},r.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.quantiles=function(){return i.slice()},r.copy=function(){return v3().domain(e).range(n).unknown(t)},H2.apply(r,arguments)}l3=p3({thousands:",",grouping:[3],currency:["$",""]}),c3=l3.format,d3=l3.formatPrefix
17594
- const b3="bottom-left",y3="bottom-right",w3="top-left",x3="top",C3="show",k3="hide",S3="linear",$3="ordinal"
17595
- let _3=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}
17599
+ return e.sort(I2),o()},r.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.quantiles=function(){return i.slice()},r.copy=function(){return b3().domain(e).range(n).unknown(t)},U2.apply(r,arguments)}c3=f3({thousands:",",grouping:[3],currency:["$",""]}),d3=c3.format,h3=c3.formatPrefix
17600
+ const y3="bottom-left",w3="bottom-right",x3="top-left",C3="top",k3="show",S3="hide",$3="linear",_3="ordinal"
17601
+ let I3=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}
17596
17602
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
17597
17603
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
17598
17604
  this._radius=o/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
@@ -17602,22 +17608,22 @@ this._dieDimensions={width:isNaN(i)?0:i,height:isNaN(o)?0:o}}gridDimensionsValid
17602
17608
  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}
17603
17609
  const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
17604
17610
  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)
17605
- 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=j2().domain(z2(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
17606
- return t===b3||t===w3?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=v3().domain([0,n])
17607
- return t===b3||t===w3?i.range(z2(e.origin.x,e.origin.x+e.cols)):i.range(z2(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=j2().domain(z2(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
17608
- return t===b3||t===y3?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=v3().domain([0,n])
17609
- return t===b3||t===y3?i.range(z2(e.origin.y,e.origin.y+e.rows).reverse()):i.range(z2(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}}}
17610
- class I3{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)
17611
+ 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=W2().domain(H2(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
17612
+ return t===y3||t===x3?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=b3().domain([0,n])
17613
+ return t===y3||t===x3?i.range(H2(e.origin.x,e.origin.x+e.cols)):i.range(H2(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=W2().domain(H2(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
17614
+ return t===y3||t===w3?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=b3().domain([0,n])
17615
+ return t===y3||t===w3?i.range(H2(e.origin.y,e.origin.y+e.rows).reverse()):i.range(H2(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}}}
17616
+ class M3{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)
17611
17617
  const t=t=>null!==t
17612
17618
  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)
17613
- 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)?g3().domain(t.values.map(t=>+t)).range(t.colors):q2().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
17619
+ 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)?v3().domain(t.values.map(t=>+t)).range(t.colors):j2().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
17614
17620
  const o=`${t}${i}`
17615
17621
  return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
17616
17622
  const n=new Set(e)
17617
- return t?.some(t=>n.has(t))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===S3}isColorScaleOrdinal(t){return t===$3}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
17623
+ return t?.some(t=>n.has(t))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===$3}isColorScaleOrdinal(t){return t===_3}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
17618
17624
  if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
17619
17625
  let r=ja(o)
17620
- return null===r?this.emptyDieColor:(r=new Ba(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class M3{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 _3(t),this.prerendering=new I3(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 E3{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?k3:C3,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
17626
+ return null===r?this.emptyDieColor:(r=new Ba(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class E3{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 I3(t),this.prerendering=new M3(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 A3{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?S3:k3,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
17621
17627
  if(void 0===t)return""
17622
17628
  const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
17623
17629
  if(void 0===e)return""
@@ -17630,93 +17636,93 @@ if(t*e*(0!==this.wafermap.transform.k?this.wafermap.transform.k:1)>=this.minDieD
17630
17636
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
17631
17637
  const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
17632
17638
  r[0]-=t,r[1]-=e
17633
- for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.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 A3=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
17634
- class T3 extends DO{constructor(t){super(A3),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?y.queueUpdate(()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}):(async()=>{await this.wafermap.currentTask,y.queueUpdate(()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0})})())}}class D3{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=>!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
17639
+ for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.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 T3=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
17640
+ class D3 extends DO{constructor(t){super(T3),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?y.queueUpdate(()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}):(async()=>{await this.wafermap.currentTask,y.queueUpdate(()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1,this.wafermap.currentTask=void 0})})())}}class O3{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=>!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
17635
17641
  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)
17636
- e&&n&&i&&EX.isInt(e.type)&&32===e.type.bitWidth&&EX.isInt(n.type)&&32===n.type.bitWidth&&EX.isFloat(i.type)&&i.type.precision===GK.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
17642
+ e&&n&&i&&AX.isInt(e.type)&&32===e.type.bitWidth&&AX.isInt(n.type)&&32===n.type.bitWidth&&AX.isFloat(i.type)&&i.type.precision===ZK.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}
17637
17643
  /**
17638
17644
  * @license
17639
17645
  * Copyright 2019 Google LLC
17640
17646
  * SPDX-License-Identifier: Apache-2.0
17641
- */const O3=Symbol("Comlink.proxy"),R3=Symbol("Comlink.endpoint"),F3=Symbol("Comlink.releaseProxy"),L3=Symbol("Comlink.finalizer"),B3=Symbol("Comlink.thrown"),N3=t=>"object"==typeof t&&null!==t||"function"==typeof t,P3=new Map([["proxy",{canHandle:t=>N3(t)&&t[O3],serialize(t){const{port1:e,port2:n}=new MessageChannel
17642
- return V3(t,e),[n,[n]]},deserialize:t=>(t.start(),H3(t))}],["throw",{canHandle:t=>N3(t)&&B3 in t,serialize({value:t}){let e
17647
+ */const R3=Symbol("Comlink.proxy"),F3=Symbol("Comlink.endpoint"),L3=Symbol("Comlink.releaseProxy"),B3=Symbol("Comlink.finalizer"),N3=Symbol("Comlink.thrown"),P3=t=>"object"==typeof t&&null!==t||"function"==typeof t,V3=new Map([["proxy",{canHandle:t=>P3(t)&&t[R3],serialize(t){const{port1:e,port2:n}=new MessageChannel
17648
+ return z3(t,e),[n,[n]]},deserialize:t=>(t.start(),U3(t))}],["throw",{canHandle:t=>P3(t)&&N3 in t,serialize({value:t}){let e
17643
17649
  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)
17644
17650
  throw t.value}}]])
17645
- function V3(t,e=globalThis,n=["*"]){e.addEventListener("message",function i(o){if(!o||!o.data)return
17651
+ function z3(t,e=globalThis,n=["*"]){e.addEventListener("message",function i(o){if(!o||!o.data)return
17646
17652
  if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0
17647
17653
  if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`)
17648
- const{id:r,type:s,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(J3)
17654
+ const{id:r,type:s,path:a}=Object.assign({path:[]},o.data),l=(o.data.argumentList||[]).map(Q3)
17649
17655
  let c
17650
17656
  try{const e=a.slice(0,-1).reduce((t,e)=>t[e],t),n=a.reduce((t,e)=>t[e],t)
17651
17657
  switch(s){case"GET":c=n
17652
17658
  break
17653
- case"SET":e[a.slice(-1)[0]]=J3(o.data.value),c=!0
17659
+ case"SET":e[a.slice(-1)[0]]=Q3(o.data.value),c=!0
17654
17660
  break
17655
17661
  case"APPLY":c=n.apply(e,l)
17656
17662
  break
17657
- case"CONSTRUCT":c=function(t){return Object.assign(t,{[O3]:!0})}(new n(...l))
17663
+ case"CONSTRUCT":c=function(t){return Object.assign(t,{[R3]:!0})}(new n(...l))
17658
17664
  break
17659
17665
  case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel
17660
- V3(t,n),c=Y3(e,[e])}break
17666
+ z3(t,n),c=X3(e,[e])}break
17661
17667
  case"RELEASE":c=void 0
17662
17668
  break
17663
- default:return}}catch(t){c={value:t,[B3]:0}}Promise.resolve(c).catch(t=>({value:t,[B3]:0})).then(n=>{const[o,a]=X3(n)
17664
- e.postMessage(Object.assign(Object.assign({},o),{id:r}),a),"RELEASE"===s&&(e.removeEventListener("message",i),z3(e),L3 in t&&"function"==typeof t[L3]&&t[L3]())}).catch(t=>{const[n,i]=X3({value:new TypeError("Unserializable return value"),[B3]:0})
17665
- e.postMessage(Object.assign(Object.assign({},n),{id:r}),i)})}),e.start&&e.start()}function z3(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function H3(t,e){const n=new Map
17669
+ default:return}}catch(t){c={value:t,[N3]:0}}Promise.resolve(c).catch(t=>({value:t,[N3]:0})).then(n=>{const[o,a]=J3(n)
17670
+ e.postMessage(Object.assign(Object.assign({},o),{id:r}),a),"RELEASE"===s&&(e.removeEventListener("message",i),H3(e),B3 in t&&"function"==typeof t[B3]&&t[B3]())}).catch(t=>{const[n,i]=J3({value:new TypeError("Unserializable return value"),[N3]:0})
17671
+ e.postMessage(Object.assign(Object.assign({},n),{id:r}),i)})}),e.start&&e.start()}function H3(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function U3(t,e){const n=new Map
17666
17672
  return t.addEventListener("message",function(t){const{data:e}=t
17667
17673
  if(!e||!e.id)return
17668
17674
  const i=n.get(e.id)
17669
- if(i)try{i(e)}finally{n.delete(e.id)}}),G3(t,n,[],e)}function U3(t){if(t)throw new Error("Proxy has been released and is not useable")}function q3(t){return Q3(t,new Map,{type:"RELEASE"}).then(()=>{z3(t)})}const j3=new WeakMap,W3="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(j3.get(t)||0)-1
17670
- j3.set(t,e),0===e&&q3(t)})
17671
- function G3(t,e,n=[],i=function(){}){let o=!1
17672
- const r=new Proxy(i,{get(i,s){if(U3(o),s===F3)return()=>{!function(t){W3&&W3.unregister(t)}(r),q3(t),e.clear(),o=!0}
17675
+ if(i)try{i(e)}finally{n.delete(e.id)}}),Z3(t,n,[],e)}function q3(t){if(t)throw new Error("Proxy has been released and is not useable")}function j3(t){return t6(t,new Map,{type:"RELEASE"}).then(()=>{H3(t)})}const W3=new WeakMap,G3="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(W3.get(t)||0)-1
17676
+ W3.set(t,e),0===e&&j3(t)})
17677
+ function Z3(t,e,n=[],i=function(){}){let o=!1
17678
+ const r=new Proxy(i,{get(i,s){if(q3(o),s===L3)return()=>{!function(t){G3&&G3.unregister(t)}(r),j3(t),e.clear(),o=!0}
17673
17679
  if("then"===s){if(0===n.length)return{then:()=>r}
17674
- const i=Q3(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(J3)
17675
- return i.then.bind(i)}return G3(t,e,[...n,s])},set(i,r,s){U3(o)
17676
- const[a,l]=X3(s)
17677
- return Q3(t,e,{type:"SET",path:[...n,r].map(t=>t.toString()),value:a},l).then(J3)},apply(i,r,s){U3(o)
17680
+ const i=t6(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(Q3)
17681
+ return i.then.bind(i)}return Z3(t,e,[...n,s])},set(i,r,s){q3(o)
17682
+ const[a,l]=J3(s)
17683
+ return t6(t,e,{type:"SET",path:[...n,r].map(t=>t.toString()),value:a},l).then(Q3)},apply(i,r,s){q3(o)
17678
17684
  const a=n[n.length-1]
17679
- if(a===R3)return Q3(t,e,{type:"ENDPOINT"}).then(J3)
17680
- if("bind"===a)return G3(t,e,n.slice(0,-1))
17681
- const[l,c]=Z3(s)
17682
- return Q3(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},c).then(J3)},construct(i,r){U3(o)
17683
- const[s,a]=Z3(r)
17684
- return Q3(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},a).then(J3)}})
17685
- return function(t,e){const n=(j3.get(e)||0)+1
17686
- j3.set(e,n),W3&&W3.register(t,e,t)}(r,t),r}function Z3(t){const e=t.map(X3)
17685
+ if(a===F3)return t6(t,e,{type:"ENDPOINT"}).then(Q3)
17686
+ if("bind"===a)return Z3(t,e,n.slice(0,-1))
17687
+ const[l,c]=K3(s)
17688
+ return t6(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},c).then(Q3)},construct(i,r){q3(o)
17689
+ const[s,a]=K3(r)
17690
+ return t6(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},a).then(Q3)}})
17691
+ return function(t,e){const n=(W3.get(e)||0)+1
17692
+ W3.set(e,n),G3&&G3.register(t,e,t)}(r,t),r}function K3(t){const e=t.map(J3)
17687
17693
  return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))]
17688
- var n}const K3=new WeakMap
17689
- function Y3(t,e){return K3.set(t,e),t}function X3(t){for(const[e,n]of P3)if(n.canHandle(t)){const[i,o]=n.serialize(t)
17690
- return[{type:"HANDLER",name:e,value:i},o]}return[{type:"RAW",value:t},K3.get(t)||[]]}function J3(t){switch(t.type){case"HANDLER":return P3.get(t.name).deserialize(t.value)
17691
- case"RAW":return t.value}}function Q3(t,e,n,i){return new Promise(o=>{const r=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")
17692
- e.set(r,o),t.start&&t.start(),t.postMessage(Object.assign({id:r},n),i)})}let t6
17693
- class e6{constructor(t){this.wafermap=t,this.minDieDim=100}async setupWafer(t){if(void 0===this.matrixRenderer){const{matrixRenderer:t}=await(async()=>{if(void 0===t6){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 const pendingListeners = new Map();\n ep.addEventListener("message", function handleMessage(ev) {\n const { data } = ev;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n try {\n resolver(data);\n }\n finally {\n pendingListeners.delete(data.id);\n }\n });\n return createProxy(ep, pendingListeners, [], 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, new Map(), {\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, pendingListeners, 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 pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\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, pendingListeners, [...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, pendingListeners, {\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, pendingListeners, {\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, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\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, pendingListeners, {\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, pendingListeners, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\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"})
17694
- t6=URL.createObjectURL(t)}const t=new Worker(t6),e=H3(t)
17694
+ var n}const Y3=new WeakMap
17695
+ function X3(t,e){return Y3.set(t,e),t}function J3(t){for(const[e,n]of V3)if(n.canHandle(t)){const[i,o]=n.serialize(t)
17696
+ return[{type:"HANDLER",name:e,value:i},o]}return[{type:"RAW",value:t},Y3.get(t)||[]]}function Q3(t){switch(t.type){case"HANDLER":return V3.get(t.name).deserialize(t.value)
17697
+ case"RAW":return t.value}}function t6(t,e,n,i){return new Promise(o=>{const r=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")
17698
+ e.set(r,o),t.start&&t.start(),t.postMessage(Object.assign({id:r},n),i)})}let e6
17699
+ class n6{constructor(t){this.wafermap=t,this.minDieDim=100}async setupWafer(t){if(void 0===this.matrixRenderer){const{matrixRenderer:t}=await(async()=>{if(void 0===e6){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 const pendingListeners = new Map();\n ep.addEventListener("message", function handleMessage(ev) {\n const { data } = ev;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n try {\n resolver(data);\n }\n finally {\n pendingListeners.delete(data.id);\n }\n });\n return createProxy(ep, pendingListeners, [], 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, new Map(), {\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, pendingListeners, 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 pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === "then") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\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, pendingListeners, [...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, pendingListeners, {\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, pendingListeners, {\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, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\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, pendingListeners, {\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, pendingListeners, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\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"})
17700
+ e6=URL.createObjectURL(t)}const t=new Worker(e6),e=U3(t)
17695
17701
  return{matrixRenderer:await new e,terminate:()=>t.terminate()}})()
17696
17702
  this.matrixRenderer=t
17697
17703
  const e=this.wafermap.workerCanvas.transferControlToOffscreen()
17698
- await this.matrixRenderer.setCanvas(Y3(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])
17699
- 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.width*t.dieDimensions.height*(0!==t.transform.k?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?k3:C3,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
17704
+ await this.matrixRenderer.setCanvas(X3(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])
17705
+ 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.width*t.dieDimensions.height*(0!==t.transform.k?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?S3:k3,this.wafermap.hoverTransform=this.calculateHoverTransform())}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.computations.horizontalScale(this.wafermap.hoverDie.x)
17700
17706
  if(void 0===t)return""
17701
17707
  const e=this.wafermap.computations.verticalScale(this.wafermap.hoverDie.y)
17702
17708
  if(void 0===e)return""
17703
17709
  const n=this.wafermap.transform.apply([t+this.wafermap.computations.margin.left,e+this.wafermap.computations.margin.top])
17704
- return`translate(${n[0]}, ${n[1]})`}return""}}let n6=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
17710
+ return`translate(${n[0]}, ${n[1]})`}return""}}let i6=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
17705
17711
  const e={x:t.offsetX,y:t.offsetY}
17706
17712
  if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
17707
17713
  const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
17708
- 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===b3||e===w3?Math.floor:Math.ceil,i=e===b3||e===y3?Math.floor:Math.ceil
17714
+ 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===y3||e===x3?Math.floor:Math.ceil,i=e===y3||e===w3?Math.floor:Math.ceil
17709
17715
  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
17710
17716
  let n=0
17711
17717
  for(const t of e)n+=t
17712
17718
  return n>0}}
17713
- class i6{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
17719
+ class o6{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
17714
17720
  const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
17715
17721
  if(void 0===n||!this.isDieInGrid(n.x,n.y))return void(this.wafermap.hoverDie=void 0)
17716
17722
  const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
17717
17723
  for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
17718
- 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===b3||e===w3?Math.floor:Math.ceil,i=e===b3||e===y3?Math.ceil:Math.floor
17719
- 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 o6{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()},this.wafermapNotifier=C.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(){pK().on("zoom",null)(QW(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(t,e){t!==this.wafermap||"canvasWidth"!==e&&"canvasHeight"!==e||this.createZoomBehavior()}createZoomBehavior(){pK().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",t=>{this.wafermap.transform=t.transform})(QW(this.wafermap))}}class r6{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}
17724
+ 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===y3||e===x3?Math.floor:Math.ceil,i=e===y3||e===w3?Math.ceil:Math.floor
17725
+ 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 r6{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()},this.wafermapNotifier=C.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(){fK().on("zoom",null)(tG(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}handleChange(t,e){t!==this.wafermap||"canvasWidth"!==e&&"canvasHeight"!==e||this.createZoomBehavior()}createZoomBehavior(){fK().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",t=>{this.wafermap.transform=t.transform})(tG(this.wafermap))}}class s6{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}
17720
17726
  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()
17721
17727
  const t=Math.min(this._containerDimensions.width,this._containerDimensions.height)
17722
17728
  this.gridDimensionsValidAndDefined()?this.setGridDimensionsFromBoundingBox():this.setGridDimensionsFromDies()
@@ -17724,20 +17730,20 @@ const e=this.wafermap.originLocation
17724
17730
  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
17725
17731
  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]}
17726
17732
  for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
17727
- 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=g3()
17728
- return t===b3||t===w3?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=g3()
17729
- return t===b3||t===y3?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===S3){const t=this.wafermap.colorScale.values.map(t=>+t),e=g3().domain(t).range(this.wafermap.colorScale.colors)
17733
+ 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=v3()
17734
+ return t===y3||t===x3?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=v3()
17735
+ return t===y3||t===w3?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===$3){const t=this.wafermap.colorScale.values.map(t=>+t),e=v3().domain(t).range(this.wafermap.colorScale.colors)
17730
17736
  let n=t[0],i=t[0]
17731
17737
  t.forEach(t=>{t<n&&(n=t),t>i&&(i=t)})
17732
- return z2(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 s6 extends qe{constructor(){super(...arguments),this.waferMapUpdateTracker=new T3(this.asRequiredFieldsWaferMap),this.originLocation=b3,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=x3,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=S3,this.computations=new r6(this.asRequiredFieldsWaferMap),this.dataManager=new M3(this.asRequiredFieldsWaferMap),this.workerRenderer=new e6(this.asRequiredFieldsWaferMap),this.renderer=new E3(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=oK,this.hoverTransform="",this.hoverOpacity=k3,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new n6(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new i6(this.asRequiredFieldsWaferMap),this.zoomHandler=new o6(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new D3(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()
17738
+ return H2(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 a6 extends qe{constructor(){super(...arguments),this.waferMapUpdateTracker=new D3(this.asRequiredFieldsWaferMap),this.originLocation=y3,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=C3,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=$3,this.computations=new s6(this.asRequiredFieldsWaferMap),this.dataManager=new E3(this.asRequiredFieldsWaferMap),this.workerRenderer=new n6(this.asRequiredFieldsWaferMap),this.renderer=new A3(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=rK,this.hoverTransform="",this.hoverOpacity=S3,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new i6(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new o6(this.asRequiredFieldsWaferMap),this.zoomHandler=new r6(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new O3(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()
17733
17739
  const t=this.createSnapshot()
17734
17740
  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 y.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,o=this.dieLabelsHidden
17735
17741
  if(void 0===this.diesTable)return{canvasDimensions:t,renderConfig:e,dieDimensions:n,transform:i,dieLabelsHidden:o,columnIndices:Int32Array.from([]),rowIndices:Int32Array.from([]),values:Float64Array.from([])}
17736
17742
  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:o}}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver(t=>{const e=t[0]
17737
17743
  if(void 0===e)return
17738
17744
  const{height:n,width:i}=e.contentRect
17739
- 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}}s6.Arrow={tableFromIPC:function t(e){const n=d2.from(e)
17740
- return wK(n)?n.then(e=>t(e)):n.isAsync()?n.readAll().then(t=>new z1(t)):new z1(n.readAll())}},t([ft({attribute:"origin-location"})],s6.prototype,"originLocation",void 0),t([ft({attribute:"grid-min-x",converter:ut})],s6.prototype,"gridMinX",void 0),t([ft({attribute:"grid-max-x",converter:ut})],s6.prototype,"gridMaxX",void 0),t([ft({attribute:"grid-min-y",converter:ut})],s6.prototype,"gridMinY",void 0),t([ft({attribute:"grid-max-y",converter:ut})],s6.prototype,"gridMaxY",void 0),t([ft],s6.prototype,"orientation",void 0),t([ft({attribute:"max-characters",converter:ut})],s6.prototype,"maxCharacters",void 0),t([ft({attribute:"die-labels-hidden",mode:"boolean"})],s6.prototype,"dieLabelsHidden",void 0),t([ft({attribute:"die-labels-suffix"})],s6.prototype,"dieLabelsSuffix",void 0),t([ft({attribute:"color-scale-mode"})],s6.prototype,"colorScaleMode",void 0),t([k],s6.prototype,"renderer",void 0),t([k],s6.prototype,"canvasWidth",void 0),t([k],s6.prototype,"canvasHeight",void 0),t([k],s6.prototype,"transform",void 0),t([k],s6.prototype,"hoverTransform",void 0),t([k],s6.prototype,"hoverOpacity",void 0),t([k],s6.prototype,"hoverWidth",void 0),t([k],s6.prototype,"hoverHeight",void 0),t([k],s6.prototype,"hoverDie",void 0),t([k],s6.prototype,"highlightedTags",void 0),t([k],s6.prototype,"dies",void 0),t([k],s6.prototype,"diesTable",void 0),t([k],s6.prototype,"colorScale",void 0)
17741
- const a6=s6.compose({baseName:"wafer-map",template:S2,styles:$2})
17742
- Ei.getOrCreate().withPrefix("nimble").register(a6())}()
17745
+ 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}}a6.Arrow={tableFromIPC:function t(e){const n=h2.from(e)
17746
+ return xK(n)?n.then(e=>t(e)):n.isAsync()?n.readAll().then(t=>new H1(t)):new H1(n.readAll())}},t([ft({attribute:"origin-location"})],a6.prototype,"originLocation",void 0),t([ft({attribute:"grid-min-x",converter:ut})],a6.prototype,"gridMinX",void 0),t([ft({attribute:"grid-max-x",converter:ut})],a6.prototype,"gridMaxX",void 0),t([ft({attribute:"grid-min-y",converter:ut})],a6.prototype,"gridMinY",void 0),t([ft({attribute:"grid-max-y",converter:ut})],a6.prototype,"gridMaxY",void 0),t([ft],a6.prototype,"orientation",void 0),t([ft({attribute:"max-characters",converter:ut})],a6.prototype,"maxCharacters",void 0),t([ft({attribute:"die-labels-hidden",mode:"boolean"})],a6.prototype,"dieLabelsHidden",void 0),t([ft({attribute:"die-labels-suffix"})],a6.prototype,"dieLabelsSuffix",void 0),t([ft({attribute:"color-scale-mode"})],a6.prototype,"colorScaleMode",void 0),t([k],a6.prototype,"renderer",void 0),t([k],a6.prototype,"canvasWidth",void 0),t([k],a6.prototype,"canvasHeight",void 0),t([k],a6.prototype,"transform",void 0),t([k],a6.prototype,"hoverTransform",void 0),t([k],a6.prototype,"hoverOpacity",void 0),t([k],a6.prototype,"hoverWidth",void 0),t([k],a6.prototype,"hoverHeight",void 0),t([k],a6.prototype,"hoverDie",void 0),t([k],a6.prototype,"highlightedTags",void 0),t([k],a6.prototype,"dies",void 0),t([k],a6.prototype,"diesTable",void 0),t([k],a6.prototype,"colorScale",void 0)
17747
+ const l6=a6.compose({baseName:"wafer-map",template:$2,styles:_2})
17748
+ Ei.getOrCreate().withPrefix("nimble").register(l6())}()
17743
17749
  //# sourceMappingURL=all-components-bundle.min.js.map