@univerjs-pro/edit-history-loader 0.19.0 → 0.20.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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x342b1b=_0x106c;(function(_0x3fb8c2,_0x4c3ea4){const _0x4a0d43=_0x106c,_0x4de6ee=_0x3fb8c2();while(!![]){try{const _0x26567a=-parseInt(_0x4a0d43(0x190))/0x1*(parseInt(_0x4a0d43(0x175))/0x2)+parseInt(_0x4a0d43(0xdf))/0x3+parseInt(_0x4a0d43(0x145))/0x4*(-parseInt(_0x4a0d43(0xfc))/0x5)+-parseInt(_0x4a0d43(0x1ac))/0x6+-parseInt(_0x4a0d43(0x166))/0x7*(parseInt(_0x4a0d43(0x186))/0x8)+-parseInt(_0x4a0d43(0x19a))/0x9*(-parseInt(_0x4a0d43(0xe3))/0xa)+-parseInt(_0x4a0d43(0x104))/0xb*(-parseInt(_0x4a0d43(0x146))/0xc);if(_0x26567a===_0x4c3ea4)break;else _0x4de6ee['push'](_0x4de6ee['shift']());}catch(_0x213046){_0x4de6ee['push'](_0x4de6ee['shift']());}}}(_0x2ccf,0xf028f),Object[_0x342b1b(0x15a)](exports,Symbol[_0x342b1b(0x125)],{'value':_0x342b1b(0x11e)}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),te=require(`@univerjs/sheets-filter`),ne=require(`@univerjs/sheets-filter-ui`),re=require(`@univerjs/sheets-formula`),ie=require(`@univerjs/sheets-formula-ui`),ae=require(`@univerjs/sheets-hyper-link`),O=require(`@univerjs/sheets-hyper-link-ui`),k=require(`@univerjs/sheets-numfmt`),A=require(`@univerjs/sheets-table`),j=require(`@univerjs/sheets-ui`),M=require(`@univerjs/ui`),N=require(`rxjs`),P=require(`@univerjs-pro/collaboration-client-ui`),F=require(`@univerjs/icons`),I=require(`@univerjs/protocol`);const L='edit-history-loader.config';Symbol(L);const R={};function z(_0x4e9963){'@babel/helpers - typeof';const _0xebecf8=_0x342b1b;return z=typeof Symbol==_0xebecf8(0x12e)&&typeof Symbol[_0xebecf8(0x15b)]=='symbol'?function(_0x936aba){return typeof _0x936aba;}:function(_0x49d995){const _0x21b95f=_0xebecf8;return _0x49d995&&typeof Symbol=='function'&&_0x49d995[_0x21b95f(0x113)]===Symbol&&_0x49d995!==Symbol[_0x21b95f(0x103)]?_0x21b95f(0x13a):typeof _0x49d995;},z(_0x4e9963);}function oe(_0x1c19c7,_0xc2844d){const _0x5b97a9=_0x342b1b;if(z(_0x1c19c7)!=_0x5b97a9(0x105)||!_0x1c19c7)return _0x1c19c7;var _0x2397ff=_0x1c19c7[Symbol[_0x5b97a9(0xfe)]];if(_0x2397ff!==void 0x0){var _0x130d78=_0x2397ff[_0x5b97a9(0x152)](_0x1c19c7,_0xc2844d||_0x5b97a9(0x1a3));if(z(_0x130d78)!=_0x5b97a9(0x105))return _0x130d78;throw TypeError(_0x5b97a9(0xc6));}return(_0xc2844d===_0x5b97a9(0x109)?String:Number)(_0x1c19c7);}function se(_0x4a42f1){const _0xaeb563=_0x342b1b;var _0x40568d=oe(_0x4a42f1,_0xaeb563(0x109));return z(_0x40568d)=='symbol'?_0x40568d:_0x40568d+'';}function B(_0x237a86,_0x139228,_0x4ade64){const _0x197162=_0x342b1b;return(_0x139228=se(_0x139228))in _0x237a86?Object[_0x197162(0x15a)](_0x237a86,_0x139228,{'value':_0x4ade64,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x237a86[_0x139228]=_0x4ade64,_0x237a86;}function V(_0x4ec9dc,_0x32dedc){return function(_0x4d46c1,_0x3c1b92){_0x32dedc(_0x4d46c1,_0x3c1b92,_0x4ec9dc);};}function H(_0x3e488d,_0x359e16,_0x194a05,_0x1a8223){const _0x3c6801=_0x342b1b;var _0x489029=arguments['length'],_0x26b439=_0x489029<0x3?_0x359e16:_0x1a8223===null?_0x1a8223=Object[_0x3c6801(0x16c)](_0x359e16,_0x194a05):_0x1a8223,_0x291687;if(typeof Reflect=='object'&&typeof Reflect[_0x3c6801(0x1ae)]=='function')_0x26b439=Reflect[_0x3c6801(0x1ae)](_0x3e488d,_0x359e16,_0x194a05,_0x1a8223);else{for(var _0x2106a3=_0x3e488d[_0x3c6801(0x18d)]-0x1;_0x2106a3>=0x0;_0x2106a3--)(_0x291687=_0x3e488d[_0x2106a3])&&(_0x26b439=(_0x489029<0x3?_0x291687(_0x26b439):_0x489029>0x3?_0x291687(_0x359e16,_0x194a05,_0x26b439):_0x291687(_0x359e16,_0x194a05))||_0x26b439);}return _0x489029>0x3&&_0x26b439&&Object['defineProperty'](_0x359e16,_0x194a05,_0x26b439),_0x26b439;}const U=_0x342b1b(0x198),W='univer-history-container';let G=class extends e[_0x342b1b(0xe6)]{constructor(_0x2d9b7d,_0x26b350,_0x131aef,_0x1a085a,_0xd81df6,_0x56f641,_0x1422af,_0x55bd75,_0x2e25cb,_0x4ff11b){const _0x133c61=_0x342b1b;super(),this[_0x133c61(0x16f)]=_0x2d9b7d,this[_0x133c61(0xb9)]=_0x26b350,this['_configService']=_0x131aef,this[_0x133c61(0x1bd)]=_0x1a085a,this[_0x133c61(0xb3)]=_0xd81df6,this[_0x133c61(0x188)]=_0x56f641,this[_0x133c61(0xab)]=_0x1422af,this[_0x133c61(0x153)]=_0x55bd75,this[_0x133c61(0xc9)]=_0x2e25cb,this['_themeService']=_0x4ff11b,B(this,_0x133c61(0x181),new N[(_0x133c61(0x167))](null)),B(this,_0x133c61(0x18b),this[_0x133c61(0x181)][_0x133c61(0xb1)]()),B(this,_0x133c61(0x199),new e[(_0x133c61(0x11c))]()),B(this,'_pluginMap',new Map()),B(this,_0x133c61(0x155),null),this['_init']();}get['historyUniver'](){const _0x7def59=_0x342b1b;return this[_0x7def59(0x181)][_0x7def59(0xb8)];}['_init'](){const _0x374392=_0x342b1b;this[_0x374392(0xdb)](),this[_0x374392(0x12c)]();}[_0x342b1b(0xdb)](){const _0x212256=_0x342b1b;var _0x1e5252;let _0x144e49=(_0x1e5252=this[_0x212256(0x13c)][_0x212256(0xf5)](_0x212256(0x198)))==null?'univer-container':_0x1e5252,_0xe55506=document['getElementById'](_0x144e49);if(!_0xe55506)return;let _0x14a2d1=document[_0x212256(0x16d)]('div');_0x14a2d1['id']=W,_0x14a2d1[_0x212256(0xb2)][_0x212256(0xd0)]=_0x212256(0xce),_0x14a2d1[_0x212256(0xa6)][_0x212256(0x108)]='absolute',_0x14a2d1[_0x212256(0xa6)]['top']='0',_0x14a2d1[_0x212256(0xa6)][_0x212256(0x1b8)]='0',_0x14a2d1['style'][_0x212256(0x139)]=_0x212256(0xfd),_0x14a2d1['style'][_0x212256(0xae)]=_0x212256(0xfd),_0x14a2d1['style']['zIndex']='49',_0x14a2d1[_0x212256(0xa6)]['display']='none',_0xe55506[_0x212256(0x168)](_0x14a2d1);}[_0x342b1b(0x12c)](){const _0x137d07=_0x342b1b;[[b['UniverRenderEnginePlugin']],[M[_0x137d07(0xde)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x137d07(0x122)],null]]}],[x[_0x137d07(0xf7)]],[_[_0x137d07(0x17e)],{'override':[[_[_0x137d07(0x136)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g['UniverDocsUIPlugin']],[k[_0x137d07(0xaf)]],[t[_0x137d07(0xd8)],{'notExecuteFormula':!0x0}],[j[_0x137d07(0xcc)]],[re[_0x137d07(0x140)]],[ie['UniverSheetsFormulaUIPlugin']],[n[_0x137d07(0xe9)]],[te[_0x137d07(0x170)]],[ne[_0x137d07(0x123)]],[C[_0x137d07(0x12a)]],[ee[_0x137d07(0xe5)]],[ae[_0x137d07(0x17f)]],[O[_0x137d07(0x193)]],[p[_0x137d07(0xe7)]],[w[_0x137d07(0xbc)]],[T[_0x137d07(0x158)]],[y[_0x137d07(0x121)],{'notExecuteFormula':!0x0}],[v[_0x137d07(0x1a1)]],[E[_0x137d07(0x10d)]],[D[_0x137d07(0x14c)]],[d[_0x137d07(0x106)]],[f[_0x137d07(0xd1)]],[o['UniverSheetsChartPlugin']],[s[_0x137d07(0x194)]],[l[_0x137d07(0x19e)]],[u[_0x137d07(0x18f)]],[c[_0x137d07(0x11b)],{'notExecuteFormula':!0x0}],[A[_0x137d07(0xd6)]]]['forEach'](([_0x410fca,_0x5ad0bc])=>this['registerPlugin'](_0x410fca,_0x5ad0bc));}[_0x342b1b(0xcb)](){const _0x51dd62=_0x342b1b;super['dispose'](),this[_0x51dd62(0x14e)](),this['_pluginMap']['clear']();}[_0x342b1b(0x185)](_0x599a52,_0x13ebe2,_0x3bd80d){const _0x495e10=_0x342b1b;if(this[_0x495e10(0x114)][_0x495e10(0x157)](_0x599a52[_0x495e10(0xa3)])&&!_0x3bd80d)throw Error(_0x495e10(0x154)+_0x599a52[_0x495e10(0xa3)]+_0x495e10(0x10e));this[_0x495e10(0x114)]['set'](_0x599a52[_0x495e10(0xa3)],[_0x599a52,_0x13ebe2]);}[_0x342b1b(0xbe)](){const _0x2696f6=_0x342b1b;return Array['from'](this[_0x2696f6(0x114)][_0x2696f6(0x10a)]());}[_0x342b1b(0x182)](_0x29114f,_0x3a6145){const _0x29634b=_0x342b1b;let _0x5b77d6=document[_0x29634b(0x1b0)](W);_0x5b77d6&&(_0x5b77d6[_0x29634b(0xa6)][_0x29634b(0xc7)]=_0x29634b(0x187),this[_0x29634b(0x191)](_0x29114f,W,_0x3a6145));}['unMountHistoryContent'](){const _0x3207ea=_0x342b1b;var _0x4fbc6d;this[_0x3207ea(0x199)][_0x3207ea(0xcb)](),(_0x4fbc6d=this['historyUniver'])==null||_0x4fbc6d[_0x3207ea(0xcb)](),this['_historyUniver$'][_0x3207ea(0x1a6)](null);let _0x5306aa=document[_0x3207ea(0x1b0)](W);_0x5306aa&&(_0x5306aa[_0x3207ea(0xa6)]['display']=_0x3207ea(0x156),this[_0x3207ea(0x155)]&&(this[_0x3207ea(0x155)][_0x3207ea(0x18a)](),this[_0x3207ea(0x155)]=null));}[_0x342b1b(0x191)](_0x158b8f,_0x4a7e3c,_0x3085bb){const _0x872616=_0x342b1b;var _0x207747,_0x40f2de,_0x13de9f,_0x5f444e,_0x1271f0;if(this[_0x872616(0xf9)])return;let _0x57f62e=new e[(_0x872616(0xc0))]({'locales':{[this[_0x872616(0x16f)][_0x872616(0xf6)]()]:this['_localeService'][_0x872616(0x115)]()},'override':[[e[_0x872616(0xa5)],{'useClass':r['AuthzIoHttpService']}]]}),_0x56515f=_0x57f62e[_0x872616(0xe0)]();this['disposeWithMe'](this[_0x872616(0x128)][_0x872616(0x196)]['subscribe'](_0x4b5e15=>{const _0x4df953=_0x872616;_0x56515f['get'](e['ThemeService'])[_0x4df953(0x124)](_0x4b5e15);})),this[_0x872616(0xca)](this[_0x872616(0x128)]['currentTheme$'][_0x872616(0x142)](_0x4b5c20=>{const _0x24a568=_0x872616;_0x56515f[_0x24a568(0xbd)](e[_0x24a568(0x165)])['setTheme'](_0x4b5c20);})),_0x56515f['get'](e[_0x872616(0x135)])[_0x872616(0x10b)](this[_0x872616(0x16f)]['getCurrentLocale']()),_0x56515f[_0x872616(0xbd)](e[_0x872616(0x14b)])[_0x872616(0xa7)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x872616(0x13c)][_0x872616(0xf5)](r[_0x872616(0x13f)]));let _0x153dc1=this[_0x872616(0x13c)][_0x872616(0xf5)](a[_0x872616(0x160)]);_0x153dc1&&_0x57f62e[_0x872616(0x185)](a[_0x872616(0xeb)],{'license':_0x153dc1['ls']});let _0x2e8666=(_0x207747=this[_0x872616(0x13c)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x207747[_0x872616(0x151)],_0x9f098a=!!_0x2e8666;_0x9f098a&&(this[_0x872616(0x155)]=_0x2e8666 instanceof Worker?_0x2e8666:null,_0x57f62e[_0x872616(0x185)](S[_0x872616(0x15c)],{'workerURL':_0x2e8666})),this[_0x872616(0x114)][_0x872616(0xfb)](([_0x530cec,_0x37dbe6])=>{const _0xa0bdb0=_0x872616;_0x57f62e[_0xa0bdb0(0x185)](_0x530cec,_0x37dbe6);}),_0x57f62e[_0x872616(0x185)](i['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x40f2de=this[_0x872616(0x13c)][_0x872616(0xf5)](_0x872616(0x16a)))==null?void 0x0:_0x40f2de['historyListServerUrl'],'historyPanelComponentKey':(_0x13de9f=this[_0x872616(0x13c)]['getConfig'](_0x872616(0x16a)))==null?void 0x0:_0x13de9f[_0x872616(0xbb)],'historyPanelHidden':(_0x5f444e=this[_0x872616(0x13c)][_0x872616(0xf5)](_0x872616(0x16a)))==null?void 0x0:_0x5f444e[_0x872616(0xe4)],'historyAIassistantEnabled':(_0x1271f0=this['_configService']['getConfig'](_0x872616(0x16a)))==null?void 0x0:_0x1271f0[_0x872616(0xc2)]}),_0x56515f[_0x872616(0xef)](_0x4072e1=>{const _0x365de2=_0x872616;this[_0x365de2(0x12f)](_0x4072e1,_0x158b8f);}),this[_0x872616(0x181)]['next'](_0x57f62e);let _0x22352c=_0x56515f[_0x872616(0xbd)](i[_0x872616(0x1bf)]),_0x23b262=this['_checkCanRevert'](_0x158b8f),_0x480039=()=>{const _0x50ca1f=_0x872616;_0x3085bb?_0x22352c[_0x50ca1f(0x19b)](_0x158b8f,_0x4a7e3c,_0x23b262,_0x3085bb):_0x22352c['triggerLoadVersions'](_0x158b8f,_0x4a7e3c,_0x23b262);};if(this[_0x872616(0xb3)][_0x872616(0x120)]({'content':this[_0x872616(0x16f)]['t']('editHistory.info.initializing'),'type':m['MessageType']['Loading']}),_0x9f098a)try{_0x56515f[_0x872616(0xbd)](S[_0x872616(0xf0)])['whenReady']()['then'](()=>{_0x480039();});}catch{_0x480039();}else _0x480039();}[_0x342b1b(0x12f)](_0x487376,_0x1f38df){const _0x508661=_0x342b1b;let _0x1cd051=_0x487376['get'](i[_0x508661(0x1bf)]);this[_0x508661(0x199)][_0x508661(0x131)](_0x1cd051[_0x508661(0xd7)]['subscribe'](_0x4cbfaf=>{const _0x2c1f7b=_0x508661;switch(_0x4cbfaf){case i[_0x2c1f7b(0x164)][_0x2c1f7b(0x14d)]:this['_dialogService']['closeAll'](),this[_0x2c1f7b(0xc9)][_0x2c1f7b(0xa2)]();break;case i['HistoryModeStatus'][_0x2c1f7b(0x16b)]:this[_0x2c1f7b(0x1bd)][_0x2c1f7b(0x19f)](q['id']),this[_0x2c1f7b(0x14e)]();break;case i[_0x2c1f7b(0x164)][_0x2c1f7b(0x1a0)]:this[_0x2c1f7b(0x14e)](),this[_0x2c1f7b(0xb3)][_0x2c1f7b(0x120)]({'content':this['_localeService']['t'](_0x2c1f7b(0x184)),'type':m['MessageType'][_0x2c1f7b(0x1a0)],'duration':0xbb8});break;default:break;}})),this[_0x508661(0x199)][_0x508661(0x131)](_0x1cd051[_0x508661(0x189)][_0x508661(0x142)](async _0x456c0f=>{const _0x4ad59d=_0x508661;_0x456c0f&&this[_0x4ad59d(0x1bd)][_0x4ad59d(0x19f)](n[_0x4ad59d(0xcd)]['id'],{'unitId':_0x1f38df,'revision':_0x456c0f});}));}[_0x342b1b(0xd5)](_0x51cda0){const _0x149f5c=_0x342b1b;let _0x3abd01=this[_0x149f5c(0xb9)][_0x149f5c(0x197)](_0x51cda0)[_0x149f5c(0x1b7)]()[_0x149f5c(0x17d)](_0x233ea0=>_0x233ea0[_0x149f5c(0x1a4)]()),_0x470369=new t['WorkbookEditablePermission'](_0x51cda0)['id'],_0x3a64d4=_0x3abd01[_0x149f5c(0x17d)](_0x535c23=>new t[(_0x149f5c(0x11f))](_0x51cda0,_0x535c23)['id']),_0x5a9cde=_0x3abd01[_0x149f5c(0x17d)](_0x7a04ee=>this['_selectionProtectionRuleModel'][_0x149f5c(0x11d)](_0x51cda0,_0x7a04ee)[_0x149f5c(0x17d)](_0x3a1f8b=>new t['RangeProtectionPermissionEditPoint'](_0x51cda0,_0x7a04ee,_0x3a1f8b[_0x149f5c(0x119)])['id']))[_0x149f5c(0xf8)](),_0x247c0b=new t['WorkbookRecoverHistoryPermission'](_0x51cda0)['id'];return this[_0x149f5c(0x188)]['composePermission']([_0x470369,..._0x3a64d4,..._0x5a9cde,_0x247c0b])[_0x149f5c(0x127)](_0x381cc0=>!!_0x381cc0[_0x149f5c(0xb8)]);}};function _0x2ccf(){const _0x10c20b=['function','_initListener','exhaustSavingTask','add','state$','AuthzIoHttpService','OPERATION','LocaleService','IImageIoService','_init','UNIVER_CONTAINER_ID_KEY','width','symbol','dispose$','_configService','_localCacheService','Loading','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverSheetsFormulaPlugin','merge','subscribe','register','fromCollab','1524044FTdKBJ','420ZTYmER','_dataLoaderService','univer-container','getUnitId','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','IConfigService','UniverSheetsDrawingUIPlugin','Entered','unMountHistoryContent','WorkbookViewHistoryPermission','version','workerURL','call','_dialogService','[HistoryLoaderService]:\x20Plugin\x20','_internalWebWorker','none','has','UniverSheetsDataValidationUIPlugin','mutations','defineProperty','iterator','UniverRPCMainThreadPlugin','RangeProtectionRuleModel','IMenuManagerService','urlChange$','LS_CONFIG_KEY','MessageType','univer.operation.toggle-edit-history','pipe','HistoryModeStatus','ThemeService','7dlJbmW','BehaviorSubject','appendChild','_updateURLWithCurrentState','edit-history-loader.config','Exited','getOwnPropertyDescriptor','createElement','disposeUnit','_localeService','UniverSheetsFilterPlugin','ISidebarService','UNIVER_UNKNOWN','_revertErrorTimer','CollaborationEvent','4Ealfkf','_urlService','onCommandExecuted','session','getSheetBySheetId','RxDisposable','UniverSheetsDataValidationMobileUIPlugin','ICommandService','map','UniverDrawingPlugin','UniverSheetsHyperLinkPlugin','clear','_historyUniver$','mountHistoryContent','whenReady','editHistory.panel.listFetchError','registerPlugin','8224184pfLlFh','block','_permissionService','revertRevision$','terminate','historyUniver$','editHistory.info.initializing','length','UniverType','UniverSheetsShapeUIPlugin','916606lOYzDw','_initUniver','some','UniverSheetsHyperLinkUIPlugin','UniverSheetsChartUIPlugin','_componentManager','darkMode$','getUnit','UNIVER_CONTAINER_ID','_disposableCollection','6404193qcuhyc','triggerCustomVersions','_updateSubUnitFromURLParams','DataLoaderService','UniverSheetsShapePlugin','executeCommand','Error','UniverDrawingUIPlugin','setTheme','default','getSheetId','univer-history-container-mobile','next','_handleRevertAcknowledgement','type','UniverEditHistoryViewerMobilePlugin','_collaborationController','historyListServerUrl','8168154mCssPP','IURLService','decorate','registerCommand','getElementById','CommandType','data','top','IPermissionService','onSteady','[MobileHistoryLoaderService]:\x20Plugin\x20','getSheets','left','setParam','takeUntil','_historyManagerService','status','_commandService','loadUnit','HistoryManagerService','set','close','pluginName','univerContainerId','IAuthzIoService','style','setConfig','RibbonStartGroup','Injector','UniverInstanceType','_selectionProtectionRuleModel','Workbook','editHistory.panel.revertFailed','height','UniverSheetsNumfmtPlugin','Plugin','asObservable','dataset','_messageService','SYNCED','CHANGESET_ACK','ILocalCacheService','_menuManagerService','value','_univerInstanceService','getSheetCommandTarget','historyPanelComponentKey','UniverSheetsDataValidationPlugin','get','getAllPlugins','onStarting','Univer','BUTTON','historyAIassistantEnabled','IUniverInstanceService','getCurrentUnitOfType','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','display','UniverSheetsMobileUIPlugin','_sidebarService','disposeWithMe','dispose','UniverSheetsUIPlugin','RevertRevisionMutation','history-container','UNIVER_SHEET','uComp','UniverSheetSparklineUIPlugin','combineLatest','activeSheet$','reload','_checkCanRevert','UniverSheetsTablePlugin','status$','UniverSheetsPlugin','RangeProtectionPermissionEditPoint','getActiveSheet','_initContainer','SetWorksheetActivateCommand','subunit','UniverUIPlugin','2003463CbVnxa','__getInjector','mergeMenu','getParam','20gGuxlW','historyPanelHidden','UniverSheetsConditionalFormattingUIPlugin','Disposable','UniverDataValidationPlugin','menu','UniverCollaborationPlugin','editHistory.panel.title','UniverLicensePlugin','UniverRenderEnginePlugin','getCollabEntity','getUnhiddenWorksheets','invoke','IRemoteInstanceService','packageName','ComponentManager','univer.operation.exit-edit-history','UniverDocsPlugin','getConfig','getCurrentLocale','UniverNetworkPlugin','flat','historyUniver','IMessageService','forEach','5YgQpxj','100%','toPrimitive','location','unsubscribe','params','MenuItemType','prototype','1098845iMXDpJ','object','UniverSheetSparklinePlugin','HistoryLoaderService','position','string','values','setLocale','eventID','UniverSheetsDrawingPlugin','\x20has\x20been\x20registered.','HistoryIcon','Inject','event$','closeAll','constructor','_pluginMap','getLocales','_setupSubUnitSync','_injector','UniverSheetsFormulaUIPlugin','permissionId','UNIVER_HISTORY_CONTAINER_ID','UniverSheetsPivotTablePlugin','DisposableCollection','getSubunitRuleList','Module','WorksheetEditPermission','show','UniverFormulaEnginePlugin','IDialogService','UniverSheetsFilterUIPlugin','setDarkMode','toStringTag','WorkbookEditablePermission','every','_themeService','_config','UniverSheetsConditionalFormattingPlugin','OTHERS','_initPlugins','editHistory.panel.reverting'];_0x2ccf=function(){return _0x10c20b;};return _0x2ccf();}G=H([V(0x0,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x135)])),V(0x1,e[_0x342b1b(0xc3)]),V(0x2,e[_0x342b1b(0x14b)]),V(0x3,e[_0x342b1b(0x17c)]),V(0x4,M[_0x342b1b(0xfa)]),V(0x5,e['IPermissionService']),V(0x6,(0x0,e[_0x342b1b(0x110)])(t[_0x342b1b(0x15d)])),V(0x7,(0x0,e[_0x342b1b(0x110)])(M['IDialogService'])),V(0x8,(0x0,e[_0x342b1b(0x110)])(M[_0x342b1b(0x171)])),V(0x9,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x165)]))],G);const K={'id':_0x342b1b(0x162),'type':e[_0x342b1b(0x1b1)][_0x342b1b(0x134)],'handler':_0x29b4d2=>{const _0x44e387=_0x342b1b;let _0x2135a2=_0x29b4d2[_0x44e387(0xbd)](G),{unitId:_0x5b53f4}=(0x0,t[_0x44e387(0xba)])(_0x29b4d2[_0x44e387(0xbd)](e['IUniverInstanceService']))||{};return _0x5b53f4?(_0x2135a2[_0x44e387(0x182)](_0x5b53f4),!0x0):!0x1;}},q={'id':_0x342b1b(0xf3),'type':e[_0x342b1b(0x1b1)]['OPERATION'],'handler':()=>!0x0};var ce='@univerjs-pro/edit-history-loader',le='0.19.0';function ue(_0x40637f){const _0x42047d=_0x342b1b;return{'id':K['id'],'type':M[_0x42047d(0x102)][_0x42047d(0xc1)],'icon':'HistoryIcon','tooltip':_0x42047d(0xea),'hidden$':(0x0,M['getMenuHiddenObservable'])(_0x40637f,e[_0x42047d(0xaa)][_0x42047d(0xcf)]),'disabled$':(0x0,j['getCurrentRangeDisable$'])(_0x40637f,{'workbookTypes':[t[_0x42047d(0x126)],t[_0x42047d(0x14f)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[M[_0x342b1b(0xa8)][_0x342b1b(0x12b)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e['RxDisposable']{constructor(_0x3c2ae2,_0x10df43,_0x40429c,_0x303993,_0x2f1e5e,_0x5332eb,_0x55f7c8,_0x283e68,_0x29eee6,_0x37b3c8,_0x4422f9){const _0x5de218=_0x342b1b;super(),this['_commandService']=_0x3c2ae2,this[_0x5de218(0xb7)]=_0x10df43,this[_0x5de218(0x195)]=_0x40429c,this[_0x5de218(0x1bb)]=_0x303993,this[_0x5de218(0x16f)]=_0x2f1e5e,this[_0x5de218(0xb3)]=_0x5332eb,this[_0x5de218(0x1aa)]=_0x55f7c8,this[_0x5de218(0x13d)]=_0x283e68,this[_0x5de218(0x147)]=_0x29eee6,this[_0x5de218(0xb9)]=_0x37b3c8,this[_0x5de218(0x176)]=_0x4422f9,B(this,'_revertErrorTimer',null),this[_0x5de218(0x137)]();}[_0x342b1b(0x137)](){const _0x5a58e9=_0x342b1b;[K,q][_0x5a58e9(0xfb)](_0x546c5a=>this[_0x5a58e9(0xca)]((0x0,e['toDisposable'])(this['_commandService'][_0x5a58e9(0x1af)](_0x546c5a)))),this[_0x5a58e9(0xca)](this[_0x5a58e9(0x195)][_0x5a58e9(0x143)](_0x5a58e9(0x10f),F[_0x5a58e9(0x10f)])),this[_0x5a58e9(0xb7)]['mergeMenu'](de),this[_0x5a58e9(0xca)](this[_0x5a58e9(0x1bd)]['onCommandExecuted'](async(_0xde6c6e,_0x20d530)=>{const _0x9ca271=_0x5a58e9;if(_0xde6c6e['id']===n[_0x9ca271(0xcd)]['id']){let {unitId:_0x11357c}=_0xde6c6e[_0x9ca271(0x101)];this['_messageService'][_0x9ca271(0x120)]({'content':this[_0x9ca271(0x16f)]['t'](_0x9ca271(0x12d)),'type':m[_0x9ca271(0x161)][_0x9ca271(0x13e)],'duration':0x1388});let _0x387d7c=this['_collaborationController'][_0x9ca271(0xed)](_0x11357c);_0x20d530!=null&&_0x20d530[_0x9ca271(0x144)]?this[_0x9ca271(0x1a7)](_0x387d7c,async()=>(setTimeout(()=>window['location'][_0x9ca271(0xd4)]()),!0x0),!0x0):this[_0x9ca271(0x1a7)](_0x387d7c,async()=>{const _0x5ea52a=_0x9ca271;let _0x34e95f=this['_univerInstanceService'][_0x5ea52a(0xc4)](I[_0x5ea52a(0x18e)]['UNIVER_SHEET']),_0x5d08ea=_0x34e95f==null?void 0x0:_0x34e95f[_0x5ea52a(0xda)]();if(!_0x5d08ea)return!0x1;this[_0x5ea52a(0xb9)][_0x5ea52a(0x16e)](_0x11357c);let _0x5549a3=await this[_0x5ea52a(0x147)][_0x5ea52a(0x1be)](_0x11357c,I[_0x5ea52a(0x18e)][_0x5ea52a(0xcf)]);return _0x5549a3&&_0x5549a3 instanceof e[_0x5ea52a(0xac)]?(await this[_0x5ea52a(0x116)](_0x5549a3,_0x5d08ea[_0x5ea52a(0x1a4)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x2c68d0,_0x479ef3,_0x49f53c=!0x1){const _0x33da09=_0x342b1b;let _0x53678d=(0x0,N[_0x33da09(0xd2)])([_0x2c68d0['session'][_0x33da09(0x111)],_0x2c68d0[_0x33da09(0x132)]])[_0x33da09(0x142)](async([_0x1673c3,_0x105442])=>{const _0x3e4e8a=_0x33da09;if(_0x1673c3[_0x3e4e8a(0x10c)]===n[_0x3e4e8a(0x174)][_0x3e4e8a(0xb5)]&&(_0x105442==null?void 0x0:_0x105442[_0x3e4e8a(0x1bc)])===r['CollaborationStatus']['SYNCED']&&_0x1673c3[_0x3e4e8a(0x1b2)][_0x3e4e8a(0x159)]['some'](_0x254e33=>_0x254e33['id']===n[_0x3e4e8a(0xcd)]['id'])&&await _0x479ef3()){var _0x3660bb;this[_0x3e4e8a(0x1bb)][_0x3e4e8a(0x14e)](),_0x53678d[_0x3e4e8a(0x100)](),this[_0x3e4e8a(0x173)]&&clearTimeout(this[_0x3e4e8a(0x173)]),await((_0x3660bb=this[_0x3e4e8a(0x13d)])==null?void 0x0:_0x3660bb[_0x3e4e8a(0x130)]()),this[_0x3e4e8a(0xb3)]['removeAll']();}});_0x49f53c&&(this['_revertErrorTimer']=setTimeout(()=>{const _0xf43d6a=_0x33da09;_0x53678d['unsubscribe'](),this[_0xf43d6a(0xb3)][_0xf43d6a(0x120)]({'content':this[_0xf43d6a(0x16f)]['t']('editHistory.panel.revertFailed'),'type':m[_0xf43d6a(0x161)]['Error'],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x83ae8c,_0x1c73c1){const _0x1f6cc8=_0x342b1b;await this[_0x1f6cc8(0x19c)](_0x83ae8c,_0x1c73c1),_0x83ae8c[_0x1f6cc8(0xd3)]['pipe']((0x0,N['takeUntil'])(this[_0x1f6cc8(0x13b)]))[_0x1f6cc8(0x142)](_0xa181d=>{_0xa181d&&this['_updateURLWithCurrentState'](_0xa181d);}),this[_0x1f6cc8(0x176)][_0x1f6cc8(0x15f)][_0x1f6cc8(0x163)]((0x0,N[_0x1f6cc8(0x1ba)])(this['dispose$']))[_0x1f6cc8(0x142)](()=>this[_0x1f6cc8(0x19c)](_0x83ae8c,_0x1c73c1));}[_0x342b1b(0x169)](_0xc75589,_0x1047be=!0x1){const _0x503851=_0x342b1b;let _0x146bf9=this[_0x503851(0x176)][_0x503851(0xe2)]('subunit');_0xc75589[_0x503851(0x1a4)]()!==_0x146bf9&&this['_urlService'][_0x503851(0x1b9)](_0x503851(0xdd),_0xc75589[_0x503851(0x1a4)](),_0x1047be);}async[_0x342b1b(0x19c)](_0xa07eee,_0x926855){const _0x503ec3=_0x342b1b;var _0x2d91f9;if(!_0x926855||!_0xa07eee[_0x503ec3(0x179)](_0x926855)){let _0x52e480=_0xa07eee[_0x503ec3(0xee)]()[0x0],_0x37c411=_0xa07eee[_0x503ec3(0x179)](_0x52e480);if(!_0x37c411)return;this['_updateURLWithCurrentState'](_0x37c411,!0x0),await this[_0x503ec3(0x1bd)][_0x503ec3(0x19f)](t[_0x503ec3(0xdc)]['id'],{'unitId':_0xa07eee[_0x503ec3(0x149)](),'subUnitId':_0x52e480});return;}((_0x2d91f9=_0xa07eee[_0x503ec3(0xda)]())==null?void 0x0:_0x2d91f9[_0x503ec3(0x1a4)]())!==_0x926855&&await this[_0x503ec3(0x1bd)]['executeCommand'](t['SetWorksheetActivateCommand']['id'],{'unitId':_0xa07eee[_0x503ec3(0x149)](),'subUnitId':_0x926855});}};J=H([V(0x0,e[_0x342b1b(0x17c)]),V(0x1,M[_0x342b1b(0x15e)]),V(0x2,(0x0,e[_0x342b1b(0x110)])(M['ComponentManager'])),V(0x3,(0x0,e[_0x342b1b(0x110)])(G)),V(0x4,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x135)])),V(0x5,M[_0x342b1b(0xfa)]),V(0x6,(0x0,e[_0x342b1b(0x110)])(r['CollaborationController'])),V(0x7,r[_0x342b1b(0xb6)]),V(0x8,(0x0,e['Inject'])(r[_0x342b1b(0x19d)])),V(0x9,e[_0x342b1b(0xc3)]),V(0xa,P[_0x342b1b(0x1ad)])],J);const Y=_0x342b1b(0x1a5);let X=class extends e[_0x342b1b(0xe6)]{constructor(_0xdfe59e,_0x178966,_0x17f0bb,_0x5bb621,_0x19aa38,_0x11fca5,_0x2e1717,_0x46edd6,_0x352259,_0x4d3338){const _0x117ab9=_0x342b1b;super(),this['_localeService']=_0xdfe59e,this[_0x117ab9(0xb9)]=_0x178966,this['_configService']=_0x17f0bb,this[_0x117ab9(0x1bd)]=_0x5bb621,this['_messageService']=_0x19aa38,this[_0x117ab9(0x188)]=_0x11fca5,this[_0x117ab9(0xab)]=_0x2e1717,this[_0x117ab9(0x153)]=_0x46edd6,this[_0x117ab9(0xc9)]=_0x352259,this[_0x117ab9(0x128)]=_0x4d3338,B(this,'_historyUniver$',new N[(_0x117ab9(0x167))](null)),B(this,_0x117ab9(0x18b),this[_0x117ab9(0x181)][_0x117ab9(0xb1)]()),B(this,_0x117ab9(0x199),new e[(_0x117ab9(0x11c))]()),B(this,_0x117ab9(0x114),new Map()),B(this,_0x117ab9(0x155),null),this[_0x117ab9(0x137)]();}get['historyUniver'](){const _0x402283=_0x342b1b;return this[_0x402283(0x181)][_0x402283(0xb8)];}[_0x342b1b(0x137)](){const _0x1af818=_0x342b1b;this[_0x1af818(0xdb)](),this[_0x1af818(0x12c)]();}['_initContainer'](){const _0x31523e=_0x342b1b;var _0x2e2d9e;let _0x5c0a4e=(_0x2e2d9e=this['_configService']['getConfig'](_0x31523e(0x198)))==null?_0x31523e(0x148):_0x2e2d9e,_0x1d8c9d=document[_0x31523e(0x1b0)](_0x5c0a4e);if(!_0x1d8c9d)return;let _0x7d6829=document[_0x31523e(0x16d)]('div');_0x7d6829['id']=Y,_0x7d6829[_0x31523e(0xb2)]['uComp']=_0x31523e(0xce),_0x7d6829[_0x31523e(0xa6)]['position']='absolute',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0x1b3)]='0',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0x1b8)]='0',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0x139)]='100%',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0xae)]=_0x31523e(0xfd),_0x7d6829['style']['zIndex']='49',_0x7d6829['style'][_0x31523e(0xc7)]=_0x31523e(0x156),_0x1d8c9d[_0x31523e(0x168)](_0x7d6829);}[_0x342b1b(0x12c)](){const _0x492fb5=_0x342b1b;[[b[_0x492fb5(0xec)]],[M['UniverMobileUIPlugin'],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x492fb5(0x122)],null]]}],[x[_0x492fb5(0xf7)]],[_[_0x492fb5(0x17e)],{'override':[[_[_0x492fb5(0x136)],null]]}],[h[_0x492fb5(0xf4)],{'hasScroll':!0x1}],[g['UniverDocsUIPlugin']],[k[_0x492fb5(0xaf)]],[t[_0x492fb5(0xd8)],{'notExecuteFormula':!0x0}],[j[_0x492fb5(0xc8)]],[re['UniverSheetsFormulaPlugin']],[ie[_0x492fb5(0x118)]],[n[_0x492fb5(0xe9)]],[te['UniverSheetsFilterPlugin']],[C['UniverSheetsConditionalFormattingPlugin']],[ae[_0x492fb5(0x17f)]],[O[_0x492fb5(0x193)]],[p[_0x492fb5(0xe7)]],[w[_0x492fb5(0xbc)]],[T[_0x492fb5(0x17b)]],[y[_0x492fb5(0x121)],{'notExecuteFormula':!0x0}],[v[_0x492fb5(0x1a1)]],[E[_0x492fb5(0x10d)]],[D[_0x492fb5(0x14c)]],[d[_0x492fb5(0x106)]],[f[_0x492fb5(0xd1)]],[o['UniverSheetsChartPlugin']],[s[_0x492fb5(0x194)]],[l['UniverSheetsShapePlugin']],[u[_0x492fb5(0x18f)]],[c['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[A[_0x492fb5(0xd6)]]][_0x492fb5(0xfb)](([_0xad6316,_0x3f6367])=>this[_0x492fb5(0x185)](_0xad6316,_0x3f6367));}[_0x342b1b(0xcb)](){const _0x28db73=_0x342b1b;super[_0x28db73(0xcb)](),this[_0x28db73(0x14e)](),this[_0x28db73(0x114)][_0x28db73(0x180)]();}[_0x342b1b(0x185)](_0x23a120,_0x2b8064,_0x122925){const _0x75dac7=_0x342b1b;if(this[_0x75dac7(0x114)]['has'](_0x23a120[_0x75dac7(0xa3)])&&!_0x122925)throw Error(_0x75dac7(0x1b6)+_0x23a120['pluginName']+_0x75dac7(0x10e));this[_0x75dac7(0x114)][_0x75dac7(0xa1)](_0x23a120[_0x75dac7(0xa3)],[_0x23a120,_0x2b8064]);}[_0x342b1b(0xbe)](){const _0x12bb76=_0x342b1b;return Array['from'](this[_0x12bb76(0x114)][_0x12bb76(0x10a)]());}[_0x342b1b(0x182)](_0x24d644,_0x165b23){const _0x37fcf7=_0x342b1b;let _0x44d47a=document['getElementById'](Y);_0x44d47a&&(_0x44d47a[_0x37fcf7(0xa6)][_0x37fcf7(0xc7)]=_0x37fcf7(0x187),this['_initUniver'](_0x24d644,Y,_0x165b23));}[_0x342b1b(0x14e)](){const _0x445f27=_0x342b1b;var _0x35ecbf;this[_0x445f27(0x199)][_0x445f27(0xcb)](),(_0x35ecbf=this['historyUniver'])==null||_0x35ecbf[_0x445f27(0xcb)](),this['_historyUniver$']['next'](null);let _0x2d2fdf=document[_0x445f27(0x1b0)](Y);_0x2d2fdf&&(_0x2d2fdf[_0x445f27(0xa6)][_0x445f27(0xc7)]=_0x445f27(0x156),this[_0x445f27(0x155)]&&(this['_internalWebWorker'][_0x445f27(0x18a)](),this[_0x445f27(0x155)]=null));}[_0x342b1b(0x191)](_0x54eca5,_0x5406c8,_0x1d1fed){const _0x31086b=_0x342b1b;var _0x4f7e1e,_0x41b494,_0x412491,_0x3e17d0;if(this['historyUniver'])return;let _0x4c893d=new e[(_0x31086b(0xc0))]({'locales':{[this[_0x31086b(0x16f)][_0x31086b(0xf6)]()]:this['_localeService'][_0x31086b(0x115)]()},'override':[[e[_0x31086b(0xa5)],{'useClass':r[_0x31086b(0x133)]}]]}),_0x2558c6=_0x4c893d[_0x31086b(0xe0)]();this['disposeWithMe'](this[_0x31086b(0x128)][_0x31086b(0x196)][_0x31086b(0x142)](_0x9e24d8=>{const _0x20c359=_0x31086b;_0x2558c6[_0x20c359(0xbd)](e[_0x20c359(0x165)])[_0x20c359(0x124)](_0x9e24d8);})),this['disposeWithMe'](this[_0x31086b(0x128)]['currentTheme$']['subscribe'](_0x54e5a4=>{const _0x101d38=_0x31086b;_0x2558c6[_0x101d38(0xbd)](e[_0x101d38(0x165)])[_0x101d38(0x1a2)](_0x54e5a4);})),_0x2558c6[_0x31086b(0xbd)](e[_0x31086b(0x135)])[_0x31086b(0x10b)](this[_0x31086b(0x16f)]['getCurrentLocale']()),_0x2558c6[_0x31086b(0xbd)](e['IConfigService'])[_0x31086b(0xa7)](r[_0x31086b(0x13f)],this[_0x31086b(0x13c)]['getConfig'](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x3c47f9=this[_0x31086b(0x13c)][_0x31086b(0xf5)](a[_0x31086b(0x160)]);_0x3c47f9&&_0x4c893d['registerPlugin'](a[_0x31086b(0xeb)],{'license':_0x3c47f9['ls']});let _0x5a85bb=(_0x4f7e1e=this[_0x31086b(0x13c)][_0x31086b(0xf5)](_0x31086b(0x16a)))==null?void 0x0:_0x4f7e1e[_0x31086b(0x151)],_0xda11eb=!!_0x5a85bb;_0xda11eb&&(this[_0x31086b(0x155)]=_0x5a85bb instanceof Worker?_0x5a85bb:null,_0x4c893d[_0x31086b(0x185)](S[_0x31086b(0x15c)],{'workerURL':_0x5a85bb})),this[_0x31086b(0x114)]['forEach'](([_0xa1dfe1,_0x1f0cc1])=>{const _0x3648d0=_0x31086b;_0x4c893d[_0x3648d0(0x185)](_0xa1dfe1,_0x1f0cc1);}),_0x4c893d[_0x31086b(0x185)](i[_0x31086b(0x1a9)],{'historyListServerUrl':(_0x41b494=this['_configService'][_0x31086b(0xf5)](_0x31086b(0x16a)))==null?void 0x0:_0x41b494[_0x31086b(0x1ab)],'historyPanelComponentKey':(_0x412491=this[_0x31086b(0x13c)][_0x31086b(0xf5)]('edit-history-loader.config'))==null?void 0x0:_0x412491[_0x31086b(0xbb)],'historyPanelHidden':(_0x3e17d0=this[_0x31086b(0x13c)][_0x31086b(0xf5)]('edit-history-loader.config'))==null?void 0x0:_0x3e17d0[_0x31086b(0xe4)]}),_0x2558c6[_0x31086b(0xef)](_0x1ca64a=>{const _0x42c1d2=_0x31086b;this[_0x42c1d2(0x12f)](_0x1ca64a,_0x54eca5);}),this[_0x31086b(0x181)]['next'](_0x4c893d);let _0x7e712e=_0x2558c6[_0x31086b(0xbd)](i[_0x31086b(0x1bf)]),_0x495a79=this[_0x31086b(0xd5)](_0x54eca5),_0xaccfa2=()=>{_0x1d1fed?_0x7e712e['triggerCustomVersions'](_0x54eca5,_0x5406c8,_0x495a79,_0x1d1fed):_0x7e712e['triggerLoadVersions'](_0x54eca5,_0x5406c8,_0x495a79);};if(this[_0x31086b(0xb3)][_0x31086b(0x120)]({'content':this[_0x31086b(0x16f)]['t'](_0x31086b(0x18c)),'type':m[_0x31086b(0x161)][_0x31086b(0x13e)]}),_0xda11eb)try{_0x2558c6[_0x31086b(0xbd)](S[_0x31086b(0xf0)])[_0x31086b(0x183)]()['then'](()=>{_0xaccfa2();});}catch{_0xaccfa2();}else _0xaccfa2();}[_0x342b1b(0x12f)](_0x14fae3,_0x2ab5a8){const _0x245513=_0x342b1b;let _0x3235e2=_0x14fae3['get'](i[_0x245513(0x1bf)]);this[_0x245513(0x199)][_0x245513(0x131)](_0x3235e2[_0x245513(0xd7)][_0x245513(0x142)](_0x4bb03a=>{const _0x25cc01=_0x245513;switch(_0x4bb03a){case i[_0x25cc01(0x164)][_0x25cc01(0x14d)]:this[_0x25cc01(0x153)][_0x25cc01(0x112)](),this[_0x25cc01(0xc9)][_0x25cc01(0xa2)]();break;case i['HistoryModeStatus'][_0x25cc01(0x16b)]:this[_0x25cc01(0x1bd)][_0x25cc01(0x19f)](q['id']),this[_0x25cc01(0x14e)]();break;case i[_0x25cc01(0x164)]['Error']:this['unMountHistoryContent'](),this['_messageService'][_0x25cc01(0x120)]({'content':this[_0x25cc01(0x16f)]['t'](_0x25cc01(0x184)),'type':m['MessageType'][_0x25cc01(0x1a0)],'duration':0xbb8});break;default:break;}})),this[_0x245513(0x199)][_0x245513(0x131)](_0x3235e2[_0x245513(0x189)][_0x245513(0x142)](async _0x42996a=>{const _0x574a29=_0x245513;_0x42996a&&this[_0x574a29(0x1bd)][_0x574a29(0x19f)](n['RevertRevisionMutation']['id'],{'unitId':_0x2ab5a8,'revision':_0x42996a});}));}[_0x342b1b(0xd5)](_0x570d05){const _0x179eca=_0x342b1b;let _0x2c5739=this[_0x179eca(0xb9)][_0x179eca(0x197)](_0x570d05)['getSheets']()[_0x179eca(0x17d)](_0x356a55=>_0x356a55[_0x179eca(0x1a4)]()),_0x3af6f1=new t[(_0x179eca(0x126))](_0x570d05)['id'],_0x2345b4=_0x2c5739[_0x179eca(0x17d)](_0xe40ecf=>new t[(_0x179eca(0x11f))](_0x570d05,_0xe40ecf)['id']),_0x36c292=_0x2c5739[_0x179eca(0x17d)](_0x302e26=>this[_0x179eca(0xab)][_0x179eca(0x11d)](_0x570d05,_0x302e26)[_0x179eca(0x17d)](_0x12f92a=>new t[(_0x179eca(0xd9))](_0x570d05,_0x302e26,_0x12f92a[_0x179eca(0x119)])['id']))[_0x179eca(0xf8)](),_0x215b9d=new t['WorkbookRecoverHistoryPermission'](_0x570d05)['id'];return this['_permissionService']['composePermission']([_0x3af6f1,..._0x2345b4,..._0x36c292,_0x215b9d])[_0x179eca(0x127)](_0x5e0a66=>!!_0x5e0a66[_0x179eca(0xb8)]);}};X=H([V(0x0,(0x0,e['Inject'])(e['LocaleService'])),V(0x1,e['IUniverInstanceService']),V(0x2,e[_0x342b1b(0x14b)]),V(0x3,e['ICommandService']),V(0x4,M['IMessageService']),V(0x5,e[_0x342b1b(0x1b4)]),V(0x6,(0x0,e['Inject'])(t[_0x342b1b(0x15d)])),V(0x7,(0x0,e[_0x342b1b(0x110)])(M[_0x342b1b(0x122)])),V(0x8,(0x0,e[_0x342b1b(0x110)])(M['ISidebarService'])),V(0x9,(0x0,e['Inject'])(e['ThemeService']))],X);function _0x106c(_0x23f03e,_0x1d8864){_0x23f03e=_0x23f03e-0xa1;const _0x2ccfda=_0x2ccf();let _0x106cb3=_0x2ccfda[_0x23f03e];return _0x106cb3;}let Z=class extends e['Plugin']{constructor(_0x8a5426=R,_0xb00fa7,_0x148959){const _0x1ddc2f=_0x342b1b;super(),this[_0x1ddc2f(0x129)]=_0x8a5426,this['_injector']=_0xb00fa7,this[_0x1ddc2f(0x13c)]=_0x148959;let {menu:_0xecf7f0,..._0x435bd9}=(0x0,e[_0x1ddc2f(0x141)])({},R,this[_0x1ddc2f(0x129)]);_0xecf7f0&&this[_0x1ddc2f(0x13c)]['setConfig'](_0x1ddc2f(0xe8),_0xecf7f0,{'merge':!0x0}),this['_configService'][_0x1ddc2f(0xa7)](L,_0x435bd9),this[_0x1ddc2f(0x129)][_0x1ddc2f(0xa4)]&&this['_configService'][_0x1ddc2f(0xa7)]('UNIVER_CONTAINER_ID',this[_0x1ddc2f(0x129)][_0x1ddc2f(0xa4)]);}[_0x342b1b(0xbf)](){const _0x16f0d7=_0x342b1b;[[G,{'useClass':X}],[J]][_0x16f0d7(0xfb)](_0x328c98=>this[_0x16f0d7(0x117)][_0x16f0d7(0x131)](_0x328c98));}[_0x342b1b(0x1b5)](){const _0x3e79f7=_0x342b1b;this[_0x3e79f7(0x117)][_0x3e79f7(0xbd)](J);}};B(Z,_0x342b1b(0x1a8),e[_0x342b1b(0xaa)][_0x342b1b(0x172)]),B(Z,_0x342b1b(0xa3),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x342b1b(0xf1),ce),B(Z,_0x342b1b(0x150),le),Z=H([(0x0,e['DependentOn'])(a[_0x342b1b(0xeb)]),V(0x1,(0x0,e['Inject'])(e['Injector'])),V(0x2,e[_0x342b1b(0x14b)])],Z);let Q=class extends e[_0x342b1b(0x17a)]{constructor(_0xe84cb9,_0x5e7e19,_0x47e5ee,_0x388d4e,_0x5821eb,_0x28e71c,_0x1467bf,_0x260d7b,_0x536496,_0x16b98b,_0x4fb3fd){const _0x4dc68e=_0x342b1b;super(),this['_commandService']=_0xe84cb9,this[_0x4dc68e(0xb7)]=_0x5e7e19,this[_0x4dc68e(0x195)]=_0x47e5ee,this[_0x4dc68e(0x1bb)]=_0x388d4e,this[_0x4dc68e(0x16f)]=_0x5821eb,this[_0x4dc68e(0xb3)]=_0x28e71c,this['_collaborationController']=_0x1467bf,this['_localCacheService']=_0x260d7b,this[_0x4dc68e(0x147)]=_0x536496,this[_0x4dc68e(0xb9)]=_0x16b98b,this[_0x4dc68e(0x176)]=_0x4fb3fd,B(this,_0x4dc68e(0x173),null),this[_0x4dc68e(0x137)]();}['_init'](){const _0x4170fd=_0x342b1b;[K,q][_0x4170fd(0xfb)](_0x26436a=>this[_0x4170fd(0xca)]((0x0,e['toDisposable'])(this[_0x4170fd(0x1bd)][_0x4170fd(0x1af)](_0x26436a)))),this[_0x4170fd(0xca)](this['_componentManager'][_0x4170fd(0x143)]('HistoryIcon',F[_0x4170fd(0x10f)])),this[_0x4170fd(0xb7)][_0x4170fd(0xe1)](de),this[_0x4170fd(0xca)](this[_0x4170fd(0x1bd)][_0x4170fd(0x177)](async(_0x5d1d67,_0x3b01c3)=>{const _0x64d99=_0x4170fd;if(_0x5d1d67['id']===n[_0x64d99(0xcd)]['id']){let {unitId:_0x4d18e6}=_0x5d1d67[_0x64d99(0x101)];this['_messageService']['show']({'content':this['_localeService']['t'](_0x64d99(0x12d)),'type':m[_0x64d99(0x161)]['Loading'],'duration':0x1388});let _0x4401b4=this['_collaborationController']['getCollabEntity'](_0x4d18e6);_0x3b01c3!=null&&_0x3b01c3[_0x64d99(0x144)]?this[_0x64d99(0x1a7)](_0x4401b4,async()=>(setTimeout(()=>window[_0x64d99(0xff)][_0x64d99(0xd4)]()),!0x0),!0x0):this[_0x64d99(0x1a7)](_0x4401b4,async()=>{const _0x378c4b=_0x64d99;let _0x550a42=this[_0x378c4b(0xb9)][_0x378c4b(0xc4)](I[_0x378c4b(0x18e)][_0x378c4b(0xcf)]),_0x55d402=_0x550a42==null?void 0x0:_0x550a42[_0x378c4b(0xda)]();if(!_0x55d402)return!0x1;this[_0x378c4b(0xb9)]['disposeUnit'](_0x4d18e6);let _0xad34ea=await this[_0x378c4b(0x147)][_0x378c4b(0x1be)](_0x4d18e6,I[_0x378c4b(0x18e)][_0x378c4b(0xcf)]);return _0xad34ea&&_0xad34ea instanceof e[_0x378c4b(0xac)]?(await this[_0x378c4b(0x116)](_0xad34ea,_0x55d402['getSheetId']()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x28ab5c,_0x3a1d31,_0x5d4ef6=!0x1){const _0x395c80=_0x342b1b;let _0x57ff15=(0x0,N[_0x395c80(0xd2)])([_0x28ab5c[_0x395c80(0x178)][_0x395c80(0x111)],_0x28ab5c[_0x395c80(0x132)]])['subscribe'](async([_0x1e1080,_0x472b2c])=>{const _0x574d73=_0x395c80;if(_0x1e1080[_0x574d73(0x10c)]===n[_0x574d73(0x174)][_0x574d73(0xb5)]&&(_0x472b2c==null?void 0x0:_0x472b2c[_0x574d73(0x1bc)])===r['CollaborationStatus'][_0x574d73(0xb4)]&&_0x1e1080['data'][_0x574d73(0x159)][_0x574d73(0x192)](_0x23c602=>_0x23c602['id']===n[_0x574d73(0xcd)]['id'])&&await _0x3a1d31()){var _0xd56635;this[_0x574d73(0x1bb)][_0x574d73(0x14e)](),_0x57ff15[_0x574d73(0x100)](),this[_0x574d73(0x173)]&&clearTimeout(this[_0x574d73(0x173)]),await((_0xd56635=this[_0x574d73(0x13d)])==null?void 0x0:_0xd56635['exhaustSavingTask']());}});_0x5d4ef6&&(this[_0x395c80(0x173)]=setTimeout(()=>{const _0x3aaf38=_0x395c80;_0x57ff15['unsubscribe'](),this['_messageService'][_0x3aaf38(0x120)]({'content':this[_0x3aaf38(0x16f)]['t'](_0x3aaf38(0xad)),'type':m[_0x3aaf38(0x161)][_0x3aaf38(0x1a0)],'duration':0xbb8});},0x1388));}async[_0x342b1b(0x116)](_0x215da4,_0x31388b){const _0x21e4ce=_0x342b1b;await this[_0x21e4ce(0x19c)](_0x215da4,_0x31388b),_0x215da4['activeSheet$'][_0x21e4ce(0x163)]((0x0,N[_0x21e4ce(0x1ba)])(this[_0x21e4ce(0x13b)]))['subscribe'](_0x271105=>{const _0x3b9bc5=_0x21e4ce;_0x271105&&this[_0x3b9bc5(0x169)](_0x271105);}),this[_0x21e4ce(0x176)][_0x21e4ce(0x15f)]['pipe']((0x0,N[_0x21e4ce(0x1ba)])(this[_0x21e4ce(0x13b)]))[_0x21e4ce(0x142)](()=>this['_updateSubUnitFromURLParams'](_0x215da4,_0x31388b));}[_0x342b1b(0x169)](_0x59d992,_0x2b3533=!0x1){const _0x2f52ea=_0x342b1b;let _0x55709c=this[_0x2f52ea(0x176)][_0x2f52ea(0xe2)]('subunit');_0x59d992[_0x2f52ea(0x1a4)]()!==_0x55709c&&this[_0x2f52ea(0x176)][_0x2f52ea(0x1b9)](_0x2f52ea(0xdd),_0x59d992[_0x2f52ea(0x1a4)](),_0x2b3533);}async['_updateSubUnitFromURLParams'](_0x2b0e44,_0x128b41){const _0x397f3a=_0x342b1b;var _0x22b059;if(!_0x128b41||!_0x2b0e44['getSheetBySheetId'](_0x128b41)){let _0xd87eb0=_0x2b0e44['getUnhiddenWorksheets']()[0x0],_0x2fd5bf=_0x2b0e44[_0x397f3a(0x179)](_0xd87eb0);if(!_0x2fd5bf)return;this[_0x397f3a(0x169)](_0x2fd5bf,!0x0),await this['_commandService'][_0x397f3a(0x19f)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x2b0e44['getUnitId'](),'subUnitId':_0xd87eb0});return;}((_0x22b059=_0x2b0e44[_0x397f3a(0xda)]())==null?void 0x0:_0x22b059[_0x397f3a(0x1a4)]())!==_0x128b41&&await this[_0x397f3a(0x1bd)][_0x397f3a(0x19f)](t[_0x397f3a(0xdc)]['id'],{'unitId':_0x2b0e44[_0x397f3a(0x149)](),'subUnitId':_0x128b41});}};Q=H([V(0x0,e[_0x342b1b(0x17c)]),V(0x1,M[_0x342b1b(0x15e)]),V(0x2,(0x0,e[_0x342b1b(0x110)])(M[_0x342b1b(0xf2)])),V(0x3,(0x0,e[_0x342b1b(0x110)])(G)),V(0x4,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x135)])),V(0x5,M[_0x342b1b(0xfa)]),V(0x6,(0x0,e[_0x342b1b(0x110)])(r['CollaborationController'])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e['Inject'])(r[_0x342b1b(0x19d)])),V(0x9,e[_0x342b1b(0xc3)]),V(0xa,P[_0x342b1b(0x1ad)])],Q);let $=class extends e[_0x342b1b(0xb0)]{constructor(_0x13a012=R,_0x1947bf,_0x3bff9a){const _0x1a565c=_0x342b1b;super(),this[_0x1a565c(0x129)]=_0x13a012,this[_0x1a565c(0x117)]=_0x1947bf,this[_0x1a565c(0x13c)]=_0x3bff9a;let {menu:_0xaa4e60,..._0x12e6f7}=(0x0,e['merge'])({},R,this[_0x1a565c(0x129)]);_0xaa4e60&&this[_0x1a565c(0x13c)]['setConfig'](_0x1a565c(0xe8),_0xaa4e60,{'merge':!0x0}),this['_configService'][_0x1a565c(0xa7)](L,_0x12e6f7),this[_0x1a565c(0x129)][_0x1a565c(0xa4)]&&this['_configService'][_0x1a565c(0xa7)](U,this[_0x1a565c(0x129)][_0x1a565c(0xa4)]);}[_0x342b1b(0xbf)](){const _0x1b2e0f=_0x342b1b;[[G],[Q]]['forEach'](_0xbcfbab=>this[_0x1b2e0f(0x117)]['add'](_0xbcfbab));}['onSteady'](){const _0x114b12=_0x342b1b;this[_0x114b12(0x117)][_0x114b12(0xbd)](Q);}};B($,_0x342b1b(0x1a8),e[_0x342b1b(0xaa)][_0x342b1b(0x172)]),B($,_0x342b1b(0xa3),_0x342b1b(0xc5)),B($,'packageName',ce),B($,'version',le),$=H([(0x0,e['DependentOn'])(a['UniverLicensePlugin']),V(0x1,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0xa9)])),V(0x2,e[_0x342b1b(0x14b)])],$),exports[_0x342b1b(0x14a)]=L,Object[_0x342b1b(0x15a)](exports,_0x342b1b(0x107),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,'MobileHistoryLoaderService',{'enumerable':!0x0,'get':function(){return X;}}),exports['ToggleEditHistoryOperation']=K,exports[_0x342b1b(0x138)]=U,exports[_0x342b1b(0x11a)]=W,Object['defineProperty'](exports,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0x53c793=_0x3aee;(function(_0x1aa52a,_0x35f768){const _0xd39533=_0x3aee,_0x42496f=_0x1aa52a();while(!![]){try{const _0x4a7d02=parseInt(_0xd39533(0x26c))/0x1+-parseInt(_0xd39533(0x1cf))/0x2+parseInt(_0xd39533(0x1c7))/0x3+parseInt(_0xd39533(0x197))/0x4+parseInt(_0xd39533(0x1e5))/0x5*(parseInt(_0xd39533(0x1d8))/0x6)+parseInt(_0xd39533(0x23d))/0x7*(parseInt(_0xd39533(0x1bb))/0x8)+-parseInt(_0xd39533(0x1b2))/0x9;if(_0x4a7d02===_0x35f768)break;else _0x42496f['push'](_0x42496f['shift']());}catch(_0x5b59cd){_0x42496f['push'](_0x42496f['shift']());}}}(_0x55f3,0xeb39d),Object[_0x53c793(0x21e)](exports,Symbol[_0x53c793(0x24d)],{'value':_0x53c793(0x194)}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),te=require(`@univerjs/sheets-filter`),ne=require(`@univerjs/sheets-filter-ui`),re=require(`@univerjs/sheets-formula`),ie=require(`@univerjs/sheets-formula-ui`),ae=require(`@univerjs/sheets-hyper-link`),O=require(`@univerjs/sheets-hyper-link-ui`),k=require(`@univerjs/sheets-numfmt`),A=require(`@univerjs/sheets-table`),j=require(`@univerjs/sheets-ui`),M=require(`@univerjs/ui`),N=require(`rxjs`),P=require(`@univerjs-pro/collaboration-client-ui`),F=require(`@univerjs/icons`),I=require(`@univerjs/protocol`);const L='edit-history-loader.config';Symbol(L);const R={};function z(_0x4a3522){'@babel/helpers - typeof';const _0x39fe2d=_0x53c793;return z=typeof Symbol=='function'&&typeof Symbol[_0x39fe2d(0x238)]=='symbol'?function(_0x536376){return typeof _0x536376;}:function(_0x32c28f){const _0x55ecff=_0x39fe2d;return _0x32c28f&&typeof Symbol==_0x55ecff(0x1ab)&&_0x32c28f[_0x55ecff(0x191)]===Symbol&&_0x32c28f!==Symbol['prototype']?_0x55ecff(0x223):typeof _0x32c28f;},z(_0x4a3522);}function oe(_0x387230,_0x1d7ee6){const _0x72c024=_0x53c793;if(z(_0x387230)!=_0x72c024(0x19e)||!_0x387230)return _0x387230;var _0x2e8f62=_0x387230[Symbol[_0x72c024(0x236)]];if(_0x2e8f62!==void 0x0){var _0x474a5a=_0x2e8f62[_0x72c024(0x202)](_0x387230,_0x1d7ee6||_0x72c024(0x23b));if(z(_0x474a5a)!=_0x72c024(0x19e))return _0x474a5a;throw TypeError(_0x72c024(0x1f5));}return(_0x1d7ee6==='string'?String:Number)(_0x387230);}function se(_0x5cce09){const _0x80b725=_0x53c793;var _0x251701=oe(_0x5cce09,_0x80b725(0x259));return z(_0x251701)==_0x80b725(0x223)?_0x251701:_0x251701+'';}function B(_0x3f36e2,_0x27dbe2,_0x453c62){const _0x45a5e5=_0x53c793;return(_0x27dbe2=se(_0x27dbe2))in _0x3f36e2?Object[_0x45a5e5(0x21e)](_0x3f36e2,_0x27dbe2,{'value':_0x453c62,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f36e2[_0x27dbe2]=_0x453c62,_0x3f36e2;}function V(_0x1fee3c,_0xc4532c){return function(_0xd8d7c5,_0x181c61){_0xc4532c(_0xd8d7c5,_0x181c61,_0x1fee3c);};}function H(_0x170bdd,_0x20dbb8,_0x2845d3,_0xf8eadf){const _0x2260ce=_0x53c793;var _0x1748a0=arguments['length'],_0xe15e1e=_0x1748a0<0x3?_0x20dbb8:_0xf8eadf===null?_0xf8eadf=Object[_0x2260ce(0x1db)](_0x20dbb8,_0x2845d3):_0xf8eadf,_0x39b60e;if(typeof Reflect=='object'&&typeof Reflect[_0x2260ce(0x23e)]==_0x2260ce(0x1ab))_0xe15e1e=Reflect[_0x2260ce(0x23e)](_0x170bdd,_0x20dbb8,_0x2845d3,_0xf8eadf);else{for(var _0x48edfa=_0x170bdd[_0x2260ce(0x19a)]-0x1;_0x48edfa>=0x0;_0x48edfa--)(_0x39b60e=_0x170bdd[_0x48edfa])&&(_0xe15e1e=(_0x1748a0<0x3?_0x39b60e(_0xe15e1e):_0x1748a0>0x3?_0x39b60e(_0x20dbb8,_0x2845d3,_0xe15e1e):_0x39b60e(_0x20dbb8,_0x2845d3))||_0xe15e1e);}return _0x1748a0>0x3&&_0xe15e1e&&Object['defineProperty'](_0x20dbb8,_0x2845d3,_0xe15e1e),_0xe15e1e;}const U=_0x53c793(0x27b),W=_0x53c793(0x25f);let G=class extends e[_0x53c793(0x277)]{constructor(_0x435727,_0x4020c3,_0x570d26,_0x248e7f,_0x39f7a2,_0x429c73,_0x407fdc,_0x338fbd,_0x1df9de,_0x5ca2ee){const _0xb44250=_0x53c793;super(),this['_localeService']=_0x435727,this[_0xb44250(0x1b5)]=_0x4020c3,this['_configService']=_0x570d26,this['_commandService']=_0x248e7f,this['_messageService']=_0x39f7a2,this['_permissionService']=_0x429c73,this[_0xb44250(0x233)]=_0x407fdc,this['_dialogService']=_0x338fbd,this[_0xb44250(0x208)]=_0x1df9de,this[_0xb44250(0x1b1)]=_0x5ca2ee,B(this,_0xb44250(0x181),new N[(_0xb44250(0x273))](null)),B(this,'historyUniver$',this[_0xb44250(0x181)][_0xb44250(0x25a)]()),B(this,'_disposableCollection',new e[(_0xb44250(0x21b))]()),B(this,_0xb44250(0x1d9),new Map()),B(this,_0xb44250(0x290),null),this['_init']();}get['historyUniver'](){const _0x25d291=_0x53c793;return this[_0x25d291(0x181)]['value'];}['_init'](){const _0x428bdd=_0x53c793;this[_0x428bdd(0x1c4)](),this[_0x428bdd(0x243)]();}['_initContainer'](){const _0x34eceb=_0x53c793;var _0x53b136;let _0x55e405=(_0x53b136=this[_0x34eceb(0x1f8)][_0x34eceb(0x244)](_0x34eceb(0x27b)))==null?_0x34eceb(0x28a):_0x53b136,_0x1cca2b=document[_0x34eceb(0x297)](_0x55e405);if(!_0x1cca2b)return;let _0x48d3e6=document['createElement'](_0x34eceb(0x1c0));_0x48d3e6['id']=W,_0x48d3e6[_0x34eceb(0x285)]['uComp']=_0x34eceb(0x216),_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x266)]='absolute',_0x48d3e6['style']['top']='0',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x21a)]='0',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x20e)]='100%',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x20c)]='100%',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x234)]='49',_0x48d3e6[_0x34eceb(0x288)]['display']=_0x34eceb(0x1b4),_0x1cca2b[_0x34eceb(0x184)](_0x48d3e6);}['_initPlugins'](){const _0x41de94=_0x53c793;[[b[_0x41de94(0x276)]],[M[_0x41de94(0x22c)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x41de94(0x21f)],null]]}],[x['UniverNetworkPlugin']],[_[_0x41de94(0x200)],{'override':[[_[_0x41de94(0x201)],null]]}],[h[_0x41de94(0x293)],{'hasScroll':!0x1}],[g[_0x41de94(0x1de)]],[k['UniverSheetsNumfmtPlugin']],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[j[_0x41de94(0x27d)]],[re['UniverSheetsFormulaPlugin']],[ie[_0x41de94(0x195)]],[n[_0x41de94(0x219)]],[te['UniverSheetsFilterPlugin']],[ne[_0x41de94(0x210)]],[C[_0x41de94(0x22f)]],[ee['UniverSheetsConditionalFormattingUIPlugin']],[ae[_0x41de94(0x20a)]],[O[_0x41de94(0x294)]],[p['UniverDataValidationPlugin']],[w[_0x41de94(0x1b6)]],[T['UniverSheetsDataValidationUIPlugin']],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x41de94(0x1a1)]],[E[_0x41de94(0x1ce)]],[D[_0x41de94(0x268)]],[d[_0x41de94(0x25e)]],[f[_0x41de94(0x225)]],[o[_0x41de94(0x1a2)]],[s[_0x41de94(0x246)]],[l['UniverSheetsShapePlugin']],[u[_0x41de94(0x1be)]],[c[_0x41de94(0x27c)],{'notExecuteFormula':!0x0}],[A[_0x41de94(0x252)]]][_0x41de94(0x25b)](([_0xe1c167,_0x2b42a4])=>this[_0x41de94(0x1f6)](_0xe1c167,_0x2b42a4));}[_0x53c793(0x27e)](){const _0x1e8143=_0x53c793;super[_0x1e8143(0x27e)](),this[_0x1e8143(0x264)](),this[_0x1e8143(0x1d9)][_0x1e8143(0x298)]();}[_0x53c793(0x1f6)](_0x9181a3,_0x3b09b9,_0x2409bd){const _0x6e9f05=_0x53c793;if(this['_pluginMap']['has'](_0x9181a3[_0x6e9f05(0x1f9)])&&!_0x2409bd)throw Error(_0x6e9f05(0x255)+_0x9181a3[_0x6e9f05(0x1f9)]+_0x6e9f05(0x212));this[_0x6e9f05(0x1d9)][_0x6e9f05(0x1a7)](_0x9181a3[_0x6e9f05(0x1f9)],[_0x9181a3,_0x3b09b9]);}[_0x53c793(0x183)](){const _0xc50d16=_0x53c793;return Array[_0xc50d16(0x281)](this['_pluginMap'][_0xc50d16(0x213)]());}[_0x53c793(0x19f)](_0x1c88a4,_0x3d22ba){const _0x19630b=_0x53c793;let _0x389228=document['getElementById'](W);_0x389228&&(_0x389228['style'][_0x19630b(0x1ea)]=_0x19630b(0x23c),this[_0x19630b(0x284)](_0x1c88a4,W,_0x3d22ba));}[_0x53c793(0x264)](){const _0x29e890=_0x53c793;var _0x53f4da;this[_0x29e890(0x282)]['dispose'](),(_0x53f4da=this[_0x29e890(0x26d)])==null||_0x53f4da[_0x29e890(0x27e)](),this[_0x29e890(0x181)][_0x29e890(0x215)](null);let _0x2418e0=document[_0x29e890(0x297)](W);_0x2418e0&&(_0x2418e0[_0x29e890(0x288)][_0x29e890(0x1ea)]=_0x29e890(0x1b4),this[_0x29e890(0x290)]&&(this['_internalWebWorker']['terminate'](),this['_internalWebWorker']=null));}[_0x53c793(0x284)](_0x17e4c5,_0x37e9d3,_0x3435cd){const _0x8c6f97=_0x53c793;var _0x3297e2,_0x4b9b14,_0x5dcee7,_0x47ac52,_0x1854a0;if(this[_0x8c6f97(0x26d)])return;let _0xcf2df2=new e[(_0x8c6f97(0x1b7))]({'locales':{[this[_0x8c6f97(0x287)][_0x8c6f97(0x1c5)]()]:this[_0x8c6f97(0x287)][_0x8c6f97(0x207)]()},'override':[[e['IAuthzIoService'],{'useClass':r[_0x8c6f97(0x28d)]}]]}),_0x2ec180=_0xcf2df2[_0x8c6f97(0x180)]();this[_0x8c6f97(0x18b)](this[_0x8c6f97(0x1b1)]['darkMode$']['subscribe'](_0x5a1a5b=>{const _0x155734=_0x8c6f97;_0x2ec180[_0x155734(0x1ba)](e[_0x155734(0x242)])['setDarkMode'](_0x5a1a5b);})),this[_0x8c6f97(0x18b)](this[_0x8c6f97(0x1b1)][_0x8c6f97(0x24e)]['subscribe'](_0x3a185c=>{const _0x5c20b6=_0x8c6f97;_0x2ec180[_0x5c20b6(0x1ba)](e[_0x5c20b6(0x242)])[_0x5c20b6(0x1f1)](_0x3a185c);})),_0x2ec180['get'](e[_0x8c6f97(0x1b9)])['setLocale'](this[_0x8c6f97(0x287)][_0x8c6f97(0x1c5)]()),_0x2ec180[_0x8c6f97(0x1ba)](e['IConfigService'])[_0x8c6f97(0x187)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x5696e8=this['_configService'][_0x8c6f97(0x244)](a['LS_CONFIG_KEY']);_0x5696e8&&_0xcf2df2[_0x8c6f97(0x1f6)](a[_0x8c6f97(0x1ed)],{'license':_0x5696e8['ls']});let _0x3e1ada=(_0x3297e2=this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)]('edit-history-loader.config'))==null?void 0x0:_0x3297e2['workerURL'],_0x1aeeb0=!!_0x3e1ada;_0x1aeeb0&&(this[_0x8c6f97(0x290)]=_0x3e1ada instanceof Worker?_0x3e1ada:null,_0xcf2df2[_0x8c6f97(0x1f6)](S['UniverRPCMainThreadPlugin'],{'workerURL':_0x3e1ada})),this[_0x8c6f97(0x1d9)][_0x8c6f97(0x25b)](([_0x585750,_0xe6ef6f])=>{const _0x22a19f=_0x8c6f97;_0xcf2df2[_0x22a19f(0x1f6)](_0x585750,_0xe6ef6f);}),_0xcf2df2[_0x8c6f97(0x1f6)](i['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x4b9b14=this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x4b9b14[_0x8c6f97(0x235)],'historyPanelComponentKey':(_0x5dcee7=this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x5dcee7[_0x8c6f97(0x1a4)],'historyPanelHidden':(_0x47ac52=this['_configService'][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x47ac52[_0x8c6f97(0x19d)],'historyAIassistantEnabled':(_0x1854a0=this['_configService'][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x1854a0[_0x8c6f97(0x1eb)]}),_0x2ec180['invoke'](_0x1055d6=>{const _0x15b495=_0x8c6f97;this[_0x15b495(0x211)](_0x1055d6,_0x17e4c5);}),this[_0x8c6f97(0x181)][_0x8c6f97(0x215)](_0xcf2df2);let _0x7f86eb=_0x2ec180[_0x8c6f97(0x1ba)](i[_0x8c6f97(0x283)]),_0x18abdd=this[_0x8c6f97(0x1e4)](_0x17e4c5),_0x5cb240=()=>{const _0xe62147=_0x8c6f97;_0x3435cd?_0x7f86eb[_0xe62147(0x1b0)](_0x17e4c5,_0x37e9d3,_0x18abdd,_0x3435cd):_0x7f86eb['triggerLoadVersions'](_0x17e4c5,_0x37e9d3,_0x18abdd);};if(this[_0x8c6f97(0x232)]['show']({'content':this[_0x8c6f97(0x287)]['t'](_0x8c6f97(0x1a5)),'type':m[_0x8c6f97(0x20f)]['Loading']}),_0x1aeeb0)try{_0x2ec180[_0x8c6f97(0x1ba)](S[_0x8c6f97(0x28c)])[_0x8c6f97(0x20b)]()[_0x8c6f97(0x214)](()=>{_0x5cb240();});}catch{_0x5cb240();}else _0x5cb240();}[_0x53c793(0x211)](_0x5d07fb,_0x5a1786){const _0x374325=_0x53c793;let _0x1987be=_0x5d07fb['get'](i[_0x374325(0x283)]);this[_0x374325(0x282)][_0x374325(0x1c1)](_0x1987be['status$'][_0x374325(0x21c)](_0x23ba45=>{const _0x323428=_0x374325;switch(_0x23ba45){case i['HistoryModeStatus'][_0x323428(0x269)]:this[_0x323428(0x1b8)]['closeAll'](),this[_0x323428(0x208)][_0x323428(0x289)]();break;case i[_0x323428(0x270)][_0x323428(0x1cc)]:this['_commandService'][_0x323428(0x1e3)](q['id']),this['unMountHistoryContent']();break;case i[_0x323428(0x270)][_0x323428(0x261)]:this[_0x323428(0x264)](),this['_messageService'][_0x323428(0x1c8)]({'content':this[_0x323428(0x287)]['t']('editHistory.panel.listFetchError'),'type':m[_0x323428(0x20f)]['Error'],'duration':0xbb8});break;default:break;}})),this[_0x374325(0x282)][_0x374325(0x1c1)](_0x1987be[_0x374325(0x22e)][_0x374325(0x21c)](async _0x3e8a51=>{const _0x28698d=_0x374325;_0x3e8a51&&this['_commandService'][_0x28698d(0x1e3)](n[_0x28698d(0x1f2)]['id'],{'unitId':_0x5a1786,'revision':_0x3e8a51});}));}[_0x53c793(0x1e4)](_0xde2541){const _0x2fd5c3=_0x53c793;let _0x5125b6=this[_0x2fd5c3(0x1b5)][_0x2fd5c3(0x1fa)](_0xde2541)[_0x2fd5c3(0x240)]()[_0x2fd5c3(0x1ae)](_0x46b8a3=>_0x46b8a3['getSheetId']()),_0x18bfb0=new t[(_0x2fd5c3(0x23a))](_0xde2541)['id'],_0x420f59=_0x5125b6[_0x2fd5c3(0x1ae)](_0x18a8b8=>new t[(_0x2fd5c3(0x182))](_0xde2541,_0x18a8b8)['id']),_0x319883=_0x5125b6[_0x2fd5c3(0x1ae)](_0x1d610d=>this[_0x2fd5c3(0x233)][_0x2fd5c3(0x188)](_0xde2541,_0x1d610d)[_0x2fd5c3(0x1ae)](_0xfc3246=>new t[(_0x2fd5c3(0x1e7))](_0xde2541,_0x1d610d,_0xfc3246['permissionId'])['id']))[_0x2fd5c3(0x1f3)](),_0x52d08d=new t[(_0x2fd5c3(0x25c))](_0xde2541)['id'];return this['_permissionService'][_0x2fd5c3(0x26f)]([_0x18bfb0,..._0x420f59,..._0x319883,_0x52d08d])[_0x2fd5c3(0x21d)](_0x7ad9fa=>!!_0x7ad9fa[_0x2fd5c3(0x253)]);}};G=H([V(0x0,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x1,e['IUniverInstanceService']),V(0x2,e[_0x53c793(0x19b)]),V(0x3,e[_0x53c793(0x291)]),V(0x4,M['IMessageService']),V(0x5,e['IPermissionService']),V(0x6,(0x0,e[_0x53c793(0x239)])(t[_0x53c793(0x286)])),V(0x7,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x21f)])),V(0x8,(0x0,e[_0x53c793(0x239)])(M['ISidebarService'])),V(0x9,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x242)]))],G);const K={'id':_0x53c793(0x257),'type':e[_0x53c793(0x271)]['OPERATION'],'handler':_0x3be211=>{const _0x35201a=_0x53c793;let _0x51c940=_0x3be211[_0x35201a(0x1ba)](G),{unitId:_0x1d1969}=(0x0,t[_0x35201a(0x209)])(_0x3be211['get'](e[_0x35201a(0x204)]))||{};return _0x1d1969?(_0x51c940[_0x35201a(0x19f)](_0x1d1969),!0x0):!0x1;}},q={'id':_0x53c793(0x241),'type':e['CommandType']['OPERATION'],'handler':()=>!0x0};var ce='@univerjs-pro/edit-history-loader',le=_0x53c793(0x1e9);function ue(_0x551072){const _0x108fe3=_0x53c793;return{'id':K['id'],'type':M[_0x108fe3(0x1e0)][_0x108fe3(0x206)],'icon':'HistoryIcon','tooltip':_0x108fe3(0x1e6),'hidden$':(0x0,M[_0x108fe3(0x22a)])(_0x551072,e[_0x108fe3(0x1d5)]['UNIVER_SHEET']),'disabled$':(0x0,j['getCurrentRangeDisable$'])(_0x551072,{'workbookTypes':[t[_0x108fe3(0x23a)],t[_0x108fe3(0x1ff)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x55f3(){const _0xcd7365=['_collaborationController','DataLoaderService','_init','WorkbookViewHistoryPermission','UniverDrawingPlugin','IImageIoService','call','reload','IUniverInstanceService','status','BUTTON','getLocales','_sidebarService','getSheetCommandTarget','UniverSheetsHyperLinkPlugin','whenReady','height','_setupSubUnitSync','width','MessageType','UniverSheetsFilterUIPlugin','_initListener','\x20has\x20been\x20registered.','values','then','next','history-container','100%','location','UniverCollaborationPlugin','left','DisposableCollection','subscribe','every','defineProperty','IDialogService','onCommandExecuted','getUnitId','eventID','symbol','disposeUnit','UniverSheetSparklineUIPlugin','takeUntil','UniverEditHistoryViewerMobilePlugin','_permissionService','ToggleEditHistoryOperation','getMenuHiddenObservable','UniverRPCMainThreadPlugin','UniverUIPlugin','_historyManagerService','revertRevision$','UniverSheetsConditionalFormattingPlugin','[MobileHistoryLoaderService]:\x20Plugin\x20','getUnhiddenWorksheets','_messageService','_selectionProtectionRuleModel','zIndex','historyListServerUrl','toPrimitive','CollaborationEvent','iterator','Inject','WorkbookEditablePermission','default','block','62706SHPTBD','decorate','IURLService','getSheets','univer.operation.exit-edit-history','ThemeService','_initPlugins','getConfig','getParam','UniverSheetsChartUIPlugin','_localCacheService','ComponentManager','event$','toDisposable','SYNCED','_updateSubUnitFromURLParams','toStringTag','currentTheme$','UniverSheetsMobileUIPlugin','state$','_updateURLWithCurrentState','UniverSheetsTablePlugin','value','status$','[HistoryLoaderService]:\x20Plugin\x20','invoke','univer.operation.toggle-edit-history','HistoryIcon','string','asObservable','forEach','WorkbookRecoverHistoryPermission','Loading','UniverSheetSparklinePlugin','univer-history-container','has','Error','CHANGESET_ACK','data','unMountHistoryContent','_dataLoaderService','position','Injector','UniverSheetsDrawingUIPlugin','Entered','MobileHistoryLoaderService','getCollabEntity','1012280jsWGRN','historyUniver','session','composePermission','HistoryModeStatus','CommandType','_revertErrorTimer','BehaviorSubject','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','fromCollab','UniverRenderEnginePlugin','Disposable','register','triggerLoadVersions','getCurrentUnitOfType','UNIVER_CONTAINER_ID','UniverSheetsPivotTablePlugin','UniverSheetsUIPlugin','dispose','univerContainerId','absolute','from','_disposableCollection','HistoryManagerService','_initUniver','dataset','RangeProtectionRuleModel','_localeService','style','close','univer-container','combineLatest','IRemoteInstanceService','AuthzIoHttpService','UniverDataValidationPlugin','subunit','_internalWebWorker','ICommandService','Plugin','UniverDocsPlugin','UniverSheetsHyperLinkUIPlugin','edit-history-loader.config','onStarting','getElementById','clear','onSteady','__getInjector','_historyUniver$','WorksheetEditPermission','getAllPlugins','appendChild','ISidebarService','some','setConfig','getSubunitRuleList','UniverType','SetWorksheetActivateCommand','disposeWithMe','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverNetworkPlugin','params','getSheetBySheetId','setParam','constructor','urlChange$','_menuManagerService','Module','UniverSheetsFormulaUIPlugin','IAuthzIoService','858496HFDCPC','UniverSheetsDataValidationMobileUIPlugin','univer-history-container-mobile','length','IConfigService','_componentManager','historyPanelHidden','object','mountHistoryContent','version','UniverDrawingUIPlugin','UniverSheetsChartPlugin','menu','historyPanelComponentKey','editHistory.info.initializing','IMenuManagerService','set','editHistory.panel.revertFailed','_handleRevertAcknowledgement','unsubscribe','function','mutations','UniverSheetsPlugin','map','editHistory.panel.listFetchError','triggerCustomVersions','_themeService','40971870xkbRqX','UniverSheetsNumfmtPlugin','none','_univerInstanceService','UniverSheetsDataValidationPlugin','Univer','_dialogService','LocaleService','get','1608VKofbe','merge','activeSheet$','UniverSheetsShapeUIPlugin','UniverMobileUIPlugin','div','add','removeAll','type','_initContainer','getCurrentLocale','loadUnit','3791100krdohm','show','_config','UNIVER_UNKNOWN','getActiveSheet','Exited','DependentOn','UniverSheetsDrawingPlugin','1108020UVqugf','setDarkMode','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_commandService','darkMode$','ILocalCacheService','UniverInstanceType','_urlService','dispose$','2982utRetU','_pluginMap','getSheetId','getOwnPropertyDescriptor','uComp','IMessageService','UniverDocsUIPlugin','packageName','MenuItemType','exhaustSavingTask','UNIVER_SHEET','executeCommand','_checkCanRevert','17895JUqYUr','editHistory.panel.title','RangeProtectionPermissionEditPoint','_injector','0.20.0','display','historyAIassistantEnabled','UNIVER_CONTAINER_ID_KEY','UniverLicensePlugin','RxDisposable','IPermissionService','OTHERS','setTheme','RevertRevisionMutation','flat','HistoryLoaderService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerPlugin','top','_configService','pluginName','getUnit','registerCommand'];_0x55f3=function(){return _0xcd7365;};return _0x55f3();}const de={[M['RibbonStartGroup'][_0x53c793(0x1f0)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e['RxDisposable']{constructor(_0x5c1a49,_0x5a188a,_0x27e76e,_0x1e85f3,_0x4643b6,_0x5afc33,_0x53f35f,_0x4636de,_0x3291e1,_0xb88b91,_0x1655c2){const _0x2ebf2b=_0x53c793;super(),this[_0x2ebf2b(0x1d2)]=_0x5c1a49,this[_0x2ebf2b(0x193)]=_0x5a188a,this[_0x2ebf2b(0x19c)]=_0x27e76e,this['_historyManagerService']=_0x1e85f3,this[_0x2ebf2b(0x287)]=_0x4643b6,this['_messageService']=_0x5afc33,this[_0x2ebf2b(0x1fc)]=_0x53f35f,this[_0x2ebf2b(0x247)]=_0x4636de,this[_0x2ebf2b(0x265)]=_0x3291e1,this[_0x2ebf2b(0x1b5)]=_0xb88b91,this[_0x2ebf2b(0x1d6)]=_0x1655c2,B(this,_0x2ebf2b(0x272),null),this['_init']();}[_0x53c793(0x1fe)](){const _0x5c7760=_0x53c793;[K,q][_0x5c7760(0x25b)](_0x4b560b=>this[_0x5c7760(0x18b)]((0x0,e[_0x5c7760(0x24a)])(this[_0x5c7760(0x1d2)]['registerCommand'](_0x4b560b)))),this['disposeWithMe'](this['_componentManager']['register']('HistoryIcon',F[_0x5c7760(0x258)])),this[_0x5c7760(0x193)]['mergeMenu'](de),this[_0x5c7760(0x18b)](this[_0x5c7760(0x1d2)][_0x5c7760(0x220)](async(_0x1c4884,_0x4a5d6f)=>{const _0x46e0b4=_0x5c7760;if(_0x1c4884['id']===n[_0x46e0b4(0x1f2)]['id']){let {unitId:_0x1dd915}=_0x1c4884[_0x46e0b4(0x18e)];this[_0x46e0b4(0x232)][_0x46e0b4(0x1c8)]({'content':this[_0x46e0b4(0x287)]['t']('editHistory.panel.reverting'),'type':m[_0x46e0b4(0x20f)][_0x46e0b4(0x25d)],'duration':0x1388});let _0x50804c=this['_collaborationController']['getCollabEntity'](_0x1dd915);_0x4a5d6f!=null&&_0x4a5d6f['fromCollab']?this[_0x46e0b4(0x1a9)](_0x50804c,async()=>(setTimeout(()=>window[_0x46e0b4(0x218)][_0x46e0b4(0x203)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x50804c,async()=>{const _0x1c5d24=_0x46e0b4;let _0x63bad6=this[_0x1c5d24(0x1b5)]['getCurrentUnitOfType'](I['UniverType'][_0x1c5d24(0x1e2)]),_0x5db242=_0x63bad6==null?void 0x0:_0x63bad6['getActiveSheet']();if(!_0x5db242)return!0x1;this[_0x1c5d24(0x1b5)][_0x1c5d24(0x224)](_0x1dd915);let _0x3155c8=await this[_0x1c5d24(0x265)][_0x1c5d24(0x1c6)](_0x1dd915,I[_0x1c5d24(0x189)][_0x1c5d24(0x1e2)]);return _0x3155c8&&_0x3155c8 instanceof e['Workbook']?(await this[_0x1c5d24(0x20d)](_0x3155c8,_0x5db242[_0x1c5d24(0x1da)]()),!0x0):!0x1;});}}));}[_0x53c793(0x1a9)](_0x5f553b,_0xc13e94,_0x51b1ef=!0x1){const _0xc54f4=_0x53c793;let _0x4415c3=(0x0,N['combineLatest'])([_0x5f553b[_0xc54f4(0x26e)][_0xc54f4(0x249)],_0x5f553b['state$']])[_0xc54f4(0x21c)](async([_0x1f7344,_0x3e7a74])=>{const _0x70d6ca=_0xc54f4;if(_0x1f7344['eventID']===n[_0x70d6ca(0x237)][_0x70d6ca(0x262)]&&(_0x3e7a74==null?void 0x0:_0x3e7a74[_0x70d6ca(0x205)])===r['CollaborationStatus'][_0x70d6ca(0x24b)]&&_0x1f7344[_0x70d6ca(0x263)][_0x70d6ca(0x1ac)][_0x70d6ca(0x186)](_0x48f1f0=>_0x48f1f0['id']===n[_0x70d6ca(0x1f2)]['id'])&&await _0xc13e94()){var _0x352b36;this[_0x70d6ca(0x22d)][_0x70d6ca(0x264)](),_0x4415c3['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x70d6ca(0x272)]),await((_0x352b36=this[_0x70d6ca(0x247)])==null?void 0x0:_0x352b36[_0x70d6ca(0x1e1)]()),this[_0x70d6ca(0x232)][_0x70d6ca(0x1c2)]();}});_0x51b1ef&&(this[_0xc54f4(0x272)]=setTimeout(()=>{const _0xa87f07=_0xc54f4;_0x4415c3[_0xa87f07(0x1aa)](),this['_messageService'][_0xa87f07(0x1c8)]({'content':this[_0xa87f07(0x287)]['t'](_0xa87f07(0x1a8)),'type':m[_0xa87f07(0x20f)][_0xa87f07(0x261)],'duration':0xbb8});},0x1388));}async[_0x53c793(0x20d)](_0x322013,_0x4e16e0){const _0x32a844=_0x53c793;await this[_0x32a844(0x24c)](_0x322013,_0x4e16e0),_0x322013['activeSheet$']['pipe']((0x0,N['takeUntil'])(this[_0x32a844(0x1d7)]))[_0x32a844(0x21c)](_0x473a38=>{const _0x4742aa=_0x32a844;_0x473a38&&this[_0x4742aa(0x251)](_0x473a38);}),this['_urlService'][_0x32a844(0x192)]['pipe']((0x0,N['takeUntil'])(this[_0x32a844(0x1d7)]))[_0x32a844(0x21c)](()=>this['_updateSubUnitFromURLParams'](_0x322013,_0x4e16e0));}[_0x53c793(0x251)](_0x4eca1f,_0x5ac2f7=!0x1){const _0x3a06d6=_0x53c793;let _0x55ab61=this[_0x3a06d6(0x1d6)]['getParam']('subunit');_0x4eca1f[_0x3a06d6(0x1da)]()!==_0x55ab61&&this[_0x3a06d6(0x1d6)][_0x3a06d6(0x190)](_0x3a06d6(0x28f),_0x4eca1f[_0x3a06d6(0x1da)](),_0x5ac2f7);}async['_updateSubUnitFromURLParams'](_0x140fb9,_0x43955b){const _0x3d73cd=_0x53c793;var _0x6cc220;if(!_0x43955b||!_0x140fb9[_0x3d73cd(0x18f)](_0x43955b)){let _0x3ab5d7=_0x140fb9[_0x3d73cd(0x231)]()[0x0],_0x3ca47a=_0x140fb9[_0x3d73cd(0x18f)](_0x3ab5d7);if(!_0x3ca47a)return;this[_0x3d73cd(0x251)](_0x3ca47a,!0x0),await this[_0x3d73cd(0x1d2)][_0x3d73cd(0x1e3)](t[_0x3d73cd(0x18a)]['id'],{'unitId':_0x140fb9['getUnitId'](),'subUnitId':_0x3ab5d7});return;}((_0x6cc220=_0x140fb9[_0x3d73cd(0x1cb)]())==null?void 0x0:_0x6cc220['getSheetId']())!==_0x43955b&&await this['_commandService'][_0x3d73cd(0x1e3)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x140fb9['getUnitId'](),'subUnitId':_0x43955b});}};J=H([V(0x0,e['ICommandService']),V(0x1,M[_0x53c793(0x1a6)]),V(0x2,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x248)])),V(0x3,(0x0,e[_0x53c793(0x239)])(G)),V(0x4,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x5,M['IMessageService']),V(0x6,(0x0,e[_0x53c793(0x239)])(r['CollaborationController'])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x53c793(0x239)])(r[_0x53c793(0x1fd)])),V(0x9,e[_0x53c793(0x204)]),V(0xa,P[_0x53c793(0x23f)])],J);const Y=_0x53c793(0x199);let X=class extends e[_0x53c793(0x277)]{constructor(_0x4c8b33,_0x1ab9fb,_0x1aa8aa,_0x2043e2,_0x1039a2,_0x2098d9,_0x3eb472,_0x59e28f,_0x327736,_0x270db){const _0x568ca8=_0x53c793;super(),this[_0x568ca8(0x287)]=_0x4c8b33,this['_univerInstanceService']=_0x1ab9fb,this[_0x568ca8(0x1f8)]=_0x1aa8aa,this[_0x568ca8(0x1d2)]=_0x2043e2,this['_messageService']=_0x1039a2,this[_0x568ca8(0x228)]=_0x2098d9,this[_0x568ca8(0x233)]=_0x3eb472,this[_0x568ca8(0x1b8)]=_0x59e28f,this[_0x568ca8(0x208)]=_0x327736,this[_0x568ca8(0x1b1)]=_0x270db,B(this,_0x568ca8(0x181),new N[(_0x568ca8(0x273))](null)),B(this,'historyUniver$',this[_0x568ca8(0x181)][_0x568ca8(0x25a)]()),B(this,_0x568ca8(0x282),new e[(_0x568ca8(0x21b))]()),B(this,_0x568ca8(0x1d9),new Map()),B(this,'_internalWebWorker',null),this[_0x568ca8(0x1fe)]();}get[_0x53c793(0x26d)](){const _0x29740c=_0x53c793;return this['_historyUniver$'][_0x29740c(0x253)];}[_0x53c793(0x1fe)](){const _0x2259cf=_0x53c793;this[_0x2259cf(0x1c4)](),this[_0x2259cf(0x243)]();}[_0x53c793(0x1c4)](){const _0x2082f4=_0x53c793;var _0x10b75d;let _0x484058=(_0x10b75d=this[_0x2082f4(0x1f8)][_0x2082f4(0x244)](_0x2082f4(0x27b)))==null?_0x2082f4(0x28a):_0x10b75d,_0x1a0b06=document[_0x2082f4(0x297)](_0x484058);if(!_0x1a0b06)return;let _0x5d7f40=document['createElement']('div');_0x5d7f40['id']=Y,_0x5d7f40['dataset'][_0x2082f4(0x1dc)]=_0x2082f4(0x216),_0x5d7f40['style'][_0x2082f4(0x266)]=_0x2082f4(0x280),_0x5d7f40['style'][_0x2082f4(0x1f7)]='0',_0x5d7f40['style'][_0x2082f4(0x21a)]='0',_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x20e)]=_0x2082f4(0x217),_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x20c)]=_0x2082f4(0x217),_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x234)]='49',_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x1ea)]=_0x2082f4(0x1b4),_0x1a0b06[_0x2082f4(0x184)](_0x5d7f40);}[_0x53c793(0x243)](){const _0x33f2a4=_0x53c793;[[b[_0x33f2a4(0x276)]],[M[_0x33f2a4(0x1bf)],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x33f2a4(0x21f)],null]]}],[x[_0x33f2a4(0x18d)]],[_[_0x33f2a4(0x200)],{'override':[[_[_0x33f2a4(0x201)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x33f2a4(0x1de)]],[k[_0x33f2a4(0x1b3)]],[t[_0x33f2a4(0x1ad)],{'notExecuteFormula':!0x0}],[j[_0x33f2a4(0x24f)]],[re['UniverSheetsFormulaPlugin']],[ie[_0x33f2a4(0x195)]],[n['UniverCollaborationPlugin']],[te['UniverSheetsFilterPlugin']],[C[_0x33f2a4(0x22f)]],[ae[_0x33f2a4(0x20a)]],[O[_0x33f2a4(0x294)]],[p[_0x33f2a4(0x28e)]],[w[_0x33f2a4(0x1b6)]],[T[_0x33f2a4(0x198)]],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x33f2a4(0x1a1)]],[E['UniverSheetsDrawingPlugin']],[D[_0x33f2a4(0x268)]],[d['UniverSheetSparklinePlugin']],[f[_0x33f2a4(0x225)]],[o['UniverSheetsChartPlugin']],[s[_0x33f2a4(0x246)]],[l['UniverSheetsShapePlugin']],[u[_0x33f2a4(0x1be)]],[c['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[A[_0x33f2a4(0x252)]]][_0x33f2a4(0x25b)](([_0x5c607c,_0x52519c])=>this['registerPlugin'](_0x5c607c,_0x52519c));}[_0x53c793(0x27e)](){const _0x144d78=_0x53c793;super[_0x144d78(0x27e)](),this[_0x144d78(0x264)](),this[_0x144d78(0x1d9)][_0x144d78(0x298)]();}[_0x53c793(0x1f6)](_0x21b924,_0x2ac975,_0x2b5210){const _0x490bb5=_0x53c793;if(this[_0x490bb5(0x1d9)][_0x490bb5(0x260)](_0x21b924[_0x490bb5(0x1f9)])&&!_0x2b5210)throw Error(_0x490bb5(0x230)+_0x21b924[_0x490bb5(0x1f9)]+_0x490bb5(0x212));this[_0x490bb5(0x1d9)][_0x490bb5(0x1a7)](_0x21b924[_0x490bb5(0x1f9)],[_0x21b924,_0x2ac975]);}[_0x53c793(0x183)](){const _0x2d6b6f=_0x53c793;return Array[_0x2d6b6f(0x281)](this[_0x2d6b6f(0x1d9)]['values']());}[_0x53c793(0x19f)](_0x41de02,_0x2f97f9){const _0x495495=_0x53c793;let _0x42ba9e=document['getElementById'](Y);_0x42ba9e&&(_0x42ba9e[_0x495495(0x288)][_0x495495(0x1ea)]=_0x495495(0x23c),this[_0x495495(0x284)](_0x41de02,Y,_0x2f97f9));}['unMountHistoryContent'](){const _0x4d7b25=_0x53c793;var _0x3ff876;this['_disposableCollection'][_0x4d7b25(0x27e)](),(_0x3ff876=this['historyUniver'])==null||_0x3ff876[_0x4d7b25(0x27e)](),this['_historyUniver$'][_0x4d7b25(0x215)](null);let _0x6df855=document[_0x4d7b25(0x297)](Y);_0x6df855&&(_0x6df855[_0x4d7b25(0x288)][_0x4d7b25(0x1ea)]=_0x4d7b25(0x1b4),this['_internalWebWorker']&&(this[_0x4d7b25(0x290)]['terminate'](),this[_0x4d7b25(0x290)]=null));}[_0x53c793(0x284)](_0xfb3852,_0x1c48b1,_0xcb8c22){const _0x8070d6=_0x53c793;var _0x6557e6,_0x378166,_0x3d49c7,_0x34e3a8;if(this[_0x8070d6(0x26d)])return;let _0x563477=new e[(_0x8070d6(0x1b7))]({'locales':{[this[_0x8070d6(0x287)]['getCurrentLocale']()]:this[_0x8070d6(0x287)]['getLocales']()},'override':[[e[_0x8070d6(0x196)],{'useClass':r[_0x8070d6(0x28d)]}]]}),_0x1ab116=_0x563477['__getInjector']();this[_0x8070d6(0x18b)](this['_themeService'][_0x8070d6(0x1d3)][_0x8070d6(0x21c)](_0x56dc8b=>{const _0x8bfa9e=_0x8070d6;_0x1ab116[_0x8bfa9e(0x1ba)](e[_0x8bfa9e(0x242)])[_0x8bfa9e(0x1d0)](_0x56dc8b);})),this[_0x8070d6(0x18b)](this[_0x8070d6(0x1b1)][_0x8070d6(0x24e)][_0x8070d6(0x21c)](_0x2f053f=>{const _0x44cc80=_0x8070d6;_0x1ab116[_0x44cc80(0x1ba)](e[_0x44cc80(0x242)])[_0x44cc80(0x1f1)](_0x2f053f);})),_0x1ab116[_0x8070d6(0x1ba)](e[_0x8070d6(0x1b9)])['setLocale'](this[_0x8070d6(0x287)]['getCurrentLocale']()),_0x1ab116[_0x8070d6(0x1ba)](e[_0x8070d6(0x19b)])[_0x8070d6(0x187)](r[_0x8070d6(0x1d1)],this[_0x8070d6(0x1f8)][_0x8070d6(0x244)](r[_0x8070d6(0x1d1)]));let _0x51b850=this[_0x8070d6(0x1f8)]['getConfig'](a['LS_CONFIG_KEY']);_0x51b850&&_0x563477['registerPlugin'](a['UniverLicensePlugin'],{'license':_0x51b850['ls']});let _0x38f167=(_0x6557e6=this[_0x8070d6(0x1f8)][_0x8070d6(0x244)]('edit-history-loader.config'))==null?void 0x0:_0x6557e6['workerURL'],_0x4a0a16=!!_0x38f167;_0x4a0a16&&(this[_0x8070d6(0x290)]=_0x38f167 instanceof Worker?_0x38f167:null,_0x563477[_0x8070d6(0x1f6)](S[_0x8070d6(0x22b)],{'workerURL':_0x38f167})),this[_0x8070d6(0x1d9)]['forEach'](([_0x52c2d7,_0x4efb98])=>{const _0x56a4c5=_0x8070d6;_0x563477[_0x56a4c5(0x1f6)](_0x52c2d7,_0x4efb98);}),_0x563477[_0x8070d6(0x1f6)](i[_0x8070d6(0x227)],{'historyListServerUrl':(_0x378166=this['_configService'][_0x8070d6(0x244)](_0x8070d6(0x295)))==null?void 0x0:_0x378166[_0x8070d6(0x235)],'historyPanelComponentKey':(_0x3d49c7=this[_0x8070d6(0x1f8)][_0x8070d6(0x244)](_0x8070d6(0x295)))==null?void 0x0:_0x3d49c7[_0x8070d6(0x1a4)],'historyPanelHidden':(_0x34e3a8=this[_0x8070d6(0x1f8)][_0x8070d6(0x244)]('edit-history-loader.config'))==null?void 0x0:_0x34e3a8['historyPanelHidden']}),_0x1ab116[_0x8070d6(0x256)](_0x2b710f=>{this['_initListener'](_0x2b710f,_0xfb3852);}),this[_0x8070d6(0x181)][_0x8070d6(0x215)](_0x563477);let _0x70a0a4=_0x1ab116[_0x8070d6(0x1ba)](i[_0x8070d6(0x283)]),_0x382c7f=this[_0x8070d6(0x1e4)](_0xfb3852),_0x70860a=()=>{const _0x3716e6=_0x8070d6;_0xcb8c22?_0x70a0a4['triggerCustomVersions'](_0xfb3852,_0x1c48b1,_0x382c7f,_0xcb8c22):_0x70a0a4[_0x3716e6(0x279)](_0xfb3852,_0x1c48b1,_0x382c7f);};if(this['_messageService']['show']({'content':this[_0x8070d6(0x287)]['t'](_0x8070d6(0x1a5)),'type':m[_0x8070d6(0x20f)]['Loading']}),_0x4a0a16)try{_0x1ab116[_0x8070d6(0x1ba)](S[_0x8070d6(0x28c)])[_0x8070d6(0x20b)]()['then'](()=>{_0x70860a();});}catch{_0x70860a();}else _0x70860a();}[_0x53c793(0x211)](_0x238ad9,_0x255b6c){const _0x107f27=_0x53c793;let _0x2c85ff=_0x238ad9[_0x107f27(0x1ba)](i[_0x107f27(0x283)]);this[_0x107f27(0x282)][_0x107f27(0x1c1)](_0x2c85ff[_0x107f27(0x254)][_0x107f27(0x21c)](_0xdccd56=>{const _0x1c2be1=_0x107f27;switch(_0xdccd56){case i[_0x1c2be1(0x270)][_0x1c2be1(0x269)]:this['_dialogService']['closeAll'](),this['_sidebarService'][_0x1c2be1(0x289)]();break;case i[_0x1c2be1(0x270)][_0x1c2be1(0x1cc)]:this[_0x1c2be1(0x1d2)][_0x1c2be1(0x1e3)](q['id']),this[_0x1c2be1(0x264)]();break;case i[_0x1c2be1(0x270)]['Error']:this[_0x1c2be1(0x264)](),this[_0x1c2be1(0x232)][_0x1c2be1(0x1c8)]({'content':this[_0x1c2be1(0x287)]['t'](_0x1c2be1(0x1af)),'type':m[_0x1c2be1(0x20f)][_0x1c2be1(0x261)],'duration':0xbb8});break;default:break;}})),this[_0x107f27(0x282)][_0x107f27(0x1c1)](_0x2c85ff[_0x107f27(0x22e)][_0x107f27(0x21c)](async _0x3f8625=>{const _0x5ee154=_0x107f27;_0x3f8625&&this[_0x5ee154(0x1d2)][_0x5ee154(0x1e3)](n['RevertRevisionMutation']['id'],{'unitId':_0x255b6c,'revision':_0x3f8625});}));}[_0x53c793(0x1e4)](_0x4d0a72){const _0x1a2bd3=_0x53c793;let _0x596855=this['_univerInstanceService']['getUnit'](_0x4d0a72)['getSheets']()['map'](_0x19ef98=>_0x19ef98['getSheetId']()),_0x5f2528=new t['WorkbookEditablePermission'](_0x4d0a72)['id'],_0x841f8b=_0x596855[_0x1a2bd3(0x1ae)](_0x1a3ed5=>new t[(_0x1a2bd3(0x182))](_0x4d0a72,_0x1a3ed5)['id']),_0x20de46=_0x596855['map'](_0x310c6d=>this[_0x1a2bd3(0x233)][_0x1a2bd3(0x188)](_0x4d0a72,_0x310c6d)[_0x1a2bd3(0x1ae)](_0xda5290=>new t['RangeProtectionPermissionEditPoint'](_0x4d0a72,_0x310c6d,_0xda5290['permissionId'])['id']))[_0x1a2bd3(0x1f3)](),_0x57fc98=new t['WorkbookRecoverHistoryPermission'](_0x4d0a72)['id'];return this[_0x1a2bd3(0x228)][_0x1a2bd3(0x26f)]([_0x5f2528,..._0x841f8b,..._0x20de46,_0x57fc98])['every'](_0x467d81=>!!_0x467d81[_0x1a2bd3(0x253)]);}};X=H([V(0x0,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x1,e[_0x53c793(0x204)]),V(0x2,e[_0x53c793(0x19b)]),V(0x3,e[_0x53c793(0x291)]),V(0x4,M[_0x53c793(0x1dd)]),V(0x5,e[_0x53c793(0x1ef)]),V(0x6,(0x0,e['Inject'])(t[_0x53c793(0x286)])),V(0x7,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x21f)])),V(0x8,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x185)])),V(0x9,(0x0,e[_0x53c793(0x239)])(e['ThemeService']))],X);let Z=class extends e[_0x53c793(0x292)]{constructor(_0x3ce967=R,_0x1f0953,_0x37b6cd){const _0x19499a=_0x53c793;super(),this['_config']=_0x3ce967,this[_0x19499a(0x1e8)]=_0x1f0953,this[_0x19499a(0x1f8)]=_0x37b6cd;let {menu:_0x4261ca,..._0xc9913b}=(0x0,e[_0x19499a(0x1bc)])({},R,this[_0x19499a(0x1c9)]);_0x4261ca&&this[_0x19499a(0x1f8)][_0x19499a(0x187)]('menu',_0x4261ca,{'merge':!0x0}),this[_0x19499a(0x1f8)][_0x19499a(0x187)](L,_0xc9913b),this['_config'][_0x19499a(0x27f)]&&this[_0x19499a(0x1f8)][_0x19499a(0x187)](_0x19499a(0x27b),this[_0x19499a(0x1c9)]['univerContainerId']);}['onStarting'](){const _0x4f931e=_0x53c793;[[G,{'useClass':X}],[J]][_0x4f931e(0x25b)](_0x312267=>this[_0x4f931e(0x1e8)][_0x4f931e(0x1c1)](_0x312267));}['onSteady'](){const _0x34448e=_0x53c793;this[_0x34448e(0x1e8)][_0x34448e(0x1ba)](J);}};B(Z,'type',e[_0x53c793(0x1d5)][_0x53c793(0x1ca)]),B(Z,_0x53c793(0x1f9),_0x53c793(0x18c)),B(Z,_0x53c793(0x1df),ce),B(Z,_0x53c793(0x1a0),le),Z=H([(0x0,e[_0x53c793(0x1cd)])(a[_0x53c793(0x1ed)]),V(0x1,(0x0,e['Inject'])(e['Injector'])),V(0x2,e[_0x53c793(0x19b)])],Z);let Q=class extends e[_0x53c793(0x1ee)]{constructor(_0x5ccf19,_0x207cdd,_0x17f093,_0xbbe908,_0x56bda0,_0xaf9458,_0x40fac9,_0x31015f,_0x37e35a,_0x36a5bf,_0x23197d){const _0x4b8a20=_0x53c793;super(),this[_0x4b8a20(0x1d2)]=_0x5ccf19,this[_0x4b8a20(0x193)]=_0x207cdd,this[_0x4b8a20(0x19c)]=_0x17f093,this[_0x4b8a20(0x22d)]=_0xbbe908,this['_localeService']=_0x56bda0,this[_0x4b8a20(0x232)]=_0xaf9458,this[_0x4b8a20(0x1fc)]=_0x40fac9,this[_0x4b8a20(0x247)]=_0x31015f,this[_0x4b8a20(0x265)]=_0x37e35a,this[_0x4b8a20(0x1b5)]=_0x36a5bf,this[_0x4b8a20(0x1d6)]=_0x23197d,B(this,'_revertErrorTimer',null),this[_0x4b8a20(0x1fe)]();}[_0x53c793(0x1fe)](){const _0x5d31a2=_0x53c793;[K,q][_0x5d31a2(0x25b)](_0x1b5c5c=>this[_0x5d31a2(0x18b)]((0x0,e[_0x5d31a2(0x24a)])(this[_0x5d31a2(0x1d2)][_0x5d31a2(0x1fb)](_0x1b5c5c)))),this[_0x5d31a2(0x18b)](this[_0x5d31a2(0x19c)][_0x5d31a2(0x278)](_0x5d31a2(0x258),F['HistoryIcon'])),this[_0x5d31a2(0x193)]['mergeMenu'](de),this[_0x5d31a2(0x18b)](this[_0x5d31a2(0x1d2)][_0x5d31a2(0x220)](async(_0x2e4832,_0x45c4a8)=>{const _0xa3b95a=_0x5d31a2;if(_0x2e4832['id']===n['RevertRevisionMutation']['id']){let {unitId:_0x20f411}=_0x2e4832[_0xa3b95a(0x18e)];this[_0xa3b95a(0x232)][_0xa3b95a(0x1c8)]({'content':this[_0xa3b95a(0x287)]['t']('editHistory.panel.reverting'),'type':m[_0xa3b95a(0x20f)][_0xa3b95a(0x25d)],'duration':0x1388});let _0x3da2ca=this[_0xa3b95a(0x1fc)][_0xa3b95a(0x26b)](_0x20f411);_0x45c4a8!=null&&_0x45c4a8[_0xa3b95a(0x275)]?this[_0xa3b95a(0x1a9)](_0x3da2ca,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x3da2ca,async()=>{const _0x46ad87=_0xa3b95a;let _0x2c2147=this[_0x46ad87(0x1b5)][_0x46ad87(0x27a)](I[_0x46ad87(0x189)]['UNIVER_SHEET']),_0x117390=_0x2c2147==null?void 0x0:_0x2c2147['getActiveSheet']();if(!_0x117390)return!0x1;this[_0x46ad87(0x1b5)][_0x46ad87(0x224)](_0x20f411);let _0x590ee3=await this[_0x46ad87(0x265)]['loadUnit'](_0x20f411,I[_0x46ad87(0x189)][_0x46ad87(0x1e2)]);return _0x590ee3&&_0x590ee3 instanceof e['Workbook']?(await this[_0x46ad87(0x20d)](_0x590ee3,_0x117390['getSheetId']()),!0x0):!0x1;});}}));}[_0x53c793(0x1a9)](_0x32f603,_0x2e75c3,_0x53b994=!0x1){const _0x60e47a=_0x53c793;let _0xeec11=(0x0,N[_0x60e47a(0x28b)])([_0x32f603[_0x60e47a(0x26e)][_0x60e47a(0x249)],_0x32f603[_0x60e47a(0x250)]])['subscribe'](async([_0x2b40dd,_0x4f8e16])=>{const _0x16daea=_0x60e47a;if(_0x2b40dd[_0x16daea(0x222)]===n[_0x16daea(0x237)][_0x16daea(0x262)]&&(_0x4f8e16==null?void 0x0:_0x4f8e16[_0x16daea(0x205)])===r['CollaborationStatus'][_0x16daea(0x24b)]&&_0x2b40dd['data'][_0x16daea(0x1ac)]['some'](_0x37f6d1=>_0x37f6d1['id']===n[_0x16daea(0x1f2)]['id'])&&await _0x2e75c3()){var _0x483111;this[_0x16daea(0x22d)][_0x16daea(0x264)](),_0xeec11[_0x16daea(0x1aa)](),this[_0x16daea(0x272)]&&clearTimeout(this['_revertErrorTimer']),await((_0x483111=this[_0x16daea(0x247)])==null?void 0x0:_0x483111[_0x16daea(0x1e1)]());}});_0x53b994&&(this[_0x60e47a(0x272)]=setTimeout(()=>{const _0x3e95be=_0x60e47a;_0xeec11[_0x3e95be(0x1aa)](),this[_0x3e95be(0x232)][_0x3e95be(0x1c8)]({'content':this[_0x3e95be(0x287)]['t']('editHistory.panel.revertFailed'),'type':m['MessageType'][_0x3e95be(0x261)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x2f8a7c,_0x32de29){const _0x392eea=_0x53c793;await this['_updateSubUnitFromURLParams'](_0x2f8a7c,_0x32de29),_0x2f8a7c[_0x392eea(0x1bd)]['pipe']((0x0,N['takeUntil'])(this[_0x392eea(0x1d7)]))[_0x392eea(0x21c)](_0x23df2b=>{const _0x3afcd3=_0x392eea;_0x23df2b&&this[_0x3afcd3(0x251)](_0x23df2b);}),this['_urlService']['urlChange$']['pipe']((0x0,N[_0x392eea(0x226)])(this[_0x392eea(0x1d7)]))['subscribe'](()=>this[_0x392eea(0x24c)](_0x2f8a7c,_0x32de29));}[_0x53c793(0x251)](_0x5e635d,_0x15c8c1=!0x1){const _0x1ee398=_0x53c793;let _0x22a6f4=this[_0x1ee398(0x1d6)][_0x1ee398(0x245)](_0x1ee398(0x28f));_0x5e635d[_0x1ee398(0x1da)]()!==_0x22a6f4&&this[_0x1ee398(0x1d6)][_0x1ee398(0x190)](_0x1ee398(0x28f),_0x5e635d[_0x1ee398(0x1da)](),_0x15c8c1);}async[_0x53c793(0x24c)](_0xa89ae1,_0x5d42fc){const _0x33e3bc=_0x53c793;var _0x41f4ed;if(!_0x5d42fc||!_0xa89ae1[_0x33e3bc(0x18f)](_0x5d42fc)){let _0x3cd69f=_0xa89ae1[_0x33e3bc(0x231)]()[0x0],_0x12d00d=_0xa89ae1['getSheetBySheetId'](_0x3cd69f);if(!_0x12d00d)return;this[_0x33e3bc(0x251)](_0x12d00d,!0x0),await this[_0x33e3bc(0x1d2)][_0x33e3bc(0x1e3)](t[_0x33e3bc(0x18a)]['id'],{'unitId':_0xa89ae1[_0x33e3bc(0x221)](),'subUnitId':_0x3cd69f});return;}((_0x41f4ed=_0xa89ae1['getActiveSheet']())==null?void 0x0:_0x41f4ed[_0x33e3bc(0x1da)]())!==_0x5d42fc&&await this[_0x33e3bc(0x1d2)]['executeCommand'](t[_0x33e3bc(0x18a)]['id'],{'unitId':_0xa89ae1['getUnitId'](),'subUnitId':_0x5d42fc});}};Q=H([V(0x0,e[_0x53c793(0x291)]),V(0x1,M[_0x53c793(0x1a6)]),V(0x2,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x248)])),V(0x3,(0x0,e[_0x53c793(0x239)])(G)),V(0x4,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x5,M['IMessageService']),V(0x6,(0x0,e[_0x53c793(0x239)])(r['CollaborationController'])),V(0x7,r[_0x53c793(0x1d4)]),V(0x8,(0x0,e['Inject'])(r[_0x53c793(0x1fd)])),V(0x9,e[_0x53c793(0x204)]),V(0xa,P['IURLService'])],Q);let $=class extends e[_0x53c793(0x292)]{constructor(_0x505c1b=R,_0x7cd3c1,_0x24450a){const _0x143a4e=_0x53c793;super(),this[_0x143a4e(0x1c9)]=_0x505c1b,this['_injector']=_0x7cd3c1,this[_0x143a4e(0x1f8)]=_0x24450a;let {menu:_0x2254b9,..._0x2fe2f4}=(0x0,e['merge'])({},R,this['_config']);_0x2254b9&&this[_0x143a4e(0x1f8)][_0x143a4e(0x187)](_0x143a4e(0x1a3),_0x2254b9,{'merge':!0x0}),this[_0x143a4e(0x1f8)][_0x143a4e(0x187)](L,_0x2fe2f4),this['_config'][_0x143a4e(0x27f)]&&this[_0x143a4e(0x1f8)]['setConfig'](U,this[_0x143a4e(0x1c9)][_0x143a4e(0x27f)]);}[_0x53c793(0x296)](){const _0x44f041=_0x53c793;[[G],[Q]][_0x44f041(0x25b)](_0x5e9b13=>this['_injector']['add'](_0x5e9b13));}[_0x53c793(0x17f)](){const _0x3e07ba=_0x53c793;this[_0x3e07ba(0x1e8)][_0x3e07ba(0x1ba)](Q);}};function _0x3aee(_0x1c5990,_0x4305d8){_0x1c5990=_0x1c5990-0x17f;const _0x55f39b=_0x55f3();let _0x3aee4a=_0x55f39b[_0x1c5990];return _0x3aee4a;}B($,_0x53c793(0x1c3),e[_0x53c793(0x1d5)][_0x53c793(0x1ca)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,'packageName',ce),B($,'version',le),$=H([(0x0,e['DependentOn'])(a[_0x53c793(0x1ed)]),V(0x1,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x267)])),V(0x2,e[_0x53c793(0x19b)])],$),exports[_0x53c793(0x274)]=L,Object[_0x53c793(0x21e)](exports,_0x53c793(0x1f4),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x53c793(0x26a),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x53c793(0x229)]=K,exports[_0x53c793(0x1ec)]=U,exports['UNIVER_HISTORY_CONTAINER_ID']=W,Object[_0x53c793(0x21e)](exports,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x53c793(0x21e)](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x30cee0=_0x8e5c;(function(_0x257f7e,_0x41a4a2){const _0x906ad9=_0x8e5c,_0x4de9f5=_0x257f7e();while(!![]){try{const _0x4b5638=parseInt(_0x906ad9(0x198))/0x1+parseInt(_0x906ad9(0x1cb))/0x2+parseInt(_0x906ad9(0x215))/0x3+-parseInt(_0x906ad9(0x1d6))/0x4+-parseInt(_0x906ad9(0x174))/0x5+parseInt(_0x906ad9(0x1bf))/0x6+parseInt(_0x906ad9(0x21b))/0x7;if(_0x4b5638===_0x41a4a2)break;else _0x4de9f5['push'](_0x4de9f5['shift']());}catch(_0x4f00d2){_0x4de9f5['push'](_0x4de9f5['shift']());}}}(_0x4791,0x8eec8));import{CommandType as _0x417d54,DependentOn as _0xd3d8f5,Disposable as _0x38c581,DisposableCollection as _0x57be15,IAuthzIoService as _0x127ad8,ICommandService as _0x10df23,IConfigService as _0x4d97a0,IPermissionService as _0x38da5f,IUniverInstanceService as _0x757a60,Inject as _0x176299,Injector as _0xfd563a,LocaleService as _0x44bc99,Plugin as _0x852139,RxDisposable as _0x374fa8,ThemeService as _0x5ddc3f,Univer as _0x2fd0f5,UniverInstanceType as _0x148251,Workbook as _0x48882a,merge as _0x3896f6,toDisposable as _0x3e927d}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x51a168,RangeProtectionRuleModel as _0x1cbb88,SetWorksheetActivateCommand as _0x14a98d,UniverSheetsPlugin as _0x3f206c,WorkbookEditablePermission as _0x43a0ac,WorkbookRecoverHistoryPermission as _0x57d2d6,WorkbookViewHistoryPermission as _0x1f2f44,WorksheetEditPermission as _0x49770f,getSheetCommandTarget as _0x4610c1}from'@univerjs/sheets';import{CollaborationEvent as _0x288cbe,RevertRevisionMutation as _0x5b0966,UniverCollaborationPlugin as _0x1c3c75}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x2ed596,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x338bd6,CollaborationController as _0x261ebc,CollaborationStatus as _0x15958f,DataLoaderService as _0x5f3260,ILocalCacheService as _0x3911fe}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x405830,HistoryModeStatus as _0x2da942,UniverEditHistoryViewerMobilePlugin as _0x25046b,UniverEditHistoryViewerPlugin as _0x18f23d}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3304c0,UniverLicensePlugin as _0xc828e}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x37e97d}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x298f86}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2f949d}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x17614d}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x4f732f}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0xbfd183}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5c9f50}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x5b485b}from'@univerjs/data-validation';import{MessageType as _0x1096cb}from'@univerjs/design';import{UniverDocsPlugin as _0x5ce928}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x57d833}from'@univerjs/docs-ui';import{IImageIoService as _0x1bb8d0,UniverDrawingPlugin as _0x4da563}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x469f48}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x18567a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x24b5f8}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x8802b6}from'@univerjs/network';import{IRemoteInstanceService as _0x4453db,UniverRPCMainThreadPlugin as _0xb2c054}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x58d35e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x371ab4}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5c9d52}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x396896,UniverSheetsDataValidationUIPlugin as _0x212bc8}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x2318b1}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1d2814}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x44e6f6}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x7d139b}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x400283}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x532a31}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x34cfd3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x505b2c}from'@univerjs/sheets-hyper-link-ui';function _0x8e5c(_0x5a14ae,_0x471d23){_0x5a14ae=_0x5a14ae-0x167;const _0x479101=_0x4791();let _0x8e5cec=_0x479101[_0x5a14ae];return _0x8e5cec;}import{UniverSheetsNumfmtPlugin as _0x2e80bd}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x1591b5}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x2a739f,UniverSheetsUIPlugin as _0x4a4c81,getCurrentRangeDisable$ as _0x2eeeed}from'@univerjs/sheets-ui';import{ComponentManager as _0x3fa206,IDialogService as _0x3375b0,IMenuManagerService as _0x49b1ee,IMessageService as _0x3095a2,ISidebarService as _0x22d10b,MenuItemType as _0x20b139,RibbonStartGroup as _0xdbe3ab,UniverMobileUIPlugin as _0x567c9c,UniverUIPlugin as _0x97cbce,getMenuHiddenObservable as _0x319495}from'@univerjs/ui';import{BehaviorSubject as _0x6655f1,combineLatest as _0x451b3f,takeUntil as _0xaee6e3}from'rxjs';import{IURLService as _0x53cf4f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x2ba663}from'@univerjs/icons';import{UniverType as _0x5295ea}from'@univerjs/protocol';const L=_0x30cee0(0x18b);Symbol(L);const R={};function z(_0x557299){'@babel/helpers - typeof';const _0x207d43=_0x30cee0;return z=typeof Symbol==_0x207d43(0x203)&&typeof Symbol[_0x207d43(0x205)]==_0x207d43(0x173)?function(_0x1fe456){return typeof _0x1fe456;}:function(_0x11cf89){const _0x1daa16=_0x207d43;return _0x11cf89&&typeof Symbol==_0x1daa16(0x203)&&_0x11cf89['constructor']===Symbol&&_0x11cf89!==Symbol[_0x1daa16(0x18a)]?_0x1daa16(0x173):typeof _0x11cf89;},z(_0x557299);}function ot(_0x4d7af4,_0xb12288){const _0x2626eb=_0x30cee0;if(z(_0x4d7af4)!=_0x2626eb(0x180)||!_0x4d7af4)return _0x4d7af4;var _0x3846b2=_0x4d7af4[Symbol[_0x2626eb(0x16d)]];if(_0x3846b2!==void 0x0){var _0x369e18=_0x3846b2[_0x2626eb(0x1a3)](_0x4d7af4,_0xb12288||_0x2626eb(0x1fb));if(z(_0x369e18)!='object')return _0x369e18;throw TypeError(_0x2626eb(0x1c8));}return(_0xb12288===_0x2626eb(0x224)?String:Number)(_0x4d7af4);}function st(_0x1636ce){const _0x10af06=_0x30cee0;var _0x409b02=ot(_0x1636ce,_0x10af06(0x224));return z(_0x409b02)==_0x10af06(0x173)?_0x409b02:_0x409b02+'';}function B(_0x12d3db,_0x1a45b2,_0x7cd817){return(_0x1a45b2=st(_0x1a45b2))in _0x12d3db?Object['defineProperty'](_0x12d3db,_0x1a45b2,{'value':_0x7cd817,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12d3db[_0x1a45b2]=_0x7cd817,_0x12d3db;}function V(_0x30a9c4,_0x35e631){return function(_0x5d52af,_0x22e5e7){_0x35e631(_0x5d52af,_0x22e5e7,_0x30a9c4);};}function H(_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2){const _0x1a6164=_0x30cee0;var _0x57781b=arguments[_0x1a6164(0x1ba)],_0x27a47d=_0x57781b<0x3?_0x210d5c:_0x4d9ac2===null?_0x4d9ac2=Object['getOwnPropertyDescriptor'](_0x210d5c,_0x4d0bdd):_0x4d9ac2,_0x19abbe;if(typeof Reflect==_0x1a6164(0x180)&&typeof Reflect[_0x1a6164(0x219)]==_0x1a6164(0x203))_0x27a47d=Reflect[_0x1a6164(0x219)](_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2);else{for(var _0x20ba3b=_0x553ac0['length']-0x1;_0x20ba3b>=0x0;_0x20ba3b--)(_0x19abbe=_0x553ac0[_0x20ba3b])&&(_0x27a47d=(_0x57781b<0x3?_0x19abbe(_0x27a47d):_0x57781b>0x3?_0x19abbe(_0x210d5c,_0x4d0bdd,_0x27a47d):_0x19abbe(_0x210d5c,_0x4d0bdd))||_0x27a47d);}return _0x57781b>0x3&&_0x27a47d&&Object[_0x1a6164(0x212)](_0x210d5c,_0x4d0bdd,_0x27a47d),_0x27a47d;}const U='UNIVER_CONTAINER_ID',W=_0x30cee0(0x1e8);let G=class extends _0x38c581{constructor(_0x336186,_0x3bc2b4,_0x154da6,_0x35da6c,_0x1a8e69,_0x2165c6,_0xe54ae,_0x49a10d,_0xca44ca,_0x3fe9c9){const _0xff1944=_0x30cee0;super(),this[_0xff1944(0x1a5)]=_0x336186,this[_0xff1944(0x16c)]=_0x3bc2b4,this[_0xff1944(0x21c)]=_0x154da6,this[_0xff1944(0x225)]=_0x35da6c,this[_0xff1944(0x1d0)]=_0x1a8e69,this[_0xff1944(0x1f6)]=_0x2165c6,this['_selectionProtectionRuleModel']=_0xe54ae,this[_0xff1944(0x191)]=_0x49a10d,this[_0xff1944(0x1ae)]=_0xca44ca,this[_0xff1944(0x16b)]=_0x3fe9c9,B(this,_0xff1944(0x1c2),new _0x6655f1(null)),B(this,_0xff1944(0x16a),this['_historyUniver$'][_0xff1944(0x20e)]()),B(this,'_disposableCollection',new _0x57be15()),B(this,'_pluginMap',new Map()),B(this,_0xff1944(0x1d4),null),this[_0xff1944(0x1e3)]();}get['historyUniver'](){const _0x441931=_0x30cee0;return this['_historyUniver$'][_0x441931(0x200)];}[_0x30cee0(0x1e3)](){const _0x54d37c=_0x30cee0;this['_initContainer'](),this[_0x54d37c(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x5b03d4=_0x30cee0;var _0x31a56e;let _0x531b1c=(_0x31a56e=this[_0x5b03d4(0x21c)][_0x5b03d4(0x1e9)]('UNIVER_CONTAINER_ID'))==null?_0x5b03d4(0x1ce):_0x31a56e,_0x3043f0=document[_0x5b03d4(0x189)](_0x531b1c);if(!_0x3043f0)return;let _0x10cd8a=document[_0x5b03d4(0x201)](_0x5b03d4(0x18c));_0x10cd8a['id']=W,_0x10cd8a['dataset'][_0x5b03d4(0x1f7)]='history-container',_0x10cd8a['style'][_0x5b03d4(0x1ad)]=_0x5b03d4(0x196),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1be)]='0',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x17d)]='0',_0x10cd8a[_0x5b03d4(0x1b1)]['width']=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1e1)]=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x202)]='49',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1ac)]='none',_0x3043f0[_0x5b03d4(0x207)](_0x10cd8a);}[_0x30cee0(0x1dd)](){const _0x1c7174=_0x30cee0;[[_0x24b5f8],[_0x97cbce,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x4a4c81],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x7d139b],[_0x58d35e],[_0x371ab4],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x212bc8],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]][_0x1c7174(0x1b6)](([_0x231c68,_0x342c19])=>this['registerPlugin'](_0x231c68,_0x342c19));}[_0x30cee0(0x1d9)](){const _0x589a22=_0x30cee0;super[_0x589a22(0x1d9)](),this[_0x589a22(0x221)](),this[_0x589a22(0x1b5)][_0x589a22(0x181)]();}['registerPlugin'](_0x548a52,_0x5bec4a,_0xab076e){const _0x38ccd5=_0x30cee0;if(this['_pluginMap'][_0x38ccd5(0x216)](_0x548a52['pluginName'])&&!_0xab076e)throw Error(_0x38ccd5(0x206)+_0x548a52[_0x38ccd5(0x1a0)]+_0x38ccd5(0x176));this[_0x38ccd5(0x1b5)][_0x38ccd5(0x1bd)](_0x548a52[_0x38ccd5(0x1a0)],[_0x548a52,_0x5bec4a]);}[_0x30cee0(0x186)](){const _0x274771=_0x30cee0;return Array[_0x274771(0x18e)](this['_pluginMap'][_0x274771(0x197)]());}[_0x30cee0(0x209)](_0x372aa2,_0xbf69a4){const _0x5b10c9=_0x30cee0;let _0x52469a=document[_0x5b10c9(0x189)](W);_0x52469a&&(_0x52469a[_0x5b10c9(0x1b1)][_0x5b10c9(0x1ac)]=_0x5b10c9(0x1c6),this[_0x5b10c9(0x1e4)](_0x372aa2,W,_0xbf69a4));}['unMountHistoryContent'](){const _0x4e54f2=_0x30cee0;var _0x2fdcd5;this[_0x4e54f2(0x1fd)][_0x4e54f2(0x1d9)](),(_0x2fdcd5=this[_0x4e54f2(0x1f4)])==null||_0x2fdcd5[_0x4e54f2(0x1d9)](),this[_0x4e54f2(0x1c2)][_0x4e54f2(0x20f)](null);let _0x5d0919=document[_0x4e54f2(0x189)](W);_0x5d0919&&(_0x5d0919[_0x4e54f2(0x1b1)][_0x4e54f2(0x1ac)]=_0x4e54f2(0x21e),this[_0x4e54f2(0x1d4)]&&(this[_0x4e54f2(0x1d4)][_0x4e54f2(0x218)](),this[_0x4e54f2(0x1d4)]=null));}['_initUniver'](_0x4e228,_0x5dca58,_0x40799c){const _0x33a7b2=_0x30cee0;var _0x3eeb7f,_0x19f890,_0x379c13,_0x5ed563,_0x185614;if(this[_0x33a7b2(0x1f4)])return;let _0x3d8a97=new _0x2fd0f5({'locales':{[this[_0x33a7b2(0x1a5)][_0x33a7b2(0x190)]()]:this[_0x33a7b2(0x1a5)][_0x33a7b2(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x175d87=_0x3d8a97[_0x33a7b2(0x1fe)]();this[_0x33a7b2(0x1c7)](this[_0x33a7b2(0x16b)][_0x33a7b2(0x1cf)][_0x33a7b2(0x1b9)](_0x3f9ea6=>{const _0x125a91=_0x33a7b2;_0x175d87[_0x125a91(0x192)](_0x5ddc3f)[_0x125a91(0x19a)](_0x3f9ea6);})),this[_0x33a7b2(0x1c7)](this['_themeService'][_0x33a7b2(0x178)][_0x33a7b2(0x1b9)](_0x20e7e2=>{const _0x329cd7=_0x33a7b2;_0x175d87['get'](_0x5ddc3f)[_0x329cd7(0x1ab)](_0x20e7e2);})),_0x175d87[_0x33a7b2(0x192)](_0x44bc99)[_0x33a7b2(0x20c)](this['_localeService'][_0x33a7b2(0x190)]()),_0x175d87[_0x33a7b2(0x192)](_0x4d97a0)['setConfig'](_0x338bd6,this[_0x33a7b2(0x21c)]['getConfig'](_0x338bd6));let _0x1be802=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x3304c0);_0x1be802&&_0x3d8a97[_0x33a7b2(0x1d1)](_0xc828e,{'license':_0x1be802['ls']});let _0x370f9=(_0x3eeb7f=this['_configService'][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x3eeb7f[_0x33a7b2(0x20a)],_0x4ec623=!!_0x370f9;_0x4ec623&&(this[_0x33a7b2(0x1d4)]=_0x370f9 instanceof Worker?_0x370f9:null,_0x3d8a97[_0x33a7b2(0x1d1)](_0xb2c054,{'workerURL':_0x370f9})),this[_0x33a7b2(0x1b5)][_0x33a7b2(0x1b6)](([_0x3d35df,_0x1b4127])=>{_0x3d8a97['registerPlugin'](_0x3d35df,_0x1b4127);}),_0x3d8a97['registerPlugin'](_0x18f23d,{'historyListServerUrl':(_0x19f890=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x19f890[_0x33a7b2(0x1c3)],'historyPanelComponentKey':(_0x379c13=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x379c13[_0x33a7b2(0x19c)],'historyPanelHidden':(_0x5ed563=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x5ed563[_0x33a7b2(0x213)],'historyAIassistantEnabled':(_0x185614=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x185614[_0x33a7b2(0x211)]}),_0x175d87['invoke'](_0x5dbe6f=>{const _0x2cfdf1=_0x33a7b2;this[_0x2cfdf1(0x1a2)](_0x5dbe6f,_0x4e228);}),this['_historyUniver$'][_0x33a7b2(0x20f)](_0x3d8a97);let _0x83950f=_0x175d87[_0x33a7b2(0x192)](_0x405830),_0x55a52f=this['_checkCanRevert'](_0x4e228),_0x46b98c=()=>{const _0xbdadd5=_0x33a7b2;_0x40799c?_0x83950f[_0xbdadd5(0x179)](_0x4e228,_0x5dca58,_0x55a52f,_0x40799c):_0x83950f[_0xbdadd5(0x1cc)](_0x4e228,_0x5dca58,_0x55a52f);};if(this[_0x33a7b2(0x1d0)][_0x33a7b2(0x185)]({'content':this['_localeService']['t'](_0x33a7b2(0x1d2)),'type':_0x1096cb[_0x33a7b2(0x1ee)]}),_0x4ec623)try{_0x175d87['get'](_0x4453db)[_0x33a7b2(0x20d)]()['then'](()=>{_0x46b98c();});}catch{_0x46b98c();}else _0x46b98c();}['_initListener'](_0x168082,_0x2119f7){const _0x23d056=_0x30cee0;let _0x400f60=_0x168082['get'](_0x405830);this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60['status$']['subscribe'](_0x381419=>{const _0x5e6b48=_0x23d056;switch(_0x381419){case _0x2da942['Entered']:this[_0x5e6b48(0x191)][_0x5e6b48(0x188)](),this[_0x5e6b48(0x1ae)][_0x5e6b48(0x223)]();break;case _0x2da942[_0x5e6b48(0x1b2)]:this[_0x5e6b48(0x225)][_0x5e6b48(0x18f)](q['id']),this[_0x5e6b48(0x221)]();break;case _0x2da942['Error']:this[_0x5e6b48(0x221)](),this[_0x5e6b48(0x1d0)]['show']({'content':this[_0x5e6b48(0x1a5)]['t'](_0x5e6b48(0x220)),'type':_0x1096cb[_0x5e6b48(0x1f9)],'duration':0xbb8});break;default:break;}})),this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60[_0x23d056(0x1f2)]['subscribe'](async _0x389a23=>{const _0x4799bb=_0x23d056;_0x389a23&&this[_0x4799bb(0x225)][_0x4799bb(0x18f)](_0x5b0966['id'],{'unitId':_0x2119f7,'revision':_0x389a23});}));}[_0x30cee0(0x169)](_0x3b8ad0){const _0x120ef4=_0x30cee0;let _0xd0fcb9=this[_0x120ef4(0x16c)][_0x120ef4(0x214)](_0x3b8ad0)['getSheets']()[_0x120ef4(0x1de)](_0x4bc003=>_0x4bc003[_0x120ef4(0x177)]()),_0x28660c=new _0x43a0ac(_0x3b8ad0)['id'],_0x727801=_0xd0fcb9[_0x120ef4(0x1de)](_0x48d4a6=>new _0x49770f(_0x3b8ad0,_0x48d4a6)['id']),_0x310d5a=_0xd0fcb9['map'](_0x546454=>this[_0x120ef4(0x17a)][_0x120ef4(0x1f1)](_0x3b8ad0,_0x546454)[_0x120ef4(0x1de)](_0x4a30b3=>new _0x51a168(_0x3b8ad0,_0x546454,_0x4a30b3[_0x120ef4(0x1f8)])['id']))[_0x120ef4(0x1e5)](),_0x4d0981=new _0x57d2d6(_0x3b8ad0)['id'];return this[_0x120ef4(0x1f6)][_0x120ef4(0x17b)]([_0x28660c,..._0x727801,..._0x310d5a,_0x4d0981])[_0x120ef4(0x21d)](_0x51419f=>!!_0x51419f[_0x120ef4(0x200)]);}};G=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],G);const K={'id':'univer.operation.toggle-edit-history','type':_0x417d54[_0x30cee0(0x1d7)],'handler':_0x11f80e=>{const _0x140ae6=_0x30cee0;let _0x585770=_0x11f80e[_0x140ae6(0x192)](G),{unitId:_0x585e6f}=_0x4610c1(_0x11f80e[_0x140ae6(0x192)](_0x757a60))||{};return _0x585e6f?(_0x585770['mountHistoryContent'](_0x585e6f),!0x0):!0x1;}},q={'id':_0x30cee0(0x21a),'type':_0x417d54[_0x30cee0(0x1d7)],'handler':()=>!0x0};function _0x4791(){const _0x5b8f18=['height','_dataLoaderService','_init','_initUniver','flat','onSteady','data','univer-history-container','getConfig','_menuManagerService','UNIVER_CONTAINER_ID','_config','getCollabEntity','Loading','setConfig','OTHERS','getSubunitRuleList','revertRevision$','getActiveSheet','historyUniver','univer-history-container-mobile','_permissionService','uComp','permissionId','Error','reload','default','getUnitId','_disposableCollection','__getInjector','getCurrentUnitOfType','value','createElement','zIndex','function','UNIVER_SHEET','iterator','[HistoryLoaderService]:\x20Plugin\x20','appendChild','event$','mountHistoryContent','workerURL','getUnhiddenWorksheets','setLocale','whenReady','asObservable','next','status$','historyAIassistantEnabled','defineProperty','historyPanelHidden','getUnit','1902120OyUYqE','has','getSheetBySheetId','terminate','decorate','univer.operation.exit-edit-history','457891zgiCbN','_configService','every','none','loadUnit','editHistory.panel.listFetchError','unMountHistoryContent','register','close','string','_commandService','location','mergeMenu','pipe','_localCacheService','_checkCanRevert','historyUniver$','_themeService','_univerInstanceService','toPrimitive','urlChange$','univerContainerId','session','@univerjs-pro/edit-history-loader','editHistory.panel.revertFailed','symbol','3516750ZtPvhD','exhaustSavingTask','\x20has\x20been\x20registered.','getSheetId','currentTheme$','triggerCustomVersions','_selectionProtectionRuleModel','composePermission','mutations','left','editHistory.panel.reverting','setParam','object','clear','params','then','type','show','getAllPlugins','_setupSubUnitSync','closeAll','getElementById','prototype','edit-history-loader.config','div','getLocales','from','executeCommand','getCurrentLocale','_dialogService','get','editHistory.panel.title','Entered','onCommandExecuted','absolute','values','1006915NYkaPu','_injector','setDarkMode','_historyManagerService','historyPanelComponentKey','_updateSubUnitFromURLParams','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','[MobileHistoryLoaderService]:\x20Plugin\x20','pluginName','subunit','_initListener','call','disposeUnit','_localeService','_componentManager','HistoryIcon','invoke','CHANGESET_ACK','_updateURLWithCurrentState','setTheme','display','position','_sidebarService','getSheets','dispose$','style','Exited','_handleRevertAcknowledgement','getParam','_pluginMap','forEach','BUTTON','version','subscribe','length','fromCollab','state$','set','top','30666FtkXNL','SYNCED','unsubscribe','_historyUniver$','historyListServerUrl','status','activeSheet$','block','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','eventID','381230RQKulr','triggerLoadVersions','registerCommand','univer-container','darkMode$','_messageService','registerPlugin','editHistory.info.initializing','100%','_internalWebWorker','_collaborationController','2453312XuZbuI','OPERATION','UNIVER_UNKNOWN','dispose','some','_initContainer','_urlService','_initPlugins','map','add','_revertErrorTimer'];_0x4791=function(){return _0x5b8f18;};return _0x4791();}var ct=_0x30cee0(0x171),lt='0.19.0';function ut(_0x2c0cd8){const _0x3df520=_0x30cee0;return{'id':K['id'],'type':_0x20b139[_0x3df520(0x1b7)],'icon':_0x3df520(0x1a7),'tooltip':_0x3df520(0x193),'hidden$':_0x319495(_0x2c0cd8,_0x148251[_0x3df520(0x204)]),'disabled$':_0x2eeeed(_0x2c0cd8,{'workbookTypes':[_0x43a0ac,_0x1f2f44],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0xdbe3ab[_0x30cee0(0x1f0)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x374fa8{constructor(_0x3074b0,_0xffb83a,_0x5702f6,_0x5d3e7e,_0xf9bc72,_0x53d6d3,_0x559aa8,_0x590535,_0x106511,_0x51a292,_0x50a826){const _0x20850f=_0x30cee0;super(),this[_0x20850f(0x225)]=_0x3074b0,this['_menuManagerService']=_0xffb83a,this['_componentManager']=_0x5702f6,this[_0x20850f(0x19b)]=_0x5d3e7e,this['_localeService']=_0xf9bc72,this[_0x20850f(0x1d0)]=_0x53d6d3,this['_collaborationController']=_0x559aa8,this[_0x20850f(0x168)]=_0x590535,this[_0x20850f(0x1e2)]=_0x106511,this['_univerInstanceService']=_0x51a292,this['_urlService']=_0x50a826,B(this,_0x20850f(0x1e0),null),this[_0x20850f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x16fe49=_0x30cee0;[K,q]['forEach'](_0x375e90=>this[_0x16fe49(0x1c7)](_0x3e927d(this['_commandService'][_0x16fe49(0x1cd)](_0x375e90)))),this['disposeWithMe'](this[_0x16fe49(0x1a6)][_0x16fe49(0x222)](_0x16fe49(0x1a7),_0x2ba663)),this['_menuManagerService'][_0x16fe49(0x227)](dt),this[_0x16fe49(0x1c7)](this[_0x16fe49(0x225)][_0x16fe49(0x195)](async(_0x533901,_0x3e3795)=>{const _0x2f102c=_0x16fe49;if(_0x533901['id']===_0x5b0966['id']){let {unitId:_0x2fbd94}=_0x533901[_0x2f102c(0x182)];this[_0x2f102c(0x1d0)][_0x2f102c(0x185)]({'content':this[_0x2f102c(0x1a5)]['t'](_0x2f102c(0x17e)),'type':_0x1096cb[_0x2f102c(0x1ee)],'duration':0x1388});let _0x38c666=this['_collaborationController']['getCollabEntity'](_0x2fbd94);_0x3e3795!=null&&_0x3e3795[_0x2f102c(0x1bb)]?this[_0x2f102c(0x1b3)](_0x38c666,async()=>(setTimeout(()=>window[_0x2f102c(0x226)][_0x2f102c(0x1fa)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x38c666,async()=>{const _0x5cf223=_0x2f102c;let _0x2fb0fd=this['_univerInstanceService'][_0x5cf223(0x1ff)](_0x5295ea[_0x5cf223(0x204)]),_0x366630=_0x2fb0fd==null?void 0x0:_0x2fb0fd[_0x5cf223(0x1f3)]();if(!_0x366630)return!0x1;this[_0x5cf223(0x16c)][_0x5cf223(0x1a4)](_0x2fbd94);let _0x1df03c=await this[_0x5cf223(0x1e2)][_0x5cf223(0x21f)](_0x2fbd94,_0x5295ea[_0x5cf223(0x204)]);return _0x1df03c&&_0x1df03c instanceof _0x48882a?(await this[_0x5cf223(0x187)](_0x1df03c,_0x366630[_0x5cf223(0x177)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x582da7,_0x4a6a78,_0x50f05e=!0x1){const _0x40fd0c=_0x30cee0;let _0x1fcdb9=_0x451b3f([_0x582da7[_0x40fd0c(0x170)][_0x40fd0c(0x208)],_0x582da7[_0x40fd0c(0x1bc)]])['subscribe'](async([_0x5939a1,_0x34b495])=>{const _0x155a84=_0x40fd0c;if(_0x5939a1[_0x155a84(0x1ca)]===_0x288cbe[_0x155a84(0x1a9)]&&(_0x34b495==null?void 0x0:_0x34b495[_0x155a84(0x1c4)])===_0x15958f[_0x155a84(0x1c0)]&&_0x5939a1[_0x155a84(0x1e7)][_0x155a84(0x17c)][_0x155a84(0x1da)](_0x240bcb=>_0x240bcb['id']===_0x5b0966['id'])&&await _0x4a6a78()){var _0x2a68ca;this[_0x155a84(0x19b)][_0x155a84(0x221)](),_0x1fcdb9[_0x155a84(0x1c1)](),this[_0x155a84(0x1e0)]&&clearTimeout(this[_0x155a84(0x1e0)]),await((_0x2a68ca=this['_localCacheService'])==null?void 0x0:_0x2a68ca[_0x155a84(0x175)]()),this[_0x155a84(0x1d0)]['removeAll']();}});_0x50f05e&&(this[_0x40fd0c(0x1e0)]=setTimeout(()=>{const _0x5a2dde=_0x40fd0c;_0x1fcdb9['unsubscribe'](),this['_messageService'][_0x5a2dde(0x185)]({'content':this[_0x5a2dde(0x1a5)]['t'](_0x5a2dde(0x172)),'type':_0x1096cb[_0x5a2dde(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x80d8e4,_0x56a952){const _0x173d6a=_0x30cee0;await this[_0x173d6a(0x19d)](_0x80d8e4,_0x56a952),_0x80d8e4[_0x173d6a(0x1c5)][_0x173d6a(0x167)](_0xaee6e3(this[_0x173d6a(0x1b0)]))[_0x173d6a(0x1b9)](_0x33d9f0=>{const _0x1f9b71=_0x173d6a;_0x33d9f0&&this[_0x1f9b71(0x1aa)](_0x33d9f0);}),this['_urlService'][_0x173d6a(0x16e)][_0x173d6a(0x167)](_0xaee6e3(this['dispose$']))[_0x173d6a(0x1b9)](()=>this['_updateSubUnitFromURLParams'](_0x80d8e4,_0x56a952));}[_0x30cee0(0x1aa)](_0x28822c,_0x15e237=!0x1){const _0x3f208b=_0x30cee0;let _0x3efb5c=this[_0x3f208b(0x1dc)][_0x3f208b(0x1b4)]('subunit');_0x28822c[_0x3f208b(0x177)]()!==_0x3efb5c&&this['_urlService'][_0x3f208b(0x17f)](_0x3f208b(0x1a1),_0x28822c[_0x3f208b(0x177)](),_0x15e237);}async[_0x30cee0(0x19d)](_0x2ce742,_0x2cd225){const _0x31f85a=_0x30cee0;var _0x371f47;if(!_0x2cd225||!_0x2ce742[_0x31f85a(0x217)](_0x2cd225)){let _0x720005=_0x2ce742[_0x31f85a(0x20b)]()[0x0],_0x3c716b=_0x2ce742[_0x31f85a(0x217)](_0x720005);if(!_0x3c716b)return;this[_0x31f85a(0x1aa)](_0x3c716b,!0x0),await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x720005});return;}((_0x371f47=_0x2ce742[_0x31f85a(0x1f3)]())==null?void 0x0:_0x371f47[_0x31f85a(0x177)]())!==_0x2cd225&&await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x2cd225});}};J=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],J);const Y=_0x30cee0(0x1f5);let X=class extends _0x38c581{constructor(_0x227e50,_0x1c1e1f,_0x59538a,_0x4977db,_0xc2afa7,_0x39e6ab,_0xf93d7e,_0x5565f5,_0x451cec,_0x3d3188){const _0x3b6597=_0x30cee0;super(),this[_0x3b6597(0x1a5)]=_0x227e50,this['_univerInstanceService']=_0x1c1e1f,this[_0x3b6597(0x21c)]=_0x59538a,this['_commandService']=_0x4977db,this[_0x3b6597(0x1d0)]=_0xc2afa7,this['_permissionService']=_0x39e6ab,this['_selectionProtectionRuleModel']=_0xf93d7e,this[_0x3b6597(0x191)]=_0x5565f5,this[_0x3b6597(0x1ae)]=_0x451cec,this[_0x3b6597(0x16b)]=_0x3d3188,B(this,'_historyUniver$',new _0x6655f1(null)),B(this,'historyUniver$',this[_0x3b6597(0x1c2)]['asObservable']()),B(this,'_disposableCollection',new _0x57be15()),B(this,_0x3b6597(0x1b5),new Map()),B(this,_0x3b6597(0x1d4),null),this['_init']();}get[_0x30cee0(0x1f4)](){const _0x3fa1a2=_0x30cee0;return this[_0x3fa1a2(0x1c2)]['value'];}['_init'](){const _0xa2f2b9=_0x30cee0;this[_0xa2f2b9(0x1db)](),this[_0xa2f2b9(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x25d82c=_0x30cee0;var _0x3ee3e3;let _0x9d28d2=(_0x3ee3e3=this[_0x25d82c(0x21c)][_0x25d82c(0x1e9)](_0x25d82c(0x1eb)))==null?_0x25d82c(0x1ce):_0x3ee3e3,_0x438093=document[_0x25d82c(0x189)](_0x9d28d2);if(!_0x438093)return;let _0x2bc8b7=document['createElement'](_0x25d82c(0x18c));_0x2bc8b7['id']=Y,_0x2bc8b7['dataset']['uComp']='history-container',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ad)]=_0x25d82c(0x196),_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1be)]='0',_0x2bc8b7['style']['left']='0',_0x2bc8b7[_0x25d82c(0x1b1)]['width']=_0x25d82c(0x1d3),_0x2bc8b7['style'][_0x25d82c(0x1e1)]='100%',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x202)]='49',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ac)]='none',_0x438093[_0x25d82c(0x207)](_0x2bc8b7);}[_0x30cee0(0x1dd)](){const _0x3796f7=_0x30cee0;[[_0x24b5f8],[_0x567c9c,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x2a739f],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x58d35e],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x396896],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]]['forEach'](([_0xe63443,_0x383eb8])=>this[_0x3796f7(0x1d1)](_0xe63443,_0x383eb8));}[_0x30cee0(0x1d9)](){const _0x55d4e4=_0x30cee0;super[_0x55d4e4(0x1d9)](),this[_0x55d4e4(0x221)](),this['_pluginMap'][_0x55d4e4(0x181)]();}[_0x30cee0(0x1d1)](_0x4c7c25,_0x1e6ede,_0x37e935){const _0x20a5f7=_0x30cee0;if(this[_0x20a5f7(0x1b5)][_0x20a5f7(0x216)](_0x4c7c25[_0x20a5f7(0x1a0)])&&!_0x37e935)throw Error(_0x20a5f7(0x19f)+_0x4c7c25[_0x20a5f7(0x1a0)]+_0x20a5f7(0x176));this['_pluginMap'][_0x20a5f7(0x1bd)](_0x4c7c25['pluginName'],[_0x4c7c25,_0x1e6ede]);}['getAllPlugins'](){const _0x122e0d=_0x30cee0;return Array[_0x122e0d(0x18e)](this[_0x122e0d(0x1b5)][_0x122e0d(0x197)]());}[_0x30cee0(0x209)](_0x2a11b0,_0x127dd5){const _0x5a010b=_0x30cee0;let _0x42cb06=document['getElementById'](Y);_0x42cb06&&(_0x42cb06[_0x5a010b(0x1b1)][_0x5a010b(0x1ac)]=_0x5a010b(0x1c6),this[_0x5a010b(0x1e4)](_0x2a11b0,Y,_0x127dd5));}['unMountHistoryContent'](){const _0x386f39=_0x30cee0;var _0x62c7b;this[_0x386f39(0x1fd)][_0x386f39(0x1d9)](),(_0x62c7b=this['historyUniver'])==null||_0x62c7b[_0x386f39(0x1d9)](),this[_0x386f39(0x1c2)][_0x386f39(0x20f)](null);let _0x48bda6=document['getElementById'](Y);_0x48bda6&&(_0x48bda6['style'][_0x386f39(0x1ac)]='none',this[_0x386f39(0x1d4)]&&(this[_0x386f39(0x1d4)][_0x386f39(0x218)](),this[_0x386f39(0x1d4)]=null));}['_initUniver'](_0x104b9d,_0x46c226,_0x7f23c3){const _0x5151e0=_0x30cee0;var _0x46e582,_0x4faf5a,_0x2296c6,_0x4d5a8b;if(this[_0x5151e0(0x1f4)])return;let _0x3a0d67=new _0x2fd0f5({'locales':{[this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()]:this[_0x5151e0(0x1a5)][_0x5151e0(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x5db559=_0x3a0d67['__getInjector']();this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x1cf)][_0x5151e0(0x1b9)](_0x41758b=>{const _0xf70521=_0x5151e0;_0x5db559[_0xf70521(0x192)](_0x5ddc3f)[_0xf70521(0x19a)](_0x41758b);})),this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x178)][_0x5151e0(0x1b9)](_0x4ea31=>{const _0x4c4afa=_0x5151e0;_0x5db559[_0x4c4afa(0x192)](_0x5ddc3f)[_0x4c4afa(0x1ab)](_0x4ea31);})),_0x5db559[_0x5151e0(0x192)](_0x44bc99)[_0x5151e0(0x20c)](this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()),_0x5db559['get'](_0x4d97a0)[_0x5151e0(0x1ef)](_0x338bd6,this[_0x5151e0(0x21c)]['getConfig'](_0x338bd6));let _0x120654=this[_0x5151e0(0x21c)]['getConfig'](_0x3304c0);_0x120654&&_0x3a0d67[_0x5151e0(0x1d1)](_0xc828e,{'license':_0x120654['ls']});let _0x43a74c=(_0x46e582=this[_0x5151e0(0x21c)][_0x5151e0(0x1e9)](_0x5151e0(0x18b)))==null?void 0x0:_0x46e582[_0x5151e0(0x20a)],_0x562c62=!!_0x43a74c;_0x562c62&&(this['_internalWebWorker']=_0x43a74c instanceof Worker?_0x43a74c:null,_0x3a0d67['registerPlugin'](_0xb2c054,{'workerURL':_0x43a74c})),this[_0x5151e0(0x1b5)]['forEach'](([_0x6c874b,_0x5738aa])=>{const _0xbb05b5=_0x5151e0;_0x3a0d67[_0xbb05b5(0x1d1)](_0x6c874b,_0x5738aa);}),_0x3a0d67[_0x5151e0(0x1d1)](_0x25046b,{'historyListServerUrl':(_0x4faf5a=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4faf5a['historyListServerUrl'],'historyPanelComponentKey':(_0x2296c6=this['_configService'][_0x5151e0(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x2296c6[_0x5151e0(0x19c)],'historyPanelHidden':(_0x4d5a8b=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4d5a8b[_0x5151e0(0x213)]}),_0x5db559[_0x5151e0(0x1a8)](_0x1b0e98=>{const _0x315163=_0x5151e0;this[_0x315163(0x1a2)](_0x1b0e98,_0x104b9d);}),this[_0x5151e0(0x1c2)]['next'](_0x3a0d67);let _0x54c5c1=_0x5db559[_0x5151e0(0x192)](_0x405830),_0x4f650d=this[_0x5151e0(0x169)](_0x104b9d),_0x2ac552=()=>{const _0x5b21a0=_0x5151e0;_0x7f23c3?_0x54c5c1[_0x5b21a0(0x179)](_0x104b9d,_0x46c226,_0x4f650d,_0x7f23c3):_0x54c5c1['triggerLoadVersions'](_0x104b9d,_0x46c226,_0x4f650d);};if(this['_messageService'][_0x5151e0(0x185)]({'content':this[_0x5151e0(0x1a5)]['t'](_0x5151e0(0x1d2)),'type':_0x1096cb[_0x5151e0(0x1ee)]}),_0x562c62)try{_0x5db559['get'](_0x4453db)[_0x5151e0(0x20d)]()[_0x5151e0(0x183)](()=>{_0x2ac552();});}catch{_0x2ac552();}else _0x2ac552();}[_0x30cee0(0x1a2)](_0xcb21ab,_0x485856){const _0x23ab53=_0x30cee0;let _0x30cf31=_0xcb21ab[_0x23ab53(0x192)](_0x405830);this['_disposableCollection'][_0x23ab53(0x1df)](_0x30cf31[_0x23ab53(0x210)][_0x23ab53(0x1b9)](_0x41479e=>{const _0x54c217=_0x23ab53;switch(_0x41479e){case _0x2da942[_0x54c217(0x194)]:this[_0x54c217(0x191)]['closeAll'](),this[_0x54c217(0x1ae)][_0x54c217(0x223)]();break;case _0x2da942[_0x54c217(0x1b2)]:this[_0x54c217(0x225)]['executeCommand'](q['id']),this[_0x54c217(0x221)]();break;case _0x2da942[_0x54c217(0x1f9)]:this[_0x54c217(0x221)](),this[_0x54c217(0x1d0)][_0x54c217(0x185)]({'content':this[_0x54c217(0x1a5)]['t'](_0x54c217(0x220)),'type':_0x1096cb[_0x54c217(0x1f9)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x30cf31[_0x23ab53(0x1f2)][_0x23ab53(0x1b9)](async _0x2e9bb0=>{const _0x472fd9=_0x23ab53;_0x2e9bb0&&this[_0x472fd9(0x225)][_0x472fd9(0x18f)](_0x5b0966['id'],{'unitId':_0x485856,'revision':_0x2e9bb0});}));}[_0x30cee0(0x169)](_0x4c6b06){const _0x166637=_0x30cee0;let _0x934236=this[_0x166637(0x16c)][_0x166637(0x214)](_0x4c6b06)[_0x166637(0x1af)]()['map'](_0x5a2d59=>_0x5a2d59[_0x166637(0x177)]()),_0x976ff0=new _0x43a0ac(_0x4c6b06)['id'],_0x2059dc=_0x934236['map'](_0x46768e=>new _0x49770f(_0x4c6b06,_0x46768e)['id']),_0x1b546f=_0x934236[_0x166637(0x1de)](_0x5bd6aa=>this[_0x166637(0x17a)][_0x166637(0x1f1)](_0x4c6b06,_0x5bd6aa)[_0x166637(0x1de)](_0x1d9892=>new _0x51a168(_0x4c6b06,_0x5bd6aa,_0x1d9892['permissionId'])['id']))[_0x166637(0x1e5)](),_0x77b2ff=new _0x57d2d6(_0x4c6b06)['id'];return this[_0x166637(0x1f6)][_0x166637(0x17b)]([_0x976ff0,..._0x2059dc,..._0x1b546f,_0x77b2ff])[_0x166637(0x21d)](_0x5e49f2=>!!_0x5e49f2[_0x166637(0x200)]);}};X=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],X);let Z=class extends _0x852139{constructor(_0x2e2943=R,_0x13934f,_0x109eff){const _0x286f8c=_0x30cee0;super(),this[_0x286f8c(0x1ec)]=_0x2e2943,this[_0x286f8c(0x199)]=_0x13934f,this[_0x286f8c(0x21c)]=_0x109eff;let {menu:_0xb53bb,..._0x20c1c4}=_0x3896f6({},R,this['_config']);_0xb53bb&&this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)]('menu',_0xb53bb,{'merge':!0x0}),this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)](L,_0x20c1c4),this['_config'][_0x286f8c(0x16f)]&&this[_0x286f8c(0x21c)]['setConfig'](_0x286f8c(0x1eb),this[_0x286f8c(0x1ec)][_0x286f8c(0x16f)]);}[_0x30cee0(0x1c9)](){const _0x33930c=_0x30cee0;[[G,{'useClass':X}],[J]][_0x33930c(0x1b6)](_0xa69ccc=>this[_0x33930c(0x199)][_0x33930c(0x1df)](_0xa69ccc));}[_0x30cee0(0x1e6)](){const _0x440101=_0x30cee0;this['_injector'][_0x440101(0x192)](J);}};B(Z,_0x30cee0(0x184),_0x148251['UNIVER_UNKNOWN']),B(Z,'pluginName',_0x30cee0(0x19e)),B(Z,'packageName',ct),B(Z,_0x30cee0(0x1b8),lt),Z=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],Z);let Q=class extends _0x374fa8{constructor(_0x3c0b12,_0xbc8a30,_0x2d5632,_0x20513c,_0x41dcde,_0x34b700,_0x24543d,_0x34239c,_0x2307ac,_0x2e4181,_0x41505f){const _0xf4970f=_0x30cee0;super(),this[_0xf4970f(0x225)]=_0x3c0b12,this[_0xf4970f(0x1ea)]=_0xbc8a30,this[_0xf4970f(0x1a6)]=_0x2d5632,this['_historyManagerService']=_0x20513c,this['_localeService']=_0x41dcde,this['_messageService']=_0x34b700,this[_0xf4970f(0x1d5)]=_0x24543d,this[_0xf4970f(0x168)]=_0x34239c,this[_0xf4970f(0x1e2)]=_0x2307ac,this['_univerInstanceService']=_0x2e4181,this[_0xf4970f(0x1dc)]=_0x41505f,B(this,_0xf4970f(0x1e0),null),this[_0xf4970f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x57b128=_0x30cee0;[K,q][_0x57b128(0x1b6)](_0x4cb9c6=>this['disposeWithMe'](_0x3e927d(this[_0x57b128(0x225)][_0x57b128(0x1cd)](_0x4cb9c6)))),this[_0x57b128(0x1c7)](this['_componentManager'][_0x57b128(0x222)](_0x57b128(0x1a7),_0x2ba663)),this[_0x57b128(0x1ea)][_0x57b128(0x227)](dt),this['disposeWithMe'](this[_0x57b128(0x225)][_0x57b128(0x195)](async(_0x576a90,_0x486d7f)=>{const _0x326b28=_0x57b128;if(_0x576a90['id']===_0x5b0966['id']){let {unitId:_0x40f992}=_0x576a90[_0x326b28(0x182)];this[_0x326b28(0x1d0)][_0x326b28(0x185)]({'content':this[_0x326b28(0x1a5)]['t']('editHistory.panel.reverting'),'type':_0x1096cb[_0x326b28(0x1ee)],'duration':0x1388});let _0x42755f=this[_0x326b28(0x1d5)][_0x326b28(0x1ed)](_0x40f992);_0x486d7f!=null&&_0x486d7f[_0x326b28(0x1bb)]?this[_0x326b28(0x1b3)](_0x42755f,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x42755f,async()=>{const _0x27af61=_0x326b28;let _0x582c92=this[_0x27af61(0x16c)][_0x27af61(0x1ff)](_0x5295ea[_0x27af61(0x204)]),_0xac1ccf=_0x582c92==null?void 0x0:_0x582c92[_0x27af61(0x1f3)]();if(!_0xac1ccf)return!0x1;this[_0x27af61(0x16c)][_0x27af61(0x1a4)](_0x40f992);let _0x12a5dc=await this[_0x27af61(0x1e2)][_0x27af61(0x21f)](_0x40f992,_0x5295ea['UNIVER_SHEET']);return _0x12a5dc&&_0x12a5dc instanceof _0x48882a?(await this[_0x27af61(0x187)](_0x12a5dc,_0xac1ccf['getSheetId']()),!0x0):!0x1;});}}));}[_0x30cee0(0x1b3)](_0x9e0d30,_0x588ec5,_0x5a6129=!0x1){const _0x11394b=_0x30cee0;let _0x5f1b23=_0x451b3f([_0x9e0d30[_0x11394b(0x170)]['event$'],_0x9e0d30[_0x11394b(0x1bc)]])[_0x11394b(0x1b9)](async([_0x42ede1,_0x4e2010])=>{const _0x4e939d=_0x11394b;if(_0x42ede1[_0x4e939d(0x1ca)]===_0x288cbe[_0x4e939d(0x1a9)]&&(_0x4e2010==null?void 0x0:_0x4e2010[_0x4e939d(0x1c4)])===_0x15958f[_0x4e939d(0x1c0)]&&_0x42ede1['data']['mutations'][_0x4e939d(0x1da)](_0x215e36=>_0x215e36['id']===_0x5b0966['id'])&&await _0x588ec5()){var _0x58e1f2;this['_historyManagerService'][_0x4e939d(0x221)](),_0x5f1b23[_0x4e939d(0x1c1)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x58e1f2=this['_localCacheService'])==null?void 0x0:_0x58e1f2[_0x4e939d(0x175)]());}});_0x5a6129&&(this[_0x11394b(0x1e0)]=setTimeout(()=>{const _0x76cacc=_0x11394b;_0x5f1b23[_0x76cacc(0x1c1)](),this[_0x76cacc(0x1d0)][_0x76cacc(0x185)]({'content':this[_0x76cacc(0x1a5)]['t'](_0x76cacc(0x172)),'type':_0x1096cb[_0x76cacc(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x37f985,_0x2a8ea3){const _0x1ebea9=_0x30cee0;await this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3),_0x37f985[_0x1ebea9(0x1c5)][_0x1ebea9(0x167)](_0xaee6e3(this[_0x1ebea9(0x1b0)]))[_0x1ebea9(0x1b9)](_0x2e2470=>{const _0xdc0a29=_0x1ebea9;_0x2e2470&&this[_0xdc0a29(0x1aa)](_0x2e2470);}),this[_0x1ebea9(0x1dc)]['urlChange$']['pipe'](_0xaee6e3(this[_0x1ebea9(0x1b0)]))['subscribe'](()=>this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3));}[_0x30cee0(0x1aa)](_0x583dd5,_0x812675=!0x1){const _0x2e961b=_0x30cee0;let _0x4ee52c=this[_0x2e961b(0x1dc)]['getParam'](_0x2e961b(0x1a1));_0x583dd5[_0x2e961b(0x177)]()!==_0x4ee52c&&this['_urlService']['setParam'](_0x2e961b(0x1a1),_0x583dd5[_0x2e961b(0x177)](),_0x812675);}async[_0x30cee0(0x19d)](_0x331ee8,_0x339a4e){const _0x228436=_0x30cee0;var _0x36817a;if(!_0x339a4e||!_0x331ee8[_0x228436(0x217)](_0x339a4e)){let _0x1ccbe9=_0x331ee8[_0x228436(0x20b)]()[0x0],_0x123508=_0x331ee8[_0x228436(0x217)](_0x1ccbe9);if(!_0x123508)return;this[_0x228436(0x1aa)](_0x123508,!0x0),await this[_0x228436(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x1ccbe9});return;}((_0x36817a=_0x331ee8[_0x228436(0x1f3)]())==null?void 0x0:_0x36817a[_0x228436(0x177)]())!==_0x339a4e&&await this[_0x228436(0x225)][_0x228436(0x18f)](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x339a4e});}};Q=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],Q);let $=class extends _0x852139{constructor(_0xe45689=R,_0x360fb7,_0x553036){const _0x9c4ff2=_0x30cee0;super(),this['_config']=_0xe45689,this[_0x9c4ff2(0x199)]=_0x360fb7,this[_0x9c4ff2(0x21c)]=_0x553036;let {menu:_0x44006d,..._0x15a5bf}=_0x3896f6({},R,this[_0x9c4ff2(0x1ec)]);_0x44006d&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)]('menu',_0x44006d,{'merge':!0x0}),this[_0x9c4ff2(0x21c)]['setConfig'](L,_0x15a5bf),this[_0x9c4ff2(0x1ec)][_0x9c4ff2(0x16f)]&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)](U,this[_0x9c4ff2(0x1ec)]['univerContainerId']);}[_0x30cee0(0x1c9)](){const _0x10517f=_0x30cee0;[[G],[Q]][_0x10517f(0x1b6)](_0xabf8b7=>this[_0x10517f(0x199)][_0x10517f(0x1df)](_0xabf8b7));}[_0x30cee0(0x1e6)](){const _0x32a6d8=_0x30cee0;this[_0x32a6d8(0x199)][_0x32a6d8(0x192)](Q);}};B($,'type',_0x148251[_0x30cee0(0x1d8)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,'packageName',ct),B($,_0x30cee0(0x1b8),lt),$=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
1
+ const _0x243ccf=_0x4312;(function(_0x4361e8,_0x19f28c){const _0x397fed=_0x4312,_0x490b6f=_0x4361e8();while(!![]){try{const _0x519574=-parseInt(_0x397fed(0x16b))/0x1+parseInt(_0x397fed(0x15b))/0x2+-parseInt(_0x397fed(0x127))/0x3+-parseInt(_0x397fed(0xd9))/0x4*(-parseInt(_0x397fed(0x16d))/0x5)+parseInt(_0x397fed(0x17d))/0x6+parseInt(_0x397fed(0x119))/0x7*(-parseInt(_0x397fed(0x16a))/0x8)+parseInt(_0x397fed(0x171))/0x9;if(_0x519574===_0x19f28c)break;else _0x490b6f['push'](_0x490b6f['shift']());}catch(_0x343ca5){_0x490b6f['push'](_0x490b6f['shift']());}}}(_0xa6ad,0x43304));function _0x4312(_0x4570bf,_0x2bf0ae){_0x4570bf=_0x4570bf-0xc0;const _0xa6ad6=_0xa6ad();let _0x4312f2=_0xa6ad6[_0x4570bf];return _0x4312f2;}import{CommandType as _0x19c209,DependentOn as _0x1b35d9,Disposable as _0x56b781,DisposableCollection as _0x16a15f,IAuthzIoService as _0x2a6fc8,ICommandService as _0x2950a0,IConfigService as _0x88d7b9,IPermissionService as _0xabeabb,IUniverInstanceService as _0x564820,Inject as _0x2a08b4,Injector as _0x215a8e,LocaleService as _0x587fa0,Plugin as _0x25956b,RxDisposable as _0x531dc7,ThemeService as _0x537b2f,Univer as _0x597837,UniverInstanceType as _0xf2429e,Workbook as _0x1b4b80,merge as _0x32845e,toDisposable as _0x3ff83f}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0xd88977,RangeProtectionRuleModel as _0x96c5d3,SetWorksheetActivateCommand as _0x1a252d,UniverSheetsPlugin as _0x229c6e,WorkbookEditablePermission as _0x582020,WorkbookRecoverHistoryPermission as _0x28c852,WorkbookViewHistoryPermission as _0x55d453,WorksheetEditPermission as _0x5e198a,getSheetCommandTarget as _0x46712e}from'@univerjs/sheets';import{CollaborationEvent as _0x22e3de,RevertRevisionMutation as _0x377181,UniverCollaborationPlugin as _0x3a2dd8}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x30848d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x112339,CollaborationController as _0x1ac924,CollaborationStatus as _0x20abcb,DataLoaderService as _0x1cb31c,ILocalCacheService as _0x5c1847}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x2e09fa,HistoryModeStatus as _0x325997,UniverEditHistoryViewerMobilePlugin as _0x50eafa,UniverEditHistoryViewerPlugin as _0x3c5bc0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3f10cc,UniverLicensePlugin as _0x4635cb}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4547f8}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x4bd2ad}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x1738de}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x3f2809}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x14d349}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x50f95}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xde840f}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3183e5}from'@univerjs/data-validation';import{MessageType as _0x3ed100}from'@univerjs/design';import{UniverDocsPlugin as _0x15c8d9}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x35946a}from'@univerjs/docs-ui';import{IImageIoService as _0x1bda32,UniverDrawingPlugin as _0x2fd5e3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x24e1ef}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3fd7eb}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48739e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x54d2a0}from'@univerjs/network';import{IRemoteInstanceService as _0x177025,UniverRPCMainThreadPlugin as _0x3b8b6a}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x413776}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4695f1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2110ca}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x534673,UniverSheetsDataValidationUIPlugin as _0x3f106b}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1043fa}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2c80da}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x1c517a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x3d34fa}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x512067}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2b5539}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x2ea082}from'@univerjs/sheets-hyper-link';function _0xa6ad(){const _0x4eb1e7=['getUnhiddenWorksheets','status$','_initContainer','get','202134bVxFmS','permissionId','call','object','value','_selectionProtectionRuleModel','Error','0.20.0','getParam','toPrimitive','darkMode$','fromCollab','subscribe','_sidebarService','activeSheet$','forEach','disposeWithMe','_messageService','_pluginMap','values','createElement','event$','from','appendChild','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','top','getLocales','setLocale','getSheetBySheetId','_updateSubUnitFromURLParams','composePermission','SYNCED','next','CHANGESET_ACK','asObservable','getUnit','prototype','decorate','none','onCommandExecuted','style','historyUniver','historyPanelHidden','\x20has\x20been\x20registered.','triggerLoadVersions','dispose$','registerPlugin','getCurrentUnitOfType','height','string','_config','581350ADJLJZ','data','univer-container','urlChange$','_handleRevertAcknowledgement','setDarkMode','length','defineProperty','onSteady','_localeService','_commandService','map','show','version','left','878152qPPGXJ','322943zhSjPQ','some','11125ezHkCY','_init','@univerjs-pro/edit-history-loader','has','4160331JtSAGl','dataset','display','_permissionService','every','getCurrentLocale','status','getUnitId','[HistoryLoaderService]:\x20Plugin\x20','getAllPlugins','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','1064238WfBNVQ','historyPanelComponentKey','params','zIndex','exhaustSavingTask','_internalWebWorker','executeCommand','__getInjector','univer.operation.toggle-edit-history','loadUnit','_updateURLWithCurrentState','removeAll','historyUniver$','setTheme','getConfig','session','dispose','editHistory.panel.listFetchError','_menuManagerService','workerURL','unMountHistoryContent','mountHistoryContent','flat','add','_revertErrorTimer','_historyUniver$','_univerInstanceService','triggerCustomVersions','_initPlugins','getElementById','116oswmsI','_injector','univerContainerId','_dialogService','_disposableCollection','_configService','_collaborationController','getCollabEntity','HistoryIcon','_localCacheService','block','state$','setConfig','type','OPERATION','closeAll','clear','div','currentTheme$','Entered','getSheets','getActiveSheet','mutations','function','_initUniver','_setupSubUnitSync','editHistory.panel.reverting','edit-history-loader.config','revertRevision$','register','terminate','uComp','100%','UNIVER_SHEET','pipe','mergeMenu','Exited','Loading','disposeUnit','_urlService','UNIVER_CONTAINER_ID','menu','position','_dataLoaderService','_initListener','getSubunitRuleList','then','historyListServerUrl','BUTTON','_checkCanRevert','setParam','symbol','subunit','reload','_componentManager','UNIVER_UNKNOWN','onStarting','close','_themeService','default','history-container','absolute','getSheetId','packageName','21urmQJa','_historyManagerService','editHistory.panel.revertFailed','getOwnPropertyDescriptor','eventID','pluginName','unsubscribe','width','editHistory.info.initializing','location'];_0xa6ad=function(){return _0x4eb1e7;};return _0xa6ad();}import{UniverSheetsHyperLinkUIPlugin as _0x3027ab}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3e1fcb}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x4194b9}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4864b9,UniverSheetsUIPlugin as _0x4d5580,getCurrentRangeDisable$ as _0x2d08bc}from'@univerjs/sheets-ui';import{ComponentManager as _0x25a01f,IDialogService as _0x4cdca8,IMenuManagerService as _0x1b22c3,IMessageService as _0x53e474,ISidebarService as _0x3f28b5,MenuItemType as _0x5a8475,RibbonStartGroup as _0x2c4b0f,UniverMobileUIPlugin as _0x53a928,UniverUIPlugin as _0x577dbf,getMenuHiddenObservable as _0x13d426}from'@univerjs/ui';import{BehaviorSubject as _0x190d06,combineLatest as _0x1b6270,takeUntil as _0x25d598}from'rxjs';import{IURLService as _0x465855}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x4e8247}from'@univerjs/icons';import{UniverType as _0x510b10}from'@univerjs/protocol';const L=_0x243ccf(0xf4);Symbol(L);const R={};function z(_0x45e6e2){'@babel/helpers - typeof';const _0x2204e8=_0x243ccf;return z=typeof Symbol==_0x2204e8(0xf0)&&typeof Symbol['iterator']=='symbol'?function(_0x4bbc59){return typeof _0x4bbc59;}:function(_0x34b05d){const _0x53f816=_0x2204e8;return _0x34b05d&&typeof Symbol=='function'&&_0x34b05d['constructor']===Symbol&&_0x34b05d!==Symbol[_0x53f816(0x14c)]?_0x53f816(0x10c):typeof _0x34b05d;},z(_0x45e6e2);}function ot(_0x1729fb,_0x1a5d5b){const _0x429825=_0x243ccf;if(z(_0x1729fb)!=_0x429825(0x12a)||!_0x1729fb)return _0x1729fb;var _0x2b4c37=_0x1729fb[Symbol[_0x429825(0x130)]];if(_0x2b4c37!==void 0x0){var _0x243ddf=_0x2b4c37[_0x429825(0x129)](_0x1729fb,_0x1a5d5b||_0x429825(0x114));if(z(_0x243ddf)!='object')return _0x243ddf;throw TypeError(_0x429825(0x140));}return(_0x1a5d5b===_0x429825(0x159)?String:Number)(_0x1729fb);}function st(_0x4fc8d5){const _0x62f4e3=_0x243ccf;var _0xa175ff=ot(_0x4fc8d5,_0x62f4e3(0x159));return z(_0xa175ff)==_0x62f4e3(0x10c)?_0xa175ff:_0xa175ff+'';}function B(_0x5fd0d4,_0x271b3a,_0x1ac3ac){const _0x283b9f=_0x243ccf;return(_0x271b3a=st(_0x271b3a))in _0x5fd0d4?Object[_0x283b9f(0x162)](_0x5fd0d4,_0x271b3a,{'value':_0x1ac3ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5fd0d4[_0x271b3a]=_0x1ac3ac,_0x5fd0d4;}function V(_0x45c91c,_0x532f05){return function(_0x37d117,_0x5d3f1c){_0x532f05(_0x37d117,_0x5d3f1c,_0x45c91c);};}function H(_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d){const _0x43c0b6=_0x243ccf;var _0x586334=arguments[_0x43c0b6(0x161)],_0xd2a101=_0x586334<0x3?_0x4cb393:_0x562a8d===null?_0x562a8d=Object[_0x43c0b6(0x11c)](_0x4cb393,_0x39ec48):_0x562a8d,_0x5986f3;if(typeof Reflect==_0x43c0b6(0x12a)&&typeof Reflect[_0x43c0b6(0x14d)]==_0x43c0b6(0xf0))_0xd2a101=Reflect[_0x43c0b6(0x14d)](_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d);else{for(var _0x3a7bab=_0x22a57a[_0x43c0b6(0x161)]-0x1;_0x3a7bab>=0x0;_0x3a7bab--)(_0x5986f3=_0x22a57a[_0x3a7bab])&&(_0xd2a101=(_0x586334<0x3?_0x5986f3(_0xd2a101):_0x586334>0x3?_0x5986f3(_0x4cb393,_0x39ec48,_0xd2a101):_0x5986f3(_0x4cb393,_0x39ec48))||_0xd2a101);}return _0x586334>0x3&&_0xd2a101&&Object[_0x43c0b6(0x162)](_0x4cb393,_0x39ec48,_0xd2a101),_0xd2a101;}const U=_0x243ccf(0x101),W='univer-history-container';let G=class extends _0x56b781{constructor(_0x417fc9,_0x5c5e02,_0x3ff731,_0x33b5b0,_0x438c8a,_0x35ff2e,_0x5d4abb,_0x19ea4b,_0x165d23,_0x4e08ac){const _0x58ee91=_0x243ccf;super(),this[_0x58ee91(0x164)]=_0x417fc9,this['_univerInstanceService']=_0x5c5e02,this['_configService']=_0x3ff731,this[_0x58ee91(0x165)]=_0x33b5b0,this[_0x58ee91(0x138)]=_0x438c8a,this[_0x58ee91(0x174)]=_0x35ff2e,this['_selectionProtectionRuleModel']=_0x5d4abb,this[_0x58ee91(0xdc)]=_0x19ea4b,this[_0x58ee91(0x134)]=_0x165d23,this[_0x58ee91(0x113)]=_0x4e08ac,B(this,_0x58ee91(0xd4),new _0x190d06(null)),B(this,_0x58ee91(0xc7),this[_0x58ee91(0xd4)][_0x58ee91(0x14a)]()),B(this,'_disposableCollection',new _0x16a15f()),B(this,_0x58ee91(0x139),new Map()),B(this,_0x58ee91(0xc0),null),this[_0x58ee91(0x16e)]();}get[_0x243ccf(0x151)](){return this['_historyUniver$']['value'];}['_init'](){const _0x3eeb13=_0x243ccf;this[_0x3eeb13(0x125)](),this[_0x3eeb13(0xd7)]();}[_0x243ccf(0x125)](){const _0x21aa50=_0x243ccf;var _0x326ded;let _0x20cfa=(_0x326ded=this[_0x21aa50(0xde)][_0x21aa50(0xc9)]('UNIVER_CONTAINER_ID'))==null?'univer-container':_0x326ded,_0x9b6225=document['getElementById'](_0x20cfa);if(!_0x9b6225)return;let _0x489061=document[_0x21aa50(0x13b)](_0x21aa50(0xea));_0x489061['id']=W,_0x489061[_0x21aa50(0x172)][_0x21aa50(0xf8)]=_0x21aa50(0x115),_0x489061[_0x21aa50(0x150)]['position']='absolute',_0x489061['style'][_0x21aa50(0x141)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x169)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x120)]='100%',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x158)]='100%',_0x489061[_0x21aa50(0x150)]['zIndex']='49',_0x489061['style'][_0x21aa50(0x173)]=_0x21aa50(0x14e),_0x9b6225[_0x21aa50(0x13e)](_0x489061);}[_0x243ccf(0xd7)](){const _0xc4c06f=_0x243ccf;[[_0x48739e],[_0x577dbf,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4d5580],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x3d34fa],[_0x413776],[_0x4695f1],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x3f106b],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]]['forEach'](([_0x1084b8,_0x3151b3])=>this[_0xc4c06f(0x156)](_0x1084b8,_0x3151b3));}['dispose'](){const _0x7cbe86=_0x243ccf;super['dispose'](),this[_0x7cbe86(0xcf)](),this['_pluginMap']['clear']();}[_0x243ccf(0x156)](_0x10bf8d,_0x577393,_0xfb619e){const _0x1647f2=_0x243ccf;if(this['_pluginMap'][_0x1647f2(0x170)](_0x10bf8d[_0x1647f2(0x11e)])&&!_0xfb619e)throw Error(_0x1647f2(0x179)+_0x10bf8d[_0x1647f2(0x11e)]+_0x1647f2(0x153));this[_0x1647f2(0x139)]['set'](_0x10bf8d['pluginName'],[_0x10bf8d,_0x577393]);}[_0x243ccf(0x17a)](){const _0x52d762=_0x243ccf;return Array[_0x52d762(0x13d)](this[_0x52d762(0x139)][_0x52d762(0x13a)]());}['mountHistoryContent'](_0x779098,_0x1aa86a){const _0x4fab1f=_0x243ccf;let _0x328f13=document[_0x4fab1f(0xd8)](W);_0x328f13&&(_0x328f13[_0x4fab1f(0x150)][_0x4fab1f(0x173)]=_0x4fab1f(0xe3),this[_0x4fab1f(0xf1)](_0x779098,W,_0x1aa86a));}['unMountHistoryContent'](){const _0x1e519e=_0x243ccf;var _0xb2ff48;this['_disposableCollection']['dispose'](),(_0xb2ff48=this[_0x1e519e(0x151)])==null||_0xb2ff48[_0x1e519e(0xcb)](),this[_0x1e519e(0xd4)][_0x1e519e(0x148)](null);let _0x2aa2eb=document[_0x1e519e(0xd8)](W);_0x2aa2eb&&(_0x2aa2eb[_0x1e519e(0x150)][_0x1e519e(0x173)]=_0x1e519e(0x14e),this['_internalWebWorker']&&(this['_internalWebWorker'][_0x1e519e(0xf7)](),this['_internalWebWorker']=null));}[_0x243ccf(0xf1)](_0x5f408d,_0x522cb9,_0x587617){const _0x2f9264=_0x243ccf;var _0x1fe2a6,_0x323ddb,_0x316774,_0x3edad0,_0x578637;if(this[_0x2f9264(0x151)])return;let _0x9009c3=new _0x597837({'locales':{[this['_localeService'][_0x2f9264(0x176)]()]:this['_localeService']['getLocales']()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x140c82=_0x9009c3[_0x2f9264(0xc2)]();this['disposeWithMe'](this['_themeService'][_0x2f9264(0x131)]['subscribe'](_0x30b1e2=>{const _0x34d817=_0x2f9264;_0x140c82[_0x34d817(0x126)](_0x537b2f)[_0x34d817(0x160)](_0x30b1e2);})),this[_0x2f9264(0x137)](this[_0x2f9264(0x113)][_0x2f9264(0xeb)][_0x2f9264(0x133)](_0x3fef4a=>{const _0x2ed726=_0x2f9264;_0x140c82['get'](_0x537b2f)[_0x2ed726(0xc8)](_0x3fef4a);})),_0x140c82['get'](_0x587fa0)[_0x2f9264(0x143)](this[_0x2f9264(0x164)][_0x2f9264(0x176)]()),_0x140c82[_0x2f9264(0x126)](_0x88d7b9)['setConfig'](_0x112339,this['_configService'][_0x2f9264(0xc9)](_0x112339));let _0x84b9b=this[_0x2f9264(0xde)]['getConfig'](_0x3f10cc);_0x84b9b&&_0x9009c3[_0x2f9264(0x156)](_0x4635cb,{'license':_0x84b9b['ls']});let _0x8c2325=(_0x1fe2a6=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x1fe2a6[_0x2f9264(0xce)],_0x526ff9=!!_0x8c2325;_0x526ff9&&(this[_0x2f9264(0xc0)]=_0x8c2325 instanceof Worker?_0x8c2325:null,_0x9009c3[_0x2f9264(0x156)](_0x3b8b6a,{'workerURL':_0x8c2325})),this[_0x2f9264(0x139)][_0x2f9264(0x136)](([_0x2aa22e,_0x435e9e])=>{const _0xa1fc3e=_0x2f9264;_0x9009c3[_0xa1fc3e(0x156)](_0x2aa22e,_0x435e9e);}),_0x9009c3[_0x2f9264(0x156)](_0x3c5bc0,{'historyListServerUrl':(_0x323ddb=this['_configService'][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x323ddb['historyListServerUrl'],'historyPanelComponentKey':(_0x316774=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x316774[_0x2f9264(0x17e)],'historyPanelHidden':(_0x3edad0=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3edad0[_0x2f9264(0x152)],'historyAIassistantEnabled':(_0x578637=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x578637['historyAIassistantEnabled']}),_0x140c82['invoke'](_0x3fc5d5=>{this['_initListener'](_0x3fc5d5,_0x5f408d);}),this[_0x2f9264(0xd4)][_0x2f9264(0x148)](_0x9009c3);let _0x4ccca4=_0x140c82['get'](_0x2e09fa),_0x1e46e2=this[_0x2f9264(0x10a)](_0x5f408d),_0x12e780=()=>{const _0x43a28e=_0x2f9264;_0x587617?_0x4ccca4[_0x43a28e(0xd6)](_0x5f408d,_0x522cb9,_0x1e46e2,_0x587617):_0x4ccca4[_0x43a28e(0x154)](_0x5f408d,_0x522cb9,_0x1e46e2);};if(this['_messageService']['show']({'content':this[_0x2f9264(0x164)]['t'](_0x2f9264(0x121)),'type':_0x3ed100['Loading']}),_0x526ff9)try{_0x140c82['get'](_0x177025)['whenReady']()[_0x2f9264(0x107)](()=>{_0x12e780();});}catch{_0x12e780();}else _0x12e780();}[_0x243ccf(0x105)](_0x34810e,_0x1ca791){const _0x24195c=_0x243ccf;let _0x5c5575=_0x34810e['get'](_0x2e09fa);this['_disposableCollection']['add'](_0x5c5575['status$'][_0x24195c(0x133)](_0x14fc31=>{const _0x46e7b4=_0x24195c;switch(_0x14fc31){case _0x325997[_0x46e7b4(0xec)]:this[_0x46e7b4(0xdc)][_0x46e7b4(0xe8)](),this[_0x46e7b4(0x134)][_0x46e7b4(0x112)]();break;case _0x325997[_0x46e7b4(0xfd)]:this[_0x46e7b4(0x165)][_0x46e7b4(0xc1)](q['id']),this[_0x46e7b4(0xcf)]();break;case _0x325997[_0x46e7b4(0x12d)]:this[_0x46e7b4(0xcf)](),this[_0x46e7b4(0x138)][_0x46e7b4(0x167)]({'content':this[_0x46e7b4(0x164)]['t'](_0x46e7b4(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x24195c(0xdd)][_0x24195c(0xd2)](_0x5c5575[_0x24195c(0xf5)]['subscribe'](async _0x3ea2ff=>{_0x3ea2ff&&this['_commandService']['executeCommand'](_0x377181['id'],{'unitId':_0x1ca791,'revision':_0x3ea2ff});}));}[_0x243ccf(0x10a)](_0x54fd14){const _0x5661bd=_0x243ccf;let _0x1d277e=this['_univerInstanceService'][_0x5661bd(0x14b)](_0x54fd14)[_0x5661bd(0xed)]()[_0x5661bd(0x166)](_0x510c26=>_0x510c26[_0x5661bd(0x117)]()),_0x2c78ed=new _0x582020(_0x54fd14)['id'],_0x5dac24=_0x1d277e[_0x5661bd(0x166)](_0x1d580f=>new _0x5e198a(_0x54fd14,_0x1d580f)['id']),_0x1918a1=_0x1d277e[_0x5661bd(0x166)](_0x4c651f=>this[_0x5661bd(0x12c)][_0x5661bd(0x106)](_0x54fd14,_0x4c651f)['map'](_0x428730=>new _0xd88977(_0x54fd14,_0x4c651f,_0x428730[_0x5661bd(0x128)])['id']))['flat'](),_0x8548ff=new _0x28c852(_0x54fd14)['id'];return this[_0x5661bd(0x174)][_0x5661bd(0x146)]([_0x2c78ed,..._0x5dac24,..._0x1918a1,_0x8548ff])['every'](_0x1c2252=>!!_0x1c2252['value']);}};G=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],G);const K={'id':_0x243ccf(0xc3),'type':_0x19c209[_0x243ccf(0xe7)],'handler':_0xfb236=>{const _0x562aca=_0x243ccf;let _0xd88dee=_0xfb236[_0x562aca(0x126)](G),{unitId:_0x4734b5}=_0x46712e(_0xfb236['get'](_0x564820))||{};return _0x4734b5?(_0xd88dee[_0x562aca(0xd0)](_0x4734b5),!0x0):!0x1;}},q={'id':'univer.operation.exit-edit-history','type':_0x19c209[_0x243ccf(0xe7)],'handler':()=>!0x0};var ct=_0x243ccf(0x16f),lt=_0x243ccf(0x12e);function ut(_0x5f56fb){const _0x3da472=_0x243ccf;return{'id':K['id'],'type':_0x5a8475[_0x3da472(0x109)],'icon':_0x3da472(0xe1),'tooltip':'editHistory.panel.title','hidden$':_0x13d426(_0x5f56fb,_0xf2429e['UNIVER_SHEET']),'disabled$':_0x2d08bc(_0x5f56fb,{'workbookTypes':[_0x582020,_0x55d453],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x2c4b0f['OTHERS']]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x531dc7{constructor(_0x531dab,_0x3bc484,_0x267cde,_0x1cc890,_0x12b7ac,_0xe5a96,_0x30748e,_0x4cad27,_0x3f724c,_0xec8a72,_0x4e6dd5){const _0x4ebd5a=_0x243ccf;super(),this[_0x4ebd5a(0x165)]=_0x531dab,this[_0x4ebd5a(0xcd)]=_0x3bc484,this['_componentManager']=_0x267cde,this['_historyManagerService']=_0x1cc890,this[_0x4ebd5a(0x164)]=_0x12b7ac,this[_0x4ebd5a(0x138)]=_0xe5a96,this[_0x4ebd5a(0xdf)]=_0x30748e,this[_0x4ebd5a(0xe2)]=_0x4cad27,this[_0x4ebd5a(0x104)]=_0x3f724c,this['_univerInstanceService']=_0xec8a72,this['_urlService']=_0x4e6dd5,B(this,'_revertErrorTimer',null),this[_0x4ebd5a(0x16e)]();}[_0x243ccf(0x16e)](){const _0x51c7a3=_0x243ccf;[K,q]['forEach'](_0x359081=>this[_0x51c7a3(0x137)](_0x3ff83f(this[_0x51c7a3(0x165)]['registerCommand'](_0x359081)))),this[_0x51c7a3(0x137)](this[_0x51c7a3(0x10f)][_0x51c7a3(0xf6)](_0x51c7a3(0xe1),_0x4e8247)),this[_0x51c7a3(0xcd)][_0x51c7a3(0xfc)](dt),this['disposeWithMe'](this[_0x51c7a3(0x165)][_0x51c7a3(0x14f)](async(_0x52efc4,_0x5a5d02)=>{const _0x4ba5d6=_0x51c7a3;if(_0x52efc4['id']===_0x377181['id']){let {unitId:_0x34c088}=_0x52efc4[_0x4ba5d6(0x17f)];this[_0x4ba5d6(0x138)][_0x4ba5d6(0x167)]({'content':this[_0x4ba5d6(0x164)]['t'](_0x4ba5d6(0xf3)),'type':_0x3ed100[_0x4ba5d6(0xfe)],'duration':0x1388});let _0x50426c=this[_0x4ba5d6(0xdf)]['getCollabEntity'](_0x34c088);_0x5a5d02!=null&&_0x5a5d02['fromCollab']?this[_0x4ba5d6(0x15f)](_0x50426c,async()=>(setTimeout(()=>window[_0x4ba5d6(0x122)][_0x4ba5d6(0x10e)]()),!0x0),!0x0):this[_0x4ba5d6(0x15f)](_0x50426c,async()=>{const _0x1ef363=_0x4ba5d6;let _0x58f189=this['_univerInstanceService'][_0x1ef363(0x157)](_0x510b10[_0x1ef363(0xfa)]),_0x54b2b4=_0x58f189==null?void 0x0:_0x58f189[_0x1ef363(0xee)]();if(!_0x54b2b4)return!0x1;this[_0x1ef363(0xd5)][_0x1ef363(0xff)](_0x34c088);let _0x111dbc=await this[_0x1ef363(0x104)][_0x1ef363(0xc4)](_0x34c088,_0x510b10[_0x1ef363(0xfa)]);return _0x111dbc&&_0x111dbc instanceof _0x1b4b80?(await this[_0x1ef363(0xf2)](_0x111dbc,_0x54b2b4['getSheetId']()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x2a7060,_0x59c45d,_0x5aa092=!0x1){const _0x581fe7=_0x243ccf;let _0x51a454=_0x1b6270([_0x2a7060[_0x581fe7(0xca)][_0x581fe7(0x13c)],_0x2a7060[_0x581fe7(0xe4)]])['subscribe'](async([_0x57a8f7,_0x213a50])=>{const _0x1ac2ea=_0x581fe7;if(_0x57a8f7['eventID']===_0x22e3de[_0x1ac2ea(0x149)]&&(_0x213a50==null?void 0x0:_0x213a50[_0x1ac2ea(0x177)])===_0x20abcb[_0x1ac2ea(0x147)]&&_0x57a8f7[_0x1ac2ea(0x15c)][_0x1ac2ea(0xef)][_0x1ac2ea(0x16c)](_0x4cc6c8=>_0x4cc6c8['id']===_0x377181['id'])&&await _0x59c45d()){var _0x3461c6;this[_0x1ac2ea(0x11a)][_0x1ac2ea(0xcf)](),_0x51a454[_0x1ac2ea(0x11f)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x3461c6=this[_0x1ac2ea(0xe2)])==null?void 0x0:_0x3461c6[_0x1ac2ea(0x181)]()),this['_messageService'][_0x1ac2ea(0xc6)]();}});_0x5aa092&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x549f45=_0x581fe7;_0x51a454[_0x549f45(0x11f)](),this[_0x549f45(0x138)][_0x549f45(0x167)]({'content':this[_0x549f45(0x164)]['t'](_0x549f45(0x11b)),'type':_0x3ed100[_0x549f45(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x5f5c47,_0x43d2c8){const _0x497793=_0x243ccf;await this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8),_0x5f5c47[_0x497793(0x135)]['pipe'](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](_0x287be7=>{const _0x1cd965=_0x497793;_0x287be7&&this[_0x1cd965(0xc5)](_0x287be7);}),this[_0x497793(0x100)][_0x497793(0x15e)][_0x497793(0xfb)](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](()=>this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8));}[_0x243ccf(0xc5)](_0x15eed2,_0x37a1f4=!0x1){const _0x35b1e0=_0x243ccf;let _0x12c401=this[_0x35b1e0(0x100)][_0x35b1e0(0x12f)](_0x35b1e0(0x10d));_0x15eed2[_0x35b1e0(0x117)]()!==_0x12c401&&this['_urlService'][_0x35b1e0(0x10b)](_0x35b1e0(0x10d),_0x15eed2[_0x35b1e0(0x117)](),_0x37a1f4);}async['_updateSubUnitFromURLParams'](_0x567f0a,_0x1f05e){const _0x5780c1=_0x243ccf;var _0x2c9ed8;if(!_0x1f05e||!_0x567f0a['getSheetBySheetId'](_0x1f05e)){let _0x4b0ed8=_0x567f0a[_0x5780c1(0x123)]()[0x0],_0x50527f=_0x567f0a[_0x5780c1(0x144)](_0x4b0ed8);if(!_0x50527f)return;this[_0x5780c1(0xc5)](_0x50527f,!0x0),await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x4b0ed8});return;}((_0x2c9ed8=_0x567f0a[_0x5780c1(0xee)]())==null?void 0x0:_0x2c9ed8[_0x5780c1(0x117)]())!==_0x1f05e&&await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x1f05e});}};J=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],J);const Y='univer-history-container-mobile';let X=class extends _0x56b781{constructor(_0x2eff19,_0x48135e,_0x14a30d,_0x4cc662,_0x4d24d9,_0x16b8ac,_0x55a70c,_0x856df1,_0xa2bb99,_0x254bcb){const _0x24c2c5=_0x243ccf;super(),this[_0x24c2c5(0x164)]=_0x2eff19,this[_0x24c2c5(0xd5)]=_0x48135e,this['_configService']=_0x14a30d,this[_0x24c2c5(0x165)]=_0x4cc662,this[_0x24c2c5(0x138)]=_0x4d24d9,this['_permissionService']=_0x16b8ac,this[_0x24c2c5(0x12c)]=_0x55a70c,this[_0x24c2c5(0xdc)]=_0x856df1,this[_0x24c2c5(0x134)]=_0xa2bb99,this['_themeService']=_0x254bcb,B(this,_0x24c2c5(0xd4),new _0x190d06(null)),B(this,_0x24c2c5(0xc7),this['_historyUniver$'][_0x24c2c5(0x14a)]()),B(this,_0x24c2c5(0xdd),new _0x16a15f()),B(this,_0x24c2c5(0x139),new Map()),B(this,'_internalWebWorker',null),this[_0x24c2c5(0x16e)]();}get[_0x243ccf(0x151)](){const _0x485df=_0x243ccf;return this[_0x485df(0xd4)]['value'];}[_0x243ccf(0x16e)](){const _0x9d5d6a=_0x243ccf;this[_0x9d5d6a(0x125)](),this[_0x9d5d6a(0xd7)]();}['_initContainer'](){const _0x270b24=_0x243ccf;var _0xc8a5b;let _0x5dd605=(_0xc8a5b=this[_0x270b24(0xde)]['getConfig'](_0x270b24(0x101)))==null?_0x270b24(0x15d):_0xc8a5b,_0x189a8a=document[_0x270b24(0xd8)](_0x5dd605);if(!_0x189a8a)return;let _0x1212c8=document['createElement']('div');_0x1212c8['id']=Y,_0x1212c8[_0x270b24(0x172)][_0x270b24(0xf8)]=_0x270b24(0x115),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x103)]=_0x270b24(0x116),_0x1212c8['style']['top']='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x169)]='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x120)]='100%',_0x1212c8['style'][_0x270b24(0x158)]=_0x270b24(0xf9),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x180)]='49',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x173)]='none',_0x189a8a[_0x270b24(0x13e)](_0x1212c8);}[_0x243ccf(0xd7)](){const _0x2d47f2=_0x243ccf;[[_0x48739e],[_0x53a928,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4864b9],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x413776],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x534673],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]][_0x2d47f2(0x136)](([_0x3ae166,_0x233d68])=>this[_0x2d47f2(0x156)](_0x3ae166,_0x233d68));}[_0x243ccf(0xcb)](){const _0x54b05d=_0x243ccf;super[_0x54b05d(0xcb)](),this[_0x54b05d(0xcf)](),this[_0x54b05d(0x139)][_0x54b05d(0xe9)]();}['registerPlugin'](_0x5be1c4,_0x14a440,_0x5e7aa6){const _0xbc8da9=_0x243ccf;if(this[_0xbc8da9(0x139)][_0xbc8da9(0x170)](_0x5be1c4[_0xbc8da9(0x11e)])&&!_0x5e7aa6)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5be1c4[_0xbc8da9(0x11e)]+_0xbc8da9(0x153));this[_0xbc8da9(0x139)][_0xbc8da9(0x13f)](_0x5be1c4[_0xbc8da9(0x11e)],[_0x5be1c4,_0x14a440]);}['getAllPlugins'](){const _0x17f442=_0x243ccf;return Array[_0x17f442(0x13d)](this[_0x17f442(0x139)][_0x17f442(0x13a)]());}[_0x243ccf(0xd0)](_0x358e22,_0x469c1d){const _0x59b9b4=_0x243ccf;let _0x503d60=document[_0x59b9b4(0xd8)](Y);_0x503d60&&(_0x503d60[_0x59b9b4(0x150)][_0x59b9b4(0x173)]=_0x59b9b4(0xe3),this[_0x59b9b4(0xf1)](_0x358e22,Y,_0x469c1d));}[_0x243ccf(0xcf)](){const _0x293e8f=_0x243ccf;var _0x206e66;this['_disposableCollection'][_0x293e8f(0xcb)](),(_0x206e66=this['historyUniver'])==null||_0x206e66[_0x293e8f(0xcb)](),this['_historyUniver$']['next'](null);let _0x10d11a=document[_0x293e8f(0xd8)](Y);_0x10d11a&&(_0x10d11a[_0x293e8f(0x150)][_0x293e8f(0x173)]=_0x293e8f(0x14e),this['_internalWebWorker']&&(this[_0x293e8f(0xc0)][_0x293e8f(0xf7)](),this[_0x293e8f(0xc0)]=null));}['_initUniver'](_0x17b31e,_0x3ed51d,_0x391b34){const _0x19b741=_0x243ccf;var _0x4815fb,_0x2f26cc,_0x98afef,_0x45d987;if(this['historyUniver'])return;let _0x56d4e4=new _0x597837({'locales':{[this[_0x19b741(0x164)][_0x19b741(0x176)]()]:this[_0x19b741(0x164)][_0x19b741(0x142)]()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x5a6c85=_0x56d4e4[_0x19b741(0xc2)]();this[_0x19b741(0x137)](this[_0x19b741(0x113)][_0x19b741(0x131)]['subscribe'](_0x5b758f=>{const _0x1f8530=_0x19b741;_0x5a6c85[_0x1f8530(0x126)](_0x537b2f)[_0x1f8530(0x160)](_0x5b758f);})),this[_0x19b741(0x137)](this['_themeService'][_0x19b741(0xeb)][_0x19b741(0x133)](_0x17f556=>{const _0x4bdec9=_0x19b741;_0x5a6c85[_0x4bdec9(0x126)](_0x537b2f)['setTheme'](_0x17f556);})),_0x5a6c85[_0x19b741(0x126)](_0x587fa0)[_0x19b741(0x143)](this[_0x19b741(0x164)]['getCurrentLocale']()),_0x5a6c85['get'](_0x88d7b9)[_0x19b741(0xe5)](_0x112339,this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x112339));let _0x4234c2=this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x3f10cc);_0x4234c2&&_0x56d4e4[_0x19b741(0x156)](_0x4635cb,{'license':_0x4234c2['ls']});let _0x29f4b2=(_0x4815fb=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x4815fb[_0x19b741(0xce)],_0x1de1b1=!!_0x29f4b2;_0x1de1b1&&(this[_0x19b741(0xc0)]=_0x29f4b2 instanceof Worker?_0x29f4b2:null,_0x56d4e4[_0x19b741(0x156)](_0x3b8b6a,{'workerURL':_0x29f4b2})),this[_0x19b741(0x139)][_0x19b741(0x136)](([_0x4743c2,_0x5cdb92])=>{const _0x55f18f=_0x19b741;_0x56d4e4[_0x55f18f(0x156)](_0x4743c2,_0x5cdb92);}),_0x56d4e4['registerPlugin'](_0x50eafa,{'historyListServerUrl':(_0x2f26cc=this[_0x19b741(0xde)][_0x19b741(0xc9)]('edit-history-loader.config'))==null?void 0x0:_0x2f26cc[_0x19b741(0x108)],'historyPanelComponentKey':(_0x98afef=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x98afef[_0x19b741(0x17e)],'historyPanelHidden':(_0x45d987=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x45d987[_0x19b741(0x152)]}),_0x5a6c85[_0x19b741(0x17c)](_0x2785da=>{const _0x215e7c=_0x19b741;this[_0x215e7c(0x105)](_0x2785da,_0x17b31e);}),this[_0x19b741(0xd4)][_0x19b741(0x148)](_0x56d4e4);let _0x28bc3b=_0x5a6c85['get'](_0x2e09fa),_0xb3c34=this[_0x19b741(0x10a)](_0x17b31e),_0xd78343=()=>{const _0x545775=_0x19b741;_0x391b34?_0x28bc3b['triggerCustomVersions'](_0x17b31e,_0x3ed51d,_0xb3c34,_0x391b34):_0x28bc3b[_0x545775(0x154)](_0x17b31e,_0x3ed51d,_0xb3c34);};if(this[_0x19b741(0x138)][_0x19b741(0x167)]({'content':this[_0x19b741(0x164)]['t']('editHistory.info.initializing'),'type':_0x3ed100[_0x19b741(0xfe)]}),_0x1de1b1)try{_0x5a6c85[_0x19b741(0x126)](_0x177025)['whenReady']()['then'](()=>{_0xd78343();});}catch{_0xd78343();}else _0xd78343();}[_0x243ccf(0x105)](_0x1464bf,_0x162832){const _0x548f88=_0x243ccf;let _0x1e7fff=_0x1464bf[_0x548f88(0x126)](_0x2e09fa);this[_0x548f88(0xdd)]['add'](_0x1e7fff[_0x548f88(0x124)][_0x548f88(0x133)](_0x42bda0=>{const _0x521580=_0x548f88;switch(_0x42bda0){case _0x325997[_0x521580(0xec)]:this[_0x521580(0xdc)][_0x521580(0xe8)](),this[_0x521580(0x134)][_0x521580(0x112)]();break;case _0x325997[_0x521580(0xfd)]:this[_0x521580(0x165)][_0x521580(0xc1)](q['id']),this[_0x521580(0xcf)]();break;case _0x325997[_0x521580(0x12d)]:this[_0x521580(0xcf)](),this['_messageService'][_0x521580(0x167)]({'content':this[_0x521580(0x164)]['t'](_0x521580(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x548f88(0xdd)][_0x548f88(0xd2)](_0x1e7fff[_0x548f88(0xf5)]['subscribe'](async _0x328881=>{const _0x4c7a00=_0x548f88;_0x328881&&this[_0x4c7a00(0x165)][_0x4c7a00(0xc1)](_0x377181['id'],{'unitId':_0x162832,'revision':_0x328881});}));}[_0x243ccf(0x10a)](_0x529d36){const _0x58197e=_0x243ccf;let _0x77743e=this[_0x58197e(0xd5)][_0x58197e(0x14b)](_0x529d36)[_0x58197e(0xed)]()[_0x58197e(0x166)](_0x2117de=>_0x2117de['getSheetId']()),_0x27fb52=new _0x582020(_0x529d36)['id'],_0x35bd67=_0x77743e[_0x58197e(0x166)](_0xcfb21a=>new _0x5e198a(_0x529d36,_0xcfb21a)['id']),_0x9e0380=_0x77743e[_0x58197e(0x166)](_0x4c2793=>this[_0x58197e(0x12c)][_0x58197e(0x106)](_0x529d36,_0x4c2793)['map'](_0x3b40ed=>new _0xd88977(_0x529d36,_0x4c2793,_0x3b40ed[_0x58197e(0x128)])['id']))[_0x58197e(0xd1)](),_0x5e99a1=new _0x28c852(_0x529d36)['id'];return this[_0x58197e(0x174)][_0x58197e(0x146)]([_0x27fb52,..._0x35bd67,..._0x9e0380,_0x5e99a1])[_0x58197e(0x175)](_0x44af8c=>!!_0x44af8c[_0x58197e(0x12b)]);}};X=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],X);let Z=class extends _0x25956b{constructor(_0x53b142=R,_0x7b261b,_0x158011){const _0x3738c5=_0x243ccf;super(),this[_0x3738c5(0x15a)]=_0x53b142,this['_injector']=_0x7b261b,this[_0x3738c5(0xde)]=_0x158011;let {menu:_0x255d26,..._0x31e77b}=_0x32845e({},R,this[_0x3738c5(0x15a)]);_0x255d26&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)](_0x3738c5(0x102),_0x255d26,{'merge':!0x0}),this['_configService']['setConfig'](L,_0x31e77b),this['_config']['univerContainerId']&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)]('UNIVER_CONTAINER_ID',this['_config'][_0x3738c5(0xdb)]);}[_0x243ccf(0x111)](){const _0x42a4c8=_0x243ccf;[[G,{'useClass':X}],[J]]['forEach'](_0x301bc9=>this[_0x42a4c8(0xda)]['add'](_0x301bc9));}['onSteady'](){const _0x2a5b77=_0x243ccf;this[_0x2a5b77(0xda)][_0x2a5b77(0x126)](J);}};B(Z,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B(Z,_0x243ccf(0x11e),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x243ccf(0x118),ct),B(Z,_0x243ccf(0x168),lt),Z=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],Z);let Q=class extends _0x531dc7{constructor(_0x335fe6,_0x167d74,_0x45218c,_0xd8e97b,_0x58ba73,_0x5a03ac,_0x1a80fa,_0x1ddf6b,_0xc5fc23,_0x1b0b3f,_0x46074a){const _0xceca1e=_0x243ccf;super(),this[_0xceca1e(0x165)]=_0x335fe6,this[_0xceca1e(0xcd)]=_0x167d74,this[_0xceca1e(0x10f)]=_0x45218c,this[_0xceca1e(0x11a)]=_0xd8e97b,this['_localeService']=_0x58ba73,this[_0xceca1e(0x138)]=_0x5a03ac,this[_0xceca1e(0xdf)]=_0x1a80fa,this[_0xceca1e(0xe2)]=_0x1ddf6b,this[_0xceca1e(0x104)]=_0xc5fc23,this[_0xceca1e(0xd5)]=_0x1b0b3f,this[_0xceca1e(0x100)]=_0x46074a,B(this,_0xceca1e(0xd3),null),this[_0xceca1e(0x16e)]();}['_init'](){const _0xe7fb36=_0x243ccf;[K,q][_0xe7fb36(0x136)](_0x519e40=>this[_0xe7fb36(0x137)](_0x3ff83f(this['_commandService']['registerCommand'](_0x519e40)))),this[_0xe7fb36(0x137)](this[_0xe7fb36(0x10f)][_0xe7fb36(0xf6)](_0xe7fb36(0xe1),_0x4e8247)),this['_menuManagerService'][_0xe7fb36(0xfc)](dt),this['disposeWithMe'](this[_0xe7fb36(0x165)][_0xe7fb36(0x14f)](async(_0x32857e,_0x7eaae1)=>{const _0x557dea=_0xe7fb36;if(_0x32857e['id']===_0x377181['id']){let {unitId:_0x3aafc0}=_0x32857e[_0x557dea(0x17f)];this[_0x557dea(0x138)][_0x557dea(0x167)]({'content':this[_0x557dea(0x164)]['t'](_0x557dea(0xf3)),'type':_0x3ed100[_0x557dea(0xfe)],'duration':0x1388});let _0x1d851d=this['_collaborationController'][_0x557dea(0xe0)](_0x3aafc0);_0x7eaae1!=null&&_0x7eaae1[_0x557dea(0x132)]?this['_handleRevertAcknowledgement'](_0x1d851d,async()=>(setTimeout(()=>window[_0x557dea(0x122)][_0x557dea(0x10e)]()),!0x0),!0x0):this[_0x557dea(0x15f)](_0x1d851d,async()=>{const _0x3ca242=_0x557dea;let _0x112035=this['_univerInstanceService']['getCurrentUnitOfType'](_0x510b10[_0x3ca242(0xfa)]),_0x45d17f=_0x112035==null?void 0x0:_0x112035[_0x3ca242(0xee)]();if(!_0x45d17f)return!0x1;this[_0x3ca242(0xd5)][_0x3ca242(0xff)](_0x3aafc0);let _0x2f27b9=await this[_0x3ca242(0x104)][_0x3ca242(0xc4)](_0x3aafc0,_0x510b10[_0x3ca242(0xfa)]);return _0x2f27b9&&_0x2f27b9 instanceof _0x1b4b80?(await this[_0x3ca242(0xf2)](_0x2f27b9,_0x45d17f[_0x3ca242(0x117)]()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x135a4f,_0x125674,_0x2c1a2a=!0x1){const _0x4c5c67=_0x243ccf;let _0x5b62c1=_0x1b6270([_0x135a4f['session']['event$'],_0x135a4f[_0x4c5c67(0xe4)]])[_0x4c5c67(0x133)](async([_0x1b3cf9,_0x906444])=>{const _0x28da2b=_0x4c5c67;if(_0x1b3cf9[_0x28da2b(0x11d)]===_0x22e3de[_0x28da2b(0x149)]&&(_0x906444==null?void 0x0:_0x906444[_0x28da2b(0x177)])===_0x20abcb[_0x28da2b(0x147)]&&_0x1b3cf9['data'][_0x28da2b(0xef)]['some'](_0x4abdd4=>_0x4abdd4['id']===_0x377181['id'])&&await _0x125674()){var _0x4546ca;this[_0x28da2b(0x11a)][_0x28da2b(0xcf)](),_0x5b62c1[_0x28da2b(0x11f)](),this[_0x28da2b(0xd3)]&&clearTimeout(this[_0x28da2b(0xd3)]),await((_0x4546ca=this[_0x28da2b(0xe2)])==null?void 0x0:_0x4546ca[_0x28da2b(0x181)]());}});_0x2c1a2a&&(this[_0x4c5c67(0xd3)]=setTimeout(()=>{const _0x4c5a05=_0x4c5c67;_0x5b62c1[_0x4c5a05(0x11f)](),this[_0x4c5a05(0x138)][_0x4c5a05(0x167)]({'content':this[_0x4c5a05(0x164)]['t'](_0x4c5a05(0x11b)),'type':_0x3ed100[_0x4c5a05(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x1203f2,_0x1b1036){const _0x51e0b4=_0x243ccf;await this[_0x51e0b4(0x145)](_0x1203f2,_0x1b1036),_0x1203f2['activeSheet$']['pipe'](_0x25d598(this['dispose$']))[_0x51e0b4(0x133)](_0xb1241e=>{const _0x178f6b=_0x51e0b4;_0xb1241e&&this[_0x178f6b(0xc5)](_0xb1241e);}),this[_0x51e0b4(0x100)][_0x51e0b4(0x15e)][_0x51e0b4(0xfb)](_0x25d598(this[_0x51e0b4(0x155)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1203f2,_0x1b1036));}[_0x243ccf(0xc5)](_0x21b3be,_0x39b53f=!0x1){const _0x1c89d7=_0x243ccf;let _0x7ca5ea=this[_0x1c89d7(0x100)][_0x1c89d7(0x12f)](_0x1c89d7(0x10d));_0x21b3be[_0x1c89d7(0x117)]()!==_0x7ca5ea&&this[_0x1c89d7(0x100)][_0x1c89d7(0x10b)](_0x1c89d7(0x10d),_0x21b3be[_0x1c89d7(0x117)](),_0x39b53f);}async[_0x243ccf(0x145)](_0x4f6fbc,_0x45af9a){const _0xd5b615=_0x243ccf;var _0x500f88;if(!_0x45af9a||!_0x4f6fbc[_0xd5b615(0x144)](_0x45af9a)){let _0x3ca466=_0x4f6fbc[_0xd5b615(0x123)]()[0x0],_0x34cecd=_0x4f6fbc['getSheetBySheetId'](_0x3ca466);if(!_0x34cecd)return;this[_0xd5b615(0xc5)](_0x34cecd,!0x0),await this[_0xd5b615(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x4f6fbc['getUnitId'](),'subUnitId':_0x3ca466});return;}((_0x500f88=_0x4f6fbc[_0xd5b615(0xee)]())==null?void 0x0:_0x500f88['getSheetId']())!==_0x45af9a&&await this[_0xd5b615(0x165)][_0xd5b615(0xc1)](_0x1a252d['id'],{'unitId':_0x4f6fbc[_0xd5b615(0x178)](),'subUnitId':_0x45af9a});}};Q=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],Q);let $=class extends _0x25956b{constructor(_0x2cb991=R,_0x578436,_0x3487a1){const _0x52f7f7=_0x243ccf;super(),this[_0x52f7f7(0x15a)]=_0x2cb991,this[_0x52f7f7(0xda)]=_0x578436,this['_configService']=_0x3487a1;let {menu:_0x5afac8,..._0x4dfe7f}=_0x32845e({},R,this[_0x52f7f7(0x15a)]);_0x5afac8&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](_0x52f7f7(0x102),_0x5afac8,{'merge':!0x0}),this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](L,_0x4dfe7f),this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](U,this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]);}['onStarting'](){const _0x41ab7d=_0x243ccf;[[G],[Q]][_0x41ab7d(0x136)](_0x1509d7=>this[_0x41ab7d(0xda)][_0x41ab7d(0xd2)](_0x1509d7));}[_0x243ccf(0x163)](){const _0x28de9a=_0x243ccf;this[_0x28de9a(0xda)]['get'](Q);}};B($,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B($,_0x243ccf(0x11e),_0x243ccf(0x17b)),B($,_0x243ccf(0x118),ct),B($,_0x243ccf(0x168),lt),$=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x30cee0=_0x8e5c;(function(_0x257f7e,_0x41a4a2){const _0x906ad9=_0x8e5c,_0x4de9f5=_0x257f7e();while(!![]){try{const _0x4b5638=parseInt(_0x906ad9(0x198))/0x1+parseInt(_0x906ad9(0x1cb))/0x2+parseInt(_0x906ad9(0x215))/0x3+-parseInt(_0x906ad9(0x1d6))/0x4+-parseInt(_0x906ad9(0x174))/0x5+parseInt(_0x906ad9(0x1bf))/0x6+parseInt(_0x906ad9(0x21b))/0x7;if(_0x4b5638===_0x41a4a2)break;else _0x4de9f5['push'](_0x4de9f5['shift']());}catch(_0x4f00d2){_0x4de9f5['push'](_0x4de9f5['shift']());}}}(_0x4791,0x8eec8));import{CommandType as _0x417d54,DependentOn as _0xd3d8f5,Disposable as _0x38c581,DisposableCollection as _0x57be15,IAuthzIoService as _0x127ad8,ICommandService as _0x10df23,IConfigService as _0x4d97a0,IPermissionService as _0x38da5f,IUniverInstanceService as _0x757a60,Inject as _0x176299,Injector as _0xfd563a,LocaleService as _0x44bc99,Plugin as _0x852139,RxDisposable as _0x374fa8,ThemeService as _0x5ddc3f,Univer as _0x2fd0f5,UniverInstanceType as _0x148251,Workbook as _0x48882a,merge as _0x3896f6,toDisposable as _0x3e927d}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x51a168,RangeProtectionRuleModel as _0x1cbb88,SetWorksheetActivateCommand as _0x14a98d,UniverSheetsPlugin as _0x3f206c,WorkbookEditablePermission as _0x43a0ac,WorkbookRecoverHistoryPermission as _0x57d2d6,WorkbookViewHistoryPermission as _0x1f2f44,WorksheetEditPermission as _0x49770f,getSheetCommandTarget as _0x4610c1}from'@univerjs/sheets';import{CollaborationEvent as _0x288cbe,RevertRevisionMutation as _0x5b0966,UniverCollaborationPlugin as _0x1c3c75}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x2ed596,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x338bd6,CollaborationController as _0x261ebc,CollaborationStatus as _0x15958f,DataLoaderService as _0x5f3260,ILocalCacheService as _0x3911fe}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x405830,HistoryModeStatus as _0x2da942,UniverEditHistoryViewerMobilePlugin as _0x25046b,UniverEditHistoryViewerPlugin as _0x18f23d}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3304c0,UniverLicensePlugin as _0xc828e}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x37e97d}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x298f86}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2f949d}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x17614d}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x4f732f}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0xbfd183}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5c9f50}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x5b485b}from'@univerjs/data-validation';import{MessageType as _0x1096cb}from'@univerjs/design';import{UniverDocsPlugin as _0x5ce928}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x57d833}from'@univerjs/docs-ui';import{IImageIoService as _0x1bb8d0,UniverDrawingPlugin as _0x4da563}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x469f48}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x18567a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x24b5f8}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x8802b6}from'@univerjs/network';import{IRemoteInstanceService as _0x4453db,UniverRPCMainThreadPlugin as _0xb2c054}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x58d35e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x371ab4}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5c9d52}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x396896,UniverSheetsDataValidationUIPlugin as _0x212bc8}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x2318b1}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1d2814}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x44e6f6}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x7d139b}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x400283}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x532a31}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x34cfd3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x505b2c}from'@univerjs/sheets-hyper-link-ui';function _0x8e5c(_0x5a14ae,_0x471d23){_0x5a14ae=_0x5a14ae-0x167;const _0x479101=_0x4791();let _0x8e5cec=_0x479101[_0x5a14ae];return _0x8e5cec;}import{UniverSheetsNumfmtPlugin as _0x2e80bd}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x1591b5}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x2a739f,UniverSheetsUIPlugin as _0x4a4c81,getCurrentRangeDisable$ as _0x2eeeed}from'@univerjs/sheets-ui';import{ComponentManager as _0x3fa206,IDialogService as _0x3375b0,IMenuManagerService as _0x49b1ee,IMessageService as _0x3095a2,ISidebarService as _0x22d10b,MenuItemType as _0x20b139,RibbonStartGroup as _0xdbe3ab,UniverMobileUIPlugin as _0x567c9c,UniverUIPlugin as _0x97cbce,getMenuHiddenObservable as _0x319495}from'@univerjs/ui';import{BehaviorSubject as _0x6655f1,combineLatest as _0x451b3f,takeUntil as _0xaee6e3}from'rxjs';import{IURLService as _0x53cf4f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x2ba663}from'@univerjs/icons';import{UniverType as _0x5295ea}from'@univerjs/protocol';const L=_0x30cee0(0x18b);Symbol(L);const R={};function z(_0x557299){'@babel/helpers - typeof';const _0x207d43=_0x30cee0;return z=typeof Symbol==_0x207d43(0x203)&&typeof Symbol[_0x207d43(0x205)]==_0x207d43(0x173)?function(_0x1fe456){return typeof _0x1fe456;}:function(_0x11cf89){const _0x1daa16=_0x207d43;return _0x11cf89&&typeof Symbol==_0x1daa16(0x203)&&_0x11cf89['constructor']===Symbol&&_0x11cf89!==Symbol[_0x1daa16(0x18a)]?_0x1daa16(0x173):typeof _0x11cf89;},z(_0x557299);}function ot(_0x4d7af4,_0xb12288){const _0x2626eb=_0x30cee0;if(z(_0x4d7af4)!=_0x2626eb(0x180)||!_0x4d7af4)return _0x4d7af4;var _0x3846b2=_0x4d7af4[Symbol[_0x2626eb(0x16d)]];if(_0x3846b2!==void 0x0){var _0x369e18=_0x3846b2[_0x2626eb(0x1a3)](_0x4d7af4,_0xb12288||_0x2626eb(0x1fb));if(z(_0x369e18)!='object')return _0x369e18;throw TypeError(_0x2626eb(0x1c8));}return(_0xb12288===_0x2626eb(0x224)?String:Number)(_0x4d7af4);}function st(_0x1636ce){const _0x10af06=_0x30cee0;var _0x409b02=ot(_0x1636ce,_0x10af06(0x224));return z(_0x409b02)==_0x10af06(0x173)?_0x409b02:_0x409b02+'';}function B(_0x12d3db,_0x1a45b2,_0x7cd817){return(_0x1a45b2=st(_0x1a45b2))in _0x12d3db?Object['defineProperty'](_0x12d3db,_0x1a45b2,{'value':_0x7cd817,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12d3db[_0x1a45b2]=_0x7cd817,_0x12d3db;}function V(_0x30a9c4,_0x35e631){return function(_0x5d52af,_0x22e5e7){_0x35e631(_0x5d52af,_0x22e5e7,_0x30a9c4);};}function H(_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2){const _0x1a6164=_0x30cee0;var _0x57781b=arguments[_0x1a6164(0x1ba)],_0x27a47d=_0x57781b<0x3?_0x210d5c:_0x4d9ac2===null?_0x4d9ac2=Object['getOwnPropertyDescriptor'](_0x210d5c,_0x4d0bdd):_0x4d9ac2,_0x19abbe;if(typeof Reflect==_0x1a6164(0x180)&&typeof Reflect[_0x1a6164(0x219)]==_0x1a6164(0x203))_0x27a47d=Reflect[_0x1a6164(0x219)](_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2);else{for(var _0x20ba3b=_0x553ac0['length']-0x1;_0x20ba3b>=0x0;_0x20ba3b--)(_0x19abbe=_0x553ac0[_0x20ba3b])&&(_0x27a47d=(_0x57781b<0x3?_0x19abbe(_0x27a47d):_0x57781b>0x3?_0x19abbe(_0x210d5c,_0x4d0bdd,_0x27a47d):_0x19abbe(_0x210d5c,_0x4d0bdd))||_0x27a47d);}return _0x57781b>0x3&&_0x27a47d&&Object[_0x1a6164(0x212)](_0x210d5c,_0x4d0bdd,_0x27a47d),_0x27a47d;}const U='UNIVER_CONTAINER_ID',W=_0x30cee0(0x1e8);let G=class extends _0x38c581{constructor(_0x336186,_0x3bc2b4,_0x154da6,_0x35da6c,_0x1a8e69,_0x2165c6,_0xe54ae,_0x49a10d,_0xca44ca,_0x3fe9c9){const _0xff1944=_0x30cee0;super(),this[_0xff1944(0x1a5)]=_0x336186,this[_0xff1944(0x16c)]=_0x3bc2b4,this[_0xff1944(0x21c)]=_0x154da6,this[_0xff1944(0x225)]=_0x35da6c,this[_0xff1944(0x1d0)]=_0x1a8e69,this[_0xff1944(0x1f6)]=_0x2165c6,this['_selectionProtectionRuleModel']=_0xe54ae,this[_0xff1944(0x191)]=_0x49a10d,this[_0xff1944(0x1ae)]=_0xca44ca,this[_0xff1944(0x16b)]=_0x3fe9c9,B(this,_0xff1944(0x1c2),new _0x6655f1(null)),B(this,_0xff1944(0x16a),this['_historyUniver$'][_0xff1944(0x20e)]()),B(this,'_disposableCollection',new _0x57be15()),B(this,'_pluginMap',new Map()),B(this,_0xff1944(0x1d4),null),this[_0xff1944(0x1e3)]();}get['historyUniver'](){const _0x441931=_0x30cee0;return this['_historyUniver$'][_0x441931(0x200)];}[_0x30cee0(0x1e3)](){const _0x54d37c=_0x30cee0;this['_initContainer'](),this[_0x54d37c(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x5b03d4=_0x30cee0;var _0x31a56e;let _0x531b1c=(_0x31a56e=this[_0x5b03d4(0x21c)][_0x5b03d4(0x1e9)]('UNIVER_CONTAINER_ID'))==null?_0x5b03d4(0x1ce):_0x31a56e,_0x3043f0=document[_0x5b03d4(0x189)](_0x531b1c);if(!_0x3043f0)return;let _0x10cd8a=document[_0x5b03d4(0x201)](_0x5b03d4(0x18c));_0x10cd8a['id']=W,_0x10cd8a['dataset'][_0x5b03d4(0x1f7)]='history-container',_0x10cd8a['style'][_0x5b03d4(0x1ad)]=_0x5b03d4(0x196),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1be)]='0',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x17d)]='0',_0x10cd8a[_0x5b03d4(0x1b1)]['width']=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1e1)]=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x202)]='49',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1ac)]='none',_0x3043f0[_0x5b03d4(0x207)](_0x10cd8a);}[_0x30cee0(0x1dd)](){const _0x1c7174=_0x30cee0;[[_0x24b5f8],[_0x97cbce,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x4a4c81],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x7d139b],[_0x58d35e],[_0x371ab4],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x212bc8],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]][_0x1c7174(0x1b6)](([_0x231c68,_0x342c19])=>this['registerPlugin'](_0x231c68,_0x342c19));}[_0x30cee0(0x1d9)](){const _0x589a22=_0x30cee0;super[_0x589a22(0x1d9)](),this[_0x589a22(0x221)](),this[_0x589a22(0x1b5)][_0x589a22(0x181)]();}['registerPlugin'](_0x548a52,_0x5bec4a,_0xab076e){const _0x38ccd5=_0x30cee0;if(this['_pluginMap'][_0x38ccd5(0x216)](_0x548a52['pluginName'])&&!_0xab076e)throw Error(_0x38ccd5(0x206)+_0x548a52[_0x38ccd5(0x1a0)]+_0x38ccd5(0x176));this[_0x38ccd5(0x1b5)][_0x38ccd5(0x1bd)](_0x548a52[_0x38ccd5(0x1a0)],[_0x548a52,_0x5bec4a]);}[_0x30cee0(0x186)](){const _0x274771=_0x30cee0;return Array[_0x274771(0x18e)](this['_pluginMap'][_0x274771(0x197)]());}[_0x30cee0(0x209)](_0x372aa2,_0xbf69a4){const _0x5b10c9=_0x30cee0;let _0x52469a=document[_0x5b10c9(0x189)](W);_0x52469a&&(_0x52469a[_0x5b10c9(0x1b1)][_0x5b10c9(0x1ac)]=_0x5b10c9(0x1c6),this[_0x5b10c9(0x1e4)](_0x372aa2,W,_0xbf69a4));}['unMountHistoryContent'](){const _0x4e54f2=_0x30cee0;var _0x2fdcd5;this[_0x4e54f2(0x1fd)][_0x4e54f2(0x1d9)](),(_0x2fdcd5=this[_0x4e54f2(0x1f4)])==null||_0x2fdcd5[_0x4e54f2(0x1d9)](),this[_0x4e54f2(0x1c2)][_0x4e54f2(0x20f)](null);let _0x5d0919=document[_0x4e54f2(0x189)](W);_0x5d0919&&(_0x5d0919[_0x4e54f2(0x1b1)][_0x4e54f2(0x1ac)]=_0x4e54f2(0x21e),this[_0x4e54f2(0x1d4)]&&(this[_0x4e54f2(0x1d4)][_0x4e54f2(0x218)](),this[_0x4e54f2(0x1d4)]=null));}['_initUniver'](_0x4e228,_0x5dca58,_0x40799c){const _0x33a7b2=_0x30cee0;var _0x3eeb7f,_0x19f890,_0x379c13,_0x5ed563,_0x185614;if(this[_0x33a7b2(0x1f4)])return;let _0x3d8a97=new _0x2fd0f5({'locales':{[this[_0x33a7b2(0x1a5)][_0x33a7b2(0x190)]()]:this[_0x33a7b2(0x1a5)][_0x33a7b2(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x175d87=_0x3d8a97[_0x33a7b2(0x1fe)]();this[_0x33a7b2(0x1c7)](this[_0x33a7b2(0x16b)][_0x33a7b2(0x1cf)][_0x33a7b2(0x1b9)](_0x3f9ea6=>{const _0x125a91=_0x33a7b2;_0x175d87[_0x125a91(0x192)](_0x5ddc3f)[_0x125a91(0x19a)](_0x3f9ea6);})),this[_0x33a7b2(0x1c7)](this['_themeService'][_0x33a7b2(0x178)][_0x33a7b2(0x1b9)](_0x20e7e2=>{const _0x329cd7=_0x33a7b2;_0x175d87['get'](_0x5ddc3f)[_0x329cd7(0x1ab)](_0x20e7e2);})),_0x175d87[_0x33a7b2(0x192)](_0x44bc99)[_0x33a7b2(0x20c)](this['_localeService'][_0x33a7b2(0x190)]()),_0x175d87[_0x33a7b2(0x192)](_0x4d97a0)['setConfig'](_0x338bd6,this[_0x33a7b2(0x21c)]['getConfig'](_0x338bd6));let _0x1be802=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x3304c0);_0x1be802&&_0x3d8a97[_0x33a7b2(0x1d1)](_0xc828e,{'license':_0x1be802['ls']});let _0x370f9=(_0x3eeb7f=this['_configService'][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x3eeb7f[_0x33a7b2(0x20a)],_0x4ec623=!!_0x370f9;_0x4ec623&&(this[_0x33a7b2(0x1d4)]=_0x370f9 instanceof Worker?_0x370f9:null,_0x3d8a97[_0x33a7b2(0x1d1)](_0xb2c054,{'workerURL':_0x370f9})),this[_0x33a7b2(0x1b5)][_0x33a7b2(0x1b6)](([_0x3d35df,_0x1b4127])=>{_0x3d8a97['registerPlugin'](_0x3d35df,_0x1b4127);}),_0x3d8a97['registerPlugin'](_0x18f23d,{'historyListServerUrl':(_0x19f890=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x19f890[_0x33a7b2(0x1c3)],'historyPanelComponentKey':(_0x379c13=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x379c13[_0x33a7b2(0x19c)],'historyPanelHidden':(_0x5ed563=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x5ed563[_0x33a7b2(0x213)],'historyAIassistantEnabled':(_0x185614=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x185614[_0x33a7b2(0x211)]}),_0x175d87['invoke'](_0x5dbe6f=>{const _0x2cfdf1=_0x33a7b2;this[_0x2cfdf1(0x1a2)](_0x5dbe6f,_0x4e228);}),this['_historyUniver$'][_0x33a7b2(0x20f)](_0x3d8a97);let _0x83950f=_0x175d87[_0x33a7b2(0x192)](_0x405830),_0x55a52f=this['_checkCanRevert'](_0x4e228),_0x46b98c=()=>{const _0xbdadd5=_0x33a7b2;_0x40799c?_0x83950f[_0xbdadd5(0x179)](_0x4e228,_0x5dca58,_0x55a52f,_0x40799c):_0x83950f[_0xbdadd5(0x1cc)](_0x4e228,_0x5dca58,_0x55a52f);};if(this[_0x33a7b2(0x1d0)][_0x33a7b2(0x185)]({'content':this['_localeService']['t'](_0x33a7b2(0x1d2)),'type':_0x1096cb[_0x33a7b2(0x1ee)]}),_0x4ec623)try{_0x175d87['get'](_0x4453db)[_0x33a7b2(0x20d)]()['then'](()=>{_0x46b98c();});}catch{_0x46b98c();}else _0x46b98c();}['_initListener'](_0x168082,_0x2119f7){const _0x23d056=_0x30cee0;let _0x400f60=_0x168082['get'](_0x405830);this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60['status$']['subscribe'](_0x381419=>{const _0x5e6b48=_0x23d056;switch(_0x381419){case _0x2da942['Entered']:this[_0x5e6b48(0x191)][_0x5e6b48(0x188)](),this[_0x5e6b48(0x1ae)][_0x5e6b48(0x223)]();break;case _0x2da942[_0x5e6b48(0x1b2)]:this[_0x5e6b48(0x225)][_0x5e6b48(0x18f)](q['id']),this[_0x5e6b48(0x221)]();break;case _0x2da942['Error']:this[_0x5e6b48(0x221)](),this[_0x5e6b48(0x1d0)]['show']({'content':this[_0x5e6b48(0x1a5)]['t'](_0x5e6b48(0x220)),'type':_0x1096cb[_0x5e6b48(0x1f9)],'duration':0xbb8});break;default:break;}})),this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60[_0x23d056(0x1f2)]['subscribe'](async _0x389a23=>{const _0x4799bb=_0x23d056;_0x389a23&&this[_0x4799bb(0x225)][_0x4799bb(0x18f)](_0x5b0966['id'],{'unitId':_0x2119f7,'revision':_0x389a23});}));}[_0x30cee0(0x169)](_0x3b8ad0){const _0x120ef4=_0x30cee0;let _0xd0fcb9=this[_0x120ef4(0x16c)][_0x120ef4(0x214)](_0x3b8ad0)['getSheets']()[_0x120ef4(0x1de)](_0x4bc003=>_0x4bc003[_0x120ef4(0x177)]()),_0x28660c=new _0x43a0ac(_0x3b8ad0)['id'],_0x727801=_0xd0fcb9[_0x120ef4(0x1de)](_0x48d4a6=>new _0x49770f(_0x3b8ad0,_0x48d4a6)['id']),_0x310d5a=_0xd0fcb9['map'](_0x546454=>this[_0x120ef4(0x17a)][_0x120ef4(0x1f1)](_0x3b8ad0,_0x546454)[_0x120ef4(0x1de)](_0x4a30b3=>new _0x51a168(_0x3b8ad0,_0x546454,_0x4a30b3[_0x120ef4(0x1f8)])['id']))[_0x120ef4(0x1e5)](),_0x4d0981=new _0x57d2d6(_0x3b8ad0)['id'];return this[_0x120ef4(0x1f6)][_0x120ef4(0x17b)]([_0x28660c,..._0x727801,..._0x310d5a,_0x4d0981])[_0x120ef4(0x21d)](_0x51419f=>!!_0x51419f[_0x120ef4(0x200)]);}};G=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],G);const K={'id':'univer.operation.toggle-edit-history','type':_0x417d54[_0x30cee0(0x1d7)],'handler':_0x11f80e=>{const _0x140ae6=_0x30cee0;let _0x585770=_0x11f80e[_0x140ae6(0x192)](G),{unitId:_0x585e6f}=_0x4610c1(_0x11f80e[_0x140ae6(0x192)](_0x757a60))||{};return _0x585e6f?(_0x585770['mountHistoryContent'](_0x585e6f),!0x0):!0x1;}},q={'id':_0x30cee0(0x21a),'type':_0x417d54[_0x30cee0(0x1d7)],'handler':()=>!0x0};function _0x4791(){const _0x5b8f18=['height','_dataLoaderService','_init','_initUniver','flat','onSteady','data','univer-history-container','getConfig','_menuManagerService','UNIVER_CONTAINER_ID','_config','getCollabEntity','Loading','setConfig','OTHERS','getSubunitRuleList','revertRevision$','getActiveSheet','historyUniver','univer-history-container-mobile','_permissionService','uComp','permissionId','Error','reload','default','getUnitId','_disposableCollection','__getInjector','getCurrentUnitOfType','value','createElement','zIndex','function','UNIVER_SHEET','iterator','[HistoryLoaderService]:\x20Plugin\x20','appendChild','event$','mountHistoryContent','workerURL','getUnhiddenWorksheets','setLocale','whenReady','asObservable','next','status$','historyAIassistantEnabled','defineProperty','historyPanelHidden','getUnit','1902120OyUYqE','has','getSheetBySheetId','terminate','decorate','univer.operation.exit-edit-history','457891zgiCbN','_configService','every','none','loadUnit','editHistory.panel.listFetchError','unMountHistoryContent','register','close','string','_commandService','location','mergeMenu','pipe','_localCacheService','_checkCanRevert','historyUniver$','_themeService','_univerInstanceService','toPrimitive','urlChange$','univerContainerId','session','@univerjs-pro/edit-history-loader','editHistory.panel.revertFailed','symbol','3516750ZtPvhD','exhaustSavingTask','\x20has\x20been\x20registered.','getSheetId','currentTheme$','triggerCustomVersions','_selectionProtectionRuleModel','composePermission','mutations','left','editHistory.panel.reverting','setParam','object','clear','params','then','type','show','getAllPlugins','_setupSubUnitSync','closeAll','getElementById','prototype','edit-history-loader.config','div','getLocales','from','executeCommand','getCurrentLocale','_dialogService','get','editHistory.panel.title','Entered','onCommandExecuted','absolute','values','1006915NYkaPu','_injector','setDarkMode','_historyManagerService','historyPanelComponentKey','_updateSubUnitFromURLParams','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','[MobileHistoryLoaderService]:\x20Plugin\x20','pluginName','subunit','_initListener','call','disposeUnit','_localeService','_componentManager','HistoryIcon','invoke','CHANGESET_ACK','_updateURLWithCurrentState','setTheme','display','position','_sidebarService','getSheets','dispose$','style','Exited','_handleRevertAcknowledgement','getParam','_pluginMap','forEach','BUTTON','version','subscribe','length','fromCollab','state$','set','top','30666FtkXNL','SYNCED','unsubscribe','_historyUniver$','historyListServerUrl','status','activeSheet$','block','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','eventID','381230RQKulr','triggerLoadVersions','registerCommand','univer-container','darkMode$','_messageService','registerPlugin','editHistory.info.initializing','100%','_internalWebWorker','_collaborationController','2453312XuZbuI','OPERATION','UNIVER_UNKNOWN','dispose','some','_initContainer','_urlService','_initPlugins','map','add','_revertErrorTimer'];_0x4791=function(){return _0x5b8f18;};return _0x4791();}var ct=_0x30cee0(0x171),lt='0.19.0';function ut(_0x2c0cd8){const _0x3df520=_0x30cee0;return{'id':K['id'],'type':_0x20b139[_0x3df520(0x1b7)],'icon':_0x3df520(0x1a7),'tooltip':_0x3df520(0x193),'hidden$':_0x319495(_0x2c0cd8,_0x148251[_0x3df520(0x204)]),'disabled$':_0x2eeeed(_0x2c0cd8,{'workbookTypes':[_0x43a0ac,_0x1f2f44],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0xdbe3ab[_0x30cee0(0x1f0)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x374fa8{constructor(_0x3074b0,_0xffb83a,_0x5702f6,_0x5d3e7e,_0xf9bc72,_0x53d6d3,_0x559aa8,_0x590535,_0x106511,_0x51a292,_0x50a826){const _0x20850f=_0x30cee0;super(),this[_0x20850f(0x225)]=_0x3074b0,this['_menuManagerService']=_0xffb83a,this['_componentManager']=_0x5702f6,this[_0x20850f(0x19b)]=_0x5d3e7e,this['_localeService']=_0xf9bc72,this[_0x20850f(0x1d0)]=_0x53d6d3,this['_collaborationController']=_0x559aa8,this[_0x20850f(0x168)]=_0x590535,this[_0x20850f(0x1e2)]=_0x106511,this['_univerInstanceService']=_0x51a292,this['_urlService']=_0x50a826,B(this,_0x20850f(0x1e0),null),this[_0x20850f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x16fe49=_0x30cee0;[K,q]['forEach'](_0x375e90=>this[_0x16fe49(0x1c7)](_0x3e927d(this['_commandService'][_0x16fe49(0x1cd)](_0x375e90)))),this['disposeWithMe'](this[_0x16fe49(0x1a6)][_0x16fe49(0x222)](_0x16fe49(0x1a7),_0x2ba663)),this['_menuManagerService'][_0x16fe49(0x227)](dt),this[_0x16fe49(0x1c7)](this[_0x16fe49(0x225)][_0x16fe49(0x195)](async(_0x533901,_0x3e3795)=>{const _0x2f102c=_0x16fe49;if(_0x533901['id']===_0x5b0966['id']){let {unitId:_0x2fbd94}=_0x533901[_0x2f102c(0x182)];this[_0x2f102c(0x1d0)][_0x2f102c(0x185)]({'content':this[_0x2f102c(0x1a5)]['t'](_0x2f102c(0x17e)),'type':_0x1096cb[_0x2f102c(0x1ee)],'duration':0x1388});let _0x38c666=this['_collaborationController']['getCollabEntity'](_0x2fbd94);_0x3e3795!=null&&_0x3e3795[_0x2f102c(0x1bb)]?this[_0x2f102c(0x1b3)](_0x38c666,async()=>(setTimeout(()=>window[_0x2f102c(0x226)][_0x2f102c(0x1fa)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x38c666,async()=>{const _0x5cf223=_0x2f102c;let _0x2fb0fd=this['_univerInstanceService'][_0x5cf223(0x1ff)](_0x5295ea[_0x5cf223(0x204)]),_0x366630=_0x2fb0fd==null?void 0x0:_0x2fb0fd[_0x5cf223(0x1f3)]();if(!_0x366630)return!0x1;this[_0x5cf223(0x16c)][_0x5cf223(0x1a4)](_0x2fbd94);let _0x1df03c=await this[_0x5cf223(0x1e2)][_0x5cf223(0x21f)](_0x2fbd94,_0x5295ea[_0x5cf223(0x204)]);return _0x1df03c&&_0x1df03c instanceof _0x48882a?(await this[_0x5cf223(0x187)](_0x1df03c,_0x366630[_0x5cf223(0x177)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x582da7,_0x4a6a78,_0x50f05e=!0x1){const _0x40fd0c=_0x30cee0;let _0x1fcdb9=_0x451b3f([_0x582da7[_0x40fd0c(0x170)][_0x40fd0c(0x208)],_0x582da7[_0x40fd0c(0x1bc)]])['subscribe'](async([_0x5939a1,_0x34b495])=>{const _0x155a84=_0x40fd0c;if(_0x5939a1[_0x155a84(0x1ca)]===_0x288cbe[_0x155a84(0x1a9)]&&(_0x34b495==null?void 0x0:_0x34b495[_0x155a84(0x1c4)])===_0x15958f[_0x155a84(0x1c0)]&&_0x5939a1[_0x155a84(0x1e7)][_0x155a84(0x17c)][_0x155a84(0x1da)](_0x240bcb=>_0x240bcb['id']===_0x5b0966['id'])&&await _0x4a6a78()){var _0x2a68ca;this[_0x155a84(0x19b)][_0x155a84(0x221)](),_0x1fcdb9[_0x155a84(0x1c1)](),this[_0x155a84(0x1e0)]&&clearTimeout(this[_0x155a84(0x1e0)]),await((_0x2a68ca=this['_localCacheService'])==null?void 0x0:_0x2a68ca[_0x155a84(0x175)]()),this[_0x155a84(0x1d0)]['removeAll']();}});_0x50f05e&&(this[_0x40fd0c(0x1e0)]=setTimeout(()=>{const _0x5a2dde=_0x40fd0c;_0x1fcdb9['unsubscribe'](),this['_messageService'][_0x5a2dde(0x185)]({'content':this[_0x5a2dde(0x1a5)]['t'](_0x5a2dde(0x172)),'type':_0x1096cb[_0x5a2dde(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x80d8e4,_0x56a952){const _0x173d6a=_0x30cee0;await this[_0x173d6a(0x19d)](_0x80d8e4,_0x56a952),_0x80d8e4[_0x173d6a(0x1c5)][_0x173d6a(0x167)](_0xaee6e3(this[_0x173d6a(0x1b0)]))[_0x173d6a(0x1b9)](_0x33d9f0=>{const _0x1f9b71=_0x173d6a;_0x33d9f0&&this[_0x1f9b71(0x1aa)](_0x33d9f0);}),this['_urlService'][_0x173d6a(0x16e)][_0x173d6a(0x167)](_0xaee6e3(this['dispose$']))[_0x173d6a(0x1b9)](()=>this['_updateSubUnitFromURLParams'](_0x80d8e4,_0x56a952));}[_0x30cee0(0x1aa)](_0x28822c,_0x15e237=!0x1){const _0x3f208b=_0x30cee0;let _0x3efb5c=this[_0x3f208b(0x1dc)][_0x3f208b(0x1b4)]('subunit');_0x28822c[_0x3f208b(0x177)]()!==_0x3efb5c&&this['_urlService'][_0x3f208b(0x17f)](_0x3f208b(0x1a1),_0x28822c[_0x3f208b(0x177)](),_0x15e237);}async[_0x30cee0(0x19d)](_0x2ce742,_0x2cd225){const _0x31f85a=_0x30cee0;var _0x371f47;if(!_0x2cd225||!_0x2ce742[_0x31f85a(0x217)](_0x2cd225)){let _0x720005=_0x2ce742[_0x31f85a(0x20b)]()[0x0],_0x3c716b=_0x2ce742[_0x31f85a(0x217)](_0x720005);if(!_0x3c716b)return;this[_0x31f85a(0x1aa)](_0x3c716b,!0x0),await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x720005});return;}((_0x371f47=_0x2ce742[_0x31f85a(0x1f3)]())==null?void 0x0:_0x371f47[_0x31f85a(0x177)]())!==_0x2cd225&&await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x2cd225});}};J=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],J);const Y=_0x30cee0(0x1f5);let X=class extends _0x38c581{constructor(_0x227e50,_0x1c1e1f,_0x59538a,_0x4977db,_0xc2afa7,_0x39e6ab,_0xf93d7e,_0x5565f5,_0x451cec,_0x3d3188){const _0x3b6597=_0x30cee0;super(),this[_0x3b6597(0x1a5)]=_0x227e50,this['_univerInstanceService']=_0x1c1e1f,this[_0x3b6597(0x21c)]=_0x59538a,this['_commandService']=_0x4977db,this[_0x3b6597(0x1d0)]=_0xc2afa7,this['_permissionService']=_0x39e6ab,this['_selectionProtectionRuleModel']=_0xf93d7e,this[_0x3b6597(0x191)]=_0x5565f5,this[_0x3b6597(0x1ae)]=_0x451cec,this[_0x3b6597(0x16b)]=_0x3d3188,B(this,'_historyUniver$',new _0x6655f1(null)),B(this,'historyUniver$',this[_0x3b6597(0x1c2)]['asObservable']()),B(this,'_disposableCollection',new _0x57be15()),B(this,_0x3b6597(0x1b5),new Map()),B(this,_0x3b6597(0x1d4),null),this['_init']();}get[_0x30cee0(0x1f4)](){const _0x3fa1a2=_0x30cee0;return this[_0x3fa1a2(0x1c2)]['value'];}['_init'](){const _0xa2f2b9=_0x30cee0;this[_0xa2f2b9(0x1db)](),this[_0xa2f2b9(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x25d82c=_0x30cee0;var _0x3ee3e3;let _0x9d28d2=(_0x3ee3e3=this[_0x25d82c(0x21c)][_0x25d82c(0x1e9)](_0x25d82c(0x1eb)))==null?_0x25d82c(0x1ce):_0x3ee3e3,_0x438093=document[_0x25d82c(0x189)](_0x9d28d2);if(!_0x438093)return;let _0x2bc8b7=document['createElement'](_0x25d82c(0x18c));_0x2bc8b7['id']=Y,_0x2bc8b7['dataset']['uComp']='history-container',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ad)]=_0x25d82c(0x196),_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1be)]='0',_0x2bc8b7['style']['left']='0',_0x2bc8b7[_0x25d82c(0x1b1)]['width']=_0x25d82c(0x1d3),_0x2bc8b7['style'][_0x25d82c(0x1e1)]='100%',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x202)]='49',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ac)]='none',_0x438093[_0x25d82c(0x207)](_0x2bc8b7);}[_0x30cee0(0x1dd)](){const _0x3796f7=_0x30cee0;[[_0x24b5f8],[_0x567c9c,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x2a739f],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x58d35e],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x396896],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]]['forEach'](([_0xe63443,_0x383eb8])=>this[_0x3796f7(0x1d1)](_0xe63443,_0x383eb8));}[_0x30cee0(0x1d9)](){const _0x55d4e4=_0x30cee0;super[_0x55d4e4(0x1d9)](),this[_0x55d4e4(0x221)](),this['_pluginMap'][_0x55d4e4(0x181)]();}[_0x30cee0(0x1d1)](_0x4c7c25,_0x1e6ede,_0x37e935){const _0x20a5f7=_0x30cee0;if(this[_0x20a5f7(0x1b5)][_0x20a5f7(0x216)](_0x4c7c25[_0x20a5f7(0x1a0)])&&!_0x37e935)throw Error(_0x20a5f7(0x19f)+_0x4c7c25[_0x20a5f7(0x1a0)]+_0x20a5f7(0x176));this['_pluginMap'][_0x20a5f7(0x1bd)](_0x4c7c25['pluginName'],[_0x4c7c25,_0x1e6ede]);}['getAllPlugins'](){const _0x122e0d=_0x30cee0;return Array[_0x122e0d(0x18e)](this[_0x122e0d(0x1b5)][_0x122e0d(0x197)]());}[_0x30cee0(0x209)](_0x2a11b0,_0x127dd5){const _0x5a010b=_0x30cee0;let _0x42cb06=document['getElementById'](Y);_0x42cb06&&(_0x42cb06[_0x5a010b(0x1b1)][_0x5a010b(0x1ac)]=_0x5a010b(0x1c6),this[_0x5a010b(0x1e4)](_0x2a11b0,Y,_0x127dd5));}['unMountHistoryContent'](){const _0x386f39=_0x30cee0;var _0x62c7b;this[_0x386f39(0x1fd)][_0x386f39(0x1d9)](),(_0x62c7b=this['historyUniver'])==null||_0x62c7b[_0x386f39(0x1d9)](),this[_0x386f39(0x1c2)][_0x386f39(0x20f)](null);let _0x48bda6=document['getElementById'](Y);_0x48bda6&&(_0x48bda6['style'][_0x386f39(0x1ac)]='none',this[_0x386f39(0x1d4)]&&(this[_0x386f39(0x1d4)][_0x386f39(0x218)](),this[_0x386f39(0x1d4)]=null));}['_initUniver'](_0x104b9d,_0x46c226,_0x7f23c3){const _0x5151e0=_0x30cee0;var _0x46e582,_0x4faf5a,_0x2296c6,_0x4d5a8b;if(this[_0x5151e0(0x1f4)])return;let _0x3a0d67=new _0x2fd0f5({'locales':{[this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()]:this[_0x5151e0(0x1a5)][_0x5151e0(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x5db559=_0x3a0d67['__getInjector']();this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x1cf)][_0x5151e0(0x1b9)](_0x41758b=>{const _0xf70521=_0x5151e0;_0x5db559[_0xf70521(0x192)](_0x5ddc3f)[_0xf70521(0x19a)](_0x41758b);})),this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x178)][_0x5151e0(0x1b9)](_0x4ea31=>{const _0x4c4afa=_0x5151e0;_0x5db559[_0x4c4afa(0x192)](_0x5ddc3f)[_0x4c4afa(0x1ab)](_0x4ea31);})),_0x5db559[_0x5151e0(0x192)](_0x44bc99)[_0x5151e0(0x20c)](this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()),_0x5db559['get'](_0x4d97a0)[_0x5151e0(0x1ef)](_0x338bd6,this[_0x5151e0(0x21c)]['getConfig'](_0x338bd6));let _0x120654=this[_0x5151e0(0x21c)]['getConfig'](_0x3304c0);_0x120654&&_0x3a0d67[_0x5151e0(0x1d1)](_0xc828e,{'license':_0x120654['ls']});let _0x43a74c=(_0x46e582=this[_0x5151e0(0x21c)][_0x5151e0(0x1e9)](_0x5151e0(0x18b)))==null?void 0x0:_0x46e582[_0x5151e0(0x20a)],_0x562c62=!!_0x43a74c;_0x562c62&&(this['_internalWebWorker']=_0x43a74c instanceof Worker?_0x43a74c:null,_0x3a0d67['registerPlugin'](_0xb2c054,{'workerURL':_0x43a74c})),this[_0x5151e0(0x1b5)]['forEach'](([_0x6c874b,_0x5738aa])=>{const _0xbb05b5=_0x5151e0;_0x3a0d67[_0xbb05b5(0x1d1)](_0x6c874b,_0x5738aa);}),_0x3a0d67[_0x5151e0(0x1d1)](_0x25046b,{'historyListServerUrl':(_0x4faf5a=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4faf5a['historyListServerUrl'],'historyPanelComponentKey':(_0x2296c6=this['_configService'][_0x5151e0(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x2296c6[_0x5151e0(0x19c)],'historyPanelHidden':(_0x4d5a8b=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4d5a8b[_0x5151e0(0x213)]}),_0x5db559[_0x5151e0(0x1a8)](_0x1b0e98=>{const _0x315163=_0x5151e0;this[_0x315163(0x1a2)](_0x1b0e98,_0x104b9d);}),this[_0x5151e0(0x1c2)]['next'](_0x3a0d67);let _0x54c5c1=_0x5db559[_0x5151e0(0x192)](_0x405830),_0x4f650d=this[_0x5151e0(0x169)](_0x104b9d),_0x2ac552=()=>{const _0x5b21a0=_0x5151e0;_0x7f23c3?_0x54c5c1[_0x5b21a0(0x179)](_0x104b9d,_0x46c226,_0x4f650d,_0x7f23c3):_0x54c5c1['triggerLoadVersions'](_0x104b9d,_0x46c226,_0x4f650d);};if(this['_messageService'][_0x5151e0(0x185)]({'content':this[_0x5151e0(0x1a5)]['t'](_0x5151e0(0x1d2)),'type':_0x1096cb[_0x5151e0(0x1ee)]}),_0x562c62)try{_0x5db559['get'](_0x4453db)[_0x5151e0(0x20d)]()[_0x5151e0(0x183)](()=>{_0x2ac552();});}catch{_0x2ac552();}else _0x2ac552();}[_0x30cee0(0x1a2)](_0xcb21ab,_0x485856){const _0x23ab53=_0x30cee0;let _0x30cf31=_0xcb21ab[_0x23ab53(0x192)](_0x405830);this['_disposableCollection'][_0x23ab53(0x1df)](_0x30cf31[_0x23ab53(0x210)][_0x23ab53(0x1b9)](_0x41479e=>{const _0x54c217=_0x23ab53;switch(_0x41479e){case _0x2da942[_0x54c217(0x194)]:this[_0x54c217(0x191)]['closeAll'](),this[_0x54c217(0x1ae)][_0x54c217(0x223)]();break;case _0x2da942[_0x54c217(0x1b2)]:this[_0x54c217(0x225)]['executeCommand'](q['id']),this[_0x54c217(0x221)]();break;case _0x2da942[_0x54c217(0x1f9)]:this[_0x54c217(0x221)](),this[_0x54c217(0x1d0)][_0x54c217(0x185)]({'content':this[_0x54c217(0x1a5)]['t'](_0x54c217(0x220)),'type':_0x1096cb[_0x54c217(0x1f9)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x30cf31[_0x23ab53(0x1f2)][_0x23ab53(0x1b9)](async _0x2e9bb0=>{const _0x472fd9=_0x23ab53;_0x2e9bb0&&this[_0x472fd9(0x225)][_0x472fd9(0x18f)](_0x5b0966['id'],{'unitId':_0x485856,'revision':_0x2e9bb0});}));}[_0x30cee0(0x169)](_0x4c6b06){const _0x166637=_0x30cee0;let _0x934236=this[_0x166637(0x16c)][_0x166637(0x214)](_0x4c6b06)[_0x166637(0x1af)]()['map'](_0x5a2d59=>_0x5a2d59[_0x166637(0x177)]()),_0x976ff0=new _0x43a0ac(_0x4c6b06)['id'],_0x2059dc=_0x934236['map'](_0x46768e=>new _0x49770f(_0x4c6b06,_0x46768e)['id']),_0x1b546f=_0x934236[_0x166637(0x1de)](_0x5bd6aa=>this[_0x166637(0x17a)][_0x166637(0x1f1)](_0x4c6b06,_0x5bd6aa)[_0x166637(0x1de)](_0x1d9892=>new _0x51a168(_0x4c6b06,_0x5bd6aa,_0x1d9892['permissionId'])['id']))[_0x166637(0x1e5)](),_0x77b2ff=new _0x57d2d6(_0x4c6b06)['id'];return this[_0x166637(0x1f6)][_0x166637(0x17b)]([_0x976ff0,..._0x2059dc,..._0x1b546f,_0x77b2ff])[_0x166637(0x21d)](_0x5e49f2=>!!_0x5e49f2[_0x166637(0x200)]);}};X=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],X);let Z=class extends _0x852139{constructor(_0x2e2943=R,_0x13934f,_0x109eff){const _0x286f8c=_0x30cee0;super(),this[_0x286f8c(0x1ec)]=_0x2e2943,this[_0x286f8c(0x199)]=_0x13934f,this[_0x286f8c(0x21c)]=_0x109eff;let {menu:_0xb53bb,..._0x20c1c4}=_0x3896f6({},R,this['_config']);_0xb53bb&&this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)]('menu',_0xb53bb,{'merge':!0x0}),this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)](L,_0x20c1c4),this['_config'][_0x286f8c(0x16f)]&&this[_0x286f8c(0x21c)]['setConfig'](_0x286f8c(0x1eb),this[_0x286f8c(0x1ec)][_0x286f8c(0x16f)]);}[_0x30cee0(0x1c9)](){const _0x33930c=_0x30cee0;[[G,{'useClass':X}],[J]][_0x33930c(0x1b6)](_0xa69ccc=>this[_0x33930c(0x199)][_0x33930c(0x1df)](_0xa69ccc));}[_0x30cee0(0x1e6)](){const _0x440101=_0x30cee0;this['_injector'][_0x440101(0x192)](J);}};B(Z,_0x30cee0(0x184),_0x148251['UNIVER_UNKNOWN']),B(Z,'pluginName',_0x30cee0(0x19e)),B(Z,'packageName',ct),B(Z,_0x30cee0(0x1b8),lt),Z=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],Z);let Q=class extends _0x374fa8{constructor(_0x3c0b12,_0xbc8a30,_0x2d5632,_0x20513c,_0x41dcde,_0x34b700,_0x24543d,_0x34239c,_0x2307ac,_0x2e4181,_0x41505f){const _0xf4970f=_0x30cee0;super(),this[_0xf4970f(0x225)]=_0x3c0b12,this[_0xf4970f(0x1ea)]=_0xbc8a30,this[_0xf4970f(0x1a6)]=_0x2d5632,this['_historyManagerService']=_0x20513c,this['_localeService']=_0x41dcde,this['_messageService']=_0x34b700,this[_0xf4970f(0x1d5)]=_0x24543d,this[_0xf4970f(0x168)]=_0x34239c,this[_0xf4970f(0x1e2)]=_0x2307ac,this['_univerInstanceService']=_0x2e4181,this[_0xf4970f(0x1dc)]=_0x41505f,B(this,_0xf4970f(0x1e0),null),this[_0xf4970f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x57b128=_0x30cee0;[K,q][_0x57b128(0x1b6)](_0x4cb9c6=>this['disposeWithMe'](_0x3e927d(this[_0x57b128(0x225)][_0x57b128(0x1cd)](_0x4cb9c6)))),this[_0x57b128(0x1c7)](this['_componentManager'][_0x57b128(0x222)](_0x57b128(0x1a7),_0x2ba663)),this[_0x57b128(0x1ea)][_0x57b128(0x227)](dt),this['disposeWithMe'](this[_0x57b128(0x225)][_0x57b128(0x195)](async(_0x576a90,_0x486d7f)=>{const _0x326b28=_0x57b128;if(_0x576a90['id']===_0x5b0966['id']){let {unitId:_0x40f992}=_0x576a90[_0x326b28(0x182)];this[_0x326b28(0x1d0)][_0x326b28(0x185)]({'content':this[_0x326b28(0x1a5)]['t']('editHistory.panel.reverting'),'type':_0x1096cb[_0x326b28(0x1ee)],'duration':0x1388});let _0x42755f=this[_0x326b28(0x1d5)][_0x326b28(0x1ed)](_0x40f992);_0x486d7f!=null&&_0x486d7f[_0x326b28(0x1bb)]?this[_0x326b28(0x1b3)](_0x42755f,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x42755f,async()=>{const _0x27af61=_0x326b28;let _0x582c92=this[_0x27af61(0x16c)][_0x27af61(0x1ff)](_0x5295ea[_0x27af61(0x204)]),_0xac1ccf=_0x582c92==null?void 0x0:_0x582c92[_0x27af61(0x1f3)]();if(!_0xac1ccf)return!0x1;this[_0x27af61(0x16c)][_0x27af61(0x1a4)](_0x40f992);let _0x12a5dc=await this[_0x27af61(0x1e2)][_0x27af61(0x21f)](_0x40f992,_0x5295ea['UNIVER_SHEET']);return _0x12a5dc&&_0x12a5dc instanceof _0x48882a?(await this[_0x27af61(0x187)](_0x12a5dc,_0xac1ccf['getSheetId']()),!0x0):!0x1;});}}));}[_0x30cee0(0x1b3)](_0x9e0d30,_0x588ec5,_0x5a6129=!0x1){const _0x11394b=_0x30cee0;let _0x5f1b23=_0x451b3f([_0x9e0d30[_0x11394b(0x170)]['event$'],_0x9e0d30[_0x11394b(0x1bc)]])[_0x11394b(0x1b9)](async([_0x42ede1,_0x4e2010])=>{const _0x4e939d=_0x11394b;if(_0x42ede1[_0x4e939d(0x1ca)]===_0x288cbe[_0x4e939d(0x1a9)]&&(_0x4e2010==null?void 0x0:_0x4e2010[_0x4e939d(0x1c4)])===_0x15958f[_0x4e939d(0x1c0)]&&_0x42ede1['data']['mutations'][_0x4e939d(0x1da)](_0x215e36=>_0x215e36['id']===_0x5b0966['id'])&&await _0x588ec5()){var _0x58e1f2;this['_historyManagerService'][_0x4e939d(0x221)](),_0x5f1b23[_0x4e939d(0x1c1)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x58e1f2=this['_localCacheService'])==null?void 0x0:_0x58e1f2[_0x4e939d(0x175)]());}});_0x5a6129&&(this[_0x11394b(0x1e0)]=setTimeout(()=>{const _0x76cacc=_0x11394b;_0x5f1b23[_0x76cacc(0x1c1)](),this[_0x76cacc(0x1d0)][_0x76cacc(0x185)]({'content':this[_0x76cacc(0x1a5)]['t'](_0x76cacc(0x172)),'type':_0x1096cb[_0x76cacc(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x37f985,_0x2a8ea3){const _0x1ebea9=_0x30cee0;await this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3),_0x37f985[_0x1ebea9(0x1c5)][_0x1ebea9(0x167)](_0xaee6e3(this[_0x1ebea9(0x1b0)]))[_0x1ebea9(0x1b9)](_0x2e2470=>{const _0xdc0a29=_0x1ebea9;_0x2e2470&&this[_0xdc0a29(0x1aa)](_0x2e2470);}),this[_0x1ebea9(0x1dc)]['urlChange$']['pipe'](_0xaee6e3(this[_0x1ebea9(0x1b0)]))['subscribe'](()=>this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3));}[_0x30cee0(0x1aa)](_0x583dd5,_0x812675=!0x1){const _0x2e961b=_0x30cee0;let _0x4ee52c=this[_0x2e961b(0x1dc)]['getParam'](_0x2e961b(0x1a1));_0x583dd5[_0x2e961b(0x177)]()!==_0x4ee52c&&this['_urlService']['setParam'](_0x2e961b(0x1a1),_0x583dd5[_0x2e961b(0x177)](),_0x812675);}async[_0x30cee0(0x19d)](_0x331ee8,_0x339a4e){const _0x228436=_0x30cee0;var _0x36817a;if(!_0x339a4e||!_0x331ee8[_0x228436(0x217)](_0x339a4e)){let _0x1ccbe9=_0x331ee8[_0x228436(0x20b)]()[0x0],_0x123508=_0x331ee8[_0x228436(0x217)](_0x1ccbe9);if(!_0x123508)return;this[_0x228436(0x1aa)](_0x123508,!0x0),await this[_0x228436(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x1ccbe9});return;}((_0x36817a=_0x331ee8[_0x228436(0x1f3)]())==null?void 0x0:_0x36817a[_0x228436(0x177)]())!==_0x339a4e&&await this[_0x228436(0x225)][_0x228436(0x18f)](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x339a4e});}};Q=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],Q);let $=class extends _0x852139{constructor(_0xe45689=R,_0x360fb7,_0x553036){const _0x9c4ff2=_0x30cee0;super(),this['_config']=_0xe45689,this[_0x9c4ff2(0x199)]=_0x360fb7,this[_0x9c4ff2(0x21c)]=_0x553036;let {menu:_0x44006d,..._0x15a5bf}=_0x3896f6({},R,this[_0x9c4ff2(0x1ec)]);_0x44006d&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)]('menu',_0x44006d,{'merge':!0x0}),this[_0x9c4ff2(0x21c)]['setConfig'](L,_0x15a5bf),this[_0x9c4ff2(0x1ec)][_0x9c4ff2(0x16f)]&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)](U,this[_0x9c4ff2(0x1ec)]['univerContainerId']);}[_0x30cee0(0x1c9)](){const _0x10517f=_0x30cee0;[[G],[Q]][_0x10517f(0x1b6)](_0xabf8b7=>this[_0x10517f(0x199)][_0x10517f(0x1df)](_0xabf8b7));}[_0x30cee0(0x1e6)](){const _0x32a6d8=_0x30cee0;this[_0x32a6d8(0x199)][_0x32a6d8(0x192)](Q);}};B($,'type',_0x148251[_0x30cee0(0x1d8)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,'packageName',ct),B($,_0x30cee0(0x1b8),lt),$=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
1
+ const _0x243ccf=_0x4312;(function(_0x4361e8,_0x19f28c){const _0x397fed=_0x4312,_0x490b6f=_0x4361e8();while(!![]){try{const _0x519574=-parseInt(_0x397fed(0x16b))/0x1+parseInt(_0x397fed(0x15b))/0x2+-parseInt(_0x397fed(0x127))/0x3+-parseInt(_0x397fed(0xd9))/0x4*(-parseInt(_0x397fed(0x16d))/0x5)+parseInt(_0x397fed(0x17d))/0x6+parseInt(_0x397fed(0x119))/0x7*(-parseInt(_0x397fed(0x16a))/0x8)+parseInt(_0x397fed(0x171))/0x9;if(_0x519574===_0x19f28c)break;else _0x490b6f['push'](_0x490b6f['shift']());}catch(_0x343ca5){_0x490b6f['push'](_0x490b6f['shift']());}}}(_0xa6ad,0x43304));function _0x4312(_0x4570bf,_0x2bf0ae){_0x4570bf=_0x4570bf-0xc0;const _0xa6ad6=_0xa6ad();let _0x4312f2=_0xa6ad6[_0x4570bf];return _0x4312f2;}import{CommandType as _0x19c209,DependentOn as _0x1b35d9,Disposable as _0x56b781,DisposableCollection as _0x16a15f,IAuthzIoService as _0x2a6fc8,ICommandService as _0x2950a0,IConfigService as _0x88d7b9,IPermissionService as _0xabeabb,IUniverInstanceService as _0x564820,Inject as _0x2a08b4,Injector as _0x215a8e,LocaleService as _0x587fa0,Plugin as _0x25956b,RxDisposable as _0x531dc7,ThemeService as _0x537b2f,Univer as _0x597837,UniverInstanceType as _0xf2429e,Workbook as _0x1b4b80,merge as _0x32845e,toDisposable as _0x3ff83f}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0xd88977,RangeProtectionRuleModel as _0x96c5d3,SetWorksheetActivateCommand as _0x1a252d,UniverSheetsPlugin as _0x229c6e,WorkbookEditablePermission as _0x582020,WorkbookRecoverHistoryPermission as _0x28c852,WorkbookViewHistoryPermission as _0x55d453,WorksheetEditPermission as _0x5e198a,getSheetCommandTarget as _0x46712e}from'@univerjs/sheets';import{CollaborationEvent as _0x22e3de,RevertRevisionMutation as _0x377181,UniverCollaborationPlugin as _0x3a2dd8}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x30848d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x112339,CollaborationController as _0x1ac924,CollaborationStatus as _0x20abcb,DataLoaderService as _0x1cb31c,ILocalCacheService as _0x5c1847}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x2e09fa,HistoryModeStatus as _0x325997,UniverEditHistoryViewerMobilePlugin as _0x50eafa,UniverEditHistoryViewerPlugin as _0x3c5bc0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3f10cc,UniverLicensePlugin as _0x4635cb}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4547f8}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x4bd2ad}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x1738de}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x3f2809}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x14d349}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x50f95}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xde840f}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3183e5}from'@univerjs/data-validation';import{MessageType as _0x3ed100}from'@univerjs/design';import{UniverDocsPlugin as _0x15c8d9}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x35946a}from'@univerjs/docs-ui';import{IImageIoService as _0x1bda32,UniverDrawingPlugin as _0x2fd5e3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x24e1ef}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3fd7eb}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48739e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x54d2a0}from'@univerjs/network';import{IRemoteInstanceService as _0x177025,UniverRPCMainThreadPlugin as _0x3b8b6a}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x413776}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4695f1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2110ca}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x534673,UniverSheetsDataValidationUIPlugin as _0x3f106b}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1043fa}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2c80da}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x1c517a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x3d34fa}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x512067}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2b5539}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x2ea082}from'@univerjs/sheets-hyper-link';function _0xa6ad(){const _0x4eb1e7=['getUnhiddenWorksheets','status$','_initContainer','get','202134bVxFmS','permissionId','call','object','value','_selectionProtectionRuleModel','Error','0.20.0','getParam','toPrimitive','darkMode$','fromCollab','subscribe','_sidebarService','activeSheet$','forEach','disposeWithMe','_messageService','_pluginMap','values','createElement','event$','from','appendChild','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','top','getLocales','setLocale','getSheetBySheetId','_updateSubUnitFromURLParams','composePermission','SYNCED','next','CHANGESET_ACK','asObservable','getUnit','prototype','decorate','none','onCommandExecuted','style','historyUniver','historyPanelHidden','\x20has\x20been\x20registered.','triggerLoadVersions','dispose$','registerPlugin','getCurrentUnitOfType','height','string','_config','581350ADJLJZ','data','univer-container','urlChange$','_handleRevertAcknowledgement','setDarkMode','length','defineProperty','onSteady','_localeService','_commandService','map','show','version','left','878152qPPGXJ','322943zhSjPQ','some','11125ezHkCY','_init','@univerjs-pro/edit-history-loader','has','4160331JtSAGl','dataset','display','_permissionService','every','getCurrentLocale','status','getUnitId','[HistoryLoaderService]:\x20Plugin\x20','getAllPlugins','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','1064238WfBNVQ','historyPanelComponentKey','params','zIndex','exhaustSavingTask','_internalWebWorker','executeCommand','__getInjector','univer.operation.toggle-edit-history','loadUnit','_updateURLWithCurrentState','removeAll','historyUniver$','setTheme','getConfig','session','dispose','editHistory.panel.listFetchError','_menuManagerService','workerURL','unMountHistoryContent','mountHistoryContent','flat','add','_revertErrorTimer','_historyUniver$','_univerInstanceService','triggerCustomVersions','_initPlugins','getElementById','116oswmsI','_injector','univerContainerId','_dialogService','_disposableCollection','_configService','_collaborationController','getCollabEntity','HistoryIcon','_localCacheService','block','state$','setConfig','type','OPERATION','closeAll','clear','div','currentTheme$','Entered','getSheets','getActiveSheet','mutations','function','_initUniver','_setupSubUnitSync','editHistory.panel.reverting','edit-history-loader.config','revertRevision$','register','terminate','uComp','100%','UNIVER_SHEET','pipe','mergeMenu','Exited','Loading','disposeUnit','_urlService','UNIVER_CONTAINER_ID','menu','position','_dataLoaderService','_initListener','getSubunitRuleList','then','historyListServerUrl','BUTTON','_checkCanRevert','setParam','symbol','subunit','reload','_componentManager','UNIVER_UNKNOWN','onStarting','close','_themeService','default','history-container','absolute','getSheetId','packageName','21urmQJa','_historyManagerService','editHistory.panel.revertFailed','getOwnPropertyDescriptor','eventID','pluginName','unsubscribe','width','editHistory.info.initializing','location'];_0xa6ad=function(){return _0x4eb1e7;};return _0xa6ad();}import{UniverSheetsHyperLinkUIPlugin as _0x3027ab}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3e1fcb}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x4194b9}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4864b9,UniverSheetsUIPlugin as _0x4d5580,getCurrentRangeDisable$ as _0x2d08bc}from'@univerjs/sheets-ui';import{ComponentManager as _0x25a01f,IDialogService as _0x4cdca8,IMenuManagerService as _0x1b22c3,IMessageService as _0x53e474,ISidebarService as _0x3f28b5,MenuItemType as _0x5a8475,RibbonStartGroup as _0x2c4b0f,UniverMobileUIPlugin as _0x53a928,UniverUIPlugin as _0x577dbf,getMenuHiddenObservable as _0x13d426}from'@univerjs/ui';import{BehaviorSubject as _0x190d06,combineLatest as _0x1b6270,takeUntil as _0x25d598}from'rxjs';import{IURLService as _0x465855}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x4e8247}from'@univerjs/icons';import{UniverType as _0x510b10}from'@univerjs/protocol';const L=_0x243ccf(0xf4);Symbol(L);const R={};function z(_0x45e6e2){'@babel/helpers - typeof';const _0x2204e8=_0x243ccf;return z=typeof Symbol==_0x2204e8(0xf0)&&typeof Symbol['iterator']=='symbol'?function(_0x4bbc59){return typeof _0x4bbc59;}:function(_0x34b05d){const _0x53f816=_0x2204e8;return _0x34b05d&&typeof Symbol=='function'&&_0x34b05d['constructor']===Symbol&&_0x34b05d!==Symbol[_0x53f816(0x14c)]?_0x53f816(0x10c):typeof _0x34b05d;},z(_0x45e6e2);}function ot(_0x1729fb,_0x1a5d5b){const _0x429825=_0x243ccf;if(z(_0x1729fb)!=_0x429825(0x12a)||!_0x1729fb)return _0x1729fb;var _0x2b4c37=_0x1729fb[Symbol[_0x429825(0x130)]];if(_0x2b4c37!==void 0x0){var _0x243ddf=_0x2b4c37[_0x429825(0x129)](_0x1729fb,_0x1a5d5b||_0x429825(0x114));if(z(_0x243ddf)!='object')return _0x243ddf;throw TypeError(_0x429825(0x140));}return(_0x1a5d5b===_0x429825(0x159)?String:Number)(_0x1729fb);}function st(_0x4fc8d5){const _0x62f4e3=_0x243ccf;var _0xa175ff=ot(_0x4fc8d5,_0x62f4e3(0x159));return z(_0xa175ff)==_0x62f4e3(0x10c)?_0xa175ff:_0xa175ff+'';}function B(_0x5fd0d4,_0x271b3a,_0x1ac3ac){const _0x283b9f=_0x243ccf;return(_0x271b3a=st(_0x271b3a))in _0x5fd0d4?Object[_0x283b9f(0x162)](_0x5fd0d4,_0x271b3a,{'value':_0x1ac3ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5fd0d4[_0x271b3a]=_0x1ac3ac,_0x5fd0d4;}function V(_0x45c91c,_0x532f05){return function(_0x37d117,_0x5d3f1c){_0x532f05(_0x37d117,_0x5d3f1c,_0x45c91c);};}function H(_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d){const _0x43c0b6=_0x243ccf;var _0x586334=arguments[_0x43c0b6(0x161)],_0xd2a101=_0x586334<0x3?_0x4cb393:_0x562a8d===null?_0x562a8d=Object[_0x43c0b6(0x11c)](_0x4cb393,_0x39ec48):_0x562a8d,_0x5986f3;if(typeof Reflect==_0x43c0b6(0x12a)&&typeof Reflect[_0x43c0b6(0x14d)]==_0x43c0b6(0xf0))_0xd2a101=Reflect[_0x43c0b6(0x14d)](_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d);else{for(var _0x3a7bab=_0x22a57a[_0x43c0b6(0x161)]-0x1;_0x3a7bab>=0x0;_0x3a7bab--)(_0x5986f3=_0x22a57a[_0x3a7bab])&&(_0xd2a101=(_0x586334<0x3?_0x5986f3(_0xd2a101):_0x586334>0x3?_0x5986f3(_0x4cb393,_0x39ec48,_0xd2a101):_0x5986f3(_0x4cb393,_0x39ec48))||_0xd2a101);}return _0x586334>0x3&&_0xd2a101&&Object[_0x43c0b6(0x162)](_0x4cb393,_0x39ec48,_0xd2a101),_0xd2a101;}const U=_0x243ccf(0x101),W='univer-history-container';let G=class extends _0x56b781{constructor(_0x417fc9,_0x5c5e02,_0x3ff731,_0x33b5b0,_0x438c8a,_0x35ff2e,_0x5d4abb,_0x19ea4b,_0x165d23,_0x4e08ac){const _0x58ee91=_0x243ccf;super(),this[_0x58ee91(0x164)]=_0x417fc9,this['_univerInstanceService']=_0x5c5e02,this['_configService']=_0x3ff731,this[_0x58ee91(0x165)]=_0x33b5b0,this[_0x58ee91(0x138)]=_0x438c8a,this[_0x58ee91(0x174)]=_0x35ff2e,this['_selectionProtectionRuleModel']=_0x5d4abb,this[_0x58ee91(0xdc)]=_0x19ea4b,this[_0x58ee91(0x134)]=_0x165d23,this[_0x58ee91(0x113)]=_0x4e08ac,B(this,_0x58ee91(0xd4),new _0x190d06(null)),B(this,_0x58ee91(0xc7),this[_0x58ee91(0xd4)][_0x58ee91(0x14a)]()),B(this,'_disposableCollection',new _0x16a15f()),B(this,_0x58ee91(0x139),new Map()),B(this,_0x58ee91(0xc0),null),this[_0x58ee91(0x16e)]();}get[_0x243ccf(0x151)](){return this['_historyUniver$']['value'];}['_init'](){const _0x3eeb13=_0x243ccf;this[_0x3eeb13(0x125)](),this[_0x3eeb13(0xd7)]();}[_0x243ccf(0x125)](){const _0x21aa50=_0x243ccf;var _0x326ded;let _0x20cfa=(_0x326ded=this[_0x21aa50(0xde)][_0x21aa50(0xc9)]('UNIVER_CONTAINER_ID'))==null?'univer-container':_0x326ded,_0x9b6225=document['getElementById'](_0x20cfa);if(!_0x9b6225)return;let _0x489061=document[_0x21aa50(0x13b)](_0x21aa50(0xea));_0x489061['id']=W,_0x489061[_0x21aa50(0x172)][_0x21aa50(0xf8)]=_0x21aa50(0x115),_0x489061[_0x21aa50(0x150)]['position']='absolute',_0x489061['style'][_0x21aa50(0x141)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x169)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x120)]='100%',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x158)]='100%',_0x489061[_0x21aa50(0x150)]['zIndex']='49',_0x489061['style'][_0x21aa50(0x173)]=_0x21aa50(0x14e),_0x9b6225[_0x21aa50(0x13e)](_0x489061);}[_0x243ccf(0xd7)](){const _0xc4c06f=_0x243ccf;[[_0x48739e],[_0x577dbf,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4d5580],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x3d34fa],[_0x413776],[_0x4695f1],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x3f106b],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]]['forEach'](([_0x1084b8,_0x3151b3])=>this[_0xc4c06f(0x156)](_0x1084b8,_0x3151b3));}['dispose'](){const _0x7cbe86=_0x243ccf;super['dispose'](),this[_0x7cbe86(0xcf)](),this['_pluginMap']['clear']();}[_0x243ccf(0x156)](_0x10bf8d,_0x577393,_0xfb619e){const _0x1647f2=_0x243ccf;if(this['_pluginMap'][_0x1647f2(0x170)](_0x10bf8d[_0x1647f2(0x11e)])&&!_0xfb619e)throw Error(_0x1647f2(0x179)+_0x10bf8d[_0x1647f2(0x11e)]+_0x1647f2(0x153));this[_0x1647f2(0x139)]['set'](_0x10bf8d['pluginName'],[_0x10bf8d,_0x577393]);}[_0x243ccf(0x17a)](){const _0x52d762=_0x243ccf;return Array[_0x52d762(0x13d)](this[_0x52d762(0x139)][_0x52d762(0x13a)]());}['mountHistoryContent'](_0x779098,_0x1aa86a){const _0x4fab1f=_0x243ccf;let _0x328f13=document[_0x4fab1f(0xd8)](W);_0x328f13&&(_0x328f13[_0x4fab1f(0x150)][_0x4fab1f(0x173)]=_0x4fab1f(0xe3),this[_0x4fab1f(0xf1)](_0x779098,W,_0x1aa86a));}['unMountHistoryContent'](){const _0x1e519e=_0x243ccf;var _0xb2ff48;this['_disposableCollection']['dispose'](),(_0xb2ff48=this[_0x1e519e(0x151)])==null||_0xb2ff48[_0x1e519e(0xcb)](),this[_0x1e519e(0xd4)][_0x1e519e(0x148)](null);let _0x2aa2eb=document[_0x1e519e(0xd8)](W);_0x2aa2eb&&(_0x2aa2eb[_0x1e519e(0x150)][_0x1e519e(0x173)]=_0x1e519e(0x14e),this['_internalWebWorker']&&(this['_internalWebWorker'][_0x1e519e(0xf7)](),this['_internalWebWorker']=null));}[_0x243ccf(0xf1)](_0x5f408d,_0x522cb9,_0x587617){const _0x2f9264=_0x243ccf;var _0x1fe2a6,_0x323ddb,_0x316774,_0x3edad0,_0x578637;if(this[_0x2f9264(0x151)])return;let _0x9009c3=new _0x597837({'locales':{[this['_localeService'][_0x2f9264(0x176)]()]:this['_localeService']['getLocales']()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x140c82=_0x9009c3[_0x2f9264(0xc2)]();this['disposeWithMe'](this['_themeService'][_0x2f9264(0x131)]['subscribe'](_0x30b1e2=>{const _0x34d817=_0x2f9264;_0x140c82[_0x34d817(0x126)](_0x537b2f)[_0x34d817(0x160)](_0x30b1e2);})),this[_0x2f9264(0x137)](this[_0x2f9264(0x113)][_0x2f9264(0xeb)][_0x2f9264(0x133)](_0x3fef4a=>{const _0x2ed726=_0x2f9264;_0x140c82['get'](_0x537b2f)[_0x2ed726(0xc8)](_0x3fef4a);})),_0x140c82['get'](_0x587fa0)[_0x2f9264(0x143)](this[_0x2f9264(0x164)][_0x2f9264(0x176)]()),_0x140c82[_0x2f9264(0x126)](_0x88d7b9)['setConfig'](_0x112339,this['_configService'][_0x2f9264(0xc9)](_0x112339));let _0x84b9b=this[_0x2f9264(0xde)]['getConfig'](_0x3f10cc);_0x84b9b&&_0x9009c3[_0x2f9264(0x156)](_0x4635cb,{'license':_0x84b9b['ls']});let _0x8c2325=(_0x1fe2a6=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x1fe2a6[_0x2f9264(0xce)],_0x526ff9=!!_0x8c2325;_0x526ff9&&(this[_0x2f9264(0xc0)]=_0x8c2325 instanceof Worker?_0x8c2325:null,_0x9009c3[_0x2f9264(0x156)](_0x3b8b6a,{'workerURL':_0x8c2325})),this[_0x2f9264(0x139)][_0x2f9264(0x136)](([_0x2aa22e,_0x435e9e])=>{const _0xa1fc3e=_0x2f9264;_0x9009c3[_0xa1fc3e(0x156)](_0x2aa22e,_0x435e9e);}),_0x9009c3[_0x2f9264(0x156)](_0x3c5bc0,{'historyListServerUrl':(_0x323ddb=this['_configService'][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x323ddb['historyListServerUrl'],'historyPanelComponentKey':(_0x316774=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x316774[_0x2f9264(0x17e)],'historyPanelHidden':(_0x3edad0=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3edad0[_0x2f9264(0x152)],'historyAIassistantEnabled':(_0x578637=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x578637['historyAIassistantEnabled']}),_0x140c82['invoke'](_0x3fc5d5=>{this['_initListener'](_0x3fc5d5,_0x5f408d);}),this[_0x2f9264(0xd4)][_0x2f9264(0x148)](_0x9009c3);let _0x4ccca4=_0x140c82['get'](_0x2e09fa),_0x1e46e2=this[_0x2f9264(0x10a)](_0x5f408d),_0x12e780=()=>{const _0x43a28e=_0x2f9264;_0x587617?_0x4ccca4[_0x43a28e(0xd6)](_0x5f408d,_0x522cb9,_0x1e46e2,_0x587617):_0x4ccca4[_0x43a28e(0x154)](_0x5f408d,_0x522cb9,_0x1e46e2);};if(this['_messageService']['show']({'content':this[_0x2f9264(0x164)]['t'](_0x2f9264(0x121)),'type':_0x3ed100['Loading']}),_0x526ff9)try{_0x140c82['get'](_0x177025)['whenReady']()[_0x2f9264(0x107)](()=>{_0x12e780();});}catch{_0x12e780();}else _0x12e780();}[_0x243ccf(0x105)](_0x34810e,_0x1ca791){const _0x24195c=_0x243ccf;let _0x5c5575=_0x34810e['get'](_0x2e09fa);this['_disposableCollection']['add'](_0x5c5575['status$'][_0x24195c(0x133)](_0x14fc31=>{const _0x46e7b4=_0x24195c;switch(_0x14fc31){case _0x325997[_0x46e7b4(0xec)]:this[_0x46e7b4(0xdc)][_0x46e7b4(0xe8)](),this[_0x46e7b4(0x134)][_0x46e7b4(0x112)]();break;case _0x325997[_0x46e7b4(0xfd)]:this[_0x46e7b4(0x165)][_0x46e7b4(0xc1)](q['id']),this[_0x46e7b4(0xcf)]();break;case _0x325997[_0x46e7b4(0x12d)]:this[_0x46e7b4(0xcf)](),this[_0x46e7b4(0x138)][_0x46e7b4(0x167)]({'content':this[_0x46e7b4(0x164)]['t'](_0x46e7b4(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x24195c(0xdd)][_0x24195c(0xd2)](_0x5c5575[_0x24195c(0xf5)]['subscribe'](async _0x3ea2ff=>{_0x3ea2ff&&this['_commandService']['executeCommand'](_0x377181['id'],{'unitId':_0x1ca791,'revision':_0x3ea2ff});}));}[_0x243ccf(0x10a)](_0x54fd14){const _0x5661bd=_0x243ccf;let _0x1d277e=this['_univerInstanceService'][_0x5661bd(0x14b)](_0x54fd14)[_0x5661bd(0xed)]()[_0x5661bd(0x166)](_0x510c26=>_0x510c26[_0x5661bd(0x117)]()),_0x2c78ed=new _0x582020(_0x54fd14)['id'],_0x5dac24=_0x1d277e[_0x5661bd(0x166)](_0x1d580f=>new _0x5e198a(_0x54fd14,_0x1d580f)['id']),_0x1918a1=_0x1d277e[_0x5661bd(0x166)](_0x4c651f=>this[_0x5661bd(0x12c)][_0x5661bd(0x106)](_0x54fd14,_0x4c651f)['map'](_0x428730=>new _0xd88977(_0x54fd14,_0x4c651f,_0x428730[_0x5661bd(0x128)])['id']))['flat'](),_0x8548ff=new _0x28c852(_0x54fd14)['id'];return this[_0x5661bd(0x174)][_0x5661bd(0x146)]([_0x2c78ed,..._0x5dac24,..._0x1918a1,_0x8548ff])['every'](_0x1c2252=>!!_0x1c2252['value']);}};G=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],G);const K={'id':_0x243ccf(0xc3),'type':_0x19c209[_0x243ccf(0xe7)],'handler':_0xfb236=>{const _0x562aca=_0x243ccf;let _0xd88dee=_0xfb236[_0x562aca(0x126)](G),{unitId:_0x4734b5}=_0x46712e(_0xfb236['get'](_0x564820))||{};return _0x4734b5?(_0xd88dee[_0x562aca(0xd0)](_0x4734b5),!0x0):!0x1;}},q={'id':'univer.operation.exit-edit-history','type':_0x19c209[_0x243ccf(0xe7)],'handler':()=>!0x0};var ct=_0x243ccf(0x16f),lt=_0x243ccf(0x12e);function ut(_0x5f56fb){const _0x3da472=_0x243ccf;return{'id':K['id'],'type':_0x5a8475[_0x3da472(0x109)],'icon':_0x3da472(0xe1),'tooltip':'editHistory.panel.title','hidden$':_0x13d426(_0x5f56fb,_0xf2429e['UNIVER_SHEET']),'disabled$':_0x2d08bc(_0x5f56fb,{'workbookTypes':[_0x582020,_0x55d453],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x2c4b0f['OTHERS']]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x531dc7{constructor(_0x531dab,_0x3bc484,_0x267cde,_0x1cc890,_0x12b7ac,_0xe5a96,_0x30748e,_0x4cad27,_0x3f724c,_0xec8a72,_0x4e6dd5){const _0x4ebd5a=_0x243ccf;super(),this[_0x4ebd5a(0x165)]=_0x531dab,this[_0x4ebd5a(0xcd)]=_0x3bc484,this['_componentManager']=_0x267cde,this['_historyManagerService']=_0x1cc890,this[_0x4ebd5a(0x164)]=_0x12b7ac,this[_0x4ebd5a(0x138)]=_0xe5a96,this[_0x4ebd5a(0xdf)]=_0x30748e,this[_0x4ebd5a(0xe2)]=_0x4cad27,this[_0x4ebd5a(0x104)]=_0x3f724c,this['_univerInstanceService']=_0xec8a72,this['_urlService']=_0x4e6dd5,B(this,'_revertErrorTimer',null),this[_0x4ebd5a(0x16e)]();}[_0x243ccf(0x16e)](){const _0x51c7a3=_0x243ccf;[K,q]['forEach'](_0x359081=>this[_0x51c7a3(0x137)](_0x3ff83f(this[_0x51c7a3(0x165)]['registerCommand'](_0x359081)))),this[_0x51c7a3(0x137)](this[_0x51c7a3(0x10f)][_0x51c7a3(0xf6)](_0x51c7a3(0xe1),_0x4e8247)),this[_0x51c7a3(0xcd)][_0x51c7a3(0xfc)](dt),this['disposeWithMe'](this[_0x51c7a3(0x165)][_0x51c7a3(0x14f)](async(_0x52efc4,_0x5a5d02)=>{const _0x4ba5d6=_0x51c7a3;if(_0x52efc4['id']===_0x377181['id']){let {unitId:_0x34c088}=_0x52efc4[_0x4ba5d6(0x17f)];this[_0x4ba5d6(0x138)][_0x4ba5d6(0x167)]({'content':this[_0x4ba5d6(0x164)]['t'](_0x4ba5d6(0xf3)),'type':_0x3ed100[_0x4ba5d6(0xfe)],'duration':0x1388});let _0x50426c=this[_0x4ba5d6(0xdf)]['getCollabEntity'](_0x34c088);_0x5a5d02!=null&&_0x5a5d02['fromCollab']?this[_0x4ba5d6(0x15f)](_0x50426c,async()=>(setTimeout(()=>window[_0x4ba5d6(0x122)][_0x4ba5d6(0x10e)]()),!0x0),!0x0):this[_0x4ba5d6(0x15f)](_0x50426c,async()=>{const _0x1ef363=_0x4ba5d6;let _0x58f189=this['_univerInstanceService'][_0x1ef363(0x157)](_0x510b10[_0x1ef363(0xfa)]),_0x54b2b4=_0x58f189==null?void 0x0:_0x58f189[_0x1ef363(0xee)]();if(!_0x54b2b4)return!0x1;this[_0x1ef363(0xd5)][_0x1ef363(0xff)](_0x34c088);let _0x111dbc=await this[_0x1ef363(0x104)][_0x1ef363(0xc4)](_0x34c088,_0x510b10[_0x1ef363(0xfa)]);return _0x111dbc&&_0x111dbc instanceof _0x1b4b80?(await this[_0x1ef363(0xf2)](_0x111dbc,_0x54b2b4['getSheetId']()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x2a7060,_0x59c45d,_0x5aa092=!0x1){const _0x581fe7=_0x243ccf;let _0x51a454=_0x1b6270([_0x2a7060[_0x581fe7(0xca)][_0x581fe7(0x13c)],_0x2a7060[_0x581fe7(0xe4)]])['subscribe'](async([_0x57a8f7,_0x213a50])=>{const _0x1ac2ea=_0x581fe7;if(_0x57a8f7['eventID']===_0x22e3de[_0x1ac2ea(0x149)]&&(_0x213a50==null?void 0x0:_0x213a50[_0x1ac2ea(0x177)])===_0x20abcb[_0x1ac2ea(0x147)]&&_0x57a8f7[_0x1ac2ea(0x15c)][_0x1ac2ea(0xef)][_0x1ac2ea(0x16c)](_0x4cc6c8=>_0x4cc6c8['id']===_0x377181['id'])&&await _0x59c45d()){var _0x3461c6;this[_0x1ac2ea(0x11a)][_0x1ac2ea(0xcf)](),_0x51a454[_0x1ac2ea(0x11f)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x3461c6=this[_0x1ac2ea(0xe2)])==null?void 0x0:_0x3461c6[_0x1ac2ea(0x181)]()),this['_messageService'][_0x1ac2ea(0xc6)]();}});_0x5aa092&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x549f45=_0x581fe7;_0x51a454[_0x549f45(0x11f)](),this[_0x549f45(0x138)][_0x549f45(0x167)]({'content':this[_0x549f45(0x164)]['t'](_0x549f45(0x11b)),'type':_0x3ed100[_0x549f45(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x5f5c47,_0x43d2c8){const _0x497793=_0x243ccf;await this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8),_0x5f5c47[_0x497793(0x135)]['pipe'](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](_0x287be7=>{const _0x1cd965=_0x497793;_0x287be7&&this[_0x1cd965(0xc5)](_0x287be7);}),this[_0x497793(0x100)][_0x497793(0x15e)][_0x497793(0xfb)](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](()=>this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8));}[_0x243ccf(0xc5)](_0x15eed2,_0x37a1f4=!0x1){const _0x35b1e0=_0x243ccf;let _0x12c401=this[_0x35b1e0(0x100)][_0x35b1e0(0x12f)](_0x35b1e0(0x10d));_0x15eed2[_0x35b1e0(0x117)]()!==_0x12c401&&this['_urlService'][_0x35b1e0(0x10b)](_0x35b1e0(0x10d),_0x15eed2[_0x35b1e0(0x117)](),_0x37a1f4);}async['_updateSubUnitFromURLParams'](_0x567f0a,_0x1f05e){const _0x5780c1=_0x243ccf;var _0x2c9ed8;if(!_0x1f05e||!_0x567f0a['getSheetBySheetId'](_0x1f05e)){let _0x4b0ed8=_0x567f0a[_0x5780c1(0x123)]()[0x0],_0x50527f=_0x567f0a[_0x5780c1(0x144)](_0x4b0ed8);if(!_0x50527f)return;this[_0x5780c1(0xc5)](_0x50527f,!0x0),await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x4b0ed8});return;}((_0x2c9ed8=_0x567f0a[_0x5780c1(0xee)]())==null?void 0x0:_0x2c9ed8[_0x5780c1(0x117)]())!==_0x1f05e&&await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x1f05e});}};J=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],J);const Y='univer-history-container-mobile';let X=class extends _0x56b781{constructor(_0x2eff19,_0x48135e,_0x14a30d,_0x4cc662,_0x4d24d9,_0x16b8ac,_0x55a70c,_0x856df1,_0xa2bb99,_0x254bcb){const _0x24c2c5=_0x243ccf;super(),this[_0x24c2c5(0x164)]=_0x2eff19,this[_0x24c2c5(0xd5)]=_0x48135e,this['_configService']=_0x14a30d,this[_0x24c2c5(0x165)]=_0x4cc662,this[_0x24c2c5(0x138)]=_0x4d24d9,this['_permissionService']=_0x16b8ac,this[_0x24c2c5(0x12c)]=_0x55a70c,this[_0x24c2c5(0xdc)]=_0x856df1,this[_0x24c2c5(0x134)]=_0xa2bb99,this['_themeService']=_0x254bcb,B(this,_0x24c2c5(0xd4),new _0x190d06(null)),B(this,_0x24c2c5(0xc7),this['_historyUniver$'][_0x24c2c5(0x14a)]()),B(this,_0x24c2c5(0xdd),new _0x16a15f()),B(this,_0x24c2c5(0x139),new Map()),B(this,'_internalWebWorker',null),this[_0x24c2c5(0x16e)]();}get[_0x243ccf(0x151)](){const _0x485df=_0x243ccf;return this[_0x485df(0xd4)]['value'];}[_0x243ccf(0x16e)](){const _0x9d5d6a=_0x243ccf;this[_0x9d5d6a(0x125)](),this[_0x9d5d6a(0xd7)]();}['_initContainer'](){const _0x270b24=_0x243ccf;var _0xc8a5b;let _0x5dd605=(_0xc8a5b=this[_0x270b24(0xde)]['getConfig'](_0x270b24(0x101)))==null?_0x270b24(0x15d):_0xc8a5b,_0x189a8a=document[_0x270b24(0xd8)](_0x5dd605);if(!_0x189a8a)return;let _0x1212c8=document['createElement']('div');_0x1212c8['id']=Y,_0x1212c8[_0x270b24(0x172)][_0x270b24(0xf8)]=_0x270b24(0x115),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x103)]=_0x270b24(0x116),_0x1212c8['style']['top']='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x169)]='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x120)]='100%',_0x1212c8['style'][_0x270b24(0x158)]=_0x270b24(0xf9),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x180)]='49',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x173)]='none',_0x189a8a[_0x270b24(0x13e)](_0x1212c8);}[_0x243ccf(0xd7)](){const _0x2d47f2=_0x243ccf;[[_0x48739e],[_0x53a928,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4864b9],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x413776],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x534673],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]][_0x2d47f2(0x136)](([_0x3ae166,_0x233d68])=>this[_0x2d47f2(0x156)](_0x3ae166,_0x233d68));}[_0x243ccf(0xcb)](){const _0x54b05d=_0x243ccf;super[_0x54b05d(0xcb)](),this[_0x54b05d(0xcf)](),this[_0x54b05d(0x139)][_0x54b05d(0xe9)]();}['registerPlugin'](_0x5be1c4,_0x14a440,_0x5e7aa6){const _0xbc8da9=_0x243ccf;if(this[_0xbc8da9(0x139)][_0xbc8da9(0x170)](_0x5be1c4[_0xbc8da9(0x11e)])&&!_0x5e7aa6)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5be1c4[_0xbc8da9(0x11e)]+_0xbc8da9(0x153));this[_0xbc8da9(0x139)][_0xbc8da9(0x13f)](_0x5be1c4[_0xbc8da9(0x11e)],[_0x5be1c4,_0x14a440]);}['getAllPlugins'](){const _0x17f442=_0x243ccf;return Array[_0x17f442(0x13d)](this[_0x17f442(0x139)][_0x17f442(0x13a)]());}[_0x243ccf(0xd0)](_0x358e22,_0x469c1d){const _0x59b9b4=_0x243ccf;let _0x503d60=document[_0x59b9b4(0xd8)](Y);_0x503d60&&(_0x503d60[_0x59b9b4(0x150)][_0x59b9b4(0x173)]=_0x59b9b4(0xe3),this[_0x59b9b4(0xf1)](_0x358e22,Y,_0x469c1d));}[_0x243ccf(0xcf)](){const _0x293e8f=_0x243ccf;var _0x206e66;this['_disposableCollection'][_0x293e8f(0xcb)](),(_0x206e66=this['historyUniver'])==null||_0x206e66[_0x293e8f(0xcb)](),this['_historyUniver$']['next'](null);let _0x10d11a=document[_0x293e8f(0xd8)](Y);_0x10d11a&&(_0x10d11a[_0x293e8f(0x150)][_0x293e8f(0x173)]=_0x293e8f(0x14e),this['_internalWebWorker']&&(this[_0x293e8f(0xc0)][_0x293e8f(0xf7)](),this[_0x293e8f(0xc0)]=null));}['_initUniver'](_0x17b31e,_0x3ed51d,_0x391b34){const _0x19b741=_0x243ccf;var _0x4815fb,_0x2f26cc,_0x98afef,_0x45d987;if(this['historyUniver'])return;let _0x56d4e4=new _0x597837({'locales':{[this[_0x19b741(0x164)][_0x19b741(0x176)]()]:this[_0x19b741(0x164)][_0x19b741(0x142)]()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x5a6c85=_0x56d4e4[_0x19b741(0xc2)]();this[_0x19b741(0x137)](this[_0x19b741(0x113)][_0x19b741(0x131)]['subscribe'](_0x5b758f=>{const _0x1f8530=_0x19b741;_0x5a6c85[_0x1f8530(0x126)](_0x537b2f)[_0x1f8530(0x160)](_0x5b758f);})),this[_0x19b741(0x137)](this['_themeService'][_0x19b741(0xeb)][_0x19b741(0x133)](_0x17f556=>{const _0x4bdec9=_0x19b741;_0x5a6c85[_0x4bdec9(0x126)](_0x537b2f)['setTheme'](_0x17f556);})),_0x5a6c85[_0x19b741(0x126)](_0x587fa0)[_0x19b741(0x143)](this[_0x19b741(0x164)]['getCurrentLocale']()),_0x5a6c85['get'](_0x88d7b9)[_0x19b741(0xe5)](_0x112339,this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x112339));let _0x4234c2=this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x3f10cc);_0x4234c2&&_0x56d4e4[_0x19b741(0x156)](_0x4635cb,{'license':_0x4234c2['ls']});let _0x29f4b2=(_0x4815fb=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x4815fb[_0x19b741(0xce)],_0x1de1b1=!!_0x29f4b2;_0x1de1b1&&(this[_0x19b741(0xc0)]=_0x29f4b2 instanceof Worker?_0x29f4b2:null,_0x56d4e4[_0x19b741(0x156)](_0x3b8b6a,{'workerURL':_0x29f4b2})),this[_0x19b741(0x139)][_0x19b741(0x136)](([_0x4743c2,_0x5cdb92])=>{const _0x55f18f=_0x19b741;_0x56d4e4[_0x55f18f(0x156)](_0x4743c2,_0x5cdb92);}),_0x56d4e4['registerPlugin'](_0x50eafa,{'historyListServerUrl':(_0x2f26cc=this[_0x19b741(0xde)][_0x19b741(0xc9)]('edit-history-loader.config'))==null?void 0x0:_0x2f26cc[_0x19b741(0x108)],'historyPanelComponentKey':(_0x98afef=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x98afef[_0x19b741(0x17e)],'historyPanelHidden':(_0x45d987=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x45d987[_0x19b741(0x152)]}),_0x5a6c85[_0x19b741(0x17c)](_0x2785da=>{const _0x215e7c=_0x19b741;this[_0x215e7c(0x105)](_0x2785da,_0x17b31e);}),this[_0x19b741(0xd4)][_0x19b741(0x148)](_0x56d4e4);let _0x28bc3b=_0x5a6c85['get'](_0x2e09fa),_0xb3c34=this[_0x19b741(0x10a)](_0x17b31e),_0xd78343=()=>{const _0x545775=_0x19b741;_0x391b34?_0x28bc3b['triggerCustomVersions'](_0x17b31e,_0x3ed51d,_0xb3c34,_0x391b34):_0x28bc3b[_0x545775(0x154)](_0x17b31e,_0x3ed51d,_0xb3c34);};if(this[_0x19b741(0x138)][_0x19b741(0x167)]({'content':this[_0x19b741(0x164)]['t']('editHistory.info.initializing'),'type':_0x3ed100[_0x19b741(0xfe)]}),_0x1de1b1)try{_0x5a6c85[_0x19b741(0x126)](_0x177025)['whenReady']()['then'](()=>{_0xd78343();});}catch{_0xd78343();}else _0xd78343();}[_0x243ccf(0x105)](_0x1464bf,_0x162832){const _0x548f88=_0x243ccf;let _0x1e7fff=_0x1464bf[_0x548f88(0x126)](_0x2e09fa);this[_0x548f88(0xdd)]['add'](_0x1e7fff[_0x548f88(0x124)][_0x548f88(0x133)](_0x42bda0=>{const _0x521580=_0x548f88;switch(_0x42bda0){case _0x325997[_0x521580(0xec)]:this[_0x521580(0xdc)][_0x521580(0xe8)](),this[_0x521580(0x134)][_0x521580(0x112)]();break;case _0x325997[_0x521580(0xfd)]:this[_0x521580(0x165)][_0x521580(0xc1)](q['id']),this[_0x521580(0xcf)]();break;case _0x325997[_0x521580(0x12d)]:this[_0x521580(0xcf)](),this['_messageService'][_0x521580(0x167)]({'content':this[_0x521580(0x164)]['t'](_0x521580(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x548f88(0xdd)][_0x548f88(0xd2)](_0x1e7fff[_0x548f88(0xf5)]['subscribe'](async _0x328881=>{const _0x4c7a00=_0x548f88;_0x328881&&this[_0x4c7a00(0x165)][_0x4c7a00(0xc1)](_0x377181['id'],{'unitId':_0x162832,'revision':_0x328881});}));}[_0x243ccf(0x10a)](_0x529d36){const _0x58197e=_0x243ccf;let _0x77743e=this[_0x58197e(0xd5)][_0x58197e(0x14b)](_0x529d36)[_0x58197e(0xed)]()[_0x58197e(0x166)](_0x2117de=>_0x2117de['getSheetId']()),_0x27fb52=new _0x582020(_0x529d36)['id'],_0x35bd67=_0x77743e[_0x58197e(0x166)](_0xcfb21a=>new _0x5e198a(_0x529d36,_0xcfb21a)['id']),_0x9e0380=_0x77743e[_0x58197e(0x166)](_0x4c2793=>this[_0x58197e(0x12c)][_0x58197e(0x106)](_0x529d36,_0x4c2793)['map'](_0x3b40ed=>new _0xd88977(_0x529d36,_0x4c2793,_0x3b40ed[_0x58197e(0x128)])['id']))[_0x58197e(0xd1)](),_0x5e99a1=new _0x28c852(_0x529d36)['id'];return this[_0x58197e(0x174)][_0x58197e(0x146)]([_0x27fb52,..._0x35bd67,..._0x9e0380,_0x5e99a1])[_0x58197e(0x175)](_0x44af8c=>!!_0x44af8c[_0x58197e(0x12b)]);}};X=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],X);let Z=class extends _0x25956b{constructor(_0x53b142=R,_0x7b261b,_0x158011){const _0x3738c5=_0x243ccf;super(),this[_0x3738c5(0x15a)]=_0x53b142,this['_injector']=_0x7b261b,this[_0x3738c5(0xde)]=_0x158011;let {menu:_0x255d26,..._0x31e77b}=_0x32845e({},R,this[_0x3738c5(0x15a)]);_0x255d26&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)](_0x3738c5(0x102),_0x255d26,{'merge':!0x0}),this['_configService']['setConfig'](L,_0x31e77b),this['_config']['univerContainerId']&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)]('UNIVER_CONTAINER_ID',this['_config'][_0x3738c5(0xdb)]);}[_0x243ccf(0x111)](){const _0x42a4c8=_0x243ccf;[[G,{'useClass':X}],[J]]['forEach'](_0x301bc9=>this[_0x42a4c8(0xda)]['add'](_0x301bc9));}['onSteady'](){const _0x2a5b77=_0x243ccf;this[_0x2a5b77(0xda)][_0x2a5b77(0x126)](J);}};B(Z,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B(Z,_0x243ccf(0x11e),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x243ccf(0x118),ct),B(Z,_0x243ccf(0x168),lt),Z=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],Z);let Q=class extends _0x531dc7{constructor(_0x335fe6,_0x167d74,_0x45218c,_0xd8e97b,_0x58ba73,_0x5a03ac,_0x1a80fa,_0x1ddf6b,_0xc5fc23,_0x1b0b3f,_0x46074a){const _0xceca1e=_0x243ccf;super(),this[_0xceca1e(0x165)]=_0x335fe6,this[_0xceca1e(0xcd)]=_0x167d74,this[_0xceca1e(0x10f)]=_0x45218c,this[_0xceca1e(0x11a)]=_0xd8e97b,this['_localeService']=_0x58ba73,this[_0xceca1e(0x138)]=_0x5a03ac,this[_0xceca1e(0xdf)]=_0x1a80fa,this[_0xceca1e(0xe2)]=_0x1ddf6b,this[_0xceca1e(0x104)]=_0xc5fc23,this[_0xceca1e(0xd5)]=_0x1b0b3f,this[_0xceca1e(0x100)]=_0x46074a,B(this,_0xceca1e(0xd3),null),this[_0xceca1e(0x16e)]();}['_init'](){const _0xe7fb36=_0x243ccf;[K,q][_0xe7fb36(0x136)](_0x519e40=>this[_0xe7fb36(0x137)](_0x3ff83f(this['_commandService']['registerCommand'](_0x519e40)))),this[_0xe7fb36(0x137)](this[_0xe7fb36(0x10f)][_0xe7fb36(0xf6)](_0xe7fb36(0xe1),_0x4e8247)),this['_menuManagerService'][_0xe7fb36(0xfc)](dt),this['disposeWithMe'](this[_0xe7fb36(0x165)][_0xe7fb36(0x14f)](async(_0x32857e,_0x7eaae1)=>{const _0x557dea=_0xe7fb36;if(_0x32857e['id']===_0x377181['id']){let {unitId:_0x3aafc0}=_0x32857e[_0x557dea(0x17f)];this[_0x557dea(0x138)][_0x557dea(0x167)]({'content':this[_0x557dea(0x164)]['t'](_0x557dea(0xf3)),'type':_0x3ed100[_0x557dea(0xfe)],'duration':0x1388});let _0x1d851d=this['_collaborationController'][_0x557dea(0xe0)](_0x3aafc0);_0x7eaae1!=null&&_0x7eaae1[_0x557dea(0x132)]?this['_handleRevertAcknowledgement'](_0x1d851d,async()=>(setTimeout(()=>window[_0x557dea(0x122)][_0x557dea(0x10e)]()),!0x0),!0x0):this[_0x557dea(0x15f)](_0x1d851d,async()=>{const _0x3ca242=_0x557dea;let _0x112035=this['_univerInstanceService']['getCurrentUnitOfType'](_0x510b10[_0x3ca242(0xfa)]),_0x45d17f=_0x112035==null?void 0x0:_0x112035[_0x3ca242(0xee)]();if(!_0x45d17f)return!0x1;this[_0x3ca242(0xd5)][_0x3ca242(0xff)](_0x3aafc0);let _0x2f27b9=await this[_0x3ca242(0x104)][_0x3ca242(0xc4)](_0x3aafc0,_0x510b10[_0x3ca242(0xfa)]);return _0x2f27b9&&_0x2f27b9 instanceof _0x1b4b80?(await this[_0x3ca242(0xf2)](_0x2f27b9,_0x45d17f[_0x3ca242(0x117)]()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x135a4f,_0x125674,_0x2c1a2a=!0x1){const _0x4c5c67=_0x243ccf;let _0x5b62c1=_0x1b6270([_0x135a4f['session']['event$'],_0x135a4f[_0x4c5c67(0xe4)]])[_0x4c5c67(0x133)](async([_0x1b3cf9,_0x906444])=>{const _0x28da2b=_0x4c5c67;if(_0x1b3cf9[_0x28da2b(0x11d)]===_0x22e3de[_0x28da2b(0x149)]&&(_0x906444==null?void 0x0:_0x906444[_0x28da2b(0x177)])===_0x20abcb[_0x28da2b(0x147)]&&_0x1b3cf9['data'][_0x28da2b(0xef)]['some'](_0x4abdd4=>_0x4abdd4['id']===_0x377181['id'])&&await _0x125674()){var _0x4546ca;this[_0x28da2b(0x11a)][_0x28da2b(0xcf)](),_0x5b62c1[_0x28da2b(0x11f)](),this[_0x28da2b(0xd3)]&&clearTimeout(this[_0x28da2b(0xd3)]),await((_0x4546ca=this[_0x28da2b(0xe2)])==null?void 0x0:_0x4546ca[_0x28da2b(0x181)]());}});_0x2c1a2a&&(this[_0x4c5c67(0xd3)]=setTimeout(()=>{const _0x4c5a05=_0x4c5c67;_0x5b62c1[_0x4c5a05(0x11f)](),this[_0x4c5a05(0x138)][_0x4c5a05(0x167)]({'content':this[_0x4c5a05(0x164)]['t'](_0x4c5a05(0x11b)),'type':_0x3ed100[_0x4c5a05(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x1203f2,_0x1b1036){const _0x51e0b4=_0x243ccf;await this[_0x51e0b4(0x145)](_0x1203f2,_0x1b1036),_0x1203f2['activeSheet$']['pipe'](_0x25d598(this['dispose$']))[_0x51e0b4(0x133)](_0xb1241e=>{const _0x178f6b=_0x51e0b4;_0xb1241e&&this[_0x178f6b(0xc5)](_0xb1241e);}),this[_0x51e0b4(0x100)][_0x51e0b4(0x15e)][_0x51e0b4(0xfb)](_0x25d598(this[_0x51e0b4(0x155)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1203f2,_0x1b1036));}[_0x243ccf(0xc5)](_0x21b3be,_0x39b53f=!0x1){const _0x1c89d7=_0x243ccf;let _0x7ca5ea=this[_0x1c89d7(0x100)][_0x1c89d7(0x12f)](_0x1c89d7(0x10d));_0x21b3be[_0x1c89d7(0x117)]()!==_0x7ca5ea&&this[_0x1c89d7(0x100)][_0x1c89d7(0x10b)](_0x1c89d7(0x10d),_0x21b3be[_0x1c89d7(0x117)](),_0x39b53f);}async[_0x243ccf(0x145)](_0x4f6fbc,_0x45af9a){const _0xd5b615=_0x243ccf;var _0x500f88;if(!_0x45af9a||!_0x4f6fbc[_0xd5b615(0x144)](_0x45af9a)){let _0x3ca466=_0x4f6fbc[_0xd5b615(0x123)]()[0x0],_0x34cecd=_0x4f6fbc['getSheetBySheetId'](_0x3ca466);if(!_0x34cecd)return;this[_0xd5b615(0xc5)](_0x34cecd,!0x0),await this[_0xd5b615(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x4f6fbc['getUnitId'](),'subUnitId':_0x3ca466});return;}((_0x500f88=_0x4f6fbc[_0xd5b615(0xee)]())==null?void 0x0:_0x500f88['getSheetId']())!==_0x45af9a&&await this[_0xd5b615(0x165)][_0xd5b615(0xc1)](_0x1a252d['id'],{'unitId':_0x4f6fbc[_0xd5b615(0x178)](),'subUnitId':_0x45af9a});}};Q=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],Q);let $=class extends _0x25956b{constructor(_0x2cb991=R,_0x578436,_0x3487a1){const _0x52f7f7=_0x243ccf;super(),this[_0x52f7f7(0x15a)]=_0x2cb991,this[_0x52f7f7(0xda)]=_0x578436,this['_configService']=_0x3487a1;let {menu:_0x5afac8,..._0x4dfe7f}=_0x32845e({},R,this[_0x52f7f7(0x15a)]);_0x5afac8&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](_0x52f7f7(0x102),_0x5afac8,{'merge':!0x0}),this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](L,_0x4dfe7f),this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](U,this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]);}['onStarting'](){const _0x41ab7d=_0x243ccf;[[G],[Q]][_0x41ab7d(0x136)](_0x1509d7=>this[_0x41ab7d(0xda)][_0x41ab7d(0xd2)](_0x1509d7));}[_0x243ccf(0x163)](){const _0x28de9a=_0x243ccf;this[_0x28de9a(0xda)]['get'](Q);}};B($,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B($,_0x243ccf(0x11e),_0x243ccf(0x17b)),B($,_0x243ccf(0x118),ct),B($,_0x243ccf(0x168),lt),$=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1a8a(_0x359a56,_0x50a242){_0x359a56=_0x359a56-0xfc;const _0x5af3f6=_0x5af3();let _0x1a8a39=_0x5af3f6[_0x359a56];return _0x1a8a39;}function _0x5af3(){const _0x3de6ef=['UniverProEditHistoryViewer','LS_CONFIG_KEY','_initUniver','UniverDocsPlugin','mountHistoryContent','workerURL','UniverIcon','UniverSheetsChartUIPlugin','UniverRenderEnginePlugin','_componentManager','UniverSheetsFormula','version','none','getLocales','UniverLicensePlugin','iterator','UniverEngineFormula','UniverSheetsConditionalFormatting','getConfig','UNRECOGNIZED','UniverDocs','random','_setupSubUnitSync','IConfigService','UniverDocsUi','RangeProtectionRuleModel','UniverSheetsDrawingUIPlugin','_permissionService','UniverSheetsShapeUIPlugin','UniverProSheetsShape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Error','_menuManagerService','toStringTag','_updateURLWithCurrentState','getCurrentRangeDisable$','CollaborationStatus','setLocale','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','univer-history-container','UniverRPCMainThreadPlugin','historyPanelHidden','UniverProSheetsChartUi','UniverProSheetsChart','editHistory.panel.revertFailed','setTheme','defs','next','_pluginMap','HistoryIcon','dataset','UniverEngineRender','get','revertRevision$','UniverSheetsFilter','display','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','show','UniverSheets','_sidebarService','tag','_localeService','UniverSheetsDataValidationMobileUIPlugin','edit-history-loader.config','every','UniverCollaborationPlugin','6833068Vevcoj','UniverSheetsConditionalFormattingPlugin','univerjs-icon\x20univerjs-icon-','historyUniver$','block','state$','UniverProSheetsPivot','triggerCustomVersions','register','then','UniverDesign','historyListServerUrl','default','UniverSheetsFormulaPlugin','ComponentManager','getElementById','_selectionProtectionRuleModel','replace','getUnit','1986ckSgJd','7JnTcbU','svg','getActiveSheet','type','forwardRef','_handleRevertAcknowledgement','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CHANGESET_ACK','UniverSheetsPivotTablePlugin','getSubunitRuleList','MenuItemType','univer-container','AuthzIoHttpService','packageName','UniverSheetsConditionalFormattingUIPlugin','WorksheetEditPermission','pipe','DependentOn','call','React','status','_updateSubUnitFromURLParams','onSteady','0.19.0','60dqzXvA','UniverProCollaborationClientUi','UniverSheetsFilterPlugin','Loading','19835bHjeii','attrs','createElement','UniverEditHistoryLoaderPlugin','http://www.w3.org/2000/svg','history-icon','_initPlugins','HistoryModeStatus','div','UniverSheetsDataValidationUIPlugin','BehaviorSubject','current','from','UniverDocsUIPlugin','UniverSheetsUIPlugin','values','IURLService','url(#$1','Univer','asObservable','130WNdRer','RevertRevisionMutation','UNIVER_CONTAINER_ID_KEY','data','registerPlugin','_localCacheService','mask','getSheetBySheetId','_historyUniver$','loadUnit','_config','9576720EtNWvV','UNIVER_DOC','includes','fill','100%','_collaborationController','UniverProSheetsShapeUi','WorkbookViewHistoryPermission','width','UniverSheetsDataValidation','UNIVER_SHEET','CollaborationEvent','path','historyUniver','editHistory.panel.title','_univerInstanceService','fromCollab','disposeUnit','[MobileHistoryLoaderService]:\x20Plugin\x20','executeCommand','UniverSheetsDrawingPlugin','darkMode$','DisposableCollection','Inject','mergeMenu','_historyManagerService','UniverSheetsTable','UniverCore','whenReady','amd','toPrimitive','session','setConfig','menu','some','_injector','length','_dialogService','UniverNetworkPlugin','mutations','string','UniverSheetsFilterUIPlugin','UniverInstanceType','UniverDrawingUi','params','UniverSheetsFormulaUi','RxDisposable','_init','SYNCED','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverSheetsHyperLinkUIPlugin','composePermission','onCommandExecuted','_configService','BUTTON','historyAIassistantEnabled','unsubscribe','absolute','reload','Plugin','children','permissionId','disposeWithMe','UNIVER_CONTAINER_ID','xlink:href','ThemeService','zIndex','__getInjector','has','univer-history-container-mobile','currentTheme$','_dataLoaderService','IUniverInstanceService','_checkCanRevert','status$','style','use','defIds','_revertErrorTimer','editHistory.panel.reverting','useRef','forEach','476751XAHZYx','subscribe','UniverSheetSparklineUIPlugin','736848toGErO','UniverRpc','uComp','LocaleService','UNIVER_SLIDE','left','UniverSheetsFormulaUIPlugin','_urlService','invoke','function','trim','ILocalCacheService','HistoryLoaderService','currentColor','setDarkMode','UniverDrawingUIPlugin','SetWorksheetActivateCommand','WorkbookEditablePermission','OPERATION','UniverSheetsNumfmtPlugin','getUnitId','getCurrentUnitOfType','appendChild','UNIVER_PROJECT','UniverProSheetsSparklineUi','UniverSheetsDataValidationPlugin','position','getMenuHiddenObservable','UniverSheetsDrawingUi','WorkbookRecoverHistoryPermission','getAllPlugins','UniverDataValidation','1849928xeVUsO','pluginName','set','_commandService','dispose$','unMountHistoryContent','MessageType','displayName','assign','idSuffix','UniverSheetsNumfmt','editHistory.info.initializing','prototype','UniverDrawingPlugin','M0\x200H16V16H0z','UniverSheetsTablePlugin','activeSheet$','close','HistoryManagerService','history-icon_clip0_907_281','getCurrentLocale','getCollabEntity','merge','UniverDataValidationPlugin','_initContainer','event$','map','UniverProSheetsSparkline','UniverSheetsHyperLinkUi','UniverSheetsConditionalFormattingUi','_themeService','\x20has\x20been\x20registered.','onStarting','Injector','_internalWebWorker','IDialogService','UniverUIPlugin','getSheets','univer.operation.exit-edit-history','takeUntil','UniverFormulaEnginePlugin','Workbook','height','20ueRqLR','RibbonStartGroup','dispose','_disposableCollection','UNIVER_UNKNOWN','substring','subunit','exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react','ISidebarService','clipPath','registerCommand','ICommandService','univerContainerId','defineProperty','UniverSheetsShapePlugin','getSheetId','flat','editHistory.panel.listFetchError','getOwnPropertyDescriptor','_initListener','eventID','setParam','IRemoteInstanceService','IImageIoService','url(#history-icon_clip0_907_281)','getUnhiddenWorksheets','UniverProCollaborationClient','CommandType','Disposable','getParam','22522UGQvtH','UniverProCollaboration','history-container','DataLoaderService','IAuthzIoService','value','UniverSheetsPlugin','colorChannel1','Exited','combineLatest','RangeProtectionPermissionEditPoint','@univerjs-pro/edit-history-loader','triggerLoadVersions','exhaustSavingTask','UniverSheetsMobileUIPlugin','object','CollaborationController','urlChange$','ToggleEditHistoryOperation','IMessageService','add','toDisposable','clear','symbol','_messageService','UniverSheetsDataValidationUi','terminate'];_0x5af3=function(){return _0x3de6ef;};return _0x5af3();}(function(_0x465c74,_0x9b30d3){const _0x19e478=_0x1a8a,_0x2ba4de=_0x465c74();while(!![]){try{const _0x1e23db=parseInt(_0x19e478(0x144))/0x1*(-parseInt(_0x19e478(0x20d))/0x2)+parseInt(_0x19e478(0x1a1))/0x3*(-parseInt(_0x19e478(0x1ef))/0x4)+parseInt(_0x19e478(0x130))/0x5*(-parseInt(_0x19e478(0x113))/0x6)+parseInt(_0x19e478(0x114))/0x7*(parseInt(_0x19e478(0x1c4))/0x8)+parseInt(_0x19e478(0x1a4))/0x9+parseInt(_0x19e478(0x14f))/0xa+-parseInt(_0x19e478(0x100))/0xb*(-parseInt(_0x19e478(0x12c))/0xc);if(_0x1e23db===_0x9b30d3)break;else _0x2ba4de['push'](_0x2ba4de['shift']());}catch(_0x44bb45){_0x2ba4de['push'](_0x2ba4de['shift']());}}}(_0x5af3,0xc490d),function(_0x5135f2,_0x7ec382){const _0x33b2cb=_0x1a8a;typeof exports==_0x33b2cb(0x21c)&&typeof module<'u'?_0x7ec382(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs-pro/edit-history-viewer`),require(`@univerjs-pro/license`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs-pro/sheets-chart-ui`),require(`@univerjs-pro/sheets-pivot`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs-pro/sheets-shape-ui`),require(`@univerjs-pro/sheets-sparkline`),require(`@univerjs-pro/sheets-sparkline-ui`),require(`@univerjs/data-validation`),require(`@univerjs/design`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs/drawing`),require(`@univerjs/drawing-ui`),require(`@univerjs/engine-formula`),require(`@univerjs/engine-render`),require(`@univerjs/network`),require(`@univerjs/rpc`),require(`@univerjs/sheets-conditional-formatting`),require(`@univerjs/sheets-conditional-formatting-ui`),require(`@univerjs/sheets-data-validation`),require(`@univerjs/sheets-data-validation-ui`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets-drawing-ui`),require(`@univerjs/sheets-filter`),require(`@univerjs/sheets-filter-ui`),require(`@univerjs/sheets-formula`),require(`@univerjs/sheets-formula-ui`),require(`@univerjs/sheets-hyper-link`),require(`@univerjs/sheets-hyper-link-ui`),require(`@univerjs/sheets-numfmt`),require(`@univerjs/sheets-table`),require(`@univerjs/sheets-ui`),require(`@univerjs/ui`),require(`rxjs`),require(`@univerjs-pro/collaboration-client-ui`),require(`react`)):typeof define==_0x33b2cb(0x1ad)&&define[_0x33b2cb(0x16c)]?define(_0x33b2cb(0x1f6)['split']('.'),_0x7ec382):(_0x5135f2=typeof globalThis<'u'?globalThis:_0x5135f2||self,_0x7ec382(_0x5135f2['UniverProEditHistoryLoader']={},_0x5135f2[_0x33b2cb(0x16a)],_0x5135f2[_0x33b2cb(0x262)],_0x5135f2[_0x33b2cb(0x20e)],_0x5135f2[_0x33b2cb(0x209)],_0x5135f2[_0x33b2cb(0x228)],_0x5135f2['UniverProLicense'],_0x5135f2[_0x33b2cb(0x253)],_0x5135f2[_0x33b2cb(0x252)],_0x5135f2[_0x33b2cb(0x106)],_0x5135f2[_0x33b2cb(0x245)],_0x5135f2[_0x33b2cb(0x155)],_0x5135f2[_0x33b2cb(0x1df)],_0x5135f2[_0x33b2cb(0x1bc)],_0x5135f2[_0x33b2cb(0x1c3)],_0x5135f2[_0x33b2cb(0x10a)],_0x5135f2[_0x33b2cb(0x23c)],_0x5135f2[_0x33b2cb(0x240)],_0x5135f2['UniverDrawing'],_0x5135f2[_0x33b2cb(0x17a)],_0x5135f2[_0x33b2cb(0x238)],_0x5135f2[_0x33b2cb(0x25b)],_0x5135f2['UniverNetwork'],_0x5135f2[_0x33b2cb(0x1a5)],_0x5135f2[_0x33b2cb(0x239)],_0x5135f2[_0x33b2cb(0x1e1)],_0x5135f2[_0x33b2cb(0x158)],_0x5135f2[_0x33b2cb(0x226)],_0x5135f2['UniverSheetsDrawing'],_0x5135f2[_0x33b2cb(0x1c0)],_0x5135f2[_0x33b2cb(0x25e)],_0x5135f2['UniverSheetsFilterUi'],_0x5135f2[_0x33b2cb(0x232)],_0x5135f2[_0x33b2cb(0x17c)],_0x5135f2['UniverSheetsHyperLink'],_0x5135f2[_0x33b2cb(0x1e0)],_0x5135f2[_0x33b2cb(0x1ce)],_0x5135f2[_0x33b2cb(0x169)],_0x5135f2['UniverSheetsUi'],_0x5135f2['UniverUi'],_0x5135f2['rxjs'],_0x5135f2[_0x33b2cb(0x12d)],_0x5135f2[_0x33b2cb(0x127)]));}(this,function(_0x3126a1,_0xbfd0f8,_0x587180,_0x59e3cd,_0x1dea36,_0x536328,_0x37ba05,_0x2987d7,_0x44f2ac,_0x195e49,_0x81f89e,_0x5cec6e,_0x29617e,_0x4ab6ab,_0x31f7fc,_0xbb287b,_0x5c70ac,_0x263c40,_0x5d5e62,_0x378e77,_0x1d9627,_0x1938c7,_0x3eea3c,_0x324b0b,_0x17b813,_0x4cd2c4,_0x1accce,_0x77e97a,_0x374ebd,_0xc2e7db,_0x258887,_0x1fbc1a,_0x3c1719,_0x42caff,_0x19e567,_0x79c72d,_0x7b0bd0,_0x2358fb,_0x52dc7d,_0x2861a4,_0x4876df,_0x2c91e1,_0x4f830f){const _0x4154e2=_0x1a8a;Object[_0x4154e2(0x1fc)](_0x3126a1,Symbol[_0x4154e2(0x249)],{'value':'Module'});let _0x15af09=_0x4154e2(0xfd);Symbol(_0x15af09);let _0xe4c960={};function _0x117621(_0x39385c){'@babel/helpers - typeof';const _0x4e56b7=_0x4154e2;return _0x117621=typeof Symbol==_0x4e56b7(0x1ad)&&typeof Symbol[_0x4e56b7(0x237)]=='symbol'?function(_0x596ffc){return typeof _0x596ffc;}:function(_0x42a175){const _0x4b0ec5=_0x4e56b7;return _0x42a175&&typeof Symbol==_0x4b0ec5(0x1ad)&&_0x42a175['constructor']===Symbol&&_0x42a175!==Symbol[_0x4b0ec5(0x1d0)]?_0x4b0ec5(0x224):typeof _0x42a175;},_0x117621(_0x39385c);}function _0x42c505(_0x4e7d6c,_0xab5669){const _0x9a0124=_0x4154e2;if(_0x117621(_0x4e7d6c)!=_0x9a0124(0x21c)||!_0x4e7d6c)return _0x4e7d6c;var _0x4a7524=_0x4e7d6c[Symbol[_0x9a0124(0x16d)]];if(_0x4a7524!==void 0x0){var _0x374a66=_0x4a7524[_0x9a0124(0x126)](_0x4e7d6c,_0xab5669||_0x9a0124(0x10c));if(_0x117621(_0x374a66)!='object')return _0x374a66;throw TypeError(_0x9a0124(0x246));}return(_0xab5669===_0x9a0124(0x177)?String:Number)(_0x4e7d6c);}function _0x57970f(_0x594058){const _0x54d3b7=_0x4154e2;var _0x474fe4=_0x42c505(_0x594058,_0x54d3b7(0x177));return _0x117621(_0x474fe4)=='symbol'?_0x474fe4:_0x474fe4+'';}function _0x3a41cb(_0x55ee54,_0x22f4e4,_0xd168d2){const _0x571b7b=_0x4154e2;return(_0x22f4e4=_0x57970f(_0x22f4e4))in _0x55ee54?Object[_0x571b7b(0x1fc)](_0x55ee54,_0x22f4e4,{'value':_0xd168d2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55ee54[_0x22f4e4]=_0xd168d2,_0x55ee54;}function _0x370fb4(_0x385129,_0x5a4c3f){return function(_0x2a4790,_0x26b98d){_0x5a4c3f(_0x2a4790,_0x26b98d,_0x385129);};}function _0x52ad88(_0x490f29,_0x2d33dc,_0x577b50,_0x2c408f){const _0xbdc656=_0x4154e2;var _0x3b6360=arguments[_0xbdc656(0x173)],_0x49da4c=_0x3b6360<0x3?_0x2d33dc:_0x2c408f===null?_0x2c408f=Object[_0xbdc656(0x201)](_0x2d33dc,_0x577b50):_0x2c408f,_0x9e2140;if(typeof Reflect==_0xbdc656(0x21c)&&typeof Reflect['decorate']=='function')_0x49da4c=Reflect['decorate'](_0x490f29,_0x2d33dc,_0x577b50,_0x2c408f);else{for(var _0x549815=_0x490f29['length']-0x1;_0x549815>=0x0;_0x549815--)(_0x9e2140=_0x490f29[_0x549815])&&(_0x49da4c=(_0x3b6360<0x3?_0x9e2140(_0x49da4c):_0x3b6360>0x3?_0x9e2140(_0x2d33dc,_0x577b50,_0x49da4c):_0x9e2140(_0x2d33dc,_0x577b50))||_0x49da4c);}return _0x3b6360>0x3&&_0x49da4c&&Object['defineProperty'](_0x2d33dc,_0x577b50,_0x49da4c),_0x49da4c;}let _0x4fd513='UNIVER_CONTAINER_ID',_0x54dc1e=_0x4154e2(0x24f),_0x15e7e6=class extends _0xbfd0f8[_0x4154e2(0x20b)]{constructor(_0x4912b3,_0x36971b,_0x3d1e0a,_0x4614b4,_0x2be722,_0x28f788,_0x51ff54,_0x9737a5,_0x4a1a7c,_0x306bdd){const _0x3e3227=_0x4154e2;super(),this[_0x3e3227(0x265)]=_0x4912b3,this[_0x3e3227(0x15e)]=_0x36971b,this[_0x3e3227(0x184)]=_0x3d1e0a,this['_commandService']=_0x4614b4,this[_0x3e3227(0x225)]=_0x2be722,this[_0x3e3227(0x243)]=_0x28f788,this[_0x3e3227(0x110)]=_0x51ff54,this['_dialogService']=_0x9737a5,this[_0x3e3227(0x263)]=_0x4a1a7c,this[_0x3e3227(0x1e2)]=_0x306bdd,_0x3a41cb(this,'_historyUniver$',new _0x4876df[(_0x3e3227(0x13a))](null)),_0x3a41cb(this,'historyUniver$',this[_0x3e3227(0x14c)][_0x3e3227(0x143)]()),_0x3a41cb(this,_0x3e3227(0x1f2),new _0xbfd0f8[(_0x3e3227(0x165))]()),_0x3a41cb(this,_0x3e3227(0x258),new Map()),_0x3a41cb(this,_0x3e3227(0x1e6),null),this[_0x3e3227(0x17e)]();}get[_0x4154e2(0x15c)](){const _0x279984=_0x4154e2;return this[_0x279984(0x14c)][_0x279984(0x212)];}[_0x4154e2(0x17e)](){const _0x2c76c2=_0x4154e2;this[_0x2c76c2(0x1dc)](),this[_0x2c76c2(0x136)]();}[_0x4154e2(0x1dc)](){const _0x5ef637=_0x4154e2;var _0xf6364d;let _0x5b399a=(_0xf6364d=this[_0x5ef637(0x184)][_0x5ef637(0x23a)](_0x5ef637(0x18e)))==null?_0x5ef637(0x11f):_0xf6364d,_0xf2c5c4=document[_0x5ef637(0x10f)](_0x5b399a);if(!_0xf2c5c4)return;let _0x47c32e=document['createElement'](_0x5ef637(0x138));_0x47c32e['id']=_0x54dc1e,_0x47c32e[_0x5ef637(0x25a)]['uComp']=_0x5ef637(0x20f),_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x1be)]=_0x5ef637(0x188),_0x47c32e[_0x5ef637(0x19a)]['top']='0',_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x1a9)]='0',_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x157)]='100%',_0x47c32e['style']['height']=_0x5ef637(0x153),_0x47c32e[_0x5ef637(0x19a)]['zIndex']='49',_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x25f)]=_0x5ef637(0x234),_0xf2c5c4[_0x5ef637(0x1ba)](_0x47c32e);}[_0x4154e2(0x136)](){const _0x46211c=_0x4154e2;[[_0x1938c7[_0x46211c(0x230)]],[_0x2861a4[_0x46211c(0x1e8)],{'container':_0x54dc1e,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2861a4[_0x46211c(0x1e7)],null]]}],[_0x3eea3c[_0x46211c(0x175)]],[_0x5d5e62[_0x46211c(0x1d1)],{'override':[[_0x5d5e62[_0x46211c(0x206)],null]]}],[_0x5c70ac[_0x46211c(0x22b)],{'hasScroll':!0x1}],[_0x263c40[_0x46211c(0x13d)]],[_0x7b0bd0[_0x46211c(0x1b7)]],[_0x587180[_0x46211c(0x213)],{'notExecuteFormula':!0x0}],[_0x52dc7d[_0x46211c(0x13e)]],[_0x3c1719[_0x46211c(0x10d)]],[_0x42caff[_0x46211c(0x1aa)]],[_0x59e3cd[_0x46211c(0xff)]],[_0x258887[_0x46211c(0x12e)]],[_0x1fbc1a[_0x46211c(0x178)]],[_0x17b813[_0x46211c(0x101)]],[_0x4cd2c4[_0x46211c(0x122)]],[_0x19e567['UniverSheetsHyperLinkPlugin']],[_0x79c72d['UniverSheetsHyperLinkUIPlugin']],[_0x31f7fc[_0x46211c(0x1db)]],[_0x1accce[_0x46211c(0x1bd)]],[_0x77e97a[_0x46211c(0x139)]],[_0x1d9627[_0x46211c(0x1ec)],{'notExecuteFormula':!0x0}],[_0x378e77[_0x46211c(0x1b3)]],[_0x374ebd[_0x46211c(0x163)]],[_0xc2e7db[_0x46211c(0x242)]],[_0x29617e['UniverSheetSparklinePlugin']],[_0x4ab6ab['UniverSheetSparklineUIPlugin']],[_0x2987d7['UniverSheetsChartPlugin']],[_0x44f2ac[_0x46211c(0x22f)]],[_0x81f89e[_0x46211c(0x1fd)]],[_0x5cec6e[_0x46211c(0x244)]],[_0x195e49[_0x46211c(0x11c)],{'notExecuteFormula':!0x0}],[_0x2358fb[_0x46211c(0x1d3)]]][_0x46211c(0x1a0)](([_0x4d0873,_0x18b2e0])=>this[_0x46211c(0x148)](_0x4d0873,_0x18b2e0));}['dispose'](){const _0x3e7990=_0x4154e2;super['dispose'](),this['unMountHistoryContent'](),this[_0x3e7990(0x258)]['clear']();}[_0x4154e2(0x148)](_0x174270,_0x34abbd,_0x4d51d6){const _0x2c9478=_0x4154e2;if(this[_0x2c9478(0x258)][_0x2c9478(0x193)](_0x174270[_0x2c9478(0x1c5)])&&!_0x4d51d6)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x174270[_0x2c9478(0x1c5)]+_0x2c9478(0x1e3));this[_0x2c9478(0x258)][_0x2c9478(0x1c6)](_0x174270[_0x2c9478(0x1c5)],[_0x174270,_0x34abbd]);}[_0x4154e2(0x1c2)](){const _0xf809af=_0x4154e2;return Array[_0xf809af(0x13c)](this['_pluginMap'][_0xf809af(0x13f)]());}['mountHistoryContent'](_0xb0acda,_0x27df54){const _0x17188a=_0x4154e2;let _0x5a29dd=document[_0x17188a(0x10f)](_0x54dc1e);_0x5a29dd&&(_0x5a29dd[_0x17188a(0x19a)][_0x17188a(0x25f)]=_0x17188a(0x104),this[_0x17188a(0x22a)](_0xb0acda,_0x54dc1e,_0x27df54));}['unMountHistoryContent'](){const _0x4e3bd3=_0x4154e2;var _0x4175aa;this[_0x4e3bd3(0x1f2)][_0x4e3bd3(0x1f1)](),(_0x4175aa=this['historyUniver'])==null||_0x4175aa[_0x4e3bd3(0x1f1)](),this['_historyUniver$'][_0x4e3bd3(0x257)](null);let _0x2a1e9c=document[_0x4e3bd3(0x10f)](_0x54dc1e);_0x2a1e9c&&(_0x2a1e9c[_0x4e3bd3(0x19a)][_0x4e3bd3(0x25f)]='none',this['_internalWebWorker']&&(this['_internalWebWorker'][_0x4e3bd3(0x227)](),this[_0x4e3bd3(0x1e6)]=null));}[_0x4154e2(0x22a)](_0xea371c,_0x7377c0,_0x5a072d){const _0x18ae54=_0x4154e2;var _0x26a7d6,_0x2d4a18,_0x30c8f3,_0x327d77,_0x3fc978;if(this[_0x18ae54(0x15c)])return;let _0x49d228=new _0xbfd0f8[(_0x18ae54(0x142))]({'locales':{[this[_0x18ae54(0x265)]['getCurrentLocale']()]:this['_localeService'][_0x18ae54(0x235)]()},'override':[[_0xbfd0f8['IAuthzIoService'],{'useClass':_0x1dea36[_0x18ae54(0x120)]}]]}),_0x3ca459=_0x49d228[_0x18ae54(0x192)]();this[_0x18ae54(0x18d)](this['_themeService']['darkMode$'][_0x18ae54(0x1a2)](_0x5370f4=>{const _0x34f991=_0x18ae54;_0x3ca459[_0x34f991(0x25c)](_0xbfd0f8[_0x34f991(0x190)])[_0x34f991(0x1b2)](_0x5370f4);})),this['disposeWithMe'](this[_0x18ae54(0x1e2)][_0x18ae54(0x195)][_0x18ae54(0x1a2)](_0x332dd7=>{const _0x2866a5=_0x18ae54;_0x3ca459[_0x2866a5(0x25c)](_0xbfd0f8[_0x2866a5(0x190)])[_0x2866a5(0x255)](_0x332dd7);})),_0x3ca459[_0x18ae54(0x25c)](_0xbfd0f8[_0x18ae54(0x1a7)])[_0x18ae54(0x24d)](this['_localeService'][_0x18ae54(0x1d8)]()),_0x3ca459['get'](_0xbfd0f8['IConfigService'])[_0x18ae54(0x16f)](_0x1dea36[_0x18ae54(0x11a)],this['_configService'][_0x18ae54(0x23a)](_0x1dea36[_0x18ae54(0x11a)]));let _0x5df6f7=this[_0x18ae54(0x184)][_0x18ae54(0x23a)](_0x37ba05[_0x18ae54(0x229)]);_0x5df6f7&&_0x49d228[_0x18ae54(0x148)](_0x37ba05[_0x18ae54(0x236)],{'license':_0x5df6f7['ls']});let _0x34d7a7=(_0x26a7d6=this[_0x18ae54(0x184)][_0x18ae54(0x23a)](_0x18ae54(0xfd)))==null?void 0x0:_0x26a7d6[_0x18ae54(0x22d)],_0x34c33c=!!_0x34d7a7;_0x34c33c&&(this['_internalWebWorker']=_0x34d7a7 instanceof Worker?_0x34d7a7:null,_0x49d228[_0x18ae54(0x148)](_0x324b0b[_0x18ae54(0x250)],{'workerURL':_0x34d7a7})),this[_0x18ae54(0x258)][_0x18ae54(0x1a0)](([_0xe5ac1d,_0x47934b])=>{const _0x1af196=_0x18ae54;_0x49d228[_0x1af196(0x148)](_0xe5ac1d,_0x47934b);}),_0x49d228[_0x18ae54(0x148)](_0x536328['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x2d4a18=this[_0x18ae54(0x184)]['getConfig'](_0x18ae54(0xfd)))==null?void 0x0:_0x2d4a18[_0x18ae54(0x10b)],'historyPanelComponentKey':(_0x30c8f3=this[_0x18ae54(0x184)]['getConfig'](_0x18ae54(0xfd)))==null?void 0x0:_0x30c8f3['historyPanelComponentKey'],'historyPanelHidden':(_0x327d77=this[_0x18ae54(0x184)][_0x18ae54(0x23a)]('edit-history-loader.config'))==null?void 0x0:_0x327d77[_0x18ae54(0x251)],'historyAIassistantEnabled':(_0x3fc978=this[_0x18ae54(0x184)][_0x18ae54(0x23a)](_0x18ae54(0xfd)))==null?void 0x0:_0x3fc978[_0x18ae54(0x186)]}),_0x3ca459[_0x18ae54(0x1ac)](_0x37903e=>{const _0x223723=_0x18ae54;this[_0x223723(0x202)](_0x37903e,_0xea371c);}),this[_0x18ae54(0x14c)][_0x18ae54(0x257)](_0x49d228);let _0xcf181a=_0x3ca459[_0x18ae54(0x25c)](_0x536328['HistoryManagerService']),_0x132736=this[_0x18ae54(0x198)](_0xea371c),_0x43a586=()=>{const _0x45e8cd=_0x18ae54;_0x5a072d?_0xcf181a[_0x45e8cd(0x107)](_0xea371c,_0x7377c0,_0x132736,_0x5a072d):_0xcf181a[_0x45e8cd(0x219)](_0xea371c,_0x7377c0,_0x132736);};if(this[_0x18ae54(0x225)][_0x18ae54(0x261)]({'content':this['_localeService']['t'](_0x18ae54(0x1cf)),'type':_0xbb287b[_0x18ae54(0x1ca)]['Loading']}),_0x34c33c)try{_0x3ca459['get'](_0x324b0b[_0x18ae54(0x205)])[_0x18ae54(0x16b)]()['then'](()=>{_0x43a586();});}catch{_0x43a586();}else _0x43a586();}[_0x4154e2(0x202)](_0x38033f,_0x294320){const _0x1b8cb1=_0x4154e2;let _0x39e313=_0x38033f[_0x1b8cb1(0x25c)](_0x536328[_0x1b8cb1(0x1d6)]);this['_disposableCollection'][_0x1b8cb1(0x221)](_0x39e313['status$'][_0x1b8cb1(0x1a2)](_0x44d2ae=>{const _0x5b6368=_0x1b8cb1;switch(_0x44d2ae){case _0x536328['HistoryModeStatus']['Entered']:this[_0x5b6368(0x174)]['closeAll'](),this[_0x5b6368(0x263)]['close']();break;case _0x536328['HistoryModeStatus'][_0x5b6368(0x215)]:this[_0x5b6368(0x1c7)][_0x5b6368(0x162)](_0x24e3f8['id']),this[_0x5b6368(0x1c9)]();break;case _0x536328['HistoryModeStatus'][_0x5b6368(0x247)]:this[_0x5b6368(0x1c9)](),this[_0x5b6368(0x225)][_0x5b6368(0x261)]({'content':this[_0x5b6368(0x265)]['t']('editHistory.panel.listFetchError'),'type':_0xbb287b[_0x5b6368(0x1ca)][_0x5b6368(0x247)],'duration':0xbb8});break;default:break;}})),this[_0x1b8cb1(0x1f2)][_0x1b8cb1(0x221)](_0x39e313[_0x1b8cb1(0x25d)]['subscribe'](async _0x47ca3f=>{const _0xbd3697=_0x1b8cb1;_0x47ca3f&&this[_0xbd3697(0x1c7)][_0xbd3697(0x162)](_0x59e3cd['RevertRevisionMutation']['id'],{'unitId':_0x294320,'revision':_0x47ca3f});}));}['_checkCanRevert'](_0x1fa8c2){const _0xad3dbd=_0x4154e2;let _0x506b59=this[_0xad3dbd(0x15e)][_0xad3dbd(0x112)](_0x1fa8c2)[_0xad3dbd(0x1e9)]()['map'](_0x55f18c=>_0x55f18c[_0xad3dbd(0x1fe)]()),_0x245496=new _0x587180[(_0xad3dbd(0x1b5))](_0x1fa8c2)['id'],_0x40d6a8=_0x506b59[_0xad3dbd(0x1de)](_0x159d23=>new _0x587180[(_0xad3dbd(0x123))](_0x1fa8c2,_0x159d23)['id']),_0x438d85=_0x506b59[_0xad3dbd(0x1de)](_0x5f1237=>this[_0xad3dbd(0x110)][_0xad3dbd(0x11d)](_0x1fa8c2,_0x5f1237)[_0xad3dbd(0x1de)](_0x2a4884=>new _0x587180['RangeProtectionPermissionEditPoint'](_0x1fa8c2,_0x5f1237,_0x2a4884[_0xad3dbd(0x18c)])['id']))[_0xad3dbd(0x1ff)](),_0x4ddf53=new _0x587180['WorkbookRecoverHistoryPermission'](_0x1fa8c2)['id'];return this[_0xad3dbd(0x243)][_0xad3dbd(0x182)]([_0x245496,..._0x40d6a8,..._0x438d85,_0x4ddf53])[_0xad3dbd(0xfe)](_0x2ab741=>!!_0x2ab741[_0xad3dbd(0x212)]);}};_0x15e7e6=_0x52ad88([_0x370fb4(0x0,(0x0,_0xbfd0f8['Inject'])(_0xbfd0f8[_0x4154e2(0x1a7)])),_0x370fb4(0x1,_0xbfd0f8[_0x4154e2(0x197)]),_0x370fb4(0x2,_0xbfd0f8['IConfigService']),_0x370fb4(0x3,_0xbfd0f8[_0x4154e2(0x1fa)]),_0x370fb4(0x4,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x5,_0xbfd0f8['IPermissionService']),_0x370fb4(0x6,(0x0,_0xbfd0f8['Inject'])(_0x587180[_0x4154e2(0x241)])),_0x370fb4(0x7,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x1e7)])),_0x370fb4(0x8,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4['ISidebarService'])),_0x370fb4(0x9,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x190)]))],_0x15e7e6);let _0x3a1410={'id':'univer.operation.toggle-edit-history','type':_0xbfd0f8[_0x4154e2(0x20a)][_0x4154e2(0x1b6)],'handler':_0x3af3a7=>{const _0x29530c=_0x4154e2;let _0x55017f=_0x3af3a7['get'](_0x15e7e6),{unitId:_0x3e4686}=(0x0,_0x587180['getSheetCommandTarget'])(_0x3af3a7['get'](_0xbfd0f8[_0x29530c(0x197)]))||{};return _0x3e4686?(_0x55017f[_0x29530c(0x22c)](_0x3e4686),!0x0):!0x1;}},_0x24e3f8={'id':_0x4154e2(0x1ea),'type':_0xbfd0f8[_0x4154e2(0x20a)][_0x4154e2(0x1b6)],'handler':()=>!0x0};var _0x35cf83=_0x4154e2(0x218),_0x5e42a6=_0x4154e2(0x12b);function _0x370b4e({ref:_0x30dfd7,..._0x454765}){const _0x6f91ca=_0x4154e2;let {icon:_0x34e7e1,id:_0x1445f4,className:_0x490a41,extend:_0xbd8d1b,..._0x4daf1f}=_0x454765,_0xcfd276=(_0x6f91ca(0x102)+_0x1445f4+'\x20'+(_0x490a41||''))[_0x6f91ca(0x1ae)](),_0x1f9571=(0x0,_0x4f830f[_0x6f91ca(0x19f)])('_'+_0x33dbb6());return _0x103655(_0x34e7e1,''+_0x1445f4,{'defIds':_0x34e7e1[_0x6f91ca(0x19c)],'idSuffix':_0x1f9571[_0x6f91ca(0x13b)]},{'ref':_0x30dfd7,'className':_0xcfd276,..._0x4daf1f},_0xbd8d1b);}function _0x103655(_0x5bdcca,_0x54f43a,_0x5d2f13,_0x41fa7a,_0x3dd6ae){const _0x5ade90=_0x4154e2;return(0x0,_0x4f830f['createElement'])(_0x5bdcca[_0x5ade90(0x264)],{'key':_0x54f43a,..._0x292d58(_0x5bdcca,_0x5d2f13,_0x3dd6ae),..._0x41fa7a},(_0x1c7a97(_0x5bdcca,_0x5d2f13)['children']||[])[_0x5ade90(0x1de)]((_0x1d9f65,_0x32388c)=>_0x103655(_0x1d9f65,_0x54f43a+'-'+_0x5bdcca['tag']+'-'+_0x32388c,_0x5d2f13,void 0x0,_0x3dd6ae)));}function _0x292d58(_0x3f0f22,_0x23da3b,_0x2f79da){const _0x509398=_0x4154e2;let _0x1b893f={..._0x3f0f22['attrs']};_0x2f79da!=null&&_0x2f79da[_0x509398(0x214)]&&_0x1b893f[_0x509398(0x152)]===_0x509398(0x214)&&(_0x1b893f[_0x509398(0x152)]=_0x2f79da['colorChannel1']),_0x3f0f22['tag']==='mask'&&_0x1b893f['id']&&(_0x1b893f['id']+=_0x23da3b[_0x509398(0x1cd)]),Object['entries'](_0x1b893f)['forEach'](([_0x56374d,_0x14cd60])=>{const _0x1f55d4=_0x509398;_0x56374d===_0x1f55d4(0x14a)&&typeof _0x14cd60=='string'&&(_0x1b893f[_0x56374d]=_0x14cd60[_0x1f55d4(0x111)](/url\(#(.*)\)/,_0x1f55d4(0x141)+_0x23da3b[_0x1f55d4(0x1cd)]+')'));});let {defIds:_0x4b54e2}=_0x23da3b;return!_0x4b54e2||_0x4b54e2[_0x509398(0x173)]===0x0?_0x1b893f:(_0x3f0f22['tag']===_0x509398(0x19b)&&_0x1b893f[_0x509398(0x18f)]&&(_0x1b893f[_0x509398(0x18f)]+=_0x23da3b[_0x509398(0x1cd)]),Object['entries'](_0x1b893f)[_0x509398(0x1a0)](([_0x3fac93,_0x2fc3f9])=>{const _0x2f4b93=_0x509398;typeof _0x2fc3f9=='string'&&(_0x1b893f[_0x3fac93]=_0x2fc3f9[_0x2f4b93(0x111)](/url\(#(.*)\)/,_0x2f4b93(0x141)+_0x23da3b[_0x2f4b93(0x1cd)]+')'));}),_0x1b893f);}function _0x1c7a97(_0x5bca17,_0x155ce0){const _0xfbbd59=_0x4154e2;var _0x190d6;let {defIds:_0x12caa7}=_0x155ce0;return!_0x12caa7||_0x12caa7[_0xfbbd59(0x173)]===0x0?_0x5bca17:_0x5bca17[_0xfbbd59(0x264)]===_0xfbbd59(0x256)&&(_0x190d6=_0x5bca17['children'])!=null&&_0x190d6['length']?{..._0x5bca17,'children':_0x5bca17[_0xfbbd59(0x18b)][_0xfbbd59(0x1de)](_0x269011=>typeof _0x269011[_0xfbbd59(0x131)]['id']==_0xfbbd59(0x177)&&_0x12caa7&&_0x12caa7[_0xfbbd59(0x151)](_0x269011[_0xfbbd59(0x131)]['id'])?{..._0x269011,'attrs':{..._0x269011[_0xfbbd59(0x131)],'id':_0x269011[_0xfbbd59(0x131)]['id']+_0x155ce0[_0xfbbd59(0x1cd)]}}:_0x269011)}:_0x5bca17;}function _0x33dbb6(){const _0x403bfa=_0x4154e2;return Math[_0x403bfa(0x23d)]()['toString'](0x24)[_0x403bfa(0x1f4)](0x2,0x8);}_0x370b4e[_0x4154e2(0x1cb)]=_0x4154e2(0x22e);let _0x4abb18={'tag':_0x4154e2(0x115),'attrs':{'xmlns':_0x4154e2(0x134),'fill':_0x4154e2(0x234),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x4154e2(0x1b1),'clipPath':_0x4154e2(0x207)},'children':[{'tag':_0x4154e2(0x15b),'attrs':{'d':_0x4154e2(0x24e)}},{'tag':_0x4154e2(0x15b),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4154e2(0x1f8),'attrs':{'id':_0x4154e2(0x1d7)},'children':[{'tag':_0x4154e2(0x15b),'attrs':{'fill':'white','d':_0x4154e2(0x1d2)}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x34e793=(0x0,_0x4f830f[_0x4154e2(0x118)])(function(_0x12f20a,_0x1233ff){const _0x5d81d6=_0x4154e2;return(0x0,_0x4f830f[_0x5d81d6(0x132)])(_0x370b4e,Object[_0x5d81d6(0x1cc)]({},_0x12f20a,{'id':_0x5d81d6(0x135),'ref':_0x1233ff,'icon':_0x4abb18}));});_0x34e793[_0x4154e2(0x1cb)]=_0x4154e2(0x259);let _0x59b935=function(_0x3de67a){const _0x2c8c72=_0x4154e2;return _0x3de67a[_0x3de67a['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x3de67a[_0x3de67a['UNIVER_DOC']=0x1]=_0x2c8c72(0x150),_0x3de67a[_0x3de67a[_0x2c8c72(0x159)]=0x2]='UNIVER_SHEET',_0x3de67a[_0x3de67a[_0x2c8c72(0x1a8)]=0x3]=_0x2c8c72(0x1a8),_0x3de67a[_0x3de67a[_0x2c8c72(0x1bb)]=0x4]=_0x2c8c72(0x1bb),_0x3de67a[_0x3de67a[_0x2c8c72(0x23b)]=-0x1]=_0x2c8c72(0x23b),_0x3de67a;}({});function _0x312a65(_0x34a440){const _0x4ba965=_0x4154e2;return{'id':_0x3a1410['id'],'type':_0x2861a4[_0x4ba965(0x11e)][_0x4ba965(0x185)],'icon':'HistoryIcon','tooltip':_0x4ba965(0x15d),'hidden$':(0x0,_0x2861a4[_0x4ba965(0x1bf)])(_0x34a440,_0xbfd0f8[_0x4ba965(0x179)][_0x4ba965(0x159)]),'disabled$':(0x0,_0x52dc7d[_0x4ba965(0x24b)])(_0x34a440,{'workbookTypes':[_0x587180['WorkbookEditablePermission'],_0x587180[_0x4ba965(0x156)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0xbdfaef={[_0x2861a4[_0x4154e2(0x1f0)]['OTHERS']]:{[_0x3a1410['id']]:{'order':0.2,'menuItemFactory':_0x312a65}}},_0x47786f=class extends _0xbfd0f8[_0x4154e2(0x17d)]{constructor(_0x2a74be,_0x258c3d,_0x243525,_0x10f5b7,_0x309feb,_0x171a73,_0x38a973,_0x138560,_0x4dc924,_0x45edb5,_0x4c4691){const _0x1e7bd4=_0x4154e2;super(),this['_commandService']=_0x2a74be,this[_0x1e7bd4(0x248)]=_0x258c3d,this[_0x1e7bd4(0x231)]=_0x243525,this[_0x1e7bd4(0x168)]=_0x10f5b7,this[_0x1e7bd4(0x265)]=_0x309feb,this[_0x1e7bd4(0x225)]=_0x171a73,this[_0x1e7bd4(0x154)]=_0x38a973,this[_0x1e7bd4(0x149)]=_0x138560,this['_dataLoaderService']=_0x4dc924,this[_0x1e7bd4(0x15e)]=_0x45edb5,this[_0x1e7bd4(0x1ab)]=_0x4c4691,_0x3a41cb(this,_0x1e7bd4(0x19d),null),this[_0x1e7bd4(0x17e)]();}['_init'](){const _0x5c82c3=_0x4154e2;[_0x3a1410,_0x24e3f8][_0x5c82c3(0x1a0)](_0x4dceda=>this[_0x5c82c3(0x18d)]((0x0,_0xbfd0f8[_0x5c82c3(0x222)])(this[_0x5c82c3(0x1c7)][_0x5c82c3(0x1f9)](_0x4dceda)))),this[_0x5c82c3(0x18d)](this[_0x5c82c3(0x231)][_0x5c82c3(0x108)]('HistoryIcon',_0x34e793)),this[_0x5c82c3(0x248)]['mergeMenu'](_0xbdfaef),this['disposeWithMe'](this[_0x5c82c3(0x1c7)][_0x5c82c3(0x183)](async(_0x155900,_0x34361d)=>{const _0x315278=_0x5c82c3;if(_0x155900['id']===_0x59e3cd[_0x315278(0x145)]['id']){let {unitId:_0x550b2d}=_0x155900[_0x315278(0x17b)];this[_0x315278(0x225)]['show']({'content':this['_localeService']['t'](_0x315278(0x19e)),'type':_0xbb287b[_0x315278(0x1ca)][_0x315278(0x12f)],'duration':0x1388});let _0x5cd6c7=this[_0x315278(0x154)][_0x315278(0x1d9)](_0x550b2d);_0x34361d!=null&&_0x34361d[_0x315278(0x15f)]?this[_0x315278(0x119)](_0x5cd6c7,async()=>(setTimeout(()=>window['location'][_0x315278(0x189)]()),!0x0),!0x0):this[_0x315278(0x119)](_0x5cd6c7,async()=>{const _0x5831b9=_0x315278;let _0x18d815=this[_0x5831b9(0x15e)]['getCurrentUnitOfType'](_0x59b935[_0x5831b9(0x159)]),_0x53416d=_0x18d815==null?void 0x0:_0x18d815['getActiveSheet']();if(!_0x53416d)return!0x1;this[_0x5831b9(0x15e)]['disposeUnit'](_0x550b2d);let _0x39e53b=await this[_0x5831b9(0x196)][_0x5831b9(0x14d)](_0x550b2d,_0x59b935[_0x5831b9(0x159)]);return _0x39e53b&&_0x39e53b instanceof _0xbfd0f8[_0x5831b9(0x1ed)]?(await this[_0x5831b9(0x23e)](_0x39e53b,_0x53416d[_0x5831b9(0x1fe)]()),!0x0):!0x1;});}}));}[_0x4154e2(0x119)](_0x154a50,_0x2faad6,_0x5119c1=!0x1){const _0x460793=_0x4154e2;let _0x18ba70=(0x0,_0x4876df[_0x460793(0x216)])([_0x154a50[_0x460793(0x16e)]['event$'],_0x154a50[_0x460793(0x105)]])['subscribe'](async([_0x26efff,_0x1c731a])=>{const _0x4946d1=_0x460793;if(_0x26efff[_0x4946d1(0x203)]===_0x59e3cd[_0x4946d1(0x15a)][_0x4946d1(0x11b)]&&(_0x1c731a==null?void 0x0:_0x1c731a[_0x4946d1(0x128)])===_0x1dea36['CollaborationStatus'][_0x4946d1(0x17f)]&&_0x26efff[_0x4946d1(0x147)][_0x4946d1(0x176)][_0x4946d1(0x171)](_0x2454a9=>_0x2454a9['id']===_0x59e3cd[_0x4946d1(0x145)]['id'])&&await _0x2faad6()){var _0x418ceb;this[_0x4946d1(0x168)][_0x4946d1(0x1c9)](),_0x18ba70[_0x4946d1(0x187)](),this[_0x4946d1(0x19d)]&&clearTimeout(this[_0x4946d1(0x19d)]),await((_0x418ceb=this[_0x4946d1(0x149)])==null?void 0x0:_0x418ceb[_0x4946d1(0x21a)]()),this[_0x4946d1(0x225)]['removeAll']();}});_0x5119c1&&(this[_0x460793(0x19d)]=setTimeout(()=>{const _0x2ad5c4=_0x460793;_0x18ba70[_0x2ad5c4(0x187)](),this[_0x2ad5c4(0x225)][_0x2ad5c4(0x261)]({'content':this[_0x2ad5c4(0x265)]['t']('editHistory.panel.revertFailed'),'type':_0xbb287b['MessageType'][_0x2ad5c4(0x247)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x3f8d63,_0x29970b){const _0x508219=_0x4154e2;await this['_updateSubUnitFromURLParams'](_0x3f8d63,_0x29970b),_0x3f8d63[_0x508219(0x1d4)][_0x508219(0x124)]((0x0,_0x4876df['takeUntil'])(this[_0x508219(0x1c8)]))[_0x508219(0x1a2)](_0x2d769c=>{const _0x18162b=_0x508219;_0x2d769c&&this[_0x18162b(0x24a)](_0x2d769c);}),this[_0x508219(0x1ab)][_0x508219(0x21e)][_0x508219(0x124)]((0x0,_0x4876df['takeUntil'])(this[_0x508219(0x1c8)]))[_0x508219(0x1a2)](()=>this[_0x508219(0x129)](_0x3f8d63,_0x29970b));}[_0x4154e2(0x24a)](_0x1b5d08,_0x1ffb25=!0x1){const _0x35d947=_0x4154e2;let _0x2702df=this[_0x35d947(0x1ab)][_0x35d947(0x20c)]('subunit');_0x1b5d08[_0x35d947(0x1fe)]()!==_0x2702df&&this[_0x35d947(0x1ab)]['setParam'](_0x35d947(0x1f5),_0x1b5d08['getSheetId'](),_0x1ffb25);}async[_0x4154e2(0x129)](_0xc4c313,_0x1fe95f){const _0x582b3e=_0x4154e2;var _0x5ccdaa;if(!_0x1fe95f||!_0xc4c313[_0x582b3e(0x14b)](_0x1fe95f)){let _0x2f0fcf=_0xc4c313[_0x582b3e(0x208)]()[0x0],_0x2e3f00=_0xc4c313[_0x582b3e(0x14b)](_0x2f0fcf);if(!_0x2e3f00)return;this[_0x582b3e(0x24a)](_0x2e3f00,!0x0),await this['_commandService'][_0x582b3e(0x162)](_0x587180[_0x582b3e(0x1b4)]['id'],{'unitId':_0xc4c313[_0x582b3e(0x1b8)](),'subUnitId':_0x2f0fcf});return;}((_0x5ccdaa=_0xc4c313[_0x582b3e(0x116)]())==null?void 0x0:_0x5ccdaa[_0x582b3e(0x1fe)]())!==_0x1fe95f&&await this[_0x582b3e(0x1c7)][_0x582b3e(0x162)](_0x587180[_0x582b3e(0x1b4)]['id'],{'unitId':_0xc4c313[_0x582b3e(0x1b8)](),'subUnitId':_0x1fe95f});}};_0x47786f=_0x52ad88([_0x370fb4(0x0,_0xbfd0f8[_0x4154e2(0x1fa)]),_0x370fb4(0x1,_0x2861a4['IMenuManagerService']),_0x370fb4(0x2,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x10e)])),_0x370fb4(0x3,(0x0,_0xbfd0f8['Inject'])(_0x15e7e6)),_0x370fb4(0x4,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1a7)])),_0x370fb4(0x5,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x6,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x1dea36[_0x4154e2(0x21d)])),_0x370fb4(0x7,_0x1dea36[_0x4154e2(0x1af)]),_0x370fb4(0x8,(0x0,_0xbfd0f8['Inject'])(_0x1dea36[_0x4154e2(0x210)])),_0x370fb4(0x9,_0xbfd0f8['IUniverInstanceService']),_0x370fb4(0xa,_0x2c91e1['IURLService'])],_0x47786f);let _0x49d995=_0x4154e2(0x194),_0x21f1d9=class extends _0xbfd0f8[_0x4154e2(0x20b)]{constructor(_0x52a22f,_0x34decb,_0x564818,_0x497bfd,_0x40358f,_0x490ea0,_0x57c7ca,_0x556695,_0x1ffddc,_0x4c69fb){const _0x28145d=_0x4154e2;super(),this['_localeService']=_0x52a22f,this[_0x28145d(0x15e)]=_0x34decb,this[_0x28145d(0x184)]=_0x564818,this[_0x28145d(0x1c7)]=_0x497bfd,this['_messageService']=_0x40358f,this[_0x28145d(0x243)]=_0x490ea0,this['_selectionProtectionRuleModel']=_0x57c7ca,this[_0x28145d(0x174)]=_0x556695,this[_0x28145d(0x263)]=_0x1ffddc,this[_0x28145d(0x1e2)]=_0x4c69fb,_0x3a41cb(this,_0x28145d(0x14c),new _0x4876df[(_0x28145d(0x13a))](null)),_0x3a41cb(this,_0x28145d(0x103),this[_0x28145d(0x14c)][_0x28145d(0x143)]()),_0x3a41cb(this,_0x28145d(0x1f2),new _0xbfd0f8['DisposableCollection']()),_0x3a41cb(this,_0x28145d(0x258),new Map()),_0x3a41cb(this,'_internalWebWorker',null),this[_0x28145d(0x17e)]();}get[_0x4154e2(0x15c)](){const _0x2d1ead=_0x4154e2;return this[_0x2d1ead(0x14c)][_0x2d1ead(0x212)];}[_0x4154e2(0x17e)](){const _0x298d57=_0x4154e2;this[_0x298d57(0x1dc)](),this[_0x298d57(0x136)]();}[_0x4154e2(0x1dc)](){const _0x11e32a=_0x4154e2;var _0x593e12;let _0x1ce903=(_0x593e12=this[_0x11e32a(0x184)][_0x11e32a(0x23a)](_0x11e32a(0x18e)))==null?_0x11e32a(0x11f):_0x593e12,_0x55125e=document[_0x11e32a(0x10f)](_0x1ce903);if(!_0x55125e)return;let _0x548822=document[_0x11e32a(0x132)](_0x11e32a(0x138));_0x548822['id']=_0x49d995,_0x548822[_0x11e32a(0x25a)][_0x11e32a(0x1a6)]=_0x11e32a(0x20f),_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x1be)]='absolute',_0x548822[_0x11e32a(0x19a)]['top']='0',_0x548822[_0x11e32a(0x19a)]['left']='0',_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x157)]=_0x11e32a(0x153),_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x1ee)]=_0x11e32a(0x153),_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x191)]='49',_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x25f)]=_0x11e32a(0x234),_0x55125e[_0x11e32a(0x1ba)](_0x548822);}[_0x4154e2(0x136)](){const _0x1c45a4=_0x4154e2;[[_0x1938c7[_0x1c45a4(0x230)]],[_0x2861a4['UniverMobileUIPlugin'],{'container':_0x49d995,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2861a4[_0x1c45a4(0x1e7)],null]]}],[_0x3eea3c['UniverNetworkPlugin']],[_0x5d5e62[_0x1c45a4(0x1d1)],{'override':[[_0x5d5e62[_0x1c45a4(0x206)],null]]}],[_0x5c70ac[_0x1c45a4(0x22b)],{'hasScroll':!0x1}],[_0x263c40[_0x1c45a4(0x13d)]],[_0x7b0bd0[_0x1c45a4(0x1b7)]],[_0x587180[_0x1c45a4(0x213)],{'notExecuteFormula':!0x0}],[_0x52dc7d[_0x1c45a4(0x21b)]],[_0x3c1719[_0x1c45a4(0x10d)]],[_0x42caff['UniverSheetsFormulaUIPlugin']],[_0x59e3cd[_0x1c45a4(0xff)]],[_0x258887[_0x1c45a4(0x12e)]],[_0x17b813['UniverSheetsConditionalFormattingPlugin']],[_0x19e567['UniverSheetsHyperLinkPlugin']],[_0x79c72d[_0x1c45a4(0x181)]],[_0x31f7fc[_0x1c45a4(0x1db)]],[_0x1accce[_0x1c45a4(0x1bd)]],[_0x77e97a[_0x1c45a4(0xfc)]],[_0x1d9627[_0x1c45a4(0x1ec)],{'notExecuteFormula':!0x0}],[_0x378e77[_0x1c45a4(0x1b3)]],[_0x374ebd[_0x1c45a4(0x163)]],[_0xc2e7db[_0x1c45a4(0x242)]],[_0x29617e['UniverSheetSparklinePlugin']],[_0x4ab6ab[_0x1c45a4(0x1a3)]],[_0x2987d7['UniverSheetsChartPlugin']],[_0x44f2ac[_0x1c45a4(0x22f)]],[_0x81f89e[_0x1c45a4(0x1fd)]],[_0x5cec6e[_0x1c45a4(0x244)]],[_0x195e49[_0x1c45a4(0x11c)],{'notExecuteFormula':!0x0}],[_0x2358fb['UniverSheetsTablePlugin']]][_0x1c45a4(0x1a0)](([_0x455cbc,_0x4cd7e0])=>this[_0x1c45a4(0x148)](_0x455cbc,_0x4cd7e0));}['dispose'](){const _0x23f038=_0x4154e2;super[_0x23f038(0x1f1)](),this[_0x23f038(0x1c9)](),this[_0x23f038(0x258)][_0x23f038(0x223)]();}[_0x4154e2(0x148)](_0xf6d2fe,_0x4eeb36,_0x49281e){const _0x562225=_0x4154e2;if(this[_0x562225(0x258)][_0x562225(0x193)](_0xf6d2fe[_0x562225(0x1c5)])&&!_0x49281e)throw Error(_0x562225(0x161)+_0xf6d2fe[_0x562225(0x1c5)]+_0x562225(0x1e3));this['_pluginMap'][_0x562225(0x1c6)](_0xf6d2fe[_0x562225(0x1c5)],[_0xf6d2fe,_0x4eeb36]);}[_0x4154e2(0x1c2)](){const _0x3b78d8=_0x4154e2;return Array[_0x3b78d8(0x13c)](this['_pluginMap'][_0x3b78d8(0x13f)]());}['mountHistoryContent'](_0x337ecb,_0x3e3f68){const _0x349056=_0x4154e2;let _0x3ab0b3=document[_0x349056(0x10f)](_0x49d995);_0x3ab0b3&&(_0x3ab0b3[_0x349056(0x19a)][_0x349056(0x25f)]=_0x349056(0x104),this[_0x349056(0x22a)](_0x337ecb,_0x49d995,_0x3e3f68));}[_0x4154e2(0x1c9)](){const _0x315589=_0x4154e2;var _0x194e2d;this[_0x315589(0x1f2)][_0x315589(0x1f1)](),(_0x194e2d=this[_0x315589(0x15c)])==null||_0x194e2d['dispose'](),this[_0x315589(0x14c)]['next'](null);let _0x1c9a84=document['getElementById'](_0x49d995);_0x1c9a84&&(_0x1c9a84[_0x315589(0x19a)][_0x315589(0x25f)]='none',this['_internalWebWorker']&&(this[_0x315589(0x1e6)][_0x315589(0x227)](),this[_0x315589(0x1e6)]=null));}['_initUniver'](_0x24f06b,_0x578f5a,_0x252768){const _0x32ca31=_0x4154e2;var _0x1749a7,_0x4afd68,_0x58e349,_0x15687a;if(this[_0x32ca31(0x15c)])return;let _0x5b4078=new _0xbfd0f8[(_0x32ca31(0x142))]({'locales':{[this['_localeService'][_0x32ca31(0x1d8)]()]:this['_localeService'][_0x32ca31(0x235)]()},'override':[[_0xbfd0f8[_0x32ca31(0x211)],{'useClass':_0x1dea36[_0x32ca31(0x120)]}]]}),_0x215f1f=_0x5b4078[_0x32ca31(0x192)]();this[_0x32ca31(0x18d)](this['_themeService'][_0x32ca31(0x164)][_0x32ca31(0x1a2)](_0x5e1e4f=>{const _0x4dd1fa=_0x32ca31;_0x215f1f[_0x4dd1fa(0x25c)](_0xbfd0f8['ThemeService'])[_0x4dd1fa(0x1b2)](_0x5e1e4f);})),this[_0x32ca31(0x18d)](this[_0x32ca31(0x1e2)][_0x32ca31(0x195)][_0x32ca31(0x1a2)](_0x3c61bb=>{const _0x1f112c=_0x32ca31;_0x215f1f[_0x1f112c(0x25c)](_0xbfd0f8['ThemeService'])[_0x1f112c(0x255)](_0x3c61bb);})),_0x215f1f[_0x32ca31(0x25c)](_0xbfd0f8[_0x32ca31(0x1a7)])[_0x32ca31(0x24d)](this[_0x32ca31(0x265)][_0x32ca31(0x1d8)]()),_0x215f1f['get'](_0xbfd0f8[_0x32ca31(0x23f)])[_0x32ca31(0x16f)](_0x1dea36[_0x32ca31(0x11a)],this[_0x32ca31(0x184)][_0x32ca31(0x23a)](_0x1dea36[_0x32ca31(0x11a)]));let _0x268e31=this['_configService'][_0x32ca31(0x23a)](_0x37ba05['LS_CONFIG_KEY']);_0x268e31&&_0x5b4078[_0x32ca31(0x148)](_0x37ba05[_0x32ca31(0x236)],{'license':_0x268e31['ls']});let _0x3d4266=(_0x1749a7=this['_configService'][_0x32ca31(0x23a)](_0x32ca31(0xfd)))==null?void 0x0:_0x1749a7[_0x32ca31(0x22d)],_0x5234a9=!!_0x3d4266;_0x5234a9&&(this[_0x32ca31(0x1e6)]=_0x3d4266 instanceof Worker?_0x3d4266:null,_0x5b4078[_0x32ca31(0x148)](_0x324b0b['UniverRPCMainThreadPlugin'],{'workerURL':_0x3d4266})),this[_0x32ca31(0x258)][_0x32ca31(0x1a0)](([_0x132a67,_0x32d276])=>{const _0x2fafca=_0x32ca31;_0x5b4078[_0x2fafca(0x148)](_0x132a67,_0x32d276);}),_0x5b4078[_0x32ca31(0x148)](_0x536328['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x4afd68=this[_0x32ca31(0x184)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x4afd68[_0x32ca31(0x10b)],'historyPanelComponentKey':(_0x58e349=this[_0x32ca31(0x184)]['getConfig'](_0x32ca31(0xfd)))==null?void 0x0:_0x58e349['historyPanelComponentKey'],'historyPanelHidden':(_0x15687a=this[_0x32ca31(0x184)][_0x32ca31(0x23a)]('edit-history-loader.config'))==null?void 0x0:_0x15687a[_0x32ca31(0x251)]}),_0x215f1f[_0x32ca31(0x1ac)](_0x275829=>{const _0x5f02b1=_0x32ca31;this[_0x5f02b1(0x202)](_0x275829,_0x24f06b);}),this[_0x32ca31(0x14c)][_0x32ca31(0x257)](_0x5b4078);let _0x3818d2=_0x215f1f[_0x32ca31(0x25c)](_0x536328[_0x32ca31(0x1d6)]),_0x328a8a=this[_0x32ca31(0x198)](_0x24f06b),_0x4095af=()=>{const _0x55350d=_0x32ca31;_0x252768?_0x3818d2[_0x55350d(0x107)](_0x24f06b,_0x578f5a,_0x328a8a,_0x252768):_0x3818d2[_0x55350d(0x219)](_0x24f06b,_0x578f5a,_0x328a8a);};if(this[_0x32ca31(0x225)][_0x32ca31(0x261)]({'content':this[_0x32ca31(0x265)]['t'](_0x32ca31(0x1cf)),'type':_0xbb287b[_0x32ca31(0x1ca)][_0x32ca31(0x12f)]}),_0x5234a9)try{_0x215f1f[_0x32ca31(0x25c)](_0x324b0b[_0x32ca31(0x205)])['whenReady']()[_0x32ca31(0x109)](()=>{_0x4095af();});}catch{_0x4095af();}else _0x4095af();}[_0x4154e2(0x202)](_0x3e2214,_0x367a95){const _0x5e38bd=_0x4154e2;let _0x475f09=_0x3e2214[_0x5e38bd(0x25c)](_0x536328[_0x5e38bd(0x1d6)]);this[_0x5e38bd(0x1f2)]['add'](_0x475f09[_0x5e38bd(0x199)][_0x5e38bd(0x1a2)](_0x4b83cf=>{const _0x23c178=_0x5e38bd;switch(_0x4b83cf){case _0x536328[_0x23c178(0x137)]['Entered']:this[_0x23c178(0x174)]['closeAll'](),this['_sidebarService'][_0x23c178(0x1d5)]();break;case _0x536328['HistoryModeStatus']['Exited']:this[_0x23c178(0x1c7)][_0x23c178(0x162)](_0x24e3f8['id']),this[_0x23c178(0x1c9)]();break;case _0x536328['HistoryModeStatus'][_0x23c178(0x247)]:this[_0x23c178(0x1c9)](),this[_0x23c178(0x225)][_0x23c178(0x261)]({'content':this[_0x23c178(0x265)]['t'](_0x23c178(0x200)),'type':_0xbb287b['MessageType'][_0x23c178(0x247)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x475f09[_0x5e38bd(0x25d)]['subscribe'](async _0x4dfda7=>{const _0xa91789=_0x5e38bd;_0x4dfda7&&this['_commandService'][_0xa91789(0x162)](_0x59e3cd[_0xa91789(0x145)]['id'],{'unitId':_0x367a95,'revision':_0x4dfda7});}));}[_0x4154e2(0x198)](_0x382432){const _0x291f83=_0x4154e2;let _0x244e57=this[_0x291f83(0x15e)]['getUnit'](_0x382432)[_0x291f83(0x1e9)]()['map'](_0x2029eb=>_0x2029eb['getSheetId']()),_0x43dbef=new _0x587180[(_0x291f83(0x1b5))](_0x382432)['id'],_0x433d5e=_0x244e57[_0x291f83(0x1de)](_0x4a299f=>new _0x587180[(_0x291f83(0x123))](_0x382432,_0x4a299f)['id']),_0x4f6441=_0x244e57[_0x291f83(0x1de)](_0x180461=>this[_0x291f83(0x110)][_0x291f83(0x11d)](_0x382432,_0x180461)[_0x291f83(0x1de)](_0x21b61f=>new _0x587180[(_0x291f83(0x217))](_0x382432,_0x180461,_0x21b61f[_0x291f83(0x18c)])['id']))[_0x291f83(0x1ff)](),_0x2a0da9=new _0x587180[(_0x291f83(0x1c1))](_0x382432)['id'];return this[_0x291f83(0x243)][_0x291f83(0x182)]([_0x43dbef,..._0x433d5e,..._0x4f6441,_0x2a0da9])['every'](_0x141daa=>!!_0x141daa[_0x291f83(0x212)]);}};_0x21f1d9=_0x52ad88([_0x370fb4(0x0,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1a7)])),_0x370fb4(0x1,_0xbfd0f8[_0x4154e2(0x197)]),_0x370fb4(0x2,_0xbfd0f8['IConfigService']),_0x370fb4(0x3,_0xbfd0f8['ICommandService']),_0x370fb4(0x4,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x5,_0xbfd0f8['IPermissionService']),_0x370fb4(0x6,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x587180[_0x4154e2(0x241)])),_0x370fb4(0x7,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x1e7)])),_0x370fb4(0x8,(0x0,_0xbfd0f8['Inject'])(_0x2861a4[_0x4154e2(0x1f7)])),_0x370fb4(0x9,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x190)]))],_0x21f1d9);let _0xa9f51f=class extends _0xbfd0f8[_0x4154e2(0x18a)]{constructor(_0xba7b=_0xe4c960,_0xa5a6b,_0x198483){const _0x44044a=_0x4154e2;super(),this[_0x44044a(0x14e)]=_0xba7b,this['_injector']=_0xa5a6b,this[_0x44044a(0x184)]=_0x198483;let {menu:_0xf29c51,..._0x14c786}=(0x0,_0xbfd0f8['merge'])({},_0xe4c960,this[_0x44044a(0x14e)]);_0xf29c51&&this[_0x44044a(0x184)][_0x44044a(0x16f)](_0x44044a(0x170),_0xf29c51,{'merge':!0x0}),this[_0x44044a(0x184)][_0x44044a(0x16f)](_0x15af09,_0x14c786),this[_0x44044a(0x14e)][_0x44044a(0x1fb)]&&this[_0x44044a(0x184)][_0x44044a(0x16f)]('UNIVER_CONTAINER_ID',this[_0x44044a(0x14e)][_0x44044a(0x1fb)]);}[_0x4154e2(0x1e4)](){const _0x34c6ae=_0x4154e2;[[_0x15e7e6,{'useClass':_0x21f1d9}],[_0x47786f]][_0x34c6ae(0x1a0)](_0x4a53d7=>this[_0x34c6ae(0x172)][_0x34c6ae(0x221)](_0x4a53d7));}[_0x4154e2(0x12a)](){const _0xa4a95e=_0x4154e2;this[_0xa4a95e(0x172)]['get'](_0x47786f);}};_0x3a41cb(_0xa9f51f,_0x4154e2(0x117),_0xbfd0f8[_0x4154e2(0x179)]['UNIVER_UNKNOWN']),_0x3a41cb(_0xa9f51f,_0x4154e2(0x1c5),_0x4154e2(0x260)),_0x3a41cb(_0xa9f51f,_0x4154e2(0x121),_0x35cf83),_0x3a41cb(_0xa9f51f,_0x4154e2(0x233),_0x5e42a6),_0xa9f51f=_0x52ad88([(0x0,_0xbfd0f8[_0x4154e2(0x125)])(_0x37ba05[_0x4154e2(0x236)]),_0x370fb4(0x1,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1e5)])),_0x370fb4(0x2,_0xbfd0f8[_0x4154e2(0x23f)])],_0xa9f51f);let _0x1b6708=class extends _0xbfd0f8['RxDisposable']{constructor(_0x10af9f,_0x325e51,_0x1a30f4,_0x588102,_0x454c31,_0x4f409f,_0x45cdf7,_0xc27917,_0x2edead,_0x55e57f,_0x4cb1de){const _0x3e3f36=_0x4154e2;super(),this[_0x3e3f36(0x1c7)]=_0x10af9f,this[_0x3e3f36(0x248)]=_0x325e51,this[_0x3e3f36(0x231)]=_0x1a30f4,this[_0x3e3f36(0x168)]=_0x588102,this[_0x3e3f36(0x265)]=_0x454c31,this[_0x3e3f36(0x225)]=_0x4f409f,this[_0x3e3f36(0x154)]=_0x45cdf7,this[_0x3e3f36(0x149)]=_0xc27917,this['_dataLoaderService']=_0x2edead,this[_0x3e3f36(0x15e)]=_0x55e57f,this[_0x3e3f36(0x1ab)]=_0x4cb1de,_0x3a41cb(this,'_revertErrorTimer',null),this['_init']();}[_0x4154e2(0x17e)](){const _0x3ce443=_0x4154e2;[_0x3a1410,_0x24e3f8][_0x3ce443(0x1a0)](_0x18fde3=>this[_0x3ce443(0x18d)]((0x0,_0xbfd0f8[_0x3ce443(0x222)])(this['_commandService'][_0x3ce443(0x1f9)](_0x18fde3)))),this[_0x3ce443(0x18d)](this[_0x3ce443(0x231)][_0x3ce443(0x108)](_0x3ce443(0x259),_0x34e793)),this[_0x3ce443(0x248)][_0x3ce443(0x167)](_0xbdfaef),this[_0x3ce443(0x18d)](this[_0x3ce443(0x1c7)]['onCommandExecuted'](async(_0x2dad9a,_0x1f9d7f)=>{const _0x245710=_0x3ce443;if(_0x2dad9a['id']===_0x59e3cd[_0x245710(0x145)]['id']){let {unitId:_0x2e3872}=_0x2dad9a['params'];this[_0x245710(0x225)][_0x245710(0x261)]({'content':this[_0x245710(0x265)]['t'](_0x245710(0x19e)),'type':_0xbb287b[_0x245710(0x1ca)]['Loading'],'duration':0x1388});let _0x59f251=this[_0x245710(0x154)]['getCollabEntity'](_0x2e3872);_0x1f9d7f!=null&&_0x1f9d7f['fromCollab']?this[_0x245710(0x119)](_0x59f251,async()=>(setTimeout(()=>window['location'][_0x245710(0x189)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x59f251,async()=>{const _0x43239f=_0x245710;let _0x132dc9=this[_0x43239f(0x15e)][_0x43239f(0x1b9)](_0x59b935[_0x43239f(0x159)]),_0x3aa7ca=_0x132dc9==null?void 0x0:_0x132dc9['getActiveSheet']();if(!_0x3aa7ca)return!0x1;this['_univerInstanceService'][_0x43239f(0x160)](_0x2e3872);let _0x196d10=await this[_0x43239f(0x196)][_0x43239f(0x14d)](_0x2e3872,_0x59b935[_0x43239f(0x159)]);return _0x196d10&&_0x196d10 instanceof _0xbfd0f8[_0x43239f(0x1ed)]?(await this['_setupSubUnitSync'](_0x196d10,_0x3aa7ca[_0x43239f(0x1fe)]()),!0x0):!0x1;});}}));}[_0x4154e2(0x119)](_0x2f40c4,_0x212fd2,_0x460433=!0x1){const _0x5dbf89=_0x4154e2;let _0x297045=(0x0,_0x4876df[_0x5dbf89(0x216)])([_0x2f40c4[_0x5dbf89(0x16e)][_0x5dbf89(0x1dd)],_0x2f40c4[_0x5dbf89(0x105)]])['subscribe'](async([_0xaa878c,_0x1a29d4])=>{const _0x2464a4=_0x5dbf89;if(_0xaa878c[_0x2464a4(0x203)]===_0x59e3cd['CollaborationEvent'][_0x2464a4(0x11b)]&&(_0x1a29d4==null?void 0x0:_0x1a29d4[_0x2464a4(0x128)])===_0x1dea36[_0x2464a4(0x24c)][_0x2464a4(0x17f)]&&_0xaa878c['data'][_0x2464a4(0x176)][_0x2464a4(0x171)](_0x4f9f08=>_0x4f9f08['id']===_0x59e3cd['RevertRevisionMutation']['id'])&&await _0x212fd2()){var _0x3469c1;this[_0x2464a4(0x168)][_0x2464a4(0x1c9)](),_0x297045[_0x2464a4(0x187)](),this[_0x2464a4(0x19d)]&&clearTimeout(this[_0x2464a4(0x19d)]),await((_0x3469c1=this[_0x2464a4(0x149)])==null?void 0x0:_0x3469c1[_0x2464a4(0x21a)]());}});_0x460433&&(this[_0x5dbf89(0x19d)]=setTimeout(()=>{const _0x4b0d19=_0x5dbf89;_0x297045[_0x4b0d19(0x187)](),this[_0x4b0d19(0x225)][_0x4b0d19(0x261)]({'content':this[_0x4b0d19(0x265)]['t'](_0x4b0d19(0x254)),'type':_0xbb287b[_0x4b0d19(0x1ca)][_0x4b0d19(0x247)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x1ec224,_0x2a647f){const _0x3a3aa0=_0x4154e2;await this[_0x3a3aa0(0x129)](_0x1ec224,_0x2a647f),_0x1ec224[_0x3a3aa0(0x1d4)][_0x3a3aa0(0x124)]((0x0,_0x4876df[_0x3a3aa0(0x1eb)])(this[_0x3a3aa0(0x1c8)]))['subscribe'](_0xc21686=>{const _0x4d6e7c=_0x3a3aa0;_0xc21686&&this[_0x4d6e7c(0x24a)](_0xc21686);}),this[_0x3a3aa0(0x1ab)]['urlChange$'][_0x3a3aa0(0x124)]((0x0,_0x4876df[_0x3a3aa0(0x1eb)])(this[_0x3a3aa0(0x1c8)]))[_0x3a3aa0(0x1a2)](()=>this[_0x3a3aa0(0x129)](_0x1ec224,_0x2a647f));}[_0x4154e2(0x24a)](_0x43926a,_0xb6a79b=!0x1){const _0x86551b=_0x4154e2;let _0x32cb6b=this[_0x86551b(0x1ab)][_0x86551b(0x20c)]('subunit');_0x43926a[_0x86551b(0x1fe)]()!==_0x32cb6b&&this[_0x86551b(0x1ab)][_0x86551b(0x204)](_0x86551b(0x1f5),_0x43926a[_0x86551b(0x1fe)](),_0xb6a79b);}async[_0x4154e2(0x129)](_0x2f4ca6,_0x2a2e30){const _0x52046e=_0x4154e2;var _0x250330;if(!_0x2a2e30||!_0x2f4ca6[_0x52046e(0x14b)](_0x2a2e30)){let _0x8f4043=_0x2f4ca6[_0x52046e(0x208)]()[0x0],_0x2cf659=_0x2f4ca6['getSheetBySheetId'](_0x8f4043);if(!_0x2cf659)return;this['_updateURLWithCurrentState'](_0x2cf659,!0x0),await this[_0x52046e(0x1c7)][_0x52046e(0x162)](_0x587180['SetWorksheetActivateCommand']['id'],{'unitId':_0x2f4ca6[_0x52046e(0x1b8)](),'subUnitId':_0x8f4043});return;}((_0x250330=_0x2f4ca6['getActiveSheet']())==null?void 0x0:_0x250330[_0x52046e(0x1fe)]())!==_0x2a2e30&&await this[_0x52046e(0x1c7)]['executeCommand'](_0x587180[_0x52046e(0x1b4)]['id'],{'unitId':_0x2f4ca6[_0x52046e(0x1b8)](),'subUnitId':_0x2a2e30});}};_0x1b6708=_0x52ad88([_0x370fb4(0x0,_0xbfd0f8[_0x4154e2(0x1fa)]),_0x370fb4(0x1,_0x2861a4['IMenuManagerService']),_0x370fb4(0x2,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x10e)])),_0x370fb4(0x3,(0x0,_0xbfd0f8['Inject'])(_0x15e7e6)),_0x370fb4(0x4,(0x0,_0xbfd0f8['Inject'])(_0xbfd0f8['LocaleService'])),_0x370fb4(0x5,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x6,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x1dea36[_0x4154e2(0x21d)])),_0x370fb4(0x7,_0x1dea36['ILocalCacheService']),_0x370fb4(0x8,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x1dea36['DataLoaderService'])),_0x370fb4(0x9,_0xbfd0f8[_0x4154e2(0x197)]),_0x370fb4(0xa,_0x2c91e1[_0x4154e2(0x140)])],_0x1b6708);let _0x1b9d45=class extends _0xbfd0f8['Plugin']{constructor(_0x77aa66=_0xe4c960,_0x1342c4,_0x4a12be){const _0xacd7f8=_0x4154e2;super(),this[_0xacd7f8(0x14e)]=_0x77aa66,this[_0xacd7f8(0x172)]=_0x1342c4,this['_configService']=_0x4a12be;let {menu:_0x52ffb9,..._0x35b53e}=(0x0,_0xbfd0f8[_0xacd7f8(0x1da)])({},_0xe4c960,this[_0xacd7f8(0x14e)]);_0x52ffb9&&this['_configService'][_0xacd7f8(0x16f)](_0xacd7f8(0x170),_0x52ffb9,{'merge':!0x0}),this[_0xacd7f8(0x184)][_0xacd7f8(0x16f)](_0x15af09,_0x35b53e),this['_config'][_0xacd7f8(0x1fb)]&&this[_0xacd7f8(0x184)][_0xacd7f8(0x16f)](_0x4fd513,this[_0xacd7f8(0x14e)][_0xacd7f8(0x1fb)]);}[_0x4154e2(0x1e4)](){const _0x314aa5=_0x4154e2;[[_0x15e7e6],[_0x1b6708]][_0x314aa5(0x1a0)](_0x4f2296=>this['_injector']['add'](_0x4f2296));}[_0x4154e2(0x12a)](){const _0x450c6=_0x4154e2;this[_0x450c6(0x172)]['get'](_0x1b6708);}};_0x3a41cb(_0x1b9d45,_0x4154e2(0x117),_0xbfd0f8[_0x4154e2(0x179)][_0x4154e2(0x1f3)]),_0x3a41cb(_0x1b9d45,_0x4154e2(0x1c5),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x3a41cb(_0x1b9d45,_0x4154e2(0x121),_0x35cf83),_0x3a41cb(_0x1b9d45,'version',_0x5e42a6),_0x1b9d45=_0x52ad88([(0x0,_0xbfd0f8[_0x4154e2(0x125)])(_0x37ba05[_0x4154e2(0x236)]),_0x370fb4(0x1,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1e5)])),_0x370fb4(0x2,_0xbfd0f8['IConfigService'])],_0x1b9d45),_0x3126a1[_0x4154e2(0x180)]=_0x15af09,Object['defineProperty'](_0x3126a1,_0x4154e2(0x1b0),{'enumerable':!0x0,'get':function(){return _0x15e7e6;}}),Object[_0x4154e2(0x1fc)](_0x3126a1,'MobileHistoryLoaderService',{'enumerable':!0x0,'get':function(){return _0x21f1d9;}}),_0x3126a1[_0x4154e2(0x21f)]=_0x3a1410,_0x3126a1[_0x4154e2(0x146)]=_0x4fd513,_0x3126a1['UNIVER_HISTORY_CONTAINER_ID']=_0x54dc1e,Object[_0x4154e2(0x1fc)](_0x3126a1,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return _0xa9f51f;}}),Object[_0x4154e2(0x1fc)](_0x3126a1,_0x4154e2(0x133),{'enumerable':!0x0,'get':function(){return _0x1b9d45;}});}));
1
+ (function(_0x15c5e3,_0x45033b){const _0x15c73e=_0x9bd8,_0x52b969=_0x15c5e3();while(!![]){try{const _0x174225=parseInt(_0x15c73e(0x293))/0x1*(parseInt(_0x15c73e(0x211))/0x2)+-parseInt(_0x15c73e(0x1c5))/0x3+parseInt(_0x15c73e(0x1dd))/0x4+-parseInt(_0x15c73e(0x265))/0x5*(-parseInt(_0x15c73e(0x1ce))/0x6)+parseInt(_0x15c73e(0x19c))/0x7+parseInt(_0x15c73e(0x21a))/0x8*(-parseInt(_0x15c73e(0x1ca))/0x9)+-parseInt(_0x15c73e(0x21f))/0xa*(parseInt(_0x15c73e(0x17a))/0xb);if(_0x174225===_0x45033b)break;else _0x52b969['push'](_0x52b969['shift']());}catch(_0x415072){_0x52b969['push'](_0x52b969['shift']());}}}(_0x268d,0xbf7ed),function(_0x5d1d17,_0x187ebe){const _0x39adac=_0x9bd8;typeof exports==_0x39adac(0x13e)&&typeof module<'u'?_0x187ebe(exports,require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs-pro/edit-history-viewer`),require(`@univerjs-pro/license`),require(`@univerjs-pro/sheets-chart`),require(`@univerjs-pro/sheets-chart-ui`),require(`@univerjs-pro/sheets-pivot`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs-pro/sheets-shape-ui`),require(`@univerjs-pro/sheets-sparkline`),require(`@univerjs-pro/sheets-sparkline-ui`),require(`@univerjs/data-validation`),require(`@univerjs/design`),require(`@univerjs/docs`),require(`@univerjs/docs-ui`),require(`@univerjs/drawing`),require(`@univerjs/drawing-ui`),require(`@univerjs/engine-formula`),require(`@univerjs/engine-render`),require(`@univerjs/network`),require(`@univerjs/rpc`),require(`@univerjs/sheets-conditional-formatting`),require(`@univerjs/sheets-conditional-formatting-ui`),require(`@univerjs/sheets-data-validation`),require(`@univerjs/sheets-data-validation-ui`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets-drawing-ui`),require(`@univerjs/sheets-filter`),require(`@univerjs/sheets-filter-ui`),require(`@univerjs/sheets-formula`),require(`@univerjs/sheets-formula-ui`),require(`@univerjs/sheets-hyper-link`),require(`@univerjs/sheets-hyper-link-ui`),require(`@univerjs/sheets-numfmt`),require(`@univerjs/sheets-table`),require(`@univerjs/sheets-ui`),require(`@univerjs/ui`),require(`rxjs`),require(`@univerjs-pro/collaboration-client-ui`),require(`react`)):typeof define==_0x39adac(0x157)&&define[_0x39adac(0x1bd)]?define(_0x39adac(0x182)[_0x39adac(0x153)]('.'),_0x187ebe):(_0x5d1d17=typeof globalThis<'u'?globalThis:_0x5d1d17||self,_0x187ebe(_0x5d1d17[_0x39adac(0x19e)]={},_0x5d1d17[_0x39adac(0x1a7)],_0x5d1d17[_0x39adac(0x20b)],_0x5d1d17[_0x39adac(0x168)],_0x5d1d17[_0x39adac(0x1d8)],_0x5d1d17[_0x39adac(0x255)],_0x5d1d17[_0x39adac(0x208)],_0x5d1d17[_0x39adac(0x14e)],_0x5d1d17[_0x39adac(0x14f)],_0x5d1d17[_0x39adac(0x24b)],_0x5d1d17[_0x39adac(0x241)],_0x5d1d17[_0x39adac(0x227)],_0x5d1d17[_0x39adac(0x18a)],_0x5d1d17[_0x39adac(0x20d)],_0x5d1d17[_0x39adac(0x14c)],_0x5d1d17[_0x39adac(0x290)],_0x5d1d17['UniverDocs'],_0x5d1d17[_0x39adac(0x144)],_0x5d1d17[_0x39adac(0x220)],_0x5d1d17[_0x39adac(0x1fc)],_0x5d1d17['UniverEngineFormula'],_0x5d1d17[_0x39adac(0x147)],_0x5d1d17['UniverNetwork'],_0x5d1d17[_0x39adac(0x263)],_0x5d1d17[_0x39adac(0x160)],_0x5d1d17[_0x39adac(0x223)],_0x5d1d17[_0x39adac(0x258)],_0x5d1d17[_0x39adac(0x23c)],_0x5d1d17[_0x39adac(0x1f0)],_0x5d1d17[_0x39adac(0x25f)],_0x5d1d17[_0x39adac(0x16e)],_0x5d1d17[_0x39adac(0x1e8)],_0x5d1d17[_0x39adac(0x256)],_0x5d1d17['UniverSheetsFormulaUi'],_0x5d1d17[_0x39adac(0x1d1)],_0x5d1d17[_0x39adac(0x16a)],_0x5d1d17[_0x39adac(0x1a1)],_0x5d1d17['UniverSheetsTable'],_0x5d1d17[_0x39adac(0x17f)],_0x5d1d17['UniverUi'],_0x5d1d17[_0x39adac(0x1e1)],_0x5d1d17[_0x39adac(0x149)],_0x5d1d17[_0x39adac(0x1f9)]));}(this,function(_0x102004,_0x10bd9c,_0x5edcb9,_0x4e16b4,_0x107d38,_0x4cbac3,_0x5b7516,_0x18f0e4,_0x4309e6,_0x3f2a9b,_0x37c6bd,_0x461080,_0x3c61aa,_0x11e001,_0x24bb6d,_0x524356,_0x7732e3,_0x4f4d33,_0x78e110,_0x4fa371,_0xbf666,_0xe3d3d1,_0x45dbb6,_0x6424bb,_0x5ea2f0,_0x14954d,_0x1c0a0d,_0xbeb765,_0x50d700,_0x34d5e7,_0x285f70,_0x5c2150,_0x3aabef,_0x2e7692,_0x19919f,_0xef44d0,_0x4d3aca,_0x7d6a3c,_0x49cb8d,_0x381e63,_0xc85947,_0x53e49e,_0x5e1347){const _0xbfa157=_0x9bd8;Object['defineProperty'](_0x102004,Symbol['toStringTag'],{'value':_0xbfa157(0x14d)});let _0x4a552f=_0xbfa157(0x28a);Symbol(_0x4a552f);let _0x3d8eee={};function _0x5da9e1(_0x5889ab){'@babel/helpers - typeof';const _0x263710=_0xbfa157;return _0x5da9e1=typeof Symbol==_0x263710(0x157)&&typeof Symbol['iterator']==_0x263710(0x295)?function(_0x444456){return typeof _0x444456;}:function(_0x56aa05){const _0x1171a9=_0x263710;return _0x56aa05&&typeof Symbol==_0x1171a9(0x157)&&_0x56aa05['constructor']===Symbol&&_0x56aa05!==Symbol[_0x1171a9(0x1aa)]?_0x1171a9(0x295):typeof _0x56aa05;},_0x5da9e1(_0x5889ab);}function _0xb09424(_0x46f576,_0x4ab9c1){const _0x5c1043=_0xbfa157;if(_0x5da9e1(_0x46f576)!='object'||!_0x46f576)return _0x46f576;var _0x1ebc7a=_0x46f576[Symbol[_0x5c1043(0x16f)]];if(_0x1ebc7a!==void 0x0){var _0x83dae8=_0x1ebc7a[_0x5c1043(0x1b3)](_0x46f576,_0x4ab9c1||_0x5c1043(0x266));if(_0x5da9e1(_0x83dae8)!='object')return _0x83dae8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4ab9c1===_0x5c1043(0x1d9)?String:Number)(_0x46f576);}function _0x2dbcd8(_0x2e8395){const _0xe823c0=_0xbfa157;var _0x221c89=_0xb09424(_0x2e8395,'string');return _0x5da9e1(_0x221c89)==_0xe823c0(0x295)?_0x221c89:_0x221c89+'';}function _0x465da1(_0xcd9741,_0x187336,_0x5a43a3){return(_0x187336=_0x2dbcd8(_0x187336))in _0xcd9741?Object['defineProperty'](_0xcd9741,_0x187336,{'value':_0x5a43a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcd9741[_0x187336]=_0x5a43a3,_0xcd9741;}function _0xff1d8d(_0x42528e,_0x39c58f){return function(_0x554c5e,_0x292b1a){_0x39c58f(_0x554c5e,_0x292b1a,_0x42528e);};}function _0x568afd(_0x38ca10,_0x2b4218,_0x268f92,_0x52a511){const _0x4c2629=_0xbfa157;var _0x3f8698=arguments['length'],_0x15350d=_0x3f8698<0x3?_0x2b4218:_0x52a511===null?_0x52a511=Object[_0x4c2629(0x240)](_0x2b4218,_0x268f92):_0x52a511,_0x41a4c3;if(typeof Reflect==_0x4c2629(0x13e)&&typeof Reflect['decorate']==_0x4c2629(0x157))_0x15350d=Reflect[_0x4c2629(0x1ec)](_0x38ca10,_0x2b4218,_0x268f92,_0x52a511);else{for(var _0x48f919=_0x38ca10[_0x4c2629(0x277)]-0x1;_0x48f919>=0x0;_0x48f919--)(_0x41a4c3=_0x38ca10[_0x48f919])&&(_0x15350d=(_0x3f8698<0x3?_0x41a4c3(_0x15350d):_0x3f8698>0x3?_0x41a4c3(_0x2b4218,_0x268f92,_0x15350d):_0x41a4c3(_0x2b4218,_0x268f92))||_0x15350d);}return _0x3f8698>0x3&&_0x15350d&&Object[_0x4c2629(0x252)](_0x2b4218,_0x268f92,_0x15350d),_0x15350d;}let _0x4b3040=_0xbfa157(0x1e3),_0x1162fa=_0xbfa157(0x141),_0x399c22=class extends _0x10bd9c['Disposable']{constructor(_0x4d2080,_0x5a8aae,_0x3deb28,_0x544a9f,_0x50e491,_0x17c520,_0x4a94c6,_0x199334,_0x52f911,_0x4bd1b6){const _0x2b4340=_0xbfa157;super(),this[_0x2b4340(0x276)]=_0x4d2080,this['_univerInstanceService']=_0x5a8aae,this[_0x2b4340(0x1d0)]=_0x3deb28,this['_commandService']=_0x544a9f,this[_0x2b4340(0x228)]=_0x50e491,this[_0x2b4340(0x27c)]=_0x17c520,this[_0x2b4340(0x218)]=_0x4a94c6,this[_0x2b4340(0x13d)]=_0x199334,this[_0x2b4340(0x163)]=_0x52f911,this[_0x2b4340(0x288)]=_0x4bd1b6,_0x465da1(this,_0x2b4340(0x262),new _0xc85947[(_0x2b4340(0x197))](null)),_0x465da1(this,_0x2b4340(0x23d),this[_0x2b4340(0x262)][_0x2b4340(0x18e)]()),_0x465da1(this,'_disposableCollection',new _0x10bd9c[(_0x2b4340(0x2a0))]()),_0x465da1(this,_0x2b4340(0x17e),new Map()),_0x465da1(this,'_internalWebWorker',null),this[_0x2b4340(0x1dc)]();}get[_0xbfa157(0x1ab)](){return this['_historyUniver$']['value'];}['_init'](){const _0x8a5eb9=_0xbfa157;this['_initContainer'](),this[_0x8a5eb9(0x1be)]();}[_0xbfa157(0x29e)](){const _0x58a217=_0xbfa157;var _0x4ba8c7;let _0x323abc=(_0x4ba8c7=this[_0x58a217(0x1d0)][_0x58a217(0x23b)](_0x58a217(0x1e3)))==null?_0x58a217(0x2a2):_0x4ba8c7,_0x263838=document['getElementById'](_0x323abc);if(!_0x263838)return;let _0x407b17=document[_0x58a217(0x15f)](_0x58a217(0x15d));_0x407b17['id']=_0x1162fa,_0x407b17[_0x58a217(0x287)][_0x58a217(0x165)]=_0x58a217(0x178),_0x407b17['style'][_0x58a217(0x1c3)]=_0x58a217(0x1f2),_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x146)]='0',_0x407b17[_0x58a217(0x1ea)]['left']='0',_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x13c)]='100%',_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x1e5)]=_0x58a217(0x18f),_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x299)]='49',_0x407b17['style']['display']='none',_0x263838[_0x58a217(0x22a)](_0x407b17);}[_0xbfa157(0x1be)](){const _0x13e762=_0xbfa157;[[_0xe3d3d1['UniverRenderEnginePlugin']],[_0x381e63[_0x13e762(0x183)],{'container':_0x1162fa,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x381e63['IDialogService'],null]]}],[_0x45dbb6['UniverNetworkPlugin']],[_0x78e110[_0x13e762(0x286)],{'override':[[_0x78e110[_0x13e762(0x14b)],null]]}],[_0x7732e3[_0x13e762(0x198)],{'hasScroll':!0x1}],[_0x4f4d33[_0x13e762(0x1bf)]],[_0x4d3aca[_0x13e762(0x1fb)]],[_0x5edcb9[_0x13e762(0x1a4)],{'notExecuteFormula':!0x0}],[_0x49cb8d['UniverSheetsUIPlugin']],[_0x3aabef[_0x13e762(0x27a)]],[_0x2e7692['UniverSheetsFormulaUIPlugin']],[_0x4e16b4[_0x13e762(0x242)]],[_0x285f70[_0x13e762(0x1d2)]],[_0x5c2150[_0x13e762(0x1b7)]],[_0x5ea2f0['UniverSheetsConditionalFormattingPlugin']],[_0x14954d['UniverSheetsConditionalFormattingUIPlugin']],[_0x19919f[_0x13e762(0x214)]],[_0xef44d0[_0x13e762(0x1ed)]],[_0x24bb6d['UniverDataValidationPlugin']],[_0x1c0a0d[_0x13e762(0x217)]],[_0xbeb765[_0x13e762(0x254)]],[_0xbf666[_0x13e762(0x245)],{'notExecuteFormula':!0x0}],[_0x4fa371[_0x13e762(0x238)]],[_0x50d700[_0x13e762(0x216)]],[_0x34d5e7[_0x13e762(0x1a8)]],[_0x3c61aa[_0x13e762(0x1c9)]],[_0x11e001[_0x13e762(0x1ff)]],[_0x18f0e4[_0x13e762(0x24c)]],[_0x4309e6[_0x13e762(0x279)]],[_0x37c6bd[_0x13e762(0x17d)]],[_0x461080[_0x13e762(0x231)]],[_0x3f2a9b['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x7d6a3c[_0x13e762(0x19d)]]][_0x13e762(0x18c)](([_0x528626,_0x75e49])=>this[_0x13e762(0x29d)](_0x528626,_0x75e49));}[_0xbfa157(0x271)](){const _0x2a0826=_0xbfa157;super['dispose'](),this[_0x2a0826(0x1fa)](),this[_0x2a0826(0x17e)]['clear']();}['registerPlugin'](_0x35bb71,_0x48b1e5,_0x3c4aa5){const _0x1b8aa2=_0xbfa157;if(this['_pluginMap'][_0x1b8aa2(0x1e2)](_0x35bb71[_0x1b8aa2(0x28c)])&&!_0x3c4aa5)throw Error(_0x1b8aa2(0x2a5)+_0x35bb71['pluginName']+_0x1b8aa2(0x1db));this[_0x1b8aa2(0x17e)][_0x1b8aa2(0x16b)](_0x35bb71[_0x1b8aa2(0x28c)],[_0x35bb71,_0x48b1e5]);}['getAllPlugins'](){const _0x25705d=_0xbfa157;return Array['from'](this[_0x25705d(0x17e)][_0x25705d(0x230)]());}['mountHistoryContent'](_0x2fb8a2,_0x5aa6e8){const _0x1d582e=_0xbfa157;let _0x22828b=document['getElementById'](_0x1162fa);_0x22828b&&(_0x22828b[_0x1d582e(0x1ea)][_0x1d582e(0x1bc)]=_0x1d582e(0x284),this[_0x1d582e(0x170)](_0x2fb8a2,_0x1162fa,_0x5aa6e8));}[_0xbfa157(0x1fa)](){const _0x55cc14=_0xbfa157;var _0x191d35;this[_0x55cc14(0x2a8)][_0x55cc14(0x271)](),(_0x191d35=this[_0x55cc14(0x1ab)])==null||_0x191d35['dispose'](),this[_0x55cc14(0x262)][_0x55cc14(0x1cc)](null);let _0x3c08bd=document[_0x55cc14(0x159)](_0x1162fa);_0x3c08bd&&(_0x3c08bd[_0x55cc14(0x1ea)][_0x55cc14(0x1bc)]='none',this['_internalWebWorker']&&(this[_0x55cc14(0x248)][_0x55cc14(0x1c4)](),this[_0x55cc14(0x248)]=null));}[_0xbfa157(0x170)](_0x434f5f,_0x21fb4b,_0x53c157){const _0x5aa95d=_0xbfa157;var _0x415e16,_0x333249,_0x41b549,_0x155f4a,_0x48aec7;if(this[_0x5aa95d(0x1ab)])return;let _0x1c3055=new _0x10bd9c[(_0x5aa95d(0x283))]({'locales':{[this[_0x5aa95d(0x276)][_0x5aa95d(0x143)]()]:this[_0x5aa95d(0x276)][_0x5aa95d(0x1e4)]()},'override':[[_0x10bd9c[_0x5aa95d(0x27e)],{'useClass':_0x107d38[_0x5aa95d(0x1cf)]}]]}),_0x1d13c1=_0x1c3055['__getInjector']();this['disposeWithMe'](this[_0x5aa95d(0x288)][_0x5aa95d(0x260)][_0x5aa95d(0x270)](_0x515d37=>{const _0x500b29=_0x5aa95d;_0x1d13c1[_0x500b29(0x26d)](_0x10bd9c[_0x500b29(0x280)])[_0x500b29(0x23e)](_0x515d37);})),this['disposeWithMe'](this[_0x5aa95d(0x288)][_0x5aa95d(0x1cb)][_0x5aa95d(0x270)](_0x473ed7=>{const _0x212b75=_0x5aa95d;_0x1d13c1[_0x212b75(0x26d)](_0x10bd9c[_0x212b75(0x280)])[_0x212b75(0x1c6)](_0x473ed7);})),_0x1d13c1[_0x5aa95d(0x26d)](_0x10bd9c[_0x5aa95d(0x239)])['setLocale'](this[_0x5aa95d(0x276)]['getCurrentLocale']()),_0x1d13c1[_0x5aa95d(0x26d)](_0x10bd9c[_0x5aa95d(0x237)])[_0x5aa95d(0x28f)](_0x107d38['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x5aa95d(0x1d0)]['getConfig'](_0x107d38[_0x5aa95d(0x22e)]));let _0x2f9c86=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5b7516[_0x5aa95d(0x1ef)]);_0x2f9c86&&_0x1c3055[_0x5aa95d(0x29d)](_0x5b7516[_0x5aa95d(0x173)],{'license':_0x2f9c86['ls']});let _0x478ef6=(_0x415e16=this[_0x5aa95d(0x1d0)]['getConfig'](_0x5aa95d(0x28a)))==null?void 0x0:_0x415e16[_0x5aa95d(0x14a)],_0xd50ab2=!!_0x478ef6;_0xd50ab2&&(this[_0x5aa95d(0x248)]=_0x478ef6 instanceof Worker?_0x478ef6:null,_0x1c3055[_0x5aa95d(0x29d)](_0x6424bb[_0x5aa95d(0x19b)],{'workerURL':_0x478ef6})),this['_pluginMap'][_0x5aa95d(0x18c)](([_0x57bc84,_0x41d4de])=>{_0x1c3055['registerPlugin'](_0x57bc84,_0x41d4de);}),_0x1c3055[_0x5aa95d(0x29d)](_0x4cbac3[_0x5aa95d(0x226)],{'historyListServerUrl':(_0x333249=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x333249[_0x5aa95d(0x1c2)],'historyPanelComponentKey':(_0x41b549=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x41b549[_0x5aa95d(0x172)],'historyPanelHidden':(_0x155f4a=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x155f4a[_0x5aa95d(0x1c7)],'historyAIassistantEnabled':(_0x48aec7=this['_configService'][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x48aec7[_0x5aa95d(0x2a6)]}),_0x1d13c1['invoke'](_0x5e526f=>{const _0x1b18df=_0x5aa95d;this[_0x1b18df(0x292)](_0x5e526f,_0x434f5f);}),this[_0x5aa95d(0x262)][_0x5aa95d(0x1cc)](_0x1c3055);let _0x8b3e98=_0x1d13c1[_0x5aa95d(0x26d)](_0x4cbac3['HistoryManagerService']),_0xd2d9ad=this[_0x5aa95d(0x1a3)](_0x434f5f),_0x51f0b8=()=>{const _0x30e87c=_0x5aa95d;_0x53c157?_0x8b3e98['triggerCustomVersions'](_0x434f5f,_0x21fb4b,_0xd2d9ad,_0x53c157):_0x8b3e98[_0x30e87c(0x26e)](_0x434f5f,_0x21fb4b,_0xd2d9ad);};if(this[_0x5aa95d(0x228)]['show']({'content':this[_0x5aa95d(0x276)]['t'](_0x5aa95d(0x155)),'type':_0x524356[_0x5aa95d(0x233)][_0x5aa95d(0x22c)]}),_0xd50ab2)try{_0x1d13c1['get'](_0x6424bb[_0x5aa95d(0x261)])[_0x5aa95d(0x18d)]()[_0x5aa95d(0x23a)](()=>{_0x51f0b8();});}catch{_0x51f0b8();}else _0x51f0b8();}[_0xbfa157(0x292)](_0x1345e0,_0x400ff2){const _0x5c4e0d=_0xbfa157;let _0x25923d=_0x1345e0['get'](_0x4cbac3['HistoryManagerService']);this['_disposableCollection']['add'](_0x25923d[_0x5c4e0d(0x21d)]['subscribe'](_0x1d8e04=>{const _0x1d3769=_0x5c4e0d;switch(_0x1d8e04){case _0x4cbac3[_0x1d3769(0x278)][_0x1d3769(0x25a)]:this[_0x1d3769(0x13d)][_0x1d3769(0x1c8)](),this[_0x1d3769(0x163)]['close']();break;case _0x4cbac3[_0x1d3769(0x278)]['Exited']:this[_0x1d3769(0x251)][_0x1d3769(0x296)](_0x1861d6['id']),this['unMountHistoryContent']();break;case _0x4cbac3[_0x1d3769(0x278)][_0x1d3769(0x1da)]:this['unMountHistoryContent'](),this[_0x1d3769(0x228)][_0x1d3769(0x205)]({'content':this[_0x1d3769(0x276)]['t'](_0x1d3769(0x2a9)),'type':_0x524356['MessageType']['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x5c4e0d(0x21c)](_0x25923d[_0x5c4e0d(0x26a)]['subscribe'](async _0x45f727=>{const _0x40ac1d=_0x5c4e0d;_0x45f727&&this[_0x40ac1d(0x251)][_0x40ac1d(0x296)](_0x4e16b4[_0x40ac1d(0x152)]['id'],{'unitId':_0x400ff2,'revision':_0x45f727});}));}['_checkCanRevert'](_0x1bc055){const _0x5c15a9=_0xbfa157;let _0xb2e4e5=this[_0x5c15a9(0x29c)][_0x5c15a9(0x229)](_0x1bc055)[_0x5c15a9(0x20e)]()[_0x5c15a9(0x1b4)](_0x1ca202=>_0x1ca202['getSheetId']()),_0x1c6476=new _0x5edcb9['WorkbookEditablePermission'](_0x1bc055)['id'],_0x3a960c=_0xb2e4e5[_0x5c15a9(0x1b4)](_0x430346=>new _0x5edcb9[(_0x5c15a9(0x212))](_0x1bc055,_0x430346)['id']),_0x48ec8f=_0xb2e4e5[_0x5c15a9(0x1b4)](_0x5d5269=>this['_selectionProtectionRuleModel'][_0x5c15a9(0x1d7)](_0x1bc055,_0x5d5269)['map'](_0x100f8c=>new _0x5edcb9[(_0x5c15a9(0x1b0))](_0x1bc055,_0x5d5269,_0x100f8c[_0x5c15a9(0x195)])['id']))[_0x5c15a9(0x207)](),_0x39c42c=new _0x5edcb9['WorkbookRecoverHistoryPermission'](_0x1bc055)['id'];return this['_permissionService'][_0x5c15a9(0x285)]([_0x1c6476,..._0x3a960c,..._0x48ec8f,_0x39c42c])[_0x5c15a9(0x193)](_0x354df9=>!!_0x354df9[_0x5c15a9(0x1c1)]);}};_0x399c22=_0x568afd([_0xff1d8d(0x0,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x239)])),_0xff1d8d(0x1,_0x10bd9c[_0xbfa157(0x1e0)]),_0xff1d8d(0x2,_0x10bd9c['IConfigService']),_0xff1d8d(0x3,_0x10bd9c[_0xbfa157(0x26c)]),_0xff1d8d(0x4,_0x381e63['IMessageService']),_0xff1d8d(0x5,_0x10bd9c[_0xbfa157(0x167)]),_0xff1d8d(0x6,(0x0,_0x10bd9c['Inject'])(_0x5edcb9[_0xbfa157(0x1b5)])),_0xff1d8d(0x7,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63[_0xbfa157(0x1fe)])),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63['ISidebarService'])),_0xff1d8d(0x9,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x280)]))],_0x399c22);let _0x4e6806={'id':_0xbfa157(0x246),'type':_0x10bd9c[_0xbfa157(0x16d)][_0xbfa157(0x1fd)],'handler':_0x1e4331=>{const _0x1eba0f=_0xbfa157;let _0x8487c6=_0x1e4331[_0x1eba0f(0x26d)](_0x399c22),{unitId:_0x9c4bde}=(0x0,_0x5edcb9[_0x1eba0f(0x164)])(_0x1e4331[_0x1eba0f(0x26d)](_0x10bd9c[_0x1eba0f(0x1e0)]))||{};return _0x9c4bde?(_0x8487c6[_0x1eba0f(0x1d5)](_0x9c4bde),!0x0):!0x1;}},_0x1861d6={'id':_0xbfa157(0x145),'type':_0x10bd9c['CommandType'][_0xbfa157(0x1fd)],'handler':()=>!0x0};var _0x182131='@univerjs-pro/edit-history-loader',_0x506492=_0xbfa157(0x1f3);function _0xeacbd9({ref:_0xeb0d51,..._0x548871}){const _0x43f123=_0xbfa157;let {icon:_0x1830e1,id:_0x39e9fc,className:_0x55b4aa,extend:_0x58cf74,..._0x418b39}=_0x548871,_0x358527=('univerjs-icon\x20univerjs-icon-'+_0x39e9fc+'\x20'+(_0x55b4aa||''))[_0x43f123(0x1f1)](),_0x34b8fe=(0x0,_0x5e1347[_0x43f123(0x154)])('_'+_0x45dee5());return _0x20fa23(_0x1830e1,''+_0x39e9fc,{'defIds':_0x1830e1['defIds'],'idSuffix':_0x34b8fe[_0x43f123(0x257)]},{'ref':_0xeb0d51,'className':_0x358527,..._0x418b39},_0x58cf74);}function _0x20fa23(_0x3bb94e,_0x72abd6,_0x337aae,_0x42147a,_0x4db585){const _0x7fa25f=_0xbfa157;return(0x0,_0x5e1347[_0x7fa25f(0x15f)])(_0x3bb94e['tag'],{'key':_0x72abd6,..._0x599c5f(_0x3bb94e,_0x337aae,_0x4db585),..._0x42147a},(_0x3e5fa3(_0x3bb94e,_0x337aae)['children']||[])[_0x7fa25f(0x1b4)]((_0x244c5e,_0x1e12f4)=>_0x20fa23(_0x244c5e,_0x72abd6+'-'+_0x3bb94e['tag']+'-'+_0x1e12f4,_0x337aae,void 0x0,_0x4db585)));}function _0x599c5f(_0x5f4aca,_0x531175,_0x8d2ca8){const _0x4f7434=_0xbfa157;let _0x2c0902={..._0x5f4aca[_0x4f7434(0x1e6)]};_0x8d2ca8!=null&&_0x8d2ca8[_0x4f7434(0x298)]&&_0x2c0902[_0x4f7434(0x156)]===_0x4f7434(0x298)&&(_0x2c0902['fill']=_0x8d2ca8['colorChannel1']),_0x5f4aca[_0x4f7434(0x202)]==='mask'&&_0x2c0902['id']&&(_0x2c0902['id']+=_0x531175[_0x4f7434(0x213)]),Object['entries'](_0x2c0902)[_0x4f7434(0x18c)](([_0x1a7391,_0x2bdf97])=>{const _0x575fa4=_0x4f7434;_0x1a7391==='mask'&&typeof _0x2bdf97==_0x575fa4(0x1d9)&&(_0x2c0902[_0x1a7391]=_0x2bdf97[_0x575fa4(0x1a9)](/url\(#(.*)\)/,'url(#$1'+_0x531175[_0x575fa4(0x213)]+')'));});let {defIds:_0x542c25}=_0x531175;return!_0x542c25||_0x542c25[_0x4f7434(0x277)]===0x0?_0x2c0902:(_0x5f4aca['tag']===_0x4f7434(0x1a5)&&_0x2c0902[_0x4f7434(0x1af)]&&(_0x2c0902[_0x4f7434(0x1af)]+=_0x531175[_0x4f7434(0x213)]),Object[_0x4f7434(0x162)](_0x2c0902)[_0x4f7434(0x18c)](([_0x46c5f5,_0x4e7d1e])=>{const _0x2df9cd=_0x4f7434;typeof _0x4e7d1e==_0x2df9cd(0x1d9)&&(_0x2c0902[_0x46c5f5]=_0x4e7d1e[_0x2df9cd(0x1a9)](/url\(#(.*)\)/,_0x2df9cd(0x192)+_0x531175[_0x2df9cd(0x213)]+')'));}),_0x2c0902);}function _0x3e5fa3(_0x3503c5,_0x2bf23e){const _0x5429f1=_0xbfa157;var _0x1d8cec;let {defIds:_0x3e3b56}=_0x2bf23e;return!_0x3e3b56||_0x3e3b56['length']===0x0?_0x3503c5:_0x3503c5[_0x5429f1(0x202)]==='defs'&&(_0x1d8cec=_0x3503c5[_0x5429f1(0x15a)])!=null&&_0x1d8cec[_0x5429f1(0x277)]?{..._0x3503c5,'children':_0x3503c5[_0x5429f1(0x15a)][_0x5429f1(0x1b4)](_0x4b8d12=>typeof _0x4b8d12['attrs']['id']=='string'&&_0x3e3b56&&_0x3e3b56[_0x5429f1(0x15e)](_0x4b8d12[_0x5429f1(0x1e6)]['id'])?{..._0x4b8d12,'attrs':{..._0x4b8d12[_0x5429f1(0x1e6)],'id':_0x4b8d12[_0x5429f1(0x1e6)]['id']+_0x2bf23e[_0x5429f1(0x213)]}}:_0x4b8d12)}:_0x3503c5;}function _0x45dee5(){const _0xfc2cc9=_0xbfa157;return Math['random']()[_0xfc2cc9(0x187)](0x24)[_0xfc2cc9(0x20f)](0x2,0x8);}_0xeacbd9[_0xbfa157(0x25e)]=_0xbfa157(0x148);let _0x55d502={'tag':'svg','attrs':{'xmlns':_0xbfa157(0x21e),'fill':_0xbfa157(0x13b),'viewBox':_0xbfa157(0x221),'width':'1em','height':_0xbfa157(0x174)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0xbfa157(0x26f),'attrs':{'d':_0xbfa157(0x273)}},{'tag':_0xbfa157(0x26f),'attrs':{'d':_0xbfa157(0x190)}}]},{'tag':_0xbfa157(0x175),'attrs':{},'children':[{'tag':_0xbfa157(0x22b),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0xbfa157(0x26f),'attrs':{'fill':_0xbfa157(0x16c),'d':_0xbfa157(0x1cd)}}]}]}],'defIds':[_0xbfa157(0x17c)]},_0x1166e4=(0x0,_0x5e1347['forwardRef'])(function(_0x1814df,_0x355c31){const _0x5061f7=_0xbfa157;return(0x0,_0x5e1347[_0x5061f7(0x15f)])(_0xeacbd9,Object['assign']({},_0x1814df,{'id':'history-icon','ref':_0x355c31,'icon':_0x55d502}));});_0x1166e4['displayName']=_0xbfa157(0x291);let _0x1bf926=function(_0x10cc73){const _0x23267c=_0xbfa157;return _0x10cc73[_0x10cc73[_0x23267c(0x15b)]=0x0]=_0x23267c(0x15b),_0x10cc73[_0x10cc73[_0x23267c(0x1b6)]=0x1]=_0x23267c(0x1b6),_0x10cc73[_0x10cc73[_0x23267c(0x191)]=0x2]=_0x23267c(0x191),_0x10cc73[_0x10cc73[_0x23267c(0x166)]=0x3]=_0x23267c(0x166),_0x10cc73[_0x10cc73[_0x23267c(0x232)]=0x4]=_0x23267c(0x232),_0x10cc73[_0x10cc73[_0x23267c(0x250)]=-0x1]=_0x23267c(0x250),_0x10cc73;}({});function _0x2a49ee(_0x4e0612){const _0x380f3a=_0xbfa157;return{'id':_0x4e6806['id'],'type':_0x381e63['MenuItemType'][_0x380f3a(0x289)],'icon':_0x380f3a(0x291),'tooltip':_0x380f3a(0x209),'hidden$':(0x0,_0x381e63[_0x380f3a(0x1b8)])(_0x4e0612,_0x10bd9c[_0x380f3a(0x1f7)][_0x380f3a(0x191)]),'disabled$':(0x0,_0x49cb8d['getCurrentRangeDisable$'])(_0x4e0612,{'workbookTypes':[_0x5edcb9['WorkbookEditablePermission'],_0x5edcb9[_0x380f3a(0x1e9)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x5e3708={[_0x381e63[_0xbfa157(0x184)][_0xbfa157(0x203)]]:{[_0x4e6806['id']]:{'order':0.2,'menuItemFactory':_0x2a49ee}}},_0x58c08d=class extends _0x10bd9c[_0xbfa157(0x210)]{constructor(_0x36f025,_0x1ee0c8,_0x5900d8,_0x3d5566,_0x12ef1a,_0x165bb1,_0x5240a5,_0x57d280,_0x17441d,_0x280e1d,_0x279a83){const _0x48dbbe=_0xbfa157;super(),this[_0x48dbbe(0x251)]=_0x36f025,this[_0x48dbbe(0x199)]=_0x1ee0c8,this[_0x48dbbe(0x20c)]=_0x5900d8,this[_0x48dbbe(0x18b)]=_0x3d5566,this[_0x48dbbe(0x276)]=_0x12ef1a,this[_0x48dbbe(0x228)]=_0x165bb1,this[_0x48dbbe(0x169)]=_0x5240a5,this[_0x48dbbe(0x297)]=_0x57d280,this[_0x48dbbe(0x269)]=_0x17441d,this[_0x48dbbe(0x29c)]=_0x280e1d,this['_urlService']=_0x279a83,_0x465da1(this,_0x48dbbe(0x1e7),null),this[_0x48dbbe(0x1dc)]();}[_0xbfa157(0x1dc)](){const _0x4046d0=_0xbfa157;[_0x4e6806,_0x1861d6]['forEach'](_0x566975=>this[_0x4046d0(0x1ba)]((0x0,_0x10bd9c['toDisposable'])(this[_0x4046d0(0x251)]['registerCommand'](_0x566975)))),this[_0x4046d0(0x1ba)](this[_0x4046d0(0x20c)]['register'](_0x4046d0(0x291),_0x1166e4)),this['_menuManagerService'][_0x4046d0(0x2a3)](_0x5e3708),this[_0x4046d0(0x1ba)](this[_0x4046d0(0x251)][_0x4046d0(0x186)](async(_0xb6b930,_0x18d460)=>{const _0x2d3d23=_0x4046d0;if(_0xb6b930['id']===_0x4e16b4[_0x2d3d23(0x152)]['id']){let {unitId:_0x61aac8}=_0xb6b930[_0x2d3d23(0x222)];this[_0x2d3d23(0x228)][_0x2d3d23(0x205)]({'content':this[_0x2d3d23(0x276)]['t'](_0x2d3d23(0x274)),'type':_0x524356[_0x2d3d23(0x233)]['Loading'],'duration':0x1388});let _0x146406=this['_collaborationController'][_0x2d3d23(0x1b1)](_0x61aac8);_0x18d460!=null&&_0x18d460[_0x2d3d23(0x140)]?this[_0x2d3d23(0x2a7)](_0x146406,async()=>(setTimeout(()=>window[_0x2d3d23(0x28b)][_0x2d3d23(0x13a)]()),!0x0),!0x0):this[_0x2d3d23(0x2a7)](_0x146406,async()=>{const _0x23dd68=_0x2d3d23;let _0x450e1a=this[_0x23dd68(0x29c)]['getCurrentUnitOfType'](_0x1bf926[_0x23dd68(0x191)]),_0x15ff9f=_0x450e1a==null?void 0x0:_0x450e1a[_0x23dd68(0x206)]();if(!_0x15ff9f)return!0x1;this[_0x23dd68(0x29c)][_0x23dd68(0x1ae)](_0x61aac8);let _0x1f59b0=await this['_dataLoaderService'][_0x23dd68(0x281)](_0x61aac8,_0x1bf926[_0x23dd68(0x191)]);return _0x1f59b0&&_0x1f59b0 instanceof _0x10bd9c[_0x23dd68(0x194)]?(await this[_0x23dd68(0x253)](_0x1f59b0,_0x15ff9f['getSheetId']()),!0x0):!0x1;});}}));}[_0xbfa157(0x2a7)](_0x53930b,_0x4cf423,_0x3212cf=!0x1){const _0x4af106=_0xbfa157;let _0x2b60f0=(0x0,_0xc85947['combineLatest'])([_0x53930b[_0x4af106(0x151)][_0x4af106(0x27d)],_0x53930b[_0x4af106(0x244)]])['subscribe'](async([_0x123ef5,_0x38144e])=>{const _0x52ad36=_0x4af106;if(_0x123ef5[_0x52ad36(0x224)]===_0x4e16b4['CollaborationEvent'][_0x52ad36(0x275)]&&(_0x38144e==null?void 0x0:_0x38144e[_0x52ad36(0x1f8)])===_0x107d38['CollaborationStatus']['SYNCED']&&_0x123ef5[_0x52ad36(0x180)][_0x52ad36(0x24a)][_0x52ad36(0x219)](_0x15e59c=>_0x15e59c['id']===_0x4e16b4[_0x52ad36(0x152)]['id'])&&await _0x4cf423()){var _0x29902b;this[_0x52ad36(0x18b)]['unMountHistoryContent'](),_0x2b60f0[_0x52ad36(0x1c0)](),this[_0x52ad36(0x1e7)]&&clearTimeout(this[_0x52ad36(0x1e7)]),await((_0x29902b=this[_0x52ad36(0x297)])==null?void 0x0:_0x29902b[_0x52ad36(0x27f)]()),this[_0x52ad36(0x228)]['removeAll']();}});_0x3212cf&&(this[_0x4af106(0x1e7)]=setTimeout(()=>{const _0x1eb7ea=_0x4af106;_0x2b60f0[_0x1eb7ea(0x1c0)](),this[_0x1eb7ea(0x228)][_0x1eb7ea(0x205)]({'content':this['_localeService']['t'](_0x1eb7ea(0x176)),'type':_0x524356[_0x1eb7ea(0x233)]['Error'],'duration':0xbb8});},0x1388));}async[_0xbfa157(0x253)](_0x7c80c2,_0x3af03c){const _0x2cb9f6=_0xbfa157;await this['_updateSubUnitFromURLParams'](_0x7c80c2,_0x3af03c),_0x7c80c2[_0x2cb9f6(0x19a)][_0x2cb9f6(0x28d)]((0x0,_0xc85947[_0x2cb9f6(0x1b9)])(this[_0x2cb9f6(0x29b)]))['subscribe'](_0x46a875=>{const _0x33c0ad=_0x2cb9f6;_0x46a875&&this[_0x33c0ad(0x236)](_0x46a875);}),this[_0x2cb9f6(0x1bb)][_0x2cb9f6(0x24d)][_0x2cb9f6(0x28d)]((0x0,_0xc85947[_0x2cb9f6(0x1b9)])(this['dispose$']))[_0x2cb9f6(0x270)](()=>this[_0x2cb9f6(0x21b)](_0x7c80c2,_0x3af03c));}['_updateURLWithCurrentState'](_0x25aeec,_0x435a12=!0x1){const _0x1609b=_0xbfa157;let _0xced112=this[_0x1609b(0x1bb)][_0x1609b(0x161)](_0x1609b(0x179));_0x25aeec[_0x1609b(0x17b)]()!==_0xced112&&this[_0x1609b(0x1bb)]['setParam']('subunit',_0x25aeec[_0x1609b(0x17b)](),_0x435a12);}async[_0xbfa157(0x21b)](_0x52c7f4,_0x22e16f){const _0x3fc14f=_0xbfa157;var _0x1f656b;if(!_0x22e16f||!_0x52c7f4[_0x3fc14f(0x2aa)](_0x22e16f)){let _0x3b9644=_0x52c7f4[_0x3fc14f(0x15c)]()[0x0],_0x3d2e4a=_0x52c7f4[_0x3fc14f(0x2aa)](_0x3b9644);if(!_0x3d2e4a)return;this[_0x3fc14f(0x236)](_0x3d2e4a,!0x0),await this[_0x3fc14f(0x251)][_0x3fc14f(0x296)](_0x5edcb9['SetWorksheetActivateCommand']['id'],{'unitId':_0x52c7f4[_0x3fc14f(0x1d4)](),'subUnitId':_0x3b9644});return;}((_0x1f656b=_0x52c7f4[_0x3fc14f(0x206)]())==null?void 0x0:_0x1f656b[_0x3fc14f(0x17b)]())!==_0x22e16f&&await this[_0x3fc14f(0x251)]['executeCommand'](_0x5edcb9[_0x3fc14f(0x234)]['id'],{'unitId':_0x52c7f4[_0x3fc14f(0x1d4)](),'subUnitId':_0x22e16f});}};_0x58c08d=_0x568afd([_0xff1d8d(0x0,_0x10bd9c['ICommandService']),_0xff1d8d(0x1,_0x381e63[_0xbfa157(0x1a6)]),_0xff1d8d(0x2,(0x0,_0x10bd9c['Inject'])(_0x381e63[_0xbfa157(0x29a)])),_0xff1d8d(0x3,(0x0,_0x10bd9c['Inject'])(_0x399c22)),_0xff1d8d(0x4,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x239)])),_0xff1d8d(0x5,_0x381e63[_0xbfa157(0x185)]),_0xff1d8d(0x6,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38[_0xbfa157(0x177)])),_0xff1d8d(0x7,_0x107d38[_0xbfa157(0x1a0)]),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38[_0xbfa157(0x29f)])),_0xff1d8d(0x9,_0x10bd9c['IUniverInstanceService']),_0xff1d8d(0xa,_0x53e49e[_0xbfa157(0x181)])],_0x58c08d);let _0x70450d=_0xbfa157(0x24f),_0x8ac307=class extends _0x10bd9c[_0xbfa157(0x1de)]{constructor(_0x39a6a8,_0x1b91b8,_0x3f6af1,_0x48fe39,_0x4a7949,_0x1e8dfe,_0x4d9e15,_0x1da010,_0x30a94b,_0x24c23f){const _0x1d4481=_0xbfa157;super(),this[_0x1d4481(0x276)]=_0x39a6a8,this['_univerInstanceService']=_0x1b91b8,this[_0x1d4481(0x1d0)]=_0x3f6af1,this[_0x1d4481(0x251)]=_0x48fe39,this[_0x1d4481(0x228)]=_0x4a7949,this[_0x1d4481(0x27c)]=_0x1e8dfe,this['_selectionProtectionRuleModel']=_0x4d9e15,this['_dialogService']=_0x1da010,this[_0x1d4481(0x163)]=_0x30a94b,this[_0x1d4481(0x288)]=_0x24c23f,_0x465da1(this,_0x1d4481(0x262),new _0xc85947[(_0x1d4481(0x197))](null)),_0x465da1(this,_0x1d4481(0x23d),this[_0x1d4481(0x262)]['asObservable']()),_0x465da1(this,_0x1d4481(0x2a8),new _0x10bd9c[(_0x1d4481(0x2a0))]()),_0x465da1(this,_0x1d4481(0x17e),new Map()),_0x465da1(this,_0x1d4481(0x248),null),this[_0x1d4481(0x1dc)]();}get[_0xbfa157(0x1ab)](){return this['_historyUniver$']['value'];}['_init'](){const _0x1150fe=_0xbfa157;this[_0x1150fe(0x29e)](),this[_0x1150fe(0x1be)]();}[_0xbfa157(0x29e)](){const _0x4fd9d0=_0xbfa157;var _0x166e96;let _0x58ce2f=(_0x166e96=this[_0x4fd9d0(0x1d0)]['getConfig'](_0x4fd9d0(0x1e3)))==null?_0x4fd9d0(0x2a2):_0x166e96,_0x88b675=document[_0x4fd9d0(0x159)](_0x58ce2f);if(!_0x88b675)return;let _0x455bc1=document[_0x4fd9d0(0x15f)](_0x4fd9d0(0x15d));_0x455bc1['id']=_0x70450d,_0x455bc1[_0x4fd9d0(0x287)]['uComp']=_0x4fd9d0(0x178),_0x455bc1['style'][_0x4fd9d0(0x1c3)]='absolute',_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x146)]='0',_0x455bc1['style'][_0x4fd9d0(0x215)]='0',_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x13c)]='100%',_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x1e5)]=_0x4fd9d0(0x18f),_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x299)]='49',_0x455bc1['style']['display']=_0x4fd9d0(0x13b),_0x88b675[_0x4fd9d0(0x22a)](_0x455bc1);}[_0xbfa157(0x1be)](){const _0x55bcf6=_0xbfa157;[[_0xe3d3d1[_0x55bcf6(0x188)]],[_0x381e63[_0x55bcf6(0x22d)],{'container':_0x70450d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x381e63[_0x55bcf6(0x1fe)],null]]}],[_0x45dbb6[_0x55bcf6(0x1f6)]],[_0x78e110[_0x55bcf6(0x286)],{'override':[[_0x78e110[_0x55bcf6(0x14b)],null]]}],[_0x7732e3[_0x55bcf6(0x198)],{'hasScroll':!0x1}],[_0x4f4d33[_0x55bcf6(0x1bf)]],[_0x4d3aca[_0x55bcf6(0x1fb)]],[_0x5edcb9['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x49cb8d[_0x55bcf6(0x1ee)]],[_0x3aabef[_0x55bcf6(0x27a)]],[_0x2e7692[_0x55bcf6(0x267)]],[_0x4e16b4['UniverCollaborationPlugin']],[_0x285f70[_0x55bcf6(0x1d2)]],[_0x5ea2f0[_0x55bcf6(0x1a2)]],[_0x19919f[_0x55bcf6(0x214)]],[_0xef44d0['UniverSheetsHyperLinkUIPlugin']],[_0x24bb6d[_0x55bcf6(0x25d)]],[_0x1c0a0d[_0x55bcf6(0x217)]],[_0xbeb765[_0x55bcf6(0x1f4)]],[_0xbf666['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x4fa371['UniverDrawingUIPlugin']],[_0x50d700[_0x55bcf6(0x216)]],[_0x34d5e7[_0x55bcf6(0x1a8)]],[_0x3c61aa[_0x55bcf6(0x1c9)]],[_0x11e001[_0x55bcf6(0x1ff)]],[_0x18f0e4[_0x55bcf6(0x24c)]],[_0x4309e6[_0x55bcf6(0x279)]],[_0x37c6bd[_0x55bcf6(0x17d)]],[_0x461080[_0x55bcf6(0x231)]],[_0x3f2a9b[_0x55bcf6(0x23f)],{'notExecuteFormula':!0x0}],[_0x7d6a3c['UniverSheetsTablePlugin']]][_0x55bcf6(0x18c)](([_0x1858af,_0x556d90])=>this[_0x55bcf6(0x29d)](_0x1858af,_0x556d90));}[_0xbfa157(0x271)](){const _0x2e06bb=_0xbfa157;super[_0x2e06bb(0x271)](),this[_0x2e06bb(0x1fa)](),this[_0x2e06bb(0x17e)][_0x2e06bb(0x142)]();}[_0xbfa157(0x29d)](_0x1d7667,_0x53ac29,_0x2a7217){const _0x34527e=_0xbfa157;if(this[_0x34527e(0x17e)][_0x34527e(0x1e2)](_0x1d7667[_0x34527e(0x28c)])&&!_0x2a7217)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x1d7667[_0x34527e(0x28c)]+_0x34527e(0x1db));this['_pluginMap'][_0x34527e(0x16b)](_0x1d7667[_0x34527e(0x28c)],[_0x1d7667,_0x53ac29]);}[_0xbfa157(0x1df)](){const _0x59a9f7=_0xbfa157;return Array[_0x59a9f7(0x25c)](this[_0x59a9f7(0x17e)][_0x59a9f7(0x230)]());}['mountHistoryContent'](_0x539f5c,_0x1233e6){const _0x5038b6=_0xbfa157;let _0x230e36=document['getElementById'](_0x70450d);_0x230e36&&(_0x230e36['style']['display']=_0x5038b6(0x284),this[_0x5038b6(0x170)](_0x539f5c,_0x70450d,_0x1233e6));}['unMountHistoryContent'](){const _0x4f71b5=_0xbfa157;var _0x7b49b6;this['_disposableCollection'][_0x4f71b5(0x271)](),(_0x7b49b6=this[_0x4f71b5(0x1ab)])==null||_0x7b49b6[_0x4f71b5(0x271)](),this['_historyUniver$']['next'](null);let _0x5573ac=document[_0x4f71b5(0x159)](_0x70450d);_0x5573ac&&(_0x5573ac[_0x4f71b5(0x1ea)]['display']=_0x4f71b5(0x13b),this['_internalWebWorker']&&(this[_0x4f71b5(0x248)][_0x4f71b5(0x1c4)](),this['_internalWebWorker']=null));}[_0xbfa157(0x170)](_0xfa637,_0x5db5e1,_0x504e08){const _0x4f7cb2=_0xbfa157;var _0x43735e,_0x32d603,_0x4e7bc4,_0xc8b645;if(this[_0x4f7cb2(0x1ab)])return;let _0x2d4a90=new _0x10bd9c[(_0x4f7cb2(0x283))]({'locales':{[this[_0x4f7cb2(0x276)][_0x4f7cb2(0x143)]()]:this['_localeService'][_0x4f7cb2(0x1e4)]()},'override':[[_0x10bd9c[_0x4f7cb2(0x27e)],{'useClass':_0x107d38[_0x4f7cb2(0x1cf)]}]]}),_0x57e7b3=_0x2d4a90[_0x4f7cb2(0x200)]();this[_0x4f7cb2(0x1ba)](this[_0x4f7cb2(0x288)][_0x4f7cb2(0x260)][_0x4f7cb2(0x270)](_0x577945=>{const _0x36a59b=_0x4f7cb2;_0x57e7b3[_0x36a59b(0x26d)](_0x10bd9c['ThemeService'])[_0x36a59b(0x23e)](_0x577945);})),this[_0x4f7cb2(0x1ba)](this['_themeService'][_0x4f7cb2(0x1cb)][_0x4f7cb2(0x270)](_0x4407d6=>{const _0x22d832=_0x4f7cb2;_0x57e7b3[_0x22d832(0x26d)](_0x10bd9c['ThemeService'])[_0x22d832(0x1c6)](_0x4407d6);})),_0x57e7b3[_0x4f7cb2(0x26d)](_0x10bd9c[_0x4f7cb2(0x239)])[_0x4f7cb2(0x2a4)](this[_0x4f7cb2(0x276)][_0x4f7cb2(0x143)]()),_0x57e7b3['get'](_0x10bd9c[_0x4f7cb2(0x237)])[_0x4f7cb2(0x28f)](_0x107d38[_0x4f7cb2(0x22e)],this['_configService'][_0x4f7cb2(0x23b)](_0x107d38[_0x4f7cb2(0x22e)]));let _0x31192e=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)](_0x5b7516[_0x4f7cb2(0x1ef)]);_0x31192e&&_0x2d4a90[_0x4f7cb2(0x29d)](_0x5b7516[_0x4f7cb2(0x173)],{'license':_0x31192e['ls']});let _0x2d76d2=(_0x43735e=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)](_0x4f7cb2(0x28a)))==null?void 0x0:_0x43735e[_0x4f7cb2(0x14a)],_0x3408db=!!_0x2d76d2;_0x3408db&&(this[_0x4f7cb2(0x248)]=_0x2d76d2 instanceof Worker?_0x2d76d2:null,_0x2d4a90[_0x4f7cb2(0x29d)](_0x6424bb[_0x4f7cb2(0x19b)],{'workerURL':_0x2d76d2})),this[_0x4f7cb2(0x17e)][_0x4f7cb2(0x18c)](([_0x5ad0ff,_0xea327d])=>{const _0x523bc4=_0x4f7cb2;_0x2d4a90[_0x523bc4(0x29d)](_0x5ad0ff,_0xea327d);}),_0x2d4a90['registerPlugin'](_0x4cbac3['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x32d603=this[_0x4f7cb2(0x1d0)]['getConfig'](_0x4f7cb2(0x28a)))==null?void 0x0:_0x32d603[_0x4f7cb2(0x1c2)],'historyPanelComponentKey':(_0x4e7bc4=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)]('edit-history-loader.config'))==null?void 0x0:_0x4e7bc4[_0x4f7cb2(0x172)],'historyPanelHidden':(_0xc8b645=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)]('edit-history-loader.config'))==null?void 0x0:_0xc8b645['historyPanelHidden']}),_0x57e7b3[_0x4f7cb2(0x2a1)](_0x4f7394=>{const _0x298f66=_0x4f7cb2;this[_0x298f66(0x292)](_0x4f7394,_0xfa637);}),this[_0x4f7cb2(0x262)][_0x4f7cb2(0x1cc)](_0x2d4a90);let _0x32a6e7=_0x57e7b3['get'](_0x4cbac3['HistoryManagerService']),_0x3e53c4=this['_checkCanRevert'](_0xfa637),_0x1d8620=()=>{const _0xa1e8d5=_0x4f7cb2;_0x504e08?_0x32a6e7[_0xa1e8d5(0x189)](_0xfa637,_0x5db5e1,_0x3e53c4,_0x504e08):_0x32a6e7[_0xa1e8d5(0x26e)](_0xfa637,_0x5db5e1,_0x3e53c4);};if(this[_0x4f7cb2(0x228)]['show']({'content':this[_0x4f7cb2(0x276)]['t'](_0x4f7cb2(0x155)),'type':_0x524356['MessageType']['Loading']}),_0x3408db)try{_0x57e7b3['get'](_0x6424bb[_0x4f7cb2(0x261)])[_0x4f7cb2(0x18d)]()[_0x4f7cb2(0x23a)](()=>{_0x1d8620();});}catch{_0x1d8620();}else _0x1d8620();}[_0xbfa157(0x292)](_0x134bfd,_0x3382ce){const _0x3981b8=_0xbfa157;let _0x465a9c=_0x134bfd['get'](_0x4cbac3[_0x3981b8(0x259)]);this[_0x3981b8(0x2a8)][_0x3981b8(0x21c)](_0x465a9c['status$']['subscribe'](_0xa751b3=>{const _0xd8d381=_0x3981b8;switch(_0xa751b3){case _0x4cbac3[_0xd8d381(0x278)][_0xd8d381(0x25a)]:this[_0xd8d381(0x13d)][_0xd8d381(0x1c8)](),this[_0xd8d381(0x163)][_0xd8d381(0x196)]();break;case _0x4cbac3[_0xd8d381(0x278)][_0xd8d381(0x25b)]:this['_commandService'][_0xd8d381(0x296)](_0x1861d6['id']),this[_0xd8d381(0x1fa)]();break;case _0x4cbac3[_0xd8d381(0x278)][_0xd8d381(0x1da)]:this[_0xd8d381(0x1fa)](),this[_0xd8d381(0x228)][_0xd8d381(0x205)]({'content':this[_0xd8d381(0x276)]['t']('editHistory.panel.listFetchError'),'type':_0x524356['MessageType'][_0xd8d381(0x1da)],'duration':0xbb8});break;default:break;}})),this[_0x3981b8(0x2a8)][_0x3981b8(0x21c)](_0x465a9c['revertRevision$'][_0x3981b8(0x270)](async _0x53063e=>{const _0x201b89=_0x3981b8;_0x53063e&&this[_0x201b89(0x251)][_0x201b89(0x296)](_0x4e16b4['RevertRevisionMutation']['id'],{'unitId':_0x3382ce,'revision':_0x53063e});}));}[_0xbfa157(0x1a3)](_0x4c308d){const _0x10a2dd=_0xbfa157;let _0x4ab6f9=this[_0x10a2dd(0x29c)]['getUnit'](_0x4c308d)[_0x10a2dd(0x20e)]()['map'](_0x3bfbea=>_0x3bfbea[_0x10a2dd(0x17b)]()),_0x40125b=new _0x5edcb9[(_0x10a2dd(0x1f5))](_0x4c308d)['id'],_0xccb39c=_0x4ab6f9[_0x10a2dd(0x1b4)](_0x356943=>new _0x5edcb9['WorksheetEditPermission'](_0x4c308d,_0x356943)['id']),_0x270053=_0x4ab6f9[_0x10a2dd(0x1b4)](_0x37c9a8=>this[_0x10a2dd(0x218)][_0x10a2dd(0x1d7)](_0x4c308d,_0x37c9a8)['map'](_0x599edb=>new _0x5edcb9[(_0x10a2dd(0x1b0))](_0x4c308d,_0x37c9a8,_0x599edb[_0x10a2dd(0x195)])['id']))[_0x10a2dd(0x207)](),_0x4a2e3f=new _0x5edcb9[(_0x10a2dd(0x1b2))](_0x4c308d)['id'];return this[_0x10a2dd(0x27c)][_0x10a2dd(0x285)]([_0x40125b,..._0xccb39c,..._0x270053,_0x4a2e3f])[_0x10a2dd(0x193)](_0xb4acf3=>!!_0xb4acf3['value']);}};_0x8ac307=_0x568afd([_0xff1d8d(0x0,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x239)])),_0xff1d8d(0x1,_0x10bd9c[_0xbfa157(0x1e0)]),_0xff1d8d(0x2,_0x10bd9c[_0xbfa157(0x237)]),_0xff1d8d(0x3,_0x10bd9c[_0xbfa157(0x26c)]),_0xff1d8d(0x4,_0x381e63[_0xbfa157(0x185)]),_0xff1d8d(0x5,_0x10bd9c['IPermissionService']),_0xff1d8d(0x6,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x5edcb9[_0xbfa157(0x1b5)])),_0xff1d8d(0x7,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63[_0xbfa157(0x1fe)])),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63[_0xbfa157(0x235)])),_0xff1d8d(0x9,(0x0,_0x10bd9c['Inject'])(_0x10bd9c[_0xbfa157(0x280)]))],_0x8ac307);let _0x5d5150=class extends _0x10bd9c[_0xbfa157(0x158)]{constructor(_0x2e73c6=_0x3d8eee,_0x4b9db3,_0x50d960){const _0x2f828c=_0xbfa157;super(),this[_0x2f828c(0x201)]=_0x2e73c6,this[_0x2f828c(0x1d6)]=_0x4b9db3,this[_0x2f828c(0x1d0)]=_0x50d960;let {menu:_0x1857d4,..._0x450bf8}=(0x0,_0x10bd9c[_0x2f828c(0x20a)])({},_0x3d8eee,this['_config']);_0x1857d4&&this[_0x2f828c(0x1d0)][_0x2f828c(0x28f)](_0x2f828c(0x2ab),_0x1857d4,{'merge':!0x0}),this[_0x2f828c(0x1d0)]['setConfig'](_0x4a552f,_0x450bf8),this[_0x2f828c(0x201)][_0x2f828c(0x1d3)]&&this['_configService']['setConfig'](_0x2f828c(0x1e3),this[_0x2f828c(0x201)]['univerContainerId']);}[_0xbfa157(0x1ad)](){const _0x5e0a3f=_0xbfa157;[[_0x399c22,{'useClass':_0x8ac307}],[_0x58c08d]]['forEach'](_0x4a261e=>this[_0x5e0a3f(0x1d6)][_0x5e0a3f(0x21c)](_0x4a261e));}[_0xbfa157(0x1eb)](){const _0x470187=_0xbfa157;this[_0x470187(0x1d6)][_0x470187(0x26d)](_0x58c08d);}};_0x465da1(_0x5d5150,'type',_0x10bd9c['UniverInstanceType'][_0xbfa157(0x15b)]),_0x465da1(_0x5d5150,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_0x465da1(_0x5d5150,'packageName',_0x182131),_0x465da1(_0x5d5150,_0xbfa157(0x24e),_0x506492),_0x5d5150=_0x568afd([(0x0,_0x10bd9c[_0xbfa157(0x150)])(_0x5b7516[_0xbfa157(0x173)]),_0xff1d8d(0x1,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x268)])),_0xff1d8d(0x2,_0x10bd9c[_0xbfa157(0x237)])],_0x5d5150);let _0x28473a=class extends _0x10bd9c[_0xbfa157(0x210)]{constructor(_0x7725e6,_0x18f8e2,_0x20de22,_0x5d1d79,_0x25c2da,_0x22f8ef,_0x8fb7ce,_0xd360f0,_0x250bd9,_0x93e005,_0x7f9429){const _0x4afd8c=_0xbfa157;super(),this['_commandService']=_0x7725e6,this[_0x4afd8c(0x199)]=_0x18f8e2,this[_0x4afd8c(0x20c)]=_0x20de22,this['_historyManagerService']=_0x5d1d79,this[_0x4afd8c(0x276)]=_0x25c2da,this[_0x4afd8c(0x228)]=_0x22f8ef,this[_0x4afd8c(0x169)]=_0x8fb7ce,this[_0x4afd8c(0x297)]=_0xd360f0,this[_0x4afd8c(0x269)]=_0x250bd9,this[_0x4afd8c(0x29c)]=_0x93e005,this[_0x4afd8c(0x1bb)]=_0x7f9429,_0x465da1(this,_0x4afd8c(0x1e7),null),this[_0x4afd8c(0x1dc)]();}[_0xbfa157(0x1dc)](){const _0x50e27e=_0xbfa157;[_0x4e6806,_0x1861d6][_0x50e27e(0x18c)](_0x531dba=>this[_0x50e27e(0x1ba)]((0x0,_0x10bd9c[_0x50e27e(0x19f)])(this[_0x50e27e(0x251)][_0x50e27e(0x243)](_0x531dba)))),this[_0x50e27e(0x1ba)](this[_0x50e27e(0x20c)][_0x50e27e(0x282)]('HistoryIcon',_0x1166e4)),this[_0x50e27e(0x199)][_0x50e27e(0x2a3)](_0x5e3708),this['disposeWithMe'](this[_0x50e27e(0x251)]['onCommandExecuted'](async(_0x3104db,_0x30b067)=>{const _0x2118a8=_0x50e27e;if(_0x3104db['id']===_0x4e16b4[_0x2118a8(0x152)]['id']){let {unitId:_0x4937e8}=_0x3104db[_0x2118a8(0x222)];this['_messageService'][_0x2118a8(0x205)]({'content':this[_0x2118a8(0x276)]['t'](_0x2118a8(0x274)),'type':_0x524356['MessageType'][_0x2118a8(0x22c)],'duration':0x1388});let _0xc3fe64=this[_0x2118a8(0x169)][_0x2118a8(0x1b1)](_0x4937e8);_0x30b067!=null&&_0x30b067[_0x2118a8(0x140)]?this[_0x2118a8(0x2a7)](_0xc3fe64,async()=>(setTimeout(()=>window[_0x2118a8(0x28b)][_0x2118a8(0x13a)]()),!0x0),!0x0):this[_0x2118a8(0x2a7)](_0xc3fe64,async()=>{const _0x4aac91=_0x2118a8;let _0x16f7b3=this[_0x4aac91(0x29c)][_0x4aac91(0x26b)](_0x1bf926[_0x4aac91(0x191)]),_0x1aa3c1=_0x16f7b3==null?void 0x0:_0x16f7b3[_0x4aac91(0x206)]();if(!_0x1aa3c1)return!0x1;this[_0x4aac91(0x29c)][_0x4aac91(0x1ae)](_0x4937e8);let _0x1c2bac=await this[_0x4aac91(0x269)][_0x4aac91(0x281)](_0x4937e8,_0x1bf926[_0x4aac91(0x191)]);return _0x1c2bac&&_0x1c2bac instanceof _0x10bd9c[_0x4aac91(0x194)]?(await this['_setupSubUnitSync'](_0x1c2bac,_0x1aa3c1[_0x4aac91(0x17b)]()),!0x0):!0x1;});}}));}[_0xbfa157(0x2a7)](_0x4ea574,_0x5d1795,_0x170894=!0x1){const _0x219e34=_0xbfa157;let _0xfca46c=(0x0,_0xc85947[_0x219e34(0x171)])([_0x4ea574[_0x219e34(0x151)][_0x219e34(0x27d)],_0x4ea574[_0x219e34(0x244)]])[_0x219e34(0x270)](async([_0x5c9ab0,_0x4c5100])=>{const _0x9639c9=_0x219e34;if(_0x5c9ab0[_0x9639c9(0x224)]===_0x4e16b4['CollaborationEvent'][_0x9639c9(0x275)]&&(_0x4c5100==null?void 0x0:_0x4c5100[_0x9639c9(0x1f8)])===_0x107d38[_0x9639c9(0x28e)]['SYNCED']&&_0x5c9ab0[_0x9639c9(0x180)][_0x9639c9(0x24a)][_0x9639c9(0x219)](_0x358f0e=>_0x358f0e['id']===_0x4e16b4[_0x9639c9(0x152)]['id'])&&await _0x5d1795()){var _0x4bfef0;this[_0x9639c9(0x18b)][_0x9639c9(0x1fa)](),_0xfca46c[_0x9639c9(0x1c0)](),this[_0x9639c9(0x1e7)]&&clearTimeout(this[_0x9639c9(0x1e7)]),await((_0x4bfef0=this['_localCacheService'])==null?void 0x0:_0x4bfef0['exhaustSavingTask']());}});_0x170894&&(this[_0x219e34(0x1e7)]=setTimeout(()=>{const _0x2c07b3=_0x219e34;_0xfca46c[_0x2c07b3(0x1c0)](),this[_0x2c07b3(0x228)][_0x2c07b3(0x205)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x524356[_0x2c07b3(0x233)][_0x2c07b3(0x1da)],'duration':0xbb8});},0x1388));}async[_0xbfa157(0x253)](_0x22271a,_0x467e3f){const _0xa9b6a7=_0xbfa157;await this[_0xa9b6a7(0x21b)](_0x22271a,_0x467e3f),_0x22271a[_0xa9b6a7(0x19a)][_0xa9b6a7(0x28d)]((0x0,_0xc85947[_0xa9b6a7(0x1b9)])(this['dispose$']))[_0xa9b6a7(0x270)](_0x2ca611=>{const _0x862b18=_0xa9b6a7;_0x2ca611&&this[_0x862b18(0x236)](_0x2ca611);}),this[_0xa9b6a7(0x1bb)][_0xa9b6a7(0x24d)][_0xa9b6a7(0x28d)]((0x0,_0xc85947['takeUntil'])(this['dispose$']))[_0xa9b6a7(0x270)](()=>this['_updateSubUnitFromURLParams'](_0x22271a,_0x467e3f));}[_0xbfa157(0x236)](_0x38ef0d,_0x575aa9=!0x1){const _0x31f69f=_0xbfa157;let _0x487df0=this[_0x31f69f(0x1bb)]['getParam'](_0x31f69f(0x179));_0x38ef0d[_0x31f69f(0x17b)]()!==_0x487df0&&this[_0x31f69f(0x1bb)][_0x31f69f(0x13f)](_0x31f69f(0x179),_0x38ef0d[_0x31f69f(0x17b)](),_0x575aa9);}async['_updateSubUnitFromURLParams'](_0x40c6dc,_0x1e6eb4){const _0x2fdd38=_0xbfa157;var _0x33d596;if(!_0x1e6eb4||!_0x40c6dc[_0x2fdd38(0x2aa)](_0x1e6eb4)){let _0x5748dd=_0x40c6dc[_0x2fdd38(0x15c)]()[0x0],_0x418901=_0x40c6dc[_0x2fdd38(0x2aa)](_0x5748dd);if(!_0x418901)return;this[_0x2fdd38(0x236)](_0x418901,!0x0),await this[_0x2fdd38(0x251)]['executeCommand'](_0x5edcb9[_0x2fdd38(0x234)]['id'],{'unitId':_0x40c6dc[_0x2fdd38(0x1d4)](),'subUnitId':_0x5748dd});return;}((_0x33d596=_0x40c6dc[_0x2fdd38(0x206)]())==null?void 0x0:_0x33d596[_0x2fdd38(0x17b)]())!==_0x1e6eb4&&await this[_0x2fdd38(0x251)]['executeCommand'](_0x5edcb9[_0x2fdd38(0x234)]['id'],{'unitId':_0x40c6dc[_0x2fdd38(0x1d4)](),'subUnitId':_0x1e6eb4});}};_0x28473a=_0x568afd([_0xff1d8d(0x0,_0x10bd9c['ICommandService']),_0xff1d8d(0x1,_0x381e63[_0xbfa157(0x1a6)]),_0xff1d8d(0x2,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63['ComponentManager'])),_0xff1d8d(0x3,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x399c22)),_0xff1d8d(0x4,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c['LocaleService'])),_0xff1d8d(0x5,_0x381e63['IMessageService']),_0xff1d8d(0x6,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38['CollaborationController'])),_0xff1d8d(0x7,_0x107d38[_0xbfa157(0x1a0)]),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38[_0xbfa157(0x29f)])),_0xff1d8d(0x9,_0x10bd9c[_0xbfa157(0x1e0)]),_0xff1d8d(0xa,_0x53e49e[_0xbfa157(0x181)])],_0x28473a);let _0x2f5033=class extends _0x10bd9c[_0xbfa157(0x158)]{constructor(_0x5710ec=_0x3d8eee,_0x61186d,_0x58a81b){const _0x67f966=_0xbfa157;super(),this[_0x67f966(0x201)]=_0x5710ec,this[_0x67f966(0x1d6)]=_0x61186d,this[_0x67f966(0x1d0)]=_0x58a81b;let {menu:_0x82bb1b,..._0x352e77}=(0x0,_0x10bd9c[_0x67f966(0x20a)])({},_0x3d8eee,this['_config']);_0x82bb1b&&this[_0x67f966(0x1d0)][_0x67f966(0x28f)]('menu',_0x82bb1b,{'merge':!0x0}),this[_0x67f966(0x1d0)][_0x67f966(0x28f)](_0x4a552f,_0x352e77),this[_0x67f966(0x201)]['univerContainerId']&&this[_0x67f966(0x1d0)]['setConfig'](_0x4b3040,this[_0x67f966(0x201)][_0x67f966(0x1d3)]);}[_0xbfa157(0x1ad)](){const _0xda98c7=_0xbfa157;[[_0x399c22],[_0x28473a]]['forEach'](_0x43510d=>this[_0xda98c7(0x1d6)][_0xda98c7(0x21c)](_0x43510d));}[_0xbfa157(0x1eb)](){const _0x135c88=_0xbfa157;this[_0x135c88(0x1d6)][_0x135c88(0x26d)](_0x28473a);}};_0x465da1(_0x2f5033,'type',_0x10bd9c[_0xbfa157(0x1f7)][_0xbfa157(0x15b)]),_0x465da1(_0x2f5033,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x465da1(_0x2f5033,_0xbfa157(0x294),_0x182131),_0x465da1(_0x2f5033,_0xbfa157(0x24e),_0x506492),_0x2f5033=_0x568afd([(0x0,_0x10bd9c[_0xbfa157(0x150)])(_0x5b7516['UniverLicensePlugin']),_0xff1d8d(0x1,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x268)])),_0xff1d8d(0x2,_0x10bd9c[_0xbfa157(0x237)])],_0x2f5033),_0x102004[_0xbfa157(0x225)]=_0x4a552f,Object[_0xbfa157(0x252)](_0x102004,_0xbfa157(0x204),{'enumerable':!0x0,'get':function(){return _0x399c22;}}),Object[_0xbfa157(0x252)](_0x102004,_0xbfa157(0x264),{'enumerable':!0x0,'get':function(){return _0x8ac307;}}),_0x102004[_0xbfa157(0x22f)]=_0x4e6806,_0x102004[_0xbfa157(0x272)]=_0x4b3040,_0x102004[_0xbfa157(0x1ac)]=_0x1162fa,Object['defineProperty'](_0x102004,_0xbfa157(0x27b),{'enumerable':!0x0,'get':function(){return _0x5d5150;}}),Object[_0xbfa157(0x252)](_0x102004,_0xbfa157(0x249),{'enumerable':!0x0,'get':function(){return _0x2f5033;}});}));function _0x9bd8(_0x28955e,_0x2fafaa){_0x28955e=_0x28955e-0x13a;const _0x268d5f=_0x268d();let _0x9bd856=_0x268d5f[_0x28955e];return _0x9bd856;}function _0x268d(){const _0x15c9cd=['__getInjector','_config','tag','OTHERS','HistoryLoaderService','show','getActiveSheet','flat','UniverProLicense','editHistory.panel.title','merge','UniverSheets','_componentManager','UniverProSheetsSparklineUi','getSheets','substring','RxDisposable','226wsXrzb','WorksheetEditPermission','idSuffix','UniverSheetsHyperLinkPlugin','left','UniverSheetsDrawingPlugin','UniverSheetsDataValidationPlugin','_selectionProtectionRuleModel','some','120072mxjgTY','_updateSubUnitFromURLParams','add','status$','http://www.w3.org/2000/svg','15138340XdDIex','UniverDrawing','0\x200\x2016\x2016','params','UniverSheetsConditionalFormattingUi','eventID','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverEditHistoryViewerPlugin','UniverProSheetsShapeUi','_messageService','getUnit','appendChild','clipPath','Loading','UniverMobileUIPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ToggleEditHistoryOperation','values','UniverSheetsShapeUIPlugin','UNIVER_PROJECT','MessageType','SetWorksheetActivateCommand','ISidebarService','_updateURLWithCurrentState','IConfigService','UniverDrawingUIPlugin','LocaleService','then','getConfig','UniverSheetsDataValidationUi','historyUniver$','setDarkMode','UniverSheetsPivotTablePlugin','getOwnPropertyDescriptor','UniverProSheetsShape','UniverCollaborationPlugin','registerCommand','state$','UniverFormulaEnginePlugin','univer.operation.toggle-edit-history','Inject','_internalWebWorker','UniverEditHistoryLoaderPlugin','mutations','UniverProSheetsPivot','UniverSheetsChartPlugin','urlChange$','version','univer-history-container-mobile','UNRECOGNIZED','_commandService','defineProperty','_setupSubUnitSync','UniverSheetsDataValidationUIPlugin','UniverProEditHistoryViewer','UniverSheetsFormula','current','UniverSheetsDataValidation','HistoryManagerService','Entered','Exited','from','UniverDataValidationPlugin','displayName','UniverSheetsDrawingUi','darkMode$','IRemoteInstanceService','_historyUniver$','UniverRpc','MobileHistoryLoaderService','2386605makOeF','default','UniverSheetsFormulaUIPlugin','Injector','_dataLoaderService','revertRevision$','getCurrentUnitOfType','ICommandService','get','triggerLoadVersions','path','subscribe','dispose','UNIVER_CONTAINER_ID_KEY','M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z','editHistory.panel.reverting','CHANGESET_ACK','_localeService','length','HistoryModeStatus','UniverSheetsChartUIPlugin','UniverSheetsFormulaPlugin','UniverEditHistoryLoaderMobilePlugin','_permissionService','event$','IAuthzIoService','exhaustSavingTask','ThemeService','loadUnit','register','Univer','block','composePermission','UniverDrawingPlugin','dataset','_themeService','BUTTON','edit-history-loader.config','location','pluginName','pipe','CollaborationStatus','setConfig','UniverDesign','HistoryIcon','_initListener','3929vkiEsU','packageName','symbol','executeCommand','_localCacheService','colorChannel1','zIndex','ComponentManager','dispose$','_univerInstanceService','registerPlugin','_initContainer','DataLoaderService','DisposableCollection','invoke','univer-container','mergeMenu','setLocale','[HistoryLoaderService]:\x20Plugin\x20','historyAIassistantEnabled','_handleRevertAcknowledgement','_disposableCollection','editHistory.panel.listFetchError','getSheetBySheetId','menu','reload','none','width','_dialogService','object','setParam','fromCollab','univer-history-container','clear','getCurrentLocale','UniverDocsUi','univer.operation.exit-edit-history','top','UniverEngineRender','UniverIcon','UniverProCollaborationClientUi','workerURL','IImageIoService','UniverDataValidation','Module','UniverProSheetsChart','UniverProSheetsChartUi','DependentOn','session','RevertRevisionMutation','split','useRef','editHistory.info.initializing','fill','function','Plugin','getElementById','children','UNIVER_UNKNOWN','getUnhiddenWorksheets','div','includes','createElement','UniverSheetsConditionalFormatting','getParam','entries','_sidebarService','getSheetCommandTarget','uComp','UNIVER_SLIDE','IPermissionService','UniverProCollaboration','_collaborationController','UniverSheetsHyperLinkUi','set','white','CommandType','UniverSheetsFilter','toPrimitive','_initUniver','combineLatest','historyPanelComponentKey','UniverLicensePlugin','1em','defs','editHistory.panel.revertFailed','CollaborationController','history-container','subunit','11XKMGfW','getSheetId','history-icon_clip0_907_281','UniverSheetsShapePlugin','_pluginMap','UniverSheetsUi','data','IURLService','exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react','UniverUIPlugin','RibbonStartGroup','IMessageService','onCommandExecuted','toString','UniverRenderEnginePlugin','triggerCustomVersions','UniverProSheetsSparkline','_historyManagerService','forEach','whenReady','asObservable','100%','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','UNIVER_SHEET','url(#$1','every','Workbook','permissionId','close','BehaviorSubject','UniverDocsPlugin','_menuManagerService','activeSheet$','UniverRPCMainThreadPlugin','4004805hszpGR','UniverSheetsTablePlugin','UniverProEditHistoryLoader','toDisposable','ILocalCacheService','UniverSheetsNumfmt','UniverSheetsConditionalFormattingPlugin','_checkCanRevert','UniverSheetsPlugin','use','IMenuManagerService','UniverCore','UniverSheetsDrawingUIPlugin','replace','prototype','historyUniver','UNIVER_HISTORY_CONTAINER_ID','onStarting','disposeUnit','xlink:href','RangeProtectionPermissionEditPoint','getCollabEntity','WorkbookRecoverHistoryPermission','call','map','RangeProtectionRuleModel','UNIVER_DOC','UniverSheetsFilterUIPlugin','getMenuHiddenObservable','takeUntil','disposeWithMe','_urlService','display','amd','_initPlugins','UniverDocsUIPlugin','unsubscribe','value','historyListServerUrl','position','terminate','1343871ARhyzV','setTheme','historyPanelHidden','closeAll','UniverSheetSparklinePlugin','459GcslMQ','currentTheme$','next','M0\x200H16V16H0z','18HyrHls','AuthzIoHttpService','_configService','UniverSheetsHyperLink','UniverSheetsFilterPlugin','univerContainerId','getUnitId','mountHistoryContent','_injector','getSubunitRuleList','UniverProCollaborationClient','string','Error','\x20has\x20been\x20registered.','_init','4254240iYfnjK','Disposable','getAllPlugins','IUniverInstanceService','rxjs','has','UNIVER_CONTAINER_ID','getLocales','height','attrs','_revertErrorTimer','UniverSheetsFilterUi','WorkbookViewHistoryPermission','style','onSteady','decorate','UniverSheetsHyperLinkUIPlugin','UniverSheetsMobileUIPlugin','LS_CONFIG_KEY','UniverSheetsDrawing','trim','absolute','0.20.0','UniverSheetsDataValidationMobileUIPlugin','WorkbookEditablePermission','UniverNetworkPlugin','UniverInstanceType','status','React','unMountHistoryContent','UniverSheetsNumfmtPlugin','UniverDrawingUi','OPERATION','IDialogService','UniverSheetSparklineUIPlugin'];_0x268d=function(){return _0x15c9cd;};return _0x268d();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "private": false,
5
5
  "description": "UniverSheet edit history loader",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,53 +46,53 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@univerjs/icons": "^1.1.1",
49
- "@univerjs-pro/collaboration": "0.19.0",
50
- "@univerjs-pro/collaboration-client": "0.19.0",
51
- "@univerjs-pro/collaboration-client-ui": "0.19.0",
52
- "@univerjs-pro/license": "0.19.0",
53
- "@univerjs-pro/edit-history-viewer": "0.19.0",
54
- "@univerjs-pro/sheets-chart-ui": "0.19.0",
55
- "@univerjs-pro/sheets-chart": "0.19.0",
56
- "@univerjs-pro/sheets-pivot": "0.19.0",
57
- "@univerjs-pro/sheets-shape-ui": "0.19.0",
58
- "@univerjs-pro/sheets-shape": "0.19.0",
59
- "@univerjs-pro/sheets-sparkline-ui": "0.19.0",
60
- "@univerjs/core": "0.19.0",
61
- "@univerjs/data-validation": "0.19.0",
62
- "@univerjs-pro/sheets-sparkline": "0.19.0",
63
- "@univerjs/docs": "0.19.0",
64
- "@univerjs/docs-ui": "0.19.0",
65
- "@univerjs/drawing": "0.19.0",
66
- "@univerjs/drawing-ui": "0.19.0",
67
- "@univerjs/design": "0.19.0",
68
- "@univerjs/engine-render": "0.19.0",
69
- "@univerjs/engine-formula": "0.19.0",
70
- "@univerjs/network": "0.19.0",
49
+ "@univerjs-pro/collaboration": "0.20.0",
50
+ "@univerjs-pro/collaboration-client": "0.20.0",
51
+ "@univerjs-pro/collaboration-client-ui": "0.20.0",
52
+ "@univerjs-pro/edit-history-viewer": "0.20.0",
53
+ "@univerjs-pro/sheets-chart": "0.20.0",
54
+ "@univerjs-pro/sheets-pivot": "0.20.0",
55
+ "@univerjs-pro/sheets-chart-ui": "0.20.0",
56
+ "@univerjs-pro/sheets-shape": "0.20.0",
57
+ "@univerjs-pro/sheets-shape-ui": "0.20.0",
58
+ "@univerjs-pro/license": "0.20.0",
59
+ "@univerjs-pro/sheets-sparkline-ui": "0.20.0",
60
+ "@univerjs/core": "0.20.0",
61
+ "@univerjs/data-validation": "0.20.0",
62
+ "@univerjs-pro/sheets-sparkline": "0.20.0",
63
+ "@univerjs/docs": "0.20.0",
64
+ "@univerjs/design": "0.20.0",
65
+ "@univerjs/docs-ui": "0.20.0",
66
+ "@univerjs/drawing": "0.20.0",
67
+ "@univerjs/drawing-ui": "0.20.0",
68
+ "@univerjs/engine-formula": "0.20.0",
69
+ "@univerjs/engine-render": "0.20.0",
71
70
  "@univerjs/protocol": "0.1.48",
72
- "@univerjs/sheets": "0.19.0",
73
- "@univerjs/rpc": "0.19.0",
74
- "@univerjs/sheets-conditional-formatting": "0.19.0",
75
- "@univerjs/sheets-conditional-formatting-ui": "0.19.0",
76
- "@univerjs/sheets-data-validation-ui": "0.19.0",
77
- "@univerjs/sheets-data-validation": "0.19.0",
78
- "@univerjs/sheets-drawing": "0.19.0",
79
- "@univerjs/sheets-drawing-ui": "0.19.0",
80
- "@univerjs/sheets-filter": "0.19.0",
81
- "@univerjs/sheets-filter-ui": "0.19.0",
82
- "@univerjs/sheets-formula": "0.19.0",
83
- "@univerjs/sheets-formula-ui": "0.19.0",
84
- "@univerjs/sheets-hyper-link": "0.19.0",
85
- "@univerjs/sheets-numfmt": "0.19.0",
86
- "@univerjs/sheets-ui": "0.19.0",
87
- "@univerjs/sheets-hyper-link-ui": "0.19.0",
88
- "@univerjs/sheets-table": "0.19.0",
89
- "@univerjs/ui": "0.19.0"
71
+ "@univerjs/network": "0.20.0",
72
+ "@univerjs/rpc": "0.20.0",
73
+ "@univerjs/sheets": "0.20.0",
74
+ "@univerjs/sheets-conditional-formatting": "0.20.0",
75
+ "@univerjs/sheets-data-validation-ui": "0.20.0",
76
+ "@univerjs/sheets-data-validation": "0.20.0",
77
+ "@univerjs/sheets-conditional-formatting-ui": "0.20.0",
78
+ "@univerjs/sheets-drawing-ui": "0.20.0",
79
+ "@univerjs/sheets-drawing": "0.20.0",
80
+ "@univerjs/sheets-filter": "0.20.0",
81
+ "@univerjs/sheets-filter-ui": "0.20.0",
82
+ "@univerjs/sheets-formula": "0.20.0",
83
+ "@univerjs/sheets-hyper-link": "0.20.0",
84
+ "@univerjs/sheets-hyper-link-ui": "0.20.0",
85
+ "@univerjs/sheets-numfmt": "0.20.0",
86
+ "@univerjs/sheets-table": "0.20.0",
87
+ "@univerjs/sheets-formula-ui": "0.20.0",
88
+ "@univerjs/sheets-ui": "0.20.0",
89
+ "@univerjs/ui": "0.20.0"
90
90
  },
91
91
  "devDependencies": {
92
92
  "rxjs": "7.8.2",
93
93
  "typescript": "^6.0.2",
94
94
  "vitest": "^4.1.1",
95
- "@univerjs-infra/shared": "0.19.0"
95
+ "@univerjs-infra/shared": "0.20.0"
96
96
  },
97
97
  "scripts": {
98
98
  "test": "vitest run",