@univerjs-pro/edit-history-loader 0.2.12 → 0.2.13
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
|
-
'use strict';var _0x146ce8=_0x45ac;(function(_0x46a8f9,_0x28cf8d){var _0x34437f=_0x45ac,_0x42b6b9=_0x46a8f9();while(!![]){try{var _0x4a69b7=parseInt(_0x34437f(0x13b))/0x1+-parseInt(_0x34437f(0x150))/0x2*(parseInt(_0x34437f(0xfe))/0x3)+parseInt(_0x34437f(0x1b2))/0x4*(-parseInt(_0x34437f(0x145))/0x5)+-parseInt(_0x34437f(0x140))/0x6*(-parseInt(_0x34437f(0x1ac))/0x7)+parseInt(_0x34437f(0x1ae))/0x8*(-parseInt(_0x34437f(0x134))/0x9)+parseInt(_0x34437f(0x14e))/0xa*(-parseInt(_0x34437f(0x17b))/0xb)+-parseInt(_0x34437f(0x151))/0xc*(-parseInt(_0x34437f(0x180))/0xd);if(_0x4a69b7===_0x28cf8d)break;else _0x42b6b9['push'](_0x42b6b9['shift']());}catch(_0x4732fe){_0x42b6b9['push'](_0x42b6b9['shift']());}}}(_0x4a18,0x56fe3));var D=Object[_0x146ce8(0x190)],q=(_0x23a4fa,_0x25bf91,_0x57e3d4)=>_0x25bf91 in _0x23a4fa?D(_0x23a4fa,_0x25bf91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57e3d4}):_0x23a4fa[_0x25bf91]=_0x57e3d4,f=(_0x1d53c6,_0x33a479,_0x49cd57)=>q(_0x1d53c6,typeof _0x33a479!='symbol'?_0x33a479+'':_0x33a479,_0x49cd57);function _0x45ac(_0x4c30a6,_0x14f074){var _0x4a18f8=_0x4a18();return _0x45ac=function(_0x45acf0,_0x4ff00a){_0x45acf0=_0x45acf0-0xd1;var _0x3b15b4=_0x4a18f8[_0x45acf0];return _0x3b15b4;},_0x45ac(_0x4c30a6,_0x14f074);}Object[_0x146ce8(0x190)](exports,Symbol[_0x146ce8(0x17f)],{'value':_0x146ce8(0xe2)});const o=require(_0x146ce8(0x129)),P=require(_0x146ce8(0x10c)),x=require(_0x146ce8(0x107)),k=require(_0x146ce8(0x1a6)),F=require(_0x146ce8(0x1c0)),h=require('@univerjs/sheets'),M=require(_0x146ce8(0xeb)),g=require(_0x146ce8(0x114)),S=require(_0x146ce8(0x186)),m=require('@univerjs-pro/collaboration'),V=require(_0x146ce8(0x133)),A=require(_0x146ce8(0x1bb)),$=require(_0x146ce8(0xf4)),W=require(_0x146ce8(0x10b)),Y=require('@univerjs/sheets-hyper-link'),B=require(_0x146ce8(0x1a0)),G=require(_0x146ce8(0x16a)),K=require(_0x146ce8(0x192)),z=require('@univerjs/sheets-formula'),Z=require('@univerjs/engine-formula'),J=require('@univerjs/rpc'),Q=require(_0x146ce8(0x181)),X=require(_0x146ce8(0x15e)),ee=require('@univerjs/sheets-drawing-ui'),ie=require(_0x146ce8(0xed)),H=require(_0x146ce8(0x158)),te=require(_0x146ce8(0x18d)),U=require(_0x146ce8(0x1a9)),re=require(_0x146ce8(0x1c6)),p=require(_0x146ce8(0x10a));var ne=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],oe=(_0x502d2c,_0x2fa6c9,_0x256087,_0x25891c)=>{var _0x50afa8=_0x146ce8;for(var _0x15cfbb=_0x25891c>0x1?void 0x0:_0x25891c?se(_0x2fa6c9,_0x256087):_0x2fa6c9,_0x5158b3=_0x502d2c[_0x50afa8(0x113)]-0x1,_0x1b3eb0;_0x5158b3>=0x0;_0x5158b3--)(_0x1b3eb0=_0x502d2c[_0x5158b3])&&(_0x15cfbb=(_0x25891c?_0x1b3eb0(_0x2fa6c9,_0x256087,_0x15cfbb):_0x1b3eb0(_0x15cfbb))||_0x15cfbb);return _0x25891c&&_0x15cfbb&&ne(_0x2fa6c9,_0x256087,_0x15cfbb),_0x15cfbb;},d=(_0xcb0d98,_0x1f3185)=>(_0x34cba2,_0x5540e4)=>_0x1f3185(_0x34cba2,_0x5540e4,_0xcb0d98);const ae=_0x146ce8(0x193),O=_0x146ce8(0x156),y=_0x146ce8(0x131);exports[_0x146ce8(0xef)]=class extends o[_0x146ce8(0xe3)]{constructor(_0x517cb1,_0x914283,_0x461b5f,_0x36757e,_0x2ff148,_0x5cd9c2,_0x30352c,_0x42ef17,_0x22824c,_0x17c52a){var _0x4da78c=_0x146ce8;super(),f(this,'_historyUniver',null),f(this,'_disposableCollection',new o[(_0x4da78c(0x105))]()),(this[_0x4da78c(0x15a)]=_0x517cb1,this[_0x4da78c(0x12a)]=_0x914283,this[_0x4da78c(0x1bc)]=_0x461b5f,this[_0x4da78c(0x1bf)]=_0x36757e,this['_commandService']=_0x2ff148,this[_0x4da78c(0x15b)]=_0x5cd9c2,this[_0x4da78c(0xf5)]=_0x30352c,this[_0x4da78c(0x187)]=_0x42ef17,this['_dialogService']=_0x22824c,this['_sidebarService']=_0x17c52a,this['_init']());}[_0x146ce8(0x11b)](){var _0x41b9a9=_0x146ce8,_0x301818;const _0x1a484d=(_0x301818=this[_0x41b9a9(0x1bf)][_0x41b9a9(0x118)](O))!=null?_0x301818:ae,_0x4b187d=document[_0x41b9a9(0x102)](_0x1a484d);if(!_0x4b187d)return;const _0x25238a=document['createElement']('div');_0x25238a['id']=y,_0x25238a['style'][_0x41b9a9(0x10e)]='absolute',_0x25238a[_0x41b9a9(0x16e)][_0x41b9a9(0x13e)]='0',_0x25238a[_0x41b9a9(0x16e)][_0x41b9a9(0x170)]='0',_0x25238a[_0x41b9a9(0x16e)][_0x41b9a9(0x1b3)]=_0x41b9a9(0x16d),_0x25238a[_0x41b9a9(0x16e)][_0x41b9a9(0x183)]=_0x41b9a9(0x16d),_0x25238a[_0x41b9a9(0x16e)]['zIndex']=_0x41b9a9(0x12e),_0x25238a['style'][_0x41b9a9(0x115)]=_0x41b9a9(0xf3),_0x4b187d[_0x41b9a9(0x125)](_0x25238a);}[_0x146ce8(0x147)](){var _0x11851b=_0x146ce8;super[_0x11851b(0x147)](),this[_0x11851b(0x162)]();}[_0x146ce8(0x141)](_0x578fe0){var _0x5db88f=_0x146ce8;const _0x2d543f=document[_0x5db88f(0x102)](y);_0x2d543f&&(_0x2d543f['style'][_0x5db88f(0x115)]='block',this[_0x5db88f(0x185)](_0x578fe0,y));}['unMountHistoryContent'](){var _0x50d519=_0x146ce8,_0x494cb9;this['_disposableCollection'][_0x50d519(0x147)](),(_0x494cb9=this[_0x50d519(0x1c2)])==null||_0x494cb9[_0x50d519(0x147)](),this[_0x50d519(0x1c2)]=null;const _0x2362de=document[_0x50d519(0x102)](y);_0x2362de&&(_0x2362de[_0x50d519(0x16e)][_0x50d519(0x115)]=_0x50d519(0xf3));}[_0x146ce8(0x185)](_0x324195,_0x1409b2){var _0x14f9fb=_0x146ce8;if(this['_historyUniver'])return;const _0x46db74=new o[(_0x14f9fb(0xf1))]({'theme':P[_0x14f9fb(0xe1)],'locales':{[this['_localeService']['getCurrentLocale']()]:this[_0x14f9fb(0x12a)][_0x14f9fb(0x1b1)]()},'override':[[o[_0x14f9fb(0x157)],null]]});this[_0x14f9fb(0x1c2)]=_0x46db74;const _0x35d87b=_0x46db74['__getInjector']();_0x35d87b[_0x14f9fb(0xee)](o[_0x14f9fb(0x15c)])[_0x14f9fb(0x17d)](this[_0x14f9fb(0x12a)][_0x14f9fb(0x18c)]()),_0x46db74[_0x14f9fb(0x167)](H[_0x14f9fb(0x142)],{'override':[[H[_0x14f9fb(0x12c)],null]]}),_0x46db74[_0x14f9fb(0x167)](x['UniverDocsPlugin'],{'hasScroll':!0x1}),_0x46db74['registerPlugin'](k['UniverDocsUIPlugin']),_0x46db74[_0x14f9fb(0x167)](F[_0x14f9fb(0x111)]),_0x46db74['registerPlugin'](g[_0x14f9fb(0x143)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[g[_0x14f9fb(0x16c)],null]]}),_0x46db74[_0x14f9fb(0x167)](h[_0x14f9fb(0xfb)],{'notExecuteFormula':!0x0}),_0x46db74[_0x14f9fb(0x167)](M[_0x14f9fb(0xf8)]),_0x46db74[_0x14f9fb(0x167)](m['UniverCollaborationPlugin']),_0x46db74[_0x14f9fb(0x167)](V[_0x14f9fb(0x17a)]),_0x46db74[_0x14f9fb(0x167)](A[_0x14f9fb(0x139)]),_0x46db74[_0x14f9fb(0x167)]($[_0x14f9fb(0x19e)]),_0x46db74[_0x14f9fb(0x167)](W[_0x14f9fb(0x1c7)]),_0x46db74[_0x14f9fb(0x167)](Y['UniverSheetsHyperLinkPlugin']),_0x46db74['registerPlugin'](B[_0x14f9fb(0x1c5)]),_0x46db74['registerPlugin'](G[_0x14f9fb(0xde)]),_0x46db74[_0x14f9fb(0x167)](Q['UniverSheetsDataValidationPlugin']),_0x46db74[_0x14f9fb(0x167)](K[_0x14f9fb(0x120)]),_0x46db74[_0x14f9fb(0x167)](Z[_0x14f9fb(0x14c)],{'notExecuteFormula':!0x0}),_0x46db74[_0x14f9fb(0x167)](z['UniverSheetsFormulaPlugin']),_0x46db74[_0x14f9fb(0x167)](J['UniverRPCMainThreadPlugin'],{'workerURL':_0x14f9fb(0x16b)}),_0x46db74[_0x14f9fb(0x167)](X[_0x14f9fb(0x14d)]),_0x46db74[_0x14f9fb(0x167)](ie[_0x14f9fb(0x152)]),_0x46db74[_0x14f9fb(0x167)](ee['UniverSheetsDrawingUIPlugin']),_0x46db74['registerPlugin'](te[_0x14f9fb(0xdf)],{'notExecuteFormula':!0x0}),_0x46db74[_0x14f9fb(0x167)](S['UniverEditHistoryViewerPlugin']),_0x35d87b[_0x14f9fb(0x1a4)](_0x180c96=>{var _0x4e09bd=_0x14f9fb;this[_0x4e09bd(0x137)](_0x180c96,_0x324195),this['_initMessageService'](_0x180c96,this['_messageService']);});const _0x231a7a=_0x35d87b[_0x14f9fb(0xee)](S[_0x14f9fb(0xfa)]),_0xafbe28=this[_0x14f9fb(0x159)](_0x324195);_0x231a7a[_0x14f9fb(0x194)](_0x324195,_0x1409b2,_0xafbe28);}[_0x146ce8(0x137)](_0x325388,_0x598887){var _0x2c9dbb=_0x146ce8;const _0x1d2d96=_0x325388[_0x2c9dbb(0xee)](S[_0x2c9dbb(0xfa)]);this[_0x2c9dbb(0xe9)][_0x2c9dbb(0x148)](_0x1d2d96[_0x2c9dbb(0x169)][_0x2c9dbb(0xdc)](_0x42310b=>{var _0x38c910=_0x2c9dbb;switch(_0x42310b){case S[_0x38c910(0x19a)][_0x38c910(0x164)]:this[_0x38c910(0x1a5)][_0x38c910(0x1c3)](),this[_0x38c910(0x13d)][_0x38c910(0x13c)]();break;case S[_0x38c910(0x19a)][_0x38c910(0x1a7)]:this['unMountHistoryContent']();break;case S[_0x38c910(0x19a)][_0x38c910(0x11d)]:this[_0x38c910(0x162)](),this[_0x38c910(0x15b)][_0x38c910(0x17c)]({'content':this['_localeService']['t'](_0x38c910(0x18b)),'type':P[_0x38c910(0x135)]['Error'],'duration':0xbb8});break;}})),this[_0x2c9dbb(0xe9)][_0x2c9dbb(0x148)](_0x1d2d96[_0x2c9dbb(0x146)][_0x2c9dbb(0xdc)](async _0x543d86=>{var _0x6a4ec4=_0x2c9dbb;_0x543d86&&this[_0x6a4ec4(0x1b7)]['executeCommand'](m[_0x6a4ec4(0xe0)]['id'],{'unitId':_0x598887,'revision':_0x543d86});}));}['_initMessageService'](_0x9d43fd,_0x1f0bb0){var _0xe76119=_0x146ce8;const _0x370447=_0x9d43fd[_0xe76119(0xee)](g['IMessageService']),_0x67fed6=_0x1f0bb0[_0xe76119(0x144)]();_0x67fed6&&_0x370447[_0xe76119(0x1b0)](_0x67fed6);}[_0x146ce8(0x159)](_0x1e508c){var _0x243530=_0x146ce8;const _0x560652=this[_0x243530(0x1bc)][_0x243530(0xe8)](_0x1e508c)[_0x243530(0x14f)]()[_0x243530(0x15f)](_0x19ec2a=>_0x19ec2a[_0x243530(0xe7)]()),_0x535436=new h['WorkbookEditablePermission'](_0x1e508c)['id'],_0x27a03b=_0x560652['map'](_0x2f7e91=>new h[(_0x243530(0x1bd))](_0x1e508c,_0x2f7e91)['id']),_0x5185b=_0x560652[_0x243530(0x15f)](_0x4062d9=>this[_0x243530(0x187)][_0x243530(0xd7)](_0x1e508c,_0x4062d9)['map'](_0x3074f7=>new h['RangeProtectionPermissionEditPoint'](_0x1e508c,_0x4062d9,_0x3074f7[_0x243530(0x127)])['id']))[_0x243530(0x14a)](),_0x119d0f=new h['WorkbookRecoverHistoryPermission'](_0x1e508c)['id'];return this[_0x243530(0xf5)]['composePermission']([_0x535436,..._0x27a03b,..._0x5185b,_0x119d0f])[_0x243530(0x112)](_0x54ea68=>!!_0x54ea68['value']);}},exports[_0x146ce8(0xef)]=oe([o[_0x146ce8(0x1a2)](o[_0x146ce8(0xd3)][_0x146ce8(0x11e)],exports[_0x146ce8(0xef)]),d(0x0,o[_0x146ce8(0x176)](o[_0x146ce8(0xda)])),d(0x1,o[_0x146ce8(0x176)](o[_0x146ce8(0x15c)])),d(0x2,o['IUniverInstanceService']),d(0x3,o[_0x146ce8(0x108)]),d(0x4,o[_0x146ce8(0x18a)]),d(0x5,g['IMessageService']),d(0x6,o[_0x146ce8(0x10f)]),d(0x7,o[_0x146ce8(0x176)](h['RangeProtectionRuleModel'])),d(0x8,o[_0x146ce8(0x176)](g[_0x146ce8(0x16c)])),d(0x9,o['Inject'](g[_0x146ce8(0xd5)]))],exports['HistoryLoaderService']);var u=function(){var _0x38d3c5=_0x146ce8;return u=Object[_0x38d3c5(0xd8)]||function(_0x16d8d2){var _0x2ecd92=_0x38d3c5;for(var _0x1c55aa,_0xbd1fbe=0x1,_0x20da58=arguments['length'];_0xbd1fbe<_0x20da58;_0xbd1fbe++){_0x1c55aa=arguments[_0xbd1fbe];for(var _0x4a3970 in _0x1c55aa)Object[_0x2ecd92(0x1af)][_0x2ecd92(0x191)][_0x2ecd92(0x1ab)](_0x1c55aa,_0x4a3970)&&(_0x16d8d2[_0x4a3970]=_0x1c55aa[_0x4a3970]);}return _0x16d8d2;},u[_0x38d3c5(0x16f)](this,arguments);},ce=function(_0x14786f,_0x410b11){var _0x4745cb=_0x146ce8,_0x5e514e={};for(var _0x246423 in _0x14786f)Object[_0x4745cb(0x1af)][_0x4745cb(0x191)][_0x4745cb(0x1ab)](_0x14786f,_0x246423)&&_0x410b11[_0x4745cb(0xf0)](_0x246423)<0x0&&(_0x5e514e[_0x246423]=_0x14786f[_0x246423]);if(_0x14786f!=null&&typeof Object['getOwnPropertySymbols']==_0x4745cb(0xd4)){for(var _0x41618a=0x0,_0x246423=Object[_0x4745cb(0xea)](_0x14786f);_0x41618a<_0x246423[_0x4745cb(0x113)];_0x41618a++)_0x410b11['indexOf'](_0x246423[_0x41618a])<0x0&&Object[_0x4745cb(0x1af)][_0x4745cb(0x197)][_0x4745cb(0x1ab)](_0x14786f,_0x246423[_0x41618a])&&(_0x5e514e[_0x246423[_0x41618a]]=_0x14786f[_0x246423[_0x41618a]]);}return _0x5e514e;},L=p[_0x146ce8(0x100)](function(_0x10f73e,_0x4caeee){var _0x5ebf5c=_0x146ce8,_0x7303f4=_0x10f73e[_0x5ebf5c(0x1c4)],_0x558efc=_0x10f73e['id'],_0xa88f57=_0x10f73e[_0x5ebf5c(0x1a1)],_0x435246=_0x10f73e['extend'],_0xa00d32=ce(_0x10f73e,[_0x5ebf5c(0x1c4),'id',_0x5ebf5c(0x1a1),_0x5ebf5c(0x199)]),_0x4b4f93='univerjs-icon\x20univerjs-icon-'['concat'](_0x558efc,'\x20')[_0x5ebf5c(0x1b8)](_0xa88f57||'')[_0x5ebf5c(0x160)](),_0xf02773=p[_0x5ebf5c(0xe6)]('_'[_0x5ebf5c(0x1b8)](ge()));return w(_0x7303f4,''[_0x5ebf5c(0x1b8)](_0x558efc),{'defIds':_0x7303f4['defIds'],'idSuffix':_0xf02773[_0x5ebf5c(0x149)]},u({'ref':_0x4caeee,'className':_0x4b4f93},_0xa00d32),_0x435246);});function w(_0x27e48a,_0x3aa8bd,_0x286951,_0x383b8d,_0x7d2124){var _0x5051ab=_0x146ce8;return p[_0x5051ab(0x124)](_0x27e48a[_0x5051ab(0x132)],u(u({'key':_0x3aa8bd},le(_0x27e48a,_0x286951,_0x7d2124)),_0x383b8d),(ue(_0x27e48a,_0x286951)['children']||[])[_0x5051ab(0x15f)](function(_0x3a9093,_0x4c1b08){var _0x1f6980=_0x5051ab;return w(_0x3a9093,''[_0x1f6980(0x1b8)](_0x3aa8bd,'-')[_0x1f6980(0x1b8)](_0x27e48a['tag'],'-')[_0x1f6980(0x1b8)](_0x4c1b08),_0x286951,void 0x0,_0x7d2124);}));}function le(_0x5c76db,_0x2afbb7,_0x11e717){var _0x3eee6a=_0x146ce8,_0x5bf066=u({},_0x5c76db[_0x3eee6a(0x198)]);_0x11e717!=null&&_0x11e717[_0x3eee6a(0x12d)]&&_0x5bf066['fill']===_0x3eee6a(0x12d)&&(_0x5bf066['fill']=_0x11e717[_0x3eee6a(0x12d)]);var _0x5b6b5a=_0x2afbb7[_0x3eee6a(0x175)];return!_0x5b6b5a||_0x5b6b5a[_0x3eee6a(0x113)]===0x0||(_0x5c76db[_0x3eee6a(0x132)]===_0x3eee6a(0x110)&&_0x5bf066[_0x3eee6a(0x126)]&&(_0x5bf066['xlink:href']=_0x5bf066[_0x3eee6a(0x126)]+_0x2afbb7['idSuffix']),Object[_0x3eee6a(0xe4)](_0x5bf066)[_0x3eee6a(0x174)](function(_0x4c0988){var _0x5c9856=_0x3eee6a,_0x1a79cf=_0x4c0988[0x0],_0xeeafcc=_0x4c0988[0x1];typeof _0xeeafcc==_0x5c9856(0xe5)&&(_0x5bf066[_0x1a79cf]=_0xeeafcc[_0x5c9856(0xfd)](/url\(#(.*)\)/,_0x5c9856(0x1b9)['concat'](_0x2afbb7[_0x5c9856(0x1ad)],')')));})),_0x5bf066;}function ue(_0x538bf6,_0x2abcb2){var _0x413bae=_0x146ce8,_0x1efb5d,_0x7b7b4f=_0x2abcb2[_0x413bae(0x175)];return!_0x7b7b4f||_0x7b7b4f[_0x413bae(0x113)]===0x0?_0x538bf6:_0x538bf6[_0x413bae(0x132)]===_0x413bae(0x171)&&(!((_0x1efb5d=_0x538bf6[_0x413bae(0x172)])===null||_0x1efb5d===void 0x0)&&_0x1efb5d['length'])?u(u({},_0x538bf6),{'children':_0x538bf6[_0x413bae(0x172)][_0x413bae(0x15f)](function(_0x14c14d){var _0x518ec7=_0x413bae;return typeof _0x14c14d['attrs']['id']==_0x518ec7(0xe5)&&_0x7b7b4f&&_0x7b7b4f[_0x518ec7(0xf0)](_0x14c14d['attrs']['id'])>-0x1?u(u({},_0x14c14d),{'attrs':u(u({},_0x14c14d['attrs']),{'id':_0x14c14d[_0x518ec7(0x198)]['id']+_0x2abcb2[_0x518ec7(0x1ad)]})}):_0x14c14d;})}):_0x538bf6;}function ge(){var _0x2b1893=_0x146ce8;return Math[_0x2b1893(0x165)]()[_0x2b1893(0x189)](0x24)[_0x2b1893(0x17e)](0x2,0x8);}L[_0x146ce8(0xf7)]=_0x146ce8(0x11c);var ve={'tag':_0x146ce8(0xd1),'attrs':{'fill':_0x146ce8(0xf3),'viewBox':'0\x200\x2016\x2016','width':_0x146ce8(0x1b5),'height':_0x146ce8(0x1b5)},'children':[{'tag':'g','attrs':{'fill':_0x146ce8(0x1ba),'clipPath':_0x146ce8(0x178)},'children':[{'tag':_0x146ce8(0x11a),'attrs':{'d':_0x146ce8(0x1b6)}},{'tag':_0x146ce8(0x11a),'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':_0x146ce8(0x171),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x146ce8(0x1a3)},'children':[{'tag':_0x146ce8(0x11a),'attrs':{'fill':_0x146ce8(0x163),'d':_0x146ce8(0x106)}}]}]}],'defIds':[_0x146ce8(0x1a3)]},T=p[_0x146ce8(0x100)](function(_0x9596f8,_0x45d4d8){var _0x541c1c=_0x146ce8;return p[_0x541c1c(0x124)](L,Object['assign']({},_0x9596f8,{'id':_0x541c1c(0x101),'ref':_0x45d4d8,'icon':ve}));});T[_0x146ce8(0xf7)]=_0x146ce8(0x10d);const E={'id':_0x146ce8(0x122),'type':o[_0x146ce8(0x1aa)]['OPERATION'],'handler':_0x44e858=>{var _0x36bda6=_0x146ce8;const _0x555696=_0x44e858['get'](exports['HistoryLoaderService']),_0xa0fe25=_0x44e858[_0x36bda6(0xee)](o['IUniverInstanceService']),{unitId:_0x1c6de7}=h[_0x36bda6(0x128)](_0xa0fe25)||{};return _0x1c6de7?(_0x555696[_0x36bda6(0x141)](_0x1c6de7),!0x0):!0x1;}},N='HistorySingle';function de(_0x5674e7){var _0x4c0805=_0x146ce8;return{'id':E['id'],'type':g[_0x4c0805(0x1be)]['BUTTON'],'icon':N,'tooltip':_0x4c0805(0x121),'hidden$':g['getMenuHiddenObservable'](_0x5674e7,o[_0x4c0805(0x117)][_0x4c0805(0x177)]),'disabled$':M[_0x4c0805(0xdb)](_0x5674e7,{'workbookTypes':[h[_0x4c0805(0x182)],h[_0x4c0805(0xd9)]],'worksheetTypes':[],'rangeTypes':[]})};}const he={[g[_0x146ce8(0x168)][_0x146ce8(0x18e)]]:{[E['id']]:{'order':0x0,'menuItemFactory':de}}};var _e=Object[_0x146ce8(0x190)],fe=Object['getOwnPropertyDescriptor'],Se=(_0x4c5fd0,_0x350e55,_0x5b36bb,_0x1f30c3)=>{var _0x4a2836=_0x146ce8;for(var _0x508eeb=_0x1f30c3>0x1?void 0x0:_0x1f30c3?fe(_0x350e55,_0x5b36bb):_0x350e55,_0x57162d=_0x4c5fd0[_0x4a2836(0x113)]-0x1,_0x17e98d;_0x57162d>=0x0;_0x57162d--)(_0x17e98d=_0x4c5fd0[_0x57162d])&&(_0x508eeb=(_0x1f30c3?_0x17e98d(_0x350e55,_0x5b36bb,_0x508eeb):_0x17e98d(_0x508eeb))||_0x508eeb);return _0x1f30c3&&_0x508eeb&&_e(_0x350e55,_0x5b36bb,_0x508eeb),_0x508eeb;},_=(_0x3fe13c,_0x3d70d5)=>(_0x3b5116,_0x1a8bb3)=>_0x3d70d5(_0x3b5116,_0x1a8bb3,_0x3fe13c);let C=class extends o[_0x146ce8(0x173)]{constructor(_0x1d79bc,_0x3d7ebc,_0x266783,_0x3862d6,_0x1a2194,_0x11d2c3,_0x5481ac,_0x17c0c1){var _0x5c1669=_0x146ce8;super(),f(this,_0x5c1669(0x1b4),null),(this[_0x5c1669(0x1b7)]=_0x1d79bc,this['_menuManagerService']=_0x3d7ebc,this[_0x5c1669(0x195)]=_0x266783,this[_0x5c1669(0x196)]=_0x3862d6,this[_0x5c1669(0x12a)]=_0x1a2194,this[_0x5c1669(0x15b)]=_0x11d2c3,this[_0x5c1669(0xf2)]=_0x5481ac,this[_0x5c1669(0x138)]=_0x17c0c1,this['_init']());}[_0x146ce8(0x11b)](){var _0x29fd46=_0x146ce8;[E]['forEach'](_0x3c8a7b=>this['disposeWithMe'](o[_0x29fd46(0xd6)](this[_0x29fd46(0x1b7)]['registerCommand'](_0x3c8a7b)))),this[_0x29fd46(0x13f)](this['_componentManager'][_0x29fd46(0x119)](N,T)),this[_0x29fd46(0x116)][_0x29fd46(0x19b)](he),this[_0x29fd46(0x13f)](this[_0x29fd46(0x1b7)][_0x29fd46(0xfc)](_0x15eb4a=>{var _0x3f310f=_0x29fd46;if(_0x15eb4a['id']===m[_0x3f310f(0xe0)]['id']){this[_0x3f310f(0x15b)][_0x3f310f(0x17c)]({'content':this[_0x3f310f(0x12a)]['t'](_0x3f310f(0x154)),'type':P[_0x3f310f(0x135)][_0x3f310f(0x1c1)],'duration':0x1388});const {unitId:_0x1393f4}=_0x15eb4a['params'],_0x17ec98=this[_0x3f310f(0xf2)][_0x3f310f(0x184)](_0x1393f4),_0x4a7e01=re['combineLatest']([_0x17ec98[_0x3f310f(0x11f)][_0x3f310f(0x109)],_0x17ec98['state$']])[_0x3f310f(0xdc)](async([_0x4145e9,_0x51d544])=>{var _0x16453e=_0x3f310f;_0x4145e9[_0x16453e(0x153)]===m[_0x16453e(0xd2)][_0x16453e(0x166)]&&(_0x51d544==null?void 0x0:_0x51d544[_0x16453e(0x12f)])===U[_0x16453e(0x13a)][_0x16453e(0xdd)]&&_0x4145e9['data']['mutations'][_0x16453e(0x104)](_0xbe8f91=>_0xbe8f91['id']===m[_0x16453e(0xe0)]['id'])&&(this[_0x16453e(0x196)]['unMountHistoryContent'](),_0x4a7e01[_0x16453e(0x179)](),this[_0x16453e(0x1b4)]&&clearTimeout(this[_0x16453e(0x1b4)]),await this[_0x16453e(0x138)]['exhaustSavingTask'](),setTimeout(()=>window[_0x16453e(0x103)][_0x16453e(0x155)]()));});this['_revertErrorTimer']=setTimeout(()=>{var _0x34c21e=_0x3f310f;_0x4a7e01[_0x34c21e(0x179)](),this[_0x34c21e(0x15b)]['show']({'content':this[_0x34c21e(0x12a)]['t']('editHistory.panel.revertFailed'),'type':P[_0x34c21e(0x135)]['Error'],'duration':0xbb8});},0x1388);}}));}};C=Se([o[_0x146ce8(0x1a2)](o[_0x146ce8(0xd3)][_0x146ce8(0x11e)],C),_(0x0,o['ICommandService']),_(0x1,g['IMenuManagerService']),_(0x2,o[_0x146ce8(0x176)](g[_0x146ce8(0xf9)])),_(0x3,o[_0x146ce8(0x176)](exports['HistoryLoaderService'])),_(0x4,o['Inject'](o[_0x146ce8(0x15c)])),_(0x5,g[_0x146ce8(0xff)]),_(0x6,o[_0x146ce8(0x176)](U[_0x146ce8(0x19c)])),_(0x7,o[_0x146ce8(0x176)](U[_0x146ce8(0x15d)]))],C);const ye=_0x146ce8(0x123),me={};function _0x4a18(){var _0x340155=['map','trim','UNIVER_HISTORY_CONTAINER_ID','unMountHistoryContent','#fff','Entered','random','CHANGESET_ACK','registerPlugin','RibbonStartGroup','status$','@univerjs/data-validation','./worker.js','IDialogService','100%','style','apply','left','defs','children','RxDisposable','forEach','defIds','Inject','UNIVER_SHEET','url(#history-single_clip0_907_281)','unsubscribe','UniverSheetsFilterPlugin','3100053PamCtq','show','setLocale','substring','toStringTag','19708WLUSYN','@univerjs/sheets-data-validation','WorkbookEditablePermission','height','getCollabEntity','_initUniver','@univerjs-pro/edit-history-viewer','_selectionProtectionRuleModel','getOwnPropertyDescriptor','toString','ICommandService','editHistory.panel.listFetchError','getCurrentLocale','@univerjs-pro/sheets-pivot','OTHERS','menu','defineProperty','hasOwnProperty','@univerjs/sheets-numfmt','univer-container','triggerLoadVersions','_componentManager','_historyManagerService','propertyIsEnumerable','attrs','extend','HistoryModeStatus','mergeMenu','CollaborationController','UNIVER_UNKNOWN','UniverSheetsConditionalFormattingPlugin','Plugin','@univerjs/sheets-hyper-link-ui','className','OnLifecycle','history-single_clip0_907_281','invoke','_dialogService','@univerjs/docs-ui','Exited','_config','@univerjs-pro/collaboration-client','CommandType','call','21TDsqRJ','idSuffix','745096oNCVwC','prototype','setContainer','getLocales','1313612gWNpPG','width','_revertErrorTimer','1em','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','_commandService','concat','url(#$1','currentColor','@univerjs/sheets-filter-ui','_univerInstanceService','WorksheetEditPermission','MenuItemType','_configService','@univerjs/engine-render','Loading','_historyUniver','closeAll','icon','UniverSheetsHyperLinkUIPlugin','rxjs','UniverSheetsConditionalFormattingUIPlugin','svg','CollaborationEvent','LifecycleStages','function','ISidebarService','toDisposable','getSubunitRuleList','assign','WorkbookViewHistoryPermission','Injector','getCurrentRangeDisable$','subscribe','SYNCED','UniverDataValidationPlugin','UniverSheetsPivotTablePlugin','RevertRevisionMutation','greenTheme','Module','Disposable','entries','string','useRef','getSheetId','getUnit','_disposableCollection','getOwnPropertySymbols','@univerjs/sheets-ui','UniverEditHistoryLoaderPlugin','@univerjs/sheets-drawing','get','HistoryLoaderService','indexOf','Univer','_collaborationController','none','@univerjs/sheets-conditional-formatting','_permissionService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','displayName','UniverSheetsUIPlugin','ComponentManager','HistoryManagerService','UniverSheetsPlugin','onCommandExecuted','replace','57pzkqEk','IMessageService','forwardRef','history-single','getElementById','location','some','DisposableCollection','M0\x200H16V16H0z','@univerjs/docs','IConfigService','event$','react','@univerjs/sheets-conditional-formatting-ui','@univerjs/design','HistorySingle','position','IPermissionService','use','UniverRenderEnginePlugin','every','length','@univerjs/ui','display','_menuManagerService','UniverInstanceType','getConfig','register','path','_init','UniverIcon','Error','Steady','session','UniverSheetsNumfmtPlugin','editHistory.panel.title','univer.operation.toggle-edit-history','edit-history-loader.config','createElement','appendChild','xlink:href','permissionId','getSheetCommandTarget','@univerjs/core','_localeService','onStarting','IImageIoService','colorChannel1','1000','status','type','univer-history-container','tag','@univerjs/sheets-filter','45vowrev','MessageType','setConfig','_initListener','_localCacheService','UniverSheetsFilterUIPlugin','CollaborationStatus','366442JMiCwe','close','_sidebarService','top','disposeWithMe','1166382OfPOcQ','mountHistoryContent','UniverDrawingPlugin','UniverUIPlugin','getContainer','5dGcUHm','revertRevision$','dispose','add','current','flat','UNIVER_CONTAINER_ID_KEY','UniverFormulaEnginePlugin','UniverDrawingUIPlugin','10UsEdls','getSheets','24202CwFOoV','5640BCURDC','UniverSheetsDrawingPlugin','eventID','editHistory.panel.reverting','reload','UNIVER_CONTAINER_ID','IAuthzIoService','@univerjs/drawing','_checkCanRevert','_injector','_messageService','LocaleService','LocalCacheService','@univerjs/drawing-ui'];_0x4a18=function(){return _0x340155;};return _0x4a18();}var pe=Object['defineProperty'],Ie=Object[_0x146ce8(0x188)],Ce=(_0x4e350b,_0x29262c,_0x3ef7cf,_0x2e167c)=>{var _0x26d237=_0x146ce8;for(var _0x33b3d5=_0x2e167c>0x1?void 0x0:_0x2e167c?Ie(_0x29262c,_0x3ef7cf):_0x29262c,_0x5c2008=_0x4e350b[_0x26d237(0x113)]-0x1,_0x1d1c9e;_0x5c2008>=0x0;_0x5c2008--)(_0x1d1c9e=_0x4e350b[_0x5c2008])&&(_0x33b3d5=(_0x2e167c?_0x1d1c9e(_0x29262c,_0x3ef7cf,_0x33b3d5):_0x1d1c9e(_0x33b3d5))||_0x33b3d5);return _0x2e167c&&_0x33b3d5&&pe(_0x29262c,_0x3ef7cf,_0x33b3d5),_0x33b3d5;},R=(_0xabab55,_0x467f9a)=>(_0x7a3e06,_0x6aa844)=>_0x467f9a(_0x7a3e06,_0x6aa844,_0xabab55);const Pe=_0x146ce8(0xf6);var I;exports[_0x146ce8(0xec)]=(I=class extends o[_0x146ce8(0x19f)]{constructor(_0x51e3e3=me,_0x3daf72,_0x466e03){var _0x37eef2=_0x146ce8;super(),this[_0x37eef2(0x1a8)]=_0x51e3e3,this['_injector']=_0x3daf72,this['_configService']=_0x466e03;const {menu:_0x37821e,..._0xf2b30e}=this['_config'];_0x37821e&&this[_0x37eef2(0x1bf)][_0x37eef2(0x136)](_0x37eef2(0x18f),_0x37821e,{'merge':!0x0}),this[_0x37eef2(0x1bf)][_0x37eef2(0x136)](ye,_0xf2b30e);}[_0x146ce8(0x12b)](){var _0x40e662=_0x146ce8;[[exports['HistoryLoaderService']],[C]][_0x40e662(0x174)](_0x385c7c=>this['_injector'][_0x40e662(0x148)](_0x385c7c));}},f(I,_0x146ce8(0x130),o[_0x146ce8(0x117)][_0x146ce8(0x19d)]),f(I,'pluginName',Pe),I),exports[_0x146ce8(0xec)]=Ce([R(0x1,o['Inject'](o['Injector'])),R(0x2,o['IConfigService'])],exports['UniverEditHistoryLoaderPlugin']),exports[_0x146ce8(0x14b)]=O,exports[_0x146ce8(0x161)]=y;
|
|
1
|
+
'use strict';var _0x1eec14=_0x3794;(function(_0x328b53,_0x28af39){var _0x93f28=_0x3794,_0x4973da=_0x328b53();while(!![]){try{var _0x17447c=-parseInt(_0x93f28(0x134))/0x1*(parseInt(_0x93f28(0xf6))/0x2)+parseInt(_0x93f28(0x182))/0x3+-parseInt(_0x93f28(0x171))/0x4+parseInt(_0x93f28(0x137))/0x5+-parseInt(_0x93f28(0x1c3))/0x6*(-parseInt(_0x93f28(0x10a))/0x7)+parseInt(_0x93f28(0x17c))/0x8+parseInt(_0x93f28(0x157))/0x9;if(_0x17447c===_0x28af39)break;else _0x4973da['push'](_0x4973da['shift']());}catch(_0x20f466){_0x4973da['push'](_0x4973da['shift']());}}}(_0x59cb,0xdf399));var D=Object[_0x1eec14(0x10b)],j=(_0x57700a,_0x14c158,_0xe7d638)=>_0x14c158 in _0x57700a?D(_0x57700a,_0x14c158,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7d638}):_0x57700a[_0x14c158]=_0xe7d638,f=(_0xd548cc,_0x3ba21a,_0x366093)=>j(_0xd548cc,typeof _0x3ba21a!=_0x1eec14(0x15e)?_0x3ba21a+'':_0x3ba21a,_0x366093);Object[_0x1eec14(0x10b)](exports,Symbol[_0x1eec14(0xfe)],{'value':_0x1eec14(0x143)});const s=require(_0x1eec14(0x11e)),P=require(_0x1eec14(0x1ad)),q=require('@univerjs/docs'),x=require(_0x1eec14(0x14c)),k=require(_0x1eec14(0x111)),h=require(_0x1eec14(0x13b)),O=require(_0x1eec14(0x107)),v=require('@univerjs/ui'),S=require('@univerjs-pro/edit-history-viewer'),p=require('@univerjs-pro/collaboration'),F=require(_0x1eec14(0x12c)),V=require(_0x1eec14(0x18f)),A=require(_0x1eec14(0x180)),$=require(_0x1eec14(0x165)),W=require(_0x1eec14(0x19e)),Y=require(_0x1eec14(0x1a0)),B=require(_0x1eec14(0x1b6)),G=require(_0x1eec14(0x1b5)),K=require(_0x1eec14(0x16e)),z=require(_0x1eec14(0x139)),Z=require(_0x1eec14(0x1ae)),J=require('@univerjs/sheets-data-validation'),Q=require(_0x1eec14(0x152)),X=require(_0x1eec14(0x181)),ee=require('@univerjs/sheets-drawing'),H=require(_0x1eec14(0x102)),ie=require('@univerjs-pro/sheets-pivot'),E=require(_0x1eec14(0x151)),te=require(_0x1eec14(0x1aa)),C=require(_0x1eec14(0x1a7));var re=Object['defineProperty'],ne=Object[_0x1eec14(0x1c7)],oe=(_0x2e916a,_0x80649b,_0x572d91,_0x7618c3)=>{var _0x43b82e=_0x1eec14;for(var _0x241bb8=_0x7618c3>0x1?void 0x0:_0x7618c3?ne(_0x80649b,_0x572d91):_0x80649b,_0x297834=_0x2e916a[_0x43b82e(0x183)]-0x1,_0x4e151b;_0x297834>=0x0;_0x297834--)(_0x4e151b=_0x2e916a[_0x297834])&&(_0x241bb8=(_0x7618c3?_0x4e151b(_0x80649b,_0x572d91,_0x241bb8):_0x4e151b(_0x241bb8))||_0x241bb8);return _0x7618c3&&_0x241bb8&&re(_0x80649b,_0x572d91,_0x241bb8),_0x241bb8;},d=(_0x47366b,_0x5d05ab)=>(_0x143b55,_0x1808d5)=>_0x5d05ab(_0x143b55,_0x1808d5,_0x47366b);const se=_0x1eec14(0x118),U=_0x1eec14(0x1c6),y=_0x1eec14(0x1bb);exports[_0x1eec14(0x17d)]=class extends s[_0x1eec14(0x100)]{constructor(_0x37d34c,_0x2d9fe8,_0x213986,_0x200eca,_0x526a0e,_0x420de5,_0x210470,_0x3b6f4b,_0x51440e){var _0x197f8c=_0x1eec14;super(),f(this,_0x197f8c(0x192),null),f(this,_0x197f8c(0x1a3),new s[(_0x197f8c(0x1d5))]()),f(this,'_pluginMap',new Map()),(this[_0x197f8c(0x1c9)]=_0x37d34c,this['_univerInstanceService']=_0x2d9fe8,this[_0x197f8c(0x168)]=_0x213986,this[_0x197f8c(0x156)]=_0x200eca,this[_0x197f8c(0x1b0)]=_0x526a0e,this[_0x197f8c(0x145)]=_0x420de5,this[_0x197f8c(0x178)]=_0x210470,this['_dialogService']=_0x3b6f4b,this[_0x197f8c(0x185)]=_0x51440e,this[_0x197f8c(0xee)]());}['_init'](){var _0x5d386a=_0x1eec14;this[_0x5d386a(0xf4)](),this[_0x5d386a(0x1a4)]();}[_0x1eec14(0xf4)](){var _0x55d088=_0x1eec14,_0xe42a28;const _0x117240=(_0xe42a28=this['_configService'][_0x55d088(0x1e4)](U))!=null?_0xe42a28:se,_0x4c20cf=document[_0x55d088(0x142)](_0x117240);if(!_0x4c20cf)return;const _0x45e78a=document[_0x55d088(0x19c)](_0x55d088(0x176));_0x45e78a['id']=y,_0x45e78a[_0x55d088(0x16d)]['position']=_0x55d088(0x104),_0x45e78a[_0x55d088(0x16d)]['top']='0',_0x45e78a[_0x55d088(0x16d)]['left']='0',_0x45e78a[_0x55d088(0x16d)][_0x55d088(0x14f)]=_0x55d088(0x11a),_0x45e78a[_0x55d088(0x16d)][_0x55d088(0x103)]='100%',_0x45e78a['style']['zIndex']=_0x55d088(0x13f),_0x45e78a[_0x55d088(0x16d)][_0x55d088(0xf1)]='none',_0x4c20cf[_0x55d088(0x1db)](_0x45e78a);}[_0x1eec14(0x1a4)](){var _0x4432bf=_0x1eec14;[[H[_0x4432bf(0x170)],{'override':[[H[_0x4432bf(0x1a1)],null]]}],[q[_0x4432bf(0xfc)],{'hasScroll':!0x1}],[x[_0x4432bf(0x12a)]],[k[_0x4432bf(0x1d7)]],[v[_0x4432bf(0x17e)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[v['IDialogService'],null]]}],[h[_0x4432bf(0x154)],{'notExecuteFormula':!0x0}],[O[_0x4432bf(0x1c8)]],[p[_0x4432bf(0x141)]],[F[_0x4432bf(0xea)]],[V['UniverSheetsFilterUIPlugin']],[A['UniverSheetsConditionalFormattingPlugin']],[$[_0x4432bf(0x136)]],[W['UniverSheetsHyperLinkPlugin']],[Y[_0x4432bf(0x10d)]],[B['UniverDataValidationPlugin']],[J[_0x4432bf(0x1c1)]],[G[_0x4432bf(0x164)]],[z[_0x4432bf(0x194)],{'notExecuteFormula':!0x0}],[K['UniverSheetsFormulaPlugin']],[Z[_0x4432bf(0xef)],{'workerURL':_0x4432bf(0x1be)}],[Q[_0x4432bf(0x1bf)]],[ee[_0x4432bf(0x1ac)]],[X['UniverSheetsDrawingUIPlugin']],[ie[_0x4432bf(0x1dc)],{'notExecuteFormula':!0x0}],[S[_0x4432bf(0x1da)]]]['forEach'](([_0x5719c1,_0x10ad07])=>this[_0x4432bf(0x18e)](_0x5719c1,_0x10ad07));}[_0x1eec14(0x11d)](){var _0x32d1ff=_0x1eec14;super['dispose'](),this[_0x32d1ff(0xf5)](),this[_0x32d1ff(0xff)][_0x32d1ff(0x13a)]();}[_0x1eec14(0x18e)](_0x1f5007,_0x1ff1a6,_0x67707e){var _0xceed25=_0x1eec14;if(this[_0xceed25(0xff)][_0xceed25(0x1b3)](_0x1f5007[_0xceed25(0x1c4)])&&!_0x67707e)throw new Error(_0xceed25(0x19d)+_0x1f5007['pluginName']+_0xceed25(0x12e));this['_pluginMap'][_0xceed25(0x163)](_0x1f5007[_0xceed25(0x1c4)],[_0x1f5007,_0x1ff1a6]);}[_0x1eec14(0x173)](){var _0x586775=_0x1eec14;return Array['from'](this[_0x586775(0xff)][_0x586775(0x179)]());}[_0x1eec14(0x11c)](_0x5c925){var _0x5410d2=_0x1eec14;const _0x178849=document[_0x5410d2(0x142)](y);_0x178849&&(_0x178849[_0x5410d2(0x16d)][_0x5410d2(0xf1)]=_0x5410d2(0xf3),this[_0x5410d2(0x131)](_0x5c925,y));}[_0x1eec14(0xf5)](){var _0x20f8eb=_0x1eec14,_0x744d83;this['_disposableCollection'][_0x20f8eb(0x11d)](),(_0x744d83=this['_historyUniver'])==null||_0x744d83[_0x20f8eb(0x11d)](),this[_0x20f8eb(0x192)]=null;const _0x1b5d85=document[_0x20f8eb(0x142)](y);_0x1b5d85&&(_0x1b5d85[_0x20f8eb(0x16d)][_0x20f8eb(0xf1)]='none');}[_0x1eec14(0x131)](_0x2ab10c,_0x502823){var _0x3da272=_0x1eec14;if(this[_0x3da272(0x192)])return;const _0x340f36=new s['Univer']({'theme':P[_0x3da272(0x15a)],'locales':{[this[_0x3da272(0x1c9)][_0x3da272(0x14b)]()]:this['_localeService'][_0x3da272(0x19a)]()},'override':[[s[_0x3da272(0x110)],null]]});this['_historyUniver']=_0x340f36;const _0x1ed70d=_0x340f36[_0x3da272(0x126)]();_0x1ed70d[_0x3da272(0x1b4)](s[_0x3da272(0x1e7)])['setLocale'](this[_0x3da272(0x1c9)][_0x3da272(0x14b)]()),this['_pluginMap'][_0x3da272(0x114)](([_0x2ef683,_0x112ec9])=>{var _0x5ba777=_0x3da272;_0x340f36[_0x5ba777(0x18e)](_0x2ef683,_0x112ec9);}),_0x1ed70d[_0x3da272(0xe8)](_0x26482e=>{var _0x2214a2=_0x3da272;this[_0x2214a2(0x115)](_0x26482e,_0x2ab10c),this['_initMessageService'](_0x26482e,this[_0x2214a2(0x1b0)]);});const _0x4ecf41=_0x1ed70d[_0x3da272(0x1b4)](S[_0x3da272(0x144)]),_0x28ce4a=this[_0x3da272(0x133)](_0x2ab10c);_0x4ecf41[_0x3da272(0x1c0)](_0x2ab10c,_0x502823,_0x28ce4a);}['_initListener'](_0x5bdae4,_0x2fae2a){var _0x1e5d7e=_0x1eec14;const _0x31d3e7=_0x5bdae4[_0x1e5d7e(0x1b4)](S[_0x1e5d7e(0x144)]);this[_0x1e5d7e(0x1a3)][_0x1e5d7e(0x196)](_0x31d3e7[_0x1e5d7e(0x160)][_0x1e5d7e(0x16f)](_0x45c035=>{var _0x321ef5=_0x1e5d7e;switch(_0x45c035){case S[_0x321ef5(0x1a9)][_0x321ef5(0x18d)]:this[_0x321ef5(0x1a8)]['closeAll'](),this[_0x321ef5(0x185)][_0x321ef5(0x116)]();break;case S[_0x321ef5(0x1a9)][_0x321ef5(0x10f)]:this[_0x321ef5(0xf5)]();break;case S[_0x321ef5(0x1a9)][_0x321ef5(0x1cf)]:this[_0x321ef5(0xf5)](),this[_0x321ef5(0x1b0)]['show']({'content':this[_0x321ef5(0x1c9)]['t']('editHistory.panel.listFetchError'),'type':P['MessageType'][_0x321ef5(0x1cf)],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x31d3e7[_0x1e5d7e(0x128)]['subscribe'](async _0x2f3134=>{var _0x3541f1=_0x1e5d7e;_0x2f3134&&this[_0x3541f1(0x156)][_0x3541f1(0x1a6)](p[_0x3541f1(0x172)]['id'],{'unitId':_0x2fae2a,'revision':_0x2f3134});}));}[_0x1eec14(0x190)](_0x4613f0,_0x38d808){var _0x4d489d=_0x1eec14;const _0x1cc912=_0x4613f0['get'](v[_0x4d489d(0x158)]),_0x54d0bf=_0x38d808[_0x4d489d(0x123)]();_0x54d0bf&&_0x1cc912[_0x4d489d(0x1de)](_0x54d0bf);}[_0x1eec14(0x133)](_0x296b2f){var _0x11242e=_0x1eec14;const _0x3cf9c2=this[_0x11242e(0x1a5)][_0x11242e(0x18b)](_0x296b2f)['getSheets']()[_0x11242e(0x1dd)](_0x5abbb9=>_0x5abbb9[_0x11242e(0x121)]()),_0x3e2105=new h[(_0x11242e(0x1c5))](_0x296b2f)['id'],_0x58593d=_0x3cf9c2[_0x11242e(0x1dd)](_0x3204a7=>new h[(_0x11242e(0xeb))](_0x296b2f,_0x3204a7)['id']),_0x309897=_0x3cf9c2[_0x11242e(0x1dd)](_0x401793=>this[_0x11242e(0x178)][_0x11242e(0xfd)](_0x296b2f,_0x401793)['map'](_0x5022be=>new h[(_0x11242e(0xfb))](_0x296b2f,_0x401793,_0x5022be['permissionId'])['id']))['flat'](),_0xe57a8a=new h[(_0x11242e(0x161))](_0x296b2f)['id'];return this['_permissionService'][_0x11242e(0x15f)]([_0x3e2105,..._0x58593d,..._0x309897,_0xe57a8a])[_0x11242e(0x1bc)](_0x20221b=>!!_0x20221b[_0x11242e(0x120)]);}},exports['HistoryLoaderService']=oe([s['OnLifecycle'](s['LifecycleStages'][_0x1eec14(0x16a)],exports[_0x1eec14(0x17d)]),d(0x0,s[_0x1eec14(0x175)](s['LocaleService'])),d(0x1,s[_0x1eec14(0x15d)]),d(0x2,s['IConfigService']),d(0x3,s[_0x1eec14(0x109)]),d(0x4,v[_0x1eec14(0x158)]),d(0x5,s[_0x1eec14(0x1d9)]),d(0x6,s[_0x1eec14(0x175)](h[_0x1eec14(0xf0)])),d(0x7,s[_0x1eec14(0x175)](v[_0x1eec14(0x108)])),d(0x8,s['Inject'](v[_0x1eec14(0x1d4)]))],exports[_0x1eec14(0x17d)]);var u=function(){var _0x599d89=_0x1eec14;return u=Object['assign']||function(_0x5553ec){var _0xf2df08=_0x3794;for(var _0x6298dc,_0x3ab12b=0x1,_0x573478=arguments[_0xf2df08(0x183)];_0x3ab12b<_0x573478;_0x3ab12b++){_0x6298dc=arguments[_0x3ab12b];for(var _0x5e7851 in _0x6298dc)Object[_0xf2df08(0x1b2)][_0xf2df08(0x1b9)][_0xf2df08(0x138)](_0x6298dc,_0x5e7851)&&(_0x5553ec[_0x5e7851]=_0x6298dc[_0x5e7851]);}return _0x5553ec;},u[_0x599d89(0x10c)](this,arguments);},ae=function(_0x281f7f,_0x3a4688){var _0x59a202=_0x1eec14,_0x4cc5bb={};for(var _0x57c8a3 in _0x281f7f)Object[_0x59a202(0x1b2)]['hasOwnProperty']['call'](_0x281f7f,_0x57c8a3)&&_0x3a4688[_0x59a202(0x105)](_0x57c8a3)<0x0&&(_0x4cc5bb[_0x57c8a3]=_0x281f7f[_0x57c8a3]);if(_0x281f7f!=null&&typeof Object[_0x59a202(0x1a2)]==_0x59a202(0x13e)){for(var _0x50e65e=0x0,_0x57c8a3=Object[_0x59a202(0x1a2)](_0x281f7f);_0x50e65e<_0x57c8a3[_0x59a202(0x183)];_0x50e65e++)_0x3a4688[_0x59a202(0x105)](_0x57c8a3[_0x50e65e])<0x0&&Object[_0x59a202(0x1b2)][_0x59a202(0x1c2)][_0x59a202(0x138)](_0x281f7f,_0x57c8a3[_0x50e65e])&&(_0x4cc5bb[_0x57c8a3[_0x50e65e]]=_0x281f7f[_0x57c8a3[_0x50e65e]]);}return _0x4cc5bb;},w=C[_0x1eec14(0x1d0)](function(_0x59e58c,_0x5bec55){var _0x55d804=_0x1eec14,_0x916c7f=_0x59e58c['icon'],_0x167de7=_0x59e58c['id'],_0x56708c=_0x59e58c[_0x55d804(0xf9)],_0x1f5340=_0x59e58c['extend'],_0x3989de=ae(_0x59e58c,[_0x55d804(0xf2),'id',_0x55d804(0xf9),'extend']),_0x592cc9=_0x55d804(0x16b)['concat'](_0x167de7,'\x20')[_0x55d804(0xe9)](_0x56708c||'')[_0x55d804(0x1d3)](),_0x57e5e1=C[_0x55d804(0x101)]('_'[_0x55d804(0xe9)](ue()));return L(_0x916c7f,''[_0x55d804(0xe9)](_0x167de7),{'defIds':_0x916c7f['defIds'],'idSuffix':_0x57e5e1[_0x55d804(0x122)]},u({'ref':_0x5bec55,'className':_0x592cc9},_0x3989de),_0x1f5340);});function L(_0x141dbe,_0x357261,_0x463e9e,_0x569f6f,_0x499559){var _0x256d98=_0x1eec14;return C[_0x256d98(0x19c)](_0x141dbe['tag'],u(u({'key':_0x357261},ce(_0x141dbe,_0x463e9e,_0x499559)),_0x569f6f),(le(_0x141dbe,_0x463e9e)[_0x256d98(0x147)]||[])[_0x256d98(0x1dd)](function(_0xd35b05,_0x489bd7){var _0x5ee7cc=_0x256d98;return L(_0xd35b05,''[_0x5ee7cc(0xe9)](_0x357261,'-')[_0x5ee7cc(0xe9)](_0x141dbe[_0x5ee7cc(0x17b)],'-')['concat'](_0x489bd7),_0x463e9e,void 0x0,_0x499559);}));}function ce(_0x32159a,_0xb0f6c6,_0x40746b){var _0x44e050=_0x1eec14,_0x4c59e6=u({},_0x32159a['attrs']);_0x40746b!=null&&_0x40746b[_0x44e050(0x14e)]&&_0x4c59e6[_0x44e050(0x17a)]===_0x44e050(0x14e)&&(_0x4c59e6[_0x44e050(0x17a)]=_0x40746b[_0x44e050(0x14e)]);var _0x586e5b=_0xb0f6c6[_0x44e050(0xe6)];return!_0x586e5b||_0x586e5b[_0x44e050(0x183)]===0x0||(_0x32159a['tag']===_0x44e050(0x197)&&_0x4c59e6[_0x44e050(0x125)]&&(_0x4c59e6[_0x44e050(0x125)]=_0x4c59e6[_0x44e050(0x125)]+_0xb0f6c6['idSuffix']),Object[_0x44e050(0x19b)](_0x4c59e6)['forEach'](function(_0x452eb1){var _0x5b3750=_0x44e050,_0x46284d=_0x452eb1[0x0],_0x2a7132=_0x452eb1[0x1];typeof _0x2a7132==_0x5b3750(0x1e0)&&(_0x4c59e6[_0x46284d]=_0x2a7132[_0x5b3750(0x193)](/url\(#(.*)\)/,'url(#$1'[_0x5b3750(0xe9)](_0xb0f6c6['idSuffix'],')')));})),_0x4c59e6;}function le(_0x127521,_0x1e255f){var _0xc1a22f=_0x1eec14,_0x12c31a,_0x13ae01=_0x1e255f[_0xc1a22f(0xe6)];return!_0x13ae01||_0x13ae01['length']===0x0?_0x127521:_0x127521[_0xc1a22f(0x17b)]==='defs'&&(!((_0x12c31a=_0x127521[_0xc1a22f(0x147)])===null||_0x12c31a===void 0x0)&&_0x12c31a[_0xc1a22f(0x183)])?u(u({},_0x127521),{'children':_0x127521[_0xc1a22f(0x147)][_0xc1a22f(0x1dd)](function(_0x1757a0){var _0x537b9c=_0xc1a22f;return typeof _0x1757a0['attrs']['id']==_0x537b9c(0x1e0)&&_0x13ae01&&_0x13ae01[_0x537b9c(0x105)](_0x1757a0['attrs']['id'])>-0x1?u(u({},_0x1757a0),{'attrs':u(u({},_0x1757a0[_0x537b9c(0x169)]),{'id':_0x1757a0[_0x537b9c(0x169)]['id']+_0x1e255f[_0x537b9c(0x13d)]})}):_0x1757a0;})}):_0x127521;}function ue(){var _0x478dbe=_0x1eec14;return Math[_0x478dbe(0x1e1)]()[_0x478dbe(0xfa)](0x24)[_0x478dbe(0x1d6)](0x2,0x8);}w[_0x1eec14(0x1b1)]=_0x1eec14(0x191);var ve={'tag':'svg','attrs':{'fill':'none','viewBox':_0x1eec14(0x188),'width':_0x1eec14(0x18a),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x1eec14(0x113),'clipPath':'url(#history-single_clip0_907_281)'},'children':[{'tag':_0x1eec14(0xe5),'attrs':{'d':_0x1eec14(0xe7)}},{'tag':_0x1eec14(0xe5),'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':_0x1eec14(0xf8),'attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x1eec14(0xe5),'attrs':{'fill':_0x1eec14(0x10e),'d':_0x1eec14(0x11b)}}]}]}],'defIds':[_0x1eec14(0x106)]},N=C[_0x1eec14(0x1d0)](function(_0x4581af,_0x2fd28c){var _0x580b79=_0x1eec14;return C[_0x580b79(0x19c)](w,Object[_0x580b79(0x17f)]({},_0x4581af,{'id':_0x580b79(0x112),'ref':_0x2fd28c,'icon':ve}));});N[_0x1eec14(0x1b1)]='HistorySingle';const M={'id':'univer.operation.toggle-edit-history','type':s[_0x1eec14(0x12b)][_0x1eec14(0x1df)],'handler':_0x2cf215=>{var _0x425bea=_0x1eec14;const _0x16fc6e=_0x2cf215[_0x425bea(0x1b4)](exports['HistoryLoaderService']),_0x47b7b2=_0x2cf215[_0x425bea(0x1b4)](s['IUniverInstanceService']),{unitId:_0x37436f}=h[_0x425bea(0x13c)](_0x47b7b2)||{};return _0x37436f?(_0x16fc6e[_0x425bea(0x11c)](_0x37436f),!0x0):!0x1;}},T=_0x1eec14(0x135);function ge(_0x2b5939){var _0x4f00bb=_0x1eec14;return{'id':M['id'],'type':v[_0x4f00bb(0x148)][_0x4f00bb(0x195)],'icon':T,'tooltip':_0x4f00bb(0x149),'hidden$':v[_0x4f00bb(0x153)](_0x2b5939,s[_0x4f00bb(0x119)][_0x4f00bb(0x150)]),'disabled$':O[_0x4f00bb(0x1d1)](_0x2b5939,{'workbookTypes':[h[_0x4f00bb(0x1c5)],h[_0x4f00bb(0x1af)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3794(_0x5cf1c2,_0x18a655){var _0x59cb99=_0x59cb();return _0x3794=function(_0x37945d,_0x3d7eec){_0x37945d=_0x37945d-0xe5;var _0x17dc4f=_0x59cb99[_0x37945d];return _0x17dc4f;},_0x3794(_0x5cf1c2,_0x18a655);}const de={[v['RibbonStartGroup'][_0x1eec14(0x14a)]]:{[M['id']]:{'order':0x0,'menuItemFactory':ge}}};var he=Object[_0x1eec14(0x10b)],_e=Object['getOwnPropertyDescriptor'],fe=(_0xc3a671,_0x1b62c5,_0xee28ad,_0x2eb6de)=>{var _0x308674=_0x1eec14;for(var _0x185ea6=_0x2eb6de>0x1?void 0x0:_0x2eb6de?_e(_0x1b62c5,_0xee28ad):_0x1b62c5,_0x35cdd3=_0xc3a671[_0x308674(0x183)]-0x1,_0x1218ee;_0x35cdd3>=0x0;_0x35cdd3--)(_0x1218ee=_0xc3a671[_0x35cdd3])&&(_0x185ea6=(_0x2eb6de?_0x1218ee(_0x1b62c5,_0xee28ad,_0x185ea6):_0x1218ee(_0x185ea6))||_0x185ea6);return _0x2eb6de&&_0x185ea6&&he(_0x1b62c5,_0xee28ad,_0x185ea6),_0x185ea6;},_=(_0x3d6fe4,_0x3146b9)=>(_0x3e4809,_0x10365b)=>_0x3146b9(_0x3e4809,_0x10365b,_0x3d6fe4);let b=class extends s['RxDisposable']{constructor(_0x18e3de,_0x533101,_0x188fb6,_0x584b38,_0x3cf395,_0x2bffc7,_0x154222,_0xfc11a7){var _0x2a5103=_0x1eec14;super(),f(this,_0x2a5103(0x1e6),null),(this[_0x2a5103(0x156)]=_0x18e3de,this[_0x2a5103(0x199)]=_0x533101,this[_0x2a5103(0x11f)]=_0x188fb6,this['_historyManagerService']=_0x584b38,this[_0x2a5103(0x1c9)]=_0x3cf395,this[_0x2a5103(0x1b0)]=_0x2bffc7,this[_0x2a5103(0x184)]=_0x154222,this[_0x2a5103(0x18c)]=_0xfc11a7,this['_init']());}[_0x1eec14(0xee)](){var _0x9d3c3a=_0x1eec14;[M][_0x9d3c3a(0x114)](_0x1b917d=>this['disposeWithMe'](s[_0x9d3c3a(0x1ab)](this[_0x9d3c3a(0x156)][_0x9d3c3a(0x19f)](_0x1b917d)))),this['disposeWithMe'](this['_componentManager'][_0x9d3c3a(0x1ba)](T,N)),this[_0x9d3c3a(0x199)][_0x9d3c3a(0x162)](de),this[_0x9d3c3a(0x1ce)](this['_commandService'][_0x9d3c3a(0x167)](_0x308b44=>{var _0x3d043f=_0x9d3c3a;if(_0x308b44['id']===p['RevertRevisionMutation']['id']){this[_0x3d043f(0x1b0)][_0x3d043f(0x1e3)]({'content':this['_localeService']['t'](_0x3d043f(0x1ca)),'type':P[_0x3d043f(0x177)][_0x3d043f(0x187)],'duration':0x1388});const {unitId:_0x57c917}=_0x308b44[_0x3d043f(0x15b)],_0x5aa2f0=this[_0x3d043f(0x184)][_0x3d043f(0x15c)](_0x57c917),_0x813c98=te['combineLatest']([_0x5aa2f0['session'][_0x3d043f(0x1d2)],_0x5aa2f0[_0x3d043f(0x146)]])[_0x3d043f(0x16f)](async([_0x5f0da3,_0x337a2c])=>{var _0x1767e9=_0x3d043f;_0x5f0da3[_0x1767e9(0x127)]===p['CollaborationEvent'][_0x1767e9(0x1e2)]&&(_0x337a2c==null?void 0x0:_0x337a2c[_0x1767e9(0x1d8)])===E[_0x1767e9(0x155)][_0x1767e9(0x1b8)]&&_0x5f0da3[_0x1767e9(0x174)][_0x1767e9(0x159)][_0x1767e9(0x1cc)](_0x5be7e9=>_0x5be7e9['id']===p['RevertRevisionMutation']['id'])&&(this[_0x1767e9(0x117)][_0x1767e9(0xf5)](),_0x813c98[_0x1767e9(0xed)](),this[_0x1767e9(0x1e6)]&&clearTimeout(this[_0x1767e9(0x1e6)]),await this[_0x1767e9(0x18c)]['exhaustSavingTask'](),setTimeout(()=>window[_0x1767e9(0x12f)][_0x1767e9(0x16c)]()));});this[_0x3d043f(0x1e6)]=setTimeout(()=>{var _0x21c2f5=_0x3d043f;_0x813c98[_0x21c2f5(0xed)](),this[_0x21c2f5(0x1b0)][_0x21c2f5(0x1e3)]({'content':this[_0x21c2f5(0x1c9)]['t'](_0x21c2f5(0x166)),'type':P['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};b=fe([s['OnLifecycle'](s[_0x1eec14(0x124)][_0x1eec14(0x16a)],b),_(0x0,s[_0x1eec14(0x109)]),_(0x1,v[_0x1eec14(0x189)]),_(0x2,s[_0x1eec14(0x175)](v[_0x1eec14(0x14d)])),_(0x3,s['Inject'](exports['HistoryLoaderService'])),_(0x4,s['Inject'](s[_0x1eec14(0x1e7)])),_(0x5,v[_0x1eec14(0x158)]),_(0x6,s[_0x1eec14(0x175)](E[_0x1eec14(0x129)])),_(0x7,s['Inject'](E[_0x1eec14(0x130)]))],b);const Se=_0x1eec14(0x1cd),ye={};var me=Object[_0x1eec14(0x10b)],pe=Object['getOwnPropertyDescriptor'],Ce=(_0x447e69,_0x283576,_0x36ae87,_0x19d881)=>{var _0x3993cb=_0x1eec14;for(var _0x27b6d2=_0x19d881>0x1?void 0x0:_0x19d881?pe(_0x283576,_0x36ae87):_0x283576,_0x34c5d3=_0x447e69[_0x3993cb(0x183)]-0x1,_0x3e1064;_0x34c5d3>=0x0;_0x34c5d3--)(_0x3e1064=_0x447e69[_0x34c5d3])&&(_0x27b6d2=(_0x19d881?_0x3e1064(_0x283576,_0x36ae87,_0x27b6d2):_0x3e1064(_0x27b6d2))||_0x27b6d2);return _0x19d881&&_0x27b6d2&&me(_0x283576,_0x36ae87,_0x27b6d2),_0x27b6d2;},R=(_0x4f7d0e,_0x2f0161)=>(_0x2596c5,_0x7bf10a)=>_0x2f0161(_0x2596c5,_0x7bf10a,_0x4f7d0e);const Ie='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var I;exports['UniverEditHistoryLoaderPlugin']=(I=class extends s[_0x1eec14(0x198)]{constructor(_0x1494aa=ye,_0x2a2ef0,_0x52815f){var _0x417917=_0x1eec14;super(),this[_0x417917(0x12d)]=_0x1494aa,this[_0x417917(0x132)]=_0x2a2ef0,this[_0x417917(0x168)]=_0x52815f;const {menu:_0x327754,..._0x36f589}=this['_config'];_0x327754&&this[_0x417917(0x168)][_0x417917(0x1e5)]('menu',_0x327754,{'merge':!0x0}),this[_0x417917(0x168)][_0x417917(0x1e5)](Se,_0x36f589),this[_0x417917(0x12d)][_0x417917(0x1cb)]&&this[_0x417917(0x168)][_0x417917(0x1e5)](U,this['_config'][_0x417917(0x1cb)]);}[_0x1eec14(0xec)](){var _0xada0f4=_0x1eec14;[[exports[_0xada0f4(0x17d)]],[b]][_0xada0f4(0x114)](_0x4278a3=>this[_0xada0f4(0x132)]['add'](_0x4278a3));}},f(I,_0x1eec14(0x1bd),s[_0x1eec14(0x119)][_0x1eec14(0x140)]),f(I,_0x1eec14(0x1c4),Ie),I),exports['UniverEditHistoryLoaderPlugin']=Ce([R(0x1,s[_0x1eec14(0x175)](s[_0x1eec14(0x186)])),R(0x2,s[_0x1eec14(0xf7)])],exports['UniverEditHistoryLoaderPlugin']),exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x1eec14(0x1b7)]=y;function _0x59cb(){var _0x386f04=['393428MyCJNr','defineProperty','apply','UniverSheetsHyperLinkUIPlugin','#fff','Exited','IAuthzIoService','@univerjs/engine-render','history-single','currentColor','forEach','_initListener','close','_historyManagerService','univer-container','UniverInstanceType','100%','M0\x200H16V16H0z','mountHistoryContent','dispose','@univerjs/core','_componentManager','value','getSheetId','current','getContainer','LifecycleStages','xlink:href','__getInjector','eventID','revertRevision$','CollaborationController','UniverDocsUIPlugin','CommandType','@univerjs/sheets-filter','_config','\x20has\x20been\x20registered.','location','LocalCacheService','_initUniver','_injector','_checkCanRevert','770306jWENQw','HistorySingle','UniverSheetsConditionalFormattingUIPlugin','2103425EVyfAm','call','@univerjs/engine-formula','clear','@univerjs/sheets','getSheetCommandTarget','idSuffix','function','1000','UNIVER_UNKNOWN','UniverCollaborationPlugin','getElementById','Module','HistoryManagerService','_permissionService','state$','children','MenuItemType','editHistory.panel.title','OTHERS','getCurrentLocale','@univerjs/docs-ui','ComponentManager','colorChannel1','width','UNIVER_SHEET','@univerjs-pro/collaboration-client','@univerjs/drawing-ui','getMenuHiddenObservable','UniverSheetsPlugin','CollaborationStatus','_commandService','13129515KDHTfi','IMessageService','mutations','greenTheme','params','getCollabEntity','IUniverInstanceService','symbol','composePermission','status$','WorkbookRecoverHistoryPermission','mergeMenu','set','UniverSheetsNumfmtPlugin','@univerjs/sheets-conditional-formatting-ui','editHistory.panel.revertFailed','onCommandExecuted','_configService','attrs','Steady','univerjs-icon\x20univerjs-icon-','reload','style','@univerjs/sheets-formula','subscribe','UniverDrawingPlugin','6293432KDicAj','RevertRevisionMutation','getAllPlugins','data','Inject','div','MessageType','_selectionProtectionRuleModel','values','fill','tag','1894464cgPfXw','HistoryLoaderService','UniverUIPlugin','assign','@univerjs/sheets-conditional-formatting','@univerjs/sheets-drawing-ui','3543957zgFSsb','length','_collaborationController','_sidebarService','Injector','Loading','0\x200\x2016\x2016','IMenuManagerService','1em','getUnit','_localCacheService','Entered','registerPlugin','@univerjs/sheets-filter-ui','_initMessageService','UniverIcon','_historyUniver','replace','UniverFormulaEnginePlugin','BUTTON','add','use','Plugin','_menuManagerService','getLocales','entries','createElement','[HistoryLoaderService]:\x20Plugin\x20','@univerjs/sheets-hyper-link','registerCommand','@univerjs/sheets-hyper-link-ui','IImageIoService','getOwnPropertySymbols','_disposableCollection','_initPlugins','_univerInstanceService','executeCommand','react','_dialogService','HistoryModeStatus','rxjs','toDisposable','UniverSheetsDrawingPlugin','@univerjs/design','@univerjs/rpc','WorkbookViewHistoryPermission','_messageService','displayName','prototype','has','get','@univerjs/sheets-numfmt','@univerjs/data-validation','UNIVER_HISTORY_CONTAINER_ID','SYNCED','hasOwnProperty','register','univer-history-container','every','type','./worker.js','UniverDrawingUIPlugin','triggerLoadVersions','UniverSheetsDataValidationPlugin','propertyIsEnumerable','78vdOJJG','pluginName','WorkbookEditablePermission','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','UniverSheetsUIPlugin','_localeService','editHistory.panel.reverting','univerContainerId','some','edit-history-loader.config','disposeWithMe','Error','forwardRef','getCurrentRangeDisable$','event$','trim','ISidebarService','DisposableCollection','substring','UniverRenderEnginePlugin','status','IPermissionService','UniverEditHistoryViewerPlugin','appendChild','UniverSheetsPivotTablePlugin','map','setContainer','OPERATION','string','random','CHANGESET_ACK','show','getConfig','setConfig','_revertErrorTimer','LocaleService','path','defIds','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','invoke','concat','UniverSheetsFilterPlugin','WorksheetEditPermission','onStarting','unsubscribe','_init','UniverRPCMainThreadPlugin','RangeProtectionRuleModel','display','icon','block','_initContainer','unMountHistoryContent','4eqiZAd','IConfigService','clipPath','className','toString','RangeProtectionPermissionEditPoint','UniverDocsPlugin','getSubunitRuleList','toStringTag','_pluginMap','Disposable','useRef','@univerjs/drawing','height','absolute','indexOf','history-single_clip0_907_281','@univerjs/sheets-ui','IDialogService','ICommandService'];_0x59cb=function(){return _0x386f04;};return _0x59cb();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x52afce=_0x881b;(function(_0x4fff69,_0x47dcf8){var _0x58ddb0=_0x881b,_0x2e2101=_0x4fff69();while(!![]){try{var _0x1b31a1=parseInt(_0x58ddb0(0x1f0))/0x1+-parseInt(_0x58ddb0(0x1f1))/0x2+parseInt(_0x58ddb0(0x197))/0x3+parseInt(_0x58ddb0(0x1c1))/0x4+parseInt(_0x58ddb0(0x19d))/0x5+-parseInt(_0x58ddb0(0x20f))/0x6*(-parseInt(_0x58ddb0(0x1d3))/0x7)+-parseInt(_0x58ddb0(0x20a))/0x8;if(_0x1b31a1===_0x47dcf8)break;else _0x2e2101['push'](_0x2e2101['shift']());}catch(_0x21402a){_0x2e2101['push'](_0x2e2101['shift']());}}}(_0x1a21,0x7de15));var B=Object[_0x52afce(0x1a1)],G=(_0x422ea0,_0x53be52,_0xdb1dd6)=>_0x53be52 in _0x422ea0?B(_0x422ea0,_0x53be52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdb1dd6}):_0x422ea0[_0x53be52]=_0xdb1dd6,d=(_0x5857a6,_0x26de94,_0x4b3d86)=>G(_0x5857a6,typeof _0x26de94!=_0x52afce(0x21c)?_0x26de94+'':_0x26de94,_0x4b3d86);import{Disposable as _0x50346f,DisposableCollection as _0x52e5d3,Univer as _0x2e5432,IAuthzIoService as _0x18b2b3,LocaleService as _0x8e039c,OnLifecycle as _0x5bb6f2,LifecycleStages as _0x4370a5,Inject as _0x54a68b,Injector as _0x5c4b6e,IUniverInstanceService as _0x5bf153,IConfigService as _0xe2661c,ICommandService as _0x428bc3,IPermissionService as _0x50ea3a,CommandType as _0x17da7e,UniverInstanceType as _0x36b22e,RxDisposable as _0x3019bd,toDisposable as _0x59f227,Plugin as _0x2d7945}from'@univerjs/core';import{greenTheme as _0x263485,MessageType as _0x56e821}from'@univerjs/design';import{UniverDocsPlugin as _0x3cdc3b}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x19e23c}from'@univerjs/docs-ui';import{UniverRenderEnginePlugin as _0x513ffe}from'@univerjs/engine-render';import{UniverSheetsPlugin as _0x2e60c1,WorkbookEditablePermission as _0x376e66,WorksheetEditPermission as _0x17af4f,RangeProtectionPermissionEditPoint as _0x1082d1,WorkbookRecoverHistoryPermission as _0x271fd8,RangeProtectionRuleModel as _0x4f7952,getSheetCommandTarget as _0x18fb5a,WorkbookViewHistoryPermission as _0x1c4f45}from'@univerjs/sheets';import{UniverSheetsUIPlugin as _0x3c110c,getCurrentRangeDisable$ as _0x4e33fa}from'@univerjs/sheets-ui';import{UniverUIPlugin as _0xcc5864,IDialogService as _0x122360,IMessageService as _0x489813,ISidebarService as _0x32cdb0,MenuItemType as _0x204a7e,getMenuHiddenObservable as _0x46b6c6,RibbonStartGroup as _0x13f280,ComponentManager as _0x28a130,IMenuManagerService as _0x2f0f39}from'@univerjs/ui';import{UniverEditHistoryViewerPlugin as _0x6ef25f,HistoryManagerService as _0x4dc58b,HistoryModeStatus as _0xa8a99c}from'@univerjs-pro/edit-history-viewer';import{UniverCollaborationPlugin as _0x3cb7e7,RevertRevisionMutation as _0x27ac85,CollaborationEvent as _0x22e6e4}from'@univerjs-pro/collaboration';import{UniverSheetsFilterPlugin as _0x37b962}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x575d86}from'@univerjs/sheets-filter-ui';import{UniverSheetsConditionalFormattingPlugin as _0x44248a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x2e26a1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsHyperLinkPlugin as _0x528b8e}from'@univerjs/sheets-hyper-link';function _0x881b(_0x2bc1bf,_0x1f1b02){var _0x1a2102=_0x1a21();return _0x881b=function(_0x881bdb,_0x14be35){_0x881bdb=_0x881bdb-0x193;var _0x5e8331=_0x1a2102[_0x881bdb];return _0x5e8331;},_0x881b(_0x2bc1bf,_0x1f1b02);}import{UniverSheetsHyperLinkUIPlugin as _0x267631}from'@univerjs/sheets-hyper-link-ui';import{UniverDataValidationPlugin as _0x1ee889}from'@univerjs/data-validation';import{UniverSheetsNumfmtPlugin as _0x60932d}from'@univerjs/sheets-numfmt';import{UniverSheetsFormulaPlugin as _0x3dc2af}from'@univerjs/sheets-formula';import{UniverFormulaEnginePlugin as _0x24fe44}from'@univerjs/engine-formula';import{UniverRPCMainThreadPlugin as _0x34859d}from'@univerjs/rpc';import{UniverSheetsDataValidationPlugin as _0x42bc47}from'@univerjs/sheets-data-validation';function _0x1a21(){var _0x4f2083=['closeAll','history-single_clip0_907_281','concat','_univerInstanceService','OPERATION','extend','_sidebarService','attrs','every','symbol','style','mountHistoryContent','./worker.js','_revertErrorTimer','editHistory.panel.listFetchError','propertyIsEnumerable','children','_checkCanRevert','status$','Error','currentColor','#fff','length','2121324HSaunO','get','left','forEach','indexOf','_configService','573435JARAuN','_permissionService','registerCommand','_init','defineProperty','value','UNIVER_CONTAINER_ID','trim','defs','appendChild','univer.operation.toggle-edit-history','icon','disposeWithMe','add','_config','subscribe','univer-history-container','width','session','getElementById','_messageService','Entered','data','close','_componentManager','hasOwnProperty','mergeMenu','display','none','colorChannel1','className','HistorySingle','getOwnPropertyDescriptor','1em','getSheets','params','3304628TpxQlR','invoke','getCollabEntity','url(#history-single_clip0_907_281)','edit-history-loader.config','exhaustSavingTask','height','xlink:href','displayName','setContainer','permissionId','univer-container','OTHERS','_disposableCollection','CHANGESET_ACK','editHistory.panel.reverting','getUnit','_localeService','203ffInNa','univerjs-icon\x20univerjs-icon-','editHistory.panel.title','_collaborationController','unsubscribe','dispose','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','call','div','composePermission','getCurrentLocale','onStarting','revertRevision$','event$','path','pluginName','_historyManagerService','_commandService','replace','_localCacheService','show','setConfig','registerPlugin','UNIVER_UNKNOWN','tag','_initListener','history-single','BUTTON','position','580790MDXirl','664932AvXJoz','defIds','editHistory.panel.revertFailed','prototype','idSuffix','UniverIcon','_selectionProtectionRuleModel','type','fill','top','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','entries','toString','string','function','Steady','zIndex','triggerLoadVersions','_dialogService','__getInjector','_injector','getOwnPropertySymbols','_historyUniver','0\x200\x2016\x2016','state$','16555368HUDHHn','unMountHistoryContent','Exited','_initMessageService','_initUniver','142500IkHCQH','Loading','setLocale','map'];_0x1a21=function(){return _0x4f2083;};return _0x1a21();}import{UniverDrawingUIPlugin as _0x4b5ea5}from'@univerjs/drawing-ui';import{UniverSheetsDrawingUIPlugin as _0xe62569}from'@univerjs/sheets-drawing-ui';import{UniverSheetsDrawingPlugin as _0x4cc720}from'@univerjs/sheets-drawing';import{UniverDrawingPlugin as _0x5ecae5,IImageIoService as _0x4533b4}from'@univerjs/drawing';import{UniverSheetsPivotTablePlugin as _0x4d5fe1}from'@univerjs-pro/sheets-pivot';import{CollaborationStatus as _0x1d548d,CollaborationController as _0x33ba6f,LocalCacheService as _0x183e50}from'@univerjs-pro/collaboration-client';import{combineLatest as _0x4e1259}from'rxjs';import{forwardRef as _0x29e27b,useRef as _0xe33820,createElement as _0x5538e9}from'react';var Ke=Object[_0x52afce(0x1a1)],ze=Object['getOwnPropertyDescriptor'],Ze=(_0x49d041,_0x4926a0,_0x349dad,_0x841ef5)=>{var _0xeb1ae1=_0x52afce;for(var _0x5a0b44=_0x841ef5>0x1?void 0x0:_0x841ef5?ze(_0x4926a0,_0x349dad):_0x4926a0,_0x94c13f=_0x49d041[_0xeb1ae1(0x196)]-0x1,_0x20ad60;_0x94c13f>=0x0;_0x94c13f--)(_0x20ad60=_0x49d041[_0x94c13f])&&(_0x5a0b44=(_0x841ef5?_0x20ad60(_0x4926a0,_0x349dad,_0x5a0b44):_0x20ad60(_0x5a0b44))||_0x5a0b44);return _0x841ef5&&_0x5a0b44&&Ke(_0x4926a0,_0x349dad,_0x5a0b44),_0x5a0b44;},g=(_0x8c8ddd,_0x1d514b)=>(_0x3dc15b,_0x28f48d)=>_0x1d514b(_0x3dc15b,_0x28f48d,_0x8c8ddd);const qe=_0x52afce(0x1cc),Je=_0x52afce(0x1a3),h=_0x52afce(0x1ad);let m=class extends _0x50346f{constructor(_0xbc9940,_0x2eb3a4,_0x195894,_0x13411c,_0x7b61ca,_0x584115,_0x54a3aa,_0x198d23,_0x2bc92d,_0x443a37){var _0x1c8b66=_0x52afce;super(),d(this,_0x1c8b66(0x207),null),d(this,'_disposableCollection',new _0x52e5d3()),(this[_0x1c8b66(0x205)]=_0xbc9940,this['_localeService']=_0x2eb3a4,this[_0x1c8b66(0x216)]=_0x195894,this[_0x1c8b66(0x19c)]=_0x13411c,this[_0x1c8b66(0x1e4)]=_0x7b61ca,this[_0x1c8b66(0x1b1)]=_0x584115,this[_0x1c8b66(0x19e)]=_0x54a3aa,this[_0x1c8b66(0x1f7)]=_0x198d23,this[_0x1c8b66(0x203)]=_0x2bc92d,this[_0x1c8b66(0x219)]=_0x443a37,this[_0x1c8b66(0x1a0)]());}[_0x52afce(0x1a0)](){var _0x5176e2=_0x52afce,_0x34e515;const _0xd5bcd=(_0x34e515=this[_0x5176e2(0x19c)]['getConfig'](Je))!=null?_0x34e515:qe,_0x4722ff=document[_0x5176e2(0x1b0)](_0xd5bcd);if(!_0x4722ff)return;const _0x40ef91=document['createElement'](_0x5176e2(0x1db));_0x40ef91['id']=h,_0x40ef91[_0x5176e2(0x21d)][_0x5176e2(0x1ef)]='absolute',_0x40ef91['style'][_0x5176e2(0x1fa)]='0',_0x40ef91[_0x5176e2(0x21d)][_0x5176e2(0x199)]='0',_0x40ef91['style'][_0x5176e2(0x1ae)]='100%',_0x40ef91[_0x5176e2(0x21d)][_0x5176e2(0x1c7)]='100%',_0x40ef91[_0x5176e2(0x21d)][_0x5176e2(0x201)]='1000',_0x40ef91[_0x5176e2(0x21d)][_0x5176e2(0x1b8)]=_0x5176e2(0x1b9),_0x4722ff[_0x5176e2(0x1a6)](_0x40ef91);}[_0x52afce(0x1d8)](){var _0x5c51c5=_0x52afce;super[_0x5c51c5(0x1d8)](),this[_0x5c51c5(0x20b)]();}[_0x52afce(0x21e)](_0x26441b){var _0x51685d=_0x52afce;const _0x349eb9=document['getElementById'](h);_0x349eb9&&(_0x349eb9[_0x51685d(0x21d)][_0x51685d(0x1b8)]='block',this[_0x51685d(0x20e)](_0x26441b,h));}[_0x52afce(0x20b)](){var _0x38b7c5=_0x52afce,_0x1e6c4e;this[_0x38b7c5(0x1ce)][_0x38b7c5(0x1d8)](),(_0x1e6c4e=this[_0x38b7c5(0x207)])==null||_0x1e6c4e[_0x38b7c5(0x1d8)](),this[_0x38b7c5(0x207)]=null;const _0x4e00b0=document[_0x38b7c5(0x1b0)](h);_0x4e00b0&&(_0x4e00b0[_0x38b7c5(0x21d)][_0x38b7c5(0x1b8)]='none');}['_initUniver'](_0x36821c,_0x5839e2){var _0xb786e3=_0x52afce;if(this[_0xb786e3(0x207)])return;const _0x4ab5da=new _0x2e5432({'theme':_0x263485,'locales':{[this['_localeService'][_0xb786e3(0x1dd)]()]:this[_0xb786e3(0x1d2)]['getLocales']()},'override':[[_0x18b2b3,null]]});this['_historyUniver']=_0x4ab5da;const _0x29cb36=_0x4ab5da[_0xb786e3(0x204)]();_0x29cb36['get'](_0x8e039c)[_0xb786e3(0x211)](this[_0xb786e3(0x1d2)][_0xb786e3(0x1dd)]()),_0x4ab5da[_0xb786e3(0x1e9)](_0x5ecae5,{'override':[[_0x4533b4,null]]}),_0x4ab5da['registerPlugin'](_0x3cdc3b,{'hasScroll':!0x1}),_0x4ab5da['registerPlugin'](_0x19e23c),_0x4ab5da[_0xb786e3(0x1e9)](_0x513ffe),_0x4ab5da['registerPlugin'](_0xcc5864,{'container':h,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x122360,null]]}),_0x4ab5da[_0xb786e3(0x1e9)](_0x2e60c1,{'notExecuteFormula':!0x0}),_0x4ab5da[_0xb786e3(0x1e9)](_0x3c110c),_0x4ab5da[_0xb786e3(0x1e9)](_0x3cb7e7),_0x4ab5da['registerPlugin'](_0x37b962),_0x4ab5da[_0xb786e3(0x1e9)](_0x575d86),_0x4ab5da[_0xb786e3(0x1e9)](_0x44248a),_0x4ab5da[_0xb786e3(0x1e9)](_0x2e26a1),_0x4ab5da[_0xb786e3(0x1e9)](_0x528b8e),_0x4ab5da['registerPlugin'](_0x267631),_0x4ab5da['registerPlugin'](_0x1ee889),_0x4ab5da[_0xb786e3(0x1e9)](_0x42bc47),_0x4ab5da[_0xb786e3(0x1e9)](_0x60932d),_0x4ab5da['registerPlugin'](_0x24fe44,{'notExecuteFormula':!0x0}),_0x4ab5da[_0xb786e3(0x1e9)](_0x3dc2af),_0x4ab5da[_0xb786e3(0x1e9)](_0x34859d,{'workerURL':_0xb786e3(0x21f)}),_0x4ab5da[_0xb786e3(0x1e9)](_0x4b5ea5),_0x4ab5da[_0xb786e3(0x1e9)](_0x4cc720),_0x4ab5da['registerPlugin'](_0xe62569),_0x4ab5da[_0xb786e3(0x1e9)](_0x4d5fe1,{'notExecuteFormula':!0x0}),_0x4ab5da['registerPlugin'](_0x6ef25f),_0x29cb36[_0xb786e3(0x1c2)](_0x4ad99c=>{var _0x57d1e6=_0xb786e3;this[_0x57d1e6(0x1ec)](_0x4ad99c,_0x36821c),this[_0x57d1e6(0x20d)](_0x4ad99c,this[_0x57d1e6(0x1b1)]);});const _0x2d49f6=_0x29cb36[_0xb786e3(0x198)](_0x4dc58b),_0xd7d049=this[_0xb786e3(0x224)](_0x36821c);_0x2d49f6[_0xb786e3(0x202)](_0x36821c,_0x5839e2,_0xd7d049);}['_initListener'](_0x4b4a9a,_0x4bbbcc){var _0x354272=_0x52afce;const _0xe10b8=_0x4b4a9a[_0x354272(0x198)](_0x4dc58b);this[_0x354272(0x1ce)][_0x354272(0x1aa)](_0xe10b8[_0x354272(0x225)][_0x354272(0x1ac)](_0x53fb4c=>{var _0x280df5=_0x354272;switch(_0x53fb4c){case _0xa8a99c[_0x280df5(0x1b2)]:this[_0x280df5(0x203)][_0x280df5(0x213)](),this[_0x280df5(0x219)][_0x280df5(0x1b4)]();break;case _0xa8a99c[_0x280df5(0x20c)]:this['unMountHistoryContent']();break;case _0xa8a99c[_0x280df5(0x193)]:this[_0x280df5(0x20b)](),this[_0x280df5(0x1b1)][_0x280df5(0x1e7)]({'content':this[_0x280df5(0x1d2)]['t'](_0x280df5(0x221)),'type':_0x56e821[_0x280df5(0x193)],'duration':0xbb8});break;}})),this[_0x354272(0x1ce)][_0x354272(0x1aa)](_0xe10b8[_0x354272(0x1df)][_0x354272(0x1ac)](async _0x692846=>{_0x692846&&this['_commandService']['executeCommand'](_0x27ac85['id'],{'unitId':_0x4bbbcc,'revision':_0x692846});}));}['_initMessageService'](_0x1b1bf8,_0x39e6e0){var _0x2e868a=_0x52afce;const _0x3116f2=_0x1b1bf8[_0x2e868a(0x198)](_0x489813),_0x2180f8=_0x39e6e0['getContainer']();_0x2180f8&&_0x3116f2[_0x2e868a(0x1ca)](_0x2180f8);}[_0x52afce(0x224)](_0x359e79){var _0x3a6777=_0x52afce;const _0x2d1a37=this['_univerInstanceService'][_0x3a6777(0x1d1)](_0x359e79)[_0x3a6777(0x1bf)]()[_0x3a6777(0x212)](_0xb24fa6=>_0xb24fa6['getSheetId']()),_0x78c311=new _0x376e66(_0x359e79)['id'],_0x3af29e=_0x2d1a37[_0x3a6777(0x212)](_0x4642ff=>new _0x17af4f(_0x359e79,_0x4642ff)['id']),_0x4973f0=_0x2d1a37['map'](_0x48e970=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x359e79,_0x48e970)[_0x3a6777(0x212)](_0x54f8f6=>new _0x1082d1(_0x359e79,_0x48e970,_0x54f8f6[_0x3a6777(0x1cb)])['id']))['flat'](),_0x4ad1af=new _0x271fd8(_0x359e79)['id'];return this['_permissionService'][_0x3a6777(0x1dc)]([_0x78c311,..._0x3af29e,..._0x4973f0,_0x4ad1af])[_0x3a6777(0x21b)](_0x45bd1a=>!!_0x45bd1a[_0x3a6777(0x1a2)]);}};m=Ze([_0x5bb6f2(_0x4370a5[_0x52afce(0x200)],m),g(0x0,_0x54a68b(_0x5c4b6e)),g(0x1,_0x54a68b(_0x8e039c)),g(0x2,_0x5bf153),g(0x3,_0xe2661c),g(0x4,_0x428bc3),g(0x5,_0x489813),g(0x6,_0x50ea3a),g(0x7,_0x54a68b(_0x4f7952)),g(0x8,_0x54a68b(_0x122360)),g(0x9,_0x54a68b(_0x32cdb0))],m);var c=function(){return c=Object['assign']||function(_0x107909){var _0x179c57=_0x881b;for(var _0x15fb56,_0x575417=0x1,_0x351a7a=arguments['length'];_0x575417<_0x351a7a;_0x575417++){_0x15fb56=arguments[_0x575417];for(var _0x3bbd4a in _0x15fb56)Object[_0x179c57(0x1f4)][_0x179c57(0x1b6)][_0x179c57(0x1da)](_0x15fb56,_0x3bbd4a)&&(_0x107909[_0x3bbd4a]=_0x15fb56[_0x3bbd4a]);}return _0x107909;},c['apply'](this,arguments);},Qe=function(_0x56df1b,_0x1957b4){var _0x33698e=_0x52afce,_0x2e0beb={};for(var _0x53f2c1 in _0x56df1b)Object[_0x33698e(0x1f4)][_0x33698e(0x1b6)][_0x33698e(0x1da)](_0x56df1b,_0x53f2c1)&&_0x1957b4[_0x33698e(0x19b)](_0x53f2c1)<0x0&&(_0x2e0beb[_0x53f2c1]=_0x56df1b[_0x53f2c1]);if(_0x56df1b!=null&&typeof Object[_0x33698e(0x206)]==_0x33698e(0x1ff)){for(var _0xb8ab1f=0x0,_0x53f2c1=Object['getOwnPropertySymbols'](_0x56df1b);_0xb8ab1f<_0x53f2c1[_0x33698e(0x196)];_0xb8ab1f++)_0x1957b4[_0x33698e(0x19b)](_0x53f2c1[_0xb8ab1f])<0x0&&Object[_0x33698e(0x1f4)][_0x33698e(0x222)][_0x33698e(0x1da)](_0x56df1b,_0x53f2c1[_0xb8ab1f])&&(_0x2e0beb[_0x53f2c1[_0xb8ab1f]]=_0x56df1b[_0x53f2c1[_0xb8ab1f]]);}return _0x2e0beb;},$=_0x29e27b(function(_0x1a626e,_0x33a693){var _0x6d8e63=_0x52afce,_0x29458e=_0x1a626e['icon'],_0x50af4e=_0x1a626e['id'],_0x50ff5c=_0x1a626e[_0x6d8e63(0x1bb)],_0x316243=_0x1a626e[_0x6d8e63(0x218)],_0x4dc92b=Qe(_0x1a626e,[_0x6d8e63(0x1a8),'id',_0x6d8e63(0x1bb),_0x6d8e63(0x218)]),_0x22e442=_0x6d8e63(0x1d4)['concat'](_0x50af4e,'\x20')['concat'](_0x50ff5c||'')[_0x6d8e63(0x1a4)](),_0x5a62d4=_0xe33820('_'[_0x6d8e63(0x215)](ii()));return F(_0x29458e,''[_0x6d8e63(0x215)](_0x50af4e),{'defIds':_0x29458e[_0x6d8e63(0x1f2)],'idSuffix':_0x5a62d4['current']},c({'ref':_0x33a693,'className':_0x22e442},_0x4dc92b),_0x316243);});function F(_0x4aae0d,_0x185db1,_0x32d25b,_0x55359b,_0x531977){var _0x1f5a1f=_0x52afce;return _0x5538e9(_0x4aae0d['tag'],c(c({'key':_0x185db1},Xe(_0x4aae0d,_0x32d25b,_0x531977)),_0x55359b),(ei(_0x4aae0d,_0x32d25b)[_0x1f5a1f(0x223)]||[])['map'](function(_0x5989c5,_0x17ec3f){var _0x40a3cc=_0x1f5a1f;return F(_0x5989c5,''[_0x40a3cc(0x215)](_0x185db1,'-')[_0x40a3cc(0x215)](_0x4aae0d['tag'],'-')[_0x40a3cc(0x215)](_0x17ec3f),_0x32d25b,void 0x0,_0x531977);}));}function Xe(_0x39c184,_0x4a39df,_0xd73056){var _0x3b51ad=_0x52afce,_0x508022=c({},_0x39c184[_0x3b51ad(0x21a)]);_0xd73056!=null&&_0xd73056['colorChannel1']&&_0x508022[_0x3b51ad(0x1f9)]===_0x3b51ad(0x1ba)&&(_0x508022['fill']=_0xd73056[_0x3b51ad(0x1ba)]);var _0xefba63=_0x4a39df[_0x3b51ad(0x1f2)];return!_0xefba63||_0xefba63[_0x3b51ad(0x196)]===0x0||(_0x39c184['tag']==='use'&&_0x508022[_0x3b51ad(0x1c8)]&&(_0x508022[_0x3b51ad(0x1c8)]=_0x508022['xlink:href']+_0x4a39df[_0x3b51ad(0x1f5)]),Object[_0x3b51ad(0x1fc)](_0x508022)['forEach'](function(_0x140d8f){var _0x206fa1=_0x3b51ad,_0x192d26=_0x140d8f[0x0],_0xf4ecd3=_0x140d8f[0x1];typeof _0xf4ecd3=='string'&&(_0x508022[_0x192d26]=_0xf4ecd3[_0x206fa1(0x1e5)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4a39df[_0x206fa1(0x1f5)],')')));})),_0x508022;}function ei(_0x29791f,_0x897276){var _0x3f808f=_0x52afce,_0x2563e3,_0x57644a=_0x897276[_0x3f808f(0x1f2)];return!_0x57644a||_0x57644a[_0x3f808f(0x196)]===0x0?_0x29791f:_0x29791f[_0x3f808f(0x1eb)]==='defs'&&(!((_0x2563e3=_0x29791f[_0x3f808f(0x223)])===null||_0x2563e3===void 0x0)&&_0x2563e3[_0x3f808f(0x196)])?c(c({},_0x29791f),{'children':_0x29791f[_0x3f808f(0x223)][_0x3f808f(0x212)](function(_0x2ddb97){var _0x8f35c0=_0x3f808f;return typeof _0x2ddb97['attrs']['id']==_0x8f35c0(0x1fe)&&_0x57644a&&_0x57644a['indexOf'](_0x2ddb97['attrs']['id'])>-0x1?c(c({},_0x2ddb97),{'attrs':c(c({},_0x2ddb97[_0x8f35c0(0x21a)]),{'id':_0x2ddb97[_0x8f35c0(0x21a)]['id']+_0x897276[_0x8f35c0(0x1f5)]})}):_0x2ddb97;})}):_0x29791f;}function ii(){var _0x572bbf=_0x52afce;return Math['random']()[_0x572bbf(0x1fd)](0x24)['substring'](0x2,0x8);}$[_0x52afce(0x1c9)]=_0x52afce(0x1f6);var ti={'tag':'svg','attrs':{'fill':_0x52afce(0x1b9),'viewBox':_0x52afce(0x208),'width':_0x52afce(0x1be),'height':_0x52afce(0x1be)},'children':[{'tag':'g','attrs':{'fill':_0x52afce(0x194),'clipPath':_0x52afce(0x1c4)},'children':[{'tag':'path','attrs':{'d':_0x52afce(0x1fb)}},{'tag':'path','attrs':{'d':_0x52afce(0x1d9)}}]},{'tag':_0x52afce(0x1a5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x52afce(0x214)},'children':[{'tag':_0x52afce(0x1e1),'attrs':{'fill':_0x52afce(0x195),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x52afce(0x214)]},V=_0x29e27b(function(_0x14ed8e,_0x21e585){var _0x5f297b=_0x52afce;return _0x5538e9($,Object['assign']({},_0x14ed8e,{'id':_0x5f297b(0x1ed),'ref':_0x21e585,'icon':ti}));});V[_0x52afce(0x1c9)]='HistorySingle';const b={'id':_0x52afce(0x1a7),'type':_0x17da7e[_0x52afce(0x217)],'handler':_0x3de3d0=>{var _0x21a41e=_0x52afce;const _0x2fc547=_0x3de3d0[_0x21a41e(0x198)](m),_0x29d4c6=_0x3de3d0[_0x21a41e(0x198)](_0x5bf153),{unitId:_0x1975b9}=_0x18fb5a(_0x29d4c6)||{};return _0x1975b9?(_0x2fc547[_0x21a41e(0x21e)](_0x1975b9),!0x0):!0x1;}},A=_0x52afce(0x1bc);function ri(_0x4eefc4){var _0x45281f=_0x52afce;return{'id':b['id'],'type':_0x204a7e[_0x45281f(0x1ee)],'icon':A,'tooltip':_0x45281f(0x1d5),'hidden$':_0x46b6c6(_0x4eefc4,_0x36b22e['UNIVER_SHEET']),'disabled$':_0x4e33fa(_0x4eefc4,{'workbookTypes':[_0x376e66,_0x1c4f45],'worksheetTypes':[],'rangeTypes':[]})};}const ni={[_0x13f280[_0x52afce(0x1cd)]]:{[b['id']]:{'order':0x0,'menuItemFactory':ri}}};var oi=Object[_0x52afce(0x1a1)],si=Object['getOwnPropertyDescriptor'],ai=(_0x2f9b1d,_0x447a98,_0x4e98ff,_0x5c3616)=>{var _0x5f3564=_0x52afce;for(var _0x3e58f2=_0x5c3616>0x1?void 0x0:_0x5c3616?si(_0x447a98,_0x4e98ff):_0x447a98,_0x49f747=_0x2f9b1d[_0x5f3564(0x196)]-0x1,_0x3529a1;_0x49f747>=0x0;_0x49f747--)(_0x3529a1=_0x2f9b1d[_0x49f747])&&(_0x3e58f2=(_0x5c3616?_0x3529a1(_0x447a98,_0x4e98ff,_0x3e58f2):_0x3529a1(_0x3e58f2))||_0x3e58f2);return _0x5c3616&&_0x3e58f2&&oi(_0x447a98,_0x4e98ff,_0x3e58f2),_0x3e58f2;},v=(_0x19c0da,_0xc4a1ab)=>(_0x212ef4,_0x54c5b8)=>_0xc4a1ab(_0x212ef4,_0x54c5b8,_0x19c0da);let _=class extends _0x3019bd{constructor(_0x5948a2,_0x1deaa1,_0x5a13bb,_0x340269,_0x38dacc,_0x4acb22,_0x7481a2,_0x3ba222){var _0x1cb92f=_0x52afce;super(),d(this,_0x1cb92f(0x220),null),(this['_commandService']=_0x5948a2,this['_menuManagerService']=_0x1deaa1,this[_0x1cb92f(0x1b5)]=_0x5a13bb,this[_0x1cb92f(0x1e3)]=_0x340269,this[_0x1cb92f(0x1d2)]=_0x38dacc,this[_0x1cb92f(0x1b1)]=_0x4acb22,this['_collaborationController']=_0x7481a2,this[_0x1cb92f(0x1e6)]=_0x3ba222,this['_init']());}[_0x52afce(0x1a0)](){var _0x5c6546=_0x52afce;[b]['forEach'](_0x3aa712=>this['disposeWithMe'](_0x59f227(this[_0x5c6546(0x1e4)][_0x5c6546(0x19f)](_0x3aa712)))),this[_0x5c6546(0x1a9)](this[_0x5c6546(0x1b5)]['register'](A,V)),this['_menuManagerService'][_0x5c6546(0x1b7)](ni),this[_0x5c6546(0x1a9)](this[_0x5c6546(0x1e4)]['onCommandExecuted'](_0x3c613d=>{var _0x2494cd=_0x5c6546;if(_0x3c613d['id']===_0x27ac85['id']){this[_0x2494cd(0x1b1)]['show']({'content':this[_0x2494cd(0x1d2)]['t'](_0x2494cd(0x1d0)),'type':_0x56e821[_0x2494cd(0x210)],'duration':0x1388});const {unitId:_0x25bbc2}=_0x3c613d[_0x2494cd(0x1c0)],_0x3dbb90=this[_0x2494cd(0x1d6)][_0x2494cd(0x1c3)](_0x25bbc2),_0x14d538=_0x4e1259([_0x3dbb90[_0x2494cd(0x1af)][_0x2494cd(0x1e0)],_0x3dbb90[_0x2494cd(0x209)]])['subscribe'](async([_0x4cfce4,_0x45fb82])=>{var _0x724b33=_0x2494cd;_0x4cfce4['eventID']===_0x22e6e4[_0x724b33(0x1cf)]&&(_0x45fb82==null?void 0x0:_0x45fb82['status'])===_0x1d548d['SYNCED']&&_0x4cfce4[_0x724b33(0x1b3)]['mutations']['some'](_0x3c3486=>_0x3c3486['id']===_0x27ac85['id'])&&(this[_0x724b33(0x1e3)]['unMountHistoryContent'](),_0x14d538['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x724b33(0x220)]),await this[_0x724b33(0x1e6)][_0x724b33(0x1c6)](),setTimeout(()=>window['location']['reload']()));});this[_0x2494cd(0x220)]=setTimeout(()=>{var _0x42310f=_0x2494cd;_0x14d538[_0x42310f(0x1d7)](),this['_messageService'][_0x42310f(0x1e7)]({'content':this['_localeService']['t'](_0x42310f(0x1f3)),'type':_0x56e821['Error'],'duration':0xbb8});},0x1388);}}));}};_=ai([_0x5bb6f2(_0x4370a5[_0x52afce(0x200)],_),v(0x0,_0x428bc3),v(0x1,_0x2f0f39),v(0x2,_0x54a68b(_0x28a130)),v(0x3,_0x54a68b(m)),v(0x4,_0x54a68b(_0x8e039c)),v(0x5,_0x489813),v(0x6,_0x54a68b(_0x33ba6f)),v(0x7,_0x54a68b(_0x183e50))],_);const li=_0x52afce(0x1c5),ci={};var ui=Object[_0x52afce(0x1a1)],gi=Object[_0x52afce(0x1bd)],vi=(_0xcea860,_0x517a4a,_0x4e6f04,_0x29fd84)=>{for(var _0x2d3374=_0x29fd84>0x1?void 0x0:_0x29fd84?gi(_0x517a4a,_0x4e6f04):_0x517a4a,_0x18fea1=_0xcea860['length']-0x1,_0x132517;_0x18fea1>=0x0;_0x18fea1--)(_0x132517=_0xcea860[_0x18fea1])&&(_0x2d3374=(_0x29fd84?_0x132517(_0x517a4a,_0x4e6f04,_0x2d3374):_0x132517(_0x2d3374))||_0x2d3374);return _0x29fd84&&_0x2d3374&&ui(_0x517a4a,_0x4e6f04,_0x2d3374),_0x2d3374;},U=(_0x5aef63,_0x4f78c2)=>(_0x4e250c,_0x434eb4)=>_0x4f78c2(_0x4e250c,_0x434eb4,_0x5aef63);const di='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var f;let O=(f=class extends _0x2d7945{constructor(_0x5e1608=ci,_0x565eca,_0x5d03ed){var _0x164f00=_0x52afce;super(),this[_0x164f00(0x1ab)]=_0x5e1608,this[_0x164f00(0x205)]=_0x565eca,this[_0x164f00(0x19c)]=_0x5d03ed;const {menu:_0x3a1b96,..._0x25c9c7}=this[_0x164f00(0x1ab)];_0x3a1b96&&this[_0x164f00(0x19c)][_0x164f00(0x1e8)]('menu',_0x3a1b96,{'merge':!0x0}),this[_0x164f00(0x19c)][_0x164f00(0x1e8)](li,_0x25c9c7);}[_0x52afce(0x1de)](){var _0x2acc53=_0x52afce;[[m],[_]][_0x2acc53(0x19a)](_0x33948c=>this['_injector'][_0x2acc53(0x1aa)](_0x33948c));}},d(f,_0x52afce(0x1f8),_0x36b22e[_0x52afce(0x1ea)]),d(f,_0x52afce(0x1e2),di),f);O=vi([U(0x1,_0x54a68b(_0x5c4b6e)),U(0x2,_0xe2661c)],O);export{m as HistoryLoaderService,Je as UNIVER_CONTAINER_ID_KEY,h as UNIVER_HISTORY_CONTAINER_ID,O as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
var _0x4970b7=_0x2cd9;(function(_0x5b314a,_0x1f0de6){var _0x3a0376=_0x2cd9,_0x16d944=_0x5b314a();while(!![]){try{var _0x6f21c3=parseInt(_0x3a0376(0x1be))/0x1+-parseInt(_0x3a0376(0x13d))/0x2*(-parseInt(_0x3a0376(0x1ae))/0x3)+parseInt(_0x3a0376(0x14d))/0x4*(parseInt(_0x3a0376(0x170))/0x5)+parseInt(_0x3a0376(0x1ce))/0x6+parseInt(_0x3a0376(0x1b7))/0x7*(parseInt(_0x3a0376(0x1ca))/0x8)+-parseInt(_0x3a0376(0x19a))/0x9+parseInt(_0x3a0376(0x188))/0xa*(-parseInt(_0x3a0376(0x1af))/0xb);if(_0x6f21c3===_0x1f0de6)break;else _0x16d944['push'](_0x16d944['shift']());}catch(_0x49bb7b){_0x16d944['push'](_0x16d944['shift']());}}}(_0x8c75,0x7b265));var W=Object['defineProperty'],B=(_0x4e497f,_0xc724f5,_0x59bfc4)=>_0xc724f5 in _0x4e497f?W(_0x4e497f,_0xc724f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59bfc4}):_0x4e497f[_0xc724f5]=_0x59bfc4,h=(_0x1ecd97,_0x1e87c9,_0x17d5d4)=>B(_0x1ecd97,typeof _0x1e87c9!='symbol'?_0x1e87c9+'':_0x1e87c9,_0x17d5d4);import{Disposable as _0x1471bb,DisposableCollection as _0x432a57,Univer as _0x59fa74,IAuthzIoService as _0x31aedd,LocaleService as _0x3d1009,OnLifecycle as _0x460e8a,LifecycleStages as _0x23a0cc,Inject as _0x280249,IUniverInstanceService as _0x1937eb,IConfigService as _0x2c59bd,ICommandService as _0x27925d,IPermissionService as _0xce6c6c,CommandType as _0x4c9f51,UniverInstanceType as _0x5672fb,RxDisposable as _0x4f50f1,toDisposable as _0x194792,Plugin as _0x365bb3,Injector as _0x175cc7}from'@univerjs/core';import{greenTheme as _0x7d7b2b,MessageType as _0x5d78cc}from'@univerjs/design';import{UniverDocsPlugin as _0x45b195}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x441932}from'@univerjs/docs-ui';import{UniverRenderEnginePlugin as _0x10e72b}from'@univerjs/engine-render';import{WorkbookEditablePermission as _0x439433,WorksheetEditPermission as _0x3e8d65,RangeProtectionPermissionEditPoint as _0x56ba19,WorkbookRecoverHistoryPermission as _0x43e7a7,RangeProtectionRuleModel as _0x4bb93c,UniverSheetsPlugin as _0x2ccc31,getSheetCommandTarget as _0x586d83,WorkbookViewHistoryPermission as _0x3075cf}from'@univerjs/sheets';import{UniverSheetsUIPlugin as _0x29b21d,getCurrentRangeDisable$ as _0x54e7ff}from'@univerjs/sheets-ui';import{IMessageService as _0x599fbd,IDialogService as _0x577917,ISidebarService as _0x516ee7,UniverUIPlugin as _0x4ce0f9,MenuItemType as _0x43915f,getMenuHiddenObservable as _0x550f72,RibbonStartGroup as _0x141424,ComponentManager as _0x2fdb75,IMenuManagerService as _0x1d981e}from'@univerjs/ui';import{HistoryManagerService as _0x5e36f9,HistoryModeStatus as _0x2ff83b,UniverEditHistoryViewerPlugin as _0x5a163c}from'@univerjs-pro/edit-history-viewer';import{RevertRevisionMutation as _0xe4a3d3,UniverCollaborationPlugin as _0x4a4937,CollaborationEvent as _0x17b55e}from'@univerjs-pro/collaboration';import{UniverSheetsFilterPlugin as _0x3d8380}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1e082a}from'@univerjs/sheets-filter-ui';import{UniverSheetsConditionalFormattingPlugin as _0x478b98}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4eb6f5}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsHyperLinkPlugin as _0x1f0ff9}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x285d4c}from'@univerjs/sheets-hyper-link-ui';import{UniverDataValidationPlugin as _0x3d3d58}from'@univerjs/data-validation';import{UniverSheetsNumfmtPlugin as _0x4fabee}from'@univerjs/sheets-numfmt';import{UniverSheetsFormulaPlugin as _0x2b5c15}from'@univerjs/sheets-formula';import{UniverFormulaEnginePlugin as _0x417aa7}from'@univerjs/engine-formula';import{UniverRPCMainThreadPlugin as _0x3d7d1a}from'@univerjs/rpc';import{UniverSheetsDataValidationPlugin as _0x42794a}from'@univerjs/sheets-data-validation';import{UniverDrawingUIPlugin as _0x4140ed}from'@univerjs/drawing-ui';import{UniverSheetsDrawingUIPlugin as _0x12177b}from'@univerjs/sheets-drawing-ui';function _0x2cd9(_0x14275b,_0x16cf3c){var _0x8c7547=_0x8c75();return _0x2cd9=function(_0x2cd951,_0xb8e0c6){_0x2cd951=_0x2cd951-0x138;var _0x393218=_0x8c7547[_0x2cd951];return _0x393218;},_0x2cd9(_0x14275b,_0x16cf3c);}import{UniverSheetsDrawingPlugin as _0x303af0}from'@univerjs/sheets-drawing';import{UniverDrawingPlugin as _0xe1364f,IImageIoService as _0x5a01dc}from'@univerjs/drawing';import{UniverSheetsPivotTablePlugin as _0x5a6dc0}from'@univerjs-pro/sheets-pivot';import{CollaborationStatus as _0x48020b,CollaborationController as _0xe36b6e,LocalCacheService as _0x304175}from'@univerjs-pro/collaboration-client';import{combineLatest as _0x308004}from'rxjs';import{forwardRef as _0x491713,useRef as _0x3b5b75,createElement as _0x290907}from'react';var Ke=Object[_0x4970b7(0x15b)],ze=Object[_0x4970b7(0x161)],Ze=(_0x581f16,_0x5ad332,_0x537779,_0x516bce)=>{var _0x93bdc5=_0x4970b7;for(var _0xf80fa=_0x516bce>0x1?void 0x0:_0x516bce?ze(_0x5ad332,_0x537779):_0x5ad332,_0xd1594d=_0x581f16[_0x93bdc5(0x167)]-0x1,_0x545bb3;_0xd1594d>=0x0;_0xd1594d--)(_0x545bb3=_0x581f16[_0xd1594d])&&(_0xf80fa=(_0x516bce?_0x545bb3(_0x5ad332,_0x537779,_0xf80fa):_0x545bb3(_0xf80fa))||_0xf80fa);return _0x516bce&&_0xf80fa&&Ke(_0x5ad332,_0x537779,_0xf80fa),_0xf80fa;},g=(_0x1bbb9b,_0x4a4ca1)=>(_0xb19772,_0x53fed2)=>_0x4a4ca1(_0xb19772,_0x53fed2,_0x1bbb9b);const qe=_0x4970b7(0x1cb),k=_0x4970b7(0x164),f='univer-history-container';let d=class extends _0x1471bb{constructor(_0x2eb88f,_0x442c3a,_0x3414d2,_0x43411f,_0x46dd69,_0x44e164,_0x495a7c,_0x5ba3ab,_0x5d1019){var _0x5e69af=_0x4970b7;super(),h(this,'_historyUniver',null),h(this,'_disposableCollection',new _0x432a57()),h(this,'_pluginMap',new Map()),(this[_0x5e69af(0x1ab)]=_0x2eb88f,this[_0x5e69af(0x1cc)]=_0x442c3a,this[_0x5e69af(0x1c1)]=_0x3414d2,this[_0x5e69af(0x1d2)]=_0x43411f,this[_0x5e69af(0x173)]=_0x46dd69,this['_permissionService']=_0x44e164,this[_0x5e69af(0x1bb)]=_0x495a7c,this[_0x5e69af(0x157)]=_0x5ba3ab,this[_0x5e69af(0x15e)]=_0x5d1019,this['_init']());}['_init'](){var _0x3dc9cb=_0x4970b7;this[_0x3dc9cb(0x1ac)](),this['_initPlugins']();}['_initContainer'](){var _0x97c30f=_0x4970b7,_0x5ecb77;const _0x37f755=(_0x5ecb77=this[_0x97c30f(0x1c1)][_0x97c30f(0x16c)](k))!=null?_0x5ecb77:qe,_0x4097c5=document[_0x97c30f(0x181)](_0x37f755);if(!_0x4097c5)return;const _0x2d4b7f=document[_0x97c30f(0x15d)](_0x97c30f(0x1a5));_0x2d4b7f['id']=f,_0x2d4b7f[_0x97c30f(0x14a)]['position']=_0x97c30f(0x190),_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x1b3)]='0',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x1a9)]='0',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x142)]=_0x97c30f(0x189),_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x160)]='100%',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x144)]='1000',_0x2d4b7f['style'][_0x97c30f(0x151)]='none',_0x4097c5['appendChild'](_0x2d4b7f);}[_0x4970b7(0x1b5)](){var _0x40ed06=_0x4970b7;[[_0xe1364f,{'override':[[_0x5a01dc,null]]}],[_0x45b195,{'hasScroll':!0x1}],[_0x441932],[_0x10e72b],[_0x4ce0f9,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x577917,null]]}],[_0x2ccc31,{'notExecuteFormula':!0x0}],[_0x29b21d],[_0x4a4937],[_0x3d8380],[_0x1e082a],[_0x478b98],[_0x4eb6f5],[_0x1f0ff9],[_0x285d4c],[_0x3d3d58],[_0x42794a],[_0x4fabee],[_0x417aa7,{'notExecuteFormula':!0x0}],[_0x2b5c15],[_0x3d7d1a,{'workerURL':_0x40ed06(0x1b9)}],[_0x4140ed],[_0x303af0],[_0x12177b],[_0x5a6dc0,{'notExecuteFormula':!0x0}],[_0x5a163c]]['forEach'](([_0x1db85b,_0x2feec1])=>this['registerPlugin'](_0x1db85b,_0x2feec1));}[_0x4970b7(0x1a1)](){var _0x1e6b61=_0x4970b7;super[_0x1e6b61(0x1a1)](),this[_0x1e6b61(0x149)](),this[_0x1e6b61(0x1a3)]['clear']();}['registerPlugin'](_0x4dda2a,_0x2fcda4,_0x486511){var _0x2c9696=_0x4970b7;if(this['_pluginMap'][_0x2c9696(0x1a0)](_0x4dda2a[_0x2c9696(0x176)])&&!_0x486511)throw new Error(_0x2c9696(0x148)+_0x4dda2a[_0x2c9696(0x176)]+_0x2c9696(0x1b1));this['_pluginMap'][_0x2c9696(0x1c8)](_0x4dda2a[_0x2c9696(0x176)],[_0x4dda2a,_0x2fcda4]);}['getAllPlugins'](){var _0x128e83=_0x4970b7;return Array[_0x128e83(0x168)](this[_0x128e83(0x1a3)][_0x128e83(0x1c4)]());}[_0x4970b7(0x178)](_0xd4396){var _0x272b7d=_0x4970b7;const _0x6c0eb=document[_0x272b7d(0x181)](f);_0x6c0eb&&(_0x6c0eb[_0x272b7d(0x14a)][_0x272b7d(0x151)]=_0x272b7d(0x1a6),this[_0x272b7d(0x1b4)](_0xd4396,f));}['unMountHistoryContent'](){var _0x382771=_0x4970b7,_0x49428a;this[_0x382771(0x18d)][_0x382771(0x1a1)](),(_0x49428a=this[_0x382771(0x163)])==null||_0x49428a[_0x382771(0x1a1)](),this[_0x382771(0x163)]=null;const _0x5538ad=document[_0x382771(0x181)](f);_0x5538ad&&(_0x5538ad[_0x382771(0x14a)][_0x382771(0x151)]=_0x382771(0x145));}[_0x4970b7(0x1b4)](_0x53d08c,_0x36a7dc){var _0x3ff92f=_0x4970b7;if(this[_0x3ff92f(0x163)])return;const _0x2a6df9=new _0x59fa74({'theme':_0x7d7b2b,'locales':{[this['_localeService'][_0x3ff92f(0x139)]()]:this['_localeService'][_0x3ff92f(0x154)]()},'override':[[_0x31aedd,null]]});this[_0x3ff92f(0x163)]=_0x2a6df9;const _0x10958a=_0x2a6df9[_0x3ff92f(0x1cd)]();_0x10958a[_0x3ff92f(0x19e)](_0x3d1009)[_0x3ff92f(0x141)](this[_0x3ff92f(0x1ab)][_0x3ff92f(0x139)]()),this[_0x3ff92f(0x1a3)][_0x3ff92f(0x19c)](([_0x9518b7,_0x5928e2])=>{_0x2a6df9['registerPlugin'](_0x9518b7,_0x5928e2);}),_0x10958a[_0x3ff92f(0x196)](_0x8faa22=>{var _0x53d715=_0x3ff92f;this[_0x53d715(0x1a4)](_0x8faa22,_0x53d08c),this[_0x53d715(0x14b)](_0x8faa22,this[_0x53d715(0x173)]);});const _0x237fbd=_0x10958a[_0x3ff92f(0x19e)](_0x5e36f9),_0x34a9e5=this[_0x3ff92f(0x1d7)](_0x53d08c);_0x237fbd[_0x3ff92f(0x17b)](_0x53d08c,_0x36a7dc,_0x34a9e5);}[_0x4970b7(0x1a4)](_0x1b6d9d,_0x17b351){var _0x5e5e21=_0x4970b7;const _0x44c829=_0x1b6d9d[_0x5e5e21(0x19e)](_0x5e36f9);this['_disposableCollection'][_0x5e5e21(0x1b0)](_0x44c829['status$'][_0x5e5e21(0x14e)](_0x2ec5ae=>{var _0x12899f=_0x5e5e21;switch(_0x2ec5ae){case _0x2ff83b[_0x12899f(0x1ba)]:this[_0x12899f(0x157)][_0x12899f(0x198)](),this[_0x12899f(0x15e)]['close']();break;case _0x2ff83b[_0x12899f(0x158)]:this['unMountHistoryContent']();break;case _0x2ff83b[_0x12899f(0x1bd)]:this[_0x12899f(0x149)](),this[_0x12899f(0x173)][_0x12899f(0x19b)]({'content':this[_0x12899f(0x1ab)]['t']('editHistory.panel.listFetchError'),'type':_0x5d78cc[_0x12899f(0x1bd)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x5e5e21(0x1b0)](_0x44c829['revertRevision$'][_0x5e5e21(0x14e)](async _0x247be3=>{var _0x1e3b58=_0x5e5e21;_0x247be3&&this[_0x1e3b58(0x1d2)]['executeCommand'](_0xe4a3d3['id'],{'unitId':_0x17b351,'revision':_0x247be3});}));}[_0x4970b7(0x14b)](_0x14ebb8,_0x21cbb9){var _0x2df20e=_0x4970b7;const _0x1535ee=_0x14ebb8[_0x2df20e(0x19e)](_0x599fbd),_0x4210d8=_0x21cbb9['getContainer']();_0x4210d8&&_0x1535ee[_0x2df20e(0x150)](_0x4210d8);}[_0x4970b7(0x1d7)](_0x167a3d){var _0x4060af=_0x4970b7;const _0x57e0ed=this[_0x4060af(0x1cc)][_0x4060af(0x186)](_0x167a3d)[_0x4060af(0x171)]()[_0x4060af(0x1b6)](_0x4c04e8=>_0x4c04e8['getSheetId']()),_0x17d41b=new _0x439433(_0x167a3d)['id'],_0xdcf447=_0x57e0ed[_0x4060af(0x1b6)](_0xcf604d=>new _0x3e8d65(_0x167a3d,_0xcf604d)['id']),_0x559953=_0x57e0ed['map'](_0x4e769c=>this[_0x4060af(0x1bb)][_0x4060af(0x177)](_0x167a3d,_0x4e769c)[_0x4060af(0x1b6)](_0x65da59=>new _0x56ba19(_0x167a3d,_0x4e769c,_0x65da59[_0x4060af(0x13a)])['id']))[_0x4060af(0x197)](),_0x535c94=new _0x43e7a7(_0x167a3d)['id'];return this[_0x4060af(0x1bc)][_0x4060af(0x1c2)]([_0x17d41b,..._0xdcf447,..._0x559953,_0x535c94])[_0x4060af(0x1bf)](_0x31eec7=>!!_0x31eec7[_0x4060af(0x193)]);}};d=Ze([_0x460e8a(_0x23a0cc['Steady'],d),g(0x0,_0x280249(_0x3d1009)),g(0x1,_0x1937eb),g(0x2,_0x2c59bd),g(0x3,_0x27925d),g(0x4,_0x599fbd),g(0x5,_0xce6c6c),g(0x6,_0x280249(_0x4bb93c)),g(0x7,_0x280249(_0x577917)),g(0x8,_0x280249(_0x516ee7))],d);var l=function(){var _0x231275=_0x4970b7;return l=Object[_0x231275(0x1c9)]||function(_0xd05d3a){var _0x329041=_0x231275;for(var _0x3cef0a,_0x3b9aab=0x1,_0x457466=arguments['length'];_0x3b9aab<_0x457466;_0x3b9aab++){_0x3cef0a=arguments[_0x3b9aab];for(var _0x38c3e7 in _0x3cef0a)Object[_0x329041(0x1a2)][_0x329041(0x1d4)][_0x329041(0x146)](_0x3cef0a,_0x38c3e7)&&(_0xd05d3a[_0x38c3e7]=_0x3cef0a[_0x38c3e7]);}return _0xd05d3a;},l[_0x231275(0x18a)](this,arguments);},Je=function(_0x2a3065,_0x3a284b){var _0xa1840a=_0x4970b7,_0x9ef911={};for(var _0x2a5e43 in _0x2a3065)Object['prototype']['hasOwnProperty']['call'](_0x2a3065,_0x2a5e43)&&_0x3a284b[_0xa1840a(0x172)](_0x2a5e43)<0x0&&(_0x9ef911[_0x2a5e43]=_0x2a3065[_0x2a5e43]);if(_0x2a3065!=null&&typeof Object[_0xa1840a(0x147)]==_0xa1840a(0x1cf)){for(var _0x4a665a=0x0,_0x2a5e43=Object[_0xa1840a(0x147)](_0x2a3065);_0x4a665a<_0x2a5e43['length'];_0x4a665a++)_0x3a284b[_0xa1840a(0x172)](_0x2a5e43[_0x4a665a])<0x0&&Object['prototype'][_0xa1840a(0x175)]['call'](_0x2a3065,_0x2a5e43[_0x4a665a])&&(_0x9ef911[_0x2a5e43[_0x4a665a]]=_0x2a3065[_0x2a5e43[_0x4a665a]]);}return _0x9ef911;},$=_0x491713(function(_0x1b0459,_0x14af8e){var _0x1310a0=_0x4970b7,_0x2aa954=_0x1b0459[_0x1310a0(0x16b)],_0x5d4be7=_0x1b0459['id'],_0x2cb521=_0x1b0459['className'],_0xa31387=_0x1b0459[_0x1310a0(0x1b8)],_0x21ac0b=Je(_0x1b0459,[_0x1310a0(0x16b),'id',_0x1310a0(0x13f),_0x1310a0(0x1b8)]),_0x43d164=_0x1310a0(0x143)[_0x1310a0(0x14c)](_0x5d4be7,'\x20')[_0x1310a0(0x14c)](_0x2cb521||'')[_0x1310a0(0x15a)](),_0x4fb978=_0x3b5b75('_'[_0x1310a0(0x14c)](ei()));return A(_0x2aa954,''[_0x1310a0(0x14c)](_0x5d4be7),{'defIds':_0x2aa954['defIds'],'idSuffix':_0x4fb978[_0x1310a0(0x1d6)]},l({'ref':_0x14af8e,'className':_0x43d164},_0x21ac0b),_0xa31387);});function A(_0x44a7a7,_0x3d79b0,_0x4c8f51,_0x3a5a49,_0x5715e8){var _0x320a15=_0x4970b7;return _0x290907(_0x44a7a7[_0x320a15(0x199)],l(l({'key':_0x3d79b0},Qe(_0x44a7a7,_0x4c8f51,_0x5715e8)),_0x3a5a49),(Xe(_0x44a7a7,_0x4c8f51)['children']||[])['map'](function(_0x368016,_0x1b918d){var _0xfd2248=_0x320a15;return A(_0x368016,''[_0xfd2248(0x14c)](_0x3d79b0,'-')[_0xfd2248(0x14c)](_0x44a7a7['tag'],'-')['concat'](_0x1b918d),_0x4c8f51,void 0x0,_0x5715e8);}));}function Qe(_0x2d7c44,_0x4165fe,_0x52ed6a){var _0x5eaef4=_0x4970b7,_0xde3226=l({},_0x2d7c44[_0x5eaef4(0x1d3)]);_0x52ed6a!=null&&_0x52ed6a['colorChannel1']&&_0xde3226[_0x5eaef4(0x17a)]===_0x5eaef4(0x13c)&&(_0xde3226['fill']=_0x52ed6a[_0x5eaef4(0x13c)]);var _0x1d1106=_0x4165fe[_0x5eaef4(0x183)];return!_0x1d1106||_0x1d1106[_0x5eaef4(0x167)]===0x0||(_0x2d7c44[_0x5eaef4(0x199)]===_0x5eaef4(0x169)&&_0xde3226[_0x5eaef4(0x184)]&&(_0xde3226[_0x5eaef4(0x184)]=_0xde3226[_0x5eaef4(0x184)]+_0x4165fe[_0x5eaef4(0x18f)]),Object[_0x5eaef4(0x138)](_0xde3226)[_0x5eaef4(0x19c)](function(_0x451cfd){var _0x1247fe=_0x5eaef4,_0x2b0331=_0x451cfd[0x0],_0x11a99f=_0x451cfd[0x1];typeof _0x11a99f=='string'&&(_0xde3226[_0x2b0331]=_0x11a99f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1247fe(0x14c)](_0x4165fe[_0x1247fe(0x18f)],')')));})),_0xde3226;}function Xe(_0x2028dd,_0x53c028){var _0x3a8132=_0x4970b7,_0x8686aa,_0x1f8158=_0x53c028['defIds'];return!_0x1f8158||_0x1f8158[_0x3a8132(0x167)]===0x0?_0x2028dd:_0x2028dd[_0x3a8132(0x199)]===_0x3a8132(0x1c5)&&(!((_0x8686aa=_0x2028dd[_0x3a8132(0x15c)])===null||_0x8686aa===void 0x0)&&_0x8686aa[_0x3a8132(0x167)])?l(l({},_0x2028dd),{'children':_0x2028dd[_0x3a8132(0x15c)][_0x3a8132(0x1b6)](function(_0x1295ab){var _0x2293a9=_0x3a8132;return typeof _0x1295ab[_0x2293a9(0x1d3)]['id']==_0x2293a9(0x187)&&_0x1f8158&&_0x1f8158[_0x2293a9(0x172)](_0x1295ab[_0x2293a9(0x1d3)]['id'])>-0x1?l(l({},_0x1295ab),{'attrs':l(l({},_0x1295ab[_0x2293a9(0x1d3)]),{'id':_0x1295ab[_0x2293a9(0x1d3)]['id']+_0x53c028[_0x2293a9(0x18f)]})}):_0x1295ab;})}):_0x2028dd;}function ei(){var _0x49fe4a=_0x4970b7;return Math['random']()[_0x49fe4a(0x18b)](0x24)['substring'](0x2,0x8);}$['displayName']='UniverIcon';var ii={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4970b7(0x185),'width':_0x4970b7(0x1aa),'height':_0x4970b7(0x1aa)},'children':[{'tag':'g','attrs':{'fill':_0x4970b7(0x16d),'clipPath':_0x4970b7(0x14f)},'children':[{'tag':_0x4970b7(0x182),'attrs':{'d':'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'}},{'tag':_0x4970b7(0x182),'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':_0x4970b7(0x1c5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x4970b7(0x182),'attrs':{'fill':_0x4970b7(0x1a7),'d':_0x4970b7(0x1c6)}}]}]}],'defIds':[_0x4970b7(0x19d)]},F=_0x491713(function(_0x32ab0d,_0x515489){return _0x290907($,Object['assign']({},_0x32ab0d,{'id':'history-single','ref':_0x515489,'icon':ii}));});F[_0x4970b7(0x156)]=_0x4970b7(0x13b);const P={'id':_0x4970b7(0x1d8),'type':_0x4c9f51['OPERATION'],'handler':_0x462f87=>{var _0x535622=_0x4970b7;const _0x320612=_0x462f87[_0x535622(0x19e)](d),_0x310cb5=_0x462f87[_0x535622(0x19e)](_0x1937eb),{unitId:_0x2af1ce}=_0x586d83(_0x310cb5)||{};return _0x2af1ce?(_0x320612['mountHistoryContent'](_0x2af1ce),!0x0):!0x1;}},V=_0x4970b7(0x13b);function _0x8c75(){var _0x10dd18=['_checkCanRevert','univer.operation.toggle-edit-history','entries','getCurrentLocale','permissionId','HistorySingle','colorChannel1','134IZoOmW','UNIVER_SHEET','className','SYNCED','setLocale','width','univerjs-icon\x20univerjs-icon-','zIndex','none','call','getOwnPropertySymbols','[HistoryLoaderService]:\x20Plugin\x20','unMountHistoryContent','style','_initMessageService','concat','137996VXeKlB','subscribe','url(#history-single_clip0_907_281)','setContainer','display','state$','exhaustSavingTask','getLocales','mutations','displayName','_dialogService','Exited','editHistory.panel.revertFailed','trim','defineProperty','children','createElement','_sidebarService','_historyManagerService','height','getOwnPropertyDescriptor','reload','_historyUniver','UNIVER_CONTAINER_ID','editHistory.panel.title','menu','length','from','use','_config','icon','getConfig','currentColor','params','_init','120lCzrKC','getSheets','indexOf','_messageService','BUTTON','propertyIsEnumerable','pluginName','getSubunitRuleList','mountHistoryContent','OTHERS','fill','triggerLoadVersions','univerContainerId','data','status','_componentManager','unsubscribe','getElementById','path','defIds','xlink:href','0\x200\x2016\x2016','getUnit','string','1090VBchgu','100%','apply','toString','location','_disposableCollection','onStarting','idSuffix','absolute','_localCacheService','setConfig','value','disposeWithMe','event$','invoke','flat','closeAll','tag','8228538NktLdf','show','forEach','history-single_clip0_907_281','get','some','has','dispose','prototype','_pluginMap','_initListener','div','block','#fff','edit-history-loader.config','left','1em','_localeService','_initContainer','session','7437gIKiNA','218548VXpkiS','add','\x20has\x20been\x20registered.','Steady','top','_initUniver','_initPlugins','map','7hRMKIG','extend','./worker.js','Entered','_selectionProtectionRuleModel','_permissionService','Error','827989ATADlD','every','_revertErrorTimer','_configService','composePermission','getCollabEntity','values','defs','M0\x200H16V16H0z','_injector','set','assign','7356088BvTcNR','univer-container','_univerInstanceService','__getInjector','5056476zXWjrg','function','_menuManagerService','_collaborationController','_commandService','attrs','hasOwnProperty','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','current'];_0x8c75=function(){return _0x10dd18;};return _0x8c75();}function ti(_0x5d56b9){var _0x436ae6=_0x4970b7;return{'id':P['id'],'type':_0x43915f[_0x436ae6(0x174)],'icon':V,'tooltip':_0x436ae6(0x165),'hidden$':_0x550f72(_0x5d56b9,_0x5672fb[_0x436ae6(0x13e)]),'disabled$':_0x54e7ff(_0x5d56b9,{'workbookTypes':[_0x439433,_0x3075cf],'worksheetTypes':[],'rangeTypes':[]})};}const ri={[_0x141424[_0x4970b7(0x179)]]:{[P['id']]:{'order':0x0,'menuItemFactory':ti}}};var ni=Object[_0x4970b7(0x15b)],oi=Object[_0x4970b7(0x161)],si=(_0x5380f2,_0x3d3f38,_0x461956,_0x4d78d4)=>{for(var _0x40d43a=_0x4d78d4>0x1?void 0x0:_0x4d78d4?oi(_0x3d3f38,_0x461956):_0x3d3f38,_0x537d8f=_0x5380f2['length']-0x1,_0x3652b4;_0x537d8f>=0x0;_0x537d8f--)(_0x3652b4=_0x5380f2[_0x537d8f])&&(_0x40d43a=(_0x4d78d4?_0x3652b4(_0x3d3f38,_0x461956,_0x40d43a):_0x3652b4(_0x40d43a))||_0x40d43a);return _0x4d78d4&&_0x40d43a&&ni(_0x3d3f38,_0x461956,_0x40d43a),_0x40d43a;},v=(_0x17b550,_0x2c26c4)=>(_0x4714bb,_0xd03363)=>_0x2c26c4(_0x4714bb,_0xd03363,_0x17b550);let p=class extends _0x4f50f1{constructor(_0x40c5bd,_0x1acfa0,_0x591b3f,_0x3178da,_0x513336,_0x60f8bc,_0x8d22fb,_0x2f5f29){var _0x5e6d80=_0x4970b7;super(),h(this,_0x5e6d80(0x1c0),null),(this[_0x5e6d80(0x1d2)]=_0x40c5bd,this[_0x5e6d80(0x1d0)]=_0x1acfa0,this[_0x5e6d80(0x17f)]=_0x591b3f,this[_0x5e6d80(0x15f)]=_0x3178da,this[_0x5e6d80(0x1ab)]=_0x513336,this[_0x5e6d80(0x173)]=_0x60f8bc,this[_0x5e6d80(0x1d1)]=_0x8d22fb,this[_0x5e6d80(0x191)]=_0x2f5f29,this['_init']());}[_0x4970b7(0x16f)](){var _0x507acf=_0x4970b7;[P][_0x507acf(0x19c)](_0x38ddd0=>this[_0x507acf(0x194)](_0x194792(this[_0x507acf(0x1d2)]['registerCommand'](_0x38ddd0)))),this[_0x507acf(0x194)](this[_0x507acf(0x17f)]['register'](V,F)),this[_0x507acf(0x1d0)]['mergeMenu'](ri),this[_0x507acf(0x194)](this[_0x507acf(0x1d2)]['onCommandExecuted'](_0x33c1df=>{var _0x346cfc=_0x507acf;if(_0x33c1df['id']===_0xe4a3d3['id']){this[_0x346cfc(0x173)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x5d78cc['Loading'],'duration':0x1388});const {unitId:_0x451c77}=_0x33c1df[_0x346cfc(0x16e)],_0x276a99=this[_0x346cfc(0x1d1)][_0x346cfc(0x1c3)](_0x451c77),_0x662d2f=_0x308004([_0x276a99[_0x346cfc(0x1ad)][_0x346cfc(0x195)],_0x276a99[_0x346cfc(0x152)]])[_0x346cfc(0x14e)](async([_0x10de73,_0x331c07])=>{var _0x3e3a99=_0x346cfc;_0x10de73['eventID']===_0x17b55e['CHANGESET_ACK']&&(_0x331c07==null?void 0x0:_0x331c07[_0x3e3a99(0x17e)])===_0x48020b[_0x3e3a99(0x140)]&&_0x10de73[_0x3e3a99(0x17d)][_0x3e3a99(0x155)][_0x3e3a99(0x19f)](_0x835d02=>_0x835d02['id']===_0xe4a3d3['id'])&&(this[_0x3e3a99(0x15f)][_0x3e3a99(0x149)](),_0x662d2f[_0x3e3a99(0x180)](),this[_0x3e3a99(0x1c0)]&&clearTimeout(this[_0x3e3a99(0x1c0)]),await this[_0x3e3a99(0x191)][_0x3e3a99(0x153)](),setTimeout(()=>window[_0x3e3a99(0x18c)][_0x3e3a99(0x162)]()));});this['_revertErrorTimer']=setTimeout(()=>{var _0x28b39e=_0x346cfc;_0x662d2f[_0x28b39e(0x180)](),this['_messageService']['show']({'content':this[_0x28b39e(0x1ab)]['t'](_0x28b39e(0x159)),'type':_0x5d78cc[_0x28b39e(0x1bd)],'duration':0xbb8});},0x1388);}}));}};p=si([_0x460e8a(_0x23a0cc[_0x4970b7(0x1b2)],p),v(0x0,_0x27925d),v(0x1,_0x1d981e),v(0x2,_0x280249(_0x2fdb75)),v(0x3,_0x280249(d)),v(0x4,_0x280249(_0x3d1009)),v(0x5,_0x599fbd),v(0x6,_0x280249(_0xe36b6e)),v(0x7,_0x280249(_0x304175))],p);const ai=_0x4970b7(0x1a8),ci={};var li=Object[_0x4970b7(0x15b)],ui=Object[_0x4970b7(0x161)],gi=(_0x32032e,_0x15664a,_0x499620,_0x50785e)=>{var _0x13d17b=_0x4970b7;for(var _0x2a2c8e=_0x50785e>0x1?void 0x0:_0x50785e?ui(_0x15664a,_0x499620):_0x15664a,_0x2ae49d=_0x32032e[_0x13d17b(0x167)]-0x1,_0x277266;_0x2ae49d>=0x0;_0x2ae49d--)(_0x277266=_0x32032e[_0x2ae49d])&&(_0x2a2c8e=(_0x50785e?_0x277266(_0x15664a,_0x499620,_0x2a2c8e):_0x277266(_0x2a2c8e))||_0x2a2c8e);return _0x50785e&&_0x2a2c8e&&li(_0x15664a,_0x499620,_0x2a2c8e),_0x2a2c8e;},U=(_0x1b5b01,_0xd9ddd8)=>(_0x1973a9,_0x40d9a3)=>_0xd9ddd8(_0x1973a9,_0x40d9a3,_0x1b5b01);const vi=_0x4970b7(0x1d5);var _;let M=(_=class extends _0x365bb3{constructor(_0x273a28=ci,_0x5e0369,_0x5328f0){var _0x1f94dd=_0x4970b7;super(),this[_0x1f94dd(0x16a)]=_0x273a28,this[_0x1f94dd(0x1c7)]=_0x5e0369,this[_0x1f94dd(0x1c1)]=_0x5328f0;const {menu:_0x39a5ee,..._0x15a817}=this['_config'];_0x39a5ee&&this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](_0x1f94dd(0x166),_0x39a5ee,{'merge':!0x0}),this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](ai,_0x15a817),this[_0x1f94dd(0x16a)]['univerContainerId']&&this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](k,this[_0x1f94dd(0x16a)][_0x1f94dd(0x17c)]);}[_0x4970b7(0x18e)](){var _0x501982=_0x4970b7;[[d],[p]]['forEach'](_0x1fa4c5=>this[_0x501982(0x1c7)]['add'](_0x1fa4c5));}},h(_,'type',_0x5672fb['UNIVER_UNKNOWN']),h(_,_0x4970b7(0x176),vi),_);M=gi([U(0x1,_0x280249(_0x175cc7)),U(0x2,_0x2c59bd)],M);export{d as HistoryLoaderService,k as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,M as UniverEditHistoryLoaderPlugin};
|
|
@@ -3,5 +3,6 @@ export declare const PLUGIN_CONFIG_KEY = "edit-history-loader.config";
|
|
|
3
3
|
export declare const configSymbol: unique symbol;
|
|
4
4
|
export interface IUniverEditHistoryLoaderConfig {
|
|
5
5
|
menu?: MenuConfig;
|
|
6
|
+
univerContainerId?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export declare class UniverEditHistoryLoaderPlugin extends Plugin {
|
|
|
6
6
|
private readonly _configService;
|
|
7
7
|
static type: UniverInstanceType;
|
|
8
8
|
static pluginName: string;
|
|
9
|
-
constructor(_config: Partial<IUniverEditHistoryLoaderConfig
|
|
9
|
+
constructor(_config: Partial<IUniverEditHistoryLoaderConfig> | undefined, _injector: Injector, _configService: IConfigService);
|
|
10
10
|
onStarting(): void;
|
|
11
11
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IConfigService,
|
|
1
|
+
import { PluginCtor, Disposable, ICommandService, IConfigService, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { RangeProtectionRuleModel } from '@univerjs/sheets';
|
|
3
3
|
import { IDialogService, IMessageService, ISidebarService } from '@univerjs/ui';
|
|
4
4
|
export declare const DEFAULT_UNIVER_CONTAINER_ID = "univer-container";
|
|
5
5
|
export declare const UNIVER_CONTAINER_ID_KEY = "UNIVER_CONTAINER_ID";
|
|
6
6
|
export declare const UNIVER_HISTORY_CONTAINER_ID = "univer-history-container";
|
|
7
7
|
export declare class HistoryLoaderService extends Disposable {
|
|
8
|
-
private _injector;
|
|
9
8
|
private readonly _localeService;
|
|
10
9
|
private readonly _univerInstanceService;
|
|
11
10
|
private readonly _configService;
|
|
@@ -17,9 +16,14 @@ export declare class HistoryLoaderService extends Disposable {
|
|
|
17
16
|
private readonly _sidebarService;
|
|
18
17
|
private _historyUniver;
|
|
19
18
|
private _disposableCollection;
|
|
20
|
-
|
|
19
|
+
private _pluginMap;
|
|
20
|
+
constructor(_localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService);
|
|
21
21
|
private _init;
|
|
22
|
+
private _initContainer;
|
|
23
|
+
private _initPlugins;
|
|
22
24
|
dispose(): void;
|
|
25
|
+
registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
|
|
26
|
+
getAllPlugins(): [ctor: PluginCtor, config: Object | undefined][];
|
|
23
27
|
mountHistoryContent(unitId: string): void;
|
|
24
28
|
unMountHistoryContent(): void;
|
|
25
29
|
private _initUniver;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3b48(_0x3b1232,_0x12e10b){var _0x4e3a0b=_0x4e3a();return _0x3b48=function(_0x3b483d,_0x3968b4){_0x3b483d=_0x3b483d-0x1f4;var _0xf0273b=_0x4e3a0b[_0x3b483d];return _0xf0273b;},_0x3b48(_0x3b1232,_0x12e10b);}(function(_0x5f2e71,_0x480aa3){var _0x47d4b5=_0x3b48,_0xfd795b=_0x5f2e71();while(!![]){try{var _0x4cd046=-parseInt(_0x47d4b5(0x1f7))/0x1+-parseInt(_0x47d4b5(0x2a9))/0x2*(parseInt(_0x47d4b5(0x1fc))/0x3)+-parseInt(_0x47d4b5(0x2d9))/0x4*(parseInt(_0x47d4b5(0x2b9))/0x5)+parseInt(_0x47d4b5(0x245))/0x6+-parseInt(_0x47d4b5(0x2af))/0x7+parseInt(_0x47d4b5(0x2dc))/0x8*(-parseInt(_0x47d4b5(0x2a3))/0x9)+-parseInt(_0x47d4b5(0x230))/0xa*(-parseInt(_0x47d4b5(0x266))/0xb);if(_0x4cd046===_0x480aa3)break;else _0xfd795b['push'](_0xfd795b['shift']());}catch(_0x163bc5){_0xfd795b['push'](_0xfd795b['shift']());}}}(_0x4e3a,0xedf25),function(_0x57d4e9,_0x32f6cb){var _0x147661=_0x3b48;typeof exports==_0x147661(0x234)&&typeof module<'u'?_0x32f6cb(exports,require('@univerjs/core'),require(_0x147661(0x2e4)),require(_0x147661(0x2c8)),require(_0x147661(0x29a)),require(_0x147661(0x21a)),require(_0x147661(0x272)),require(_0x147661(0x21f)),require('@univerjs/ui'),require(_0x147661(0x2d5)),require(_0x147661(0x276)),require(_0x147661(0x2b1)),require(_0x147661(0x216)),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-hyper-link'),require(_0x147661(0x226)),require(_0x147661(0x238)),require(_0x147661(0x275)),require(_0x147661(0x21b)),require(_0x147661(0x1fe)),require(_0x147661(0x292)),require('@univerjs/sheets-data-validation'),require(_0x147661(0x2e1)),require(_0x147661(0x2e8)),require('@univerjs/sheets-drawing'),require('@univerjs/drawing'),require(_0x147661(0x219)),require('@univerjs-pro/collaboration-client'),require(_0x147661(0x237)),require(_0x147661(0x211))):typeof define=='function'&&define['amd']?define(['exports',_0x147661(0x26b),_0x147661(0x2e4),_0x147661(0x2c8),_0x147661(0x29a),_0x147661(0x21a),'@univerjs/sheets',_0x147661(0x21f),_0x147661(0x2d7),'@univerjs-pro/edit-history-viewer','@univerjs-pro/collaboration',_0x147661(0x2b1),_0x147661(0x216),'@univerjs/sheets-conditional-formatting',_0x147661(0x2f4),_0x147661(0x20b),_0x147661(0x226),_0x147661(0x238),_0x147661(0x275),'@univerjs/sheets-formula',_0x147661(0x1fe),_0x147661(0x292),_0x147661(0x247),_0x147661(0x2e1),_0x147661(0x2e8),_0x147661(0x2a5),_0x147661(0x286),'@univerjs-pro/sheets-pivot','@univerjs-pro/collaboration-client',_0x147661(0x237),_0x147661(0x211)],_0x32f6cb):(_0x57d4e9=typeof globalThis<'u'?globalThis:_0x57d4e9||self,_0x32f6cb(_0x57d4e9[_0x147661(0x25d)]={},_0x57d4e9[_0x147661(0x2e5)],_0x57d4e9[_0x147661(0x244)],_0x57d4e9[_0x147661(0x242)],_0x57d4e9['UniverDocsUi'],_0x57d4e9[_0x147661(0x22d)],_0x57d4e9[_0x147661(0x2f6)],_0x57d4e9[_0x147661(0x252)],_0x57d4e9[_0x147661(0x257)],_0x57d4e9[_0x147661(0x2ea)],_0x57d4e9['UniverCollaboration'],_0x57d4e9[_0x147661(0x1fb)],_0x57d4e9[_0x147661(0x274)],_0x57d4e9['UniverSheetsConditionalFormatting'],_0x57d4e9[_0x147661(0x1fd)],_0x57d4e9['UniverSheetsHyperLink'],_0x57d4e9[_0x147661(0x23c)],_0x57d4e9[_0x147661(0x205)],_0x57d4e9[_0x147661(0x25f)],_0x57d4e9[_0x147661(0x215)],_0x57d4e9[_0x147661(0x287)],_0x57d4e9[_0x147661(0x222)],_0x57d4e9[_0x147661(0x23e)],_0x57d4e9[_0x147661(0x2e3)],_0x57d4e9[_0x147661(0x23f)],_0x57d4e9[_0x147661(0x254)],_0x57d4e9[_0x147661(0x217)],_0x57d4e9['UniverSheetsPivot'],_0x57d4e9['UniverCollaborationClient'],_0x57d4e9[_0x147661(0x237)],_0x57d4e9[_0x147661(0x294)]));}(this,function(_0x4ed8e5,_0x57257f,_0x15645a,_0x5e0469,_0x6fdd77,_0x11c482,_0x1ca030,_0x1cfdd4,_0x274759,_0xb1e7f4,_0x1fa33d,_0x34c0e4,_0xc99e82,_0x3a52bb,_0x10179f,_0x2e88f2,_0x2a06b5,_0x3edbd2,_0x5836f4,_0x31e7bd,_0x2cf7f9,_0x5b1f47,_0x3a81d7,_0x3136dc,_0x3322aa,_0x596448,_0x107e61,_0x28bcd0,_0x365736,_0x1aaf7a,_0x296ac9){'use strict';var _0xd599ac=_0x3b48;var _0x33c742=Object[_0xd599ac(0x2ad)],_0x512396=(_0x3316d2,_0x1aa5f1,_0x16ffbf)=>_0x1aa5f1 in _0x3316d2?_0x33c742(_0x3316d2,_0x1aa5f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ffbf}):_0x3316d2[_0x1aa5f1]=_0x16ffbf,_0x507e02=(_0x476156,_0x1eead7,_0x545a46)=>_0x512396(_0x476156,typeof _0x1eead7!='symbol'?_0x1eead7+'':_0x1eead7,_0x545a46),_0x32ebe4,_0x60308a=Object[_0xd599ac(0x2ad)],_0x56bf4d=Object[_0xd599ac(0x24b)],_0x3856d4=(_0x1198a8,_0x3c4370,_0x5ecd70,_0x342a5f)=>{var _0x1aa736=_0xd599ac;for(var _0x309355=_0x342a5f>0x1?void 0x0:_0x342a5f?_0x56bf4d(_0x3c4370,_0x5ecd70):_0x3c4370,_0x7faad2=_0x1198a8[_0x1aa736(0x2d1)]-0x1,_0x5b7830;_0x7faad2>=0x0;_0x7faad2--)(_0x5b7830=_0x1198a8[_0x7faad2])&&(_0x309355=(_0x342a5f?_0x5b7830(_0x3c4370,_0x5ecd70,_0x309355):_0x5b7830(_0x309355))||_0x309355);return _0x342a5f&&_0x309355&&_0x60308a(_0x3c4370,_0x5ecd70,_0x309355),_0x309355;},_0x3385dc=(_0x3588a,_0x153843)=>(_0x225835,_0x1e3609)=>_0x153843(_0x225835,_0x1e3609,_0x3588a);const _0x49efb7='univer-container',_0x14aa73=_0xd599ac(0x2d2),_0xe6cca6=_0xd599ac(0x2cf);_0x4ed8e5[_0xd599ac(0x2bb)]=class extends _0x57257f[_0xd599ac(0x202)]{constructor(_0x5164d8,_0x1e6add,_0x1fa2c6,_0x3b82ee,_0x6e8cc2,_0x2e4a46,_0x4292c8,_0x3d9a2e,_0x3cdf16,_0x104fc){var _0x540092=_0xd599ac;super(),_0x507e02(this,_0x540092(0x2bd),null),_0x507e02(this,_0x540092(0x24d),new _0x57257f[(_0x540092(0x1f4))]()),(this[_0x540092(0x2b8)]=_0x5164d8,this[_0x540092(0x236)]=_0x1e6add,this[_0x540092(0x227)]=_0x1fa2c6,this['_configService']=_0x3b82ee,this[_0x540092(0x209)]=_0x6e8cc2,this[_0x540092(0x265)]=_0x2e4a46,this[_0x540092(0x2d3)]=_0x4292c8,this[_0x540092(0x2fe)]=_0x3d9a2e,this[_0x540092(0x1ff)]=_0x3cdf16,this[_0x540092(0x2de)]=_0x104fc,this[_0x540092(0x2ed)]());}[_0xd599ac(0x2ed)](){var _0x4eb2b7=_0xd599ac,_0x469ebc;const _0x816659=(_0x469ebc=this['_configService'][_0x4eb2b7(0x2c3)](_0x14aa73))!=null?_0x469ebc:_0x49efb7,_0x30ad68=document[_0x4eb2b7(0x2b4)](_0x816659);if(!_0x30ad68)return;const _0x14fc61=document[_0x4eb2b7(0x27a)](_0x4eb2b7(0x22a));_0x14fc61['id']=_0xe6cca6,_0x14fc61[_0x4eb2b7(0x284)]['position']=_0x4eb2b7(0x2ae),_0x14fc61[_0x4eb2b7(0x284)][_0x4eb2b7(0x2e0)]='0',_0x14fc61['style'][_0x4eb2b7(0x243)]='0',_0x14fc61[_0x4eb2b7(0x284)][_0x4eb2b7(0x206)]=_0x4eb2b7(0x2e2),_0x14fc61[_0x4eb2b7(0x284)][_0x4eb2b7(0x2e9)]='100%',_0x14fc61[_0x4eb2b7(0x284)][_0x4eb2b7(0x289)]='1000',_0x14fc61['style'][_0x4eb2b7(0x2ba)]=_0x4eb2b7(0x1f9),_0x30ad68['appendChild'](_0x14fc61);}[_0xd599ac(0x235)](){var _0x23a85=_0xd599ac;super[_0x23a85(0x235)](),this['unMountHistoryContent']();}[_0xd599ac(0x25b)](_0x40c731){var _0x58cd7=_0xd599ac;const _0x3b6e02=document[_0x58cd7(0x2b4)](_0xe6cca6);_0x3b6e02&&(_0x3b6e02['style']['display']='block',this['_initUniver'](_0x40c731,_0xe6cca6));}[_0xd599ac(0x213)](){var _0x1f4d76=_0xd599ac,_0x2674aa;this['_disposableCollection']['dispose'](),(_0x2674aa=this[_0x1f4d76(0x2bd)])==null||_0x2674aa['dispose'](),this[_0x1f4d76(0x2bd)]=null;const _0x112d15=document[_0x1f4d76(0x2b4)](_0xe6cca6);_0x112d15&&(_0x112d15[_0x1f4d76(0x284)]['display']=_0x1f4d76(0x1f9));}[_0xd599ac(0x20c)](_0x3ecf23,_0x2eee87){var _0x4760a0=_0xd599ac;if(this[_0x4760a0(0x2bd)])return;const _0x4c4b4e=new _0x57257f['Univer']({'theme':_0x15645a[_0x4760a0(0x2c4)],'locales':{[this[_0x4760a0(0x236)][_0x4760a0(0x24a)]()]:this[_0x4760a0(0x236)][_0x4760a0(0x2c2)]()},'override':[[_0x57257f[_0x4760a0(0x27e)],null]]});this['_historyUniver']=_0x4c4b4e;const _0x2d9151=_0x4c4b4e[_0x4760a0(0x25c)]();_0x2d9151[_0x4760a0(0x2a1)](_0x57257f[_0x4760a0(0x2b5)])[_0x4760a0(0x298)](this[_0x4760a0(0x236)][_0x4760a0(0x24a)]()),_0x4c4b4e['registerPlugin'](_0x107e61[_0x4760a0(0x2a0)],{'override':[[_0x107e61[_0x4760a0(0x2f3)],null]]}),_0x4c4b4e[_0x4760a0(0x248)](_0x5e0469[_0x4760a0(0x212)],{'hasScroll':!0x1}),_0x4c4b4e[_0x4760a0(0x248)](_0x6fdd77[_0x4760a0(0x2d8)]),_0x4c4b4e['registerPlugin'](_0x11c482[_0x4760a0(0x24f)]),_0x4c4b4e['registerPlugin'](_0x274759['UniverUIPlugin'],{'container':_0xe6cca6,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x274759[_0x4760a0(0x2eb)],null]]}),_0x4c4b4e[_0x4760a0(0x248)](_0x1ca030[_0x4760a0(0x290)],{'notExecuteFormula':!0x0}),_0x4c4b4e[_0x4760a0(0x248)](_0x1cfdd4[_0x4760a0(0x273)]),_0x4c4b4e['registerPlugin'](_0x1fa33d[_0x4760a0(0x2ce)]),_0x4c4b4e[_0x4760a0(0x248)](_0x34c0e4[_0x4760a0(0x21d)]),_0x4c4b4e[_0x4760a0(0x248)](_0xc99e82['UniverSheetsFilterUIPlugin']),_0x4c4b4e[_0x4760a0(0x248)](_0x3a52bb[_0x4760a0(0x299)]),_0x4c4b4e[_0x4760a0(0x248)](_0x10179f[_0x4760a0(0x2d0)]),_0x4c4b4e[_0x4760a0(0x248)](_0x2e88f2[_0x4760a0(0x203)]),_0x4c4b4e['registerPlugin'](_0x2a06b5[_0x4760a0(0x2f2)]),_0x4c4b4e[_0x4760a0(0x248)](_0x3edbd2[_0x4760a0(0x2b3)]),_0x4c4b4e[_0x4760a0(0x248)](_0x3a81d7['UniverSheetsDataValidationPlugin']),_0x4c4b4e['registerPlugin'](_0x5836f4['UniverSheetsNumfmtPlugin']),_0x4c4b4e[_0x4760a0(0x248)](_0x2cf7f9['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}),_0x4c4b4e['registerPlugin'](_0x31e7bd[_0x4760a0(0x2aa)]),_0x4c4b4e[_0x4760a0(0x248)](_0x5b1f47[_0x4760a0(0x246)],{'workerURL':_0x4760a0(0x296)}),_0x4c4b4e[_0x4760a0(0x248)](_0x3136dc[_0x4760a0(0x2ee)]),_0x4c4b4e[_0x4760a0(0x248)](_0x596448['UniverSheetsDrawingPlugin']),_0x4c4b4e[_0x4760a0(0x248)](_0x3322aa[_0x4760a0(0x2f1)]),_0x4c4b4e[_0x4760a0(0x248)](_0x28bcd0['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}),_0x4c4b4e[_0x4760a0(0x248)](_0xb1e7f4[_0x4760a0(0x24c)]),_0x2d9151[_0x4760a0(0x280)](_0x17799e=>{var _0x205e9e=_0x4760a0;this[_0x205e9e(0x269)](_0x17799e,_0x3ecf23),this[_0x205e9e(0x29d)](_0x17799e,this[_0x205e9e(0x265)]);});const _0x1fde90=_0x2d9151[_0x4760a0(0x2a1)](_0xb1e7f4[_0x4760a0(0x251)]),_0x4298ee=this[_0x4760a0(0x2c5)](_0x3ecf23);_0x1fde90[_0x4760a0(0x2e7)](_0x3ecf23,_0x2eee87,_0x4298ee);}['_initListener'](_0x4c8153,_0x3f290a){var _0x149853=_0xd599ac;const _0x2973a4=_0x4c8153[_0x149853(0x2a1)](_0xb1e7f4[_0x149853(0x251)]);this[_0x149853(0x24d)][_0x149853(0x2ca)](_0x2973a4['status$']['subscribe'](_0xe83ced=>{var _0x595d6f=_0x149853;switch(_0xe83ced){case _0xb1e7f4[_0x595d6f(0x223)]['Entered']:this[_0x595d6f(0x1ff)][_0x595d6f(0x24e)](),this[_0x595d6f(0x2de)]['close']();break;case _0xb1e7f4[_0x595d6f(0x223)][_0x595d6f(0x2a4)]:this[_0x595d6f(0x213)]();break;case _0xb1e7f4['HistoryModeStatus'][_0x595d6f(0x2ab)]:this[_0x595d6f(0x213)](),this['_messageService']['show']({'content':this[_0x595d6f(0x236)]['t'](_0x595d6f(0x208)),'type':_0x15645a['MessageType']['Error'],'duration':0xbb8});break;}})),this[_0x149853(0x24d)][_0x149853(0x2ca)](_0x2973a4['revertRevision$']['subscribe'](async _0x4f2bd2=>{var _0x5d653e=_0x149853;_0x4f2bd2&&this[_0x5d653e(0x209)][_0x5d653e(0x2f9)](_0x1fa33d[_0x5d653e(0x27c)]['id'],{'unitId':_0x3f290a,'revision':_0x4f2bd2});}));}[_0xd599ac(0x29d)](_0x3f28a6,_0x4b158f){var _0x526113=_0xd599ac;const _0x4c7d4f=_0x3f28a6['get'](_0x274759[_0x526113(0x2c6)]),_0x14a20c=_0x4b158f[_0x526113(0x2d6)]();_0x14a20c&&_0x4c7d4f[_0x526113(0x285)](_0x14a20c);}['_checkCanRevert'](_0x42f483){var _0x371549=_0xd599ac;const _0xea48f7=this[_0x371549(0x227)]['getUnit'](_0x42f483)['getSheets']()[_0x371549(0x2f0)](_0x1a2fee=>_0x1a2fee[_0x371549(0x225)]()),_0x1d9e01=new _0x1ca030['WorkbookEditablePermission'](_0x42f483)['id'],_0x3ec92d=_0xea48f7[_0x371549(0x2f0)](_0x3fba33=>new _0x1ca030[(_0x371549(0x297))](_0x42f483,_0x3fba33)['id']),_0x129db7=_0xea48f7[_0x371549(0x2f0)](_0x3f7f43=>this['_selectionProtectionRuleModel'][_0x371549(0x28e)](_0x42f483,_0x3f7f43)[_0x371549(0x2f0)](_0x1e0a20=>new _0x1ca030[(_0x371549(0x2fa))](_0x42f483,_0x3f7f43,_0x1e0a20[_0x371549(0x214)])['id']))[_0x371549(0x2cb)](),_0x33da3f=new _0x1ca030['WorkbookRecoverHistoryPermission'](_0x42f483)['id'];return this[_0x371549(0x2d3)][_0x371549(0x2b7)]([_0x1d9e01,..._0x3ec92d,..._0x129db7,_0x33da3f])[_0x371549(0x261)](_0x57c699=>!!_0x57c699['value']);}},_0x4ed8e5['HistoryLoaderService']=_0x3856d4([_0x57257f['OnLifecycle'](_0x57257f[_0xd599ac(0x2d4)]['Steady'],_0x4ed8e5[_0xd599ac(0x2bb)]),_0x3385dc(0x0,_0x57257f[_0xd599ac(0x2fc)](_0x57257f[_0xd599ac(0x259)])),_0x3385dc(0x1,_0x57257f[_0xd599ac(0x2fc)](_0x57257f[_0xd599ac(0x2b5)])),_0x3385dc(0x2,_0x57257f[_0xd599ac(0x210)]),_0x3385dc(0x3,_0x57257f[_0xd599ac(0x228)]),_0x3385dc(0x4,_0x57257f['ICommandService']),_0x3385dc(0x5,_0x274759[_0xd599ac(0x2c6)]),_0x3385dc(0x6,_0x57257f['IPermissionService']),_0x3385dc(0x7,_0x57257f[_0xd599ac(0x2fc)](_0x1ca030[_0xd599ac(0x283)])),_0x3385dc(0x8,_0x57257f['Inject'](_0x274759[_0xd599ac(0x2eb)])),_0x3385dc(0x9,_0x57257f['Inject'](_0x274759[_0xd599ac(0x21c)]))],_0x4ed8e5[_0xd599ac(0x2bb)]);var _0x110c11=function(){var _0x4507cb=_0xd599ac;return _0x110c11=Object[_0x4507cb(0x2b6)]||function(_0x395d61){var _0x5a215b=_0x4507cb;for(var _0x35b490,_0x29fed2=0x1,_0x166ad8=arguments[_0x5a215b(0x2d1)];_0x29fed2<_0x166ad8;_0x29fed2++){_0x35b490=arguments[_0x29fed2];for(var _0x234f7c in _0x35b490)Object[_0x5a215b(0x264)][_0x5a215b(0x270)][_0x5a215b(0x293)](_0x35b490,_0x234f7c)&&(_0x395d61[_0x234f7c]=_0x35b490[_0x234f7c]);}return _0x395d61;},_0x110c11[_0x4507cb(0x28f)](this,arguments);},_0x4ea3f0=function(_0x1400b2,_0x34e618){var _0x3e4408=_0xd599ac,_0x42b860={};for(var _0x15db13 in _0x1400b2)Object[_0x3e4408(0x264)][_0x3e4408(0x270)]['call'](_0x1400b2,_0x15db13)&&_0x34e618['indexOf'](_0x15db13)<0x0&&(_0x42b860[_0x15db13]=_0x1400b2[_0x15db13]);if(_0x1400b2!=null&&typeof Object[_0x3e4408(0x262)]==_0x3e4408(0x2ef)){for(var _0x5ed81d=0x0,_0x15db13=Object['getOwnPropertySymbols'](_0x1400b2);_0x5ed81d<_0x15db13['length'];_0x5ed81d++)_0x34e618[_0x3e4408(0x2c7)](_0x15db13[_0x5ed81d])<0x0&&Object[_0x3e4408(0x264)][_0x3e4408(0x232)][_0x3e4408(0x293)](_0x1400b2,_0x15db13[_0x5ed81d])&&(_0x42b860[_0x15db13[_0x5ed81d]]=_0x1400b2[_0x15db13[_0x5ed81d]]);}return _0x42b860;},_0x5c3737=_0x296ac9[_0xd599ac(0x2cc)](function(_0x1bc985,_0x32ee8b){var _0x2af253=_0xd599ac,_0x28b63d=_0x1bc985[_0x2af253(0x2a2)],_0x4f20fb=_0x1bc985['id'],_0x1c0ea1=_0x1bc985['className'],_0x366b03=_0x1bc985['extend'],_0x11de5e=_0x4ea3f0(_0x1bc985,[_0x2af253(0x2a2),'id',_0x2af253(0x255),_0x2af253(0x263)]),_0x5782b9=_0x2af253(0x20f)[_0x2af253(0x28b)](_0x4f20fb,'\x20')[_0x2af253(0x28b)](_0x1c0ea1||'')[_0x2af253(0x29c)](),_0x138e8d=_0x296ac9['useRef']('_'['concat'](_0x46aa2f()));return _0x14c9e1(_0x28b63d,''['concat'](_0x4f20fb),{'defIds':_0x28b63d[_0x2af253(0x221)],'idSuffix':_0x138e8d[_0x2af253(0x271)]},_0x110c11({'ref':_0x32ee8b,'className':_0x5782b9},_0x11de5e),_0x366b03);});function _0x14c9e1(_0x54790e,_0x21ae73,_0x16dda8,_0x47621c,_0x7dcc26){var _0x1db770=_0xd599ac;return _0x296ac9[_0x1db770(0x27a)](_0x54790e[_0x1db770(0x2db)],_0x110c11(_0x110c11({'key':_0x21ae73},_0x3c9c4d(_0x54790e,_0x16dda8,_0x7dcc26)),_0x47621c),(_0x4f608a(_0x54790e,_0x16dda8)[_0x1db770(0x22f)]||[])[_0x1db770(0x2f0)](function(_0x1e8676,_0x67f93c){var _0xf0303d=_0x1db770;return _0x14c9e1(_0x1e8676,''['concat'](_0x21ae73,'-')[_0xf0303d(0x28b)](_0x54790e[_0xf0303d(0x2db)],'-')[_0xf0303d(0x28b)](_0x67f93c),_0x16dda8,void 0x0,_0x7dcc26);}));}function _0x3c9c4d(_0x44af8f,_0x53050f,_0x13018e){var _0x3c3df4=_0xd599ac,_0x33f4f9=_0x110c11({},_0x44af8f[_0x3c3df4(0x256)]);_0x13018e!=null&&_0x13018e[_0x3c3df4(0x29e)]&&_0x33f4f9[_0x3c3df4(0x25e)]===_0x3c3df4(0x29e)&&(_0x33f4f9[_0x3c3df4(0x25e)]=_0x13018e['colorChannel1']);var _0x356ba6=_0x53050f['defIds'];return!_0x356ba6||_0x356ba6[_0x3c3df4(0x2d1)]===0x0||(_0x44af8f[_0x3c3df4(0x2db)]==='use'&&_0x33f4f9[_0x3c3df4(0x2fb)]&&(_0x33f4f9[_0x3c3df4(0x2fb)]=_0x33f4f9[_0x3c3df4(0x2fb)]+_0x53050f[_0x3c3df4(0x26a)]),Object['entries'](_0x33f4f9)['forEach'](function(_0x2cd7ca){var _0x1c8c79=_0x3c3df4,_0x3713b1=_0x2cd7ca[0x0],_0x498726=_0x2cd7ca[0x1];typeof _0x498726==_0x1c8c79(0x2bf)&&(_0x33f4f9[_0x3713b1]=_0x498726[_0x1c8c79(0x2c0)](/url\(#(.*)\)/,_0x1c8c79(0x2a6)['concat'](_0x53050f[_0x1c8c79(0x26a)],')')));})),_0x33f4f9;}function _0x4f608a(_0x325e01,_0x4f40f3){var _0x24d430=_0xd599ac,_0x40927d,_0x3c073c=_0x4f40f3['defIds'];return!_0x3c073c||_0x3c073c[_0x24d430(0x2d1)]===0x0?_0x325e01:_0x325e01[_0x24d430(0x2db)]==='defs'&&(!((_0x40927d=_0x325e01[_0x24d430(0x22f)])===null||_0x40927d===void 0x0)&&_0x40927d[_0x24d430(0x2d1)])?_0x110c11(_0x110c11({},_0x325e01),{'children':_0x325e01[_0x24d430(0x22f)][_0x24d430(0x2f0)](function(_0x1d5dd2){var _0x467e37=_0x24d430;return typeof _0x1d5dd2[_0x467e37(0x256)]['id']=='string'&&_0x3c073c&&_0x3c073c['indexOf'](_0x1d5dd2[_0x467e37(0x256)]['id'])>-0x1?_0x110c11(_0x110c11({},_0x1d5dd2),{'attrs':_0x110c11(_0x110c11({},_0x1d5dd2[_0x467e37(0x256)]),{'id':_0x1d5dd2[_0x467e37(0x256)]['id']+_0x4f40f3[_0x467e37(0x26a)]})}):_0x1d5dd2;})}):_0x325e01;}function _0x46aa2f(){var _0x41c8fa=_0xd599ac;return Math[_0x41c8fa(0x277)]()['toString'](0x24)['substring'](0x2,0x8);}_0x5c3737['displayName']=_0xd599ac(0x279);var _0x48c9da={'tag':_0xd599ac(0x23b),'attrs':{'fill':_0xd599ac(0x1f9),'viewBox':'0\x200\x2016\x2016','width':_0xd599ac(0x22b),'height':_0xd599ac(0x22b)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0xd599ac(0x267)},'children':[{'tag':_0xd599ac(0x2f7),'attrs':{'d':_0xd599ac(0x1f5)}},{'tag':_0xd599ac(0x2f7),'attrs':{'d':_0xd599ac(0x207)}}]},{'tag':_0xd599ac(0x282),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xd599ac(0x27f)},'children':[{'tag':_0xd599ac(0x2f7),'attrs':{'fill':'#fff','d':_0xd599ac(0x260)}}]}]}],'defIds':[_0xd599ac(0x27f)]},_0x38de7b=_0x296ac9[_0xd599ac(0x2cc)](function(_0x59f3b9,_0x2ed67b){var _0x4cad74=_0xd599ac;return _0x296ac9['createElement'](_0x5c3737,Object[_0x4cad74(0x2b6)]({},_0x59f3b9,{'id':'history-single','ref':_0x2ed67b,'icon':_0x48c9da}));});_0x38de7b[_0xd599ac(0x2cd)]=_0xd599ac(0x2ff);const _0x12db3b={'id':_0xd599ac(0x20a),'type':_0x57257f[_0xd599ac(0x2c9)][_0xd599ac(0x200)],'handler':_0x3996fd=>{var _0x5234fd=_0xd599ac;const _0x537345=_0x3996fd[_0x5234fd(0x2a1)](_0x4ed8e5[_0x5234fd(0x2bb)]),_0x4dcc52=_0x3996fd[_0x5234fd(0x2a1)](_0x57257f[_0x5234fd(0x210)]),{unitId:_0xa60672}=_0x1ca030[_0x5234fd(0x26d)](_0x4dcc52)||{};return _0xa60672?(_0x537345[_0x5234fd(0x25b)](_0xa60672),!0x0):!0x1;}},_0x39a025=_0xd599ac(0x2ff);function _0x6d8a98(_0x412219){var _0x435f88=_0xd599ac;return{'id':_0x12db3b['id'],'type':_0x274759['MenuItemType']['BUTTON'],'icon':_0x39a025,'tooltip':_0x435f88(0x22e),'hidden$':_0x274759[_0x435f88(0x23d)](_0x412219,_0x57257f[_0x435f88(0x2df)][_0x435f88(0x25a)]),'disabled$':_0x1cfdd4[_0x435f88(0x28c)](_0x412219,{'workbookTypes':[_0x1ca030[_0x435f88(0x231)],_0x1ca030[_0x435f88(0x224)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x584b88={[_0x274759[_0xd599ac(0x2be)]['OTHERS']]:{[_0x12db3b['id']]:{'order':0x0,'menuItemFactory':_0x6d8a98}}};var _0x534817=Object[_0xd599ac(0x2ad)],_0x22a0fb=Object['getOwnPropertyDescriptor'],_0x4cfd0b=(_0x226b15,_0x9ea5c9,_0x3178b3,_0x47cf3c)=>{var _0x281daa=_0xd599ac;for(var _0x33faab=_0x47cf3c>0x1?void 0x0:_0x47cf3c?_0x22a0fb(_0x9ea5c9,_0x3178b3):_0x9ea5c9,_0x16c7d6=_0x226b15[_0x281daa(0x2d1)]-0x1,_0x2fd88c;_0x16c7d6>=0x0;_0x16c7d6--)(_0x2fd88c=_0x226b15[_0x16c7d6])&&(_0x33faab=(_0x47cf3c?_0x2fd88c(_0x9ea5c9,_0x3178b3,_0x33faab):_0x2fd88c(_0x33faab))||_0x33faab);return _0x47cf3c&&_0x33faab&&_0x534817(_0x9ea5c9,_0x3178b3,_0x33faab),_0x33faab;},_0x347272=(_0x52915e,_0x44ada2)=>(_0x578b98,_0x4b7db2)=>_0x44ada2(_0x578b98,_0x4b7db2,_0x52915e);let _0x4561d1=class extends _0x57257f[_0xd599ac(0x201)]{constructor(_0x29c53b,_0x1d2511,_0x1e29bb,_0x446b9a,_0x1acb43,_0x42bf1e,_0x260d65,_0x1971e1){var _0x28f78a=_0xd599ac;super(),_0x507e02(this,'_revertErrorTimer',null),(this['_commandService']=_0x29c53b,this[_0x28f78a(0x220)]=_0x1d2511,this['_componentManager']=_0x1e29bb,this[_0x28f78a(0x20d)]=_0x446b9a,this[_0x28f78a(0x236)]=_0x1acb43,this[_0x28f78a(0x265)]=_0x42bf1e,this[_0x28f78a(0x278)]=_0x260d65,this[_0x28f78a(0x281)]=_0x1971e1,this[_0x28f78a(0x2ed)]());}[_0xd599ac(0x2ed)](){var _0x320ef3=_0xd599ac;[_0x12db3b][_0x320ef3(0x295)](_0x2f4533=>this['disposeWithMe'](_0x57257f[_0x320ef3(0x233)](this[_0x320ef3(0x209)][_0x320ef3(0x229)](_0x2f4533)))),this['disposeWithMe'](this[_0x320ef3(0x29b)]['register'](_0x39a025,_0x38de7b)),this['_menuManagerService'][_0x320ef3(0x2b0)](_0x584b88),this['disposeWithMe'](this[_0x320ef3(0x209)]['onCommandExecuted'](_0x505fad=>{var _0x14d95a=_0x320ef3;if(_0x505fad['id']===_0x1fa33d[_0x14d95a(0x27c)]['id']){this['_messageService'][_0x14d95a(0x268)]({'content':this[_0x14d95a(0x236)]['t'](_0x14d95a(0x26f)),'type':_0x15645a[_0x14d95a(0x253)][_0x14d95a(0x2dd)],'duration':0x1388});const {unitId:_0x434fa1}=_0x505fad[_0x14d95a(0x2ac)],_0x17e994=this[_0x14d95a(0x278)]['getCollabEntity'](_0x434fa1),_0xa94558=_0x1aaf7a[_0x14d95a(0x2b2)]([_0x17e994[_0x14d95a(0x2c1)]['event$'],_0x17e994[_0x14d95a(0x1f6)]])[_0x14d95a(0x28a)](async([_0x44ad88,_0x173440])=>{var _0xdb2816=_0x14d95a;_0x44ad88[_0xdb2816(0x2da)]===_0x1fa33d[_0xdb2816(0x241)][_0xdb2816(0x27d)]&&(_0x173440==null?void 0x0:_0x173440[_0xdb2816(0x1fa)])===_0x365736[_0xdb2816(0x239)][_0xdb2816(0x26e)]&&_0x44ad88[_0xdb2816(0x22c)][_0xdb2816(0x29f)]['some'](_0x1bcb1c=>_0x1bcb1c['id']===_0x1fa33d[_0xdb2816(0x27c)]['id'])&&(this[_0xdb2816(0x20d)][_0xdb2816(0x213)](),_0xa94558[_0xdb2816(0x204)](),this[_0xdb2816(0x2e6)]&&clearTimeout(this[_0xdb2816(0x2e6)]),await this[_0xdb2816(0x281)][_0xdb2816(0x26c)](),setTimeout(()=>window[_0xdb2816(0x2ec)][_0xdb2816(0x2a8)]()));});this[_0x14d95a(0x2e6)]=setTimeout(()=>{var _0x2f4c11=_0x14d95a;_0xa94558[_0x2f4c11(0x204)](),this['_messageService']['show']({'content':this[_0x2f4c11(0x236)]['t'](_0x2f4c11(0x1f8)),'type':_0x15645a[_0x2f4c11(0x253)][_0x2f4c11(0x2ab)],'duration':0xbb8});},0x1388);}}));}};_0x4561d1=_0x4cfd0b([_0x57257f[_0xd599ac(0x28d)](_0x57257f[_0xd599ac(0x2d4)][_0xd599ac(0x2fd)],_0x4561d1),_0x347272(0x0,_0x57257f[_0xd599ac(0x240)]),_0x347272(0x1,_0x274759[_0xd599ac(0x218)]),_0x347272(0x2,_0x57257f[_0xd599ac(0x2fc)](_0x274759[_0xd599ac(0x21e)])),_0x347272(0x3,_0x57257f[_0xd599ac(0x2fc)](_0x4ed8e5[_0xd599ac(0x2bb)])),_0x347272(0x4,_0x57257f[_0xd599ac(0x2fc)](_0x57257f[_0xd599ac(0x2b5)])),_0x347272(0x5,_0x274759[_0xd599ac(0x2c6)]),_0x347272(0x6,_0x57257f[_0xd599ac(0x2fc)](_0x365736['CollaborationController'])),_0x347272(0x7,_0x57257f[_0xd599ac(0x2fc)](_0x365736['LocalCacheService']))],_0x4561d1);const _0x3b0efe=_0xd599ac(0x291),_0x2a4c68={};var _0x64f841=Object[_0xd599ac(0x2ad)],_0x9b4e90=Object[_0xd599ac(0x24b)],_0x3d3ddd=(_0x55e7e7,_0x150a8c,_0x378e32,_0x5ca9dd)=>{for(var _0x1422c1=_0x5ca9dd>0x1?void 0x0:_0x5ca9dd?_0x9b4e90(_0x150a8c,_0x378e32):_0x150a8c,_0x4c49de=_0x55e7e7['length']-0x1,_0x2776e0;_0x4c49de>=0x0;_0x4c49de--)(_0x2776e0=_0x55e7e7[_0x4c49de])&&(_0x1422c1=(_0x5ca9dd?_0x2776e0(_0x150a8c,_0x378e32,_0x1422c1):_0x2776e0(_0x1422c1))||_0x1422c1);return _0x5ca9dd&&_0x1422c1&&_0x64f841(_0x150a8c,_0x378e32,_0x1422c1),_0x1422c1;},_0x3880f0=(_0x1f6308,_0x18fcf4)=>(_0x4cb14a,_0x29c28a)=>_0x18fcf4(_0x4cb14a,_0x29c28a,_0x1f6308);const _0x5d80a4='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';_0x4ed8e5[_0xd599ac(0x23a)]=(_0x32ebe4=class extends _0x57257f[_0xd599ac(0x27b)]{constructor(_0xcb21e1=_0x2a4c68,_0x3bf515,_0x353c77){var _0x54deee=_0xd599ac;super(),this['_config']=_0xcb21e1,this[_0x54deee(0x2b8)]=_0x3bf515,this['_configService']=_0x353c77;const {menu:_0x40060b,..._0x41bb05}=this[_0x54deee(0x2a7)];_0x40060b&&this['_configService'][_0x54deee(0x2f8)](_0x54deee(0x288),_0x40060b,{'merge':!0x0}),this[_0x54deee(0x258)][_0x54deee(0x2f8)](_0x3b0efe,_0x41bb05);}['onStarting'](){var _0x3329d5=_0xd599ac;[[_0x4ed8e5['HistoryLoaderService']],[_0x4561d1]][_0x3329d5(0x295)](_0x21cb5b=>this[_0x3329d5(0x2b8)][_0x3329d5(0x2ca)](_0x21cb5b));}},_0x507e02(_0x32ebe4,'type',_0x57257f['UniverInstanceType'][_0xd599ac(0x250)]),_0x507e02(_0x32ebe4,_0xd599ac(0x20e),_0x5d80a4),_0x32ebe4),_0x4ed8e5[_0xd599ac(0x23a)]=_0x3d3ddd([_0x3880f0(0x1,_0x57257f[_0xd599ac(0x2fc)](_0x57257f['Injector'])),_0x3880f0(0x2,_0x57257f['IConfigService'])],_0x4ed8e5[_0xd599ac(0x23a)]),_0x4ed8e5[_0xd599ac(0x2bc)]=_0x14aa73,_0x4ed8e5[_0xd599ac(0x249)]=_0xe6cca6,Object[_0xd599ac(0x2ad)](_0x4ed8e5,Symbol[_0xd599ac(0x2f5)],{'value':'Module'});}));function _0x4e3a(){var _0x474704=['CollaborationEvent','UniverDocs','left','UniverDesign','11148036DAmtQo','UniverRPCMainThreadPlugin','@univerjs/sheets-data-validation','registerPlugin','UNIVER_HISTORY_CONTAINER_ID','getCurrentLocale','getOwnPropertyDescriptor','UniverEditHistoryViewerPlugin','_disposableCollection','closeAll','UniverRenderEnginePlugin','UNIVER_UNKNOWN','HistoryManagerService','UniverSheetsUi','MessageType','UniverSheetsDrawing','className','attrs','UniverUi','_configService','Injector','UNIVER_SHEET','mountHistoryContent','__getInjector','UniverEditHistoryLoader','fill','UniverSheetsNumfmt','M0\x200H16V16H0z','every','getOwnPropertySymbols','extend','prototype','_messageService','968yITbNI','url(#history-single_clip0_907_281)','show','_initListener','idSuffix','@univerjs/core','exhaustSavingTask','getSheetCommandTarget','SYNCED','editHistory.panel.reverting','hasOwnProperty','current','@univerjs/sheets','UniverSheetsUIPlugin','UniverSheetsFilterUi','@univerjs/sheets-numfmt','@univerjs-pro/collaboration','random','_collaborationController','UniverIcon','createElement','Plugin','RevertRevisionMutation','CHANGESET_ACK','IAuthzIoService','history-single_clip0_907_281','invoke','_localCacheService','defs','RangeProtectionRuleModel','style','setContainer','@univerjs/drawing','UniverEngineFormula','menu','zIndex','subscribe','concat','getCurrentRangeDisable$','OnLifecycle','getSubunitRuleList','apply','UniverSheetsPlugin','edit-history-loader.config','@univerjs/rpc','call','React','forEach','./worker.js','WorksheetEditPermission','setLocale','UniverSheetsConditionalFormattingPlugin','@univerjs/docs-ui','_componentManager','trim','_initMessageService','colorChannel1','mutations','UniverDrawingPlugin','get','icon','34893YBeZjl','Exited','@univerjs/sheets-drawing','url(#$1','_config','reload','2EaWjgQ','UniverSheetsFormulaPlugin','Error','params','defineProperty','absolute','2118228Moilgn','mergeMenu','@univerjs/sheets-filter','combineLatest','UniverDataValidationPlugin','getElementById','LocaleService','assign','composePermission','_injector','995bXkSCN','display','HistoryLoaderService','UNIVER_CONTAINER_ID_KEY','_historyUniver','RibbonStartGroup','string','replace','session','getLocales','getConfig','greenTheme','_checkCanRevert','IMessageService','indexOf','@univerjs/docs','CommandType','add','flat','forwardRef','displayName','UniverCollaborationPlugin','univer-history-container','UniverSheetsConditionalFormattingUIPlugin','length','UNIVER_CONTAINER_ID','_permissionService','LifecycleStages','@univerjs-pro/edit-history-viewer','getContainer','@univerjs/ui','UniverDocsUIPlugin','7024mDHpgX','eventID','tag','856RtMvUr','Loading','_sidebarService','UniverInstanceType','top','@univerjs/drawing-ui','100%','UniverDrawingUi','@univerjs/design','UniverCore','_revertErrorTimer','triggerLoadVersions','@univerjs/sheets-drawing-ui','height','UniverEditHistoryViewer','IDialogService','location','_init','UniverDrawingUIPlugin','function','map','UniverSheetsDrawingUIPlugin','UniverSheetsHyperLinkUIPlugin','IImageIoService','@univerjs/sheets-conditional-formatting-ui','toStringTag','UniverSheets','path','setConfig','executeCommand','RangeProtectionPermissionEditPoint','xlink:href','Inject','Steady','_selectionProtectionRuleModel','HistorySingle','DisposableCollection','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','state$','1278297kkmSPf','editHistory.panel.revertFailed','none','status','UniverSheetsFilter','657507bvvutR','UniverSheetsConditionalFormattingUi','@univerjs/engine-formula','_dialogService','OPERATION','RxDisposable','Disposable','UniverSheetsHyperLinkPlugin','unsubscribe','UniverDataValidation','width','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','editHistory.panel.listFetchError','_commandService','univer.operation.toggle-edit-history','@univerjs/sheets-hyper-link','_initUniver','_historyManagerService','pluginName','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','react','UniverDocsPlugin','unMountHistoryContent','permissionId','UniverSheetsFormula','@univerjs/sheets-filter-ui','UniverDrawing','IMenuManagerService','@univerjs-pro/sheets-pivot','@univerjs/engine-render','@univerjs/sheets-formula','ISidebarService','UniverSheetsFilterPlugin','ComponentManager','@univerjs/sheets-ui','_menuManagerService','defIds','UniverRpc','HistoryModeStatus','WorkbookViewHistoryPermission','getSheetId','@univerjs/sheets-hyper-link-ui','_univerInstanceService','IConfigService','registerCommand','div','1em','data','UniverEngineRender','editHistory.panel.title','children','191020OuNxKb','WorkbookEditablePermission','propertyIsEnumerable','toDisposable','object','dispose','_localeService','rxjs','@univerjs/data-validation','CollaborationStatus','UniverEditHistoryLoaderPlugin','svg','UniverSheetsHyperLinkUi','getMenuHiddenObservable','UniverSheetsDataValidation','UniverSheetsDrawingUi','ICommandService'];_0x4e3a=function(){return _0x474704;};return _0x4e3a();}
|
|
1
|
+
function _0x3196(){var _0x33c144=['@univerjs/core','close','permissionId','clipPath','concat','UniverSheetsConditionalFormattingUIPlugin','_init','_historyManagerService','@univerjs-pro/sheets-pivot','@univerjs/engine-formula','@univerjs/drawing-ui','_univerInstanceService','OPERATION','@univerjs/docs','6RxjZjo','substring','history-single_clip0_907_281','UNIVER_CONTAINER_ID','_injector','@univerjs/rpc','UNIVER_SHEET','url(#history-single_clip0_907_281)','getSheetCommandTarget','toString','defineProperty','position','unsubscribe','RangeProtectionRuleModel','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','mountHistoryContent','status$','@univerjs/sheets-conditional-formatting-ui','every','createElement','getContainer','HistoryModeStatus','UniverDocsUi','disposeWithMe','editHistory.panel.revertFailed','Steady','getLocales','svg','current','ComponentManager','object','getMenuHiddenObservable','_messageService','@univerjs/sheets-hyper-link','HistoryLoaderService','OnLifecycle','UniverSheetsFilterPlugin','from','location','UniverSheetsConditionalFormattingUi','Univer','UniverSheetsConditionalFormatting','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','@univerjs/sheets-numfmt','IPermissionService','@univerjs/sheets','some','_disposableCollection','register','UniverRpc','Error','@univerjs/docs-ui','@univerjs/sheets-drawing-ui','@univerjs/sheets-filter','@univerjs/sheets-data-validation','IDialogService','1388616jjUuPL','greenTheme','@univerjs/drawing','11glhvZT','15868nnkwua','CollaborationEvent','_checkCanRevert','@univerjs/sheets-hyper-link-ui','IMenuManagerService','LifecycleStages','state$','RevertRevisionMutation','flat','editHistory.panel.reverting','children','entries','UniverDataValidationPlugin','1653245GYWlds','_sidebarService','1959xLfbrd','UniverSheetsDrawing','onCommandExecuted','CollaborationController','UniverDocs','displayName','UniverDesign','path','552mMUAyQ','params','div','edit-history-loader.config','_pluginMap','923103WIDIql','_initMessageService','pluginName','string','getOwnPropertyDescriptor','fill','IUniverInstanceService','getSheetId','top','get','colorChannel1','getCurrentLocale','invoke','ICommandService','has','UNIVER_HISTORY_CONTAINER_ID','call','left','_configService','UniverSheetsDataValidation','toDisposable','UniverFormulaEnginePlugin','UniverSheetsDrawingPlugin','trim','type','registerPlugin','value','@univerjs/engine-render','getAllPlugins','M0\x200H16V16H0z','\x20has\x20been\x20registered.','currentColor','Inject','_localCacheService','CollaborationStatus','block','replace','UniverIcon','UniverSheetsDrawingUIPlugin','UniverSheetsHyperLinkUIPlugin','event$','UniverSheetsPlugin','hasOwnProperty','Module','Disposable','2573144yrALPS','UniverEngineFormula','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','closeAll','univer-history-container','1em','display','RibbonStartGroup','0\x200\x2016\x2016','@univerjs-pro/edit-history-viewer','forwardRef','UniverSheetsFilterUIPlugin','UniverDrawing','12eOYpuM','@univerjs-pro/collaboration-client','@univerjs-pro/collaboration','@univerjs/sheets-conditional-formatting','indexOf','editHistory.panel.listFetchError','url(#$1','registerCommand','UniverSheetsUIPlugin','rxjs','getElementById','WorksheetEditPermission','@univerjs/sheets-ui','Entered','Exited','_historyUniver','_initPlugins','use','data','UniverSheetsHyperLinkPlugin','React','univer-container','UniverDrawingUIPlugin','@univerjs/ui','setConfig','defs','UniverEditHistoryLoaderPlugin','assign','WorkbookEditablePermission','@univerjs/design','_dialogService','show','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','xlink:href','onStarting','BUTTON','getOwnPropertySymbols','IConfigService','map','function','IAuthzIoService','set','editHistory.panel.title','random','idSuffix','@univerjs/data-validation','_permissionService','defIds','menu','mutations','forEach','MessageType','getSubunitRuleList','length','_selectionProtectionRuleModel','subscribe','__getInjector','_commandService','IMessageService','unMountHistoryContent','UniverEditHistoryViewer','react','_initListener','triggerLoadVersions','@univerjs/sheets-filter-ui','univerContainerId','UniverUi','_config','_initUniver','ISidebarService','UniverDocsPlugin','./worker.js','UniverCore','UniverSheetsPivotTablePlugin','_revertErrorTimer','4949030MpEiUd','UniverInstanceType','amd','prototype','extend','UniverSheetsPivot','toStringTag','RangeProtectionPermissionEditPoint','_localeService','tag','style','UniverDocsUIPlugin','#fff','add','UniverSheetsFormula','_componentManager','SYNCED','Injector','LocaleService','_menuManagerService','@univerjs/sheets-formula','dispose','DisposableCollection','propertyIsEnumerable','@univerjs/sheets-drawing','history-single','getConfig','HistorySingle','getUnit','getCurrentRangeDisable$','_initContainer','UniverDrawingUi','attrs','none','getSheets','icon','className','getCollabEntity','UniverDataValidation','appendChild','100%'];_0x3196=function(){return _0x33c144;};return _0x3196();}function _0x116e(_0x1729bb,_0x3d83e3){var _0x319629=_0x3196();return _0x116e=function(_0x116ec7,_0x206008){_0x116ec7=_0x116ec7-0x1b4;var _0x3b1b7d=_0x319629[_0x116ec7];return _0x3b1b7d;},_0x116e(_0x1729bb,_0x3d83e3);}(function(_0x565712,_0x238b54){var _0x2249f1=_0x116e,_0x58c033=_0x565712();while(!![]){try{var _0x5ee110=-parseInt(_0x2249f1(0x263))/0x1*(-parseInt(_0x2249f1(0x2b9))/0x2)+-parseInt(_0x2249f1(0x272))/0x3*(-parseInt(_0x2249f1(0x27a))/0x4)+parseInt(_0x2249f1(0x270))/0x5*(parseInt(_0x2249f1(0x226))/0x6)+parseInt(_0x2249f1(0x2ac))/0x7+-parseInt(_0x2249f1(0x25f))/0x8+parseInt(_0x2249f1(0x27f))/0x9+parseInt(_0x2249f1(0x1ef))/0xa*(-parseInt(_0x2249f1(0x262))/0xb);if(_0x5ee110===_0x238b54)break;else _0x58c033['push'](_0x58c033['shift']());}catch(_0x650d3d){_0x58c033['push'](_0x58c033['shift']());}}}(_0x3196,0x4d8d2),function(_0x3c9559,_0x5730d7){var _0x390a7a=_0x116e;typeof exports==_0x390a7a(0x244)&&typeof module<'u'?_0x5730d7(exports,require('@univerjs/core'),require(_0x390a7a(0x1c1)),require(_0x390a7a(0x225)),require(_0x390a7a(0x25a)),require(_0x390a7a(0x29a)),require(_0x390a7a(0x254)),require('@univerjs/sheets-ui'),require(_0x390a7a(0x1bb)),require('@univerjs-pro/edit-history-viewer'),require(_0x390a7a(0x2bb)),require(_0x390a7a(0x25c)),require(_0x390a7a(0x1e4)),require(_0x390a7a(0x2bc)),require(_0x390a7a(0x237)),require(_0x390a7a(0x247)),require(_0x390a7a(0x266)),require(_0x390a7a(0x1d1)),require(_0x390a7a(0x252)),require(_0x390a7a(0x203)),require(_0x390a7a(0x221)),require(_0x390a7a(0x22b)),require(_0x390a7a(0x25d)),require(_0x390a7a(0x222)),require(_0x390a7a(0x25b)),require('@univerjs/sheets-drawing'),require(_0x390a7a(0x261)),require(_0x390a7a(0x220)),require(_0x390a7a(0x2ba)),require(_0x390a7a(0x2c2)),require('react')):typeof define=='function'&&define[_0x390a7a(0x1f1)]?define(['exports',_0x390a7a(0x218),_0x390a7a(0x1c1),'@univerjs/docs',_0x390a7a(0x25a),_0x390a7a(0x29a),_0x390a7a(0x254),_0x390a7a(0x2c5),_0x390a7a(0x1bb),_0x390a7a(0x2b5),_0x390a7a(0x2bb),_0x390a7a(0x25c),_0x390a7a(0x1e4),_0x390a7a(0x2bc),_0x390a7a(0x237),_0x390a7a(0x247),_0x390a7a(0x266),_0x390a7a(0x1d1),_0x390a7a(0x252),'@univerjs/sheets-formula',_0x390a7a(0x221),_0x390a7a(0x22b),_0x390a7a(0x25d),_0x390a7a(0x222),_0x390a7a(0x25b),_0x390a7a(0x207),'@univerjs/drawing',_0x390a7a(0x220),'@univerjs-pro/collaboration-client',_0x390a7a(0x2c2),_0x390a7a(0x1e1)],_0x5730d7):(_0x3c9559=typeof globalThis<'u'?globalThis:_0x3c9559||self,_0x5730d7(_0x3c9559['UniverEditHistoryLoader']={},_0x3c9559[_0x390a7a(0x1ec)],_0x3c9559[_0x390a7a(0x278)],_0x3c9559[_0x390a7a(0x276)],_0x3c9559[_0x390a7a(0x23c)],_0x3c9559['UniverEngineRender'],_0x3c9559['UniverSheets'],_0x3c9559['UniverSheetsUi'],_0x3c9559[_0x390a7a(0x1e6)],_0x3c9559[_0x390a7a(0x1e0)],_0x3c9559['UniverCollaboration'],_0x3c9559['UniverSheetsFilter'],_0x3c9559['UniverSheetsFilterUi'],_0x3c9559[_0x390a7a(0x24f)],_0x3c9559[_0x390a7a(0x24d)],_0x3c9559['UniverSheetsHyperLink'],_0x3c9559['UniverSheetsHyperLinkUi'],_0x3c9559[_0x390a7a(0x215)],_0x3c9559['UniverSheetsNumfmt'],_0x3c9559[_0x390a7a(0x1fd)],_0x3c9559[_0x390a7a(0x2ad)],_0x3c9559[_0x390a7a(0x258)],_0x3c9559[_0x390a7a(0x292)],_0x3c9559[_0x390a7a(0x20e)],_0x3c9559['UniverSheetsDrawingUi'],_0x3c9559[_0x390a7a(0x273)],_0x3c9559[_0x390a7a(0x2b8)],_0x3c9559[_0x390a7a(0x1f4)],_0x3c9559['UniverCollaborationClient'],_0x3c9559['rxjs'],_0x3c9559[_0x390a7a(0x1b8)]));}(this,function(_0x21e81b,_0x14f4a1,_0x45cf1a,_0x454fff,_0x38c3d5,_0x5ac3a7,_0x229b1b,_0x9d3c7e,_0x2c7b66,_0x2aabb2,_0x41bc8b,_0x3d62c9,_0xdc4841,_0x304f37,_0x30aafc,_0x3d0c61,_0x1d868e,_0xe60e46,_0x324636,_0x20165a,_0x1a91c1,_0x2b5aad,_0x483430,_0x207c4c,_0x474b5b,_0x4d7a94,_0x27cb0c,_0x1a7b70,_0x32757e,_0x3c3e06,_0x36dd65){'use strict';var _0x5c9f45=_0x116e;var _0x394a76=Object['defineProperty'],_0x4acae6=(_0x1b0bca,_0x40d1e7,_0x54e247)=>_0x40d1e7 in _0x1b0bca?_0x394a76(_0x1b0bca,_0x40d1e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54e247}):_0x1b0bca[_0x40d1e7]=_0x54e247,_0x3f91ca=(_0x119981,_0x3571e2,_0x42ad32)=>_0x4acae6(_0x119981,typeof _0x3571e2!='symbol'?_0x3571e2+'':_0x3571e2,_0x42ad32),_0x3d1118,_0x3af885=Object[_0x5c9f45(0x230)],_0x27f6fb=Object['getOwnPropertyDescriptor'],_0xf5d5f6=(_0x26986f,_0x3ff624,_0x251815,_0x311a56)=>{for(var _0x33dbd4=_0x311a56>0x1?void 0x0:_0x311a56?_0x27f6fb(_0x3ff624,_0x251815):_0x3ff624,_0x453f99=_0x26986f['length']-0x1,_0x1e2b3e;_0x453f99>=0x0;_0x453f99--)(_0x1e2b3e=_0x26986f[_0x453f99])&&(_0x33dbd4=(_0x311a56?_0x1e2b3e(_0x3ff624,_0x251815,_0x33dbd4):_0x1e2b3e(_0x33dbd4))||_0x33dbd4);return _0x311a56&&_0x33dbd4&&_0x3af885(_0x3ff624,_0x251815,_0x33dbd4),_0x33dbd4;},_0x360ab7=(_0x514573,_0x5b94ef)=>(_0x2e8923,_0x275094)=>_0x5b94ef(_0x2e8923,_0x275094,_0x514573);const _0x47938b=_0x5c9f45(0x1b9),_0x59ed65=_0x5c9f45(0x229),_0x200ecd=_0x5c9f45(0x2b0);_0x21e81b[_0x5c9f45(0x248)]=class extends _0x14f4a1[_0x5c9f45(0x2ab)]{constructor(_0x24d155,_0x5a7937,_0x5d0962,_0x129a11,_0x5f2b8c,_0x12443e,_0x4f74c7,_0x50b8fc,_0x63ab0){var _0x456e32=_0x5c9f45;super(),_0x3f91ca(this,'_historyUniver',null),_0x3f91ca(this,_0x456e32(0x256),new _0x14f4a1[(_0x456e32(0x205))]()),_0x3f91ca(this,'_pluginMap',new Map()),(this['_localeService']=_0x24d155,this[_0x456e32(0x223)]=_0x5a7937,this[_0x456e32(0x291)]=_0x5d0962,this[_0x456e32(0x1dd)]=_0x129a11,this[_0x456e32(0x246)]=_0x5f2b8c,this[_0x456e32(0x1d2)]=_0x12443e,this['_selectionProtectionRuleModel']=_0x4f74c7,this[_0x456e32(0x1c2)]=_0x50b8fc,this[_0x456e32(0x271)]=_0x63ab0,this[_0x456e32(0x21e)]());}['_init'](){var _0x3861aa=_0x5c9f45;this[_0x3861aa(0x20d)](),this['_initPlugins']();}[_0x5c9f45(0x20d)](){var _0x3e7a6d=_0x5c9f45,_0x13cbc3;const _0x530073=(_0x13cbc3=this[_0x3e7a6d(0x291)][_0x3e7a6d(0x209)](_0x59ed65))!=null?_0x13cbc3:_0x47938b,_0x51eb7b=document[_0x3e7a6d(0x2c3)](_0x530073);if(!_0x51eb7b)return;const _0x366496=document[_0x3e7a6d(0x239)](_0x3e7a6d(0x27c));_0x366496['id']=_0x200ecd,_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x231)]='absolute',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x287)]='0',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x290)]='0',_0x366496[_0x3e7a6d(0x1f9)]['width']=_0x3e7a6d(0x217),_0x366496['style']['height']='100%',_0x366496[_0x3e7a6d(0x1f9)]['zIndex']='1000',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x2b2)]=_0x3e7a6d(0x210),_0x51eb7b[_0x3e7a6d(0x216)](_0x366496);}[_0x5c9f45(0x1b4)](){var _0x209714=_0x5c9f45;[[_0x27cb0c['UniverDrawingPlugin'],{'override':[[_0x27cb0c['IImageIoService'],null]]}],[_0x454fff[_0x209714(0x1ea)],{'hasScroll':!0x1}],[_0x38c3d5[_0x209714(0x1fa)]],[_0x5ac3a7['UniverRenderEnginePlugin']],[_0x2c7b66['UniverUIPlugin'],{'container':_0x200ecd,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2c7b66[_0x209714(0x25e)],null]]}],[_0x229b1b[_0x209714(0x2a8)],{'notExecuteFormula':!0x0}],[_0x9d3c7e[_0x209714(0x2c1)]],[_0x41bc8b['UniverCollaborationPlugin']],[_0x3d62c9[_0x209714(0x24a)]],[_0xdc4841[_0x209714(0x2b7)]],[_0x304f37['UniverSheetsConditionalFormattingPlugin']],[_0x30aafc[_0x209714(0x21d)]],[_0x3d0c61[_0x209714(0x1b7)]],[_0x1d868e[_0x209714(0x2a6)]],[_0xe60e46[_0x209714(0x26f)]],[_0x483430['UniverSheetsDataValidationPlugin']],[_0x324636['UniverSheetsNumfmtPlugin']],[_0x1a91c1[_0x209714(0x294)],{'notExecuteFormula':!0x0}],[_0x20165a['UniverSheetsFormulaPlugin']],[_0x2b5aad['UniverRPCMainThreadPlugin'],{'workerURL':_0x209714(0x1eb)}],[_0x207c4c[_0x209714(0x1ba)]],[_0x4d7a94[_0x209714(0x295)]],[_0x474b5b[_0x209714(0x2a5)]],[_0x1a7b70[_0x209714(0x1ed)],{'notExecuteFormula':!0x0}],[_0x2aabb2['UniverEditHistoryViewerPlugin']]]['forEach'](([_0x5e7b92,_0x5efecc])=>this['registerPlugin'](_0x5e7b92,_0x5efecc));}[_0x5c9f45(0x204)](){var _0x229533=_0x5c9f45;super[_0x229533(0x204)](),this[_0x229533(0x1df)](),this[_0x229533(0x27e)]['clear']();}[_0x5c9f45(0x298)](_0x1002cc,_0x46509b,_0x2ecd26){var _0x447b1f=_0x5c9f45;if(this[_0x447b1f(0x27e)][_0x447b1f(0x28d)](_0x1002cc['pluginName'])&&!_0x2ecd26)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1002cc[_0x447b1f(0x281)]+_0x447b1f(0x29d));this[_0x447b1f(0x27e)][_0x447b1f(0x1cd)](_0x1002cc[_0x447b1f(0x281)],[_0x1002cc,_0x46509b]);}[_0x5c9f45(0x29b)](){var _0x1673ab=_0x5c9f45;return Array[_0x1673ab(0x24b)](this[_0x1673ab(0x27e)]['values']());}[_0x5c9f45(0x235)](_0x1f0a1c){var _0x17a2c9=_0x5c9f45;const _0x4f37e8=document[_0x17a2c9(0x2c3)](_0x200ecd);_0x4f37e8&&(_0x4f37e8[_0x17a2c9(0x1f9)]['display']=_0x17a2c9(0x2a2),this[_0x17a2c9(0x1e8)](_0x1f0a1c,_0x200ecd));}[_0x5c9f45(0x1df)](){var _0x13bcaf=_0x5c9f45,_0x4f131a;this[_0x13bcaf(0x256)][_0x13bcaf(0x204)](),(_0x4f131a=this[_0x13bcaf(0x2c8)])==null||_0x4f131a['dispose'](),this['_historyUniver']=null;const _0x522c1a=document['getElementById'](_0x200ecd);_0x522c1a&&(_0x522c1a[_0x13bcaf(0x1f9)][_0x13bcaf(0x2b2)]=_0x13bcaf(0x210));}[_0x5c9f45(0x1e8)](_0x339e47,_0x2da20b){var _0x23d056=_0x5c9f45;if(this['_historyUniver'])return;const _0x4edb2e=new _0x14f4a1[(_0x23d056(0x24e))]({'theme':_0x45cf1a[_0x23d056(0x260)],'locales':{[this[_0x23d056(0x1f7)][_0x23d056(0x28a)]()]:this[_0x23d056(0x1f7)][_0x23d056(0x240)]()},'override':[[_0x14f4a1[_0x23d056(0x1cc)],null]]});this[_0x23d056(0x2c8)]=_0x4edb2e;const _0x5e514f=_0x4edb2e[_0x23d056(0x1dc)]();_0x5e514f[_0x23d056(0x288)](_0x14f4a1[_0x23d056(0x201)])['setLocale'](this[_0x23d056(0x1f7)]['getCurrentLocale']()),this['_pluginMap'][_0x23d056(0x1d6)](([_0xb4fd2f,_0x5171fb])=>{var _0x1b7c66=_0x23d056;_0x4edb2e[_0x1b7c66(0x298)](_0xb4fd2f,_0x5171fb);}),_0x5e514f[_0x23d056(0x28b)](_0x34c86e=>{var _0x3739f9=_0x23d056;this[_0x3739f9(0x1e2)](_0x34c86e,_0x339e47),this[_0x3739f9(0x280)](_0x34c86e,this[_0x3739f9(0x246)]);});const _0x22f301=_0x5e514f[_0x23d056(0x288)](_0x2aabb2['HistoryManagerService']),_0x6de89b=this['_checkCanRevert'](_0x339e47);_0x22f301[_0x23d056(0x1e3)](_0x339e47,_0x2da20b,_0x6de89b);}['_initListener'](_0xdc8862,_0x182955){var _0x531c77=_0x5c9f45;const _0x343cbc=_0xdc8862[_0x531c77(0x288)](_0x2aabb2['HistoryManagerService']);this['_disposableCollection']['add'](_0x343cbc[_0x531c77(0x236)]['subscribe'](_0x8e95f0=>{var _0x15a8c4=_0x531c77;switch(_0x8e95f0){case _0x2aabb2['HistoryModeStatus'][_0x15a8c4(0x2c6)]:this[_0x15a8c4(0x1c2)][_0x15a8c4(0x2af)](),this['_sidebarService'][_0x15a8c4(0x219)]();break;case _0x2aabb2[_0x15a8c4(0x23b)][_0x15a8c4(0x2c7)]:this['unMountHistoryContent']();break;case _0x2aabb2[_0x15a8c4(0x23b)][_0x15a8c4(0x259)]:this['unMountHistoryContent'](),this['_messageService'][_0x15a8c4(0x1c3)]({'content':this[_0x15a8c4(0x1f7)]['t'](_0x15a8c4(0x2be)),'type':_0x45cf1a[_0x15a8c4(0x1d7)][_0x15a8c4(0x259)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x531c77(0x1fc)](_0x343cbc['revertRevision$'][_0x531c77(0x1db)](async _0x3bcdb5=>{var _0x3b11fe=_0x531c77;_0x3bcdb5&&this[_0x3b11fe(0x1dd)]['executeCommand'](_0x41bc8b[_0x3b11fe(0x26a)]['id'],{'unitId':_0x182955,'revision':_0x3bcdb5});}));}[_0x5c9f45(0x280)](_0x2d0b7f,_0x194b7e){var _0x3be16b=_0x5c9f45;const _0x13ec3f=_0x2d0b7f['get'](_0x2c7b66[_0x3be16b(0x1de)]),_0x14014f=_0x194b7e[_0x3be16b(0x23a)]();_0x14014f&&_0x13ec3f['setContainer'](_0x14014f);}[_0x5c9f45(0x265)](_0x3fb76e){var _0x3e007d=_0x5c9f45;const _0x4e36fb=this[_0x3e007d(0x223)][_0x3e007d(0x20b)](_0x3fb76e)[_0x3e007d(0x211)]()[_0x3e007d(0x1ca)](_0x12edda=>_0x12edda[_0x3e007d(0x286)]()),_0x724a4c=new _0x229b1b[(_0x3e007d(0x1c0))](_0x3fb76e)['id'],_0x1e3d91=_0x4e36fb[_0x3e007d(0x1ca)](_0x313d5e=>new _0x229b1b[(_0x3e007d(0x2c4))](_0x3fb76e,_0x313d5e)['id']),_0x259af8=_0x4e36fb[_0x3e007d(0x1ca)](_0x46f6ac=>this[_0x3e007d(0x1da)][_0x3e007d(0x1d8)](_0x3fb76e,_0x46f6ac)[_0x3e007d(0x1ca)](_0x3739f0=>new _0x229b1b[(_0x3e007d(0x1f6))](_0x3fb76e,_0x46f6ac,_0x3739f0[_0x3e007d(0x21a)])['id']))[_0x3e007d(0x26b)](),_0x3362e6=new _0x229b1b['WorkbookRecoverHistoryPermission'](_0x3fb76e)['id'];return this[_0x3e007d(0x1d2)]['composePermission']([_0x724a4c,..._0x1e3d91,..._0x259af8,_0x3362e6])[_0x3e007d(0x238)](_0x288fca=>!!_0x288fca[_0x3e007d(0x299)]);}},_0x21e81b[_0x5c9f45(0x248)]=_0xf5d5f6([_0x14f4a1[_0x5c9f45(0x249)](_0x14f4a1['LifecycleStages'][_0x5c9f45(0x23f)],_0x21e81b[_0x5c9f45(0x248)]),_0x360ab7(0x0,_0x14f4a1[_0x5c9f45(0x29f)](_0x14f4a1[_0x5c9f45(0x201)])),_0x360ab7(0x1,_0x14f4a1[_0x5c9f45(0x285)]),_0x360ab7(0x2,_0x14f4a1['IConfigService']),_0x360ab7(0x3,_0x14f4a1[_0x5c9f45(0x28c)]),_0x360ab7(0x4,_0x2c7b66[_0x5c9f45(0x1de)]),_0x360ab7(0x5,_0x14f4a1[_0x5c9f45(0x253)]),_0x360ab7(0x6,_0x14f4a1['Inject'](_0x229b1b[_0x5c9f45(0x233)])),_0x360ab7(0x7,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x25e)])),_0x360ab7(0x8,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x1e9)]))],_0x21e81b['HistoryLoaderService']);var _0x1e7edf=function(){var _0x5119be=_0x5c9f45;return _0x1e7edf=Object[_0x5119be(0x1bf)]||function(_0x5c396d){var _0x473c72=_0x5119be;for(var _0xe5581d,_0x98b8dd=0x1,_0x56b3db=arguments[_0x473c72(0x1d9)];_0x98b8dd<_0x56b3db;_0x98b8dd++){_0xe5581d=arguments[_0x98b8dd];for(var _0x1e9f20 in _0xe5581d)Object[_0x473c72(0x1f2)][_0x473c72(0x2a9)][_0x473c72(0x28f)](_0xe5581d,_0x1e9f20)&&(_0x5c396d[_0x1e9f20]=_0xe5581d[_0x1e9f20]);}return _0x5c396d;},_0x1e7edf['apply'](this,arguments);},_0x3bf354=function(_0x20961a,_0xc5c901){var _0x2f0b11=_0x5c9f45,_0x3bf290={};for(var _0x99cf5b in _0x20961a)Object[_0x2f0b11(0x1f2)][_0x2f0b11(0x2a9)][_0x2f0b11(0x28f)](_0x20961a,_0x99cf5b)&&_0xc5c901['indexOf'](_0x99cf5b)<0x0&&(_0x3bf290[_0x99cf5b]=_0x20961a[_0x99cf5b]);if(_0x20961a!=null&&typeof Object['getOwnPropertySymbols']==_0x2f0b11(0x1cb)){for(var _0x52e81f=0x0,_0x99cf5b=Object[_0x2f0b11(0x1c8)](_0x20961a);_0x52e81f<_0x99cf5b[_0x2f0b11(0x1d9)];_0x52e81f++)_0xc5c901[_0x2f0b11(0x2bd)](_0x99cf5b[_0x52e81f])<0x0&&Object['prototype'][_0x2f0b11(0x206)][_0x2f0b11(0x28f)](_0x20961a,_0x99cf5b[_0x52e81f])&&(_0x3bf290[_0x99cf5b[_0x52e81f]]=_0x20961a[_0x99cf5b[_0x52e81f]]);}return _0x3bf290;},_0x312453=_0x36dd65[_0x5c9f45(0x2b6)](function(_0x565b96,_0x3e3dbc){var _0x4e5096=_0x5c9f45,_0x34e07d=_0x565b96[_0x4e5096(0x212)],_0x51a001=_0x565b96['id'],_0x448e0d=_0x565b96[_0x4e5096(0x213)],_0x40c2ef=_0x565b96[_0x4e5096(0x1f3)],_0x24be18=_0x3bf354(_0x565b96,[_0x4e5096(0x212),'id',_0x4e5096(0x213),'extend']),_0x366f49=_0x4e5096(0x250)[_0x4e5096(0x21c)](_0x51a001,'\x20')[_0x4e5096(0x21c)](_0x448e0d||'')[_0x4e5096(0x296)](),_0x4b5414=_0x36dd65['useRef']('_'[_0x4e5096(0x21c)](_0x3b39e3()));return _0x4e04c5(_0x34e07d,''[_0x4e5096(0x21c)](_0x51a001),{'defIds':_0x34e07d[_0x4e5096(0x1d3)],'idSuffix':_0x4b5414[_0x4e5096(0x242)]},_0x1e7edf({'ref':_0x3e3dbc,'className':_0x366f49},_0x24be18),_0x40c2ef);});function _0x4e04c5(_0x135446,_0x2dc9d9,_0x5d26d2,_0x25e987,_0x30add7){var _0x4af8ab=_0x5c9f45;return _0x36dd65[_0x4af8ab(0x239)](_0x135446[_0x4af8ab(0x1f8)],_0x1e7edf(_0x1e7edf({'key':_0x2dc9d9},_0x5d21e1(_0x135446,_0x5d26d2,_0x30add7)),_0x25e987),(_0x250be3(_0x135446,_0x5d26d2)['children']||[])[_0x4af8ab(0x1ca)](function(_0xeff3cf,_0x552bae){var _0x456afe=_0x4af8ab;return _0x4e04c5(_0xeff3cf,''[_0x456afe(0x21c)](_0x2dc9d9,'-')[_0x456afe(0x21c)](_0x135446[_0x456afe(0x1f8)],'-')[_0x456afe(0x21c)](_0x552bae),_0x5d26d2,void 0x0,_0x30add7);}));}function _0x5d21e1(_0x46b800,_0x1fcf89,_0x348ccb){var _0x4ffdaa=_0x5c9f45,_0x5582a6=_0x1e7edf({},_0x46b800['attrs']);_0x348ccb!=null&&_0x348ccb[_0x4ffdaa(0x289)]&&_0x5582a6[_0x4ffdaa(0x284)]===_0x4ffdaa(0x289)&&(_0x5582a6[_0x4ffdaa(0x284)]=_0x348ccb[_0x4ffdaa(0x289)]);var _0x5f336a=_0x1fcf89[_0x4ffdaa(0x1d3)];return!_0x5f336a||_0x5f336a[_0x4ffdaa(0x1d9)]===0x0||(_0x46b800[_0x4ffdaa(0x1f8)]===_0x4ffdaa(0x1b5)&&_0x5582a6[_0x4ffdaa(0x1c5)]&&(_0x5582a6[_0x4ffdaa(0x1c5)]=_0x5582a6[_0x4ffdaa(0x1c5)]+_0x1fcf89[_0x4ffdaa(0x1d0)]),Object[_0x4ffdaa(0x26e)](_0x5582a6)[_0x4ffdaa(0x1d6)](function(_0x537db5){var _0x5a9b12=_0x4ffdaa,_0x200f08=_0x537db5[0x0],_0x242fff=_0x537db5[0x1];typeof _0x242fff==_0x5a9b12(0x282)&&(_0x5582a6[_0x200f08]=_0x242fff[_0x5a9b12(0x2a3)](/url\(#(.*)\)/,_0x5a9b12(0x2bf)[_0x5a9b12(0x21c)](_0x1fcf89[_0x5a9b12(0x1d0)],')')));})),_0x5582a6;}function _0x250be3(_0x2a6d44,_0x29ad8c){var _0x3bdc68=_0x5c9f45,_0x408831,_0x3393c9=_0x29ad8c['defIds'];return!_0x3393c9||_0x3393c9[_0x3bdc68(0x1d9)]===0x0?_0x2a6d44:_0x2a6d44[_0x3bdc68(0x1f8)]===_0x3bdc68(0x1bd)&&(!((_0x408831=_0x2a6d44[_0x3bdc68(0x26d)])===null||_0x408831===void 0x0)&&_0x408831[_0x3bdc68(0x1d9)])?_0x1e7edf(_0x1e7edf({},_0x2a6d44),{'children':_0x2a6d44[_0x3bdc68(0x26d)][_0x3bdc68(0x1ca)](function(_0x867bb5){var _0x5ac29e=_0x3bdc68;return typeof _0x867bb5[_0x5ac29e(0x20f)]['id']==_0x5ac29e(0x282)&&_0x3393c9&&_0x3393c9[_0x5ac29e(0x2bd)](_0x867bb5[_0x5ac29e(0x20f)]['id'])>-0x1?_0x1e7edf(_0x1e7edf({},_0x867bb5),{'attrs':_0x1e7edf(_0x1e7edf({},_0x867bb5['attrs']),{'id':_0x867bb5['attrs']['id']+_0x29ad8c[_0x5ac29e(0x1d0)]})}):_0x867bb5;})}):_0x2a6d44;}function _0x3b39e3(){var _0xedbd22=_0x5c9f45;return Math[_0xedbd22(0x1cf)]()[_0xedbd22(0x22f)](0x24)[_0xedbd22(0x227)](0x2,0x8);}_0x312453[_0x5c9f45(0x277)]=_0x5c9f45(0x2a4);var _0x464c32={'tag':_0x5c9f45(0x241),'attrs':{'fill':'none','viewBox':_0x5c9f45(0x2b4),'width':_0x5c9f45(0x2b1),'height':_0x5c9f45(0x2b1)},'children':[{'tag':'g','attrs':{'fill':_0x5c9f45(0x29e),'clipPath':_0x5c9f45(0x22d)},'children':[{'tag':_0x5c9f45(0x279),'attrs':{'d':_0x5c9f45(0x234)}},{'tag':_0x5c9f45(0x279),'attrs':{'d':_0x5c9f45(0x2ae)}}]},{'tag':_0x5c9f45(0x1bd),'attrs':{},'children':[{'tag':_0x5c9f45(0x21b),'attrs':{'id':_0x5c9f45(0x228)},'children':[{'tag':'path','attrs':{'fill':_0x5c9f45(0x1fb),'d':_0x5c9f45(0x29c)}}]}]}],'defIds':['history-single_clip0_907_281']},_0x292456=_0x36dd65[_0x5c9f45(0x2b6)](function(_0x285db7,_0x1c108b){var _0x56dc3c=_0x5c9f45;return _0x36dd65[_0x56dc3c(0x239)](_0x312453,Object[_0x56dc3c(0x1bf)]({},_0x285db7,{'id':_0x56dc3c(0x208),'ref':_0x1c108b,'icon':_0x464c32}));});_0x292456[_0x5c9f45(0x277)]=_0x5c9f45(0x20a);const _0x198998={'id':'univer.operation.toggle-edit-history','type':_0x14f4a1['CommandType'][_0x5c9f45(0x224)],'handler':_0x18e25f=>{var _0x3ccdba=_0x5c9f45;const _0x29c906=_0x18e25f[_0x3ccdba(0x288)](_0x21e81b['HistoryLoaderService']),_0x19db3e=_0x18e25f['get'](_0x14f4a1['IUniverInstanceService']),{unitId:_0x387b0b}=_0x229b1b[_0x3ccdba(0x22e)](_0x19db3e)||{};return _0x387b0b?(_0x29c906[_0x3ccdba(0x235)](_0x387b0b),!0x0):!0x1;}},_0x1eb6de=_0x5c9f45(0x20a);function _0x3c2cae(_0x342c2a){var _0x173f32=_0x5c9f45;return{'id':_0x198998['id'],'type':_0x2c7b66['MenuItemType'][_0x173f32(0x1c7)],'icon':_0x1eb6de,'tooltip':_0x173f32(0x1ce),'hidden$':_0x2c7b66[_0x173f32(0x245)](_0x342c2a,_0x14f4a1[_0x173f32(0x1f0)][_0x173f32(0x22c)]),'disabled$':_0x9d3c7e[_0x173f32(0x20c)](_0x342c2a,{'workbookTypes':[_0x229b1b['WorkbookEditablePermission'],_0x229b1b['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x418a53={[_0x2c7b66[_0x5c9f45(0x2b3)]['OTHERS']]:{[_0x198998['id']]:{'order':0x0,'menuItemFactory':_0x3c2cae}}};var _0x143e53=Object[_0x5c9f45(0x230)],_0x24d4cc=Object['getOwnPropertyDescriptor'],_0xe908ce=(_0x4115ba,_0x549289,_0x201188,_0x4c22d4)=>{var _0x2c6d17=_0x5c9f45;for(var _0x3e44d8=_0x4c22d4>0x1?void 0x0:_0x4c22d4?_0x24d4cc(_0x549289,_0x201188):_0x549289,_0x347d8d=_0x4115ba[_0x2c6d17(0x1d9)]-0x1,_0x22745a;_0x347d8d>=0x0;_0x347d8d--)(_0x22745a=_0x4115ba[_0x347d8d])&&(_0x3e44d8=(_0x4c22d4?_0x22745a(_0x549289,_0x201188,_0x3e44d8):_0x22745a(_0x3e44d8))||_0x3e44d8);return _0x4c22d4&&_0x3e44d8&&_0x143e53(_0x549289,_0x201188,_0x3e44d8),_0x3e44d8;},_0x539e2e=(_0x278fbd,_0x2d04f9)=>(_0x580097,_0x5df13a)=>_0x2d04f9(_0x580097,_0x5df13a,_0x278fbd);let _0x21935f=class extends _0x14f4a1['RxDisposable']{constructor(_0x495c51,_0x4e04f1,_0x26cf98,_0x596bc6,_0x2d28ec,_0x28e6e9,_0x3e8615,_0x4602d7){var _0x1b4243=_0x5c9f45;super(),_0x3f91ca(this,'_revertErrorTimer',null),(this[_0x1b4243(0x1dd)]=_0x495c51,this[_0x1b4243(0x202)]=_0x4e04f1,this[_0x1b4243(0x1fe)]=_0x26cf98,this[_0x1b4243(0x21f)]=_0x596bc6,this[_0x1b4243(0x1f7)]=_0x2d28ec,this[_0x1b4243(0x246)]=_0x28e6e9,this['_collaborationController']=_0x3e8615,this['_localCacheService']=_0x4602d7,this[_0x1b4243(0x21e)]());}[_0x5c9f45(0x21e)](){var _0x59915d=_0x5c9f45;[_0x198998][_0x59915d(0x1d6)](_0x1f56ff=>this[_0x59915d(0x23d)](_0x14f4a1[_0x59915d(0x293)](this[_0x59915d(0x1dd)][_0x59915d(0x2c0)](_0x1f56ff)))),this[_0x59915d(0x23d)](this[_0x59915d(0x1fe)][_0x59915d(0x257)](_0x1eb6de,_0x292456)),this['_menuManagerService']['mergeMenu'](_0x418a53),this['disposeWithMe'](this[_0x59915d(0x1dd)][_0x59915d(0x274)](_0x549cec=>{var _0x780019=_0x59915d;if(_0x549cec['id']===_0x41bc8b[_0x780019(0x26a)]['id']){this['_messageService'][_0x780019(0x1c3)]({'content':this[_0x780019(0x1f7)]['t'](_0x780019(0x26c)),'type':_0x45cf1a[_0x780019(0x1d7)]['Loading'],'duration':0x1388});const {unitId:_0x1e01ab}=_0x549cec[_0x780019(0x27b)],_0x537d15=this['_collaborationController'][_0x780019(0x214)](_0x1e01ab),_0x409610=_0x3c3e06['combineLatest']([_0x537d15['session'][_0x780019(0x2a7)],_0x537d15[_0x780019(0x269)]])[_0x780019(0x1db)](async([_0x4c2c49,_0x3d80ca])=>{var _0x24ad84=_0x780019;_0x4c2c49['eventID']===_0x41bc8b[_0x24ad84(0x264)]['CHANGESET_ACK']&&(_0x3d80ca==null?void 0x0:_0x3d80ca['status'])===_0x32757e[_0x24ad84(0x2a1)][_0x24ad84(0x1ff)]&&_0x4c2c49[_0x24ad84(0x1b6)][_0x24ad84(0x1d5)][_0x24ad84(0x255)](_0x4a87f6=>_0x4a87f6['id']===_0x41bc8b['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x24ad84(0x1df)](),_0x409610[_0x24ad84(0x232)](),this[_0x24ad84(0x1ee)]&&clearTimeout(this[_0x24ad84(0x1ee)]),await this[_0x24ad84(0x2a0)]['exhaustSavingTask'](),setTimeout(()=>window[_0x24ad84(0x24c)]['reload']()));});this[_0x780019(0x1ee)]=setTimeout(()=>{var _0x553975=_0x780019;_0x409610[_0x553975(0x232)](),this[_0x553975(0x246)][_0x553975(0x1c3)]({'content':this[_0x553975(0x1f7)]['t'](_0x553975(0x23e)),'type':_0x45cf1a[_0x553975(0x1d7)]['Error'],'duration':0xbb8});},0x1388);}}));}};_0x21935f=_0xe908ce([_0x14f4a1[_0x5c9f45(0x249)](_0x14f4a1[_0x5c9f45(0x268)]['Steady'],_0x21935f),_0x539e2e(0x0,_0x14f4a1[_0x5c9f45(0x28c)]),_0x539e2e(0x1,_0x2c7b66[_0x5c9f45(0x267)]),_0x539e2e(0x2,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x243)])),_0x539e2e(0x3,_0x14f4a1[_0x5c9f45(0x29f)](_0x21e81b[_0x5c9f45(0x248)])),_0x539e2e(0x4,_0x14f4a1['Inject'](_0x14f4a1[_0x5c9f45(0x201)])),_0x539e2e(0x5,_0x2c7b66[_0x5c9f45(0x1de)]),_0x539e2e(0x6,_0x14f4a1[_0x5c9f45(0x29f)](_0x32757e[_0x5c9f45(0x275)])),_0x539e2e(0x7,_0x14f4a1[_0x5c9f45(0x29f)](_0x32757e['LocalCacheService']))],_0x21935f);const _0x2c05d9=_0x5c9f45(0x27d),_0x450150={};var _0x147c7e=Object['defineProperty'],_0x2e3fc7=Object[_0x5c9f45(0x283)],_0x2414f6=(_0x5e2feb,_0x2f1832,_0x5d7919,_0x5e9c4c)=>{for(var _0xa5a914=_0x5e9c4c>0x1?void 0x0:_0x5e9c4c?_0x2e3fc7(_0x2f1832,_0x5d7919):_0x2f1832,_0x54efda=_0x5e2feb['length']-0x1,_0x5c6ba4;_0x54efda>=0x0;_0x54efda--)(_0x5c6ba4=_0x5e2feb[_0x54efda])&&(_0xa5a914=(_0x5e9c4c?_0x5c6ba4(_0x2f1832,_0x5d7919,_0xa5a914):_0x5c6ba4(_0xa5a914))||_0xa5a914);return _0x5e9c4c&&_0xa5a914&&_0x147c7e(_0x2f1832,_0x5d7919,_0xa5a914),_0xa5a914;},_0xeceecf=(_0x5cf4a1,_0x2d9086)=>(_0x1e868e,_0x58c823)=>_0x2d9086(_0x1e868e,_0x58c823,_0x5cf4a1);const _0x33e712=_0x5c9f45(0x1c4);_0x21e81b['UniverEditHistoryLoaderPlugin']=(_0x3d1118=class extends _0x14f4a1['Plugin']{constructor(_0x56c089=_0x450150,_0x30dcd1,_0xab2cc9){var _0x192a74=_0x5c9f45;super(),this[_0x192a74(0x1e7)]=_0x56c089,this['_injector']=_0x30dcd1,this[_0x192a74(0x291)]=_0xab2cc9;const {menu:_0x2e6a56,..._0x4e3311}=this[_0x192a74(0x1e7)];_0x2e6a56&&this[_0x192a74(0x291)][_0x192a74(0x1bc)](_0x192a74(0x1d4),_0x2e6a56,{'merge':!0x0}),this[_0x192a74(0x291)][_0x192a74(0x1bc)](_0x2c05d9,_0x4e3311),this[_0x192a74(0x1e7)][_0x192a74(0x1e5)]&&this[_0x192a74(0x291)]['setConfig'](_0x59ed65,this[_0x192a74(0x1e7)]['univerContainerId']);}[_0x5c9f45(0x1c6)](){var _0x1ed5e1=_0x5c9f45;[[_0x21e81b[_0x1ed5e1(0x248)]],[_0x21935f]][_0x1ed5e1(0x1d6)](_0x297aca=>this[_0x1ed5e1(0x22a)][_0x1ed5e1(0x1fc)](_0x297aca));}},_0x3f91ca(_0x3d1118,_0x5c9f45(0x297),_0x14f4a1[_0x5c9f45(0x1f0)][_0x5c9f45(0x251)]),_0x3f91ca(_0x3d1118,_0x5c9f45(0x281),_0x33e712),_0x3d1118),_0x21e81b[_0x5c9f45(0x1be)]=_0x2414f6([_0xeceecf(0x1,_0x14f4a1[_0x5c9f45(0x29f)](_0x14f4a1[_0x5c9f45(0x200)])),_0xeceecf(0x2,_0x14f4a1[_0x5c9f45(0x1c9)])],_0x21e81b['UniverEditHistoryLoaderPlugin']),_0x21e81b['UNIVER_CONTAINER_ID_KEY']=_0x59ed65,_0x21e81b[_0x5c9f45(0x28e)]=_0x200ecd,Object['defineProperty'](_0x21e81b,Symbol[_0x5c9f45(0x1f5)],{'value':_0x5c9f45(0x2aa)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -48,74 +48,74 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
|
50
50
|
"rxjs": ">=7.0.0",
|
|
51
|
-
"@univerjs-pro/collaboration": "0.2.
|
|
52
|
-
"@univerjs-pro/collaboration-client": "0.2.
|
|
53
|
-
"@univerjs-pro/edit-history-viewer": "0.2.
|
|
54
|
-
"@univerjs
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/design": "0.2.
|
|
58
|
-
"@univerjs/
|
|
59
|
-
"@univerjs/docs
|
|
60
|
-
"@univerjs/drawing": "0.2.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/engine-formula": "0.2.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/rpc": "0.2.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets-conditional-formatting": "0.2.
|
|
67
|
-
"@univerjs/sheets
|
|
68
|
-
"@univerjs/sheets-data-validation": "0.2.
|
|
69
|
-
"@univerjs/sheets-drawing
|
|
70
|
-
"@univerjs/sheets-
|
|
71
|
-
"@univerjs/sheets-
|
|
72
|
-
"@univerjs/sheets-
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-
|
|
75
|
-
"@univerjs/sheets-hyper-link-ui": "0.2.
|
|
76
|
-
"@univerjs/sheets-numfmt": "0.2.
|
|
77
|
-
"@univerjs/sheets-ui": "0.2.
|
|
78
|
-
"@univerjs/ui": "0.2.
|
|
51
|
+
"@univerjs-pro/collaboration": "0.2.13",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.2.13",
|
|
53
|
+
"@univerjs-pro/edit-history-viewer": "0.2.13",
|
|
54
|
+
"@univerjs/core": "0.2.13",
|
|
55
|
+
"@univerjs/data-validation": "0.2.13",
|
|
56
|
+
"@univerjs-pro/sheets-pivot": "0.2.13",
|
|
57
|
+
"@univerjs/design": "0.2.13",
|
|
58
|
+
"@univerjs/drawing": "0.2.13",
|
|
59
|
+
"@univerjs/docs": "0.2.13",
|
|
60
|
+
"@univerjs/drawing-ui": "0.2.13",
|
|
61
|
+
"@univerjs/docs-ui": "0.2.13",
|
|
62
|
+
"@univerjs/engine-formula": "0.2.13",
|
|
63
|
+
"@univerjs/engine-render": "0.2.13",
|
|
64
|
+
"@univerjs/rpc": "0.2.13",
|
|
65
|
+
"@univerjs/sheets-conditional-formatting": "0.2.13",
|
|
66
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.2.13",
|
|
67
|
+
"@univerjs/sheets": "0.2.13",
|
|
68
|
+
"@univerjs/sheets-data-validation": "0.2.13",
|
|
69
|
+
"@univerjs/sheets-drawing": "0.2.13",
|
|
70
|
+
"@univerjs/sheets-drawing-ui": "0.2.13",
|
|
71
|
+
"@univerjs/sheets-filter": "0.2.13",
|
|
72
|
+
"@univerjs/sheets-filter-ui": "0.2.13",
|
|
73
|
+
"@univerjs/sheets-formula": "0.2.13",
|
|
74
|
+
"@univerjs/sheets-hyper-link": "0.2.13",
|
|
75
|
+
"@univerjs/sheets-hyper-link-ui": "0.2.13",
|
|
76
|
+
"@univerjs/sheets-numfmt": "0.2.13",
|
|
77
|
+
"@univerjs/sheets-ui": "0.2.13",
|
|
78
|
+
"@univerjs/ui": "0.2.13"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@univerjs/icons": "^0.1.
|
|
82
|
-
"@univerjs/
|
|
81
|
+
"@univerjs/icons": "^0.1.78",
|
|
82
|
+
"@univerjs-pro/collaboration-client": "0.2.13",
|
|
83
|
+
"@univerjs-pro/collaboration": "0.2.13",
|
|
84
|
+
"@univerjs-pro/edit-history-viewer": "0.2.13",
|
|
85
|
+
"@univerjs/data-validation": "0.2.13",
|
|
86
|
+
"@univerjs/design": "0.2.13",
|
|
87
|
+
"@univerjs/docs": "0.2.13",
|
|
88
|
+
"@univerjs/core": "0.2.13",
|
|
89
|
+
"@univerjs/docs-ui": "0.2.13",
|
|
90
|
+
"@univerjs/engine-formula": "0.2.13",
|
|
91
|
+
"@univerjs/drawing": "0.2.13",
|
|
92
|
+
"@univerjs/protocol": "0.1.39-alpha.15",
|
|
93
|
+
"@univerjs/engine-render": "0.2.13",
|
|
94
|
+
"@univerjs/rpc": "0.2.13",
|
|
95
|
+
"@univerjs/sheets": "0.2.13",
|
|
96
|
+
"@univerjs/drawing-ui": "0.2.13",
|
|
97
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.2.13",
|
|
98
|
+
"@univerjs/sheets-data-validation": "0.2.13",
|
|
99
|
+
"@univerjs/sheets-drawing": "0.2.13",
|
|
100
|
+
"@univerjs/sheets-filter": "0.2.13",
|
|
101
|
+
"@univerjs/sheets-filter-ui": "0.2.13",
|
|
102
|
+
"@univerjs/sheets-conditional-formatting": "0.2.13",
|
|
103
|
+
"@univerjs/sheets-hyper-link": "0.2.13",
|
|
104
|
+
"@univerjs/sheets-formula": "0.2.13",
|
|
105
|
+
"@univerjs/sheets-drawing-ui": "0.2.13",
|
|
106
|
+
"@univerjs/sheets-hyper-link-ui": "0.2.13",
|
|
107
|
+
"@univerjs/sheets-numfmt": "0.2.13",
|
|
108
|
+
"@univerjs/ui": "0.2.13",
|
|
109
|
+
"@univerjs/sheets-ui": "0.2.13"
|
|
83
110
|
},
|
|
84
111
|
"devDependencies": {
|
|
85
112
|
"@types/react": "^18.3.5",
|
|
86
113
|
"react": "18.3.1",
|
|
87
114
|
"rxjs": "^7.8.1",
|
|
88
|
-
"typescript": "^5.
|
|
89
|
-
"vite": "^5.4.
|
|
115
|
+
"typescript": "^5.6.2",
|
|
116
|
+
"vite": "^5.4.3",
|
|
90
117
|
"vitest": "^2.0.5",
|
|
91
|
-
"@univerjs-
|
|
92
|
-
"@univerjs-pro/collaboration-client": "0.2.12",
|
|
93
|
-
"@univerjs/core": "0.2.12",
|
|
94
|
-
"@univerjs/design": "0.2.12",
|
|
95
|
-
"@univerjs-pro/edit-history-viewer": "0.2.12",
|
|
96
|
-
"@univerjs/data-validation": "0.2.12",
|
|
97
|
-
"@univerjs/docs-ui": "0.2.12",
|
|
98
|
-
"@univerjs/drawing": "0.2.12",
|
|
99
|
-
"@univerjs/drawing-ui": "0.2.12",
|
|
100
|
-
"@univerjs/engine-formula": "0.2.12",
|
|
101
|
-
"@univerjs/docs": "0.2.12",
|
|
102
|
-
"@univerjs/engine-render": "0.2.12",
|
|
103
|
-
"@univerjs/rpc": "0.2.12",
|
|
104
|
-
"@univerjs/shared": "0.2.12",
|
|
105
|
-
"@univerjs/sheets": "0.2.12",
|
|
106
|
-
"@univerjs/sheets-conditional-formatting": "0.2.12",
|
|
107
|
-
"@univerjs/sheets-conditional-formatting-ui": "0.2.12",
|
|
108
|
-
"@univerjs/sheets-data-validation": "0.2.12",
|
|
109
|
-
"@univerjs/sheets-drawing": "0.2.12",
|
|
110
|
-
"@univerjs/sheets-drawing-ui": "0.2.12",
|
|
111
|
-
"@univerjs/sheets-filter-ui": "0.2.12",
|
|
112
|
-
"@univerjs/sheets-filter": "0.2.12",
|
|
113
|
-
"@univerjs/sheets-formula": "0.2.12",
|
|
114
|
-
"@univerjs/sheets-hyper-link": "0.2.12",
|
|
115
|
-
"@univerjs/sheets-hyper-link-ui": "0.2.12",
|
|
116
|
-
"@univerjs/sheets-numfmt": "0.2.12",
|
|
117
|
-
"@univerjs/sheets-ui": "0.2.12",
|
|
118
|
-
"@univerjs/ui": "0.2.12"
|
|
118
|
+
"@univerjs-infra/shared": "0.2.13"
|
|
119
119
|
},
|
|
120
120
|
"univerSpace": {
|
|
121
121
|
".": {
|