@univerjs-pro/engine-pivot 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -2
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x44a51f=_0x45d7;(function(_0x5bdc15,_0xd4705d){const _0x575748=_0x45d7,_0x3515fc=_0x5bdc15();while(!![]){try{const _0x186665=-parseInt(_0x575748(0x24f))/0x1+-parseInt(_0x575748(0x379))/0x2+-parseInt(_0x575748(0x217))/0x3*(-parseInt(_0x575748(0x289))/0x4)+parseInt(_0x575748(0x1c5))/0x5*(parseInt(_0x575748(0x20d))/0x6)+parseInt(_0x575748(0x1fe))/0x7+parseInt(_0x575748(0x343))/0x8*(parseInt(_0x575748(0x42b))/0x9)+-parseInt(_0x575748(0x376))/0xa*(parseInt(_0x575748(0x3df))/0xb);if(_0x186665===_0xd4705d)break;else _0x3515fc['push'](_0x3515fc['shift']());}catch(_0x4a8175){_0x3515fc['push'](_0x3515fc['shift']());}}}(_0x50f3,0x8c9ff));import{DateSystem as _0x1cde2a,FilterSelectionMode as _0x9ca4ef,RecordValueType as _0x5269ba,excelSerialToDateTimeParts as _0x556261,getRecordValueKey as _0x4576c7}from'@univerjs/core';function _0x50f3(){const _0x4f53b9=['repeatColLabels','rowNodeTree','legacy','selection','toUpperCase','getGrouping','sort','groupByDate','setValueFilterInfo','itemSize','unRegisterCallbackWithEvent','nextMonth','COl_ROOT_PATH','MIN_VALUE','rowQueryInfo','_tupleKeysByLabel','createValueFieldByDataFieldId','Count\x20of\x20','subtotal','captionBeginsWith','endsWith','hasSort','\x20Σ值','rowFields','second','_recordTupleKeys','_difference','getFieldFormat','_showDataAsResolver','_getGroupInfo','stdDev','_product','_prepareDerivedBuffers','measure','colCount','_id','getIndexesByKey','removeField','_parentFieldIndexes','_keyCounter','year-quarter','variant','hiddenFields','writeLeafItemRow','localeCompare','_buildRankBuffer','getColCount','_divideParent','dateRange','Product\x20of\x20','invalid','getNodeValue','colDeep','getMeasureIndex','getLayout','grandTotal','_getPeerValue','ExcelLike','hasInteger','setDataFieldId','_prepareParentIndexes','call','percentOfColumnTotal','formJSON','member','format','_count','_applyValueSorts','ValueFilter','positions','trim','dateSystem','getDataFieldByTableId','columnFields','indexOf','-$-blk-$-','The\x20value\x20filter\x20info\x20is\x20invalid.','Ambiguous\x20pivot\x20condition\x20state.','Average\x20of\x20','getOptions','colTableIdList','layoutColFields','hasDate','isLeafNode','SetValueFilter','values','getName','_getCanonicalTupleIndex','setRowCount','_getValueFilterTree','_peerUnionsByValueField','error','clearShowDataAsCache','average','ROW_ROOT_PATH','hasError','getFullYear','getGroupFieldsInfoByIds','Date','repeatRowLabelsForNode','rowTableIdList','lastWeek','getFieldIdByDisplayName','layoutValueNodeSubtotal','writeParentRows','fill','concat','getRanges','isArray','_isDirty','_updateBlankItemKey','colPathMap','Sum\x20of\x20','Min\x20of\x20','floor','None','hour','startChangeStack','iterateFieldMeasure','rangeKey','descending','getSourceName','M11','Column\x20Labels','itemTypes','addRange','measureIndexesMap','All','_setDerivedNumber','setLabelValue','fields','size','colNodeTree','_clearSourceFilterCategory','createCollection','The\x20field\x20','setValueSize','unit','freeze','isDev','string','compare','getFilteredRecordIndexes','_rowLevelPool','collections','updateFieldSourceInfo','_fieldDataType','percentOfParent','getTupleKeysByLabel','getPaths','_updateErrorItemKey','_doValueFilter','_callbacks','previous','_tupleLabels','endCollectChangeset','percent','_applyLabelSorts','tuples','getDate','measureCount','rankAscending','Second','Invalid\x20pivot\x20record\x20value.','6851776Imtucp','startsWith','_level','prefix','create','percentDifferenceFrom','setDisplayName','Subtotal','filterInfo','valueBetween','getDateType','dimensionSortInfo','join','_updateOtherItemKey','options','0.00%','expected','_divide','_readPathIntoCoordinate','setOptions','_overflowRecordIndexes','refreshGroupField','dimensionIdList','sqrt','month','_getDerivedValue','writeParentItemRow','_getParentGroupKey','valueQueryInfo','range','sortMap','Month','hiddenQueryInfo','_peerIndexesByValueField','getInfo','getLastRow','writeLeafRows','fieldId','summary','Collapse','RenameField','getDisplayNameByKey','_parentFieldIndexByValueField','_buildItemOrders','ranges','hasOwnProperty','iterateField','entries','layoutHeadersWithoutColumnDimensions','_itemIndexMaps','nextYear','41260iVJNko','isFinite','items','1171148oysqRa','dateOlderThan','hasBoolean','setLeaf','createTupleWithoutCheck','_getParentNodeKey','clearFilters','counter','AddField','getNodeDisplayValue','setDirty','dataFieldId','members','layoutColHeader','hasField','_tupleItemsMap','types','unionTuples','Collator','valueIndex','buildNodeTree','find','prepareShowDataAs','thisYear','_setDerivedError','subTotal','_defaultSortLocale','_getParentValue','hasText','isExistFieldName','_bounds','_setPageFilterLabel','NotNumber','getQueryData','colQueryInfo','writeValueHeaderRow','createDataFieldId','getNumberGroupValid','groups','collapse','captionBetween','getSortedMap','_getIndex','buildColPathMap','captionEndsWith','count','_canonicalTupleIndexes','createOrUpdateTuple','Value','_tupleTypes','removeValueFilterInfoByValueFieldId','createTuple','year','setPaths','setFieldFilterState','groupInfo','_squareSum','setLevel','setConditionFilterInfo','layoutRowNodeToCursor','UpdateValuePosition','Blank','_prepareTotalIndexes','fieldIds','cornerView','_bubbleDown','TUPLE_FIELD_SEPARATOR','rankDescending','getRowCount','displayNameRecord','dateOlderThanOrEqual','\x20is\x20exist\x20in\x20the\x20pivot\x20table.','_createDerivedBuffer','SetSubtotalType','getCornerSize','layoutValueNode','dateGroupingMode','SetSortInfo','isAll','_columnFieldIndexes','updateDataFieldsCollection','YearQuarter','addValue','setLabelFilterInfo','_buildTotalIndexes','getIndex','keys','_recordKeys','doColLeafNode','createSingleValueHeaderInfo','getDataFieldType','FilterSingle','layoutRowFields','_getFieldIndex','ManualFilter','updateRowSubtotal','_updateItemKey','__number_after__','layoutPage','dataFieldsCollection','_sum','repeatRowLabels','2992nxBBjI','valueGreaterThan','addFieldWithSourceId','constructor','sum','object','field','varp','getTime','registerCallbackWithEvent','setLastRow','log10','isRowMultiMeasure','valueLessThan','hasBlank','percentOfParentRowTotal','every','percentOfGrandTotal','iterateFieldByArea','defaultSortType','_refreshExcelLike','outline','some','doRowLeafNode','valueSortInfo','getUniqueDataFieldName','A\x20record\x20filter\x20evaluator\x20must\x20be\x20provided\x20by\x20the\x20host.','getValueLabelCol','isColMultiMeasure','__number_before__','writeParentRow','ascending','stringify','getFieldDataType','valuePosition','round','getHeaderMapItem','unionTupleInfo','resort','CustomFilter','fromJSON','Row','layoutNoneColFields','showColGrandTotal','today','dateEqual','_buildOrderedGroups','FilteredSortNone','rowSubtotalPosition','Pivot\x20numeric\x20record\x20values\x20must\x20be\x20finite.','calculateListSubtotal','_addTupleRecord','Minute','-$-rr-$-','getSubtotal','_summaryManagerCache','getGroupInfo','Invalid\x20pivot\x20whole-day\x20mode.','TUPLE_PLACEHOLDER','NotFunction','captionContains','Exclude','info','ensureTupleItemByString','addHeaderMapItem','FilterNoneSortDesc','topTotalSize','showColSubtotal','nextQuarter','setRangeKey','isEmpty','_heap','FilterPartial','states','setBlank','captionGreaterThan','9CaawLu','_itemIndexMap','_tupleKeyCounter','writeBottomSubtotalRows','_setValueFilterState','updateFieldPosition','isBottom','date','top','endDate','_fieldsCollection','tomorrow','setStyle','_changeStack','_getIndexedRawValue','_sortCompareCache','Year','boolean','getDateGroupValid','formatMap','yearToDate','daysInterval','_fieldIndexById','getIsLeaf','A\x20pivot\x20field\x20cannot\x20contain\x20two\x20date/label\x20conditions.','_getCoordinateKeyWithoutField','writeLeafValueRow','addNode','valueFilter','setDefaultSortLocale','reduce','getTupleLabel','showDataAs','_rowFieldIndexes','combinePathMapList','getId','Invalid\x20pivot\x20condition\x20filter.','displayPaths','textGroupField','customFields','rowCount','BLANK_PLACEHOLDER','addRecord','getManualGroupValid','errorType','getColIndexForRowHeader','custom','mode','countN','_isPeerType','_bubbleUp','isLeaf','Include','writeBottomSubtotalRow','item','maxDate','createRowInfo','captionLessThanOrEqual','hexCode','prepare','layoutRowChildren','abs','getTupleKey','combinePathMap','measuresMap','getTypeByKey','conditionFilter','_getModel','query','split','lossLessProperty','condition','valueFilterMap','getFieldIds','_buildRunningTotalBuffer','getFieldPositionInfoById','type','sortInfo','summaryManager','setOther','quarter','map','Column','getDirty','ensureTupleItem','getItemKey','valueFields','getDataFieldByDataFieldId','The\x20displayName\x20','setSubtotal','dimensionTableIdList','FilterNoneSortAsc','ceil','baseFieldId','FilterAll','getOriginFieldId','getFilterInfo','setGrouping','setFilterInfo','slice','_tupleByCoordinate','year-month-date','_min','_buildParentIndexes','pageView','prototype','getMonth','layoutCorner','warn','doSummary','cloneBufferModel','-$-oth-$-','layoutValueLeafNode','getCellValue','getDataRecordCount','valueFieldId','view','minNumber','iterateFieldDim','dateGroupField','Unknown\x20filter\x20operator:\x20','colView','_derivedValuesByValueField','onQueryEnd','headerMap','layoutPageOverThenDown','bottomTotalSize','setLastCol','customOrder','M12','dataView','Quarter','lastQuarter','next','shouldMultipleNode','grouping','getTupleIndexesByKey','year-month','rowView','Hour','thisQuarter','host','day','_index','valueLessThanOrEqual','differenceFrom','Date1900','clearFieldFilters','percentOf','doRowBrachNode','_percentDifference','_countN','pageWrap','getAllIndexMap','assign','getUniqueValueFieldName','getMinutes','Invalid\x20pivot\x20record\x20selection.','toPrecision','setSourceName','minDate','length','RemoveField','Boolean','Pivot\x20date\x20record\x20values\x20must\x20be\x20finite.','getFieldInfo','_updateNumberItemKey','shouldWriteSubtotalAtBottom','defaultNormalField','shouldWriteMultiValueSubtotalAtBottom','BadReference','_getIndexValue','getMeasureInfoByIndex','maxNumber','prepareLayoutCtx','FilteredSortAsc','bottom','_getRawValue','HourMinute','_getCoordinateKey','sourceName','buildColPathMapForCollapse','toJSON','autoEnd','SetFilterInfo','path','isInteger','stdDevp','blank','valueGreaterThanOrEqual','tupleMap','setValue','_queryData','captionNotBetween','getItemSharedKey','SetOptions','_summaryCacheState','tuple','_layout','writeRootValueHeaderRow','setRange','log2','setSortInfo','toString','lastCol','MonthDate','createSummaryLabelSortedMap','getRowColCount','FilterNoneSortNone','getStyle','sortChildrenByLabel','records','buildPathMap','setLayout','layout','UpdateFieldPosition','_getIndexedTupleIndex','index','thisMonth','countNums','addField','valueNotEqual','endChangeStack','_generateModel','sortedList','_excelLike','Number','SetLayout','lastMonth','baseItem','excelLike','end','getRangeData','autoStart','dataFieldType','otherDataKey','getLastCol','Expand','start','setGroupInfo','var','lastYear','compileRecordFilter','_createValueFilterLevelPool','captionEqual','_colLevelPool','setFormat','setCollapse','shouldSplitRootByValues','_tupleIndexMap','tabular','getShowDataAs','resetSort','product','doColBranchNode','getCollapse','_isParentType','getRealSize','useWholeDay','minute','getRowLabelCol','measureIdList','valueNotBetween','\x20is\x20already\x20in\x20the\x20pivot\x20table.','startCollectChangeset','_grandTotalIndex','4964045VJnDVQ','addCollection','renameField','layoutCol','getDataFieldBySourceName','dayLabels','getTableFieldsByDataFieldId','_valueFilterInfo','getFilterFieldIdByIndex','group','_buildCoordinateIndex','value','getPathKeyWithFiledId','updateAllDisplayName','Filter','setInfo','rowDeep','push','allowMultipleFilters','filterFields','rowDimOrder','iterateColLeafNodeChildren','getFieldsId','updateColumnSubtotal','dateNotBetween','getItemsMap','operator','FilteredSortDesc','\x20is\x20not\x20in\x20the\x20pivot\x20table.','getLevel','sortLocale','thisWeek','dataRecordCount','excel-like','updateValuePosition','getNoUsedDataFieldIds','parentIndex','getFieldById','getFieldDisplayNames','_coordinates','YearMonth','dateBetween','_dateType','dateNotEqual','applyNodeValueType','M10','layoutRowNode','set','clear','_buildNodeTreeImp','getHours','_clearSourceFilters','getDisplayName','iterate','flatMap','hasNode','showRowSubtotal','5116895JmkLky','_parentRowTotalIndexes','compact','Error','queryData','findIndex','setDateType','setValueFilterState','sortItems','add','text','colDimOrder','name','month-date','function','6Cwencm','pop','Unsupported\x20pivot\x20caption\x20operator.','shouldWriteLeafValuesUnderItem','_getTupleCache','getNode','createGrandTotalInfo','interval','getCell','node','4899yIuzVI','lastRow','deleteField','All\x20selection\x20cannot\x20contain\x20values.','getDataFieldId','random','_getSortCompare','captionNotContains','layoutGrandTotalValues','_updateBooleanItemKey','_max','valueFilterInfo','numberGroupField','getValueFilterInfo','_itemsMap','getTupleType','dispose','createLabelFieldByDataFieldId','Variance\x20of\x20','has','filterQueryInfo','yesterday','Row\x20Labels','startDate','getValuePosition','getValueFilterInfos','calculateSubtotal','setColCount','Population\x20Variance\x20of\x20','captionNotBeginsWith','unknown','filter','_columnTotalIndexes','displayName','getFormat','other','default','_nodes','runningTotal','indexes','_tupleItemCounter','nextWeek','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRangeKey','includes','Missing\x20constrained\x20pivot\x20field:\x20','get','captionGreaterThanOrEqual','originalFieldId','_rowTotalIndexes','dimension','_calculateValueFilter','_updateStringItemKey','NotName','_fieldCount','layoutColNode','461354BXyDVW','percentOfParentColumnTotal','UpdateSource','Population\x20Standard\x20Deviation\x20of\x20','sortNode','getAutoDisplayNameFunction','showRowGrandTotal','dateType','getValue','removeValueFilterInfo','splice','dateNewerThanOrEqual','_updateDateItemKey','getConditionFilterInfo','paths','list','_getMemberType','getTupleItemsMap','BlankValue','setPageIndex','_parentColumnTotalIndexes','leafCount','_summaryManager','getValueIndex','percentRunningTotal','GrandTotal','Hidden','_tupleGroupCache','forEach','setSubtotalType','number','captionNotEqual','getRowIndexForColHeader','customGroupField','Unknown\x20pivot\x20filter\x20type.','subtotalMap','hour-minute','max','getformat','_bufferModel','collapseInfo','min','ready','percentOfParentGrandTotal','data','fromEntries','dataFields','_model','writeGrandTotalRows','MultipleGrandTotal','getFieldsAreaByType','startContent','UTC','_displayNames','setShowDataAs','SetShowDataAs','dimensionMap','reset','404ErwuZM','_grouping','onQueryStart','cancelCollectChangeset','setName','hasDecimal','setParentIndex','maxLimitItemCount','_preparePeerIndexes','shouldMultipleTotal','getIndexesByPathStr','normal','Standard\x20Deviation\x20of\x20','_isDerivedType','tupleIndex','from','Div0','getSortInfo','_buildPeerIndexes','sortChildrenByValue','_dataIsValid','symbol'];_0x50f3=function(){return _0x4f53b9;};return _0x50f3();}const a={'TUPLE_PLACEHOLDER':'-&&-','TUPLE_FIELD_SEPARATOR':'-%$%-','COl_ROOT_PATH':'-$-cr-$-','ROW_ROOT_PATH':_0x44a51f(0x414),'BLANK_PLACEHOLDER':_0x44a51f(0x2ea),'isDev':!0x1,'defaultSortType':_0x44a51f(0x23b),'dateSystem':_0x1cde2a[_0x44a51f(0x14d)],'maxLimitItemCount':0x3e8,'otherDataKey':_0x44a51f(0x12a)},o=_0x4d1746=>a[_0x44a51f(0x2e6)]=_0x4d1746,s=_0x8474e6=>{const _0x2aaebd=_0x44a51f;_0x8474e6>0x0&&(a[_0x2aaebd(0x290)]=_0x8474e6);};let c=function(_0x41089e){const _0xcfafcd=_0x44a51f;return _0x41089e[_0x41089e[_0xcfafcd(0x2fc)]=0x1]='average',_0x41089e[_0x41089e[_0xcfafcd(0x3a6)]=0x2]='count',_0x41089e[_0x41089e['countNums']=0x3]=_0xcfafcd(0x196),_0x41089e[_0x41089e[_0xcfafcd(0x274)]=0x4]='max',_0x41089e[_0x41089e['min']=0x5]=_0xcfafcd(0x278),_0x41089e[_0x41089e['product']=0x6]='product',_0x41089e[_0x41089e[_0xcfafcd(0x2bd)]=0x7]=_0xcfafcd(0x2bd),_0x41089e[_0x41089e[_0xcfafcd(0x176)]=0x8]=_0xcfafcd(0x176),_0x41089e[_0x41089e[_0xcfafcd(0x3e3)]=0x9]=_0xcfafcd(0x3e3),_0x41089e[_0x41089e[_0xcfafcd(0x1ab)]=0xa]='var',_0x41089e[_0x41089e[_0xcfafcd(0x3e6)]=0xb]='varp',_0x41089e;}({}),l=function(_0xec5fdd){const _0x15deb8=_0x44a51f;return _0xec5fdd[_0xec5fdd['normal']=0x1]=_0x15deb8(0x294),_0xec5fdd[_0xec5fdd[_0x15deb8(0x2dd)]=0x2]=_0x15deb8(0x2dd),_0xec5fdd[_0xec5fdd['percentOfRowTotal']=0x3]='percentOfRowTotal',_0xec5fdd[_0xec5fdd[_0x15deb8(0x3f0)]=0x4]=_0x15deb8(0x3f0),_0xec5fdd[_0xec5fdd[_0x15deb8(0x250)]=0x5]=_0x15deb8(0x250),_0xec5fdd[_0xec5fdd['percentOfParentRowTotal']=0x6]=_0x15deb8(0x3ee),_0xec5fdd[_0xec5fdd[_0x15deb8(0x27a)]=0x7]=_0x15deb8(0x27a),_0xec5fdd[_0xec5fdd['index']=0x8]=_0x15deb8(0x194),_0xec5fdd[_0xec5fdd[_0x15deb8(0x14c)]=0x9]=_0x15deb8(0x14c),_0xec5fdd[_0xec5fdd[_0x15deb8(0x348)]=0xa]=_0x15deb8(0x348),_0xec5fdd[_0xec5fdd[_0x15deb8(0x23d)]=0xb]='runningTotal',_0xec5fdd[_0xec5fdd['percentRunningTotal']=0xc]=_0x15deb8(0x267),_0xec5fdd[_0xec5fdd[_0x15deb8(0x14f)]=0xd]='percentOf',_0xec5fdd[_0xec5fdd['percentOfParent']=0xe]=_0x15deb8(0x332),_0xec5fdd[_0xec5fdd[_0x15deb8(0x340)]=0xf]=_0x15deb8(0x340),_0xec5fdd[_0xec5fdd[_0x15deb8(0x3bc)]=0x10]='rankDescending',_0xec5fdd;}({}),u=function(_0x11ae8b){const _0x48707c=_0x44a51f;return _0x11ae8b[_0x11ae8b['item']=0x1]=_0x48707c(0x461),_0x11ae8b[_0x11ae8b[_0x48707c(0x338)]=0x2]=_0x48707c(0x338),_0x11ae8b[_0x11ae8b[_0x48707c(0x140)]=0x3]=_0x48707c(0x140),_0x11ae8b;}({}),d=function(_0x19ed36){const _0xf2bd0b=_0x44a51f;return _0x19ed36[_0x19ed36[_0xf2bd0b(0x299)]=0x1]=_0xf2bd0b(0x299),_0x19ed36[_0x19ed36[_0xf2bd0b(0x399)]=0x2]=_0xf2bd0b(0x399),_0x19ed36[_0x19ed36[_0xf2bd0b(0x41a)]=0x3]=_0xf2bd0b(0x41a),_0x19ed36[_0x19ed36[_0xf2bd0b(0x24c)]=0x4]=_0xf2bd0b(0x24c),_0x19ed36[_0x19ed36[_0xf2bd0b(0x165)]=0x5]=_0xf2bd0b(0x165),_0x19ed36;}({}),f=function(_0x2d2d90){const _0x51139c=_0x44a51f;return _0x2d2d90[_0x2d2d90[_0x51139c(0x406)]=0x1]=_0x51139c(0x406),_0x2d2d90[_0x2d2d90[_0x51139c(0x2e3)]=0x2]=_0x51139c(0x2e3),_0x2d2d90[_0x2d2d90[_0x51139c(0x3d7)]=0x3]=_0x51139c(0x3d7),_0x2d2d90[_0x2d2d90['RecordFilter']=0x4]='RecordFilter',_0x2d2d90;}({}),p=function(_0x575aa6){const _0x44a76f=_0x44a51f;return _0x575aa6[_0x575aa6['Column']=0x1]=_0x44a76f(0x47d),_0x575aa6[_0x575aa6['Row']=0x2]=_0x44a76f(0x408),_0x575aa6[_0x575aa6[_0x44a76f(0x3a9)]=0x3]=_0x44a76f(0x3a9),_0x575aa6[_0x575aa6[_0x44a76f(0x1d3)]=0x4]=_0x44a76f(0x1d3),_0x575aa6[_0x575aa6['Hidden']=0x5]=_0x44a76f(0x269),_0x575aa6;}({}),m=function(_0x205ffd){const _0x466438=_0x44a51f;return _0x205ffd[_0x205ffd[_0x466438(0x312)]=-0x1]='None',_0x205ffd[_0x205ffd[_0x466438(0x47d)]=0x1]=_0x466438(0x47d),_0x205ffd[_0x205ffd[_0x466438(0x408)]=0x2]=_0x466438(0x408),_0x205ffd;}({}),h=function(_0x484ef0){const _0x2d1f60=_0x44a51f;return _0x484ef0[_0x484ef0['text']=0x1]=_0x2d1f60(0x208),_0x484ef0[_0x484ef0[_0x2d1f60(0x26d)]=0x2]=_0x2d1f60(0x26d),_0x484ef0[_0x484ef0[_0x2d1f60(0x43c)]=0x3]=_0x2d1f60(0x43c),_0x484ef0[_0x484ef0[_0x2d1f60(0x432)]=0x4]=_0x2d1f60(0x432),_0x484ef0[_0x484ef0[_0x2d1f60(0x177)]=0x5]=_0x2d1f60(0x177),_0x484ef0[_0x484ef0[_0x2d1f60(0x23a)]=0x6]='other',_0x484ef0;}({}),g=function(_0x40416c){const _0x4a50f8=_0x44a51f;return _0x40416c[_0x40416c[_0x4a50f8(0x1d0)]=0x1]=_0x4a50f8(0x1d0),_0x40416c[_0x40416c['field']=0x2]=_0x4a50f8(0x3e5),_0x40416c;}({}),_=function(_0x1e4080){const _0xa7b122=_0x44a51f;return _0x1e4080[_0x1e4080['ascending']=0x1]=_0xa7b122(0x3fe),_0x1e4080[_0x1e4080[_0xa7b122(0x317)]=0x2]=_0xa7b122(0x317),_0x1e4080[_0x1e4080[_0xa7b122(0x459)]=0x3]=_0xa7b122(0x459),_0x1e4080;}({}),v=function(_0xbaa64f){const _0x5947b8=_0x44a51f;return _0xbaa64f[_0xbaa64f['captionBeginsWith']=0x1]=_0x5947b8(0x2b2),_0xbaa64f[_0xbaa64f[_0x5947b8(0x3a1)]=0x2]='captionBetween',_0xbaa64f[_0xbaa64f[_0x5947b8(0x41b)]=0x3]=_0x5947b8(0x41b),_0xbaa64f[_0xbaa64f[_0x5947b8(0x3a5)]=0x4]=_0x5947b8(0x3a5),_0xbaa64f[_0xbaa64f[_0x5947b8(0x1af)]=0x5]=_0x5947b8(0x1af),_0xbaa64f[_0xbaa64f['captionGreaterThan']=0x6]=_0x5947b8(0x42a),_0xbaa64f[_0xbaa64f[_0x5947b8(0x246)]=0x7]='captionGreaterThanOrEqual',_0xbaa64f[_0xbaa64f['captionLessThan']=0x8]='captionLessThan',_0xbaa64f[_0xbaa64f[_0x5947b8(0x464)]=0x9]=_0x5947b8(0x464),_0xbaa64f[_0xbaa64f[_0x5947b8(0x234)]=0xa]=_0x5947b8(0x234),_0xbaa64f[_0xbaa64f[_0x5947b8(0x17c)]=0xb]=_0x5947b8(0x17c),_0xbaa64f[_0xbaa64f[_0x5947b8(0x21e)]=0xc]=_0x5947b8(0x21e),_0xbaa64f[_0xbaa64f['captionNotEndsWith']=0xd]='captionNotEndsWith',_0xbaa64f[_0xbaa64f[_0x5947b8(0x26e)]=0xe]=_0x5947b8(0x26e),_0xbaa64f[_0xbaa64f[_0x5947b8(0x3a6)]=0xf]=_0x5947b8(0x3a6),_0xbaa64f[_0xbaa64f['dateBetween']=0x10]=_0x5947b8(0x1ee),_0xbaa64f[_0xbaa64f['dateEqual']=0x11]=_0x5947b8(0x40c),_0xbaa64f[_0xbaa64f['dateNewerThan']=0x12]='dateNewerThan',_0xbaa64f[_0xbaa64f[_0x5947b8(0x25a)]=0x13]=_0x5947b8(0x25a),_0xbaa64f[_0xbaa64f[_0x5947b8(0x1dd)]=0x14]=_0x5947b8(0x1dd),_0xbaa64f[_0xbaa64f[_0x5947b8(0x1f0)]=0x15]='dateNotEqual',_0xbaa64f[_0xbaa64f[_0x5947b8(0x37a)]=0x16]=_0x5947b8(0x37a),_0xbaa64f[_0xbaa64f[_0x5947b8(0x3bf)]=0x17]='dateOlderThanOrEqual',_0xbaa64f[_0xbaa64f[_0x5947b8(0x19f)]=0x18]=_0x5947b8(0x19f),_0xbaa64f[_0xbaa64f[_0x5947b8(0x13f)]=0x19]='lastQuarter',_0xbaa64f[_0xbaa64f['lastWeek']=0x1a]=_0x5947b8(0x304),_0xbaa64f[_0xbaa64f[_0x5947b8(0x1ac)]=0x1b]='lastYear',_0xbaa64f[_0xbaa64f['M1']=0x1c]='M1',_0xbaa64f[_0xbaa64f['M10']=0x1d]=_0x5947b8(0x1f2),_0xbaa64f[_0xbaa64f['M11']=0x1e]=_0x5947b8(0x319),_0xbaa64f[_0xbaa64f['M12']=0x1f]=_0x5947b8(0x13c),_0xbaa64f[_0xbaa64f['M2']=0x20]='M2',_0xbaa64f[_0xbaa64f['M3']=0x21]='M3',_0xbaa64f[_0xbaa64f['M4']=0x22]='M4',_0xbaa64f[_0xbaa64f['M5']=0x23]='M5',_0xbaa64f[_0xbaa64f['M6']=0x24]='M6',_0xbaa64f[_0xbaa64f['M7']=0x25]='M7',_0xbaa64f[_0xbaa64f['M8']=0x26]='M8',_0xbaa64f[_0xbaa64f['M9']=0x27]='M9',_0xbaa64f[_0xbaa64f[_0x5947b8(0x2aa)]=0x28]=_0x5947b8(0x2aa),_0xbaa64f[_0xbaa64f[_0x5947b8(0x423)]=0x29]=_0x5947b8(0x423),_0xbaa64f[_0xbaa64f['nextWeek']=0x2a]=_0x5947b8(0x240),_0xbaa64f[_0xbaa64f[_0x5947b8(0x375)]=0x2b]=_0x5947b8(0x375),_0xbaa64f[_0xbaa64f[_0x5947b8(0x33b)]=0x2c]='percent',_0xbaa64f[_0xbaa64f['Q1']=0x2d]='Q1',_0xbaa64f[_0xbaa64f['Q2']=0x2e]='Q2',_0xbaa64f[_0xbaa64f['Q3']=0x2f]='Q3',_0xbaa64f[_0xbaa64f['Q4']=0x30]='Q4',_0xbaa64f[_0xbaa64f[_0x5947b8(0x3e3)]=0x31]='sum',_0xbaa64f[_0xbaa64f['thisMonth']=0x32]=_0x5947b8(0x195),_0xbaa64f[_0xbaa64f[_0x5947b8(0x147)]=0x33]=_0x5947b8(0x147),_0xbaa64f[_0xbaa64f[_0x5947b8(0x1e4)]=0x34]=_0x5947b8(0x1e4),_0xbaa64f[_0xbaa64f[_0x5947b8(0x390)]=0x35]=_0x5947b8(0x390),_0xbaa64f[_0xbaa64f[_0x5947b8(0x40b)]=0x36]=_0x5947b8(0x40b),_0xbaa64f[_0xbaa64f[_0x5947b8(0x436)]=0x37]=_0x5947b8(0x436),_0xbaa64f[_0xbaa64f[_0x5947b8(0x235)]=0x38]=_0x5947b8(0x235),_0xbaa64f[_0xbaa64f[_0x5947b8(0x34c)]=0x39]=_0x5947b8(0x34c),_0xbaa64f[_0xbaa64f['valueEqual']=0x3a]='valueEqual',_0xbaa64f[_0xbaa64f[_0x5947b8(0x3e0)]=0x3b]=_0x5947b8(0x3e0),_0xbaa64f[_0xbaa64f[_0x5947b8(0x178)]=0x3c]=_0x5947b8(0x178),_0xbaa64f[_0xbaa64f[_0x5947b8(0x3ec)]=0x3d]=_0x5947b8(0x3ec),_0xbaa64f[_0xbaa64f[_0x5947b8(0x14b)]=0x3e]=_0x5947b8(0x14b),_0xbaa64f[_0xbaa64f[_0x5947b8(0x1c1)]=0x3f]='valueNotBetween',_0xbaa64f[_0xbaa64f[_0x5947b8(0x198)]=0x40]=_0x5947b8(0x198),_0xbaa64f[_0xbaa64f[_0x5947b8(0x43f)]=0x41]=_0x5947b8(0x43f),_0xbaa64f[_0xbaa64f[_0x5947b8(0x22c)]=0x42]=_0x5947b8(0x22c),_0xbaa64f;}({}),y=function(_0x560e62){const _0x415659=_0x44a51f;return _0x560e62[_0x560e62[_0x415659(0x200)]=0x1]='compact',_0x560e62[_0x560e62[_0x415659(0x3f4)]=0x2]=_0x415659(0x3f4),_0x560e62[_0x560e62[_0x415659(0x1b5)]=0x3]=_0x415659(0x1b5),_0x560e62;}({}),b=function(_0x5407fa){const _0x1758e5=_0x44a51f;return _0x5407fa[_0x5407fa['top']=0x1]=_0x1758e5(0x433),_0x5407fa[_0x5407fa['bottom']=0x2]=_0x1758e5(0x16b),_0x5407fa;}({}),ee=function(_0x5872de){const _0x129af5=_0x44a51f;return _0x5872de[_0x129af5(0x28b)]=_0x129af5(0x28b),_0x5872de[_0x129af5(0x136)]=_0x129af5(0x136),_0x5872de;}({}),te=function(_0x6afa18){const _0x2ee3b9=_0x44a51f;return _0x6afa18[_0x6afa18[_0x2ee3b9(0x163)]=0x1]=_0x2ee3b9(0x163),_0x6afa18[_0x6afa18[_0x2ee3b9(0x223)]=0x2]=_0x2ee3b9(0x223),_0x6afa18[_0x6afa18[_0x2ee3b9(0x132)]=0x3]='dateGroupField',_0x6afa18[_0x6afa18[_0x2ee3b9(0x451)]=0x4]=_0x2ee3b9(0x451),_0x6afa18[_0x6afa18[_0x2ee3b9(0x270)]=0x5]=_0x2ee3b9(0x270),_0x6afa18;}({}),ne=function(_0x160ce2){const _0x535db8=_0x44a51f;return _0x160ce2['Legacy']=_0x535db8(0x2a1),_0x160ce2[_0x535db8(0x2d8)]=_0x535db8(0x1e6),_0x160ce2;}({}),re=function(_0x27f793){const _0x1ee36c=_0x44a51f;return _0x27f793[_0x1ee36c(0x43b)]=_0x1ee36c(0x3ad),_0x27f793[_0x1ee36c(0x13e)]=_0x1ee36c(0x47b),_0x27f793[_0x1ee36c(0x362)]=_0x1ee36c(0x35b),_0x27f793['Day']=_0x1ee36c(0x149),_0x27f793[_0x1ee36c(0x146)]=_0x1ee36c(0x313),_0x27f793[_0x1ee36c(0x413)]=_0x1ee36c(0x1be),_0x27f793[_0x1ee36c(0x341)]=_0x1ee36c(0x2b7),_0x27f793;}({}),ie=function(_0x3c023b){const _0x50ea88=_0x44a51f;return _0x3c023b['Minute']='minute',_0x3c023b['Hour']=_0x50ea88(0x313),_0x3c023b[_0x50ea88(0x16d)]=_0x50ea88(0x273),_0x3c023b[_0x50ea88(0x301)]=_0x50ea88(0x432),_0x3c023b['Month']=_0x50ea88(0x35b),_0x3c023b[_0x50ea88(0x188)]=_0x50ea88(0x20b),_0x3c023b[_0x50ea88(0x13e)]=_0x50ea88(0x47b),_0x3c023b['Year']=_0x50ea88(0x3ad),_0x3c023b[_0x50ea88(0x1ed)]=_0x50ea88(0x144),_0x3c023b[_0x50ea88(0x3ca)]=_0x50ea88(0x2c7),_0x3c023b['YearMonthDate']=_0x50ea88(0x120),_0x3c023b;}({}),ae=function(_0x5dd31a){const _0x181c85=_0x44a51f;return _0x5dd31a['Member']=_0x181c85(0x2df),_0x5dd31a['Condition']=_0x181c85(0x472),_0x5dd31a['Value']='value',_0x5dd31a;}({});function oe(_0x4a6682){const _0x3aaa71=_0x44a51f;return Number[_0x3aaa71(0x175)](_0x4a6682)&&_0x4a6682>=0x10&&_0x4a6682<=0x17;}function x(_0x183215){const _0x4c6fdd=_0x44a51f;return(_0x183215==null?void 0x0:_0x183215[_0x4c6fdd(0x477)])===0x1&&oe(_0x183215['operator']);}function S(_0x48d51a){const _0x40e1f8=_0x44a51f;if(!x(_0x48d51a)||_0x48d51a[_0x40e1f8(0x1bd)]!==void 0x0&&typeof _0x48d51a['useWholeDay']!=_0x40e1f8(0x43c))throw TypeError('Invalid\x20pivot\x20date\x20filter.');let _0x34c3ff=_0x48d51a[_0x40e1f8(0x1df)]===0x10||_0x48d51a['operator']===0x14,_0x265563=_0x34c3ff?_0x48d51a['expected']:[_0x48d51a['expected']];if(!Array[_0x40e1f8(0x30b)](_0x265563)||_0x265563[_0x40e1f8(0x15c)]!==(_0x34c3ff?0x2:0x1)||_0x265563[_0x40e1f8(0x3f5)](_0x178074=>typeof _0x178074!=_0x40e1f8(0x26d)||!Number[_0x40e1f8(0x377)](_0x178074))||_0x34c3ff&&_0x265563[0x0]>_0x265563[0x1])throw RangeError('Pivot\x20date\x20operands\x20must\x20be\x20finite\x20and\x20ordered.');let _0x120f2f=_0x48d51a[_0x40e1f8(0x1bd)]===!0x0,_0x1910a0=_0x120f2f?Math[_0x40e1f8(0x311)](_0x265563[0x0]):_0x265563[0x0],_0x1bb358=_0x120f2f?Math[_0x40e1f8(0x311)](_0x265563[0x1]):_0x265563[0x1],_0x4e0e3c=_0x48d51a[_0x40e1f8(0x1df)];return _0x630362=>{const _0x5261b9=_0x40e1f8;if(!Number[_0x5261b9(0x377)](_0x630362))return!0x1;let _0x5c4074=_0x120f2f?Math['floor'](_0x630362):_0x630362;switch(_0x4e0e3c){case 0x10:return _0x5c4074>=_0x1910a0&&_0x5c4074<=_0x1bb358;case 0x14:return _0x5c4074<_0x1910a0||_0x5c4074>_0x1bb358;case 0x11:return _0x5c4074===_0x1910a0;case 0x15:return _0x5c4074!==_0x1910a0;case 0x12:return _0x5c4074>_0x1910a0;case 0x13:return _0x5c4074>=_0x1910a0;case 0x16:return _0x5c4074<_0x1910a0;case 0x17:return _0x5c4074<=_0x1910a0;default:return!0x1;}};}function C(_0x507df7){const _0x3c72ce=_0x44a51f;return typeof _0x507df7=='object'&&!!_0x507df7&&!Array[_0x3c72ce(0x30b)](_0x507df7)&&'v'in _0x507df7&&typeof _0x507df7['v']=='number'&&'f'in _0x507df7&&typeof _0x507df7['f']=='string';}function w(_0x4f1a35){const _0x49c445=_0x44a51f;return typeof _0x4f1a35==_0x49c445(0x3e4)&&!!_0x4f1a35&&!Array[_0x49c445(0x30b)](_0x4f1a35)&&_0x49c445(0x2fa)in _0x4f1a35&&typeof _0x4f1a35[_0x49c445(0x2fa)]==_0x49c445(0x32b);}function se(_0x578b81){const _0x4b40cb=_0x44a51f;let {operator:_0x49753f,expected:_0xf9547a}=_0x578b81,_0x4e7f2c=String(Array['isArray'](_0xf9547a)?_0xf9547a[0x0]:_0xf9547a),_0x4adecf=Array[_0x4b40cb(0x30b)](_0xf9547a)?String(_0xf9547a[0x1]):_0x4e7f2c;return _0x4475ee=>{const _0x550743=_0x4b40cb;switch(_0x49753f){case 0x1:return _0x4475ee[_0x550743(0x344)](_0x4e7f2c);case 0x2:return _0x4475ee>=_0x4e7f2c&&_0x4475ee<=_0x4adecf;case 0x3:return _0x4475ee['includes'](_0x4e7f2c);case 0x4:return _0x4475ee['endsWith'](_0x4e7f2c);case 0x5:return _0x4475ee===_0x4e7f2c;case 0x6:return _0x4475ee>_0x4e7f2c;case 0x7:return _0x4475ee>=_0x4e7f2c;case 0x8:return _0x4475ee<_0x4e7f2c;case 0x9:return _0x4475ee<=_0x4e7f2c;case 0xa:return!_0x4475ee[_0x550743(0x344)](_0x4e7f2c);case 0xb:return _0x4475ee<_0x4e7f2c||_0x4475ee>_0x4adecf;case 0xc:return!_0x4475ee['includes'](_0x4e7f2c);case 0xd:return!_0x4475ee[_0x550743(0x2b3)](_0x4e7f2c);case 0xe:return _0x4475ee!==_0x4e7f2c;default:throw TypeError(_0x550743(0x20f));}};}function ce(_0x2f03c1){switch(_0x2f03c1){case 0xf:case 0x2c:case 0x39:case 0x3a:case 0x3b:case 0x3c:case 0x3d:case 0x3e:case 0x3f:case 0x40:return!0x0;default:return!0x1;}}function le(_0x14cba5,_0x41f93c,_0x1ac52c){const _0x4a572e=_0x44a51f;let _0x54f6d4=Math[_0x4a572e(0x278)](_0x14cba5[_0x4a572e(0x15c)],Math[_0x4a572e(0x274)](0x0,Math[_0x4a572e(0x487)](_0x41f93c)));if(_0x54f6d4===0x0)return;if(_0x54f6d4===_0x14cba5[_0x4a572e(0x15c)]){let _0xb3cc3d=_0x14cba5[0x0];for(let _0x37adab=0x1;_0x37adab<_0x14cba5[_0x4a572e(0x15c)];_0x37adab++)_0xb3cc3d=_0x1ac52c?Math['max'](_0xb3cc3d,_0x14cba5[_0x37adab]):Math[_0x4a572e(0x278)](_0xb3cc3d,_0x14cba5[_0x37adab]);return _0xb3cc3d;}let _0x2ea59a=[],_0x113578=_0xcee06=>{const _0x2973ee=_0x4a572e;_0x2ea59a[_0x2973ee(0x1d6)](_0xcee06);let _0x28fcdd=_0x2ea59a['length']-0x1;for(;_0x28fcdd>0x0;){let _0x2a7e4d=Math['floor']((_0x28fcdd-0x1)/0x2);if(_0x2ea59a[_0x2a7e4d]<=_0x2ea59a[_0x28fcdd])break;[_0x2ea59a[_0x2a7e4d],_0x2ea59a[_0x28fcdd]]=[_0x2ea59a[_0x28fcdd],_0x2ea59a[_0x2a7e4d]],_0x28fcdd=_0x2a7e4d;}},_0x6fb7e0=_0x2e7d3d=>{const _0x3146a1=_0x4a572e;_0x2ea59a[0x0]=_0x2e7d3d;let _0x82adf9=0x0;for(;;){let _0x457ad7=_0x82adf9*0x2+0x1,_0x4e0116=_0x457ad7+0x1,_0x1c99fe=_0x82adf9;if(_0x457ad7<_0x2ea59a[_0x3146a1(0x15c)]&&_0x2ea59a[_0x457ad7]<_0x2ea59a[_0x1c99fe]&&(_0x1c99fe=_0x457ad7),_0x4e0116<_0x2ea59a['length']&&_0x2ea59a[_0x4e0116]<_0x2ea59a[_0x1c99fe]&&(_0x1c99fe=_0x4e0116),_0x1c99fe===_0x82adf9)break;[_0x2ea59a[_0x82adf9],_0x2ea59a[_0x1c99fe]]=[_0x2ea59a[_0x1c99fe],_0x2ea59a[_0x82adf9]],_0x82adf9=_0x1c99fe;}};for(let _0x57d170 of _0x14cba5){let _0x2714ee=_0x1ac52c?-_0x57d170:_0x57d170;_0x2ea59a[_0x4a572e(0x15c)]<_0x54f6d4?_0x113578(_0x2714ee):_0x2714ee>_0x2ea59a[0x0]&&_0x6fb7e0(_0x2714ee);}return _0x1ac52c?-_0x2ea59a[0x0]:_0x2ea59a[0x0];}function ue(_0xc11274){const _0xd6500=_0x44a51f;let {operator:_0x538d50,expected:_0x54fd8b}=_0xc11274;switch(_0x538d50){case 0x39:return _0x4c5925=>_0x4c5925>=_0x54fd8b[0x0]&&_0x4c5925<=_0x54fd8b[0x1];case 0x3a:return _0x2785d5=>_0x2785d5===_0x54fd8b;case 0x3b:return _0x43991f=>_0x43991f>_0x54fd8b;case 0x3c:return _0x4cdea5=>_0x4cdea5>=_0x54fd8b;case 0x3d:return _0x312ec6=>_0x312ec6<_0x54fd8b;case 0x3e:return _0x5efc4b=>_0x5efc4b<=_0x54fd8b;case 0x3f:return _0x660a2b=>_0x660a2b<_0x54fd8b[0x0]||_0x660a2b>_0x54fd8b[0x1];case 0x40:return _0x557d0f=>_0x557d0f!==_0x54fd8b;default:return console[_0xd6500(0x2fa)](_0xd6500(0x133)+_0x538d50),()=>!0x0;}}function de(_0x47072f){const _0x464b8d=_0x44a51f;let _0xa8910e=new Set(),_0x4a4e1e=_0x47072f[_0x464b8d(0x34b)];return(_0x4a4e1e==null?void 0x0:_0x4a4e1e[_0x464b8d(0x477)])===0x4?(he({'type':0x4,'selection':_0x4a4e1e[_0x464b8d(0x2a2)]})&&_0xa8910e[_0x464b8d(0x207)](_0x464b8d(0x2df)),_0x4a4e1e[_0x464b8d(0x2cf)]!==void 0x0&&_0xa8910e[_0x464b8d(0x207)]('condition')):_0x4a4e1e&&E(_0x4a4e1e)&&_0xa8910e[_0x464b8d(0x207)](_0x4a4e1e[_0x464b8d(0x477)]===0x1?_0x464b8d(0x472):_0x464b8d(0x2df)),_0x47072f[_0x464b8d(0x46d)]&&_0xa8910e[_0x464b8d(0x207)](_0x464b8d(0x472)),_0xa8910e;}function fe(_0xd1fec8){const _0x2a9025=_0x44a51f;let _0xa0fbbb=new Map();for(let _0x22ff99 of Object[_0x2a9025(0x2f4)](_0xd1fec8[_0x2a9025(0x249)])){var _0x58f95f;let _0x3787cb=_0xa0fbbb[_0x2a9025(0x245)](_0x22ff99[_0x2a9025(0x384)])??new Set();if(de(_0x22ff99)[_0x2a9025(0x26b)](_0x4b7c9c=>_0x3787cb['add'](_0x4b7c9c)),(_0x58f95f=_0xd1fec8['valueFilter'])!=null&&_0x58f95f[_0x2a9025(0x3f5)](_0x206298=>_0x206298['fieldId']===_0x22ff99['id'])&&_0x3787cb[_0x2a9025(0x207)](_0x2a9025(0x1d0)),_0x3787cb[_0x2a9025(0x322)]>0x1)return!0x0;_0xa0fbbb['set'](_0x22ff99[_0x2a9025(0x384)],_0x3787cb);}return!0x1;}function pe(_0x3ea076){const _0x273c7e=_0x44a51f;if(_0x3ea076==null)return{'type':_0x5269ba['Blank']};if(typeof _0x3ea076==_0x273c7e(0x32b))return{'type':_0x5269ba['String'],'value':_0x3ea076};if(typeof _0x3ea076==_0x273c7e(0x26d)){if(!Number[_0x273c7e(0x377)](_0x3ea076))throw RangeError(_0x273c7e(0x410));return{'type':_0x5269ba[_0x273c7e(0x19d)],'value':_0x3ea076};}if(typeof _0x3ea076==_0x273c7e(0x43c))return{'type':_0x5269ba[_0x273c7e(0x15e)],'value':_0x3ea076};if(w(_0x3ea076))return{'type':_0x5269ba[_0x273c7e(0x201)],'value':_0x3ea076['error']};if(C(_0x3ea076)){if(!Number['isFinite'](_0x3ea076['v']))throw RangeError(_0x273c7e(0x15f));return{'type':_0x5269ba[_0x273c7e(0x301)],'value':_0x3ea076['v']};}throw TypeError(_0x273c7e(0x342));}function me(_0x3e23f5){const _0x32d2bc=_0x44a51f;let _0x18fa5d=_0x3e23f5;if(!O(_0x18fa5d)||_0x18fa5d[_0x32d2bc(0x477)]!==0x4)throw TypeError('Invalid\x20pivot\x20record\x20filter.');let {selection:_0x613239,dateRange:_0x3221cb}=_0x18fa5d;if(O(_0x3221cb)&&_0x3221cb['useWholeDay']!==void 0x0&&typeof _0x3221cb[_0x32d2bc(0x1bd)]!=_0x32d2bc(0x43c))throw TypeError(_0x32d2bc(0x418));if(_0x613239!==void 0x0){if(!O(_0x613239)||typeof _0x613239[_0x32d2bc(0x45a)]!=_0x32d2bc(0x32b))throw TypeError(_0x32d2bc(0x158));if(_0x613239[_0x32d2bc(0x45a)]===_0x9ca4ef['All']){if(_0x32d2bc(0x2f4)in _0x613239)throw TypeError(_0x32d2bc(0x21a));}else{if(_0x613239['mode']!==_0x9ca4ef[_0x32d2bc(0x45f)]&&_0x613239[_0x32d2bc(0x45a)]!==_0x9ca4ef[_0x32d2bc(0x41c)]||!Array[_0x32d2bc(0x30b)](_0x613239[_0x32d2bc(0x2f4)]))throw TypeError(_0x32d2bc(0x158));else _0x613239['values']['forEach'](_0x4576c7);}}if(_0x3221cb!==void 0x0&&(!O(_0x3221cb)||typeof _0x3221cb[_0x32d2bc(0x22e)]!=_0x32d2bc(0x26d)||typeof _0x3221cb[_0x32d2bc(0x434)]!=_0x32d2bc(0x26d)||!Number['isFinite'](_0x3221cb[_0x32d2bc(0x22e)])||!Number[_0x32d2bc(0x377)](_0x3221cb[_0x32d2bc(0x434)])||_0x3221cb[_0x32d2bc(0x22e)]>_0x3221cb[_0x32d2bc(0x434)]))throw RangeError('Invalid\x20pivot\x20date\x20range.');}function T(_0x47b8eb){const _0x101cc7=_0x44a51f;return(_0x47b8eb==null?void 0x0:_0x47b8eb[_0x101cc7(0x477)])===0x4;}function E(_0xdc8ab8){const _0x1cc671=_0x44a51f;return T(_0xdc8ab8)?(me(_0xdc8ab8),he(_0xdc8ab8)):_0xdc8ab8[_0x1cc671(0x477)]!==0x3||_0xdc8ab8[_0x1cc671(0x3c7)]!==!0x0;}function he(_0x4474ea){const _0x38ba63=_0x44a51f;var _0x3299ab,_0x3ac087;return _0x4474ea[_0x38ba63(0x2cf)]!==void 0x0||((_0x3299ab=_0x4474ea['selection'])==null?void 0x0:_0x3299ab[_0x38ba63(0x45a)])===_0x9ca4ef[_0x38ba63(0x45f)]||((_0x3ac087=_0x4474ea[_0x38ba63(0x2a2)])==null?void 0x0:_0x3ac087[_0x38ba63(0x45a)])===_0x9ca4ef[_0x38ba63(0x41c)]&&_0x4474ea[_0x38ba63(0x2a2)][_0x38ba63(0x2f4)]['length']>0x0;}function D(_0x4244aa){const _0x53ab99=_0x44a51f;if(_0x4244aa)switch(_0x4244aa[_0x53ab99(0x477)]){case 0x4:return me(_0x4244aa),{'type':0x4,..._0x4244aa[_0x53ab99(0x2a2)]===void 0x0?null:{'selection':_0x4244aa[_0x53ab99(0x2a2)][_0x53ab99(0x45a)]===_0x9ca4ef[_0x53ab99(0x31e)]?{'mode':_0x9ca4ef[_0x53ab99(0x31e)]}:{'mode':_0x4244aa[_0x53ab99(0x2a2)]['mode'],'values':_0x4244aa[_0x53ab99(0x2a2)][_0x53ab99(0x2f4)]['map'](_0x58278c=>_0x58278c[_0x53ab99(0x477)]===_0x5269ba[_0x53ab99(0x3b6)]?{'type':_0x5269ba[_0x53ab99(0x3b6)]}:{..._0x58278c})}},..._0x4244aa['dateRange']===void 0x0?null:{'dateRange':{..._0x4244aa[_0x53ab99(0x2cf)]}}};case 0x3:return{..._0x4244aa,'list':_0x4244aa[_0x53ab99(0x25e)][_0x53ab99(0x309)]()};case 0x1:return(_0x4244aa[_0x53ab99(0x1bd)]!==void 0x0||oe(_0x4244aa['operator']))&&S(_0x4244aa),{..._0x4244aa,'expected':Array[_0x53ab99(0x30b)](_0x4244aa['expected'])?_0x4244aa['expected'][_0x53ab99(0x309)]():_0x4244aa[_0x53ab99(0x353)]};case 0x2:return{..._0x4244aa,'expected':Array[_0x53ab99(0x30b)](_0x4244aa[_0x53ab99(0x353)])?_0x4244aa['expected'][_0x53ab99(0x309)]():_0x4244aa[_0x53ab99(0x353)]};default:throw TypeError(_0x53ab99(0x271));}}function O(_0x19268d){const _0xf07e98=_0x44a51f;return typeof _0x19268d=='object'&&!!_0x19268d&&!Array[_0xf07e98(0x30b)](_0x19268d);}let ge=function(_0x4bf417){const _0x1df6b8=_0x44a51f;return _0x4bf417[_0x4bf417[_0x1df6b8(0x381)]=0x0]=_0x1df6b8(0x381),_0x4bf417[_0x4bf417[_0x1df6b8(0x3c2)]=0x1]='SetSubtotalType',_0x4bf417[_0x4bf417[_0x1df6b8(0x15d)]=0x2]=_0x1df6b8(0x15d),_0x4bf417[_0x4bf417[_0x1df6b8(0x36b)]=0x3]=_0x1df6b8(0x36b),_0x4bf417[_0x4bf417[_0x1df6b8(0x173)]=0x4]=_0x1df6b8(0x173),_0x4bf417[_0x4bf417['SetSortInfo']=0x5]=_0x1df6b8(0x3c6),_0x4bf417[_0x4bf417['UpdateFieldPosition']=0x6]=_0x1df6b8(0x192),_0x4bf417[_0x4bf417['UpdateValuePosition']=0x7]=_0x1df6b8(0x3b5),_0x4bf417[_0x4bf417['SetOptions']=0x8]=_0x1df6b8(0x17e),_0x4bf417[_0x4bf417['SetFieldFormat']=0x9]='SetFieldFormat',_0x4bf417[_0x4bf417['SetCollapse']=0xa]='SetCollapse',_0x4bf417[_0x4bf417[_0x1df6b8(0x251)]=0xb]=_0x1df6b8(0x251),_0x4bf417[_0x4bf417[_0x1df6b8(0x2f3)]=0xc]=_0x1df6b8(0x2f3),_0x4bf417[_0x4bf417[_0x1df6b8(0x19e)]=0xd]=_0x1df6b8(0x19e),_0x4bf417[_0x4bf417['SetShowDataAs']=0xe]=_0x1df6b8(0x286),_0x4bf417;}({}),_e=function(_0x5f12dd){const _0x29d49e=_0x44a51f;return _0x5f12dd[_0x5f12dd['blank']=0x2]='blank',_0x5f12dd[_0x5f12dd['date']=0x4]='date',_0x5f12dd[_0x5f12dd[_0x29d49e(0x23a)]=0x8]=_0x29d49e(0x23a),_0x5f12dd;}({}),ve=function(_0x19d6b4){const _0xb6842c=_0x44a51f;return _0x19d6b4[_0x19d6b4[_0xb6842c(0x489)]=0x1]=_0xb6842c(0x489),_0x19d6b4[_0x19d6b4[_0xb6842c(0x427)]=0x2]=_0xb6842c(0x427),_0x19d6b4[_0x19d6b4[_0xb6842c(0x3d4)]=0x3]=_0xb6842c(0x3d4),_0x19d6b4[_0x19d6b4[_0xb6842c(0x261)]=0x4]='BlankValue',_0x19d6b4[_0x19d6b4[_0xb6842c(0x40e)]=0x5]=_0xb6842c(0x40e),_0x19d6b4[_0x19d6b4[_0xb6842c(0x16a)]=0x6]=_0xb6842c(0x16a),_0x19d6b4[_0x19d6b4[_0xb6842c(0x1e0)]=0x7]=_0xb6842c(0x1e0),_0x19d6b4[_0x19d6b4[_0xb6842c(0x18b)]=0x8]='FilterNoneSortNone',_0x19d6b4[_0x19d6b4[_0xb6842c(0x486)]=0x9]=_0xb6842c(0x486),_0x19d6b4[_0x19d6b4[_0xb6842c(0x420)]=0xa]=_0xb6842c(0x420),_0x19d6b4[_0x19d6b4['Collapse']=0xb]=_0xb6842c(0x36a),_0x19d6b4[_0x19d6b4[_0xb6842c(0x1a8)]=0xc]=_0xb6842c(0x1a8),_0x19d6b4[_0x19d6b4[_0xb6842c(0x34a)]=0xd]=_0xb6842c(0x34a),_0x19d6b4[_0x19d6b4['GrandTotal']=0xe]=_0xb6842c(0x268),_0x19d6b4[_0x19d6b4[_0xb6842c(0x280)]=0xf]=_0xb6842c(0x280),_0x19d6b4;}({});function k(_0x373575){'@babel/helpers - typeof';const _0x34c0c8=_0x44a51f;return k=typeof Symbol==_0x34c0c8(0x20c)&&typeof Symbol['iterator']==_0x34c0c8(0x29e)?function(_0x3492ea){return typeof _0x3492ea;}:function(_0x3f82c9){const _0x372515=_0x34c0c8;return _0x3f82c9&&typeof Symbol==_0x372515(0x20c)&&_0x3f82c9[_0x372515(0x3e2)]===Symbol&&_0x3f82c9!==Symbol['prototype']?_0x372515(0x29e):typeof _0x3f82c9;},k(_0x373575);}function ye(_0x329782,_0x4303df){const _0x288cf6=_0x44a51f;if(k(_0x329782)!=_0x288cf6(0x3e4)||!_0x329782)return _0x329782;var _0x3f48b4;if(typeof Symbol<'u'&&(_0x3f48b4=_0x329782[Symbol['toPrimitive']])!==void 0x0){var _0x4f4134=_0x3f48b4[_0x288cf6(0x2dc)](_0x329782,_0x4303df||_0x288cf6(0x23b));if(k(_0x4f4134)!='object')return _0x4f4134;throw TypeError(_0x288cf6(0x241));}return(_0x4303df==='string'?String:Number)(_0x329782);}function be(_0x333133){const _0x4ffdbb=_0x44a51f;var _0x5b81ef=ye(_0x333133,_0x4ffdbb(0x32b));return k(_0x5b81ef)==_0x4ffdbb(0x29e)?_0x5b81ef:_0x5b81ef+'';}function A(_0x2fec96,_0x564d12,_0x421bce){return(_0x564d12=be(_0x564d12))in _0x2fec96?Object['defineProperty'](_0x2fec96,_0x564d12,{'value':_0x421bce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fec96[_0x564d12]=_0x421bce,_0x2fec96;}function xe(_0x3cd84d){return typeof _0x3cd84d=='number';}var j=class{constructor(){const _0xf9a124=_0x44a51f;A(this,'_sum',0x0),A(this,'_count',0x0),A(this,'_countN',0x0),A(this,_0xf9a124(0x2be),0x1),A(this,_0xf9a124(0x121),0x1/0x0),A(this,_0xf9a124(0x221),-0x1/0x0),A(this,_0xf9a124(0x3b1),0x0);}['getInfo'](){const _0x5994d6=_0x44a51f;return{'sum':this[_0x5994d6(0x3dd)],'count':this[_0x5994d6(0x2e1)],'countN':this[_0x5994d6(0x152)],'product':this[_0x5994d6(0x2be)],'min':this[_0x5994d6(0x121)],'max':this['_max'],'squareSum':this[_0x5994d6(0x3b1)]};}['reset'](){const _0x2f507e=_0x44a51f;this[_0x2f507e(0x3dd)]=0x0,this[_0x2f507e(0x2e1)]=0x0,this['_countN']=0x0,this[_0x2f507e(0x2be)]=0x1,this[_0x2f507e(0x121)]=0x1/0x0,this['_max']=-0x1/0x0,this[_0x2f507e(0x3b1)]=0x0;}[_0x44a51f(0x3cb)](_0x2fd3c7){const _0x37bc29=_0x44a51f;_0x2fd3c7!=null&&(this[_0x37bc29(0x2e1)]+=0x1,xe(_0x2fd3c7)&&(this[_0x37bc29(0x3dd)]+=_0x2fd3c7,this['_countN']+=0x1,this['_product']*=_0x2fd3c7,this[_0x37bc29(0x121)]=Math[_0x37bc29(0x278)](this[_0x37bc29(0x121)],_0x2fd3c7),this[_0x37bc29(0x221)]=Math['max'](this[_0x37bc29(0x221)],_0x2fd3c7),this[_0x37bc29(0x3b1)]+=_0x2fd3c7*_0x2fd3c7));}[_0x44a51f(0x38a)](_0x309741){const _0x5959b6=_0x44a51f;for(let _0x2af8b9 of _0x309741)this[_0x5959b6(0x3dd)]+=_0x2af8b9[_0x5959b6(0x3dd)],this['_count']+=_0x2af8b9[_0x5959b6(0x2e1)],this[_0x5959b6(0x152)]+=_0x2af8b9[_0x5959b6(0x152)],this[_0x5959b6(0x2be)]*=_0x2af8b9[_0x5959b6(0x2be)],this['_min']=Math[_0x5959b6(0x278)](this[_0x5959b6(0x121)],_0x2af8b9['_min']),this['_max']=Math[_0x5959b6(0x274)](this[_0x5959b6(0x221)],_0x2af8b9[_0x5959b6(0x221)]),this['_squareSum']+=_0x2af8b9[_0x5959b6(0x3b1)];}[_0x44a51f(0x404)](_0x4c930f){const _0x4d34fa=_0x44a51f;this[_0x4d34fa(0x3dd)]+=_0x4c930f[_0x4d34fa(0x3e3)],this[_0x4d34fa(0x2e1)]+=_0x4c930f[_0x4d34fa(0x3a6)],this[_0x4d34fa(0x152)]+=_0x4c930f[_0x4d34fa(0x45b)],this[_0x4d34fa(0x2be)]*=_0x4c930f[_0x4d34fa(0x1b8)],this[_0x4d34fa(0x121)]=Math[_0x4d34fa(0x278)](this[_0x4d34fa(0x121)],_0x4c930f['min']),this['_max']=Math[_0x4d34fa(0x274)](this[_0x4d34fa(0x221)],_0x4c930f[_0x4d34fa(0x274)]),this['_squareSum']+=_0x4c930f['squareSum'];}[_0x44a51f(0x415)](_0x5a9e86){const _0x4f008d=_0x44a51f;switch(_0x5a9e86){case 0x9:return this[_0x4f008d(0x3dd)];case 0x2:return this['_count'];case 0x3:return this[_0x4f008d(0x152)];case 0x6:return Number[_0x4f008d(0x377)](this[_0x4f008d(0x2be)])?this[_0x4f008d(0x2be)]:{'errorType':0x2};case 0x5:return this['_countN']>0x0?this[_0x4f008d(0x121)]:0x0;case 0x4:return this[_0x4f008d(0x152)]>0x0?this['_max']:0x0;case 0x1:return this[_0x4f008d(0x152)]>0x0?this['_sum']/this[_0x4f008d(0x152)]:{'errorType':0x1};case 0x7:return this[_0x4f008d(0x152)]>0x1?Math['sqrt'](Math[_0x4f008d(0x274)](0x0,(this[_0x4f008d(0x152)]*this[_0x4f008d(0x3b1)]-this[_0x4f008d(0x3dd)]*this['_sum'])/(this[_0x4f008d(0x152)]*(this[_0x4f008d(0x152)]-0x1)))):{'errorType':0x1};case 0x8:return this[_0x4f008d(0x152)]>0x0?Math[_0x4f008d(0x35a)](Math['max'](0x0,(this[_0x4f008d(0x152)]*this[_0x4f008d(0x3b1)]-this[_0x4f008d(0x3dd)]*this['_sum'])/(this['_countN']*this[_0x4f008d(0x152)]))):{'errorType':0x1};case 0xa:return this[_0x4f008d(0x152)]>0x1?Math[_0x4f008d(0x274)](0x0,(this['_countN']*this[_0x4f008d(0x3b1)]-this[_0x4f008d(0x3dd)]*this['_sum'])/(this[_0x4f008d(0x152)]*(this['_countN']-0x1))):{'errorType':0x1};case 0xb:return this[_0x4f008d(0x152)]>0x0?Math['max'](0x0,(this[_0x4f008d(0x152)]*this['_squareSum']-this[_0x4f008d(0x3dd)]*this[_0x4f008d(0x3dd)])/(this[_0x4f008d(0x152)]*this[_0x4f008d(0x152)])):{'errorType':0x1};}}};function Se(_0x263687){const _0x5cfafd=_0x44a51f;return(_0x263687==null?void 0x0:_0x263687[_0x5cfafd(0x3c5)])??_0x5cfafd(0x2a1);}function M(_0x227709){return _0x227709==null||_0x227709==='';}function N(_0x193197){return _0x193197===0x2||_0x193197===0x1||_0x193197===0x4||_0x193197===0x5;}function P(_0x1efb00){return _0x1efb00===0x2||_0x1efb00===0x1;}function F(_0x399f07,_0x361a62){const _0x41ae59=_0x44a51f;let _0x5edcf8='';switch(_0x361a62){case 0x1:_0x5edcf8=_0x41ae59(0x2ed)+_0x399f07;break;case 0x2:_0x5edcf8=_0x41ae59(0x2b0)+_0x399f07;break;case 0x3:_0x5edcf8=_0x41ae59(0x2b0)+_0x399f07;break;case 0x4:_0x5edcf8='Max\x20of\x20'+_0x399f07;break;case 0x5:_0x5edcf8=_0x41ae59(0x310)+_0x399f07;break;case 0x6:_0x5edcf8=_0x41ae59(0x2d0)+_0x399f07;break;case 0x7:_0x5edcf8=_0x41ae59(0x295)+_0x399f07;break;case 0x8:_0x5edcf8=_0x41ae59(0x252)+_0x399f07;break;case 0x9:_0x5edcf8=_0x41ae59(0x30f)+_0x399f07;break;case 0xa:_0x5edcf8=_0x41ae59(0x229)+_0x399f07;break;case 0xb:_0x5edcf8=_0x41ae59(0x233)+_0x399f07;break;default:_0x5edcf8=_0x399f07;}return _0x5edcf8;}function Ce(_0x106e2e,_0x3c5f7c,_0x2940c5){const _0x576536=_0x44a51f;let _0x4ce918=Object[_0x576536(0x124)][_0x576536(0x370)]['call'](_0x106e2e,_0x3c5f7c)?_0x106e2e[_0x3c5f7c]:void 0x0,_0xa8a64f=typeof _0x4ce918=='boolean';return _0x2940c5===void 0x0?_0xa8a64f?_0x4ce918:!0x1:_0xa8a64f?_0x4ce918:_0x4ce918!=null&&Object['prototype'][_0x576536(0x370)][_0x576536(0x2dc)](_0x4ce918,_0x2940c5)?_0x4ce918[_0x2940c5]:!0x1;}function I(_0x5d0451){const _0xb9a3cf=_0x44a51f;return _0x5d0451[_0xb9a3cf(0x477)]===0x3;}function we(_0x10708c){return _0x10708c['type']===0x1;}function L(_0x5a3333){const _0xc8fe7f=_0x44a51f;let _0x46777e='';for(let _0x3a1370=0x0;_0x3a1370<_0x5a3333;_0x3a1370++){let _0x2f57f6=Math[_0xc8fe7f(0x311)](Math[_0xc8fe7f(0x21c)]()*0x10);_0x46777e+=_0x2f57f6[_0xc8fe7f(0x186)](0x10);}return _0x46777e[_0xc8fe7f(0x2a3)]();}function Te(_0x1af483,_0x6f1374){const _0x56b8fe=_0x44a51f;let _0xc4ecc4=0x0,_0x38e8c8=0x0,_0x5d2132=[];for(;_0xc4ecc4<_0x1af483[_0x56b8fe(0x15c)]&&_0x38e8c8<_0x6f1374[_0x56b8fe(0x15c)];)_0x1af483[_0xc4ecc4]===_0x6f1374[_0x38e8c8]?(_0x5d2132[_0x56b8fe(0x1d6)](_0x1af483[_0xc4ecc4]),_0xc4ecc4++,_0x38e8c8++):_0x1af483[_0xc4ecc4]<_0x6f1374[_0x38e8c8]?_0xc4ecc4++:_0x38e8c8++;return _0x5d2132;}function Ee(_0x4e0aaf){const _0x27ccfe=_0x44a51f;if(_0x4e0aaf[_0x27ccfe(0x15c)]===0x0)return[];if(_0x4e0aaf[_0x27ccfe(0x15c)]===0x1)return _0x4e0aaf[0x0];let _0x18f108=_0x4e0aaf[0x0];for(let _0x349189=0x1;_0x349189<_0x4e0aaf[_0x27ccfe(0x15c)];_0x349189++)_0x18f108=Te(_0x18f108,_0x4e0aaf[_0x349189]);return _0x18f108;}function R(_0x32ae97,_0x54c1d3,_0x58c301){const _0xff2316=_0x44a51f;_0x32ae97[_0xff2316(0x369)]||={},_0x54c1d3&&!_0x54c1d3[_0xff2316(0x369)]&&(_0x54c1d3[_0xff2316(0x369)]={});for(let _0x6b3a9f in _0x58c301){let _0x3a984b=_0x58c301[_0x6b3a9f][_0xff2316(0x392)],_0xe60e2e=_0x32ae97[_0xff2316(0x180)][_0x6b3a9f],_0x30c242=_0xe60e2e[_0xff2316(0x365)](),{sum:_0x298e0e,count:_0x53aee9,countN:_0x33c9ad,product:_0x194b82,min:_0x47412f,max:_0x157fb6,squareSum:_0x612fc}=_0x30c242;for(let _0x18c778 of _0x3a984b)_0x30c242[_0x18c778]=_0xe60e2e['getSubtotal'](_0x18c778);_0x32ae97[_0xff2316(0x369)][_0x6b3a9f]=_0x30c242,_0x54c1d3&&(_0x54c1d3[_0xff2316(0x180)][_0x6b3a9f]||(_0x54c1d3[_0xff2316(0x180)][_0x6b3a9f]=new j()),_0x54c1d3[_0xff2316(0x180)][_0x6b3a9f][_0xff2316(0x404)]({'sum':_0x298e0e,'count':_0x53aee9,'countN':_0x33c9ad,'product':_0x194b82,'min':_0x47412f,'max':_0x157fb6,'squareSum':_0x612fc}));}}function De(_0x56c151){const _0x5a876f=_0x44a51f;let _0x1c90bb=0x1,_0xc99b8d;return _0x56c151?(I(_0x56c151)?(_0x56c151[_0x5a876f(0x25e)]['length']===0x1&&(_0x1c90bb=0x3,_0xc99b8d=_0x56c151[_0x5a876f(0x25e)][0x0]),_0x1c90bb=_0x56c151['isAll']===!0x0?0x1:0x2):T(_0x56c151)&&(_0x1c90bb=E(_0x56c151)?0x2:0x1),{'value':_0xc99b8d,'status':_0x1c90bb}):{'status':_0x1c90bb,'value':_0xc99b8d};}function z(_0xac3288,_0x3b5fc4,_0x2045f9){const _0x29ef00=_0x44a51f;let _0x1c868c=!0x1;if(_0xac3288&&(I(_0xac3288)?_0x1c868c=_0xac3288[_0x29ef00(0x25e)][_0x29ef00(0x15c)]>0x0&&_0xac3288[_0x29ef00(0x3c7)]!==!0x0:we(_0xac3288)?_0x1c868c=!0x0:T(_0xac3288)&&(_0x1c868c=E(_0xac3288)),_0x2045f9&&(_0x1c868c=!0x0)),_0x1c868c)switch(_0x3b5fc4==null?void 0x0:_0x3b5fc4['type']){case 0x1:return 0x6;case 0x2:return 0x7;default:return 0x5;}else switch(_0x3b5fc4==null?void 0x0:_0x3b5fc4[_0x29ef00(0x477)]){case 0x1:return 0x9;case 0x2:return 0xa;default:return 0x8;}}function Oe(_0xf05fc9,_0x4304cf,_0x2f256f){let _0x29eaa0=_0x4304cf||0x0,_0x1124fd=_0xf05fc9['join'](',');return _0x2f256f?_0x1124fd+'-'+String(_0x29eaa0):_0x1124fd;}var ke=class{constructor(){const _0x57a516=_0x44a51f;A(this,_0x57a516(0x426),void 0x0),this[_0x57a516(0x426)]=[];}[_0x44a51f(0x1d6)](_0xa271d2){const _0xb376ea=_0x44a51f;this[_0xb376ea(0x426)]['push'](_0xa271d2),this[_0xb376ea(0x45d)]();}[_0x44a51f(0x20e)](){const _0x335b54=_0x44a51f;if(this[_0x335b54(0x322)]()===0x0)return;let _0x4e7f6f=this[_0x335b54(0x426)][0x0],_0x9d0b60=this[_0x335b54(0x426)][_0x335b54(0x20e)]();return this['size']()>0x0&&_0x9d0b60&&(this[_0x335b54(0x426)][0x0]=_0x9d0b60,this[_0x335b54(0x3ba)]()),_0x4e7f6f;}[_0x44a51f(0x322)](){const _0x2e8e5c=_0x44a51f;return this[_0x2e8e5c(0x426)]['length'];}[_0x44a51f(0x45d)](){const _0x5c4d32=_0x44a51f;let _0x223166=this[_0x5c4d32(0x322)]()-0x1;for(;_0x223166>0x0;){let _0x588a37=Math['floor']((_0x223166-0x1)/0x2);if(this[_0x5c4d32(0x426)][_0x588a37][0x0]<=this[_0x5c4d32(0x426)][_0x223166][0x0])break;[this[_0x5c4d32(0x426)][_0x588a37],this['_heap'][_0x223166]]=[this[_0x5c4d32(0x426)][_0x223166],this['_heap'][_0x588a37]],_0x223166=_0x588a37;}}['_bubbleDown'](){const _0x4caf43=_0x44a51f;let _0x18d943=0x0,_0x49920b=this[_0x4caf43(0x322)](),_0x2e7e7d=this[_0x4caf43(0x426)][0x0];for(;;){let _0x572b2b=0x2*_0x18d943+0x1,_0x43374c=0x2*_0x18d943+0x2,_0x1eedba,_0x3ba9dc,_0xe9e748=null;if(_0x572b2b<_0x49920b&&(_0x1eedba=this[_0x4caf43(0x426)][_0x572b2b],_0x1eedba[0x0]<_0x2e7e7d[0x0]&&(_0xe9e748=_0x572b2b)),_0x43374c<_0x49920b&&(_0x3ba9dc=this[_0x4caf43(0x426)][_0x43374c],(_0xe9e748===null&&_0x3ba9dc[0x0]<_0x2e7e7d[0x0]||_0xe9e748!==null&&_0x3ba9dc[0x0]<_0x1eedba[0x0])&&(_0xe9e748=_0x43374c)),_0xe9e748===null)break;[this[_0x4caf43(0x426)][_0x18d943],this['_heap'][_0xe9e748]]=[this[_0x4caf43(0x426)][_0xe9e748],this[_0x4caf43(0x426)][_0x18d943]],_0x18d943=_0xe9e748;}}};function Ae(_0x11fee4){const _0x3d7706=_0x44a51f;let _0x37ca65=new ke(),_0x43159a=[];for(let _0x324215=0x0;_0x324215<_0x11fee4[_0x3d7706(0x15c)];_0x324215++)_0x11fee4[_0x324215][_0x3d7706(0x15c)]>0x0&&_0x37ca65[_0x3d7706(0x1d6)]([_0x11fee4[_0x324215][0x0],_0x324215,0x0]);for(;_0x37ca65['size']()>0x0;){let [_0x2e8c8c,_0x2405e5,_0x37d19b]=_0x37ca65[_0x3d7706(0x20e)]();if(_0x43159a[_0x3d7706(0x1d6)](_0x2e8c8c),_0x37d19b+0x1<_0x11fee4[_0x2405e5][_0x3d7706(0x15c)]){let _0x49c7b1=_0x11fee4[_0x2405e5][_0x37d19b+0x1];_0x37ca65[_0x3d7706(0x1d6)]([_0x49c7b1,_0x2405e5,_0x37d19b+0x1]);}}return _0x43159a;}function B(_0x18c3e4,_0xda2173){const _0xffb8c7=_0x44a51f;if(typeof Intl<'u'&&Intl[_0xffb8c7(0x38b)]){let _0x5af161=_0x18c3e4&&_0x18c3e4!==_0xda2173?[_0x18c3e4,_0xda2173]:[_0x18c3e4??_0xda2173];for(let _0xb34751 of _0x5af161)try{return new Intl['Collator'](_0xb34751,{'usage':_0xffb8c7(0x2a5),'numeric':!0x1,'sensitivity':_0xffb8c7(0x2c8),'ignorePunctuation':!0x1})['compare'];}catch{}return new Intl[(_0xffb8c7(0x38b))](void 0x0,{'usage':_0xffb8c7(0x2a5),'numeric':!0x1,'sensitivity':_0xffb8c7(0x2c8),'ignorePunctuation':!0x1})[_0xffb8c7(0x32c)];}return(_0x1d80c0,_0x55ac15)=>_0x1d80c0[_0xffb8c7(0x2cb)](_0x55ac15);}function je(_0x2f1374,_0x49d606,_0x52a8f6,_0x1a0963=B()){const _0x56a019=_0x44a51f;let _0x511c2a=[],_0x5042a0=[],_0x1f4e4c=[],_0x27141b=[];for(let _0x1f9d44=0x0;_0x1f9d44<_0x2f1374[_0x56a019(0x15c)];_0x1f9d44++){let _0x41c37c=_0x2f1374[_0x1f9d44],_0x353fe3=_0x49d606[_0x1f9d44];_0x353fe3===0x2?_0x511c2a['push'](_0x41c37c):_0x353fe3===0x1?_0x5042a0[_0x56a019(0x1d6)](_0x41c37c):_0x353fe3===0x4?_0x1f4e4c[_0x56a019(0x1d6)](_0x41c37c):_0x27141b[_0x56a019(0x1d6)](_0x41c37c);}let _0x5789be=(_0x2c15cd,_0x24458c)=>_0x1a0963(_0x2c15cd,_0x24458c)||_0x52a8f6[_0x2c15cd]-_0x52a8f6[_0x24458c];_0x511c2a[_0x56a019(0x2a5)]((_0x3c3e56,_0x2ddc1e)=>Number(_0x3c3e56)-Number(_0x2ddc1e)),_0x5042a0[_0x56a019(0x2a5)](_0x5789be),_0x1f4e4c['sort']((_0x40dbfa,_0x409ed6)=>Number(_0x40dbfa)-Number(_0x409ed6)),_0x27141b[_0x56a019(0x2a5)](_0x5789be);let _0x4f5705=[..._0x511c2a,..._0x5042a0,..._0x1f4e4c,..._0x27141b],_0x4c81f8={},_0x3ac129=0x0;for(let _0x2e6a7f of _0x4f5705)_0x4c81f8[_0x2e6a7f]=_0x3ac129,_0x3ac129++;return _0x4c81f8;}function Me(_0x4c877e,_0x7777d9,_0x1fcd14){const _0xc7ea8a=_0x44a51f;let _0x2b6a86=ue({'type':0x1,'operator':_0x7777d9,'expected':_0x1fcd14}),_0x263102=[];for(let [_0x51b1e8,_0x5e336d]of Object[_0xc7ea8a(0x372)](_0x4c877e))_0x2b6a86(Number(_0x51b1e8))&&_0x263102[_0xc7ea8a(0x1d6)](_0x5e336d);return _0x263102;}function Ne(_0x7f83a8,_0x173069,_0x72ceb6,_0x3d078c,_0x390fec,_0x2c43b0){const _0x2c2204=_0x44a51f;let _0xae71d=(_0x173069==null?void 0x0:_0x173069[_0x2c2204(0x180)][_0x72ceb6])||_0x7f83a8[_0x390fec]['tuple'],_0x5757c9=_0xae71d['getInfo']();_0x7f83a8[_0x390fec]={'tuple':_0xae71d},_0x7f83a8[_0x2c43b0]===void 0x0&&(_0x7f83a8[_0x2c43b0]={'tuple':new j()}),_0x7f83a8[_0x2c43b0]['tuple'][_0x2c2204(0x404)](_0x5757c9);}function Pe(_0x58ce9f){return typeof _0x58ce9f!='number';}function Fe(_0x5fbc4e){const _0x43fc41=_0x44a51f;return!('baseFieldId'in _0x5fbc4e)&&!(_0x43fc41(0x206)in _0x5fbc4e)&&_0x43fc41(0x13b)in _0x5fbc4e&&_0x5fbc4e[_0x43fc41(0x477)]===0x3;}function Ie(_0x2a75a9,_0x121498=!0x0){const _0x581544=_0x44a51f;return(_0x121498?new Date(Date['UTC'](0x76b,0xb,0x1e)):new Date(Date[_0x581544(0x283)](0x770,0x0,0x1)))[_0x581544(0x3e7)]()+_0x2a75a9*0x5265c00;}function Le(_0x48504c){return _0x48504c['getDataFieldType']()===0x3;}function V(_0x49c0db){const _0x5dc0ff=_0x44a51f;return _0x49c0db[_0x5dc0ff(0x3d3)]()!==0x1;}function Re(_0x45972c){return _0x45972c['dataFieldType']===0x3;}function ze(_0x20983b,_0x2e768e,_0x9d45ab=!0x0){const _0x103160=_0x44a51f;let _0x1058b0=Ie(_0x20983b,_0x9d45ab),_0x2a8bd3=new Date(_0x1058b0);switch(_0x2e768e){case _0x103160(0x3ad):return''+_0x2a8bd3[_0x103160(0x2ff)]();case _0x103160(0x35b):return''+(_0x2a8bd3[_0x103160(0x125)]()+0x1);case'date':return''+_0x2a8bd3[_0x103160(0x33e)]();case _0x103160(0x20b):return _0x2a8bd3['getMonth']()+0x1+'_'+_0x2a8bd3[_0x103160(0x33e)]();case'hour':return''+_0x2a8bd3[_0x103160(0x1f7)]();case'minute':return''+_0x2a8bd3['getMinutes']();case _0x103160(0x47b):return''+(Math[_0x103160(0x311)](_0x2a8bd3[_0x103160(0x125)]()/0x3)+0x1);case _0x103160(0x273):return _0x2a8bd3['getHours']()+'_'+_0x2a8bd3[_0x103160(0x157)]();case _0x103160(0x144):return _0x2a8bd3[_0x103160(0x2ff)]()+'_'+(_0x2a8bd3[_0x103160(0x125)]()+0x1);case'year-quarter':return _0x2a8bd3[_0x103160(0x2ff)]()+'_'+(Math[_0x103160(0x311)](_0x2a8bd3[_0x103160(0x125)]()/0x3)+0x1);case'year-month-date':return _0x2a8bd3[_0x103160(0x2ff)]()+'_'+(_0x2a8bd3[_0x103160(0x125)]()+0x1)+'_'+_0x2a8bd3['getDate']();}return'';}var H=class{[_0x44a51f(0x469)](_0x54cd17){return this['_recordTupleKeys'][_0x54cd17];}[_0x44a51f(0x260)](){return this['_tupleItemsMap'];}[_0x44a51f(0x143)](_0xe766c2){const _0x37dda9=_0x44a51f;return this[_0x37dda9(0x1b4)][_0xe766c2]||[];}[_0x44a51f(0x44a)](_0x28a727){const _0x3ede3e=_0x44a51f;return this[_0x3ede3e(0x339)][_0x28a727];}[_0x44a51f(0x226)](_0x128107){const _0x103ffd=_0x44a51f;return this[_0x103ffd(0x3aa)][_0x128107];}[_0x44a51f(0x333)](_0x151626){const _0x241636=_0x44a51f;var _0x2b7529;return((_0x2b7529=this['_tupleKeysByLabel'][_0x151626])==null?void 0x0:_0x2b7529[_0x241636(0x309)]())||[];}constructor(_0xe899b3,_0x277b3b,_0xcf0730){const _0x1f3a72=_0x44a51f;A(this,'id',void 0x0),A(this,'name',void 0x0),A(this,_0x1f3a72(0x465),void 0x0),A(this,_0x1f3a72(0x316),void 0x0),A(this,_0x1f3a72(0x18e),[]),A(this,_0x1f3a72(0x378),[]),A(this,_0x1f3a72(0x31b),[]),A(this,_0x1f3a72(0x331),0x1),A(this,_0x1f3a72(0x2d9),!0x1),A(this,_0x1f3a72(0x28e),!0x1),A(this,_0x1f3a72(0x2f1),!0x1),A(this,_0x1f3a72(0x3ed),!0x1),A(this,_0x1f3a72(0x395),!0x1),A(this,_0x1f3a72(0x37b),!0x1),A(this,'hasError',!0x1),A(this,_0x1f3a72(0x2e0),''),A(this,_0x1f3a72(0x168),NaN),A(this,_0x1f3a72(0x130),NaN),A(this,_0x1f3a72(0x462),-0x1/0x0),A(this,'minDate',0x1/0x0),A(this,'_itemIndexMap',void 0x0),A(this,'_itemsMap',{}),A(this,_0x1f3a72(0x2c6),0x0),A(this,_0x1f3a72(0x388),Object[_0x1f3a72(0x347)](null)),A(this,_0x1f3a72(0x1b4),Object[_0x1f3a72(0x347)](null)),A(this,_0x1f3a72(0x339),Object[_0x1f3a72(0x347)](null)),A(this,_0x1f3a72(0x3aa),Object[_0x1f3a72(0x347)](null)),A(this,_0x1f3a72(0x2b8),[]),A(this,'_tupleKeysByLabel',Object['create'](null)),A(this,'_overflowRecordIndexes',new Set()),A(this,_0x1f3a72(0x42d),0x0),A(this,_0x1f3a72(0x23f),0x0),this['id']=_0xe899b3,this[_0x1f3a72(0x20a)]=_0x277b3b,this[_0x1f3a72(0x465)]=_0xcf0730,this['_itemIndexMap']={};}[_0x44a51f(0x242)](){const _0x49818b=_0x44a51f;return this[_0x49818b(0x316)];}[_0x44a51f(0x275)](){const _0x24a205=_0x44a51f;return this[_0x24a205(0x2e0)];}[_0x44a51f(0x424)](_0x5984f3){const _0x439776=_0x44a51f;this[_0x439776(0x316)]=_0x5984f3;}[_0x44a51f(0x44e)](){return this['id'];}[_0x44a51f(0x2f5)](){const _0x3c9417=_0x44a51f;return this[_0x3c9417(0x20a)];}[_0x44a51f(0x28d)](_0x16d327){const _0x5179af=_0x44a51f;this[_0x5179af(0x20a)]=_0x16d327;}[_0x44a51f(0x400)](){const _0x372854=_0x44a51f;return this[_0x372854(0x2f1)]&&!this[_0x372854(0x395)]&&!this['hasDecimal']&&!this[_0x372854(0x2d9)]&&!this[_0x372854(0x37b)]&&!this['hasError']?0x4:(this[_0x372854(0x28e)]||this[_0x372854(0x2d9)])&&!this['hasText']&&!this[_0x372854(0x2f1)]&&!this[_0x372854(0x37b)]&&!this[_0x372854(0x2fe)]?0x2:this[_0x372854(0x331)];}['getDataFieldType'](){return 0x1;}[_0x44a51f(0x17d)](_0x23bf91){const _0x38704a=_0x44a51f;return this[_0x38704a(0x465)]+a[_0x38704a(0x3bb)]+this['_itemsMap'][_0x23bf91];}[_0x44a51f(0x480)](_0x5c7b2a){const _0x2b8454=_0x44a51f;let _0x9318ea=this[_0x2b8454(0x18e)][_0x5c7b2a];if(C(_0x9318ea))return String(_0x9318ea['v']);if(M(_0x9318ea))return a[_0x2b8454(0x454)];let _0x211ad5=w(_0x9318ea)?_0x9318ea[_0x2b8454(0x2fa)]:String(_0x9318ea);return this[_0x2b8454(0x225)][_0x211ad5]===void 0x0?a[_0x2b8454(0x1a6)]:_0x211ad5;}[_0x44a51f(0x46c)](_0x326cca){const _0x51068a=_0x44a51f;return this[_0x51068a(0x31b)][this[_0x51068a(0x225)][_0x326cca]];}['getValue'](_0x8660a9){return this['records'][_0x8660a9];}[_0x44a51f(0x455)](_0xddd05b,_0x363db2){const _0x5261c2=_0x44a51f;C(_0xddd05b)&&(this[_0x5261c2(0x2e0)]=_0xddd05b['f'],this[_0x5261c2(0x25b)](_0xddd05b,_0x363db2));let _0x5002b7=M(_0xddd05b);_0x5002b7&&this['_updateBlankItemKey'](_0x363db2),typeof _0xddd05b==_0x5261c2(0x26d)&&this[_0x5261c2(0x161)](_0xddd05b,_0x363db2),!_0x5002b7&&typeof _0xddd05b=='string'&&this[_0x5261c2(0x24b)](_0xddd05b,_0x363db2),typeof _0xddd05b==_0x5261c2(0x43c)&&this[_0x5261c2(0x220)](_0xddd05b,_0x363db2),w(_0xddd05b)&&this[_0x5261c2(0x335)](_0xddd05b[_0x5261c2(0x2fa)],_0x363db2),this[_0x5261c2(0x18e)]['push'](_0xddd05b),this[_0x5261c2(0x3d3)]()===0x1&&this[_0x5261c2(0x412)](_0xddd05b,_0x363db2);}[_0x44a51f(0x412)](_0x1b2e12,_0x2da91b){const _0x2bafa0=_0x44a51f;let _0x3ced83=this[_0x2bafa0(0x480)](this[_0x2bafa0(0x18e)][_0x2bafa0(0x15c)]-0x1),_0x4b6656=0x1;C(_0x1b2e12)?_0x4b6656=0x4:M(_0x1b2e12)?_0x4b6656=0x5:typeof _0x1b2e12=='number'?_0x4b6656=0x2:typeof _0x1b2e12=='boolean'?_0x4b6656=0x3:w(_0x1b2e12)&&(_0x4b6656=0x6);let _0x278e73=_0x4b6656===0x1&&!_0x3ced83[_0x2bafa0(0x344)]('[')&&_0x3ced83!==a[_0x2bafa0(0x1a6)]?_0x3ced83:JSON[_0x2bafa0(0x3ff)]([_0x4b6656,_0x3ced83]);(this['_overflowRecordIndexes']['has'](_0x2da91b)||this[_0x2bafa0(0x388)][_0x278e73]===void 0x0&&_0x4b6656!==0x5&&this[_0x2bafa0(0x42d)]>=a[_0x2bafa0(0x290)])&&(_0x3ced83=a[_0x2bafa0(0x1a6)],_0x4b6656=0x6,_0x278e73=a[_0x2bafa0(0x1a6)]),this['_tupleItemsMap'][_0x278e73]===void 0x0&&(this[_0x2bafa0(0x388)][_0x278e73]=this[_0x2bafa0(0x23f)]++,_0x4b6656!==0x5&&this['_tupleKeyCounter']++,this[_0x2bafa0(0x1b4)][_0x278e73]=[],this[_0x2bafa0(0x339)][_0x278e73]=_0x3ced83,this[_0x2bafa0(0x3aa)][_0x278e73]=_0x4b6656,(this['_tupleKeysByLabel'][_0x3ced83]||=[])[_0x2bafa0(0x1d6)](_0x278e73)),this[_0x2bafa0(0x1b4)][_0x278e73][_0x2bafa0(0x1d6)](_0x2da91b),this[_0x2bafa0(0x2b8)][_0x2bafa0(0x1d6)](_0x278e73);}[_0x44a51f(0x2c3)](_0x43e3c1){const _0x5e07a4=_0x44a51f;return this[_0x5e07a4(0x42c)][_0x43e3c1]||[];}[_0x44a51f(0x154)](){return this['_itemIndexMap'];}[_0x44a51f(0x25b)](_0x53b4cd,_0x1992e2){const _0x2bc1a7=_0x44a51f;this['hasDate']||=!0x0,this[_0x2bc1a7(0x462)]=Math[_0x2bc1a7(0x274)](this[_0x2bc1a7(0x462)],_0x53b4cd['v']),this[_0x2bc1a7(0x15b)]=Math[_0x2bc1a7(0x278)](this[_0x2bc1a7(0x15b)],_0x53b4cd['v']);let _0x30d647=String(_0x53b4cd['v']);this['_updateItemKey'](_0x30d647,_0x1992e2,0x4);}[_0x44a51f(0x30d)](_0x22aae0){const _0x170413=_0x44a51f;this[_0x170413(0x3ed)]||=!0x0;let _0x10c574=a[_0x170413(0x454)];this[_0x170413(0x42c)][_0x10c574]===void 0x0?(this[_0x170413(0x42c)][_0x10c574]=[_0x22aae0],this[_0x170413(0x378)][_0x170413(0x1d6)](_0x10c574),this[_0x170413(0x31b)][_0x170413(0x1d6)](0x5),this['_itemsMap'][_0x10c574]=this[_0x170413(0x378)][_0x170413(0x15c)]-0x1):this[_0x170413(0x42c)][_0x10c574][_0x170413(0x1d6)](_0x22aae0);}[_0x44a51f(0x24b)](_0x5025ff,_0x5845fa){const _0x5868bf=_0x44a51f;this[_0x5868bf(0x395)]||=!0x0,this[_0x5868bf(0x3d9)](_0x5025ff,_0x5845fa,0x1);}['_updateNumberItemKey'](_0x384310,_0x6efcdc){const _0x4e7308=_0x44a51f;this[_0x4e7308(0x28e)]||=_0x384310%0x1!=0x0,this['hasInteger']||=_0x384310%0x1==0x0,this[_0x4e7308(0x168)]=Math[_0x4e7308(0x274)](this[_0x4e7308(0x168)],_0x384310),this['minNumber']=Math[_0x4e7308(0x278)](this[_0x4e7308(0x130)],_0x384310);let _0x38adbb=String(_0x384310);this['_updateItemKey'](_0x38adbb,_0x6efcdc,0x2);}[_0x44a51f(0x220)](_0x5e9085,_0x3bd70f){const _0xf7b1ce=_0x44a51f;this['hasBoolean']=!0x0,this[_0xf7b1ce(0x3d9)](String(_0x5e9085),_0x3bd70f,0x3);}[_0x44a51f(0x335)](_0x1fca59,_0x1ee55c){const _0xc20094=_0x44a51f;this[_0xc20094(0x2fe)]=!0x0,this[_0xc20094(0x3d9)](_0x1fca59,_0x1ee55c,0x6);}[_0x44a51f(0x350)](_0x33a40f){const _0x30bf41=_0x44a51f;if(this[_0x30bf41(0x357)]['add'](_0x33a40f),this[_0x30bf41(0x42c)][a[_0x30bf41(0x1a6)]]===void 0x0){this[_0x30bf41(0x42c)][a['otherDataKey']]=[_0x33a40f];let _0x9f639b=this[_0x30bf41(0x378)][_0x30bf41(0x1d6)](a['otherDataKey']);this[_0x30bf41(0x225)][a[_0x30bf41(0x1a6)]]=_0x9f639b-0x1,this['itemTypes'][_0x30bf41(0x1d6)](0x6),this['_keyCounter']++;}else this[_0x30bf41(0x42c)][a[_0x30bf41(0x1a6)]]['push'](_0x33a40f);}[_0x44a51f(0x3d9)](_0x46080d,_0x1dc013,_0x5a5110){const _0x54f5b1=_0x44a51f;if(this[_0x54f5b1(0x42c)][_0x46080d]===void 0x0){if(this[_0x54f5b1(0x2c6)]>=a['maxLimitItemCount'])return this[_0x54f5b1(0x350)](_0x1dc013);this[_0x54f5b1(0x42c)][_0x46080d]=[_0x1dc013];let _0x499bf4=this[_0x54f5b1(0x378)][_0x54f5b1(0x1d6)](_0x46080d);this[_0x54f5b1(0x225)][_0x46080d]=_0x499bf4-0x1,this[_0x54f5b1(0x31b)]['push'](_0x5a5110),this[_0x54f5b1(0x2c6)]++;}else this[_0x54f5b1(0x42c)][_0x46080d][_0x54f5b1(0x1d6)](_0x1dc013);}['getItemsMap'](){return this['_itemsMap'];}[_0x44a51f(0x160)](){const _0x565b9c=_0x44a51f;return{'id':this['id'],'name':this['name'],'records':this[_0x565b9c(0x18e)],'fieldDataType':this[_0x565b9c(0x400)](),'maxNumber':this[_0x565b9c(0x168)],'minNumber':this[_0x565b9c(0x130)],'maxDate':this[_0x565b9c(0x462)],'minDate':this[_0x565b9c(0x15b)],'format':this[_0x565b9c(0x2e0)],'rangeKey':this[_0x565b9c(0x316)],'dataFieldType':this[_0x565b9c(0x3d3)]()};}[_0x44a51f(0x171)](){const _0x31b96c=_0x44a51f;return{'id':this['id'],'name':this[_0x31b96c(0x20a)],'fieldDataType':this['getFieldDataType'](),'hexCode':this['hexCode'],'rangeKey':this[_0x31b96c(0x316)],'dataFieldType':this['getDataFieldType']()};}[_0x44a51f(0x407)](_0x408a64){const _0x5cf3eb=_0x44a51f;this['name']=_0x408a64[_0x5cf3eb(0x20a)],this['id']=_0x408a64['id'],this[_0x5cf3eb(0x316)]=_0x408a64[_0x5cf3eb(0x316)],this[_0x5cf3eb(0x465)]=_0x408a64[_0x5cf3eb(0x465)];}['reset'](){const _0x58ecea=_0x44a51f;this[_0x58ecea(0x18e)]=[],this[_0x58ecea(0x378)]=[],this['itemTypes']=[],this[_0x58ecea(0x42c)]={},this[_0x58ecea(0x2d9)]=!0x1,this[_0x58ecea(0x28e)]=!0x1,this[_0x58ecea(0x2f1)]=!0x1,this['hasBlank']=!0x1,this[_0x58ecea(0x395)]=!0x1,this['hasBoolean']=!0x1,this['hasError']=!0x1,this[_0x58ecea(0x2e0)]='',this[_0x58ecea(0x168)]=NaN,this[_0x58ecea(0x130)]=NaN,this[_0x58ecea(0x462)]=-0x1/0x0,this['minDate']=0x1/0x0,this[_0x58ecea(0x225)]={},this['_keyCounter']=0x0,this[_0x58ecea(0x2b8)][_0x58ecea(0x15c)]=0x0,this['_tupleKeyCounter']=0x0,this['_tupleItemCounter']=0x0,this[_0x58ecea(0x357)][_0x58ecea(0x1f5)]();for(let _0x42096a of[this['_tupleItemsMap'],this['_tupleIndexMap'],this[_0x58ecea(0x339)],this[_0x58ecea(0x3aa)],this[_0x58ecea(0x2ae)]])for(let _0x1a92d0 of Object[_0x58ecea(0x3cf)](_0x42096a))delete _0x42096a[_0x1a92d0];}},U=class extends H{constructor(..._0x1ce021){const _0x586d49=_0x44a51f;super(..._0x1ce021),A(this,_0x586d49(0x247),void 0x0);}[_0x44a51f(0x469)](_0x85467a){const _0xed784d=_0x44a51f;return this[_0xed784d(0x480)](_0x85467a);}['getTupleItemsMap'](){const _0x1928b6=_0x44a51f;return this[_0x1928b6(0x1de)]();}[_0x44a51f(0x143)](_0x4328be){const _0x3b1553=_0x44a51f;return this[_0x3b1553(0x2c3)](_0x4328be);}[_0x44a51f(0x44a)](_0x42819b){return _0x42819b;}[_0x44a51f(0x226)](_0x371f7e){const _0x7982d7=_0x44a51f;return this[_0x7982d7(0x46c)](_0x371f7e);}['getTupleKeysByLabel'](_0x34017f){const _0x181806=_0x44a51f;return this[_0x181806(0x1de)]()[_0x34017f]===void 0x0?[]:[_0x34017f];}[_0x44a51f(0x160)](){const _0x20d25d=_0x44a51f;return{...super[_0x20d25d(0x160)](),'originalFieldId':this[_0x20d25d(0x48a)](),'dataFieldType':this[_0x20d25d(0x3d3)]()};}[_0x44a51f(0x171)](){const _0x54da80=_0x44a51f;return{...super['toJSON'](),'originalFieldId':this[_0x54da80(0x247)]};}};const Be=-0x1,Ve=0x3b9aca00,He=[_0x44a51f(0x3ad),_0x44a51f(0x47b),_0x44a51f(0x35b),_0x44a51f(0x149),_0x44a51f(0x313),_0x44a51f(0x1be),_0x44a51f(0x2b7)];function _0x45d7(_0x39f5cd,_0x240c53){_0x39f5cd=_0x39f5cd-0x11e;const _0x50f3bf=_0x50f3();let _0x45d737=_0x50f3bf[_0x39f5cd];return _0x45d737;}function Ue(_0x409b23){const _0x5146c5=_0x44a51f;let _0x4bcd80=0x1/0x0,_0xa2fecb=-0x1/0x0;for(let _0x3c6288 of _0x409b23[_0x5146c5(0x18e)]){let _0x74e84b=_0x3c6288['v'];_0x4bcd80=Math['min'](_0x4bcd80,_0x74e84b),_0xa2fecb=Math[_0x5146c5(0x274)](_0xa2fecb,_0x74e84b);}return{'start':_0x4bcd80,'end':_0xa2fecb};}function We(_0x3bc7d9,_0x3fadc6){const _0x501ff5=_0x44a51f;let {units:_0x28a170,daysInterval:_0x3aad55=0x1}=_0x3bc7d9;if(!_0x28a170['length']||new Set(_0x28a170)[_0x501ff5(0x322)]!==_0x28a170[_0x501ff5(0x15c)]||_0x28a170[_0x501ff5(0x3f5)](_0x552675=>!He[_0x501ff5(0x243)](_0x552675))||!Number[_0x501ff5(0x175)](_0x3aad55)||_0x3aad55<0x1||_0x3aad55>0x1&&(_0x28a170[_0x501ff5(0x15c)]!==0x1||_0x28a170[0x0]!=='day'))return;let _0x30a17=_0x3fadc6[_0x501ff5(0x18e)],_0x52d38e=a[_0x501ff5(0x2e6)];if(!_0x30a17[_0x501ff5(0x15c)]||_0x30a17['some'](_0xcdc10e=>!C(_0xcdc10e)||!_0x556261(_0xcdc10e['v'],{'dateSystem':_0x52d38e})))return;let _0x33ac08=Ue(_0x3fadc6),_0x309ce4=_0x3bc7d9[_0x501ff5(0x1a4)]?_0x33ac08[_0x501ff5(0x1a9)]:_0x3bc7d9[_0x501ff5(0x1a9)],_0xaa244b=_0x3bc7d9['autoEnd']?_0x33ac08[_0x501ff5(0x1a2)]:_0x3bc7d9[_0x501ff5(0x1a2)];if(!(_0x309ce4===void 0x0||_0xaa244b===void 0x0||_0x309ce4>_0xaa244b||!_0x556261(_0x309ce4,{'dateSystem':_0x52d38e})||!_0x556261(_0xaa244b,{'dateSystem':_0x52d38e})))return{..._0x3bc7d9,'units':He['filter'](_0x2672c2=>_0x28a170['includes'](_0x2672c2))};}const Ge=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function Ke(_0x446f1d){const _0x106141=_0x44a51f;return{..._0x446f1d,..._0x446f1d[_0x106141(0x1ca)]?{'dayLabels':Object[_0x106141(0x329)]([..._0x446f1d[_0x106141(0x1ca)]])}:{}};}function qe(_0xd2460a,_0x40e09f,_0x5a8193,_0x38deb7,_0x533df4){const _0xd42f85=_0x44a51f;if(_0xd2460a[_0xd42f85(0x1ca)])return _0xd2460a['dayLabels'][Ge[_0x38deb7-0x1]+_0x533df4-0x1];if(_0xd2460a[_0xd42f85(0x2a6)]===!0x1)return _0x533df4;let _0x503209=_0xd2460a[_0xd42f85(0x440)]??0x1;return Math[_0xd42f85(0x311)](_0x5a8193)+Math[_0xd42f85(0x311)]((Math[_0xd42f85(0x311)](_0x40e09f)-Math['floor'](_0x5a8193))/_0x503209)*_0x503209;}var Je=class extends U{constructor(_0x568408,_0xc7fdd,_0x1b388c,_0x31ab7d,_0x293df2,_0x293ef9){const _0x2cdcbd=_0x44a51f;super(_0x568408,_0xc7fdd,_0x1b388c),A(this,'_dataIsValid',!0x0),A(this,_0x2cdcbd(0x1ef),void 0x0),A(this,'_excelLike',void 0x0),this['originalFieldId']=_0x31ab7d,this[_0x2cdcbd(0x1ef)]=_0x293df2??_0x2cdcbd(0x3ad),this[_0x2cdcbd(0x19c)]=_0x293ef9&&Ke(_0x293ef9);}[_0x44a51f(0x204)](_0x33980f){const _0x27a8ee=_0x44a51f;this[_0x27a8ee(0x1ef)]=_0x33980f;}[_0x44a51f(0x34d)](){const _0x119762=_0x44a51f;return this[_0x119762(0x1ef)];}[_0x44a51f(0x43d)](){const _0x3e0eef=_0x44a51f;return this[_0x3e0eef(0x29d)];}[_0x44a51f(0x358)](_0x5bef55){const _0x6d6759=_0x44a51f;if(this[_0x6d6759(0x288)](),this[_0x6d6759(0x29d)]=!0x0,this[_0x6d6759(0x19c)]){this[_0x6d6759(0x3f3)](_0x5bef55);return;}let _0x44b3ab=_0x5bef55[_0x6d6759(0x18e)],_0x15f884=a['dateSystem']===_0x1cde2a[_0x6d6759(0x14d)];for(let _0x57dd3a=0x0;_0x57dd3a<_0x44b3ab['length'];_0x57dd3a++){let _0x3ea6ea=_0x44b3ab[_0x57dd3a];if(_0x3ea6ea==null)continue;if(!C(_0x3ea6ea)){this['_dataIsValid']=!0x1;break;}let _0x20221b=_0x3ea6ea['v'],_0x51fbee=ze(_0x20221b,this['_dateType'],_0x15f884);this[_0x6d6759(0x455)](_0x51fbee,_0x57dd3a);}}[_0x44a51f(0x3f3)](_0x5c9d2c){const _0x32b3ce=_0x44a51f;let _0x241334=this['_excelLike'];if(!We({..._0x241334,'units':[_0x241334[_0x32b3ce(0x328)]]},_0x5c9d2c)||_0x241334[_0x32b3ce(0x1ca)]&&(_0x241334[_0x32b3ce(0x328)]!==_0x32b3ce(0x149)||(_0x241334[_0x32b3ce(0x440)]??0x1)!==0x1||_0x241334[_0x32b3ce(0x1ca)]['length']!==0x16e)){this[_0x32b3ce(0x29d)]=!0x1;return;}let _0x5ad492=_0x5c9d2c['records'][_0x32b3ce(0x47c)](_0x31cc4b=>_0x31cc4b['v']),_0x2c45e3=Ue(_0x5c9d2c),_0x48d177=_0x241334[_0x32b3ce(0x1a4)]?_0x2c45e3[_0x32b3ce(0x1a9)]:_0x241334[_0x32b3ce(0x1a9)],_0x3e7ce2=_0x241334['autoEnd']?_0x2c45e3[_0x32b3ce(0x1a2)]:_0x241334[_0x32b3ce(0x1a2)],_0x49c168=a[_0x32b3ce(0x2e6)];for(let _0x1fdf8b=0x0;_0x1fdf8b<_0x5ad492['length'];_0x1fdf8b++){let _0x1ffbdd=_0x5ad492[_0x1fdf8b];if(_0x1ffbdd<_0x48d177){this[_0x32b3ce(0x455)](-0x1,_0x1fdf8b);continue;}if(_0x1ffbdd>_0x3e7ce2){this[_0x32b3ce(0x455)](Ve,_0x1fdf8b);continue;}let _0x411d35=_0x556261(_0x1ffbdd,{'dateSystem':_0x49c168}),_0x2b8300=(_0x1ffbdd-Math['floor'](_0x1ffbdd))*0x15180,_0x12cab4=Math[_0x32b3ce(0x402)](_0x2b8300),_0x1f7205=0x2**-0x34*Math[_0x32b3ce(0x274)](0x1,Math['abs'](_0x1ffbdd))*0x15180,_0x2c967a=Math['min'](0x1517f,Math[_0x32b3ce(0x468)](_0x2b8300-_0x12cab4)<=_0x1f7205?_0x12cab4:Math['floor'](_0x2b8300)),_0x40c4aa;switch(_0x241334[_0x32b3ce(0x328)]){case'year':_0x40c4aa=_0x411d35[_0x32b3ce(0x3ad)];break;case _0x32b3ce(0x47b):_0x40c4aa=Math[_0x32b3ce(0x487)](_0x411d35[_0x32b3ce(0x35b)]/0x3);break;case _0x32b3ce(0x35b):_0x40c4aa=_0x411d35[_0x32b3ce(0x35b)];break;case _0x32b3ce(0x149):_0x40c4aa=qe(_0x241334,_0x1ffbdd,_0x48d177,_0x411d35[_0x32b3ce(0x35b)],_0x411d35['day']);break;case'hour':_0x40c4aa=Math[_0x32b3ce(0x311)](_0x2c967a/0xe10);break;case _0x32b3ce(0x1be):_0x40c4aa=Math[_0x32b3ce(0x311)](_0x2c967a/0x3c)%0x3c;break;case _0x32b3ce(0x2b7):_0x40c4aa=_0x2c967a%0x3c;}this['addRecord'](_0x40c4aa,_0x1fdf8b);}}[_0x44a51f(0x417)](){const _0x2372f5=_0x44a51f;return{'type':0x3,'dateType':this['_dateType'],...this[_0x2372f5(0x19c)]?{'excelLike':{...this[_0x2372f5(0x19c)]}}:{}};}[_0x44a51f(0x3d3)](){return 0x3;}[_0x44a51f(0x48a)](){return this['originalFieldId'];}['getFieldInfo'](){const _0x39dc12=_0x44a51f;return{...super[_0x39dc12(0x160)](),'dateType':this[_0x39dc12(0x1ef)],'originalFieldId':this[_0x39dc12(0x247)],...this['_excelLike']?{'excelLike':{...this[_0x39dc12(0x19c)]}}:{}};}['toJSON'](){const _0x2764ba=_0x44a51f;return{...super[_0x2764ba(0x171)](),'dateType':this[_0x2764ba(0x1ef)],'originalFieldId':this[_0x2764ba(0x247)],...this['_excelLike']?{'excelLike':{...this[_0x2764ba(0x19c)]}}:{}};}[_0x44a51f(0x407)](_0xee9430){const _0x241e7b=_0x44a51f;super[_0x241e7b(0x407)](_0xee9430),this[_0x241e7b(0x1ef)]=(_0xee9430==null?void 0x0:_0xee9430[_0x241e7b(0x256)])??_0x241e7b(0x3ad),this[_0x241e7b(0x247)]=_0xee9430[_0x241e7b(0x247)],this['_excelLike']=_0xee9430[_0x241e7b(0x1a1)]&&Ke(_0xee9430[_0x241e7b(0x1a1)]);}};function Ye(_0x2cc7d9,_0x36095f,_0x265205){const _0x15045c=_0x44a51f;return!!_0x2cc7d9&&typeof _0x2cc7d9['id']==_0x15045c(0x32b)&&!!_0x2cc7d9['id']&&!_0x36095f[_0x15045c(0x22a)](_0x2cc7d9['id'])&&typeof _0x2cc7d9[_0x15045c(0x20a)]==_0x15045c(0x32b)&&!!_0x2cc7d9[_0x15045c(0x20a)][_0x15045c(0x2e5)]()&&!_0x265205['has'](_0x2cc7d9[_0x15045c(0x20a)])&&Array[_0x15045c(0x30b)](_0x2cc7d9[_0x15045c(0x385)])&&_0x2cc7d9[_0x15045c(0x385)][_0x15045c(0x15c)]>=0x2;}function W(_0x7ad7a2,_0x1f6635,_0xd47639){const _0xdd8b9a=_0x44a51f;if(!Array[_0xdd8b9a(0x30b)](_0x7ad7a2==null?void 0x0:_0x7ad7a2[_0xdd8b9a(0x39f)])||!_0x7ad7a2[_0xdd8b9a(0x39f)][_0xdd8b9a(0x15c)])return;let _0x124aec=new Set();if(_0x1f6635)try{for(let _0x2edfab of _0x1f6635[_0xdd8b9a(0x18e)])_0x124aec['add'](_0x4576c7(pe(_0x2edfab)));}catch{return;}let _0xd4d5a1=new Map(),_0x4bc137=_0xd47639&&W(_0xd47639);for(let _0x1b3076 of(_0x4bc137==null?void 0x0:_0x4bc137[_0xdd8b9a(0x39f)])??[])_0xd4d5a1['set'](_0x1b3076['id'],new Set(_0x1b3076[_0xdd8b9a(0x385)][_0xdd8b9a(0x47c)](_0x4576c7)));let _0x1db608=new Set(),_0x13237c=new Set(),_0x3b2758=new Set(),_0x5c1edf=[];for(let _0x411869 of _0x7ad7a2[_0xdd8b9a(0x39f)]){if(!Ye(_0x411869,_0x1db608,_0x13237c))return;_0x1db608[_0xdd8b9a(0x207)](_0x411869['id']),_0x13237c['add'](_0x411869['name']);let _0x346c91=[];for(let _0x49a33a of _0x411869[_0xdd8b9a(0x385)]){var _0x168bfa;let _0x2f00fe;try{_0x2f00fe=_0x4576c7(_0x49a33a);}catch{return;}if(_0x3b2758[_0xdd8b9a(0x22a)](_0x2f00fe)||_0x1f6635&&!_0x124aec[_0xdd8b9a(0x22a)](_0x2f00fe)&&!((_0x168bfa=_0xd4d5a1[_0xdd8b9a(0x245)](_0x411869['id']))!=null&&_0x168bfa[_0xdd8b9a(0x22a)](_0x2f00fe)))return;_0x3b2758[_0xdd8b9a(0x207)](_0x2f00fe),_0x346c91[_0xdd8b9a(0x1d6)]({..._0x49a33a});}_0x5c1edf[_0xdd8b9a(0x1d6)]({'id':_0x411869['id'],'name':_0x411869[_0xdd8b9a(0x20a)],'members':_0x346c91});}return{'groups':_0x5c1edf};}var G=class extends U{constructor(_0x10ebf4,_0x57f909,_0x234a4a,_0xa1814,_0x141d3b){const _0x3431b2=_0x44a51f;super(_0x10ebf4,_0x57f909,_0x234a4a),A(this,_0x3431b2(0x28a),void 0x0),A(this,_0x3431b2(0x29d),!0x0),A(this,_0x3431b2(0x3d0),[]),A(this,'_displayNames',new Map()),this[_0x3431b2(0x247)]=_0xa1814,this['_grouping']=W(_0x141d3b)??_0x141d3b;}[_0x44a51f(0x456)](){return this['_dataIsValid'];}[_0x44a51f(0x2a4)](){return W(this['_grouping'])??this['_grouping'];}[_0x44a51f(0x48c)](_0x5c4c9b){const _0xda7ce=_0x44a51f;this[_0xda7ce(0x28a)]=W(_0x5c4c9b)??_0x5c4c9b;}[_0x44a51f(0x288)](){const _0x5ac6d3=_0x44a51f;super[_0x5ac6d3(0x288)](),this[_0x5ac6d3(0x3d0)]=[],this[_0x5ac6d3(0x284)][_0x5ac6d3(0x1f5)]();}[_0x44a51f(0x480)](_0x1551ba){const _0x317280=_0x44a51f;let _0x40d3e9=this[_0x317280(0x3d0)][_0x1551ba];return this[_0x317280(0x1de)]()[_0x40d3e9]===void 0x0?a[_0x317280(0x1a6)]:_0x40d3e9;}['getDisplayNameByKey'](_0x9bd1cf){const _0x3ff142=_0x44a51f;return this[_0x3ff142(0x284)][_0x3ff142(0x245)](_0x9bd1cf)??_0x9bd1cf;}[_0x44a51f(0x358)](_0x4d794d){const _0x1c9664=_0x44a51f;this['reset']();let _0x554216=W(this[_0x1c9664(0x28a)]);if(this['_dataIsValid']=!!_0x554216,!_0x554216)return;let _0x4db2ab=new Map();for(let _0x5772ee of _0x554216[_0x1c9664(0x39f)])for(let _0x89fac2 of _0x5772ee['members'])_0x4db2ab[_0x1c9664(0x1f4)](_0x4576c7(_0x89fac2),_0x5772ee);for(let _0x56ad35=0x0;_0x56ad35<_0x4d794d['records'][_0x1c9664(0x15c)];_0x56ad35++){let _0x5c30b6=_0x4d794d['records'][_0x56ad35],_0xb11a3a,_0x392ea5;try{_0xb11a3a=pe(_0x5c30b6),_0x392ea5=_0x4576c7(_0xb11a3a);}catch{this['reset'](),this[_0x1c9664(0x29d)]=!0x1;return;}let _0x39bbb0=_0x4db2ab[_0x1c9664(0x245)](_0x392ea5),_0x4dc558=JSON[_0x1c9664(0x3ff)](_0x39bbb0?[_0x1c9664(0x1ce),_0x39bbb0['id']]:[_0x1c9664(0x2df),_0x392ea5]),_0x2e3bad=(_0x39bbb0==null?void 0x0:_0x39bbb0['name'])??(_0xb11a3a[_0x1c9664(0x477)]===_0x5269ba[_0x1c9664(0x3b6)]?a['BLANK_PLACEHOLDER']:String(_0xb11a3a['value'])),_0x144912=_0x39bbb0?0x1:this[_0x1c9664(0x25f)](_0xb11a3a);super[_0x1c9664(0x455)](_0x4dc558,_0x56ad35),this[_0x1c9664(0x18e)][_0x56ad35]=(_0x39bbb0==null?void 0x0:_0x39bbb0[_0x1c9664(0x20a)])??_0x5c30b6,this[_0x1c9664(0x3d0)][_0x56ad35]=_0x4dc558,this['_displayNames'][_0x1c9664(0x1f4)](_0x4dc558,_0x2e3bad);let _0x3c680e=this[_0x1c9664(0x1de)]()[_0x4dc558];_0x3c680e!==void 0x0&&(this[_0x1c9664(0x31b)][_0x3c680e]=_0x144912);}}['_getMemberType'](_0x158b53){const _0x4876c4=_0x44a51f;switch(_0x158b53[_0x4876c4(0x477)]){case _0x5269ba['Blank']:return 0x5;case _0x5269ba[_0x4876c4(0x19d)]:return 0x2;case _0x5269ba[_0x4876c4(0x301)]:return 0x4;case _0x5269ba[_0x4876c4(0x15e)]:return 0x3;case _0x5269ba[_0x4876c4(0x201)]:return 0x6;default:return 0x1;}}[_0x44a51f(0x417)](){}['getDataFieldType'](){return 0x4;}[_0x44a51f(0x48a)](){return this['originalFieldId'];}['toJSON'](){const _0x261eb0=_0x44a51f;return{...super[_0x261eb0(0x171)](),'dataFieldType':0x4,'grouping':this['getGrouping']()};}[_0x44a51f(0x407)](_0x5856a5){const _0x413aa5=_0x44a51f;super[_0x413aa5(0x407)](_0x5856a5),this[_0x413aa5(0x247)]=_0x5856a5[_0x413aa5(0x247)],this[_0x413aa5(0x28a)]=W(_0x5856a5['grouping'])??_0x5856a5['grouping'];}};const Xe=_0x44a51f(0x3fc),Ze='__number_after__';function Qe(_0x2a9a1d,_0x23ad8d){const _0x1856f7=_0x44a51f;if(!Number[_0x1856f7(0x377)](_0x2a9a1d[_0x1856f7(0x214)])||_0x2a9a1d[_0x1856f7(0x214)]<=0x0||!_0x23ad8d[_0x1856f7(0x18e)][_0x1856f7(0x15c)])return;let _0x58ec2d=0x1/0x0,_0x3e06d6=-0x1/0x0;for(let _0x58dbb8 of _0x23ad8d[_0x1856f7(0x18e)])if(!M(_0x58dbb8)){if(typeof _0x58dbb8!=_0x1856f7(0x26d)||!Number[_0x1856f7(0x377)](_0x58dbb8))return;_0x58ec2d=Math[_0x1856f7(0x278)](_0x58ec2d,_0x58dbb8),_0x3e06d6=Math[_0x1856f7(0x274)](_0x3e06d6,_0x58dbb8);}let _0xca222c=_0x2a9a1d['autoStart']?_0x58ec2d:_0x2a9a1d[_0x1856f7(0x1a9)],_0x38ec68=_0x2a9a1d[_0x1856f7(0x172)]?_0x3e06d6:_0x2a9a1d[_0x1856f7(0x1a2)];if(!(_0xca222c===void 0x0||_0x38ec68===void 0x0||!Number[_0x1856f7(0x377)](_0xca222c)||!Number[_0x1856f7(0x377)](_0x38ec68)||_0xca222c>_0x38ec68))return{'start':_0xca222c,'end':_0x38ec68};}function $e(_0x34c113,_0x458ed0){return Qe(_0x34c113,_0x458ed0)?{..._0x34c113}:void 0x0;}function et(_0x17fd3e){const _0x26b1f9=_0x44a51f;let _0x44c1da=Qe({'autoStart':!0x0,'autoEnd':!0x0,'interval':0x1},_0x17fd3e);if(!_0x44c1da)return;let _0x2d35c0=_0x44c1da['end']-_0x44c1da[_0x26b1f9(0x1a9)];if(!Number[_0x26b1f9(0x377)](_0x2d35c0))return;let _0x25fd86=Math[_0x26b1f9(0x402)](Math[_0x26b1f9(0x3ea)](_0x2d35c0||Math[_0x26b1f9(0x468)](_0x44c1da['start'])||0x1))-0x1,_0x5a9ab6=Math[_0x26b1f9(0x274)](Number[_0x26b1f9(0x2ac)],0xa**_0x25fd86),_0x32125d=_0x17fd3e[_0x26b1f9(0x18e)][_0x26b1f9(0x3ef)](_0x465dde=>M(_0x465dde)||Number[_0x26b1f9(0x175)](_0x465dde));return{'autoStart':!0x0,'autoEnd':!0x0,..._0x44c1da,'interval':_0x32125d?Math[_0x26b1f9(0x274)](0x1,_0x5a9ab6):_0x5a9ab6};}var tt=class extends U{constructor(_0x19c0f6,_0x1aedf6,_0x3a8567,_0x5c217f,_0x22ebd7){const _0x1d8bce=_0x44a51f;super(_0x19c0f6,_0x1aedf6,_0x3a8567),A(this,_0x1d8bce(0x28a),void 0x0),A(this,'_dataIsValid',!0x0),A(this,_0x1d8bce(0x397),void 0x0),this[_0x1d8bce(0x247)]=_0x5c217f,this[_0x1d8bce(0x28a)]={..._0x22ebd7};}[_0x44a51f(0x39e)](){return this['_dataIsValid'];}[_0x44a51f(0x358)](_0x368d5f){const _0x144393=_0x44a51f;this[_0x144393(0x288)]();let _0x440d54=Qe(this[_0x144393(0x28a)],_0x368d5f);if(this[_0x144393(0x397)]=_0x440d54,this[_0x144393(0x29d)]=!!_0x440d54,!_0x440d54)return;let {start:_0x159159,end:_0x5ad774}=_0x440d54,_0x2cd5ce=(_0x5ad774-_0x159159)/this[_0x144393(0x28a)]['interval'];if(!Number[_0x144393(0x377)](_0x2cd5ce)){this[_0x144393(0x29d)]=!0x1,this[_0x144393(0x397)]=void 0x0;return;}let _0x469cc6=Math['round'](_0x2cd5ce),_0x3679c3=Math[_0x144393(0x278)](0x2**-0x34*0x8*Math[_0x144393(0x274)](0x1,Math['abs'](_0x2cd5ce)),0.000001),_0x2d29f3=Math[_0x144393(0x468)](_0x2cd5ce-_0x469cc6)<=_0x3679c3?_0x469cc6:Math[_0x144393(0x487)](_0x2cd5ce),_0x13871a=Math[_0x144393(0x274)](0x0,_0x2d29f3-0x1);for(let _0x29f78e=0x0;_0x29f78e<_0x368d5f[_0x144393(0x18e)][_0x144393(0x15c)];_0x29f78e++){let _0x10aa1e=_0x368d5f['records'][_0x29f78e];if(M(_0x10aa1e)){this['addRecord'](_0x10aa1e,_0x29f78e);continue;}let _0x403c86=_0x10aa1e,_0x151519=Math[_0x144393(0x278)](0x2**-0x34*0x8*Math[_0x144393(0x274)](Math[_0x144393(0x468)](_0x403c86),Math[_0x144393(0x468)](_0x159159)),this[_0x144393(0x28a)]['interval']*0.000001),_0x26dd07=Math[_0x144393(0x278)](0x2**-0x34*0x8*Math[_0x144393(0x274)](Math[_0x144393(0x468)](_0x403c86),Math[_0x144393(0x468)](_0x5ad774)),this['_grouping'][_0x144393(0x214)]*0.000001);if(_0x403c86<_0x159159&&_0x159159-_0x403c86>_0x151519)this[_0x144393(0x455)](Xe,_0x29f78e);else{if(_0x403c86>_0x5ad774&&_0x403c86-_0x5ad774>_0x26dd07)this[_0x144393(0x455)](Ze,_0x29f78e);else{let _0x2b0a3f=(Math['min'](_0x5ad774,Math[_0x144393(0x274)](_0x159159,_0x403c86))-_0x159159)/this[_0x144393(0x28a)][_0x144393(0x214)];if(!Number['isFinite'](_0x2b0a3f)){this['reset'](),this[_0x144393(0x29d)]=!0x1;return;}let _0x825974=Math[_0x144393(0x402)](_0x2b0a3f),_0x1f0db9=Math['min'](0x2**-0x34*0x8*Math[_0x144393(0x274)](0x1,Math[_0x144393(0x468)](_0x2b0a3f)),0.000001),_0x48f533=Math[_0x144393(0x278)](_0x13871a,Math[_0x144393(0x468)](_0x2b0a3f-_0x825974)<=_0x1f0db9?_0x825974:Math[_0x144393(0x311)](_0x2b0a3f)),_0x260be0=Number((_0x159159+_0x48f533*this['_grouping'][_0x144393(0x214)])[_0x144393(0x159)](0xf));this[_0x144393(0x455)](_0x260be0,_0x29f78e);}}}}[_0x44a51f(0x417)](){const _0x207978=_0x44a51f;return{'type':0x2,'grouping':{...this[_0x207978(0x28a)],...this[_0x207978(0x397)]}};}[_0x44a51f(0x3d3)](){return 0x2;}[_0x44a51f(0x48a)](){return this['originalFieldId'];}[_0x44a51f(0x171)](){const _0x174ab3=_0x44a51f;return{...super[_0x174ab3(0x171)](),'dataFieldType':0x2,'grouping':{...this[_0x174ab3(0x28a)]}};}[_0x44a51f(0x407)](_0x1cc2de){const _0x2d8261=_0x44a51f;super[_0x2d8261(0x407)](_0x1cc2de),this['originalFieldId']=_0x1cc2de[_0x2d8261(0x247)],this[_0x2d8261(0x28a)]={..._0x1cc2de[_0x2d8261(0x142)]};}};function K(_0x376405){const _0x3b0a65=_0x44a51f;let _0x1ec5be;if(Re(_0x376405))_0x1ec5be=new Je(_0x376405['id'],_0x376405[_0x3b0a65(0x20a)],_0x376405[_0x3b0a65(0x465)],_0x376405[_0x3b0a65(0x247)]);else{if(_0x376405[_0x3b0a65(0x1a5)]===0x2){let _0x2a70d4=_0x376405;_0x1ec5be=new tt(_0x376405['id'],_0x376405[_0x3b0a65(0x20a)],_0x376405[_0x3b0a65(0x465)],_0x2a70d4[_0x3b0a65(0x247)],_0x2a70d4[_0x3b0a65(0x142)]);}else{if(_0x376405[_0x3b0a65(0x1a5)]===0x4){let _0x3ca9e3=_0x376405;_0x1ec5be=new G(_0x376405['id'],_0x376405[_0x3b0a65(0x20a)],_0x376405[_0x3b0a65(0x465)],_0x3ca9e3[_0x3b0a65(0x247)],_0x3ca9e3[_0x3b0a65(0x142)]);}else _0x1ec5be=new H(_0x376405['id'],_0x376405[_0x3b0a65(0x20a)],_0x376405['hexCode']);}}return _0x1ec5be[_0x3b0a65(0x407)](_0x376405),_0x1ec5be;}var nt=class e{constructor(_0x39f3c4){const _0x5d0de3=_0x44a51f;A(this,_0x5d0de3(0x3b8),[]),A(this,_0x5d0de3(0x3be),{}),A(this,'customFields',{}),A(this,'range',void 0x0),A(this,_0x5d0de3(0x1e5),void 0x0),A(this,'host',void 0x0),this[_0x5d0de3(0x148)]=_0x39f3c4;}[_0x44a51f(0x474)](){const _0x275eca=_0x44a51f;return this[_0x275eca(0x3b8)]['concat']();}[_0x44a51f(0x1eb)](){const _0x1ba83c=_0x44a51f;return this[_0x1ba83c(0x474)]()[_0x1ba83c(0x47c)](_0x3ef054=>this['getDisplayName'](_0x3ef054));}[_0x44a51f(0x305)](_0x55d8d6){const _0x39cff8=_0x44a51f;for(let _0x9f51e0 of this[_0x39cff8(0x3b8)])if(this[_0x39cff8(0x1f9)](_0x9f51e0)===_0x55d8d6)return _0x9f51e0;}['getGroupFieldMap'](){const _0x4fe75a=_0x44a51f;let _0x537cc8=new Map();for(let _0x5b8dfa of this[_0x4fe75a(0x3b8)]){let _0x2f34cb=this[_0x4fe75a(0x1ea)](_0x5b8dfa);V(_0x2f34cb)&&_0x537cc8['set'](_0x2f34cb[_0x4fe75a(0x48a)](),_0x2f34cb['id']);}return _0x537cc8;}[_0x44a51f(0x300)](_0x3007bb){const _0x5139e2=_0x44a51f;let _0x1dadf9=[];for(let _0x2ab666 of _0x3007bb){let _0x3648ec=this[_0x5139e2(0x1ea)](_0x2ab666);if(_0x3648ec&&!V(_0x3648ec))for(let _0x3e07b2 of this[_0x5139e2(0x3b8)]){let _0x12b74f=this[_0x5139e2(0x1ea)](_0x3e07b2);V(_0x12b74f)&&_0x12b74f[_0x5139e2(0x48a)]()===_0x2ab666&&_0x1dadf9['push']([_0x3e07b2,_0x2ab666]);}}return _0x1dadf9;}[_0x44a51f(0x387)](_0x3aeeed){const _0xd0f05b=_0x44a51f;return this['fieldIds'][_0xd0f05b(0x243)](_0x3aeeed);}['hasSourceName'](_0x250212){const _0x545db4=_0x44a51f;return this[_0x545db4(0x3b8)][_0x545db4(0x3f5)](_0x1a0c0a=>this[_0x545db4(0x1ea)](_0x1a0c0a)[_0x545db4(0x20a)]===_0x250212);}[_0x44a51f(0x183)](_0x7e8f4b){const _0x29dd33=_0x44a51f;_0x7e8f4b&&(this[_0x29dd33(0x360)]={..._0x7e8f4b});}[_0x44a51f(0x197)](_0x6b613f,_0x50aae2){const _0x377632=_0x44a51f;this['fieldIds'][_0x377632(0x1d6)](_0x6b613f);let _0x5e2b8a=this[_0x377632(0x3f8)](_0x50aae2);this[_0x377632(0x3be)][_0x6b613f]=_0x5e2b8a;}[_0x44a51f(0x219)](_0x793958){const _0x272584=_0x44a51f;let _0x3e8cf8=this[_0x272584(0x3b8)]['indexOf'](_0x793958);_0x3e8cf8!==-0x1&&(this['fieldIds'][_0x272584(0x259)](_0x3e8cf8,0x1),delete this[_0x272584(0x3be)][_0x793958]);}[_0x44a51f(0x1f9)](_0x3a5a6c){const _0x2fd4b8=_0x44a51f;let _0x7210a6=this[_0x2fd4b8(0x3be)][_0x3a5a6c];return _0x7210a6===void 0x0?this['getFieldById'](_0x3a5a6c)['getName']():_0x7210a6;}[_0x44a51f(0x349)](_0x282a87,_0x31a6dc,_0x9a29a2){const _0x45d9ec=_0x44a51f;this[_0x45d9ec(0x3be)][_0x282a87]=this[_0x45d9ec(0x3f8)](_0x31a6dc,_0x9a29a2);}[_0x44a51f(0x3f8)](_0x50e008,_0x493f7b){const _0x250a66=_0x44a51f;return e[_0x250a66(0x3f8)](_0x50e008,_0x493f7b||this[_0x250a66(0x3be)]);}static['getUniqueDataFieldName'](_0x385139,_0x4d4799){const _0x5e27c8=_0x44a51f;let _0x30d76b=new Set(Object['values'](_0x4d4799)),_0x393ad0=_0x385139,_0x40711b=0x1;if(!_0x30d76b[_0x5e27c8(0x22a)](_0x393ad0))return _0x393ad0;for(;;){if(_0x393ad0=_0x385139+'('+_0x40711b+')',!_0x30d76b[_0x5e27c8(0x22a)](_0x393ad0))return _0x393ad0;_0x40711b++;}}[_0x44a51f(0x1d2)](){const _0x5dd253=_0x44a51f;let _0x334469={};for(let _0x3c61e1 of this[_0x5dd253(0x3b8)])_0x334469[_0x3c61e1]=this[_0x5dd253(0x3f8)](this[_0x5dd253(0x1ea)](_0x3c61e1)[_0x5dd253(0x2f5)](),_0x334469);this[_0x5dd253(0x3be)]=_0x334469;}['getFieldById'](_0x2983e5){const _0x398fcb=_0x44a51f;return this[_0x398fcb(0x452)][_0x2983e5]?this[_0x398fcb(0x452)][_0x2983e5]:this[_0x398fcb(0x148)][_0x398fcb(0x27d)][_0x2983e5];}['setDataRecordCount'](_0x3b19c8){const _0x5209a3=_0x44a51f;this[_0x5209a3(0x1e5)]=_0x3b19c8;}[_0x44a51f(0x12d)](){const _0x1bddfe=_0x44a51f;return this[_0x1bddfe(0x1e5)];}[_0x44a51f(0x1c9)](_0x18c63d){const _0x464de8=_0x44a51f;for(let _0x4da52b of this['fieldIds'])if(this[_0x464de8(0x1ea)](_0x4da52b)[_0x464de8(0x20a)]===_0x18c63d)return this[_0x464de8(0x1ea)](_0x4da52b);}[_0x44a51f(0x160)](){const _0x17dc6e=_0x44a51f;let _0xc7d318=this[_0x17dc6e(0x3b8)][_0x17dc6e(0x47c)](_0x3243cf=>this[_0x17dc6e(0x1ea)](_0x3243cf)[_0x17dc6e(0x160)]()),_0x26ff33=Object[_0x17dc6e(0x3cf)](this[_0x17dc6e(0x452)])[_0x17dc6e(0x47c)](_0x299192=>this[_0x17dc6e(0x452)][_0x299192]['getFieldInfo']());return _0xc7d318[_0x17dc6e(0x309)](_0x26ff33);}[_0x44a51f(0x171)](){const _0x297647=_0x44a51f;let _0x2c6440={};for(let _0x25c8fd of this['fieldIds'])_0x2c6440[_0x25c8fd]=this['getFieldById'](_0x25c8fd)[_0x297647(0x171)]();return{'fields':_0x2c6440,'fieldIds':this[_0x297647(0x3b8)][_0x297647(0x309)](),'displayNameRecord':{...this['displayNameRecord']},'customFields':Object[_0x297647(0x3cf)](this[_0x297647(0x452)])[_0x297647(0x47c)](_0x433cf2=>this[_0x297647(0x452)][_0x433cf2]['toJSON']()),'dataRecordCount':this[_0x297647(0x1e5)],'range':this['range']};}[_0x44a51f(0x407)](_0x29d052){const _0x32270b=_0x44a51f;this['fieldIds']=_0x29d052[_0x32270b(0x3b8)]['concat'](),this['displayNameRecord']=_0x29d052[_0x32270b(0x3be)]?{..._0x29d052[_0x32270b(0x3be)]}:{};let _0x53b2ab=_0x29d052[_0x32270b(0x321)];for(let _0x7eb35e in _0x53b2ab)this[_0x32270b(0x148)]['dataFields'][_0x7eb35e]||(this[_0x32270b(0x148)]['dataFields'][_0x7eb35e]=K(_0x53b2ab[_0x7eb35e]));this['customFields']={};for(let _0x535a17 of _0x29d052[_0x32270b(0x452)]){let _0x5803ae=K(_0x535a17);this[_0x32270b(0x452)][_0x5803ae['id']]=_0x5803ae;}this[_0x32270b(0x1e5)]=_0x29d052['dataRecordCount'],this[_0x32270b(0x360)]=_0x29d052[_0x32270b(0x360)];}[_0x44a51f(0x227)](){const _0xfee7d=_0x44a51f;this['fieldIds']=[],this[_0xfee7d(0x452)]={},this[_0xfee7d(0x1e5)]=0x0,delete this[_0xfee7d(0x148)];}},rt=class{constructor(){const _0x52d1f9=_0x44a51f;A(this,_0x52d1f9(0x27d),{}),A(this,_0x52d1f9(0x32f),{});}[_0x44a51f(0x1ad)](_0x24062e){const _0x15e376=_0x44a51f;throw Error(_0x15e376(0x3f9));}[_0x44a51f(0x39d)](){const _0xa054a5=_0x44a51f;let _0x405555=L(0x5);return this[_0xa054a5(0x27d)][_0x405555]?this[_0xa054a5(0x39d)]():_0x405555;}[_0x44a51f(0x254)](){return null;}[_0x44a51f(0x1e8)](_0x116ca3){const _0x2f930a=_0x44a51f;let _0x3d42f8=this[_0x2f930a(0x32f)][_0x116ca3][_0x2f930a(0x474)](),_0xe4ccce=new Set();for(let _0x676d9b in this['collections'])if(_0x676d9b!==_0x116ca3){let _0x3e1911=this[_0x2f930a(0x32f)][_0x676d9b]['getFieldIds']();for(let _0x44569c of _0x3e1911)_0xe4ccce[_0x2f930a(0x207)](_0x44569c);}return _0x3d42f8['filter'](_0x5527cf=>!_0xe4ccce[_0x2f930a(0x22a)](_0x5527cf));}[_0x44a51f(0x325)](_0x4c6432,_0x1d830b){const _0x30267f=_0x44a51f;this[_0x30267f(0x32f)][_0x4c6432]=new nt(this);let {header:_0x52460c,data:_0x2921e9}=this[_0x30267f(0x1a3)](_0x1d830b),_0x159386=this[_0x30267f(0x32f)][_0x4c6432],_0x21ec86=[];for(let _0x224a34 of _0x52460c){let _0x3a9ee4=this['createDataFieldId'](),_0x24fd87=new H(_0x3a9ee4,_0x224a34,L(0x3));this[_0x30267f(0x27d)][_0x3a9ee4]=_0x24fd87,_0x159386[_0x30267f(0x3b8)][_0x30267f(0x1d6)](_0x3a9ee4),_0x21ec86[_0x30267f(0x1d6)](_0x24fd87);}let _0x355a7a=0x0;for(let _0x4cb8df of _0x2921e9){let _0x348b43=0x0;for(let _0x5a62e3 of _0x21ec86)_0x5a62e3[_0x30267f(0x455)](_0x4cb8df[_0x348b43],_0x355a7a),_0x348b43++;_0x355a7a++;}return _0x159386['setDataRecordCount'](_0x2921e9[_0x30267f(0x15c)]),_0x159386;}[_0x44a51f(0x227)](){const _0x105203=_0x44a51f;for(let _0x1d821e in this['collections'])this[_0x105203(0x32f)][_0x1d821e][_0x105203(0x227)]();this[_0x105203(0x32f)]={},this['dataFields']={};}['toJSON'](){const _0x555412=_0x44a51f;let _0x1de250={};for(let _0x2f8402 in this[_0x555412(0x32f)])_0x1de250[_0x2f8402]=this[_0x555412(0x32f)][_0x2f8402][_0x555412(0x171)]();let _0x4effcc={};for(let _0x5bdda9 in this[_0x555412(0x27d)])_0x4effcc[_0x5bdda9]=this[_0x555412(0x27d)][_0x5bdda9][_0x555412(0x171)]();return{'collections':_0x1de250,'dataFields':_0x4effcc};}[_0x44a51f(0x1c6)](_0x29f1c8,_0x3c4d60,_0x452376,..._0x168b38){const _0x553dce=_0x44a51f;this[_0x553dce(0x32f)][_0x29f1c8]=_0x3c4d60,_0x3c4d60[_0x553dce(0x183)](_0x452376);}[_0x44a51f(0x407)](_0x513e2a){const _0x12d7b8=_0x44a51f;for(let _0x2ce6bb in _0x513e2a[_0x12d7b8(0x32f)]){let _0xb4f83f=new nt(this);_0xb4f83f['fromJSON'](_0x513e2a[_0x12d7b8(0x32f)][_0x2ce6bb]),this[_0x12d7b8(0x1c6)](_0x2ce6bb,_0xb4f83f,_0xb4f83f[_0x12d7b8(0x360)]);}for(let _0x233b50 in _0x513e2a[_0x12d7b8(0x27d)])this[_0x12d7b8(0x27d)][_0x233b50]=K(_0x513e2a[_0x12d7b8(0x27d)][_0x233b50]);}};const it=_0x44a51f(0x352);function at(_0x14a113){return _0x14a113===0x2||_0x14a113===0x3||_0x14a113===0x4||_0x14a113===0x5||_0x14a113===0x6||_0x14a113===0x7||_0x14a113===0xa||_0x14a113===0xc||_0x14a113===0xd||_0x14a113===0xe;}var ot=class{constructor(){const _0x48cd37=_0x44a51f;A(this,'pageView',new st()),A(this,_0x48cd37(0x145),new lt()),A(this,_0x48cd37(0x134),new ut()),A(this,'dataView',new q()),A(this,'cornerView',new q()),A(this,_0x48cd37(0x43e),{}),A(this,'groupInfo',{});}[_0x44a51f(0x1aa)](_0x2de030){const _0x251959=_0x44a51f;this[_0x251959(0x3b0)]=_0x2de030;}[_0x44a51f(0x1b1)](_0x52930e,_0x491dec){const _0xf09e51=_0x44a51f;let _0x58274e={},_0x20aa0f=new Set(_0x491dec[_0xf09e51(0x236)](_0x4cf2a0=>{const _0x28ab9c=_0xf09e51;var _0x175791;return at((_0x175791=_0x4cf2a0['showDataAs'])==null?void 0x0:_0x175791[_0x28ab9c(0x477)]);})['map'](_0x364afb=>_0x364afb['id']));_0x52930e['iterateField'](_0x41c105=>{const _0x1f01a0=_0xf09e51;let _0xb3f8f9=_0x41c105[_0x1f01a0(0x239)]();_0xb3f8f9?_0x58274e[_0x41c105['id']]=_0xb3f8f9:_0x20aa0f[_0x1f01a0(0x22a)](_0x41c105['id'])&&(_0x58274e[_0x41c105['id']]=it);});for(let _0xffd780 of _0x20aa0f)_0x58274e[_0xffd780]??=it;this[_0xf09e51(0x43e)]=_0x58274e;}[_0x44a51f(0x171)](){const _0x39449f=_0x44a51f;let _0x234a4c={...this[_0x39449f(0x43e)]};return{'pageView':this[_0x39449f(0x123)][_0x39449f(0x171)](),'rowView':this[_0x39449f(0x145)][_0x39449f(0x171)](),'colView':this[_0x39449f(0x134)][_0x39449f(0x171)](),'dataView':this[_0x39449f(0x13d)][_0x39449f(0x171)](),'cornerView':this['cornerView'][_0x39449f(0x171)](),'groupInfo':this[_0x39449f(0x3b0)],'formatMap':_0x234a4c};}[_0x44a51f(0x2de)](_0x48dc34){const _0x1769ab=_0x44a51f;this[_0x1769ab(0x123)][_0x1769ab(0x407)](_0x48dc34[_0x1769ab(0x123)]),this[_0x1769ab(0x145)][_0x1769ab(0x407)](_0x48dc34[_0x1769ab(0x145)]),this['colView'][_0x1769ab(0x407)](_0x48dc34[_0x1769ab(0x134)]),this[_0x1769ab(0x13d)]['fromJSON'](_0x48dc34[_0x1769ab(0x13d)]),this[_0x1769ab(0x3b9)][_0x1769ab(0x407)](_0x48dc34[_0x1769ab(0x3b9)]),this[_0x1769ab(0x43e)]={..._0x48dc34[_0x1769ab(0x43e)]},this[_0x1769ab(0x3b0)]=_0x48dc34[_0x1769ab(0x3b0)];}},q=class{constructor(){const _0x580790=_0x44a51f;A(this,_0x580790(0x453),0x0),A(this,_0x580790(0x2c1),0x0),A(this,_0x580790(0x27b),{}),A(this,_0x580790(0x41d),[]),A(this,_0x580790(0x187),-0x1),A(this,_0x580790(0x218),-0x1);}['getLastCol'](){return this['lastCol'];}[_0x44a51f(0x366)](){return this['lastRow'];}[_0x44a51f(0x17a)](_0x5a686f,_0x3e389a,_0x2c4cd1){const _0x40fb70=_0x44a51f;let _0x1efeed=this[_0x40fb70(0x215)](_0x5a686f,_0x3e389a);this[_0x40fb70(0x187)]=Math['max'](this[_0x40fb70(0x187)],_0x3e389a),this[_0x40fb70(0x218)]=Math['max'](this[_0x40fb70(0x218)],_0x5a686f),_0x1efeed['v']=_0x2c4cd1;}[_0x44a51f(0x437)](_0x5bc351,_0x53196d,_0x334d82){let _0x3b95ee=this['getCell'](_0x5bc351,_0x53196d);_0x3b95ee['s']=_0x334d82;}[_0x44a51f(0x429)](_0x348be2,_0x4029ae){const _0xa68eb3=_0x44a51f;let _0x3ef001=this[_0xa68eb3(0x215)](_0x348be2,_0x4029ae);_0x3ef001['t']=0x2;}[_0x44a51f(0x47a)](_0x4ac04e,_0x5af706){const _0xc3b326=_0x44a51f;let _0x35f257=this[_0xc3b326(0x215)](_0x4ac04e,_0x5af706);_0x35f257['t']=0x8;}[_0x44a51f(0x215)](_0x24235b,_0xa5e1ec){const _0x476198=_0x44a51f;return this['data'][_0x24235b]||(this['data'][_0x24235b]={}),this['data'][_0x24235b][_0xa5e1ec]||(this[_0x476198(0x27b)][_0x24235b][_0xa5e1ec]={}),this[_0x476198(0x27b)][_0x24235b][_0xa5e1ec];}[_0x44a51f(0x1d4)](_0x677def,_0x85310){this['info'][_0x677def]=_0x85310;}[_0x44a51f(0x18f)](_0x1be04b){const _0x200531=_0x44a51f;let _0x315b5f={},_0x181c52=0x0;return this[_0x200531(0x41d)][_0x200531(0x26b)](_0x49263e=>{const _0x3b1b98=_0x200531;let _0x5c85d2=Oe(_0x49263e[_0x3b1b98(0x25d)],_0x49263e['valueIndex'],_0x1be04b);_0x315b5f[_0x5c85d2]=_0x181c52,_0x181c52++;}),_0x315b5f;}[_0x44a51f(0x2f7)](_0x11f0b3){const _0x416f45=_0x44a51f;this[_0x416f45(0x453)]=_0x11f0b3;}['setColCount'](_0x3b9e9d){this['colCount']=_0x3b9e9d;}['getRowCount'](){const _0x15fdbf=_0x44a51f;return this[_0x15fdbf(0x453)];}[_0x44a51f(0x2cd)](){return this['colCount'];}[_0x44a51f(0x257)](_0x2a6194,_0xd86100){const _0x1c5f68=_0x44a51f;var _0x45179f;return(_0x45179f=this[_0x1c5f68(0x27b)][_0x2a6194])==null||(_0x45179f=_0x45179f[_0xd86100])==null?void 0x0:_0x45179f['v'];}[_0x44a51f(0x18c)](_0x2e1374,_0x57f458){const _0x11634c=_0x44a51f;var _0x1cbd9b;return(_0x1cbd9b=this[_0x11634c(0x27b)][_0x2e1374])==null||(_0x1cbd9b=_0x1cbd9b[_0x57f458])==null?void 0x0:_0x1cbd9b['s'];}[_0x44a51f(0x171)](){const _0x5f481a=_0x44a51f;return{'data':this[_0x5f481a(0x27b)],'info':this[_0x5f481a(0x41d)][_0x5f481a(0x47c)](_0x3db661=>({..._0x3db661,'paths':_0x3db661[_0x5f481a(0x25d)][_0x5f481a(0x309)]()})),'rowCount':this[_0x5f481a(0x453)],'colCount':this[_0x5f481a(0x2c1)],'lastCol':this[_0x5f481a(0x187)],'lastRow':this['lastRow']};}['fromJSON'](_0x399feb){const _0x35a5f4=_0x44a51f;this[_0x35a5f4(0x27b)]=_0x399feb[_0x35a5f4(0x27b)],this['info']=_0x399feb[_0x35a5f4(0x41d)]['map'](_0x52311c=>({..._0x52311c,'paths':_0x52311c[_0x35a5f4(0x25d)][_0x35a5f4(0x309)]()})),this[_0x35a5f4(0x453)]=_0x399feb[_0x35a5f4(0x453)],this[_0x35a5f4(0x2c1)]=_0x399feb[_0x35a5f4(0x2c1)],this[_0x35a5f4(0x187)]=_0x399feb[_0x35a5f4(0x187)],this[_0x35a5f4(0x218)]=_0x399feb[_0x35a5f4(0x218)];}},st=class extends q{constructor(..._0x2eb172){const _0x1ba868=_0x44a51f;super(..._0x2eb172),A(this,_0x1ba868(0x36f),[]),A(this,'lastCol',-0x1),A(this,'lastRow',-0x1);}[_0x44a51f(0x262)](_0x2ad9a1,_0x41b288,_0x46901b){const _0x1bbb0=_0x44a51f;let _0x31792d=this[_0x1bbb0(0x215)](_0x2ad9a1,_0x41b288);_0x31792d['i']=_0x46901b;}['addRange'](_0x5b829d){const _0x164de6=_0x44a51f;this[_0x164de6(0x36f)]['push'](_0x5b829d);}[_0x44a51f(0x30a)](){const _0x193af5=_0x44a51f;return this[_0x193af5(0x36f)];}[_0x44a51f(0x13a)](_0x5b3346){this['lastCol']=_0x5b3346;}['setLastRow'](_0x9cd2f8){const _0x2fd3b9=_0x44a51f;this[_0x2fd3b9(0x218)]=_0x9cd2f8;}['getLastCol'](){const _0x5309fa=_0x44a51f;return this[_0x5309fa(0x187)];}[_0x44a51f(0x366)](){const _0x556198=_0x44a51f;return this[_0x556198(0x218)];}['toJSON'](){const _0x1accdc=_0x44a51f;let _0x4284ac=this[_0x1accdc(0x36f)]['map'](_0x2163fc=>({..._0x2163fc}));return{...super[_0x1accdc(0x171)](),'ranges':_0x4284ac,'lastCol':this[_0x1accdc(0x187)],'lastRow':this[_0x1accdc(0x218)]};}[_0x44a51f(0x407)](_0x49b10c){const _0x4825fd=_0x44a51f;this[_0x4825fd(0x36f)]=_0x49b10c[_0x4825fd(0x36f)][_0x4825fd(0x47c)](_0x12cb1d=>({..._0x12cb1d})),this['lastCol']=_0x49b10c[_0x4825fd(0x187)],this[_0x4825fd(0x218)]=_0x49b10c[_0x4825fd(0x218)],super[_0x4825fd(0x407)](_0x49b10c);}},ct=class extends q{constructor(..._0x35af3b){const _0x418ef4=_0x44a51f;super(..._0x35af3b),A(this,_0x418ef4(0x137),[]);}['addHeaderMapItem'](_0x600eb8,_0x1d73dd){const _0x5db8ad=_0x44a51f;this[_0x5db8ad(0x137)][_0x600eb8]=_0x1d73dd;}[_0x44a51f(0x403)](_0x1f19b5){const _0x3f09e2=_0x44a51f;return this[_0x3f09e2(0x137)][_0x1f19b5];}[_0x44a51f(0x171)](){const _0x55e271=_0x44a51f;let _0x5685f4=this['headerMap']['map'](_0x2daf30=>({..._0x2daf30}));return{...super[_0x55e271(0x171)](),'headerMap':_0x5685f4};}[_0x44a51f(0x407)](_0x389937){const _0x5b470a=_0x44a51f;this[_0x5b470a(0x137)]=_0x389937[_0x5b470a(0x137)][_0x5b470a(0x47c)](_0x19f11e=>({..._0x19f11e})),super[_0x5b470a(0x407)](_0x389937);}},lt=class extends ct{[_0x44a51f(0x1a7)](){const _0x18fcd1=_0x44a51f;return Math[_0x18fcd1(0x274)](this[_0x18fcd1(0x187)],this[_0x18fcd1(0x137)]['length']-0x1);}},ut=class extends ct{[_0x44a51f(0x366)](){const _0x250a2a=_0x44a51f;return Math[_0x250a2a(0x274)](this[_0x250a2a(0x218)],this[_0x250a2a(0x137)][_0x250a2a(0x15c)]-0x1);}};const dt=_0x4da276=>typeof _0x4da276=='object'&&_0x4da276[_0x44a51f(0x346)]!==void 0x0,ft=_0x178f69=>typeof _0x178f69==_0x44a51f(0x3e4)&&_0x178f69[_0x44a51f(0x457)]!==void 0x0;var pt=class{static[_0x44a51f(0x169)](_0x3de6c6,_0xa4ec75,_0x4c3fdc){const _0x2d160c=_0x44a51f;let _0x5e2f9d=new ot(),_0x235029=_0xa4ec75[_0x2d160c(0x1d5)],_0x287ead=_0xa4ec75[_0x2d160c(0x2d3)],_0x2076ea=_0x3de6c6[_0x2d160c(0x2ee)](),_0x2d0a49=_0x2076ea[_0x2d160c(0x153)]||0x1,_0x2e12f0=!!_0x2076ea['pageOverThenDown'],_0x2f919a=_0x4c3fdc[_0x2d160c(0x35f)],_0x2e4088=_0x4c3fdc[_0x2d160c(0x222)],_0x514e5f={};for(let _0x4bffac of _0x2e4088)_0x514e5f[_0x4bffac[_0x2d160c(0x368)]]=_0x4bffac;let _0x87f4d=_0x3de6c6['isColMultiMeasure'](),_0x598699=_0x3de6c6[_0x2d160c(0x3eb)](),_0x11ae2e=_0x3de6c6[_0x2d160c(0x266)]();_0x2f919a[_0x2d160c(0x15c)]>0x1&&(_0x11ae2e===-0x1&&(_0x11ae2e=_0x287ead),!_0x87f4d&&!_0x598699&&(_0x87f4d=!0x0),_0x87f4d&&(_0x11ae2e=Math[_0x2d160c(0x278)](_0x11ae2e,_0x287ead)),_0x598699&&(_0x11ae2e=Math[_0x2d160c(0x278)](_0x11ae2e,_0x235029)));let _0xe591cc=_0x2f919a['length'],_0x1e045d={},_0x5ed5f5={},_0x18575b=0x0;for(let _0x1a8d29 of _0x2f919a)_0x1e045d[_0x1a8d29['id']]=_0x1a8d29,_0x5ed5f5[_0x1a8d29['id']]=_0x18575b,_0x18575b++;let _0x47d533=!!_0x3de6c6[_0x2d160c(0x2ee)]()[_0x2d160c(0x3de)],_0x190490=!!_0x3de6c6['getOptions']()['repeatColLabels'],_0x377a59=_0x3de6c6[_0x2d160c(0x2ee)]()[_0x2d160c(0x1fd)]??!0x0,_0x13eaff=_0x3de6c6['getOptions']()[_0x2d160c(0x255)]??!0x0,_0x5a106f=_0x3de6c6['getOptions']()['showColSubtotal']??!0x0,_0x4125b1=_0x3de6c6[_0x2d160c(0x2ee)]()[_0x2d160c(0x40a)]??!0x0,_0x22b4ab=_0x3de6c6[_0x2d160c(0x2ee)]()[_0x2d160c(0x40f)]??0x1;return{'isColMultiMeasure':_0x87f4d,'isRowMultiMeasure':_0x598699,'valueIndex':_0x11ae2e,'rowDeep':_0x235029,'colDeep':_0x287ead,'rowNodeTree':_0xa4ec75[_0x2d160c(0x2a0)],'colNodeTree':_0xa4ec75['colNodeTree'],'measuresMap':_0x1e045d,'measureIndexesMap':_0x5ed5f5,'measureCount':_0xe591cc,'pageWrap':_0x2d0a49,'pageOverThenDown':_0x2e12f0,'queryData':_0x4c3fdc,'view':_0x5e2f9d,'valueQueryInfo':_0x2f919a,'colMap':{},'summaryManager':_0xa4ec75,'collapseInfo':_0x4c3fdc[_0x2d160c(0x277)],'repeatRowLabels':_0x47d533,'repeatColLabels':_0x190490,'valueFilterMap':_0x514e5f,'showRowSubtotal':_0x377a59,'showRowGrandTotal':_0x13eaff,'showColSubtotal':_0x5a106f,'showColGrandTotal':_0x4125b1,'rowSubtotalPosition':_0x22b4ab};}static[_0x44a51f(0x3db)](_0x591fb5){const _0x440560=_0x44a51f;let {pageWrap:_0x5436b3,pageOverThenDown:_0x39805c,view:_0x28792d}=_0x591fb5,_0x1cfe17=_0x28792d[_0x440560(0x123)],_0x5be4bc=_0x591fb5[_0x440560(0x202)][_0x440560(0x22b)][_0x440560(0x47c)](({displayName:_0x482544,filterInfo:_0x3470f5,dataFieldId:_0x393db7})=>{const _0x5edb02=_0x440560;var _0x19bdf0;let {status:_0x1cfdec,value:_0x50a570}=De(_0x3470f5);if(_0x50a570===void 0x0)return{'displayName':_0x482544,'status':_0x1cfdec};let _0x507cce=(_0x19bdf0=_0x591fb5[_0x5edb02(0x479)][_0x5edb02(0x287)][_0x393db7])==null?void 0x0:_0x19bdf0[_0x5edb02(0x3e5)],_0x25e286=_0x507cce==null?void 0x0:_0x507cce['getTypeByKey'](_0x50a570);return{'displayName':_0x482544,'status':_0x1cfdec,'value':_0x507cce instanceof G?_0x507cce[_0x5edb02(0x36c)](_0x50a570):_0x50a570,'itemType':_0x25e286};});_0x39805c?this[_0x440560(0x138)](_0x5be4bc,_0x1cfe17,_0x5436b3):this['layoutPageDownThenOver'](_0x5be4bc,_0x1cfe17,_0x5436b3);}static[_0x44a51f(0x398)](_0x223a9e,_0x396dc9,_0x5f3b9c,_0x1b6ba6,_0x5d8a88){const _0x2bd9eb=_0x44a51f;let {displayName:_0x4f2c40,value:_0x433b4d,status:_0x3a7ba8,itemType:_0x175da2}=_0x5d8a88;_0x223a9e[_0x2bd9eb(0x17a)](_0x396dc9,_0x5f3b9c,_0x4f2c40),_0x223a9e[_0x2bd9eb(0x17a)](_0x396dc9,_0x5f3b9c+0x1,_0x433b4d),_0x223a9e[_0x2bd9eb(0x437)](_0x396dc9,_0x5f3b9c+0x1,_0x3a7ba8),_0x175da2===0x5?_0x223a9e['setBlank'](_0x396dc9,_0x5f3b9c+0x1):_0x175da2===0x6&&_0x433b4d===a[_0x2bd9eb(0x1a6)]&&_0x223a9e[_0x2bd9eb(0x47a)](_0x396dc9,_0x5f3b9c+0x1),_0x223a9e[_0x2bd9eb(0x262)](_0x396dc9,_0x5f3b9c,_0x1b6ba6),_0x223a9e['setPageIndex'](_0x396dc9,_0x5f3b9c+0x1,_0x1b6ba6);}static[_0x44a51f(0x138)](_0x3a0587,_0x523db0,_0x2bbce7=0x1){const _0x447f4e=_0x44a51f;let _0x34588f=0x0,_0x15125c=0x0,_0x29b4ac=0x0;for(let _0x442e87 of _0x3a0587)this[_0x447f4e(0x398)](_0x523db0,_0x15125c,_0x34588f*0x3,_0x29b4ac,_0x442e87),_0x34588f++,_0x34588f===_0x2bbce7&&(_0x34588f=0x0,_0x15125c++),_0x29b4ac++;let _0x25f9ec=_0x3a0587[_0x447f4e(0x15c)],_0x570171=Math[_0x447f4e(0x487)](_0x25f9ec/_0x2bbce7),_0x49fb1d=_0x25f9ec%_0x2bbce7;for(let _0x49bf1e=0x0;_0x49bf1e<_0x2bbce7;_0x49bf1e++){let _0x19d6f2=_0x49fb1d>=_0x49bf1e+0x1?_0x570171:_0x570171-0x1;_0x523db0[_0x447f4e(0x31c)]({'row':0x0,'col':_0x49bf1e*0x3,'rowCount':_0x19d6f2,'colCount':0x2});}_0x523db0['setLastRow'](_0x570171-0x1);let _0x52ddbf=_0x25f9ec>_0x2bbce7?_0x2bbce7*0x3-0x2:_0x25f9ec*0x3-0x2;_0x523db0[_0x447f4e(0x13a)](_0x52ddbf),_0x523db0['setRowCount'](_0x523db0[_0x447f4e(0x218)]+0x1),_0x523db0['setColCount'](_0x523db0[_0x447f4e(0x187)]+0x1);}static['layoutPageDownThenOver'](_0x1bd82f,_0x66c845,_0x1ffe0f=0x1){const _0x5e7685=_0x44a51f;let _0x294c5c=0x0,_0x4ab137=0x0,_0x46bd07=0x0;for(let _0x487d2a of _0x1bd82f)this[_0x5e7685(0x398)](_0x66c845,_0x294c5c,_0x4ab137*0x3,_0x46bd07,_0x487d2a),_0x294c5c++,_0x294c5c===_0x1ffe0f&&(_0x294c5c=0x0,_0x4ab137++),_0x46bd07++;let _0x5bc370=_0x1bd82f[_0x5e7685(0x15c)],_0x5ecff2=0x0;for(;_0x5ecff2<_0x5bc370;){let _0x51fe16=Math[_0x5e7685(0x278)](_0x1ffe0f,_0x5bc370-_0x5ecff2);_0x66c845[_0x5e7685(0x31c)]({'row':0x0,'col':_0x5ecff2*0x3/_0x1ffe0f,'rowCount':_0x51fe16,'colCount':0x2}),_0x5ecff2+=_0x1ffe0f;}_0x66c845[_0x5e7685(0x3e9)](Math[_0x5e7685(0x278)](_0x5bc370,_0x1ffe0f)-0x1),_0x66c845['setLastCol'](Math[_0x5e7685(0x487)](_0x5bc370/_0x1ffe0f)*0x3-0x2),_0x66c845['setRowCount'](_0x66c845['lastRow']+0x1),_0x66c845[_0x5e7685(0x232)](_0x66c845[_0x5e7685(0x187)]+0x1);}static[_0x44a51f(0x1c8)](_0x5bcacd){const _0x2bed8e=_0x44a51f;this[_0x2bed8e(0x386)](_0x5bcacd),this[_0x2bed8e(0x2f0)](_0x5bcacd),_0x5bcacd[_0x2bed8e(0x479)][_0x2bed8e(0x38f)](_0x5bcacd[_0x2bed8e(0x202)]);}static['layoutCorner'](_0x41a1d9){}static[_0x44a51f(0x386)](_0x227413){const _0x3f387b=_0x44a51f;let {colDeep:_0x3f731f,view:_0x54128c,isColMultiMeasure:_0x58ea85,valueIndex:_0x1ba54b}=_0x227413,_0x145825=_0x227413[_0x3f387b(0x202)][_0x3f387b(0x39b)],_0x294425=_0x54128c[_0x3f387b(0x134)],_0x3d8fb7=0x0,_0xe2fd7c=!0x1;for(let _0x16eb4d=0x0;_0x16eb4d<_0x3f731f;_0x16eb4d++){let {displayName:_0x206e36,filterInfo:_0x317253,sortInfo:_0x2473aa,id:_0x5f0290,dataFieldId:_0x4ddd4c}=_0x145825[_0x16eb4d];_0x3f731f!==0x0&&_0x58ea85&&_0x16eb4d===_0x1ba54b&&(_0x294425[_0x3f387b(0x17a)](0x0,_0x3d8fb7,_0x3f387b(0x2b5)),_0xe2fd7c=!0x0,_0x3d8fb7++),_0x294425[_0x3f387b(0x17a)](0x0,_0x3d8fb7,_0x206e36),_0x294425[_0x3f387b(0x41f)](_0x3d8fb7+0x1,{'isValue':!0x1,'level':_0x16eb4d,'tableFieldId':_0x5f0290,'dataFieldId':_0x4ddd4c}),_0x294425['setStyle'](0x0,_0x3d8fb7,z(_0x317253,_0x2473aa,_0x227413[_0x3f387b(0x473)][_0x5f0290])),_0x3d8fb7++;}_0x3f731f!==0x0&&!_0xe2fd7c&&_0x58ea85&&(_0x294425[_0x3f387b(0x17a)](0x0,_0x3d8fb7,_0x3f387b(0x2b5)),_0x294425[_0x3f387b(0x41f)](_0x3d8fb7+0x1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static['setValueSize'](_0x53b5ea){const _0x9f8323=_0x44a51f;let {view:_0x2bcecd}=_0x53b5ea,{rowView:_0x157c74,colView:_0x2384f9,dataView:_0x3a3365}=_0x2bcecd;_0x3a3365[_0x9f8323(0x2f7)](_0x157c74[_0x9f8323(0x3bd)]()),_0x3a3365['setColCount'](_0x2384f9[_0x9f8323(0x2cd)]());}static['layoutNoneColFields'](_0x2bbab0,_0x29cb21){const _0x41bc8c=_0x44a51f;let {measureCount:_0xcf818f,isColMultiMeasure:_0x397e94,valueQueryInfo:_0x3da32a}=_0x2bbab0,_0x430c1e=_0x397e94?_0x3da32a[_0x41bc8c(0x47c)](_0x55202c=>_0x55202c['id']):[],_0x121a44=this['buildColPathMap'](_0x2bbab0,_0x29cb21);return _0xcf818f===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x121a44}:(this[_0x41bc8c(0x1dc)](_0x2bbab0,0x0,_0x29cb21,_0x430c1e,_0x121a44),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x397e94?_0xcf818f:0x1,'colPathMap':_0x121a44});}static[_0x44a51f(0x2f0)](_0x6cf2f3){const _0x34ea7d=_0x44a51f;let {colNodeTree:_0x58edda,view:_0x3998d0,colDeep:_0x2e1290,isColMultiMeasure:_0x2c7de9,valueQueryInfo:_0x2c4d85,measureCount:_0x314134}=_0x6cf2f3,_0x16afdd=_0x2c7de9?_0x2c4d85['map'](_0x2900e9=>_0x2900e9['id']):[],_0x372159=_0x2e1290===0x0?this[_0x34ea7d(0x409)](_0x6cf2f3,_0x58edda):this['layoutColNode'](_0x6cf2f3,_0x58edda,0x0,_0x16afdd),_0x2fe7ea=_0x3998d0[_0x34ea7d(0x134)];if(_0x314134===0x0&&_0x2e1290===0x0)_0x2fe7ea[_0x34ea7d(0x2f7)](0x0);else{if(_0x314134!==0x0&&_0x2e1290===0x0&&_0x2c7de9)_0x2fe7ea[_0x34ea7d(0x2f7)](0x1);else{if(_0x314134!==0x0&&_0x2e1290===0x0)_0x2fe7ea[_0x34ea7d(0x2f7)](0x0);else{let _0x3df665=_0x2e1290===0x0?0x0:0x1,_0x1d92f2=_0x2c7de9?_0x2e1290+0x1+_0x3df665:_0x2e1290+_0x3df665;_0x2fe7ea[_0x34ea7d(0x2f7)](_0x1d92f2);}}}_0x2fe7ea[_0x34ea7d(0x232)](this[_0x34ea7d(0x1bc)](_0x372159)),_0x6cf2f3['colMap']=_0x2fe7ea['buildPathMap'](_0x2c7de9);}static[_0x44a51f(0x2f2)](_0x1f8acb,_0x21923f){return _0x1f8acb['getLevel']()===_0x21923f;}static[_0x44a51f(0x1bc)](_0x408658){return _0x408658['itemSize']+_0x408658['topTotalSize']+_0x408658['bottomTotalSize'];}static[_0x44a51f(0x2d2)](_0x474397,_0x5eb208,_0x42ae09){const _0x3ac852=_0x44a51f;let {queryData:_0x568342,summaryManager:_0x1f6001}=_0x474397,{valueQueryInfo:_0x3d2790}=_0x568342;return _0x1f6001[_0x3ac852(0x12c)](_0x5eb208['getIndex'](),_0x3d2790[_0x42ae09]);}static[_0x44a51f(0x3d1)](_0x245456,_0x3daca8,_0x364222,_0x193391){const _0x1c2ddd=_0x44a51f;let {view:_0x2dd478,isColMultiMeasure:_0x49a616,valueIndex:_0x37866c,measureCount:_0xa27b2d,measuresMap:_0x5e69be,measureIndexesMap:_0x1ac81a,colDeep:_0x37393b}=_0x245456,_0x427d55=_0x2dd478[_0x1c2ddd(0x134)],_0x59d5d8=_0x3daca8[_0x1c2ddd(0x1e2)](),_0x14ca20=this[_0x1c2ddd(0x141)](_0x49a616,_0x59d5d8,_0x37866c),_0x359729=this[_0x1c2ddd(0x3a4)](_0x245456,_0x3daca8),_0x1f79de=_0x3daca8[_0x1c2ddd(0x1db)]();if(_0x14ca20){let _0x2a67d1=0x0,_0x4fd7ca=_0x37393b===0x0?0x0:0x1;for(let _0x1a05f7 of _0x193391){let _0x44b663=this[_0x1c2ddd(0x26f)](_0x59d5d8,_0x37866c,_0x49a616)+_0x4fd7ca;_0x427d55[_0x1c2ddd(0x17a)](_0x44b663,_0x364222+_0x2a67d1,_0x5e69be[_0x1a05f7][_0x1c2ddd(0x238)]),_0x427d55[_0x1c2ddd(0x1d4)](_0x364222+_0x2a67d1,{'level':_0x59d5d8,'paths':_0x3daca8['getPaths'](),'valueIndex':_0x49a616?_0x2a67d1:-0x1,'colPathMap':_0x359729,'tableFieldId':_0x1f79de}),_0x2a67d1++;}return{'itemSize':0x1*_0xa27b2d,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x359729};}{let _0x1d4ff7=_0x49a616?_0x1ac81a[_0x193391[0x0]]:-0x1;return _0x427d55[_0x1c2ddd(0x1d4)](_0x364222,{'level':_0x59d5d8,'paths':_0x3daca8[_0x1c2ddd(0x334)](),'valueIndex':_0x1d4ff7,'colPathMap':_0x359729,'tableFieldId':_0x1f79de}),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x359729};}}static[_0x44a51f(0x3a4)](_0x1b6c96,_0x1c88d3){const _0x11cff9=_0x44a51f;let _0x381e0d=[],_0x4fbfe4={};return _0x4fbfe4['']=_0x1c88d3['getIndex'](),_0x1c88d3[_0x11cff9(0x442)]()||_0x1c88d3['iterate'](_0x231623=>{const _0x1aff04=_0x11cff9;this[_0x1aff04(0x1da)](_0x1b6c96,_0x231623,_0x381e0d['concat']([_0x231623[_0x1aff04(0x20a)]]),_0x4fbfe4);}),_0x4fbfe4;}static[_0x44a51f(0x1da)](_0x5783cd,_0x153842,_0x2dba3e,_0x45c890){const _0x48d93a=_0x44a51f;let {summaryManager:_0x44e726}=_0x5783cd,_0x333068=_0x44e726[_0x48d93a(0x1d1)](_0x2dba3e,_0x44e726['rowTableIdList']);_0x45c890[_0x333068]=_0x153842['getIndex'](),_0x153842[_0x48d93a(0x45e)]||_0x153842['iterate'](_0x555953=>{const _0x3c527b=_0x48d93a;let _0x4be710=_0x2dba3e[_0x3c527b(0x309)]([_0x555953[_0x3c527b(0x20a)]]);this[_0x3c527b(0x1da)](_0x5783cd,_0x555953,_0x4be710,_0x45c890);});}static[_0x44a51f(0x170)](_0x22d842,_0x1e86a8,_0x14eabd){const _0x37e351=_0x44a51f;if(this[_0x37e351(0x2f2)](_0x1e86a8,_0x22d842[_0x37e351(0x2d3)])){let _0x5b204d=this['buildColPathMap'](_0x22d842,_0x1e86a8);_0x14eabd[_0x37e351(0x1d6)](_0x5b204d);}else _0x1e86a8[_0x37e351(0x1fa)](_0x4e15bc=>{const _0x2bc4b7=_0x37e351;this[_0x2bc4b7(0x170)](_0x22d842,_0x4e15bc,_0x14eabd);});}static['doColBranchNode'](_0x9c8854,_0x546740,_0x4fd30a,_0x3c9b26){const _0x50c7bd=_0x44a51f;let {isColMultiMeasure:_0x259fb5,valueIndex:_0x25c4f5,view:_0xdd6753,measuresMap:_0x7cab7e,summaryManager:_0x5d8913}=_0x9c8854,_0x3a3267=_0x546740['getLevel'](),_0x1a2723=_0x4fd30a,_0x4dee18={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':{}},_0xabd761=[],_0x287c7d=this[_0x50c7bd(0x141)](_0x259fb5,_0x546740[_0x50c7bd(0x1e2)](),_0x25c4f5),_0x5e423e=_0x5d8913[_0x50c7bd(0x1d1)](_0x546740['getPaths'](),_0x5d8913[_0x50c7bd(0x2ef)]);if(_0x287c7d){let _0x40dc6f=0x0;for(let _0x4faf43 of _0x3c9b26){let _0xccba1=this[_0x50c7bd(0x26f)](_0x3a3267,_0x25c4f5,_0x259fb5);_0xdd6753[_0x50c7bd(0x134)][_0x50c7bd(0x17a)](_0xccba1+0x1,_0x1a2723,_0x7cab7e[_0x4faf43][_0x50c7bd(0x238)]),_0x546740['iterate'](_0xedb63=>{const _0x3c3086=_0x50c7bd;let _0x1dd823=this[_0x3c3086(0x24e)](_0x9c8854,_0xedb63,_0x1a2723,[_0x4faf43]),{itemSize:_0x1d4ae7,topTotalSize:_0x42e555,bottomTotalSize:_0x1a0281}=_0x1dd823;_0x4dee18[_0x3c3086(0x2a8)]+=_0x1d4ae7,_0x4dee18['topTotalSize']+=_0x42e555,_0x4dee18[_0x3c3086(0x139)]+=_0x1a0281,_0x1a2723+=this[_0x3c3086(0x1bc)](_0x1dd823),_0x40dc6f===0x0&&_0xabd761[_0x3c3086(0x1d6)](_0x1dd823[_0x3c3086(0x30e)]);}),_0x40dc6f++;}_0x4dee18[_0x50c7bd(0x30e)]=_0x5d8913[_0x50c7bd(0x44d)](_0xabd761,_0x5e423e),_0x1a2723++;}else _0x546740[_0x50c7bd(0x1fa)](_0x2d8f34=>{const _0x30ccb2=_0x50c7bd;let _0x2b46f6=this[_0x30ccb2(0x24e)](_0x9c8854,_0x2d8f34,_0x1a2723,_0x3c9b26),{itemSize:_0x3fe67b,topTotalSize:_0x30c15a,bottomTotalSize:_0x23e04d}=_0x2b46f6;_0x4dee18['itemSize']+=_0x3fe67b,_0x4dee18['topTotalSize']+=_0x30c15a,_0x4dee18['bottomTotalSize']+=_0x23e04d,_0x1a2723+=this[_0x30ccb2(0x1bc)](_0x2b46f6),_0xabd761[_0x30ccb2(0x1d6)](_0x2b46f6[_0x30ccb2(0x30e)]);}),_0x4dee18[_0x50c7bd(0x30e)]=_0x5d8913[_0x50c7bd(0x44d)](_0xabd761,_0x5e423e);return _0x4dee18;}static[_0x44a51f(0x292)](_0xadc0dc,_0x1d7070,_0x39d70c){return _0xadc0dc&&_0x1d7070<=_0x39d70c;}static[_0x44a51f(0x141)](_0x48b67,_0x4fc77a,_0x29ab90){return _0x48b67&&_0x4fc77a===_0x29ab90;}static[_0x44a51f(0x26f)](_0x38324b,_0x5c183,_0x26882e){return _0x26882e?_0x38324b<=_0x5c183?_0x38324b:_0x38324b+0x1:_0x38324b;}static[_0x44a51f(0x320)](_0x1debd4,_0x3699b1,_0x18c2dc,_0x230c0f,_0x47d32a,_0x5eb725){const _0x460ad5=_0x44a51f;_0x1debd4[_0x460ad5(0x17a)](_0x3699b1,_0x18c2dc,_0x230c0f),_0x47d32a&&_0x1debd4[_0x460ad5(0x429)](_0x3699b1,_0x18c2dc),_0x5eb725&&_0x1debd4['setOther'](_0x3699b1,_0x18c2dc);}static[_0x44a51f(0x24e)](_0xa2716b,_0x42ae7d,_0x3f563f,_0x5b9aa6){const _0x2d338e=_0x44a51f;let {view:_0x11733c,colDeep:_0x55ec60,measureCount:_0x4e1d83,isColMultiMeasure:_0xb5537e,valueIndex:_0x139378,summaryManager:_0x1d3519}=_0xa2716b,_0x294d25=_0x11733c[_0x2d338e(0x134)],_0x460292=_0x42ae7d[_0x2d338e(0x238)],_0x2487db=_0x42ae7d[_0x2d338e(0x477)]===0x5,_0x4b5ced=_0x42ae7d[_0x2d338e(0x477)]===0x6,_0x27166a=_0x42ae7d[_0x2d338e(0x477)]===0x4||_0x42ae7d[_0x2d338e(0x477)]===0x2?Number(_0x460292):_0x460292,_0xaf342c=_0x42ae7d[_0x2d338e(0x1e2)](),_0x5cf803=this['getRowIndexForColHeader'](_0xaf342c,_0x139378,_0xb5537e),_0x1e561e=this[_0x2d338e(0x292)](_0xb5537e,_0xaf342c,_0x139378),_0x162206=_0x42ae7d[_0x2d338e(0x1ba)](),_0x374853=this[_0x2d338e(0x2f2)](_0x42ae7d,_0x55ec60);if(_0xaf342c!==0x0&&(this[_0x2d338e(0x320)](_0x294d25,_0x5cf803,_0x3f563f,_0x27166a,_0x2487db,_0x4b5ced),_0x374853||_0x294d25[_0x2d338e(0x437)](_0x5cf803,_0x3f563f,_0x162206?0xb:0xc)),_0x162206){if(_0x374853)return{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':this[_0x2d338e(0x3a4)](_0xa2716b,_0x42ae7d)};let _0x5f0ca5=[];this[_0x2d338e(0x170)](_0xa2716b,_0x42ae7d,_0x5f0ca5);let _0x27ba32=_0x1d3519[_0x2d338e(0x1d1)](_0x42ae7d['getPaths'](),_0x1d3519[_0x2d338e(0x2ef)]),_0x1983a3=_0x1d3519['combinePathMapList'](_0x5f0ca5,_0x27ba32),_0x2da4a4=_0xaf342c!==0x0||_0xa2716b['showColGrandTotal'];return _0x2da4a4&&this[_0x2d338e(0x1dc)](_0xa2716b,_0x3f563f,_0x42ae7d,_0x5b9aa6,_0x1983a3),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x2da4a4?_0x1e561e?_0x4e1d83:0x1:0x0,'colPathMap':_0x1983a3};}if(_0x374853)return this[_0x2d338e(0x3d1)](_0xa2716b,_0x42ae7d,_0x3f563f,_0x5b9aa6);{let _0x468d46=this[_0x2d338e(0x1b9)](_0xa2716b,_0x42ae7d,_0x3f563f,_0x5b9aa6),_0x4b03ac=this[_0x2d338e(0x1bc)](_0x468d46);if(_0xa2716b[_0x2d338e(0x29f)]&&_0xaf342c!==0x0){for(let _0x1897d4=_0x3f563f+0x1;_0x1897d4<_0x3f563f+_0x4b03ac;_0x1897d4++)this[_0x2d338e(0x320)](_0x294d25,_0x5cf803,_0x1897d4,_0x27166a,_0x2487db,_0x4b5ced);}return(_0xaf342c===0x0?_0xa2716b['colDeep']===0x0||_0xa2716b['showColGrandTotal']:_0xa2716b[_0x2d338e(0x422)])&&(this[_0x2d338e(0x1dc)](_0xa2716b,_0x3f563f+_0x4b03ac,_0x42ae7d,_0x5b9aa6,_0x468d46[_0x2d338e(0x30e)]),_0x1e561e?_0x468d46[_0x2d338e(0x139)]+=_0x4e1d83:_0x468d46[_0x2d338e(0x139)]++),_0x468d46;}}static['getMeasureIndex'](_0x3d312a,_0x1060e7,_0x5e1f0f){return _0x3d312a?_0x5e1f0f[_0x1060e7[0x0]]:-0x1;}static['updateColumnSubtotal'](_0x34ae8c,_0x57acde,_0x3d46d6,_0x419d64,_0x2cfcd6){const _0x416344=_0x44a51f;let {view:_0x50f8c5,isColMultiMeasure:_0xf9afba,valueIndex:_0x27a566,measuresMap:_0x26a1b3,measureIndexesMap:_0x550824,colDeep:_0x55539b,valueQueryInfo:_0x3278c9}=_0x34ae8c,_0x4a655f=_0x50f8c5[_0x416344(0x134)],_0x59a58d=_0x3d46d6[_0x416344(0x238)],_0x3b3de6=_0x3d46d6[_0x416344(0x1e2)](),_0x3220da=this[_0x416344(0x292)](_0xf9afba,_0x3b3de6,_0x27a566);if(_0x3b3de6===0x0){let _0x2bb11d=_0x55539b===0x0?0x0:0x1;if(_0x3220da){let _0x4b5995=0x0;for(let _0x483bcf of _0x419d64){let {displayName:_0x20f9d7}=_0x26a1b3[_0x483bcf];_0x4a655f[_0x416344(0x17a)](_0x2bb11d,_0x4b5995+_0x57acde,''+_0x20f9d7),_0x4a655f[_0x416344(0x437)](_0x2bb11d,_0x4b5995+_0x57acde,0xf),_0x4a655f[_0x416344(0x1d4)](_0x4b5995+_0x57acde,{'level':_0x3b3de6,'paths':_0x3d46d6[_0x416344(0x334)](),'valueIndex':_0x4b5995,'isBottomTotal':!0x0,'colPathMap':_0x2cfcd6,'tableFieldId':''}),_0x4b5995++;}}else{_0x55539b===0x0&&_0x3278c9[_0x416344(0x15c)]===0x1?_0x4a655f[_0x416344(0x17a)](_0x2bb11d,_0x57acde,_0x3278c9[0x0]['displayName']):(_0x4a655f['setValue'](_0x2bb11d,_0x57acde,''),_0x4a655f['setStyle'](_0x2bb11d,_0x57acde,0xe));let _0x2ece4e=this[_0x416344(0x2d4)](_0xf9afba,_0x419d64,_0x550824);_0x4a655f[_0x416344(0x1d4)](_0x57acde,{'level':_0x3b3de6,'paths':_0x3d46d6[_0x416344(0x334)](),'valueIndex':_0x2ece4e,'isBottomTotal':!0x0,'colPathMap':_0x2cfcd6,'tableFieldId':''});}}else{let _0x55bad1=this[_0x416344(0x26f)](_0x3b3de6,_0x27a566,_0xf9afba),_0x2f0b9a=_0x3d46d6['getCollapse'](),_0x36832b=_0x3d46d6['getFieldsId'](),_0x50bfed=_0x3d46d6[_0x416344(0x477)]===0x5,_0x21cd54=_0x3d46d6['type']===0x6;if(_0x2f0b9a&&_0x55bad1++,_0x3220da){let _0x4875c5=0x0,_0x1db14e=_0x3b3de6;for(let _0x47058f of _0x419d64){let {displayName:_0x4d92ea}=_0x26a1b3[_0x47058f],_0x3fd8f3=_0x2f0b9a?_0x4d92ea:{'prefix':_0x3d46d6['displayName'],'value':_0x4d92ea};_0x4a655f[_0x416344(0x437)](_0x1db14e,_0x57acde+_0x4875c5,0xd),this[_0x416344(0x320)](_0x4a655f,_0x1db14e,_0x57acde+_0x4875c5,_0x3fd8f3,!_0x2f0b9a&&_0x50bfed,!_0x2f0b9a&&_0x21cd54),_0x4a655f[_0x416344(0x1d4)](_0x57acde+_0x4875c5,{'level':_0x3b3de6,'paths':_0x3d46d6[_0x416344(0x334)](),'valueIndex':_0x4875c5,'isBottomTotal':!0x0,'colPathMap':_0x2cfcd6,'tableFieldId':_0x36832b}),_0x4875c5++;}}else{_0x2f0b9a||(this[_0x416344(0x320)](_0x4a655f,_0x55bad1,_0x57acde,_0x59a58d,_0x50bfed,_0x21cd54&&_0x3d46d6[_0x416344(0x20a)]===a[_0x416344(0x1a6)]),_0x4a655f[_0x416344(0x437)](_0x55bad1,_0x57acde,0xd));let _0x4e5a92=this[_0x416344(0x2d4)](_0xf9afba,_0x419d64,_0x550824);_0x4a655f[_0x416344(0x1d4)](_0x57acde,{'level':_0x3b3de6,'paths':_0x3d46d6['getPaths'](),'valueIndex':_0x4e5a92,'isBottomTotal':!0x0,'colPathMap':_0x2cfcd6,'tableFieldId':_0x36832b});}}}},mt=class extends pt{static[_0x44a51f(0x191)](_0x413fc5,_0x100954,_0x11304b){const _0x25bc44=_0x44a51f;let _0x4896e3=this[_0x25bc44(0x169)](_0x413fc5,_0x100954,_0x11304b);return this['layoutPage'](_0x4896e3),this['layoutCol'](_0x4896e3),this['layoutRowFields'](_0x4896e3),this[_0x25bc44(0x373)](_0x4896e3),this['setValueSize'](_0x4896e3),this['layoutCorner'](_0x4896e3),_0x4896e3[_0x25bc44(0x12f)];}static['layoutHeadersWithoutColumnDimensions'](_0x229aaa){const _0x535ee9=_0x44a51f;if(_0x229aaa[_0x535ee9(0x2d3)]!==0x0)return;let _0xc3f4e0=_0x229aaa[_0x535ee9(0x12f)][_0x535ee9(0x134)];(_0x229aaa[_0x535ee9(0x1d5)]!==0x0||_0x229aaa[_0x535ee9(0x33f)]===0x1||_0x229aaa['isRowMultiMeasure'])&&(_0x229aaa['measureCount']===0x1&&(_0xc3f4e0[_0x535ee9(0x17a)](0x0,0x0,_0x229aaa['valueQueryInfo'][0x0][_0x535ee9(0x238)]),_0xc3f4e0['setInfo'](0x0,this[_0x535ee9(0x3d2)](_0x229aaa,_0xc3f4e0[_0x535ee9(0x41d)][0x0]))),_0xc3f4e0['setRowCount'](0x1));}static[_0x44a51f(0x3d2)](_0x1b2f1c,_0x8bcb60){const _0x3e3bc5=_0x44a51f;let _0x2af377=_0x1b2f1c[_0x3e3bc5(0x35f)][0x0];return{..._0x8bcb60,'tableFieldId':_0x2af377['id'],'dataFieldId':_0x2af377[_0x3e3bc5(0x384)],'isValue':!0x0};}static[_0x44a51f(0x3c3)](_0x159c54){const _0x3879f2=_0x44a51f;let {rowDeep:_0x29ebea,colDeep:_0x2f5a9c,measureCount:_0x30f6ed,isRowMultiMeasure:_0x36ad59,isColMultiMeasure:_0x4950e4}=_0x159c54,_0x5a1c86=_0x159c54[_0x3879f2(0x12f)]['colView'][_0x3879f2(0x3bd)]();_0x5a1c86===0x0&&_0x29ebea!==0x0&&(_0x5a1c86=0x1);let _0x18268a=_0x159c54[_0x3879f2(0x12f)][_0x3879f2(0x145)][_0x3879f2(0x2cd)]();return _0x29ebea===0x0&&(_0x30f6ed===0x0?_0x18268a=0x0:_0x30f6ed===0x1?(_0x18268a=_0x2f5a9c===0x0?0x0:0x1,_0x5a1c86=_0x2f5a9c===0x0?0x1:_0x5a1c86):_0x36ad59?_0x18268a=0x1:_0x4950e4&&(_0x18268a=0x0)),{'rowCount':_0x18268a,'colCount':_0x5a1c86};}static[_0x44a51f(0x126)](_0x3fdd30){const _0x4e8478=_0x44a51f;let {rowDeep:_0x3ff261,colDeep:_0x1d46da,view:_0x4e2ca6,measureCount:_0x290b3b,isRowMultiMeasure:_0x28e285,valueIndex:_0x115325}=_0x3fdd30,_0x5775ba=_0x3fdd30[_0x4e8478(0x202)]['rowQueryInfo'],_0x2c19bb=_0x3fdd30[_0x4e8478(0x202)][_0x4e8478(0x35f)],_0x36f84f=_0x4e2ca6[_0x4e8478(0x3b9)],_0x1174a1=_0x4e2ca6[_0x4e8478(0x145)],{rowCount:_0x199870,colCount:_0x1785f9}=this[_0x4e8478(0x3c3)](_0x3fdd30);_0x36f84f[_0x4e8478(0x2f7)](_0x1785f9),_0x36f84f['setColCount'](_0x199870),_0x290b3b===0x1&&_0x1d46da>0x0&&_0x3ff261>0x0&&_0x36f84f[_0x4e8478(0x17a)](0x0,0x0,_0x2c19bb[0x0]['displayName']);let _0x4a755c=0x0,_0x170607=!0x1,_0x28dd6d=_0x1785f9-0x1;for(let _0x1e8f50=0x0;_0x1e8f50<_0x3ff261;_0x1e8f50++){let {displayName:_0xe6a10e,filterInfo:_0x654b08,sortInfo:_0x89258b,dataFieldId:_0xc564a1,id:_0x5da5c9}=_0x5775ba[_0x1e8f50];_0x28e285&&_0x1e8f50===_0x115325&&(_0x36f84f[_0x4e8478(0x17a)](_0x28dd6d,_0x4a755c,_0x4e8478(0x2b5)),_0x170607=!0x0,_0x36f84f[_0x4e8478(0x1d4)](_0x4a755c,{'paths':[],'level':-0x1,'tableFieldId':'','dataFieldId':'','valueIndex':-0x1,'isValue':!0x0}),_0x1174a1[_0x4e8478(0x41f)](_0x4a755c,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}),_0x4a755c++),_0x36f84f[_0x4e8478(0x17a)](_0x28dd6d,_0x4a755c,_0xe6a10e),_0x1174a1['addHeaderMapItem'](_0x4a755c,{'isValue':!0x1,'level':_0x1e8f50,'tableFieldId':_0x5da5c9,'dataFieldId':_0xc564a1}),_0x36f84f[_0x4e8478(0x437)](_0x28dd6d,_0x4a755c,z(_0x654b08,_0x89258b,_0x3fdd30[_0x4e8478(0x473)][_0x5da5c9])),_0x36f84f[_0x4e8478(0x1d4)](_0x4a755c,{'paths':[],'level':_0x1e8f50,'tableFieldId':_0x5da5c9,'dataFieldId':_0xc564a1,'valueIndex':-0x1}),_0x4a755c++;}!_0x170607&&_0x28e285&&(_0x36f84f['setValue'](_0x28dd6d,_0x4a755c,'\x20Σ值'),_0x1174a1[_0x4e8478(0x41f)](_0x4a755c,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x44a51f(0x3d5)](_0x2b81f6){const _0x152109=_0x44a51f;let {rowNodeTree:_0x484823,view:_0x95531c,rowDeep:_0x34a753,colDeep:_0x29f5cb,isRowMultiMeasure:_0x2d0861,isColMultiMeasure:_0x3b063d,valueQueryInfo:_0x23b2f0,measureCount:_0x5bc12a}=_0x2b81f6,_0x2f3317=_0x2d0861?_0x23b2f0[_0x152109(0x47c)](_0x463f14=>_0x463f14['id']):[],_0x52ed7c=this[_0x152109(0x1f3)](_0x2b81f6,_0x484823,0x0,_0x2f3317),_0x18e647=_0x95531c['rowView'];_0x18e647[_0x152109(0x2f7)](this[_0x152109(0x1bc)](_0x52ed7c)),_0x34a753===0x0?_0x5bc12a===0x0||_0x3b063d?_0x18e647['setColCount'](0x0):_0x2d0861?_0x18e647[_0x152109(0x232)](0x1):_0x18e647[_0x152109(0x232)](_0x29f5cb===0x0?0x0:0x1):_0x18e647[_0x152109(0x232)](_0x2d0861?_0x34a753+0x1:_0x34a753);}static[_0x44a51f(0x3f6)](_0x14d7bd,_0x42ff4b,_0x2adbb4,_0x37c17b){const _0x17bf02=_0x44a51f;let {view:_0x7636b0,isRowMultiMeasure:_0x21dc4a,valueIndex:_0x260b7e,measureCount:_0x3f8b00,measuresMap:_0x5e382c,measureIndexesMap:_0x2b5a13}=_0x14d7bd,_0x1e8cf2=_0x7636b0['rowView'],_0x13772d=_0x42ff4b[_0x17bf02(0x1e2)](),_0x38afe6=_0x42ff4b[_0x17bf02(0x477)]===0x5,_0x54765e=_0x42ff4b[_0x17bf02(0x477)]===0x6,_0x3e38f9=this['shouldMultipleNode'](_0x21dc4a,_0x13772d,_0x260b7e),_0x423a6b=_0x42ff4b['getFieldsId']();if(_0x3e38f9){let _0x4717c4=0x0;for(let _0x5a6f1a of _0x37c17b){let _0x5d629f=this[_0x17bf02(0x458)](_0x13772d,_0x260b7e,_0x21dc4a)+0x1;_0x1e8cf2['setValue'](_0x2adbb4+_0x4717c4,_0x5d629f,_0x5e382c[_0x5a6f1a][_0x17bf02(0x238)]),_0x38afe6&&_0x260b7e!==_0x42ff4b[_0x17bf02(0x1e2)]()&&_0x1e8cf2[_0x17bf02(0x429)](_0x2adbb4+_0x4717c4,_0x5d629f),_0x54765e&&_0x260b7e!==_0x42ff4b[_0x17bf02(0x1e2)]()&&_0x1e8cf2[_0x17bf02(0x47a)](_0x2adbb4+_0x4717c4,_0x5d629f);let _0x4c0783=_0x42ff4b[_0x17bf02(0x334)]();_0x1e8cf2[_0x17bf02(0x1d4)](_0x2adbb4+_0x4717c4,{'paths':_0x4c0783,'valueIndex':_0x21dc4a?_0x4717c4:-0x1,'level':_0x13772d,'tableFieldId':_0x423a6b}),this[_0x17bf02(0x302)](_0x14d7bd,_0x42ff4b,_0x2adbb4+_0x4717c4),this['startContent'](_0x14d7bd,_0x42ff4b,_0x2adbb4+_0x4717c4,_0x4717c4),_0x4717c4++;}return{'itemSize':0x1*_0x3f8b00,'topTotalSize':0x0,'bottomTotalSize':0x0};}{let _0x1931ce=_0x21dc4a?_0x2b5a13[_0x37c17b[0x0]]:-0x1,_0x3e4a80=_0x42ff4b[_0x17bf02(0x334)]();return _0x1e8cf2['setInfo'](_0x2adbb4,{'level':_0x13772d,'paths':_0x3e4a80,'valueIndex':_0x1931ce,'tableFieldId':_0x423a6b}),this[_0x17bf02(0x302)](_0x14d7bd,_0x42ff4b,_0x2adbb4),_0x13772d===0x0&&_0x3f8b00===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x1931ce}:(this['startContent'](_0x14d7bd,_0x42ff4b,_0x2adbb4,_0x1931ce),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x1931ce});}}static['startContent'](_0x2fb70c,_0x2a9c25,_0x2c5ce6,_0x4bac9f){const _0x279b3a=_0x44a51f;let {measureCount:_0x23e385}=_0x2fb70c;_0x23e385<=0x0||(_0x2a9c25['iterate'](_0x36b874=>{const _0x2ccc8a=_0x45d7;this[_0x2ccc8a(0x3c4)](_0x2fb70c,_0x36b874,_0x2c5ce6,_0x4bac9f,[_0x36b874[_0x2ccc8a(0x20a)]]);}),this[_0x279b3a(0x12b)](_0x2fb70c,_0x2a9c25,_0x2c5ce6,[],_0x4bac9f));}static[_0x44a51f(0x3c4)](_0x2ade78,_0x4b38d2,_0xba2a30,_0x40c726,_0x3de07f){const _0xfadb38=_0x44a51f;let _0x169bce=_0x4b38d2[_0xfadb38(0x442)]();this['layoutValueLeafNode'](_0x2ade78,_0x4b38d2,_0xba2a30,_0x3de07f,_0x40c726),_0x169bce||(this[_0xfadb38(0x306)](_0x2ade78,_0xba2a30),_0x4b38d2[_0xfadb38(0x1fa)](_0x245e6f=>{const _0x319287=_0xfadb38;let _0x37a871=_0x3de07f[_0x319287(0x309)](_0x245e6f['name']);this['layoutValueNode'](_0x2ade78,_0x245e6f,_0xba2a30,_0x40c726,_0x37a871);}));}static[_0x44a51f(0x306)](_0x485c86,_0x129cf3){const _0x1023f8=_0x44a51f;let {view:_0x4a71ed,summaryManager:_0x55af27,valueQueryInfo:_0x3620f6,rowDeep:_0x175c89,measureCount:_0x21fd98}=_0x485c86,_0x35b334=_0x4a71ed[_0x1023f8(0x13d)],_0x41e8ae=_0x4a71ed[_0x1023f8(0x134)],_0x1f56b=_0x4a71ed[_0x1023f8(0x145)][_0x1023f8(0x41d)][_0x129cf3],_0x17e23b=_0x1f56b[_0x1023f8(0x25d)];if(!(_0x1f56b['level']===_0x175c89||_0x21fd98<=0x0))for(let _0x59ba77=0x0;_0x59ba77<_0x41e8ae[_0x1023f8(0x41d)][_0x1023f8(0x15c)];_0x59ba77++){let _0x829de8=_0x41e8ae[_0x1023f8(0x41d)][_0x59ba77],{colPathMap:_0x2b9d09}=_0x829de8,_0x41f0cf=_0x55af27[_0x1023f8(0x1d1)](_0x17e23b,_0x55af27[_0x1023f8(0x303)]),_0x4d8b0c=_0x2b9d09==null?void 0x0:_0x2b9d09[_0x41f0cf],_0xbb22d1=this[_0x1023f8(0x167)](_0x485c86,_0x3620f6,_0x1f56b,_0x829de8);if(_0x4d8b0c){let _0x56f4c9=_0x55af27[_0x1023f8(0x12c)](_0x4d8b0c,_0xbb22d1);_0x56f4c9!==void 0x0&&_0x35b334[_0x1023f8(0x17a)](_0x129cf3,_0x59ba77,_0x56f4c9);}}}static[_0x44a51f(0x167)](_0x54bcd4,_0x46a980,_0x17898d,_0xebbec7){let {isColMultiMeasure:_0x5e7e7a,isRowMultiMeasure:_0x422cf7}=_0x54bcd4;return _0x5e7e7a?_0x46a980[_0xebbec7['valueIndex']]:_0x422cf7?_0x46a980[_0x17898d['valueIndex']]:_0x46a980[0x0];}static['layoutValueLeafNode'](_0x4ca588,_0x344d54,_0xb6ab6f,_0x2008f2,_0x4a2b62){const _0x2f6a2c=_0x44a51f;let {view:_0x2953a4,colMap:_0x549091,isColMultiMeasure:_0x414299,measureCount:_0x4c7b1e}=_0x4ca588,_0x927abf=_0x2953a4['dataView'],_0x33a77e=[];if(_0x4a2b62===-0x1){if(_0x414299){for(let _0x1919e1=0x0;_0x1919e1<_0x4c7b1e;_0x1919e1++)_0x33a77e[_0x2f6a2c(0x1d6)](_0x1919e1);}else _0x4c7b1e>0x0&&_0x33a77e[_0x2f6a2c(0x1d6)](0x0);}else _0x33a77e[_0x2f6a2c(0x1d6)](_0x4a2b62);for(let _0x4b8154 of _0x33a77e){let _0x3d1e90=_0x549091[Oe(_0x2008f2,_0x4b8154,_0x414299)],_0x152208=this[_0x2f6a2c(0x2d2)](_0x4ca588,_0x344d54,_0x4b8154);_0x152208!==void 0x0&&_0x927abf[_0x2f6a2c(0x17a)](_0xb6ab6f,_0x3d1e90,_0x152208);}}static[_0x44a51f(0x458)](_0x3fe80a,_0x2c004a,_0x12c60e){return _0x12c60e?_0x3fe80a<=_0x2c004a?_0x3fe80a-0x1:_0x3fe80a:_0x3fe80a-0x1;}static[_0x44a51f(0x302)](_0x173453,_0x39eb2f,_0x1b93d2){const _0x4bd364=_0x44a51f;if(!_0x173453[_0x4bd364(0x3de)])return;let _0x47194b=_0x173453[_0x4bd364(0x12f)]['rowView'],_0x18799f=_0x39eb2f[_0x4bd364(0x450)],_0x2ebe19=Math['min'](_0x39eb2f[_0x4bd364(0x1e2)](),_0x173453[_0x4bd364(0x1d5)]);for(let _0x5b8700=0x1;_0x5b8700<=_0x2ebe19;_0x5b8700++){let _0x3cecc1=this[_0x4bd364(0x458)](_0x5b8700,_0x173453[_0x4bd364(0x38c)],_0x173453[_0x4bd364(0x3eb)]);_0x3cecc1<0x0||_0x47194b[_0x4bd364(0x17a)](_0x1b93d2,_0x3cecc1,_0x18799f[_0x5b8700-0x1]);}}static[_0x44a51f(0x150)](_0x93d40a,_0x558354,_0x3bc2a8,_0x13edca){const _0x5329cd=_0x44a51f;let {isRowMultiMeasure:_0x1a01a8,valueIndex:_0x598021,view:_0x10bba1,measuresMap:_0x214318}=_0x93d40a,_0x57e2ab=_0x558354[_0x5329cd(0x1e2)](),_0x34ad82=_0x3bc2a8,_0x2aba73={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0},_0x2173a1=this[_0x5329cd(0x141)](_0x1a01a8,_0x558354['getLevel'](),_0x598021),_0x4b25f9=_0x558354['type']===0x5,_0x3d98df=_0x558354[_0x5329cd(0x477)]===0x6;if(_0x2173a1){for(let _0x4f40e2 of _0x13edca){let _0x1cd680=this[_0x5329cd(0x458)](_0x57e2ab,_0x598021,_0x1a01a8),_0x592738=_0x10bba1[_0x5329cd(0x145)];_0x592738['setValue'](_0x34ad82,_0x1cd680+0x1,_0x214318[_0x4f40e2]['displayName']),_0x4b25f9&&_0x592738['setBlank'](_0x34ad82,_0x1cd680+0x1),_0x3d98df&&_0x592738[_0x5329cd(0x47a)](_0x34ad82,_0x1cd680+0x1),_0x558354[_0x5329cd(0x1fa)](_0x5ab595=>{const _0xa900e3=_0x5329cd;let _0x56d55c=this[_0xa900e3(0x1f3)](_0x93d40a,_0x5ab595,_0x34ad82,[_0x4f40e2]),{itemSize:_0x52cbfc,topTotalSize:_0x1c782e,bottomTotalSize:_0x3b4223}=_0x56d55c;_0x2aba73[_0xa900e3(0x2a8)]+=_0x52cbfc,_0x2aba73['topTotalSize']+=_0x1c782e,_0x2aba73[_0xa900e3(0x139)]+=_0x3b4223,_0x34ad82+=this['getRealSize'](_0x56d55c);});}_0x34ad82++;}else _0x558354[_0x5329cd(0x1fa)](_0x4247b9=>{const _0x1de541=_0x5329cd;let _0x2c73cf=this[_0x1de541(0x1f3)](_0x93d40a,_0x4247b9,_0x34ad82,_0x13edca),{itemSize:_0xfc0b62,topTotalSize:_0x394700,bottomTotalSize:_0x5bf27e}=_0x2c73cf;_0x2aba73['itemSize']+=_0xfc0b62,_0x2aba73[_0x1de541(0x421)]+=_0x394700,_0x2aba73['bottomTotalSize']+=_0x5bf27e,_0x34ad82+=this[_0x1de541(0x1bc)](_0x2c73cf);});return _0x2aba73;}static[_0x44a51f(0x1f3)](_0x381c67,_0x332d39,_0x513626,_0x2ef7d6){const _0x976a4=_0x44a51f;let {view:_0x2843d2,rowDeep:_0x4e7231,isRowMultiMeasure:_0x71800e,valueIndex:_0x527b81,measureCount:_0x4c5590,colDeep:_0x3b794c,valueQueryInfo:_0x18a7dd}=_0x381c67,_0x55762d=_0x2843d2[_0x976a4(0x145)],_0x34f4e4=_0x332d39['displayName'],_0x31a4e1=_0x332d39[_0x976a4(0x1e2)](),_0x5b2589=this[_0x976a4(0x458)](_0x31a4e1,_0x527b81,_0x71800e),_0x393e11=_0x332d39[_0x976a4(0x1ba)](),_0x16e1a4=this[_0x976a4(0x2f2)](_0x332d39,_0x4e7231),_0x36a4fa=_0x332d39[_0x976a4(0x477)]===0x5,_0x1fa8f5=_0x332d39[_0x976a4(0x477)]===0x6,_0x53886c=_0x332d39['type']===0x4||_0x332d39['type']===0x2,_0xfa6862=_0x31a4e1===0x0;if(!_0xfa6862){let _0x398000=_0x53886c?Number(_0x34f4e4):_0x34f4e4;_0x55762d[_0x976a4(0x17a)](_0x513626,_0x5b2589,_0x398000),_0x36a4fa&&_0x55762d[_0x976a4(0x429)](_0x513626,_0x5b2589),_0x1fa8f5&&_0x55762d[_0x976a4(0x47a)](_0x513626,_0x5b2589),_0x16e1a4||_0x55762d[_0x976a4(0x437)](_0x513626,_0x5b2589,_0x393e11?0xb:0xc);}if(_0x16e1a4){let _0x5e365c=_0xfa6862&&!_0x71800e&&_0x4e7231===0x0&&_0x3b794c!==0x0&&_0x18a7dd[_0x976a4(0x15c)]===0x1;_0xfa6862&&!_0x71800e&&_0x4c5590>0x0&&(_0x4e7231===0x0?_0x3b794c!==0x0&&_0x55762d[_0x976a4(0x17a)](_0x513626,0x0,_0x18a7dd[0x0][_0x976a4(0x238)]):_0x3b794c!==0x0&&_0x18a7dd[_0x976a4(0x15c)]===0x1?_0x55762d[_0x976a4(0x17a)](_0x513626,0x0,_0x18a7dd[0x0][_0x976a4(0x238)]):(_0x55762d[_0x976a4(0x17a)](_0x513626,0x0,''),_0x55762d[_0x976a4(0x437)](_0x513626,0x0,0xe)));let _0xc5ed8e=this['doRowLeafNode'](_0x381c67,_0x332d39,_0x513626,_0x2ef7d6);return _0x5e365c&&_0x55762d['setInfo'](_0x513626,this['createSingleValueHeaderInfo'](_0x381c67,_0x55762d[_0x976a4(0x41d)][_0x513626])),_0xc5ed8e;}{let _0x1a5e18=_0x513626,_0x109b80={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0};_0x393e11||(_0x109b80=this[_0x976a4(0x150)](_0x381c67,_0x332d39,_0x513626,_0x2ef7d6),_0x1a5e18+=this[_0x976a4(0x1bc)](_0x109b80));let _0x33d511=this[_0x976a4(0x292)](_0x71800e,_0x31a4e1,_0x527b81);return(_0xfa6862?_0x381c67[_0x976a4(0x1d5)]===0x0||_0x381c67[_0x976a4(0x255)]:_0x381c67[_0x976a4(0x1fd)]||_0x393e11)&&(this[_0x976a4(0x3d8)](_0x381c67,_0x1a5e18,_0x332d39,_0x2ef7d6),_0x33d511?_0x109b80['bottomTotalSize']+=_0x4c5590:_0x109b80[_0x976a4(0x139)]++),_0x109b80;}}static[_0x44a51f(0x3d8)](_0x47e555,_0x103925,_0x428af6,_0x3662c9){const _0x3ab974=_0x44a51f;let {view:_0x45fec5,isRowMultiMeasure:_0x55684f,valueIndex:_0x218cde,measuresMap:_0x25678b,measureIndexesMap:_0x326ec6,rowDeep:_0x11d211,colDeep:_0x379fab,valueQueryInfo:_0x5c089e}=_0x47e555,_0x47f047=_0x45fec5[_0x3ab974(0x145)],_0xbcf5c9=_0x428af6[_0x3ab974(0x1e2)](),_0x93879e=this[_0x3ab974(0x292)](_0x55684f,_0xbcf5c9,_0x218cde);if(_0xbcf5c9===0x0){if(_0x93879e){let _0x53d09b=0x0;for(let _0x404a7f of _0x3662c9){let {displayName:_0x14dfc9}=_0x25678b[_0x404a7f];_0x47f047[_0x3ab974(0x17a)](_0x53d09b+_0x103925,0x0,''+_0x14dfc9),_0x47f047[_0x3ab974(0x437)](_0x53d09b+_0x103925,0x0,0xf),_0x47f047['setInfo'](_0x53d09b+_0x103925,{'paths':_0x428af6[_0x3ab974(0x334)](),'valueIndex':_0x53d09b,'isBottomTotal':!0x0,'level':_0xbcf5c9,'tableFieldId':''}),this[_0x3ab974(0x306)](_0x47e555,_0x103925+_0x53d09b),_0x53d09b++;}}else{_0x11d211===0x0&&_0x379fab!==0x0&&_0x5c089e['length']===0x1?_0x47f047['setValue'](_0x103925,0x0,_0x5c089e[0x0][_0x3ab974(0x238)]):(_0x47f047[_0x3ab974(0x17a)](_0x103925,0x0,''),_0x47f047[_0x3ab974(0x437)](_0x103925,0x0,0xe));let _0x20979f=_0x55684f?_0x326ec6[_0x3662c9[0x0]]:-0x1;_0x47f047['setInfo'](_0x103925,{'paths':_0x428af6[_0x3ab974(0x334)](),'valueIndex':_0x20979f,'isBottomTotal':!0x0,'level':_0xbcf5c9,'tableFieldId':''}),_0x11d211===0x0&&_0x379fab!==0x0&&_0x5c089e[_0x3ab974(0x15c)]===0x1&&_0x47f047[_0x3ab974(0x1d4)](_0x103925,this[_0x3ab974(0x3d2)](_0x47e555,_0x47f047[_0x3ab974(0x41d)][_0x103925])),this['layoutValueNodeSubtotal'](_0x47e555,_0x103925);}}else{let _0x2c0ba3=this[_0x3ab974(0x458)](_0xbcf5c9,_0x218cde,_0x55684f),_0x6cb545=_0x428af6[_0x3ab974(0x1ba)](),_0x141d87=_0x428af6[_0x3ab974(0x1db)](),_0x42c907=_0x428af6[_0x3ab974(0x477)]===0x5,_0x2445bb=_0x428af6[_0x3ab974(0x477)]===0x6;if(_0x6cb545&&_0x2c0ba3++,_0x93879e){let _0x6315cb=0x0,_0x8bbbff=_0x47e555[_0x3ab974(0x38c)];for(let _0x2c1ba0 of _0x3662c9){let {displayName:_0x26e721}=_0x25678b[_0x2c1ba0];if(_0x6cb545)_0x47f047[_0x3ab974(0x17a)](_0x103925+_0x6315cb,_0x8bbbff,_0x26e721);else{let _0x27d16b=_0x6cb545?''+_0x26e721:{'prefix':_0x428af6[_0x3ab974(0x238)],'value':_0x26e721};_0x47f047[_0x3ab974(0x17a)](_0x103925+_0x6315cb,_0x2c0ba3,_0x27d16b),_0x42c907&&_0x47f047[_0x3ab974(0x429)](_0x103925+_0x6315cb,_0x2c0ba3),_0x2445bb&&_0x47f047[_0x3ab974(0x47a)](_0x103925+_0x6315cb,_0x2c0ba3),_0x47f047[_0x3ab974(0x437)](_0x103925+_0x6315cb,_0x2c0ba3,0xd);}_0x47f047['setInfo'](_0x103925+_0x6315cb,{'paths':_0x428af6['getPaths'](),'valueIndex':_0x6315cb,'isBottomTotal':!0x0,'level':_0xbcf5c9,'tableFieldId':_0x141d87}),this[_0x3ab974(0x306)](_0x47e555,_0x103925+_0x6315cb),_0x6315cb++;}}else{_0x6cb545||(this['setLabelValue'](_0x47f047,_0x103925,_0x2c0ba3,_0x428af6[_0x3ab974(0x238)],_0x42c907,_0x2445bb&&_0x428af6[_0x3ab974(0x20a)]===a[_0x3ab974(0x1a6)]),_0x47f047['setStyle'](_0x103925,_0x2c0ba3,0xd));let _0x252972=_0x55684f?_0x326ec6[_0x3662c9[0x0]]:-0x1;_0x47f047['setInfo'](_0x103925,{'paths':_0x428af6[_0x3ab974(0x334)](),'valueIndex':_0x252972,'isBottomTotal':!0x0,'level':_0xbcf5c9,'tableFieldId':_0x141d87}),this['layoutValueNodeSubtotal'](_0x47e555,_0x103925);}}}},ht=class extends mt{static[_0x44a51f(0x191)](_0x2f94f9,_0x391dc5,_0x50594f){const _0x40e029=_0x44a51f;let _0x22da57=this[_0x40e029(0x169)](_0x2f94f9,_0x391dc5,_0x50594f);return this[_0x40e029(0x3db)](_0x22da57),this[_0x40e029(0x1c8)](_0x22da57),this[_0x40e029(0x3d5)](_0x22da57),this[_0x40e029(0x373)](_0x22da57),this['setValueSize'](_0x22da57),this[_0x40e029(0x126)](_0x22da57),_0x22da57[_0x40e029(0x12f)];}static[_0x44a51f(0x3d5)](_0x352f94){const _0x4e9891=_0x44a51f;let {rowNodeTree:_0x108248,view:_0x29c882,isRowMultiMeasure:_0x5f5c29,valueQueryInfo:_0x33be88,measureCount:_0x539d8f,rowDeep:_0x5809ec,showRowGrandTotal:_0x1bee9c}=_0x352f94,_0x41ad16=_0x29c882[_0x4e9891(0x145)],_0x184860=_0x5f5c29?_0x33be88[_0x4e9891(0x47c)](_0x3e0972=>_0x3e0972['id']):[],_0x52849f=0x0;if(_0x5809ec===0x0)_0x539d8f>0x0&&(_0x52849f=this[_0x4e9891(0x27f)](_0x352f94,_0x108248,_0x52849f,_0x184860));else{if(this['shouldSplitRootByValues'](_0x352f94)){for(let _0x5c5be4 of _0x184860)_0x52849f=this['writeRootValueHeaderRow'](_0x352f94,_0x52849f,_0x5c5be4),_0x52849f=this[_0x4e9891(0x467)](_0x352f94,_0x108248,_0x52849f,[_0x5c5be4]);}else _0x52849f=this[_0x4e9891(0x467)](_0x352f94,_0x108248,_0x52849f,_0x184860);_0x1bee9c&&(_0x539d8f>0x0||_0x5809ec>0x0)&&(_0x52849f=this[_0x4e9891(0x27f)](_0x352f94,_0x108248,_0x52849f,_0x184860));}_0x41ad16['setRowCount'](_0x52849f),_0x41ad16[_0x4e9891(0x232)](this['getRowColCount'](_0x352f94));}static['shouldSplitRootByValues'](_0x299c2b){return _0x299c2b['isRowMultiMeasure']&&_0x299c2b['valueIndex']===0x0;}static[_0x44a51f(0x467)](_0x351508,_0x110ed3,_0x312e79,_0x547270){const _0x1bbad7=_0x44a51f;let _0xba7c53=_0x312e79;return _0x110ed3[_0x1bbad7(0x1fa)](_0x4928f7=>{const _0x5ad004=_0x1bbad7;_0xba7c53=this[_0x5ad004(0x3b4)](_0x351508,_0x4928f7,_0xba7c53,_0x547270);}),_0xba7c53;}static[_0x44a51f(0x1f3)](_0x9633da,_0x5ae21d,_0x2138fc,_0x5dd6fc){return{'itemSize':this['layoutRowNodeToCursor'](_0x9633da,_0x5ae21d,_0x2138fc,_0x5dd6fc)-_0x2138fc,'topTotalSize':0x0,'bottomTotalSize':0x0};}static['layoutRowNodeToCursor'](_0x27473b,_0x23ccb0,_0x18c1c5,_0x5bfdbe){const _0x5d067e=_0x44a51f;let _0x181213=this[_0x5d067e(0x2f2)](_0x23ccb0,_0x27473b['rowDeep']),_0x3200f2=_0x23ccb0[_0x5d067e(0x1ba)]();if(!_0x181213){if(this[_0x5d067e(0x164)](_0x27473b,_0x23ccb0)&&!_0x3200f2){let _0x22cb97=this['writeParentItemRow'](_0x27473b,_0x23ccb0,_0x18c1c5);if(this[_0x5d067e(0x141)](_0x27473b['isRowMultiMeasure'],_0x23ccb0[_0x5d067e(0x1e2)](),_0x27473b[_0x5d067e(0x38c)])){for(let _0x455964 of _0x5bfdbe)_0x22cb97=this[_0x5d067e(0x39c)](_0x27473b,_0x23ccb0,_0x22cb97,_0x455964),_0x22cb97=this[_0x5d067e(0x467)](_0x27473b,_0x23ccb0,_0x22cb97,[_0x455964]);}else _0x22cb97=this[_0x5d067e(0x467)](_0x27473b,_0x23ccb0,_0x22cb97,_0x5bfdbe);return _0x27473b[_0x5d067e(0x1fd)]&&(_0x22cb97=this[_0x5d067e(0x42e)](_0x27473b,_0x23ccb0,_0x22cb97,_0x5bfdbe)),_0x22cb97;}if(this[_0x5d067e(0x162)](_0x27473b)&&!_0x3200f2){let _0x1c9273=this[_0x5d067e(0x35d)](_0x27473b,_0x23ccb0,_0x18c1c5);return _0x1c9273=this[_0x5d067e(0x467)](_0x27473b,_0x23ccb0,_0x1c9273,_0x5bfdbe),_0x27473b['showRowSubtotal']&&(_0x1c9273=this[_0x5d067e(0x42e)](_0x27473b,_0x23ccb0,_0x1c9273,_0x5bfdbe)),_0x1c9273;}if(this[_0x5d067e(0x141)](_0x27473b[_0x5d067e(0x3eb)],_0x23ccb0[_0x5d067e(0x1e2)](),_0x27473b[_0x5d067e(0x38c)])){let _0x2c688e=_0x18c1c5;for(let _0x57d54b of _0x5bfdbe)_0x2c688e=this[_0x5d067e(0x307)](_0x27473b,_0x23ccb0,_0x2c688e,[_0x57d54b]),_0x3200f2||(_0x2c688e=this[_0x5d067e(0x467)](_0x27473b,_0x23ccb0,_0x2c688e,[_0x57d54b]));return _0x2c688e;}let _0x385831=this['writeParentRows'](_0x27473b,_0x23ccb0,_0x18c1c5,_0x5bfdbe);return _0x3200f2||(_0x385831=this[_0x5d067e(0x467)](_0x27473b,_0x23ccb0,_0x385831,_0x5bfdbe)),_0x385831;}return this['writeLeafRows'](_0x27473b,_0x23ccb0,_0x18c1c5,_0x5bfdbe);}static[_0x44a51f(0x162)](_0x3f0193){const _0x20402b=_0x44a51f;return _0x3f0193[_0x20402b(0x40f)]===0x2;}static[_0x44a51f(0x164)](_0x553d35,_0x17c4d0){const _0x2ececc=_0x44a51f;return _0x553d35['isRowMultiMeasure']&&_0x553d35[_0x2ececc(0x38c)]>0x0&&_0x17c4d0[_0x2ececc(0x1e2)]()<=_0x553d35[_0x2ececc(0x38c)];}static['writeParentItemRow'](_0x8aaf28,_0x4eb137,_0xe9116){const _0xc1f02b=_0x44a51f;let _0x1ab194=this[_0xc1f02b(0x1bf)](_0x8aaf28,_0x4eb137[_0xc1f02b(0x1e2)]()),_0x4eca08=this['getNodeDisplayValue'](_0x4eb137),_0x3d910c=_0x8aaf28[_0xc1f02b(0x12f)]['rowView'];return _0x3d910c[_0xc1f02b(0x17a)](_0xe9116,_0x1ab194,_0x4eca08),this[_0xc1f02b(0x1f1)](_0x3d910c,_0xe9116,_0x1ab194,_0x4eb137),_0x3d910c['setStyle'](_0xe9116,_0x1ab194,0xc),_0x3d910c[_0xc1f02b(0x1d4)](_0xe9116,this[_0xc1f02b(0x463)](_0x4eb137,{'rowType':_0xc1f02b(0x461)})),_0xe9116+0x1;}static[_0x44a51f(0x39c)](_0xb4267e,_0xba06e8,_0x4a1deb,_0x359794){const _0x3e8686=_0x44a51f;let _0xe746bd=this[_0x3e8686(0x3fa)](_0xb4267e,_0xba06e8['getLevel']()),_0x40915c=_0xb4267e[_0x3e8686(0x31d)][_0x359794],_0x436ada=_0xb4267e[_0x3e8686(0x12f)][_0x3e8686(0x145)];return _0x436ada[_0x3e8686(0x17a)](_0x4a1deb,_0xe746bd,_0xb4267e[_0x3e8686(0x46b)][_0x359794][_0x3e8686(0x238)]),_0x436ada[_0x3e8686(0x1d4)](_0x4a1deb,this['createRowInfo'](_0xba06e8,{'valueIndex':_0x40915c,'isValue':!0x0,'dataFieldId':_0xb4267e['measuresMap'][_0x359794][_0x3e8686(0x384)],'rowType':'value'})),_0x4a1deb+0x1;}static[_0x44a51f(0x182)](_0x24a464,_0x450339,_0x267c31){const _0x15c323=_0x44a51f;let _0x4ad6c1=_0x24a464[_0x15c323(0x31d)][_0x267c31],_0x11a2d7=_0x24a464[_0x15c323(0x46b)][_0x267c31],_0xa8d8ba=_0x24a464[_0x15c323(0x12f)][_0x15c323(0x145)];return _0xa8d8ba[_0x15c323(0x17a)](_0x450339,0x0,_0x11a2d7[_0x15c323(0x238)]),_0xa8d8ba[_0x15c323(0x1d4)](_0x450339,{'paths':[],'valueIndex':_0x4ad6c1,'level':-0x1,'tableFieldId':'','dataFieldId':_0x11a2d7[_0x15c323(0x384)],'isValue':!0x0,'rowType':_0x15c323(0x1d0)}),_0x450339+0x1;}static[_0x44a51f(0x307)](_0x1d6a14,_0x3c5503,_0x3821f5,_0x1c6450){const _0xf9cf5a=_0x44a51f;if((_0x1d6a14[_0xf9cf5a(0x1fd)]||_0x3c5503['getCollapse']())&&_0x1d6a14[_0xf9cf5a(0x3eb)]&&_0x1c6450[_0xf9cf5a(0x15c)]>0x1&&this[_0xf9cf5a(0x292)](_0x1d6a14['isRowMultiMeasure'],_0x3c5503[_0xf9cf5a(0x1e2)](),_0x1d6a14[_0xf9cf5a(0x38c)])){let _0x345dbe=_0x3821f5;for(let _0x17b472 of _0x1c6450){let _0x3aaaad=_0x1d6a14[_0xf9cf5a(0x31d)][_0x17b472];this['writeParentRow'](_0x1d6a14,_0x3c5503,_0x345dbe,_0x3aaaad,_0x1d6a14[_0xf9cf5a(0x46b)][_0x17b472]['displayName']),_0x345dbe++;}return _0x345dbe;}let _0x43335d=_0x1d6a14['isRowMultiMeasure']&&_0x1c6450[_0xf9cf5a(0x15c)]===0x1?_0x1d6a14[_0xf9cf5a(0x31d)][_0x1c6450[0x0]]:-0x1,_0x2b51d6=_0x1d6a14[_0xf9cf5a(0x3eb)]&&_0x1c6450[_0xf9cf5a(0x15c)]===0x1&&_0x1d6a14['valueIndex']>0x0&&_0x1d6a14[_0xf9cf5a(0x38c)]<=_0x3c5503['getLevel']()?_0x1d6a14[_0xf9cf5a(0x46b)][_0x1c6450[0x0]][_0xf9cf5a(0x238)]:void 0x0;return this['writeParentRow'](_0x1d6a14,_0x3c5503,_0x3821f5,_0x43335d,_0x2b51d6),_0x3821f5+0x1;}static[_0x44a51f(0x3fd)](_0x25f4ca,_0x2a0ca8,_0x4b2745,_0x58723d,_0x2370d0){const _0x3397a3=_0x44a51f;let {showRowSubtotal:_0x11987f}=_0x25f4ca,_0x314ba8=_0x2a0ca8[_0x3397a3(0x1ba)](),_0x4fef3d=_0x11987f||_0x314ba8,_0x55b685=this[_0x3397a3(0x1bf)](_0x25f4ca,_0x2a0ca8[_0x3397a3(0x1e2)]()),_0xdb3b28=_0x2370d0?this['getValueLabelCol'](_0x25f4ca,_0x2a0ca8['getLevel']()):_0x55b685,_0x40f891=this[_0x3397a3(0x382)](_0x2a0ca8),_0x38f66f=_0x25f4ca['view']['rowView'];_0x38f66f['setValue'](_0x4b2745,_0x55b685,_0x40f891),this[_0x3397a3(0x1f1)](_0x38f66f,_0x4b2745,_0x55b685,_0x2a0ca8),_0x38f66f[_0x3397a3(0x437)](_0x4b2745,_0x55b685,_0x314ba8?0xb:0xc),_0x2370d0&&_0xdb3b28!==_0x55b685&&_0x38f66f['setValue'](_0x4b2745,_0xdb3b28,_0x2370d0),_0x38f66f[_0x3397a3(0x1d4)](_0x4b2745,this[_0x3397a3(0x463)](_0x2a0ca8,{'valueIndex':_0x58723d,'isBottomTotal':_0x4fef3d,'isSubtotal':_0x4fef3d,'isTopTotal':_0x4fef3d,'rowType':_0x4fef3d?'subtotal':_0x3397a3(0x461)})),_0x4fef3d&&this[_0x3397a3(0x306)](_0x25f4ca,_0x4b2745);}static[_0x44a51f(0x42e)](_0x5e83a9,_0x151e9d,_0x55eef9,_0x36b855){const _0x1a4779=_0x44a51f;let {isRowMultiMeasure:_0x41e887,measuresMap:_0x120f27}=_0x5e83a9;if(this[_0x1a4779(0x292)](_0x41e887,_0x151e9d[_0x1a4779(0x1e2)](),_0x5e83a9[_0x1a4779(0x38c)])){let _0x325868=_0x55eef9;for(let _0x585a02 of _0x36b855){let _0x3c716a=_0x5e83a9[_0x1a4779(0x31d)][_0x585a02];this[_0x1a4779(0x460)](_0x5e83a9,_0x151e9d,_0x325868,_0x3c716a,_0x120f27[_0x585a02][_0x1a4779(0x238)]),_0x325868++;}return _0x325868;}return this[_0x1a4779(0x460)](_0x5e83a9,_0x151e9d,_0x55eef9,_0x41e887?_0x5e83a9[_0x1a4779(0x31d)][_0x36b855[0x0]]:-0x1),_0x55eef9+0x1;}static[_0x44a51f(0x460)](_0x12cd25,_0x53fa6a,_0x139087,_0x26590b,_0x6481f9){const _0x303327=_0x44a51f;let _0x1ccfa2=this[_0x303327(0x1bf)](_0x12cd25,_0x53fa6a[_0x303327(0x1e2)]()),_0xcbd258=this[_0x303327(0x382)](_0x53fa6a),_0x53f257=_0x12cd25[_0x303327(0x12f)][_0x303327(0x145)];_0x53f257[_0x303327(0x17a)](_0x139087,_0x1ccfa2,_0x6481f9?{'prefix':String(_0xcbd258),'value':_0x6481f9}:_0xcbd258),this[_0x303327(0x1f1)](_0x53f257,_0x139087,_0x1ccfa2,_0x53fa6a),_0x53f257['setStyle'](_0x139087,_0x1ccfa2,0xd),_0x53f257['setInfo'](_0x139087,this[_0x303327(0x463)](_0x53fa6a,{'valueIndex':_0x26590b,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0x303327(0x2b1)})),this['layoutValueNodeSubtotal'](_0x12cd25,_0x139087);}static[_0x44a51f(0x367)](_0x2ffa52,_0x3fe2c1,_0x304430,_0x28cbd6){const _0x423768=_0x44a51f;let {isRowMultiMeasure:_0x2cc8cf,valueIndex:_0x5c3a78,measureCount:_0x240233,measuresMap:_0x38477c,measureIndexesMap:_0x5428b0}=_0x2ffa52;if(this[_0x423768(0x141)](_0x2cc8cf,_0x3fe2c1[_0x423768(0x1e2)](),_0x5c3a78)){if(this[_0x423768(0x210)](_0x2ffa52)){let _0x52720c=this[_0x423768(0x2ca)](_0x2ffa52,_0x3fe2c1,_0x304430);for(let _0x178b81 of _0x28cbd6){let _0x341f3e=_0x5428b0[_0x178b81];this[_0x423768(0x445)](_0x2ffa52,_0x3fe2c1,_0x52720c,_0x341f3e,_0x38477c[_0x178b81][_0x423768(0x238)]),this[_0x423768(0x282)](_0x2ffa52,_0x3fe2c1,_0x52720c,_0x341f3e),_0x52720c++;}return _0x52720c;}let _0x4862a6=_0x304430;for(let _0x37c17e of _0x28cbd6){let _0x2c6ed3=_0x5428b0[_0x37c17e],_0x2736de=this[_0x423768(0x1bf)](_0x2ffa52,_0x3fe2c1[_0x423768(0x1e2)]()),_0x373b94=this[_0x423768(0x3fa)](_0x2ffa52,_0x3fe2c1[_0x423768(0x1e2)]()),_0x188f59=this[_0x423768(0x382)](_0x3fe2c1),_0x39cd21=_0x2ffa52[_0x423768(0x12f)]['rowView'];_0x39cd21['setValue'](_0x4862a6,_0x2736de,_0x188f59),this[_0x423768(0x1f1)](_0x39cd21,_0x4862a6,_0x2736de,_0x3fe2c1),_0x373b94!==_0x2736de&&_0x39cd21['setValue'](_0x4862a6,_0x373b94,_0x38477c[_0x37c17e][_0x423768(0x238)]),_0x39cd21[_0x423768(0x1d4)](_0x4862a6,this['createRowInfo'](_0x3fe2c1,{'valueIndex':_0x2c6ed3,'isLeaf':!0x0,'rowType':'item'})),this[_0x423768(0x282)](_0x2ffa52,_0x3fe2c1,_0x4862a6,_0x2c6ed3),_0x4862a6++;}return _0x4862a6;}let _0x2c7e64=_0x2cc8cf?_0x5428b0[_0x28cbd6[0x0]]:-0x1,_0x1ba2f2=this['getRowLabelCol'](_0x2ffa52,_0x3fe2c1[_0x423768(0x1e2)]()),_0x20972d=this[_0x423768(0x382)](_0x3fe2c1),_0x57bb4e=_0x2ffa52[_0x423768(0x12f)][_0x423768(0x145)];return _0x57bb4e['setValue'](_0x304430,_0x1ba2f2,_0x20972d),this[_0x423768(0x1f1)](_0x57bb4e,_0x304430,_0x1ba2f2,_0x3fe2c1),_0x57bb4e[_0x423768(0x1d4)](_0x304430,this['createRowInfo'](_0x3fe2c1,{'valueIndex':_0x2c7e64,'isLeaf':!0x0,'rowType':'item'})),_0x240233>0x0&&this[_0x423768(0x282)](_0x2ffa52,_0x3fe2c1,_0x304430,_0x2c7e64),_0x304430+0x1;}static[_0x44a51f(0x210)](_0xd13c39){const _0x2ae0da=_0x44a51f;return _0xd13c39[_0x2ae0da(0x3eb)]&&_0xd13c39[_0x2ae0da(0x38c)]>0x0;}static[_0x44a51f(0x2ca)](_0x13b940,_0x4ac5d0,_0x48b3e9){const _0x20a1a7=_0x44a51f;let _0x3f8f0c=this[_0x20a1a7(0x1bf)](_0x13b940,_0x4ac5d0[_0x20a1a7(0x1e2)]()),_0x252473=this['getNodeDisplayValue'](_0x4ac5d0),_0x9ea1b4=_0x13b940[_0x20a1a7(0x12f)][_0x20a1a7(0x145)];return _0x9ea1b4['setValue'](_0x48b3e9,_0x3f8f0c,_0x252473),this[_0x20a1a7(0x1f1)](_0x9ea1b4,_0x48b3e9,_0x3f8f0c,_0x4ac5d0),_0x9ea1b4['setInfo'](_0x48b3e9,this[_0x20a1a7(0x463)](_0x4ac5d0,{'isLeaf':!0x0,'rowType':'item'})),_0x48b3e9+0x1;}static[_0x44a51f(0x445)](_0x40fae5,_0x54d679,_0x1442d0,_0x2d6af3,_0x3629d2){const _0x535b14=_0x44a51f;let _0x1993c4=this['getValueLabelCol'](_0x40fae5,_0x54d679[_0x535b14(0x1e2)]()),_0x2c9b85=_0x40fae5[_0x535b14(0x12f)]['rowView'];_0x2c9b85[_0x535b14(0x17a)](_0x1442d0,_0x1993c4,_0x3629d2),_0x2c9b85[_0x535b14(0x1d4)](_0x1442d0,this[_0x535b14(0x463)](_0x54d679,{'valueIndex':_0x2d6af3,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x535b14(0x1d0)}));}static['writeGrandTotalRows'](_0x5b9a61,_0x57c853,_0x36174b,_0x3bfd97){const _0x31e2ea=_0x44a51f;let {isRowMultiMeasure:_0x13aa19,measureCount:_0x147b36,measuresMap:_0xcd9338,measureIndexesMap:_0x2c24e6}=_0x5b9a61,_0x38c8b3=_0x5b9a61[_0x31e2ea(0x12f)][_0x31e2ea(0x145)];if(this['shouldMultipleTotal'](_0x13aa19,_0x57c853[_0x31e2ea(0x1e2)](),_0x5b9a61[_0x31e2ea(0x38c)])){let _0x284b0a=_0x36174b;for(let _0x5b2e59 of _0x3bfd97){let _0xc24ee1=_0x2c24e6[_0x5b2e59];_0x38c8b3[_0x31e2ea(0x17a)](_0x284b0a,0x0,_0xcd9338[_0x5b2e59]['displayName']),_0x38c8b3[_0x31e2ea(0x437)](_0x284b0a,0x0,0xf),_0x38c8b3[_0x31e2ea(0x1d4)](_0x284b0a,this[_0x31e2ea(0x213)](_0x57c853,_0xc24ee1)),this['layoutGrandTotalValues'](_0x5b9a61,_0x57c853,_0x284b0a,_0xc24ee1),_0x284b0a++;}return _0x284b0a;}if(_0x5b9a61[_0x31e2ea(0x1d5)]===0x0&&!_0x13aa19&&_0x147b36>0x0)return _0x5b9a61[_0x31e2ea(0x2d3)]!==0x0&&_0x38c8b3[_0x31e2ea(0x17a)](_0x36174b,0x0,_0x5b9a61['valueQueryInfo'][0x0][_0x31e2ea(0x238)]),_0x38c8b3[_0x31e2ea(0x1d4)](_0x36174b,this[_0x31e2ea(0x213)](_0x57c853,-0x1)),_0x5b9a61[_0x31e2ea(0x2d3)]!==0x0&&_0x38c8b3[_0x31e2ea(0x1d4)](_0x36174b,this[_0x31e2ea(0x3d2)](_0x5b9a61,_0x38c8b3['info'][_0x36174b])),this[_0x31e2ea(0x21f)](_0x5b9a61,_0x57c853,_0x36174b,-0x1),_0x36174b+0x1;if(_0x147b36>0x0){let _0x141c71=_0x13aa19?_0x5b9a61['measureIndexesMap'][_0x3bfd97[0x0]]:-0x1;return _0x38c8b3[_0x31e2ea(0x17a)](_0x36174b,0x0,''),_0x38c8b3[_0x31e2ea(0x437)](_0x36174b,0x0,0xe),_0x38c8b3[_0x31e2ea(0x1d4)](_0x36174b,this[_0x31e2ea(0x213)](_0x57c853,_0x141c71)),this[_0x31e2ea(0x21f)](_0x5b9a61,_0x57c853,_0x36174b,_0x141c71),_0x36174b+0x1;}return _0x5b9a61[_0x31e2ea(0x1d5)]>0x0?(_0x38c8b3[_0x31e2ea(0x17a)](_0x36174b,0x0,''),_0x38c8b3[_0x31e2ea(0x437)](_0x36174b,0x0,0xe),_0x38c8b3[_0x31e2ea(0x1d4)](_0x36174b,this[_0x31e2ea(0x213)](_0x57c853,-0x1)),_0x36174b+0x1):_0x36174b;}static['layoutGrandTotalValues'](_0x3f51a4,_0xd1ff6d,_0x887bdb,_0x29cd6a){const _0x5d39a9=_0x44a51f;_0x3f51a4[_0x5d39a9(0x1d5)]===0x0?this['startContent'](_0x3f51a4,_0xd1ff6d,_0x887bdb,_0x29cd6a):this[_0x5d39a9(0x306)](_0x3f51a4,_0x887bdb);}static[_0x44a51f(0x463)](_0x39cd03,_0x47e9fc){const _0x12d1b6=_0x44a51f;return{'paths':_0x39cd03[_0x12d1b6(0x334)](),'valueIndex':-0x1,'level':_0x39cd03[_0x12d1b6(0x1e2)](),'tableFieldId':_0x39cd03['getFieldsId'](),..._0x47e9fc};}static[_0x44a51f(0x213)](_0x3490d1,_0x3d7595){const _0x1ad05d=_0x44a51f;return{'paths':_0x3490d1[_0x1ad05d(0x334)](),'valueIndex':_0x3d7595,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x3490d1['getLevel'](),'tableFieldId':'','rowType':_0x1ad05d(0x2d6)};}static[_0x44a51f(0x18a)](_0x54fd56){const _0x17659f=_0x44a51f;return _0x54fd56[_0x17659f(0x1d5)]===0x0?_0x54fd56[_0x17659f(0x33f)]===0x0||_0x54fd56[_0x17659f(0x3fb)]?0x0:_0x54fd56[_0x17659f(0x3eb)]||_0x54fd56[_0x17659f(0x2d3)]!==0x0?0x1:0x0:0x1;}static[_0x44a51f(0x1bf)](_0x191778,_0x4f9875){return 0x0;}static[_0x44a51f(0x3fa)](_0x17629d,_0x54c33b){return 0x0;}static[_0x44a51f(0x382)](_0x4fd2d7){const _0x74047a=_0x44a51f;return _0x4fd2d7['type']===0x4||_0x4fd2d7[_0x74047a(0x477)]===0x2?Number(_0x4fd2d7[_0x74047a(0x238)]):_0x4fd2d7['displayName'];}static[_0x44a51f(0x1f1)](_0x1f4d30,_0x22fe8f,_0xb30b1b,_0x134539){const _0x101775=_0x44a51f;_0x134539[_0x101775(0x477)]===0x5&&_0x1f4d30[_0x101775(0x429)](_0x22fe8f,_0xb30b1b),_0x134539['type']===0x6&&_0x1f4d30['setOther'](_0x22fe8f,_0xb30b1b);}static[_0x44a51f(0x302)](_0x4538b2,_0x477d95,_0x231456){}static[_0x44a51f(0x386)](_0x3559f0){const _0x104fb7=_0x44a51f;if(super[_0x104fb7(0x386)](_0x3559f0),_0x3559f0['colDeep']===0x0)return;let _0xd40deb=_0x3559f0['view']['colView'],_0x287ff0=_0xd40deb[_0x104fb7(0x403)](0x1);for(let _0x56572e=0x1;_0x56572e<=_0xd40deb['getLastCol']();_0x56572e++)_0xd40deb['setValue'](0x0,_0x56572e,'');_0xd40deb[_0x104fb7(0x17a)](0x0,0x0,_0x104fb7(0x31a)),_0x287ff0&&_0xd40deb[_0x104fb7(0x41f)](0x1,{..._0x287ff0,'isColumnLabel':!0x0});}static[_0x44a51f(0x126)](_0x2158de){const _0x5f136a=_0x44a51f;let {rowDeep:_0x3b4ff8,colDeep:_0x26c684,view:_0x25cc1b,measureCount:_0x4954ea}=_0x2158de,_0xa84aff=_0x2158de[_0x5f136a(0x202)][_0x5f136a(0x2ad)],_0x1ed235=_0x2158de[_0x5f136a(0x202)]['valueQueryInfo'],_0x24ba53=_0x25cc1b['cornerView'],_0x7d1257=_0x25cc1b[_0x5f136a(0x134)],_0x28818b=_0x25cc1b[_0x5f136a(0x145)],_0x34ea38=_0x7d1257['getRowCount']();_0x34ea38===0x0&&_0x3b4ff8!==0x0&&(_0x34ea38=0x1);let _0x1156ac=_0x28818b[_0x5f136a(0x2cd)]();if(_0x24ba53[_0x5f136a(0x2f7)](_0x34ea38),_0x24ba53['setColCount'](_0x1156ac),_0x3b4ff8===0x0&&_0x26c684===0x0&&_0x2158de[_0x5f136a(0x3eb)]?_0x24ba53[_0x5f136a(0x17a)](0x0,0x0,_0x5f136a(0x2b5)):_0x3b4ff8===0x0&&_0x2158de['isRowMultiMeasure']&&_0x24ba53[_0x5f136a(0x17a)](_0x34ea38-0x1,0x0,_0x5f136a(0x2b5)),_0x4954ea===0x1&&_0x26c684>0x0&&_0x3b4ff8>0x0&&_0x24ba53[_0x5f136a(0x17a)](0x0,0x0,_0x1ed235[0x0][_0x5f136a(0x238)]),_0x3b4ff8===0x0)return;let _0x53f1d3=_0x34ea38-0x1,{filterInfo:_0x358f0c,sortInfo:_0x59c6b6,dataFieldId:_0x336249,id:_0x4e66f4}=_0xa84aff[0x0];_0x24ba53[_0x5f136a(0x17a)](_0x53f1d3,0x0,_0x5f136a(0x22d)),_0x24ba53[_0x5f136a(0x437)](_0x53f1d3,0x0,z(_0x358f0c,_0x59c6b6,_0x2158de[_0x5f136a(0x473)][_0x4e66f4])),_0x24ba53['setInfo'](0x0,{'paths':[],'level':0x0,'tableFieldId':_0x4e66f4,'dataFieldId':_0x336249,'valueIndex':-0x1,'isRowLabel':!0x0}),_0x28818b[_0x5f136a(0x41f)](0x0,{'isValue':!0x1,'level':0x0,'tableFieldId':_0x4e66f4,'dataFieldId':_0x336249});}},gt=class extends mt{static[_0x44a51f(0x191)](_0x2dab15,_0x3b6940,_0x173262){const _0x824027=_0x44a51f;let _0x76dbb3=this[_0x824027(0x169)](_0x2dab15,_0x3b6940,_0x173262);return this['layoutPage'](_0x76dbb3),this[_0x824027(0x1c8)](_0x76dbb3),this['layoutRowFields'](_0x76dbb3),this[_0x824027(0x373)](_0x76dbb3),this[_0x824027(0x327)](_0x76dbb3),this[_0x824027(0x126)](_0x76dbb3),_0x76dbb3[_0x824027(0x12f)];}static['layoutRowFields'](_0x43be57){const _0x6c0c97=_0x44a51f;let {rowNodeTree:_0x590558,view:_0x5ea9bc,isRowMultiMeasure:_0xf68e46,valueQueryInfo:_0x4fdf2e,measureCount:_0x27499b,rowDeep:_0x6626f9,showRowGrandTotal:_0x534ec0}=_0x43be57,_0x158600=_0x5ea9bc[_0x6c0c97(0x145)],_0xdd5db7=_0xf68e46?_0x4fdf2e[_0x6c0c97(0x47c)](_0xaae793=>_0xaae793['id']):[],_0x26a706=0x0;if(_0x6626f9===0x0)_0x27499b>0x0&&(_0x26a706=this[_0x6c0c97(0x27f)](_0x43be57,_0x590558,_0x26a706,_0xdd5db7));else{if(this[_0x6c0c97(0x1b3)](_0x43be57)){for(let _0x43824e of _0xdd5db7)_0x26a706=this['writeRootValueHeaderRow'](_0x43be57,_0x26a706,_0x43824e),_0x26a706=this[_0x6c0c97(0x467)](_0x43be57,_0x590558,_0x26a706,[_0x43824e]);}else _0x26a706=this[_0x6c0c97(0x467)](_0x43be57,_0x590558,_0x26a706,_0xdd5db7);_0x534ec0&&(_0x27499b>0x0||_0x6626f9>0x0)&&(_0x26a706=this['writeGrandTotalRows'](_0x43be57,_0x590558,_0x26a706,_0xdd5db7));}_0x158600[_0x6c0c97(0x2f7)](_0x26a706),_0x158600[_0x6c0c97(0x232)](this[_0x6c0c97(0x18a)](_0x43be57));}static[_0x44a51f(0x1b3)](_0x1e8e57){const _0xb62f0c=_0x44a51f;return _0x1e8e57['isRowMultiMeasure']&&_0x1e8e57[_0xb62f0c(0x38c)]===0x0;}static[_0x44a51f(0x467)](_0x16a34c,_0x56d2e9,_0x256768,_0x3649da){const _0x2fede7=_0x44a51f;let _0x1137b4=_0x256768;return _0x56d2e9[_0x2fede7(0x1fa)](_0x290dac=>{const _0x141de2=_0x2fede7;_0x1137b4=this[_0x141de2(0x3b4)](_0x16a34c,_0x290dac,_0x1137b4,_0x3649da);}),_0x1137b4;}static['layoutRowNode'](_0x475636,_0x141620,_0x2a6a9f,_0x3e1990){return{'itemSize':this['layoutRowNodeToCursor'](_0x475636,_0x141620,_0x2a6a9f,_0x3e1990)-_0x2a6a9f,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x44a51f(0x3b4)](_0xb588e7,_0x151359,_0x1cb3dd,_0x4a86d7){const _0x2f5190=_0x44a51f;let _0x595a1a=this[_0x2f5190(0x2f2)](_0x151359,_0xb588e7[_0x2f5190(0x1d5)]),_0x12815c=_0x151359['getCollapse']();if(!_0x595a1a){if(this['shouldWriteMultiValueSubtotalAtBottom'](_0xb588e7,_0x151359)&&!_0x12815c){let _0x3855a0=this[_0x2f5190(0x35d)](_0xb588e7,_0x151359,_0x1cb3dd);if(this[_0x2f5190(0x141)](_0xb588e7[_0x2f5190(0x3eb)],_0x151359['getLevel'](),_0xb588e7[_0x2f5190(0x38c)])){for(let _0x34afe4 of _0x4a86d7)_0x3855a0=this['writeValueHeaderRow'](_0xb588e7,_0x151359,_0x3855a0,_0x34afe4),_0x3855a0=this[_0x2f5190(0x467)](_0xb588e7,_0x151359,_0x3855a0,[_0x34afe4]);}else _0x3855a0=this[_0x2f5190(0x467)](_0xb588e7,_0x151359,_0x3855a0,_0x4a86d7);return _0xb588e7['showRowSubtotal']&&(_0x3855a0=this[_0x2f5190(0x42e)](_0xb588e7,_0x151359,_0x3855a0,_0x4a86d7)),_0x3855a0;}if(this[_0x2f5190(0x162)](_0xb588e7)&&!_0x12815c){let _0x4c0b11=this[_0x2f5190(0x35d)](_0xb588e7,_0x151359,_0x1cb3dd);return _0x4c0b11=this[_0x2f5190(0x467)](_0xb588e7,_0x151359,_0x4c0b11,_0x4a86d7),_0xb588e7['showRowSubtotal']&&(_0x4c0b11=this[_0x2f5190(0x42e)](_0xb588e7,_0x151359,_0x4c0b11,_0x4a86d7)),_0x4c0b11;}if(this[_0x2f5190(0x141)](_0xb588e7[_0x2f5190(0x3eb)],_0x151359[_0x2f5190(0x1e2)](),_0xb588e7[_0x2f5190(0x38c)])){let _0x5c2f8e=_0x1cb3dd;for(let _0x5c20c5 of _0x4a86d7)_0x5c2f8e=this[_0x2f5190(0x307)](_0xb588e7,_0x151359,_0x5c2f8e,[_0x5c20c5]),_0x12815c||(_0x5c2f8e=this[_0x2f5190(0x467)](_0xb588e7,_0x151359,_0x5c2f8e,[_0x5c20c5]));return _0x5c2f8e;}let _0x539bd2=this['writeParentRows'](_0xb588e7,_0x151359,_0x1cb3dd,_0x4a86d7);return _0x12815c||(_0x539bd2=this[_0x2f5190(0x467)](_0xb588e7,_0x151359,_0x539bd2,_0x4a86d7)),_0x539bd2;}return this['writeLeafRows'](_0xb588e7,_0x151359,_0x1cb3dd,_0x4a86d7);}static[_0x44a51f(0x162)](_0x6d914e){const _0x1c605f=_0x44a51f;return _0x6d914e[_0x1c605f(0x40f)]===0x2;}static[_0x44a51f(0x164)](_0x3c84ab,_0x156d97){const _0x3fd12e=_0x44a51f;return _0x3c84ab[_0x3fd12e(0x3eb)]&&_0x3c84ab[_0x3fd12e(0x38c)]>0x0&&_0x156d97[_0x3fd12e(0x1e2)]()<=_0x3c84ab[_0x3fd12e(0x38c)];}static['writeParentItemRow'](_0x1f730a,_0x10a883,_0x12fc26){const _0x485f0a=_0x44a51f;let _0x4f384e=this[_0x485f0a(0x1bf)](_0x1f730a,_0x10a883['getLevel']()),_0x1dcbd6=this[_0x485f0a(0x382)](_0x10a883),_0x3ba1eb=_0x1f730a[_0x485f0a(0x12f)][_0x485f0a(0x145)];return _0x3ba1eb[_0x485f0a(0x17a)](_0x12fc26,_0x4f384e,_0x1dcbd6),this['applyNodeValueType'](_0x3ba1eb,_0x12fc26,_0x4f384e,_0x10a883),this[_0x485f0a(0x302)](_0x1f730a,_0x10a883,_0x12fc26),_0x3ba1eb[_0x485f0a(0x437)](_0x12fc26,_0x4f384e,0xc),_0x3ba1eb['setInfo'](_0x12fc26,this[_0x485f0a(0x463)](_0x10a883,{'rowType':'item'})),_0x12fc26+0x1;}static[_0x44a51f(0x39c)](_0x193196,_0x4f36ef,_0x286072,_0xc3b6de){const _0x238e92=_0x44a51f;let _0x333c5b=this[_0x238e92(0x3fa)](_0x193196,_0x4f36ef['getLevel']()),_0x726161=_0x193196[_0x238e92(0x31d)][_0xc3b6de],_0x3f8220=_0x193196[_0x238e92(0x12f)][_0x238e92(0x145)];return this[_0x238e92(0x302)](_0x193196,_0x4f36ef,_0x286072),_0x3f8220[_0x238e92(0x17a)](_0x286072,_0x333c5b,_0x193196[_0x238e92(0x46b)][_0xc3b6de][_0x238e92(0x238)]),_0x3f8220['setInfo'](_0x286072,this['createRowInfo'](_0x4f36ef,{'valueIndex':_0x726161,'isValue':!0x0,'dataFieldId':_0x193196['measuresMap'][_0xc3b6de]['dataFieldId'],'rowType':'value'})),_0x286072+0x1;}static['writeRootValueHeaderRow'](_0x4c4a9e,_0x23fb28,_0x38e9a0){const _0x24b2ff=_0x44a51f;let _0x580aa7=_0x4c4a9e[_0x24b2ff(0x31d)][_0x38e9a0],_0x241001=_0x4c4a9e['measuresMap'][_0x38e9a0],_0x2fc347=_0x4c4a9e[_0x24b2ff(0x12f)][_0x24b2ff(0x145)];return _0x2fc347[_0x24b2ff(0x17a)](_0x23fb28,0x0,_0x241001[_0x24b2ff(0x238)]),_0x2fc347[_0x24b2ff(0x1d4)](_0x23fb28,{'paths':[],'valueIndex':_0x580aa7,'level':-0x1,'tableFieldId':'','dataFieldId':_0x241001[_0x24b2ff(0x384)],'isValue':!0x0,'rowType':_0x24b2ff(0x1d0)}),_0x23fb28+0x1;}static[_0x44a51f(0x307)](_0x1efb4f,_0x172abb,_0x1b4002,_0x4a5d5a){const _0x3cb524=_0x44a51f;if((_0x1efb4f[_0x3cb524(0x1fd)]||_0x172abb['getCollapse']())&&_0x1efb4f['isRowMultiMeasure']&&_0x4a5d5a[_0x3cb524(0x15c)]>0x1&&this[_0x3cb524(0x292)](_0x1efb4f[_0x3cb524(0x3eb)],_0x172abb[_0x3cb524(0x1e2)](),_0x1efb4f[_0x3cb524(0x38c)])){let _0x5adb98=_0x1b4002;for(let _0x23ca47 of _0x4a5d5a){let _0x3e2cde=_0x1efb4f[_0x3cb524(0x31d)][_0x23ca47];this[_0x3cb524(0x3fd)](_0x1efb4f,_0x172abb,_0x5adb98,_0x3e2cde,_0x1efb4f[_0x3cb524(0x46b)][_0x23ca47]['displayName']),_0x5adb98++;}return _0x5adb98;}let _0x3f9ded=_0x1efb4f['isRowMultiMeasure']&&_0x4a5d5a['length']===0x1?_0x1efb4f[_0x3cb524(0x31d)][_0x4a5d5a[0x0]]:-0x1,_0x1058ac=_0x1efb4f[_0x3cb524(0x3eb)]&&_0x4a5d5a[_0x3cb524(0x15c)]===0x1&&_0x1efb4f[_0x3cb524(0x38c)]>0x0&&_0x1efb4f[_0x3cb524(0x38c)]===_0x172abb[_0x3cb524(0x1e2)]()?_0x1efb4f[_0x3cb524(0x46b)][_0x4a5d5a[0x0]]['displayName']:void 0x0;return this[_0x3cb524(0x3fd)](_0x1efb4f,_0x172abb,_0x1b4002,_0x3f9ded,_0x1058ac),_0x1b4002+0x1;}static['writeParentRow'](_0x5e372a,_0x41895b,_0x54edc4,_0x5c9cae,_0xe8b136){const _0x2b3694=_0x44a51f;let {showRowSubtotal:_0x3a9c26}=_0x5e372a,_0x3ff3e6=_0x41895b[_0x2b3694(0x1ba)](),_0x263c12=_0x3a9c26||_0x3ff3e6,_0x5ddddd=this[_0x2b3694(0x1bf)](_0x5e372a,_0x41895b['getLevel']()),_0x2bd6cb=_0xe8b136?this['getValueLabelCol'](_0x5e372a,_0x41895b[_0x2b3694(0x1e2)]()):_0x5ddddd,_0x427e29=this[_0x2b3694(0x382)](_0x41895b),_0x15e888=_0x5e372a['view'][_0x2b3694(0x145)];_0x15e888[_0x2b3694(0x17a)](_0x54edc4,_0x5ddddd,_0x427e29),this[_0x2b3694(0x1f1)](_0x15e888,_0x54edc4,_0x5ddddd,_0x41895b),_0x15e888[_0x2b3694(0x437)](_0x54edc4,_0x5ddddd,_0x3ff3e6?0xb:0xc),this['repeatRowLabelsForNode'](_0x5e372a,_0x41895b,_0x54edc4),_0xe8b136&&_0x15e888[_0x2b3694(0x17a)](_0x54edc4,_0x2bd6cb,_0xe8b136),_0x15e888[_0x2b3694(0x1d4)](_0x54edc4,this['createRowInfo'](_0x41895b,{'valueIndex':_0x5c9cae,'isBottomTotal':_0x263c12,'isSubtotal':_0x263c12,'isTopTotal':_0x263c12,'rowType':_0x263c12?_0x2b3694(0x2b1):_0x2b3694(0x461)})),_0x263c12&&this[_0x2b3694(0x306)](_0x5e372a,_0x54edc4);}static['writeBottomSubtotalRows'](_0x23eb06,_0x345ced,_0x53368a,_0x15f6b6){const _0x359eaa=_0x44a51f;let {isRowMultiMeasure:_0x224de8,measuresMap:_0x21e068}=_0x23eb06;if(this[_0x359eaa(0x292)](_0x224de8,_0x345ced[_0x359eaa(0x1e2)](),_0x23eb06[_0x359eaa(0x38c)])){let _0x4969fd=_0x53368a;for(let _0x5dd435 of _0x15f6b6){let _0x537774=_0x23eb06[_0x359eaa(0x31d)][_0x5dd435];this[_0x359eaa(0x460)](_0x23eb06,_0x345ced,_0x4969fd,_0x537774,_0x21e068[_0x5dd435][_0x359eaa(0x238)]),_0x4969fd++;}return _0x4969fd;}return this[_0x359eaa(0x460)](_0x23eb06,_0x345ced,_0x53368a,_0x224de8?_0x23eb06[_0x359eaa(0x31d)][_0x15f6b6[0x0]]:-0x1),_0x53368a+0x1;}static['writeBottomSubtotalRow'](_0x377c7e,_0x11f447,_0x59b3fa,_0x2f2bba,_0x4ac37d){const _0x2b4055=_0x44a51f;let _0x2f1a2a=this[_0x2b4055(0x1bf)](_0x377c7e,_0x11f447[_0x2b4055(0x1e2)]()),_0x473057=this[_0x2b4055(0x382)](_0x11f447),_0x8ba1ca=_0x377c7e[_0x2b4055(0x12f)][_0x2b4055(0x145)];_0x8ba1ca[_0x2b4055(0x17a)](_0x59b3fa,_0x2f1a2a,_0x4ac37d?{'prefix':String(_0x473057),'value':_0x4ac37d}:_0x473057),this[_0x2b4055(0x1f1)](_0x8ba1ca,_0x59b3fa,_0x2f1a2a,_0x11f447),_0x8ba1ca['setStyle'](_0x59b3fa,_0x2f1a2a,0xd),this[_0x2b4055(0x302)](_0x377c7e,_0x11f447,_0x59b3fa),_0x8ba1ca['setValue'](_0x59b3fa,_0x2f1a2a,_0x4ac37d?{'prefix':String(_0x473057),'value':_0x4ac37d}:_0x473057),_0x8ba1ca[_0x2b4055(0x1d4)](_0x59b3fa,this[_0x2b4055(0x463)](_0x11f447,{'valueIndex':_0x2f2bba,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0x2b4055(0x2b1)})),this[_0x2b4055(0x306)](_0x377c7e,_0x59b3fa);}static[_0x44a51f(0x367)](_0x5b3426,_0x5468dd,_0x285e87,_0x6c68cf){const _0x230457=_0x44a51f;let {isRowMultiMeasure:_0x544cdd,valueIndex:_0x8da41e,measureCount:_0x5133bf,measuresMap:_0x5ea087,measureIndexesMap:_0x521879}=_0x5b3426;if(this[_0x230457(0x141)](_0x544cdd,_0x5468dd[_0x230457(0x1e2)](),_0x8da41e)){if(this['shouldWriteLeafValuesUnderItem'](_0x5b3426)){let _0x504830=this[_0x230457(0x2ca)](_0x5b3426,_0x5468dd,_0x285e87);for(let _0x5506de of _0x6c68cf){let _0x2af988=_0x521879[_0x5506de];this['writeLeafValueRow'](_0x5b3426,_0x5468dd,_0x504830,_0x2af988,_0x5ea087[_0x5506de][_0x230457(0x238)]),this[_0x230457(0x282)](_0x5b3426,_0x5468dd,_0x504830,_0x2af988),_0x504830++;}return _0x504830;}let _0x50bb8f=_0x285e87;for(let _0xc5a398 of _0x6c68cf){let _0x26813b=_0x521879[_0xc5a398],_0x4c6adb=this[_0x230457(0x1bf)](_0x5b3426,_0x5468dd['getLevel']()),_0x3a3d14=this['getValueLabelCol'](_0x5b3426,_0x5468dd[_0x230457(0x1e2)]()),_0x37b956=this[_0x230457(0x382)](_0x5468dd),_0x53729a=_0x5b3426[_0x230457(0x12f)][_0x230457(0x145)];_0x53729a[_0x230457(0x17a)](_0x50bb8f,_0x4c6adb,_0x37b956),this[_0x230457(0x1f1)](_0x53729a,_0x50bb8f,_0x4c6adb,_0x5468dd),this['repeatRowLabelsForNode'](_0x5b3426,_0x5468dd,_0x50bb8f),_0x53729a['setValue'](_0x50bb8f,_0x3a3d14,_0x5ea087[_0xc5a398][_0x230457(0x238)]),_0x53729a[_0x230457(0x1d4)](_0x50bb8f,this['createRowInfo'](_0x5468dd,{'valueIndex':_0x26813b,'isLeaf':!0x0,'rowType':_0x230457(0x461)})),this[_0x230457(0x282)](_0x5b3426,_0x5468dd,_0x50bb8f,_0x26813b),_0x50bb8f++;}return _0x50bb8f;}let _0x3c54c7=_0x544cdd?_0x521879[_0x6c68cf[0x0]]:-0x1,_0x4848b4=this[_0x230457(0x1bf)](_0x5b3426,_0x5468dd[_0x230457(0x1e2)]()),_0x35a416=this[_0x230457(0x382)](_0x5468dd),_0x328ef3=_0x5b3426[_0x230457(0x12f)][_0x230457(0x145)];return _0x328ef3[_0x230457(0x17a)](_0x285e87,_0x4848b4,_0x35a416),this[_0x230457(0x1f1)](_0x328ef3,_0x285e87,_0x4848b4,_0x5468dd),this['repeatRowLabelsForNode'](_0x5b3426,_0x5468dd,_0x285e87),_0x328ef3[_0x230457(0x1d4)](_0x285e87,this['createRowInfo'](_0x5468dd,{'valueIndex':_0x3c54c7,'isLeaf':!0x0,'rowType':_0x230457(0x461)})),_0x5133bf>0x0&&this[_0x230457(0x282)](_0x5b3426,_0x5468dd,_0x285e87,_0x3c54c7),_0x285e87+0x1;}static['shouldWriteLeafValuesUnderItem'](_0x234406){const _0x268f7d=_0x44a51f;return _0x234406[_0x268f7d(0x3eb)]&&_0x234406[_0x268f7d(0x38c)]>0x0;}static['writeLeafItemRow'](_0x535633,_0x3b8e73,_0x33dc32){const _0x5c4c82=_0x44a51f;let _0x449c44=this[_0x5c4c82(0x1bf)](_0x535633,_0x3b8e73[_0x5c4c82(0x1e2)]()),_0x21aacf=this[_0x5c4c82(0x382)](_0x3b8e73),_0x41fa28=_0x535633[_0x5c4c82(0x12f)]['rowView'];return _0x41fa28[_0x5c4c82(0x17a)](_0x33dc32,_0x449c44,_0x21aacf),this[_0x5c4c82(0x1f1)](_0x41fa28,_0x33dc32,_0x449c44,_0x3b8e73),this[_0x5c4c82(0x302)](_0x535633,_0x3b8e73,_0x33dc32),_0x41fa28[_0x5c4c82(0x1d4)](_0x33dc32,this['createRowInfo'](_0x3b8e73,{'isLeaf':!0x0,'rowType':_0x5c4c82(0x461)})),_0x33dc32+0x1;}static[_0x44a51f(0x445)](_0xf01957,_0x5b4927,_0x4b7920,_0x183354,_0x20000a){const _0x3bfc2a=_0x44a51f;let _0x4093e9=this['getValueLabelCol'](_0xf01957,_0x5b4927[_0x3bfc2a(0x1e2)]()),_0xa7f654=_0xf01957[_0x3bfc2a(0x12f)][_0x3bfc2a(0x145)];this[_0x3bfc2a(0x302)](_0xf01957,_0x5b4927,_0x4b7920),_0xa7f654[_0x3bfc2a(0x17a)](_0x4b7920,_0x4093e9,_0x20000a),_0xa7f654[_0x3bfc2a(0x1d4)](_0x4b7920,this[_0x3bfc2a(0x463)](_0x5b4927,{'valueIndex':_0x183354,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x3bfc2a(0x1d0)}));}static['writeGrandTotalRows'](_0x3634b4,_0x358ba4,_0x350d4a,_0x26b388){const _0x4a6b75=_0x44a51f;let {isRowMultiMeasure:_0x3dbdd1,measureCount:_0x35e90b,measuresMap:_0xbacf85,measureIndexesMap:_0x4f1065}=_0x3634b4,_0x53303a=_0x3634b4[_0x4a6b75(0x12f)][_0x4a6b75(0x145)];if(this[_0x4a6b75(0x292)](_0x3dbdd1,_0x358ba4[_0x4a6b75(0x1e2)](),_0x3634b4['valueIndex'])){let _0x3611e4=_0x350d4a;for(let _0x5215af of _0x26b388){let _0x5deccc=_0x4f1065[_0x5215af];_0x53303a[_0x4a6b75(0x17a)](_0x3611e4,0x0,_0xbacf85[_0x5215af][_0x4a6b75(0x238)]),_0x53303a[_0x4a6b75(0x437)](_0x3611e4,0x0,0xf),_0x53303a[_0x4a6b75(0x1d4)](_0x3611e4,this[_0x4a6b75(0x213)](_0x358ba4,_0x5deccc)),this['layoutGrandTotalValues'](_0x3634b4,_0x358ba4,_0x3611e4,_0x5deccc),_0x3611e4++;}return _0x3611e4;}if(_0x3634b4[_0x4a6b75(0x1d5)]===0x0&&!_0x3dbdd1&&_0x35e90b>0x0)return _0x3634b4[_0x4a6b75(0x2d3)]!==0x0&&_0x53303a[_0x4a6b75(0x17a)](_0x350d4a,0x0,_0x3634b4[_0x4a6b75(0x35f)][0x0]['displayName']),_0x53303a[_0x4a6b75(0x1d4)](_0x350d4a,this[_0x4a6b75(0x213)](_0x358ba4,-0x1)),_0x3634b4['colDeep']!==0x0&&_0x53303a[_0x4a6b75(0x1d4)](_0x350d4a,this[_0x4a6b75(0x3d2)](_0x3634b4,_0x53303a[_0x4a6b75(0x41d)][_0x350d4a])),this[_0x4a6b75(0x21f)](_0x3634b4,_0x358ba4,_0x350d4a,-0x1),_0x350d4a+0x1;if(_0x35e90b>0x0){let _0x1ed802=_0x3dbdd1?_0x4f1065[_0x26b388[0x0]]:-0x1;return _0x53303a[_0x4a6b75(0x17a)](_0x350d4a,0x0,''),_0x53303a[_0x4a6b75(0x437)](_0x350d4a,0x0,0xe),_0x53303a[_0x4a6b75(0x1d4)](_0x350d4a,this['createGrandTotalInfo'](_0x358ba4,_0x1ed802)),this[_0x4a6b75(0x21f)](_0x3634b4,_0x358ba4,_0x350d4a,_0x1ed802),_0x350d4a+0x1;}return _0x3634b4[_0x4a6b75(0x1d5)]>0x0?(_0x53303a[_0x4a6b75(0x17a)](_0x350d4a,0x0,''),_0x53303a['setStyle'](_0x350d4a,0x0,0xe),_0x53303a[_0x4a6b75(0x1d4)](_0x350d4a,this['createGrandTotalInfo'](_0x358ba4,-0x1)),_0x350d4a+0x1):_0x350d4a;}static['layoutGrandTotalValues'](_0x3f7eb7,_0x21a1b0,_0x51d557,_0x108e33){const _0x155ca0=_0x44a51f;_0x3f7eb7[_0x155ca0(0x1d5)]===0x0?this['startContent'](_0x3f7eb7,_0x21a1b0,_0x51d557,_0x108e33):this[_0x155ca0(0x306)](_0x3f7eb7,_0x51d557);}static[_0x44a51f(0x463)](_0x1d282e,_0x473ec4){const _0x5e7fa3=_0x44a51f;return{'paths':_0x1d282e['getPaths'](),'valueIndex':-0x1,'level':_0x1d282e[_0x5e7fa3(0x1e2)](),'tableFieldId':_0x1d282e[_0x5e7fa3(0x1db)](),..._0x473ec4};}static['createGrandTotalInfo'](_0x5ab8df,_0x52362d){const _0x2b628a=_0x44a51f;return{'paths':_0x5ab8df[_0x2b628a(0x334)](),'valueIndex':_0x52362d,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x5ab8df['getLevel'](),'tableFieldId':'','rowType':_0x2b628a(0x2d6)};}static[_0x44a51f(0x18a)](_0x2dbe81){const _0x348297=_0x44a51f;let {rowDeep:_0x2d3a7b,isRowMultiMeasure:_0x3ddf95}=_0x2dbe81;return _0x2d3a7b===0x0?_0x2dbe81[_0x348297(0x33f)]===0x0||_0x2dbe81[_0x348297(0x3fb)]?0x0:_0x3ddf95||_0x2dbe81[_0x348297(0x2d3)]!==0x0?0x1:0x0:_0x3ddf95?_0x2d3a7b+0x1:_0x2d3a7b;}static[_0x44a51f(0x1bf)](_0x3a69da,_0x1bc5e3){const _0x39225e=_0x44a51f;return this[_0x39225e(0x458)](_0x1bc5e3,_0x3a69da[_0x39225e(0x38c)],_0x3a69da[_0x39225e(0x3eb)]);}static[_0x44a51f(0x3fa)](_0x1849a1,_0x27159b){const _0x256205=_0x44a51f;return this[_0x256205(0x458)](_0x27159b,_0x1849a1[_0x256205(0x38c)],_0x1849a1[_0x256205(0x3eb)])+0x1;}static['getNodeDisplayValue'](_0x35690c){const _0x1437da=_0x44a51f;return _0x35690c[_0x1437da(0x477)]===0x4||_0x35690c['type']===0x2?Number(_0x35690c[_0x1437da(0x238)]):_0x35690c[_0x1437da(0x238)];}static['applyNodeValueType'](_0x440a18,_0x59f6cd,_0x8da83d,_0x8b15ff){const _0x28b14a=_0x44a51f;_0x8b15ff['type']===0x5&&_0x440a18[_0x28b14a(0x429)](_0x59f6cd,_0x8da83d),_0x8b15ff[_0x28b14a(0x477)]===0x6&&_0x440a18[_0x28b14a(0x47a)](_0x59f6cd,_0x8da83d);}},_t=class{constructor(_0x20ed37,_0x571c4e,_0x294eb8){const _0x2e5a98=_0x44a51f;A(this,_0x2e5a98(0x14a),void 0x0),A(this,_0x2e5a98(0x345),void 0x0),A(this,_0x2e5a98(0x1e9),void 0x0),A(this,_0x2e5a98(0x25d),void 0x0),A(this,'isLeaf',void 0x0),A(this,_0x2e5a98(0x20a),void 0x0),A(this,_0x2e5a98(0x238),void 0x0),A(this,_0x2e5a98(0x450),[]),A(this,_0x2e5a98(0x368),void 0x0),A(this,'collapse',void 0x0),A(this,_0x2e5a98(0x19b),[]),A(this,'hasSort',!0x1),A(this,_0x2e5a98(0x477),void 0x0),A(this,_0x2e5a98(0x23c),{}),this['_index']=_0x20ed37,this['fieldId']=_0x571c4e,this[_0x2e5a98(0x477)]=_0x294eb8;}[_0x44a51f(0x1ba)](){const _0x34f5fc=_0x44a51f;return this[_0x34f5fc(0x3a0)];}[_0x44a51f(0x1b2)](_0x95446c){const _0x36974e=_0x44a51f;this[_0x36974e(0x3a0)]=_0x95446c;}[_0x44a51f(0x1db)](){const _0x5986ee=_0x44a51f;return this[_0x5986ee(0x368)];}[_0x44a51f(0x1fa)](_0x163af0){const _0xd3b431=_0x44a51f;if(this[_0xd3b431(0x2b4)])for(let _0xf0ba01 of this['sortedList']){let _0x2dbacc=this['_nodes'][_0xf0ba01];_0x163af0(_0x2dbacc);}else{let _0x1f63c4=Object['keys'](this['_nodes']);for(let _0x1b876a=0x0;_0x1b876a<_0x1f63c4[_0xd3b431(0x15c)];_0x1b876a++){let _0x12f6a2=this['_nodes'][_0x1f63c4[_0x1b876a]];_0x163af0(_0x12f6a2);}}}['getIndex'](){const _0x1981d0=_0x44a51f;return this[_0x1981d0(0x14a)];}[_0x44a51f(0x1fc)](_0x2d7f71){const _0x4d6986=_0x44a51f;return this[_0x4d6986(0x23c)][_0x2d7f71]!==void 0x0;}['setParentIndex'](_0x1dd3ff){this['parentIndex']=_0x1dd3ff;}['setLevel'](_0x3498d3){const _0x3f4f34=_0x44a51f;this[_0x3f4f34(0x345)]=_0x3498d3;}[_0x44a51f(0x1e2)](){const _0x1d347a=_0x44a51f;return this[_0x1d347a(0x345)];}[_0x44a51f(0x3ae)](_0x12fde1){this['paths']=_0x12fde1;}[_0x44a51f(0x334)](){const _0x1c8375=_0x44a51f;return this[_0x1c8375(0x25d)];}[_0x44a51f(0x37c)](){const _0x4997a8=_0x44a51f;this[_0x4997a8(0x45e)]=!0x0;}['getIsLeaf'](){const _0x2da672=_0x44a51f;return!!this[_0x2da672(0x45e)];}['setName'](_0x3a6db8){this['name']=_0x3a6db8;}[_0x44a51f(0x446)](_0x47ce9f,_0x452a3d,_0x27803a,_0x1474a6,_0x5201e3=_0x452a3d){const _0x51902a=_0x44a51f;this[_0x51902a(0x23c)][_0x452a3d]=_0x47ce9f,_0x47ce9f[_0x51902a(0x28d)](_0x452a3d),_0x47ce9f[_0x51902a(0x238)]=_0x5201e3,_0x47ce9f[_0x51902a(0x450)]=this[_0x51902a(0x450)][_0x51902a(0x309)](_0x5201e3),_0x47ce9f['setParentIndex'](this[_0x51902a(0x14a)]),_0x47ce9f[_0x51902a(0x3b2)](this[_0x51902a(0x345)]+0x1),_0x47ce9f[_0x51902a(0x3ae)](this['paths'][_0x51902a(0x309)](_0x452a3d)),_0x27803a&&(this['sortNode'](_0x452a3d,_0x27803a,_0x1474a6),this['hasSort']=!0x0);}[_0x44a51f(0x253)](_0x1fc0c6,_0x58f68a,_0x2ae7d2){const _0x2a0698=_0x44a51f;let _0x217978=_0x58f68a[_0x1fc0c6],_0x80a4bb=this[_0x2a0698(0x19b)],_0x47e6c5=0x0,_0x7de16e=_0x80a4bb[_0x2a0698(0x15c)],_0x33e344=_0x2ae7d2!==0x2;for(;_0x47e6c5<_0x7de16e;){let _0x30e0fd=Math['floor']((_0x47e6c5+_0x7de16e)/0x2);(_0x33e344?_0x58f68a[_0x80a4bb[_0x30e0fd]]-_0x217978:_0x217978-_0x58f68a[_0x80a4bb[_0x30e0fd]])<0x0?_0x47e6c5=_0x30e0fd+0x1:_0x7de16e=_0x30e0fd;}_0x80a4bb[_0x2a0698(0x259)](_0x47e6c5,0x0,_0x1fc0c6);}['sortChildrenByValue'](_0x3e2e7e,_0x42caa6,_0x205025,_0x1ec56f){const _0xbb9927=_0x44a51f;let _0xf70d6a=Object['values'](this[_0xbb9927(0x23c)]);_0xf70d6a[_0xbb9927(0x3f5)](_0x332922=>_0x332922[_0xbb9927(0x368)]===_0x3e2e7e)&&(this[_0xbb9927(0x19b)]=_0xf70d6a[_0xbb9927(0x47c)]((_0x2a6de3,_0x229134)=>({'node':_0x2a6de3,'index':_0x229134}))[_0xbb9927(0x2a5)]((_0x5a778d,_0x578415)=>{const _0x52b357=_0xbb9927;let _0x5ea415=_0x205025(_0x5a778d['node'][_0x52b357(0x14a)]),_0x2f2625=_0x205025(_0x578415[_0x52b357(0x216)][_0x52b357(0x14a)]);return _0x5ea415===_0x2f2625?_0x1ec56f(_0x5a778d[_0x52b357(0x216)]['displayName'],_0x578415[_0x52b357(0x216)]['displayName'])||_0x5a778d[_0x52b357(0x194)]-_0x578415[_0x52b357(0x194)]:_0x5ea415===void 0x0?0x1:_0x2f2625===void 0x0?-0x1:_0x42caa6===0x2?_0x2f2625-_0x5ea415:_0x5ea415-_0x2f2625;})[_0xbb9927(0x47c)](({node:_0x28637c})=>_0x28637c['name']),this[_0xbb9927(0x2b4)]=!0x0);for(let _0x191c82 of _0xf70d6a)_0x191c82[_0xbb9927(0x29c)](_0x3e2e7e,_0x42caa6,_0x205025,_0x1ec56f);}[_0x44a51f(0x1b7)](){const _0x52f5ed=_0x44a51f;this[_0x52f5ed(0x19b)]=[],this[_0x52f5ed(0x2b4)]=!0x1,Object[_0x52f5ed(0x2f4)](this[_0x52f5ed(0x23c)])[_0x52f5ed(0x26b)](_0xa768b0=>_0xa768b0['resetSort']());}[_0x44a51f(0x18d)](_0x4f2393,_0x445f4b,_0x3272ef){const _0x3fdfca=_0x44a51f;let _0x1cdb25=Object[_0x3fdfca(0x2f4)](this[_0x3fdfca(0x23c)]);_0x1cdb25[_0x3fdfca(0x3f5)](_0x320e52=>_0x320e52[_0x3fdfca(0x368)]===_0x4f2393)&&(this['sortedList']=_0x1cdb25['map']((_0x18f4a3,_0x27bc06)=>({'node':_0x18f4a3,'index':_0x27bc06}))[_0x3fdfca(0x2a5)]((_0x5dc966,_0x423793)=>{const _0x539962=_0x3fdfca;let _0x317d83=_0x3272ef[_0x5dc966[_0x539962(0x216)]['name']],_0x47c1e0=_0x3272ef[_0x423793[_0x539962(0x216)]['name']];return _0x317d83===_0x47c1e0?_0x5dc966[_0x539962(0x194)]-_0x423793[_0x539962(0x194)]:_0x317d83===void 0x0?0x1:_0x47c1e0===void 0x0?-0x1:_0x445f4b===0x2?_0x47c1e0-_0x317d83:_0x317d83-_0x47c1e0;})[_0x3fdfca(0x47c)](({node:_0x54d86e})=>_0x54d86e['name']),this[_0x3fdfca(0x2b4)]=!0x0),_0x1cdb25[_0x3fdfca(0x26b)](_0x5d47db=>_0x5d47db[_0x3fdfca(0x18d)](_0x4f2393,_0x445f4b,_0x3272ef));}[_0x44a51f(0x212)](_0x48336f){const _0x43c434=_0x44a51f;return this[_0x43c434(0x23c)][_0x48336f];}};const vt={0x1:{'errorType':0x1},0x2:{'errorType':0x2},0x3:{'errorType':0x3},0x4:{'errorType':0x4},0x5:{'errorType':0x5}},yt=vt[0x1],bt=vt[0x2];function J(_0x52be05){return typeof _0x52be05=='object';}var xt=class{constructor(_0xeee871,_0x115ab6){const _0x11e841=_0x44a51f;this[_0x11e841(0x265)]=_0xeee871,this['_queryData']=_0x115ab6,A(this,_0x11e841(0x441),{}),A(this,_0x11e841(0x374),[]),A(this,_0x11e841(0x44c),[]),A(this,_0x11e841(0x3c8),[]),A(this,_0x11e841(0x24d),void 0x0),A(this,'_coordinates',[]),A(this,_0x11e841(0x11f),new Map()),A(this,_0x11e841(0x3a7),new Int32Array()),A(this,'_rowTotalIndexes',void 0x0),A(this,_0x11e841(0x237),void 0x0),A(this,_0x11e841(0x1c4),-0x1),A(this,'_parentRowTotalIndexes',void 0x0),A(this,_0x11e841(0x263),void 0x0),A(this,_0x11e841(0x2c5),new Map()),A(this,_0x11e841(0x36d),{}),A(this,_0x11e841(0x364),{}),A(this,_0x11e841(0x2f9),{}),A(this,_0x11e841(0x135),{});let _0x2ba3c3=[..._0x115ab6[_0x11e841(0x2ad)],..._0x115ab6[_0x11e841(0x39b)]];this[_0x11e841(0x24d)]=_0x2ba3c3[_0x11e841(0x15c)];for(let _0x2fa698=0x0;_0x2fa698<_0x2ba3c3[_0x11e841(0x15c)];_0x2fa698++){let _0x2e0843=_0x2ba3c3[_0x2fa698];this['_fieldIndexById'][_0x2e0843['id']]=_0x2fa698,this[_0x11e841(0x374)][_0x2fa698]=_0xeee871[_0x11e841(0x287)][_0x2e0843[_0x11e841(0x384)]][_0x11e841(0x3e5)][_0x11e841(0x260)](),_0x2fa698<_0x115ab6['rowQueryInfo'][_0x11e841(0x15c)]?this['_rowFieldIndexes'][_0x11e841(0x1d6)](_0x2fa698):this[_0x11e841(0x3c8)]['push'](_0x2fa698);}}[_0x44a51f(0x466)](){const _0x4565bd=_0x44a51f;this[_0x4565bd(0x1cf)]();let _0x4c539f=new Set(this['_queryData'][_0x4565bd(0x35f)][_0x4565bd(0x47c)](_0x5cdb83=>{var _0x259fa8;return(_0x259fa8=_0x5cdb83['showDataAs'])==null?void 0x0:_0x259fa8['type'];}));this[_0x4565bd(0x3b7)](_0x4c539f),this[_0x4565bd(0x2db)](_0x4c539f),this[_0x4565bd(0x291)](),this[_0x4565bd(0x2bf)]();let _0xcacdca=new Int32Array(this[_0x4565bd(0x24d)]);_0xcacdca[_0x4565bd(0x308)](-0x1),this[_0x4565bd(0x1c4)]=this[_0x4565bd(0x11f)]['get'](this[_0x4565bd(0x16e)](_0xcacdca))??-0x1;}[_0x44a51f(0x257)](_0x44b423,_0x16351c){const _0x110ccd=_0x44a51f;var _0x4d9fb3;let _0x36fc99=this['_getRawValue'](_0x44b423,_0x16351c),_0x1cfbf1=((_0x4d9fb3=_0x16351c[_0x110ccd(0x44b)])==null?void 0x0:_0x4d9fb3['type'])??0x1;if(this[_0x110ccd(0x1bb)](_0x1cfbf1))return this[_0x110ccd(0x394)](_0x1cfbf1,_0x36fc99,_0x44b423,_0x16351c);if(this[_0x110ccd(0x45c)](_0x1cfbf1))return this[_0x110ccd(0x2d7)](_0x1cfbf1,_0x36fc99,_0x44b423,_0x16351c);if(this[_0x110ccd(0x296)](_0x1cfbf1)){let _0x2c86d9=this['_derivedValuesByValueField'][_0x16351c['id']];return this[_0x110ccd(0x35c)](_0x2c86d9,_0x44b423);}switch(_0x1cfbf1){case 0x4:return this[_0x110ccd(0x354)](_0x36fc99,this[_0x110ccd(0x16c)](this[_0x110ccd(0x1c4)],_0x16351c));case 0x3:return this['_divide'](_0x36fc99,this[_0x110ccd(0x439)](this['_rowTotalIndexes'],_0x44b423,_0x16351c));case 0x2:return this[_0x110ccd(0x354)](_0x36fc99,this[_0x110ccd(0x439)](this['_columnTotalIndexes'],_0x44b423,_0x16351c));case 0x8:return this['_getIndexValue'](_0x36fc99,_0x44b423,_0x16351c);default:return _0x36fc99;}}[_0x44a51f(0x227)](){const _0x3d05c6=_0x44a51f;for(let _0x5a1afe of Object['keys'](this[_0x3d05c6(0x2f9)]))this[_0x3d05c6(0x2f9)][_0x5a1afe][_0x3d05c6(0x1f5)](),delete this[_0x3d05c6(0x2f9)][_0x5a1afe];this[_0x3d05c6(0x1ec)][_0x3d05c6(0x15c)]=0x0,this[_0x3d05c6(0x11f)]['clear'](),this[_0x3d05c6(0x3a7)]=new Int32Array(),this['_rowTotalIndexes']=void 0x0,this[_0x3d05c6(0x237)]=void 0x0,this[_0x3d05c6(0x1ff)]=void 0x0,this[_0x3d05c6(0x263)]=void 0x0,this[_0x3d05c6(0x2c5)][_0x3d05c6(0x1f5)]();for(let _0x2efe98 of Object[_0x3d05c6(0x3cf)](this['_parentFieldIndexByValueField']))delete this[_0x3d05c6(0x36d)][_0x2efe98];for(let _0x2e52cd of Object[_0x3d05c6(0x3cf)](this[_0x3d05c6(0x364)]))delete this['_peerIndexesByValueField'][_0x2e52cd];for(let _0x522294 of Object[_0x3d05c6(0x3cf)](this[_0x3d05c6(0x135)]))delete this[_0x3d05c6(0x135)][_0x522294];this[_0x3d05c6(0x1c4)]=-0x1;}[_0x44a51f(0x3b7)](_0x554924){const _0x14c7a8=_0x44a51f;let _0x1c5b9e=_0x554924[_0x14c7a8(0x22a)](0x3)||_0x554924[_0x14c7a8(0x22a)](0x8),_0x4db7ac=_0x554924[_0x14c7a8(0x22a)](0x2)||_0x554924[_0x14c7a8(0x22a)](0x8);_0x1c5b9e&&(this[_0x14c7a8(0x248)]=this[_0x14c7a8(0x3cd)](this[_0x14c7a8(0x3c8)])),_0x4db7ac&&(this[_0x14c7a8(0x237)]=this[_0x14c7a8(0x3cd)](this[_0x14c7a8(0x44c)]));}[_0x44a51f(0x2db)](_0x5aac6f){const _0x3b0b73=_0x44a51f;_0x5aac6f[_0x3b0b73(0x22a)](0x6)&&(this['_parentRowTotalIndexes']=this[_0x3b0b73(0x122)](this[_0x3b0b73(0x44c)])),_0x5aac6f[_0x3b0b73(0x22a)](0x5)&&(this[_0x3b0b73(0x263)]=this[_0x3b0b73(0x122)](this[_0x3b0b73(0x3c8)]));for(let _0xea2c61 of this[_0x3b0b73(0x17b)]['valueQueryInfo']){var _0x5599a8,_0xc9075d;if(((_0x5599a8=_0xea2c61[_0x3b0b73(0x44b)])==null?void 0x0:_0x5599a8[_0x3b0b73(0x477)])!==0xe&&((_0xc9075d=_0xea2c61[_0x3b0b73(0x44b)])==null?void 0x0:_0xc9075d[_0x3b0b73(0x477)])!==0x7)continue;let _0x1afa8f=this[_0x3b0b73(0x3d6)](_0xea2c61[_0x3b0b73(0x44b)][_0x3b0b73(0x488)]);if(_0x1afa8f<0x0||(this[_0x3b0b73(0x36d)][_0xea2c61['id']]=_0x1afa8f,this[_0x3b0b73(0x2c5)][_0x3b0b73(0x22a)](_0x1afa8f)))continue;let _0x12be76=_0x1afa8f<this[_0x3b0b73(0x44c)][_0x3b0b73(0x15c)]?this[_0x3b0b73(0x44c)]:this[_0x3b0b73(0x3c8)];this[_0x3b0b73(0x2c5)]['set'](_0x1afa8f,this[_0x3b0b73(0x122)](_0x12be76,_0x1afa8f));}}[_0x44a51f(0x291)](){const _0x551c15=_0x44a51f;let _0x331049=new Map();for(let _0x3b77e2 of this[_0x551c15(0x17b)]['valueQueryInfo']){let _0x4564a7=_0x3b77e2[_0x551c15(0x44b)];if(!_0x4564a7||!this[_0x551c15(0x45c)](_0x4564a7[_0x551c15(0x477)]))continue;let _0xac4aba=this[_0x551c15(0x3d6)](_0x4564a7[_0x551c15(0x488)]);if(_0xac4aba<0x0)continue;let _0x5256d1=_0x4564a7['baseItemType']??0x1,_0x5879aa=[...this[_0x551c15(0x17b)][_0x551c15(0x2ad)],...this[_0x551c15(0x17b)][_0x551c15(0x39b)]][_0xac4aba],_0x24d8f6=this[_0x551c15(0x265)][_0x551c15(0x287)][_0x5879aa[_0x551c15(0x384)]][_0x551c15(0x3e5)][_0x551c15(0x333)](_0x4564a7['baseItem']);if(_0x5256d1===0x1&&_0x24d8f6[_0x551c15(0x15c)]>0x1){let _0x336759=new Map();for(let _0x299271=0x0;_0x299271<this[_0x551c15(0x1ec)][_0x551c15(0x15c)];_0x299271++){let _0x1f34e2=this[_0x551c15(0x1ec)][_0x299271];if(!_0x1f34e2||_0x1f34e2[_0xac4aba]<0x0)continue;let _0x4d1b01=new j(),_0x39d7a7=0x0,_0xe7b73d=!0x1;for(let _0x5ad26f of _0x24d8f6){let _0x239d09=_0x1f34e2[_0x551c15(0x11e)]();_0x239d09[_0xac4aba]=this['_itemIndexMaps'][_0xac4aba][_0x5ad26f];let _0x823729=this['_tupleByCoordinate'][_0x551c15(0x245)](this[_0x551c15(0x16e)](_0x239d09));_0x823729!==void 0x0&&(_0x4d1b01[_0x551c15(0x404)](this[_0x551c15(0x265)]['tuples'][_0x823729][_0x551c15(0x180)][_0x3b77e2[_0x551c15(0x384)]][_0x551c15(0x365)]()),_0xe7b73d||=_0x823729===this[_0x551c15(0x2f6)](_0x299271),_0x39d7a7++);}_0x39d7a7&&_0x336759[_0x551c15(0x1f4)](_0x299271,{'tuple':_0x4d1b01,'includesCurrent':_0xe7b73d});}this[_0x551c15(0x2f9)][_0x3b77e2['id']]=_0x336759;continue;}let _0x3267e6=_0xac4aba+':'+_0x5256d1+':'+_0x4564a7[_0x551c15(0x1a0)],_0x7a6db6=_0x331049[_0x551c15(0x245)](_0x3267e6);_0x7a6db6||(_0x7a6db6=this[_0x551c15(0x29b)](_0xac4aba,_0x4564a7['baseItem'],_0x5256d1),_0x331049['set'](_0x3267e6,_0x7a6db6)),this['_peerIndexesByValueField'][_0x3b77e2['id']]=_0x7a6db6;}}[_0x44a51f(0x2bf)](){const _0x2921b5=_0x44a51f;for(let _0x329a40 of this[_0x2921b5(0x17b)][_0x2921b5(0x35f)]){let _0x37f27d=_0x329a40[_0x2921b5(0x44b)];if(!_0x37f27d)continue;let _0x187e52=this[_0x2921b5(0x3d6)](_0x37f27d[_0x2921b5(0x488)]);_0x187e52<0x0||(_0x37f27d['type']===0xb||_0x37f27d[_0x2921b5(0x477)]===0xc?this['_derivedValuesByValueField'][_0x329a40['id']]=this[_0x2921b5(0x475)](_0x329a40,_0x187e52,_0x37f27d['type']===0xc):(_0x37f27d[_0x2921b5(0x477)]===0xf||_0x37f27d['type']===0x10)&&(this['_derivedValuesByValueField'][_0x329a40['id']]=this[_0x2921b5(0x2cc)](_0x329a40,_0x187e52,_0x37f27d[_0x2921b5(0x477)]===0xf)));}}[_0x44a51f(0x1cf)](){const _0x57cda8=_0x44a51f;let _0x37aed8=this[_0x57cda8(0x265)][_0x57cda8(0x33d)][_0x57cda8(0x15c)];this[_0x57cda8(0x3a7)]=new Int32Array(_0x37aed8),this[_0x57cda8(0x3a7)][_0x57cda8(0x308)](-0x1);for(let [_0x24926d,_0x1be79a]of Object[_0x57cda8(0x372)](this[_0x57cda8(0x265)]['tupleMap'])){let _0x1f84a8=new Int32Array(this['_fieldCount']);_0x1f84a8['fill'](-0x1),this[_0x57cda8(0x355)](_0x24926d,_0x1f84a8);let _0xb6a23e=this[_0x57cda8(0x16e)](_0x1f84a8),_0x57f4d3=this[_0x57cda8(0x11f)]['get'](_0xb6a23e);this['_coordinates'][_0x1be79a]=_0x1f84a8,_0x57f4d3===void 0x0?(this['_tupleByCoordinate'][_0x57cda8(0x1f4)](_0xb6a23e,_0x1be79a),this[_0x57cda8(0x3a7)][_0x1be79a]=_0x1be79a):this[_0x57cda8(0x3a7)][_0x1be79a]=_0x57f4d3;}}[_0x44a51f(0x355)](_0x45ce1f,_0xc42ee4){const _0x2507cb=_0x44a51f;let _0x26c25b=_0x45ce1f['split'](a[_0x2507cb(0x419)]);for(let _0x5730e4 of _0x26c25b){let _0x4ef724=_0x5730e4[_0x2507cb(0x470)](a[_0x2507cb(0x3bb)]);for(let _0x52937e=0x0;_0x52937e<_0x4ef724['length']-0x1;_0x52937e++){let _0x6f1a88=this[_0x2507cb(0x441)][_0x4ef724[_0x52937e]];if(_0x6f1a88===void 0x0)continue;let _0x439f5e=this[_0x2507cb(0x374)][_0x6f1a88][_0x4ef724[_0x52937e+0x1]];_0x439f5e!==void 0x0&&(_0xc42ee4[_0x6f1a88]=_0x439f5e),_0x52937e++;}}}[_0x44a51f(0x3cd)](_0x190a59){const _0x44d9c7=_0x44a51f;let _0x3d2f5f=new Int32Array(this['_summaryManager'][_0x44d9c7(0x33d)]['length']);_0x3d2f5f[_0x44d9c7(0x308)](-0x1);for(let _0x332851=0x0;_0x332851<this[_0x44d9c7(0x1ec)][_0x44d9c7(0x15c)];_0x332851++){let _0x44d808=this[_0x44d9c7(0x1ec)][_0x332851];if(!_0x44d808)continue;let _0x4c4784=_0x44d808['slice']();for(let _0x39329a of _0x190a59)_0x4c4784[_0x39329a]=-0x1;_0x3d2f5f[_0x332851]=this[_0x44d9c7(0x11f)][_0x44d9c7(0x245)](this[_0x44d9c7(0x16e)](_0x4c4784))??-0x1;}return _0x3d2f5f;}['_buildParentIndexes'](_0x4d3d5e,_0xb715e1){const _0x2e0c3c=_0x44a51f;let _0x1eedce=new Int32Array(this[_0x2e0c3c(0x265)]['tuples'][_0x2e0c3c(0x15c)]);_0x1eedce[_0x2e0c3c(0x308)](-0x1);let _0x5e7a95=_0xb715e1===void 0x0?-0x1:_0x4d3d5e[_0x2e0c3c(0x2e9)](_0xb715e1);for(let _0x6bbfd0=0x0;_0x6bbfd0<this[_0x2e0c3c(0x1ec)][_0x2e0c3c(0x15c)];_0x6bbfd0++){let _0x17e3ba=this[_0x2e0c3c(0x1ec)][_0x6bbfd0];if(!_0x17e3ba)continue;if(_0xb715e1!==void 0x0){if(_0x5e7a95<0x0||_0x17e3ba[_0xb715e1]<0x0)continue;let _0x58e802=_0x17e3ba['slice']();for(let _0x47c32d=_0x5e7a95+0x1;_0x47c32d<_0x4d3d5e[_0x2e0c3c(0x15c)];_0x47c32d++)_0x58e802[_0x4d3d5e[_0x47c32d]]=-0x1;_0x1eedce[_0x6bbfd0]=this[_0x2e0c3c(0x11f)]['get'](this[_0x2e0c3c(0x16e)](_0x58e802))??-0x1;continue;}let _0xdafb3e=-0x1;if(_0xb715e1===void 0x0){for(let _0x13ea7c=_0x4d3d5e[_0x2e0c3c(0x15c)]-0x1;_0x13ea7c>=0x0;_0x13ea7c--)if(_0x17e3ba[_0x4d3d5e[_0x13ea7c]]>=0x0){_0xdafb3e=_0x13ea7c;break;}}if(_0xdafb3e<0x0){_0x1eedce[_0x6bbfd0]=this['_canonicalTupleIndexes'][_0x6bbfd0];continue;}let _0x24f5af=_0x17e3ba[_0x2e0c3c(0x11e)]();for(let _0x3310da=_0xdafb3e;_0x3310da<_0x4d3d5e[_0x2e0c3c(0x15c)];_0x3310da++)_0x24f5af[_0x4d3d5e[_0x3310da]]=-0x1;_0x1eedce[_0x6bbfd0]=this[_0x2e0c3c(0x11f)]['get'](this[_0x2e0c3c(0x16e)](_0x24f5af))??-0x1;}return _0x1eedce;}['_getFieldIndex'](_0x5055d3){const _0x509c13=_0x44a51f;let _0x362176=this['_fieldIndexById'][_0x5055d3];return _0x362176===void 0x0?[...this[_0x509c13(0x17b)]['rowQueryInfo'],...this[_0x509c13(0x17b)][_0x509c13(0x39b)]]['findIndex'](_0x3091c3=>_0x3091c3[_0x509c13(0x384)]===_0x5055d3):_0x362176;}[_0x44a51f(0x1bb)](_0x5793c3){return _0x5793c3===0x6||_0x5793c3===0x5||_0x5793c3===0x7||_0x5793c3===0xe;}['_isPeerType'](_0x4fbfdc){return _0x4fbfdc===0x9||_0x4fbfdc===0xa||_0x4fbfdc===0xd;}[_0x44a51f(0x296)](_0x5074a5){return _0x5074a5===0xb||_0x5074a5===0xc||_0x5074a5===0xf||_0x5074a5===0x10;}[_0x44a51f(0x394)](_0x3e77be,_0x920e65,_0x12cfbb,_0x5cd493){const _0x4d763d=_0x44a51f;if(_0x3e77be===0x6)return this[_0x4d763d(0x2ce)](_0x920e65,this[_0x4d763d(0x439)](this[_0x4d763d(0x1ff)],_0x12cfbb,_0x5cd493));if(_0x3e77be===0x5)return this[_0x4d763d(0x2ce)](_0x920e65,this['_getIndexedRawValue'](this['_parentColumnTotalIndexes'],_0x12cfbb,_0x5cd493));let _0xe1cca4=this[_0x4d763d(0x36d)][_0x5cd493['id']];return this[_0x4d763d(0x2ce)](_0x920e65,this[_0x4d763d(0x439)](this[_0x4d763d(0x2c5)][_0x4d763d(0x245)](_0xe1cca4),_0x12cfbb,_0x5cd493));}[_0x44a51f(0x2d7)](_0x2f92d4,_0x656950,_0x14c3a7,_0xb51418){const _0x314192=_0x44a51f;var _0x4b9ad0;let _0x5a02d9=(_0x4b9ad0=this[_0x314192(0x2f9)][_0xb51418['id']])==null?void 0x0:_0x4b9ad0['get'](this['_getCanonicalTupleIndex'](_0x14c3a7));if(_0x5a02d9){let _0x45419f=_0x5a02d9[_0x314192(0x180)][_0x314192(0x415)](_0xb51418['subtotal']);return _0x2f92d4===0xd?this[_0x314192(0x354)](_0x656950,_0x45419f):_0x5a02d9['includesCurrent']?void 0x0:_0x2f92d4===0x9?this[_0x314192(0x2b9)](_0x656950,_0x45419f):this[_0x314192(0x151)](_0x656950,_0x45419f);}let _0x2fe1d6=this[_0x314192(0x193)](this[_0x314192(0x364)][_0xb51418['id']],_0x14c3a7);if(_0x2f92d4===0xd)return this[_0x314192(0x354)](_0x656950,this[_0x314192(0x16c)](_0x2fe1d6,_0xb51418));if(_0x2fe1d6<0x0||_0x2fe1d6===this['_getCanonicalTupleIndex'](_0x14c3a7))return;let _0x5b122d=this[_0x314192(0x16c)](_0x2fe1d6,_0xb51418);return _0x2f92d4===0x9?this['_difference'](_0x656950,_0x5b122d):this['_percentDifference'](_0x656950,_0x5b122d);}[_0x44a51f(0x29b)](_0x5a2379,_0x44f023,_0x4d9a74){const _0x3ce737=_0x44a51f;let _0x2f624d=new Int32Array(this[_0x3ce737(0x265)][_0x3ce737(0x33d)]['length']);_0x2f624d[_0x3ce737(0x308)](-0x1);let _0x5e177e=_0x5a2379<this['_rowFieldIndexes'][_0x3ce737(0x15c)]?this[_0x3ce737(0x44c)]:this[_0x3ce737(0x3c8)],_0x872191=_0x5e177e[_0x3ce737(0x2e9)](_0x5a2379),_0x13cfb7=_0x4d9a74===0x1?void 0x0:this[_0x3ce737(0x36e)](_0x5a2379,_0x5e177e,_0x872191),_0x1a0312=[...this['_queryData']['rowQueryInfo'],...this[_0x3ce737(0x17b)]['colQueryInfo']][_0x5a2379],_0x36967a=this[_0x3ce737(0x265)][_0x3ce737(0x287)][_0x1a0312['dataFieldId']][_0x3ce737(0x3e5)][_0x3ce737(0x333)](_0x44f023)[0x0],_0x5762bf=this[_0x3ce737(0x374)][_0x5a2379][_0x36967a];for(let _0x448ca3=0x0;_0x448ca3<this[_0x3ce737(0x1ec)][_0x3ce737(0x15c)];_0x448ca3++){let _0x2b7092=this[_0x3ce737(0x1ec)][_0x448ca3];if(!_0x2b7092||_0x2b7092[_0x5a2379]<0x0)continue;let _0x497a12=_0x5762bf;if(_0x13cfb7){let _0x4bb8e8=this[_0x3ce737(0x35e)](_0x2b7092,_0x5e177e,_0x872191),_0xdaeda3=_0x13cfb7[_0x3ce737(0x245)](_0x4bb8e8),_0x314266=_0xdaeda3==null?void 0x0:_0xdaeda3[_0x3ce737(0x2e4)][_0x3ce737(0x245)](_0x2b7092[_0x5a2379]);if(_0xdaeda3&&_0x314266!==void 0x0){let _0x4f656b=_0x4d9a74===0x2?-0x1:0x1;_0x497a12=_0xdaeda3['items'][_0x314266+_0x4f656b];}else _0x497a12=void 0x0;}if(_0x497a12===void 0x0)continue;let _0x1fd6d0=_0x2b7092[_0x3ce737(0x11e)]();_0x1fd6d0[_0x5a2379]=_0x497a12,_0x2f624d[_0x448ca3]=this[_0x3ce737(0x11f)][_0x3ce737(0x245)](this[_0x3ce737(0x16e)](_0x1fd6d0))??-0x1;}return _0x2f624d;}[_0x44a51f(0x36e)](_0x30723a,_0x58b7e5,_0x36b957){const _0x1e2938=_0x44a51f;let _0x45b0d0=new Map(),_0x5e4f80=_0x30723a<this['_rowFieldIndexes'][_0x1e2938(0x15c)]?this[_0x1e2938(0x265)][_0x1e2938(0x2a0)]:this['_summaryManager'][_0x1e2938(0x323)],_0x374415=_0x5db103=>{const _0x4c340e=_0x1e2938;if(_0x5db103['getLevel']()===_0x36b957){let _0x29fc8e=[],_0x2e3b56=new Map();_0x5db103[_0x4c340e(0x1fa)](_0x5744b2=>{const _0x221c1f=_0x4c340e;let _0x46a1a0=this[_0x221c1f(0x374)][_0x30723a][_0x5744b2[_0x221c1f(0x20a)]];_0x46a1a0!==void 0x0&&(_0x2e3b56['set'](_0x46a1a0,_0x29fc8e[_0x221c1f(0x15c)]),_0x29fc8e[_0x221c1f(0x1d6)](_0x46a1a0));}),_0x45b0d0['set'](this[_0x4c340e(0x37e)](_0x5db103,_0x58b7e5,_0x36b957),{'items':_0x29fc8e,'positions':_0x2e3b56});}else _0x5db103[_0x4c340e(0x1fa)](_0x374415);};return _0x374415(_0x5e4f80),_0x45b0d0;}[_0x44a51f(0x37e)](_0x260a0e,_0xcdadb6,_0x214daf){const _0x2a6143=_0x44a51f;let _0x2f9e20=_0x260a0e['getPaths'](),_0x4a8222=[];for(let _0x39330c=0x0;_0x39330c<_0x214daf;_0x39330c++)_0x4a8222['push'](this[_0x2a6143(0x374)][_0xcdadb6[_0x39330c]][_0x2f9e20[_0x39330c]]);return _0x4a8222[_0x2a6143(0x34f)](',');}[_0x44a51f(0x35e)](_0x4b53ba,_0x28dd95,_0x55daf2){const _0x195a3c=_0x44a51f;let _0x404528=[];for(let _0x2b8711=0x0;_0x2b8711<_0x55daf2;_0x2b8711++)_0x404528[_0x195a3c(0x1d6)](_0x4b53ba[_0x28dd95[_0x2b8711]]);return _0x404528[_0x195a3c(0x34f)](',');}[_0x44a51f(0x40d)](_0x3fb7c4){const _0x22dfd5=_0x44a51f;let _0x38c55d=_0x3fb7c4<this[_0x22dfd5(0x44c)]['length']?this[_0x22dfd5(0x44c)]:this['_columnFieldIndexes'],_0x2209e2=_0x38c55d[_0x22dfd5(0x2e9)](_0x3fb7c4),_0x55b053=this[_0x22dfd5(0x36e)](_0x3fb7c4,_0x38c55d,_0x2209e2),_0x1dc4a1=new Map();for(let _0x24ddf7 of this[_0x22dfd5(0x11f)][_0x22dfd5(0x2f4)]()){var _0x209857;let _0x183665=this[_0x22dfd5(0x1ec)][_0x24ddf7];if(!_0x183665||_0x183665[_0x3fb7c4]<0x0)continue;let _0xef9570=this[_0x22dfd5(0x35e)](_0x183665,_0x38c55d,_0x2209e2),_0x224bbd=(_0x209857=_0x55b053[_0x22dfd5(0x245)](_0xef9570))==null?void 0x0:_0x209857[_0x22dfd5(0x2e4)][_0x22dfd5(0x245)](_0x183665[_0x3fb7c4]);if(_0x224bbd===void 0x0)continue;let _0x28cb42=this['_getCoordinateKeyWithoutField'](_0x183665,_0x3fb7c4),_0x5871cc=_0x1dc4a1[_0x22dfd5(0x245)](_0x28cb42);_0x5871cc||(_0x5871cc=[],_0x1dc4a1[_0x22dfd5(0x1f4)](_0x28cb42,_0x5871cc)),_0x5871cc[_0x224bbd]=_0x24ddf7;}return Array[_0x22dfd5(0x298)](_0x1dc4a1['values']());}[_0x44a51f(0x444)](_0x2f4872,_0xca02d7){const _0x15cc39=_0x44a51f;let _0x5c28a4=[];for(let _0x1e00aa=0x0;_0x1e00aa<_0x2f4872[_0x15cc39(0x15c)];_0x1e00aa++)_0x1e00aa!==_0xca02d7&&_0x5c28a4[_0x15cc39(0x1d6)](_0x2f4872[_0x1e00aa]);return _0x5c28a4['join'](',');}[_0x44a51f(0x475)](_0x12a175,_0x316f35,_0x4bf809){const _0x2c41af=_0x44a51f;let _0x1c3a83=this[_0x2c41af(0x3c1)]();for(let _0x3c54cc of this[_0x2c41af(0x40d)](_0x316f35)){let _0x30b5d5=0x0;if(_0x4bf809)for(let _0x566422 of _0x3c54cc){let _0xbe951d=this[_0x2c41af(0x16c)](_0x566422,_0x12a175);typeof _0xbe951d==_0x2c41af(0x26d)&&(_0x30b5d5+=_0xbe951d);}let _0x9a1327=0x0;for(let _0xa9ca71 of _0x3c54cc){let _0x57fe54=this[_0x2c41af(0x16c)](_0xa9ca71,_0x12a175);_0x57fe54!==void 0x0&&(J(_0x57fe54)?this['_setDerivedError'](_0x1c3a83,_0xa9ca71,_0x57fe54[_0x2c41af(0x457)]):(_0x9a1327+=_0x57fe54,_0x4bf809&&_0x30b5d5===0x0?this['_setDerivedError'](_0x1c3a83,_0xa9ca71,0x1):this[_0x2c41af(0x31f)](_0x1c3a83,_0xa9ca71,_0x4bf809?_0x9a1327/_0x30b5d5:_0x9a1327)));}}return _0x1c3a83;}[_0x44a51f(0x2cc)](_0x7b394,_0x2f9c20,_0x5b6772){const _0xd4f82d=_0x44a51f;let _0x4f2727=this[_0xd4f82d(0x3c1)](),_0x342081=[];for(let _0x11e886 of this[_0xd4f82d(0x40d)](_0x2f9c20)){_0x342081[_0xd4f82d(0x15c)]=0x0;for(let _0x1a106a of _0x11e886){let _0x53033d=this[_0xd4f82d(0x16c)](_0x1a106a,_0x7b394);typeof _0x53033d==_0xd4f82d(0x26d)?_0x342081[_0xd4f82d(0x1d6)]({'tupleIndex':_0x1a106a,'value':_0x53033d}):J(_0x53033d)&&this[_0xd4f82d(0x391)](_0x4f2727,_0x1a106a,_0x53033d[_0xd4f82d(0x457)]);}_0x342081[_0xd4f82d(0x2a5)]((_0x2b16a2,_0x1d2c04)=>_0x5b6772?_0x2b16a2[_0xd4f82d(0x1d0)]-_0x1d2c04['value']:_0x1d2c04[_0xd4f82d(0x1d0)]-_0x2b16a2['value']);let _0x55f0bd=0x0,_0x259ace;for(let _0x4d9fff=0x0;_0x4d9fff<_0x342081[_0xd4f82d(0x15c)];_0x4d9fff++){let _0x492cbf=_0x342081[_0x4d9fff];(_0x259ace===void 0x0||_0x492cbf[_0xd4f82d(0x1d0)]!==_0x259ace)&&(_0x55f0bd=_0x4d9fff+0x1,_0x259ace=_0x492cbf['value']),this[_0xd4f82d(0x31f)](_0x4f2727,_0x492cbf[_0xd4f82d(0x297)],_0x55f0bd);}}return _0x4f2727;}[_0x44a51f(0x3c1)](){const _0x263279=_0x44a51f;return{'values':new Float64Array(this[_0x263279(0x265)][_0x263279(0x33d)][_0x263279(0x15c)]),'states':new Uint8Array(this['_summaryManager'][_0x263279(0x33d)][_0x263279(0x15c)])};}['_setDerivedNumber'](_0x14b36c,_0x4c0975,_0xd99792){const _0x99afcf=_0x44a51f;_0x14b36c[_0x99afcf(0x2f4)][_0x4c0975]=_0xd99792,_0x14b36c[_0x99afcf(0x428)][_0x4c0975]=0x1;}[_0x44a51f(0x391)](_0x2951a4,_0x1a42d1,_0x40cf34){const _0x3f669d=_0x44a51f;_0x2951a4[_0x3f669d(0x428)][_0x1a42d1]=_0x40cf34+0x1;}['_getDerivedValue'](_0x9553d3,_0x21573d){const _0x2fb672=_0x44a51f;if(!_0x9553d3)return;let _0x5a08ca=this[_0x2fb672(0x3a7)][_0x21573d],_0x172ea1=_0x5a08ca<0x0?_0x21573d:_0x5a08ca,_0x3b7d79=_0x9553d3['states'][_0x172ea1];if(_0x3b7d79===0x1)return _0x9553d3[_0x2fb672(0x2f4)][_0x172ea1];if(_0x3b7d79>0x1){let _0x2f8b63=_0x3b7d79-0x1;return vt[_0x2f8b63];}}[_0x44a51f(0x16e)](_0x3832f2){const _0x392ac9=_0x44a51f;return _0x3832f2[_0x392ac9(0x34f)](',');}[_0x44a51f(0x16c)](_0x165449,_0x328b91){const _0x2ee2da=_0x44a51f;var _0x2944ed;if(_0x165449<0x0)return;let _0x5a457c=this[_0x2ee2da(0x265)][_0x2ee2da(0x33d)][_0x165449];return _0x5a457c==null||(_0x2944ed=_0x5a457c[_0x2ee2da(0x369)])==null||(_0x2944ed=_0x2944ed[_0x328b91['dataFieldId']])==null?void 0x0:_0x2944ed[_0x328b91[_0x2ee2da(0x2b1)]];}[_0x44a51f(0x439)](_0x253d5a,_0x7eb1b5,_0x36d6c9){const _0x345357=_0x44a51f;return this['_getRawValue'](this[_0x345357(0x193)](_0x253d5a,_0x7eb1b5),_0x36d6c9);}[_0x44a51f(0x193)](_0x230b71,_0xfa9391){return(_0x230b71==null?void 0x0:_0x230b71[this['_getCanonicalTupleIndex'](_0xfa9391)])??-0x1;}[_0x44a51f(0x2f6)](_0xacf3e0){const _0x1a5bcd=_0x44a51f;let _0x1c053a=this[_0x1a5bcd(0x3a7)][_0xacf3e0];return _0x1c053a<0x0?_0xacf3e0:_0x1c053a;}[_0x44a51f(0x354)](_0x351e74,_0x54e430){if(_0x351e74!==void 0x0){if(J(_0x351e74))return _0x351e74;if(_0x54e430!==void 0x0)return J(_0x54e430)?_0x54e430:_0x54e430===0x0?yt:_0x351e74/_0x54e430;}}[_0x44a51f(0x2b9)](_0x29592b,_0x46178d){if(_0x29592b!==void 0x0){if(J(_0x29592b))return _0x29592b;if(_0x46178d!==void 0x0)return J(_0x46178d)?_0x46178d:_0x29592b-_0x46178d;}}[_0x44a51f(0x2ce)](_0xf9af25,_0x544a09){const _0x4f5fb9=_0x44a51f;if(_0xf9af25!==0x0||_0x544a09!==0x0)return this[_0x4f5fb9(0x354)](_0xf9af25,_0x544a09);}[_0x44a51f(0x151)](_0x1be1ed,_0x2ad0b5){if(_0x1be1ed!==void 0x0){if(J(_0x1be1ed))return _0x1be1ed;if(_0x2ad0b5!==void 0x0)return J(_0x2ad0b5)?_0x2ad0b5:_0x2ad0b5===0x0?yt:(_0x1be1ed-_0x2ad0b5)/_0x2ad0b5;}}[_0x44a51f(0x166)](_0x3ba381,_0xa11a99,_0x1a838b){const _0x4747b3=_0x44a51f;if(_0x3ba381===void 0x0||J(_0x3ba381))return _0x3ba381;let _0x223b85=this[_0x4747b3(0x439)](this[_0x4747b3(0x248)],_0xa11a99,_0x1a838b),_0x430859=this['_getIndexedRawValue'](this[_0x4747b3(0x237)],_0xa11a99,_0x1a838b),_0x20793e=this[_0x4747b3(0x16c)](this[_0x4747b3(0x1c4)],_0x1a838b);return _0x223b85===void 0x0||_0x430859===void 0x0||_0x20793e===void 0x0?bt:J(_0x223b85)?_0x223b85:J(_0x430859)?_0x430859:J(_0x20793e)?_0x20793e:_0x223b85===0x0||_0x430859===0x0?yt:_0x3ba381*_0x20793e/(_0x223b85*_0x430859);}};function St(_0x5b0ac6,_0xe07bb0,_0xdaa67b,_0x4ff4c0){const _0x42a329=_0x44a51f;if(_0x5b0ac6[_0x42a329(0x1df)]!==0xf&&_0x5b0ac6['operator']!==0x2c)return ue(_0x5b0ac6);let _0x2fbd07=_0xe07bb0['map'](({v:_0x31b7a4})=>{const _0x329bb9=_0x42a329;var _0x1ae60a;return(_0x1ae60a=_0xdaa67b[_0x31b7a4])==null?void 0x0:_0x1ae60a[_0x329bb9(0x180)][_0x329bb9(0x415)](_0x4ff4c0);})['filter'](_0xe144ca=>typeof _0xe144ca==_0x42a329(0x26d)&&Number['isFinite'](_0xe144ca)),_0x51e4d1=_0x5b0ac6[_0x42a329(0x1df)]===0x2c?Math[_0x42a329(0x487)](_0x2fbd07[_0x42a329(0x15c)]*Number(_0x5b0ac6['expected'])/0x64):Math[_0x42a329(0x487)](Number(_0x5b0ac6[_0x42a329(0x353)])),_0xf43420=le(_0x2fbd07,Math[_0x42a329(0x278)](_0x2fbd07['length'],Math['max'](0x0,_0x51e4d1)),!!_0x5b0ac6[_0x42a329(0x431)]);return _0x300e27=>_0xf43420!==void 0x0&&(_0x5b0ac6[_0x42a329(0x431)]?_0x300e27<=_0xf43420:_0x300e27>=_0xf43420);}var Ct=class{constructor(_0x2b894b,_0x51976f,_0x911db2){const _0x20f334=_0x44a51f;A(this,_0x20f334(0x380),void 0x0),A(this,'rowDimOrder',void 0x0),A(this,_0x20f334(0x209),void 0x0),A(this,_0x20f334(0x303),void 0x0),A(this,_0x20f334(0x2ef),void 0x0),A(this,_0x20f334(0x1d5),void 0x0),A(this,_0x20f334(0x2d3),void 0x0),A(this,_0x20f334(0x33f),void 0x0),A(this,_0x20f334(0x264),void 0x0),A(this,_0x20f334(0x46b),{}),A(this,_0x20f334(0x33d),[]),A(this,_0x20f334(0x179),{}),A(this,'dimensionIdList',[]),A(this,'dimensionTableIdList',[]),A(this,_0x20f334(0x1c0),[]),A(this,_0x20f334(0x32e),{}),A(this,_0x20f334(0x1b0),{}),A(this,'rowNodeTree',void 0x0),A(this,_0x20f334(0x323),void 0x0),A(this,'dimensionMap',{}),A(this,'combinePathMap',{}),A(this,_0x20f334(0x277),void 0x0),A(this,'dimensionSortInfo',{}),A(this,'valueSortInfo',{}),A(this,_0x20f334(0x222),[]),A(this,_0x20f334(0x272),{}),A(this,_0x20f334(0x2bb),void 0x0),A(this,_0x20f334(0x393),void 0x0),A(this,'_sortCompareCache',new Map()),this['tuples']=_0x51976f[_0x20f334(0x33d)][_0x20f334(0x309)]();let _0x4cd6be=_0x2b894b[_0x20f334(0x2ad)],_0x4cd543=_0x2b894b['colQueryInfo'],{tuples:_0x3f262a,dimensionMap:_0xcee875,dimensionTableIdList:_0x1649c5,tupleMap:_0x16e11d,dimensionIdList:_0x2f1ef4,measuresMap:_0x49dcfc,measureIdList:_0x303f6d}=_0x51976f,_0x358869=_0x4cd6be[_0x20f334(0x15c)],_0x3667d5=_0x4cd543['length'];this[_0x20f334(0x485)]=_0x1649c5,this[_0x20f334(0x380)]=_0x3f262a[_0x20f334(0x15c)],this['leafCount']=_0x3f262a[_0x20f334(0x15c)],this[_0x20f334(0x277)]=_0x2b894b[_0x20f334(0x277)],this[_0x20f334(0x179)]={..._0x16e11d},this['measuresMap']={..._0x49dcfc},this[_0x20f334(0x1c0)]=_0x303f6d,this[_0x20f334(0x359)]=_0x2f1ef4,this[_0x20f334(0x287)]=_0xcee875,this['valueFilterInfo']=_0x2b894b[_0x20f334(0x222)],this[_0x20f334(0x393)]=_0x911db2;let _0x19c3d5=_0x2b894b[_0x20f334(0x35f)];for(let _0x4f0d44 of _0x19c3d5){let _0x1da4c3=_0x4f0d44['id'],_0x91106f=_0x4f0d44[_0x20f334(0x2b1)];_0x91106f!==void 0x0&&(this[_0x20f334(0x272)][_0x1da4c3]={'subTotal':_0x91106f,'dataFieldId':_0x4f0d44['dataFieldId']});}let _0x4e6fab=[],_0x3ae3ab=[],_0x2e1ca1=new Map();for(let [_0x236c6e,_0x3b46b7]of _0x1649c5['entries']())_0x2e1ca1[_0x20f334(0x1f4)](_0x3b46b7,_0x236c6e);for(let _0x3dc497=0x0;_0x3dc497<_0x358869;_0x3dc497++){let _0x212109=_0x4cd6be[_0x3dc497]['id'];_0x4e6fab['push'](_0x2e1ca1[_0x20f334(0x245)](_0x212109)),_0x3ae3ab[_0x20f334(0x1d6)](_0x212109);}let _0x135c88=[],_0x12830c=[];for(let _0x315a59=0x0;_0x315a59<_0x3667d5;_0x315a59++){let _0x6d2e5e=_0x4cd543[_0x315a59]['id'];_0x135c88['push'](_0x2e1ca1[_0x20f334(0x245)](_0x6d2e5e)),_0x12830c[_0x20f334(0x1d6)](_0x6d2e5e);}this['rowDimOrder']=_0x4e6fab[_0x20f334(0x309)](_0x135c88),this[_0x20f334(0x209)]=_0x135c88[_0x20f334(0x309)](_0x4e6fab),this[_0x20f334(0x303)]=_0x3ae3ab[_0x20f334(0x309)](_0x12830c),this[_0x20f334(0x2ef)]=_0x12830c[_0x20f334(0x309)](_0x3ae3ab),this[_0x20f334(0x1d5)]=_0x358869,this[_0x20f334(0x2d3)]=_0x3667d5,this['measureCount']=this[_0x20f334(0x1c0)][_0x20f334(0x15c)],this[_0x20f334(0x189)](_0x2b894b);}[_0x44a51f(0x189)](_0x508f37){const _0x15c19d=_0x44a51f;let {rowQueryInfo:_0x106780,colQueryInfo:_0x2fbfb8}=_0x508f37;for(let _0x40c2a5 of[..._0x106780,..._0x2fbfb8]){let _0x565557=_0x40c2a5['sortInfo'],_0x3b0276=_0x40c2a5['id'];if(_0x565557){if('baseFieldId'in _0x565557)this['valueSortInfo'][_0x3b0276]=_0x565557;else{if(Fe(_0x565557)){let _0x578309={},_0x88a5c3=_0x565557[_0x15c19d(0x13b)];for(let _0x4c4402=0x0;_0x4c4402<_0x88a5c3[_0x15c19d(0x15c)];_0x4c4402++){let _0x518ff2=_0x88a5c3[_0x4c4402];for(let _0x5ba4fe of this[_0x15c19d(0x287)][_0x40c2a5[_0x15c19d(0x384)]][_0x15c19d(0x3e5)][_0x15c19d(0x333)](_0x518ff2))_0x578309[_0x5ba4fe]=_0x4c4402;}this[_0x15c19d(0x34e)][_0x3b0276]={'type':_0x565557['type'],'sortMap':_0x578309};}else{let _0x10c585=this['getSortedMap'](_0x3b0276,this[_0x15c19d(0x287)][_0x40c2a5[_0x15c19d(0x384)]][_0x15c19d(0x3e5)],_0x565557[_0x15c19d(0x1e3)]);this['dimensionSortInfo'][_0x3b0276]={'type':_0x565557[_0x15c19d(0x477)],'sortMap':_0x10c585};}}}else{if(a[_0x15c19d(0x3f2)]!=='default'){let _0x4411bf=a[_0x15c19d(0x3f2)],_0xd9a877=this[_0x15c19d(0x3a2)](_0x3b0276,this[_0x15c19d(0x287)][_0x40c2a5[_0x15c19d(0x384)]][_0x15c19d(0x3e5)]),_0x362b3c=_0x4411bf===_0x15c19d(0x3fe)?0x1:0x2;this[_0x15c19d(0x34e)][_0x3b0276]={'type':_0x362b3c,'sortMap':_0xd9a877};}}}}[_0x44a51f(0x12c)](_0x43cfb5,_0x172eab){const _0x38ebc5=_0x44a51f;var _0x15bb48;return this[_0x38ebc5(0x2bb)]?this['_showDataAsResolver']['getValue'](_0x43cfb5,_0x172eab):(_0x15bb48=this['tuples'][_0x43cfb5])==null||(_0x15bb48=_0x15bb48[_0x38ebc5(0x369)])==null||(_0x15bb48=_0x15bb48[_0x172eab[_0x38ebc5(0x384)]])==null?void 0x0:_0x15bb48[_0x172eab[_0x38ebc5(0x2b1)]];}['prepareShowDataAs'](_0xe85b5c){const _0x2cc020=_0x44a51f;!this[_0x2cc020(0x2bb)]&&_0xe85b5c[_0x2cc020(0x35f)][_0x2cc020(0x3f5)](_0x13c9d1=>{const _0x402017=_0x2cc020;var _0xa179f6;return((_0xa179f6=_0x13c9d1[_0x402017(0x44b)])==null?void 0x0:_0xa179f6[_0x402017(0x477)])&&_0x13c9d1['showDataAs'][_0x402017(0x477)]!==0x1;})&&(this['_showDataAsResolver']=new xt(this,_0xe85b5c),this['_showDataAsResolver'][_0x2cc020(0x466)]());}[_0x44a51f(0x2fb)](){const _0x519958=_0x44a51f;var _0x258c03;(_0x258c03=this[_0x519958(0x2bb)])==null||_0x258c03[_0x519958(0x227)](),this[_0x519958(0x2bb)]=void 0x0;}[_0x44a51f(0x3a2)](_0x31d171,_0xb18700,_0x552f1d){const _0x17403d=_0x44a51f;let _0x5e6102=this[_0x17403d(0x34e)][_0x31d171];if(_0x5e6102&&_0x5e6102['sortMap'])return _0x5e6102[_0x17403d(0x361)];let _0x42dfc5=_0xb18700[_0x17403d(0x260)](),_0x2af75e=_0xb18700 instanceof U?_0xb18700['items']:Object[_0x17403d(0x3cf)](_0x42dfc5),_0x20cd5e=_0xb18700 instanceof U?_0xb18700[_0x17403d(0x31b)]:[];if(!(_0xb18700 instanceof U)){for(let _0x1572e4 of _0x2af75e)_0x20cd5e[_0x42dfc5[_0x1572e4]]=_0xb18700[_0x17403d(0x226)](_0x1572e4);}if(!(_0xb18700 instanceof U)||_0xb18700 instanceof G){let _0x3f73c8=_0x3ecd41=>_0x3ecd41===0x2?0x0:_0x3ecd41===0x1?0x1:_0x3ecd41===0x4?0x2:0x3,_0x2b5f73=this[_0x17403d(0x21d)](_0x552f1d),_0x418f0d=_0x2af75e[_0x17403d(0x11e)]()['sort']((_0xf73042,_0x437858)=>{const _0x2ed283=_0x17403d;let _0x1b5b0e=_0x20cd5e[_0x42dfc5[_0xf73042]],_0x35eb77=_0x20cd5e[_0x42dfc5[_0x437858]],_0x13171f=_0x3f73c8(_0x1b5b0e)-_0x3f73c8(_0x35eb77);if(_0x13171f)return _0x13171f;let _0x1f93ac=_0xb18700 instanceof G?_0xb18700[_0x2ed283(0x36c)](_0xf73042):_0xb18700[_0x2ed283(0x44a)](_0xf73042),_0x47bdac=_0xb18700 instanceof G?_0xb18700[_0x2ed283(0x36c)](_0x437858):_0xb18700[_0x2ed283(0x44a)](_0x437858);return _0x1b5b0e===0x2||_0x1b5b0e===0x4?Number(_0x1f93ac)-Number(_0x47bdac)||_0x42dfc5[_0xf73042]-_0x42dfc5[_0x437858]:_0x2b5f73(_0x1f93ac,_0x47bdac)||_0x42dfc5[_0xf73042]-_0x42dfc5[_0x437858];});return Object[_0x17403d(0x27c)](_0x418f0d[_0x17403d(0x47c)]((_0x479402,_0x386ae9)=>[_0x479402,_0x386ae9]));}let _0x375f1e=je(_0x2af75e,_0x20cd5e,_0x42dfc5,this[_0x17403d(0x21d)](_0x552f1d));if(_0xb18700 instanceof tt){let _0x16f9a0=Object[_0x17403d(0x3cf)](_0x375f1e)[_0x17403d(0x2a5)]((_0x50d6d5,_0x2b06e8)=>_0x375f1e[_0x50d6d5]-_0x375f1e[_0x2b06e8]),_0x2a18f7=[..._0x16f9a0[_0x17403d(0x243)]('__number_before__')?[Xe]:[],..._0x16f9a0['filter'](_0xa59f2b=>_0xa59f2b!==_0x17403d(0x3fc)&&_0xa59f2b!==_0x17403d(0x3da)),..._0x16f9a0[_0x17403d(0x243)](_0x17403d(0x3da))?[Ze]:[]];return Object[_0x17403d(0x27c)](_0x2a18f7[_0x17403d(0x47c)]((_0x20ba1f,_0x418ca1)=>[_0x20ba1f,_0x418ca1]));}return _0x375f1e;}[_0x44a51f(0x128)](){const _0x2ca33f=_0x44a51f;let _0x1b7e86=this[_0x2ca33f(0x24a)]();this[_0x2ca33f(0x38d)](_0x1b7e86),this[_0x2ca33f(0x231)](_0x1b7e86),this[_0x2ca33f(0x33c)](),this['_applyValueSorts']();}[_0x44a51f(0x405)](_0x379277,_0x120c3d){const _0x54f1aa=_0x44a51f;this['rowNodeTree']['resetSort'](),this[_0x54f1aa(0x323)]!==this[_0x54f1aa(0x2a0)]&&this[_0x54f1aa(0x323)]['resetSort'](),this[_0x54f1aa(0x34e)]={},this[_0x54f1aa(0x3f7)]={},this[_0x54f1aa(0x393)]!==_0x120c3d&&(this[_0x54f1aa(0x393)]=_0x120c3d,this[_0x54f1aa(0x43a)][_0x54f1aa(0x1f5)]()),this[_0x54f1aa(0x189)](_0x379277),this[_0x54f1aa(0x33c)](),this[_0x54f1aa(0x2e2)]();}[_0x44a51f(0x33c)](){const _0x2016e5=_0x44a51f;for(let [_0x41de78,{type:_0x173a2b,sortMap:_0x1f4030}]of Object[_0x2016e5(0x372)](this[_0x2016e5(0x34e)]))this[_0x2016e5(0x2a0)][_0x2016e5(0x18d)](_0x41de78,_0x173a2b,_0x1f4030),this[_0x2016e5(0x323)]!==this['rowNodeTree']&&this['colNodeTree'][_0x2016e5(0x18d)](_0x41de78,_0x173a2b,_0x1f4030);}[_0x44a51f(0x2e2)](){const _0x10e630=_0x44a51f;for(let [_0x5400e5,_0x52f84e]of Object[_0x10e630(0x372)](this[_0x10e630(0x3f7)])){if(_0x52f84e[_0x10e630(0x206)][_0x10e630(0x15c)]>0x0)continue;let _0x2014ae=this[_0x10e630(0x272)][_0x52f84e[_0x10e630(0x488)]];if(!_0x2014ae)continue;let _0x5e22f4=_0x281828=>{const _0x4c280f=_0x10e630;var _0x1a90be;let _0x2f0867=(_0x1a90be=this[_0x4c280f(0x33d)][_0x281828])==null||(_0x1a90be=_0x1a90be[_0x4c280f(0x180)][_0x2014ae[_0x4c280f(0x384)]])==null?void 0x0:_0x1a90be[_0x4c280f(0x415)](_0x2014ae[_0x4c280f(0x392)]);return typeof _0x2f0867==_0x4c280f(0x26d)?_0x2f0867:void 0x0;},_0x499c59=this[_0x10e630(0x21d)](_0x52f84e[_0x10e630(0x1e3)]);this[_0x10e630(0x2a0)]['sortChildrenByValue'](_0x5400e5,_0x52f84e['type'],_0x5e22f4,_0x499c59),this[_0x10e630(0x323)]!==this[_0x10e630(0x2a0)]&&this[_0x10e630(0x323)]['sortChildrenByValue'](_0x5400e5,_0x52f84e[_0x10e630(0x477)],_0x5e22f4,_0x499c59);}}[_0x44a51f(0x21d)](_0x1f6b26){const _0x4f13fd=_0x44a51f;let _0x223e51=(_0x1f6b26??'')+'\x00'+(this[_0x4f13fd(0x393)]??''),_0x4c080d=this['_sortCompareCache']['get'](_0x223e51);return _0x4c080d||(_0x4c080d=B(_0x1f6b26,this[_0x4f13fd(0x393)]),this['_sortCompareCache'][_0x4f13fd(0x1f4)](_0x223e51,_0x4c080d)),_0x4c080d;}['_getIndex'](){const _0x17fc0c=_0x44a51f;return this[_0x17fc0c(0x380)]++;}[_0x44a51f(0x38d)](_0x2ddf75){const _0x2b18af=_0x44a51f;this[_0x2b18af(0x2a0)]=this[_0x2b18af(0x1f6)](this[_0x2b18af(0x1d9)],this[_0x2b18af(0x303)],this['_rowLevelPool'],a[_0x2b18af(0x2fd)],_0x2ddf75),this[_0x2b18af(0x323)]=this[_0x2b18af(0x1d5)]===0x0||this[_0x2b18af(0x2d3)]===0x0?this[_0x2b18af(0x2a0)]:this[_0x2b18af(0x1f6)](this[_0x2b18af(0x209)],this[_0x2b18af(0x2ef)],this[_0x2b18af(0x1b0)],a[_0x2b18af(0x2ab)],_0x2ddf75);}[_0x44a51f(0x1ae)](_0x10d7d8){const _0xc35891=_0x44a51f;let _0x2b35ae={},_0x134be2=new Map(),_0x42c133=this['leafCount'],_0x1c3ebb=_0x42c133+0x1,_0x1d66e0=_0x10d7d8['length'];for(let _0x11be68=0x0;_0x11be68<this['leafCount'];_0x11be68++){let _0x438c1a=this['tuples'][_0x11be68],_0x4aa777=_0x42c133;for(let _0x25cba3=0x0;_0x25cba3<_0x1d66e0;_0x25cba3++){let _0x283bc9=_0x25cba3===_0x1d66e0-0x1,_0x52bbdf=_0x438c1a[_0xc35891(0x174)][_0x10d7d8[_0x25cba3]],_0xb111fa=_0x11be68,_0x2ac074=!0x0;if(!_0x283bc9){let _0x2d6431=_0x134be2[_0xc35891(0x245)](_0x4aa777);_0x2d6431||(_0x2d6431=new Map(),_0x134be2['set'](_0x4aa777,_0x2d6431));let _0x44a9c3=_0x2d6431[_0xc35891(0x245)](_0x52bbdf);_0x44a9c3===void 0x0?(_0xb111fa=_0x1c3ebb++,_0x2d6431[_0xc35891(0x1f4)](_0x52bbdf,_0xb111fa)):(_0xb111fa=_0x44a9c3,_0x2ac074=!0x1);}if(_0x2ac074){let _0x41a0f9=_0x25cba3+0x1;_0x2b35ae[_0x41a0f9]=_0x2b35ae[_0x41a0f9]||[],_0x2b35ae[_0x41a0f9][_0xc35891(0x1d6)]({'p':_0x4aa777,'v':_0xb111fa});}_0x4aa777=_0xb111fa;}}return _0x2b35ae;}[_0x44a51f(0x37d)](_0x3236f1,_0x4b5bf0,_0x23a80c){const _0x364c46=_0x44a51f;let _0x551228={'path':_0x3236f1,'indexes':[],'tuple':{},'types':[]};for(let _0x4f3ae2 of this[_0x364c46(0x1c0)]){let _0x20b2ba=new j();_0x551228['tuple'][_0x4f3ae2]=_0x20b2ba;}this[_0x364c46(0x33d)][_0x4b5bf0]=_0x551228,this[_0x364c46(0x179)][_0x23a80c]=_0x4b5bf0;}[_0x44a51f(0x1f6)](_0x235f45,_0x4e0f04,_0x1443be,_0x356f3d,_0x444897){const _0x2b9904=_0x44a51f;let _0x463319=this[_0x2b9904(0x3a3)](),_0x312111=new _t(_0x463319,'',0x1);_0x312111[_0x2b9904(0x28f)](-0x1),_0x312111[_0x2b9904(0x3b2)](0x0),_0x312111[_0x2b9904(0x3ae)]([]),this['createTupleWithoutCheck'](_0x312111['getPaths'](),_0x463319,_0x356f3d);let _0xc5df7a=this[_0x2b9904(0x277)],_0x1357de=this['rowDeep']+this['colDeep'],_0x37b7e6=this[_0x2b9904(0x485)];for(let _0x132858=0x0;_0x132858<this['leafCount'];_0x132858++){if(_0x444897[_0x132858]===0x0)continue;let _0x8912a=this[_0x2b9904(0x33d)][_0x132858],_0x58ede8=_0x312111,_0x5db149=0x0;for(let _0x1520f1 of _0x235f45){let _0x303242=_0x8912a[_0x2b9904(0x174)][_0x1520f1],_0x4fed68=_0x8912a[_0x2b9904(0x389)][_0x1520f1],_0x356fa2=_0x37b7e6[_0x1520f1];if(!_0x58ede8[_0x2b9904(0x1fc)](_0x303242)){let _0x26c3ac=_0x5db149===_0x1357de-0x1,_0x56b29b=_0x26c3ac?_0x132858:this[_0x2b9904(0x3a3)](),_0x14a62a=new _t(_0x56b29b,_0x356fa2,_0x4fed68),_0x1d4e71=this[_0x2b9904(0x287)][this[_0x2b9904(0x359)][_0x1520f1]]['field'];_0x14a62a['setCollapse'](Ce(_0xc5df7a,_0x356fa2,_0x1d4e71[_0x2b9904(0x44a)](_0x303242)));let {sortMap:_0x2863f1,type:_0x29a786}=this[_0x2b9904(0x34e)][_0x356fa2]??{},_0x3d0b4c=_0x1d4e71 instanceof G?_0x1d4e71[_0x2b9904(0x36c)](_0x303242):_0x1d4e71[_0x2b9904(0x44a)](_0x303242);_0x58ede8[_0x2b9904(0x446)](_0x14a62a,_0x303242,_0x2863f1,_0x29a786,_0x3d0b4c);let _0x239b46=_0x14a62a[_0x2b9904(0x1e2)]();_0x26c3ac?_0x14a62a[_0x2b9904(0x37c)]():this['ensureTupleItem'](_0x56b29b,_0x14a62a[_0x2b9904(0x334)](),_0x4e0f04),_0x1443be[_0x239b46]=_0x1443be[_0x239b46]||[],_0x1443be[_0x239b46][_0x2b9904(0x1d6)]({'p':_0x58ede8['getIndex'](),'v':_0x56b29b});}_0x58ede8=_0x58ede8[_0x2b9904(0x212)](_0x303242),_0x5db149++;}}return _0x312111;}['combinePathMapList'](_0x1461a4,_0x3362d3){const _0x40a2c0=_0x44a51f;if(this[_0x40a2c0(0x46a)][_0x3362d3])return this['combinePathMap'][_0x3362d3];let _0xa5f6d0={};this[_0x40a2c0(0x46a)][_0x3362d3]=_0xa5f6d0;let _0x14748a={};for(let _0x2ab477 of _0x1461a4)for(let _0x6044a6 in _0x2ab477){let _0x3f423a=[_0x3362d3,_0x6044a6][_0x40a2c0(0x34f)](a['TUPLE_FIELD_SEPARATOR']);if(_0xa5f6d0[_0x6044a6]===void 0x0){let _0x2c8d43=this[_0x40a2c0(0x3a3)]();this[_0x40a2c0(0x41e)](_0x2c8d43,_0x3f423a),_0xa5f6d0[_0x6044a6]=_0x2c8d43;}_0x14748a[_0x3f423a]===void 0x0&&(_0x14748a[_0x3f423a]=[]),_0x14748a[_0x3f423a][_0x40a2c0(0x1d6)](_0x2ab477[_0x6044a6]);}for(let _0x1024f9 in _0x14748a){let _0x441221=_0x14748a[_0x1024f9],_0x2c0c6f=this[_0x40a2c0(0x33d)][this[_0x40a2c0(0x179)][_0x1024f9]];this['calculateListSubtotal'](_0x2c0c6f,_0x441221);}return _0xa5f6d0;}[_0x44a51f(0x411)](_0x990987,_0x4f9c9e){const _0x1058ba=_0x44a51f;_0x990987[_0x1058ba(0x369)]||={};let _0x204457=_0x990987['summary'];for(let _0x4d75e7 in this[_0x1058ba(0x46b)]){let _0x2f0a00=this['measuresMap'][_0x4d75e7][_0x1058ba(0x392)],_0x268240=_0x990987[_0x1058ba(0x180)][_0x4d75e7],_0x6ba4c=_0x4f9c9e[_0x1058ba(0x47c)](_0x1987d5=>this[_0x1058ba(0x33d)][_0x1987d5][_0x1058ba(0x180)][_0x4d75e7]);_0x268240[_0x1058ba(0x38a)](_0x6ba4c);let _0x285c73=_0x268240[_0x1058ba(0x365)]();for(let _0x1b5cdd of _0x2f0a00)_0x285c73[_0x1b5cdd]=_0x268240[_0x1058ba(0x415)](_0x1b5cdd);_0x204457[_0x4d75e7]=_0x285c73;}}[_0x44a51f(0x231)](_0x1ccdc2){const _0x4ece44=_0x44a51f;this['_calculateSubtotalImp'](this[_0x4ece44(0x32e)],_0x1ccdc2),this['_calculateSubtotalImp'](this[_0x4ece44(0x1b0)],_0x1ccdc2);let _0x39d749=this[_0x4ece44(0x33d)][this['rowNodeTree'][_0x4ece44(0x3ce)]()],_0x2132af=this[_0x4ece44(0x33d)][this['colNodeTree'][_0x4ece44(0x3ce)]()];this['rowDeep']+this[_0x4ece44(0x2d3)]===0x0&&this[_0x4ece44(0x33d)]['length']>0x0&&R(this['tuples'][0x0],_0x39d749,this['measuresMap']),R(_0x39d749,void 0x0,this[_0x4ece44(0x46b)]),R(_0x2132af,void 0x0,this[_0x4ece44(0x46b)]);}['getPathKeyWithFiledId'](_0x12091a,_0x46366b){const _0x199248=_0x44a51f;let _0x12d935=[];for(let _0x16f21b=0x0;_0x16f21b<_0x12091a[_0x199248(0x15c)];_0x16f21b++)_0x12d935[_0x199248(0x1d6)](''+_0x46366b[_0x16f21b]+a[_0x199248(0x3bb)]+_0x12091a[_0x16f21b]);return _0x12d935[_0x199248(0x34f)](a[_0x199248(0x419)]);}[_0x44a51f(0x47f)](_0xb4eda4,_0xe5038c,_0x381e3d){const _0x1c1d6d=_0x44a51f;if(!this[_0x1c1d6d(0x33d)][_0xb4eda4]){let _0x46dee6=this[_0x1c1d6d(0x1d1)](_0xe5038c,_0x381e3d);this['createTupleWithoutCheck'](_0xe5038c,_0xb4eda4,_0x46dee6);}}[_0x44a51f(0x41e)](_0x174753,_0x5476dc){const _0x44983e=_0x44a51f;this[_0x44983e(0x33d)][_0x174753]||this[_0x44983e(0x3ac)]([],_0x5476dc,_0x174753);}[_0x44a51f(0x3ac)](_0x5b3b15,_0x5d71da,_0x5605d1){const _0x8c1ecc=_0x44a51f;let _0x311a3b=_0x5d71da||_0x5b3b15[_0x8c1ecc(0x34f)](a[_0x8c1ecc(0x419)]);if(!this[_0x8c1ecc(0x179)][_0x311a3b]){let _0x1ca303={'path':_0x5b3b15,'indexes':[],'tuple':{},'types':[]};for(let _0xf08d4 of this[_0x8c1ecc(0x1c0)]){let _0x5a0ecd=new j();_0x1ca303['tuple'][_0xf08d4]=_0x5a0ecd;}if(_0x5605d1===void 0x0){let _0x31239c=this[_0x8c1ecc(0x33d)]['push'](_0x1ca303);this[_0x8c1ecc(0x179)][_0x311a3b]=_0x31239c-0x1;}else this[_0x8c1ecc(0x33d)][_0x5605d1]=_0x1ca303,this['tupleMap'][_0x311a3b]=_0x5605d1;}}['_calculateValueFilter'](){const _0x3247bb=_0x44a51f;let _0x483da2=this[_0x3247bb(0x222)],_0x2274f1=new Uint8Array(this[_0x3247bb(0x264)]);if(_0x2274f1['fill'](0x1),_0x483da2['length']===0x0)return _0x2274f1;let _0x3df18e=this[_0x3247bb(0x1ae)](this[_0x3247bb(0x1d9)]),_0x5b3fe2=this[_0x3247bb(0x1d5)]===0x0||this[_0x3247bb(0x2d3)]===0x0?_0x3df18e:this['_createValueFilterLevelPool'](this['colDimOrder']);for(let {fieldId:_0x52ffb2,filterInfo:_0x5d1969}of _0x483da2)this['_doValueFilter'](_0x52ffb2,_0x5d1969[_0x3247bb(0x12e)],_0x5d1969,_0x2274f1,_0x3df18e,_0x5b3fe2);return _0x2274f1;}[_0x44a51f(0x336)](_0x223a8d,_0x729e48,_0x53542a,_0xc86d41,_0x3f3f84,_0x594d4c){const _0x424d7a=_0x44a51f;let _0x33cf00=this[_0x424d7a(0x2f8)](_0x223a8d,_0x3f3f84,_0x594d4c);if(_0x33cf00){let {pool:_0x485eae,fieldIdList:_0xaf19d6}=_0x33cf00,_0x5c11e6=_0xaf19d6[_0x424d7a(0x2e9)](_0x223a8d);if(_0x5c11e6===-0x1)return;let _0x158f6d=this[_0x424d7a(0x1d5)]+this[_0x424d7a(0x2d3)],_0x5a40ff=[],_0x1a35a7=this[_0x424d7a(0x272)][_0x729e48]['subTotal'],_0x17a7ee=this[_0x424d7a(0x272)][_0x729e48]['dataFieldId'];for(let _0x1b7e4c=_0x158f6d;_0x1b7e4c>_0x5c11e6;_0x1b7e4c--)if(_0x485eae[_0x1b7e4c]){let _0xa2ca87=_0x485eae[_0x1b7e4c];for(let {p:_0x5d3ea5,v:_0x2fd722}of _0xa2ca87)(_0x158f6d!==_0x1b7e4c||_0xc86d41[_0x2fd722]!==0x0)&&Ne(_0x5a40ff,_0x1b7e4c===_0x158f6d?this[_0x424d7a(0x33d)][_0x2fd722]:void 0x0,_0x17a7ee,_0x1a35a7,_0x2fd722,_0x5d3ea5);}let _0x321735=_0x485eae[_0x5c11e6+0x1]??[],_0x509558=St(_0x53542a,_0x321735,_0x5a40ff,_0x1a35a7),_0x5c5d8b=new Set();for(let {v:_0x1cc8ae}of _0x321735){if(_0x5a40ff[_0x1cc8ae]===void 0x0)continue;let _0x5d6c2c=_0x5a40ff[_0x1cc8ae][_0x424d7a(0x180)]['getSubtotal'](_0x1a35a7);Pe(_0x5d6c2c)?_0x5c5d8b['add'](_0x1cc8ae):_0x509558(_0x5d6c2c)||_0x5c5d8b[_0x424d7a(0x207)](_0x1cc8ae);}let _0x3990c0=_0x5c11e6+0x1;if(_0x3990c0===_0x158f6d){for(let _0x45b534 of _0x5c5d8b)_0xc86d41[_0x45b534]=0x0;return;}for(;_0x485eae[_0x3990c0+0x1];){let _0x143d2d=new Set(),_0x5a6095=_0x485eae[_0x3990c0+0x1];for(let {p:_0x4ce2f9,v:_0x5e0b50}of _0x5a6095)_0x5c5d8b[_0x424d7a(0x22a)](_0x4ce2f9)&&(_0x143d2d['add'](_0x5e0b50),_0x3990c0+0x1===_0x158f6d&&(_0xc86d41[_0x5e0b50]=0x0));_0x3990c0++,_0x5c5d8b=_0x143d2d;}}}['_getValueFilterTree'](_0x126cfa,_0x12e97a,_0x4cfd8a){const _0x180dcd=_0x44a51f;if(this[_0x180dcd(0x1d5)]===0x0||this['colDeep']===0x0)return{'pool':_0x12e97a,'fieldIdList':this['rowTableIdList']};let _0x543df4=this[_0x180dcd(0x303)]['findIndex'](_0x54c031=>_0x54c031===_0x126cfa);if(_0x543df4>=0x0&&_0x543df4<this[_0x180dcd(0x1d5)])return{'pool':_0x12e97a,'fieldIdList':this[_0x180dcd(0x303)]};let _0x1c3ae6=this[_0x180dcd(0x2ef)][_0x180dcd(0x203)](_0x3e9334=>_0x3e9334===_0x126cfa);return _0x1c3ae6>=0x0&&_0x1c3ae6<this[_0x180dcd(0x2d3)]?{'pool':_0x4cfd8a,'fieldIdList':this[_0x180dcd(0x2ef)]}:null;}['_calculateSubtotalImp'](_0x232bea,_0x2882d3){const _0x18a323=_0x44a51f;let _0x51b6ff=this[_0x18a323(0x1d5)]+this[_0x18a323(0x2d3)];for(let _0x4b21eb=_0x51b6ff;_0x4b21eb>=0x0;_0x4b21eb--)if(_0x232bea[_0x4b21eb]){let _0x281dcf=_0x232bea[_0x4b21eb];for(let {p:_0x52ca71,v:_0x18a40c}of _0x281dcf){if(_0x18a40c<this[_0x18a323(0x264)]&&_0x2882d3[_0x18a40c]===0x0)continue;let _0xa1367f=this[_0x18a323(0x33d)][_0x18a40c];R(_0xa1367f,this[_0x18a323(0x33d)][_0x52ca71],this['measuresMap']);}}}},wt=class{constructor(){const _0x189301=_0x44a51f;A(this,_0x189301(0x33d),[]),A(this,_0x189301(0x179),{}),A(this,_0x189301(0x46b),{}),A(this,'dimensionIdList',[]),A(this,_0x189301(0x485),[]),A(this,_0x189301(0x1c0),[]),A(this,_0x189301(0x287),{}),A(this,_0x189301(0x1d5),0x0),A(this,_0x189301(0x2d3),0x0),A(this,_0x189301(0x435),void 0x0);}[_0x44a51f(0x466)](_0x4ff146,_0x41b3cb){const _0x18d172=_0x44a51f;this['_fieldsCollection']=_0x4ff146;let {valueQueryInfo:_0x168cea,rowQueryInfo:_0x5d7f76,colQueryInfo:_0x1c7bfd,filterQueryInfo:_0x53bcbe,hiddenQueryInfo:_0x2a6ef2=[]}=_0x41b3cb;for(let _0x2a0455 of _0x168cea){let _0x22ffd0=_0x2a0455[_0x18d172(0x384)],_0x4ee3ef=_0x4ff146['getFieldById'](_0x22ffd0);if(!_0x4ee3ef)continue;this[_0x18d172(0x46b)][_0x22ffd0]||(this['measureIdList'][_0x18d172(0x1d6)](_0x22ffd0),this[_0x18d172(0x46b)][_0x22ffd0]={'field':_0x4ee3ef,'subTotal':[]});let _0xec4a64=this[_0x18d172(0x46b)][_0x22ffd0],{subtotal:_0x151938}=_0x2a0455;_0xec4a64[_0x18d172(0x392)][_0x18d172(0x243)](_0x151938)||_0xec4a64['subTotal'][_0x18d172(0x1d6)](_0x151938);}let _0x243d33=_0x5d7f76['length']+_0x1c7bfd[_0x18d172(0x15c)],_0x4e280c=0x0;for(let _0xb496ba of[..._0x5d7f76,..._0x1c7bfd,..._0x53bcbe,..._0x2a6ef2]){let _0x6e6c33=_0x4ff146[_0x18d172(0x1ea)](_0xb496ba[_0x18d172(0x384)]);_0x6e6c33&&(this['dimensionMap'][_0xb496ba[_0x18d172(0x384)]]||(this['dimensionMap'][_0xb496ba[_0x18d172(0x384)]]={'field':_0x6e6c33}),_0x4e280c<_0x243d33?(this[_0x18d172(0x359)][_0x18d172(0x1d6)](_0xb496ba[_0x18d172(0x384)]),this[_0x18d172(0x485)][_0x18d172(0x1d6)](_0xb496ba['id'])):_0x4e280c<_0x243d33+_0x53bcbe[_0x18d172(0x15c)]&&_0xb496ba[_0x18d172(0x34b)]&&I(_0xb496ba[_0x18d172(0x34b)])&&(_0xb496ba[_0x18d172(0x34b)][_0x18d172(0x3c7)]=_0x6e6c33[_0x18d172(0x378)]['length']===_0xb496ba[_0x18d172(0x34b)][_0x18d172(0x25e)][_0x18d172(0x15c)]),_0x4e280c++);}this[_0x18d172(0x1d5)]=_0x5d7f76['length'],this[_0x18d172(0x2d3)]=_0x1c7bfd['length'];}['filter'](_0x5b6cbd){const _0x30c0d5=_0x44a51f;let {rowQueryInfo:_0xaf715e,colQueryInfo:_0x1668ee,filterQueryInfo:_0x187f0d,hiddenQueryInfo:_0xa87f5b=[]}=_0x5b6cbd,_0x5d796f=[],_0x236c78=!0x1,_0x12ef56=[..._0xaf715e,..._0x1668ee,..._0x187f0d,..._0xa87f5b][_0x30c0d5(0x1fb)](_0x1d6364=>_0x1d6364['conditionFilter']?[_0x1d6364,{..._0x1d6364,'filterInfo':_0x1d6364[_0x30c0d5(0x46d)],'conditionFilter':void 0x0}]:[_0x1d6364]);for(let {dataFieldId:_0x3fa465,filterInfo:_0x5490fa}of _0x12ef56){var _0x183e31;if(_0x5490fa===void 0x0)continue;let _0x4bca13=(_0x183e31=this[_0x30c0d5(0x287)][_0x3fa465])==null?void 0x0:_0x183e31[_0x30c0d5(0x3e5)];if(!_0x4bca13)throw TypeError(_0x30c0d5(0x244)+_0x3fa465);if(T(_0x5490fa)){if(!E(_0x5490fa))continue;let _0x3e0c17=this['_fieldsCollection'][_0x30c0d5(0x148)]['compileRecordFilter'](_0x5490fa);_0x236c78=!0x0;let _0x30e3a7=[];for(let _0xa9554d=0x0;_0xa9554d<_0x4bca13[_0x30c0d5(0x18e)]['length'];_0xa9554d++)_0x3e0c17(_0x4bca13['records'][_0xa9554d])&&_0x30e3a7[_0x30c0d5(0x1d6)](_0xa9554d);_0x5d796f[_0x30c0d5(0x1d6)](_0x30e3a7);}else{if(I(_0x5490fa)){_0x236c78=!0x0;let {list:_0x459506}=_0x5490fa,_0x14cbb7=[];for(let _0x40bc78 of _0x459506)_0x14cbb7[_0x30c0d5(0x1d6)](_0x4bca13[_0x30c0d5(0x2c3)](_0x40bc78));_0x5d796f[_0x30c0d5(0x1d6)](Ae(_0x14cbb7));}else{if(we(_0x5490fa)){if(_0x236c78=!0x0,x(_0x5490fa)){let _0x44db69=S(_0x5490fa),_0x997223=[];for(let _0x7bd6e=0x0;_0x7bd6e<_0x4bca13['records'][_0x30c0d5(0x15c)];_0x7bd6e++){let _0x899265=_0x4bca13[_0x30c0d5(0x18e)][_0x7bd6e];C(_0x899265)&&_0x44db69(_0x899265['v'])&&_0x997223[_0x30c0d5(0x1d6)](_0x7bd6e);}_0x5d796f[_0x30c0d5(0x1d6)](_0x997223);continue;}let {operator:_0xd07aa4,expected:_0x40a1e5}=_0x5490fa;if(_0xd07aa4>=0x1&&_0xd07aa4<=0xe){let _0x3ad849=se(_0x5490fa),_0x55efe5=[];for(let _0x336b91=0x0;_0x336b91<_0x4bca13[_0x30c0d5(0x18e)][_0x30c0d5(0x15c)];_0x336b91++){let _0x4c8483=_0x4bca13[_0x30c0d5(0x18e)][_0x336b91],_0x39c4c3=String(_0x4c8483??'');C(_0x4c8483)?_0x39c4c3=String(_0x4c8483['v']):w(_0x4c8483)&&(_0x39c4c3=_0x4c8483['error']),_0x3ad849(_0x39c4c3)&&_0x55efe5[_0x30c0d5(0x1d6)](_0x336b91);}_0x5d796f[_0x30c0d5(0x1d6)](_0x55efe5);continue;}if(_0x4bca13[_0x30c0d5(0x400)]()===0x2){let _0x776e1a=Me(_0x4bca13[_0x30c0d5(0x154)](),_0xd07aa4,_0x40a1e5);_0x5d796f[_0x30c0d5(0x1d6)](Ae(_0x776e1a));}}}}}return!_0x236c78&&_0x5d796f['length']===0x0?{'isAll':!0x0,'list':[]}:{'isAll':!0x1,'list':Ee(_0x5d796f)};}[_0x44a51f(0x46f)](_0x3be257,_0x552669){const _0x35cdc5=_0x44a51f;this['prepare'](_0x3be257,_0x552669);let {isAll:_0x4ff2e7,list:_0x20f1b6}=this['filter'](_0x552669);this[_0x35cdc5(0x1fa)](_0x4ff2e7,_0x20f1b6,_0x3be257[_0x35cdc5(0x12d)]());}['reset'](){const _0x45830e=_0x44a51f;this[_0x45830e(0x33d)]=[],this[_0x45830e(0x46b)]={},this[_0x45830e(0x287)]={},this[_0x45830e(0x179)]={},this['dimensionIdList']=[],this['dimensionTableIdList']=[],this[_0x45830e(0x1c0)]=[];}[_0x44a51f(0x1fa)](_0x557834,_0x426b59,_0x2408ab=0x0){const _0x13e73c=_0x44a51f;let _0x29cc4a=this[_0x13e73c(0x485)];if(_0x557834)for(let _0x3e7c6d=0x0;_0x3e7c6d<_0x2408ab;_0x3e7c6d++){let _0x1a798a=[],_0x5df726=[],_0x3d0097=[],_0x8319b9=0x0;for(let _0xc479f8 of this[_0x13e73c(0x359)]){let _0x589d3d=this[_0x13e73c(0x287)][_0xc479f8][_0x13e73c(0x3e5)],_0x327070=_0x589d3d['getTupleKey'](_0x3e7c6d);_0x3d0097[_0x13e73c(0x1d6)](_0x29cc4a[_0x8319b9]+a[_0x13e73c(0x3bb)]+_0x327070),_0x1a798a[_0x13e73c(0x1d6)](_0x327070),_0x5df726[_0x13e73c(0x1d6)](_0x589d3d[_0x13e73c(0x226)](_0x327070)),_0x8319b9++;}this[_0x13e73c(0x3a8)](_0x1a798a,_0x3d0097,_0x3e7c6d,_0x5df726);}for(let _0x362f92 of _0x426b59){let _0x23ceb7=[],_0x34b37c=[],_0x3f52fd=[],_0x15cee6=0x0;for(let _0xbaeee5 of this[_0x13e73c(0x359)]){let _0x4eb8d0=this[_0x13e73c(0x287)][_0xbaeee5][_0x13e73c(0x3e5)],_0x4d7419=_0x4eb8d0[_0x13e73c(0x469)](_0x362f92);_0x3f52fd[_0x13e73c(0x1d6)](_0x29cc4a[_0x15cee6]+a[_0x13e73c(0x3bb)]+_0x4d7419),_0x23ceb7[_0x13e73c(0x1d6)](_0x4d7419),_0x34b37c[_0x13e73c(0x1d6)](_0x4eb8d0['getTupleType'](_0x4d7419)),_0x15cee6++;}this[_0x13e73c(0x3a8)](_0x23ceb7,_0x3f52fd,_0x362f92,_0x34b37c);}}[_0x44a51f(0x3a8)](_0x328ceb,_0x3ae1c8,_0x21b570,_0x144136){const _0x244c71=_0x44a51f;let _0x59edb4=_0x3ae1c8[_0x244c71(0x34f)](a[_0x244c71(0x419)]);this[_0x244c71(0x179)][_0x59edb4]===void 0x0&&this[_0x244c71(0x3ac)](_0x328ceb,_0x59edb4,void 0x0,_0x144136);let _0x44c054=this[_0x244c71(0x33d)][this[_0x244c71(0x179)][_0x59edb4]];_0x44c054[_0x244c71(0x23e)][_0x244c71(0x1d6)](_0x21b570);for(let _0x1ccb66 of this[_0x244c71(0x1c0)]){let _0x326eb8=_0x44c054[_0x244c71(0x180)][_0x1ccb66],_0x597a42=this[_0x244c71(0x46b)][_0x1ccb66]['field'][_0x244c71(0x257)](_0x21b570);_0x326eb8[_0x244c71(0x3cb)](_0x597a42);}}[_0x44a51f(0x3ac)](_0x5c7718,_0x2b0a33,_0x3a8d71,_0x5f1095=[]){const _0x12b16a=_0x44a51f;let _0x19a501=_0x2b0a33||_0x5c7718[_0x12b16a(0x34f)](a[_0x12b16a(0x419)]);if(!this[_0x12b16a(0x179)][_0x19a501]){let _0x4148bb={'path':_0x5c7718,'types':_0x5f1095,'indexes':[],'tuple':{}};for(let _0x10f635 of this['measureIdList']){let _0x430c19=new j();_0x4148bb[_0x12b16a(0x180)][_0x10f635]=_0x430c19;}if(_0x3a8d71===void 0x0){let _0x3104da=this['tuples']['push'](_0x4148bb);this[_0x12b16a(0x179)][_0x19a501]=_0x3104da-0x1;}else this[_0x12b16a(0x33d)][_0x3a8d71]=_0x4148bb,this[_0x12b16a(0x179)][_0x19a501]=_0x3a8d71;}}};const Tt=_0x166176=>_0x166176['baseFieldId']!==void 0x0,Et=_0x2ee16f=>{const _0x2f620f=_0x44a51f;if(Tt(_0x2ee16f)){let {type:_0x38c8f2,baseFieldId:_0x2b1f0e,sortItems:_0x467eab,sortLocale:_0x4e5b0c}=_0x2ee16f;return{'type':_0x38c8f2,'baseFieldId':_0x2b1f0e,'sortItems':_0x467eab[_0x2f620f(0x309)](),..._0x4e5b0c===void 0x0?{}:{'sortLocale':_0x4e5b0c}};}return _0x2f620f(0x13b)in _0x2ee16f?{..._0x2ee16f,'customOrder':_0x2ee16f[_0x2f620f(0x13b)][_0x2f620f(0x309)]()}:{..._0x2ee16f};},Y=_0xe70e4b=>({..._0xe70e4b}),Dt=()=>({'type':0x1,'baseFieldId':'','baseItem':''});var Ot=class{constructor(_0x55e756,_0x5a6225,_0x3a95fa='',_0x305763){const _0x31c234=_0x44a51f;A(this,_0x31c234(0x384),void 0x0),A(this,'id',void 0x0),A(this,'sourceName',void 0x0),A(this,'displayName',void 0x0),A(this,_0x31c234(0x2e0),void 0x0),A(this,'lossLessProperty',void 0x0),this[_0x31c234(0x384)]=_0x55e756,this['id']=_0x5a6225,this[_0x31c234(0x238)]=_0x3a95fa,this[_0x31c234(0x16f)]=_0x305763;}[_0x44a51f(0x44e)](){return this['id'];}[_0x44a51f(0x318)](){const _0x3b2f6f=_0x44a51f;return this[_0x3b2f6f(0x16f)];}[_0x44a51f(0x15a)](_0x46064a){const _0x41fd0b=_0x44a51f;this[_0x41fd0b(0x16f)]=_0x46064a;}[_0x44a51f(0x2da)](_0xfce2fa){const _0x43d3fa=_0x44a51f;this[_0x43d3fa(0x384)]=_0xfce2fa;}[_0x44a51f(0x21b)](){const _0x41caa8=_0x44a51f;return this[_0x41caa8(0x384)];}['getFormat'](){const _0x5cdb0c=_0x44a51f;return this[_0x5cdb0c(0x2e0)];}[_0x44a51f(0x1b1)](_0x3f21cb){const _0x2fc0eb=_0x44a51f;this[_0x2fc0eb(0x2e0)]=_0x3f21cb;}[_0x44a51f(0x349)](_0x68e197){this['displayName']=_0x68e197;}[_0x44a51f(0x1f9)](){const _0x237779=_0x44a51f;return this[_0x237779(0x238)];}},X=class extends Ot{constructor(_0x4748c9,_0x477f18,_0x36c918='',_0x4eb2f2){const _0x5851e1=_0x44a51f;super(_0x4748c9,_0x477f18,_0x36c918,_0x4eb2f2),A(this,_0x5851e1(0x2b1),void 0x0),A(this,_0x5851e1(0x44b),Dt());}[_0x44a51f(0x484)](_0x3b5e73){const _0x2ab6b8=_0x44a51f;this[_0x2ab6b8(0x2b1)]=_0x3b5e73;}['getSubtotal'](){const _0x2ad7fb=_0x44a51f;return this[_0x2ad7fb(0x2b1)];}['setShowDataAs'](_0x33d32f){const _0x75c46f=_0x44a51f;this[_0x75c46f(0x44b)]=Y(_0x33d32f);}['getShowDataAs'](){const _0x3ec9f9=_0x44a51f;return Y(this[_0x3ec9f9(0x44b)]);}[_0x44a51f(0x39a)](){const _0x339964=_0x44a51f;return{'id':this['id'],'dataFieldId':this['dataFieldId'],'displayName':this[_0x339964(0x238)],'subtotal':this[_0x339964(0x2b1)],'showDataAs':Y(this[_0x339964(0x44b)])};}['toJSON'](){const _0x2f0160=_0x44a51f;return{'id':this['id'],'dataFieldId':this[_0x2f0160(0x384)],'displayName':this['displayName'],'sourceName':this[_0x2f0160(0x16f)],'subtotal':this['subtotal'],'format':this['format'],'showDataAs':Y(this[_0x2f0160(0x44b)])};}[_0x44a51f(0x407)](_0x5c27fd){const _0x2a69cf=_0x44a51f;this['id']=_0x5c27fd['id'],this[_0x2a69cf(0x384)]=_0x5c27fd[_0x2a69cf(0x384)],this['displayName']=_0x5c27fd[_0x2a69cf(0x238)],this['sourceName']=_0x5c27fd[_0x2a69cf(0x16f)],this[_0x2a69cf(0x2e0)]=_0x5c27fd[_0x2a69cf(0x2e0)],this[_0x2a69cf(0x2b1)]=_0x5c27fd[_0x2a69cf(0x2b1)];let _0x1f9189=_0x5c27fd[_0x2a69cf(0x44b)];this[_0x2a69cf(0x44b)]=(_0x1f9189==null?void 0x0:_0x1f9189[_0x2a69cf(0x477)])===void 0x0?Dt():Y(_0x1f9189);}},Z=class extends Ot{constructor(_0x3f9fae,_0x1c3806,_0x1b245d='',_0x1ffc96){const _0x24dc9c=_0x44a51f;super(_0x3f9fae,_0x1c3806,_0x1b245d,_0x1ffc96),A(this,_0x24dc9c(0x478),void 0x0),A(this,'filterInfo',void 0x0),A(this,'conditionFilter',void 0x0);}['setSortInfo'](_0x1615a5){const _0x5e5710=_0x44a51f;this[_0x5e5710(0x478)]=_0x1615a5?Et(_0x1615a5):void 0x0;}['getSortInfo'](){const _0x274523=_0x44a51f;return this[_0x274523(0x478)]?Et(this[_0x274523(0x478)]):void 0x0;}['setFilterInfo'](_0x2a584e){this['filterInfo']=T(_0x2a584e)||x(_0x2a584e)?D(_0x2a584e):_0x2a584e;}[_0x44a51f(0x48b)](){const _0x109d60=_0x44a51f;return T(this['filterInfo'])||x(this[_0x109d60(0x34b)])?D(this[_0x109d60(0x34b)]):this[_0x109d60(0x34b)];}['getConditionFilterInfo'](){const _0xa02564=_0x44a51f;var _0x1ca69b;return D(this[_0xa02564(0x46d)]??(((_0x1ca69b=this['filterInfo'])==null?void 0x0:_0x1ca69b[_0xa02564(0x477)])===0x1?this[_0xa02564(0x34b)]:void 0x0));}[_0x44a51f(0x3b3)](_0x4a41a7){const _0x5a73aa=_0x44a51f;if(_0x4a41a7!==void 0x0&&_0x4a41a7[_0x5a73aa(0x477)]!==0x1&&(!T(_0x4a41a7)||!_0x4a41a7['dateRange']||_0x4a41a7[_0x5a73aa(0x2a2)]!==void 0x0))throw TypeError(_0x5a73aa(0x44f));this[_0x5a73aa(0x46d)]=D(_0x4a41a7);}[_0x44a51f(0x39a)](){const _0x3ad8ce=_0x44a51f;return{'id':this['id'],'dataFieldId':this['dataFieldId'],'displayName':this['displayName'],'sortInfo':this[_0x3ad8ce(0x29a)](),'filterInfo':this[_0x3ad8ce(0x34b)]&&(T(this[_0x3ad8ce(0x34b)])||x(this[_0x3ad8ce(0x34b)])?D(this[_0x3ad8ce(0x34b)]):Object[_0x3ad8ce(0x155)]({},this[_0x3ad8ce(0x34b)])),...this['conditionFilter']?{'conditionFilter':this[_0x3ad8ce(0x25c)]()}:{}};}[_0x44a51f(0x171)](){const _0x531f90=_0x44a51f;return{'id':this['id'],'dataFieldId':this[_0x531f90(0x384)],'displayName':this[_0x531f90(0x238)],'format':this[_0x531f90(0x2e0)],'sourceName':this['sourceName'],'sortInfo':this['sortInfo']?Et(this[_0x531f90(0x478)]):void 0x0,'filterInfo':T(this[_0x531f90(0x34b)])||x(this[_0x531f90(0x34b)])?D(this[_0x531f90(0x34b)]):this['filterInfo']||void 0x0,...this['conditionFilter']?{'conditionFilter':this['getConditionFilterInfo']()}:{}};}[_0x44a51f(0x407)](_0x3d60c9){const _0xa81e8d=_0x44a51f;var _0x24c3ae;if(_0x3d60c9[_0xa81e8d(0x46d)]&&(((_0x24c3ae=_0x3d60c9[_0xa81e8d(0x34b)])==null?void 0x0:_0x24c3ae[_0xa81e8d(0x477)])===0x1||T(_0x3d60c9['filterInfo'])&&_0x3d60c9[_0xa81e8d(0x34b)]['dateRange']!==void 0x0))throw TypeError(_0xa81e8d(0x443));this['id']=_0x3d60c9['id'],this[_0xa81e8d(0x384)]=_0x3d60c9[_0xa81e8d(0x384)],this[_0xa81e8d(0x238)]=_0x3d60c9[_0xa81e8d(0x238)],this[_0xa81e8d(0x16f)]=_0x3d60c9[_0xa81e8d(0x16f)],this[_0xa81e8d(0x2e0)]=_0x3d60c9['format'],_0x3d60c9[_0xa81e8d(0x478)]&&this[_0xa81e8d(0x185)](_0x3d60c9[_0xa81e8d(0x478)]),_0x3d60c9[_0xa81e8d(0x34b)]&&(this[_0xa81e8d(0x34b)]=T(_0x3d60c9['filterInfo'])||x(_0x3d60c9[_0xa81e8d(0x34b)])?D(_0x3d60c9[_0xa81e8d(0x34b)]):_0x3d60c9['filterInfo']),this['setConditionFilterInfo'](_0x3d60c9[_0xa81e8d(0x46d)]);}};function kt(_0x31ef72,_0x33347c=!0x0){const _0x270c18=_0x44a51f;let _0x485162=new X(_0x31ef72[_0x270c18(0x384)],_0x31ef72['id'],_0x31ef72[_0x270c18(0x1f9)](),_0x31ef72[_0x270c18(0x16f)]);if(F(_0x31ef72[_0x270c18(0x1f9)](),0x9),_0x485162[_0x270c18(0x2b1)]=0x9,_0x31ef72[_0x270c18(0x471)]){let _0xa966cc=_0x31ef72['lossLessProperty'];_0xa966cc[_0x270c18(0x44b)]&&(_0x485162['showDataAs']=_0xa966cc[_0x270c18(0x44b)]),_0xa966cc[_0x270c18(0x2b1)]!==void 0x0&&(_0x485162[_0x270c18(0x2b1)]=_0xa966cc[_0x270c18(0x2b1)]);}return _0x33347c&&(_0x485162[_0x270c18(0x471)]={'sortInfo':_0x31ef72['getSortInfo'](),'filterInfo':_0x31ef72[_0x270c18(0x48b)](),..._0x31ef72[_0x270c18(0x46d)]?{'conditionFilter':_0x31ef72[_0x270c18(0x25c)]()}:{}}),_0x485162;}function At(_0x1ffbb8,_0x59cce8=!0x0){const _0x42e37d=_0x44a51f;let _0x4f5055=new Z(_0x1ffbb8[_0x42e37d(0x384)],_0x1ffbb8['id'],_0x1ffbb8[_0x42e37d(0x1f9)](),_0x1ffbb8[_0x42e37d(0x16f)]);if(_0x4f5055['setDisplayName'](_0x1ffbb8[_0x42e37d(0x1f9)]()),_0x1ffbb8['lossLessProperty']){let _0x57a292=_0x1ffbb8[_0x42e37d(0x471)];_0x57a292['sortInfo']&&(_0x4f5055[_0x42e37d(0x478)]=_0x57a292[_0x42e37d(0x478)]),_0x57a292[_0x42e37d(0x34b)]&&(_0x4f5055[_0x42e37d(0x34b)]=T(_0x57a292[_0x42e37d(0x34b)])?D(_0x57a292[_0x42e37d(0x34b)]):_0x57a292[_0x42e37d(0x34b)]),_0x4f5055[_0x42e37d(0x3b3)](_0x57a292[_0x42e37d(0x46d)]);}return _0x59cce8&&(_0x4f5055[_0x42e37d(0x471)]={'subtotal':_0x1ffbb8[_0x42e37d(0x415)](),'showDataAs':_0x1ffbb8[_0x42e37d(0x1b6)]()}),_0x4f5055;}function jt(_0x2ed2a6){const _0x500269=_0x44a51f;let {dataFieldId:_0x2d4eb5,id:_0x2d74f9,sourceName:_0x4de486}=_0x2ed2a6,_0x212614=new X(_0x2d4eb5,_0x2d74f9,'',_0x4de486);return _0x212614[_0x500269(0x407)](_0x2ed2a6),_0x212614;}function Mt(_0x2d14ca){const _0x42f115=_0x44a51f;let {dataFieldId:_0x52efae,id:_0x2dcd31,sourceName:_0x3529b1}=_0x2d14ca,_0x4ddcd1=new Z(_0x52efae,_0x2dcd31,'',_0x3529b1);return _0x4ddcd1[_0x42f115(0x407)](_0x2d14ca),_0x4ddcd1;}var Nt=class e{constructor(){const _0x245f9c=_0x44a51f;A(this,_0x245f9c(0x2b6),[]),A(this,'columnFields',[]),A(this,'valueFields',[]),A(this,'filterFields',[]),A(this,'hiddenFields',[]),A(this,_0x245f9c(0x249),Object[_0x245f9c(0x347)](null)),A(this,_0x245f9c(0x2c0),Object[_0x245f9c(0x347)](null)),A(this,'valueIndex',-0x1),A(this,_0x245f9c(0x401),-0x1),A(this,'layout',0x3),A(this,_0x245f9c(0x277),Object[_0x245f9c(0x347)](null)),A(this,'options',void 0x0),A(this,_0x245f9c(0x438),void 0x0),A(this,_0x245f9c(0x30c),!0x0),A(this,_0x245f9c(0x1cc),[]),this['options']={'pageWrap':0x1,'pageOverThenDown':!0x1};}[_0x44a51f(0x314)](){const _0x40c3bb=_0x44a51f;this[_0x40c3bb(0x438)]=[];}[_0x44a51f(0x199)](){const _0x495c65=_0x44a51f;let _0x5da13c=this[_0x495c65(0x438)];return delete this[_0x495c65(0x438)],_0x5da13c;}[_0x44a51f(0x383)](_0x552e7a){this['_isDirty']=_0x552e7a;}['getDirty'](){const _0x5d1af7=_0x44a51f;return this[_0x5d1af7(0x30c)];}[_0x44a51f(0x356)](_0x49f19e,_0x180ddf=!0x1){const _0x2f98ac=_0x44a51f;if(_0x49f19e['allowMultipleFilters']!==void 0x0&&typeof _0x49f19e[_0x2f98ac(0x1d7)]!=_0x2f98ac(0x43c))throw TypeError('Invalid\x20multiple-filter\x20mode.');if(_0x49f19e[_0x2f98ac(0x3c5)]!==void 0x0&&_0x49f19e[_0x2f98ac(0x3c5)]!==_0x2f98ac(0x2a1)&&_0x49f19e[_0x2f98ac(0x3c5)]!=='excel-like')throw TypeError('Invalid\x20pivot\x20date\x20grouping\x20mode.');!_0x180ddf&&_0x49f19e['allowMultipleFilters']===!0x1&&fe(this[_0x2f98ac(0x171)]())&&this[_0x2f98ac(0x37f)]();let _0x3afacf={...this['options']},_0x472403=_0x180ddf?{..._0x49f19e}:{...this['options'],..._0x49f19e},_0x241fd0=Object[_0x2f98ac(0x3cf)](_0x472403);if(!(_0x241fd0['length']===Object[_0x2f98ac(0x3cf)](_0x3afacf)[_0x2f98ac(0x15c)]&&_0x241fd0[_0x2f98ac(0x3ef)](_0x373daf=>_0x3afacf[_0x373daf]===_0x472403[_0x373daf]))&&(this['options']={..._0x472403},this[_0x2f98ac(0x438)])){let _0xddffab={'type':0x8,'oldOptions':_0x3afacf,'newOptions':_0x472403};this['_changeStack'][_0x2f98ac(0x1d6)](_0xddffab);}}[_0x44a51f(0x2ee)](){const _0x23a2cf=_0x44a51f;return{...this[_0x23a2cf(0x351)]};}[_0x44a51f(0x190)](_0x3a62c2){const _0x5d3cc6=_0x44a51f;let _0x1e7e0e=this[_0x5d3cc6(0x191)];if(_0x1e7e0e!==_0x3a62c2&&(this[_0x5d3cc6(0x191)]=_0x3a62c2,this['_changeStack'])){let _0x1c24eb={'type':0xd,'oldLayout':_0x1e7e0e,'newLayout':_0x3a62c2};this[_0x5d3cc6(0x438)][_0x5d3cc6(0x1d6)](_0x1c24eb);}}[_0x44a51f(0x2d5)](){const _0x29b230=_0x44a51f;return this[_0x29b230(0x191)];}['setCollapse'](_0xb89927,_0x22e832,_0x54b55e,_0x49a054){const _0xe319f4=_0x44a51f;let _0x2d6f77=this[_0xe319f4(0x277)][_0xb89927];if(_0x54b55e!==void 0x0){let _0x3de4e4=_0x2d6f77===!0x0?Object['fromEntries']((_0x49a054??[])['map'](_0xced89a=>[_0xced89a,!0x0])):_0x2d6f77,_0x5a048f=Object[_0xe319f4(0x155)](Object[_0xe319f4(0x347)](null),typeof _0x3de4e4==_0xe319f4(0x3e4)?_0x3de4e4:void 0x0);_0x5a048f[_0x54b55e]=_0x22e832===!0x0,this[_0xe319f4(0x277)][_0xb89927]=_0x5a048f;}else _0x22e832===void 0x0?delete this['collapseInfo'][_0xb89927]:this[_0xe319f4(0x277)][_0xb89927]=typeof _0x22e832==_0xe319f4(0x3e4)?Object['assign'](Object[_0xe319f4(0x347)](null),_0x22e832):_0x22e832;if(this[_0xe319f4(0x438)]){let _0x5ec19d=this[_0xe319f4(0x277)][_0xb89927],_0x3af061={'type':0xa,'fieldId':_0xb89927,'collapse':typeof _0x5ec19d==_0xe319f4(0x3e4)?{..._0x5ec19d}:_0x5ec19d,'previous':{'collapse':typeof _0x2d6f77=='object'?{..._0x2d6f77}:_0x2d6f77}};this[_0xe319f4(0x438)][_0xe319f4(0x1d6)](_0x3af061);}}['setLabelFilterInfo'](_0x39f0b5,_0x325686,_0x107078){const _0x1919ed=_0x44a51f;let _0x5c670c=this[_0x1919ed(0x249)][_0x39f0b5];if(!_0x5c670c)return;if(_0x325686===void 0x0){if(_0x107078!==void 0x0){this[_0x1919ed(0x324)](_0x5c670c[_0x1919ed(0x384)],void 0x0,_0x107078);return;}this['setFieldFilterState'](_0x39f0b5,void 0x0);return;}let _0xd93425=T(_0x325686)||x(_0x325686)?D(_0x325686):_0x325686,_0x4727dd=_0x5c670c[_0x1919ed(0x48b)](),_0x380e02=_0x107078??(_0x325686[_0x1919ed(0x477)]===0x1||T(_0x325686)&&_0x325686[_0x1919ed(0x2cf)]!==void 0x0?_0x1919ed(0x472):_0x1919ed(0x2df));if((T(_0x325686)?E({'type':0x4,..._0x380e02===_0x1919ed(0x2df)?{'selection':_0x325686[_0x1919ed(0x2a2)]}:{'dateRange':_0x325686[_0x1919ed(0x2cf)]}}):E(_0x325686))&&this[_0x1919ed(0x351)][_0x1919ed(0x1d7)]!==!0x0){this[_0x1919ed(0x1f8)](_0x5c670c['dataFieldId'],_0x39f0b5),T(_0xd93425)&&(_0xd93425={'type':0x4,..._0x380e02==='member'?{'selection':_0xd93425[_0x1919ed(0x2a2)]}:{'dateRange':_0xd93425['dateRange']}}),this[_0x1919ed(0x3af)](_0x39f0b5,_0xd93425);return;}this[_0x1919ed(0x324)](_0x5c670c[_0x1919ed(0x384)],_0x39f0b5,_0x380e02);let _0x2c760f=_0x5c670c[_0x1919ed(0x25c)]();if(T(_0xd93425)){if(_0x380e02===_0x1919ed(0x472)){if(_0x2c760f=void 0x0,(_0x4727dd==null?void 0x0:_0x4727dd[_0x1919ed(0x477)])===0x3&&_0xd93425['selection']===void 0x0&&_0xd93425['dateRange']){this[_0x1919ed(0x3af)](_0x39f0b5,_0x4727dd,{'type':0x4,'dateRange':_0xd93425[_0x1919ed(0x2cf)]});return;}T(_0x4727dd)&&_0xd93425[_0x1919ed(0x2a2)]===void 0x0&&(_0xd93425={..._0xd93425,..._0x4727dd[_0x1919ed(0x2a2)]?{'selection':_0x4727dd['selection']}:{}});}else T(_0x4727dd)&&_0x4727dd['dateRange']&&(_0xd93425={..._0xd93425,'dateRange':_0x4727dd['dateRange']});}else _0xd93425['type']===0x3&&T(_0x4727dd)&&_0x4727dd[_0x1919ed(0x2cf)]&&(_0x2c760f={'type':0x4,'dateRange':_0x4727dd['dateRange']});if(_0xd93425[_0x1919ed(0x477)]===0x1&&_0x4727dd&&_0x4727dd['type']!==0x1){let _0x50d31a=D(_0x4727dd);T(_0x50d31a)&&delete _0x50d31a[_0x1919ed(0x2cf)],this[_0x1919ed(0x3af)](_0x39f0b5,_0x50d31a,_0xd93425);}else this['setFieldFilterState'](_0x39f0b5,_0xd93425,_0xd93425['type']===0x1?void 0x0:_0x2c760f);}[_0x44a51f(0x3af)](_0x4eafbb,_0x1520bb,_0x29b703){const _0x5d7530=_0x44a51f;if(this[_0x5d7530(0x249)][_0x4eafbb]){if(_0x29b703&&((_0x1520bb==null?void 0x0:_0x1520bb[_0x5d7530(0x477)])===0x1||T(_0x1520bb)&&_0x1520bb[_0x5d7530(0x2cf)]!==void 0x0))throw TypeError(_0x5d7530(0x2ec));let _0xd30659=D(_0x29b703);if(_0xd30659&&_0xd30659['type']!==0x1&&(!T(_0xd30659)||!_0xd30659[_0x5d7530(0x2cf)]||_0xd30659['selection']!==void 0x0))throw TypeError('Invalid\x20pivot\x20condition\x20filter.');let _0x421964=this[_0x5d7530(0x249)][_0x4eafbb][_0x5d7530(0x46d)],_0x249bb1=this[_0x5d7530(0x249)][_0x4eafbb][_0x5d7530(0x48b)](),_0x2d179c=_0x249bb1===void 0x0||T(_0x249bb1)||x(_0x249bb1)?_0x249bb1:{..._0x249bb1};if(this[_0x5d7530(0x249)][_0x4eafbb][_0x5d7530(0x48d)](_0x1520bb),this['dimension'][_0x4eafbb][_0x5d7530(0x3b3)](_0xd30659),this['_changeStack']){let _0x45f53d={'type':0x4,'fieldId':_0x4eafbb,'oldFilterInfo':_0x2d179c,'newFilterInfo':T(_0x1520bb)||x(_0x1520bb)?D(_0x1520bb):_0x1520bb,..._0x421964||_0x29b703?{'oldConditionFilter':D(_0x421964)??null,'newConditionFilter':D(_0x29b703)??null}:{}};this['_changeStack'][_0x5d7530(0x1d6)](_0x45f53d);}this[_0x5d7530(0x383)](!0x0);}}['setValueFilterInfo'](_0x3bca23,_0xdae9d1,_0x38fc98){const _0x5e9d9b=_0x44a51f;this[_0x5e9d9b(0x42f)](_0x3bca23,_0xdae9d1,_0x38fc98,!0x0);}[_0x44a51f(0x205)](_0x2feb52,_0x3a1f90,_0x589236){this['_setValueFilterState'](_0x2feb52,_0x3a1f90,_0x589236,!0x1);}['_setValueFilterState'](_0x41ac21,_0x1d4b4a,_0x1438af,_0x16c38e){const _0x41bc3d=_0x44a51f;let _0x308afb=this[_0x41bc3d(0x1cc)][_0x41bc3d(0x203)](_0x4f1ed4=>_0x4f1ed4['fieldId']===_0x41ac21);if(_0x1d4b4a===void 0x0&&_0x308afb===-0x1)return;let {area:_0x1cf35c}=this['getFieldPositionInfoById'](_0x41ac21);if(_0x1d4b4a!==void 0x0&&(_0x1cf35c===void 0x0||!P(_0x1cf35c)||!this['measure'][_0x1d4b4a['valueFieldId']]||_0x1d4b4a['type']!==0x2||!ce(_0x1d4b4a[_0x41bc3d(0x1df)]))){console[_0x41bc3d(0x2fa)](_0x41bc3d(0x2eb));return;}if(_0x16c38e&&_0x1d4b4a&&this[_0x41bc3d(0x351)]['allowMultipleFilters']!==!0x0){let _0xcb38f0=this[_0x41bc3d(0x249)][_0x41ac21];this[_0x41bc3d(0x1f8)](_0xcb38f0[_0x41bc3d(0x384)],_0x41ac21,!0x0),(_0xcb38f0['filterInfo']||_0xcb38f0[_0x41bc3d(0x46d)])&&this[_0x41bc3d(0x3af)](_0x41ac21,void 0x0),_0x308afb=this['_valueFilterInfo']['findIndex'](_0x1e8f82=>_0x1e8f82[_0x41bc3d(0x368)]===_0x41ac21);}else _0x16c38e&&_0x1d4b4a&&(this['_clearSourceFilterCategory'](this[_0x41bc3d(0x249)][_0x41ac21]['dataFieldId'],_0x41ac21,_0x41bc3d(0x1d0)),_0x308afb=this[_0x41bc3d(0x1cc)][_0x41bc3d(0x203)](_0x52618d=>_0x52618d[_0x41bc3d(0x368)]===_0x41ac21));let _0x6cbdae=_0x308afb===-0x1?void 0x0:this[_0x41bc3d(0x1cc)][_0x308afb][_0x41bc3d(0x34b)];_0x308afb!==-0x1&&this[_0x41bc3d(0x1cc)]['splice'](_0x308afb,0x1);let _0x316f8d=-0x1;if(_0x1d4b4a&&(_0x316f8d=!_0x16c38e&&_0x1438af!==void 0x0&&_0x1438af>=0x0?Math['min'](_0x1438af,this['_valueFilterInfo'][_0x41bc3d(0x15c)]):_0x308afb===-0x1?Math[_0x41bc3d(0x278)](Math[_0x41bc3d(0x274)](_0x1438af??this['_valueFilterInfo']['length'],0x0),this['_valueFilterInfo'][_0x41bc3d(0x15c)]):_0x308afb,this[_0x41bc3d(0x1cc)][_0x41bc3d(0x259)](_0x316f8d,0x0,{'fieldId':_0x41ac21,'filterInfo':Q(_0x1d4b4a)})),this[_0x41bc3d(0x438)]){let _0x3e473a={'type':0xc,'fieldId':_0x41ac21,'oldFilterInfo':Q(_0x6cbdae),'filterInfo':Q(_0x1d4b4a),'oldIndex':_0x308afb,'newIndex':_0x316f8d};this[_0x41bc3d(0x438)][_0x41bc3d(0x1d6)](_0x3e473a);}}[_0x44a51f(0x224)](_0xf45749){const _0x9c8af5=_0x44a51f;let _0x398b51=this[_0x9c8af5(0x1cc)][_0x9c8af5(0x38e)](_0x5b2940=>_0x5b2940[_0x9c8af5(0x368)]===_0xf45749);return Q(_0x398b51==null?void 0x0:_0x398b51[_0x9c8af5(0x34b)]);}[_0x44a51f(0x25c)](_0x4a864){const _0x3010d1=_0x44a51f;var _0x445c16;return(_0x445c16=this[_0x3010d1(0x249)][_0x4a864])==null?void 0x0:_0x445c16[_0x3010d1(0x25c)]();}[_0x44a51f(0x14e)](_0x44073b){const _0x14eaf1=_0x44a51f;let _0x53125e=this['dimension'][_0x44073b];_0x53125e&&(this[_0x14eaf1(0x1f8)](_0x53125e[_0x14eaf1(0x384)],_0x44073b),this[_0x14eaf1(0x3af)](_0x44073b,void 0x0));}['clearFilters'](){const _0x1c9f0e=_0x44a51f;for(let _0x52aed3 of Object[_0x1c9f0e(0x2f4)](this['dimension']))(_0x52aed3['filterInfo']||_0x52aed3[_0x1c9f0e(0x46d)])&&this['setFieldFilterState'](_0x52aed3['id'],void 0x0);for(let _0x398476 of this[_0x1c9f0e(0x1cc)][_0x1c9f0e(0x11e)]())this[_0x1c9f0e(0x2a7)](_0x398476[_0x1c9f0e(0x368)],void 0x0);}[_0x44a51f(0x1f8)](_0x23e163,_0xcc07aa,_0x1cceae=!0x1){const _0x3c8096=_0x44a51f;for(let _0xcbe0a0 of Object[_0x3c8096(0x2f4)](this[_0x3c8096(0x249)]))_0xcbe0a0[_0x3c8096(0x384)]===_0x23e163&&(_0xcbe0a0['id']!==_0xcc07aa&&(_0xcbe0a0['filterInfo']||_0xcbe0a0[_0x3c8096(0x46d)])&&this['setFieldFilterState'](_0xcbe0a0['id'],void 0x0),_0x1cceae&&_0xcbe0a0['id']===_0xcc07aa||this[_0x3c8096(0x2a7)](_0xcbe0a0['id'],void 0x0));}[_0x44a51f(0x324)](_0x40dbdc,_0x537b60,_0x476f97){const _0x22f937=_0x44a51f;for(let _0x463d5f of Object[_0x22f937(0x2f4)](this[_0x22f937(0x249)])){if(_0x463d5f['id']===_0x537b60||_0x463d5f[_0x22f937(0x384)]!==_0x40dbdc)continue;if(_0x476f97===_0x22f937(0x1d0)){this[_0x22f937(0x205)](_0x463d5f['id'],void 0x0);continue;}if(!de(_0x463d5f[_0x22f937(0x171)]())[_0x22f937(0x22a)](_0x476f97))continue;let _0x360eaf=_0x463d5f[_0x22f937(0x48b)](),_0x4231df=_0x463d5f[_0x22f937(0x46d)];T(_0x360eaf)?(_0x360eaf=D(_0x360eaf),_0x476f97==='member'?delete _0x360eaf[_0x22f937(0x2a2)]:delete _0x360eaf[_0x22f937(0x2cf)],!_0x360eaf[_0x22f937(0x2a2)]&&!_0x360eaf['dateRange']&&(_0x360eaf=void 0x0)):_0x360eaf&&_0x360eaf[_0x22f937(0x477)]===0x1==(_0x476f97===_0x22f937(0x472))&&(_0x360eaf=void 0x0),_0x476f97===_0x22f937(0x472)&&(_0x4231df=void 0x0),(_0x360eaf!==_0x463d5f['filterInfo']||_0x4231df!==_0x463d5f[_0x22f937(0x46d)])&&this[_0x22f937(0x3af)](_0x463d5f['id'],_0x360eaf,_0x4231df);}}['getValueFilterInfos'](){const _0xca39cc=_0x44a51f;return this[_0xca39cc(0x1cc)]['map']($);}[_0x44a51f(0x258)](_0x25fc96){const _0x1488a6=_0x44a51f;this[_0x1488a6(0x1cc)][_0x1488a6(0x38e)](_0x55beb1=>_0x55beb1[_0x1488a6(0x368)]===_0x25fc96)&&this['setValueFilterInfo'](_0x25fc96,void 0x0);}[_0x44a51f(0x3ab)](_0x2c3dff){const _0x4929fa=_0x44a51f;let _0x95510c=this[_0x4929fa(0x1cc)][_0x4929fa(0x236)](_0x1a14c7=>_0x1a14c7[_0x4929fa(0x34b)][_0x4929fa(0x12e)]===_0x2c3dff);if(_0x95510c&&_0x95510c[_0x4929fa(0x15c)]>0x0){let _0x17db40=_0x95510c[_0x4929fa(0x15c)];for(let _0x1eac65=_0x17db40-0x1;_0x1eac65>=0x0;_0x1eac65--)this[_0x4929fa(0x2a7)](_0x95510c[_0x1eac65]['fieldId'],void 0x0);}}['getFieldFormat'](_0x3b557e){const _0x2c13b2=_0x44a51f;if(this[_0x2c13b2(0x249)][_0x3b557e])return this[_0x2c13b2(0x249)][_0x3b557e][_0x2c13b2(0x239)]();if(this['measure'][_0x3b557e])return this[_0x2c13b2(0x2c0)][_0x3b557e][_0x2c13b2(0x239)]();}['setFieldFormat'](_0x946081,_0x2d605e){const _0x1103c8=_0x44a51f;let _0x32450d;if(this[_0x1103c8(0x249)][_0x946081]&&this[_0x1103c8(0x249)][_0x946081][_0x1103c8(0x1b1)](_0x2d605e),this[_0x1103c8(0x2c0)][_0x946081]&&this[_0x1103c8(0x2c0)][_0x946081][_0x1103c8(0x1b1)](_0x2d605e),this[_0x1103c8(0x438)]&&(this[_0x1103c8(0x249)][_0x946081]||this[_0x1103c8(0x2c0)][_0x946081])){let _0x532a76={'type':0x9,'fieldId':_0x946081,'oldFormat':_0x32450d,'newFormat':_0x2d605e};this[_0x1103c8(0x438)][_0x1103c8(0x1d6)](_0x532a76);}}[_0x44a51f(0x185)](_0x1bf4a4,_0x100634){const _0x3e1f53=_0x44a51f;if(this[_0x3e1f53(0x249)][_0x1bf4a4]){let _0x2567e8=this[_0x3e1f53(0x249)][_0x1bf4a4],_0x47bca2=_0x2567e8[_0x3e1f53(0x29a)]();if(_0x2567e8['setSortInfo'](_0x100634),this[_0x3e1f53(0x438)]){let _0x5d6da3={'type':0x5,'fieldId':_0x1bf4a4,'newSortInfo':_0x2567e8[_0x3e1f53(0x29a)](),'oldSortInfo':_0x47bca2};this[_0x3e1f53(0x438)][_0x3e1f53(0x1d6)](_0x5d6da3);}}}['getSortInfo'](_0x38611f){const _0x2e6ea2=_0x44a51f;if(this[_0x2e6ea2(0x249)][_0x38611f])return this[_0x2e6ea2(0x249)][_0x38611f][_0x2e6ea2(0x29a)]();}[_0x44a51f(0x48b)](_0xab4c2c){const _0x213d4e=_0x44a51f;if(this['dimension'][_0xab4c2c])return this['dimension'][_0xab4c2c][_0x213d4e(0x48b)]();}[_0x44a51f(0x371)](_0x186470){const _0x2b5c92=_0x44a51f;Object[_0x2b5c92(0x2f4)](this[_0x2b5c92(0x249)])['forEach'](_0x3cf9de=>{_0x186470(_0x3cf9de);}),Object[_0x2b5c92(0x2f4)](this[_0x2b5c92(0x2c0)])[_0x2b5c92(0x26b)](_0x4f300b=>{_0x186470(_0x4f300b);});}[_0x44a51f(0x131)](_0x330187){const _0x3db669=_0x44a51f;Object['values'](this['dimension'])[_0x3db669(0x26b)](_0x517e4f=>{_0x330187(_0x517e4f);});}[_0x44a51f(0x315)](_0x445299){const _0x173b40=_0x44a51f;Object['values'](this['measure'])[_0x173b40(0x26b)](_0x3ea964=>{_0x445299(_0x3ea964);});}['iterateFieldByArea'](_0x353129,_0x4b6836){const _0x54825e=_0x44a51f;this[_0x54825e(0x281)](_0x353129)[_0x54825e(0x26b)](_0x38ca7b=>{let _0x13a1e4=this['getFieldById'](_0x38ca7b);_0x13a1e4&&_0x4b6836(_0x13a1e4);});}[_0x44a51f(0x197)](_0x46078a,_0x2f33c,_0x58f5d7){const _0x654fbe=_0x44a51f;if(this['getFieldById'](_0x46078a['getId']())){console[_0x654fbe(0x2fa)]('The\x20field\x20'+_0x46078a[_0x654fbe(0x44e)]()+'\x20-\x20'+_0x46078a[_0x654fbe(0x1f9)]()+_0x654fbe(0x1c2));return;}N(_0x2f33c)?this[_0x654fbe(0x249)][_0x46078a['id']]=_0x46078a:this[_0x654fbe(0x2c0)][_0x46078a['id']]=_0x46078a;let _0x33816b;switch(_0x2f33c){case 0x1:_0x33816b=this[_0x654fbe(0x2e8)];break;case 0x2:_0x33816b=this[_0x654fbe(0x2b6)];break;case 0x3:_0x33816b=this[_0x654fbe(0x481)];break;case 0x4:_0x33816b=this[_0x654fbe(0x1d8)];break;case 0x5:_0x33816b=this[_0x654fbe(0x2c9)];}_0x58f5d7===void 0x0?_0x33816b['push'](_0x46078a['id']):_0x33816b[_0x654fbe(0x259)](_0x58f5d7,0x0,_0x46078a['id']);let _0x5afb8d=_0x58f5d7===void 0x0?_0x33816b['length']-0x1:_0x58f5d7;if(this[_0x654fbe(0x438)]){let _0x4dda32={'type':0x0,'fieldJson':_0x46078a[_0x654fbe(0x171)](),'area':_0x2f33c,'index':_0x5afb8d};this[_0x654fbe(0x438)]['push'](_0x4dda32);}this[_0x654fbe(0x383)](!0x0);}[_0x44a51f(0x476)](_0x24d998){const _0x19e84d=_0x44a51f;let _0x1bfbb2,_0x216ec9=-0x1;return this['columnFields']['indexOf'](_0x24d998)===-0x1?this[_0x19e84d(0x2b6)][_0x19e84d(0x2e9)](_0x24d998)===-0x1?this[_0x19e84d(0x481)]['indexOf'](_0x24d998)===-0x1?this[_0x19e84d(0x1d8)][_0x19e84d(0x2e9)](_0x24d998)===-0x1?this[_0x19e84d(0x2c9)][_0x19e84d(0x2e9)](_0x24d998)!==-0x1&&(_0x1bfbb2=0x5,_0x216ec9=this[_0x19e84d(0x2c9)][_0x19e84d(0x2e9)](_0x24d998)):(_0x1bfbb2=0x4,_0x216ec9=this['filterFields']['indexOf'](_0x24d998)):(_0x1bfbb2=0x3,_0x216ec9=this[_0x19e84d(0x481)][_0x19e84d(0x2e9)](_0x24d998)):(_0x1bfbb2=0x2,_0x216ec9=this[_0x19e84d(0x2b6)]['indexOf'](_0x24d998)):(_0x1bfbb2=0x1,_0x216ec9=this[_0x19e84d(0x2e8)]['indexOf'](_0x24d998)),{'area':_0x1bfbb2,'index':_0x216ec9};}[_0x44a51f(0x330)](_0x2200cb,_0x5693dc,_0x245193){const _0x437d34=_0x44a51f;let _0x2aca8c=this[_0x437d34(0x1ea)](_0x2200cb);if(_0x2aca8c){let _0x5653fe=_0x2aca8c[_0x437d34(0x318)](),_0x2e648a=_0x2aca8c[_0x437d34(0x21b)]();if(_0x2aca8c[_0x437d34(0x15a)](_0x5693dc),_0x2aca8c[_0x437d34(0x2da)](_0x245193),this[_0x437d34(0x438)]){let _0xf2440d={'type':0xb,'tableFieldId':_0x2200cb,'oldSourceName':_0x5653fe,'newSourceName':_0x5693dc,'oldDataFieldId':_0x2e648a,'newDataFieldId':_0x245193};this[_0x437d34(0x438)][_0x437d34(0x1d6)](_0xf2440d);}this['setDirty'](!0x0);}}[_0x44a51f(0x281)](_0xe06891){const _0x3f61bf=_0x44a51f;switch(_0xe06891){case 0x1:return this['columnFields'];case 0x2:return this['rowFields'];case 0x3:return this[_0x3f61bf(0x481)];case 0x4:return this[_0x3f61bf(0x1d8)];case 0x5:return this[_0x3f61bf(0x2c9)];}}[_0x44a51f(0x1ea)](_0x404e87){const _0xbfeb12=_0x44a51f;if(this[_0xbfeb12(0x249)][_0x404e87])return this[_0xbfeb12(0x249)][_0x404e87];if(this[_0xbfeb12(0x2c0)][_0x404e87])return this[_0xbfeb12(0x2c0)][_0x404e87];}[_0x44a51f(0x396)](_0x56417f){const _0x2b17bf=_0x44a51f;for(let _0xb9a1f5 of Object['values'](this['dimension']))if(_0xb9a1f5[_0x2b17bf(0x1f9)]()===_0x56417f)return!0x0;for(let _0x33c1ad of Object[_0x2b17bf(0x2f4)](this['measure']))if(_0x33c1ad[_0x2b17bf(0x1f9)]()===_0x56417f)return!0x0;return!0x1;}[_0x44a51f(0x1c7)](_0x51e840,_0x4090bb){const _0x50a82a=_0x44a51f;let {area:_0x44fa69,index:_0x59a1dd}=this[_0x50a82a(0x476)](_0x51e840);if(_0x44fa69===void 0x0||_0x59a1dd===-0x1){console[_0x50a82a(0x127)](_0x50a82a(0x326)+_0x51e840+_0x50a82a(0x1e1));return;}let _0x57881f=this[_0x50a82a(0x1ea)](_0x51e840);if(!_0x57881f){console[_0x50a82a(0x127)]('The\x20field\x20'+_0x51e840+_0x50a82a(0x1e1));return;}let _0x3d96a5=_0x57881f[_0x50a82a(0x1f9)]();if(_0x3d96a5!==_0x4090bb){if(this['isExistFieldName'](_0x4090bb))console['warn'](_0x50a82a(0x483)+_0x4090bb+_0x50a82a(0x3c0));else{if(_0x57881f[_0x50a82a(0x349)](_0x4090bb),this['_changeStack']){let _0x4915e2={'type':0x3,'fieldId':_0x51e840,'newName':_0x4090bb,'oldName':_0x3d96a5};this[_0x50a82a(0x438)][_0x50a82a(0x1d6)](_0x4915e2);}}}}['removeField'](_0x609018){const _0x503628=_0x44a51f;let {area:_0x3bd577,index:_0x3925a6}=this[_0x503628(0x476)](_0x609018);if(_0x3bd577===void 0x0||_0x3925a6===-0x1){console['warn']('The\x20field\x20'+_0x609018+'\x20is\x20not\x20in\x20the\x20pivot\x20table.');return;}_0x3bd577===0x3?this[_0x503628(0x3ab)](_0x609018):P(_0x3bd577)&&this[_0x503628(0x258)](_0x609018),this[_0x503628(0x281)](_0x3bd577)[_0x503628(0x259)](_0x3925a6,0x1);let _0x3e2185;if(N(_0x3bd577)?(_0x3e2185=this['dimension'][_0x609018][_0x503628(0x171)](),delete this[_0x503628(0x249)][_0x609018]):(_0x3e2185=this[_0x503628(0x2c0)][_0x609018][_0x503628(0x171)](),delete this['measure'][_0x609018]),this[_0x503628(0x438)]){let _0x6fcf20={'type':0x2,'fieldId':_0x609018,'fieldJson':_0x3e2185,'area':_0x3bd577,'index':_0x3925a6};this['_changeStack'][_0x503628(0x1d6)](_0x6fcf20);}this['setDirty'](!0x0);}[_0x44a51f(0x430)](_0x4d5c0e,_0x53a706,_0x3fe585){const _0x4b53f8=_0x44a51f;let {area:_0x1b3796,index:_0x3e0d0f}=this[_0x4b53f8(0x476)](_0x4d5c0e);if(_0x1b3796===_0x53a706&&_0x3e0d0f===_0x3fe585)return;if(_0x1b3796===void 0x0&&_0x3e0d0f===-0x1){console[_0x4b53f8(0x127)]('The\x20field\x20'+_0x4d5c0e+_0x4b53f8(0x1e1));return;}let _0x30b27e=this['getFieldsAreaByType'](_0x53a706);this[_0x4b53f8(0x281)](_0x1b3796)[_0x4b53f8(0x259)](_0x3e0d0f,0x1),_0x30b27e[_0x4b53f8(0x259)](_0x3fe585,0x0,_0x4d5c0e);let _0x19ffa6=N(_0x1b3796);if(_0x19ffa6!==N(_0x53a706)){if(_0x19ffa6){let _0x2556ad=this[_0x4b53f8(0x249)][_0x4d5c0e];delete this[_0x4b53f8(0x249)][_0x4d5c0e];let _0x1b6953=kt(_0x2556ad);this[_0x4b53f8(0x2c0)][_0x4d5c0e]=_0x1b6953;}else{let _0xfc641d=this[_0x4b53f8(0x2c0)][_0x4d5c0e];delete this[_0x4b53f8(0x2c0)][_0x4d5c0e];let _0x5e9a00=At(_0xfc641d);this[_0x4b53f8(0x249)][_0x4d5c0e]=_0x5e9a00;}}if(this[_0x4b53f8(0x438)]){let _0x210b66={'type':0x6,'fieldId':_0x4d5c0e,'oldArea':_0x1b3796,'newArea':_0x53a706,'oldIndex':_0x3e0d0f,'newIndex':_0x3fe585};this[_0x4b53f8(0x438)]['push'](_0x210b66);}P(_0x1b3796)&&P(_0x53a706)||_0x1b3796===0x3&&_0x53a706===0x3||_0x1b3796===0x5&&_0x53a706===0x5||_0x1b3796===0x4&&_0x53a706===0x4||this[_0x4b53f8(0x383)](!0x0);}[_0x44a51f(0x1e7)](_0x389d6b,_0x488646){const _0x3b40a2=_0x44a51f;let _0x10519d=this[_0x3b40a2(0x401)],_0x2ba6fa=this['valueIndex'];if(this['valuePosition']=_0x389d6b,this['valueIndex']=_0x488646,this['_changeStack']){let _0x237043={'type':0x7,'oldValuePosition':_0x10519d,'newValuePosition':_0x389d6b,'oldIndex':_0x2ba6fa,'newIndex':_0x488646};this[_0x3b40a2(0x438)][_0x3b40a2(0x1d6)](_0x237043);}}[_0x44a51f(0x266)](){const _0x32bd9f=_0x44a51f;return this[_0x32bd9f(0x38c)];}[_0x44a51f(0x22f)](){return this['valuePosition'];}[_0x44a51f(0x3fb)](){const _0x3ec985=_0x44a51f;return this['valueFields'][_0x3ec985(0x15c)]<=0x1?!0x1:this[_0x3ec985(0x401)]===0x1;}['isRowMultiMeasure'](){const _0x48743d=_0x44a51f;return this[_0x48743d(0x481)]['length']<=0x1?!0x1:this['valuePosition']===0x2;}[_0x44a51f(0x425)](){const _0x7e29c4=_0x44a51f;return[]['concat'](this['rowFields'],this[_0x7e29c4(0x2e8)],this[_0x7e29c4(0x481)],this[_0x7e29c4(0x1d8)])[_0x7e29c4(0x15c)]===0x0;}['setSubtotalType'](_0x45c51a,_0x188f4b){const _0xd3b3e0=_0x44a51f;if(this[_0xd3b3e0(0x2c0)][_0x45c51a]){let _0xc805fa=this[_0xd3b3e0(0x2c0)][_0x45c51a][_0xd3b3e0(0x415)]();if(this[_0xd3b3e0(0x2c0)][_0x45c51a]['setSubtotal'](_0x188f4b),this[_0xd3b3e0(0x438)]){let _0xdec34e={'type':0x1,'fieldId':_0x45c51a,'newSubtotalType':_0x188f4b,'oldSubtotalType':_0xc805fa};this[_0xd3b3e0(0x438)][_0xd3b3e0(0x1d6)](_0xdec34e);}this['setDirty'](!0x0);}}[_0x44a51f(0x1b6)](_0x5c6548){const _0x553b28=_0x44a51f;var _0x2d9bb9;return(_0x2d9bb9=this[_0x553b28(0x2c0)][_0x5c6548])==null?void 0x0:_0x2d9bb9[_0x553b28(0x1b6)]();}[_0x44a51f(0x285)](_0x4dcd50,_0x33f4c0){const _0x1a1ba5=_0x44a51f;let _0x5d2358=this['measure'][_0x4dcd50];if(!_0x5d2358)return;let _0x467f65=_0x5d2358[_0x1a1ba5(0x1b6)]();if(_0x5d2358[_0x1a1ba5(0x285)](_0x33f4c0),this[_0x1a1ba5(0x438)]){let _0x5bec45={'type':0xe,'fieldId':_0x4dcd50,'oldShowDataAs':_0x467f65,'newShowDataAs':_0x5d2358[_0x1a1ba5(0x1b6)]()};this['_changeStack'][_0x1a1ba5(0x1d6)](_0x5bec45);}}['getQueryData'](){const _0x230cff=_0x44a51f;let _0xa1b1a6=this[_0x230cff(0x249)],_0x1899be=[];for(let _0x1d0e0b of this[_0x230cff(0x2b6)])_0xa1b1a6[_0x1d0e0b]&&_0x1899be[_0x230cff(0x1d6)](_0xa1b1a6[_0x1d0e0b]['getQueryData']());let _0x4ce43b=[];for(let _0x4dd292 of this[_0x230cff(0x2e8)])_0xa1b1a6[_0x4dd292]&&_0x4ce43b['push'](_0xa1b1a6[_0x4dd292][_0x230cff(0x39a)]());let _0x494521=[];for(let _0x2caefe of this[_0x230cff(0x1d8)])_0xa1b1a6[_0x2caefe]&&_0x494521[_0x230cff(0x1d6)](_0xa1b1a6[_0x2caefe][_0x230cff(0x39a)]());let _0x54ee14=[];for(let _0x44af02 of this[_0x230cff(0x2c9)])_0xa1b1a6[_0x44af02]&&_0x54ee14['push'](_0xa1b1a6[_0x44af02][_0x230cff(0x39a)]());let _0x555205=[];for(let _0x5ae75d of this[_0x230cff(0x481)])this['measure'][_0x5ae75d]&&_0x555205[_0x230cff(0x1d6)](this['measure'][_0x5ae75d][_0x230cff(0x39a)]());let _0x4beee9=[];for(let _0x16a316 of this[_0x230cff(0x1cc)]){let {fieldId:_0x349a15,filterInfo:_0x50fcb1}=_0x16a316;_0xa1b1a6[_0x349a15]&&this[_0x230cff(0x2c0)][_0x50fcb1[_0x230cff(0x12e)]]&&_0x4beee9[_0x230cff(0x1d6)]($(_0x16a316));}return{'rowQueryInfo':_0x1899be,'colQueryInfo':_0x4ce43b,'filterQueryInfo':_0x494521,'hiddenQueryInfo':_0x54ee14,'valueQueryInfo':_0x555205,'collapseInfo':{...this[_0x230cff(0x277)]},'valueFilterInfo':_0x4beee9};}[_0x44a51f(0x288)](_0x37dca3){const _0x8e41c=_0x44a51f;_0x37dca3===void 0x0?(this[_0x8e41c(0x2b6)]=[],this['columnFields']=[],this['valueFields']=[],this[_0x8e41c(0x1d8)]=[],this[_0x8e41c(0x2c9)]=[],this['dimension']=Object[_0x8e41c(0x347)](null),this[_0x8e41c(0x2c0)]=Object[_0x8e41c(0x347)](null),this[_0x8e41c(0x38c)]=-0x1,this[_0x8e41c(0x401)]=-0x1,this[_0x8e41c(0x277)]=Object[_0x8e41c(0x347)](null),this[_0x8e41c(0x351)]={}):_0x37dca3===0x1?(this[_0x8e41c(0x2e8)][_0x8e41c(0x26b)](_0x4cbd54=>{const _0x40d315=_0x8e41c;delete this[_0x40d315(0x249)][_0x4cbd54];}),this[_0x8e41c(0x2e8)]=[]):_0x37dca3===0x2?(this[_0x8e41c(0x2b6)][_0x8e41c(0x26b)](_0x3f34b6=>{const _0x58fea4=_0x8e41c;delete this[_0x58fea4(0x249)][_0x3f34b6];}),this[_0x8e41c(0x2b6)]=[]):_0x37dca3===0x4?(this[_0x8e41c(0x1d8)][_0x8e41c(0x26b)](_0x380aeb=>{delete this['dimension'][_0x380aeb];}),this[_0x8e41c(0x1d8)]=[]):_0x37dca3===0x3&&(this[_0x8e41c(0x481)][_0x8e41c(0x26b)](_0x3c1a33=>{delete this['measure'][_0x3c1a33];}),this['valueIndex']=-0x1,this[_0x8e41c(0x401)]=-0x1,this[_0x8e41c(0x481)]=[]);}[_0x44a51f(0x407)](_0x5c53e3){const _0x23329c=_0x44a51f;this[_0x23329c(0x249)]=Object[_0x23329c(0x3cf)](_0x5c53e3['dimension'])[_0x23329c(0x449)]((_0x4407b7,_0x58c6ee)=>{const _0x22b812=_0x23329c;let _0x45c629=_0x5c53e3[_0x22b812(0x249)][_0x58c6ee],_0x4cab85=new Z(_0x45c629['dataFieldId'],_0x45c629['id'],_0x45c629[_0x22b812(0x238)],_0x45c629[_0x22b812(0x16f)]);return _0x4cab85[_0x22b812(0x407)](_0x45c629),_0x4407b7[_0x58c6ee]=_0x4cab85,_0x4407b7;},Object[_0x23329c(0x347)](null)),this[_0x23329c(0x2c0)]=Object[_0x23329c(0x3cf)](_0x5c53e3['measure'])[_0x23329c(0x449)]((_0x5381ef,_0x98a305)=>{const _0xd5ff20=_0x23329c;let _0x5b7023=_0x5c53e3[_0xd5ff20(0x2c0)][_0x98a305],_0x3a9cb6=new X(_0x5b7023['dataFieldId'],_0x5b7023['id'],_0x5b7023[_0xd5ff20(0x238)],_0x5b7023[_0xd5ff20(0x16f)]);return _0x3a9cb6[_0xd5ff20(0x407)](_0x5c53e3[_0xd5ff20(0x2c0)][_0x98a305]),_0x5381ef[_0x98a305]=_0x3a9cb6,_0x5381ef;},Object['create'](null)),this[_0x23329c(0x1d8)]=_0x5c53e3[_0x23329c(0x1d8)][_0x23329c(0x309)](),this[_0x23329c(0x2c9)]=_0x5c53e3[_0x23329c(0x2c9)][_0x23329c(0x309)](),this[_0x23329c(0x2b6)]=_0x5c53e3[_0x23329c(0x2b6)]['concat'](),this['valueFields']=_0x5c53e3[_0x23329c(0x481)][_0x23329c(0x309)](),this[_0x23329c(0x2e8)]=_0x5c53e3[_0x23329c(0x2e8)][_0x23329c(0x309)](),this[_0x23329c(0x191)]=_0x5c53e3[_0x23329c(0x191)]??0x3,this['valueIndex']=_0x5c53e3[_0x23329c(0x38c)],this['valuePosition']=_0x5c53e3[_0x23329c(0x401)],this[_0x23329c(0x277)]=Object[_0x23329c(0x155)](Object['create'](null),_0x5c53e3[_0x23329c(0x277)]),this[_0x23329c(0x351)]={..._0x5c53e3['options']},this[_0x23329c(0x1cc)]=_0x5c53e3[_0x23329c(0x447)]?_0x5c53e3[_0x23329c(0x447)][_0x23329c(0x47c)]($):[];}[_0x44a51f(0x171)](){const _0x8c5dd7=_0x44a51f;let _0x49674f=Object['keys'](this[_0x8c5dd7(0x249)])[_0x8c5dd7(0x449)]((_0x1408be,_0x3a543a)=>(_0x1408be[_0x3a543a]=this[_0x8c5dd7(0x249)][_0x3a543a][_0x8c5dd7(0x171)](),_0x1408be),Object['create'](null)),_0x1b72c5=Object[_0x8c5dd7(0x3cf)](this[_0x8c5dd7(0x2c0)])[_0x8c5dd7(0x449)]((_0x576422,_0x39af1b)=>(_0x576422[_0x39af1b]=this[_0x8c5dd7(0x2c0)][_0x39af1b][_0x8c5dd7(0x171)](),_0x576422),Object['create'](null)),_0x13903d=this[_0x8c5dd7(0x1cc)][_0x8c5dd7(0x47c)]($);return{'columnFields':this[_0x8c5dd7(0x2e8)][_0x8c5dd7(0x309)](),'dimension':_0x49674f,'measure':_0x1b72c5,'filterFields':this['filterFields'][_0x8c5dd7(0x309)](),'hiddenFields':this['hiddenFields'][_0x8c5dd7(0x309)](),'rowFields':this[_0x8c5dd7(0x2b6)][_0x8c5dd7(0x309)](),'valueFields':this['valueFields']['concat'](),'layout':this[_0x8c5dd7(0x191)],'valueIndex':this['valueIndex'],'valuePosition':this[_0x8c5dd7(0x401)],'collapseInfo':{...this[_0x8c5dd7(0x277)]},'options':{...this[_0x8c5dd7(0x351)]},'valueFilter':_0x13903d};}[_0x44a51f(0x129)](){const _0x1bb7e8=_0x44a51f;let _0x2806a5=new e();return _0x2806a5[_0x1bb7e8(0x407)](this[_0x1bb7e8(0x171)]()),_0x2806a5[_0x1bb7e8(0x383)](this[_0x1bb7e8(0x47e)]()),_0x2806a5;}};function Q(_0x4c827a){const _0x21c222=_0x44a51f;if(_0x4c827a)return{..._0x4c827a,'expected':Array[_0x21c222(0x30b)](_0x4c827a['expected'])?_0x4c827a[_0x21c222(0x353)]['concat']():_0x4c827a[_0x21c222(0x353)]};}function $(_0x3d3818){const _0x2580d9=_0x44a51f;return{'fieldId':_0x3d3818[_0x2580d9(0x368)],'filterInfo':Q(_0x3d3818[_0x2580d9(0x34b)])};}var Pt=class e{static[_0x44a51f(0x3e8)](_0x128a23,_0x2c0a7c){const _0x226d03=_0x44a51f;var _0x24174b;this[_0x226d03(0x337)][_0x128a23]||(this[_0x226d03(0x337)][_0x128a23]=[]),(_0x24174b=this[_0x226d03(0x337)][_0x128a23])==null||_0x24174b[_0x226d03(0x1d6)](_0x2c0a7c);}static[_0x44a51f(0x2a9)](_0x4b2f4d,_0x5c9b45){const _0x4711e5=_0x44a51f;let _0x3fdddc=this[_0x4711e5(0x337)][_0x4b2f4d];if(_0x3fdddc){let _0x5e9dbb=_0x3fdddc[_0x4711e5(0x2e9)](_0x5c9b45);_0x5e9dbb!==-0x1&&_0x3fdddc[_0x4711e5(0x259)](_0x5e9dbb,0x1),_0x3fdddc[_0x4711e5(0x15c)]===0x0&&delete this[_0x4711e5(0x337)][_0x4b2f4d];}}constructor(_0x4a895e,_0x50163b,_0x149c05){const _0x33f3ab=_0x44a51f;A(this,_0x33f3ab(0x3dc),void 0x0),A(this,_0x33f3ab(0x27e),void 0x0),A(this,'_bufferModel',void 0x0),A(this,_0x33f3ab(0x26a),void 0x0),A(this,_0x33f3ab(0x416),void 0x0),A(this,'_summaryCacheState',_0x33f3ab(0x2d1)),A(this,_0x33f3ab(0x393),void 0x0),A(this,'_id',void 0x0),this[_0x33f3ab(0x3dc)]=_0x4a895e,_0x50163b?this['_model']=_0x50163b:this[_0x33f3ab(0x19a)](),_0x149c05&&(this[_0x33f3ab(0x2c2)]=_0x149c05);}[_0x44a51f(0x3c9)](_0x42aa1f){this['dataFieldsCollection']=_0x42aa1f;}[_0x44a51f(0x32d)](_0x4b4497,_0x4de2f5){const _0x5312c2=_0x44a51f;let _0x47229c=this[_0x5312c2(0x46e)]()[_0x5312c2(0x39a)]();for(let _0x1cafa8 of[..._0x47229c['rowQueryInfo'],..._0x47229c['colQueryInfo'],..._0x47229c[_0x5312c2(0x22b)],..._0x47229c[_0x5312c2(0x363)]??[]])_0x1cafa8[_0x5312c2(0x384)]===_0x4b4497&&(_0x4de2f5===_0x5312c2(0x2cf)&&(_0x1cafa8[_0x5312c2(0x46d)]=void 0x0),_0x1cafa8[_0x5312c2(0x34b)]&&(T(_0x1cafa8[_0x5312c2(0x34b)])?delete _0x1cafa8[_0x5312c2(0x34b)][_0x4de2f5]:_0x1cafa8['filterInfo'][_0x5312c2(0x477)]===0x1==(_0x4de2f5===_0x5312c2(0x2cf))&&(_0x1cafa8['filterInfo']=void 0x0)));let _0x2e8033=new wt();return _0x2e8033[_0x5312c2(0x466)](this[_0x5312c2(0x3dc)],_0x47229c),_0x2e8033[_0x5312c2(0x236)](_0x47229c);}[_0x44a51f(0x46e)](){const _0x30cf67=_0x44a51f;return this[_0x30cf67(0x276)]?this['_bufferModel']:this[_0x30cf67(0x27e)];}[_0x44a51f(0x1c3)](){const _0x59e201=_0x44a51f;this[_0x59e201(0x276)]=this[_0x59e201(0x27e)][_0x59e201(0x129)](),this[_0x59e201(0x276)][_0x59e201(0x314)]();}[_0x44a51f(0x33a)](){const _0x29a395=_0x44a51f;let _0x3a2035=this['_bufferModel'],_0x802096=_0x3a2035[_0x29a395(0x199)]();return _0x3a2035['getDirty']()&&this[_0x29a395(0x27e)][_0x29a395(0x383)](!0x0),this[_0x29a395(0x28c)](),_0x802096;}[_0x44a51f(0x28c)](){const _0x393923=_0x44a51f;this[_0x393923(0x26a)]=void 0x0,this[_0x393923(0x416)]=void 0x0,this['_summaryCacheState']=_0x393923(0x2d1),this['_bufferModel']=void 0x0;}[_0x44a51f(0x19a)](){const _0x10e9f1=_0x44a51f;this[_0x10e9f1(0x27e)]=new Nt();}[_0x44a51f(0x228)](_0x3f4e02,_0x4835b1,_0x7c8663){const _0x1a9c11=_0x44a51f;let _0x9c2aa7=this[_0x1a9c11(0x3dc)][_0x1a9c11(0x1ea)](_0x3f4e02);if(_0x9c2aa7){let _0x2eb6b6=_0x7c8663||this['getUniqueFieldId']();return a['isDev']&&(_0x2eb6b6=_0x4835b1+'-'+_0x2eb6b6),new Z(_0x9c2aa7[_0x1a9c11(0x44e)](),_0x2eb6b6,_0x4835b1||this['dataFieldsCollection'][_0x1a9c11(0x1f9)](_0x3f4e02),_0x9c2aa7['name']);}}[_0x44a51f(0x2af)](_0x31a276,_0x3d2515){const _0x1f8011=_0x44a51f;let _0x1a9115=this[_0x1f8011(0x3dc)][_0x1f8011(0x1ea)](_0x31a276);if(_0x1a9115){let _0x5d77a1=_0x1a9115[_0x1f8011(0x400)]()===0x2?0x9:0x2,_0xa25073=(this[_0x1f8011(0x3dc)][_0x1f8011(0x148)][_0x1f8011(0x254)]()||F)(this[_0x1f8011(0x3dc)]['getDisplayName'](_0x31a276),_0x5d77a1),_0x17ebec=_0x3d2515||this['getUniqueFieldId']();a[_0x1f8011(0x32a)]&&(_0x17ebec=_0xa25073+'-'+_0x17ebec);let _0x211d38=new X(_0x1a9115['getId'](),_0x17ebec,this[_0x1f8011(0x156)](_0xa25073),_0x1a9115['name']);return _0x211d38[_0x1f8011(0x484)](_0x5d77a1),_0x211d38;}}[_0x44a51f(0x1e7)](_0x40f060,_0x2fcfc9){const _0xe431e1=_0x44a51f;this[_0xe431e1(0x46e)]()[_0xe431e1(0x1e7)](_0x40f060,_0x2fcfc9);}[_0x44a51f(0x3fb)](){const _0x5b7ac0=_0x44a51f;return this[_0x5b7ac0(0x46e)]()[_0x5b7ac0(0x3fb)]();}['isRowMultiMeasure'](){const _0x1c57c7=_0x44a51f;return this[_0x1c57c7(0x46e)]()[_0x1c57c7(0x3eb)]();}[_0x44a51f(0x266)](){const _0x4373c6=_0x44a51f;return this[_0x4373c6(0x46e)]()[_0x4373c6(0x266)]();}[_0x44a51f(0x22f)](){const _0x244752=_0x44a51f;return this[_0x244752(0x46e)]()[_0x244752(0x22f)]();}[_0x44a51f(0x371)](_0x1b6ccc){const _0x200ce5=_0x44a51f;this[_0x200ce5(0x46e)]()[_0x200ce5(0x371)](_0x1b6ccc);}[_0x44a51f(0x131)](_0x473a51){const _0x49d36f=_0x44a51f;this[_0x49d36f(0x46e)]()[_0x49d36f(0x131)](_0x473a51);}[_0x44a51f(0x3f1)](_0x542786,_0x29fb00){const _0x149d06=_0x44a51f;this[_0x149d06(0x46e)]()[_0x149d06(0x3f1)](_0x542786,_0x29fb00);}['getFieldCountByArea'](_0x58336c){const _0x165bfa=_0x44a51f;return this['_getModel']()[_0x165bfa(0x281)](_0x58336c)['length'];}['getValueFields'](){return this['_getModel']()['valueFields'];}['getUniqueValueFieldName'](_0x1c6e2a){const _0x28e5e6=_0x44a51f;let _0x529015=this['_getModel']();if(!_0x529015[_0x28e5e6(0x396)](_0x1c6e2a))return _0x1c6e2a;let _0x1bbc66=0x1;for(;_0x529015['isExistFieldName'](_0x1c6e2a+String(_0x1bbc66));)_0x1bbc66++;return _0x1c6e2a+String(_0x1bbc66);}[_0x44a51f(0x2e7)](_0x25d5aa){const _0x7fbb9c=_0x44a51f;var _0x5ea2f7;let _0x57c64b=(_0x5ea2f7=this[_0x7fbb9c(0x46e)]()[_0x7fbb9c(0x1ea)](_0x25d5aa))==null?void 0x0:_0x5ea2f7[_0x7fbb9c(0x384)];if(_0x57c64b)return this['dataFieldsCollection']['getFieldById'](_0x57c64b);}[_0x44a51f(0x1cb)](_0x70dbb1){let _0x315021=[];return this['iterateField'](_0x1d57d4=>{const _0x462b7c=_0x45d7;_0x1d57d4[_0x462b7c(0x21b)]()===_0x70dbb1&&_0x315021[_0x462b7c(0x1d6)](_0x1d57d4);}),_0x315021;}['getTableFieldById'](_0x1e8082){const _0x2175a5=_0x44a51f;return this['_getModel']()[_0x2175a5(0x1ea)](_0x1e8082);}['isExistField'](_0x586f39){const _0x5079c3=_0x44a51f;return!!this['_getModel']()[_0x5079c3(0x1ea)](_0x586f39);}[_0x44a51f(0x425)](){const _0x409187=_0x44a51f;return this[_0x409187(0x46e)]()['isEmpty']();}[_0x44a51f(0x482)](_0x35cea3){const _0x43986a=_0x44a51f;return this['dataFieldsCollection'][_0x43986a(0x1ea)](_0x35cea3);}['getDataFieldIdByDisplayName'](_0x253f81){const _0x10cd0b=_0x44a51f;return this[_0x10cd0b(0x3dc)][_0x10cd0b(0x305)](_0x253f81);}[_0x44a51f(0x1eb)](){const _0x122065=_0x44a51f;return this[_0x122065(0x3dc)][_0x122065(0x1eb)]();}['getDataFieldItemInfo'](_0x267ead){const _0x3597d2=_0x44a51f;return{'items':_0x267ead[_0x3597d2(0x378)],'itemTypes':_0x267ead[_0x3597d2(0x31b)]};}['getUniqueFieldId'](){const _0xdc31da=_0x44a51f;let _0x4785e8=Object[_0xdc31da(0x3cf)](this[_0xdc31da(0x46e)]()['dimension'])[_0xdc31da(0x15c)]+Object[_0xdc31da(0x3cf)](this['_getModel']()['measure'])[_0xdc31da(0x15c)],_0x237879=Math[_0xdc31da(0x274)](Math[_0xdc31da(0x487)](Math[_0xdc31da(0x184)](_0x4785e8)/0x4),0x2),_0x4a60e4=L(_0x237879);for(;this[_0xdc31da(0x46e)]()[_0xdc31da(0x1ea)](_0x4a60e4);)_0x4a60e4=L(_0x237879);return _0x4a60e4;}[_0x44a51f(0x3e1)](_0x215036,_0x3e6f44,_0x114280,_0x2c7cdb){const _0x2f4f22=_0x44a51f;let _0x3843fe;if(_0x3843fe=N(_0x3e6f44)?this[_0x2f4f22(0x228)](_0x215036,void 0x0,_0x2c7cdb):this[_0x2f4f22(0x2af)](_0x215036,_0x2c7cdb),_0x3843fe)return this[_0x2f4f22(0x197)](_0x3843fe,_0x3e6f44,_0x114280),_0x3843fe;}['setOptions'](_0x4fe177,_0x459621=!0x1){const _0x354cfd=_0x44a51f;this[_0x354cfd(0x46e)]()[_0x354cfd(0x356)](_0x4fe177,_0x459621);}['setLayout'](_0x3ce284){const _0xf394a7=_0x44a51f;this[_0xf394a7(0x46e)]()[_0xf394a7(0x190)](_0x3ce284);}[_0x44a51f(0x2d5)](){const _0x336070=_0x44a51f;return this[_0x336070(0x46e)]()[_0x336070(0x2d5)]();}[_0x44a51f(0x330)](_0x568b96,_0x481f9d,_0x56ec48){const _0x284a80=_0x44a51f;this['_getModel']()[_0x284a80(0x330)](_0x568b96,_0x481f9d,_0x56ec48);}[_0x44a51f(0x26c)](_0xaabd51,_0x5568f0){const _0x409fdb=_0x44a51f;this[_0x409fdb(0x46e)]()[_0x409fdb(0x26c)](_0xaabd51,_0x5568f0);}[_0x44a51f(0x1b6)](_0x12d1e2){const _0x38406=_0x44a51f;return this['_getModel']()[_0x38406(0x1b6)](_0x12d1e2);}[_0x44a51f(0x285)](_0x120f21,_0x4eb0aa){const _0x495cb3=_0x44a51f;this[_0x495cb3(0x46e)]()[_0x495cb3(0x285)](_0x120f21,_0x4eb0aa);}[_0x44a51f(0x1c7)](_0x4724b5,_0x47664a){const _0x41c556=_0x44a51f;this[_0x41c556(0x46e)]()['renameField'](_0x4724b5,_0x47664a);}[_0x44a51f(0x3cc)](_0x21f1f9,_0x5059c2,_0x49be21){const _0x42797e=_0x44a51f;this[_0x42797e(0x46e)]()[_0x42797e(0x3cc)](_0x21f1f9,_0x5059c2,_0x49be21);}[_0x44a51f(0x25c)](_0x587856){const _0x406cbc=_0x44a51f;return this[_0x406cbc(0x46e)]()[_0x406cbc(0x25c)](_0x587856);}[_0x44a51f(0x14e)](_0x34f159){const _0x4c0472=_0x44a51f;this[_0x4c0472(0x46e)]()['clearFieldFilters'](_0x34f159);}[_0x44a51f(0x3af)](_0x34fa8e,_0x8c1f22,_0x52fb0c){const _0x3ce4d7=_0x44a51f;this[_0x3ce4d7(0x46e)]()['setFieldFilterState'](_0x34fa8e,_0x8c1f22,_0x52fb0c);}['setDateFilterInfo'](_0x5523f2,_0x3f3e3e){const _0x5d9675=_0x44a51f;let _0x5f5dfc=this[_0x5d9675(0x48b)](_0x5523f2);if(!this[_0x5d9675(0x46e)]()[_0x5d9675(0x249)][_0x5523f2])return!0x1;if(_0x3f3e3e===void 0x0)return!x(this[_0x5d9675(0x25c)](_0x5523f2))&&!(T(_0x5f5dfc)&&_0x5f5dfc[_0x5d9675(0x2cf)])?!0x1:(this[_0x5d9675(0x3cc)](_0x5523f2,void 0x0,'condition'),!0x0);S(_0x3f3e3e);let _0x218b6f=this[_0x5d9675(0x2e7)](_0x5523f2);return!_0x218b6f||_0x218b6f['getFieldDataType']()!==0x4?!0x1:(this['setLabelFilterInfo'](_0x5523f2,_0x3f3e3e,'condition'),!0x0);}[_0x44a51f(0x185)](_0x3239ee,_0x9082e8){const _0x50a278=_0x44a51f;this[_0x50a278(0x46e)]()[_0x50a278(0x185)](_0x3239ee,_0x9082e8),this[_0x50a278(0x17f)]==='ready'&&(this[_0x50a278(0x17f)]=_0x50a278(0x2a5));}[_0x44a51f(0x448)](_0x9c1c39){const _0x58345c=_0x44a51f;this[_0x58345c(0x393)]!==_0x9c1c39&&(this[_0x58345c(0x393)]=_0x9c1c39,this[_0x58345c(0x17f)]==='ready'&&(this[_0x58345c(0x17f)]=_0x58345c(0x2a5)));}['getSortInfo'](_0x2d21e4){const _0x2d3529=_0x44a51f;return this['_getModel']()[_0x2d3529(0x29a)](_0x2d21e4);}[_0x44a51f(0x48b)](_0x49dc3b){const _0x38e541=_0x44a51f;return this[_0x38e541(0x46e)]()[_0x38e541(0x48b)](_0x49dc3b);}[_0x44a51f(0x1cd)](_0x307064){const _0x54232c=_0x44a51f;return this[_0x54232c(0x46e)]()['filterFields'][_0x307064];}['updateFieldPosition'](_0x30fcaa,_0x2a811c,_0x55d3f3){const _0x429db1=_0x44a51f;let {area:_0x211b23}=this['_getModel']()[_0x429db1(0x476)](_0x30fcaa);this[_0x429db1(0x46e)]()['updateFieldPosition'](_0x30fcaa,_0x2a811c,_0x55d3f3),_0x211b23!==0x2&&_0x211b23!==0x1||_0x2a811c!==0x2&&_0x2a811c!==0x1||(this['_summaryCacheState']=_0x429db1(0x2d1));}['getFieldFormat'](_0x74eea9){const _0x57f12c=_0x44a51f;return this['_getModel']()[_0x57f12c(0x2ba)](_0x74eea9);}['setFieldFormat'](_0x28f388,_0xfd66eb){const _0x458a02=_0x44a51f;this[_0x458a02(0x46e)]()['setFieldFormat'](_0x28f388,_0xfd66eb);}[_0x44a51f(0x197)](_0x5c6641,_0x3fc8d4,_0x45fadd){const _0x37ab5a=_0x44a51f;this[_0x37ab5a(0x46e)]()[_0x37ab5a(0x197)](_0x5c6641,_0x3fc8d4,_0x45fadd);}['removeField'](_0xb486f9){const _0x113374=_0x44a51f;this['_getModel']()[_0x113374(0x2c4)](_0xb486f9);}['getOptions'](){const _0x503e9a=_0x44a51f;return this['_getModel']()[_0x503e9a(0x2ee)]();}[_0x44a51f(0x1b2)](_0x130c98,_0x464e2f,_0x23c409){const _0x5c64e7=_0x44a51f;var _0xe71c2b;let _0x2325d4=this['_getModel'](),_0x7787af=_0x23c409!==void 0x0&&_0x2325d4[_0x5c64e7(0x277)][_0x130c98]===!0x0?(_0xe71c2b=this[_0x5c64e7(0x2e7)](_0x130c98))==null?void 0x0:_0xe71c2b[_0x5c64e7(0x378)]:void 0x0;_0x2325d4[_0x5c64e7(0x1b2)](_0x130c98,_0x464e2f,_0x23c409,_0x7787af),this[_0x5c64e7(0x17f)]=_0x5c64e7(0x2d1);}['setRowCollapseLevel'](_0x1ff846){const _0x42504e=_0x44a51f;let {rowFields:_0x330c51}=this[_0x42504e(0x46e)](),_0x243c4f=_0x330c51[_0x42504e(0x2e9)](_0x1ff846);if(_0x243c4f<0x0)return!0x1;for(let _0x21ec4c=0x0;_0x21ec4c<_0x330c51[_0x42504e(0x15c)]-0x1;_0x21ec4c++)this['setCollapse'](_0x330c51[_0x21ec4c],_0x21ec4c>=_0x243c4f);return!0x0;}[_0x44a51f(0x476)](_0x1c221f){const _0x2f7a75=_0x44a51f;return this[_0x2f7a75(0x46e)]()[_0x2f7a75(0x476)](_0x1c221f);}[_0x44a51f(0x211)](_0x2c6082){const _0x487799=_0x44a51f;return(!this[_0x487799(0x26a)]||this['_getModel']()[_0x487799(0x47e)]())&&(this[_0x487799(0x26a)]=new wt(),this[_0x487799(0x26a)][_0x487799(0x46f)](this[_0x487799(0x3dc)],_0x2c6082),this['_summaryManagerCache']=void 0x0,this['_summaryCacheState']='invalid'),this['_tupleGroupCache'];}['_getGroupInfo'](){const _0x7bf77e=_0x44a51f;let _0x4beb46={};return this[_0x7bf77e(0x46e)]()[_0x7bf77e(0x131)](_0x49ceeb=>{const _0x17e8b6=_0x7bf77e;let _0x1b69c2=_0x49ceeb[_0x17e8b6(0x384)],_0x3679e7=this[_0x17e8b6(0x3dc)][_0x17e8b6(0x1ea)](_0x1b69c2);if(V(_0x3679e7)){let _0x28b02=_0x3679e7[_0x17e8b6(0x417)]();_0x28b02&&(_0x4beb46[_0x49ceeb[_0x17e8b6(0x44e)]()]=_0x28b02);}}),_0x4beb46;}[_0x44a51f(0x2a7)](_0x4e0270,_0x25a9c2,_0x478f2b){const _0x3bc1a3=_0x44a51f;this[_0x3bc1a3(0x46e)]()[_0x3bc1a3(0x2a7)](_0x4e0270,_0x25a9c2,_0x478f2b),this[_0x3bc1a3(0x17f)]=_0x3bc1a3(0x2d1);}['setValueFilterState'](_0xe70c52,_0x5e8259,_0xc3f2ed){const _0x140b02=_0x44a51f;this[_0x140b02(0x46e)]()[_0x140b02(0x205)](_0xe70c52,_0x5e8259,_0xc3f2ed),this[_0x140b02(0x17f)]=_0x140b02(0x2d1);}[_0x44a51f(0x230)](){const _0x4e925e=_0x44a51f;return this[_0x4e925e(0x46e)]()['getValueFilterInfos']();}[_0x44a51f(0x224)](_0x523442){const _0x320162=_0x44a51f;return this[_0x320162(0x46e)]()[_0x320162(0x224)](_0x523442);}[_0x44a51f(0x258)](_0x6552a0){const _0x1bb67d=_0x44a51f;this[_0x1bb67d(0x46e)]()[_0x1bb67d(0x258)](_0x6552a0),this[_0x1bb67d(0x17f)]=_0x1bb67d(0x2d1);}[_0x44a51f(0x3ab)](_0x222e48){const _0x371519=_0x44a51f;this[_0x371519(0x46e)]()[_0x371519(0x3ab)](_0x222e48),this[_0x371519(0x17f)]=_0x371519(0x2d1);}[_0x44a51f(0x293)](_0x18370a){const _0x73c29f=_0x44a51f;let _0x18cdc5=this[_0x73c29f(0x211)](this[_0x73c29f(0x46e)]()[_0x73c29f(0x39a)]()),_0xd9b44a=new Map();for(let [_0x12bcc4,_0x2ab004]of _0x18cdc5[_0x73c29f(0x485)]['entries']())_0xd9b44a['set'](_0x2ab004,_0x12bcc4);return _0x18cdc5[_0x73c29f(0x33d)][_0x73c29f(0x449)]((_0x435cde,_0xa234eb)=>(_0x18370a[_0x73c29f(0x3ef)](_0x87e56d=>{const _0x5d7663=_0x73c29f;let [_0x37c8a8,_0x4dbd58]=_0x87e56d,_0x1a10d2=_0xa234eb[_0x5d7663(0x174)],_0x2eb358=_0xd9b44a[_0x5d7663(0x245)](_0x4dbd58);return _0x2eb358!==void 0x0&&_0x1a10d2[_0x2eb358]===_0x37c8a8;})&&_0x435cde[_0x73c29f(0x1d6)](..._0xa234eb[_0x73c29f(0x23e)]),_0x435cde),[])[_0x73c29f(0x2a5)]((_0x10db5a,_0x56dc42)=>_0x10db5a-_0x56dc42);}[_0x44a51f(0x383)](_0x2a33bf){const _0x3731ef=_0x44a51f;this['_getModel']()[_0x3731ef(0x383)](_0x2a33bf);}['reset'](_0x593119){const _0x4e585b=_0x44a51f;this[_0x4e585b(0x46e)]()[_0x4e585b(0x288)](_0x593119),this[_0x4e585b(0x17f)]=_0x4e585b(0x2d1);}['query'](_0x48637a){const _0x55145e=_0x44a51f;let _0x468c7c=e[_0x55145e(0x337)][_0x55145e(0x28b)];_0x468c7c&&_0x468c7c['forEach'](_0x2aa185=>{const _0x35a423=_0x55145e;_0x2aa185(this[_0x35a423(0x2c2)]);});let _0xc327fa=_0x48637a||this[_0x55145e(0x46e)]()[_0x55145e(0x39a)](),_0x3c3e81=this[_0x55145e(0x211)](_0xc327fa),_0x35bedf;_0x48637a?(_0x35bedf=new Ct(_0xc327fa,_0x3c3e81,this['_defaultSortLocale']),_0x35bedf[_0x55145e(0x128)]()):(!this[_0x55145e(0x416)]||this['_summaryCacheState']===_0x55145e(0x2d1)?(this[_0x55145e(0x416)]=new Ct(_0xc327fa,_0x3c3e81,this[_0x55145e(0x393)]),this['_summaryManagerCache'][_0x55145e(0x128)]()):this[_0x55145e(0x17f)]===_0x55145e(0x2a5)&&this[_0x55145e(0x416)][_0x55145e(0x405)](_0xc327fa,this['_defaultSortLocale']),_0x35bedf=this['_summaryManagerCache'],this[_0x55145e(0x17f)]=_0x55145e(0x279));let _0x3b260e;try{_0x3b260e=this[_0x55145e(0x181)](_0x35bedf,_0xc327fa);}finally{_0x35bedf['clearShowDataAsCache']();}_0x3b260e[_0x55145e(0x1b1)](this['_getModel'](),_0xc327fa[_0x55145e(0x35f)]);let _0x4f4fb5=this[_0x55145e(0x2bc)]();_0x3b260e[_0x55145e(0x1aa)](_0x4f4fb5),this[_0x55145e(0x46e)]()['setDirty'](!0x1);let _0x282254=e[_0x55145e(0x337)][_0x55145e(0x136)];return _0x282254&&_0x282254['forEach'](_0x4e4301=>{const _0x1a81ce=_0x55145e;_0x4e4301(this[_0x1a81ce(0x2c2)]);}),_0x3b260e;}[_0x44a51f(0x181)](_0x255bfe,_0x2befd1){const _0x2bfdec=_0x44a51f;switch(this[_0x2bfdec(0x2d5)]()){case 0x1:return ht[_0x2bfdec(0x191)](this,_0x255bfe,_0x2befd1);case 0x2:return gt[_0x2bfdec(0x191)](this,_0x255bfe,_0x2befd1);default:return mt[_0x2bfdec(0x191)](this,_0x255bfe,_0x2befd1);}}[_0x44a51f(0x171)](){const _0x1eb10a=_0x44a51f;return this[_0x1eb10a(0x46e)]()[_0x1eb10a(0x171)]();}[_0x44a51f(0x407)](_0x288186){const _0x5eabdb=_0x44a51f;this[_0x5eabdb(0x46e)]()[_0x5eabdb(0x407)](_0x288186),this['setDirty'](!0x0),this[_0x5eabdb(0x17f)]=_0x5eabdb(0x2d1);}['dispose'](){const _0x14597c=_0x44a51f;this[_0x14597c(0x3dc)]=null,this['_model']=null;}};A(Pt,_0x44a51f(0x337),{});export{U as BaseGroupField,H as DataField,rt as DataFieldManager,Je as DateGroupField,Ve as EXCEL_DATE_AFTER_KEY,Be as EXCEL_DATE_BEFORE_KEY,nt as FieldsCollection,a as GlobalConfig,ct as LabelViewItem,G as ManualGroupField,Ze as NUMBER_GROUP_AFTER_KEY,Xe as NUMBER_GROUP_BEFORE_KEY,tt as NumberGroupField,ee as PivotCallbackEnum,ve as PivotCellStyleTypeEnum,h as PivotDataFieldDataTypeEnum,_ as PivotDataFieldSortOperatorEnum,g as PivotDataFieldSortTypeEnum,te as PivotDataFieldTypeEnum,ie as PivotDateGroupFieldDateTypeEnum,ne as PivotDateGroupingMode,d as PivotErrorTypeEnum,re as PivotExcelDateGroupUnit,ae as PivotFilterCategory,f as PivotFilterTypeEnum,y as PivotLayoutTypeEnum,u as PivotShowAsBaseItemTypeEnum,l as PivotShowAsTypeEnum,b as PivotSubtotalPositionEnum,c as PivotSubtotalTypeEnum,Pt as PivotTable,ge as PivotTableChangeTypeEnum,p as PivotTableFiledAreaEnum,Z as PivotTableLabelField,X as PivotTableValueField,m as PivotTableValuePositionEnum,ot as PivotView,_e as PivotViewCellValueTypeEnum,q as PivotViewItem,v as ST_PivotFilterOperatorEnum,S as compilePivotDateFilter,K as createDataFieldFromJSON,Mt as createLabelField,B as createPivotSortCompare,jt as createValueField,Ie as excelDateToUnixMilliseconds,L as generateHexNumber,F as getAutoDisplayName,et as getDefaultNumberGrouping,Se as getPivotDateGroupingMode,pe as getPivotRecordMember,fe as hasPivotMultipleFilters,V as isBaseGroupField,Le as isDateGroupField,Re as isDateGroupFieldJSON,C as isDateValue,ft as isErrorValue,I as isManualPivotFilter,x as isPivotDateFilter,E as isPivotTableFilterRestrictive,dt as isPrefixValue,w as isRecordErrorValue,ce as isValueFilterOperator,We as normalizeExcelDateGrouping,W as normalizeManualGrouping,$e as normalizeNumberGrouping,o as setDateSystem,s as setMaxLimitItemCount};
|
|
1
|
+
import{DateSystem as e,FilterSelectionMode as t,RecordValueType as n,excelSerialToDateTimeParts as r,getRecordValueKey as i}from"@univerjs/core";const a={TUPLE_PLACEHOLDER:`-&&-`,TUPLE_FIELD_SEPARATOR:`-%$%-`,COl_ROOT_PATH:`-$-cr-$-`,ROW_ROOT_PATH:`-$-rr-$-`,BLANK_PLACEHOLDER:`-$-blk-$-`,isDev:!1,defaultSortType:`default`,dateSystem:e.Date1900,maxLimitItemCount:1e3,otherDataKey:`-$-oth-$-`},o=e=>a.dateSystem=e,s=e=>{e>0&&(a.maxLimitItemCount=e)};let c=/* @__PURE__ */ function(e){return e[e.average=1]=`average`,e[e.count=2]=`count`,e[e.countNums=3]=`countNums`,e[e.max=4]=`max`,e[e.min=5]=`min`,e[e.product=6]=`product`,e[e.stdDev=7]=`stdDev`,e[e.stdDevp=8]=`stdDevp`,e[e.sum=9]=`sum`,e[e.var=10]=`var`,e[e.varp=11]=`varp`,e}({}),l=/* @__PURE__ */ function(e){return e[e.normal=1]=`normal`,e[e.percentOfColumnTotal=2]=`percentOfColumnTotal`,e[e.percentOfRowTotal=3]=`percentOfRowTotal`,e[e.percentOfGrandTotal=4]=`percentOfGrandTotal`,e[e.percentOfParentColumnTotal=5]=`percentOfParentColumnTotal`,e[e.percentOfParentRowTotal=6]=`percentOfParentRowTotal`,e[e.percentOfParentGrandTotal=7]=`percentOfParentGrandTotal`,e[e.index=8]=`index`,e[e.differenceFrom=9]=`differenceFrom`,e[e.percentDifferenceFrom=10]=`percentDifferenceFrom`,e[e.runningTotal=11]=`runningTotal`,e[e.percentRunningTotal=12]=`percentRunningTotal`,e[e.percentOf=13]=`percentOf`,e[e.percentOfParent=14]=`percentOfParent`,e[e.rankAscending=15]=`rankAscending`,e[e.rankDescending=16]=`rankDescending`,e}({}),u=/* @__PURE__ */ function(e){return e[e.item=1]=`item`,e[e.previous=2]=`previous`,e[e.next=3]=`next`,e}({}),d=/* @__PURE__ */ function(e){return e[e.Div0=1]=`Div0`,e[e.NotNumber=2]=`NotNumber`,e[e.NotFunction=3]=`NotFunction`,e[e.NotName=4]=`NotName`,e[e.BadReference=5]=`BadReference`,e}({}),f=/* @__PURE__ */ function(e){return e[e.CustomFilter=1]=`CustomFilter`,e[e.ValueFilter=2]=`ValueFilter`,e[e.ManualFilter=3]=`ManualFilter`,e[e.RecordFilter=4]=`RecordFilter`,e}({}),p=/* @__PURE__ */ function(e){return e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e[e.Value=3]=`Value`,e[e.Filter=4]=`Filter`,e[e.Hidden=5]=`Hidden`,e}({}),m=/* @__PURE__ */ function(e){return e[e.None=-1]=`None`,e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e}({}),h=/* @__PURE__ */ function(e){return e[e.text=1]=`text`,e[e.number=2]=`number`,e[e.boolean=3]=`boolean`,e[e.date=4]=`date`,e[e.blank=5]=`blank`,e[e.other=6]=`other`,e}({}),g=/* @__PURE__ */ function(e){return e[e.value=1]=`value`,e[e.field=2]=`field`,e}({}),_=/* @__PURE__ */ function(e){return e[e.ascending=1]=`ascending`,e[e.descending=2]=`descending`,e[e.custom=3]=`custom`,e}({}),v=/* @__PURE__ */ function(e){return e[e.captionBeginsWith=1]=`captionBeginsWith`,e[e.captionBetween=2]=`captionBetween`,e[e.captionContains=3]=`captionContains`,e[e.captionEndsWith=4]=`captionEndsWith`,e[e.captionEqual=5]=`captionEqual`,e[e.captionGreaterThan=6]=`captionGreaterThan`,e[e.captionGreaterThanOrEqual=7]=`captionGreaterThanOrEqual`,e[e.captionLessThan=8]=`captionLessThan`,e[e.captionLessThanOrEqual=9]=`captionLessThanOrEqual`,e[e.captionNotBeginsWith=10]=`captionNotBeginsWith`,e[e.captionNotBetween=11]=`captionNotBetween`,e[e.captionNotContains=12]=`captionNotContains`,e[e.captionNotEndsWith=13]=`captionNotEndsWith`,e[e.captionNotEqual=14]=`captionNotEqual`,e[e.count=15]=`count`,e[e.dateBetween=16]=`dateBetween`,e[e.dateEqual=17]=`dateEqual`,e[e.dateNewerThan=18]=`dateNewerThan`,e[e.dateNewerThanOrEqual=19]=`dateNewerThanOrEqual`,e[e.dateNotBetween=20]=`dateNotBetween`,e[e.dateNotEqual=21]=`dateNotEqual`,e[e.dateOlderThan=22]=`dateOlderThan`,e[e.dateOlderThanOrEqual=23]=`dateOlderThanOrEqual`,e[e.lastMonth=24]=`lastMonth`,e[e.lastQuarter=25]=`lastQuarter`,e[e.lastWeek=26]=`lastWeek`,e[e.lastYear=27]=`lastYear`,e[e.M1=28]=`M1`,e[e.M10=29]=`M10`,e[e.M11=30]=`M11`,e[e.M12=31]=`M12`,e[e.M2=32]=`M2`,e[e.M3=33]=`M3`,e[e.M4=34]=`M4`,e[e.M5=35]=`M5`,e[e.M6=36]=`M6`,e[e.M7=37]=`M7`,e[e.M8=38]=`M8`,e[e.M9=39]=`M9`,e[e.nextMonth=40]=`nextMonth`,e[e.nextQuarter=41]=`nextQuarter`,e[e.nextWeek=42]=`nextWeek`,e[e.nextYear=43]=`nextYear`,e[e.percent=44]=`percent`,e[e.Q1=45]=`Q1`,e[e.Q2=46]=`Q2`,e[e.Q3=47]=`Q3`,e[e.Q4=48]=`Q4`,e[e.sum=49]=`sum`,e[e.thisMonth=50]=`thisMonth`,e[e.thisQuarter=51]=`thisQuarter`,e[e.thisWeek=52]=`thisWeek`,e[e.thisYear=53]=`thisYear`,e[e.today=54]=`today`,e[e.tomorrow=55]=`tomorrow`,e[e.unknown=56]=`unknown`,e[e.valueBetween=57]=`valueBetween`,e[e.valueEqual=58]=`valueEqual`,e[e.valueGreaterThan=59]=`valueGreaterThan`,e[e.valueGreaterThanOrEqual=60]=`valueGreaterThanOrEqual`,e[e.valueLessThan=61]=`valueLessThan`,e[e.valueLessThanOrEqual=62]=`valueLessThanOrEqual`,e[e.valueNotBetween=63]=`valueNotBetween`,e[e.valueNotEqual=64]=`valueNotEqual`,e[e.yearToDate=65]=`yearToDate`,e[e.yesterday=66]=`yesterday`,e}({}),y=/* @__PURE__ */ function(e){return e[e.compact=1]=`compact`,e[e.outline=2]=`outline`,e[e.tabular=3]=`tabular`,e}({}),b=/* @__PURE__ */ function(e){return e[e.top=1]=`top`,e[e.bottom=2]=`bottom`,e}({}),ee=/* @__PURE__ */ function(e){return e.onQueryStart=`onQueryStart`,e.onQueryEnd=`onQueryEnd`,e}({}),te=/* @__PURE__ */ function(e){return e[e.defaultNormalField=1]=`defaultNormalField`,e[e.numberGroupField=2]=`numberGroupField`,e[e.dateGroupField=3]=`dateGroupField`,e[e.textGroupField=4]=`textGroupField`,e[e.customGroupField=5]=`customGroupField`,e}({}),ne=/* @__PURE__ */ function(e){return e.Legacy=`legacy`,e.ExcelLike=`excel-like`,e}({}),re=/* @__PURE__ */ function(e){return e.Year=`year`,e.Quarter=`quarter`,e.Month=`month`,e.Day=`day`,e.Hour=`hour`,e.Minute=`minute`,e.Second=`second`,e}({}),ie=/* @__PURE__ */ function(e){return e.Minute=`minute`,e.Hour=`hour`,e.HourMinute=`hour-minute`,e.Date=`date`,e.Month=`month`,e.MonthDate=`month-date`,e.Quarter=`quarter`,e.Year=`year`,e.YearMonth=`year-month`,e.YearQuarter=`year-quarter`,e.YearMonthDate=`year-month-date`,e}({}),ae=/* @__PURE__ */ function(e){return e.Member=`member`,e.Condition=`condition`,e.Value=`value`,e}({});function oe(e){return Number.isInteger(e)&&e>=16&&e<=23}function x(e){return(e==null?void 0:e.type)===1&&oe(e.operator)}function S(e){if(!x(e)||e.useWholeDay!==void 0&&typeof e.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot date filter.`);let t=e.operator===16||e.operator===20,n=t?e.expected:[e.expected];if(!Array.isArray(n)||n.length!==(t?2:1)||n.some(e=>typeof e!=`number`||!Number.isFinite(e))||t&&n[0]>n[1])throw RangeError(`Pivot date operands must be finite and ordered.`);let r=e.useWholeDay===!0,i=r?Math.floor(n[0]):n[0],a=r?Math.floor(n[1]):n[1],o=e.operator;return e=>{if(!Number.isFinite(e))return!1;let t=r?Math.floor(e):e;switch(o){case 16:return t>=i&&t<=a;case 20:return t<i||t>a;case 17:return t===i;case 21:return t!==i;case 18:return t>i;case 19:return t>=i;case 22:return t<i;case 23:return t<=i;default:return!1}}}function C(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`v`in e&&typeof e.v==`number`&&`f`in e&&typeof e.f==`string`}function w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`}function se(e){let{operator:t,expected:n}=e,r=String(Array.isArray(n)?n[0]:n),i=Array.isArray(n)?String(n[1]):r;return e=>{switch(t){case 1:return e.startsWith(r);case 2:return e>=r&&e<=i;case 3:return e.includes(r);case 4:return e.endsWith(r);case 5:return e===r;case 6:return e>r;case 7:return e>=r;case 8:return e<r;case 9:return e<=r;case 10:return!e.startsWith(r);case 11:return e<r||e>i;case 12:return!e.includes(r);case 13:return!e.endsWith(r);case 14:return e!==r;default:throw TypeError(`Unsupported pivot caption operator.`)}}}function ce(e){switch(e){case 15:case 44:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:return!0;default:return!1}}function le(e,t,n){let r=Math.min(e.length,Math.max(0,Math.ceil(t)));if(r===0)return;if(r===e.length){let t=e[0];for(let r=1;r<e.length;r++)t=n?Math.max(t,e[r]):Math.min(t,e[r]);return t}let i=[],a=e=>{i.push(e);let t=i.length-1;for(;t>0;){let e=Math.floor((t-1)/2);if(i[e]<=i[t])break;[i[e],i[t]]=[i[t],i[e]],t=e}},o=e=>{i[0]=e;let t=0;for(;;){let e=t*2+1,n=e+1,r=t;if(e<i.length&&i[e]<i[r]&&(r=e),n<i.length&&i[n]<i[r]&&(r=n),r===t)break;[i[t],i[r]]=[i[r],i[t]],t=r}};for(let t of e){let e=n?-t:t;i.length<r?a(e):e>i[0]&&o(e)}return n?-i[0]:i[0]}function ue(e){let{operator:t,expected:n}=e;switch(t){case 57:return e=>e>=n[0]&&e<=n[1];case 58:return e=>e===n;case 59:return e=>e>n;case 60:return e=>e>=n;case 61:return e=>e<n;case 62:return e=>e<=n;case 63:return e=>e<n[0]||e>n[1];case 64:return e=>e!==n;default:return console.error(`Unknown filter operator: ${t}`),()=>!0}}function de(e){let t=/* @__PURE__ */ new Set,n=e.filterInfo;return(n==null?void 0:n.type)===4?(he({type:4,selection:n.selection})&&t.add(`member`),n.dateRange!==void 0&&t.add(`condition`)):n&&E(n)&&t.add(n.type===1?`condition`:`member`),e.conditionFilter&&t.add(`condition`),t}function fe(e){let t=/* @__PURE__ */ new Map;for(let r of Object.values(e.dimension)){var n;let i=t.get(r.dataFieldId)??/* @__PURE__ */ new Set;if(de(r).forEach(e=>i.add(e)),(n=e.valueFilter)!=null&&n.some(e=>e.fieldId===r.id)&&i.add(`value`),i.size>1)return!0;t.set(r.dataFieldId,i)}return!1}function pe(e){if(e==null)return{type:n.Blank};if(typeof e==`string`)return{type:n.String,value:e};if(typeof e==`number`){if(!Number.isFinite(e))throw RangeError(`Pivot numeric record values must be finite.`);return{type:n.Number,value:e}}if(typeof e==`boolean`)return{type:n.Boolean,value:e};if(w(e))return{type:n.Error,value:e.error};if(C(e)){if(!Number.isFinite(e.v))throw RangeError(`Pivot date record values must be finite.`);return{type:n.Date,value:e.v}}throw TypeError(`Invalid pivot record value.`)}function me(e){let n=e;if(!O(n)||n.type!==4)throw TypeError(`Invalid pivot record filter.`);let{selection:r,dateRange:a}=n;if(O(a)&&a.useWholeDay!==void 0&&typeof a.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot whole-day mode.`);if(r!==void 0){if(!O(r)||typeof r.mode!=`string`)throw TypeError(`Invalid pivot record selection.`);if(r.mode===t.All){if(`values`in r)throw TypeError(`All selection cannot contain values.`)}else if(r.mode!==t.Include&&r.mode!==t.Exclude||!Array.isArray(r.values))throw TypeError(`Invalid pivot record selection.`);else r.values.forEach(i)}if(a!==void 0&&(!O(a)||typeof a.startDate!=`number`||typeof a.endDate!=`number`||!Number.isFinite(a.startDate)||!Number.isFinite(a.endDate)||a.startDate>a.endDate))throw RangeError(`Invalid pivot date range.`)}function T(e){return(e==null?void 0:e.type)===4}function E(e){return T(e)?(me(e),he(e)):e.type!==3||e.isAll!==!0}function he(e){var n,r;return e.dateRange!==void 0||((n=e.selection)==null?void 0:n.mode)===t.Include||((r=e.selection)==null?void 0:r.mode)===t.Exclude&&e.selection.values.length>0}function D(e){if(e)switch(e.type){case 4:return me(e),{type:4,...e.selection===void 0?null:{selection:e.selection.mode===t.All?{mode:t.All}:{mode:e.selection.mode,values:e.selection.values.map(e=>e.type===n.Blank?{type:n.Blank}:{...e})}},...e.dateRange===void 0?null:{dateRange:{...e.dateRange}}};case 3:return{...e,list:e.list.concat()};case 1:return(e.useWholeDay!==void 0||oe(e.operator))&&S(e),{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected};case 2:return{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected};default:throw TypeError(`Unknown pivot filter type.`)}}function O(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}let ge=/* @__PURE__ */ function(e){return e[e.AddField=0]=`AddField`,e[e.SetSubtotalType=1]=`SetSubtotalType`,e[e.RemoveField=2]=`RemoveField`,e[e.RenameField=3]=`RenameField`,e[e.SetFilterInfo=4]=`SetFilterInfo`,e[e.SetSortInfo=5]=`SetSortInfo`,e[e.UpdateFieldPosition=6]=`UpdateFieldPosition`,e[e.UpdateValuePosition=7]=`UpdateValuePosition`,e[e.SetOptions=8]=`SetOptions`,e[e.SetFieldFormat=9]=`SetFieldFormat`,e[e.SetCollapse=10]=`SetCollapse`,e[e.UpdateSource=11]=`UpdateSource`,e[e.SetValueFilter=12]=`SetValueFilter`,e[e.SetLayout=13]=`SetLayout`,e[e.SetShowDataAs=14]=`SetShowDataAs`,e}({}),_e=/* @__PURE__ */ function(e){return e[e.blank=2]=`blank`,e[e.date=4]=`date`,e[e.other=8]=`other`,e}({}),ve=/* @__PURE__ */ function(e){return e[e.FilterAll=1]=`FilterAll`,e[e.FilterPartial=2]=`FilterPartial`,e[e.FilterSingle=3]=`FilterSingle`,e[e.BlankValue=4]=`BlankValue`,e[e.FilteredSortNone=5]=`FilteredSortNone`,e[e.FilteredSortAsc=6]=`FilteredSortAsc`,e[e.FilteredSortDesc=7]=`FilteredSortDesc`,e[e.FilterNoneSortNone=8]=`FilterNoneSortNone`,e[e.FilterNoneSortAsc=9]=`FilterNoneSortAsc`,e[e.FilterNoneSortDesc=10]=`FilterNoneSortDesc`,e[e.Collapse=11]=`Collapse`,e[e.Expand=12]=`Expand`,e[e.Subtotal=13]=`Subtotal`,e[e.GrandTotal=14]=`GrandTotal`,e[e.MultipleGrandTotal=15]=`MultipleGrandTotal`,e}({});function k(e){"@babel/helpers - typeof";return k=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},k(e)}function ye(e,t){if(k(e)!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(k(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function be(e){var t=ye(e,`string`);return k(t)==`symbol`?t:t+``}function A(e,t,n){return(t=be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e){return typeof e==`number`}var j=class{constructor(){A(this,`_sum`,0),A(this,`_count`,0),A(this,`_countN`,0),A(this,`_product`,1),A(this,`_min`,1/0),A(this,`_max`,-1/0),A(this,`_squareSum`,0)}getInfo(){return{sum:this._sum,count:this._count,countN:this._countN,product:this._product,min:this._min,max:this._max,squareSum:this._squareSum}}reset(){this._sum=0,this._count=0,this._countN=0,this._product=1,this._min=1/0,this._max=-1/0,this._squareSum=0}addValue(e){e!=null&&(this._count+=1,xe(e)&&(this._sum+=e,this._countN+=1,this._product*=e,this._min=Math.min(this._min,e),this._max=Math.max(this._max,e),this._squareSum+=e*e))}unionTuples(e){for(let t of e)this._sum+=t._sum,this._count+=t._count,this._countN+=t._countN,this._product*=t._product,this._min=Math.min(this._min,t._min),this._max=Math.max(this._max,t._max),this._squareSum+=t._squareSum}unionTupleInfo(e){this._sum+=e.sum,this._count+=e.count,this._countN+=e.countN,this._product*=e.product,this._min=Math.min(this._min,e.min),this._max=Math.max(this._max,e.max),this._squareSum+=e.squareSum}getSubtotal(e){switch(e){case 9:return this._sum;case 2:return this._count;case 3:return this._countN;case 6:return Number.isFinite(this._product)?this._product:{errorType:2};case 5:return this._countN>0?this._min:0;case 4:return this._countN>0?this._max:0;case 1:return this._countN>0?this._sum/this._countN:{errorType:1};case 7:return this._countN>1?Math.sqrt(Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*(this._countN-1)))):{errorType:1};case 8:return this._countN>0?Math.sqrt(Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*this._countN))):{errorType:1};case 10:return this._countN>1?Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*(this._countN-1))):{errorType:1};case 11:return this._countN>0?Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*this._countN)):{errorType:1}}}};function Se(e){return(e==null?void 0:e.dateGroupingMode)??`legacy`}function M(e){return e==null||e===``}function N(e){return e===2||e===1||e===4||e===5}function P(e){return e===2||e===1}function F(e,t){let n=``;switch(t){case 1:n=`Average of ${e}`;break;case 2:n=`Count of ${e}`;break;case 3:n=`Count of ${e}`;break;case 4:n=`Max of ${e}`;break;case 5:n=`Min of ${e}`;break;case 6:n=`Product of ${e}`;break;case 7:n=`Standard Deviation of ${e}`;break;case 8:n=`Population Standard Deviation of ${e}`;break;case 9:n=`Sum of ${e}`;break;case 10:n=`Variance of ${e}`;break;case 11:n=`Population Variance of ${e}`;break;default:n=e}return n}function Ce(e,t,n){let r=Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,i=typeof r==`boolean`;return n===void 0?i?r:!1:i?r:r!=null&&Object.prototype.hasOwnProperty.call(r,n)?r[n]:!1}function I(e){return e.type===3}function we(e){return e.type===1}function L(e){let t=``;for(let n=0;n<e;n++){let e=Math.floor(Math.random()*16);t+=e.toString(16)}return t.toUpperCase()}function Te(e,t){let n=0,r=0,i=[];for(;n<e.length&&r<t.length;)e[n]===t[r]?(i.push(e[n]),n++,r++):e[n]<t[r]?n++:r++;return i}function Ee(e){if(e.length===0)return[];if(e.length===1)return e[0];let t=e[0];for(let n=1;n<e.length;n++)t=Te(t,e[n]);return t}function R(e,t,n){e.summary||={},t&&!t.summary&&(t.summary={});for(let r in n){let i=n[r].subTotal,a=e.tuple[r],o=a.getInfo(),{sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}=o;for(let e of i)o[e]=a.getSubtotal(e);e.summary[r]=o,t&&(t.tuple[r]||(t.tuple[r]=new j),t.tuple[r].unionTupleInfo({sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}))}}function De(e){let t=1,n;return e?(I(e)?(e.list.length===1&&(t=3,n=e.list[0]),t=e.isAll===!0?1:2):T(e)&&(t=E(e)?2:1),{value:n,status:t}):{status:t,value:n}}function z(e,t,n){let r=!1;if(e&&(I(e)?r=e.list.length>0&&e.isAll!==!0:we(e)?r=!0:T(e)&&(r=E(e)),n&&(r=!0)),r)switch(t==null?void 0:t.type){case 1:return 6;case 2:return 7;default:return 5}else switch(t==null?void 0:t.type){case 1:return 9;case 2:return 10;default:return 8}}function Oe(e,t,n){let r=t||0,i=e.join(`,`);return n?`${i}-${String(r)}`:i}var ke=class{constructor(){A(this,`_heap`,void 0),this._heap=[]}push(e){this._heap.push(e),this._bubbleUp()}pop(){if(this.size()===0)return;let e=this._heap[0],t=this._heap.pop();return this.size()>0&&t&&(this._heap[0]=t,this._bubbleDown()),e}size(){return this._heap.length}_bubbleUp(){let e=this.size()-1;for(;e>0;){let t=Math.floor((e-1)/2);if(this._heap[t][0]<=this._heap[e][0])break;[this._heap[t],this._heap[e]]=[this._heap[e],this._heap[t]],e=t}}_bubbleDown(){let e=0,t=this.size(),n=this._heap[0];for(;;){let r=2*e+1,i=2*e+2,a,o,s=null;if(r<t&&(a=this._heap[r],a[0]<n[0]&&(s=r)),i<t&&(o=this._heap[i],(s===null&&o[0]<n[0]||s!==null&&o[0]<a[0])&&(s=i)),s===null)break;[this._heap[e],this._heap[s]]=[this._heap[s],this._heap[e]],e=s}}};function Ae(e){let t=new ke,n=[];for(let n=0;n<e.length;n++)e[n].length>0&&t.push([e[n][0],n,0]);for(;t.size()>0;){let[r,i,a]=t.pop();if(n.push(r),a+1<e[i].length){let n=e[i][a+1];t.push([n,i,a+1])}}return n}function B(e,t){if(typeof Intl<`u`&&Intl.Collator){let n=e&&e!==t?[e,t]:[e??t];for(let e of n)try{return new Intl.Collator(e,{usage:`sort`,numeric:!1,sensitivity:`variant`,ignorePunctuation:!1}).compare}catch{}return new Intl.Collator(void 0,{usage:`sort`,numeric:!1,sensitivity:`variant`,ignorePunctuation:!1}).compare}return(e,t)=>e.localeCompare(t)}function je(e,t,n,r=B()){let i=[],a=[],o=[],s=[];for(let n=0;n<e.length;n++){let r=e[n],c=t[n];c===2?i.push(r):c===1?a.push(r):c===4?o.push(r):s.push(r)}let c=(e,t)=>r(e,t)||n[e]-n[t];i.sort((e,t)=>Number(e)-Number(t)),a.sort(c),o.sort((e,t)=>Number(e)-Number(t)),s.sort(c);let l=[...i,...a,...o,...s],u={},d=0;for(let e of l)u[e]=d,d++;return u}function Me(e,t,n){let r=ue({type:1,operator:t,expected:n}),i=[];for(let[t,n]of Object.entries(e))r(Number(t))&&i.push(n);return i}function Ne(e,t,n,r,i,a){let o=(t==null?void 0:t.tuple[n])||e[i].tuple,s=o.getInfo();e[i]={tuple:o},e[a]===void 0&&(e[a]={tuple:new j}),e[a].tuple.unionTupleInfo(s)}function Pe(e){return typeof e!=`number`}function Fe(e){return!(`baseFieldId`in e)&&!(`sortItems`in e)&&`customOrder`in e&&e.type===3}function Ie(e,t=!0){return(t?new Date(Date.UTC(1899,11,30)):new Date(Date.UTC(1904,0,1))).getTime()+e*864e5}function Le(e){return e.getDataFieldType()===3}function V(e){return e.getDataFieldType()!==1}function Re(e){return e.dataFieldType===3}function ze(e,t,n=!0){let r=Ie(e,n),i=new Date(r);switch(t){case`year`:return`${i.getFullYear()}`;case`month`:return`${i.getMonth()+1}`;case`date`:return`${i.getDate()}`;case`month-date`:return`${i.getMonth()+1}_${i.getDate()}`;case`hour`:return`${i.getHours()}`;case`minute`:return`${i.getMinutes()}`;case`quarter`:return`${Math.floor(i.getMonth()/3)+1}`;case`hour-minute`:return`${i.getHours()}_${i.getMinutes()}`;case`year-month`:return`${i.getFullYear()}_${i.getMonth()+1}`;case`year-quarter`:return`${i.getFullYear()}_${Math.floor(i.getMonth()/3)+1}`;case`year-month-date`:return`${i.getFullYear()}_${i.getMonth()+1}_${i.getDate()}`}return``}var H=class{getTupleKey(e){return this._recordTupleKeys[e]}getTupleItemsMap(){return this._tupleItemsMap}getTupleIndexesByKey(e){return this._tupleIndexMap[e]||[]}getTupleLabel(e){return this._tupleLabels[e]}getTupleType(e){return this._tupleTypes[e]}getTupleKeysByLabel(e){var t;return((t=this._tupleKeysByLabel[e])==null?void 0:t.concat())||[]}constructor(e,t,n){A(this,`id`,void 0),A(this,`name`,void 0),A(this,`hexCode`,void 0),A(this,`rangeKey`,void 0),A(this,`records`,[]),A(this,`items`,[]),A(this,`itemTypes`,[]),A(this,`_fieldDataType`,1),A(this,`hasInteger`,!1),A(this,`hasDecimal`,!1),A(this,`hasDate`,!1),A(this,`hasBlank`,!1),A(this,`hasText`,!1),A(this,`hasBoolean`,!1),A(this,`hasError`,!1),A(this,`format`,``),A(this,`maxNumber`,NaN),A(this,`minNumber`,NaN),A(this,`maxDate`,-1/0),A(this,`minDate`,1/0),A(this,`_itemIndexMap`,void 0),A(this,`_itemsMap`,{}),A(this,`_keyCounter`,0),A(this,`_tupleItemsMap`,Object.create(null)),A(this,`_tupleIndexMap`,Object.create(null)),A(this,`_tupleLabels`,Object.create(null)),A(this,`_tupleTypes`,Object.create(null)),A(this,`_recordTupleKeys`,[]),A(this,`_tupleKeysByLabel`,Object.create(null)),A(this,`_overflowRecordIndexes`,/* @__PURE__ */ new Set),A(this,`_tupleKeyCounter`,0),A(this,`_tupleItemCounter`,0),this.id=e,this.name=t,this.hexCode=n,this._itemIndexMap={}}getRangeKey(){return this.rangeKey}getformat(){return this.format}setRangeKey(e){this.rangeKey=e}getId(){return this.id}getName(){return this.name}setName(e){this.name=e}getFieldDataType(){return this.hasDate&&!this.hasText&&!this.hasDecimal&&!this.hasInteger&&!this.hasBoolean&&!this.hasError?4:(this.hasDecimal||this.hasInteger)&&!this.hasText&&!this.hasDate&&!this.hasBoolean&&!this.hasError?2:this._fieldDataType}getDataFieldType(){return 1}getItemSharedKey(e){return this.hexCode+a.TUPLE_FIELD_SEPARATOR+this._itemsMap[e]}getItemKey(e){let t=this.records[e];if(C(t))return String(t.v);if(M(t))return a.BLANK_PLACEHOLDER;let n=w(t)?t.error:String(t);return this._itemsMap[n]===void 0?a.otherDataKey:n}getTypeByKey(e){return this.itemTypes[this._itemsMap[e]]}getValue(e){return this.records[e]}addRecord(e,t){C(e)&&(this.format=e.f,this._updateDateItemKey(e,t));let n=M(e);n&&this._updateBlankItemKey(t),typeof e==`number`&&this._updateNumberItemKey(e,t),!n&&typeof e==`string`&&this._updateStringItemKey(e,t),typeof e==`boolean`&&this._updateBooleanItemKey(e,t),w(e)&&this._updateErrorItemKey(e.error,t),this.records.push(e),this.getDataFieldType()===1&&this._addTupleRecord(e,t)}_addTupleRecord(e,t){let n=this.getItemKey(this.records.length-1),r=1;C(e)?r=4:M(e)?r=5:typeof e==`number`?r=2:typeof e==`boolean`?r=3:w(e)&&(r=6);let i=r===1&&!n.startsWith(`[`)&&n!==a.otherDataKey?n:JSON.stringify([r,n]);(this._overflowRecordIndexes.has(t)||this._tupleItemsMap[i]===void 0&&r!==5&&this._tupleKeyCounter>=a.maxLimitItemCount)&&(n=a.otherDataKey,r=6,i=a.otherDataKey),this._tupleItemsMap[i]===void 0&&(this._tupleItemsMap[i]=this._tupleItemCounter++,r!==5&&this._tupleKeyCounter++,this._tupleIndexMap[i]=[],this._tupleLabels[i]=n,this._tupleTypes[i]=r,(this._tupleKeysByLabel[n]||=[]).push(i)),this._tupleIndexMap[i].push(t),this._recordTupleKeys.push(i)}getIndexesByKey(e){return this._itemIndexMap[e]||[]}getAllIndexMap(){return this._itemIndexMap}_updateDateItemKey(e,t){this.hasDate||=!0,this.maxDate=Math.max(this.maxDate,e.v),this.minDate=Math.min(this.minDate,e.v);let n=String(e.v);this._updateItemKey(n,t,4)}_updateBlankItemKey(e){this.hasBlank||=!0;let t=a.BLANK_PLACEHOLDER;this._itemIndexMap[t]===void 0?(this._itemIndexMap[t]=[e],this.items.push(t),this.itemTypes.push(5),this._itemsMap[t]=this.items.length-1):this._itemIndexMap[t].push(e)}_updateStringItemKey(e,t){this.hasText||=!0,this._updateItemKey(e,t,1)}_updateNumberItemKey(e,t){this.hasDecimal||=e%1!=0,this.hasInteger||=e%1==0,this.maxNumber=Math.max(this.maxNumber,e),this.minNumber=Math.min(this.minNumber,e);let n=String(e);this._updateItemKey(n,t,2)}_updateBooleanItemKey(e,t){this.hasBoolean=!0,this._updateItemKey(String(e),t,3)}_updateErrorItemKey(e,t){this.hasError=!0,this._updateItemKey(e,t,6)}_updateOtherItemKey(e){if(this._overflowRecordIndexes.add(e),this._itemIndexMap[a.otherDataKey]===void 0){this._itemIndexMap[a.otherDataKey]=[e];let t=this.items.push(a.otherDataKey);this._itemsMap[a.otherDataKey]=t-1,this.itemTypes.push(6),this._keyCounter++}else this._itemIndexMap[a.otherDataKey].push(e)}_updateItemKey(e,t,n){if(this._itemIndexMap[e]===void 0){if(this._keyCounter>=a.maxLimitItemCount)return this._updateOtherItemKey(t);this._itemIndexMap[e]=[t];let r=this.items.push(e);this._itemsMap[e]=r-1,this.itemTypes.push(n),this._keyCounter++}else this._itemIndexMap[e].push(t)}getItemsMap(){return this._itemsMap}getFieldInfo(){return{id:this.id,name:this.name,records:this.records,fieldDataType:this.getFieldDataType(),maxNumber:this.maxNumber,minNumber:this.minNumber,maxDate:this.maxDate,minDate:this.minDate,format:this.format,rangeKey:this.rangeKey,dataFieldType:this.getDataFieldType()}}toJSON(){return{id:this.id,name:this.name,fieldDataType:this.getFieldDataType(),hexCode:this.hexCode,rangeKey:this.rangeKey,dataFieldType:this.getDataFieldType()}}fromJSON(e){this.name=e.name,this.id=e.id,this.rangeKey=e.rangeKey,this.hexCode=e.hexCode}reset(){this.records=[],this.items=[],this.itemTypes=[],this._itemIndexMap={},this.hasInteger=!1,this.hasDecimal=!1,this.hasDate=!1,this.hasBlank=!1,this.hasText=!1,this.hasBoolean=!1,this.hasError=!1,this.format=``,this.maxNumber=NaN,this.minNumber=NaN,this.maxDate=-1/0,this.minDate=1/0,this._itemsMap={},this._keyCounter=0,this._recordTupleKeys.length=0,this._tupleKeyCounter=0,this._tupleItemCounter=0,this._overflowRecordIndexes.clear();for(let e of[this._tupleItemsMap,this._tupleIndexMap,this._tupleLabels,this._tupleTypes,this._tupleKeysByLabel])for(let t of Object.keys(e))delete e[t]}},U=class extends H{constructor(...e){super(...e),A(this,`originalFieldId`,void 0)}getTupleKey(e){return this.getItemKey(e)}getTupleItemsMap(){return this.getItemsMap()}getTupleIndexesByKey(e){return this.getIndexesByKey(e)}getTupleLabel(e){return e}getTupleType(e){return this.getTypeByKey(e)}getTupleKeysByLabel(e){return this.getItemsMap()[e]===void 0?[]:[e]}getFieldInfo(){return{...super.getFieldInfo(),originalFieldId:this.getOriginFieldId(),dataFieldType:this.getDataFieldType()}}toJSON(){return{...super.toJSON(),originalFieldId:this.originalFieldId}}};const Be=-1,Ve=1e9,He=[`year`,`quarter`,`month`,`day`,`hour`,`minute`,`second`];function Ue(e){let t=1/0,n=-1/0;for(let r of e.records){let e=r.v;t=Math.min(t,e),n=Math.max(n,e)}return{start:t,end:n}}function We(e,t){let{units:n,daysInterval:i=1}=e;if(!n.length||new Set(n).size!==n.length||n.some(e=>!He.includes(e))||!Number.isInteger(i)||i<1||i>1&&(n.length!==1||n[0]!==`day`))return;let o=t.records,s=a.dateSystem;if(!o.length||o.some(e=>!C(e)||!r(e.v,{dateSystem:s})))return;let c=Ue(t),l=e.autoStart?c.start:e.start,u=e.autoEnd?c.end:e.end;if(!(l===void 0||u===void 0||l>u||!r(l,{dateSystem:s})||!r(u,{dateSystem:s})))return{...e,units:He.filter(e=>n.includes(e))}}const Ge=[0,31,60,91,121,152,182,213,244,274,305,335];function Ke(e){return{...e,...e.dayLabels?{dayLabels:Object.freeze([...e.dayLabels])}:{}}}function qe(e,t,n,r,i){if(e.dayLabels)return e.dayLabels[Ge[r-1]+i-1];if(e.groupByDate===!1)return i;let a=e.daysInterval??1;return Math.floor(n)+Math.floor((Math.floor(t)-Math.floor(n))/a)*a}var Je=class extends U{constructor(e,t,n,r,i,a){super(e,t,n),A(this,`_dataIsValid`,!0),A(this,`_dateType`,void 0),A(this,`_excelLike`,void 0),this.originalFieldId=r,this._dateType=i??`year`,this._excelLike=a&&Ke(a)}setDateType(e){this._dateType=e}getDateType(){return this._dateType}getDateGroupValid(){return this._dataIsValid}refreshGroupField(t){if(this.reset(),this._dataIsValid=!0,this._excelLike){this._refreshExcelLike(t);return}let n=t.records,r=a.dateSystem===e.Date1900;for(let e=0;e<n.length;e++){let t=n[e];if(t==null)continue;if(!C(t)){this._dataIsValid=!1;break}let i=t.v,a=ze(i,this._dateType,r);this.addRecord(a,e)}}_refreshExcelLike(e){let t=this._excelLike;if(!We({...t,units:[t.unit]},e)||t.dayLabels&&(t.unit!==`day`||(t.daysInterval??1)!==1||t.dayLabels.length!==366)){this._dataIsValid=!1;return}let n=e.records.map(e=>e.v),i=Ue(e),o=t.autoStart?i.start:t.start,s=t.autoEnd?i.end:t.end,c=a.dateSystem;for(let e=0;e<n.length;e++){let i=n[e];if(i<o){this.addRecord(-1,e);continue}if(i>s){this.addRecord(Ve,e);continue}let a=r(i,{dateSystem:c}),l=(i-Math.floor(i))*86400,u=Math.round(l),d=2**-52*Math.max(1,Math.abs(i))*86400,f=Math.min(86399,Math.abs(l-u)<=d?u:Math.floor(l)),p;switch(t.unit){case`year`:p=a.year;break;case`quarter`:p=Math.ceil(a.month/3);break;case`month`:p=a.month;break;case`day`:p=qe(t,i,o,a.month,a.day);break;case`hour`:p=Math.floor(f/3600);break;case`minute`:p=Math.floor(f/60)%60;break;case`second`:p=f%60}this.addRecord(p,e)}}getGroupInfo(){return{type:3,dateType:this._dateType,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}getDataFieldType(){return 3}getOriginFieldId(){return this.originalFieldId}getFieldInfo(){return{...super.getFieldInfo(),dateType:this._dateType,originalFieldId:this.originalFieldId,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}toJSON(){return{...super.toJSON(),dateType:this._dateType,originalFieldId:this.originalFieldId,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}fromJSON(e){super.fromJSON(e),this._dateType=(e==null?void 0:e.dateType)??`year`,this.originalFieldId=e.originalFieldId,this._excelLike=e.excelLike&&Ke(e.excelLike)}};function Ye(e,t,n){return!!e&&typeof e.id==`string`&&!!e.id&&!t.has(e.id)&&typeof e.name==`string`&&!!e.name.trim()&&!n.has(e.name)&&Array.isArray(e.members)&&e.members.length>=2}function W(e,t,n){if(!Array.isArray(e==null?void 0:e.groups)||!e.groups.length)return;let r=/* @__PURE__ */ new Set;if(t)try{for(let e of t.records)r.add(i(pe(e)))}catch{return}let a=/* @__PURE__ */ new Map,o=n&&W(n);for(let e of(o==null?void 0:o.groups)??[])a.set(e.id,new Set(e.members.map(i)));let s=/* @__PURE__ */ new Set,c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Set,u=[];for(let n of e.groups){if(!Ye(n,s,c))return;s.add(n.id),c.add(n.name);let e=[];for(let o of n.members){var d;let s;try{s=i(o)}catch{return}if(l.has(s)||t&&!r.has(s)&&!((d=a.get(n.id))!=null&&d.has(s)))return;l.add(s),e.push({...o})}u.push({id:n.id,name:n.name,members:e})}return{groups:u}}var G=class extends U{constructor(e,t,n,r,i){super(e,t,n),A(this,`_grouping`,void 0),A(this,`_dataIsValid`,!0),A(this,`_recordKeys`,[]),A(this,`_displayNames`,/* @__PURE__ */ new Map),this.originalFieldId=r,this._grouping=W(i)??i}getManualGroupValid(){return this._dataIsValid}getGrouping(){return W(this._grouping)??this._grouping}setGrouping(e){this._grouping=W(e)??e}reset(){super.reset(),this._recordKeys=[],this._displayNames.clear()}getItemKey(e){let t=this._recordKeys[e];return this.getItemsMap()[t]===void 0?a.otherDataKey:t}getDisplayNameByKey(e){return this._displayNames.get(e)??e}refreshGroupField(e){this.reset();let t=W(this._grouping);if(this._dataIsValid=!!t,!t)return;let r=/* @__PURE__ */ new Map;for(let e of t.groups)for(let t of e.members)r.set(i(t),e);for(let t=0;t<e.records.length;t++){let o=e.records[t],s,c;try{s=pe(o),c=i(s)}catch{this.reset(),this._dataIsValid=!1;return}let l=r.get(c),u=JSON.stringify(l?[`group`,l.id]:[`member`,c]),d=(l==null?void 0:l.name)??(s.type===n.Blank?a.BLANK_PLACEHOLDER:String(s.value)),f=l?1:this._getMemberType(s);super.addRecord(u,t),this.records[t]=(l==null?void 0:l.name)??o,this._recordKeys[t]=u,this._displayNames.set(u,d);let p=this.getItemsMap()[u];p!==void 0&&(this.itemTypes[p]=f)}}_getMemberType(e){switch(e.type){case n.Blank:return 5;case n.Number:return 2;case n.Date:return 4;case n.Boolean:return 3;case n.Error:return 6;default:return 1}}getGroupInfo(){}getDataFieldType(){return 4}getOriginFieldId(){return this.originalFieldId}toJSON(){return{...super.toJSON(),dataFieldType:4,grouping:this.getGrouping()}}fromJSON(e){super.fromJSON(e),this.originalFieldId=e.originalFieldId,this._grouping=W(e.grouping)??e.grouping}};const Xe=`__number_before__`,Ze=`__number_after__`;function Qe(e,t){if(!Number.isFinite(e.interval)||e.interval<=0||!t.records.length)return;let n=1/0,r=-1/0;for(let e of t.records)if(!M(e)){if(typeof e!=`number`||!Number.isFinite(e))return;n=Math.min(n,e),r=Math.max(r,e)}let i=e.autoStart?n:e.start,a=e.autoEnd?r:e.end;if(!(i===void 0||a===void 0||!Number.isFinite(i)||!Number.isFinite(a)||i>a))return{start:i,end:a}}function $e(e,t){return Qe(e,t)?{...e}:void 0}function et(e){let t=Qe({autoStart:!0,autoEnd:!0,interval:1},e);if(!t)return;let n=t.end-t.start;if(!Number.isFinite(n))return;let r=Math.round(Math.log10(n||Math.abs(t.start)||1))-1,i=Math.max(Number.MIN_VALUE,10**r),a=e.records.every(e=>M(e)||Number.isInteger(e));return{autoStart:!0,autoEnd:!0,...t,interval:a?Math.max(1,i):i}}var tt=class extends U{constructor(e,t,n,r,i){super(e,t,n),A(this,`_grouping`,void 0),A(this,`_dataIsValid`,!0),A(this,`_bounds`,void 0),this.originalFieldId=r,this._grouping={...i}}getNumberGroupValid(){return this._dataIsValid}refreshGroupField(e){this.reset();let t=Qe(this._grouping,e);if(this._bounds=t,this._dataIsValid=!!t,!t)return;let{start:n,end:r}=t,i=(r-n)/this._grouping.interval;if(!Number.isFinite(i)){this._dataIsValid=!1,this._bounds=void 0;return}let a=Math.round(i),o=Math.min(2**-52*8*Math.max(1,Math.abs(i)),1e-6),s=Math.abs(i-a)<=o?a:Math.ceil(i),c=Math.max(0,s-1);for(let t=0;t<e.records.length;t++){let i=e.records[t];if(M(i)){this.addRecord(i,t);continue}let a=i,o=Math.min(2**-52*8*Math.max(Math.abs(a),Math.abs(n)),this._grouping.interval*1e-6),s=Math.min(2**-52*8*Math.max(Math.abs(a),Math.abs(r)),this._grouping.interval*1e-6);if(a<n&&n-a>o)this.addRecord(Xe,t);else if(a>r&&a-r>s)this.addRecord(Ze,t);else{let e=(Math.min(r,Math.max(n,a))-n)/this._grouping.interval;if(!Number.isFinite(e)){this.reset(),this._dataIsValid=!1;return}let i=Math.round(e),o=Math.min(2**-52*8*Math.max(1,Math.abs(e)),1e-6),s=Math.min(c,Math.abs(e-i)<=o?i:Math.floor(e)),l=Number((n+s*this._grouping.interval).toPrecision(15));this.addRecord(l,t)}}}getGroupInfo(){return{type:2,grouping:{...this._grouping,...this._bounds}}}getDataFieldType(){return 2}getOriginFieldId(){return this.originalFieldId}toJSON(){return{...super.toJSON(),dataFieldType:2,grouping:{...this._grouping}}}fromJSON(e){super.fromJSON(e),this.originalFieldId=e.originalFieldId,this._grouping={...e.grouping}}};function K(e){let t;if(Re(e))t=new Je(e.id,e.name,e.hexCode,e.originalFieldId);else if(e.dataFieldType===2){let n=e;t=new tt(e.id,e.name,e.hexCode,n.originalFieldId,n.grouping)}else if(e.dataFieldType===4){let n=e;t=new G(e.id,e.name,e.hexCode,n.originalFieldId,n.grouping)}else t=new H(e.id,e.name,e.hexCode);return t.fromJSON(e),t}var nt=class e{constructor(e){A(this,`fieldIds`,[]),A(this,`displayNameRecord`,{}),A(this,`customFields`,{}),A(this,`range`,void 0),A(this,`dataRecordCount`,void 0),A(this,`host`,void 0),this.host=e}getFieldIds(){return this.fieldIds.concat()}getFieldDisplayNames(){return this.getFieldIds().map(e=>this.getDisplayName(e))}getFieldIdByDisplayName(e){for(let t of this.fieldIds)if(this.getDisplayName(t)===e)return t}getGroupFieldMap(){let e=/* @__PURE__ */ new Map;for(let t of this.fieldIds){let n=this.getFieldById(t);V(n)&&e.set(n.getOriginFieldId(),n.id)}return e}getGroupFieldsInfoByIds(e){let t=[];for(let n of e){let e=this.getFieldById(n);if(e&&!V(e))for(let e of this.fieldIds){let r=this.getFieldById(e);V(r)&&r.getOriginFieldId()===n&&t.push([e,n])}}return t}hasField(e){return this.fieldIds.includes(e)}hasSourceName(e){return this.fieldIds.some(t=>this.getFieldById(t).name===e)}setRange(e){e&&(this.range={...e})}addField(e,t){this.fieldIds.push(e);let n=this.getUniqueDataFieldName(t);this.displayNameRecord[e]=n}deleteField(e){let t=this.fieldIds.indexOf(e);t!==-1&&(this.fieldIds.splice(t,1),delete this.displayNameRecord[e])}getDisplayName(e){let t=this.displayNameRecord[e];return t===void 0?this.getFieldById(e).getName():t}setDisplayName(e,t,n){this.displayNameRecord[e]=this.getUniqueDataFieldName(t,n)}getUniqueDataFieldName(t,n){return e.getUniqueDataFieldName(t,n||this.displayNameRecord)}static getUniqueDataFieldName(e,t){let n=new Set(Object.values(t)),r=e,i=1;if(!n.has(r))return r;for(;;){if(r=`${e}(${i})`,!n.has(r))return r;i++}}updateAllDisplayName(){let e={};for(let t of this.fieldIds)e[t]=this.getUniqueDataFieldName(this.getFieldById(t).getName(),e);this.displayNameRecord=e}getFieldById(e){return this.customFields[e]?this.customFields[e]:this.host.dataFields[e]}setDataRecordCount(e){this.dataRecordCount=e}getDataRecordCount(){return this.dataRecordCount}getDataFieldBySourceName(e){for(let t of this.fieldIds)if(this.getFieldById(t).name===e)return this.getFieldById(t)}getFieldInfo(){let e=this.fieldIds.map(e=>this.getFieldById(e).getFieldInfo()),t=Object.keys(this.customFields).map(e=>this.customFields[e].getFieldInfo());return e.concat(t)}toJSON(){let e={};for(let t of this.fieldIds)e[t]=this.getFieldById(t).toJSON();return{fields:e,fieldIds:this.fieldIds.concat(),displayNameRecord:{...this.displayNameRecord},customFields:Object.keys(this.customFields).map(e=>this.customFields[e].toJSON()),dataRecordCount:this.dataRecordCount,range:this.range}}fromJSON(e){this.fieldIds=e.fieldIds.concat(),this.displayNameRecord=e.displayNameRecord?{...e.displayNameRecord}:{};let t=e.fields;for(let e in t)this.host.dataFields[e]||(this.host.dataFields[e]=K(t[e]));this.customFields={};for(let t of e.customFields){let e=K(t);this.customFields[e.id]=e}this.dataRecordCount=e.dataRecordCount,this.range=e.range}dispose(){this.fieldIds=[],this.customFields={},this.dataRecordCount=0,delete this.host}},rt=class{constructor(){A(this,`dataFields`,{}),A(this,`collections`,{})}compileRecordFilter(e){throw Error(`A record filter evaluator must be provided by the host.`)}createDataFieldId(){let e=L(5);return this.dataFields[e]?this.createDataFieldId():e}getAutoDisplayNameFunction(){return null}getNoUsedDataFieldIds(e){let t=this.collections[e].getFieldIds(),n=/* @__PURE__ */ new Set;for(let t in this.collections)if(t!==e){let e=this.collections[t].getFieldIds();for(let t of e)n.add(t)}return t.filter(e=>!n.has(e))}createCollection(e,t){this.collections[e]=new nt(this);let{header:n,data:r}=this.getRangeData(t),i=this.collections[e],a=[];for(let e of n){let t=this.createDataFieldId(),n=new H(t,e,L(3));this.dataFields[t]=n,i.fieldIds.push(t),a.push(n)}let o=0;for(let e of r){let t=0;for(let n of a)n.addRecord(e[t],o),t++;o++}return i.setDataRecordCount(r.length),i}dispose(){for(let e in this.collections)this.collections[e].dispose();this.collections={},this.dataFields={}}toJSON(){let e={};for(let t in this.collections)e[t]=this.collections[t].toJSON();let t={};for(let e in this.dataFields)t[e]=this.dataFields[e].toJSON();return{collections:e,dataFields:t}}addCollection(e,t,n,...r){this.collections[e]=t,t.setRange(n)}fromJSON(e){for(let t in e.collections){let n=new nt(this);n.fromJSON(e.collections[t]),this.addCollection(t,n,n.range)}for(let t in e.dataFields)this.dataFields[t]=K(e.dataFields[t])}};const it=`0.00%`;function at(e){return e===2||e===3||e===4||e===5||e===6||e===7||e===10||e===12||e===13||e===14}var ot=class{constructor(){A(this,`pageView`,new st),A(this,`rowView`,new lt),A(this,`colView`,new ut),A(this,`dataView`,new q),A(this,`cornerView`,new q),A(this,`formatMap`,{}),A(this,`groupInfo`,{})}setGroupInfo(e){this.groupInfo=e}setFormat(e,t){let n={},r=new Set(t.filter(e=>{var t;return at((t=e.showDataAs)==null?void 0:t.type)}).map(e=>e.id));e.iterateField(e=>{let t=e.getFormat();t?n[e.id]=t:r.has(e.id)&&(n[e.id]=it)});for(let e of r)n[e]??=it;this.formatMap=n}toJSON(){let e={...this.formatMap};return{pageView:this.pageView.toJSON(),rowView:this.rowView.toJSON(),colView:this.colView.toJSON(),dataView:this.dataView.toJSON(),cornerView:this.cornerView.toJSON(),groupInfo:this.groupInfo,formatMap:e}}formJSON(e){this.pageView.fromJSON(e.pageView),this.rowView.fromJSON(e.rowView),this.colView.fromJSON(e.colView),this.dataView.fromJSON(e.dataView),this.cornerView.fromJSON(e.cornerView),this.formatMap={...e.formatMap},this.groupInfo=e.groupInfo}},q=class{constructor(){A(this,`rowCount`,0),A(this,`colCount`,0),A(this,`data`,{}),A(this,`info`,[]),A(this,`lastCol`,-1),A(this,`lastRow`,-1)}getLastCol(){return this.lastCol}getLastRow(){return this.lastRow}setValue(e,t,n){let r=this.getCell(e,t);this.lastCol=Math.max(this.lastCol,t),this.lastRow=Math.max(this.lastRow,e),r.v=n}setStyle(e,t,n){let r=this.getCell(e,t);r.s=n}setBlank(e,t){let n=this.getCell(e,t);n.t=2}setOther(e,t){let n=this.getCell(e,t);n.t=8}getCell(e,t){return this.data[e]||(this.data[e]={}),this.data[e][t]||(this.data[e][t]={}),this.data[e][t]}setInfo(e,t){this.info[e]=t}buildPathMap(e){let t={},n=0;return this.info.forEach(r=>{let i=Oe(r.paths,r.valueIndex,e);t[i]=n,n++}),t}setRowCount(e){this.rowCount=e}setColCount(e){this.colCount=e}getRowCount(){return this.rowCount}getColCount(){return this.colCount}getValue(e,t){var n;return(n=this.data[e])==null||(n=n[t])==null?void 0:n.v}getStyle(e,t){var n;return(n=this.data[e])==null||(n=n[t])==null?void 0:n.s}toJSON(){return{data:this.data,info:this.info.map(e=>({...e,paths:e.paths.concat()})),rowCount:this.rowCount,colCount:this.colCount,lastCol:this.lastCol,lastRow:this.lastRow}}fromJSON(e){this.data=e.data,this.info=e.info.map(e=>({...e,paths:e.paths.concat()})),this.rowCount=e.rowCount,this.colCount=e.colCount,this.lastCol=e.lastCol,this.lastRow=e.lastRow}},st=class extends q{constructor(...e){super(...e),A(this,`ranges`,[]),A(this,`lastCol`,-1),A(this,`lastRow`,-1)}setPageIndex(e,t,n){let r=this.getCell(e,t);r.i=n}addRange(e){this.ranges.push(e)}getRanges(){return this.ranges}setLastCol(e){this.lastCol=e}setLastRow(e){this.lastRow=e}getLastCol(){return this.lastCol}getLastRow(){return this.lastRow}toJSON(){let e=this.ranges.map(e=>({...e}));return{...super.toJSON(),ranges:e,lastCol:this.lastCol,lastRow:this.lastRow}}fromJSON(e){this.ranges=e.ranges.map(e=>({...e})),this.lastCol=e.lastCol,this.lastRow=e.lastRow,super.fromJSON(e)}},ct=class extends q{constructor(...e){super(...e),A(this,`headerMap`,[])}addHeaderMapItem(e,t){this.headerMap[e]=t}getHeaderMapItem(e){return this.headerMap[e]}toJSON(){let e=this.headerMap.map(e=>({...e}));return{...super.toJSON(),headerMap:e}}fromJSON(e){this.headerMap=e.headerMap.map(e=>({...e})),super.fromJSON(e)}},lt=class extends ct{getLastCol(){return Math.max(this.lastCol,this.headerMap.length-1)}},ut=class extends ct{getLastRow(){return Math.max(this.lastRow,this.headerMap.length-1)}};const dt=e=>typeof e==`object`&&e.prefix!==void 0,ft=e=>typeof e==`object`&&e.errorType!==void 0;var pt=class{static prepareLayoutCtx(e,t,n){let r=new ot,i=t.rowDeep,a=t.colDeep,o=e.getOptions(),s=o.pageWrap||1,c=!!o.pageOverThenDown,l=n.valueQueryInfo,u=n.valueFilterInfo,d={};for(let e of u)d[e.fieldId]=e;let f=e.isColMultiMeasure(),p=e.isRowMultiMeasure(),m=e.getValueIndex();l.length>1&&(m===-1&&(m=a),!f&&!p&&(f=!0),f&&(m=Math.min(m,a)),p&&(m=Math.min(m,i)));let h=l.length,g={},_={},v=0;for(let e of l)g[e.id]=e,_[e.id]=v,v++;let y=!!e.getOptions().repeatRowLabels,b=!!e.getOptions().repeatColLabels,ee=e.getOptions().showRowSubtotal??!0,te=e.getOptions().showRowGrandTotal??!0,ne=e.getOptions().showColSubtotal??!0,re=e.getOptions().showColGrandTotal??!0,ie=e.getOptions().rowSubtotalPosition??1;return{isColMultiMeasure:f,isRowMultiMeasure:p,valueIndex:m,rowDeep:i,colDeep:a,rowNodeTree:t.rowNodeTree,colNodeTree:t.colNodeTree,measuresMap:g,measureIndexesMap:_,measureCount:h,pageWrap:s,pageOverThenDown:c,queryData:n,view:r,valueQueryInfo:l,colMap:{},summaryManager:t,collapseInfo:n.collapseInfo,repeatRowLabels:y,repeatColLabels:b,valueFilterMap:d,showRowSubtotal:ee,showRowGrandTotal:te,showColSubtotal:ne,showColGrandTotal:re,rowSubtotalPosition:ie}}static layoutPage(e){let{pageWrap:t,pageOverThenDown:n,view:r}=e,i=r.pageView,a=e.queryData.filterQueryInfo.map(({displayName:t,filterInfo:n,dataFieldId:r})=>{var i;let{status:a,value:o}=De(n);if(o===void 0)return{displayName:t,status:a};let s=(i=e.summaryManager.dimensionMap[r])==null?void 0:i.field,c=s==null?void 0:s.getTypeByKey(o);return{displayName:t,status:a,value:s instanceof G?s.getDisplayNameByKey(o):o,itemType:c}});n?this.layoutPageOverThenDown(a,i,t):this.layoutPageDownThenOver(a,i,t)}static _setPageFilterLabel(e,t,n,r,i){let{displayName:o,value:s,status:c,itemType:l}=i;e.setValue(t,n,o),e.setValue(t,n+1,s),e.setStyle(t,n+1,c),l===5?e.setBlank(t,n+1):l===6&&s===a.otherDataKey&&e.setOther(t,n+1),e.setPageIndex(t,n,r),e.setPageIndex(t,n+1,r)}static layoutPageOverThenDown(e,t,n=1){let r=0,i=0,a=0;for(let o of e)this._setPageFilterLabel(t,i,r*3,a,o),r++,r===n&&(r=0,i++),a++;let o=e.length,s=Math.ceil(o/n),c=o%n;for(let e=0;e<n;e++){let n=c>=e+1?s:s-1;t.addRange({row:0,col:e*3,rowCount:n,colCount:2})}t.setLastRow(s-1);let l=o>n?n*3-2:o*3-2;t.setLastCol(l),t.setRowCount(t.lastRow+1),t.setColCount(t.lastCol+1)}static layoutPageDownThenOver(e,t,n=1){let r=0,i=0,a=0;for(let o of e)this._setPageFilterLabel(t,r,i*3,a,o),r++,r===n&&(r=0,i++),a++;let o=e.length,s=0;for(;s<o;){let e=Math.min(n,o-s);t.addRange({row:0,col:s*3/n,rowCount:e,colCount:2}),s+=n}t.setLastRow(Math.min(o,n)-1),t.setLastCol(Math.ceil(o/n)*3-2),t.setRowCount(t.lastRow+1),t.setColCount(t.lastCol+1)}static layoutCol(e){this.layoutColHeader(e),this.layoutColFields(e),e.summaryManager.prepareShowDataAs(e.queryData)}static layoutCorner(e){}static layoutColHeader(e){let{colDeep:t,view:n,isColMultiMeasure:r,valueIndex:i}=e,a=e.queryData.colQueryInfo,o=n.colView,s=0,c=!1;for(let n=0;n<t;n++){let{displayName:l,filterInfo:u,sortInfo:d,id:f,dataFieldId:p}=a[n];t!==0&&r&&n===i&&(o.setValue(0,s,` Σ值`),c=!0,s++),o.setValue(0,s,l),o.addHeaderMapItem(s+1,{isValue:!1,level:n,tableFieldId:f,dataFieldId:p}),o.setStyle(0,s,z(u,d,e.valueFilterMap[f])),s++}t!==0&&!c&&r&&(o.setValue(0,s,` Σ值`),o.addHeaderMapItem(s+1,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}))}static setValueSize(e){let{view:t}=e,{rowView:n,colView:r,dataView:i}=t;i.setRowCount(n.getRowCount()),i.setColCount(r.getColCount())}static layoutNoneColFields(e,t){let{measureCount:n,isColMultiMeasure:r,valueQueryInfo:i}=e,a=r?i.map(e=>e.id):[],o=this.buildColPathMap(e,t);return n===0?{itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:o}:(this.updateColumnSubtotal(e,0,t,a,o),{itemSize:0,topTotalSize:0,bottomTotalSize:r?n:1,colPathMap:o})}static layoutColFields(e){let{colNodeTree:t,view:n,colDeep:r,isColMultiMeasure:i,valueQueryInfo:a,measureCount:o}=e,s=i?a.map(e=>e.id):[],c=r===0?this.layoutNoneColFields(e,t):this.layoutColNode(e,t,0,s),l=n.colView;if(o===0&&r===0)l.setRowCount(0);else if(o!==0&&r===0&&i)l.setRowCount(1);else if(o!==0&&r===0)l.setRowCount(0);else{let e=r===0?0:1,t=i?r+1+e:r+e;l.setRowCount(t)}l.setColCount(this.getRealSize(c)),e.colMap=l.buildPathMap(i)}static isLeafNode(e,t){return e.getLevel()===t}static getRealSize(e){return e.itemSize+e.topTotalSize+e.bottomTotalSize}static getNodeValue(e,t,n){let{queryData:r,summaryManager:i}=e,{valueQueryInfo:a}=r;return i.getCellValue(t.getIndex(),a[n])}static doColLeafNode(e,t,n,r){let{view:i,isColMultiMeasure:a,valueIndex:o,measureCount:s,measuresMap:c,measureIndexesMap:l,colDeep:u}=e,d=i.colView,f=t.getLevel(),p=this.shouldMultipleNode(a,f,o),m=this.buildColPathMap(e,t),h=t.getFieldsId();if(p){let e=0,i=u===0?0:1;for(let s of r){let r=this.getRowIndexForColHeader(f,o,a)+i;d.setValue(r,n+e,c[s].displayName),d.setInfo(n+e,{level:f,paths:t.getPaths(),valueIndex:a?e:-1,colPathMap:m,tableFieldId:h}),e++}return{itemSize:1*s,topTotalSize:0,bottomTotalSize:0,colPathMap:m}}{let e=a?l[r[0]]:-1;return d.setInfo(n,{level:f,paths:t.getPaths(),valueIndex:e,colPathMap:m,tableFieldId:h}),{itemSize:1,topTotalSize:0,bottomTotalSize:0,colPathMap:m}}}static buildColPathMap(e,t){let n=[],r={};return r[``]=t.getIndex(),t.getIsLeaf()||t.iterate(t=>{this.iterateColLeafNodeChildren(e,t,n.concat([t.name]),r)}),r}static iterateColLeafNodeChildren(e,t,n,r){let{summaryManager:i}=e,a=i.getPathKeyWithFiledId(n,i.rowTableIdList);r[a]=t.getIndex(),t.isLeaf||t.iterate(t=>{let i=n.concat([t.name]);this.iterateColLeafNodeChildren(e,t,i,r)})}static buildColPathMapForCollapse(e,t,n){if(this.isLeafNode(t,e.colDeep)){let r=this.buildColPathMap(e,t);n.push(r)}else t.iterate(t=>{this.buildColPathMapForCollapse(e,t,n)})}static doColBranchNode(e,t,n,r){let{isColMultiMeasure:i,valueIndex:a,view:o,measuresMap:s,summaryManager:c}=e,l=t.getLevel(),u=n,d={itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:{}},f=[],p=this.shouldMultipleNode(i,t.getLevel(),a),m=c.getPathKeyWithFiledId(t.getPaths(),c.colTableIdList);if(p){let n=0;for(let c of r){let r=this.getRowIndexForColHeader(l,a,i);o.colView.setValue(r+1,u,s[c].displayName),t.iterate(t=>{let r=this.layoutColNode(e,t,u,[c]),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=r;d.itemSize+=i,d.topTotalSize+=a,d.bottomTotalSize+=o,u+=this.getRealSize(r),n===0&&f.push(r.colPathMap)}),n++}d.colPathMap=c.combinePathMapList(f,m),u++}else t.iterate(t=>{let n=this.layoutColNode(e,t,u,r),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=n;d.itemSize+=i,d.topTotalSize+=a,d.bottomTotalSize+=o,u+=this.getRealSize(n),f.push(n.colPathMap)}),d.colPathMap=c.combinePathMapList(f,m);return d}static shouldMultipleTotal(e,t,n){return e&&t<=n}static shouldMultipleNode(e,t,n){return e&&t===n}static getRowIndexForColHeader(e,t,n){return n?e<=t?e:e+1:e}static setLabelValue(e,t,n,r,i,a){e.setValue(t,n,r),i&&e.setBlank(t,n),a&&e.setOther(t,n)}static layoutColNode(e,t,n,r){let{view:i,colDeep:a,measureCount:o,isColMultiMeasure:s,valueIndex:c,summaryManager:l}=e,u=i.colView,d=t.displayName,f=t.type===5,p=t.type===6,m=t.type===4||t.type===2?Number(d):d,h=t.getLevel(),g=this.getRowIndexForColHeader(h,c,s),_=this.shouldMultipleTotal(s,h,c),v=t.getCollapse(),y=this.isLeafNode(t,a);if(h!==0&&(this.setLabelValue(u,g,n,m,f,p),y||u.setStyle(g,n,v?11:12)),v){if(y)return{itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:this.buildColPathMap(e,t)};let i=[];this.buildColPathMapForCollapse(e,t,i);let a=l.getPathKeyWithFiledId(t.getPaths(),l.colTableIdList),s=l.combinePathMapList(i,a),c=h!==0||e.showColGrandTotal;return c&&this.updateColumnSubtotal(e,n,t,r,s),{itemSize:0,topTotalSize:0,bottomTotalSize:c?_?o:1:0,colPathMap:s}}if(y)return this.doColLeafNode(e,t,n,r);{let i=this.doColBranchNode(e,t,n,r),a=this.getRealSize(i);if(e.repeatColLabels&&h!==0)for(let e=n+1;e<n+a;e++)this.setLabelValue(u,g,e,m,f,p);return(h===0?e.colDeep===0||e.showColGrandTotal:e.showColSubtotal)&&(this.updateColumnSubtotal(e,n+a,t,r,i.colPathMap),_?i.bottomTotalSize+=o:i.bottomTotalSize++),i}}static getMeasureIndex(e,t,n){return e?n[t[0]]:-1}static updateColumnSubtotal(e,t,n,r,i){let{view:o,isColMultiMeasure:s,valueIndex:c,measuresMap:l,measureIndexesMap:u,colDeep:d,valueQueryInfo:f}=e,p=o.colView,m=n.displayName,h=n.getLevel(),g=this.shouldMultipleTotal(s,h,c);if(h===0){let e=d===0?0:1;if(g){let a=0;for(let o of r){let{displayName:r}=l[o];p.setValue(e,a+t,`${r}`),p.setStyle(e,a+t,15),p.setInfo(a+t,{level:h,paths:n.getPaths(),valueIndex:a,isBottomTotal:!0,colPathMap:i,tableFieldId:``}),a++}}else{d===0&&f.length===1?p.setValue(e,t,f[0].displayName):(p.setValue(e,t,``),p.setStyle(e,t,14));let a=this.getMeasureIndex(s,r,u);p.setInfo(t,{level:h,paths:n.getPaths(),valueIndex:a,isBottomTotal:!0,colPathMap:i,tableFieldId:``})}}else{let e=this.getRowIndexForColHeader(h,c,s),o=n.getCollapse(),d=n.getFieldsId(),f=n.type===5,_=n.type===6;if(o&&e++,g){let e=0,a=h;for(let s of r){let{displayName:r}=l[s],c=o?r:{prefix:n.displayName,value:r};p.setStyle(a,t+e,13),this.setLabelValue(p,a,t+e,c,!o&&f,!o&&_),p.setInfo(t+e,{level:h,paths:n.getPaths(),valueIndex:e,isBottomTotal:!0,colPathMap:i,tableFieldId:d}),e++}}else{o||(this.setLabelValue(p,e,t,m,f,_&&n.name===a.otherDataKey),p.setStyle(e,t,13));let c=this.getMeasureIndex(s,r,u);p.setInfo(t,{level:h,paths:n.getPaths(),valueIndex:c,isBottomTotal:!0,colPathMap:i,tableFieldId:d})}}}},mt=class extends pt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutHeadersWithoutColumnDimensions(e){if(e.colDeep!==0)return;let t=e.view.colView;(e.rowDeep!==0||e.measureCount===1||e.isRowMultiMeasure)&&(e.measureCount===1&&(t.setValue(0,0,e.valueQueryInfo[0].displayName),t.setInfo(0,this.createSingleValueHeaderInfo(e,t.info[0]))),t.setRowCount(1))}static createSingleValueHeaderInfo(e,t){let n=e.valueQueryInfo[0];return{...t,tableFieldId:n.id,dataFieldId:n.dataFieldId,isValue:!0}}static getCornerSize(e){let{rowDeep:t,colDeep:n,measureCount:r,isRowMultiMeasure:i,isColMultiMeasure:a}=e,o=e.view.colView.getRowCount();o===0&&t!==0&&(o=1);let s=e.view.rowView.getColCount();return t===0&&(r===0?s=0:r===1?(s=n===0?0:1,o=n===0?1:o):i?s=1:a&&(s=0)),{rowCount:s,colCount:o}}static layoutCorner(e){let{rowDeep:t,colDeep:n,view:r,measureCount:i,isRowMultiMeasure:a,valueIndex:o}=e,s=e.queryData.rowQueryInfo,c=e.queryData.valueQueryInfo,l=r.cornerView,u=r.rowView,{rowCount:d,colCount:f}=this.getCornerSize(e);l.setRowCount(f),l.setColCount(d),i===1&&n>0&&t>0&&l.setValue(0,0,c[0].displayName);let p=0,m=!1,h=f-1;for(let n=0;n<t;n++){let{displayName:t,filterInfo:r,sortInfo:i,dataFieldId:c,id:d}=s[n];a&&n===o&&(l.setValue(h,p,` Σ值`),m=!0,l.setInfo(p,{paths:[],level:-1,tableFieldId:``,dataFieldId:``,valueIndex:-1,isValue:!0}),u.addHeaderMapItem(p,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}),p++),l.setValue(h,p,t),u.addHeaderMapItem(p,{isValue:!1,level:n,tableFieldId:d,dataFieldId:c}),l.setStyle(h,p,z(r,i,e.valueFilterMap[d])),l.setInfo(p,{paths:[],level:n,tableFieldId:d,dataFieldId:c,valueIndex:-1}),p++}!m&&a&&(l.setValue(h,p,` Σ值`),u.addHeaderMapItem(p,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}))}static layoutRowFields(e){let{rowNodeTree:t,view:n,rowDeep:r,colDeep:i,isRowMultiMeasure:a,isColMultiMeasure:o,valueQueryInfo:s,measureCount:c}=e,l=a?s.map(e=>e.id):[],u=this.layoutRowNode(e,t,0,l),d=n.rowView;d.setRowCount(this.getRealSize(u)),r===0?c===0||o?d.setColCount(0):a?d.setColCount(1):d.setColCount(i===0?0:1):d.setColCount(a?r+1:r)}static doRowLeafNode(e,t,n,r){let{view:i,isRowMultiMeasure:a,valueIndex:o,measureCount:s,measuresMap:c,measureIndexesMap:l}=e,u=i.rowView,d=t.getLevel(),f=t.type===5,p=t.type===6,m=this.shouldMultipleNode(a,d,o),h=t.getFieldsId();if(m){let i=0;for(let s of r){let r=this.getColIndexForRowHeader(d,o,a)+1;u.setValue(n+i,r,c[s].displayName),f&&o!==t.getLevel()&&u.setBlank(n+i,r),p&&o!==t.getLevel()&&u.setOther(n+i,r);let l=t.getPaths();u.setInfo(n+i,{paths:l,valueIndex:a?i:-1,level:d,tableFieldId:h}),this.repeatRowLabelsForNode(e,t,n+i),this.startContent(e,t,n+i,i),i++}return{itemSize:1*s,topTotalSize:0,bottomTotalSize:0}}{let i=a?l[r[0]]:-1,o=t.getPaths();return u.setInfo(n,{level:d,paths:o,valueIndex:i,tableFieldId:h}),this.repeatRowLabelsForNode(e,t,n),d===0&&s===0?{itemSize:0,topTotalSize:0,bottomTotalSize:0,valueIndex:i}:(this.startContent(e,t,n,i),{itemSize:1,topTotalSize:0,bottomTotalSize:0,valueIndex:i})}}static startContent(e,t,n,r){let{measureCount:i}=e;i<=0||(t.iterate(t=>{this.layoutValueNode(e,t,n,r,[t.name])}),this.layoutValueLeafNode(e,t,n,[],r))}static layoutValueNode(e,t,n,r,i){let a=t.getIsLeaf();this.layoutValueLeafNode(e,t,n,i,r),a||(this.layoutValueNodeSubtotal(e,n),t.iterate(t=>{let a=i.concat(t.name);this.layoutValueNode(e,t,n,r,a)}))}static layoutValueNodeSubtotal(e,t){let{view:n,summaryManager:r,valueQueryInfo:i,rowDeep:a,measureCount:o}=e,s=n.dataView,c=n.colView,l=n.rowView.info[t],u=l.paths;if(!(l.level===a||o<=0))for(let n=0;n<c.info.length;n++){let a=c.info[n],{colPathMap:o}=a,d=r.getPathKeyWithFiledId(u,r.rowTableIdList),f=o==null?void 0:o[d],p=this.getMeasureInfoByIndex(e,i,l,a);if(f){let e=r.getCellValue(f,p);e!==void 0&&s.setValue(t,n,e)}}}static getMeasureInfoByIndex(e,t,n,r){let{isColMultiMeasure:i,isRowMultiMeasure:a}=e;return i?t[r.valueIndex]:a?t[n.valueIndex]:t[0]}static layoutValueLeafNode(e,t,n,r,i){let{view:a,colMap:o,isColMultiMeasure:s,measureCount:c}=e,l=a.dataView,u=[];if(i===-1){if(s)for(let e=0;e<c;e++)u.push(e);else c>0&&u.push(0)}else u.push(i);for(let i of u){let a=o[Oe(r,i,s)],c=this.getNodeValue(e,t,i);c!==void 0&&l.setValue(n,a,c)}}static getColIndexForRowHeader(e,t,n){return n?e<=t?e-1:e:e-1}static repeatRowLabelsForNode(e,t,n){if(!e.repeatRowLabels)return;let r=e.view.rowView,i=t.displayPaths,a=Math.min(t.getLevel(),e.rowDeep);for(let t=1;t<=a;t++){let a=this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure);a<0||r.setValue(n,a,i[t-1])}}static doRowBrachNode(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,view:o,measuresMap:s}=e,c=t.getLevel(),l=n,u={itemSize:0,topTotalSize:0,bottomTotalSize:0},d=this.shouldMultipleNode(i,t.getLevel(),a),f=t.type===5,p=t.type===6;if(d){for(let n of r){let r=this.getColIndexForRowHeader(c,a,i),d=o.rowView;d.setValue(l,r+1,s[n].displayName),f&&d.setBlank(l,r+1),p&&d.setOther(l,r+1),t.iterate(t=>{let r=this.layoutRowNode(e,t,l,[n]),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=r;u.itemSize+=i,u.topTotalSize+=a,u.bottomTotalSize+=o,l+=this.getRealSize(r)})}l++}else t.iterate(t=>{let n=this.layoutRowNode(e,t,l,r),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=n;u.itemSize+=i,u.topTotalSize+=a,u.bottomTotalSize+=o,l+=this.getRealSize(n)});return u}static layoutRowNode(e,t,n,r){let{view:i,rowDeep:a,isRowMultiMeasure:o,valueIndex:s,measureCount:c,colDeep:l,valueQueryInfo:u}=e,d=i.rowView,f=t.displayName,p=t.getLevel(),m=this.getColIndexForRowHeader(p,s,o),h=t.getCollapse(),g=this.isLeafNode(t,a),_=t.type===5,v=t.type===6,y=t.type===4||t.type===2,b=p===0;if(!b){let e=y?Number(f):f;d.setValue(n,m,e),_&&d.setBlank(n,m),v&&d.setOther(n,m),g||d.setStyle(n,m,h?11:12)}if(g){let i=b&&!o&&a===0&&l!==0&&u.length===1;b&&!o&&c>0&&(a===0?l!==0&&d.setValue(n,0,u[0].displayName):l!==0&&u.length===1?d.setValue(n,0,u[0].displayName):(d.setValue(n,0,``),d.setStyle(n,0,14)));let s=this.doRowLeafNode(e,t,n,r);return i&&d.setInfo(n,this.createSingleValueHeaderInfo(e,d.info[n])),s}{let i=n,a={itemSize:0,topTotalSize:0,bottomTotalSize:0};h||(a=this.doRowBrachNode(e,t,n,r),i+=this.getRealSize(a));let l=this.shouldMultipleTotal(o,p,s);return(b?e.rowDeep===0||e.showRowGrandTotal:e.showRowSubtotal||h)&&(this.updateRowSubtotal(e,i,t,r),l?a.bottomTotalSize+=c:a.bottomTotalSize++),a}}static updateRowSubtotal(e,t,n,r){let{view:i,isRowMultiMeasure:o,valueIndex:s,measuresMap:c,measureIndexesMap:l,rowDeep:u,colDeep:d,valueQueryInfo:f}=e,p=i.rowView,m=n.getLevel(),h=this.shouldMultipleTotal(o,m,s);if(m===0){if(h){let i=0;for(let a of r){let{displayName:r}=c[a];p.setValue(i+t,0,`${r}`),p.setStyle(i+t,0,15),p.setInfo(i+t,{paths:n.getPaths(),valueIndex:i,isBottomTotal:!0,level:m,tableFieldId:``}),this.layoutValueNodeSubtotal(e,t+i),i++}}else{u===0&&d!==0&&f.length===1?p.setValue(t,0,f[0].displayName):(p.setValue(t,0,``),p.setStyle(t,0,14));let i=o?l[r[0]]:-1;p.setInfo(t,{paths:n.getPaths(),valueIndex:i,isBottomTotal:!0,level:m,tableFieldId:``}),u===0&&d!==0&&f.length===1&&p.setInfo(t,this.createSingleValueHeaderInfo(e,p.info[t])),this.layoutValueNodeSubtotal(e,t)}}else{let i=this.getColIndexForRowHeader(m,s,o),u=n.getCollapse(),d=n.getFieldsId(),f=n.type===5,g=n.type===6;if(u&&i++,h){let a=0,o=e.valueIndex;for(let s of r){let{displayName:r}=c[s];if(u)p.setValue(t+a,o,r);else{let e=u?`${r}`:{prefix:n.displayName,value:r};p.setValue(t+a,i,e),f&&p.setBlank(t+a,i),g&&p.setOther(t+a,i),p.setStyle(t+a,i,13)}p.setInfo(t+a,{paths:n.getPaths(),valueIndex:a,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,t+a),a++}}else{u||(this.setLabelValue(p,t,i,n.displayName,f,g&&n.name===a.otherDataKey),p.setStyle(t,i,13));let s=o?l[r[0]]:-1;p.setInfo(t,{paths:n.getPaths(),valueIndex:s,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,t)}}}},ht=class extends mt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutRowFields(e){let{rowNodeTree:t,view:n,isRowMultiMeasure:r,valueQueryInfo:i,measureCount:a,rowDeep:o,showRowGrandTotal:s}=e,c=n.rowView,l=r?i.map(e=>e.id):[],u=0;if(o===0)a>0&&(u=this.writeGrandTotalRows(e,t,u,l));else{if(this.shouldSplitRootByValues(e))for(let n of l)u=this.writeRootValueHeaderRow(e,u,n),u=this.layoutRowChildren(e,t,u,[n]);else u=this.layoutRowChildren(e,t,u,l);s&&(a>0||o>0)&&(u=this.writeGrandTotalRows(e,t,u,l))}c.setRowCount(u),c.setColCount(this.getRowColCount(e))}static shouldSplitRootByValues(e){return e.isRowMultiMeasure&&e.valueIndex===0}static layoutRowChildren(e,t,n,r){let i=n;return t.iterate(t=>{i=this.layoutRowNodeToCursor(e,t,i,r)}),i}static layoutRowNode(e,t,n,r){return{itemSize:this.layoutRowNodeToCursor(e,t,n,r)-n,topTotalSize:0,bottomTotalSize:0}}static layoutRowNodeToCursor(e,t,n,r){let i=this.isLeafNode(t,e.rowDeep),a=t.getCollapse();if(!i){if(this.shouldWriteMultiValueSubtotalAtBottom(e,t)&&!a){let i=this.writeParentItemRow(e,t,n);if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex))for(let n of r)i=this.writeValueHeaderRow(e,t,i,n),i=this.layoutRowChildren(e,t,i,[n]);else i=this.layoutRowChildren(e,t,i,r);return e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldWriteSubtotalAtBottom(e)&&!a){let i=this.writeParentItemRow(e,t,n);return i=this.layoutRowChildren(e,t,i,r),e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r)i=this.writeParentRows(e,t,i,[n]),a||(i=this.layoutRowChildren(e,t,i,[n]));return i}let i=this.writeParentRows(e,t,n,r);return a||(i=this.layoutRowChildren(e,t,i,r)),i}return this.writeLeafRows(e,t,n,r)}static shouldWriteSubtotalAtBottom(e){return e.rowSubtotalPosition===2}static shouldWriteMultiValueSubtotalAtBottom(e,t){return e.isRowMultiMeasure&&e.valueIndex>0&&t.getLevel()<=e.valueIndex}static writeParentItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),a.setStyle(n,r,12),a.setInfo(n,this.createRowInfo(t,{rowType:`item`})),n+1}static writeValueHeaderRow(e,t,n,r){let i=this.getValueLabelCol(e,t.getLevel()),a=e.measureIndexesMap[r],o=e.view.rowView;return o.setValue(n,i,e.measuresMap[r].displayName),o.setInfo(n,this.createRowInfo(t,{valueIndex:a,isValue:!0,dataFieldId:e.measuresMap[r].dataFieldId,rowType:`value`})),n+1}static writeRootValueHeaderRow(e,t,n){let r=e.measureIndexesMap[n],i=e.measuresMap[n],a=e.view.rowView;return a.setValue(t,0,i.displayName),a.setInfo(t,{paths:[],valueIndex:r,level:-1,tableFieldId:``,dataFieldId:i.dataFieldId,isValue:!0,rowType:`value`}),t+1}static writeParentRows(e,t,n,r){if((e.showRowSubtotal||t.getCollapse())&&e.isRowMultiMeasure&&r.length>1&&this.shouldMultipleTotal(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeParentRow(e,t,i,r,e.measuresMap[n].displayName),i++}return i}let i=e.isRowMultiMeasure&&r.length===1?e.measureIndexesMap[r[0]]:-1,a=e.isRowMultiMeasure&&r.length===1&&e.valueIndex>0&&e.valueIndex<=t.getLevel()?e.measuresMap[r[0]].displayName:void 0;return this.writeParentRow(e,t,n,i,a),n+1}static writeParentRow(e,t,n,r,i){let{showRowSubtotal:a}=e,o=t.getCollapse(),s=a||o,c=this.getRowLabelCol(e,t.getLevel()),l=i?this.getValueLabelCol(e,t.getLevel()):c,u=this.getNodeDisplayValue(t),d=e.view.rowView;d.setValue(n,c,u),this.applyNodeValueType(d,n,c,t),d.setStyle(n,c,o?11:12),i&&l!==c&&d.setValue(n,l,i),d.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:s,isSubtotal:s,isTopTotal:s,rowType:s?`subtotal`:`item`})),s&&this.layoutValueNodeSubtotal(e,n)}static writeBottomSubtotalRows(e,t,n,r){let{isRowMultiMeasure:i,measuresMap:a}=e;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeBottomSubtotalRow(e,t,i,r,a[n].displayName),i++}return i}return this.writeBottomSubtotalRow(e,t,n,i?e.measureIndexesMap[r[0]]:-1),n+1}static writeBottomSubtotalRow(e,t,n,r,i){let a=this.getRowLabelCol(e,t.getLevel()),o=this.getNodeDisplayValue(t),s=e.view.rowView;s.setValue(n,a,i?{prefix:String(o),value:i}:o),this.applyNodeValueType(s,n,a,t),s.setStyle(n,a,13),s.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:!0,isSubtotal:!0,rowType:`subtotal`})),this.layoutValueNodeSubtotal(e,n)}static writeLeafRows(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,measureCount:o,measuresMap:s,measureIndexesMap:c}=e;if(this.shouldMultipleNode(i,t.getLevel(),a)){if(this.shouldWriteLeafValuesUnderItem(e)){let i=this.writeLeafItemRow(e,t,n);for(let n of r){let r=c[n];this.writeLeafValueRow(e,t,i,r,s[n].displayName),this.startContent(e,t,i,r),i++}return i}let i=n;for(let n of r){let r=c[n],a=this.getRowLabelCol(e,t.getLevel()),o=this.getValueLabelCol(e,t.getLevel()),l=this.getNodeDisplayValue(t),u=e.view.rowView;u.setValue(i,a,l),this.applyNodeValueType(u,i,a,t),o!==a&&u.setValue(i,o,s[n].displayName),u.setInfo(i,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,rowType:`item`})),this.startContent(e,t,i,r),i++}return i}let l=i?c[r[0]]:-1,u=this.getRowLabelCol(e,t.getLevel()),d=this.getNodeDisplayValue(t),f=e.view.rowView;return f.setValue(n,u,d),this.applyNodeValueType(f,n,u,t),f.setInfo(n,this.createRowInfo(t,{valueIndex:l,isLeaf:!0,rowType:`item`})),o>0&&this.startContent(e,t,n,l),n+1}static shouldWriteLeafValuesUnderItem(e){return e.isRowMultiMeasure&&e.valueIndex>0}static writeLeafItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),a.setInfo(n,this.createRowInfo(t,{isLeaf:!0,rowType:`item`})),n+1}static writeLeafValueRow(e,t,n,r,i){let a=this.getValueLabelCol(e,t.getLevel()),o=e.view.rowView;o.setValue(n,a,i),o.setInfo(n,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,isValue:!0,rowType:`value`}))}static writeGrandTotalRows(e,t,n,r){let{isRowMultiMeasure:i,measureCount:a,measuresMap:o,measureIndexesMap:s}=e,c=e.view.rowView;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=s[n];c.setValue(i,0,o[n].displayName),c.setStyle(i,0,15),c.setInfo(i,this.createGrandTotalInfo(t,r)),this.layoutGrandTotalValues(e,t,i,r),i++}return i}if(e.rowDeep===0&&!i&&a>0)return e.colDeep!==0&&c.setValue(n,0,e.valueQueryInfo[0].displayName),c.setInfo(n,this.createGrandTotalInfo(t,-1)),e.colDeep!==0&&c.setInfo(n,this.createSingleValueHeaderInfo(e,c.info[n])),this.layoutGrandTotalValues(e,t,n,-1),n+1;if(a>0){let a=i?e.measureIndexesMap[r[0]]:-1;return c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,a)),this.layoutGrandTotalValues(e,t,n,a),n+1}return e.rowDeep>0?(c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,-1)),n+1):n}static layoutGrandTotalValues(e,t,n,r){e.rowDeep===0?this.startContent(e,t,n,r):this.layoutValueNodeSubtotal(e,n)}static createRowInfo(e,t){return{paths:e.getPaths(),valueIndex:-1,level:e.getLevel(),tableFieldId:e.getFieldsId(),...t}}static createGrandTotalInfo(e,t){return{paths:e.getPaths(),valueIndex:t,isBottomTotal:!0,isSubtotal:!0,level:e.getLevel(),tableFieldId:``,rowType:`grandTotal`}}static getRowColCount(e){return e.rowDeep===0?e.measureCount===0||e.isColMultiMeasure?0:e.isRowMultiMeasure||e.colDeep!==0?1:0:1}static getRowLabelCol(e,t){return 0}static getValueLabelCol(e,t){return 0}static getNodeDisplayValue(e){return e.type===4||e.type===2?Number(e.displayName):e.displayName}static applyNodeValueType(e,t,n,r){r.type===5&&e.setBlank(t,n),r.type===6&&e.setOther(t,n)}static repeatRowLabelsForNode(e,t,n){}static layoutColHeader(e){if(super.layoutColHeader(e),e.colDeep===0)return;let t=e.view.colView,n=t.getHeaderMapItem(1);for(let e=1;e<=t.getLastCol();e++)t.setValue(0,e,``);t.setValue(0,0,`Column Labels`),n&&t.addHeaderMapItem(1,{...n,isColumnLabel:!0})}static layoutCorner(e){let{rowDeep:t,colDeep:n,view:r,measureCount:i}=e,a=e.queryData.rowQueryInfo,o=e.queryData.valueQueryInfo,s=r.cornerView,c=r.colView,l=r.rowView,u=c.getRowCount();u===0&&t!==0&&(u=1);let d=l.getColCount();if(s.setRowCount(u),s.setColCount(d),t===0&&n===0&&e.isRowMultiMeasure?s.setValue(0,0,` Σ值`):t===0&&e.isRowMultiMeasure&&s.setValue(u-1,0,` Σ值`),i===1&&n>0&&t>0&&s.setValue(0,0,o[0].displayName),t===0)return;let f=u-1,{filterInfo:p,sortInfo:m,dataFieldId:h,id:g}=a[0];s.setValue(f,0,`Row Labels`),s.setStyle(f,0,z(p,m,e.valueFilterMap[g])),s.setInfo(0,{paths:[],level:0,tableFieldId:g,dataFieldId:h,valueIndex:-1,isRowLabel:!0}),l.addHeaderMapItem(0,{isValue:!1,level:0,tableFieldId:g,dataFieldId:h})}},gt=class extends mt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutRowFields(e){let{rowNodeTree:t,view:n,isRowMultiMeasure:r,valueQueryInfo:i,measureCount:a,rowDeep:o,showRowGrandTotal:s}=e,c=n.rowView,l=r?i.map(e=>e.id):[],u=0;if(o===0)a>0&&(u=this.writeGrandTotalRows(e,t,u,l));else{if(this.shouldSplitRootByValues(e))for(let n of l)u=this.writeRootValueHeaderRow(e,u,n),u=this.layoutRowChildren(e,t,u,[n]);else u=this.layoutRowChildren(e,t,u,l);s&&(a>0||o>0)&&(u=this.writeGrandTotalRows(e,t,u,l))}c.setRowCount(u),c.setColCount(this.getRowColCount(e))}static shouldSplitRootByValues(e){return e.isRowMultiMeasure&&e.valueIndex===0}static layoutRowChildren(e,t,n,r){let i=n;return t.iterate(t=>{i=this.layoutRowNodeToCursor(e,t,i,r)}),i}static layoutRowNode(e,t,n,r){return{itemSize:this.layoutRowNodeToCursor(e,t,n,r)-n,topTotalSize:0,bottomTotalSize:0}}static layoutRowNodeToCursor(e,t,n,r){let i=this.isLeafNode(t,e.rowDeep),a=t.getCollapse();if(!i){if(this.shouldWriteMultiValueSubtotalAtBottom(e,t)&&!a){let i=this.writeParentItemRow(e,t,n);if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex))for(let n of r)i=this.writeValueHeaderRow(e,t,i,n),i=this.layoutRowChildren(e,t,i,[n]);else i=this.layoutRowChildren(e,t,i,r);return e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldWriteSubtotalAtBottom(e)&&!a){let i=this.writeParentItemRow(e,t,n);return i=this.layoutRowChildren(e,t,i,r),e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r)i=this.writeParentRows(e,t,i,[n]),a||(i=this.layoutRowChildren(e,t,i,[n]));return i}let i=this.writeParentRows(e,t,n,r);return a||(i=this.layoutRowChildren(e,t,i,r)),i}return this.writeLeafRows(e,t,n,r)}static shouldWriteSubtotalAtBottom(e){return e.rowSubtotalPosition===2}static shouldWriteMultiValueSubtotalAtBottom(e,t){return e.isRowMultiMeasure&&e.valueIndex>0&&t.getLevel()<=e.valueIndex}static writeParentItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),this.repeatRowLabelsForNode(e,t,n),a.setStyle(n,r,12),a.setInfo(n,this.createRowInfo(t,{rowType:`item`})),n+1}static writeValueHeaderRow(e,t,n,r){let i=this.getValueLabelCol(e,t.getLevel()),a=e.measureIndexesMap[r],o=e.view.rowView;return this.repeatRowLabelsForNode(e,t,n),o.setValue(n,i,e.measuresMap[r].displayName),o.setInfo(n,this.createRowInfo(t,{valueIndex:a,isValue:!0,dataFieldId:e.measuresMap[r].dataFieldId,rowType:`value`})),n+1}static writeRootValueHeaderRow(e,t,n){let r=e.measureIndexesMap[n],i=e.measuresMap[n],a=e.view.rowView;return a.setValue(t,0,i.displayName),a.setInfo(t,{paths:[],valueIndex:r,level:-1,tableFieldId:``,dataFieldId:i.dataFieldId,isValue:!0,rowType:`value`}),t+1}static writeParentRows(e,t,n,r){if((e.showRowSubtotal||t.getCollapse())&&e.isRowMultiMeasure&&r.length>1&&this.shouldMultipleTotal(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeParentRow(e,t,i,r,e.measuresMap[n].displayName),i++}return i}let i=e.isRowMultiMeasure&&r.length===1?e.measureIndexesMap[r[0]]:-1,a=e.isRowMultiMeasure&&r.length===1&&e.valueIndex>0&&e.valueIndex===t.getLevel()?e.measuresMap[r[0]].displayName:void 0;return this.writeParentRow(e,t,n,i,a),n+1}static writeParentRow(e,t,n,r,i){let{showRowSubtotal:a}=e,o=t.getCollapse(),s=a||o,c=this.getRowLabelCol(e,t.getLevel()),l=i?this.getValueLabelCol(e,t.getLevel()):c,u=this.getNodeDisplayValue(t),d=e.view.rowView;d.setValue(n,c,u),this.applyNodeValueType(d,n,c,t),d.setStyle(n,c,o?11:12),this.repeatRowLabelsForNode(e,t,n),i&&d.setValue(n,l,i),d.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:s,isSubtotal:s,isTopTotal:s,rowType:s?`subtotal`:`item`})),s&&this.layoutValueNodeSubtotal(e,n)}static writeBottomSubtotalRows(e,t,n,r){let{isRowMultiMeasure:i,measuresMap:a}=e;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeBottomSubtotalRow(e,t,i,r,a[n].displayName),i++}return i}return this.writeBottomSubtotalRow(e,t,n,i?e.measureIndexesMap[r[0]]:-1),n+1}static writeBottomSubtotalRow(e,t,n,r,i){let a=this.getRowLabelCol(e,t.getLevel()),o=this.getNodeDisplayValue(t),s=e.view.rowView;s.setValue(n,a,i?{prefix:String(o),value:i}:o),this.applyNodeValueType(s,n,a,t),s.setStyle(n,a,13),this.repeatRowLabelsForNode(e,t,n),s.setValue(n,a,i?{prefix:String(o),value:i}:o),s.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:!0,isSubtotal:!0,rowType:`subtotal`})),this.layoutValueNodeSubtotal(e,n)}static writeLeafRows(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,measureCount:o,measuresMap:s,measureIndexesMap:c}=e;if(this.shouldMultipleNode(i,t.getLevel(),a)){if(this.shouldWriteLeafValuesUnderItem(e)){let i=this.writeLeafItemRow(e,t,n);for(let n of r){let r=c[n];this.writeLeafValueRow(e,t,i,r,s[n].displayName),this.startContent(e,t,i,r),i++}return i}let i=n;for(let n of r){let r=c[n],a=this.getRowLabelCol(e,t.getLevel()),o=this.getValueLabelCol(e,t.getLevel()),l=this.getNodeDisplayValue(t),u=e.view.rowView;u.setValue(i,a,l),this.applyNodeValueType(u,i,a,t),this.repeatRowLabelsForNode(e,t,i),u.setValue(i,o,s[n].displayName),u.setInfo(i,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,rowType:`item`})),this.startContent(e,t,i,r),i++}return i}let l=i?c[r[0]]:-1,u=this.getRowLabelCol(e,t.getLevel()),d=this.getNodeDisplayValue(t),f=e.view.rowView;return f.setValue(n,u,d),this.applyNodeValueType(f,n,u,t),this.repeatRowLabelsForNode(e,t,n),f.setInfo(n,this.createRowInfo(t,{valueIndex:l,isLeaf:!0,rowType:`item`})),o>0&&this.startContent(e,t,n,l),n+1}static shouldWriteLeafValuesUnderItem(e){return e.isRowMultiMeasure&&e.valueIndex>0}static writeLeafItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),this.repeatRowLabelsForNode(e,t,n),a.setInfo(n,this.createRowInfo(t,{isLeaf:!0,rowType:`item`})),n+1}static writeLeafValueRow(e,t,n,r,i){let a=this.getValueLabelCol(e,t.getLevel()),o=e.view.rowView;this.repeatRowLabelsForNode(e,t,n),o.setValue(n,a,i),o.setInfo(n,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,isValue:!0,rowType:`value`}))}static writeGrandTotalRows(e,t,n,r){let{isRowMultiMeasure:i,measureCount:a,measuresMap:o,measureIndexesMap:s}=e,c=e.view.rowView;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=s[n];c.setValue(i,0,o[n].displayName),c.setStyle(i,0,15),c.setInfo(i,this.createGrandTotalInfo(t,r)),this.layoutGrandTotalValues(e,t,i,r),i++}return i}if(e.rowDeep===0&&!i&&a>0)return e.colDeep!==0&&c.setValue(n,0,e.valueQueryInfo[0].displayName),c.setInfo(n,this.createGrandTotalInfo(t,-1)),e.colDeep!==0&&c.setInfo(n,this.createSingleValueHeaderInfo(e,c.info[n])),this.layoutGrandTotalValues(e,t,n,-1),n+1;if(a>0){let a=i?s[r[0]]:-1;return c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,a)),this.layoutGrandTotalValues(e,t,n,a),n+1}return e.rowDeep>0?(c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,-1)),n+1):n}static layoutGrandTotalValues(e,t,n,r){e.rowDeep===0?this.startContent(e,t,n,r):this.layoutValueNodeSubtotal(e,n)}static createRowInfo(e,t){return{paths:e.getPaths(),valueIndex:-1,level:e.getLevel(),tableFieldId:e.getFieldsId(),...t}}static createGrandTotalInfo(e,t){return{paths:e.getPaths(),valueIndex:t,isBottomTotal:!0,isSubtotal:!0,level:e.getLevel(),tableFieldId:``,rowType:`grandTotal`}}static getRowColCount(e){let{rowDeep:t,isRowMultiMeasure:n}=e;return t===0?e.measureCount===0||e.isColMultiMeasure?0:n||e.colDeep!==0?1:0:n?t+1:t}static getRowLabelCol(e,t){return this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure)}static getValueLabelCol(e,t){return this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure)+1}static getNodeDisplayValue(e){return e.type===4||e.type===2?Number(e.displayName):e.displayName}static applyNodeValueType(e,t,n,r){r.type===5&&e.setBlank(t,n),r.type===6&&e.setOther(t,n)}},_t=class{constructor(e,t,n){A(this,`_index`,void 0),A(this,`_level`,void 0),A(this,`parentIndex`,void 0),A(this,`paths`,void 0),A(this,`isLeaf`,void 0),A(this,`name`,void 0),A(this,`displayName`,void 0),A(this,`displayPaths`,[]),A(this,`fieldId`,void 0),A(this,`collapse`,void 0),A(this,`sortedList`,[]),A(this,`hasSort`,!1),A(this,`type`,void 0),A(this,`_nodes`,{}),this._index=e,this.fieldId=t,this.type=n}getCollapse(){return this.collapse}setCollapse(e){this.collapse=e}getFieldsId(){return this.fieldId}iterate(e){if(this.hasSort)for(let t of this.sortedList){let n=this._nodes[t];e(n)}else{let t=Object.keys(this._nodes);for(let n=0;n<t.length;n++){let r=this._nodes[t[n]];e(r)}}}getIndex(){return this._index}hasNode(e){return this._nodes[e]!==void 0}setParentIndex(e){this.parentIndex=e}setLevel(e){this._level=e}getLevel(){return this._level}setPaths(e){this.paths=e}getPaths(){return this.paths}setLeaf(){this.isLeaf=!0}getIsLeaf(){return!!this.isLeaf}setName(e){this.name=e}addNode(e,t,n,r,i=t){this._nodes[t]=e,e.setName(t),e.displayName=i,e.displayPaths=this.displayPaths.concat(i),e.setParentIndex(this._index),e.setLevel(this._level+1),e.setPaths(this.paths.concat(t)),n&&(this.sortNode(t,n,r),this.hasSort=!0)}sortNode(e,t,n){let r=t[e],i=this.sortedList,a=0,o=i.length,s=n!==2;for(;a<o;){let e=Math.floor((a+o)/2);(s?t[i[e]]-r:r-t[i[e]])<0?a=e+1:o=e}i.splice(a,0,e)}sortChildrenByValue(e,t,n,r){let i=Object.values(this._nodes);i.some(t=>t.fieldId===e)&&(this.sortedList=i.map((e,t)=>({node:e,index:t})).sort((e,i)=>{let a=n(e.node._index),o=n(i.node._index);return a===o?r(e.node.displayName,i.node.displayName)||e.index-i.index:a===void 0?1:o===void 0?-1:t===2?o-a:a-o}).map(({node:e})=>e.name),this.hasSort=!0);for(let a of i)a.sortChildrenByValue(e,t,n,r)}resetSort(){this.sortedList=[],this.hasSort=!1,Object.values(this._nodes).forEach(e=>e.resetSort())}sortChildrenByLabel(e,t,n){let r=Object.values(this._nodes);r.some(t=>t.fieldId===e)&&(this.sortedList=r.map((e,t)=>({node:e,index:t})).sort((e,r)=>{let i=n[e.node.name],a=n[r.node.name];return i===a?e.index-r.index:i===void 0?1:a===void 0?-1:t===2?a-i:i-a}).map(({node:e})=>e.name),this.hasSort=!0),r.forEach(r=>r.sortChildrenByLabel(e,t,n))}getNode(e){return this._nodes[e]}};const vt={1:{errorType:1},2:{errorType:2},3:{errorType:3},4:{errorType:4},5:{errorType:5}},yt=vt[1],bt=vt[2];function J(e){return typeof e==`object`}var xt=class{constructor(e,t){this._summaryManager=e,this._queryData=t,A(this,`_fieldIndexById`,{}),A(this,`_itemIndexMaps`,[]),A(this,`_rowFieldIndexes`,[]),A(this,`_columnFieldIndexes`,[]),A(this,`_fieldCount`,void 0),A(this,`_coordinates`,[]),A(this,`_tupleByCoordinate`,/* @__PURE__ */ new Map),A(this,`_canonicalTupleIndexes`,/* @__PURE__ */ new Int32Array),A(this,`_rowTotalIndexes`,void 0),A(this,`_columnTotalIndexes`,void 0),A(this,`_grandTotalIndex`,-1),A(this,`_parentRowTotalIndexes`,void 0),A(this,`_parentColumnTotalIndexes`,void 0),A(this,`_parentFieldIndexes`,/* @__PURE__ */ new Map),A(this,`_parentFieldIndexByValueField`,{}),A(this,`_peerIndexesByValueField`,{}),A(this,`_peerUnionsByValueField`,{}),A(this,`_derivedValuesByValueField`,{});let n=[...t.rowQueryInfo,...t.colQueryInfo];this._fieldCount=n.length;for(let r=0;r<n.length;r++){let i=n[r];this._fieldIndexById[i.id]=r,this._itemIndexMaps[r]=e.dimensionMap[i.dataFieldId].field.getTupleItemsMap(),r<t.rowQueryInfo.length?this._rowFieldIndexes.push(r):this._columnFieldIndexes.push(r)}}prepare(){this._buildCoordinateIndex();let e=new Set(this._queryData.valueQueryInfo.map(e=>{var t;return(t=e.showDataAs)==null?void 0:t.type}));this._prepareTotalIndexes(e),this._prepareParentIndexes(e),this._preparePeerIndexes(),this._prepareDerivedBuffers();let t=new Int32Array(this._fieldCount);t.fill(-1),this._grandTotalIndex=this._tupleByCoordinate.get(this._getCoordinateKey(t))??-1}getValue(e,t){var n;let r=this._getRawValue(e,t),i=((n=t.showDataAs)==null?void 0:n.type)??1;if(this._isParentType(i))return this._getParentValue(i,r,e,t);if(this._isPeerType(i))return this._getPeerValue(i,r,e,t);if(this._isDerivedType(i)){let n=this._derivedValuesByValueField[t.id];return this._getDerivedValue(n,e)}switch(i){case 4:return this._divide(r,this._getRawValue(this._grandTotalIndex,t));case 3:return this._divide(r,this._getIndexedRawValue(this._rowTotalIndexes,e,t));case 2:return this._divide(r,this._getIndexedRawValue(this._columnTotalIndexes,e,t));case 8:return this._getIndexValue(r,e,t);default:return r}}dispose(){for(let e of Object.keys(this._peerUnionsByValueField))this._peerUnionsByValueField[e].clear(),delete this._peerUnionsByValueField[e];this._coordinates.length=0,this._tupleByCoordinate.clear(),this._canonicalTupleIndexes=/* @__PURE__ */ new Int32Array,this._rowTotalIndexes=void 0,this._columnTotalIndexes=void 0,this._parentRowTotalIndexes=void 0,this._parentColumnTotalIndexes=void 0,this._parentFieldIndexes.clear();for(let e of Object.keys(this._parentFieldIndexByValueField))delete this._parentFieldIndexByValueField[e];for(let e of Object.keys(this._peerIndexesByValueField))delete this._peerIndexesByValueField[e];for(let e of Object.keys(this._derivedValuesByValueField))delete this._derivedValuesByValueField[e];this._grandTotalIndex=-1}_prepareTotalIndexes(e){let t=e.has(3)||e.has(8),n=e.has(2)||e.has(8);t&&(this._rowTotalIndexes=this._buildTotalIndexes(this._columnFieldIndexes)),n&&(this._columnTotalIndexes=this._buildTotalIndexes(this._rowFieldIndexes))}_prepareParentIndexes(e){e.has(6)&&(this._parentRowTotalIndexes=this._buildParentIndexes(this._rowFieldIndexes)),e.has(5)&&(this._parentColumnTotalIndexes=this._buildParentIndexes(this._columnFieldIndexes));for(let e of this._queryData.valueQueryInfo){var t,n;if(((t=e.showDataAs)==null?void 0:t.type)!==14&&((n=e.showDataAs)==null?void 0:n.type)!==7)continue;let r=this._getFieldIndex(e.showDataAs.baseFieldId);if(r<0||(this._parentFieldIndexByValueField[e.id]=r,this._parentFieldIndexes.has(r)))continue;let i=r<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes;this._parentFieldIndexes.set(r,this._buildParentIndexes(i,r))}}_preparePeerIndexes(){let e=/* @__PURE__ */ new Map;for(let t of this._queryData.valueQueryInfo){let n=t.showDataAs;if(!n||!this._isPeerType(n.type))continue;let r=this._getFieldIndex(n.baseFieldId);if(r<0)continue;let i=n.baseItemType??1,a=[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo][r],o=this._summaryManager.dimensionMap[a.dataFieldId].field.getTupleKeysByLabel(n.baseItem);if(i===1&&o.length>1){let e=/* @__PURE__ */ new Map;for(let n=0;n<this._coordinates.length;n++){let i=this._coordinates[n];if(!i||i[r]<0)continue;let a=new j,s=0,c=!1;for(let e of o){let o=i.slice();o[r]=this._itemIndexMaps[r][e];let l=this._tupleByCoordinate.get(this._getCoordinateKey(o));l!==void 0&&(a.unionTupleInfo(this._summaryManager.tuples[l].tuple[t.dataFieldId].getInfo()),c||=l===this._getCanonicalTupleIndex(n),s++)}s&&e.set(n,{tuple:a,includesCurrent:c})}this._peerUnionsByValueField[t.id]=e;continue}let s=`${r}:${i}:${n.baseItem}`,c=e.get(s);c||(c=this._buildPeerIndexes(r,n.baseItem,i),e.set(s,c)),this._peerIndexesByValueField[t.id]=c}}_prepareDerivedBuffers(){for(let e of this._queryData.valueQueryInfo){let t=e.showDataAs;if(!t)continue;let n=this._getFieldIndex(t.baseFieldId);n<0||(t.type===11||t.type===12?this._derivedValuesByValueField[e.id]=this._buildRunningTotalBuffer(e,n,t.type===12):(t.type===15||t.type===16)&&(this._derivedValuesByValueField[e.id]=this._buildRankBuffer(e,n,t.type===15)))}}_buildCoordinateIndex(){let e=this._summaryManager.tuples.length;this._canonicalTupleIndexes=new Int32Array(e),this._canonicalTupleIndexes.fill(-1);for(let[e,t]of Object.entries(this._summaryManager.tupleMap)){let n=new Int32Array(this._fieldCount);n.fill(-1),this._readPathIntoCoordinate(e,n);let r=this._getCoordinateKey(n),i=this._tupleByCoordinate.get(r);this._coordinates[t]=n,i===void 0?(this._tupleByCoordinate.set(r,t),this._canonicalTupleIndexes[t]=t):this._canonicalTupleIndexes[t]=i}}_readPathIntoCoordinate(e,t){let n=e.split(a.TUPLE_PLACEHOLDER);for(let e of n){let n=e.split(a.TUPLE_FIELD_SEPARATOR);for(let e=0;e<n.length-1;e++){let r=this._fieldIndexById[n[e]];if(r===void 0)continue;let i=this._itemIndexMaps[r][n[e+1]];i!==void 0&&(t[r]=i),e++}}}_buildTotalIndexes(e){let t=new Int32Array(this._summaryManager.tuples.length);t.fill(-1);for(let n=0;n<this._coordinates.length;n++){let r=this._coordinates[n];if(!r)continue;let i=r.slice();for(let t of e)i[t]=-1;t[n]=this._tupleByCoordinate.get(this._getCoordinateKey(i))??-1}return t}_buildParentIndexes(e,t){let n=new Int32Array(this._summaryManager.tuples.length);n.fill(-1);let r=t===void 0?-1:e.indexOf(t);for(let i=0;i<this._coordinates.length;i++){let a=this._coordinates[i];if(!a)continue;if(t!==void 0){if(r<0||a[t]<0)continue;let o=a.slice();for(let t=r+1;t<e.length;t++)o[e[t]]=-1;n[i]=this._tupleByCoordinate.get(this._getCoordinateKey(o))??-1;continue}let o=-1;if(t===void 0){for(let t=e.length-1;t>=0;t--)if(a[e[t]]>=0){o=t;break}}if(o<0){n[i]=this._canonicalTupleIndexes[i];continue}let s=a.slice();for(let t=o;t<e.length;t++)s[e[t]]=-1;n[i]=this._tupleByCoordinate.get(this._getCoordinateKey(s))??-1}return n}_getFieldIndex(e){let t=this._fieldIndexById[e];return t===void 0?[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo].findIndex(t=>t.dataFieldId===e):t}_isParentType(e){return e===6||e===5||e===7||e===14}_isPeerType(e){return e===9||e===10||e===13}_isDerivedType(e){return e===11||e===12||e===15||e===16}_getParentValue(e,t,n,r){if(e===6)return this._divideParent(t,this._getIndexedRawValue(this._parentRowTotalIndexes,n,r));if(e===5)return this._divideParent(t,this._getIndexedRawValue(this._parentColumnTotalIndexes,n,r));let i=this._parentFieldIndexByValueField[r.id];return this._divideParent(t,this._getIndexedRawValue(this._parentFieldIndexes.get(i),n,r))}_getPeerValue(e,t,n,r){var i;let a=(i=this._peerUnionsByValueField[r.id])==null?void 0:i.get(this._getCanonicalTupleIndex(n));if(a){let n=a.tuple.getSubtotal(r.subtotal);return e===13?this._divide(t,n):a.includesCurrent?void 0:e===9?this._difference(t,n):this._percentDifference(t,n)}let o=this._getIndexedTupleIndex(this._peerIndexesByValueField[r.id],n);if(e===13)return this._divide(t,this._getRawValue(o,r));if(o<0||o===this._getCanonicalTupleIndex(n))return;let s=this._getRawValue(o,r);return e===9?this._difference(t,s):this._percentDifference(t,s)}_buildPeerIndexes(e,t,n){let r=new Int32Array(this._summaryManager.tuples.length);r.fill(-1);let i=e<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes,a=i.indexOf(e),o=n===1?void 0:this._buildItemOrders(e,i,a),s=[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo][e],c=this._summaryManager.dimensionMap[s.dataFieldId].field.getTupleKeysByLabel(t)[0],l=this._itemIndexMaps[e][c];for(let t=0;t<this._coordinates.length;t++){let s=this._coordinates[t];if(!s||s[e]<0)continue;let c=l;if(o){let t=this._getParentGroupKey(s,i,a),r=o.get(t),l=r==null?void 0:r.positions.get(s[e]);if(r&&l!==void 0){let e=n===2?-1:1;c=r.items[l+e]}else c=void 0}if(c===void 0)continue;let u=s.slice();u[e]=c,r[t]=this._tupleByCoordinate.get(this._getCoordinateKey(u))??-1}return r}_buildItemOrders(e,t,n){let r=/* @__PURE__ */ new Map,i=e<this._rowFieldIndexes.length?this._summaryManager.rowNodeTree:this._summaryManager.colNodeTree,a=i=>{if(i.getLevel()===n){let a=[],o=/* @__PURE__ */ new Map;i.iterate(t=>{let n=this._itemIndexMaps[e][t.name];n!==void 0&&(o.set(n,a.length),a.push(n))}),r.set(this._getParentNodeKey(i,t,n),{items:a,positions:o})}else i.iterate(a)};return a(i),r}_getParentNodeKey(e,t,n){let r=e.getPaths(),i=[];for(let e=0;e<n;e++)i.push(this._itemIndexMaps[t[e]][r[e]]);return i.join(`,`)}_getParentGroupKey(e,t,n){let r=[];for(let i=0;i<n;i++)r.push(e[t[i]]);return r.join(`,`)}_buildOrderedGroups(e){let t=e<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes,n=t.indexOf(e),r=this._buildItemOrders(e,t,n),i=/* @__PURE__ */ new Map;for(let o of this._tupleByCoordinate.values()){var a;let s=this._coordinates[o];if(!s||s[e]<0)continue;let c=this._getParentGroupKey(s,t,n),l=(a=r.get(c))==null?void 0:a.positions.get(s[e]);if(l===void 0)continue;let u=this._getCoordinateKeyWithoutField(s,e),d=i.get(u);d||(d=[],i.set(u,d)),d[l]=o}return Array.from(i.values())}_getCoordinateKeyWithoutField(e,t){let n=[];for(let r=0;r<e.length;r++)r!==t&&n.push(e[r]);return n.join(`,`)}_buildRunningTotalBuffer(e,t,n){let r=this._createDerivedBuffer();for(let i of this._buildOrderedGroups(t)){let t=0;if(n)for(let n of i){let r=this._getRawValue(n,e);typeof r==`number`&&(t+=r)}let a=0;for(let o of i){let i=this._getRawValue(o,e);i!==void 0&&(J(i)?this._setDerivedError(r,o,i.errorType):(a+=i,n&&t===0?this._setDerivedError(r,o,1):this._setDerivedNumber(r,o,n?a/t:a)))}}return r}_buildRankBuffer(e,t,n){let r=this._createDerivedBuffer(),i=[];for(let a of this._buildOrderedGroups(t)){i.length=0;for(let t of a){let n=this._getRawValue(t,e);typeof n==`number`?i.push({tupleIndex:t,value:n}):J(n)&&this._setDerivedError(r,t,n.errorType)}i.sort((e,t)=>n?e.value-t.value:t.value-e.value);let t=0,o;for(let e=0;e<i.length;e++){let n=i[e];(o===void 0||n.value!==o)&&(t=e+1,o=n.value),this._setDerivedNumber(r,n.tupleIndex,t)}}return r}_createDerivedBuffer(){return{values:new Float64Array(this._summaryManager.tuples.length),states:new Uint8Array(this._summaryManager.tuples.length)}}_setDerivedNumber(e,t,n){e.values[t]=n,e.states[t]=1}_setDerivedError(e,t,n){e.states[t]=n+1}_getDerivedValue(e,t){if(!e)return;let n=this._canonicalTupleIndexes[t],r=n<0?t:n,i=e.states[r];if(i===1)return e.values[r];if(i>1){let e=i-1;return vt[e]}}_getCoordinateKey(e){return e.join(`,`)}_getRawValue(e,t){var n;if(e<0)return;let r=this._summaryManager.tuples[e];return r==null||(n=r.summary)==null||(n=n[t.dataFieldId])==null?void 0:n[t.subtotal]}_getIndexedRawValue(e,t,n){return this._getRawValue(this._getIndexedTupleIndex(e,t),n)}_getIndexedTupleIndex(e,t){return(e==null?void 0:e[this._getCanonicalTupleIndex(t)])??-1}_getCanonicalTupleIndex(e){let t=this._canonicalTupleIndexes[e];return t<0?e:t}_divide(e,t){if(e!==void 0){if(J(e))return e;if(t!==void 0)return J(t)?t:t===0?yt:e/t}}_difference(e,t){if(e!==void 0){if(J(e))return e;if(t!==void 0)return J(t)?t:e-t}}_divideParent(e,t){if(e!==0||t!==0)return this._divide(e,t)}_percentDifference(e,t){if(e!==void 0){if(J(e))return e;if(t!==void 0)return J(t)?t:t===0?yt:(e-t)/t}}_getIndexValue(e,t,n){if(e===void 0||J(e))return e;let r=this._getIndexedRawValue(this._rowTotalIndexes,t,n),i=this._getIndexedRawValue(this._columnTotalIndexes,t,n),a=this._getRawValue(this._grandTotalIndex,n);return r===void 0||i===void 0||a===void 0?bt:J(r)?r:J(i)?i:J(a)?a:r===0||i===0?yt:e*a/(r*i)}};function St(e,t,n,r){if(e.operator!==15&&e.operator!==44)return ue(e);let i=t.map(({v:e})=>{var t;return(t=n[e])==null?void 0:t.tuple.getSubtotal(r)}).filter(e=>typeof e==`number`&&Number.isFinite(e)),a=e.operator===44?Math.ceil(i.length*Number(e.expected)/100):Math.ceil(Number(e.expected)),o=le(i,Math.min(i.length,Math.max(0,a)),!!e.isBottom);return t=>o!==void 0&&(e.isBottom?t<=o:t>=o)}var Ct=class{constructor(e,t,n){A(this,`counter`,void 0),A(this,`rowDimOrder`,void 0),A(this,`colDimOrder`,void 0),A(this,`rowTableIdList`,void 0),A(this,`colTableIdList`,void 0),A(this,`rowDeep`,void 0),A(this,`colDeep`,void 0),A(this,`measureCount`,void 0),A(this,`leafCount`,void 0),A(this,`measuresMap`,{}),A(this,`tuples`,[]),A(this,`tupleMap`,{}),A(this,`dimensionIdList`,[]),A(this,`dimensionTableIdList`,[]),A(this,`measureIdList`,[]),A(this,`_rowLevelPool`,{}),A(this,`_colLevelPool`,{}),A(this,`rowNodeTree`,void 0),A(this,`colNodeTree`,void 0),A(this,`dimensionMap`,{}),A(this,`combinePathMap`,{}),A(this,`collapseInfo`,void 0),A(this,`dimensionSortInfo`,{}),A(this,`valueSortInfo`,{}),A(this,`valueFilterInfo`,[]),A(this,`subtotalMap`,{}),A(this,`_showDataAsResolver`,void 0),A(this,`_defaultSortLocale`,void 0),A(this,`_sortCompareCache`,/* @__PURE__ */ new Map),this.tuples=t.tuples.concat();let r=e.rowQueryInfo,i=e.colQueryInfo,{tuples:a,dimensionMap:o,dimensionTableIdList:s,tupleMap:c,dimensionIdList:l,measuresMap:u,measureIdList:d}=t,f=r.length,p=i.length;this.dimensionTableIdList=s,this.counter=a.length,this.leafCount=a.length,this.collapseInfo=e.collapseInfo,this.tupleMap={...c},this.measuresMap={...u},this.measureIdList=d,this.dimensionIdList=l,this.dimensionMap=o,this.valueFilterInfo=e.valueFilterInfo,this._defaultSortLocale=n;let m=e.valueQueryInfo;for(let e of m){let t=e.id,n=e.subtotal;n!==void 0&&(this.subtotalMap[t]={subTotal:n,dataFieldId:e.dataFieldId})}let h=[],g=[],_=/* @__PURE__ */ new Map;for(let[e,t]of s.entries())_.set(t,e);for(let e=0;e<f;e++){let t=r[e].id;h.push(_.get(t)),g.push(t)}let v=[],y=[];for(let e=0;e<p;e++){let t=i[e].id;v.push(_.get(t)),y.push(t)}this.rowDimOrder=h.concat(v),this.colDimOrder=v.concat(h),this.rowTableIdList=g.concat(y),this.colTableIdList=y.concat(g),this.rowDeep=f,this.colDeep=p,this.measureCount=this.measureIdList.length,this.createSummaryLabelSortedMap(e)}createSummaryLabelSortedMap(e){let{rowQueryInfo:t,colQueryInfo:n}=e;for(let e of[...t,...n]){let t=e.sortInfo,n=e.id;if(t){if(`baseFieldId`in t)this.valueSortInfo[n]=t;else if(Fe(t)){let r={},i=t.customOrder;for(let t=0;t<i.length;t++){let n=i[t];for(let i of this.dimensionMap[e.dataFieldId].field.getTupleKeysByLabel(n))r[i]=t}this.dimensionSortInfo[n]={type:t.type,sortMap:r}}else{let r=this.getSortedMap(n,this.dimensionMap[e.dataFieldId].field,t.sortLocale);this.dimensionSortInfo[n]={type:t.type,sortMap:r}}}else if(a.defaultSortType!=="default"){let t=a.defaultSortType,r=this.getSortedMap(n,this.dimensionMap[e.dataFieldId].field),i=t===`ascending`?1:2;this.dimensionSortInfo[n]={type:i,sortMap:r}}}}getCellValue(e,t){var n;return this._showDataAsResolver?this._showDataAsResolver.getValue(e,t):(n=this.tuples[e])==null||(n=n.summary)==null||(n=n[t.dataFieldId])==null?void 0:n[t.subtotal]}prepareShowDataAs(e){!this._showDataAsResolver&&e.valueQueryInfo.some(e=>{var t;return((t=e.showDataAs)==null?void 0:t.type)&&e.showDataAs.type!==1})&&(this._showDataAsResolver=new xt(this,e),this._showDataAsResolver.prepare())}clearShowDataAsCache(){var e;(e=this._showDataAsResolver)==null||e.dispose(),this._showDataAsResolver=void 0}getSortedMap(e,t,n){let r=this.dimensionSortInfo[e];if(r&&r.sortMap)return r.sortMap;let i=t.getTupleItemsMap(),a=t instanceof U?t.items:Object.keys(i),o=t instanceof U?t.itemTypes:[];if(!(t instanceof U))for(let e of a)o[i[e]]=t.getTupleType(e);if(!(t instanceof U)||t instanceof G){let e=e=>e===2?0:e===1?1:e===4?2:3,r=this._getSortCompare(n),s=a.slice().sort((n,a)=>{let s=o[i[n]],c=o[i[a]],l=e(s)-e(c);if(l)return l;let u=t instanceof G?t.getDisplayNameByKey(n):t.getTupleLabel(n),d=t instanceof G?t.getDisplayNameByKey(a):t.getTupleLabel(a);return s===2||s===4?Number(u)-Number(d)||i[n]-i[a]:r(u,d)||i[n]-i[a]});return Object.fromEntries(s.map((e,t)=>[e,t]))}let s=je(a,o,i,this._getSortCompare(n));if(t instanceof tt){let e=Object.keys(s).sort((e,t)=>s[e]-s[t]),t=[...e.includes(`__number_before__`)?[Xe]:[],...e.filter(e=>e!==`__number_before__`&&e!==`__number_after__`),...e.includes(`__number_after__`)?[Ze]:[]];return Object.fromEntries(t.map((e,t)=>[e,t]))}return s}doSummary(){let e=this._calculateValueFilter();this.buildNodeTree(e),this.calculateSubtotal(e),this._applyLabelSorts(),this._applyValueSorts()}resort(e,t){this.rowNodeTree.resetSort(),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.resetSort(),this.dimensionSortInfo={},this.valueSortInfo={},this._defaultSortLocale!==t&&(this._defaultSortLocale=t,this._sortCompareCache.clear()),this.createSummaryLabelSortedMap(e),this._applyLabelSorts(),this._applyValueSorts()}_applyLabelSorts(){for(let[e,{type:t,sortMap:n}]of Object.entries(this.dimensionSortInfo))this.rowNodeTree.sortChildrenByLabel(e,t,n),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.sortChildrenByLabel(e,t,n)}_applyValueSorts(){for(let[e,t]of Object.entries(this.valueSortInfo)){if(t.sortItems.length>0)continue;let n=this.subtotalMap[t.baseFieldId];if(!n)continue;let r=e=>{var t;let r=(t=this.tuples[e])==null||(t=t.tuple[n.dataFieldId])==null?void 0:t.getSubtotal(n.subTotal);return typeof r==`number`?r:void 0},i=this._getSortCompare(t.sortLocale);this.rowNodeTree.sortChildrenByValue(e,t.type,r,i),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.sortChildrenByValue(e,t.type,r,i)}}_getSortCompare(e){let t=`${e??``}\u0000${this._defaultSortLocale??``}`,n=this._sortCompareCache.get(t);return n||(n=B(e,this._defaultSortLocale),this._sortCompareCache.set(t,n)),n}_getIndex(){return this.counter++}buildNodeTree(e){this.rowNodeTree=this._buildNodeTreeImp(this.rowDimOrder,this.rowTableIdList,this._rowLevelPool,a.ROW_ROOT_PATH,e),this.colNodeTree=this.rowDeep===0||this.colDeep===0?this.rowNodeTree:this._buildNodeTreeImp(this.colDimOrder,this.colTableIdList,this._colLevelPool,a.COl_ROOT_PATH,e)}_createValueFilterLevelPool(e){let t={},n=/* @__PURE__ */ new Map,r=this.leafCount,i=r+1,a=e.length;for(let o=0;o<this.leafCount;o++){let s=this.tuples[o],c=r;for(let r=0;r<a;r++){let l=r===a-1,u=s.path[e[r]],d=o,f=!0;if(!l){let e=n.get(c);e||(e=/* @__PURE__ */ new Map,n.set(c,e));let t=e.get(u);t===void 0?(d=i++,e.set(u,d)):(d=t,f=!1)}if(f){let e=r+1;t[e]=t[e]||[],t[e].push({p:c,v:d})}c=d}}return t}createTupleWithoutCheck(e,t,n){let r={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let t=new j;r.tuple[e]=t}this.tuples[t]=r,this.tupleMap[n]=t}_buildNodeTreeImp(e,t,n,r,i){let a=this._getIndex(),o=new _t(a,``,1);o.setParentIndex(-1),o.setLevel(0),o.setPaths([]),this.createTupleWithoutCheck(o.getPaths(),a,r);let s=this.collapseInfo,c=this.rowDeep+this.colDeep,l=this.dimensionTableIdList;for(let r=0;r<this.leafCount;r++){if(i[r]===0)continue;let a=this.tuples[r],u=o,d=0;for(let i of e){let e=a.path[i],o=a.types[i],f=l[i];if(!u.hasNode(e)){let a=d===c-1,l=a?r:this._getIndex(),p=new _t(l,f,o),m=this.dimensionMap[this.dimensionIdList[i]].field;p.setCollapse(Ce(s,f,m.getTupleLabel(e)));let{sortMap:h,type:g}=this.dimensionSortInfo[f]??{},_=m instanceof G?m.getDisplayNameByKey(e):m.getTupleLabel(e);u.addNode(p,e,h,g,_);let v=p.getLevel();a?p.setLeaf():this.ensureTupleItem(l,p.getPaths(),t),n[v]=n[v]||[],n[v].push({p:u.getIndex(),v:l})}u=u.getNode(e),d++}}return o}combinePathMapList(e,t){if(this.combinePathMap[t])return this.combinePathMap[t];let n={};this.combinePathMap[t]=n;let r={};for(let i of e)for(let e in i){let o=[t,e].join(a.TUPLE_FIELD_SEPARATOR);if(n[e]===void 0){let t=this._getIndex();this.ensureTupleItemByString(t,o),n[e]=t}r[o]===void 0&&(r[o]=[]),r[o].push(i[e])}for(let e in r){let t=r[e],n=this.tuples[this.tupleMap[e]];this.calculateListSubtotal(n,t)}return n}calculateListSubtotal(e,t){e.summary||={};let n=e.summary;for(let r in this.measuresMap){let i=this.measuresMap[r].subTotal,a=e.tuple[r],o=t.map(e=>this.tuples[e].tuple[r]);a.unionTuples(o);let s=a.getInfo();for(let e of i)s[e]=a.getSubtotal(e);n[r]=s}}calculateSubtotal(e){this._calculateSubtotalImp(this._rowLevelPool,e),this._calculateSubtotalImp(this._colLevelPool,e);let t=this.tuples[this.rowNodeTree.getIndex()],n=this.tuples[this.colNodeTree.getIndex()];this.rowDeep+this.colDeep===0&&this.tuples.length>0&&R(this.tuples[0],t,this.measuresMap),R(t,void 0,this.measuresMap),R(n,void 0,this.measuresMap)}getPathKeyWithFiledId(e,t){let n=[];for(let r=0;r<e.length;r++)n.push(`${t[r]}${a.TUPLE_FIELD_SEPARATOR}${e[r]}`);return n.join(a.TUPLE_PLACEHOLDER)}ensureTupleItem(e,t,n){if(!this.tuples[e]){let r=this.getPathKeyWithFiledId(t,n);this.createTupleWithoutCheck(t,e,r)}}ensureTupleItemByString(e,t){this.tuples[e]||this.createTuple([],t,e)}createTuple(e,t,n){let r=t||e.join(a.TUPLE_PLACEHOLDER);if(!this.tupleMap[r]){let t={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let n=new j;t.tuple[e]=n}if(n===void 0){let e=this.tuples.push(t);this.tupleMap[r]=e-1}else this.tuples[n]=t,this.tupleMap[r]=n}}_calculateValueFilter(){let e=this.valueFilterInfo,t=new Uint8Array(this.leafCount);if(t.fill(1),e.length===0)return t;let n=this._createValueFilterLevelPool(this.rowDimOrder),r=this.rowDeep===0||this.colDeep===0?n:this._createValueFilterLevelPool(this.colDimOrder);for(let{fieldId:i,filterInfo:a}of e)this._doValueFilter(i,a.valueFieldId,a,t,n,r);return t}_doValueFilter(e,t,n,r,i,a){let o=this._getValueFilterTree(e,i,a);if(o){let{pool:i,fieldIdList:a}=o,s=a.indexOf(e);if(s===-1)return;let c=this.rowDeep+this.colDeep,l=[],u=this.subtotalMap[t].subTotal,d=this.subtotalMap[t].dataFieldId;for(let e=c;e>s;e--)if(i[e]){let t=i[e];for(let{p:n,v:i}of t)(c!==e||r[i]!==0)&&Ne(l,e===c?this.tuples[i]:void 0,d,u,i,n)}let f=i[s+1]??[],p=St(n,f,l,u),m=/* @__PURE__ */ new Set;for(let{v:e}of f){if(l[e]===void 0)continue;let t=l[e].tuple.getSubtotal(u);Pe(t)?m.add(e):p(t)||m.add(e)}let h=s+1;if(h===c){for(let e of m)r[e]=0;return}for(;i[h+1];){let e=/* @__PURE__ */ new Set,t=i[h+1];for(let{p:n,v:i}of t)m.has(n)&&(e.add(i),h+1===c&&(r[i]=0));h++,m=e}}}_getValueFilterTree(e,t,n){if(this.rowDeep===0||this.colDeep===0)return{pool:t,fieldIdList:this.rowTableIdList};let r=this.rowTableIdList.findIndex(t=>t===e);if(r>=0&&r<this.rowDeep)return{pool:t,fieldIdList:this.rowTableIdList};let i=this.colTableIdList.findIndex(t=>t===e);return i>=0&&i<this.colDeep?{pool:n,fieldIdList:this.colTableIdList}:null}_calculateSubtotalImp(e,t){let n=this.rowDeep+this.colDeep;for(let r=n;r>=0;r--)if(e[r]){let n=e[r];for(let{p:e,v:r}of n){if(r<this.leafCount&&t[r]===0)continue;let n=this.tuples[r];R(n,this.tuples[e],this.measuresMap)}}}},wt=class{constructor(){A(this,`tuples`,[]),A(this,`tupleMap`,{}),A(this,`measuresMap`,{}),A(this,`dimensionIdList`,[]),A(this,`dimensionTableIdList`,[]),A(this,`measureIdList`,[]),A(this,`dimensionMap`,{}),A(this,`rowDeep`,0),A(this,`colDeep`,0),A(this,`_fieldsCollection`,void 0)}prepare(e,t){this._fieldsCollection=e;let{valueQueryInfo:n,rowQueryInfo:r,colQueryInfo:i,filterQueryInfo:a,hiddenQueryInfo:o=[]}=t;for(let t of n){let n=t.dataFieldId,r=e.getFieldById(n);if(!r)continue;this.measuresMap[n]||(this.measureIdList.push(n),this.measuresMap[n]={field:r,subTotal:[]});let i=this.measuresMap[n],{subtotal:a}=t;i.subTotal.includes(a)||i.subTotal.push(a)}let s=r.length+i.length,c=0;for(let t of[...r,...i,...a,...o]){let n=e.getFieldById(t.dataFieldId);n&&(this.dimensionMap[t.dataFieldId]||(this.dimensionMap[t.dataFieldId]={field:n}),c<s?(this.dimensionIdList.push(t.dataFieldId),this.dimensionTableIdList.push(t.id)):c<s+a.length&&t.filterInfo&&I(t.filterInfo)&&(t.filterInfo.isAll=n.items.length===t.filterInfo.list.length),c++)}this.rowDeep=r.length,this.colDeep=i.length}filter(e){let{rowQueryInfo:t,colQueryInfo:n,filterQueryInfo:r,hiddenQueryInfo:i=[]}=e,a=[],o=!1,s=[...t,...n,...r,...i].flatMap(e=>e.conditionFilter?[e,{...e,filterInfo:e.conditionFilter,conditionFilter:void 0}]:[e]);for(let{dataFieldId:e,filterInfo:t}of s){var c;if(t===void 0)continue;let n=(c=this.dimensionMap[e])==null?void 0:c.field;if(!n)throw TypeError(`Missing constrained pivot field: ${e}`);if(T(t)){if(!E(t))continue;let e=this._fieldsCollection.host.compileRecordFilter(t);o=!0;let r=[];for(let t=0;t<n.records.length;t++)e(n.records[t])&&r.push(t);a.push(r)}else if(I(t)){o=!0;let{list:e}=t,r=[];for(let t of e)r.push(n.getIndexesByKey(t));a.push(Ae(r))}else if(we(t)){if(o=!0,x(t)){let e=S(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t];C(i)&&e(i.v)&&r.push(t)}a.push(r);continue}let{operator:e,expected:r}=t;if(e>=1&&e<=14){let e=se(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t],a=String(i??``);C(i)?a=String(i.v):w(i)&&(a=i.error),e(a)&&r.push(t)}a.push(r);continue}if(n.getFieldDataType()===2){let t=Me(n.getAllIndexMap(),e,r);a.push(Ae(t))}}}return!o&&a.length===0?{isAll:!0,list:[]}:{isAll:!1,list:Ee(a)}}query(e,t){this.prepare(e,t);let{isAll:n,list:r}=this.filter(t);this.iterate(n,r,e.getDataRecordCount())}reset(){this.tuples=[],this.measuresMap={},this.dimensionMap={},this.tupleMap={},this.dimensionIdList=[],this.dimensionTableIdList=[],this.measureIdList=[]}iterate(e,t,n=0){let r=this.dimensionTableIdList;if(e)for(let e=0;e<n;e++){let t=[],n=[],i=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);i.push(r[o]+a.TUPLE_FIELD_SEPARATOR+l),t.push(l),n.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(t,i,e,n)}for(let e of t){let t=[],n=[],i=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);i.push(r[o]+a.TUPLE_FIELD_SEPARATOR+l),t.push(l),n.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(t,i,e,n)}}createOrUpdateTuple(e,t,n,r){let i=t.join(a.TUPLE_PLACEHOLDER);this.tupleMap[i]===void 0&&this.createTuple(e,i,void 0,r);let o=this.tuples[this.tupleMap[i]];o.indexes.push(n);for(let e of this.measureIdList){let t=o.tuple[e],r=this.measuresMap[e].field.getValue(n);t.addValue(r)}}createTuple(e,t,n,r=[]){let i=t||e.join(a.TUPLE_PLACEHOLDER);if(!this.tupleMap[i]){let t={path:e,types:r,indexes:[],tuple:{}};for(let e of this.measureIdList){let n=new j;t.tuple[e]=n}if(n===void 0){let e=this.tuples.push(t);this.tupleMap[i]=e-1}else this.tuples[n]=t,this.tupleMap[i]=n}}};const Tt=e=>e.baseFieldId!==void 0,Et=e=>{if(Tt(e)){let{type:t,baseFieldId:n,sortItems:r,sortLocale:i}=e;return{type:t,baseFieldId:n,sortItems:r.concat(),...i===void 0?{}:{sortLocale:i}}}return`customOrder`in e?{...e,customOrder:e.customOrder.concat()}:{...e}},Y=e=>({...e}),Dt=()=>({type:1,baseFieldId:``,baseItem:``});var Ot=class{constructor(e,t,n=``,r){A(this,`dataFieldId`,void 0),A(this,`id`,void 0),A(this,`sourceName`,void 0),A(this,`displayName`,void 0),A(this,`format`,void 0),A(this,`lossLessProperty`,void 0),this.dataFieldId=e,this.id=t,this.displayName=n,this.sourceName=r}getId(){return this.id}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}setDataFieldId(e){this.dataFieldId=e}getDataFieldId(){return this.dataFieldId}getFormat(){return this.format}setFormat(e){this.format=e}setDisplayName(e){this.displayName=e}getDisplayName(){return this.displayName}},X=class extends Ot{constructor(e,t,n=``,r){super(e,t,n,r),A(this,`subtotal`,void 0),A(this,`showDataAs`,Dt())}setSubtotal(e){this.subtotal=e}getSubtotal(){return this.subtotal}setShowDataAs(e){this.showDataAs=Y(e)}getShowDataAs(){return Y(this.showDataAs)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,subtotal:this.subtotal,showDataAs:Y(this.showDataAs)}}toJSON(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sourceName:this.sourceName,subtotal:this.subtotal,format:this.format,showDataAs:Y(this.showDataAs)}}fromJSON(e){this.id=e.id,this.dataFieldId=e.dataFieldId,this.displayName=e.displayName,this.sourceName=e.sourceName,this.format=e.format,this.subtotal=e.subtotal;let t=e.showDataAs;this.showDataAs=(t==null?void 0:t.type)===void 0?Dt():Y(t)}},Z=class extends Ot{constructor(e,t,n=``,r){super(e,t,n,r),A(this,`sortInfo`,void 0),A(this,`filterInfo`,void 0),A(this,`conditionFilter`,void 0)}setSortInfo(e){this.sortInfo=e?Et(e):void 0}getSortInfo(){return this.sortInfo?Et(this.sortInfo):void 0}setFilterInfo(e){this.filterInfo=T(e)||x(e)?D(e):e}getFilterInfo(){return T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):this.filterInfo}getConditionFilterInfo(){var e;return D(this.conditionFilter??(((e=this.filterInfo)==null?void 0:e.type)===1?this.filterInfo:void 0))}setConditionFilterInfo(e){if(e!==void 0&&e.type!==1&&(!T(e)||!e.dateRange||e.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);this.conditionFilter=D(e)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sortInfo:this.getSortInfo(),filterInfo:this.filterInfo&&(T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):Object.assign({},this.filterInfo)),...this.conditionFilter?{conditionFilter:this.getConditionFilterInfo()}:{}}}toJSON(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,format:this.format,sourceName:this.sourceName,sortInfo:this.sortInfo?Et(this.sortInfo):void 0,filterInfo:T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):this.filterInfo||void 0,...this.conditionFilter?{conditionFilter:this.getConditionFilterInfo()}:{}}}fromJSON(e){var t;if(e.conditionFilter&&(((t=e.filterInfo)==null?void 0:t.type)===1||T(e.filterInfo)&&e.filterInfo.dateRange!==void 0))throw TypeError(`A pivot field cannot contain two date/label conditions.`);this.id=e.id,this.dataFieldId=e.dataFieldId,this.displayName=e.displayName,this.sourceName=e.sourceName,this.format=e.format,e.sortInfo&&this.setSortInfo(e.sortInfo),e.filterInfo&&(this.filterInfo=T(e.filterInfo)||x(e.filterInfo)?D(e.filterInfo):e.filterInfo),this.setConditionFilterInfo(e.conditionFilter)}};function kt(e,t=!0){let n=new X(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(F(e.getDisplayName(),9),n.subtotal=9,e.lossLessProperty){let t=e.lossLessProperty;t.showDataAs&&(n.showDataAs=t.showDataAs),t.subtotal!==void 0&&(n.subtotal=t.subtotal)}return t&&(n.lossLessProperty={sortInfo:e.getSortInfo(),filterInfo:e.getFilterInfo(),...e.conditionFilter?{conditionFilter:e.getConditionFilterInfo()}:{}}),n}function At(e,t=!0){let n=new Z(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(n.setDisplayName(e.getDisplayName()),e.lossLessProperty){let t=e.lossLessProperty;t.sortInfo&&(n.sortInfo=t.sortInfo),t.filterInfo&&(n.filterInfo=T(t.filterInfo)?D(t.filterInfo):t.filterInfo),n.setConditionFilterInfo(t.conditionFilter)}return t&&(n.lossLessProperty={subtotal:e.getSubtotal(),showDataAs:e.getShowDataAs()}),n}function jt(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new X(t,n,``,r);return i.fromJSON(e),i}function Mt(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new Z(t,n,``,r);return i.fromJSON(e),i}var Nt=class e{constructor(){A(this,`rowFields`,[]),A(this,`columnFields`,[]),A(this,`valueFields`,[]),A(this,`filterFields`,[]),A(this,`hiddenFields`,[]),A(this,`dimension`,Object.create(null)),A(this,`measure`,Object.create(null)),A(this,`valueIndex`,-1),A(this,`valuePosition`,-1),A(this,`layout`,3),A(this,`collapseInfo`,Object.create(null)),A(this,`options`,void 0),A(this,`_changeStack`,void 0),A(this,`_isDirty`,!0),A(this,`_valueFilterInfo`,[]),this.options={pageWrap:1,pageOverThenDown:!1}}startChangeStack(){this._changeStack=[]}endChangeStack(){let e=this._changeStack;return delete this._changeStack,e}setDirty(e){this._isDirty=e}getDirty(){return this._isDirty}setOptions(e,t=!1){if(e.allowMultipleFilters!==void 0&&typeof e.allowMultipleFilters!=`boolean`)throw TypeError(`Invalid multiple-filter mode.`);if(e.dateGroupingMode!==void 0&&e.dateGroupingMode!==`legacy`&&e.dateGroupingMode!==`excel-like`)throw TypeError(`Invalid pivot date grouping mode.`);!t&&e.allowMultipleFilters===!1&&fe(this.toJSON())&&this.clearFilters();let n={...this.options},r=t?{...e}:{...this.options,...e},i=Object.keys(r);if(!(i.length===Object.keys(n).length&&i.every(e=>n[e]===r[e]))&&(this.options={...r},this._changeStack)){let e={type:8,oldOptions:n,newOptions:r};this._changeStack.push(e)}}getOptions(){return{...this.options}}setLayout(e){let t=this.layout;if(t!==e&&(this.layout=e,this._changeStack)){let n={type:13,oldLayout:t,newLayout:e};this._changeStack.push(n)}}getLayout(){return this.layout}setCollapse(e,t,n,r){let i=this.collapseInfo[e];if(n!==void 0){let a=i===!0?Object.fromEntries((r??[]).map(e=>[e,!0])):i,o=Object.assign(Object.create(null),typeof a==`object`?a:void 0);o[n]=t===!0,this.collapseInfo[e]=o}else t===void 0?delete this.collapseInfo[e]:this.collapseInfo[e]=typeof t==`object`?Object.assign(Object.create(null),t):t;if(this._changeStack){let t=this.collapseInfo[e],n={type:10,fieldId:e,collapse:typeof t==`object`?{...t}:t,previous:{collapse:typeof i==`object`?{...i}:i}};this._changeStack.push(n)}}setLabelFilterInfo(e,t,n){let r=this.dimension[e];if(!r)return;if(t===void 0){if(n!==void 0){this._clearSourceFilterCategory(r.dataFieldId,void 0,n);return}this.setFieldFilterState(e,void 0);return}let i=T(t)||x(t)?D(t):t,a=r.getFilterInfo(),o=n??(t.type===1||T(t)&&t.dateRange!==void 0?`condition`:`member`);if((T(t)?E({type:4,...o===`member`?{selection:t.selection}:{dateRange:t.dateRange}}):E(t))&&this.options.allowMultipleFilters!==!0){this._clearSourceFilters(r.dataFieldId,e),T(i)&&(i={type:4,...o===`member`?{selection:i.selection}:{dateRange:i.dateRange}}),this.setFieldFilterState(e,i);return}this._clearSourceFilterCategory(r.dataFieldId,e,o);let s=r.getConditionFilterInfo();if(T(i)){if(o===`condition`){if(s=void 0,(a==null?void 0:a.type)===3&&i.selection===void 0&&i.dateRange){this.setFieldFilterState(e,a,{type:4,dateRange:i.dateRange});return}T(a)&&i.selection===void 0&&(i={...i,...a.selection?{selection:a.selection}:{}})}else T(a)&&a.dateRange&&(i={...i,dateRange:a.dateRange})}else i.type===3&&T(a)&&a.dateRange&&(s={type:4,dateRange:a.dateRange});if(i.type===1&&a&&a.type!==1){let t=D(a);T(t)&&delete t.dateRange,this.setFieldFilterState(e,t,i)}else this.setFieldFilterState(e,i,i.type===1?void 0:s)}setFieldFilterState(e,t,n){if(this.dimension[e]){if(n&&((t==null?void 0:t.type)===1||T(t)&&t.dateRange!==void 0))throw TypeError(`Ambiguous pivot condition state.`);let r=D(n);if(r&&r.type!==1&&(!T(r)||!r.dateRange||r.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);let i=this.dimension[e].conditionFilter,a=this.dimension[e].getFilterInfo(),o=a===void 0||T(a)||x(a)?a:{...a};if(this.dimension[e].setFilterInfo(t),this.dimension[e].setConditionFilterInfo(r),this._changeStack){let r={type:4,fieldId:e,oldFilterInfo:o,newFilterInfo:T(t)||x(t)?D(t):t,...i||n?{oldConditionFilter:D(i)??null,newConditionFilter:D(n)??null}:{}};this._changeStack.push(r)}this.setDirty(!0)}}setValueFilterInfo(e,t,n){this._setValueFilterState(e,t,n,!0)}setValueFilterState(e,t,n){this._setValueFilterState(e,t,n,!1)}_setValueFilterState(e,t,n,r){let i=this._valueFilterInfo.findIndex(t=>t.fieldId===e);if(t===void 0&&i===-1)return;let{area:a}=this.getFieldPositionInfoById(e);if(t!==void 0&&(a===void 0||!P(a)||!this.measure[t.valueFieldId]||t.type!==2||!ce(t.operator))){console.error(`The value filter info is invalid.`);return}if(r&&t&&this.options.allowMultipleFilters!==!0){let t=this.dimension[e];this._clearSourceFilters(t.dataFieldId,e,!0),(t.filterInfo||t.conditionFilter)&&this.setFieldFilterState(e,void 0),i=this._valueFilterInfo.findIndex(t=>t.fieldId===e)}else r&&t&&(this._clearSourceFilterCategory(this.dimension[e].dataFieldId,e,`value`),i=this._valueFilterInfo.findIndex(t=>t.fieldId===e));let o=i===-1?void 0:this._valueFilterInfo[i].filterInfo;i!==-1&&this._valueFilterInfo.splice(i,1);let s=-1;if(t&&(s=!r&&n!==void 0&&n>=0?Math.min(n,this._valueFilterInfo.length):i===-1?Math.min(Math.max(n??this._valueFilterInfo.length,0),this._valueFilterInfo.length):i,this._valueFilterInfo.splice(s,0,{fieldId:e,filterInfo:Q(t)})),this._changeStack){let n={type:12,fieldId:e,oldFilterInfo:Q(o),filterInfo:Q(t),oldIndex:i,newIndex:s};this._changeStack.push(n)}}getValueFilterInfo(e){let t=this._valueFilterInfo.find(t=>t.fieldId===e);return Q(t==null?void 0:t.filterInfo)}getConditionFilterInfo(e){var t;return(t=this.dimension[e])==null?void 0:t.getConditionFilterInfo()}clearFieldFilters(e){let t=this.dimension[e];t&&(this._clearSourceFilters(t.dataFieldId,e),this.setFieldFilterState(e,void 0))}clearFilters(){for(let e of Object.values(this.dimension))(e.filterInfo||e.conditionFilter)&&this.setFieldFilterState(e.id,void 0);for(let e of this._valueFilterInfo.slice())this.setValueFilterInfo(e.fieldId,void 0)}_clearSourceFilters(e,t,n=!1){for(let r of Object.values(this.dimension))r.dataFieldId===e&&(r.id!==t&&(r.filterInfo||r.conditionFilter)&&this.setFieldFilterState(r.id,void 0),n&&r.id===t||this.setValueFilterInfo(r.id,void 0))}_clearSourceFilterCategory(e,t,n){for(let r of Object.values(this.dimension)){if(r.id===t||r.dataFieldId!==e)continue;if(n===`value`){this.setValueFilterState(r.id,void 0);continue}if(!de(r.toJSON()).has(n))continue;let i=r.getFilterInfo(),a=r.conditionFilter;T(i)?(i=D(i),n===`member`?delete i.selection:delete i.dateRange,!i.selection&&!i.dateRange&&(i=void 0)):i&&i.type===1==(n===`condition`)&&(i=void 0),n===`condition`&&(a=void 0),(i!==r.filterInfo||a!==r.conditionFilter)&&this.setFieldFilterState(r.id,i,a)}}getValueFilterInfos(){return this._valueFilterInfo.map($)}removeValueFilterInfo(e){this._valueFilterInfo.find(t=>t.fieldId===e)&&this.setValueFilterInfo(e,void 0)}removeValueFilterInfoByValueFieldId(e){let t=this._valueFilterInfo.filter(t=>t.filterInfo.valueFieldId===e);if(t&&t.length>0){let e=t.length;for(let n=e-1;n>=0;n--)this.setValueFilterInfo(t[n].fieldId,void 0)}}getFieldFormat(e){if(this.dimension[e])return this.dimension[e].getFormat();if(this.measure[e])return this.measure[e].getFormat()}setFieldFormat(e,t){let n;if(this.dimension[e]&&this.dimension[e].setFormat(t),this.measure[e]&&this.measure[e].setFormat(t),this._changeStack&&(this.dimension[e]||this.measure[e])){let r={type:9,fieldId:e,oldFormat:n,newFormat:t};this._changeStack.push(r)}}setSortInfo(e,t){if(this.dimension[e]){let n=this.dimension[e],r=n.getSortInfo();if(n.setSortInfo(t),this._changeStack){let t={type:5,fieldId:e,newSortInfo:n.getSortInfo(),oldSortInfo:r};this._changeStack.push(t)}}}getSortInfo(e){if(this.dimension[e])return this.dimension[e].getSortInfo()}getFilterInfo(e){if(this.dimension[e])return this.dimension[e].getFilterInfo()}iterateField(e){Object.values(this.dimension).forEach(t=>{e(t)}),Object.values(this.measure).forEach(t=>{e(t)})}iterateFieldDim(e){Object.values(this.dimension).forEach(t=>{e(t)})}iterateFieldMeasure(e){Object.values(this.measure).forEach(t=>{e(t)})}iterateFieldByArea(e,t){this.getFieldsAreaByType(e).forEach(e=>{let n=this.getFieldById(e);n&&t(n)})}addField(e,t,n){if(this.getFieldById(e.getId())){console.error(`The field ${e.getId()} - ${e.getDisplayName()} is already in the pivot table.`);return}N(t)?this.dimension[e.id]=e:this.measure[e.id]=e;let r;switch(t){case 1:r=this.columnFields;break;case 2:r=this.rowFields;break;case 3:r=this.valueFields;break;case 4:r=this.filterFields;break;case 5:r=this.hiddenFields}n===void 0?r.push(e.id):r.splice(n,0,e.id);let i=n===void 0?r.length-1:n;if(this._changeStack){let n={type:0,fieldJson:e.toJSON(),area:t,index:i};this._changeStack.push(n)}this.setDirty(!0)}getFieldPositionInfoById(e){let t,n=-1;return this.columnFields.indexOf(e)===-1?this.rowFields.indexOf(e)===-1?this.valueFields.indexOf(e)===-1?this.filterFields.indexOf(e)===-1?this.hiddenFields.indexOf(e)!==-1&&(t=5,n=this.hiddenFields.indexOf(e)):(t=4,n=this.filterFields.indexOf(e)):(t=3,n=this.valueFields.indexOf(e)):(t=2,n=this.rowFields.indexOf(e)):(t=1,n=this.columnFields.indexOf(e)),{area:t,index:n}}updateFieldSourceInfo(e,t,n){let r=this.getFieldById(e);if(r){let i=r.getSourceName(),a=r.getDataFieldId();if(r.setSourceName(t),r.setDataFieldId(n),this._changeStack){let r={type:11,tableFieldId:e,oldSourceName:i,newSourceName:t,oldDataFieldId:a,newDataFieldId:n};this._changeStack.push(r)}this.setDirty(!0)}}getFieldsAreaByType(e){switch(e){case 1:return this.columnFields;case 2:return this.rowFields;case 3:return this.valueFields;case 4:return this.filterFields;case 5:return this.hiddenFields}}getFieldById(e){if(this.dimension[e])return this.dimension[e];if(this.measure[e])return this.measure[e]}isExistFieldName(e){for(let t of Object.values(this.dimension))if(t.getDisplayName()===e)return!0;for(let t of Object.values(this.measure))if(t.getDisplayName()===e)return!0;return!1}renameField(e,t){let{area:n,index:r}=this.getFieldPositionInfoById(e);if(n===void 0||r===-1){console.warn(`The field ${e} is not in the pivot table.`);return}let i=this.getFieldById(e);if(!i){console.warn(`The field ${e} is not in the pivot table.`);return}let a=i.getDisplayName();if(a!==t){if(this.isExistFieldName(t))console.warn(`The displayName ${t} is exist in the pivot table.`);else if(i.setDisplayName(t),this._changeStack){let n={type:3,fieldId:e,newName:t,oldName:a};this._changeStack.push(n)}}}removeField(e){let{area:t,index:n}=this.getFieldPositionInfoById(e);if(t===void 0||n===-1){console.warn(`The field ${e} is not in the pivot table.`);return}t===3?this.removeValueFilterInfoByValueFieldId(e):P(t)&&this.removeValueFilterInfo(e),this.getFieldsAreaByType(t).splice(n,1);let r;if(N(t)?(r=this.dimension[e].toJSON(),delete this.dimension[e]):(r=this.measure[e].toJSON(),delete this.measure[e]),this._changeStack){let i={type:2,fieldId:e,fieldJson:r,area:t,index:n};this._changeStack.push(i)}this.setDirty(!0)}updateFieldPosition(e,t,n){let{area:r,index:i}=this.getFieldPositionInfoById(e);if(r===t&&i===n)return;if(r===void 0&&i===-1){console.warn(`The field ${e} is not in the pivot table.`);return}let a=this.getFieldsAreaByType(t);this.getFieldsAreaByType(r).splice(i,1),a.splice(n,0,e);let o=N(r);if(o!==N(t)){if(o){let t=this.dimension[e];delete this.dimension[e];let n=kt(t);this.measure[e]=n}else{let t=this.measure[e];delete this.measure[e];let n=At(t);this.dimension[e]=n}}if(this._changeStack){let a={type:6,fieldId:e,oldArea:r,newArea:t,oldIndex:i,newIndex:n};this._changeStack.push(a)}P(r)&&P(t)||r===3&&t===3||r===5&&t===5||r===4&&t===4||this.setDirty(!0)}updateValuePosition(e,t){let n=this.valuePosition,r=this.valueIndex;if(this.valuePosition=e,this.valueIndex=t,this._changeStack){let i={type:7,oldValuePosition:n,newValuePosition:e,oldIndex:r,newIndex:t};this._changeStack.push(i)}}getValueIndex(){return this.valueIndex}getValuePosition(){return this.valuePosition}isColMultiMeasure(){return this.valueFields.length<=1?!1:this.valuePosition===1}isRowMultiMeasure(){return this.valueFields.length<=1?!1:this.valuePosition===2}isEmpty(){return[].concat(this.rowFields,this.columnFields,this.valueFields,this.filterFields).length===0}setSubtotalType(e,t){if(this.measure[e]){let n=this.measure[e].getSubtotal();if(this.measure[e].setSubtotal(t),this._changeStack){let r={type:1,fieldId:e,newSubtotalType:t,oldSubtotalType:n};this._changeStack.push(r)}this.setDirty(!0)}}getShowDataAs(e){var t;return(t=this.measure[e])==null?void 0:t.getShowDataAs()}setShowDataAs(e,t){let n=this.measure[e];if(!n)return;let r=n.getShowDataAs();if(n.setShowDataAs(t),this._changeStack){let t={type:14,fieldId:e,oldShowDataAs:r,newShowDataAs:n.getShowDataAs()};this._changeStack.push(t)}}getQueryData(){let e=this.dimension,t=[];for(let n of this.rowFields)e[n]&&t.push(e[n].getQueryData());let n=[];for(let t of this.columnFields)e[t]&&n.push(e[t].getQueryData());let r=[];for(let t of this.filterFields)e[t]&&r.push(e[t].getQueryData());let i=[];for(let t of this.hiddenFields)e[t]&&i.push(e[t].getQueryData());let a=[];for(let e of this.valueFields)this.measure[e]&&a.push(this.measure[e].getQueryData());let o=[];for(let t of this._valueFilterInfo){let{fieldId:n,filterInfo:r}=t;e[n]&&this.measure[r.valueFieldId]&&o.push($(t))}return{rowQueryInfo:t,colQueryInfo:n,filterQueryInfo:r,hiddenQueryInfo:i,valueQueryInfo:a,collapseInfo:{...this.collapseInfo},valueFilterInfo:o}}reset(e){e===void 0?(this.rowFields=[],this.columnFields=[],this.valueFields=[],this.filterFields=[],this.hiddenFields=[],this.dimension=Object.create(null),this.measure=Object.create(null),this.valueIndex=-1,this.valuePosition=-1,this.collapseInfo=Object.create(null),this.options={}):e===1?(this.columnFields.forEach(e=>{delete this.dimension[e]}),this.columnFields=[]):e===2?(this.rowFields.forEach(e=>{delete this.dimension[e]}),this.rowFields=[]):e===4?(this.filterFields.forEach(e=>{delete this.dimension[e]}),this.filterFields=[]):e===3&&(this.valueFields.forEach(e=>{delete this.measure[e]}),this.valueIndex=-1,this.valuePosition=-1,this.valueFields=[])}fromJSON(e){this.dimension=Object.keys(e.dimension).reduce((t,n)=>{let r=e.dimension[n],i=new Z(r.dataFieldId,r.id,r.displayName,r.sourceName);return i.fromJSON(r),t[n]=i,t},Object.create(null)),this.measure=Object.keys(e.measure).reduce((t,n)=>{let r=e.measure[n],i=new X(r.dataFieldId,r.id,r.displayName,r.sourceName);return i.fromJSON(e.measure[n]),t[n]=i,t},Object.create(null)),this.filterFields=e.filterFields.concat(),this.hiddenFields=e.hiddenFields.concat(),this.rowFields=e.rowFields.concat(),this.valueFields=e.valueFields.concat(),this.columnFields=e.columnFields.concat(),this.layout=e.layout??3,this.valueIndex=e.valueIndex,this.valuePosition=e.valuePosition,this.collapseInfo=Object.assign(Object.create(null),e.collapseInfo),this.options={...e.options},this._valueFilterInfo=e.valueFilter?e.valueFilter.map($):[]}toJSON(){let e=Object.keys(this.dimension).reduce((e,t)=>(e[t]=this.dimension[t].toJSON(),e),Object.create(null)),t=Object.keys(this.measure).reduce((e,t)=>(e[t]=this.measure[t].toJSON(),e),Object.create(null)),n=this._valueFilterInfo.map($);return{columnFields:this.columnFields.concat(),dimension:e,measure:t,filterFields:this.filterFields.concat(),hiddenFields:this.hiddenFields.concat(),rowFields:this.rowFields.concat(),valueFields:this.valueFields.concat(),layout:this.layout,valueIndex:this.valueIndex,valuePosition:this.valuePosition,collapseInfo:{...this.collapseInfo},options:{...this.options},valueFilter:n}}cloneBufferModel(){let t=new e;return t.fromJSON(this.toJSON()),t.setDirty(this.getDirty()),t}};function Q(e){if(e)return{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected}}function $(e){return{fieldId:e.fieldId,filterInfo:Q(e.filterInfo)}}var Pt=class e{static registerCallbackWithEvent(e,t){var n;this._callbacks[e]||(this._callbacks[e]=[]),(n=this._callbacks[e])==null||n.push(t)}static unRegisterCallbackWithEvent(e,t){let n=this._callbacks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&delete this._callbacks[e]}}constructor(e,t,n){A(this,`dataFieldsCollection`,void 0),A(this,`_model`,void 0),A(this,`_bufferModel`,void 0),A(this,`_tupleGroupCache`,void 0),A(this,`_summaryManagerCache`,void 0),A(this,`_summaryCacheState`,`invalid`),A(this,`_defaultSortLocale`,void 0),A(this,`_id`,void 0),this.dataFieldsCollection=e,t?this._model=t:this._generateModel(),n&&(this._id=n)}updateDataFieldsCollection(e){this.dataFieldsCollection=e}getFilteredRecordIndexes(e,t){let n=this._getModel().getQueryData();for(let r of[...n.rowQueryInfo,...n.colQueryInfo,...n.filterQueryInfo,...n.hiddenQueryInfo??[]])r.dataFieldId===e&&(t===`dateRange`&&(r.conditionFilter=void 0),r.filterInfo&&(T(r.filterInfo)?delete r.filterInfo[t]:r.filterInfo.type===1==(t===`dateRange`)&&(r.filterInfo=void 0)));let r=new wt;return r.prepare(this.dataFieldsCollection,n),r.filter(n)}_getModel(){return this._bufferModel?this._bufferModel:this._model}startCollectChangeset(){this._bufferModel=this._model.cloneBufferModel(),this._bufferModel.startChangeStack()}endCollectChangeset(){let e=this._bufferModel,t=e.endChangeStack();return e.getDirty()&&this._model.setDirty(!0),this.cancelCollectChangeset(),t}cancelCollectChangeset(){this._tupleGroupCache=void 0,this._summaryManagerCache=void 0,this._summaryCacheState=`invalid`,this._bufferModel=void 0}_generateModel(){this._model=new Nt}createLabelFieldByDataFieldId(e,t,n){let r=this.dataFieldsCollection.getFieldById(e);if(r){let i=n||this.getUniqueFieldId();return a.isDev&&(i=`${t}-${i}`),new Z(r.getId(),i,t||this.dataFieldsCollection.getDisplayName(e),r.name)}}createValueFieldByDataFieldId(e,t){let n=this.dataFieldsCollection.getFieldById(e);if(n){let r=n.getFieldDataType()===2?9:2,i=(this.dataFieldsCollection.host.getAutoDisplayNameFunction()||F)(this.dataFieldsCollection.getDisplayName(e),r),o=t||this.getUniqueFieldId();a.isDev&&(o=`${i}-${o}`);let s=new X(n.getId(),o,this.getUniqueValueFieldName(i),n.name);return s.setSubtotal(r),s}}updateValuePosition(e,t){this._getModel().updateValuePosition(e,t)}isColMultiMeasure(){return this._getModel().isColMultiMeasure()}isRowMultiMeasure(){return this._getModel().isRowMultiMeasure()}getValueIndex(){return this._getModel().getValueIndex()}getValuePosition(){return this._getModel().getValuePosition()}iterateField(e){this._getModel().iterateField(e)}iterateFieldDim(e){this._getModel().iterateFieldDim(e)}iterateFieldByArea(e,t){this._getModel().iterateFieldByArea(e,t)}getFieldCountByArea(e){return this._getModel().getFieldsAreaByType(e).length}getValueFields(){return this._getModel().valueFields}getUniqueValueFieldName(e){let t=this._getModel();if(!t.isExistFieldName(e))return e;let n=1;for(;t.isExistFieldName(e+String(n));)n++;return e+String(n)}getDataFieldByTableId(e){var t;let n=(t=this._getModel().getFieldById(e))==null?void 0:t.dataFieldId;if(n)return this.dataFieldsCollection.getFieldById(n)}getTableFieldsByDataFieldId(e){let t=[];return this.iterateField(n=>{n.getDataFieldId()===e&&t.push(n)}),t}getTableFieldById(e){return this._getModel().getFieldById(e)}isExistField(e){return!!this._getModel().getFieldById(e)}isEmpty(){return this._getModel().isEmpty()}getDataFieldByDataFieldId(e){return this.dataFieldsCollection.getFieldById(e)}getDataFieldIdByDisplayName(e){return this.dataFieldsCollection.getFieldIdByDisplayName(e)}getFieldDisplayNames(){return this.dataFieldsCollection.getFieldDisplayNames()}getDataFieldItemInfo(e){return{items:e.items,itemTypes:e.itemTypes}}getUniqueFieldId(){let e=Object.keys(this._getModel().dimension).length+Object.keys(this._getModel().measure).length,t=Math.max(Math.ceil(Math.log2(e)/4),2),n=L(t);for(;this._getModel().getFieldById(n);)n=L(t);return n}addFieldWithSourceId(e,t,n,r){let i;if(i=N(t)?this.createLabelFieldByDataFieldId(e,void 0,r):this.createValueFieldByDataFieldId(e,r),i)return this.addField(i,t,n),i}setOptions(e,t=!1){this._getModel().setOptions(e,t)}setLayout(e){this._getModel().setLayout(e)}getLayout(){return this._getModel().getLayout()}updateFieldSourceInfo(e,t,n){this._getModel().updateFieldSourceInfo(e,t,n)}setSubtotalType(e,t){this._getModel().setSubtotalType(e,t)}getShowDataAs(e){return this._getModel().getShowDataAs(e)}setShowDataAs(e,t){this._getModel().setShowDataAs(e,t)}renameField(e,t){this._getModel().renameField(e,t)}setLabelFilterInfo(e,t,n){this._getModel().setLabelFilterInfo(e,t,n)}getConditionFilterInfo(e){return this._getModel().getConditionFilterInfo(e)}clearFieldFilters(e){this._getModel().clearFieldFilters(e)}setFieldFilterState(e,t,n){this._getModel().setFieldFilterState(e,t,n)}setDateFilterInfo(e,t){let n=this.getFilterInfo(e);if(!this._getModel().dimension[e])return!1;if(t===void 0)return!x(this.getConditionFilterInfo(e))&&!(T(n)&&n.dateRange)?!1:(this.setLabelFilterInfo(e,void 0,`condition`),!0);S(t);let r=this.getDataFieldByTableId(e);return!r||r.getFieldDataType()!==4?!1:(this.setLabelFilterInfo(e,t,`condition`),!0)}setSortInfo(e,t){this._getModel().setSortInfo(e,t),this._summaryCacheState===`ready`&&(this._summaryCacheState=`sort`)}setDefaultSortLocale(e){this._defaultSortLocale!==e&&(this._defaultSortLocale=e,this._summaryCacheState===`ready`&&(this._summaryCacheState=`sort`))}getSortInfo(e){return this._getModel().getSortInfo(e)}getFilterInfo(e){return this._getModel().getFilterInfo(e)}getFilterFieldIdByIndex(e){return this._getModel().filterFields[e]}updateFieldPosition(e,t,n){let{area:r}=this._getModel().getFieldPositionInfoById(e);this._getModel().updateFieldPosition(e,t,n),r!==2&&r!==1||t!==2&&t!==1||(this._summaryCacheState=`invalid`)}getFieldFormat(e){return this._getModel().getFieldFormat(e)}setFieldFormat(e,t){this._getModel().setFieldFormat(e,t)}addField(e,t,n){this._getModel().addField(e,t,n)}removeField(e){this._getModel().removeField(e)}getOptions(){return this._getModel().getOptions()}setCollapse(e,t,n){var r;let i=this._getModel(),a=n!==void 0&&i.collapseInfo[e]===!0?(r=this.getDataFieldByTableId(e))==null?void 0:r.items:void 0;i.setCollapse(e,t,n,a),this._summaryCacheState=`invalid`}setRowCollapseLevel(e){let{rowFields:t}=this._getModel(),n=t.indexOf(e);if(n<0)return!1;for(let e=0;e<t.length-1;e++)this.setCollapse(t[e],e>=n);return!0}getFieldPositionInfoById(e){return this._getModel().getFieldPositionInfoById(e)}_getTupleCache(e){return(!this._tupleGroupCache||this._getModel().getDirty())&&(this._tupleGroupCache=new wt,this._tupleGroupCache.query(this.dataFieldsCollection,e),this._summaryManagerCache=void 0,this._summaryCacheState=`invalid`),this._tupleGroupCache}_getGroupInfo(){let e={};return this._getModel().iterateFieldDim(t=>{let n=t.dataFieldId,r=this.dataFieldsCollection.getFieldById(n);if(V(r)){let n=r.getGroupInfo();n&&(e[t.getId()]=n)}}),e}setValueFilterInfo(e,t,n){this._getModel().setValueFilterInfo(e,t,n),this._summaryCacheState=`invalid`}setValueFilterState(e,t,n){this._getModel().setValueFilterState(e,t,n),this._summaryCacheState=`invalid`}getValueFilterInfos(){return this._getModel().getValueFilterInfos()}getValueFilterInfo(e){return this._getModel().getValueFilterInfo(e)}removeValueFilterInfo(e){this._getModel().removeValueFilterInfo(e),this._summaryCacheState=`invalid`}removeValueFilterInfoByValueFieldId(e){this._getModel().removeValueFilterInfoByValueFieldId(e),this._summaryCacheState=`invalid`}getIndexesByPathStr(e){let t=this._getTupleCache(this._getModel().getQueryData()),n=/* @__PURE__ */ new Map;for(let[e,r]of t.dimensionTableIdList.entries())n.set(r,e);return t.tuples.reduce((t,r)=>(e.every(e=>{let[t,i]=e,a=r.path,o=n.get(i);return o!==void 0&&a[o]===t})&&t.push(...r.indexes),t),[]).sort((e,t)=>e-t)}setDirty(e){this._getModel().setDirty(e)}reset(e){this._getModel().reset(e),this._summaryCacheState=`invalid`}query(t){let n=e._callbacks.onQueryStart;n&&n.forEach(e=>{e(this._id)});let r=t||this._getModel().getQueryData(),i=this._getTupleCache(r),a;t?(a=new Ct(r,i,this._defaultSortLocale),a.doSummary()):(!this._summaryManagerCache||this._summaryCacheState===`invalid`?(this._summaryManagerCache=new Ct(r,i,this._defaultSortLocale),this._summaryManagerCache.doSummary()):this._summaryCacheState===`sort`&&this._summaryManagerCache.resort(r,this._defaultSortLocale),a=this._summaryManagerCache,this._summaryCacheState=`ready`);let o;try{o=this._layout(a,r)}finally{a.clearShowDataAsCache()}o.setFormat(this._getModel(),r.valueQueryInfo);let s=this._getGroupInfo();o.setGroupInfo(s),this._getModel().setDirty(!1);let c=e._callbacks.onQueryEnd;return c&&c.forEach(e=>{e(this._id)}),o}_layout(e,t){switch(this.getLayout()){case 1:return ht.layout(this,e,t);case 2:return gt.layout(this,e,t);default:return mt.layout(this,e,t)}}toJSON(){return this._getModel().toJSON()}fromJSON(e){this._getModel().fromJSON(e),this.setDirty(!0),this._summaryCacheState=`invalid`}dispose(){this.dataFieldsCollection=null,this._model=null}};A(Pt,`_callbacks`,{});export{U as BaseGroupField,H as DataField,rt as DataFieldManager,Je as DateGroupField,Ve as EXCEL_DATE_AFTER_KEY,Be as EXCEL_DATE_BEFORE_KEY,nt as FieldsCollection,a as GlobalConfig,ct as LabelViewItem,G as ManualGroupField,Ze as NUMBER_GROUP_AFTER_KEY,Xe as NUMBER_GROUP_BEFORE_KEY,tt as NumberGroupField,ee as PivotCallbackEnum,ve as PivotCellStyleTypeEnum,h as PivotDataFieldDataTypeEnum,_ as PivotDataFieldSortOperatorEnum,g as PivotDataFieldSortTypeEnum,te as PivotDataFieldTypeEnum,ie as PivotDateGroupFieldDateTypeEnum,ne as PivotDateGroupingMode,d as PivotErrorTypeEnum,re as PivotExcelDateGroupUnit,ae as PivotFilterCategory,f as PivotFilterTypeEnum,y as PivotLayoutTypeEnum,u as PivotShowAsBaseItemTypeEnum,l as PivotShowAsTypeEnum,b as PivotSubtotalPositionEnum,c as PivotSubtotalTypeEnum,Pt as PivotTable,ge as PivotTableChangeTypeEnum,p as PivotTableFiledAreaEnum,Z as PivotTableLabelField,X as PivotTableValueField,m as PivotTableValuePositionEnum,ot as PivotView,_e as PivotViewCellValueTypeEnum,q as PivotViewItem,v as ST_PivotFilterOperatorEnum,S as compilePivotDateFilter,K as createDataFieldFromJSON,Mt as createLabelField,B as createPivotSortCompare,jt as createValueField,Ie as excelDateToUnixMilliseconds,L as generateHexNumber,F as getAutoDisplayName,et as getDefaultNumberGrouping,Se as getPivotDateGroupingMode,pe as getPivotRecordMember,fe as hasPivotMultipleFilters,V as isBaseGroupField,Le as isDateGroupField,Re as isDateGroupFieldJSON,C as isDateValue,ft as isErrorValue,I as isManualPivotFilter,x as isPivotDateFilter,E as isPivotTableFilterRestrictive,dt as isPrefixValue,w as isRecordErrorValue,ce as isValueFilterOperator,We as normalizeExcelDateGrouping,W as normalizeManualGrouping,$e as normalizeNumberGrouping,o as setDateSystem,s as setMaxLimitItemCount};
|