@univerjs-pro/pivot-chart 1.0.0
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/README.md +46 -0
- package/lib/cjs/index.js +1 -0
- package/lib/es/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/types/chart-type.d.ts +18 -0
- package/lib/types/definition.d.ts +43 -0
- package/lib/types/field-buttons.d.ts +3 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/model.d.ts +33 -0
- package/lib/types/pivot-chart-data-set-adapter.d.ts +3 -0
- package/lib/types/pivot-chart-data-source.d.ts +28 -0
- package/lib/types/runtime.d.ts +40 -0
- package/lib/umd/index.js +1 -0
- package/package.json +75 -0
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @univerjs-pro/pivot-chart
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.com/package/@univerjs-pro/pivot-chart)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/pivot-chart)
|
|
5
|
+
[](https://npmjs.com/package/@univerjs-pro/pivot-chart)
|
|
6
|
+
|
|
7
|
+
`@univerjs-pro/pivot-chart` is part of Univer Pro. It contains the host-independent model contracts used by Univer Pro pivot charts.
|
|
8
|
+
|
|
9
|
+
## Package Overview
|
|
10
|
+
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs-pro/pivot-chart` | `UniverProPivotChart` | No | No | No |
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm add @univerjs-pro/pivot-chart
|
|
19
|
+
# or
|
|
20
|
+
npm install @univerjs-pro/pivot-chart
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import type { IPivotChartDefinition } from '@univerjs-pro/pivot-chart';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Use `IPivotChartDefinition` for persisted PivotChart definitions. An owned chart carries `cacheRef` and `pivotModel`; a linked chart carries `pivotTableRef` instead. Use `@univerjs-pro/sheets-pivot-chart` for Sheet-hosted runtime integration.
|
|
32
|
+
|
|
33
|
+
## Integration Notes
|
|
34
|
+
|
|
35
|
+
- Pivot Cache providers are supplied by host packages through the `@univerjs-pro/pivot-cache` contract.
|
|
36
|
+
- This package does not own Sheet, Doc, Slide, Drawing, or UI state.
|
|
37
|
+
- Pie, Pie-of-Pie, and Bar-of-Pie use the first materialized value series. A host UI should make
|
|
38
|
+
additional series visible to the user instead of silently implying that every series is plotted.
|
|
39
|
+
- Doughnut charts preserve multiple materialized value series and render them as concentric rings.
|
|
40
|
+
- PivotChart category and series data comes from the final PivotView, after filtering, aggregation,
|
|
41
|
+
and Show Data As. Subtotals and grand totals are not emitted as chart categories.
|
|
42
|
+
|
|
43
|
+
## Resources
|
|
44
|
+
|
|
45
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
46
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/pivot-chart)
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x2b77a8=_0x3a0d;(function(_0xae6499,_0x2787ee){const _0x16719e=_0x3a0d,_0x52f0f8=_0xae6499();while(!![]){try{const _0x47b2f6=parseInt(_0x16719e(0xf0))/0x1+-parseInt(_0x16719e(0xe6))/0x2*(parseInt(_0x16719e(0x12b))/0x3)+-parseInt(_0x16719e(0x11b))/0x4*(-parseInt(_0x16719e(0xb8))/0x5)+-parseInt(_0x16719e(0x136))/0x6*(parseInt(_0x16719e(0x117))/0x7)+parseInt(_0x16719e(0xba))/0x8*(-parseInt(_0x16719e(0x125))/0x9)+parseInt(_0x16719e(0xce))/0xa+parseInt(_0x16719e(0xfa))/0xb*(-parseInt(_0x16719e(0x12d))/0xc);if(_0x47b2f6===_0x2787ee)break;else _0x52f0f8['push'](_0x52f0f8['shift']());}catch(_0x3af416){_0x52f0f8['push'](_0x52f0f8['shift']());}}}(_0x4072,0x9ce82),Object[_0x2b77a8(0x10c)](exports,Symbol[_0x2b77a8(0xf5)],{'value':'Module'}));let e=require('@univerjs-pro/engine-chart'),t=require('@univerjs-pro/engine-pivot'),n=require('@univerjs/core'),r=require('rxjs'),i=function(_0x183abb){const _0x279f56=_0x2b77a8;return _0x183abb[_0x279f56(0xe0)]='supported',_0x183abb[_0x279f56(0x9a)]=_0x279f56(0x12c),_0x183abb;}({});function a(_0x7aa02e){const _0x1ad8c6=_0x2b77a8;switch(_0x7aa02e){case e[_0x1ad8c6(0x113)][_0x1ad8c6(0xed)]:case e['ChartTypeString'][_0x1ad8c6(0x114)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0x9f)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0x13d)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0x115)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0x91)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0x93)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0xe1)]:case e[_0x1ad8c6(0x113)]['Donut']:case e['ChartTypeString'][_0x1ad8c6(0xc9)]:case e['ChartTypeString'][_0x1ad8c6(0xde)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0xc0)]:case e[_0x1ad8c6(0x113)][_0x1ad8c6(0xc8)]:return!0x0;default:return!0x1;}}function o(_0x1640a3){const _0x30f897=_0x2b77a8;switch(_0x1640a3){case e[_0x30f897(0xa1)][_0x30f897(0x114)]:case e[_0x30f897(0xa1)][_0x30f897(0x9f)]:case e[_0x30f897(0xa1)][_0x30f897(0x13d)]:case e[_0x30f897(0xa1)]['Bar']:case e[_0x30f897(0xa1)][_0x30f897(0x91)]:case e[_0x30f897(0xa1)][_0x30f897(0x93)]:case e[_0x30f897(0xa1)]['Line']:case e['ChartTypeBits'][_0x30f897(0xc9)]:case e[_0x30f897(0xa1)][_0x30f897(0xde)]:case e['ChartTypeBits']['AreaPercentStacked']:case e['ChartTypeBits'][_0x30f897(0xc8)]:case e[_0x30f897(0xa1)][_0x30f897(0xe1)]:case e[_0x30f897(0xa1)][_0x30f897(0x121)]:return _0x30f897(0xb3);default:return _0x30f897(0x12c);}}function s(_0x3b88ad){const _0x5409f7=_0x2b77a8;return _0x3b88ad===e[_0x5409f7(0xa1)][_0x5409f7(0xe1)]?0x1:void 0x0;}let c=function(_0x5465aa){const _0x1fecbc=_0x2b77a8;return _0x5465aa[_0x1fecbc(0x139)]=_0x1fecbc(0xae),_0x5465aa['PivotTable']=_0x1fecbc(0x131),_0x5465aa;}({});const l={'showFieldButtons':!0x0,'showExpandCollapseButtons':!0x0};function u(_0x3639ca){return _0x3639ca['pivotTableRef']!==void 0x0;}function d(_0x414da2){return!u(_0x414da2);}function f(_0x1551a9){return{...l,..._0x1551a9};}function p(_0x36da04){const _0x19feb5=_0x2b77a8;return _0x36da04?_0x36da04[_0x19feb5(0x92)]!==t[_0x19feb5(0xf2)]['ManualFilter']||_0x36da04[_0x19feb5(0x128)]!==!0x0:!0x1;}function m(_0xa77ef7,_0x477805){const _0x36e594=_0x2b77a8;let _0x25f33b=(_0xe84800,_0x3c3dc3)=>{const _0x4801f9=_0x3a0d;let _0xa3863b=_0xa77ef7[_0x4801f9(0x101)][_0xe84800];return _0xa3863b?{'fieldId':_0xe84800,'label':_0xa3863b['displayName']||_0xa3863b[_0x4801f9(0x11a)]||_0xe84800,'role':_0x3c3dc3,'filtered':p(_0xa3863b[_0x4801f9(0xa8)])}:void 0x0;},_0x159774=[],_0x3cf19c=(_0x3ef17c,_0x58434d)=>{const _0x49ebc0=_0x3a0d;_0x3ef17c[_0x49ebc0(0xb7)](_0x2a938d=>{let _0x53be57=_0x25f33b(_0x2a938d,_0x58434d);_0x53be57&&_0x159774['push'](_0x53be57);});};_0x3cf19c(_0xa77ef7[_0x36e594(0xbc)],_0x36e594(0x11c)),_0x3cf19c(_0xa77ef7[_0x36e594(0xbf)],'series');let _0x1bfec4=0x0;for(let _0x12042f of(_0x477805==null?void 0x0:_0x477805[_0x36e594(0xe4)][_0x36e594(0xef)])??[])if(_0x1bfec4=Math['max'](_0x1bfec4,(_0x12042f==null?void 0x0:_0x12042f[_0x36e594(0xa5)][_0x36e594(0xcd)])??0x0),_0x1bfec4>=_0xa77ef7[_0x36e594(0x97)][_0x36e594(0xcd)])break;return _0x3cf19c(_0xa77ef7[_0x36e594(0x97)][_0x36e594(0x13a)](0x0,_0x1bfec4||_0xa77ef7[_0x36e594(0x97)][_0x36e594(0xcd)]),_0x36e594(0xe2)),_0x159774;}function h(_0x3ce748){'@babel/helpers - typeof';const _0x4783ee=_0x2b77a8;return h=typeof Symbol==_0x4783ee(0xa9)&&typeof Symbol[_0x4783ee(0xf3)]==_0x4783ee(0xfd)?function(_0xca3d9){return typeof _0xca3d9;}:function(_0x5e02bb){const _0x4e3941=_0x4783ee;return _0x5e02bb&&typeof Symbol==_0x4e3941(0xa9)&&_0x5e02bb[_0x4e3941(0x116)]===Symbol&&_0x5e02bb!==Symbol[_0x4e3941(0x137)]?_0x4e3941(0xfd):typeof _0x5e02bb;},h(_0x3ce748);}function _0x4072(){const _0xe97b38=['deepClone','controls','isOwnedPivotChartDefinition','dimension','replaceControls','dataView','isBottomTotal','stringify','PivotView','_replace','disposeWithMe','replaceChart','LOADING','pivotCacheId','defineProperty','isErrorValue','requestId','number','Chart','isLinkedPivotChartDefinition','getPivotChartFieldButtons','ChartTypeString','Column','Bar','constructor','119gnNAgX','formJSON','format','sourceName','4672952OxYrqF','filter','getValue','$pivot-values','resolvePivotChartControls','boolean','Doughnut','current','pivotModel','PivotChartDataSource','9pxUTeO','valuePosition','publishResult','isAll','UNAVAILABLE','Disposable','49701yCDZMh','unsupported','13524LltZmQ','_requestId','_model','Row','pivotTable','A\x20linked\x20PivotChart\x20must\x20use\x20its\x20referenced\x20PivotTable\x20runtime.','getPivotChartTypeSupportStatus','snapshot','_state$','330738RJSBJh','prototype','keys','Range','slice','formatMap','chart','ColumnPercentStacked','cache','from','PivotChartModel','BarStacked','type','BarPercentStacked','getPivotChartPieSeriesLimit','complete','getColCount','rowFields','ChartDataSourceRuntimeStatus','_hasSuccessfulResult','Unsupported','_cacheHandle','query','BehaviorSubject','default','ColumnStacked','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ChartTypeBits','setLoading','tableFieldId','subscribe','paths','_accepts','fromJSON','filterInfo','function','value','push','next','_scheduleCacheRefresh','range','min','isTopTotal','dataFieldId','numfmt','supported','toPrimitive','state','object','forEach','5KinBWs','ChartDataSource','2902792MLEHhc','Tools','filterFields','_latestRequestId','DEFAULT_PIVOT_CHART_CONTROLS','columnFields','AreaPercentStacked','_changed$','valueIndex','_cacheRefreshScheduled','colView','PivotChartRuntime','splice','A\x20linked\x20PivotChart\x20cannot\x20be\x20refreshed\x20by\x20an\x20owned\x20runtime.','Combination','Area','_result$','displayName','_latestResult','length','1522610ylhzqy','_pivotTable','pivot','dispose','changed$','PivotTableValuePositionEnum','_reportRevision','PivotChartTypeSupportStatus','map','Controls','asObservable','REFRESH_ERROR','isSubtotal','call','toJSON','_snapshot','AreaStacked','setDirty','Supported','Pie','category','result$','rowView','string','26ibxQRr','isPrefixValue','refresh','adaptPivotViewToChartDataSet','measure','init','state$','Line','join','info','1221809xdjzfY','Subject','PivotFilterTypeEnum','iterator','_initialized','toStringTag','pop','PivotChartModelChangeType','publishError','valueFields','3751scbHhW','isPivotChartTypeString','PivotTable','symbol'];_0x4072=function(){return _0xe97b38;};return _0x4072();}function g(_0x110112,_0x4a8c6c){const _0x5c157b=_0x2b77a8;if(h(_0x110112)!='object'||!_0x110112)return _0x110112;var _0x7fcee1=_0x110112[Symbol[_0x5c157b(0xb4)]];if(_0x7fcee1!==void 0x0){var _0x49f08b=_0x7fcee1[_0x5c157b(0xdb)](_0x110112,_0x4a8c6c||_0x5c157b(0x9e));if(h(_0x49f08b)!=_0x5c157b(0xb6))return _0x49f08b;throw TypeError(_0x5c157b(0xa0));}return(_0x4a8c6c===_0x5c157b(0xe5)?String:Number)(_0x110112);}function _0x3a0d(_0x11f382,_0x5e15c7){_0x11f382=_0x11f382-0x8f;const _0x407251=_0x4072();let _0x3a0d1f=_0x407251[_0x11f382];return _0x3a0d1f;}function _(_0x292460){const _0x5a631e=_0x2b77a8;var _0x3e0d40=g(_0x292460,_0x5a631e(0xe5));return h(_0x3e0d40)==_0x5a631e(0xfd)?_0x3e0d40:_0x3e0d40+'';}function v(_0x1141d5,_0xcd3381,_0x210901){const _0x547d32=_0x2b77a8;return(_0xcd3381=_(_0xcd3381))in _0x1141d5?Object[_0x547d32(0x10c)](_0x1141d5,_0xcd3381,{'value':_0x210901,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1141d5[_0xcd3381]=_0x210901,_0x1141d5;}let y=function(_0x3a1706){const _0x352cdd=_0x2b77a8;return _0x3a1706['Cache']=_0x352cdd(0x13e),_0x3a1706['Pivot']=_0x352cdd(0xd0),_0x3a1706[_0x352cdd(0x110)]=_0x352cdd(0x13c),_0x3a1706[_0x352cdd(0xd7)]=_0x352cdd(0xff),_0x3a1706;}({});var b=class extends n[_0x2b77a8(0x12a)]{constructor(_0xf0a6af){const _0x2fa0bd=_0x2b77a8;super(),v(this,_0x2fa0bd(0xdd),void 0x0),v(this,_0x2fa0bd(0xc1),new r['Subject']()),v(this,_0x2fa0bd(0xd2),this[_0x2fa0bd(0xc1)]['asObservable']()),this['_snapshot']=n[_0x2fa0bd(0xbb)][_0x2fa0bd(0xfe)](_0xf0a6af);}get['id'](){const _0x64aba0=_0x2b77a8;return this[_0x64aba0(0xdd)]['id'];}get[_0x2b77a8(0x134)](){const _0x96395a=_0x2b77a8;return n[_0x96395a(0xbb)]['deepClone'](this['_snapshot']);}get[_0x2b77a8(0xff)](){return f(this['_snapshot']['controls']);}['replaceCacheReference'](_0x296456){const _0xfd4de3=_0x2b77a8;return d(this[_0xfd4de3(0xdd)])?(this['_replace']('cache',{...this[_0xfd4de3(0xdd)],'cacheRef':n[_0xfd4de3(0xbb)][_0xfd4de3(0xfe)](_0x296456)}),!0x0):!0x1;}['replacePivotModel'](_0x4de425){const _0x3a238d=_0x2b77a8;return d(this[_0x3a238d(0xdd)])?(this[_0x3a238d(0x107)](_0x3a238d(0xd0),{...this[_0x3a238d(0xdd)],'pivotModel':n['Tools'][_0x3a238d(0xfe)](_0x4de425)}),!0x0):!0x1;}[_0x2b77a8(0x109)](_0x3f95ca){const _0x1642c2=_0x2b77a8;this[_0x1642c2(0x107)](_0x1642c2(0x13c),{...this['_snapshot'],'chart':n[_0x1642c2(0xbb)][_0x1642c2(0xfe)](_0x3f95ca)});}[_0x2b77a8(0x102)](_0x4b3a7a){const _0x37ce32=_0x2b77a8;this['_replace'](_0x37ce32(0xff),{...this[_0x37ce32(0xdd)],'controls':n[_0x37ce32(0xbb)][_0x37ce32(0xfe)](_0x4b3a7a)});}['replacePresentation'](_0x5b00ec,_0x53829d,_0xd86ea3){const _0x185b7e=_0x2b77a8;this[_0x185b7e(0x107)]('chart',{...this['_snapshot'],'chart':n[_0x185b7e(0xbb)][_0x185b7e(0xfe)](_0x5b00ec),'controls':n[_0x185b7e(0xbb)]['deepClone'](_0x53829d),'name':_0xd86ea3});}[_0x2b77a8(0xd1)](){const _0x1092a0=_0x2b77a8;this[_0x1092a0(0xc1)]['complete'](),super[_0x1092a0(0xd1)]();}[_0x2b77a8(0x107)](_0x586856,_0x224759){const _0x42b050=_0x2b77a8;let _0x274959=this[_0x42b050(0xdd)];this['_snapshot']=_0x224759,this['_changed$'][_0x42b050(0xac)]({'type':_0x586856,'previous':n[_0x42b050(0xbb)][_0x42b050(0xfe)](_0x274959),'current':n['Tools'][_0x42b050(0xfe)](_0x224759)});}};function x(_0x53994f,_0x16cdb3){const _0x1c839c=_0x2b77a8;if(_0x16cdb3['valueFields']['length']===0x0)return{'dimensions':[],'source':[],'categorySpans':[]};let _0x4a09a6=new t[(_0x1c839c(0x106))]();_0x4a09a6[_0x1c839c(0x118)](_0x53994f);let _0x95dcb4=S(_0x4a09a6[_0x1c839c(0xe4)][_0x1c839c(0xef)],_0x4a09a6[_0x1c839c(0x103)]['getRowCount'](),_0x16cdb3[_0x1c839c(0x97)][_0x1c839c(0xcd)]===0x0,_0x16cdb3,!0x0),_0x21881d=S(_0x4a09a6[_0x1c839c(0xc4)]['info'],_0x4a09a6[_0x1c839c(0x103)][_0x1c839c(0x96)](),_0x16cdb3[_0x1c839c(0xbf)][_0x1c839c(0xcd)]===0x0,_0x16cdb3,!0x1),_0x10f172=A(_0x16cdb3),_0x3611de=[..._0x16cdb3[_0x1c839c(0x97)]];_0x10f172>=0x0&&_0x3611de[_0x1c839c(0xc6)](_0x10f172,0x0,void 0x0);let _0x4583dd=_0x95dcb4[_0x1c839c(0xd6)](_0xc28c81=>O(_0x4a09a6[_0x1c839c(0xe4)][_0x1c839c(0xef)][_0xc28c81],_0x16cdb3,_0x10f172)),_0x387c64=[],_0x1bfd7d=[];for(let _0x65ac96=0x0;_0x65ac96<_0x3611de[_0x1c839c(0xcd)];_0x65ac96++){var _0x33f023;let _0xa1a8dd=_0x3611de[_0x65ac96];_0x387c64['push'](_0xa1a8dd?{'name':_0xa1a8dd,'displayName':((_0x33f023=_0x16cdb3['dimension'][_0xa1a8dd])==null?void 0x0:_0x33f023[_0x1c839c(0xcb)])??_0xa1a8dd}:{'name':_0x1c839c(0x11e),'displayName':''}),_0x1bfd7d[_0x1c839c(0xab)](_0x4583dd['map'](_0x2c829a=>_0x2c829a[_0x65ac96]??''));}let _0x1586d8=Object[_0x1c839c(0x138)](_0x4a09a6[_0x1c839c(0x13b)])[_0x1c839c(0xcd)]>0x0?_0x1bfd7d[_0x1c839c(0xd6)](_0x3f5fe1=>_0x3f5fe1[_0x1c839c(0xd6)](I)):void 0x0;return _0x21881d[_0x1c839c(0xb7)](_0x4229bd=>{const _0x2a5a0d=_0x1c839c;let _0xf7463b=_0x4a09a6['colView'][_0x2a5a0d(0xef)][_0x4229bd];_0x387c64[_0x2a5a0d(0xab)]({'name':E(_0xf7463b,_0x16cdb3,_0x4229bd),'displayName':T(_0xf7463b,_0x16cdb3,_0x4229bd)});let _0x4b9f17=_0x95dcb4['map'](_0x118ccd=>P(_0x4a09a6[_0x2a5a0d(0x103)][_0x2a5a0d(0x11d)](_0x118ccd,_0x4229bd)));if(_0x1bfd7d[_0x2a5a0d(0xab)](_0x4b9f17),_0x1586d8){let _0x118baf=M(_0xf7463b,_0x16cdb3,_0x4229bd);_0x1586d8[_0x2a5a0d(0xab)](_0x4b9f17['map']((_0x5edb31,_0x1d629c)=>{const _0x38d379=_0x2a5a0d;let _0x57421f=_0x16cdb3[_0x38d379(0x126)]===t['PivotTableValuePositionEnum'][_0x38d379(0x130)]?M(_0x4a09a6[_0x38d379(0xe4)][_0x38d379(0xef)][_0x95dcb4[_0x1d629c]],_0x16cdb3,-0x1):_0x118baf;return F(_0x5edb31,_0x57421f?_0x4a09a6[_0x38d379(0x13b)][_0x57421f]:void 0x0);}));}}),{'dimensions':_0x387c64,'source':_0x1bfd7d,..._0x1586d8?{'sourceLabels':_0x1586d8}:{},'categorySpans':D(_0x4583dd,_0x3611de[_0x1c839c(0xcd)])};}function S(_0x1994fe,_0x68a583,_0x30bf0e,_0x26b2cc,_0x577de1){const _0x392127=_0x2b77a8;let _0xa3a3e9=[];for(let _0xf2d914=0x0;_0xf2d914<_0x68a583;_0xf2d914++){let _0x4bd970=_0x1994fe[_0xf2d914];(!(_0x4bd970!=null&&_0x4bd970[_0x392127(0x104)]||_0x4bd970!=null&&_0x4bd970[_0x392127(0xb0)]||_0x4bd970!=null&&_0x4bd970[_0x392127(0xda)])&&C(_0x4bd970,_0x26b2cc,_0x577de1)||w(_0x4bd970,_0x26b2cc))&&_0xa3a3e9['push'](_0xf2d914);}return _0xa3a3e9['length']===0x0&&_0x30bf0e?Array[_0x392127(0x8f)]({'length':_0x68a583},(_0x24c176,_0x12eb80)=>_0x12eb80):_0xa3a3e9;}function C(_0x558856,_0x1f6e00,_0x12188e){const _0x252530=_0x2b77a8;return _0x12188e&&_0x1f6e00['valueFields'][_0x252530(0xcd)]>0x1&&_0x1f6e00[_0x252530(0x126)]===t[_0x252530(0xd3)][_0x252530(0x130)]?(_0x558856==null?void 0x0:_0x558856[_0x252530(0xc2)])!==void 0x0&&_0x558856[_0x252530(0xc2)]>=0x0&&_0x558856[_0x252530(0xa5)][_0x252530(0xcd)]>=_0x1f6e00[_0x252530(0x97)]['length']:(_0x558856==null?void 0x0:_0x558856['isLeaf'])!==!0x1;}function w(_0x1ad3d8,_0x165959){const _0x4676ff=_0x2b77a8;if(!(_0x1ad3d8!=null&&_0x1ad3d8[_0x4676ff(0xa3)])||!_0x1ad3d8[_0x4676ff(0xa5)][_0x4676ff(0xcd)])return!0x1;let _0xcf6005=_0x165959['collapseInfo'][_0x1ad3d8[_0x4676ff(0xa3)]];if(typeof _0xcf6005==_0x4676ff(0x120))return _0xcf6005;let _0x23f0b0=_0x1ad3d8[_0x4676ff(0xa5)][_0x4676ff(0x11c)](Boolean)[_0x4676ff(0xf6)]();return _0x23f0b0!==void 0x0&&(_0xcf6005==null?void 0x0:_0xcf6005[_0x23f0b0])===!0x0;}function T(_0x5b166c,_0x697276,_0x20b437){const _0x4e997f=_0x2b77a8;let _0x3e6d66=(_0x5b166c==null?void 0x0:_0x5b166c['paths'][_0x4e997f(0x13a)](0x0,_0x697276[_0x4e997f(0xbf)][_0x4e997f(0xcd)]))??[];if(_0x697276['valuePosition']===t[_0x4e997f(0xd3)][_0x4e997f(0x114)]){let _0x2e09f7=j(_0x5b166c,_0x697276);_0x2e09f7&&_0x3e6d66['splice'](k(_0x697276['valueIndex'],_0x3e6d66[_0x4e997f(0xcd)]),0x0,_0x2e09f7);}return _0x3e6d66['filter'](Boolean)[_0x4e997f(0xee)]('\x20/\x20')||j(_0x5b166c,_0x697276,_0x20b437);}function E(_0x22dce3,_0x98c4b6,_0x3a5b58){const _0x29591f=_0x2b77a8;return JSON[_0x29591f(0x105)]([_0x98c4b6['valuePosition']===t[_0x29591f(0xd3)][_0x29591f(0x130)]?'':M(_0x22dce3,_0x98c4b6,_0x3a5b58)??'',...(_0x22dce3==null?void 0x0:_0x22dce3[_0x29591f(0xa5)])??[]]);}function D(_0x4ff452,_0x2c6264){const _0x12f398=_0x2b77a8;let _0x3cd867=[],_0x228f12=_0x4ff452[_0x12f398(0xd6)]((_0x53ab07,_0x4def87)=>_0x4def87===0x0?0x0:N(_0x4ff452[_0x4def87-0x1],_0x53ab07,_0x2c6264));for(let _0x460ccb=0x0;_0x460ccb<_0x2c6264;_0x460ccb++){let _0x1bb470=0x0;for(let _0x1852fb=0x1;_0x1852fb<_0x4ff452[_0x12f398(0xcd)];_0x1852fb++)_0x228f12[_0x1852fb]<=_0x460ccb&&(_0x3cd867[_0x12f398(0xab)]({'fieldIndex':_0x460ccb,'startIndex':_0x1bb470,'endIndex':_0x1852fb-0x1}),_0x1bb470=_0x1852fb);_0x4ff452['length']>0x0&&_0x3cd867[_0x12f398(0xab)]({'fieldIndex':_0x460ccb,'startIndex':_0x1bb470,'endIndex':_0x4ff452[_0x12f398(0xcd)]-0x1});}return _0x3cd867;}function O(_0x5ceec6,_0x37df6f,_0x70ffee){const _0x55acb1=_0x2b77a8;let _0x27b639=(_0x5ceec6==null?void 0x0:_0x5ceec6['paths'][_0x55acb1(0x13a)](0x0,_0x37df6f['rowFields'][_0x55acb1(0xcd)]))??[];for(;_0x27b639[_0x55acb1(0xcd)]<_0x37df6f[_0x55acb1(0x97)][_0x55acb1(0xcd)];)_0x27b639[_0x55acb1(0xab)]('');return _0x70ffee>=0x0&&_0x27b639[_0x55acb1(0xc6)](_0x70ffee,0x0,j(_0x5ceec6,_0x37df6f)),_0x27b639;}function k(_0x15161f,_0x3ec575){const _0x544ebc=_0x2b77a8;return!Number['isInteger'](_0x15161f)||_0x15161f<0x0?_0x3ec575:Math[_0x544ebc(0xaf)](_0x15161f,_0x3ec575);}function A(_0x497cfe){const _0x4a40bc=_0x2b77a8;return _0x497cfe[_0x4a40bc(0xf9)][_0x4a40bc(0xcd)]>0x1&&_0x497cfe['valuePosition']===t[_0x4a40bc(0xd3)]['Row']?k(_0x497cfe[_0x4a40bc(0xc2)],_0x497cfe['rowFields']['length']):-0x1;}function j(_0x4e86e4,_0x43657c,_0x209553=-0x1){const _0x4d0085=_0x2b77a8;let _0x41c3fc=M(_0x4e86e4,_0x43657c,_0x209553);if(!_0x41c3fc)return'';let _0x181229=_0x43657c['measure'][_0x41c3fc];return(_0x181229==null?void 0x0:_0x181229[_0x4d0085(0xcb)])||(_0x181229==null?void 0x0:_0x181229['sourceName'])||_0x41c3fc;}function M(_0x12f9b6,_0x358d88,_0x2b7b31){const _0xbdb3fc=_0x2b77a8;return _0x12f9b6!=null&&_0x12f9b6['tableFieldId']&&_0x358d88[_0xbdb3fc(0xea)][_0x12f9b6[_0xbdb3fc(0xa3)]]?_0x12f9b6[_0xbdb3fc(0xa3)]:(_0x12f9b6==null?void 0x0:_0x12f9b6[_0xbdb3fc(0xc2)])!==void 0x0&&_0x12f9b6[_0xbdb3fc(0xc2)]>=0x0?_0x358d88[_0xbdb3fc(0xf9)][_0x12f9b6['valueIndex']]:_0x358d88['valueFields']['length']===0x1?_0x358d88[_0xbdb3fc(0xf9)][0x0]:_0x358d88['valueFields'][_0x2b7b31];}function N(_0x28a5c8,_0x54b432,_0x5b1556){let _0xba13e9=0x0;for(;_0xba13e9<_0x5b1556&&_0x28a5c8[_0xba13e9]===_0x54b432[_0xba13e9];)_0xba13e9++;return _0xba13e9;}function P(_0x51ff72){const _0x4d2d4a=_0x2b77a8;return(0x0,t[_0x4d2d4a(0xe7)])(_0x51ff72)?_0x51ff72[_0x4d2d4a(0xaa)]:(0x0,t[_0x4d2d4a(0x10d)])(_0x51ff72)?null:_0x51ff72??null;}function F(_0x498291,_0x227d12){const _0x49539e=_0x2b77a8;return _0x227d12&&typeof _0x498291==_0x49539e(0x10f)?String(n[_0x49539e(0xb2)][_0x49539e(0x119)](_0x227d12,_0x498291,{'throws':!0x1})):I(_0x498291);}function I(_0x234c21){return _0x234c21==null?'':String(_0x234c21);}var L=class extends e[_0x2b77a8(0xb9)]{constructor(..._0x47bb28){const _0x87ba6=_0x2b77a8;super(..._0x47bb28),v(this,_0x87ba6(0x135),new r[(_0x87ba6(0x9d))]({'status':e[_0x87ba6(0x98)]['UNAVAILABLE']})),v(this,'_latestRequestId',-0x1),v(this,_0x87ba6(0x99),!0x1),v(this,_0x87ba6(0xec),this[_0x87ba6(0x135)][_0x87ba6(0xd8)]());}get[_0x2b77a8(0xb5)](){const _0x1d2221=_0x2b77a8;return this[_0x1d2221(0x135)][_0x1d2221(0x11d)]();}[_0x2b77a8(0xa2)](_0x3383cb){const _0x513526=_0x2b77a8;return this[_0x513526(0xa6)](_0x3383cb[_0x513526(0x10e)])?(this['_latestRequestId']=_0x3383cb[_0x513526(0x10e)],this[_0x513526(0x135)][_0x513526(0xac)]({'status':e['ChartDataSourceRuntimeStatus'][_0x513526(0x10a)],..._0x3383cb}),!0x0):!0x1;}[_0x2b77a8(0x127)](_0x46d581){const _0x4b3608=_0x2b77a8;if(!this['_accepts'](_0x46d581[_0x4b3608(0x10e)]))return!0x1;this[_0x4b3608(0xbd)]=_0x46d581[_0x4b3608(0x10e)],this['publishDataSet'](_0x46d581['dataSet']),this['_hasSuccessfulResult']=!0x0;let {dataSet:_0x2efb5f,..._0x5c35a2}=_0x46d581;return this[_0x4b3608(0x135)][_0x4b3608(0xac)]({'status':e[_0x4b3608(0x98)]['READY'],..._0x5c35a2}),!0x0;}[_0x2b77a8(0xf8)](_0x55995c,_0x38a019){const _0x556454=_0x2b77a8;return this[_0x556454(0xa6)](_0x55995c[_0x556454(0x10e)])?(this[_0x556454(0xbd)]=_0x55995c['requestId'],this[_0x556454(0x135)][_0x556454(0xac)]({'status':this['_hasSuccessfulResult']?e[_0x556454(0x98)][_0x556454(0xd9)]:e[_0x556454(0x98)][_0x556454(0x129)],..._0x55995c,'error':_0x38a019}),!0x0):!0x1;}['dispose'](){const _0x506283=_0x2b77a8;this[_0x506283(0x135)][_0x506283(0x95)](),super[_0x506283(0xd1)]();}[_0x2b77a8(0xa6)](_0x4019de){const _0x40bf32=_0x2b77a8;return _0x4019de>=this[_0x40bf32(0xbd)];}},R=class extends n[_0x2b77a8(0x12a)]{constructor(_0x18a458,_0x1f0992,_0xbafbad){const _0x5f0e48=_0x2b77a8;super(),this[_0x5f0e48(0x12f)]=_0x18a458,this[_0x5f0e48(0x9b)]=_0x1f0992,v(this,_0x5f0e48(0xcf),void 0x0),v(this,_0x5f0e48(0xca),new r[(_0x5f0e48(0xf1))]()),v(this,'_state$',new r['BehaviorSubject']({'status':e[_0x5f0e48(0x98)][_0x5f0e48(0x129)]})),v(this,_0x5f0e48(0xcc),void 0x0),v(this,_0x5f0e48(0x12e),0x0),v(this,_0x5f0e48(0xd4),0x0),v(this,_0x5f0e48(0xf4),!0x1),v(this,_0x5f0e48(0xc3),!0x1),v(this,_0x5f0e48(0xe3),this[_0x5f0e48(0xca)][_0x5f0e48(0xd8)]()),v(this,_0x5f0e48(0xec),this['_state$']['asObservable']());let _0x24b1c6=_0x18a458[_0x5f0e48(0x134)];if(!d(_0x24b1c6))throw Error(_0x5f0e48(0x132));this['_pivotTable']=new t[(_0x5f0e48(0xfc))](_0xbafbad,void 0x0,_0x18a458['id']),this[_0x5f0e48(0xcf)][_0x5f0e48(0xa7)](_0x24b1c6[_0x5f0e48(0x123)]),this['disposeWithMe'](_0x1f0992);}get['latestResult'](){const _0x486b4f=_0x2b77a8;return this[_0x486b4f(0xcc)];}[_0x2b77a8(0xeb)](){const _0x291645=_0x2b77a8;this[_0x291645(0xf4)]||(this[_0x291645(0xf4)]=!0x0,this['disposeWithMe'](this[_0x291645(0x12f)][_0x291645(0xd2)]['subscribe'](_0x4675ad=>{const _0x187c99=_0x291645;_0x4675ad[_0x187c99(0x92)]===_0x187c99(0xd0)&&d(_0x4675ad['previous'])&&d(_0x4675ad[_0x187c99(0x122)])&&(this['_reportRevision']++,this[_0x187c99(0xcf)][_0x187c99(0xa7)](_0x4675ad[_0x187c99(0x122)]['pivotModel']),B(_0x4675ad['previous']['pivotModel'],_0x4675ad['current'][_0x187c99(0x123)])&&this[_0x187c99(0xcf)][_0x187c99(0xdf)](!0x0),this[_0x187c99(0xe8)]());})),this[_0x291645(0x108)](this[_0x291645(0x9b)][_0x291645(0xd2)][_0x291645(0xa4)](_0x3e34a7=>{const _0x263b6b=_0x291645;_0x3e34a7[_0x263b6b(0x10b)]===this[_0x263b6b(0x9b)]['pivotCacheId']&&(this[_0x263b6b(0xcf)]['setDirty'](!0x0),this[_0x263b6b(0xad)]());})),this[_0x291645(0xe8)]());}['refresh'](){const _0x44bb11=_0x2b77a8;let _0x486b35={'requestId':++this[_0x44bb11(0x12e)],'reportRevision':this[_0x44bb11(0xd4)],'pivotCacheId':this[_0x44bb11(0x9b)]['pivotCacheId'],'cacheRevision':this[_0x44bb11(0x9b)]['revision']};this['_state$'][_0x44bb11(0xac)]({'status':e[_0x44bb11(0x98)]['LOADING'],..._0x486b35});try{let _0x12c85a=this[_0x44bb11(0x12f)][_0x44bb11(0x134)];if(!d(_0x12c85a))throw Error(_0x44bb11(0xc7));let _0x53bf66=this[_0x44bb11(0xcf)][_0x44bb11(0x9c)]()[_0x44bb11(0xdc)](),_0x312f07=x(_0x53bf66,_0x12c85a[_0x44bb11(0x123)]),_0x3ef053={'pivotChartId':_0x12c85a['id'],'rowFieldCount':_0x12c85a[_0x44bb11(0x123)][_0x44bb11(0x97)]['length'],'categoryFieldCount':z(_0x12c85a[_0x44bb11(0x123)]),'valueFieldCount':_0x12c85a[_0x44bb11(0x123)][_0x44bb11(0xf9)][_0x44bb11(0xcd)],'fieldButtons':m(_0x12c85a[_0x44bb11(0x123)],_0x53bf66),..._0x486b35,'view':_0x53bf66,'dataSet':_0x312f07};return this[_0x44bb11(0xcc)]=_0x3ef053,this['_result$']['next'](_0x3ef053),this[_0x44bb11(0x135)][_0x44bb11(0xac)]({'status':e[_0x44bb11(0x98)]['READY'],..._0x486b35}),!0x0;}catch(_0x4b18d8){return this[_0x44bb11(0x135)][_0x44bb11(0xac)]({'status':this[_0x44bb11(0xcc)]?e['ChartDataSourceRuntimeStatus'][_0x44bb11(0xd9)]:e[_0x44bb11(0x98)]['UNAVAILABLE'],..._0x486b35,'error':_0x4b18d8}),!0x1;}}[_0x2b77a8(0xd1)](){const _0x58d0d2=_0x2b77a8;this[_0x58d0d2(0xcf)][_0x58d0d2(0xd1)](),this[_0x58d0d2(0xcc)]=void 0x0,this[_0x58d0d2(0xca)]['complete'](),this[_0x58d0d2(0x135)][_0x58d0d2(0x95)](),super[_0x58d0d2(0xd1)]();}[_0x2b77a8(0xad)](){const _0x436356=_0x2b77a8;this['_cacheRefreshScheduled']||(this[_0x436356(0xc3)]=!0x0,queueMicrotask(()=>{const _0x426fce=_0x436356;this['_cacheRefreshScheduled']=!0x1,this['_disposed']||this[_0x426fce(0xe8)]();}));}};function z(_0x35a2f5){const _0x591e12=_0x2b77a8;let _0x5cd42a=_0x35a2f5[_0x591e12(0xf9)][_0x591e12(0xcd)]>0x1&&_0x35a2f5[_0x591e12(0x126)]===t[_0x591e12(0xd3)][_0x591e12(0x130)];return _0x35a2f5['rowFields']['length']+ +!!_0x5cd42a;}function B(_0x51f044,_0x3e56e1){const _0x2f7216=_0x2b77a8;return JSON['stringify'](V(_0x51f044))!==JSON[_0x2f7216(0x105)](V(_0x3e56e1));}function V(_0x40a8b1){const _0x3707d9=_0x2b77a8;let _0x3556fc=_0x212508=>{const _0x4f681d=_0x3a0d;let _0x28bb32=_0x40a8b1[_0x4f681d(0x101)][_0x212508];return _0x28bb32&&{'id':_0x28bb32['id'],'dataFieldId':_0x28bb32[_0x4f681d(0xb1)],'filterInfo':_0x28bb32[_0x4f681d(0xa8)]};};return{'rowFields':_0x40a8b1[_0x3707d9(0x97)]['map'](_0x3556fc),'columnFields':_0x40a8b1[_0x3707d9(0xbf)][_0x3707d9(0xd6)](_0x3556fc),'filterFields':_0x40a8b1[_0x3707d9(0xbc)][_0x3707d9(0xd6)](_0x3556fc),'valueFields':_0x40a8b1['valueFields'][_0x3707d9(0xd6)](_0x22ffdc=>{let _0x4cc6c0=_0x40a8b1['measure'][_0x22ffdc];return _0x4cc6c0&&{'id':_0x4cc6c0['id'],'dataFieldId':_0x4cc6c0['dataFieldId'],'subtotal':_0x4cc6c0['subtotal']};})};}exports[_0x2b77a8(0xbe)]=l,exports[_0x2b77a8(0x124)]=L,exports[_0x2b77a8(0x90)]=b,exports[_0x2b77a8(0xf7)]=y,exports[_0x2b77a8(0xc5)]=R,exports['PivotChartSourceKind']=c,exports[_0x2b77a8(0xd5)]=i,exports[_0x2b77a8(0xe9)]=x,exports[_0x2b77a8(0x112)]=m,exports[_0x2b77a8(0x94)]=s,exports[_0x2b77a8(0x133)]=o,exports[_0x2b77a8(0x111)]=u,exports[_0x2b77a8(0x100)]=d,exports[_0x2b77a8(0xfb)]=a,exports[_0x2b77a8(0x11f)]=f;
|
package/lib/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x39b7ee=_0x297f;(function(_0x31e1f2,_0x166960){const _0x5f5435=_0x297f,_0x3dc051=_0x31e1f2();while(!![]){try{const _0x4a0a29=-parseInt(_0x5f5435(0x1c4))/0x1+parseInt(_0x5f5435(0x1f3))/0x2*(parseInt(_0x5f5435(0x199))/0x3)+parseInt(_0x5f5435(0x191))/0x4+parseInt(_0x5f5435(0x219))/0x5+-parseInt(_0x5f5435(0x1c0))/0x6+-parseInt(_0x5f5435(0x1ba))/0x7+parseInt(_0x5f5435(0x1e3))/0x8*(parseInt(_0x5f5435(0x1f8))/0x9);if(_0x4a0a29===_0x166960)break;else _0x3dc051['push'](_0x3dc051['shift']());}catch(_0x29aac1){_0x3dc051['push'](_0x3dc051['shift']());}}}(_0x38a1,0xb775d));import{ChartDataSource as _0x21a3be,ChartDataSourceRuntimeStatus as _0xfa9a58,ChartTypeBits as _0x57429f,ChartTypeString as _0x31e11e}from'@univerjs-pro/engine-chart';import{PivotFilterTypeEnum as _0x13b230,PivotTable as _0x9c554a,PivotTableValuePositionEnum as _0x368626,PivotView as _0x30c470,isErrorValue as _0x42ec63,isPrefixValue as _0x3c7a02}from'@univerjs-pro/engine-pivot';import{Disposable as _0x3c7e7e,Tools as _0x25dded,numfmt as _0x133a61}from'@univerjs/core';import{BehaviorSubject as _0x5f2319,Subject as _0x543e67}from'rxjs';let h=function(_0x53ae1){const _0x3d727d=_0x297f;return _0x53ae1[_0x3d727d(0x1da)]=_0x3d727d(0x1dd),_0x53ae1[_0x3d727d(0x218)]=_0x3d727d(0x1a6),_0x53ae1;}({});function g(_0x2d501e){const _0x9c84d7=_0x297f;switch(_0x2d501e){case _0x31e11e[_0x9c84d7(0x200)]:case _0x31e11e[_0x9c84d7(0x1c3)]:case _0x31e11e[_0x9c84d7(0x1a3)]:case _0x31e11e[_0x9c84d7(0x1d0)]:case _0x31e11e[_0x9c84d7(0x20e)]:case _0x31e11e[_0x9c84d7(0x217)]:case _0x31e11e[_0x9c84d7(0x1d8)]:case _0x31e11e[_0x9c84d7(0x196)]:case _0x31e11e[_0x9c84d7(0x1a5)]:case _0x31e11e[_0x9c84d7(0x1d4)]:case _0x31e11e[_0x9c84d7(0x1b7)]:case _0x31e11e[_0x9c84d7(0x1a4)]:case _0x31e11e[_0x9c84d7(0x20d)]:return!0x0;default:return!0x1;}}function _(_0x2ca392){const _0x464526=_0x297f;switch(_0x2ca392){case _0x57429f[_0x464526(0x1c3)]:case _0x57429f[_0x464526(0x1a3)]:case _0x57429f[_0x464526(0x1d0)]:case _0x57429f[_0x464526(0x20e)]:case _0x57429f[_0x464526(0x217)]:case _0x57429f[_0x464526(0x1d8)]:case _0x57429f['Line']:case _0x57429f['Area']:case _0x57429f[_0x464526(0x1b7)]:case _0x57429f[_0x464526(0x1a4)]:case _0x57429f[_0x464526(0x20d)]:case _0x57429f[_0x464526(0x196)]:case _0x57429f['Doughnut']:return'supported';default:return'unsupported';}}function v(_0x3b05d8){const _0xd75b61=_0x297f;return _0x3b05d8===_0x57429f[_0xd75b61(0x196)]?0x1:void 0x0;}let y=function(_0x2ab35a){const _0x369f5d=_0x297f;return _0x2ab35a[_0x369f5d(0x1df)]=_0x369f5d(0x1c1),_0x2ab35a[_0x369f5d(0x1f9)]=_0x369f5d(0x1b9),_0x2ab35a;}({});const b={'showFieldButtons':!0x0,'showExpandCollapseButtons':!0x0};function x(_0xddb6ec){return _0xddb6ec['pivotTableRef']!==void 0x0;}function S(_0x247820){return!x(_0x247820);}function C(_0x33b8cc){return{...b,..._0x33b8cc};}function w(_0x11ab18){const _0x3b496a=_0x297f;return _0x11ab18?_0x11ab18[_0x3b496a(0x1fe)]!==_0x13b230[_0x3b496a(0x1cb)]||_0x11ab18[_0x3b496a(0x202)]!==!0x0:!0x1;}function T(_0x2e6014,_0x2b01c7){const _0x3368b2=_0x297f;let _0x5c9e61=(_0x21f4ae,_0x3c02f7)=>{const _0x286c8c=_0x297f;let _0xdd2457=_0x2e6014[_0x286c8c(0x21e)][_0x21f4ae];return _0xdd2457?{'fieldId':_0x21f4ae,'label':_0xdd2457[_0x286c8c(0x1d5)]||_0xdd2457['sourceName']||_0x21f4ae,'role':_0x3c02f7,'filtered':w(_0xdd2457[_0x286c8c(0x1e8)])}:void 0x0;},_0x53c996=[],_0x447a34=(_0x26f288,_0xf7a58)=>{const _0x300d34=_0x297f;_0x26f288[_0x300d34(0x1bc)](_0x142a8a=>{const _0xc9323=_0x300d34;let _0x11089c=_0x5c9e61(_0x142a8a,_0xf7a58);_0x11089c&&_0x53c996[_0xc9323(0x209)](_0x11089c);});};_0x447a34(_0x2e6014[_0x3368b2(0x215)],_0x3368b2(0x204)),_0x447a34(_0x2e6014[_0x3368b2(0x220)],_0x3368b2(0x203));let _0x523f9b=0x0;for(let _0x333437 of(_0x2b01c7==null?void 0x0:_0x2b01c7['rowView'][_0x3368b2(0x1d7)])??[])if(_0x523f9b=Math[_0x3368b2(0x1f0)](_0x523f9b,(_0x333437==null?void 0x0:_0x333437[_0x3368b2(0x190)][_0x3368b2(0x1eb)])??0x0),_0x523f9b>=_0x2e6014['rowFields'][_0x3368b2(0x1eb)])break;return _0x447a34(_0x2e6014[_0x3368b2(0x1a9)][_0x3368b2(0x1aa)](0x0,_0x523f9b||_0x2e6014['rowFields'][_0x3368b2(0x1eb)]),_0x3368b2(0x213)),_0x53c996;}function E(_0x26b3ae){'@babel/helpers - typeof';const _0x5ed1e3=_0x297f;return E=typeof Symbol==_0x5ed1e3(0x1af)&&typeof Symbol['iterator']==_0x5ed1e3(0x214)?function(_0x515f64){return typeof _0x515f64;}:function(_0x465959){const _0x48a923=_0x5ed1e3;return _0x465959&&typeof Symbol=='function'&&_0x465959[_0x48a923(0x1fa)]===Symbol&&_0x465959!==Symbol['prototype']?_0x48a923(0x214):typeof _0x465959;},E(_0x26b3ae);}function D(_0x5891c2,_0x49c7a9){const _0x5646c8=_0x297f;if(E(_0x5891c2)!='object'||!_0x5891c2)return _0x5891c2;var _0x36dd95=_0x5891c2[Symbol[_0x5646c8(0x1be)]];if(_0x36dd95!==void 0x0){var _0x57f566=_0x36dd95[_0x5646c8(0x21a)](_0x5891c2,_0x49c7a9||_0x5646c8(0x1a2));if(E(_0x57f566)!=_0x5646c8(0x1f4))return _0x57f566;throw TypeError(_0x5646c8(0x222));}return(_0x49c7a9===_0x5646c8(0x19c)?String:Number)(_0x5891c2);}function _0x297f(_0x5211ee,_0x210e3c){_0x5211ee=_0x5211ee-0x190;const _0x38a1f4=_0x38a1();let _0x297f65=_0x38a1f4[_0x5211ee];return _0x297f65;}function O(_0x5cfd92){const _0x544be8=_0x297f;var _0x3b20df=D(_0x5cfd92,_0x544be8(0x19c));return E(_0x3b20df)==_0x544be8(0x214)?_0x3b20df:_0x3b20df+'';}function k(_0x1b8f91,_0x462ac8,_0x3a301e){const _0x23dc14=_0x297f;return(_0x462ac8=O(_0x462ac8))in _0x1b8f91?Object[_0x23dc14(0x1fd)](_0x1b8f91,_0x462ac8,{'value':_0x3a301e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b8f91[_0x462ac8]=_0x3a301e,_0x1b8f91;}let A=function(_0x4e246e){const _0x49572b=_0x297f;return _0x4e246e['Cache']=_0x49572b(0x208),_0x4e246e[_0x49572b(0x1a1)]=_0x49572b(0x1b6),_0x4e246e[_0x49572b(0x1ca)]=_0x49572b(0x1ff),_0x4e246e[_0x49572b(0x19e)]=_0x49572b(0x1db),_0x4e246e;}({});var j=class extends _0x3c7e7e{constructor(_0x44565f){const _0x2fb1f9=_0x297f;super(),k(this,_0x2fb1f9(0x1d1),void 0x0),k(this,'_changed$',new _0x543e67()),k(this,_0x2fb1f9(0x21d),this[_0x2fb1f9(0x206)][_0x2fb1f9(0x19d)]()),this[_0x2fb1f9(0x1d1)]=_0x25dded[_0x2fb1f9(0x1fb)](_0x44565f);}get['id'](){const _0x4af6d4=_0x297f;return this[_0x4af6d4(0x1d1)]['id'];}get[_0x39b7ee(0x1f7)](){const _0x2b5f5a=_0x39b7ee;return _0x25dded[_0x2b5f5a(0x1fb)](this[_0x2b5f5a(0x1d1)]);}get[_0x39b7ee(0x1db)](){const _0x2cd369=_0x39b7ee;return C(this[_0x2cd369(0x1d1)][_0x2cd369(0x1db)]);}[_0x39b7ee(0x1e1)](_0x50eb09){const _0x28c9fc=_0x39b7ee;return S(this[_0x28c9fc(0x1d1)])?(this[_0x28c9fc(0x1cf)](_0x28c9fc(0x208),{...this[_0x28c9fc(0x1d1)],'cacheRef':_0x25dded[_0x28c9fc(0x1fb)](_0x50eb09)}),!0x0):!0x1;}[_0x39b7ee(0x1f2)](_0x324b0b){const _0x1019c0=_0x39b7ee;return S(this['_snapshot'])?(this[_0x1019c0(0x1cf)](_0x1019c0(0x1b6),{...this[_0x1019c0(0x1d1)],'pivotModel':_0x25dded['deepClone'](_0x324b0b)}),!0x0):!0x1;}[_0x39b7ee(0x1f6)](_0x26d872){const _0x18d72a=_0x39b7ee;this[_0x18d72a(0x1cf)](_0x18d72a(0x1ff),{...this[_0x18d72a(0x1d1)],'chart':_0x25dded[_0x18d72a(0x1fb)](_0x26d872)});}[_0x39b7ee(0x19a)](_0x324b12){const _0x11a0a8=_0x39b7ee;this[_0x11a0a8(0x1cf)]('controls',{...this[_0x11a0a8(0x1d1)],'controls':_0x25dded[_0x11a0a8(0x1fb)](_0x324b12)});}['replacePresentation'](_0x3dd738,_0x2a48b0,_0x4f6298){const _0x460d11=_0x39b7ee;this[_0x460d11(0x1cf)](_0x460d11(0x1ff),{...this['_snapshot'],'chart':_0x25dded[_0x460d11(0x1fb)](_0x3dd738),'controls':_0x25dded[_0x460d11(0x1fb)](_0x2a48b0),'name':_0x4f6298});}[_0x39b7ee(0x1ed)](){const _0x3d1c83=_0x39b7ee;this['_changed$'][_0x3d1c83(0x1bb)](),super[_0x3d1c83(0x1ed)]();}[_0x39b7ee(0x1cf)](_0x406e29,_0x3a4fbd){const _0x14469b=_0x39b7ee;let _0xf18df1=this[_0x14469b(0x1d1)];this[_0x14469b(0x1d1)]=_0x3a4fbd,this[_0x14469b(0x206)][_0x14469b(0x21b)]({'type':_0x406e29,'previous':_0x25dded[_0x14469b(0x1fb)](_0xf18df1),'current':_0x25dded['deepClone'](_0x3a4fbd)});}};function M(_0x2ff790,_0x238f8c){const _0x48c160=_0x39b7ee;if(_0x238f8c[_0x48c160(0x20a)][_0x48c160(0x1eb)]===0x0)return{'dimensions':[],'source':[],'categorySpans':[]};let _0x4dce2f=new _0x30c470();_0x4dce2f['formJSON'](_0x2ff790);let _0x21f573=N(_0x4dce2f[_0x48c160(0x1c6)]['info'],_0x4dce2f[_0x48c160(0x1b3)][_0x48c160(0x205)](),_0x238f8c[_0x48c160(0x1a9)][_0x48c160(0x1eb)]===0x0,_0x238f8c,!0x0),_0x406c37=N(_0x4dce2f[_0x48c160(0x210)][_0x48c160(0x1d7)],_0x4dce2f[_0x48c160(0x1b3)]['getColCount'](),_0x238f8c['columnFields'][_0x48c160(0x1eb)]===0x0,_0x238f8c,!0x1),_0x544a00=V(_0x238f8c),_0x1cb4a2=[..._0x238f8c[_0x48c160(0x1a9)]];_0x544a00>=0x0&&_0x1cb4a2['splice'](_0x544a00,0x0,void 0x0);let _0x2fef17=_0x21f573[_0x48c160(0x1bf)](_0x1fbf75=>z(_0x4dce2f[_0x48c160(0x1c6)][_0x48c160(0x1d7)][_0x1fbf75],_0x238f8c,_0x544a00)),_0x27a27b=[],_0x2650a2=[];for(let _0x30e203=0x0;_0x30e203<_0x1cb4a2[_0x48c160(0x1eb)];_0x30e203++){var _0x5246e7;let _0x55328d=_0x1cb4a2[_0x30e203];_0x27a27b['push'](_0x55328d?{'name':_0x55328d,'displayName':((_0x5246e7=_0x238f8c['dimension'][_0x55328d])==null?void 0x0:_0x5246e7[_0x48c160(0x1d5)])??_0x55328d}:{'name':_0x48c160(0x1ea),'displayName':''}),_0x2650a2[_0x48c160(0x209)](_0x2fef17[_0x48c160(0x1bf)](_0x52e84b=>_0x52e84b[_0x30e203]??''));}let _0x56b414=Object[_0x48c160(0x1e4)](_0x4dce2f['formatMap'])[_0x48c160(0x1eb)]>0x0?_0x2650a2[_0x48c160(0x1bf)](_0x1a0c95=>_0x1a0c95['map'](q)):void 0x0;return _0x406c37['forEach'](_0x45952d=>{const _0x2582a0=_0x48c160;let _0xb07e70=_0x4dce2f['colView'][_0x2582a0(0x1d7)][_0x45952d];_0x27a27b[_0x2582a0(0x209)]({'name':L(_0xb07e70,_0x238f8c,_0x45952d),'displayName':I(_0xb07e70,_0x238f8c,_0x45952d)});let _0x7aefef=_0x21f573[_0x2582a0(0x1bf)](_0x1949d8=>G(_0x4dce2f[_0x2582a0(0x1b3)][_0x2582a0(0x1e6)](_0x1949d8,_0x45952d)));if(_0x2650a2['push'](_0x7aefef),_0x56b414){let _0x133e5e=U(_0xb07e70,_0x238f8c,_0x45952d);_0x56b414['push'](_0x7aefef[_0x2582a0(0x1bf)]((_0x38585b,_0x47179f)=>{const _0x3759ba=_0x2582a0;let _0x43d6f2=_0x238f8c[_0x3759ba(0x1d2)]===_0x368626['Row']?U(_0x4dce2f[_0x3759ba(0x1c6)]['info'][_0x21f573[_0x47179f]],_0x238f8c,-0x1):_0x133e5e;return K(_0x38585b,_0x43d6f2?_0x4dce2f['formatMap'][_0x43d6f2]:void 0x0);}));}}),{'dimensions':_0x27a27b,'source':_0x2650a2,..._0x56b414?{'sourceLabels':_0x56b414}:{},'categorySpans':R(_0x2fef17,_0x1cb4a2[_0x48c160(0x1eb)])};}function N(_0x1674be,_0x5d3b66,_0x4a7e96,_0x3f8720,_0x58f30b){const _0x56086a=_0x39b7ee;let _0x5f1bc8=[];for(let _0x4c903b=0x0;_0x4c903b<_0x5d3b66;_0x4c903b++){let _0x32e038=_0x1674be[_0x4c903b];(!(_0x32e038!=null&&_0x32e038['isBottomTotal']||_0x32e038!=null&&_0x32e038[_0x56086a(0x216)]||_0x32e038!=null&&_0x32e038['isSubtotal'])&&P(_0x32e038,_0x3f8720,_0x58f30b)||F(_0x32e038,_0x3f8720))&&_0x5f1bc8[_0x56086a(0x209)](_0x4c903b);}return _0x5f1bc8[_0x56086a(0x1eb)]===0x0&&_0x4a7e96?Array[_0x56086a(0x1ab)]({'length':_0x5d3b66},(_0x92b707,_0x20b56d)=>_0x20b56d):_0x5f1bc8;}function P(_0x45e1b6,_0x5863c0,_0x4cbf08){const _0x1afe71=_0x39b7ee;return _0x4cbf08&&_0x5863c0[_0x1afe71(0x20a)][_0x1afe71(0x1eb)]>0x1&&_0x5863c0[_0x1afe71(0x1d2)]===_0x368626[_0x1afe71(0x1ce)]?(_0x45e1b6==null?void 0x0:_0x45e1b6[_0x1afe71(0x1e0)])!==void 0x0&&_0x45e1b6['valueIndex']>=0x0&&_0x45e1b6[_0x1afe71(0x190)][_0x1afe71(0x1eb)]>=_0x5863c0[_0x1afe71(0x1a9)][_0x1afe71(0x1eb)]:(_0x45e1b6==null?void 0x0:_0x45e1b6['isLeaf'])!==!0x1;}function F(_0x11a871,_0x4324fd){const _0x9510c1=_0x39b7ee;if(!(_0x11a871!=null&&_0x11a871['tableFieldId'])||!_0x11a871[_0x9510c1(0x190)]['length'])return!0x1;let _0x19c677=_0x4324fd['collapseInfo'][_0x11a871['tableFieldId']];if(typeof _0x19c677==_0x9510c1(0x201))return _0x19c677;let _0x50d9c9=_0x11a871['paths'][_0x9510c1(0x204)](Boolean)[_0x9510c1(0x20c)]();return _0x50d9c9!==void 0x0&&(_0x19c677==null?void 0x0:_0x19c677[_0x50d9c9])===!0x0;}function I(_0x56cbd6,_0x5f1d66,_0x46f279){const _0x321b58=_0x39b7ee;let _0x249af3=(_0x56cbd6==null?void 0x0:_0x56cbd6[_0x321b58(0x190)][_0x321b58(0x1aa)](0x0,_0x5f1d66[_0x321b58(0x220)][_0x321b58(0x1eb)]))??[];if(_0x5f1d66[_0x321b58(0x1d2)]===_0x368626['Column']){let _0x3fbd5d=H(_0x56cbd6,_0x5f1d66);_0x3fbd5d&&_0x249af3[_0x321b58(0x193)](B(_0x5f1d66[_0x321b58(0x1e0)],_0x249af3[_0x321b58(0x1eb)]),0x0,_0x3fbd5d);}return _0x249af3[_0x321b58(0x204)](Boolean)[_0x321b58(0x212)](_0x321b58(0x1c7))||H(_0x56cbd6,_0x5f1d66,_0x46f279);}function L(_0x2c3d96,_0x36310e,_0x2dcfb7){const _0x226794=_0x39b7ee;return JSON[_0x226794(0x198)]([_0x36310e[_0x226794(0x1d2)]===_0x368626[_0x226794(0x1ce)]?'':U(_0x2c3d96,_0x36310e,_0x2dcfb7)??'',...(_0x2c3d96==null?void 0x0:_0x2c3d96[_0x226794(0x190)])??[]]);}function R(_0x580730,_0x25b077){const _0x5205cd=_0x39b7ee;let _0x50081b=[],_0x336466=_0x580730[_0x5205cd(0x1bf)]((_0x3f7107,_0x57c6c1)=>_0x57c6c1===0x0?0x0:W(_0x580730[_0x57c6c1-0x1],_0x3f7107,_0x25b077));for(let _0x2409dd=0x0;_0x2409dd<_0x25b077;_0x2409dd++){let _0x3b66ee=0x0;for(let _0x4949cf=0x1;_0x4949cf<_0x580730[_0x5205cd(0x1eb)];_0x4949cf++)_0x336466[_0x4949cf]<=_0x2409dd&&(_0x50081b['push']({'fieldIndex':_0x2409dd,'startIndex':_0x3b66ee,'endIndex':_0x4949cf-0x1}),_0x3b66ee=_0x4949cf);_0x580730[_0x5205cd(0x1eb)]>0x0&&_0x50081b[_0x5205cd(0x209)]({'fieldIndex':_0x2409dd,'startIndex':_0x3b66ee,'endIndex':_0x580730[_0x5205cd(0x1eb)]-0x1});}return _0x50081b;}function z(_0x560e53,_0x4c318e,_0x2afb17){const _0x1ad3c4=_0x39b7ee;let _0x439388=(_0x560e53==null?void 0x0:_0x560e53[_0x1ad3c4(0x190)][_0x1ad3c4(0x1aa)](0x0,_0x4c318e['rowFields'][_0x1ad3c4(0x1eb)]))??[];for(;_0x439388[_0x1ad3c4(0x1eb)]<_0x4c318e[_0x1ad3c4(0x1a9)][_0x1ad3c4(0x1eb)];)_0x439388['push']('');return _0x2afb17>=0x0&&_0x439388['splice'](_0x2afb17,0x0,H(_0x560e53,_0x4c318e)),_0x439388;}function B(_0x413931,_0x3949a9){const _0x3741d6=_0x39b7ee;return!Number[_0x3741d6(0x1ee)](_0x413931)||_0x413931<0x0?_0x3949a9:Math[_0x3741d6(0x1e7)](_0x413931,_0x3949a9);}function V(_0x24be02){const _0x583a61=_0x39b7ee;return _0x24be02[_0x583a61(0x20a)][_0x583a61(0x1eb)]>0x1&&_0x24be02[_0x583a61(0x1d2)]===_0x368626[_0x583a61(0x1ce)]?B(_0x24be02[_0x583a61(0x1e0)],_0x24be02['rowFields']['length']):-0x1;}function H(_0x254a49,_0x575051,_0xf6bc51=-0x1){const _0x11ed12=_0x39b7ee;let _0x4f2888=U(_0x254a49,_0x575051,_0xf6bc51);if(!_0x4f2888)return'';let _0x310464=_0x575051[_0x11ed12(0x194)][_0x4f2888];return(_0x310464==null?void 0x0:_0x310464[_0x11ed12(0x1d5)])||(_0x310464==null?void 0x0:_0x310464['sourceName'])||_0x4f2888;}function U(_0x220025,_0x30dba4,_0x356787){const _0x30bdb6=_0x39b7ee;return _0x220025!=null&&_0x220025['tableFieldId']&&_0x30dba4[_0x30bdb6(0x194)][_0x220025[_0x30bdb6(0x1cd)]]?_0x220025[_0x30bdb6(0x1cd)]:(_0x220025==null?void 0x0:_0x220025[_0x30bdb6(0x1e0)])!==void 0x0&&_0x220025['valueIndex']>=0x0?_0x30dba4['valueFields'][_0x220025[_0x30bdb6(0x1e0)]]:_0x30dba4['valueFields']['length']===0x1?_0x30dba4[_0x30bdb6(0x20a)][0x0]:_0x30dba4[_0x30bdb6(0x20a)][_0x356787];}function W(_0x137d24,_0x1d4c18,_0x4c56a4){let _0x44b821=0x0;for(;_0x44b821<_0x4c56a4&&_0x137d24[_0x44b821]===_0x1d4c18[_0x44b821];)_0x44b821++;return _0x44b821;}function G(_0x5adfa2){const _0x21739d=_0x39b7ee;return _0x3c7a02(_0x5adfa2)?_0x5adfa2[_0x21739d(0x1b5)]:_0x42ec63(_0x5adfa2)?null:_0x5adfa2??null;}function K(_0x140a0a,_0xf7c5d3){const _0x5e12f2=_0x39b7ee;return _0xf7c5d3&&typeof _0x140a0a==_0x5e12f2(0x221)?String(_0x133a61[_0x5e12f2(0x21c)](_0xf7c5d3,_0x140a0a,{'throws':!0x1})):q(_0x140a0a);}function q(_0x8f5e99){return _0x8f5e99==null?'':String(_0x8f5e99);}var J=class extends _0x21a3be{constructor(..._0x3fc7f8){const _0x3f6600=_0x39b7ee;super(..._0x3fc7f8),k(this,_0x3f6600(0x1b1),new _0x5f2319({'status':_0xfa9a58[_0x3f6600(0x20f)]})),k(this,_0x3f6600(0x1c2),-0x1),k(this,_0x3f6600(0x19b),!0x1),k(this,_0x3f6600(0x19f),this['_state$'][_0x3f6600(0x19d)]());}get['state'](){return this['_state$']['getValue']();}[_0x39b7ee(0x1ec)](_0x4e68ef){const _0x13a5cc=_0x39b7ee;return this[_0x13a5cc(0x211)](_0x4e68ef[_0x13a5cc(0x1c8)])?(this[_0x13a5cc(0x1c2)]=_0x4e68ef[_0x13a5cc(0x1c8)],this[_0x13a5cc(0x1b1)][_0x13a5cc(0x21b)]({'status':_0xfa9a58[_0x13a5cc(0x1b4)],..._0x4e68ef}),!0x0):!0x1;}[_0x39b7ee(0x1ef)](_0x5ce01f){const _0x89cbb7=_0x39b7ee;if(!this[_0x89cbb7(0x211)](_0x5ce01f[_0x89cbb7(0x1c8)]))return!0x1;this[_0x89cbb7(0x1c2)]=_0x5ce01f[_0x89cbb7(0x1c8)],this['publishDataSet'](_0x5ce01f[_0x89cbb7(0x1a8)]),this[_0x89cbb7(0x19b)]=!0x0;let {dataSet:_0x31118c,..._0x4f5489}=_0x5ce01f;return this[_0x89cbb7(0x1b1)]['next']({'status':_0xfa9a58[_0x89cbb7(0x1b2)],..._0x4f5489}),!0x0;}['publishError'](_0x180d0c,_0x4f4e06){const _0x6c600b=_0x39b7ee;return this[_0x6c600b(0x211)](_0x180d0c[_0x6c600b(0x1c8)])?(this[_0x6c600b(0x1c2)]=_0x180d0c[_0x6c600b(0x1c8)],this[_0x6c600b(0x1b1)][_0x6c600b(0x21b)]({'status':this['_hasSuccessfulResult']?_0xfa9a58['REFRESH_ERROR']:_0xfa9a58['UNAVAILABLE'],..._0x180d0c,'error':_0x4f4e06}),!0x0):!0x1;}[_0x39b7ee(0x1ed)](){const _0x5f2f4a=_0x39b7ee;this[_0x5f2f4a(0x1b1)][_0x5f2f4a(0x1bb)](),super[_0x5f2f4a(0x1ed)]();}[_0x39b7ee(0x211)](_0x50f605){const _0xae8cc0=_0x39b7ee;return _0x50f605>=this[_0xae8cc0(0x1c2)];}},Y=class extends _0x3c7e7e{constructor(_0x375fc4,_0x13a277,_0xedf7ad){const _0x4f8d2e=_0x39b7ee;super(),this[_0x4f8d2e(0x1e9)]=_0x375fc4,this[_0x4f8d2e(0x20b)]=_0x13a277,k(this,'_pivotTable',void 0x0),k(this,'_result$',new _0x543e67()),k(this,_0x4f8d2e(0x1b1),new _0x5f2319({'status':_0xfa9a58[_0x4f8d2e(0x20f)]})),k(this,'_latestResult',void 0x0),k(this,_0x4f8d2e(0x1c9),0x0),k(this,'_reportRevision',0x0),k(this,_0x4f8d2e(0x1cc),!0x1),k(this,_0x4f8d2e(0x1e2),!0x1),k(this,_0x4f8d2e(0x1f1),this['_result$'][_0x4f8d2e(0x19d)]()),k(this,_0x4f8d2e(0x19f),this[_0x4f8d2e(0x1b1)][_0x4f8d2e(0x19d)]());let _0x457f39=_0x375fc4[_0x4f8d2e(0x1f7)];if(!S(_0x457f39))throw Error(_0x4f8d2e(0x1b0));this[_0x4f8d2e(0x223)]=new _0x9c554a(_0xedf7ad,void 0x0,_0x375fc4['id']),this[_0x4f8d2e(0x223)][_0x4f8d2e(0x207)](_0x457f39[_0x4f8d2e(0x1f5)]),this[_0x4f8d2e(0x1a0)](_0x13a277);}get[_0x39b7ee(0x1d9)](){const _0x4eda11=_0x39b7ee;return this[_0x4eda11(0x1ad)];}[_0x39b7ee(0x1d3)](){const _0x6d3d3d=_0x39b7ee;this[_0x6d3d3d(0x1cc)]||(this['_initialized']=!0x0,this[_0x6d3d3d(0x1a0)](this[_0x6d3d3d(0x1e9)][_0x6d3d3d(0x21d)][_0x6d3d3d(0x1ac)](_0x199159=>{const _0x557d30=_0x6d3d3d;_0x199159[_0x557d30(0x1fe)]===_0x557d30(0x1b6)&&S(_0x199159[_0x557d30(0x1ae)])&&S(_0x199159[_0x557d30(0x1a7)])&&(this[_0x557d30(0x1c5)]++,this['_pivotTable'][_0x557d30(0x207)](_0x199159[_0x557d30(0x1a7)][_0x557d30(0x1f5)]),Z(_0x199159['previous'][_0x557d30(0x1f5)],_0x199159[_0x557d30(0x1a7)][_0x557d30(0x1f5)])&&this[_0x557d30(0x223)][_0x557d30(0x1de)](!0x0),this[_0x557d30(0x1b8)]());})),this['disposeWithMe'](this['_cacheHandle'][_0x6d3d3d(0x21d)][_0x6d3d3d(0x1ac)](_0x10bc2e=>{const _0x1da1c5=_0x6d3d3d;_0x10bc2e[_0x1da1c5(0x1d6)]===this[_0x1da1c5(0x20b)]['pivotCacheId']&&(this[_0x1da1c5(0x223)][_0x1da1c5(0x1de)](!0x0),this[_0x1da1c5(0x21f)]());})),this['refresh']());}[_0x39b7ee(0x1b8)](){const _0x2aa350=_0x39b7ee;let _0x350f64={'requestId':++this[_0x2aa350(0x1c9)],'reportRevision':this['_reportRevision'],'pivotCacheId':this[_0x2aa350(0x20b)][_0x2aa350(0x1d6)],'cacheRevision':this[_0x2aa350(0x20b)][_0x2aa350(0x192)]};this[_0x2aa350(0x1b1)][_0x2aa350(0x21b)]({'status':_0xfa9a58['LOADING'],..._0x350f64});try{let _0x10c96=this[_0x2aa350(0x1e9)][_0x2aa350(0x1f7)];if(!S(_0x10c96))throw Error(_0x2aa350(0x195));let _0x50cf8c=this[_0x2aa350(0x223)][_0x2aa350(0x1dc)]()[_0x2aa350(0x197)](),_0x123ddd=M(_0x50cf8c,_0x10c96[_0x2aa350(0x1f5)]),_0x3a40ed={'pivotChartId':_0x10c96['id'],'rowFieldCount':_0x10c96[_0x2aa350(0x1f5)][_0x2aa350(0x1a9)][_0x2aa350(0x1eb)],'categoryFieldCount':X(_0x10c96[_0x2aa350(0x1f5)]),'valueFieldCount':_0x10c96[_0x2aa350(0x1f5)][_0x2aa350(0x20a)][_0x2aa350(0x1eb)],'fieldButtons':T(_0x10c96['pivotModel'],_0x50cf8c),..._0x350f64,'view':_0x50cf8c,'dataSet':_0x123ddd};return this['_latestResult']=_0x3a40ed,this[_0x2aa350(0x1fc)][_0x2aa350(0x21b)](_0x3a40ed),this[_0x2aa350(0x1b1)]['next']({'status':_0xfa9a58['READY'],..._0x350f64}),!0x0;}catch(_0x465066){return this[_0x2aa350(0x1b1)][_0x2aa350(0x21b)]({'status':this[_0x2aa350(0x1ad)]?_0xfa9a58['REFRESH_ERROR']:_0xfa9a58[_0x2aa350(0x20f)],..._0x350f64,'error':_0x465066}),!0x1;}}['dispose'](){const _0x29d67b=_0x39b7ee;this[_0x29d67b(0x223)][_0x29d67b(0x1ed)](),this[_0x29d67b(0x1ad)]=void 0x0,this[_0x29d67b(0x1fc)][_0x29d67b(0x1bb)](),this['_state$'][_0x29d67b(0x1bb)](),super[_0x29d67b(0x1ed)]();}['_scheduleCacheRefresh'](){const _0x18f8be=_0x39b7ee;this[_0x18f8be(0x1e2)]||(this['_cacheRefreshScheduled']=!0x0,queueMicrotask(()=>{const _0x5c9d50=_0x18f8be;this[_0x5c9d50(0x1e2)]=!0x1,this['_disposed']||this['refresh']();}));}};function _0x38a1(){const _0x47c6ae=['_replace','ColumnPercentStacked','_snapshot','valuePosition','init','Area','displayName','pivotCacheId','info','BarPercentStacked','latestResult','Supported','controls','query','supported','setDirty','Range','valueIndex','replaceCacheReference','_cacheRefreshScheduled','36728tbWUeX','keys','dataFieldId','getValue','min','filterInfo','_model','$pivot-values','length','setLoading','dispose','isInteger','publishResult','max','result$','replacePivotModel','1832582unScnu','object','pivotModel','replaceChart','snapshot','4185NEdnEU','PivotTable','constructor','deepClone','_result$','defineProperty','type','chart','Line','boolean','isAll','series','filter','getRowCount','_changed$','fromJSON','cache','push','valueFields','_cacheHandle','pop','Combination','Bar','UNAVAILABLE','colView','_accepts','join','category','symbol','filterFields','isTopTotal','BarStacked','Unsupported','5773135NlBdYu','call','next','format','changed$','dimension','_scheduleCacheRefresh','columnFields','number','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_pivotTable','paths','1590080KgYpIr','revision','splice','measure','A\x20linked\x20PivotChart\x20cannot\x20be\x20refreshed\x20by\x20an\x20owned\x20runtime.','Pie','toJSON','stringify','3aJUUOd','replaceControls','_hasSuccessfulResult','string','asObservable','Controls','state$','disposeWithMe','Pivot','default','ColumnStacked','AreaPercentStacked','Donut','unsupported','current','dataSet','rowFields','slice','from','subscribe','_latestResult','previous','function','A\x20linked\x20PivotChart\x20must\x20use\x20its\x20referenced\x20PivotTable\x20runtime.','_state$','READY','dataView','LOADING','value','pivot','AreaStacked','refresh','pivotTable','7362355GjElkw','complete','forEach','subtotal','toPrimitive','map','8752182HzqzAe','range','_latestRequestId','Column','1341338ZIjdAq','_reportRevision','rowView','\x20/\x20','requestId','_requestId','Chart','ManualFilter','_initialized','tableFieldId','Row'];_0x38a1=function(){return _0x47c6ae;};return _0x38a1();}function X(_0x45197e){const _0xb01bd7=_0x39b7ee;let _0x3d5cd0=_0x45197e[_0xb01bd7(0x20a)][_0xb01bd7(0x1eb)]>0x1&&_0x45197e[_0xb01bd7(0x1d2)]===_0x368626[_0xb01bd7(0x1ce)];return _0x45197e[_0xb01bd7(0x1a9)][_0xb01bd7(0x1eb)]+ +!!_0x3d5cd0;}function Z(_0x58f4fe,_0x11d671){const _0x1d3fdb=_0x39b7ee;return JSON[_0x1d3fdb(0x198)](Q(_0x58f4fe))!==JSON[_0x1d3fdb(0x198)](Q(_0x11d671));}function Q(_0x204ea2){const _0x2ab67a=_0x39b7ee;let _0x53c9cf=_0x2d076f=>{const _0x322c5e=_0x297f;let _0x1a6708=_0x204ea2[_0x322c5e(0x21e)][_0x2d076f];return _0x1a6708&&{'id':_0x1a6708['id'],'dataFieldId':_0x1a6708[_0x322c5e(0x1e5)],'filterInfo':_0x1a6708['filterInfo']};};return{'rowFields':_0x204ea2[_0x2ab67a(0x1a9)]['map'](_0x53c9cf),'columnFields':_0x204ea2[_0x2ab67a(0x220)][_0x2ab67a(0x1bf)](_0x53c9cf),'filterFields':_0x204ea2[_0x2ab67a(0x215)][_0x2ab67a(0x1bf)](_0x53c9cf),'valueFields':_0x204ea2[_0x2ab67a(0x20a)][_0x2ab67a(0x1bf)](_0x1a63e0=>{const _0x1326b8=_0x2ab67a;let _0x464822=_0x204ea2[_0x1326b8(0x194)][_0x1a63e0];return _0x464822&&{'id':_0x464822['id'],'dataFieldId':_0x464822[_0x1326b8(0x1e5)],'subtotal':_0x464822[_0x1326b8(0x1bd)]};})};}export{b as DEFAULT_PIVOT_CHART_CONTROLS,J as PivotChartDataSource,j as PivotChartModel,A as PivotChartModelChangeType,Y as PivotChartRuntime,y as PivotChartSourceKind,h as PivotChartTypeSupportStatus,M as adaptPivotViewToChartDataSet,T as getPivotChartFieldButtons,v as getPivotChartPieSeriesLimit,_ as getPivotChartTypeSupportStatus,x as isLinkedPivotChartDefinition,S as isOwnedPivotChartDefinition,g as isPivotChartTypeString,C as resolvePivotChartControls};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x39b7ee=_0x297f;(function(_0x31e1f2,_0x166960){const _0x5f5435=_0x297f,_0x3dc051=_0x31e1f2();while(!![]){try{const _0x4a0a29=-parseInt(_0x5f5435(0x1c4))/0x1+parseInt(_0x5f5435(0x1f3))/0x2*(parseInt(_0x5f5435(0x199))/0x3)+parseInt(_0x5f5435(0x191))/0x4+parseInt(_0x5f5435(0x219))/0x5+-parseInt(_0x5f5435(0x1c0))/0x6+-parseInt(_0x5f5435(0x1ba))/0x7+parseInt(_0x5f5435(0x1e3))/0x8*(parseInt(_0x5f5435(0x1f8))/0x9);if(_0x4a0a29===_0x166960)break;else _0x3dc051['push'](_0x3dc051['shift']());}catch(_0x29aac1){_0x3dc051['push'](_0x3dc051['shift']());}}}(_0x38a1,0xb775d));import{ChartDataSource as _0x21a3be,ChartDataSourceRuntimeStatus as _0xfa9a58,ChartTypeBits as _0x57429f,ChartTypeString as _0x31e11e}from'@univerjs-pro/engine-chart';import{PivotFilterTypeEnum as _0x13b230,PivotTable as _0x9c554a,PivotTableValuePositionEnum as _0x368626,PivotView as _0x30c470,isErrorValue as _0x42ec63,isPrefixValue as _0x3c7a02}from'@univerjs-pro/engine-pivot';import{Disposable as _0x3c7e7e,Tools as _0x25dded,numfmt as _0x133a61}from'@univerjs/core';import{BehaviorSubject as _0x5f2319,Subject as _0x543e67}from'rxjs';let h=function(_0x53ae1){const _0x3d727d=_0x297f;return _0x53ae1[_0x3d727d(0x1da)]=_0x3d727d(0x1dd),_0x53ae1[_0x3d727d(0x218)]=_0x3d727d(0x1a6),_0x53ae1;}({});function g(_0x2d501e){const _0x9c84d7=_0x297f;switch(_0x2d501e){case _0x31e11e[_0x9c84d7(0x200)]:case _0x31e11e[_0x9c84d7(0x1c3)]:case _0x31e11e[_0x9c84d7(0x1a3)]:case _0x31e11e[_0x9c84d7(0x1d0)]:case _0x31e11e[_0x9c84d7(0x20e)]:case _0x31e11e[_0x9c84d7(0x217)]:case _0x31e11e[_0x9c84d7(0x1d8)]:case _0x31e11e[_0x9c84d7(0x196)]:case _0x31e11e[_0x9c84d7(0x1a5)]:case _0x31e11e[_0x9c84d7(0x1d4)]:case _0x31e11e[_0x9c84d7(0x1b7)]:case _0x31e11e[_0x9c84d7(0x1a4)]:case _0x31e11e[_0x9c84d7(0x20d)]:return!0x0;default:return!0x1;}}function _(_0x2ca392){const _0x464526=_0x297f;switch(_0x2ca392){case _0x57429f[_0x464526(0x1c3)]:case _0x57429f[_0x464526(0x1a3)]:case _0x57429f[_0x464526(0x1d0)]:case _0x57429f[_0x464526(0x20e)]:case _0x57429f[_0x464526(0x217)]:case _0x57429f[_0x464526(0x1d8)]:case _0x57429f['Line']:case _0x57429f['Area']:case _0x57429f[_0x464526(0x1b7)]:case _0x57429f[_0x464526(0x1a4)]:case _0x57429f[_0x464526(0x20d)]:case _0x57429f[_0x464526(0x196)]:case _0x57429f['Doughnut']:return'supported';default:return'unsupported';}}function v(_0x3b05d8){const _0xd75b61=_0x297f;return _0x3b05d8===_0x57429f[_0xd75b61(0x196)]?0x1:void 0x0;}let y=function(_0x2ab35a){const _0x369f5d=_0x297f;return _0x2ab35a[_0x369f5d(0x1df)]=_0x369f5d(0x1c1),_0x2ab35a[_0x369f5d(0x1f9)]=_0x369f5d(0x1b9),_0x2ab35a;}({});const b={'showFieldButtons':!0x0,'showExpandCollapseButtons':!0x0};function x(_0xddb6ec){return _0xddb6ec['pivotTableRef']!==void 0x0;}function S(_0x247820){return!x(_0x247820);}function C(_0x33b8cc){return{...b,..._0x33b8cc};}function w(_0x11ab18){const _0x3b496a=_0x297f;return _0x11ab18?_0x11ab18[_0x3b496a(0x1fe)]!==_0x13b230[_0x3b496a(0x1cb)]||_0x11ab18[_0x3b496a(0x202)]!==!0x0:!0x1;}function T(_0x2e6014,_0x2b01c7){const _0x3368b2=_0x297f;let _0x5c9e61=(_0x21f4ae,_0x3c02f7)=>{const _0x286c8c=_0x297f;let _0xdd2457=_0x2e6014[_0x286c8c(0x21e)][_0x21f4ae];return _0xdd2457?{'fieldId':_0x21f4ae,'label':_0xdd2457[_0x286c8c(0x1d5)]||_0xdd2457['sourceName']||_0x21f4ae,'role':_0x3c02f7,'filtered':w(_0xdd2457[_0x286c8c(0x1e8)])}:void 0x0;},_0x53c996=[],_0x447a34=(_0x26f288,_0xf7a58)=>{const _0x300d34=_0x297f;_0x26f288[_0x300d34(0x1bc)](_0x142a8a=>{const _0xc9323=_0x300d34;let _0x11089c=_0x5c9e61(_0x142a8a,_0xf7a58);_0x11089c&&_0x53c996[_0xc9323(0x209)](_0x11089c);});};_0x447a34(_0x2e6014[_0x3368b2(0x215)],_0x3368b2(0x204)),_0x447a34(_0x2e6014[_0x3368b2(0x220)],_0x3368b2(0x203));let _0x523f9b=0x0;for(let _0x333437 of(_0x2b01c7==null?void 0x0:_0x2b01c7['rowView'][_0x3368b2(0x1d7)])??[])if(_0x523f9b=Math[_0x3368b2(0x1f0)](_0x523f9b,(_0x333437==null?void 0x0:_0x333437[_0x3368b2(0x190)][_0x3368b2(0x1eb)])??0x0),_0x523f9b>=_0x2e6014['rowFields'][_0x3368b2(0x1eb)])break;return _0x447a34(_0x2e6014[_0x3368b2(0x1a9)][_0x3368b2(0x1aa)](0x0,_0x523f9b||_0x2e6014['rowFields'][_0x3368b2(0x1eb)]),_0x3368b2(0x213)),_0x53c996;}function E(_0x26b3ae){'@babel/helpers - typeof';const _0x5ed1e3=_0x297f;return E=typeof Symbol==_0x5ed1e3(0x1af)&&typeof Symbol['iterator']==_0x5ed1e3(0x214)?function(_0x515f64){return typeof _0x515f64;}:function(_0x465959){const _0x48a923=_0x5ed1e3;return _0x465959&&typeof Symbol=='function'&&_0x465959[_0x48a923(0x1fa)]===Symbol&&_0x465959!==Symbol['prototype']?_0x48a923(0x214):typeof _0x465959;},E(_0x26b3ae);}function D(_0x5891c2,_0x49c7a9){const _0x5646c8=_0x297f;if(E(_0x5891c2)!='object'||!_0x5891c2)return _0x5891c2;var _0x36dd95=_0x5891c2[Symbol[_0x5646c8(0x1be)]];if(_0x36dd95!==void 0x0){var _0x57f566=_0x36dd95[_0x5646c8(0x21a)](_0x5891c2,_0x49c7a9||_0x5646c8(0x1a2));if(E(_0x57f566)!=_0x5646c8(0x1f4))return _0x57f566;throw TypeError(_0x5646c8(0x222));}return(_0x49c7a9===_0x5646c8(0x19c)?String:Number)(_0x5891c2);}function _0x297f(_0x5211ee,_0x210e3c){_0x5211ee=_0x5211ee-0x190;const _0x38a1f4=_0x38a1();let _0x297f65=_0x38a1f4[_0x5211ee];return _0x297f65;}function O(_0x5cfd92){const _0x544be8=_0x297f;var _0x3b20df=D(_0x5cfd92,_0x544be8(0x19c));return E(_0x3b20df)==_0x544be8(0x214)?_0x3b20df:_0x3b20df+'';}function k(_0x1b8f91,_0x462ac8,_0x3a301e){const _0x23dc14=_0x297f;return(_0x462ac8=O(_0x462ac8))in _0x1b8f91?Object[_0x23dc14(0x1fd)](_0x1b8f91,_0x462ac8,{'value':_0x3a301e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b8f91[_0x462ac8]=_0x3a301e,_0x1b8f91;}let A=function(_0x4e246e){const _0x49572b=_0x297f;return _0x4e246e['Cache']=_0x49572b(0x208),_0x4e246e[_0x49572b(0x1a1)]=_0x49572b(0x1b6),_0x4e246e[_0x49572b(0x1ca)]=_0x49572b(0x1ff),_0x4e246e[_0x49572b(0x19e)]=_0x49572b(0x1db),_0x4e246e;}({});var j=class extends _0x3c7e7e{constructor(_0x44565f){const _0x2fb1f9=_0x297f;super(),k(this,_0x2fb1f9(0x1d1),void 0x0),k(this,'_changed$',new _0x543e67()),k(this,_0x2fb1f9(0x21d),this[_0x2fb1f9(0x206)][_0x2fb1f9(0x19d)]()),this[_0x2fb1f9(0x1d1)]=_0x25dded[_0x2fb1f9(0x1fb)](_0x44565f);}get['id'](){const _0x4af6d4=_0x297f;return this[_0x4af6d4(0x1d1)]['id'];}get[_0x39b7ee(0x1f7)](){const _0x2b5f5a=_0x39b7ee;return _0x25dded[_0x2b5f5a(0x1fb)](this[_0x2b5f5a(0x1d1)]);}get[_0x39b7ee(0x1db)](){const _0x2cd369=_0x39b7ee;return C(this[_0x2cd369(0x1d1)][_0x2cd369(0x1db)]);}[_0x39b7ee(0x1e1)](_0x50eb09){const _0x28c9fc=_0x39b7ee;return S(this[_0x28c9fc(0x1d1)])?(this[_0x28c9fc(0x1cf)](_0x28c9fc(0x208),{...this[_0x28c9fc(0x1d1)],'cacheRef':_0x25dded[_0x28c9fc(0x1fb)](_0x50eb09)}),!0x0):!0x1;}[_0x39b7ee(0x1f2)](_0x324b0b){const _0x1019c0=_0x39b7ee;return S(this['_snapshot'])?(this[_0x1019c0(0x1cf)](_0x1019c0(0x1b6),{...this[_0x1019c0(0x1d1)],'pivotModel':_0x25dded['deepClone'](_0x324b0b)}),!0x0):!0x1;}[_0x39b7ee(0x1f6)](_0x26d872){const _0x18d72a=_0x39b7ee;this[_0x18d72a(0x1cf)](_0x18d72a(0x1ff),{...this[_0x18d72a(0x1d1)],'chart':_0x25dded[_0x18d72a(0x1fb)](_0x26d872)});}[_0x39b7ee(0x19a)](_0x324b12){const _0x11a0a8=_0x39b7ee;this[_0x11a0a8(0x1cf)]('controls',{...this[_0x11a0a8(0x1d1)],'controls':_0x25dded[_0x11a0a8(0x1fb)](_0x324b12)});}['replacePresentation'](_0x3dd738,_0x2a48b0,_0x4f6298){const _0x460d11=_0x39b7ee;this[_0x460d11(0x1cf)](_0x460d11(0x1ff),{...this['_snapshot'],'chart':_0x25dded[_0x460d11(0x1fb)](_0x3dd738),'controls':_0x25dded[_0x460d11(0x1fb)](_0x2a48b0),'name':_0x4f6298});}[_0x39b7ee(0x1ed)](){const _0x3d1c83=_0x39b7ee;this['_changed$'][_0x3d1c83(0x1bb)](),super[_0x3d1c83(0x1ed)]();}[_0x39b7ee(0x1cf)](_0x406e29,_0x3a4fbd){const _0x14469b=_0x39b7ee;let _0xf18df1=this[_0x14469b(0x1d1)];this[_0x14469b(0x1d1)]=_0x3a4fbd,this[_0x14469b(0x206)][_0x14469b(0x21b)]({'type':_0x406e29,'previous':_0x25dded[_0x14469b(0x1fb)](_0xf18df1),'current':_0x25dded['deepClone'](_0x3a4fbd)});}};function M(_0x2ff790,_0x238f8c){const _0x48c160=_0x39b7ee;if(_0x238f8c[_0x48c160(0x20a)][_0x48c160(0x1eb)]===0x0)return{'dimensions':[],'source':[],'categorySpans':[]};let _0x4dce2f=new _0x30c470();_0x4dce2f['formJSON'](_0x2ff790);let _0x21f573=N(_0x4dce2f[_0x48c160(0x1c6)]['info'],_0x4dce2f[_0x48c160(0x1b3)][_0x48c160(0x205)](),_0x238f8c[_0x48c160(0x1a9)][_0x48c160(0x1eb)]===0x0,_0x238f8c,!0x0),_0x406c37=N(_0x4dce2f[_0x48c160(0x210)][_0x48c160(0x1d7)],_0x4dce2f[_0x48c160(0x1b3)]['getColCount'](),_0x238f8c['columnFields'][_0x48c160(0x1eb)]===0x0,_0x238f8c,!0x1),_0x544a00=V(_0x238f8c),_0x1cb4a2=[..._0x238f8c[_0x48c160(0x1a9)]];_0x544a00>=0x0&&_0x1cb4a2['splice'](_0x544a00,0x0,void 0x0);let _0x2fef17=_0x21f573[_0x48c160(0x1bf)](_0x1fbf75=>z(_0x4dce2f[_0x48c160(0x1c6)][_0x48c160(0x1d7)][_0x1fbf75],_0x238f8c,_0x544a00)),_0x27a27b=[],_0x2650a2=[];for(let _0x30e203=0x0;_0x30e203<_0x1cb4a2[_0x48c160(0x1eb)];_0x30e203++){var _0x5246e7;let _0x55328d=_0x1cb4a2[_0x30e203];_0x27a27b['push'](_0x55328d?{'name':_0x55328d,'displayName':((_0x5246e7=_0x238f8c['dimension'][_0x55328d])==null?void 0x0:_0x5246e7[_0x48c160(0x1d5)])??_0x55328d}:{'name':_0x48c160(0x1ea),'displayName':''}),_0x2650a2[_0x48c160(0x209)](_0x2fef17[_0x48c160(0x1bf)](_0x52e84b=>_0x52e84b[_0x30e203]??''));}let _0x56b414=Object[_0x48c160(0x1e4)](_0x4dce2f['formatMap'])[_0x48c160(0x1eb)]>0x0?_0x2650a2[_0x48c160(0x1bf)](_0x1a0c95=>_0x1a0c95['map'](q)):void 0x0;return _0x406c37['forEach'](_0x45952d=>{const _0x2582a0=_0x48c160;let _0xb07e70=_0x4dce2f['colView'][_0x2582a0(0x1d7)][_0x45952d];_0x27a27b[_0x2582a0(0x209)]({'name':L(_0xb07e70,_0x238f8c,_0x45952d),'displayName':I(_0xb07e70,_0x238f8c,_0x45952d)});let _0x7aefef=_0x21f573[_0x2582a0(0x1bf)](_0x1949d8=>G(_0x4dce2f[_0x2582a0(0x1b3)][_0x2582a0(0x1e6)](_0x1949d8,_0x45952d)));if(_0x2650a2['push'](_0x7aefef),_0x56b414){let _0x133e5e=U(_0xb07e70,_0x238f8c,_0x45952d);_0x56b414['push'](_0x7aefef[_0x2582a0(0x1bf)]((_0x38585b,_0x47179f)=>{const _0x3759ba=_0x2582a0;let _0x43d6f2=_0x238f8c[_0x3759ba(0x1d2)]===_0x368626['Row']?U(_0x4dce2f[_0x3759ba(0x1c6)]['info'][_0x21f573[_0x47179f]],_0x238f8c,-0x1):_0x133e5e;return K(_0x38585b,_0x43d6f2?_0x4dce2f['formatMap'][_0x43d6f2]:void 0x0);}));}}),{'dimensions':_0x27a27b,'source':_0x2650a2,..._0x56b414?{'sourceLabels':_0x56b414}:{},'categorySpans':R(_0x2fef17,_0x1cb4a2[_0x48c160(0x1eb)])};}function N(_0x1674be,_0x5d3b66,_0x4a7e96,_0x3f8720,_0x58f30b){const _0x56086a=_0x39b7ee;let _0x5f1bc8=[];for(let _0x4c903b=0x0;_0x4c903b<_0x5d3b66;_0x4c903b++){let _0x32e038=_0x1674be[_0x4c903b];(!(_0x32e038!=null&&_0x32e038['isBottomTotal']||_0x32e038!=null&&_0x32e038[_0x56086a(0x216)]||_0x32e038!=null&&_0x32e038['isSubtotal'])&&P(_0x32e038,_0x3f8720,_0x58f30b)||F(_0x32e038,_0x3f8720))&&_0x5f1bc8[_0x56086a(0x209)](_0x4c903b);}return _0x5f1bc8[_0x56086a(0x1eb)]===0x0&&_0x4a7e96?Array[_0x56086a(0x1ab)]({'length':_0x5d3b66},(_0x92b707,_0x20b56d)=>_0x20b56d):_0x5f1bc8;}function P(_0x45e1b6,_0x5863c0,_0x4cbf08){const _0x1afe71=_0x39b7ee;return _0x4cbf08&&_0x5863c0[_0x1afe71(0x20a)][_0x1afe71(0x1eb)]>0x1&&_0x5863c0[_0x1afe71(0x1d2)]===_0x368626[_0x1afe71(0x1ce)]?(_0x45e1b6==null?void 0x0:_0x45e1b6[_0x1afe71(0x1e0)])!==void 0x0&&_0x45e1b6['valueIndex']>=0x0&&_0x45e1b6[_0x1afe71(0x190)][_0x1afe71(0x1eb)]>=_0x5863c0[_0x1afe71(0x1a9)][_0x1afe71(0x1eb)]:(_0x45e1b6==null?void 0x0:_0x45e1b6['isLeaf'])!==!0x1;}function F(_0x11a871,_0x4324fd){const _0x9510c1=_0x39b7ee;if(!(_0x11a871!=null&&_0x11a871['tableFieldId'])||!_0x11a871[_0x9510c1(0x190)]['length'])return!0x1;let _0x19c677=_0x4324fd['collapseInfo'][_0x11a871['tableFieldId']];if(typeof _0x19c677==_0x9510c1(0x201))return _0x19c677;let _0x50d9c9=_0x11a871['paths'][_0x9510c1(0x204)](Boolean)[_0x9510c1(0x20c)]();return _0x50d9c9!==void 0x0&&(_0x19c677==null?void 0x0:_0x19c677[_0x50d9c9])===!0x0;}function I(_0x56cbd6,_0x5f1d66,_0x46f279){const _0x321b58=_0x39b7ee;let _0x249af3=(_0x56cbd6==null?void 0x0:_0x56cbd6[_0x321b58(0x190)][_0x321b58(0x1aa)](0x0,_0x5f1d66[_0x321b58(0x220)][_0x321b58(0x1eb)]))??[];if(_0x5f1d66[_0x321b58(0x1d2)]===_0x368626['Column']){let _0x3fbd5d=H(_0x56cbd6,_0x5f1d66);_0x3fbd5d&&_0x249af3[_0x321b58(0x193)](B(_0x5f1d66[_0x321b58(0x1e0)],_0x249af3[_0x321b58(0x1eb)]),0x0,_0x3fbd5d);}return _0x249af3[_0x321b58(0x204)](Boolean)[_0x321b58(0x212)](_0x321b58(0x1c7))||H(_0x56cbd6,_0x5f1d66,_0x46f279);}function L(_0x2c3d96,_0x36310e,_0x2dcfb7){const _0x226794=_0x39b7ee;return JSON[_0x226794(0x198)]([_0x36310e[_0x226794(0x1d2)]===_0x368626[_0x226794(0x1ce)]?'':U(_0x2c3d96,_0x36310e,_0x2dcfb7)??'',...(_0x2c3d96==null?void 0x0:_0x2c3d96[_0x226794(0x190)])??[]]);}function R(_0x580730,_0x25b077){const _0x5205cd=_0x39b7ee;let _0x50081b=[],_0x336466=_0x580730[_0x5205cd(0x1bf)]((_0x3f7107,_0x57c6c1)=>_0x57c6c1===0x0?0x0:W(_0x580730[_0x57c6c1-0x1],_0x3f7107,_0x25b077));for(let _0x2409dd=0x0;_0x2409dd<_0x25b077;_0x2409dd++){let _0x3b66ee=0x0;for(let _0x4949cf=0x1;_0x4949cf<_0x580730[_0x5205cd(0x1eb)];_0x4949cf++)_0x336466[_0x4949cf]<=_0x2409dd&&(_0x50081b['push']({'fieldIndex':_0x2409dd,'startIndex':_0x3b66ee,'endIndex':_0x4949cf-0x1}),_0x3b66ee=_0x4949cf);_0x580730[_0x5205cd(0x1eb)]>0x0&&_0x50081b[_0x5205cd(0x209)]({'fieldIndex':_0x2409dd,'startIndex':_0x3b66ee,'endIndex':_0x580730[_0x5205cd(0x1eb)]-0x1});}return _0x50081b;}function z(_0x560e53,_0x4c318e,_0x2afb17){const _0x1ad3c4=_0x39b7ee;let _0x439388=(_0x560e53==null?void 0x0:_0x560e53[_0x1ad3c4(0x190)][_0x1ad3c4(0x1aa)](0x0,_0x4c318e['rowFields'][_0x1ad3c4(0x1eb)]))??[];for(;_0x439388[_0x1ad3c4(0x1eb)]<_0x4c318e[_0x1ad3c4(0x1a9)][_0x1ad3c4(0x1eb)];)_0x439388['push']('');return _0x2afb17>=0x0&&_0x439388['splice'](_0x2afb17,0x0,H(_0x560e53,_0x4c318e)),_0x439388;}function B(_0x413931,_0x3949a9){const _0x3741d6=_0x39b7ee;return!Number[_0x3741d6(0x1ee)](_0x413931)||_0x413931<0x0?_0x3949a9:Math[_0x3741d6(0x1e7)](_0x413931,_0x3949a9);}function V(_0x24be02){const _0x583a61=_0x39b7ee;return _0x24be02[_0x583a61(0x20a)][_0x583a61(0x1eb)]>0x1&&_0x24be02[_0x583a61(0x1d2)]===_0x368626[_0x583a61(0x1ce)]?B(_0x24be02[_0x583a61(0x1e0)],_0x24be02['rowFields']['length']):-0x1;}function H(_0x254a49,_0x575051,_0xf6bc51=-0x1){const _0x11ed12=_0x39b7ee;let _0x4f2888=U(_0x254a49,_0x575051,_0xf6bc51);if(!_0x4f2888)return'';let _0x310464=_0x575051[_0x11ed12(0x194)][_0x4f2888];return(_0x310464==null?void 0x0:_0x310464[_0x11ed12(0x1d5)])||(_0x310464==null?void 0x0:_0x310464['sourceName'])||_0x4f2888;}function U(_0x220025,_0x30dba4,_0x356787){const _0x30bdb6=_0x39b7ee;return _0x220025!=null&&_0x220025['tableFieldId']&&_0x30dba4[_0x30bdb6(0x194)][_0x220025[_0x30bdb6(0x1cd)]]?_0x220025[_0x30bdb6(0x1cd)]:(_0x220025==null?void 0x0:_0x220025[_0x30bdb6(0x1e0)])!==void 0x0&&_0x220025['valueIndex']>=0x0?_0x30dba4['valueFields'][_0x220025[_0x30bdb6(0x1e0)]]:_0x30dba4['valueFields']['length']===0x1?_0x30dba4[_0x30bdb6(0x20a)][0x0]:_0x30dba4[_0x30bdb6(0x20a)][_0x356787];}function W(_0x137d24,_0x1d4c18,_0x4c56a4){let _0x44b821=0x0;for(;_0x44b821<_0x4c56a4&&_0x137d24[_0x44b821]===_0x1d4c18[_0x44b821];)_0x44b821++;return _0x44b821;}function G(_0x5adfa2){const _0x21739d=_0x39b7ee;return _0x3c7a02(_0x5adfa2)?_0x5adfa2[_0x21739d(0x1b5)]:_0x42ec63(_0x5adfa2)?null:_0x5adfa2??null;}function K(_0x140a0a,_0xf7c5d3){const _0x5e12f2=_0x39b7ee;return _0xf7c5d3&&typeof _0x140a0a==_0x5e12f2(0x221)?String(_0x133a61[_0x5e12f2(0x21c)](_0xf7c5d3,_0x140a0a,{'throws':!0x1})):q(_0x140a0a);}function q(_0x8f5e99){return _0x8f5e99==null?'':String(_0x8f5e99);}var J=class extends _0x21a3be{constructor(..._0x3fc7f8){const _0x3f6600=_0x39b7ee;super(..._0x3fc7f8),k(this,_0x3f6600(0x1b1),new _0x5f2319({'status':_0xfa9a58[_0x3f6600(0x20f)]})),k(this,_0x3f6600(0x1c2),-0x1),k(this,_0x3f6600(0x19b),!0x1),k(this,_0x3f6600(0x19f),this['_state$'][_0x3f6600(0x19d)]());}get['state'](){return this['_state$']['getValue']();}[_0x39b7ee(0x1ec)](_0x4e68ef){const _0x13a5cc=_0x39b7ee;return this[_0x13a5cc(0x211)](_0x4e68ef[_0x13a5cc(0x1c8)])?(this[_0x13a5cc(0x1c2)]=_0x4e68ef[_0x13a5cc(0x1c8)],this[_0x13a5cc(0x1b1)][_0x13a5cc(0x21b)]({'status':_0xfa9a58[_0x13a5cc(0x1b4)],..._0x4e68ef}),!0x0):!0x1;}[_0x39b7ee(0x1ef)](_0x5ce01f){const _0x89cbb7=_0x39b7ee;if(!this[_0x89cbb7(0x211)](_0x5ce01f[_0x89cbb7(0x1c8)]))return!0x1;this[_0x89cbb7(0x1c2)]=_0x5ce01f[_0x89cbb7(0x1c8)],this['publishDataSet'](_0x5ce01f[_0x89cbb7(0x1a8)]),this[_0x89cbb7(0x19b)]=!0x0;let {dataSet:_0x31118c,..._0x4f5489}=_0x5ce01f;return this[_0x89cbb7(0x1b1)]['next']({'status':_0xfa9a58[_0x89cbb7(0x1b2)],..._0x4f5489}),!0x0;}['publishError'](_0x180d0c,_0x4f4e06){const _0x6c600b=_0x39b7ee;return this[_0x6c600b(0x211)](_0x180d0c[_0x6c600b(0x1c8)])?(this[_0x6c600b(0x1c2)]=_0x180d0c[_0x6c600b(0x1c8)],this[_0x6c600b(0x1b1)][_0x6c600b(0x21b)]({'status':this['_hasSuccessfulResult']?_0xfa9a58['REFRESH_ERROR']:_0xfa9a58['UNAVAILABLE'],..._0x180d0c,'error':_0x4f4e06}),!0x0):!0x1;}[_0x39b7ee(0x1ed)](){const _0x5f2f4a=_0x39b7ee;this[_0x5f2f4a(0x1b1)][_0x5f2f4a(0x1bb)](),super[_0x5f2f4a(0x1ed)]();}[_0x39b7ee(0x211)](_0x50f605){const _0xae8cc0=_0x39b7ee;return _0x50f605>=this[_0xae8cc0(0x1c2)];}},Y=class extends _0x3c7e7e{constructor(_0x375fc4,_0x13a277,_0xedf7ad){const _0x4f8d2e=_0x39b7ee;super(),this[_0x4f8d2e(0x1e9)]=_0x375fc4,this[_0x4f8d2e(0x20b)]=_0x13a277,k(this,'_pivotTable',void 0x0),k(this,'_result$',new _0x543e67()),k(this,_0x4f8d2e(0x1b1),new _0x5f2319({'status':_0xfa9a58[_0x4f8d2e(0x20f)]})),k(this,'_latestResult',void 0x0),k(this,_0x4f8d2e(0x1c9),0x0),k(this,'_reportRevision',0x0),k(this,_0x4f8d2e(0x1cc),!0x1),k(this,_0x4f8d2e(0x1e2),!0x1),k(this,_0x4f8d2e(0x1f1),this['_result$'][_0x4f8d2e(0x19d)]()),k(this,_0x4f8d2e(0x19f),this[_0x4f8d2e(0x1b1)][_0x4f8d2e(0x19d)]());let _0x457f39=_0x375fc4[_0x4f8d2e(0x1f7)];if(!S(_0x457f39))throw Error(_0x4f8d2e(0x1b0));this[_0x4f8d2e(0x223)]=new _0x9c554a(_0xedf7ad,void 0x0,_0x375fc4['id']),this[_0x4f8d2e(0x223)][_0x4f8d2e(0x207)](_0x457f39[_0x4f8d2e(0x1f5)]),this[_0x4f8d2e(0x1a0)](_0x13a277);}get[_0x39b7ee(0x1d9)](){const _0x4eda11=_0x39b7ee;return this[_0x4eda11(0x1ad)];}[_0x39b7ee(0x1d3)](){const _0x6d3d3d=_0x39b7ee;this[_0x6d3d3d(0x1cc)]||(this['_initialized']=!0x0,this[_0x6d3d3d(0x1a0)](this[_0x6d3d3d(0x1e9)][_0x6d3d3d(0x21d)][_0x6d3d3d(0x1ac)](_0x199159=>{const _0x557d30=_0x6d3d3d;_0x199159[_0x557d30(0x1fe)]===_0x557d30(0x1b6)&&S(_0x199159[_0x557d30(0x1ae)])&&S(_0x199159[_0x557d30(0x1a7)])&&(this[_0x557d30(0x1c5)]++,this['_pivotTable'][_0x557d30(0x207)](_0x199159[_0x557d30(0x1a7)][_0x557d30(0x1f5)]),Z(_0x199159['previous'][_0x557d30(0x1f5)],_0x199159[_0x557d30(0x1a7)][_0x557d30(0x1f5)])&&this[_0x557d30(0x223)][_0x557d30(0x1de)](!0x0),this[_0x557d30(0x1b8)]());})),this['disposeWithMe'](this['_cacheHandle'][_0x6d3d3d(0x21d)][_0x6d3d3d(0x1ac)](_0x10bc2e=>{const _0x1da1c5=_0x6d3d3d;_0x10bc2e[_0x1da1c5(0x1d6)]===this[_0x1da1c5(0x20b)]['pivotCacheId']&&(this[_0x1da1c5(0x223)][_0x1da1c5(0x1de)](!0x0),this[_0x1da1c5(0x21f)]());})),this['refresh']());}[_0x39b7ee(0x1b8)](){const _0x2aa350=_0x39b7ee;let _0x350f64={'requestId':++this[_0x2aa350(0x1c9)],'reportRevision':this['_reportRevision'],'pivotCacheId':this[_0x2aa350(0x20b)][_0x2aa350(0x1d6)],'cacheRevision':this[_0x2aa350(0x20b)][_0x2aa350(0x192)]};this[_0x2aa350(0x1b1)][_0x2aa350(0x21b)]({'status':_0xfa9a58['LOADING'],..._0x350f64});try{let _0x10c96=this[_0x2aa350(0x1e9)][_0x2aa350(0x1f7)];if(!S(_0x10c96))throw Error(_0x2aa350(0x195));let _0x50cf8c=this[_0x2aa350(0x223)][_0x2aa350(0x1dc)]()[_0x2aa350(0x197)](),_0x123ddd=M(_0x50cf8c,_0x10c96[_0x2aa350(0x1f5)]),_0x3a40ed={'pivotChartId':_0x10c96['id'],'rowFieldCount':_0x10c96[_0x2aa350(0x1f5)][_0x2aa350(0x1a9)][_0x2aa350(0x1eb)],'categoryFieldCount':X(_0x10c96[_0x2aa350(0x1f5)]),'valueFieldCount':_0x10c96[_0x2aa350(0x1f5)][_0x2aa350(0x20a)][_0x2aa350(0x1eb)],'fieldButtons':T(_0x10c96['pivotModel'],_0x50cf8c),..._0x350f64,'view':_0x50cf8c,'dataSet':_0x123ddd};return this['_latestResult']=_0x3a40ed,this[_0x2aa350(0x1fc)][_0x2aa350(0x21b)](_0x3a40ed),this[_0x2aa350(0x1b1)]['next']({'status':_0xfa9a58['READY'],..._0x350f64}),!0x0;}catch(_0x465066){return this[_0x2aa350(0x1b1)][_0x2aa350(0x21b)]({'status':this[_0x2aa350(0x1ad)]?_0xfa9a58['REFRESH_ERROR']:_0xfa9a58[_0x2aa350(0x20f)],..._0x350f64,'error':_0x465066}),!0x1;}}['dispose'](){const _0x29d67b=_0x39b7ee;this[_0x29d67b(0x223)][_0x29d67b(0x1ed)](),this[_0x29d67b(0x1ad)]=void 0x0,this[_0x29d67b(0x1fc)][_0x29d67b(0x1bb)](),this['_state$'][_0x29d67b(0x1bb)](),super[_0x29d67b(0x1ed)]();}['_scheduleCacheRefresh'](){const _0x18f8be=_0x39b7ee;this[_0x18f8be(0x1e2)]||(this['_cacheRefreshScheduled']=!0x0,queueMicrotask(()=>{const _0x5c9d50=_0x18f8be;this[_0x5c9d50(0x1e2)]=!0x1,this['_disposed']||this['refresh']();}));}};function _0x38a1(){const _0x47c6ae=['_replace','ColumnPercentStacked','_snapshot','valuePosition','init','Area','displayName','pivotCacheId','info','BarPercentStacked','latestResult','Supported','controls','query','supported','setDirty','Range','valueIndex','replaceCacheReference','_cacheRefreshScheduled','36728tbWUeX','keys','dataFieldId','getValue','min','filterInfo','_model','$pivot-values','length','setLoading','dispose','isInteger','publishResult','max','result$','replacePivotModel','1832582unScnu','object','pivotModel','replaceChart','snapshot','4185NEdnEU','PivotTable','constructor','deepClone','_result$','defineProperty','type','chart','Line','boolean','isAll','series','filter','getRowCount','_changed$','fromJSON','cache','push','valueFields','_cacheHandle','pop','Combination','Bar','UNAVAILABLE','colView','_accepts','join','category','symbol','filterFields','isTopTotal','BarStacked','Unsupported','5773135NlBdYu','call','next','format','changed$','dimension','_scheduleCacheRefresh','columnFields','number','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_pivotTable','paths','1590080KgYpIr','revision','splice','measure','A\x20linked\x20PivotChart\x20cannot\x20be\x20refreshed\x20by\x20an\x20owned\x20runtime.','Pie','toJSON','stringify','3aJUUOd','replaceControls','_hasSuccessfulResult','string','asObservable','Controls','state$','disposeWithMe','Pivot','default','ColumnStacked','AreaPercentStacked','Donut','unsupported','current','dataSet','rowFields','slice','from','subscribe','_latestResult','previous','function','A\x20linked\x20PivotChart\x20must\x20use\x20its\x20referenced\x20PivotTable\x20runtime.','_state$','READY','dataView','LOADING','value','pivot','AreaStacked','refresh','pivotTable','7362355GjElkw','complete','forEach','subtotal','toPrimitive','map','8752182HzqzAe','range','_latestRequestId','Column','1341338ZIjdAq','_reportRevision','rowView','\x20/\x20','requestId','_requestId','Chart','ManualFilter','_initialized','tableFieldId','Row'];_0x38a1=function(){return _0x47c6ae;};return _0x38a1();}function X(_0x45197e){const _0xb01bd7=_0x39b7ee;let _0x3d5cd0=_0x45197e[_0xb01bd7(0x20a)][_0xb01bd7(0x1eb)]>0x1&&_0x45197e[_0xb01bd7(0x1d2)]===_0x368626[_0xb01bd7(0x1ce)];return _0x45197e[_0xb01bd7(0x1a9)][_0xb01bd7(0x1eb)]+ +!!_0x3d5cd0;}function Z(_0x58f4fe,_0x11d671){const _0x1d3fdb=_0x39b7ee;return JSON[_0x1d3fdb(0x198)](Q(_0x58f4fe))!==JSON[_0x1d3fdb(0x198)](Q(_0x11d671));}function Q(_0x204ea2){const _0x2ab67a=_0x39b7ee;let _0x53c9cf=_0x2d076f=>{const _0x322c5e=_0x297f;let _0x1a6708=_0x204ea2[_0x322c5e(0x21e)][_0x2d076f];return _0x1a6708&&{'id':_0x1a6708['id'],'dataFieldId':_0x1a6708[_0x322c5e(0x1e5)],'filterInfo':_0x1a6708['filterInfo']};};return{'rowFields':_0x204ea2[_0x2ab67a(0x1a9)]['map'](_0x53c9cf),'columnFields':_0x204ea2[_0x2ab67a(0x220)][_0x2ab67a(0x1bf)](_0x53c9cf),'filterFields':_0x204ea2[_0x2ab67a(0x215)][_0x2ab67a(0x1bf)](_0x53c9cf),'valueFields':_0x204ea2[_0x2ab67a(0x20a)][_0x2ab67a(0x1bf)](_0x1a63e0=>{const _0x1326b8=_0x2ab67a;let _0x464822=_0x204ea2[_0x1326b8(0x194)][_0x1a63e0];return _0x464822&&{'id':_0x464822['id'],'dataFieldId':_0x464822[_0x1326b8(0x1e5)],'subtotal':_0x464822[_0x1326b8(0x1bd)]};})};}export{b as DEFAULT_PIVOT_CHART_CONTROLS,J as PivotChartDataSource,j as PivotChartModel,A as PivotChartModelChangeType,Y as PivotChartRuntime,y as PivotChartSourceKind,h as PivotChartTypeSupportStatus,M as adaptPivotViewToChartDataSet,T as getPivotChartFieldButtons,v as getPivotChartPieSeriesLimit,_ as getPivotChartTypeSupportStatus,x as isLinkedPivotChartDefinition,S as isOwnedPivotChartDefinition,g as isPivotChartTypeString,C as resolvePivotChartControls};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChartTypeBits, ChartTypeString } from '@univerjs-pro/engine-chart';
|
|
2
|
+
export type PivotChartTypeString = ChartTypeString.Line | ChartTypeString.Column | ChartTypeString.ColumnStacked | ChartTypeString.ColumnPercentStacked | ChartTypeString.Bar | ChartTypeString.BarStacked | ChartTypeString.BarPercentStacked | ChartTypeString.Pie | ChartTypeString.Donut | ChartTypeString.Area | ChartTypeString.AreaStacked | ChartTypeString.AreaPercentStacked | ChartTypeString.Combination;
|
|
3
|
+
export declare enum PivotChartTypeSupportStatus {
|
|
4
|
+
Supported = "supported",
|
|
5
|
+
Unsupported = "unsupported"
|
|
6
|
+
}
|
|
7
|
+
/** Returns whether a semantic Chart type can be rendered from a PivotView. */
|
|
8
|
+
export declare function isPivotChartTypeString(value: unknown): value is PivotChartTypeString;
|
|
9
|
+
/**
|
|
10
|
+
* Returns whether the chart type has a verified PivotView category-series mapping.
|
|
11
|
+
* Unsupported snapshots remain persisted and can be switched to a supported type later.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getPivotChartTypeSupportStatus(chartType: ChartTypeBits): PivotChartTypeSupportStatus;
|
|
14
|
+
/**
|
|
15
|
+
* Regular and composite Pie charts consume one materialized series. Doughnut charts keep every
|
|
16
|
+
* materialized series because the chart engine renders them as concentric rings.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getPivotChartPieSeriesLimit(chartType: ChartTypeBits): number | undefined;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { IChartSnapshot } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IPivotTableSnapshot } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import type { IPivotCacheReference, PivotCacheReference } from '@univerjs-pro/pivot-cache';
|
|
4
|
+
export declare enum PivotChartSourceKind {
|
|
5
|
+
Range = "range",
|
|
6
|
+
PivotTable = "pivotTable"
|
|
7
|
+
}
|
|
8
|
+
export interface IPivotChartControls {
|
|
9
|
+
showFieldButtons: boolean;
|
|
10
|
+
showExpandCollapseButtons: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const DEFAULT_PIVOT_CHART_CONTROLS: IPivotChartControls;
|
|
13
|
+
interface IPivotChartDefinitionBase {
|
|
14
|
+
id: string;
|
|
15
|
+
chart: IChartSnapshot;
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Persisted PivotChart-only controls. Missing values keep legacy snapshots visible. */
|
|
18
|
+
controls?: Partial<IPivotChartControls>;
|
|
19
|
+
}
|
|
20
|
+
/** Reference to a PivotTable that owns the PivotModel used by a PivotChart. `subUnitId` is its last known location. */
|
|
21
|
+
export interface IPivotChartPivotTableReference {
|
|
22
|
+
unitId: string;
|
|
23
|
+
subUnitId: string;
|
|
24
|
+
pivotTableId: string;
|
|
25
|
+
}
|
|
26
|
+
/** A PivotChart whose PivotModel is owned by the chart itself. */
|
|
27
|
+
export interface IOwnedPivotChartDefinition<TReference extends IPivotCacheReference = PivotCacheReference> extends IPivotChartDefinitionBase {
|
|
28
|
+
cacheRef: TReference;
|
|
29
|
+
pivotModel: IPivotTableSnapshot;
|
|
30
|
+
pivotTableRef?: never;
|
|
31
|
+
}
|
|
32
|
+
/** A PivotChart that shares the PivotModel owned by an existing PivotTable. */
|
|
33
|
+
export interface ILinkedPivotChartDefinition extends IPivotChartDefinitionBase {
|
|
34
|
+
pivotTableRef: IPivotChartPivotTableReference;
|
|
35
|
+
cacheRef?: never;
|
|
36
|
+
pivotModel?: never;
|
|
37
|
+
}
|
|
38
|
+
/** Host-neutral persisted definition of a pivot chart. */
|
|
39
|
+
export type IPivotChartDefinition<TReference extends IPivotCacheReference = PivotCacheReference> = IOwnedPivotChartDefinition<TReference> | ILinkedPivotChartDefinition;
|
|
40
|
+
export declare function isLinkedPivotChartDefinition(definition: IPivotChartDefinition): definition is ILinkedPivotChartDefinition;
|
|
41
|
+
export declare function isOwnedPivotChartDefinition(definition: IPivotChartDefinition): definition is IOwnedPivotChartDefinition;
|
|
42
|
+
export declare function resolvePivotChartControls(controls: Partial<IPivotChartControls> | undefined): IPivotChartControls;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IChartFieldButton } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IPivotTableSnapshot, IPivotViewJSON } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
export declare function getPivotChartFieldButtons(pivotModel: IPivotTableSnapshot, view?: IPivotViewJSON): IChartFieldButton[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { getPivotChartPieSeriesLimit, getPivotChartTypeSupportStatus, isPivotChartTypeString, PivotChartTypeSupportStatus, } from './chart-type';
|
|
2
|
+
export type { PivotChartTypeString } from './chart-type';
|
|
3
|
+
export { DEFAULT_PIVOT_CHART_CONTROLS, isLinkedPivotChartDefinition, isOwnedPivotChartDefinition, PivotChartSourceKind, resolvePivotChartControls, } from './definition';
|
|
4
|
+
export type { ILinkedPivotChartDefinition, IOwnedPivotChartDefinition, IPivotChartControls, IPivotChartDefinition, IPivotChartPivotTableReference, } from './definition';
|
|
5
|
+
export { getPivotChartFieldButtons } from './field-buttons';
|
|
6
|
+
export { PivotChartModel, PivotChartModelChangeType } from './model';
|
|
7
|
+
export type { IPivotChartModelChange } from './model';
|
|
8
|
+
export { adaptPivotViewToChartDataSet } from './pivot-chart-data-set-adapter';
|
|
9
|
+
export { PivotChartDataSource, } from './pivot-chart-data-source';
|
|
10
|
+
export type { IPivotChartDataSetResult, IPivotChartDataSourceState, IPivotChartRequestRevision, } from './pivot-chart-data-source';
|
|
11
|
+
export { PivotChartRuntime, } from './runtime';
|
|
12
|
+
export type { IPivotChartCalculationResult, IPivotChartRuntimeState, } from './runtime';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IChartSnapshot } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IPivotTableSnapshot } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import type { PivotCacheReference } from '@univerjs-pro/pivot-cache';
|
|
4
|
+
import type { Observable } from 'rxjs';
|
|
5
|
+
import type { IPivotChartControls, IPivotChartDefinition } from './definition';
|
|
6
|
+
import { Disposable } from '@univerjs/core';
|
|
7
|
+
export declare enum PivotChartModelChangeType {
|
|
8
|
+
Cache = "cache",
|
|
9
|
+
Pivot = "pivot",
|
|
10
|
+
Chart = "chart",
|
|
11
|
+
Controls = "controls"
|
|
12
|
+
}
|
|
13
|
+
export interface IPivotChartModelChange {
|
|
14
|
+
type: PivotChartModelChangeType;
|
|
15
|
+
previous: IPivotChartDefinition;
|
|
16
|
+
current: IPivotChartDefinition;
|
|
17
|
+
}
|
|
18
|
+
export declare class PivotChartModel extends Disposable {
|
|
19
|
+
private _snapshot;
|
|
20
|
+
private readonly _changed$;
|
|
21
|
+
readonly changed$: Observable<IPivotChartModelChange>;
|
|
22
|
+
constructor(definition: IPivotChartDefinition);
|
|
23
|
+
get id(): string;
|
|
24
|
+
get snapshot(): IPivotChartDefinition;
|
|
25
|
+
get controls(): IPivotChartControls;
|
|
26
|
+
replaceCacheReference(cacheRef: PivotCacheReference): boolean;
|
|
27
|
+
replacePivotModel(pivotModel: IPivotTableSnapshot): boolean;
|
|
28
|
+
replaceChart(chart: IChartSnapshot): void;
|
|
29
|
+
replaceControls(controls: IPivotChartControls): void;
|
|
30
|
+
replacePresentation(chart: IChartSnapshot, controls: IPivotChartControls, name: string | undefined): void;
|
|
31
|
+
dispose(): void;
|
|
32
|
+
private _replace;
|
|
33
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IUniverDataSet } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { IPivotTableSnapshot, IPivotViewJSON } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
export declare function adaptPivotViewToChartDataSet(viewJson: IPivotViewJSON, pivotModel: IPivotTableSnapshot): IUniverDataSet;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IUniverDataSet } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { Observable } from 'rxjs';
|
|
3
|
+
import { ChartDataSource, ChartDataSourceRuntimeStatus } from '@univerjs-pro/engine-chart';
|
|
4
|
+
export interface IPivotChartRequestRevision {
|
|
5
|
+
requestId: number;
|
|
6
|
+
reportRevision: number;
|
|
7
|
+
pivotCacheId: string;
|
|
8
|
+
cacheRevision: number;
|
|
9
|
+
}
|
|
10
|
+
export interface IPivotChartDataSetResult extends IPivotChartRequestRevision {
|
|
11
|
+
dataSet: IUniverDataSet;
|
|
12
|
+
}
|
|
13
|
+
export interface IPivotChartDataSourceState extends Partial<IPivotChartRequestRevision> {
|
|
14
|
+
status: ChartDataSourceRuntimeStatus;
|
|
15
|
+
error?: unknown;
|
|
16
|
+
}
|
|
17
|
+
export declare class PivotChartDataSource extends ChartDataSource {
|
|
18
|
+
private readonly _state$;
|
|
19
|
+
private _latestRequestId;
|
|
20
|
+
private _hasSuccessfulResult;
|
|
21
|
+
readonly state$: Observable<IPivotChartDataSourceState>;
|
|
22
|
+
get state(): IPivotChartDataSourceState;
|
|
23
|
+
setLoading(revision: IPivotChartRequestRevision): boolean;
|
|
24
|
+
publishResult(result: IPivotChartDataSetResult): boolean;
|
|
25
|
+
publishError(revision: IPivotChartRequestRevision, error: unknown): boolean;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
private _accepts;
|
|
28
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { IChartFieldButton } from '@univerjs-pro/engine-chart';
|
|
2
|
+
import type { FieldsCollection, IPivotViewJSON } from '@univerjs-pro/engine-pivot';
|
|
3
|
+
import type { IPivotCacheHandle } from '@univerjs-pro/pivot-cache';
|
|
4
|
+
import type { Observable } from 'rxjs';
|
|
5
|
+
import type { PivotChartModel } from './model';
|
|
6
|
+
import type { IPivotChartDataSetResult, IPivotChartRequestRevision } from './pivot-chart-data-source';
|
|
7
|
+
import { ChartDataSourceRuntimeStatus } from '@univerjs-pro/engine-chart';
|
|
8
|
+
import { Disposable } from '@univerjs/core';
|
|
9
|
+
export interface IPivotChartCalculationResult extends IPivotChartDataSetResult {
|
|
10
|
+
pivotChartId: string;
|
|
11
|
+
view: IPivotViewJSON;
|
|
12
|
+
rowFieldCount: number;
|
|
13
|
+
categoryFieldCount?: number;
|
|
14
|
+
valueFieldCount: number;
|
|
15
|
+
fieldButtons?: IChartFieldButton[];
|
|
16
|
+
}
|
|
17
|
+
export interface IPivotChartRuntimeState extends Partial<IPivotChartRequestRevision> {
|
|
18
|
+
status: ChartDataSourceRuntimeStatus;
|
|
19
|
+
error?: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare class PivotChartRuntime extends Disposable {
|
|
22
|
+
private readonly _model;
|
|
23
|
+
private readonly _cacheHandle;
|
|
24
|
+
private readonly _pivotTable;
|
|
25
|
+
private readonly _result$;
|
|
26
|
+
private readonly _state$;
|
|
27
|
+
private _latestResult;
|
|
28
|
+
private _requestId;
|
|
29
|
+
private _reportRevision;
|
|
30
|
+
private _initialized;
|
|
31
|
+
private _cacheRefreshScheduled;
|
|
32
|
+
readonly result$: Observable<IPivotChartCalculationResult>;
|
|
33
|
+
readonly state$: Observable<IPivotChartRuntimeState>;
|
|
34
|
+
constructor(_model: PivotChartModel, _cacheHandle: IPivotCacheHandle, fieldsCollection: FieldsCollection);
|
|
35
|
+
get latestResult(): IPivotChartCalculationResult | undefined;
|
|
36
|
+
init(): void;
|
|
37
|
+
refresh(): boolean;
|
|
38
|
+
dispose(): void;
|
|
39
|
+
private _scheduleCacheRefresh;
|
|
40
|
+
}
|
package/lib/umd/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2143bf,_0x51bf96){const _0x1141af=_0x3d6e,_0x126e43=_0x2143bf();while(!![]){try{const _0x262af2=parseInt(_0x1141af(0x1b9))/0x1+-parseInt(_0x1141af(0x1c0))/0x2*(-parseInt(_0x1141af(0x1b0))/0x3)+-parseInt(_0x1141af(0x1ab))/0x4*(-parseInt(_0x1141af(0x1f2))/0x5)+-parseInt(_0x1141af(0x209))/0x6*(parseInt(_0x1141af(0x212))/0x7)+-parseInt(_0x1141af(0x223))/0x8+parseInt(_0x1141af(0x237))/0x9+-parseInt(_0x1141af(0x201))/0xa*(parseInt(_0x1141af(0x1db))/0xb);if(_0x262af2===_0x51bf96)break;else _0x126e43['push'](_0x126e43['shift']());}catch(_0x38e84d){_0x126e43['push'](_0x126e43['shift']());}}}(_0x2a4c,0x2f39c),function(_0x3c01d5,_0x431208){const _0x58f983=_0x3d6e;typeof exports=='object'&&typeof module<'u'?_0x431208(exports,require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('rxjs')):typeof define==_0x58f983(0x1b6)&&define[_0x58f983(0x215)]?define(['exports',_0x58f983(0x240),_0x58f983(0x1a4),_0x58f983(0x243),_0x58f983(0x232)],_0x431208):(_0x3c01d5=typeof globalThis<'u'?globalThis:_0x3c01d5||self,_0x431208(_0x3c01d5[_0x58f983(0x227)]={},_0x3c01d5['UniverProEngineChart'],_0x3c01d5['UniverProEnginePivot'],_0x3c01d5['UniverCore'],_0x3c01d5[_0x58f983(0x232)]));}(this,function(_0x385c76,_0x414476,_0x1a6d8b,_0x3e6e19,_0xd918e3){const _0x15e99e=_0x3d6e;Object['defineProperty'](_0x385c76,Symbol[_0x15e99e(0x1d7)],{'value':_0x15e99e(0x1bf)});let _0x467e22=function(_0xb19006){const _0x3553f7=_0x15e99e;return _0xb19006['Supported']=_0x3553f7(0x1e5),_0xb19006[_0x3553f7(0x1f4)]=_0x3553f7(0x1c6),_0xb19006;}({});function _0x234797(_0x10f07d){const _0x4e31ef=_0x15e99e;switch(_0x10f07d){case _0x414476['ChartTypeString']['Line']:case _0x414476[_0x4e31ef(0x200)]['Column']:case _0x414476['ChartTypeString'][_0x4e31ef(0x1bc)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x220)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x1dd)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x21b)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x19b)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x251)]:case _0x414476['ChartTypeString'][_0x4e31ef(0x1eb)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x1ee)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x230)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x23e)]:case _0x414476[_0x4e31ef(0x200)][_0x4e31ef(0x234)]:return!0x0;default:return!0x1;}}function _0x2c9d53(_0x8442e6){const _0x5c3813=_0x15e99e;switch(_0x8442e6){case _0x414476[_0x5c3813(0x235)][_0x5c3813(0x1ea)]:case _0x414476[_0x5c3813(0x235)][_0x5c3813(0x1bc)]:case _0x414476[_0x5c3813(0x235)]['ColumnPercentStacked']:case _0x414476[_0x5c3813(0x235)][_0x5c3813(0x1dd)]:case _0x414476[_0x5c3813(0x235)][_0x5c3813(0x21b)]:case _0x414476['ChartTypeBits'][_0x5c3813(0x19b)]:case _0x414476['ChartTypeBits'][_0x5c3813(0x1a8)]:case _0x414476[_0x5c3813(0x235)]['Area']:case _0x414476[_0x5c3813(0x235)]['AreaStacked']:case _0x414476[_0x5c3813(0x235)][_0x5c3813(0x23e)]:case _0x414476['ChartTypeBits'][_0x5c3813(0x234)]:case _0x414476[_0x5c3813(0x235)]['Pie']:case _0x414476[_0x5c3813(0x235)]['Doughnut']:return'supported';default:return _0x5c3813(0x1c6);}}function _0x3aecb9(_0x27bb1d){const _0x51231d=_0x15e99e;return _0x27bb1d===_0x414476[_0x51231d(0x235)][_0x51231d(0x251)]?0x1:void 0x0;}let _0x34a03e=function(_0x5c52a9){const _0x1a714f=_0x15e99e;return _0x5c52a9[_0x1a714f(0x1a0)]=_0x1a714f(0x19e),_0x5c52a9[_0x1a714f(0x1d1)]=_0x1a714f(0x1df),_0x5c52a9;}({}),_0x248c7a={'showFieldButtons':!0x0,'showExpandCollapseButtons':!0x0};function _0x395576(_0x73f5d7){const _0x51afce=_0x15e99e;return _0x73f5d7[_0x51afce(0x236)]!==void 0x0;}function _0x4ef0bb(_0x2d529a){return!_0x395576(_0x2d529a);}function _0x1508c3(_0x606877){return{..._0x248c7a,..._0x606877};}function _0x1c5818(_0x4df208){const _0x57ad97=_0x15e99e;return _0x4df208?_0x4df208[_0x57ad97(0x24c)]!==_0x1a6d8b[_0x57ad97(0x239)][_0x57ad97(0x1e4)]||_0x4df208[_0x57ad97(0x253)]!==!0x0:!0x1;}function _0x245cc5(_0x503801,_0x4e9c44){const _0x248f90=_0x15e99e;let _0x18a7a5=(_0x58a6d4,_0x5e47db)=>{const _0x51c44f=_0x3d6e;let _0x535b0a=_0x503801['dimension'][_0x58a6d4];return _0x535b0a?{'fieldId':_0x58a6d4,'label':_0x535b0a['displayName']||_0x535b0a[_0x51c44f(0x216)]||_0x58a6d4,'role':_0x5e47db,'filtered':_0x1c5818(_0x535b0a[_0x51c44f(0x1d3)])}:void 0x0;},_0x567863=[],_0x545e4e=(_0x53089e,_0x44f1f4)=>{_0x53089e['forEach'](_0x525e03=>{const _0x5bc715=_0x3d6e;let _0x39d102=_0x18a7a5(_0x525e03,_0x44f1f4);_0x39d102&&_0x567863[_0x5bc715(0x1cd)](_0x39d102);});};_0x545e4e(_0x503801[_0x248f90(0x23c)],_0x248f90(0x1b7)),_0x545e4e(_0x503801[_0x248f90(0x219)],'series');let _0x98ab11=0x0;for(let _0x3aa815 of(_0x4e9c44==null?void 0x0:_0x4e9c44[_0x248f90(0x22c)][_0x248f90(0x1c3)])??[])if(_0x98ab11=Math[_0x248f90(0x197)](_0x98ab11,(_0x3aa815==null?void 0x0:_0x3aa815[_0x248f90(0x1bd)][_0x248f90(0x205)])??0x0),_0x98ab11>=_0x503801[_0x248f90(0x19f)]['length'])break;return _0x545e4e(_0x503801[_0x248f90(0x19f)][_0x248f90(0x1f0)](0x0,_0x98ab11||_0x503801[_0x248f90(0x19f)]['length']),_0x248f90(0x1d8)),_0x567863;}function _0x2ac210(_0x458e9e){'@babel/helpers - typeof';const _0x619ec1=_0x15e99e;return _0x2ac210=typeof Symbol==_0x619ec1(0x1b6)&&typeof Symbol[_0x619ec1(0x1f8)]=='symbol'?function(_0x20816d){return typeof _0x20816d;}:function(_0x27940b){const _0x148b58=_0x619ec1;return _0x27940b&&typeof Symbol==_0x148b58(0x1b6)&&_0x27940b[_0x148b58(0x241)]===Symbol&&_0x27940b!==Symbol[_0x148b58(0x199)]?_0x148b58(0x1e3):typeof _0x27940b;},_0x2ac210(_0x458e9e);}function _0x4403b9(_0xec4469,_0x4c569e){const _0x19d6da=_0x15e99e;if(_0x2ac210(_0xec4469)!='object'||!_0xec4469)return _0xec4469;var _0x2b19d5=_0xec4469[Symbol['toPrimitive']];if(_0x2b19d5!==void 0x0){var _0x26c5e7=_0x2b19d5[_0x19d6da(0x1f5)](_0xec4469,_0x4c569e||_0x19d6da(0x19d));if(_0x2ac210(_0x26c5e7)!=_0x19d6da(0x1f6))return _0x26c5e7;throw TypeError(_0x19d6da(0x1a6));}return(_0x4c569e===_0x19d6da(0x20c)?String:Number)(_0xec4469);}function _0x36c688(_0x32241e){var _0x516494=_0x4403b9(_0x32241e,'string');return _0x2ac210(_0x516494)=='symbol'?_0x516494:_0x516494+'';}function _0x45bd78(_0x20d9c2,_0x21c989,_0x3b73fe){const _0xfb059c=_0x15e99e;return(_0x21c989=_0x36c688(_0x21c989))in _0x20d9c2?Object[_0xfb059c(0x228)](_0x20d9c2,_0x21c989,{'value':_0x3b73fe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20d9c2[_0x21c989]=_0x3b73fe,_0x20d9c2;}let _0x515de5=function(_0x213ce5){const _0x1909e0=_0x15e99e;return _0x213ce5[_0x1909e0(0x19a)]=_0x1909e0(0x206),_0x213ce5[_0x1909e0(0x21a)]='pivot',_0x213ce5[_0x1909e0(0x21f)]=_0x1909e0(0x1cc),_0x213ce5[_0x1909e0(0x1ad)]='controls',_0x213ce5;}({});var _0x1b1509=class extends _0x3e6e19['Disposable']{constructor(_0x48da70){const _0x578650=_0x15e99e;super(),_0x45bd78(this,_0x578650(0x218),void 0x0),_0x45bd78(this,'_changed$',new _0xd918e3['Subject']()),_0x45bd78(this,'changed$',this['_changed$']['asObservable']()),this[_0x578650(0x218)]=_0x3e6e19[_0x578650(0x202)][_0x578650(0x23b)](_0x48da70);}get['id'](){const _0x50dc72=_0x15e99e;return this[_0x50dc72(0x218)]['id'];}get[_0x15e99e(0x1e6)](){const _0x2e2e47=_0x15e99e;return _0x3e6e19[_0x2e2e47(0x202)]['deepClone'](this[_0x2e2e47(0x218)]);}get[_0x15e99e(0x1fc)](){const _0xe0add0=_0x15e99e;return _0x1508c3(this[_0xe0add0(0x218)][_0xe0add0(0x1fc)]);}[_0x15e99e(0x1de)](_0x40eeb1){const _0x1af0e4=_0x15e99e;return _0x4ef0bb(this[_0x1af0e4(0x218)])?(this[_0x1af0e4(0x1d9)](_0x1af0e4(0x206),{...this[_0x1af0e4(0x218)],'cacheRef':_0x3e6e19[_0x1af0e4(0x202)]['deepClone'](_0x40eeb1)}),!0x0):!0x1;}[_0x15e99e(0x1af)](_0x595cda){const _0x4916bc=_0x15e99e;return _0x4ef0bb(this['_snapshot'])?(this['_replace'](_0x4916bc(0x1b4),{...this[_0x4916bc(0x218)],'pivotModel':_0x3e6e19[_0x4916bc(0x202)][_0x4916bc(0x23b)](_0x595cda)}),!0x0):!0x1;}[_0x15e99e(0x229)](_0x48c6d5){const _0x25dbf0=_0x15e99e;this[_0x25dbf0(0x1d9)](_0x25dbf0(0x1cc),{...this[_0x25dbf0(0x218)],'chart':_0x3e6e19['Tools']['deepClone'](_0x48c6d5)});}[_0x15e99e(0x244)](_0x115520){const _0x2848a9=_0x15e99e;this['_replace']('controls',{...this[_0x2848a9(0x218)],'controls':_0x3e6e19['Tools']['deepClone'](_0x115520)});}[_0x15e99e(0x1c9)](_0x4784a4,_0x46ecd1,_0x3b58f1){const _0x5773dc=_0x15e99e;this['_replace'](_0x5773dc(0x1cc),{...this[_0x5773dc(0x218)],'chart':_0x3e6e19[_0x5773dc(0x202)][_0x5773dc(0x23b)](_0x4784a4),'controls':_0x3e6e19[_0x5773dc(0x202)][_0x5773dc(0x23b)](_0x46ecd1),'name':_0x3b58f1});}['dispose'](){const _0x29dcc5=_0x15e99e;this[_0x29dcc5(0x22e)]['complete'](),super['dispose']();}['_replace'](_0x226d24,_0x349f5e){const _0x442a84=_0x15e99e;let _0x3d816e=this[_0x442a84(0x218)];this['_snapshot']=_0x349f5e,this[_0x442a84(0x22e)][_0x442a84(0x1be)]({'type':_0x226d24,'previous':_0x3e6e19[_0x442a84(0x202)][_0x442a84(0x23b)](_0x3d816e),'current':_0x3e6e19[_0x442a84(0x202)][_0x442a84(0x23b)](_0x349f5e)});}};function _0x59f0a5(_0x573bd2,_0x15b91e){const _0x29a9ab=_0x15e99e;if(_0x15b91e[_0x29a9ab(0x254)][_0x29a9ab(0x205)]===0x0)return{'dimensions':[],'source':[],'categorySpans':[]};let _0x4ebcf1=new _0x1a6d8b[(_0x29a9ab(0x207))]();_0x4ebcf1['formJSON'](_0x573bd2);let _0x981547=_0x34cd52(_0x4ebcf1[_0x29a9ab(0x22c)][_0x29a9ab(0x1c3)],_0x4ebcf1[_0x29a9ab(0x1d2)][_0x29a9ab(0x246)](),_0x15b91e[_0x29a9ab(0x19f)][_0x29a9ab(0x205)]===0x0,_0x15b91e,!0x0),_0x7d910b=_0x34cd52(_0x4ebcf1[_0x29a9ab(0x1ce)][_0x29a9ab(0x1c3)],_0x4ebcf1['dataView']['getColCount'](),_0x15b91e[_0x29a9ab(0x219)][_0x29a9ab(0x205)]===0x0,_0x15b91e,!0x1),_0x15ddab=_0x162239(_0x15b91e),_0x466357=[..._0x15b91e[_0x29a9ab(0x19f)]];_0x15ddab>=0x0&&_0x466357[_0x29a9ab(0x252)](_0x15ddab,0x0,void 0x0);let _0x490ae8=_0x981547[_0x29a9ab(0x24f)](_0x5d85a0=>_0x1ab9c4(_0x4ebcf1[_0x29a9ab(0x22c)]['info'][_0x5d85a0],_0x15b91e,_0x15ddab)),_0x4a8246=[],_0x47bf1d=[];for(let _0x5b0eeb=0x0;_0x5b0eeb<_0x466357[_0x29a9ab(0x205)];_0x5b0eeb++){var _0x4d4bad;let _0x6d9da0=_0x466357[_0x5b0eeb];_0x4a8246['push'](_0x6d9da0?{'name':_0x6d9da0,'displayName':((_0x4d4bad=_0x15b91e[_0x29a9ab(0x21c)][_0x6d9da0])==null?void 0x0:_0x4d4bad['displayName'])??_0x6d9da0}:{'name':_0x29a9ab(0x20d),'displayName':''}),_0x47bf1d['push'](_0x490ae8['map'](_0x2246ac=>_0x2246ac[_0x5b0eeb]??''));}let _0x185cc2=Object[_0x29a9ab(0x245)](_0x4ebcf1[_0x29a9ab(0x23a)])['length']>0x0?_0x47bf1d['map'](_0x1e7205=>_0x1e7205['map'](_0x2daa4f)):void 0x0;return _0x7d910b[_0x29a9ab(0x203)](_0x495a77=>{const _0x317192=_0x29a9ab;let _0x36ba63=_0x4ebcf1[_0x317192(0x1ce)][_0x317192(0x1c3)][_0x495a77];_0x4a8246['push']({'name':_0x3a220c(_0x36ba63,_0x15b91e,_0x495a77),'displayName':_0x42273b(_0x36ba63,_0x15b91e,_0x495a77)});let _0x11024c=_0x981547[_0x317192(0x24f)](_0x3c8b11=>_0x412395(_0x4ebcf1[_0x317192(0x1d2)][_0x317192(0x233)](_0x3c8b11,_0x495a77)));if(_0x47bf1d[_0x317192(0x1cd)](_0x11024c),_0x185cc2){let _0xa46f46=_0x384f64(_0x36ba63,_0x15b91e,_0x495a77);_0x185cc2[_0x317192(0x1cd)](_0x11024c[_0x317192(0x24f)]((_0x556efa,_0xc8af99)=>{const _0x4f7ecc=_0x317192;let _0x5907d4=_0x15b91e[_0x4f7ecc(0x21e)]===_0x1a6d8b[_0x4f7ecc(0x1e9)][_0x4f7ecc(0x1ec)]?_0x384f64(_0x4ebcf1[_0x4f7ecc(0x22c)][_0x4f7ecc(0x1c3)][_0x981547[_0xc8af99]],_0x15b91e,-0x1):_0xa46f46;return _0x19dc19(_0x556efa,_0x5907d4?_0x4ebcf1[_0x4f7ecc(0x23a)][_0x5907d4]:void 0x0);}));}}),{'dimensions':_0x4a8246,'source':_0x47bf1d,..._0x185cc2?{'sourceLabels':_0x185cc2}:{},'categorySpans':_0x5abe40(_0x490ae8,_0x466357[_0x29a9ab(0x205)])};}function _0x34cd52(_0x35fd2b,_0x58183c,_0x27ee9d,_0x5682d4,_0x4be200){const _0x92caa9=_0x15e99e;let _0x1cc014=[];for(let _0x52a0fc=0x0;_0x52a0fc<_0x58183c;_0x52a0fc++){let _0x1fff6b=_0x35fd2b[_0x52a0fc];(!(_0x1fff6b!=null&&_0x1fff6b[_0x92caa9(0x1b3)]||_0x1fff6b!=null&&_0x1fff6b[_0x92caa9(0x1cf)]||_0x1fff6b!=null&&_0x1fff6b[_0x92caa9(0x1e2)])&&_0x21dff8(_0x1fff6b,_0x5682d4,_0x4be200)||_0x1320b9(_0x1fff6b,_0x5682d4))&&_0x1cc014['push'](_0x52a0fc);}return _0x1cc014[_0x92caa9(0x205)]===0x0&&_0x27ee9d?Array['from']({'length':_0x58183c},(_0x10358b,_0x1f55dd)=>_0x1f55dd):_0x1cc014;}function _0x21dff8(_0x35053c,_0x216c08,_0x21a4e8){const _0x5e3c9c=_0x15e99e;return _0x21a4e8&&_0x216c08[_0x5e3c9c(0x254)][_0x5e3c9c(0x205)]>0x1&&_0x216c08['valuePosition']===_0x1a6d8b[_0x5e3c9c(0x1e9)][_0x5e3c9c(0x1ec)]?(_0x35053c==null?void 0x0:_0x35053c['valueIndex'])!==void 0x0&&_0x35053c[_0x5e3c9c(0x1fe)]>=0x0&&_0x35053c['paths'][_0x5e3c9c(0x205)]>=_0x216c08['rowFields'][_0x5e3c9c(0x205)]:(_0x35053c==null?void 0x0:_0x35053c[_0x5e3c9c(0x1e1)])!==!0x1;}function _0x1320b9(_0x53b6ee,_0x4e68c0){const _0x22e5e3=_0x15e99e;if(!(_0x53b6ee!=null&&_0x53b6ee[_0x22e5e3(0x1ae)])||!_0x53b6ee[_0x22e5e3(0x1bd)]['length'])return!0x1;let _0x26fab6=_0x4e68c0['collapseInfo'][_0x53b6ee[_0x22e5e3(0x1ae)]];if(typeof _0x26fab6==_0x22e5e3(0x1a7))return _0x26fab6;let _0x418cf8=_0x53b6ee[_0x22e5e3(0x1bd)][_0x22e5e3(0x1b7)](Boolean)[_0x22e5e3(0x1b8)]();return _0x418cf8!==void 0x0&&(_0x26fab6==null?void 0x0:_0x26fab6[_0x418cf8])===!0x0;}function _0x42273b(_0x1d65ba,_0x38297b,_0xd71cd0){const _0x3301a0=_0x15e99e;let _0x3bafaa=(_0x1d65ba==null?void 0x0:_0x1d65ba[_0x3301a0(0x1bd)]['slice'](0x0,_0x38297b[_0x3301a0(0x219)][_0x3301a0(0x205)]))??[];if(_0x38297b[_0x3301a0(0x21e)]===_0x1a6d8b[_0x3301a0(0x1e9)]['Column']){let _0x55e406=_0xa44f5a(_0x1d65ba,_0x38297b);_0x55e406&&_0x3bafaa[_0x3301a0(0x252)](_0x3a0722(_0x38297b[_0x3301a0(0x1fe)],_0x3bafaa[_0x3301a0(0x205)]),0x0,_0x55e406);}return _0x3bafaa['filter'](Boolean)['join'](_0x3301a0(0x1bb))||_0xa44f5a(_0x1d65ba,_0x38297b,_0xd71cd0);}function _0x3a220c(_0x88492c,_0x39f5a8,_0x5cb8d6){const _0x59f298=_0x15e99e;return JSON[_0x59f298(0x242)]([_0x39f5a8['valuePosition']===_0x1a6d8b[_0x59f298(0x1e9)][_0x59f298(0x1ec)]?'':_0x384f64(_0x88492c,_0x39f5a8,_0x5cb8d6)??'',...(_0x88492c==null?void 0x0:_0x88492c['paths'])??[]]);}function _0x5abe40(_0x4c0475,_0xbad159){const _0x1b4719=_0x15e99e;let _0x35f7e9=[],_0x59d8ef=_0x4c0475[_0x1b4719(0x24f)]((_0x80f1e8,_0x4d98a5)=>_0x4d98a5===0x0?0x0:_0x4c8151(_0x4c0475[_0x4d98a5-0x1],_0x80f1e8,_0xbad159));for(let _0xef43d1=0x0;_0xef43d1<_0xbad159;_0xef43d1++){let _0x7b5c76=0x0;for(let _0x237528=0x1;_0x237528<_0x4c0475[_0x1b4719(0x205)];_0x237528++)_0x59d8ef[_0x237528]<=_0xef43d1&&(_0x35f7e9[_0x1b4719(0x1cd)]({'fieldIndex':_0xef43d1,'startIndex':_0x7b5c76,'endIndex':_0x237528-0x1}),_0x7b5c76=_0x237528);_0x4c0475[_0x1b4719(0x205)]>0x0&&_0x35f7e9[_0x1b4719(0x1cd)]({'fieldIndex':_0xef43d1,'startIndex':_0x7b5c76,'endIndex':_0x4c0475[_0x1b4719(0x205)]-0x1});}return _0x35f7e9;}function _0x1ab9c4(_0x37ef1b,_0x49c629,_0x30ee77){const _0x5902ef=_0x15e99e;let _0x25dd38=(_0x37ef1b==null?void 0x0:_0x37ef1b[_0x5902ef(0x1bd)][_0x5902ef(0x1f0)](0x0,_0x49c629['rowFields']['length']))??[];for(;_0x25dd38[_0x5902ef(0x205)]<_0x49c629[_0x5902ef(0x19f)][_0x5902ef(0x205)];)_0x25dd38[_0x5902ef(0x1cd)]('');return _0x30ee77>=0x0&&_0x25dd38[_0x5902ef(0x252)](_0x30ee77,0x0,_0xa44f5a(_0x37ef1b,_0x49c629)),_0x25dd38;}function _0x3a0722(_0x20f800,_0x2ab879){const _0x26ce19=_0x15e99e;return!Number[_0x26ce19(0x214)](_0x20f800)||_0x20f800<0x0?_0x2ab879:Math[_0x26ce19(0x1d5)](_0x20f800,_0x2ab879);}function _0x162239(_0x1d823b){const _0x424789=_0x15e99e;return _0x1d823b[_0x424789(0x254)][_0x424789(0x205)]>0x1&&_0x1d823b[_0x424789(0x21e)]===_0x1a6d8b[_0x424789(0x1e9)][_0x424789(0x1ec)]?_0x3a0722(_0x1d823b[_0x424789(0x1fe)],_0x1d823b[_0x424789(0x19f)][_0x424789(0x205)]):-0x1;}function _0xa44f5a(_0x6d00a7,_0x1750e9,_0x155fec=-0x1){const _0x2e58e0=_0x15e99e;let _0x126b6a=_0x384f64(_0x6d00a7,_0x1750e9,_0x155fec);if(!_0x126b6a)return'';let _0x174bc4=_0x1750e9['measure'][_0x126b6a];return(_0x174bc4==null?void 0x0:_0x174bc4['displayName'])||(_0x174bc4==null?void 0x0:_0x174bc4[_0x2e58e0(0x216)])||_0x126b6a;}function _0x384f64(_0x5d5e96,_0x56437a,_0x212f7e){const _0x52ef53=_0x15e99e;return _0x5d5e96!=null&&_0x5d5e96[_0x52ef53(0x1ae)]&&_0x56437a[_0x52ef53(0x250)][_0x5d5e96[_0x52ef53(0x1ae)]]?_0x5d5e96[_0x52ef53(0x1ae)]:(_0x5d5e96==null?void 0x0:_0x5d5e96[_0x52ef53(0x1fe)])!==void 0x0&&_0x5d5e96[_0x52ef53(0x1fe)]>=0x0?_0x56437a[_0x52ef53(0x254)][_0x5d5e96[_0x52ef53(0x1fe)]]:_0x56437a['valueFields']['length']===0x1?_0x56437a[_0x52ef53(0x254)][0x0]:_0x56437a[_0x52ef53(0x254)][_0x212f7e];}function _0x4c8151(_0x8afacc,_0x21cfe4,_0x318f69){let _0x32162c=0x0;for(;_0x32162c<_0x318f69&&_0x8afacc[_0x32162c]===_0x21cfe4[_0x32162c];)_0x32162c++;return _0x32162c;}function _0x412395(_0x1a0b0a){const _0x4026d7=_0x15e99e;return(0x0,_0x1a6d8b[_0x4026d7(0x1ff)])(_0x1a0b0a)?_0x1a0b0a[_0x4026d7(0x1ba)]:(0x0,_0x1a6d8b[_0x4026d7(0x211)])(_0x1a0b0a)?null:_0x1a0b0a??null;}function _0x19dc19(_0x4a860b,_0x47e71b){const _0x36cea5=_0x15e99e;return _0x47e71b&&typeof _0x4a860b==_0x36cea5(0x24d)?String(_0x3e6e19[_0x36cea5(0x1fa)][_0x36cea5(0x1d0)](_0x47e71b,_0x4a860b,{'throws':!0x1})):_0x2daa4f(_0x4a860b);}function _0x2daa4f(_0x5682d3){return _0x5682d3==null?'':String(_0x5682d3);}var _0x24b42c=class extends _0x414476[_0x15e99e(0x208)]{constructor(..._0x9e1d09){const _0x155f78=_0x15e99e;super(..._0x9e1d09),_0x45bd78(this,_0x155f78(0x22b),new _0xd918e3[(_0x155f78(0x24e))]({'status':_0x414476[_0x155f78(0x1b5)]['UNAVAILABLE']})),_0x45bd78(this,_0x155f78(0x1c2),-0x1),_0x45bd78(this,_0x155f78(0x21d),!0x1),_0x45bd78(this,_0x155f78(0x1ac),this[_0x155f78(0x22b)][_0x155f78(0x1f9)]());}get[_0x15e99e(0x248)](){const _0x52e9f1=_0x15e99e;return this[_0x52e9f1(0x22b)]['getValue']();}[_0x15e99e(0x24b)](_0x29056d){const _0x5ecbb0=_0x15e99e;return this[_0x5ecbb0(0x1c4)](_0x29056d['requestId'])?(this['_latestRequestId']=_0x29056d[_0x5ecbb0(0x1d6)],this[_0x5ecbb0(0x22b)]['next']({'status':_0x414476[_0x5ecbb0(0x1b5)][_0x5ecbb0(0x231)],..._0x29056d}),!0x0):!0x1;}[_0x15e99e(0x1b1)](_0x5c3c5d){const _0x4e6a5d=_0x15e99e;if(!this[_0x4e6a5d(0x1c4)](_0x5c3c5d[_0x4e6a5d(0x1d6)]))return!0x1;this[_0x4e6a5d(0x1c2)]=_0x5c3c5d[_0x4e6a5d(0x1d6)],this['publishDataSet'](_0x5c3c5d[_0x4e6a5d(0x1aa)]),this['_hasSuccessfulResult']=!0x0;let {dataSet:_0x2f76e1,..._0xfa530e}=_0x5c3c5d;return this[_0x4e6a5d(0x22b)][_0x4e6a5d(0x1be)]({'status':_0x414476[_0x4e6a5d(0x1b5)][_0x4e6a5d(0x1ca)],..._0xfa530e}),!0x0;}[_0x15e99e(0x1c1)](_0x478e04,_0x3ecad6){const _0x161e7f=_0x15e99e;return this[_0x161e7f(0x1c4)](_0x478e04[_0x161e7f(0x1d6)])?(this[_0x161e7f(0x1c2)]=_0x478e04[_0x161e7f(0x1d6)],this[_0x161e7f(0x22b)]['next']({'status':this[_0x161e7f(0x21d)]?_0x414476[_0x161e7f(0x1b5)][_0x161e7f(0x1a9)]:_0x414476[_0x161e7f(0x1b5)]['UNAVAILABLE'],..._0x478e04,'error':_0x3ecad6}),!0x0):!0x1;}[_0x15e99e(0x204)](){const _0xbee14f=_0x15e99e;this[_0xbee14f(0x22b)][_0xbee14f(0x1f1)](),super[_0xbee14f(0x204)]();}['_accepts'](_0x5737a3){const _0x3d2f90=_0x15e99e;return _0x5737a3>=this[_0x3d2f90(0x1c2)];}},_0x3af839=class extends _0x3e6e19[_0x15e99e(0x1ed)]{constructor(_0x2fcb48,_0x3c36d4,_0x120962){const _0x3e29f1=_0x15e99e;super(),this['_model']=_0x2fcb48,this['_cacheHandle']=_0x3c36d4,_0x45bd78(this,_0x3e29f1(0x1c8),void 0x0),_0x45bd78(this,_0x3e29f1(0x22a),new _0xd918e3[(_0x3e29f1(0x20a))]()),_0x45bd78(this,'_state$',new _0xd918e3[(_0x3e29f1(0x24e))]({'status':_0x414476['ChartDataSourceRuntimeStatus'][_0x3e29f1(0x20f)]})),_0x45bd78(this,'_latestResult',void 0x0),_0x45bd78(this,_0x3e29f1(0x249),0x0),_0x45bd78(this,_0x3e29f1(0x1e0),0x0),_0x45bd78(this,_0x3e29f1(0x1b2),!0x1),_0x45bd78(this,_0x3e29f1(0x20e),!0x1),_0x45bd78(this,_0x3e29f1(0x23d),this[_0x3e29f1(0x22a)][_0x3e29f1(0x1f9)]()),_0x45bd78(this,_0x3e29f1(0x1ac),this[_0x3e29f1(0x22b)][_0x3e29f1(0x1f9)]());let _0x4bc326=_0x2fcb48[_0x3e29f1(0x1e6)];if(!_0x4ef0bb(_0x4bc326))throw Error(_0x3e29f1(0x255));this[_0x3e29f1(0x1c8)]=new _0x1a6d8b[(_0x3e29f1(0x1d1))](_0x120962,void 0x0,_0x2fcb48['id']),this[_0x3e29f1(0x1c8)][_0x3e29f1(0x19c)](_0x4bc326[_0x3e29f1(0x198)]),this[_0x3e29f1(0x23f)](_0x3c36d4);}get[_0x15e99e(0x1e7)](){const _0x310320=_0x15e99e;return this[_0x310320(0x24a)];}[_0x15e99e(0x1fb)](){const _0x46b5db=_0x15e99e;this[_0x46b5db(0x1b2)]||(this[_0x46b5db(0x1b2)]=!0x0,this[_0x46b5db(0x23f)](this[_0x46b5db(0x1c7)][_0x46b5db(0x238)][_0x46b5db(0x1f7)](_0x2dca7a=>{const _0x32a54b=_0x46b5db;_0x2dca7a[_0x32a54b(0x24c)]==='pivot'&&_0x4ef0bb(_0x2dca7a[_0x32a54b(0x1e8)])&&_0x4ef0bb(_0x2dca7a[_0x32a54b(0x217)])&&(this['_reportRevision']++,this[_0x32a54b(0x1c8)][_0x32a54b(0x19c)](_0x2dca7a[_0x32a54b(0x217)][_0x32a54b(0x198)]),_0x51fb20(_0x2dca7a[_0x32a54b(0x1e8)][_0x32a54b(0x198)],_0x2dca7a['current'][_0x32a54b(0x198)])&&this['_pivotTable'][_0x32a54b(0x224)](!0x0),this[_0x32a54b(0x1a3)]());})),this[_0x46b5db(0x23f)](this[_0x46b5db(0x1ef)][_0x46b5db(0x238)][_0x46b5db(0x1f7)](_0x29c2f1=>{const _0x54098e=_0x46b5db;_0x29c2f1[_0x54098e(0x1a1)]===this[_0x54098e(0x1ef)][_0x54098e(0x1a1)]&&(this['_pivotTable']['setDirty'](!0x0),this[_0x54098e(0x22d)]());})),this[_0x46b5db(0x1a3)]());}['refresh'](){const _0x34667a=_0x15e99e;let _0x4bb691={'requestId':++this[_0x34667a(0x249)],'reportRevision':this[_0x34667a(0x1e0)],'pivotCacheId':this[_0x34667a(0x1ef)]['pivotCacheId'],'cacheRevision':this[_0x34667a(0x1ef)][_0x34667a(0x1fd)]};this[_0x34667a(0x22b)][_0x34667a(0x1be)]({'status':_0x414476[_0x34667a(0x1b5)][_0x34667a(0x231)],..._0x4bb691});try{let _0x2d85d9=this[_0x34667a(0x1c7)][_0x34667a(0x1e6)];if(!_0x4ef0bb(_0x2d85d9))throw Error(_0x34667a(0x1dc));let _0x450c76=this[_0x34667a(0x1c8)][_0x34667a(0x22f)]()[_0x34667a(0x222)](),_0x36dbb8=_0x59f0a5(_0x450c76,_0x2d85d9[_0x34667a(0x198)]),_0xce6f31={'pivotChartId':_0x2d85d9['id'],'rowFieldCount':_0x2d85d9[_0x34667a(0x198)][_0x34667a(0x19f)]['length'],'categoryFieldCount':_0x48a0ed(_0x2d85d9['pivotModel']),'valueFieldCount':_0x2d85d9[_0x34667a(0x198)]['valueFields'][_0x34667a(0x205)],'fieldButtons':_0x245cc5(_0x2d85d9['pivotModel'],_0x450c76),..._0x4bb691,'view':_0x450c76,'dataSet':_0x36dbb8};return this[_0x34667a(0x24a)]=_0xce6f31,this[_0x34667a(0x22a)][_0x34667a(0x1be)](_0xce6f31),this[_0x34667a(0x22b)][_0x34667a(0x1be)]({'status':_0x414476[_0x34667a(0x1b5)][_0x34667a(0x1ca)],..._0x4bb691}),!0x0;}catch(_0x147c54){return this[_0x34667a(0x22b)][_0x34667a(0x1be)]({'status':this[_0x34667a(0x24a)]?_0x414476[_0x34667a(0x1b5)][_0x34667a(0x1a9)]:_0x414476[_0x34667a(0x1b5)]['UNAVAILABLE'],..._0x4bb691,'error':_0x147c54}),!0x1;}}[_0x15e99e(0x204)](){const _0x16b5d3=_0x15e99e;this[_0x16b5d3(0x1c8)][_0x16b5d3(0x204)](),this[_0x16b5d3(0x24a)]=void 0x0,this['_result$']['complete'](),this[_0x16b5d3(0x22b)][_0x16b5d3(0x1f1)](),super[_0x16b5d3(0x204)]();}[_0x15e99e(0x22d)](){const _0x483d1e=_0x15e99e;this[_0x483d1e(0x20e)]||(this[_0x483d1e(0x20e)]=!0x0,queueMicrotask(()=>{const _0x5acd6d=_0x483d1e;this['_cacheRefreshScheduled']=!0x1,this['_disposed']||this[_0x5acd6d(0x1a3)]();}));}};function _0x48a0ed(_0x5b1277){const _0x575f19=_0x15e99e;let _0x57fcc8=_0x5b1277[_0x575f19(0x254)]['length']>0x1&&_0x5b1277['valuePosition']===_0x1a6d8b['PivotTableValuePositionEnum'][_0x575f19(0x1ec)];return _0x5b1277[_0x575f19(0x19f)][_0x575f19(0x205)]+ +!!_0x57fcc8;}function _0x51fb20(_0x52fc2e,_0x3167e9){const _0xaf457a=_0x15e99e;return JSON['stringify'](_0x411142(_0x52fc2e))!==JSON[_0xaf457a(0x242)](_0x411142(_0x3167e9));}function _0x411142(_0x2a61e3){const _0x562e97=_0x15e99e;let _0x1c6c66=_0x1decd3=>{const _0x13acd2=_0x3d6e;let _0x3748ed=_0x2a61e3[_0x13acd2(0x21c)][_0x1decd3];return _0x3748ed&&{'id':_0x3748ed['id'],'dataFieldId':_0x3748ed[_0x13acd2(0x1da)],'filterInfo':_0x3748ed[_0x13acd2(0x1d3)]};};return{'rowFields':_0x2a61e3[_0x562e97(0x19f)][_0x562e97(0x24f)](_0x1c6c66),'columnFields':_0x2a61e3[_0x562e97(0x219)][_0x562e97(0x24f)](_0x1c6c66),'filterFields':_0x2a61e3[_0x562e97(0x23c)][_0x562e97(0x24f)](_0x1c6c66),'valueFields':_0x2a61e3[_0x562e97(0x254)][_0x562e97(0x24f)](_0xdd2e9e=>{const _0x14bb19=_0x562e97;let _0x1f03d5=_0x2a61e3[_0x14bb19(0x250)][_0xdd2e9e];return _0x1f03d5&&{'id':_0x1f03d5['id'],'dataFieldId':_0x1f03d5[_0x14bb19(0x1da)],'subtotal':_0x1f03d5[_0x14bb19(0x196)]};})};}_0x385c76[_0x15e99e(0x226)]=_0x248c7a,_0x385c76[_0x15e99e(0x210)]=_0x24b42c,_0x385c76[_0x15e99e(0x1cb)]=_0x1b1509,_0x385c76[_0x15e99e(0x1c5)]=_0x515de5,_0x385c76[_0x15e99e(0x213)]=_0x3af839,_0x385c76[_0x15e99e(0x1a2)]=_0x34a03e,_0x385c76[_0x15e99e(0x225)]=_0x467e22,_0x385c76['adaptPivotViewToChartDataSet']=_0x59f0a5,_0x385c76[_0x15e99e(0x247)]=_0x245cc5,_0x385c76[_0x15e99e(0x20b)]=_0x3aecb9,_0x385c76['getPivotChartTypeSupportStatus']=_0x2c9d53,_0x385c76[_0x15e99e(0x1f3)]=_0x395576,_0x385c76[_0x15e99e(0x1a5)]=_0x4ef0bb,_0x385c76[_0x15e99e(0x1d4)]=_0x234797,_0x385c76[_0x15e99e(0x221)]=_0x1508c3;}));function _0x3d6e(_0x246508,_0x536171){_0x246508=_0x246508-0x196;const _0x2a4cb5=_0x2a4c();let _0x3d6e4f=_0x2a4cb5[_0x246508];return _0x3d6e4f;}function _0x2a4c(){const _0x110bda=['Disposable','Area','_cacheHandle','slice','complete','1135hMgVxu','isLinkedPivotChartDefinition','Unsupported','call','object','subscribe','iterator','asObservable','numfmt','init','controls','revision','valueIndex','isPrefixValue','ChartTypeString','1090LEPWBT','Tools','forEach','dispose','length','cache','PivotView','ChartDataSource','726mbSUbr','Subject','getPivotChartPieSeriesLimit','string','$pivot-values','_cacheRefreshScheduled','UNAVAILABLE','PivotChartDataSource','isErrorValue','12292DCHkFX','PivotChartRuntime','isInteger','amd','sourceName','current','_snapshot','columnFields','Pivot','BarStacked','dimension','_hasSuccessfulResult','valuePosition','Chart','ColumnPercentStacked','resolvePivotChartControls','toJSON','371880JoIjNx','setDirty','PivotChartTypeSupportStatus','DEFAULT_PIVOT_CHART_CONTROLS','UniverProPivotChart','defineProperty','replaceChart','_result$','_state$','rowView','_scheduleCacheRefresh','_changed$','query','AreaStacked','LOADING','rxjs','getValue','Combination','ChartTypeBits','pivotTableRef','2862216xlLblr','changed$','PivotFilterTypeEnum','formatMap','deepClone','filterFields','result$','AreaPercentStacked','disposeWithMe','@univerjs-pro/engine-chart','constructor','stringify','@univerjs/core','replaceControls','keys','getRowCount','getPivotChartFieldButtons','state','_requestId','_latestResult','setLoading','type','number','BehaviorSubject','map','measure','Pie','splice','isAll','valueFields','A\x20linked\x20PivotChart\x20must\x20use\x20its\x20referenced\x20PivotTable\x20runtime.','subtotal','max','pivotModel','prototype','Cache','BarPercentStacked','fromJSON','default','range','rowFields','Range','pivotCacheId','PivotChartSourceKind','refresh','@univerjs-pro/engine-pivot','isOwnedPivotChartDefinition','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','boolean','Line','REFRESH_ERROR','dataSet','964LwtTdL','state$','Controls','tableFieldId','replacePivotModel','6HnlBrO','publishResult','_initialized','isBottomTotal','pivot','ChartDataSourceRuntimeStatus','function','filter','pop','33535VQPnmA','value','\x20/\x20','ColumnStacked','paths','next','Module','131260PZMzPv','publishError','_latestRequestId','info','_accepts','PivotChartModelChangeType','unsupported','_model','_pivotTable','replacePresentation','READY','PivotChartModel','chart','push','colView','isTopTotal','format','PivotTable','dataView','filterInfo','isPivotChartTypeString','min','requestId','toStringTag','category','_replace','dataFieldId','8591hkblBu','A\x20linked\x20PivotChart\x20cannot\x20be\x20refreshed\x20by\x20an\x20owned\x20runtime.','Bar','replaceCacheReference','pivotTable','_reportRevision','isLeaf','isSubtotal','symbol','ManualFilter','supported','snapshot','latestResult','previous','PivotTableValuePositionEnum','Column','Donut','Row'];_0x2a4c=function(){return _0x110bda;};return _0x2a4c();}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@univerjs-pro/pivot-chart",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Host-neutral pivot chart domain for Univer Pro.",
|
|
6
|
+
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
7
|
+
"funding": {
|
|
8
|
+
"type": "opencollective",
|
|
9
|
+
"url": "https://opencollective.com/univer"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://univer.ai",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/dream-num/univer-pro"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/dream-num/univer/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"univer",
|
|
21
|
+
"univer-pro",
|
|
22
|
+
"pivot",
|
|
23
|
+
"chart",
|
|
24
|
+
"pivot-chart"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./lib/es/index.js",
|
|
29
|
+
"require": "./lib/cjs/index.js",
|
|
30
|
+
"types": "./lib/types/index.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./*": {
|
|
33
|
+
"import": "./lib/es/*",
|
|
34
|
+
"require": "./lib/cjs/*",
|
|
35
|
+
"types": "./lib/types/index.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./lib/*": "./lib/*"
|
|
38
|
+
},
|
|
39
|
+
"main": "./lib/es/index.js",
|
|
40
|
+
"types": "./lib/types/index.d.ts",
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"directories": {
|
|
45
|
+
"lib": "lib"
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"lib"
|
|
49
|
+
],
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"rxjs": ">=7.0.0"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@univerjs-pro/engine-chart": "1.0.0",
|
|
55
|
+
"@univerjs-pro/engine-pivot": "1.0.0",
|
|
56
|
+
"@univerjs/core": "1.0.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@univerjs-infra/shared": "1.0.0",
|
|
60
|
+
"@univerjs-pro/pivot-cache": "1.0.0",
|
|
61
|
+
"rxjs": "7.8.2",
|
|
62
|
+
"typescript": "^6.0.3",
|
|
63
|
+
"vitest": "^5.0.0"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"test": "vitest run",
|
|
67
|
+
"test:watch": "vitest",
|
|
68
|
+
"coverage": "vitest run --coverage",
|
|
69
|
+
"typecheck": "tsc --noEmit",
|
|
70
|
+
"build:bundle": "univer-cli build",
|
|
71
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
72
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
73
|
+
},
|
|
74
|
+
"module": "./lib/es/index.js"
|
|
75
|
+
}
|