@univerjs-pro/edit-history-loader 0.2.12 → 0.2.14

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 _0x405d2f=_0x36a8;(function(_0x4bc6c0,_0x129d84){var _0x5c8589=_0x36a8,_0x3e767b=_0x4bc6c0();while(!![]){try{var _0x4f99e3=parseInt(_0x5c8589(0x14f))/0x1+-parseInt(_0x5c8589(0xac))/0x2+parseInt(_0x5c8589(0x94))/0x3+parseInt(_0x5c8589(0xeb))/0x4+-parseInt(_0x5c8589(0x76))/0x5+-parseInt(_0x5c8589(0x128))/0x6+-parseInt(_0x5c8589(0x131))/0x7*(-parseInt(_0x5c8589(0x13e))/0x8);if(_0x4f99e3===_0x129d84)break;else _0x3e767b['push'](_0x3e767b['shift']());}catch(_0x51f5d0){_0x3e767b['push'](_0x3e767b['shift']());}}}(_0x280b,0xd0577));var D=Object[_0x405d2f(0x8b)],j=(_0x5574ed,_0x438b05,_0x5b89e0)=>_0x438b05 in _0x5574ed?D(_0x5574ed,_0x438b05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b89e0}):_0x5574ed[_0x438b05]=_0x5b89e0,f=(_0x2c1bda,_0x455c2c,_0x1d3402)=>j(_0x2c1bda,typeof _0x455c2c!=_0x405d2f(0xa1)?_0x455c2c+'':_0x455c2c,_0x1d3402);Object[_0x405d2f(0x8b)](exports,Symbol[_0x405d2f(0x101)],{'value':'Module'});const s=require(_0x405d2f(0x14c)),P=require(_0x405d2f(0xa4)),q=require('@univerjs/docs'),x=require('@univerjs/docs-ui'),k=require(_0x405d2f(0x108)),h=require(_0x405d2f(0x11b)),O=require(_0x405d2f(0x71)),v=require(_0x405d2f(0x136)),S=require(_0x405d2f(0xa5)),p=require(_0x405d2f(0xc1)),F=require('@univerjs/sheets-filter'),V=require(_0x405d2f(0xff)),A=require('@univerjs/sheets-conditional-formatting'),$=require('@univerjs/sheets-conditional-formatting-ui'),W=require(_0x405d2f(0xba)),Y=require(_0x405d2f(0x10d)),B=require(_0x405d2f(0xd0)),G=require(_0x405d2f(0xca)),K=require(_0x405d2f(0x145)),z=require('@univerjs/engine-formula'),Z=require(_0x405d2f(0x120)),J=require(_0x405d2f(0xbf)),Q=require(_0x405d2f(0xd9)),X=require(_0x405d2f(0x7e)),ee=require(_0x405d2f(0x14e)),H=require(_0x405d2f(0xed)),ie=require('@univerjs-pro/sheets-pivot'),E=require(_0x405d2f(0x6b)),te=require(_0x405d2f(0x9c)),C=require(_0x405d2f(0x7d));var re=Object[_0x405d2f(0x8b)],ne=Object[_0x405d2f(0x112)],oe=(_0x215804,_0x624ec3,_0x6ce6e1,_0x34dea2)=>{for(var _0x65a6f2=_0x34dea2>0x1?void 0x0:_0x34dea2?ne(_0x624ec3,_0x6ce6e1):_0x624ec3,_0xac0b67=_0x215804['length']-0x1,_0x463427;_0xac0b67>=0x0;_0xac0b67--)(_0x463427=_0x215804[_0xac0b67])&&(_0x65a6f2=(_0x34dea2?_0x463427(_0x624ec3,_0x6ce6e1,_0x65a6f2):_0x463427(_0x65a6f2))||_0x65a6f2);return _0x34dea2&&_0x65a6f2&&re(_0x624ec3,_0x6ce6e1,_0x65a6f2),_0x65a6f2;},d=(_0x4211f3,_0x5a889a)=>(_0x38b0e3,_0x1ae648)=>_0x5a889a(_0x38b0e3,_0x1ae648,_0x4211f3);const se='univer-container',U=_0x405d2f(0x103),y=_0x405d2f(0xd3);exports[_0x405d2f(0x88)]=class extends s[_0x405d2f(0x11c)]{constructor(_0xbf028d,_0x4e9b49,_0x1bf985,_0x5b0d31,_0x580011,_0x41152c,_0x159226,_0xcdea5b,_0x4cfacf){var _0x4989cb=_0x405d2f;super(),f(this,_0x4989cb(0xce),null),f(this,'_disposableCollection',new s[(_0x4989cb(0xf2))]()),f(this,_0x4989cb(0xea),new Map()),(this[_0x4989cb(0x121)]=_0xbf028d,this[_0x4989cb(0xbe)]=_0x4e9b49,this[_0x4989cb(0xcd)]=_0x1bf985,this['_commandService']=_0x5b0d31,this[_0x4989cb(0x118)]=_0x580011,this['_permissionService']=_0x41152c,this[_0x4989cb(0xb5)]=_0x159226,this['_dialogService']=_0xcdea5b,this[_0x4989cb(0xbd)]=_0x4cfacf,this['_init']());}['_init'](){var _0x5c138a=_0x405d2f;this[_0x5c138a(0x119)](),this[_0x5c138a(0x122)]();}[_0x405d2f(0x119)](){var _0x343425=_0x405d2f,_0x2bffc0;const _0xe05734=(_0x2bffc0=this[_0x343425(0xcd)]['getConfig'](U))!=null?_0x2bffc0:se,_0x82dd29=document[_0x343425(0xb8)](_0xe05734);if(!_0x82dd29)return;const _0x57a713=document[_0x343425(0x73)]('div');_0x57a713['id']=y,_0x57a713['style'][_0x343425(0xf8)]=_0x343425(0xa2),_0x57a713[_0x343425(0x95)]['top']='0',_0x57a713['style'][_0x343425(0xb4)]='0',_0x57a713[_0x343425(0x95)]['width']=_0x343425(0x8e),_0x57a713['style'][_0x343425(0xd5)]=_0x343425(0x8e),_0x57a713[_0x343425(0x95)][_0x343425(0x132)]=_0x343425(0xe1),_0x57a713[_0x343425(0x95)][_0x343425(0x7a)]=_0x343425(0x117),_0x82dd29[_0x343425(0x129)](_0x57a713);}['_initPlugins'](){var _0x4f5f57=_0x405d2f;[[H[_0x4f5f57(0x11a)],{'override':[[H[_0x4f5f57(0x104)],null]]}],[q['UniverDocsPlugin'],{'hasScroll':!0x1}],[x[_0x4f5f57(0x6e)]],[k['UniverRenderEnginePlugin']],[v[_0x4f5f57(0x98)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[v[_0x4f5f57(0xbc)],null]]}],[h[_0x4f5f57(0xe4)],{'notExecuteFormula':!0x0}],[O[_0x4f5f57(0xda)]],[p[_0x4f5f57(0xf7)]],[F[_0x4f5f57(0x75)]],[V[_0x4f5f57(0xa3)]],[A[_0x4f5f57(0x12b)]],[$['UniverSheetsConditionalFormattingUIPlugin']],[W[_0x4f5f57(0x85)]],[Y[_0x4f5f57(0x140)]],[B['UniverDataValidationPlugin']],[J[_0x4f5f57(0x67)]],[G[_0x4f5f57(0xae)]],[z[_0x4f5f57(0x82)],{'notExecuteFormula':!0x0}],[K[_0x4f5f57(0x12c)]],[Z[_0x4f5f57(0x144)],{'workerURL':_0x4f5f57(0x6d)}],[Q[_0x4f5f57(0xdf)]],[ee['UniverSheetsDrawingPlugin']],[X['UniverSheetsDrawingUIPlugin']],[ie[_0x4f5f57(0x127)],{'notExecuteFormula':!0x0}],[S[_0x4f5f57(0x77)]]][_0x4f5f57(0x10b)](([_0x58d236,_0x3d0e0c])=>this[_0x4f5f57(0xe0)](_0x58d236,_0x3d0e0c));}[_0x405d2f(0xa0)](){var _0x21bf1d=_0x405d2f;super[_0x21bf1d(0xa0)](),this[_0x21bf1d(0x9d)](),this[_0x21bf1d(0xea)][_0x21bf1d(0xc9)]();}[_0x405d2f(0xe0)](_0x59dd8d,_0x425835,_0x4b9575){var _0x29bbe1=_0x405d2f;if(this['_pluginMap'][_0x29bbe1(0x83)](_0x59dd8d[_0x29bbe1(0x155)])&&!_0x4b9575)throw new Error(_0x29bbe1(0x81)+_0x59dd8d['pluginName']+'\x20has\x20been\x20registered.');this[_0x29bbe1(0xea)][_0x29bbe1(0x12e)](_0x59dd8d[_0x29bbe1(0x155)],[_0x59dd8d,_0x425835]);}['getAllPlugins'](){var _0x1ef192=_0x405d2f;return Array[_0x1ef192(0x12a)](this[_0x1ef192(0xea)][_0x1ef192(0xad)]());}['mountHistoryContent'](_0x344f79){var _0xfe8081=_0x405d2f;const _0x3fd92b=document['getElementById'](y);_0x3fd92b&&(_0x3fd92b[_0xfe8081(0x95)][_0xfe8081(0x7a)]=_0xfe8081(0x6a),this[_0xfe8081(0x13a)](_0x344f79,y));}[_0x405d2f(0x9d)](){var _0x18f6e5=_0x405d2f,_0x22d244;this[_0x18f6e5(0x9f)][_0x18f6e5(0xa0)](),(_0x22d244=this[_0x18f6e5(0xce)])==null||_0x22d244[_0x18f6e5(0xa0)](),this[_0x18f6e5(0xce)]=null;const _0x2fe89c=document['getElementById'](y);_0x2fe89c&&(_0x2fe89c['style'][_0x18f6e5(0x7a)]='none');}[_0x405d2f(0x13a)](_0x33b7db,_0x101e01){var _0x191e6f=_0x405d2f;if(this[_0x191e6f(0xce)])return;const _0x25332b=new s[(_0x191e6f(0x8c))]({'theme':P['greenTheme'],'locales':{[this[_0x191e6f(0x121)][_0x191e6f(0xc4)]()]:this[_0x191e6f(0x121)][_0x191e6f(0x147)]()},'override':[[s[_0x191e6f(0x91)],null]]});this[_0x191e6f(0xce)]=_0x25332b;const _0x16f9dc=_0x25332b[_0x191e6f(0xcf)]();_0x16f9dc[_0x191e6f(0xb2)](s[_0x191e6f(0x12f)])[_0x191e6f(0x110)](this[_0x191e6f(0x121)][_0x191e6f(0xc4)]()),this[_0x191e6f(0xea)][_0x191e6f(0x10b)](([_0x1aeb59,_0x1e03c5])=>{var _0x55ab97=_0x191e6f;_0x25332b[_0x55ab97(0xe0)](_0x1aeb59,_0x1e03c5);}),_0x16f9dc[_0x191e6f(0x116)](_0x50aa4e=>{var _0x40148b=_0x191e6f;this[_0x40148b(0x89)](_0x50aa4e,_0x33b7db),this[_0x40148b(0x134)](_0x50aa4e,this['_messageService']);});const _0xdcf4c2=_0x16f9dc[_0x191e6f(0xb2)](S[_0x191e6f(0xc7)]),_0x3700c1=this[_0x191e6f(0xcb)](_0x33b7db);_0xdcf4c2[_0x191e6f(0xfc)](_0x33b7db,_0x101e01,_0x3700c1);}['_initListener'](_0x9f79b1,_0x5f315f){var _0x4a39dd=_0x405d2f;const _0x29d3ca=_0x9f79b1[_0x4a39dd(0xb2)](S[_0x4a39dd(0xc7)]);this[_0x4a39dd(0x9f)][_0x4a39dd(0xf9)](_0x29d3ca[_0x4a39dd(0xe7)][_0x4a39dd(0x11e)](_0x46ee61=>{var _0x3a82a7=_0x4a39dd;switch(_0x46ee61){case S['HistoryModeStatus'][_0x3a82a7(0x10f)]:this[_0x3a82a7(0x14d)][_0x3a82a7(0x79)](),this[_0x3a82a7(0xbd)][_0x3a82a7(0x14a)]();break;case S['HistoryModeStatus'][_0x3a82a7(0x157)]:this[_0x3a82a7(0x9d)]();break;case S[_0x3a82a7(0xcc)]['Error']:this[_0x3a82a7(0x9d)](),this[_0x3a82a7(0x118)][_0x3a82a7(0x113)]({'content':this[_0x3a82a7(0x121)]['t'](_0x3a82a7(0xdc)),'type':P[_0x3a82a7(0x130)]['Error'],'duration':0xbb8});break;}})),this[_0x4a39dd(0x9f)][_0x4a39dd(0xf9)](_0x29d3ca[_0x4a39dd(0x115)][_0x4a39dd(0x11e)](async _0x1cbfcc=>{var _0x33b582=_0x4a39dd;_0x1cbfcc&&this[_0x33b582(0x148)][_0x33b582(0xc0)](p[_0x33b582(0x159)]['id'],{'unitId':_0x5f315f,'revision':_0x1cbfcc});}));}[_0x405d2f(0x134)](_0x5ca7fd,_0xf8613b){var _0x467e3d=_0x405d2f;const _0x5e521a=_0x5ca7fd[_0x467e3d(0xb2)](v[_0x467e3d(0x9a)]),_0x3b19fc=_0xf8613b['getContainer']();_0x3b19fc&&_0x5e521a['setContainer'](_0x3b19fc);}[_0x405d2f(0xcb)](_0x2001f4){var _0xeb8ab1=_0x405d2f;const _0x6e189e=this[_0xeb8ab1(0xbe)][_0xeb8ab1(0x8d)](_0x2001f4)[_0xeb8ab1(0x141)]()[_0xeb8ab1(0x138)](_0xdebdbd=>_0xdebdbd[_0xeb8ab1(0x72)]()),_0x569488=new h[(_0xeb8ab1(0x114))](_0x2001f4)['id'],_0x3ca30e=_0x6e189e[_0xeb8ab1(0x138)](_0x2c963c=>new h[(_0xeb8ab1(0xde))](_0x2001f4,_0x2c963c)['id']),_0x461ee0=_0x6e189e[_0xeb8ab1(0x138)](_0xfe9a13=>this[_0xeb8ab1(0xb5)]['getSubunitRuleList'](_0x2001f4,_0xfe9a13)['map'](_0x1731b0=>new h[(_0xeb8ab1(0x11f))](_0x2001f4,_0xfe9a13,_0x1731b0['permissionId'])['id']))['flat'](),_0x22e5ff=new h['WorkbookRecoverHistoryPermission'](_0x2001f4)['id'];return this[_0xeb8ab1(0x124)][_0xeb8ab1(0xd7)]([_0x569488,..._0x3ca30e,..._0x461ee0,_0x22e5ff])[_0xeb8ab1(0xc5)](_0x37c197=>!!_0x37c197[_0xeb8ab1(0xe6)]);}},exports[_0x405d2f(0x88)]=oe([s['OnLifecycle'](s[_0x405d2f(0x142)]['Steady'],exports[_0x405d2f(0x88)]),d(0x0,s[_0x405d2f(0x92)](s[_0x405d2f(0x12f)])),d(0x1,s['IUniverInstanceService']),d(0x2,s[_0x405d2f(0xdd)]),d(0x3,s[_0x405d2f(0x6c)]),d(0x4,v['IMessageService']),d(0x5,s['IPermissionService']),d(0x6,s[_0x405d2f(0x92)](h[_0x405d2f(0xee)])),d(0x7,s[_0x405d2f(0x92)](v[_0x405d2f(0xbc)])),d(0x8,s[_0x405d2f(0x92)](v[_0x405d2f(0x154)]))],exports[_0x405d2f(0x88)]);function _0x280b(){var _0x37bdf1=['OTHERS','UniverSheetsHyperLinkPlugin','xlink:href','RxDisposable','HistoryLoaderService','_initListener','assign','defineProperty','Univer','getUnit','100%','random','_menuManagerService','IAuthzIoService','Inject','function','1518633KpFKxP','style','1em','attrs','UniverUIPlugin','event$','IMessageService','edit-history-loader.config','rxjs','unMountHistoryContent','getCurrentRangeDisable$','_disposableCollection','dispose','symbol','absolute','UniverSheetsFilterUIPlugin','@univerjs/design','@univerjs-pro/edit-history-viewer','_historyManagerService','MenuItemType','UNIVER_SHEET','onStarting','mergeMenu','length','3399280fVsJeV','values','UniverSheetsNumfmtPlugin','_collaborationController','status','current','get','defs','left','_selectionProtectionRuleModel','state$','useRef','getElementById','IMenuManagerService','@univerjs/sheets-hyper-link','getMenuHiddenObservable','IDialogService','_sidebarService','_univerInstanceService','@univerjs/sheets-data-validation','executeCommand','@univerjs-pro/collaboration','icon','editHistory.panel.revertFailed','getCurrentLocale','every','_componentManager','HistoryManagerService','clipPath','clear','@univerjs/sheets-numfmt','_checkCanRevert','HistoryModeStatus','_configService','_historyUniver','__getInjector','@univerjs/data-validation','_revertErrorTimer','CHANGESET_ACK','univer-history-container','Plugin','height','UniverEditHistoryLoaderPlugin','composePermission','substring','@univerjs/drawing-ui','UniverSheetsUIPlugin','trim','editHistory.panel.listFetchError','IConfigService','WorksheetEditPermission','UniverDrawingUIPlugin','registerPlugin','1000','combineLatest','CollaborationEvent','UniverSheetsPlugin','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','value','status$','HistorySingle','history-single_clip0_907_281','_pluginMap','1377228ugZFNh','_injector','@univerjs/drawing','RangeProtectionRuleModel','entries','call','univerjs-icon\x20univerjs-icon-','DisposableCollection','Injector','replace','type','indexOf','UniverCollaborationPlugin','position','add','hasOwnProperty','setConfig','triggerLoadVersions','children','url(#history-single_clip0_907_281)','@univerjs/sheets-filter-ui','path','toStringTag','toDisposable','UNIVER_CONTAINER_ID','IImageIoService','idSuffix','extend','displayName','@univerjs/engine-render','getCollabEntity','editHistory.panel.title','forEach','Loading','@univerjs/sheets-hyper-link-ui','_localCacheService','Entered','setLocale','tag','getOwnPropertyDescriptor','show','WorkbookEditablePermission','revertRevision$','invoke','none','_messageService','_initContainer','UniverDrawingPlugin','@univerjs/sheets','Disposable','BUTTON','subscribe','RangeProtectionPermissionEditPoint','@univerjs/rpc','_localeService','_initPlugins','history-single','_permissionService','apply','forwardRef','UniverSheetsPivotTablePlugin','415584dOqyqT','appendChild','from','UniverSheetsConditionalFormattingPlugin','UniverSheetsFormulaPlugin','data','set','LocaleService','MessageType','1099AZEQiJ','zIndex','disposeWithMe','_initMessageService','propertyIsEnumerable','@univerjs/ui','register','map','Steady','_initUniver','location','toString','colorChannel1','154768PgbVYU','_init','UniverSheetsHyperLinkUIPlugin','getSheets','LifecycleStages','reload','UniverRPCMainThreadPlugin','@univerjs/sheets-formula','_config','getLocales','_commandService','onCommandExecuted','close','fill','@univerjs/core','_dialogService','@univerjs/sheets-drawing','124203odoRne','UNIVER_HISTORY_CONTAINER_ID','0\x200\x2016\x2016','LocalCacheService','M0\x200H16V16H0z','ISidebarService','pluginName','className','Exited','params','RevertRevisionMutation','OPERATION','getOwnPropertySymbols','WorkbookViewHistoryPermission','OnLifecycle','UniverSheetsDataValidationPlugin','concat','editHistory.panel.reverting','block','@univerjs-pro/collaboration-client','ICommandService','./worker.js','UniverDocsUIPlugin','defIds','RibbonStartGroup','@univerjs/sheets-ui','getSheetId','createElement','prototype','UniverSheetsFilterPlugin','6948860IEchMs','UniverEditHistoryViewerPlugin','CollaborationStatus','closeAll','display','UNIVER_UNKNOWN','getSheetCommandTarget','react','@univerjs/sheets-drawing-ui','use','UniverIcon','[HistoryLoaderService]:\x20Plugin\x20','UniverFormulaEnginePlugin','has'];_0x280b=function(){return _0x37bdf1;};return _0x280b();}var u=function(){var _0x5ebef7=_0x405d2f;return u=Object['assign']||function(_0x326b04){var _0xc4ab8a=_0x36a8;for(var _0x19d9f5,_0x5c1db7=0x1,_0x223aa4=arguments[_0xc4ab8a(0xab)];_0x5c1db7<_0x223aa4;_0x5c1db7++){_0x19d9f5=arguments[_0x5c1db7];for(var _0x4a13f2 in _0x19d9f5)Object[_0xc4ab8a(0x74)][_0xc4ab8a(0xfa)]['call'](_0x19d9f5,_0x4a13f2)&&(_0x326b04[_0x4a13f2]=_0x19d9f5[_0x4a13f2]);}return _0x326b04;},u[_0x5ebef7(0x125)](this,arguments);},ae=function(_0x202f8d,_0x3e15b9){var _0x526fc4=_0x405d2f,_0x3357f1={};for(var _0x2f3b7d in _0x202f8d)Object[_0x526fc4(0x74)]['hasOwnProperty'][_0x526fc4(0xf0)](_0x202f8d,_0x2f3b7d)&&_0x3e15b9['indexOf'](_0x2f3b7d)<0x0&&(_0x3357f1[_0x2f3b7d]=_0x202f8d[_0x2f3b7d]);if(_0x202f8d!=null&&typeof Object[_0x526fc4(0x64)]==_0x526fc4(0x93)){for(var _0x406e92=0x0,_0x2f3b7d=Object['getOwnPropertySymbols'](_0x202f8d);_0x406e92<_0x2f3b7d[_0x526fc4(0xab)];_0x406e92++)_0x3e15b9[_0x526fc4(0xf6)](_0x2f3b7d[_0x406e92])<0x0&&Object['prototype'][_0x526fc4(0x135)][_0x526fc4(0xf0)](_0x202f8d,_0x2f3b7d[_0x406e92])&&(_0x3357f1[_0x2f3b7d[_0x406e92]]=_0x202f8d[_0x2f3b7d[_0x406e92]]);}return _0x3357f1;},w=C['forwardRef'](function(_0x104633,_0x2f4f84){var _0x3667cd=_0x405d2f,_0xa960fb=_0x104633[_0x3667cd(0xc2)],_0x52515b=_0x104633['id'],_0x3a8035=_0x104633[_0x3667cd(0x156)],_0x2e6ea0=_0x104633[_0x3667cd(0x106)],_0x4e7019=ae(_0x104633,[_0x3667cd(0xc2),'id',_0x3667cd(0x156),'extend']),_0x4049a5=_0x3667cd(0xf1)['concat'](_0x52515b,'\x20')[_0x3667cd(0x68)](_0x3a8035||'')[_0x3667cd(0xdb)](),_0x35e5f9=C[_0x3667cd(0xb7)]('_'['concat'](ue()));return L(_0xa960fb,''[_0x3667cd(0x68)](_0x52515b),{'defIds':_0xa960fb[_0x3667cd(0x6f)],'idSuffix':_0x35e5f9[_0x3667cd(0xb1)]},u({'ref':_0x2f4f84,'className':_0x4049a5},_0x4e7019),_0x2e6ea0);});function L(_0x1f7573,_0x3290f5,_0x9b9fb7,_0x2935b2,_0x27f00b){var _0x526947=_0x405d2f;return C[_0x526947(0x73)](_0x1f7573[_0x526947(0x111)],u(u({'key':_0x3290f5},ce(_0x1f7573,_0x9b9fb7,_0x27f00b)),_0x2935b2),(le(_0x1f7573,_0x9b9fb7)['children']||[])['map'](function(_0xf37283,_0x2ac2b8){var _0x3bd851=_0x526947;return L(_0xf37283,''['concat'](_0x3290f5,'-')[_0x3bd851(0x68)](_0x1f7573[_0x3bd851(0x111)],'-')['concat'](_0x2ac2b8),_0x9b9fb7,void 0x0,_0x27f00b);}));}function ce(_0x311553,_0x302e39,_0x24a3b9){var _0x391037=_0x405d2f,_0x1bbc6b=u({},_0x311553[_0x391037(0x97)]);_0x24a3b9!=null&&_0x24a3b9[_0x391037(0x13d)]&&_0x1bbc6b['fill']===_0x391037(0x13d)&&(_0x1bbc6b[_0x391037(0x14b)]=_0x24a3b9['colorChannel1']);var _0x5ecc09=_0x302e39[_0x391037(0x6f)];return!_0x5ecc09||_0x5ecc09[_0x391037(0xab)]===0x0||(_0x311553[_0x391037(0x111)]===_0x391037(0x7f)&&_0x1bbc6b[_0x391037(0x86)]&&(_0x1bbc6b[_0x391037(0x86)]=_0x1bbc6b[_0x391037(0x86)]+_0x302e39[_0x391037(0x105)]),Object[_0x391037(0xef)](_0x1bbc6b)[_0x391037(0x10b)](function(_0x4595f1){var _0x2b4678=_0x391037,_0x5e5737=_0x4595f1[0x0],_0x23f3aa=_0x4595f1[0x1];typeof _0x23f3aa=='string'&&(_0x1bbc6b[_0x5e5737]=_0x23f3aa[_0x2b4678(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x2b4678(0x68)](_0x302e39[_0x2b4678(0x105)],')')));})),_0x1bbc6b;}function le(_0x2ed987,_0x564600){var _0x294f81=_0x405d2f,_0x2fd2c8,_0x34fd13=_0x564600[_0x294f81(0x6f)];return!_0x34fd13||_0x34fd13[_0x294f81(0xab)]===0x0?_0x2ed987:_0x2ed987[_0x294f81(0x111)]===_0x294f81(0xb3)&&(!((_0x2fd2c8=_0x2ed987['children'])===null||_0x2fd2c8===void 0x0)&&_0x2fd2c8['length'])?u(u({},_0x2ed987),{'children':_0x2ed987[_0x294f81(0xfd)][_0x294f81(0x138)](function(_0x1c5206){var _0x4d7c56=_0x294f81;return typeof _0x1c5206[_0x4d7c56(0x97)]['id']=='string'&&_0x34fd13&&_0x34fd13[_0x4d7c56(0xf6)](_0x1c5206[_0x4d7c56(0x97)]['id'])>-0x1?u(u({},_0x1c5206),{'attrs':u(u({},_0x1c5206[_0x4d7c56(0x97)]),{'id':_0x1c5206[_0x4d7c56(0x97)]['id']+_0x564600['idSuffix']})}):_0x1c5206;})}):_0x2ed987;}function ue(){var _0x59e6c0=_0x405d2f;return Math[_0x59e6c0(0x8f)]()[_0x59e6c0(0x13c)](0x24)[_0x59e6c0(0xd8)](0x2,0x8);}w[_0x405d2f(0x107)]=_0x405d2f(0x80);var ve={'tag':'svg','attrs':{'fill':_0x405d2f(0x117),'viewBox':_0x405d2f(0x151),'width':'1em','height':_0x405d2f(0x96)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x405d2f(0xfe)},'children':[{'tag':_0x405d2f(0x100),'attrs':{'d':_0x405d2f(0xe5)}},{'tag':_0x405d2f(0x100),'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':_0x405d2f(0xb3),'attrs':{},'children':[{'tag':_0x405d2f(0xc8),'attrs':{'id':_0x405d2f(0xe9)},'children':[{'tag':_0x405d2f(0x100),'attrs':{'fill':'#fff','d':_0x405d2f(0x153)}}]}]}],'defIds':[_0x405d2f(0xe9)]},N=C[_0x405d2f(0x126)](function(_0x588e94,_0x510c15){var _0x42561d=_0x405d2f;return C[_0x42561d(0x73)](w,Object[_0x42561d(0x8a)]({},_0x588e94,{'id':_0x42561d(0x123),'ref':_0x510c15,'icon':ve}));});N[_0x405d2f(0x107)]=_0x405d2f(0xe8);const M={'id':'univer.operation.toggle-edit-history','type':s['CommandType'][_0x405d2f(0x15a)],'handler':_0x2f19a8=>{var _0x4bf8af=_0x405d2f;const _0x39b04f=_0x2f19a8[_0x4bf8af(0xb2)](exports[_0x4bf8af(0x88)]),_0x3b191b=_0x2f19a8[_0x4bf8af(0xb2)](s['IUniverInstanceService']),{unitId:_0x141704}=h[_0x4bf8af(0x7c)](_0x3b191b)||{};return _0x141704?(_0x39b04f['mountHistoryContent'](_0x141704),!0x0):!0x1;}},T=_0x405d2f(0xe8);function ge(_0x208c26){var _0x26b4b1=_0x405d2f;return{'id':M['id'],'type':v[_0x26b4b1(0xa7)][_0x26b4b1(0x11d)],'icon':T,'tooltip':_0x26b4b1(0x10a),'hidden$':v[_0x26b4b1(0xbb)](_0x208c26,s['UniverInstanceType'][_0x26b4b1(0xa8)]),'disabled$':O[_0x26b4b1(0x9e)](_0x208c26,{'workbookTypes':[h[_0x26b4b1(0x114)],h[_0x26b4b1(0x65)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[v[_0x405d2f(0x70)][_0x405d2f(0x84)]]:{[M['id']]:{'order':0x0,'menuItemFactory':ge}}};var he=Object[_0x405d2f(0x8b)],_e=Object[_0x405d2f(0x112)],fe=(_0x16d076,_0x39e1e7,_0x1a3356,_0x57816d)=>{for(var _0x41e29e=_0x57816d>0x1?void 0x0:_0x57816d?_e(_0x39e1e7,_0x1a3356):_0x39e1e7,_0x5822ca=_0x16d076['length']-0x1,_0x1b700c;_0x5822ca>=0x0;_0x5822ca--)(_0x1b700c=_0x16d076[_0x5822ca])&&(_0x41e29e=(_0x57816d?_0x1b700c(_0x39e1e7,_0x1a3356,_0x41e29e):_0x1b700c(_0x41e29e))||_0x41e29e);return _0x57816d&&_0x41e29e&&he(_0x39e1e7,_0x1a3356,_0x41e29e),_0x41e29e;},_=(_0x35a75b,_0x1f30ba)=>(_0xf3de78,_0x5b7f60)=>_0x1f30ba(_0xf3de78,_0x5b7f60,_0x35a75b);let b=class extends s[_0x405d2f(0x87)]{constructor(_0x471842,_0x1f0322,_0x4bb974,_0x1ca00e,_0x583f5b,_0x4dbaf2,_0x1f77b0,_0x23571c){var _0x5f08e=_0x405d2f;super(),f(this,_0x5f08e(0xd1),null),(this[_0x5f08e(0x148)]=_0x471842,this[_0x5f08e(0x90)]=_0x1f0322,this[_0x5f08e(0xc6)]=_0x4bb974,this[_0x5f08e(0xa6)]=_0x1ca00e,this[_0x5f08e(0x121)]=_0x583f5b,this[_0x5f08e(0x118)]=_0x4dbaf2,this[_0x5f08e(0xaf)]=_0x1f77b0,this[_0x5f08e(0x10e)]=_0x23571c,this[_0x5f08e(0x13f)]());}[_0x405d2f(0x13f)](){var _0x15f897=_0x405d2f;[M][_0x15f897(0x10b)](_0xb5dc62=>this['disposeWithMe'](s[_0x15f897(0x102)](this['_commandService']['registerCommand'](_0xb5dc62)))),this[_0x15f897(0x133)](this['_componentManager'][_0x15f897(0x137)](T,N)),this[_0x15f897(0x90)][_0x15f897(0xaa)](de),this[_0x15f897(0x133)](this[_0x15f897(0x148)][_0x15f897(0x149)](_0x74e182=>{var _0x11d930=_0x15f897;if(_0x74e182['id']===p[_0x11d930(0x159)]['id']){this[_0x11d930(0x118)]['show']({'content':this[_0x11d930(0x121)]['t'](_0x11d930(0x69)),'type':P[_0x11d930(0x130)][_0x11d930(0x10c)],'duration':0x1388});const {unitId:_0x220f10}=_0x74e182[_0x11d930(0x158)],_0x1ed065=this[_0x11d930(0xaf)][_0x11d930(0x109)](_0x220f10),_0x386e6b=te[_0x11d930(0xe2)]([_0x1ed065['session'][_0x11d930(0x99)],_0x1ed065[_0x11d930(0xb6)]])['subscribe'](async([_0x4ed49c,_0x4e8307])=>{var _0x67dd20=_0x11d930;_0x4ed49c['eventID']===p[_0x67dd20(0xe3)][_0x67dd20(0xd2)]&&(_0x4e8307==null?void 0x0:_0x4e8307[_0x67dd20(0xb0)])===E[_0x67dd20(0x78)]['SYNCED']&&_0x4ed49c[_0x67dd20(0x12d)]['mutations']['some'](_0x2d755e=>_0x2d755e['id']===p[_0x67dd20(0x159)]['id'])&&(this[_0x67dd20(0xa6)][_0x67dd20(0x9d)](),_0x386e6b['unsubscribe'](),this[_0x67dd20(0xd1)]&&clearTimeout(this['_revertErrorTimer']),await this[_0x67dd20(0x10e)]['exhaustSavingTask'](),setTimeout(()=>window[_0x67dd20(0x13b)][_0x67dd20(0x143)]()));});this[_0x11d930(0xd1)]=setTimeout(()=>{var _0x3afcab=_0x11d930;_0x386e6b['unsubscribe'](),this[_0x3afcab(0x118)]['show']({'content':this['_localeService']['t'](_0x3afcab(0xc3)),'type':P['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};b=fe([s[_0x405d2f(0x66)](s[_0x405d2f(0x142)][_0x405d2f(0x139)],b),_(0x0,s[_0x405d2f(0x6c)]),_(0x1,v[_0x405d2f(0xb9)]),_(0x2,s[_0x405d2f(0x92)](v['ComponentManager'])),_(0x3,s[_0x405d2f(0x92)](exports[_0x405d2f(0x88)])),_(0x4,s[_0x405d2f(0x92)](s[_0x405d2f(0x12f)])),_(0x5,v[_0x405d2f(0x9a)]),_(0x6,s[_0x405d2f(0x92)](E['CollaborationController'])),_(0x7,s[_0x405d2f(0x92)](E[_0x405d2f(0x152)]))],b);const Se=_0x405d2f(0x9b),ye={};var me=Object['defineProperty'],pe=Object[_0x405d2f(0x112)],Ce=(_0x291c5d,_0x109ba2,_0x2ee9aa,_0x466eb7)=>{var _0x437869=_0x405d2f;for(var _0x1f8c22=_0x466eb7>0x1?void 0x0:_0x466eb7?pe(_0x109ba2,_0x2ee9aa):_0x109ba2,_0x2d4f7c=_0x291c5d[_0x437869(0xab)]-0x1,_0x3fc775;_0x2d4f7c>=0x0;_0x2d4f7c--)(_0x3fc775=_0x291c5d[_0x2d4f7c])&&(_0x1f8c22=(_0x466eb7?_0x3fc775(_0x109ba2,_0x2ee9aa,_0x1f8c22):_0x3fc775(_0x1f8c22))||_0x1f8c22);return _0x466eb7&&_0x1f8c22&&me(_0x109ba2,_0x2ee9aa,_0x1f8c22),_0x1f8c22;},R=(_0x349845,_0x3912e3)=>(_0x349508,_0x207bc3)=>_0x3912e3(_0x349508,_0x207bc3,_0x349845);const Ie='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';function _0x36a8(_0x1ef5bd,_0xa3ca39){var _0x280b9b=_0x280b();return _0x36a8=function(_0x36a899,_0x1ddb93){_0x36a899=_0x36a899-0x64;var _0x366b26=_0x280b9b[_0x36a899];return _0x366b26;},_0x36a8(_0x1ef5bd,_0xa3ca39);}var I;exports[_0x405d2f(0xd6)]=(I=class extends s[_0x405d2f(0xd4)]{constructor(_0x2da54f=ye,_0x36a1f6,_0x15c2da){var _0x4b1d64=_0x405d2f;super(),this[_0x4b1d64(0x146)]=_0x2da54f,this['_injector']=_0x36a1f6,this[_0x4b1d64(0xcd)]=_0x15c2da;const {menu:_0x4651d,..._0x595769}=this['_config'];_0x4651d&&this[_0x4b1d64(0xcd)][_0x4b1d64(0xfb)]('menu',_0x4651d,{'merge':!0x0}),this[_0x4b1d64(0xcd)]['setConfig'](Se,_0x595769),this['_config']['univerContainerId']&&this['_configService']['setConfig'](U,this['_config']['univerContainerId']);}[_0x405d2f(0xa9)](){var _0x1bfd7e=_0x405d2f;[[exports[_0x1bfd7e(0x88)]],[b]][_0x1bfd7e(0x10b)](_0x4d3051=>this[_0x1bfd7e(0xec)][_0x1bfd7e(0xf9)](_0x4d3051));}},f(I,_0x405d2f(0xf5),s['UniverInstanceType'][_0x405d2f(0x7b)]),f(I,_0x405d2f(0x155),Ie),I),exports[_0x405d2f(0xd6)]=Ce([R(0x1,s['Inject'](s[_0x405d2f(0xf3)])),R(0x2,s[_0x405d2f(0xdd)])],exports['UniverEditHistoryLoaderPlugin']),exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x405d2f(0x150)]=y;
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 _0x17df95=_0x5ed3;(function(_0x1e0f90,_0x3c24b3){var _0x45fc92=_0x5ed3,_0x3a1554=_0x1e0f90();while(!![]){try{var _0x49e0ee=parseInt(_0x45fc92(0x17b))/0x1+parseInt(_0x45fc92(0x166))/0x2*(-parseInt(_0x45fc92(0x1c4))/0x3)+parseInt(_0x45fc92(0x1be))/0x4*(parseInt(_0x45fc92(0x157))/0x5)+-parseInt(_0x45fc92(0x1b9))/0x6+parseInt(_0x45fc92(0x1bd))/0x7*(-parseInt(_0x45fc92(0x1cb))/0x8)+-parseInt(_0x45fc92(0x19c))/0x9*(parseInt(_0x45fc92(0x1cf))/0xa)+parseInt(_0x45fc92(0x1fa))/0xb*(parseInt(_0x45fc92(0x1c6))/0xc);if(_0x49e0ee===_0x3c24b3)break;else _0x3a1554['push'](_0x3a1554['shift']());}catch(_0x42c4cb){_0x3a1554['push'](_0x3a1554['shift']());}}}(_0x8b8c,0x4f827));function _0x8b8c(){var _0x5df27f=['disposeWithMe','getAllPlugins','attrs','univerjs-icon\x20univerjs-icon-','xlink:href','mutations','_initMessageService','div','top','revertRevision$','get','UNIVER_UNKNOWN','_injector','colorChannel1','_menuManagerService','hasOwnProperty','setConfig','clear','_univerInstanceService','onStarting','values','_init','getCollabEntity','_localCacheService','_messageService','18YuxUdY','mountHistoryContent','session','set','history-single','[HistoryLoaderService]:\x20Plugin\x20','invoke','url(#history-single_clip0_907_281)','getOwnPropertyDescriptor','location','currentColor','univer.operation.toggle-edit-history','permissionId','mergeMenu','getContainer','reload','UniverIcon','display','Error','\x20has\x20been\x20registered.','assign','getSheetId','_initUniver','type','subscribe','OTHERS','__getInjector','random','BUTTON','1962132soCSXy','_checkCanRevert','_collaborationController','idSuffix','4046rcSRPi','512608odFUzv','registerPlugin','url(#$1','eventID','edit-history-loader.config','none','431793nzHByb','className','12BQnUiO','#fff','_historyManagerService','_selectionProtectionRuleModel','indexOf','3896tDImyU','entries','children','0\x200\x2016\x2016','1225930NGZwTl','value','OPERATION','executeCommand','map','fill','setLocale','width','block','toString','registerCommand','show','symbol','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_initPlugins','clipPath','menu','event$','_config','history-single_clip0_907_281','tag','apply','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','add','_configService','displayName','UNIVER_SHEET','closeAll','function','composePermission','position','_componentManager','extend','SYNCED','from','propertyIsEnumerable','state$','_historyUniver','_initContainer','style','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','Entered','editHistory.panel.revertFailed','4297326tdNtxW','appendChild','Exited','20YFzgbY','1em','pluginName','_permissionService','substring','_pluginMap','getCurrentLocale','dispose','_disposableCollection','_commandService','_revertErrorTimer','concat','unsubscribe','defineProperty','call','2trmlSp','HistorySingle','forEach','editHistory.panel.title','_sidebarService','unMountHistoryContent','getConfig','getElementById','icon','register','M0\x200H16V16H0z','_initListener','zIndex','absolute','100%','left','editHistory.panel.listFetchError','length','string','use','defIds','420022fMMiBY','triggerLoadVersions','univerContainerId','height','_localeService','univer-history-container','univer-container','_dialogService'];_0x8b8c=function(){return _0x5df27f;};return _0x8b8c();}var W=Object['defineProperty'],B=(_0x29d82f,_0x5883bd,_0x201ea)=>_0x5883bd in _0x29d82f?W(_0x29d82f,_0x5883bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x201ea}):_0x29d82f[_0x5883bd]=_0x201ea,h=(_0x3e16f7,_0x88d871,_0x34d062)=>B(_0x3e16f7,typeof _0x88d871!=_0x17df95(0x1db)?_0x88d871+'':_0x88d871,_0x34d062);import{Disposable as _0x10624e,DisposableCollection as _0x3557bb,Univer as _0x476c7a,IAuthzIoService as _0x3c1c09,LocaleService as _0x155745,OnLifecycle as _0x4db300,LifecycleStages as _0x586a45,Inject as _0x39fe6c,IUniverInstanceService as _0x53a27f,IConfigService as _0x1c0a49,ICommandService as _0x45e3ea,IPermissionService as _0x11a629,CommandType as _0x3cef93,UniverInstanceType as _0x46b096,RxDisposable as _0x9613a7,toDisposable as _0x1ac6b4,Plugin as _0x16f515,Injector as _0x427ce7}from'@univerjs/core';import{greenTheme as _0x12e8b6,MessageType as _0x4bf5f3}from'@univerjs/design';import{UniverDocsPlugin as _0x440cae}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x5656c6}from'@univerjs/docs-ui';import{UniverRenderEnginePlugin as _0x5c1ed9}from'@univerjs/engine-render';import{WorkbookEditablePermission as _0x1b54c4,WorksheetEditPermission as _0x74ebbf,RangeProtectionPermissionEditPoint as _0x1cc6d5,WorkbookRecoverHistoryPermission as _0x3644ba,RangeProtectionRuleModel as _0xd2d9d5,UniverSheetsPlugin as _0x50f053,getSheetCommandTarget as _0x4c7f3d,WorkbookViewHistoryPermission as _0x2e6f37}from'@univerjs/sheets';import{UniverSheetsUIPlugin as _0x519b45,getCurrentRangeDisable$ as _0x1f1dbd}from'@univerjs/sheets-ui';function _0x5ed3(_0x36683a,_0x5543ca){var _0x8b8cd7=_0x8b8c();return _0x5ed3=function(_0x5ed3f2,_0x2bf5c5){_0x5ed3f2=_0x5ed3f2-0x157;var _0x2957e1=_0x8b8cd7[_0x5ed3f2];return _0x2957e1;},_0x5ed3(_0x36683a,_0x5543ca);}import{IMessageService as _0x546bfb,IDialogService as _0x1b55b6,ISidebarService as _0x38460b,UniverUIPlugin as _0x3a065e,MenuItemType as _0x52ac26,getMenuHiddenObservable as _0x39ff9d,RibbonStartGroup as _0x3096c7,ComponentManager as _0xe8bd9e,IMenuManagerService as _0x4f7200}from'@univerjs/ui';import{HistoryManagerService as _0x53f2a5,HistoryModeStatus as _0x4f8f11,UniverEditHistoryViewerPlugin as _0x229b80}from'@univerjs-pro/edit-history-viewer';import{RevertRevisionMutation as _0x3a9c9f,UniverCollaborationPlugin as _0x27c056,CollaborationEvent as _0x1a58be}from'@univerjs-pro/collaboration';import{UniverSheetsFilterPlugin as _0x2ac783}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x31df87}from'@univerjs/sheets-filter-ui';import{UniverSheetsConditionalFormattingPlugin as _0x3a3e3a}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x479d0c}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsHyperLinkPlugin as _0x10a4f0}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xc5b4c6}from'@univerjs/sheets-hyper-link-ui';import{UniverDataValidationPlugin as _0xa1b391}from'@univerjs/data-validation';import{UniverSheetsNumfmtPlugin as _0xf54aeb}from'@univerjs/sheets-numfmt';import{UniverSheetsFormulaPlugin as _0x2ddc1e}from'@univerjs/sheets-formula';import{UniverFormulaEnginePlugin as _0x57d829}from'@univerjs/engine-formula';import{UniverRPCMainThreadPlugin as _0x49d651}from'@univerjs/rpc';import{UniverSheetsDataValidationPlugin as _0x1f559f}from'@univerjs/sheets-data-validation';import{UniverDrawingUIPlugin as _0x21cb64}from'@univerjs/drawing-ui';import{UniverSheetsDrawingUIPlugin as _0x374b5f}from'@univerjs/sheets-drawing-ui';import{UniverSheetsDrawingPlugin as _0x3eb8b7}from'@univerjs/sheets-drawing';import{UniverDrawingPlugin as _0x8e76ef,IImageIoService as _0x4a133d}from'@univerjs/drawing';import{UniverSheetsPivotTablePlugin as _0x4ef589}from'@univerjs-pro/sheets-pivot';import{CollaborationStatus as _0x1566e0,CollaborationController as _0x142acd,LocalCacheService as _0x4ec263}from'@univerjs-pro/collaboration-client';import{combineLatest as _0x2c97cb}from'rxjs';import{forwardRef as _0x3170d8,useRef as _0x3ac52b,createElement as _0x24b921}from'react';var Ke=Object[_0x17df95(0x164)],ze=Object[_0x17df95(0x1a4)],Ze=(_0x888b61,_0x47c566,_0x2e0994,_0x19de67)=>{var _0x60e3d=_0x17df95;for(var _0x4a7603=_0x19de67>0x1?void 0x0:_0x19de67?ze(_0x47c566,_0x2e0994):_0x47c566,_0x20fceb=_0x888b61[_0x60e3d(0x177)]-0x1,_0x6a8e47;_0x20fceb>=0x0;_0x20fceb--)(_0x6a8e47=_0x888b61[_0x20fceb])&&(_0x4a7603=(_0x19de67?_0x6a8e47(_0x47c566,_0x2e0994,_0x4a7603):_0x6a8e47(_0x4a7603))||_0x4a7603);return _0x19de67&&_0x4a7603&&Ke(_0x47c566,_0x2e0994,_0x4a7603),_0x4a7603;},g=(_0x4dbe1c,_0x4b5b9c)=>(_0x3fbaa7,_0x3bacc5)=>_0x4b5b9c(_0x3fbaa7,_0x3bacc5,_0x4dbe1c);const qe=_0x17df95(0x181),k='UNIVER_CONTAINER_ID',f=_0x17df95(0x180);let d=class extends _0x10624e{constructor(_0x445022,_0x573baa,_0x16a8d8,_0x2334ff,_0x178026,_0x90320b,_0x129a72,_0x21a914,_0x1465f3){var _0x2d24e1=_0x17df95;super(),h(this,_0x2d24e1(0x1f4),null),h(this,_0x2d24e1(0x15f),new _0x3557bb()),h(this,_0x2d24e1(0x15c),new Map()),(this[_0x2d24e1(0x17f)]=_0x445022,this[_0x2d24e1(0x195)]=_0x573baa,this[_0x2d24e1(0x1e7)]=_0x16a8d8,this[_0x2d24e1(0x160)]=_0x2334ff,this[_0x2d24e1(0x19b)]=_0x178026,this[_0x2d24e1(0x15a)]=_0x90320b,this[_0x2d24e1(0x1c9)]=_0x129a72,this[_0x2d24e1(0x182)]=_0x21a914,this[_0x2d24e1(0x16a)]=_0x1465f3,this[_0x2d24e1(0x198)]());}[_0x17df95(0x198)](){var _0x4abcee=_0x17df95;this['_initContainer'](),this[_0x4abcee(0x1dd)]();}[_0x17df95(0x1f5)](){var _0x4473a5=_0x17df95,_0x1791ce;const _0x57f6ae=(_0x1791ce=this[_0x4473a5(0x1e7)][_0x4473a5(0x16c)](k))!=null?_0x1791ce:qe,_0x374463=document['getElementById'](_0x57f6ae);if(!_0x374463)return;const _0x5c5077=document['createElement'](_0x4473a5(0x18a));_0x5c5077['id']=f,_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x1ed)]=_0x4473a5(0x173),_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x18b)]='0',_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x175)]='0',_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x1d6)]=_0x4473a5(0x174),_0x5c5077['style'][_0x4473a5(0x17e)]=_0x4473a5(0x174),_0x5c5077['style'][_0x4473a5(0x172)]='1000',_0x5c5077[_0x4473a5(0x1f6)][_0x4473a5(0x1ad)]=_0x4473a5(0x1c3),_0x374463[_0x4473a5(0x1fb)](_0x5c5077);}[_0x17df95(0x1dd)](){var _0x2bd70d=_0x17df95;[[_0x8e76ef,{'override':[[_0x4a133d,null]]}],[_0x440cae,{'hasScroll':!0x1}],[_0x5656c6],[_0x5c1ed9],[_0x3a065e,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1b55b6,null]]}],[_0x50f053,{'notExecuteFormula':!0x0}],[_0x519b45],[_0x27c056],[_0x2ac783],[_0x31df87],[_0x3a3e3a],[_0x479d0c],[_0x10a4f0],[_0xc5b4c6],[_0xa1b391],[_0x1f559f],[_0xf54aeb],[_0x57d829,{'notExecuteFormula':!0x0}],[_0x2ddc1e],[_0x49d651,{'workerURL':'./worker.js'}],[_0x21cb64],[_0x3eb8b7],[_0x374b5f],[_0x4ef589,{'notExecuteFormula':!0x0}],[_0x229b80]][_0x2bd70d(0x168)](([_0x17f813,_0x4009f7])=>this[_0x2bd70d(0x1bf)](_0x17f813,_0x4009f7));}[_0x17df95(0x15e)](){var _0x41e6db=_0x17df95;super['dispose'](),this['unMountHistoryContent'](),this[_0x41e6db(0x15c)][_0x41e6db(0x194)]();}[_0x17df95(0x1bf)](_0x2a881d,_0x2c6e45,_0x6525d5){var _0xbbaa56=_0x17df95;if(this['_pluginMap']['has'](_0x2a881d[_0xbbaa56(0x159)])&&!_0x6525d5)throw new Error(_0xbbaa56(0x1a1)+_0x2a881d['pluginName']+_0xbbaa56(0x1af));this[_0xbbaa56(0x15c)][_0xbbaa56(0x19f)](_0x2a881d[_0xbbaa56(0x159)],[_0x2a881d,_0x2c6e45]);}[_0x17df95(0x184)](){var _0x5251d4=_0x17df95;return Array[_0x5251d4(0x1f1)](this[_0x5251d4(0x15c)][_0x5251d4(0x197)]());}[_0x17df95(0x19d)](_0x3b6713){var _0x267bc7=_0x17df95;const _0x35d035=document[_0x267bc7(0x16d)](f);_0x35d035&&(_0x35d035['style'][_0x267bc7(0x1ad)]=_0x267bc7(0x1d7),this[_0x267bc7(0x1b2)](_0x3b6713,f));}[_0x17df95(0x16b)](){var _0x1479ec=_0x17df95,_0x5ce660;this[_0x1479ec(0x15f)][_0x1479ec(0x15e)](),(_0x5ce660=this['_historyUniver'])==null||_0x5ce660['dispose'](),this[_0x1479ec(0x1f4)]=null;const _0x318df4=document['getElementById'](f);_0x318df4&&(_0x318df4[_0x1479ec(0x1f6)][_0x1479ec(0x1ad)]='none');}[_0x17df95(0x1b2)](_0x1d1354,_0x5da8dc){var _0x3820a8=_0x17df95;if(this[_0x3820a8(0x1f4)])return;const _0x4f114a=new _0x476c7a({'theme':_0x12e8b6,'locales':{[this[_0x3820a8(0x17f)][_0x3820a8(0x15d)]()]:this[_0x3820a8(0x17f)]['getLocales']()},'override':[[_0x3c1c09,null]]});this[_0x3820a8(0x1f4)]=_0x4f114a;const _0x29d361=_0x4f114a[_0x3820a8(0x1b6)]();_0x29d361[_0x3820a8(0x18d)](_0x155745)[_0x3820a8(0x1d5)](this[_0x3820a8(0x17f)]['getCurrentLocale']()),this['_pluginMap']['forEach'](([_0xde1a13,_0xa97199])=>{_0x4f114a['registerPlugin'](_0xde1a13,_0xa97199);}),_0x29d361[_0x3820a8(0x1a2)](_0x5a7324=>{var _0x591ece=_0x3820a8;this[_0x591ece(0x171)](_0x5a7324,_0x1d1354),this[_0x591ece(0x189)](_0x5a7324,this['_messageService']);});const _0x4a7df0=_0x29d361[_0x3820a8(0x18d)](_0x53f2a5),_0x41e011=this[_0x3820a8(0x1ba)](_0x1d1354);_0x4a7df0[_0x3820a8(0x17c)](_0x1d1354,_0x5da8dc,_0x41e011);}[_0x17df95(0x171)](_0x3074fc,_0xbc0054){var _0x4f8d09=_0x17df95;const _0x2b1c7c=_0x3074fc[_0x4f8d09(0x18d)](_0x53f2a5);this['_disposableCollection'][_0x4f8d09(0x1e6)](_0x2b1c7c['status$']['subscribe'](_0x5501a6=>{var _0x25a132=_0x4f8d09;switch(_0x5501a6){case _0x4f8f11[_0x25a132(0x1f8)]:this[_0x25a132(0x182)][_0x25a132(0x1ea)](),this[_0x25a132(0x16a)]['close']();break;case _0x4f8f11[_0x25a132(0x1fc)]:this[_0x25a132(0x16b)]();break;case _0x4f8f11[_0x25a132(0x1ae)]:this[_0x25a132(0x16b)](),this[_0x25a132(0x19b)]['show']({'content':this[_0x25a132(0x17f)]['t'](_0x25a132(0x176)),'type':_0x4bf5f3['Error'],'duration':0xbb8});break;}})),this[_0x4f8d09(0x15f)]['add'](_0x2b1c7c[_0x4f8d09(0x18c)][_0x4f8d09(0x1b4)](async _0x36187b=>{var _0x562092=_0x4f8d09;_0x36187b&&this[_0x562092(0x160)][_0x562092(0x1d2)](_0x3a9c9f['id'],{'unitId':_0xbc0054,'revision':_0x36187b});}));}[_0x17df95(0x189)](_0x3fcbc2,_0x29a7d3){var _0x3da4ee=_0x17df95;const _0x562804=_0x3fcbc2[_0x3da4ee(0x18d)](_0x546bfb),_0x4ed68e=_0x29a7d3[_0x3da4ee(0x1aa)]();_0x4ed68e&&_0x562804['setContainer'](_0x4ed68e);}[_0x17df95(0x1ba)](_0x4635ab){var _0xe6e0f2=_0x17df95;const _0x4a51bb=this[_0xe6e0f2(0x195)]['getUnit'](_0x4635ab)['getSheets']()[_0xe6e0f2(0x1d3)](_0xec70ee=>_0xec70ee[_0xe6e0f2(0x1b1)]()),_0x3e77ca=new _0x1b54c4(_0x4635ab)['id'],_0x7058e4=_0x4a51bb['map'](_0x2b4949=>new _0x74ebbf(_0x4635ab,_0x2b4949)['id']),_0x21fd95=_0x4a51bb['map'](_0xd60a9f=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x4635ab,_0xd60a9f)['map'](_0x57e6c5=>new _0x1cc6d5(_0x4635ab,_0xd60a9f,_0x57e6c5[_0xe6e0f2(0x1a8)])['id']))['flat'](),_0x472c40=new _0x3644ba(_0x4635ab)['id'];return this['_permissionService'][_0xe6e0f2(0x1ec)]([_0x3e77ca,..._0x7058e4,..._0x21fd95,_0x472c40])['every'](_0x4dc212=>!!_0x4dc212[_0xe6e0f2(0x1d0)]);}};d=Ze([_0x4db300(_0x586a45['Steady'],d),g(0x0,_0x39fe6c(_0x155745)),g(0x1,_0x53a27f),g(0x2,_0x1c0a49),g(0x3,_0x45e3ea),g(0x4,_0x546bfb),g(0x5,_0x11a629),g(0x6,_0x39fe6c(_0xd2d9d5)),g(0x7,_0x39fe6c(_0x1b55b6)),g(0x8,_0x39fe6c(_0x38460b))],d);var l=function(){var _0x2f2ed4=_0x17df95;return l=Object[_0x2f2ed4(0x1b0)]||function(_0x41e454){var _0x41bffd=_0x2f2ed4;for(var _0x7dbce3,_0x2c55da=0x1,_0x1d5f35=arguments[_0x41bffd(0x177)];_0x2c55da<_0x1d5f35;_0x2c55da++){_0x7dbce3=arguments[_0x2c55da];for(var _0xa2fe87 in _0x7dbce3)Object['prototype'][_0x41bffd(0x192)]['call'](_0x7dbce3,_0xa2fe87)&&(_0x41e454[_0xa2fe87]=_0x7dbce3[_0xa2fe87]);}return _0x41e454;},l[_0x2f2ed4(0x1e4)](this,arguments);},Je=function(_0x29bb6a,_0x3e0d8c){var _0x35dafe=_0x17df95,_0x4f3474={};for(var _0x5da4a1 in _0x29bb6a)Object['prototype']['hasOwnProperty'][_0x35dafe(0x165)](_0x29bb6a,_0x5da4a1)&&_0x3e0d8c[_0x35dafe(0x1ca)](_0x5da4a1)<0x0&&(_0x4f3474[_0x5da4a1]=_0x29bb6a[_0x5da4a1]);if(_0x29bb6a!=null&&typeof Object['getOwnPropertySymbols']==_0x35dafe(0x1eb)){for(var _0x4a9a98=0x0,_0x5da4a1=Object['getOwnPropertySymbols'](_0x29bb6a);_0x4a9a98<_0x5da4a1[_0x35dafe(0x177)];_0x4a9a98++)_0x3e0d8c[_0x35dafe(0x1ca)](_0x5da4a1[_0x4a9a98])<0x0&&Object['prototype'][_0x35dafe(0x1f2)][_0x35dafe(0x165)](_0x29bb6a,_0x5da4a1[_0x4a9a98])&&(_0x4f3474[_0x5da4a1[_0x4a9a98]]=_0x29bb6a[_0x5da4a1[_0x4a9a98]]);}return _0x4f3474;},$=_0x3170d8(function(_0x49c839,_0x7b25cb){var _0x3bf48f=_0x17df95,_0x21eddf=_0x49c839[_0x3bf48f(0x16e)],_0x5e2dbe=_0x49c839['id'],_0xe29b0e=_0x49c839[_0x3bf48f(0x1c5)],_0x4ff7ad=_0x49c839[_0x3bf48f(0x1ef)],_0x748768=Je(_0x49c839,[_0x3bf48f(0x16e),'id',_0x3bf48f(0x1c5),_0x3bf48f(0x1ef)]),_0x557f32=_0x3bf48f(0x186)[_0x3bf48f(0x162)](_0x5e2dbe,'\x20')['concat'](_0xe29b0e||'')['trim'](),_0x52e801=_0x3ac52b('_'[_0x3bf48f(0x162)](ei()));return A(_0x21eddf,''['concat'](_0x5e2dbe),{'defIds':_0x21eddf[_0x3bf48f(0x17a)],'idSuffix':_0x52e801['current']},l({'ref':_0x7b25cb,'className':_0x557f32},_0x748768),_0x4ff7ad);});function A(_0x13f0c1,_0x51dce2,_0x470647,_0x3ea754,_0x5ba887){var _0x421270=_0x17df95;return _0x24b921(_0x13f0c1[_0x421270(0x1e3)],l(l({'key':_0x51dce2},Qe(_0x13f0c1,_0x470647,_0x5ba887)),_0x3ea754),(Xe(_0x13f0c1,_0x470647)[_0x421270(0x1cd)]||[])[_0x421270(0x1d3)](function(_0x33a802,_0x4a35be){var _0x5e2c2c=_0x421270;return A(_0x33a802,''[_0x5e2c2c(0x162)](_0x51dce2,'-')[_0x5e2c2c(0x162)](_0x13f0c1[_0x5e2c2c(0x1e3)],'-')[_0x5e2c2c(0x162)](_0x4a35be),_0x470647,void 0x0,_0x5ba887);}));}function Qe(_0x4079e0,_0x1c6c1d,_0x1fd201){var _0x501b76=_0x17df95,_0x3fe33a=l({},_0x4079e0[_0x501b76(0x185)]);_0x1fd201!=null&&_0x1fd201[_0x501b76(0x190)]&&_0x3fe33a[_0x501b76(0x1d4)]===_0x501b76(0x190)&&(_0x3fe33a[_0x501b76(0x1d4)]=_0x1fd201[_0x501b76(0x190)]);var _0x58d07a=_0x1c6c1d['defIds'];return!_0x58d07a||_0x58d07a[_0x501b76(0x177)]===0x0||(_0x4079e0[_0x501b76(0x1e3)]===_0x501b76(0x179)&&_0x3fe33a[_0x501b76(0x187)]&&(_0x3fe33a['xlink:href']=_0x3fe33a[_0x501b76(0x187)]+_0x1c6c1d[_0x501b76(0x1bc)]),Object[_0x501b76(0x1cc)](_0x3fe33a)[_0x501b76(0x168)](function(_0x2be083){var _0x39f462=_0x501b76,_0x4b9d40=_0x2be083[0x0],_0x2b0268=_0x2be083[0x1];typeof _0x2b0268==_0x39f462(0x178)&&(_0x3fe33a[_0x4b9d40]=_0x2b0268['replace'](/url\(#(.*)\)/,_0x39f462(0x1c0)[_0x39f462(0x162)](_0x1c6c1d[_0x39f462(0x1bc)],')')));})),_0x3fe33a;}function Xe(_0x27c193,_0x1c0982){var _0x5b28b5=_0x17df95,_0x2dc9b8,_0x3e2b81=_0x1c0982[_0x5b28b5(0x17a)];return!_0x3e2b81||_0x3e2b81[_0x5b28b5(0x177)]===0x0?_0x27c193:_0x27c193[_0x5b28b5(0x1e3)]==='defs'&&(!((_0x2dc9b8=_0x27c193[_0x5b28b5(0x1cd)])===null||_0x2dc9b8===void 0x0)&&_0x2dc9b8[_0x5b28b5(0x177)])?l(l({},_0x27c193),{'children':_0x27c193['children'][_0x5b28b5(0x1d3)](function(_0x467ada){var _0x22fb85=_0x5b28b5;return typeof _0x467ada[_0x22fb85(0x185)]['id']==_0x22fb85(0x178)&&_0x3e2b81&&_0x3e2b81[_0x22fb85(0x1ca)](_0x467ada[_0x22fb85(0x185)]['id'])>-0x1?l(l({},_0x467ada),{'attrs':l(l({},_0x467ada[_0x22fb85(0x185)]),{'id':_0x467ada[_0x22fb85(0x185)]['id']+_0x1c0982[_0x22fb85(0x1bc)]})}):_0x467ada;})}):_0x27c193;}function ei(){var _0x5ea5d5=_0x17df95;return Math[_0x5ea5d5(0x1b7)]()[_0x5ea5d5(0x1d8)](0x24)[_0x5ea5d5(0x15b)](0x2,0x8);}$[_0x17df95(0x1e8)]=_0x17df95(0x1ac);var ii={'tag':'svg','attrs':{'fill':'none','viewBox':_0x17df95(0x1ce),'width':_0x17df95(0x158),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x17df95(0x1a6),'clipPath':_0x17df95(0x1a3)},'children':[{'tag':'path','attrs':{'d':_0x17df95(0x1e5)}},{'tag':'path','attrs':{'d':_0x17df95(0x1f7)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x17df95(0x1de),'attrs':{'id':_0x17df95(0x1e2)},'children':[{'tag':'path','attrs':{'fill':_0x17df95(0x1c7),'d':_0x17df95(0x170)}}]}]}],'defIds':['history-single_clip0_907_281']},F=_0x3170d8(function(_0x4d016d,_0xb2ee8a){var _0x5cbc1b=_0x17df95;return _0x24b921($,Object[_0x5cbc1b(0x1b0)]({},_0x4d016d,{'id':_0x5cbc1b(0x1a0),'ref':_0xb2ee8a,'icon':ii}));});F[_0x17df95(0x1e8)]='HistorySingle';const P={'id':_0x17df95(0x1a7),'type':_0x3cef93[_0x17df95(0x1d1)],'handler':_0x11c478=>{var _0x3b2313=_0x17df95;const _0x40bd16=_0x11c478['get'](d),_0x3f6668=_0x11c478['get'](_0x53a27f),{unitId:_0xba6d98}=_0x4c7f3d(_0x3f6668)||{};return _0xba6d98?(_0x40bd16[_0x3b2313(0x19d)](_0xba6d98),!0x0):!0x1;}},V=_0x17df95(0x167);function ti(_0x4c47fd){var _0x578ada=_0x17df95;return{'id':P['id'],'type':_0x52ac26[_0x578ada(0x1b8)],'icon':V,'tooltip':_0x578ada(0x169),'hidden$':_0x39ff9d(_0x4c47fd,_0x46b096[_0x578ada(0x1e9)]),'disabled$':_0x1f1dbd(_0x4c47fd,{'workbookTypes':[_0x1b54c4,_0x2e6f37],'worksheetTypes':[],'rangeTypes':[]})};}const ri={[_0x3096c7[_0x17df95(0x1b5)]]:{[P['id']]:{'order':0x0,'menuItemFactory':ti}}};var ni=Object['defineProperty'],oi=Object[_0x17df95(0x1a4)],si=(_0x3fed37,_0x2546df,_0x557a19,_0x3cabe8)=>{var _0x54cb9d=_0x17df95;for(var _0x50e8bd=_0x3cabe8>0x1?void 0x0:_0x3cabe8?oi(_0x2546df,_0x557a19):_0x2546df,_0x25190e=_0x3fed37[_0x54cb9d(0x177)]-0x1,_0x54ec2b;_0x25190e>=0x0;_0x25190e--)(_0x54ec2b=_0x3fed37[_0x25190e])&&(_0x50e8bd=(_0x3cabe8?_0x54ec2b(_0x2546df,_0x557a19,_0x50e8bd):_0x54ec2b(_0x50e8bd))||_0x50e8bd);return _0x3cabe8&&_0x50e8bd&&ni(_0x2546df,_0x557a19,_0x50e8bd),_0x50e8bd;},v=(_0x392a69,_0x516b4d)=>(_0x1a35ff,_0x232d7b)=>_0x516b4d(_0x1a35ff,_0x232d7b,_0x392a69);let p=class extends _0x9613a7{constructor(_0x2142df,_0x3b3d88,_0x5b0bb8,_0x3b5957,_0x4612f0,_0xc00b2f,_0x1e5ab8,_0x2bb32f){var _0x26b257=_0x17df95;super(),h(this,_0x26b257(0x161),null),(this[_0x26b257(0x160)]=_0x2142df,this['_menuManagerService']=_0x3b3d88,this[_0x26b257(0x1ee)]=_0x5b0bb8,this[_0x26b257(0x1c8)]=_0x3b5957,this['_localeService']=_0x4612f0,this[_0x26b257(0x19b)]=_0xc00b2f,this[_0x26b257(0x1bb)]=_0x1e5ab8,this['_localCacheService']=_0x2bb32f,this[_0x26b257(0x198)]());}[_0x17df95(0x198)](){var _0x4aa640=_0x17df95;[P][_0x4aa640(0x168)](_0x4d20f5=>this[_0x4aa640(0x183)](_0x1ac6b4(this[_0x4aa640(0x160)][_0x4aa640(0x1d9)](_0x4d20f5)))),this[_0x4aa640(0x183)](this[_0x4aa640(0x1ee)][_0x4aa640(0x16f)](V,F)),this[_0x4aa640(0x191)][_0x4aa640(0x1a9)](ri),this[_0x4aa640(0x183)](this[_0x4aa640(0x160)]['onCommandExecuted'](_0x4043e5=>{var _0x26d760=_0x4aa640;if(_0x4043e5['id']===_0x3a9c9f['id']){this[_0x26d760(0x19b)][_0x26d760(0x1da)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x4bf5f3['Loading'],'duration':0x1388});const {unitId:_0x353b90}=_0x4043e5['params'],_0x54723f=this[_0x26d760(0x1bb)][_0x26d760(0x199)](_0x353b90),_0x1e7a5c=_0x2c97cb([_0x54723f[_0x26d760(0x19e)][_0x26d760(0x1e0)],_0x54723f[_0x26d760(0x1f3)]])[_0x26d760(0x1b4)](async([_0x3f872c,_0x490333])=>{var _0x331213=_0x26d760;_0x3f872c[_0x331213(0x1c1)]===_0x1a58be['CHANGESET_ACK']&&(_0x490333==null?void 0x0:_0x490333['status'])===_0x1566e0[_0x331213(0x1f0)]&&_0x3f872c['data'][_0x331213(0x188)]['some'](_0x5c3ba4=>_0x5c3ba4['id']===_0x3a9c9f['id'])&&(this[_0x331213(0x1c8)][_0x331213(0x16b)](),_0x1e7a5c[_0x331213(0x163)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await this[_0x331213(0x19a)]['exhaustSavingTask'](),setTimeout(()=>window[_0x331213(0x1a5)][_0x331213(0x1ab)]()));});this[_0x26d760(0x161)]=setTimeout(()=>{var _0x4eed82=_0x26d760;_0x1e7a5c[_0x4eed82(0x163)](),this[_0x4eed82(0x19b)][_0x4eed82(0x1da)]({'content':this[_0x4eed82(0x17f)]['t'](_0x4eed82(0x1f9)),'type':_0x4bf5f3[_0x4eed82(0x1ae)],'duration':0xbb8});},0x1388);}}));}};p=si([_0x4db300(_0x586a45['Steady'],p),v(0x0,_0x45e3ea),v(0x1,_0x4f7200),v(0x2,_0x39fe6c(_0xe8bd9e)),v(0x3,_0x39fe6c(d)),v(0x4,_0x39fe6c(_0x155745)),v(0x5,_0x546bfb),v(0x6,_0x39fe6c(_0x142acd)),v(0x7,_0x39fe6c(_0x4ec263))],p);const ai=_0x17df95(0x1c2),ci={};var li=Object[_0x17df95(0x164)],ui=Object[_0x17df95(0x1a4)],gi=(_0x51eeb1,_0x3eaaaf,_0x27fe81,_0x43c952)=>{var _0x15dd1d=_0x17df95;for(var _0x476112=_0x43c952>0x1?void 0x0:_0x43c952?ui(_0x3eaaaf,_0x27fe81):_0x3eaaaf,_0x3c9555=_0x51eeb1[_0x15dd1d(0x177)]-0x1,_0x383ce2;_0x3c9555>=0x0;_0x3c9555--)(_0x383ce2=_0x51eeb1[_0x3c9555])&&(_0x476112=(_0x43c952?_0x383ce2(_0x3eaaaf,_0x27fe81,_0x476112):_0x383ce2(_0x476112))||_0x476112);return _0x43c952&&_0x476112&&li(_0x3eaaaf,_0x27fe81,_0x476112),_0x476112;},U=(_0x20036b,_0x57a59a)=>(_0x10036c,_0x367feb)=>_0x57a59a(_0x10036c,_0x367feb,_0x20036b);const vi=_0x17df95(0x1dc);var _;let M=(_=class extends _0x16f515{constructor(_0x511e08=ci,_0xb0b7c,_0x4f4894){var _0x39efe5=_0x17df95;super(),this[_0x39efe5(0x1e1)]=_0x511e08,this[_0x39efe5(0x18f)]=_0xb0b7c,this[_0x39efe5(0x1e7)]=_0x4f4894;const {menu:_0x5c80c3,..._0xc9bb5d}=this['_config'];_0x5c80c3&&this[_0x39efe5(0x1e7)][_0x39efe5(0x193)](_0x39efe5(0x1df),_0x5c80c3,{'merge':!0x0}),this[_0x39efe5(0x1e7)][_0x39efe5(0x193)](ai,_0xc9bb5d),this[_0x39efe5(0x1e1)][_0x39efe5(0x17d)]&&this['_configService'][_0x39efe5(0x193)](k,this[_0x39efe5(0x1e1)][_0x39efe5(0x17d)]);}[_0x17df95(0x196)](){var _0x2ef3bc=_0x17df95;[[d],[p]][_0x2ef3bc(0x168)](_0x11144b=>this[_0x2ef3bc(0x18f)][_0x2ef3bc(0x1e6)](_0x11144b));}},h(_,_0x17df95(0x1b3),_0x46b096[_0x17df95(0x18e)]),h(_,'pluginName',vi),_);M=gi([U(0x1,_0x39fe6c(_0x427ce7)),U(0x2,_0x1c0a49)],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;
@@ -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>, _injector: Injector, _configService: IConfigService);
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, Injector, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
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
- constructor(_injector: Injector, _localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService);
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 _0x4056(_0x5b91cf,_0x1b2b84){var _0x2f4953=_0x2f49();return _0x4056=function(_0x4056cd,_0x2c9fd7){_0x4056cd=_0x4056cd-0x19e;var _0x3ec90a=_0x2f4953[_0x4056cd];return _0x3ec90a;},_0x4056(_0x5b91cf,_0x1b2b84);}(function(_0xd08730,_0x3caa51){var _0x1a5c2f=_0x4056,_0x19a0a3=_0xd08730();while(!![]){try{var _0x10bf34=parseInt(_0x1a5c2f(0x232))/0x1*(parseInt(_0x1a5c2f(0x221))/0x2)+parseInt(_0x1a5c2f(0x217))/0x3+-parseInt(_0x1a5c2f(0x293))/0x4+-parseInt(_0x1a5c2f(0x1fc))/0x5*(-parseInt(_0x1a5c2f(0x299))/0x6)+-parseInt(_0x1a5c2f(0x29c))/0x7+-parseInt(_0x1a5c2f(0x249))/0x8*(parseInt(_0x1a5c2f(0x24d))/0x9)+-parseInt(_0x1a5c2f(0x1c4))/0xa;if(_0x10bf34===_0x3caa51)break;else _0x19a0a3['push'](_0x19a0a3['shift']());}catch(_0x6803e){_0x19a0a3['push'](_0x19a0a3['shift']());}}}(_0x2f49,0x249bc),function(_0x4d5f6f,_0x5425ea){var _0x48e90b=_0x4056;typeof exports==_0x48e90b(0x2b3)&&typeof module<'u'?_0x5425ea(exports,require(_0x48e90b(0x23b)),require(_0x48e90b(0x1d8)),require(_0x48e90b(0x1da)),require('@univerjs/docs-ui'),require('@univerjs/engine-render'),require(_0x48e90b(0x1a1)),require(_0x48e90b(0x27a)),require(_0x48e90b(0x224)),require(_0x48e90b(0x1e6)),require('@univerjs-pro/collaboration'),require(_0x48e90b(0x291)),require(_0x48e90b(0x2a5)),require(_0x48e90b(0x207)),require('@univerjs/sheets-conditional-formatting-ui'),require(_0x48e90b(0x211)),require(_0x48e90b(0x208)),require(_0x48e90b(0x283)),require('@univerjs/sheets-numfmt'),require(_0x48e90b(0x214)),require(_0x48e90b(0x1a0)),require(_0x48e90b(0x26b)),require(_0x48e90b(0x1d2)),require(_0x48e90b(0x1c6)),require('@univerjs/sheets-drawing-ui'),require(_0x48e90b(0x202)),require(_0x48e90b(0x29b)),require(_0x48e90b(0x1ab)),require(_0x48e90b(0x22c)),require(_0x48e90b(0x220)),require(_0x48e90b(0x1c9))):typeof define==_0x48e90b(0x28e)&&define[_0x48e90b(0x2aa)]?define([_0x48e90b(0x274),_0x48e90b(0x23b),_0x48e90b(0x1d8),_0x48e90b(0x1da),_0x48e90b(0x1ac),_0x48e90b(0x23e),'@univerjs/sheets',_0x48e90b(0x27a),'@univerjs/ui','@univerjs-pro/edit-history-viewer',_0x48e90b(0x203),_0x48e90b(0x291),_0x48e90b(0x2a5),_0x48e90b(0x207),_0x48e90b(0x239),_0x48e90b(0x211),_0x48e90b(0x208),_0x48e90b(0x283),'@univerjs/sheets-numfmt',_0x48e90b(0x214),_0x48e90b(0x1a0),_0x48e90b(0x26b),'@univerjs/sheets-data-validation',_0x48e90b(0x1c6),'@univerjs/sheets-drawing-ui',_0x48e90b(0x202),_0x48e90b(0x29b),_0x48e90b(0x1ab),_0x48e90b(0x22c),_0x48e90b(0x220),_0x48e90b(0x1c9)],_0x5425ea):(_0x4d5f6f=typeof globalThis<'u'?globalThis:_0x4d5f6f||self,_0x5425ea(_0x4d5f6f[_0x48e90b(0x29f)]={},_0x4d5f6f['UniverCore'],_0x4d5f6f[_0x48e90b(0x227)],_0x4d5f6f[_0x48e90b(0x2a4)],_0x4d5f6f['UniverDocsUi'],_0x4d5f6f['UniverEngineRender'],_0x4d5f6f['UniverSheets'],_0x4d5f6f[_0x48e90b(0x29a)],_0x4d5f6f[_0x48e90b(0x269)],_0x4d5f6f[_0x48e90b(0x219)],_0x4d5f6f[_0x48e90b(0x20d)],_0x4d5f6f['UniverSheetsFilter'],_0x4d5f6f['UniverSheetsFilterUi'],_0x4d5f6f[_0x48e90b(0x27d)],_0x4d5f6f['UniverSheetsConditionalFormattingUi'],_0x4d5f6f[_0x48e90b(0x213)],_0x4d5f6f['UniverSheetsHyperLinkUi'],_0x4d5f6f['UniverDataValidation'],_0x4d5f6f[_0x48e90b(0x22f)],_0x4d5f6f[_0x48e90b(0x229)],_0x4d5f6f[_0x48e90b(0x216)],_0x4d5f6f[_0x48e90b(0x1ad)],_0x4d5f6f[_0x48e90b(0x26a)],_0x4d5f6f[_0x48e90b(0x1b6)],_0x4d5f6f['UniverSheetsDrawingUi'],_0x4d5f6f[_0x48e90b(0x1ee)],_0x4d5f6f[_0x48e90b(0x21b)],_0x4d5f6f[_0x48e90b(0x1dd)],_0x4d5f6f[_0x48e90b(0x279)],_0x4d5f6f[_0x48e90b(0x220)],_0x4d5f6f[_0x48e90b(0x215)]));}(this,function(_0x1833ae,_0x106d93,_0x14e98f,_0x55452f,_0x416b0f,_0x3e66b5,_0xfc61c,_0x46d2c2,_0x5a3703,_0x307a26,_0x355088,_0x1beee,_0x5720e2,_0x19d64b,_0x15d87e,_0x5a9880,_0x2469c4,_0x231992,_0x26179b,_0x2bb3ba,_0x3137bc,_0x1aa742,_0x522c18,_0x1e060b,_0x50cb3a,_0x18123b,_0xdf7107,_0x3119c3,_0x58430e,_0x5f12f9,_0x4a730e){'use strict';var _0x11567d=_0x4056;var _0x330293=Object[_0x11567d(0x1d0)],_0x2cb5c5=(_0x43e7d3,_0x1db6c0,_0x29ed3)=>_0x1db6c0 in _0x43e7d3?_0x330293(_0x43e7d3,_0x1db6c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29ed3}):_0x43e7d3[_0x1db6c0]=_0x29ed3,_0x1f6653=(_0x448bf0,_0x1e9966,_0x9993f7)=>_0x2cb5c5(_0x448bf0,typeof _0x1e9966!=_0x11567d(0x1f3)?_0x1e9966+'':_0x1e9966,_0x9993f7),_0x5b7285,_0x122f97=Object[_0x11567d(0x1d0)],_0x4438a9=Object[_0x11567d(0x23f)],_0x2adcc1=(_0x2a9270,_0x3b5a2b,_0xb4b2ac,_0x13754c)=>{var _0x49c886=_0x11567d;for(var _0x5d4d27=_0x13754c>0x1?void 0x0:_0x13754c?_0x4438a9(_0x3b5a2b,_0xb4b2ac):_0x3b5a2b,_0x2ea820=_0x2a9270[_0x49c886(0x26e)]-0x1,_0xf4f4ab;_0x2ea820>=0x0;_0x2ea820--)(_0xf4f4ab=_0x2a9270[_0x2ea820])&&(_0x5d4d27=(_0x13754c?_0xf4f4ab(_0x3b5a2b,_0xb4b2ac,_0x5d4d27):_0xf4f4ab(_0x5d4d27))||_0x5d4d27);return _0x13754c&&_0x5d4d27&&_0x122f97(_0x3b5a2b,_0xb4b2ac,_0x5d4d27),_0x5d4d27;},_0x1fb733=(_0x313a27,_0x466775)=>(_0x507d2,_0x3072da)=>_0x466775(_0x507d2,_0x3072da,_0x313a27);const _0x815a4a=_0x11567d(0x1e1),_0x2acb93=_0x11567d(0x21a),_0x53683a='univer-history-container';_0x1833ae['HistoryLoaderService']=class extends _0x106d93[_0x11567d(0x222)]{constructor(_0x4a906d,_0x539c35,_0xd23148,_0x1dff81,_0x9aeb7d,_0x2ff8a6,_0x218baf,_0x35279c,_0x5f3841){var _0x52a1e4=_0x11567d;super(),_0x1f6653(this,_0x52a1e4(0x1cc),null),_0x1f6653(this,_0x52a1e4(0x24b),new _0x106d93[(_0x52a1e4(0x1e5))]()),_0x1f6653(this,_0x52a1e4(0x1a6),new Map()),(this['_localeService']=_0x4a906d,this[_0x52a1e4(0x1f8)]=_0x539c35,this['_configService']=_0xd23148,this[_0x52a1e4(0x20e)]=_0x1dff81,this['_messageService']=_0x9aeb7d,this[_0x52a1e4(0x1bd)]=_0x2ff8a6,this[_0x52a1e4(0x2a6)]=_0x218baf,this[_0x52a1e4(0x19e)]=_0x35279c,this['_sidebarService']=_0x5f3841,this[_0x52a1e4(0x1cf)]());}[_0x11567d(0x1cf)](){var _0x476015=_0x11567d;this[_0x476015(0x1b5)](),this[_0x476015(0x1ce)]();}[_0x11567d(0x1b5)](){var _0x5dd169=_0x11567d,_0x456f01;const _0x1eba28=(_0x456f01=this['_configService'][_0x5dd169(0x234)](_0x2acb93))!=null?_0x456f01:_0x815a4a,_0x494eaa=document[_0x5dd169(0x253)](_0x1eba28);if(!_0x494eaa)return;const _0x1f1f2e=document[_0x5dd169(0x1c1)](_0x5dd169(0x2a9));_0x1f1f2e['id']=_0x53683a,_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x296)]=_0x5dd169(0x241),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x270)]='0',_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x23a)]='0',_0x1f1f2e['style'][_0x5dd169(0x1f7)]=_0x5dd169(0x28b),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x252)]=_0x5dd169(0x28b),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x282)]=_0x5dd169(0x1e4),_0x1f1f2e[_0x5dd169(0x2b8)][_0x5dd169(0x206)]=_0x5dd169(0x1cd),_0x494eaa['appendChild'](_0x1f1f2e);}[_0x11567d(0x1ce)](){var _0x1c488e=_0x11567d;[[_0xdf7107['UniverDrawingPlugin'],{'override':[[_0xdf7107[_0x1c488e(0x27c)],null]]}],[_0x55452f['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x416b0f[_0x1c488e(0x1d7)]],[_0x3e66b5[_0x1c488e(0x1b1)]],[_0x5a3703[_0x1c488e(0x254)],{'container':_0x53683a,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5a3703[_0x1c488e(0x2a2)],null]]}],[_0xfc61c[_0x1c488e(0x257)],{'notExecuteFormula':!0x0}],[_0x46d2c2[_0x1c488e(0x25b)]],[_0x355088[_0x1c488e(0x1fd)]],[_0x1beee['UniverSheetsFilterPlugin']],[_0x5720e2['UniverSheetsFilterUIPlugin']],[_0x19d64b[_0x1c488e(0x276)]],[_0x15d87e['UniverSheetsConditionalFormattingUIPlugin']],[_0x5a9880[_0x1c488e(0x1c8)]],[_0x2469c4['UniverSheetsHyperLinkUIPlugin']],[_0x231992[_0x1c488e(0x24a)]],[_0x522c18[_0x1c488e(0x25c)]],[_0x26179b['UniverSheetsNumfmtPlugin']],[_0x3137bc[_0x1c488e(0x245)],{'notExecuteFormula':!0x0}],[_0x2bb3ba[_0x1c488e(0x20c)]],[_0x1aa742['UniverRPCMainThreadPlugin'],{'workerURL':'./worker.js'}],[_0x1e060b[_0x1c488e(0x237)]],[_0x18123b[_0x1c488e(0x28c)]],[_0x50cb3a[_0x1c488e(0x1be)]],[_0x3119c3['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x307a26[_0x1c488e(0x295)]]]['forEach'](([_0x2cfb44,_0x94b6bd])=>this[_0x1c488e(0x2b2)](_0x2cfb44,_0x94b6bd));}[_0x11567d(0x1f1)](){var _0x4d36fa=_0x11567d;super[_0x4d36fa(0x1f1)](),this[_0x4d36fa(0x231)](),this[_0x4d36fa(0x1a6)][_0x4d36fa(0x1d9)]();}[_0x11567d(0x2b2)](_0x16125d,_0x36dc06,_0x552464){var _0x14444b=_0x11567d;if(this[_0x14444b(0x1a6)][_0x14444b(0x259)](_0x16125d[_0x14444b(0x238)])&&!_0x552464)throw new Error(_0x14444b(0x20a)+_0x16125d[_0x14444b(0x238)]+'\x20has\x20been\x20registered.');this[_0x14444b(0x1a6)][_0x14444b(0x1b4)](_0x16125d[_0x14444b(0x238)],[_0x16125d,_0x36dc06]);}[_0x11567d(0x1f5)](){var _0x22f1be=_0x11567d;return Array[_0x22f1be(0x260)](this[_0x22f1be(0x1a6)][_0x22f1be(0x256)]());}[_0x11567d(0x2b5)](_0x27b51e){var _0x44941b=_0x11567d;const _0x4d268f=document[_0x44941b(0x253)](_0x53683a);_0x4d268f&&(_0x4d268f[_0x44941b(0x2b8)][_0x44941b(0x206)]=_0x44941b(0x23d),this[_0x44941b(0x271)](_0x27b51e,_0x53683a));}[_0x11567d(0x231)](){var _0xbcc9f6=_0x11567d,_0x1aa791;this[_0xbcc9f6(0x24b)]['dispose'](),(_0x1aa791=this[_0xbcc9f6(0x1cc)])==null||_0x1aa791[_0xbcc9f6(0x1f1)](),this[_0xbcc9f6(0x1cc)]=null;const _0x5c2fa8=document[_0xbcc9f6(0x253)](_0x53683a);_0x5c2fa8&&(_0x5c2fa8['style'][_0xbcc9f6(0x206)]=_0xbcc9f6(0x1cd));}[_0x11567d(0x271)](_0x29c2b1,_0x12ac19){var _0x192d0f=_0x11567d;if(this[_0x192d0f(0x1cc)])return;const _0x40b3c2=new _0x106d93['Univer']({'theme':_0x14e98f[_0x192d0f(0x1e2)],'locales':{[this['_localeService'][_0x192d0f(0x2a3)]()]:this['_localeService'][_0x192d0f(0x1ea)]()},'override':[[_0x106d93[_0x192d0f(0x226)],null]]});this[_0x192d0f(0x1cc)]=_0x40b3c2;const _0x46908b=_0x40b3c2[_0x192d0f(0x23c)]();_0x46908b['get'](_0x106d93[_0x192d0f(0x25e)])[_0x192d0f(0x1d6)](this[_0x192d0f(0x258)][_0x192d0f(0x2a3)]()),this['_pluginMap'][_0x192d0f(0x248)](([_0x407d95,_0x2b0e71])=>{var _0x42b2a8=_0x192d0f;_0x40b3c2[_0x42b2a8(0x2b2)](_0x407d95,_0x2b0e71);}),_0x46908b[_0x192d0f(0x297)](_0x547dfa=>{var _0x573b2b=_0x192d0f;this[_0x573b2b(0x1b0)](_0x547dfa,_0x29c2b1),this[_0x573b2b(0x265)](_0x547dfa,this['_messageService']);});const _0x5cd94c=_0x46908b[_0x192d0f(0x2a1)](_0x307a26[_0x192d0f(0x25f)]),_0x164ef4=this[_0x192d0f(0x210)](_0x29c2b1);_0x5cd94c[_0x192d0f(0x225)](_0x29c2b1,_0x12ac19,_0x164ef4);}[_0x11567d(0x1b0)](_0x1e71de,_0xc17a10){var _0x43ba29=_0x11567d;const _0x52c15a=_0x1e71de[_0x43ba29(0x2a1)](_0x307a26[_0x43ba29(0x25f)]);this['_disposableCollection']['add'](_0x52c15a[_0x43ba29(0x230)]['subscribe'](_0x4229c3=>{var _0x5aedbc=_0x43ba29;switch(_0x4229c3){case _0x307a26['HistoryModeStatus'][_0x5aedbc(0x1bc)]:this[_0x5aedbc(0x19e)][_0x5aedbc(0x285)](),this[_0x5aedbc(0x240)][_0x5aedbc(0x1ed)]();break;case _0x307a26[_0x5aedbc(0x2b0)]['Exited']:this[_0x5aedbc(0x231)]();break;case _0x307a26[_0x5aedbc(0x2b0)][_0x5aedbc(0x1b8)]:this[_0x5aedbc(0x231)](),this[_0x5aedbc(0x1d3)][_0x5aedbc(0x1a7)]({'content':this['_localeService']['t'](_0x5aedbc(0x2b7)),'type':_0x14e98f[_0x5aedbc(0x1d5)][_0x5aedbc(0x1b8)],'duration':0xbb8});break;}})),this[_0x43ba29(0x24b)][_0x43ba29(0x25a)](_0x52c15a[_0x43ba29(0x1a2)][_0x43ba29(0x2b1)](async _0x46742c=>{var _0xb08427=_0x43ba29;_0x46742c&&this[_0xb08427(0x20e)]['executeCommand'](_0x355088[_0xb08427(0x209)]['id'],{'unitId':_0xc17a10,'revision':_0x46742c});}));}[_0x11567d(0x265)](_0x352beb,_0x2ccce0){var _0x6217ff=_0x11567d;const _0x312901=_0x352beb[_0x6217ff(0x2a1)](_0x5a3703['IMessageService']),_0x5c4036=_0x2ccce0[_0x6217ff(0x267)]();_0x5c4036&&_0x312901[_0x6217ff(0x27b)](_0x5c4036);}[_0x11567d(0x210)](_0x2d4058){var _0xa1d271=_0x11567d;const _0x46f11d=this[_0xa1d271(0x1f8)][_0xa1d271(0x280)](_0x2d4058)[_0xa1d271(0x1ae)]()[_0xa1d271(0x2a8)](_0x277619=>_0x277619['getSheetId']()),_0x125afc=new _0xfc61c[(_0xa1d271(0x21d))](_0x2d4058)['id'],_0x510c57=_0x46f11d[_0xa1d271(0x2a8)](_0x354bff=>new _0xfc61c[(_0xa1d271(0x1a9))](_0x2d4058,_0x354bff)['id']),_0x3fe287=_0x46f11d[_0xa1d271(0x2a8)](_0x52c6ca=>this[_0xa1d271(0x2a6)][_0xa1d271(0x1c3)](_0x2d4058,_0x52c6ca)['map'](_0x21240e=>new _0xfc61c['RangeProtectionPermissionEditPoint'](_0x2d4058,_0x52c6ca,_0x21240e[_0xa1d271(0x1fb)])['id']))['flat'](),_0x23b4c3=new _0xfc61c[(_0xa1d271(0x205))](_0x2d4058)['id'];return this['_permissionService'][_0xa1d271(0x281)]([_0x125afc,..._0x510c57,..._0x3fe287,_0x23b4c3])[_0xa1d271(0x289)](_0x1b55b3=>!!_0x1b55b3[_0xa1d271(0x1db)]);}},_0x1833ae[_0x11567d(0x286)]=_0x2adcc1([_0x106d93[_0x11567d(0x236)](_0x106d93[_0x11567d(0x2ab)][_0x11567d(0x28a)],_0x1833ae['HistoryLoaderService']),_0x1fb733(0x0,_0x106d93[_0x11567d(0x292)](_0x106d93['LocaleService'])),_0x1fb733(0x1,_0x106d93['IUniverInstanceService']),_0x1fb733(0x2,_0x106d93['IConfigService']),_0x1fb733(0x3,_0x106d93[_0x11567d(0x26f)]),_0x1fb733(0x4,_0x5a3703[_0x11567d(0x287)]),_0x1fb733(0x5,_0x106d93[_0x11567d(0x264)]),_0x1fb733(0x6,_0x106d93[_0x11567d(0x292)](_0xfc61c['RangeProtectionRuleModel'])),_0x1fb733(0x7,_0x106d93[_0x11567d(0x292)](_0x5a3703[_0x11567d(0x2a2)])),_0x1fb733(0x8,_0x106d93[_0x11567d(0x292)](_0x5a3703[_0x11567d(0x1bb)]))],_0x1833ae['HistoryLoaderService']);var _0x3b36ae=function(){var _0x302113=_0x11567d;return _0x3b36ae=Object['assign']||function(_0x2a7eb4){var _0x382d19=_0x4056;for(var _0xe7870c,_0x2f3b43=0x1,_0x136109=arguments[_0x382d19(0x26e)];_0x2f3b43<_0x136109;_0x2f3b43++){_0xe7870c=arguments[_0x2f3b43];for(var _0x2110ba in _0xe7870c)Object['prototype'][_0x382d19(0x255)][_0x382d19(0x1e7)](_0xe7870c,_0x2110ba)&&(_0x2a7eb4[_0x2110ba]=_0xe7870c[_0x2110ba]);}return _0x2a7eb4;},_0x3b36ae[_0x302113(0x21c)](this,arguments);},_0x2bb718=function(_0x211dcd,_0x1824d1){var _0x2c8ce7=_0x11567d,_0x3fb316={};for(var _0x506ee7 in _0x211dcd)Object['prototype']['hasOwnProperty'][_0x2c8ce7(0x1e7)](_0x211dcd,_0x506ee7)&&_0x1824d1['indexOf'](_0x506ee7)<0x0&&(_0x3fb316[_0x506ee7]=_0x211dcd[_0x506ee7]);if(_0x211dcd!=null&&typeof Object[_0x2c8ce7(0x1e0)]=='function'){for(var _0x1b7f7c=0x0,_0x506ee7=Object[_0x2c8ce7(0x1e0)](_0x211dcd);_0x1b7f7c<_0x506ee7[_0x2c8ce7(0x26e)];_0x1b7f7c++)_0x1824d1[_0x2c8ce7(0x246)](_0x506ee7[_0x1b7f7c])<0x0&&Object[_0x2c8ce7(0x218)][_0x2c8ce7(0x200)][_0x2c8ce7(0x1e7)](_0x211dcd,_0x506ee7[_0x1b7f7c])&&(_0x3fb316[_0x506ee7[_0x1b7f7c]]=_0x211dcd[_0x506ee7[_0x1b7f7c]]);}return _0x3fb316;},_0x39e96b=_0x4a730e[_0x11567d(0x1e3)](function(_0x17cd57,_0x39cda3){var _0x1d2801=_0x11567d,_0x4c8fa1=_0x17cd57[_0x1d2801(0x1e8)],_0x49eea2=_0x17cd57['id'],_0x146a47=_0x17cd57[_0x1d2801(0x1c5)],_0x3c6418=_0x17cd57[_0x1d2801(0x1b9)],_0x16811d=_0x2bb718(_0x17cd57,['icon','id',_0x1d2801(0x1c5),_0x1d2801(0x1b9)]),_0x186f0a=_0x1d2801(0x1b3)[_0x1d2801(0x233)](_0x49eea2,'\x20')[_0x1d2801(0x233)](_0x146a47||'')[_0x1d2801(0x2ae)](),_0x1d81bf=_0x4a730e[_0x1d2801(0x26d)]('_'[_0x1d2801(0x233)](_0x2cd869()));return _0x35e6e1(_0x4c8fa1,''[_0x1d2801(0x233)](_0x49eea2),{'defIds':_0x4c8fa1[_0x1d2801(0x262)],'idSuffix':_0x1d81bf[_0x1d2801(0x290)]},_0x3b36ae({'ref':_0x39cda3,'className':_0x186f0a},_0x16811d),_0x3c6418);});function _0x35e6e1(_0x201379,_0x5ad3f6,_0x3c70da,_0x2c1f5c,_0x140ae8){var _0x1dfead=_0x11567d;return _0x4a730e[_0x1dfead(0x1c1)](_0x201379[_0x1dfead(0x2af)],_0x3b36ae(_0x3b36ae({'key':_0x5ad3f6},_0x2281a3(_0x201379,_0x3c70da,_0x140ae8)),_0x2c1f5c),(_0x3fcf7a(_0x201379,_0x3c70da)[_0x1dfead(0x22e)]||[])['map'](function(_0x207c9a,_0x477af2){var _0x3689f2=_0x1dfead;return _0x35e6e1(_0x207c9a,''[_0x3689f2(0x233)](_0x5ad3f6,'-')[_0x3689f2(0x233)](_0x201379[_0x3689f2(0x2af)],'-')[_0x3689f2(0x233)](_0x477af2),_0x3c70da,void 0x0,_0x140ae8);}));}function _0x2281a3(_0x15ed9b,_0x22cac9,_0x3fd5e9){var _0x513e45=_0x11567d,_0x273008=_0x3b36ae({},_0x15ed9b[_0x513e45(0x1f0)]);_0x3fd5e9!=null&&_0x3fd5e9[_0x513e45(0x1f9)]&&_0x273008[_0x513e45(0x275)]===_0x513e45(0x1f9)&&(_0x273008[_0x513e45(0x275)]=_0x3fd5e9['colorChannel1']);var _0x54201c=_0x22cac9[_0x513e45(0x262)];return!_0x54201c||_0x54201c[_0x513e45(0x26e)]===0x0||(_0x15ed9b[_0x513e45(0x2af)]===_0x513e45(0x1b2)&&_0x273008['xlink:href']&&(_0x273008['xlink:href']=_0x273008[_0x513e45(0x1bf)]+_0x22cac9[_0x513e45(0x2b6)]),Object[_0x513e45(0x242)](_0x273008)['forEach'](function(_0x358134){var _0x32e3ec=_0x513e45,_0x5158e3=_0x358134[0x0],_0x4d5210=_0x358134[0x1];typeof _0x4d5210==_0x32e3ec(0x2ac)&&(_0x273008[_0x5158e3]=_0x4d5210[_0x32e3ec(0x250)](/url\(#(.*)\)/,_0x32e3ec(0x288)[_0x32e3ec(0x233)](_0x22cac9[_0x32e3ec(0x2b6)],')')));})),_0x273008;}function _0x3fcf7a(_0x4bca11,_0x3676d1){var _0x4fdbd4=_0x11567d,_0x5c3360,_0x2a1d7f=_0x3676d1[_0x4fdbd4(0x262)];return!_0x2a1d7f||_0x2a1d7f[_0x4fdbd4(0x26e)]===0x0?_0x4bca11:_0x4bca11[_0x4fdbd4(0x2af)]===_0x4fdbd4(0x1e9)&&(!((_0x5c3360=_0x4bca11[_0x4fdbd4(0x22e)])===null||_0x5c3360===void 0x0)&&_0x5c3360[_0x4fdbd4(0x26e)])?_0x3b36ae(_0x3b36ae({},_0x4bca11),{'children':_0x4bca11[_0x4fdbd4(0x22e)][_0x4fdbd4(0x2a8)](function(_0x12c30b){var _0x5a6a94=_0x4fdbd4;return typeof _0x12c30b[_0x5a6a94(0x1f0)]['id']==_0x5a6a94(0x2ac)&&_0x2a1d7f&&_0x2a1d7f[_0x5a6a94(0x246)](_0x12c30b[_0x5a6a94(0x1f0)]['id'])>-0x1?_0x3b36ae(_0x3b36ae({},_0x12c30b),{'attrs':_0x3b36ae(_0x3b36ae({},_0x12c30b[_0x5a6a94(0x1f0)]),{'id':_0x12c30b[_0x5a6a94(0x1f0)]['id']+_0x3676d1['idSuffix']})}):_0x12c30b;})}):_0x4bca11;}function _0x2cd869(){var _0x26156e=_0x11567d;return Math[_0x26156e(0x22b)]()[_0x26156e(0x24f)](0x24)[_0x26156e(0x27e)](0x2,0x8);}_0x39e96b[_0x11567d(0x25d)]=_0x11567d(0x1af);var _0x5d79d9={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x11567d(0x1ff)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x11567d(0x22d)},'children':[{'tag':_0x11567d(0x261),'attrs':{'d':_0x11567d(0x26c)}},{'tag':'path','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':_0x11567d(0x1e9),'attrs':{},'children':[{'tag':_0x11567d(0x272),'attrs':{'id':_0x11567d(0x19f)},'children':[{'tag':_0x11567d(0x261),'attrs':{'fill':_0x11567d(0x235),'d':_0x11567d(0x22a)}}]}]}],'defIds':[_0x11567d(0x19f)]},_0x5d10f4=_0x4a730e[_0x11567d(0x1e3)](function(_0x286736,_0x5dd3b0){var _0x10b899=_0x11567d;return _0x4a730e[_0x10b899(0x1c1)](_0x39e96b,Object[_0x10b899(0x228)]({},_0x286736,{'id':'history-single','ref':_0x5dd3b0,'icon':_0x5d79d9}));});_0x5d10f4['displayName']=_0x11567d(0x20f);const _0x3f846f={'id':'univer.operation.toggle-edit-history','type':_0x106d93['CommandType'][_0x11567d(0x27f)],'handler':_0x49baca=>{var _0x457e0d=_0x11567d;const _0x15ab91=_0x49baca['get'](_0x1833ae[_0x457e0d(0x286)]),_0x115cb2=_0x49baca[_0x457e0d(0x2a1)](_0x106d93[_0x457e0d(0x251)]),{unitId:_0x2550e8}=_0xfc61c['getSheetCommandTarget'](_0x115cb2)||{};return _0x2550e8?(_0x15ab91['mountHistoryContent'](_0x2550e8),!0x0):!0x1;}},_0x2aa867=_0x11567d(0x20f);function _0x2b1437(_0x4ba66d){var _0x420a52=_0x11567d;return{'id':_0x3f846f['id'],'type':_0x5a3703['MenuItemType']['BUTTON'],'icon':_0x2aa867,'tooltip':'editHistory.panel.title','hidden$':_0x5a3703[_0x420a52(0x1c2)](_0x4ba66d,_0x106d93['UniverInstanceType']['UNIVER_SHEET']),'disabled$':_0x46d2c2['getCurrentRangeDisable$'](_0x4ba66d,{'workbookTypes':[_0xfc61c[_0x420a52(0x21d)],_0xfc61c[_0x420a52(0x204)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x38e282={[_0x5a3703[_0x11567d(0x278)]['OTHERS']]:{[_0x3f846f['id']]:{'order':0x0,'menuItemFactory':_0x2b1437}}};var _0xf4ac76=Object[_0x11567d(0x1d0)],_0x2aa358=Object['getOwnPropertyDescriptor'],_0x11167a=(_0x1f79ac,_0x31ff72,_0x34d35d,_0x1d0af2)=>{var _0x205848=_0x11567d;for(var _0x83deda=_0x1d0af2>0x1?void 0x0:_0x1d0af2?_0x2aa358(_0x31ff72,_0x34d35d):_0x31ff72,_0x40fbbb=_0x1f79ac[_0x205848(0x26e)]-0x1,_0x14415b;_0x40fbbb>=0x0;_0x40fbbb--)(_0x14415b=_0x1f79ac[_0x40fbbb])&&(_0x83deda=(_0x1d0af2?_0x14415b(_0x31ff72,_0x34d35d,_0x83deda):_0x14415b(_0x83deda))||_0x83deda);return _0x1d0af2&&_0x83deda&&_0xf4ac76(_0x31ff72,_0x34d35d,_0x83deda),_0x83deda;},_0x531a93=(_0x76321c,_0x21cb6a)=>(_0x3a7987,_0x57ec2b)=>_0x21cb6a(_0x3a7987,_0x57ec2b,_0x76321c);let _0xcfdc8a=class extends _0x106d93[_0x11567d(0x1df)]{constructor(_0x11461c,_0x583e86,_0x32339c,_0x3dd27f,_0x39ae84,_0xd16449,_0xa8e72d,_0x4f96c1){var _0x22a801=_0x11567d;super(),_0x1f6653(this,_0x22a801(0x2b4),null),(this[_0x22a801(0x20e)]=_0x11461c,this[_0x22a801(0x28f)]=_0x583e86,this[_0x22a801(0x212)]=_0x32339c,this[_0x22a801(0x1a4)]=_0x3dd27f,this[_0x22a801(0x258)]=_0x39ae84,this[_0x22a801(0x1d3)]=_0xd16449,this[_0x22a801(0x1fe)]=_0xa8e72d,this[_0x22a801(0x2ad)]=_0x4f96c1,this[_0x22a801(0x1cf)]());}['_init'](){var _0x46f66d=_0x11567d;[_0x3f846f][_0x46f66d(0x248)](_0x40d020=>this[_0x46f66d(0x29d)](_0x106d93[_0x46f66d(0x273)](this[_0x46f66d(0x20e)][_0x46f66d(0x223)](_0x40d020)))),this['disposeWithMe'](this['_componentManager'][_0x46f66d(0x1f2)](_0x2aa867,_0x5d10f4)),this[_0x46f66d(0x28f)][_0x46f66d(0x277)](_0x38e282),this[_0x46f66d(0x29d)](this[_0x46f66d(0x20e)][_0x46f66d(0x2a0)](_0x2e4f32=>{var _0x3908d9=_0x46f66d;if(_0x2e4f32['id']===_0x355088[_0x3908d9(0x209)]['id']){this['_messageService'][_0x3908d9(0x1a7)]({'content':this[_0x3908d9(0x258)]['t'](_0x3908d9(0x268)),'type':_0x14e98f[_0x3908d9(0x1d5)][_0x3908d9(0x1a3)],'duration':0x1388});const {unitId:_0x331c5c}=_0x2e4f32[_0x3908d9(0x1c0)],_0x3cd5e4=this[_0x3908d9(0x1fe)][_0x3908d9(0x1dc)](_0x331c5c),_0x1db126=_0x5f12f9[_0x3908d9(0x247)]([_0x3cd5e4[_0x3908d9(0x1aa)]['event$'],_0x3cd5e4[_0x3908d9(0x244)]])[_0x3908d9(0x2b1)](async([_0x3ef9cf,_0x13979f])=>{var _0x4ce25c=_0x3908d9;_0x3ef9cf[_0x4ce25c(0x20b)]===_0x355088[_0x4ce25c(0x21e)][_0x4ce25c(0x266)]&&(_0x13979f==null?void 0x0:_0x13979f[_0x4ce25c(0x1f6)])===_0x58430e['CollaborationStatus'][_0x4ce25c(0x1fa)]&&_0x3ef9cf['data'][_0x4ce25c(0x284)][_0x4ce25c(0x1de)](_0x33b919=>_0x33b919['id']===_0x355088['RevertRevisionMutation']['id'])&&(this[_0x4ce25c(0x1a4)]['unMountHistoryContent'](),_0x1db126[_0x4ce25c(0x1ec)](),this[_0x4ce25c(0x2b4)]&&clearTimeout(this[_0x4ce25c(0x2b4)]),await this[_0x4ce25c(0x2ad)][_0x4ce25c(0x1c7)](),setTimeout(()=>window[_0x4ce25c(0x243)][_0x4ce25c(0x1d1)]()));});this[_0x3908d9(0x2b4)]=setTimeout(()=>{var _0x222b49=_0x3908d9;_0x1db126[_0x222b49(0x1ec)](),this['_messageService'][_0x222b49(0x1a7)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x14e98f['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};_0xcfdc8a=_0x11167a([_0x106d93[_0x11567d(0x236)](_0x106d93['LifecycleStages'][_0x11567d(0x28a)],_0xcfdc8a),_0x531a93(0x0,_0x106d93[_0x11567d(0x26f)]),_0x531a93(0x1,_0x5a3703[_0x11567d(0x29e)]),_0x531a93(0x2,_0x106d93['Inject'](_0x5a3703['ComponentManager'])),_0x531a93(0x3,_0x106d93[_0x11567d(0x292)](_0x1833ae['HistoryLoaderService'])),_0x531a93(0x4,_0x106d93[_0x11567d(0x292)](_0x106d93[_0x11567d(0x25e)])),_0x531a93(0x5,_0x5a3703[_0x11567d(0x287)]),_0x531a93(0x6,_0x106d93[_0x11567d(0x292)](_0x58430e[_0x11567d(0x28d)])),_0x531a93(0x7,_0x106d93[_0x11567d(0x292)](_0x58430e[_0x11567d(0x1cb)]))],_0xcfdc8a);const _0x350370='edit-history-loader.config',_0xb9a15f={};var _0x45f353=Object[_0x11567d(0x1d0)],_0x2798c8=Object['getOwnPropertyDescriptor'],_0x540037=(_0x52678b,_0x506c6a,_0x122281,_0x2bbaa6)=>{for(var _0x1d1a1d=_0x2bbaa6>0x1?void 0x0:_0x2bbaa6?_0x2798c8(_0x506c6a,_0x122281):_0x506c6a,_0x255a71=_0x52678b['length']-0x1,_0x2db382;_0x255a71>=0x0;_0x255a71--)(_0x2db382=_0x52678b[_0x255a71])&&(_0x1d1a1d=(_0x2bbaa6?_0x2db382(_0x506c6a,_0x122281,_0x1d1a1d):_0x2db382(_0x1d1a1d))||_0x1d1a1d);return _0x2bbaa6&&_0x1d1a1d&&_0x45f353(_0x506c6a,_0x122281,_0x1d1a1d),_0x1d1a1d;},_0x2ae9f2=(_0x4abb2e,_0x3f0af4)=>(_0xbac199,_0x23beca)=>_0x3f0af4(_0xbac199,_0x23beca,_0x4abb2e);const _0x1012b5='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';_0x1833ae['UniverEditHistoryLoaderPlugin']=(_0x5b7285=class extends _0x106d93[_0x11567d(0x21f)]{constructor(_0x2a8042=_0xb9a15f,_0x39e09c,_0x3bda4e){var _0x18e4fc=_0x11567d;super(),this[_0x18e4fc(0x1b7)]=_0x2a8042,this[_0x18e4fc(0x24e)]=_0x39e09c,this[_0x18e4fc(0x24c)]=_0x3bda4e;const {menu:_0x8d5344,..._0x4225c6}=this['_config'];_0x8d5344&&this[_0x18e4fc(0x24c)][_0x18e4fc(0x1eb)](_0x18e4fc(0x1ca),_0x8d5344,{'merge':!0x0}),this[_0x18e4fc(0x24c)][_0x18e4fc(0x1eb)](_0x350370,_0x4225c6),this[_0x18e4fc(0x1b7)][_0x18e4fc(0x201)]&&this[_0x18e4fc(0x24c)]['setConfig'](_0x2acb93,this[_0x18e4fc(0x1b7)][_0x18e4fc(0x201)]);}[_0x11567d(0x298)](){var _0x1fde4a=_0x11567d;[[_0x1833ae[_0x1fde4a(0x286)]],[_0xcfdc8a]]['forEach'](_0x5751c9=>this['_injector']['add'](_0x5751c9));}},_0x1f6653(_0x5b7285,_0x11567d(0x1a8),_0x106d93[_0x11567d(0x2a7)]['UNIVER_UNKNOWN']),_0x1f6653(_0x5b7285,_0x11567d(0x238),_0x1012b5),_0x5b7285),_0x1833ae[_0x11567d(0x1f4)]=_0x540037([_0x2ae9f2(0x1,_0x106d93[_0x11567d(0x292)](_0x106d93[_0x11567d(0x1ba)])),_0x2ae9f2(0x2,_0x106d93[_0x11567d(0x263)])],_0x1833ae[_0x11567d(0x1f4)]),_0x1833ae[_0x11567d(0x1ef)]=_0x2acb93,_0x1833ae[_0x11567d(0x294)]=_0x53683a,Object['defineProperty'](_0x1833ae,Symbol[_0x11567d(0x1d4)],{'value':_0x11567d(0x1a5)});}));function _0x2f49(){var _0x4e3f96=['xlink:href','params','createElement','getMenuHiddenObservable','getSubunitRuleList','292040MZPhPa','className','@univerjs/drawing-ui','exhaustSavingTask','UniverSheetsHyperLinkPlugin','react','menu','LocalCacheService','_historyUniver','none','_initPlugins','_init','defineProperty','reload','@univerjs/sheets-data-validation','_messageService','toStringTag','MessageType','setLocale','UniverDocsUIPlugin','@univerjs/design','clear','@univerjs/docs','value','getCollabEntity','UniverSheetsPivot','some','RxDisposable','getOwnPropertySymbols','univer-container','greenTheme','forwardRef','1000','DisposableCollection','@univerjs-pro/edit-history-viewer','call','icon','defs','getLocales','setConfig','unsubscribe','close','UniverSheetsDrawing','UNIVER_CONTAINER_ID_KEY','attrs','dispose','register','symbol','UniverEditHistoryLoaderPlugin','getAllPlugins','status','width','_univerInstanceService','colorChannel1','SYNCED','permissionId','32520kCOkyC','UniverCollaborationPlugin','_collaborationController','1em','propertyIsEnumerable','univerContainerId','@univerjs/sheets-drawing','@univerjs-pro/collaboration','WorkbookViewHistoryPermission','WorkbookRecoverHistoryPermission','display','@univerjs/sheets-conditional-formatting','@univerjs/sheets-hyper-link-ui','RevertRevisionMutation','[HistoryLoaderService]:\x20Plugin\x20','eventID','UniverSheetsFormulaPlugin','UniverCollaboration','_commandService','HistorySingle','_checkCanRevert','@univerjs/sheets-hyper-link','_componentManager','UniverSheetsHyperLink','@univerjs/sheets-formula','React','UniverEngineFormula','375603JGmGme','prototype','UniverEditHistoryViewer','UNIVER_CONTAINER_ID','UniverDrawing','apply','WorkbookEditablePermission','CollaborationEvent','Plugin','rxjs','403068FUvWBu','Disposable','registerCommand','@univerjs/ui','triggerLoadVersions','IAuthzIoService','UniverDesign','assign','UniverSheetsFormula','M0\x200H16V16H0z','random','@univerjs-pro/collaboration-client','url(#history-single_clip0_907_281)','children','UniverSheetsNumfmt','status$','unMountHistoryContent','1ufCKcI','concat','getConfig','#fff','OnLifecycle','UniverDrawingUIPlugin','pluginName','@univerjs/sheets-conditional-formatting-ui','left','@univerjs/core','__getInjector','block','@univerjs/engine-render','getOwnPropertyDescriptor','_sidebarService','absolute','entries','location','state$','UniverFormulaEnginePlugin','indexOf','combineLatest','forEach','1480ZLnlkY','UniverDataValidationPlugin','_disposableCollection','_configService','1197MGzwJk','_injector','toString','replace','IUniverInstanceService','height','getElementById','UniverUIPlugin','hasOwnProperty','values','UniverSheetsPlugin','_localeService','has','add','UniverSheetsUIPlugin','UniverSheetsDataValidationPlugin','displayName','LocaleService','HistoryManagerService','from','path','defIds','IConfigService','IPermissionService','_initMessageService','CHANGESET_ACK','getContainer','editHistory.panel.reverting','UniverUi','UniverSheetsDataValidation','@univerjs/rpc','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','useRef','length','ICommandService','top','_initUniver','clipPath','toDisposable','exports','fill','UniverSheetsConditionalFormattingPlugin','mergeMenu','RibbonStartGroup','UniverCollaborationClient','@univerjs/sheets-ui','setContainer','IImageIoService','UniverSheetsConditionalFormatting','substring','OPERATION','getUnit','composePermission','zIndex','@univerjs/data-validation','mutations','closeAll','HistoryLoaderService','IMessageService','url(#$1','every','Steady','100%','UniverSheetsDrawingPlugin','CollaborationController','function','_menuManagerService','current','@univerjs/sheets-filter','Inject','906436MhIeon','UNIVER_HISTORY_CONTAINER_ID','UniverEditHistoryViewerPlugin','position','invoke','onStarting','216cXAMSm','UniverSheetsUi','@univerjs/drawing','913591RaGklR','disposeWithMe','IMenuManagerService','UniverEditHistoryLoader','onCommandExecuted','get','IDialogService','getCurrentLocale','UniverDocs','@univerjs/sheets-filter-ui','_selectionProtectionRuleModel','UniverInstanceType','map','div','amd','LifecycleStages','string','_localCacheService','trim','tag','HistoryModeStatus','subscribe','registerPlugin','object','_revertErrorTimer','mountHistoryContent','idSuffix','editHistory.panel.listFetchError','style','_dialogService','history-single_clip0_907_281','@univerjs/engine-formula','@univerjs/sheets','revertRevision$','Loading','_historyManagerService','Module','_pluginMap','show','type','WorksheetEditPermission','session','@univerjs-pro/sheets-pivot','@univerjs/docs-ui','UniverRpc','getSheets','UniverIcon','_initListener','UniverRenderEnginePlugin','use','univerjs-icon\x20univerjs-icon-','set','_initContainer','UniverDrawingUi','_config','Error','extend','Injector','ISidebarService','Entered','_permissionService','UniverSheetsDrawingUIPlugin'];_0x2f49=function(){return _0x4e3f96;};return _0x2f49();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
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.12",
52
- "@univerjs-pro/collaboration-client": "0.2.12",
53
- "@univerjs-pro/edit-history-viewer": "0.2.12",
54
- "@univerjs-pro/sheets-pivot": "0.2.12",
55
- "@univerjs/core": "0.2.12",
56
- "@univerjs/data-validation": "0.2.12",
57
- "@univerjs/design": "0.2.12",
58
- "@univerjs/docs": "0.2.12",
59
- "@univerjs/docs-ui": "0.2.12",
60
- "@univerjs/drawing": "0.2.12",
61
- "@univerjs/engine-render": "0.2.12",
62
- "@univerjs/engine-formula": "0.2.12",
63
- "@univerjs/sheets": "0.2.12",
64
- "@univerjs/rpc": "0.2.12",
65
- "@univerjs/drawing-ui": "0.2.12",
66
- "@univerjs/sheets-conditional-formatting": "0.2.12",
67
- "@univerjs/sheets-conditional-formatting-ui": "0.2.12",
68
- "@univerjs/sheets-data-validation": "0.2.12",
69
- "@univerjs/sheets-drawing-ui": "0.2.12",
70
- "@univerjs/sheets-filter-ui": "0.2.12",
71
- "@univerjs/sheets-drawing": "0.2.12",
72
- "@univerjs/sheets-formula": "0.2.12",
73
- "@univerjs/sheets-hyper-link": "0.2.12",
74
- "@univerjs/sheets-filter": "0.2.12",
75
- "@univerjs/sheets-hyper-link-ui": "0.2.12",
76
- "@univerjs/sheets-numfmt": "0.2.12",
77
- "@univerjs/sheets-ui": "0.2.12",
78
- "@univerjs/ui": "0.2.12"
51
+ "@univerjs-pro/collaboration": "0.2.14",
52
+ "@univerjs-pro/sheets-pivot": "0.2.14",
53
+ "@univerjs-pro/collaboration-client": "0.2.14",
54
+ "@univerjs-pro/edit-history-viewer": "0.2.14",
55
+ "@univerjs/core": "0.2.14",
56
+ "@univerjs/design": "0.2.14",
57
+ "@univerjs/docs": "0.2.14",
58
+ "@univerjs/docs-ui": "0.2.14",
59
+ "@univerjs/data-validation": "0.2.14",
60
+ "@univerjs/drawing-ui": "0.2.14",
61
+ "@univerjs/drawing": "0.2.14",
62
+ "@univerjs/engine-formula": "0.2.14",
63
+ "@univerjs/rpc": "0.2.14",
64
+ "@univerjs/engine-render": "0.2.14",
65
+ "@univerjs/sheets": "0.2.14",
66
+ "@univerjs/sheets-drawing": "0.2.14",
67
+ "@univerjs/sheets-data-validation": "0.2.14",
68
+ "@univerjs/sheets-conditional-formatting": "0.2.14",
69
+ "@univerjs/sheets-conditional-formatting-ui": "0.2.14",
70
+ "@univerjs/sheets-drawing-ui": "0.2.14",
71
+ "@univerjs/sheets-filter-ui": "0.2.14",
72
+ "@univerjs/sheets-formula": "0.2.14",
73
+ "@univerjs/sheets-hyper-link": "0.2.14",
74
+ "@univerjs/sheets-hyper-link-ui": "0.2.14",
75
+ "@univerjs/sheets-ui": "0.2.14",
76
+ "@univerjs/ui": "0.2.14",
77
+ "@univerjs/sheets-filter": "0.2.14",
78
+ "@univerjs/sheets-numfmt": "0.2.14"
79
79
  },
80
80
  "dependencies": {
81
- "@univerjs/icons": "^0.1.72",
82
- "@univerjs/protocol": "0.1.39-alpha.15"
81
+ "@univerjs/icons": "^0.1.78",
82
+ "@univerjs-pro/collaboration": "0.2.14",
83
+ "@univerjs-pro/edit-history-viewer": "0.2.14",
84
+ "@univerjs-pro/collaboration-client": "0.2.14",
85
+ "@univerjs/design": "0.2.14",
86
+ "@univerjs/data-validation": "0.2.14",
87
+ "@univerjs/drawing": "0.2.14",
88
+ "@univerjs/docs-ui": "0.2.14",
89
+ "@univerjs/docs": "0.2.14",
90
+ "@univerjs/core": "0.2.14",
91
+ "@univerjs/drawing-ui": "0.2.14",
92
+ "@univerjs/engine-formula": "0.2.14",
93
+ "@univerjs/protocol": "0.1.39-alpha.15",
94
+ "@univerjs/rpc": "0.2.14",
95
+ "@univerjs/engine-render": "0.2.14",
96
+ "@univerjs/sheets-conditional-formatting": "0.2.14",
97
+ "@univerjs/sheets-conditional-formatting-ui": "0.2.14",
98
+ "@univerjs/sheets": "0.2.14",
99
+ "@univerjs/sheets-data-validation": "0.2.14",
100
+ "@univerjs/sheets-drawing": "0.2.14",
101
+ "@univerjs/sheets-drawing-ui": "0.2.14",
102
+ "@univerjs/sheets-formula": "0.2.14",
103
+ "@univerjs/sheets-filter": "0.2.14",
104
+ "@univerjs/sheets-filter-ui": "0.2.14",
105
+ "@univerjs/sheets-hyper-link-ui": "0.2.14",
106
+ "@univerjs/sheets-hyper-link": "0.2.14",
107
+ "@univerjs/sheets-numfmt": "0.2.14",
108
+ "@univerjs/sheets-ui": "0.2.14",
109
+ "@univerjs/ui": "0.2.14"
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.5.4",
89
- "vite": "^5.4.0",
115
+ "typescript": "^5.6.2",
116
+ "vite": "^5.4.3",
90
117
  "vitest": "^2.0.5",
91
- "@univerjs-pro/collaboration": "0.2.12",
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.14"
119
119
  },
120
120
  "univerSpace": {
121
121
  ".": {