@univerjs-pro/edit-history-loader 0.10.13 → 0.10.14-nightly.202511070628

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';const _0x19dd31=_0x4b46;(function(_0x19423e,_0x430fcb){const _0x52139f=_0x4b46,_0x3846d4=_0x19423e();while(!![]){try{const _0x5a1ee3=parseInt(_0x52139f(0x249))/0x1+parseInt(_0x52139f(0x258))/0x2*(parseInt(_0x52139f(0x22d))/0x3)+-parseInt(_0x52139f(0x1eb))/0x4+-parseInt(_0x52139f(0x1fe))/0x5*(-parseInt(_0x52139f(0x229))/0x6)+-parseInt(_0x52139f(0x20d))/0x7+-parseInt(_0x52139f(0x227))/0x8*(parseInt(_0x52139f(0x25a))/0x9)+parseInt(_0x52139f(0x293))/0xa*(-parseInt(_0x52139f(0x1a6))/0xb);if(_0x5a1ee3===_0x430fcb)break;else _0x3846d4['push'](_0x3846d4['shift']());}catch(_0x3b706a){_0x3846d4['push'](_0x3846d4['shift']());}}}(_0xacdf,0x4d584));var j=Object['defineProperty'],F=(_0x289c20,_0x482d79,_0x52de99)=>_0x482d79 in _0x289c20?j(_0x289c20,_0x482d79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52de99}):_0x289c20[_0x482d79]=_0x52de99,_=(_0x57dbb9,_0x227046,_0x5052b1)=>F(_0x57dbb9,typeof _0x227046!=_0x19dd31(0x23b)?_0x227046+'':_0x227046,_0x5052b1);Object[_0x19dd31(0x1b3)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),I=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),b=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),T=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),H=require('@univerjs-pro/license'),x=require('@univerjs-pro/sheets-pivot'),A=require('@univerjs-pro/sheets-sparkline'),V=require('@univerjs-pro/sheets-sparkline-ui'),G=require('@univerjs/data-validation'),W=require('@univerjs/docs'),Y=require('@univerjs/docs-ui'),L=require('@univerjs/drawing'),B=require('@univerjs/drawing-ui'),K=require('@univerjs/engine-formula'),z=require('@univerjs/engine-render'),Z=require('@univerjs/network'),J=require('@univerjs/rpc'),Q=require('@univerjs/sheets-conditional-formatting'),X=require('@univerjs/sheets-conditional-formatting-ui'),ee=require('@univerjs/sheets-data-validation'),ie=require('@univerjs/sheets-data-validation-ui'),te=require('@univerjs/sheets-drawing'),re=require('@univerjs/sheets-drawing-ui'),ne=require('@univerjs/sheets-filter'),se=require('@univerjs/sheets-filter-ui'),oe=require('@univerjs/sheets-formula'),ae=require('@univerjs/sheets-formula-ui'),ce=require('@univerjs/sheets-hyper-link'),le=require('@univerjs/sheets-hyper-link-ui'),ue=require('@univerjs/sheets-numfmt'),w=require('@univerjs/sheets-ui'),O=_0x19dd31(0x238),R={};function k({ref:_0x567d69,..._0x5cc8d1}){const _0x435efc=_0x19dd31,{icon:_0x49738f,id:_0x2b0c45,className:_0x3a18dd,extend:_0x333339,..._0x478bbf}=_0x5cc8d1,_0x4b1c2b=('univerjs-icon\x20univerjs-icon-'+_0x2b0c45+'\x20'+(_0x3a18dd||''))[_0x435efc(0x219)](),_0x17e09c=U[_0x435efc(0x200)]('_'+ve());return D(_0x49738f,''+_0x2b0c45,{'defIds':_0x49738f[_0x435efc(0x261)],'idSuffix':_0x17e09c[_0x435efc(0x281)]},{'ref':_0x567d69,'className':_0x4b1c2b,..._0x478bbf},_0x333339);}function D(_0x47b940,_0x3aeef1,_0x1caea9,_0xbfeb1a,_0x54d5b9){const _0x17b912=_0x19dd31;return U[_0x17b912(0x1bd)](_0x47b940[_0x17b912(0x274)],{'key':_0x3aeef1,...he(_0x47b940,_0x1caea9,_0x54d5b9),..._0xbfeb1a},(ge(_0x47b940,_0x1caea9)[_0x17b912(0x239)]||[])['map']((_0x5b119d,_0x12b8d3)=>D(_0x5b119d,_0x3aeef1+'-'+_0x47b940['tag']+'-'+_0x12b8d3,_0x1caea9,void 0x0,_0x54d5b9)));}function he(_0x6d3903,_0x3bc8fa,_0x34f6d0){const _0x22668b=_0x19dd31,_0x30fabc={..._0x6d3903[_0x22668b(0x28c)]};_0x34f6d0!=null&&_0x34f6d0[_0x22668b(0x279)]&&_0x30fabc[_0x22668b(0x1b5)]===_0x22668b(0x279)&&(_0x30fabc[_0x22668b(0x1b5)]=_0x34f6d0[_0x22668b(0x279)]),_0x6d3903[_0x22668b(0x274)]==='mask'&&_0x30fabc['id']&&(_0x30fabc['id']=_0x30fabc['id']+_0x3bc8fa['idSuffix']),Object[_0x22668b(0x1af)](_0x30fabc)[_0x22668b(0x27e)](([_0x3c7afd,_0x3467b9])=>{const _0x853be5=_0x22668b;_0x3c7afd===_0x853be5(0x1e4)&&typeof _0x3467b9=='string'&&(_0x30fabc[_0x3c7afd]=_0x3467b9[_0x853be5(0x24f)](/url\(#(.*)\)/,_0x853be5(0x1df)+_0x3bc8fa['idSuffix']+')'));});const {defIds:_0x5b4492}=_0x3bc8fa;return!_0x5b4492||_0x5b4492[_0x22668b(0x232)]===0x0||(_0x6d3903[_0x22668b(0x274)]===_0x22668b(0x1dc)&&_0x30fabc[_0x22668b(0x252)]&&(_0x30fabc['xlink:href']=_0x30fabc[_0x22668b(0x252)]+_0x3bc8fa[_0x22668b(0x28d)]),Object[_0x22668b(0x1af)](_0x30fabc)[_0x22668b(0x27e)](([_0x34a05e,_0x3c6f35])=>{const _0x5cbdd9=_0x22668b;typeof _0x3c6f35=='string'&&(_0x30fabc[_0x34a05e]=_0x3c6f35[_0x5cbdd9(0x24f)](/url\(#(.*)\)/,_0x5cbdd9(0x1df)+_0x3bc8fa[_0x5cbdd9(0x28d)]+')'));})),_0x30fabc;}function ge(_0x5ccd78,_0x5ee0a0){const _0x3b9f45=_0x19dd31;var _0x5427d7;const {defIds:_0x966335}=_0x5ee0a0;return!_0x966335||_0x966335[_0x3b9f45(0x232)]===0x0?_0x5ccd78:_0x5ccd78[_0x3b9f45(0x274)]===_0x3b9f45(0x1f4)&&((_0x5427d7=_0x5ccd78['children'])!=null&&_0x5427d7[_0x3b9f45(0x232)])?{..._0x5ccd78,'children':_0x5ccd78[_0x3b9f45(0x239)][_0x3b9f45(0x26e)](_0x4a55fd=>typeof _0x4a55fd['attrs']['id']==_0x3b9f45(0x21e)&&_0x966335&&_0x966335[_0x3b9f45(0x1dd)](_0x4a55fd[_0x3b9f45(0x28c)]['id'])?{..._0x4a55fd,'attrs':{..._0x4a55fd[_0x3b9f45(0x28c)],'id':_0x4a55fd['attrs']['id']+_0x5ee0a0['idSuffix']}}:_0x4a55fd)}:_0x5ccd78;}function ve(){const _0xdf3acb=_0x19dd31;return Math['random']()[_0xdf3acb(0x280)](0x24)[_0xdf3acb(0x1a5)](0x2,0x8);}k[_0x19dd31(0x1fa)]='UniverIcon';const de={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x19dd31(0x275),'width':_0x19dd31(0x269),'height':_0x19dd31(0x269)},'children':[{'tag':'g','attrs':{'fill':_0x19dd31(0x231),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x19dd31(0x285),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0x19dd31(0x285),'attrs':{'d':_0x19dd31(0x220)}}]},{'tag':_0x19dd31(0x1f4),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x19dd31(0x1db)},'children':[{'tag':'path','attrs':{'fill':_0x19dd31(0x23c),'d':_0x19dd31(0x22b)}}]}]}],'defIds':[_0x19dd31(0x1db)]},q=U[_0x19dd31(0x1c8)](function(_0x201c91,_0x3ce091){const _0x24d8e0=_0x19dd31;return U[_0x24d8e0(0x1bd)](k,Object[_0x24d8e0(0x287)]({},_0x201c91,{'id':_0x24d8e0(0x210),'ref':_0x3ce091,'icon':de}));});q['displayName']=_0x19dd31(0x250);var _e=Object[_0x19dd31(0x203)],Se=(_0x531671,_0xe7ada4,_0x593a1e,_0x3a5e80)=>{const _0x2ab7ca=_0x19dd31;for(var _0x193d5d=_0x3a5e80>0x1?void 0x0:_0x3a5e80?_e(_0xe7ada4,_0x593a1e):_0xe7ada4,_0x5dc76c=_0x531671[_0x2ab7ca(0x232)]-0x1,_0x121c5e;_0x5dc76c>=0x0;_0x5dc76c--)(_0x121c5e=_0x531671[_0x5dc76c])&&(_0x193d5d=_0x121c5e(_0x193d5d)||_0x193d5d);return _0x193d5d;},g=(_0x25ac04,_0x2c65ef)=>(_0x50c2c7,_0x5df08b)=>_0x2c65ef(_0x50c2c7,_0x5df08b,_0x25ac04);const me=_0x19dd31(0x24b),P=_0x19dd31(0x208),y=_0x19dd31(0x25c);exports[_0x19dd31(0x202)]=class extends o['Disposable']{constructor(_0x1e0e29,_0x15ba9b,_0x3581ea,_0x510b36,_0x2b853e,_0x59177b,_0x432dea,_0x2ab93c,_0x4e73f8,_0x5b3ca4){const _0x432de6=_0x19dd31;super(),_(this,_0x432de6(0x266),new T[(_0x432de6(0x1d1))](null)),_(this,'historyUniver$',this[_0x432de6(0x266)][_0x432de6(0x27f)]()),_(this,_0x432de6(0x1ce),new o[(_0x432de6(0x1ab))]()),_(this,_0x432de6(0x284),new Map()),(this[_0x432de6(0x1d0)]=_0x1e0e29,this[_0x432de6(0x1cf)]=_0x15ba9b,this[_0x432de6(0x1e7)]=_0x3581ea,this['_commandService']=_0x510b36,this['_messageService']=_0x2b853e,this[_0x432de6(0x1f8)]=_0x59177b,this[_0x432de6(0x22c)]=_0x432dea,this[_0x432de6(0x214)]=_0x2ab93c,this[_0x432de6(0x1f1)]=_0x4e73f8,this[_0x432de6(0x21f)]=_0x5b3ca4,this[_0x432de6(0x1bc)]());}get[_0x19dd31(0x282)](){const _0x557c6b=_0x19dd31;return this[_0x557c6b(0x266)]['value'];}[_0x19dd31(0x1bc)](){const _0x2a8667=_0x19dd31;this[_0x2a8667(0x221)](),this[_0x2a8667(0x272)]();}[_0x19dd31(0x221)](){const _0xbd13c2=_0x19dd31;var _0x246ec4;const _0x2cbf98=(_0x246ec4=this['_configService'][_0xbd13c2(0x25f)](P))!=null?_0x246ec4:me,_0x4a169b=document['getElementById'](_0x2cbf98);if(!_0x4a169b)return;const _0x36e7c3=document[_0xbd13c2(0x1bd)](_0xbd13c2(0x1bf));_0x36e7c3['id']=y,_0x36e7c3[_0xbd13c2(0x289)]['uComp']=_0xbd13c2(0x23e),_0x36e7c3[_0xbd13c2(0x1e6)]['position']=_0xbd13c2(0x240),_0x36e7c3['style'][_0xbd13c2(0x1c3)]='0',_0x36e7c3[_0xbd13c2(0x1e6)][_0xbd13c2(0x291)]='0',_0x36e7c3['style'][_0xbd13c2(0x1d8)]='100%',_0x36e7c3['style'][_0xbd13c2(0x21b)]=_0xbd13c2(0x265),_0x36e7c3[_0xbd13c2(0x1e6)][_0xbd13c2(0x218)]=_0xbd13c2(0x23d),_0x36e7c3[_0xbd13c2(0x1e6)][_0xbd13c2(0x256)]='none',_0x4a169b[_0xbd13c2(0x283)](_0x36e7c3);}[_0x19dd31(0x272)](){const _0x2cb59b=_0x19dd31;var _0x15dd5e;[[z[_0x2cb59b(0x1da)]],[h['UniverUIPlugin'],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x2cb59b(0x1bb)],null]]}],[Z['UniverNetworkPlugin']],[L[_0x2cb59b(0x1ac)],{'override':[[L[_0x2cb59b(0x21d)],null]]}],[W['UniverDocsPlugin'],{'hasScroll':!0x1}],[Y[_0x2cb59b(0x1ba)]],[ue['UniverSheetsNumfmtPlugin']],[d[_0x2cb59b(0x1b8)],{'notExecuteFormula':!0x0}],[w[_0x2cb59b(0x26c)]],[oe[_0x2cb59b(0x1cc)]],[ae[_0x2cb59b(0x1f5)]],[I[_0x2cb59b(0x228)]],[ne['UniverSheetsFilterPlugin']],[se[_0x2cb59b(0x26b)]],[Q[_0x2cb59b(0x1d2)]],[X[_0x2cb59b(0x241)]],[ce['UniverSheetsHyperLinkPlugin']],[le[_0x2cb59b(0x248)]],[G[_0x2cb59b(0x246)]],[ee[_0x2cb59b(0x24c)]],[ie[_0x2cb59b(0x1ea)]],[K[_0x2cb59b(0x24d)],{'notExecuteFormula':!0x0}],[J[_0x2cb59b(0x1f7)],{'workerURL':_0x2cb59b(0x1e3)}],[B[_0x2cb59b(0x211)]],[te[_0x2cb59b(0x1b6)]],[re['UniverSheetsDrawingUIPlugin']],[A[_0x2cb59b(0x230)]],[V[_0x2cb59b(0x1e1)]],[x['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[m[_0x2cb59b(0x26a)],{'historyListServerUrl':(_0x15dd5e=this['_configService']['getConfig'](O))==null?void 0x0:_0x15dd5e[_0x2cb59b(0x1b0)]}]][_0x2cb59b(0x27e)](([_0xdb9388,_0x5af093])=>this[_0x2cb59b(0x213)](_0xdb9388,_0x5af093));}[_0x19dd31(0x21c)](){const _0x4423e1=_0x19dd31;super[_0x4423e1(0x21c)](),this['unMountHistoryContent'](),this[_0x4423e1(0x284)][_0x4423e1(0x1ed)]();}[_0x19dd31(0x213)](_0x1aa2b5,_0x21ac26,_0x4c4b7d){const _0x3a2651=_0x19dd31;if(this[_0x3a2651(0x284)][_0x3a2651(0x226)](_0x1aa2b5[_0x3a2651(0x22a)])&&!_0x4c4b7d)throw new Error(_0x3a2651(0x234)+_0x1aa2b5[_0x3a2651(0x22a)]+_0x3a2651(0x251));this[_0x3a2651(0x284)]['set'](_0x1aa2b5[_0x3a2651(0x22a)],[_0x1aa2b5,_0x21ac26]);}[_0x19dd31(0x27d)](){const _0x21d261=_0x19dd31;return Array[_0x21d261(0x277)](this[_0x21d261(0x284)][_0x21d261(0x20f)]());}[_0x19dd31(0x23a)](_0x2e09b0){const _0x2146dd=_0x19dd31,_0x10a80d=document[_0x2146dd(0x243)](y);_0x10a80d&&(_0x10a80d[_0x2146dd(0x1e6)][_0x2146dd(0x256)]=_0x2146dd(0x1f2),this[_0x2146dd(0x20b)](_0x2e09b0,y));}[_0x19dd31(0x1be)](){const _0x3d754a=_0x19dd31;var _0x2ad884;this[_0x3d754a(0x1ce)]['dispose'](),(_0x2ad884=this[_0x3d754a(0x282)])==null||_0x2ad884['dispose'](),this[_0x3d754a(0x266)]['next'](null);const _0x4e7b6c=document['getElementById'](y);_0x4e7b6c&&(_0x4e7b6c[_0x3d754a(0x1e6)][_0x3d754a(0x256)]='none');}[_0x19dd31(0x20b)](_0xce4841,_0x2a415a){const _0x2b68b1=_0x19dd31;if(this[_0x2b68b1(0x282)])return;const _0x32d22e=new o[(_0x2b68b1(0x1fd))]({'locales':{[this[_0x2b68b1(0x1d0)][_0x2b68b1(0x295)]()]:this['_localeService'][_0x2b68b1(0x1c2)]()},'override':[[o['IAuthzIoService'],{'useClass':f[_0x2b68b1(0x1c0)]}]]}),_0x315ded=_0x32d22e[_0x2b68b1(0x294)]();this[_0x2b68b1(0x1a9)](this[_0x2b68b1(0x21f)][_0x2b68b1(0x216)][_0x2b68b1(0x1aa)](_0x1d2a87=>{const _0x2e815e=_0x2b68b1;_0x315ded[_0x2e815e(0x205)](o[_0x2e815e(0x20c)])[_0x2e815e(0x1e9)](_0x1d2a87);})),this[_0x2b68b1(0x1a9)](this[_0x2b68b1(0x21f)][_0x2b68b1(0x1d6)]['subscribe'](_0xf8ad2d=>{const _0x1b60fa=_0x2b68b1;_0x315ded[_0x1b60fa(0x205)](o[_0x1b60fa(0x20c)])[_0x1b60fa(0x1a4)](_0xf8ad2d);})),_0x315ded[_0x2b68b1(0x205)](o[_0x2b68b1(0x1d4)])[_0x2b68b1(0x286)](this[_0x2b68b1(0x1d0)][_0x2b68b1(0x295)]()),_0x315ded[_0x2b68b1(0x205)](o[_0x2b68b1(0x1b7)])[_0x2b68b1(0x28a)](f[_0x2b68b1(0x1fc)],this[_0x2b68b1(0x1e7)][_0x2b68b1(0x25f)](f[_0x2b68b1(0x1fc)]));const _0x3d4786=this[_0x2b68b1(0x1e7)][_0x2b68b1(0x25f)](H[_0x2b68b1(0x276)]);_0x3d4786&&_0x32d22e[_0x2b68b1(0x213)](H[_0x2b68b1(0x236)],{'license':_0x3d4786['ls']}),this[_0x2b68b1(0x284)]['forEach'](([_0x305c17,_0xb6bb86])=>{const _0x56fbf8=_0x2b68b1;_0x32d22e[_0x56fbf8(0x213)](_0x305c17,_0xb6bb86);}),_0x315ded['invoke'](_0x40cc59=>{const _0x2adffb=_0x2b68b1;this[_0x2adffb(0x207)](_0x40cc59,_0xce4841);}),this[_0x2b68b1(0x266)][_0x2b68b1(0x1ca)](_0x32d22e);const _0x329a54=_0x315ded['get'](m[_0x2b68b1(0x209)]),_0x12e0fa=this[_0x2b68b1(0x21a)](_0xce4841);_0x329a54[_0x2b68b1(0x28e)](_0xce4841,_0x2a415a,_0x12e0fa);}['_initListener'](_0x436bde,_0x2b707d){const _0x231a6d=_0x19dd31,_0x335e4a=_0x436bde[_0x231a6d(0x205)](m[_0x231a6d(0x209)]);this[_0x231a6d(0x1ce)][_0x231a6d(0x24e)](_0x335e4a['status$'][_0x231a6d(0x1aa)](_0x3b93ff=>{const _0x442d77=_0x231a6d;switch(_0x3b93ff){case m[_0x442d77(0x270)][_0x442d77(0x1ff)]:this[_0x442d77(0x214)][_0x442d77(0x245)](),this['_sidebarService'][_0x442d77(0x1e8)]();break;case m['HistoryModeStatus'][_0x442d77(0x1ad)]:this[_0x442d77(0x1be)]();break;case m[_0x442d77(0x270)][_0x442d77(0x262)]:this[_0x442d77(0x1be)](),this[_0x442d77(0x1a7)][_0x442d77(0x292)]({'content':this[_0x442d77(0x1d0)]['t'](_0x442d77(0x27b)),'type':b['MessageType'][_0x442d77(0x262)],'duration':0xbb8});break;}})),this[_0x231a6d(0x1ce)]['add'](_0x335e4a[_0x231a6d(0x225)]['subscribe'](async _0x53c2c2=>{const _0x5ebbd6=_0x231a6d;_0x53c2c2&&this[_0x5ebbd6(0x1cb)][_0x5ebbd6(0x1f9)](I[_0x5ebbd6(0x1c9)]['id'],{'unitId':_0x2b707d,'revision':_0x53c2c2});}));}[_0x19dd31(0x21a)](_0x112192){const _0x571dac=_0x19dd31,_0x299ac9=this['_univerInstanceService'][_0x571dac(0x1ec)](_0x112192)['getSheets']()['map'](_0x3a922d=>_0x3a922d[_0x571dac(0x255)]()),_0x7c9300=new d[(_0x571dac(0x260))](_0x112192)['id'],_0x134fcf=_0x299ac9[_0x571dac(0x26e)](_0x487986=>new d[(_0x571dac(0x28f))](_0x112192,_0x487986)['id']),_0x26a824=_0x299ac9[_0x571dac(0x26e)](_0xbec8cb=>this[_0x571dac(0x22c)][_0x571dac(0x1e0)](_0x112192,_0xbec8cb)[_0x571dac(0x26e)](_0x149a5d=>new d[(_0x571dac(0x27c))](_0x112192,_0xbec8cb,_0x149a5d['permissionId'])['id']))[_0x571dac(0x204)](),_0x9e79bd=new d[(_0x571dac(0x24a))](_0x112192)['id'];return this[_0x571dac(0x1f8)][_0x571dac(0x26d)]([_0x7c9300,..._0x134fcf,..._0x26a824,_0x9e79bd])[_0x571dac(0x212)](_0x1f3101=>!!_0x1f3101[_0x571dac(0x1e5)]);}},exports[_0x19dd31(0x202)]=Se([g(0x0,o[_0x19dd31(0x1cd)](o[_0x19dd31(0x1d4)])),g(0x1,o[_0x19dd31(0x1ee)]),g(0x2,o[_0x19dd31(0x1b7)]),g(0x3,o[_0x19dd31(0x268)]),g(0x4,h[_0x19dd31(0x217)]),g(0x5,o[_0x19dd31(0x263)]),g(0x6,o['Inject'](d[_0x19dd31(0x1c1)])),g(0x7,o['Inject'](h[_0x19dd31(0x1bb)])),g(0x8,o[_0x19dd31(0x1cd)](h['ISidebarService'])),g(0x9,o[_0x19dd31(0x1cd)](o['ThemeService']))],exports[_0x19dd31(0x202)]);function _0xacdf(){const _0x353cdb=['setLocale','assign','UNIVER_UNKNOWN','dataset','setConfig','CHANGESET_ACK','attrs','idSuffix','triggerLoadVersions','WorksheetEditPermission','ILocalCacheService','left','show','10zBZTEE','__getInjector','getCurrentLocale','setTheme','substring','67309npfhmY','_messageService','RxDisposable','disposeWithMe','subscribe','DisposableCollection','UniverDrawingPlugin','Exited','onSteady','entries','historyListServerUrl','data','_collaborationController','defineProperty','merge','fill','UniverSheetsDrawingPlugin','IConfigService','UniverSheetsPlugin','mergeMenu','UniverDocsUIPlugin','IDialogService','_init','createElement','unMountHistoryContent','div','AuthzIoHttpService','RangeProtectionRuleModel','getLocales','top','mutations','Plugin','getCollabEntity','getSheetCommandTarget','forwardRef','RevertRevisionMutation','next','_commandService','UniverSheetsFormulaPlugin','Inject','_disposableCollection','_univerInstanceService','_localeService','BehaviorSubject','UniverSheetsConditionalFormattingPlugin','status','LocaleService','location','currentTheme$','exhaustSavingTask','width','params','UniverRenderEnginePlugin','history-icon_clip0_907_281','use','includes','_localCacheService','url(#$1','getSubunitRuleList','UniverSheetSparklineUIPlugin','getMenuHiddenObservable','./worker.js','mask','value','style','_configService','close','setDarkMode','UniverSheetsDataValidationUIPlugin','1271244QtXZHL','getUnit','clear','IUniverInstanceService','event$','Injector','_sidebarService','block','onStarting','defs','UniverSheetsFormulaUIPlugin','editHistory.panel.title','UniverRPCMainThreadPlugin','_permissionService','executeCommand','displayName','_config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Univer','15yCTdqp','Entered','useRef','session','HistoryLoaderService','getOwnPropertyDescriptor','flat','get','unsubscribe','_initListener','UNIVER_CONTAINER_ID','HistoryManagerService','toDisposable','_initUniver','ThemeService','1143457xDaOcc','RibbonStartGroup','values','history-icon','UniverDrawingUIPlugin','every','registerPlugin','_dialogService','MessageType','darkMode$','IMessageService','zIndex','trim','_checkCanRevert','height','dispose','IImageIoService','string','_themeService','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','_initContainer','getCurrentRangeDisable$','combineLatest','IMenuManagerService','revertRevision$','has','106104iYyjoh','UniverCollaborationPlugin','635616cQCsWn','pluginName','M0\x200H16V16H0z','_selectionProtectionRuleModel','6hWTRzS','_injector','type','UniverSheetSparklinePlugin','currentColor','length','CommandType','[HistoryLoaderService]:\x20Plugin\x20','some','UniverLicensePlugin','_revertErrorTimer','edit-history-loader.config','children','mountHistoryContent','symbol','white','1000','history-container','_componentManager','absolute','UniverSheetsConditionalFormattingUIPlugin','_historyManagerService','getElementById','univerContainerId','closeAll','UniverDataValidationPlugin','CollaborationStatus','UniverSheetsHyperLinkUIPlugin','443518OICEYX','WorkbookRecoverHistoryPermission','univer-container','UniverSheetsDataValidationPlugin','UniverFormulaEnginePlugin','add','replace','HistoryIcon','\x20has\x20been\x20registered.','xlink:href','menu','MenuItemType','getSheetId','display','SYNCED','56022aEiTix','editHistory.panel.revertFailed','9qMrYpF','reload','univer-history-container','eventID','UniverInstanceType','getConfig','WorkbookEditablePermission','defIds','Error','IPermissionService','BUTTON','100%','_historyUniver$','univer.operation.toggle-edit-history','ICommandService','1em','UniverEditHistoryViewerPlugin','UniverSheetsFilterUIPlugin','UniverSheetsUIPlugin','composePermission','map','UniverEditHistoryLoaderPlugin','HistoryModeStatus','UNIVER_SHEET','_initPlugins','state$','tag','0\x200\x2016\x2016','LS_CONFIG_KEY','from','_menuManagerService','colorChannel1','WorkbookViewHistoryPermission','editHistory.panel.listFetchError','RangeProtectionPermissionEditPoint','getAllPlugins','forEach','asObservable','toString','current','historyUniver','appendChild','_pluginMap','path'];_0xacdf=function(){return _0x353cdb;};return _0xacdf();}const M={'id':_0x19dd31(0x267),'type':o[_0x19dd31(0x233)]['OPERATION'],'handler':_0x1eb18a=>{const _0x5b472b=_0x19dd31,_0x5f47f2=_0x1eb18a[_0x5b472b(0x205)](exports[_0x5b472b(0x202)]),_0x4fcab3=_0x1eb18a[_0x5b472b(0x205)](o[_0x5b472b(0x1ee)]),{unitId:_0x285c46}=d[_0x5b472b(0x1c7)](_0x4fcab3)||{};return _0x285c46?(_0x5f47f2[_0x5b472b(0x23a)](_0x285c46),!0x0):!0x1;}};function ye(_0xac4d1c){const _0x3b8450=_0x19dd31;return{'id':M['id'],'type':h[_0x3b8450(0x254)][_0x3b8450(0x264)],'icon':_0x3b8450(0x250),'tooltip':_0x3b8450(0x1f6),'hidden$':h[_0x3b8450(0x1e2)](_0xac4d1c,o[_0x3b8450(0x25e)][_0x3b8450(0x271)]),'disabled$':w[_0x3b8450(0x222)](_0xac4d1c,{'workbookTypes':[d[_0x3b8450(0x260)],d[_0x3b8450(0x27a)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x4b46(_0x5f3de2,_0x38b0e2){const _0xacdf90=_0xacdf();return _0x4b46=function(_0x4b4634,_0x587c1b){_0x4b4634=_0x4b4634-0x1a4;let _0x2216ac=_0xacdf90[_0x4b4634];return _0x2216ac;},_0x4b46(_0x5f3de2,_0x38b0e2);}const fe={[h[_0x19dd31(0x20e)]['OTHERS']]:{[M['id']]:{'order':0.2,'menuItemFactory':ye}}};var pe=Object['getOwnPropertyDescriptor'],Ie=(_0x211e50,_0x56f7ad,_0x594347,_0x1b65bb)=>{const _0x5f1093=_0x19dd31;for(var _0x539c8d=_0x1b65bb>0x1?void 0x0:_0x1b65bb?pe(_0x56f7ad,_0x594347):_0x56f7ad,_0x3c2f1e=_0x211e50[_0x5f1093(0x232)]-0x1,_0x14a321;_0x3c2f1e>=0x0;_0x3c2f1e--)(_0x14a321=_0x211e50[_0x3c2f1e])&&(_0x539c8d=_0x14a321(_0x539c8d)||_0x539c8d);return _0x539c8d;},S=(_0x428609,_0xa34257)=>(_0x4475a0,_0x176cbb)=>_0xa34257(_0x4475a0,_0x176cbb,_0x428609);let E=class extends o[_0x19dd31(0x1a8)]{constructor(_0x263b97,_0x30589e,_0x45b591,_0x3b0944,_0x29a868,_0x25e07f,_0x6b5721,_0x9ae6ca){const _0x7955d2=_0x19dd31;super(),_(this,'_revertErrorTimer',null),(this[_0x7955d2(0x1cb)]=_0x263b97,this[_0x7955d2(0x278)]=_0x30589e,this['_componentManager']=_0x45b591,this[_0x7955d2(0x242)]=_0x3b0944,this[_0x7955d2(0x1d0)]=_0x29a868,this[_0x7955d2(0x1a7)]=_0x25e07f,this[_0x7955d2(0x1b2)]=_0x6b5721,this[_0x7955d2(0x1de)]=_0x9ae6ca,this[_0x7955d2(0x1bc)]());}[_0x19dd31(0x1bc)](){const _0x4276b1=_0x19dd31;[M]['forEach'](_0xcd91ee=>this[_0x4276b1(0x1a9)](o[_0x4276b1(0x20a)](this[_0x4276b1(0x1cb)]['registerCommand'](_0xcd91ee)))),this[_0x4276b1(0x1a9)](this[_0x4276b1(0x23f)]['register'](_0x4276b1(0x250),q)),this[_0x4276b1(0x278)][_0x4276b1(0x1b9)](fe),this['disposeWithMe'](this[_0x4276b1(0x1cb)]['onCommandExecuted'](_0x32f770=>{const _0x2735c7=_0x4276b1;if(_0x32f770['id']===I[_0x2735c7(0x1c9)]['id']){this[_0x2735c7(0x1a7)][_0x2735c7(0x292)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':b[_0x2735c7(0x215)]['Loading'],'duration':0x1388});const {unitId:_0x4f94e1}=_0x32f770[_0x2735c7(0x1d9)],_0x2fcede=this[_0x2735c7(0x1b2)][_0x2735c7(0x1c6)](_0x4f94e1),_0x4bd959=T[_0x2735c7(0x223)]([_0x2fcede[_0x2735c7(0x201)][_0x2735c7(0x1ef)],_0x2fcede[_0x2735c7(0x273)]])[_0x2735c7(0x1aa)](async([_0x1aa274,_0x37902e])=>{const _0x38f08b=_0x2735c7;var _0x3a9c56;_0x1aa274[_0x38f08b(0x25d)]===I['CollaborationEvent'][_0x38f08b(0x28b)]&&(_0x37902e==null?void 0x0:_0x37902e[_0x38f08b(0x1d3)])===f[_0x38f08b(0x247)][_0x38f08b(0x257)]&&_0x1aa274[_0x38f08b(0x1b1)][_0x38f08b(0x1c4)][_0x38f08b(0x235)](_0xdc37ea=>_0xdc37ea['id']===I[_0x38f08b(0x1c9)]['id'])&&(this[_0x38f08b(0x242)][_0x38f08b(0x1be)](),_0x4bd959[_0x38f08b(0x206)](),this[_0x38f08b(0x237)]&&clearTimeout(this[_0x38f08b(0x237)]),await((_0x3a9c56=this['_localCacheService'])==null?void 0x0:_0x3a9c56[_0x38f08b(0x1d7)]()),setTimeout(()=>window[_0x38f08b(0x1d5)][_0x38f08b(0x25b)]()));});this[_0x2735c7(0x237)]=setTimeout(()=>{const _0x2c9d67=_0x2735c7;_0x4bd959[_0x2c9d67(0x206)](),this[_0x2c9d67(0x1a7)][_0x2c9d67(0x292)]({'content':this[_0x2c9d67(0x1d0)]['t'](_0x2c9d67(0x259)),'type':b['MessageType'][_0x2c9d67(0x262)],'duration':0xbb8});},0x1388);}}));}};E=Ie([S(0x0,o['ICommandService']),S(0x1,h[_0x19dd31(0x224)]),S(0x2,o[_0x19dd31(0x1cd)](h['ComponentManager'])),S(0x3,o[_0x19dd31(0x1cd)](exports[_0x19dd31(0x202)])),S(0x4,o[_0x19dd31(0x1cd)](o['LocaleService'])),S(0x5,h[_0x19dd31(0x217)]),S(0x6,o[_0x19dd31(0x1cd)](f['CollaborationController'])),S(0x7,f[_0x19dd31(0x290)])],E);var Ce=Object[_0x19dd31(0x203)],Ue=(_0x30fd13,_0x5c65eb,_0x30b0c8,_0x42b4d1)=>{const _0x2026b0=_0x19dd31;for(var _0xb69e74=_0x42b4d1>0x1?void 0x0:_0x42b4d1?Ce(_0x5c65eb,_0x30b0c8):_0x5c65eb,_0x489815=_0x30fd13[_0x2026b0(0x232)]-0x1,_0x203ab1;_0x489815>=0x0;_0x489815--)(_0x203ab1=_0x30fd13[_0x489815])&&(_0xb69e74=_0x203ab1(_0xb69e74)||_0xb69e74);return _0xb69e74;},N=(_0x330fb5,_0x45da53)=>(_0x389e48,_0x2922c0)=>_0x45da53(_0x389e48,_0x2922c0,_0x330fb5);const Ee='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var C;exports['UniverEditHistoryLoaderPlugin']=(C=class extends o[_0x19dd31(0x1c5)]{constructor(_0x2dc985=R,_0x528eea,_0x16a04e){const _0x583a6a=_0x19dd31;super(),this[_0x583a6a(0x1fb)]=_0x2dc985,this[_0x583a6a(0x22e)]=_0x528eea,this[_0x583a6a(0x1e7)]=_0x16a04e;const {menu:_0x26138a,..._0x2fe6c6}=o[_0x583a6a(0x1b4)]({},R,this[_0x583a6a(0x1fb)]);_0x26138a&&this[_0x583a6a(0x1e7)]['setConfig'](_0x583a6a(0x253),_0x26138a,{'merge':!0x0}),this['_configService'][_0x583a6a(0x28a)](O,_0x2fe6c6),this['_config']['univerContainerId']&&this[_0x583a6a(0x1e7)][_0x583a6a(0x28a)](P,this['_config'][_0x583a6a(0x244)]);}[_0x19dd31(0x1f3)](){const _0x3ed2db=_0x19dd31;[[exports[_0x3ed2db(0x202)]],[E]][_0x3ed2db(0x27e)](_0x2b07ad=>this[_0x3ed2db(0x22e)]['add'](_0x2b07ad));}[_0x19dd31(0x1ae)](){const _0x4295a5=_0x19dd31;this[_0x4295a5(0x22e)][_0x4295a5(0x205)](E);}},_(C,_0x19dd31(0x22f),o[_0x19dd31(0x25e)][_0x19dd31(0x288)]),_(C,_0x19dd31(0x22a),Ee),C),exports['UniverEditHistoryLoaderPlugin']=Ue([N(0x1,o[_0x19dd31(0x1cd)](o[_0x19dd31(0x1f0)])),N(0x2,o['IConfigService'])],exports[_0x19dd31(0x26f)]),exports['UNIVER_CONTAINER_ID_KEY']=P,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
1
+ 'use strict';const _0x26a93c=_0x1cf0;(function(_0x2d3366,_0x55c325){const _0x48870e=_0x1cf0,_0x3596c4=_0x2d3366();while(!![]){try{const _0x35552b=parseInt(_0x48870e(0x206))/0x1*(parseInt(_0x48870e(0x18c))/0x2)+-parseInt(_0x48870e(0x153))/0x3+-parseInt(_0x48870e(0x1aa))/0x4+-parseInt(_0x48870e(0x1b9))/0x5*(parseInt(_0x48870e(0x13f))/0x6)+parseInt(_0x48870e(0x1ea))/0x7+parseInt(_0x48870e(0x1d7))/0x8+parseInt(_0x48870e(0x138))/0x9*(parseInt(_0x48870e(0x1cf))/0xa);if(_0x35552b===_0x55c325)break;else _0x3596c4['push'](_0x3596c4['shift']());}catch(_0x4972ac){_0x3596c4['push'](_0x3596c4['shift']());}}}(_0x43c9,0xef8f9));var j=Object['defineProperty'],F=(_0x493178,_0x541645,_0x4e1a35)=>_0x541645 in _0x493178?j(_0x493178,_0x541645,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e1a35}):_0x493178[_0x541645]=_0x4e1a35,_=(_0x2c9333,_0x4445a9,_0x2cdfd7)=>F(_0x2c9333,typeof _0x4445a9!=_0x26a93c(0x1d0)?_0x4445a9+'':_0x4445a9,_0x2cdfd7);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x26a93c(0x209)});const o=require('@univerjs/core'),I=require('@univerjs-pro/collaboration'),f=require('@univerjs-pro/collaboration-client'),b=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),T=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),H=require('@univerjs-pro/license'),x=require('@univerjs-pro/sheets-pivot'),A=require('@univerjs-pro/sheets-sparkline'),V=require('@univerjs-pro/sheets-sparkline-ui'),G=require('@univerjs/data-validation'),W=require('@univerjs/docs'),Y=require('@univerjs/docs-ui'),L=require('@univerjs/drawing'),B=require('@univerjs/drawing-ui'),K=require('@univerjs/engine-formula'),z=require('@univerjs/engine-render'),Z=require('@univerjs/network'),J=require('@univerjs/rpc'),Q=require('@univerjs/sheets-conditional-formatting'),X=require('@univerjs/sheets-conditional-formatting-ui'),ee=require('@univerjs/sheets-data-validation'),ie=require('@univerjs/sheets-data-validation-ui'),te=require('@univerjs/sheets-drawing'),re=require('@univerjs/sheets-drawing-ui'),ne=require('@univerjs/sheets-filter'),se=require('@univerjs/sheets-filter-ui'),oe=require('@univerjs/sheets-formula'),ae=require('@univerjs/sheets-formula-ui'),ce=require('@univerjs/sheets-hyper-link'),le=require('@univerjs/sheets-hyper-link-ui'),ue=require('@univerjs/sheets-numfmt'),w=require('@univerjs/sheets-ui'),O=_0x26a93c(0x175),R={};function _0x1cf0(_0x1aae9a,_0x5ca799){const _0x43c93f=_0x43c9();return _0x1cf0=function(_0x1cf05e,_0xf69809){_0x1cf05e=_0x1cf05e-0x137;let _0x1bd024=_0x43c93f[_0x1cf05e];return _0x1bd024;},_0x1cf0(_0x1aae9a,_0x5ca799);}function k({ref:_0x2f6e39,..._0x144322}){const _0x272849=_0x26a93c,{icon:_0x145164,id:_0x1f8cdc,className:_0x53af74,extend:_0x5571da,..._0x46425d}=_0x144322,_0x4970fb=(_0x272849(0x1f4)+_0x1f8cdc+'\x20'+(_0x53af74||''))[_0x272849(0x207)](),_0xfb1008=U[_0x272849(0x13a)]('_'+ve());return D(_0x145164,''+_0x1f8cdc,{'defIds':_0x145164[_0x272849(0x217)],'idSuffix':_0xfb1008[_0x272849(0x192)]},{'ref':_0x2f6e39,'className':_0x4970fb,..._0x46425d},_0x5571da);}function D(_0x4d017d,_0x5dbb16,_0x5ec890,_0x3bc753,_0x5d9e44){const _0x3e07ea=_0x26a93c;return U['createElement'](_0x4d017d[_0x3e07ea(0x1fa)],{'key':_0x5dbb16,...he(_0x4d017d,_0x5ec890,_0x5d9e44),..._0x3bc753},(ge(_0x4d017d,_0x5ec890)[_0x3e07ea(0x1dc)]||[])['map']((_0xe91176,_0x5bc5bc)=>D(_0xe91176,_0x5dbb16+'-'+_0x4d017d[_0x3e07ea(0x1fa)]+'-'+_0x5bc5bc,_0x5ec890,void 0x0,_0x5d9e44)));}function he(_0x1f980a,_0x298e17,_0x2f956c){const _0x1224bc=_0x26a93c,_0x1f7a0f={..._0x1f980a['attrs']};_0x2f956c!=null&&_0x2f956c[_0x1224bc(0x193)]&&_0x1f7a0f['fill']===_0x1224bc(0x193)&&(_0x1f7a0f[_0x1224bc(0x16d)]=_0x2f956c['colorChannel1']),_0x1f980a['tag']===_0x1224bc(0x195)&&_0x1f7a0f['id']&&(_0x1f7a0f['id']=_0x1f7a0f['id']+_0x298e17[_0x1224bc(0x187)]),Object[_0x1224bc(0x161)](_0x1f7a0f)[_0x1224bc(0x185)](([_0x58f298,_0x2eea69])=>{const _0xd723c5=_0x1224bc;_0x58f298===_0xd723c5(0x195)&&typeof _0x2eea69==_0xd723c5(0x194)&&(_0x1f7a0f[_0x58f298]=_0x2eea69[_0xd723c5(0x196)](/url\(#(.*)\)/,_0xd723c5(0x1ab)+_0x298e17[_0xd723c5(0x187)]+')'));});const {defIds:_0x145c13}=_0x298e17;return!_0x145c13||_0x145c13[_0x1224bc(0x1cc)]===0x0||(_0x1f980a['tag']===_0x1224bc(0x208)&&_0x1f7a0f[_0x1224bc(0x189)]&&(_0x1f7a0f[_0x1224bc(0x189)]=_0x1f7a0f[_0x1224bc(0x189)]+_0x298e17[_0x1224bc(0x187)]),Object[_0x1224bc(0x161)](_0x1f7a0f)['forEach'](([_0x57c0a7,_0x6c1c67])=>{const _0x187e6f=_0x1224bc;typeof _0x6c1c67==_0x187e6f(0x194)&&(_0x1f7a0f[_0x57c0a7]=_0x6c1c67[_0x187e6f(0x196)](/url\(#(.*)\)/,_0x187e6f(0x1ab)+_0x298e17[_0x187e6f(0x187)]+')'));})),_0x1f7a0f;}function ge(_0x3c190c,_0x4ad28e){const _0x408358=_0x26a93c;var _0x1807c1;const {defIds:_0x547f1b}=_0x4ad28e;return!_0x547f1b||_0x547f1b['length']===0x0?_0x3c190c:_0x3c190c[_0x408358(0x1fa)]===_0x408358(0x1e1)&&((_0x1807c1=_0x3c190c[_0x408358(0x1dc)])!=null&&_0x1807c1[_0x408358(0x1cc)])?{..._0x3c190c,'children':_0x3c190c[_0x408358(0x1dc)][_0x408358(0x1ef)](_0x2f620a=>typeof _0x2f620a[_0x408358(0x1ee)]['id']==_0x408358(0x194)&&_0x547f1b&&_0x547f1b[_0x408358(0x162)](_0x2f620a[_0x408358(0x1ee)]['id'])?{..._0x2f620a,'attrs':{..._0x2f620a[_0x408358(0x1ee)],'id':_0x2f620a['attrs']['id']+_0x4ad28e[_0x408358(0x187)]}}:_0x2f620a)}:_0x3c190c;}function ve(){const _0x1b3c5e=_0x26a93c;return Math[_0x1b3c5e(0x203)]()[_0x1b3c5e(0x154)](0x24)[_0x1b3c5e(0x168)](0x2,0x8);}k[_0x26a93c(0x1f7)]=_0x26a93c(0x1a4);const de={'tag':_0x26a93c(0x1fb),'attrs':{'xmlns':_0x26a93c(0x200),'fill':_0x26a93c(0x13e),'viewBox':_0x26a93c(0x1ba),'width':_0x26a93c(0x1ec),'height':_0x26a93c(0x1ec)},'children':[{'tag':'g','attrs':{'fill':_0x26a93c(0x1bb),'clipPath':_0x26a93c(0x147)},'children':[{'tag':_0x26a93c(0x158),'attrs':{'d':_0x26a93c(0x1da)}},{'tag':_0x26a93c(0x158),'attrs':{'d':_0x26a93c(0x18a)}}]},{'tag':_0x26a93c(0x1e1),'attrs':{},'children':[{'tag':_0x26a93c(0x1a3),'attrs':{'id':_0x26a93c(0x178)},'children':[{'tag':_0x26a93c(0x158),'attrs':{'fill':_0x26a93c(0x1b6),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},q=U[_0x26a93c(0x1ca)](function(_0x4085b4,_0x40e4a2){const _0x5886ee=_0x26a93c;return U[_0x5886ee(0x165)](k,Object[_0x5886ee(0x197)]({},_0x4085b4,{'id':_0x5886ee(0x1f9),'ref':_0x40e4a2,'icon':de}));});q['displayName']=_0x26a93c(0x17a);var _e=Object[_0x26a93c(0x1e7)],Se=(_0x3991fb,_0x3b2f1e,_0x4b5991,_0xe70759)=>{const _0x490f4a=_0x26a93c;for(var _0x8cc120=_0xe70759>0x1?void 0x0:_0xe70759?_e(_0x3b2f1e,_0x4b5991):_0x3b2f1e,_0x47a970=_0x3991fb[_0x490f4a(0x1cc)]-0x1,_0x361895;_0x47a970>=0x0;_0x47a970--)(_0x361895=_0x3991fb[_0x47a970])&&(_0x8cc120=_0x361895(_0x8cc120)||_0x8cc120);return _0x8cc120;},g=(_0x2a7533,_0x558f7d)=>(_0x3404d0,_0x130c8b)=>_0x558f7d(_0x3404d0,_0x130c8b,_0x2a7533);const me='univer-container',P=_0x26a93c(0x19b),y=_0x26a93c(0x139);exports[_0x26a93c(0x14c)]=class extends o['Disposable']{constructor(_0x29c9da,_0x12b340,_0x4acfc3,_0x40aa2d,_0xb0ace,_0x4a7ab1,_0x470981,_0x187f43,_0x463ffb,_0x40b639){const _0x54446e=_0x26a93c;super(),_(this,_0x54446e(0x172),new T[(_0x54446e(0x214))](null)),_(this,'historyUniver$',this[_0x54446e(0x172)][_0x54446e(0x1f2)]()),_(this,_0x54446e(0x1f0),new o[(_0x54446e(0x167))]()),_(this,'_pluginMap',new Map()),(this[_0x54446e(0x14f)]=_0x29c9da,this[_0x54446e(0x164)]=_0x12b340,this['_configService']=_0x4acfc3,this[_0x54446e(0x183)]=_0x40aa2d,this[_0x54446e(0x174)]=_0xb0ace,this[_0x54446e(0x18f)]=_0x4a7ab1,this[_0x54446e(0x1c2)]=_0x470981,this['_dialogService']=_0x187f43,this[_0x54446e(0x212)]=_0x463ffb,this[_0x54446e(0x1ad)]=_0x40b639,this[_0x54446e(0x13d)]());}get[_0x26a93c(0x1d5)](){const _0x4a53de=_0x26a93c;return this['_historyUniver$'][_0x4a53de(0x205)];}[_0x26a93c(0x13d)](){const _0x4e4d76=_0x26a93c;this[_0x4e4d76(0x19e)](),this[_0x4e4d76(0x148)]();}['_initContainer'](){const _0x559f3e=_0x26a93c;var _0x4ebe7d;const _0x1183bb=(_0x4ebe7d=this[_0x559f3e(0x13c)][_0x559f3e(0x14e)](P))!=null?_0x4ebe7d:me,_0x475aa6=document[_0x559f3e(0x219)](_0x1183bb);if(!_0x475aa6)return;const _0x215522=document[_0x559f3e(0x165)](_0x559f3e(0x20f));_0x215522['id']=y,_0x215522[_0x559f3e(0x17c)][_0x559f3e(0x20c)]=_0x559f3e(0x142),_0x215522[_0x559f3e(0x1a1)][_0x559f3e(0x15b)]=_0x559f3e(0x1c0),_0x215522['style']['top']='0',_0x215522['style'][_0x559f3e(0x19f)]='0',_0x215522['style']['width']=_0x559f3e(0x141),_0x215522[_0x559f3e(0x1a1)][_0x559f3e(0x1fe)]=_0x559f3e(0x141),_0x215522[_0x559f3e(0x1a1)]['zIndex']='1000',_0x215522['style'][_0x559f3e(0x1d6)]=_0x559f3e(0x13e),_0x475aa6['appendChild'](_0x215522);}[_0x26a93c(0x148)](){const _0x1b7fc1=_0x26a93c;var _0x338889;[[z['UniverRenderEnginePlugin']],[h[_0x1b7fc1(0x1e3)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x1b7fc1(0x1cb)],null]]}],[Z[_0x1b7fc1(0x1bc)]],[L[_0x1b7fc1(0x220)],{'override':[[L[_0x1b7fc1(0x16e)],null]]}],[W[_0x1b7fc1(0x1fd)],{'hasScroll':!0x1}],[Y[_0x1b7fc1(0x169)]],[ue['UniverSheetsNumfmtPlugin']],[d[_0x1b7fc1(0x1a5)],{'notExecuteFormula':!0x0}],[w[_0x1b7fc1(0x144)]],[oe[_0x1b7fc1(0x15f)]],[ae[_0x1b7fc1(0x151)]],[I[_0x1b7fc1(0x213)]],[ne['UniverSheetsFilterPlugin']],[se[_0x1b7fc1(0x1db)]],[Q['UniverSheetsConditionalFormattingPlugin']],[X[_0x1b7fc1(0x17f)]],[ce[_0x1b7fc1(0x15a)]],[le[_0x1b7fc1(0x1a6)]],[G['UniverDataValidationPlugin']],[ee['UniverSheetsDataValidationPlugin']],[ie['UniverSheetsDataValidationUIPlugin']],[K[_0x1b7fc1(0x19d)],{'notExecuteFormula':!0x0}],[J[_0x1b7fc1(0x1c4)],{'workerURL':'./worker.js'}],[B[_0x1b7fc1(0x1b0)]],[te[_0x1b7fc1(0x218)]],[re[_0x1b7fc1(0x1c5)]],[A[_0x1b7fc1(0x143)]],[V[_0x1b7fc1(0x215)]],[x[_0x1b7fc1(0x1bf)],{'notExecuteFormula':!0x0}],[m['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x338889=this[_0x1b7fc1(0x13c)][_0x1b7fc1(0x14e)](O))==null?void 0x0:_0x338889[_0x1b7fc1(0x16a)]}]][_0x1b7fc1(0x185)](([_0x2fd103,_0x216876])=>this[_0x1b7fc1(0x1a7)](_0x2fd103,_0x216876));}[_0x26a93c(0x1d9)](){const _0x195e86=_0x26a93c;super[_0x195e86(0x1d9)](),this[_0x195e86(0x21b)](),this[_0x195e86(0x1ed)][_0x195e86(0x1f8)]();}['registerPlugin'](_0x3281fc,_0x38d224,_0x1044f3){const _0x5a5afc=_0x26a93c;if(this['_pluginMap']['has'](_0x3281fc[_0x5a5afc(0x14a)])&&!_0x1044f3)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x3281fc[_0x5a5afc(0x14a)]+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x5a5afc(0x1ae)](_0x3281fc[_0x5a5afc(0x14a)],[_0x3281fc,_0x38d224]);}[_0x26a93c(0x1a0)](){const _0x2ae4f6=_0x26a93c;return Array[_0x2ae4f6(0x14d)](this[_0x2ae4f6(0x1ed)]['values']());}[_0x26a93c(0x199)](_0x5c2817){const _0x1f1667=_0x26a93c,_0x5866db=document[_0x1f1667(0x219)](y);_0x5866db&&(_0x5866db['style'][_0x1f1667(0x1d6)]='block',this[_0x1f1667(0x191)](_0x5c2817,y));}[_0x26a93c(0x21b)](){const _0x4c0678=_0x26a93c;var _0x1983f1;this[_0x4c0678(0x1f0)][_0x4c0678(0x1d9)](),(_0x1983f1=this[_0x4c0678(0x1d5)])==null||_0x1983f1['dispose'](),this['_historyUniver$'][_0x4c0678(0x20a)](null);const _0x5ee5fa=document[_0x4c0678(0x219)](y);_0x5ee5fa&&(_0x5ee5fa['style'][_0x4c0678(0x1d6)]=_0x4c0678(0x13e));}[_0x26a93c(0x191)](_0x1105f3,_0x1967f1){const _0x32cdc0=_0x26a93c;if(this[_0x32cdc0(0x1d5)])return;const _0x1d7f7b=new o[(_0x32cdc0(0x1b4))]({'locales':{[this[_0x32cdc0(0x14f)][_0x32cdc0(0x170)]()]:this[_0x32cdc0(0x14f)][_0x32cdc0(0x1d8)]()},'override':[[o[_0x32cdc0(0x156)],{'useClass':f[_0x32cdc0(0x1e2)]}]]}),_0x34e1ea=_0x1d7f7b['__getInjector']();this[_0x32cdc0(0x166)](this[_0x32cdc0(0x1ad)][_0x32cdc0(0x159)]['subscribe'](_0x5e1f63=>{const _0x394c39=_0x32cdc0;_0x34e1ea[_0x394c39(0x176)](o['ThemeService'])['setDarkMode'](_0x5e1f63);})),this[_0x32cdc0(0x166)](this[_0x32cdc0(0x1ad)][_0x32cdc0(0x15e)][_0x32cdc0(0x152)](_0x495e2f=>{const _0x9d8cd0=_0x32cdc0;_0x34e1ea[_0x9d8cd0(0x176)](o[_0x9d8cd0(0x201)])[_0x9d8cd0(0x182)](_0x495e2f);})),_0x34e1ea[_0x32cdc0(0x176)](o[_0x32cdc0(0x150)])['setLocale'](this['_localeService'][_0x32cdc0(0x170)]()),_0x34e1ea[_0x32cdc0(0x176)](o['IConfigService'])[_0x32cdc0(0x17b)](f['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this['_configService'][_0x32cdc0(0x14e)](f[_0x32cdc0(0x1b1)]));const _0x2feb76=this[_0x32cdc0(0x13c)][_0x32cdc0(0x14e)](H[_0x32cdc0(0x160)]);_0x2feb76&&_0x1d7f7b[_0x32cdc0(0x1a7)](H['UniverLicensePlugin'],{'license':_0x2feb76['ls']}),this[_0x32cdc0(0x1ed)][_0x32cdc0(0x185)](([_0x452b37,_0x27a485])=>{_0x1d7f7b['registerPlugin'](_0x452b37,_0x27a485);}),_0x34e1ea['invoke'](_0x2a6f72=>{const _0x12d1b6=_0x32cdc0;this[_0x12d1b6(0x21f)](_0x2a6f72,_0x1105f3);}),this[_0x32cdc0(0x172)][_0x32cdc0(0x20a)](_0x1d7f7b);const _0x2ff90e=_0x34e1ea[_0x32cdc0(0x176)](m[_0x32cdc0(0x202)]),_0xdbda3a=this[_0x32cdc0(0x1e0)](_0x1105f3);_0x2ff90e[_0x32cdc0(0x1de)](_0x1105f3,_0x1967f1,_0xdbda3a);}[_0x26a93c(0x21f)](_0x57bd12,_0x42045c){const _0x28df54=_0x26a93c,_0xf20c1d=_0x57bd12[_0x28df54(0x176)](m[_0x28df54(0x202)]);this[_0x28df54(0x1f0)][_0x28df54(0x1d3)](_0xf20c1d[_0x28df54(0x190)][_0x28df54(0x152)](_0x4c30d8=>{const _0x464af3=_0x28df54;switch(_0x4c30d8){case m['HistoryModeStatus']['Entered']:this[_0x464af3(0x1f6)][_0x464af3(0x1d4)](),this[_0x464af3(0x212)][_0x464af3(0x21d)]();break;case m[_0x464af3(0x21a)][_0x464af3(0x1ce)]:this[_0x464af3(0x21b)]();break;case m[_0x464af3(0x21a)][_0x464af3(0x204)]:this[_0x464af3(0x21b)](),this[_0x464af3(0x174)]['show']({'content':this['_localeService']['t'](_0x464af3(0x1e6)),'type':b[_0x464af3(0x1b3)][_0x464af3(0x204)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x28df54(0x1d3)](_0xf20c1d[_0x28df54(0x1f1)][_0x28df54(0x152)](async _0xb0c895=>{const _0xb0a9b9=_0x28df54;_0xb0c895&&this[_0xb0a9b9(0x183)]['executeCommand'](I[_0xb0a9b9(0x1df)]['id'],{'unitId':_0x42045c,'revision':_0xb0c895});}));}[_0x26a93c(0x1e0)](_0x2cf1de){const _0x54e35c=_0x26a93c,_0x5659e8=this[_0x54e35c(0x164)][_0x54e35c(0x149)](_0x2cf1de)['getSheets']()['map'](_0xc85176=>_0xc85176[_0x54e35c(0x1e5)]()),_0x513fe2=new d[(_0x54e35c(0x1a8))](_0x2cf1de)['id'],_0x28a4ef=_0x5659e8[_0x54e35c(0x1ef)](_0x1df2bf=>new d[(_0x54e35c(0x1b7))](_0x2cf1de,_0x1df2bf)['id']),_0x255f79=_0x5659e8[_0x54e35c(0x1ef)](_0x39fe86=>this[_0x54e35c(0x1c2)][_0x54e35c(0x171)](_0x2cf1de,_0x39fe86)[_0x54e35c(0x1ef)](_0x213419=>new d[(_0x54e35c(0x1b2))](_0x2cf1de,_0x39fe86,_0x213419[_0x54e35c(0x1d2)])['id']))[_0x54e35c(0x180)](),_0x5b9616=new d['WorkbookRecoverHistoryPermission'](_0x2cf1de)['id'];return this[_0x54e35c(0x18f)]['composePermission']([_0x513fe2,..._0x28a4ef,..._0x255f79,_0x5b9616])[_0x54e35c(0x1ff)](_0x40d980=>!!_0x40d980['value']);}},exports[_0x26a93c(0x14c)]=Se([g(0x0,o['Inject'](o[_0x26a93c(0x150)])),g(0x1,o['IUniverInstanceService']),g(0x2,o[_0x26a93c(0x179)]),g(0x3,o[_0x26a93c(0x1dd)]),g(0x4,h[_0x26a93c(0x184)]),g(0x5,o['IPermissionService']),g(0x6,o[_0x26a93c(0x1d1)](d['RangeProtectionRuleModel'])),g(0x7,o[_0x26a93c(0x1d1)](h[_0x26a93c(0x1cb)])),g(0x8,o[_0x26a93c(0x1d1)](h[_0x26a93c(0x16b)])),g(0x9,o[_0x26a93c(0x1d1)](o[_0x26a93c(0x201)]))],exports[_0x26a93c(0x14c)]);const M={'id':'univer.operation.toggle-edit-history','type':o[_0x26a93c(0x157)][_0x26a93c(0x21e)],'handler':_0x8ecc93=>{const _0x547150=_0x26a93c,_0x513fee=_0x8ecc93['get'](exports[_0x547150(0x14c)]),_0x2c5f6d=_0x8ecc93[_0x547150(0x176)](o[_0x547150(0x1b5)]),{unitId:_0x3750db}=d[_0x547150(0x1cd)](_0x2c5f6d)||{};return _0x3750db?(_0x513fee[_0x547150(0x199)](_0x3750db),!0x0):!0x1;}};function ye(_0x5d9394){const _0x1177ae=_0x26a93c;return{'id':M['id'],'type':h[_0x1177ae(0x210)]['BUTTON'],'icon':_0x1177ae(0x17a),'tooltip':_0x1177ae(0x17d),'hidden$':h[_0x1177ae(0x173)](_0x5d9394,o['UniverInstanceType']['UNIVER_SHEET']),'disabled$':w[_0x1177ae(0x140)](_0x5d9394,{'workbookTypes':[d['WorkbookEditablePermission'],d[_0x1177ae(0x19c)]],'worksheetTypes':[],'rangeTypes':[]})};}const fe={[h[_0x26a93c(0x1f3)][_0x26a93c(0x13b)]]:{[M['id']]:{'order':0.2,'menuItemFactory':ye}}};var pe=Object['getOwnPropertyDescriptor'],Ie=(_0x1a82ff,_0x23f9ed,_0x3cea61,_0x1718b1)=>{const _0x58783c=_0x26a93c;for(var _0x44a5b3=_0x1718b1>0x1?void 0x0:_0x1718b1?pe(_0x23f9ed,_0x3cea61):_0x23f9ed,_0x3abd24=_0x1a82ff[_0x58783c(0x1cc)]-0x1,_0x383101;_0x3abd24>=0x0;_0x3abd24--)(_0x383101=_0x1a82ff[_0x3abd24])&&(_0x44a5b3=_0x383101(_0x44a5b3)||_0x44a5b3);return _0x44a5b3;},S=(_0x3b8f20,_0x178f93)=>(_0x14b5cc,_0x9372e6)=>_0x178f93(_0x14b5cc,_0x9372e6,_0x3b8f20);function _0x43c9(){const _0x25e453=['position','toDisposable','_historyManagerService','currentTheme$','UniverSheetsFormulaPlugin','LS_CONFIG_KEY','entries','includes','exhaustSavingTask','_univerInstanceService','createElement','disposeWithMe','DisposableCollection','substring','UniverDocsUIPlugin','historyListServerUrl','ISidebarService','some','fill','IImageIoService','UNIVER_HISTORY_CONTAINER_ID','getCurrentLocale','getSubunitRuleList','_historyUniver$','getMenuHiddenObservable','_messageService','edit-history-loader.config','get','CollaborationEvent','history-icon_clip0_907_281','IConfigService','HistoryIcon','setConfig','dataset','editHistory.panel.title','data','UniverSheetsConditionalFormattingUIPlugin','flat','params','setTheme','_commandService','IMessageService','forEach','type','idSuffix','_revertErrorTimer','xlink:href','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','unsubscribe','8aswiEA','merge','_collaborationController','_permissionService','status$','_initUniver','current','colorChannel1','string','mask','replace','assign','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','mountHistoryContent','combineLatest','UNIVER_CONTAINER_ID','WorkbookViewHistoryPermission','UniverFormulaEnginePlugin','_initContainer','left','getAllPlugins','style','_localCacheService','clipPath','UniverIcon','UniverSheetsPlugin','UniverSheetsHyperLinkUIPlugin','registerPlugin','WorkbookEditablePermission','_config','7778208dXKvQc','url(#$1','UniverEditHistoryLoaderPlugin','_themeService','set','onSteady','UniverDrawingUIPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RangeProtectionPermissionEditPoint','MessageType','Univer','IUniverInstanceService','white','WorksheetEditPermission','reload','5fDLrNl','0\x200\x2016\x2016','currentColor','UniverNetworkPlugin','Injector','_injector','UniverSheetsPivotTablePlugin','absolute','register','_selectionProtectionRuleModel','CollaborationStatus','UniverRPCMainThreadPlugin','UniverSheetsDrawingUIPlugin','_menuManagerService','state$','UniverInstanceType','univerContainerId','forwardRef','IDialogService','length','getSheetCommandTarget','Exited','10LCDrGP','symbol','Inject','permissionId','add','closeAll','historyUniver','display','14910752NPmPuY','getLocales','dispose','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','UniverSheetsFilterUIPlugin','children','ICommandService','triggerLoadVersions','RevertRevisionMutation','_checkCanRevert','defs','AuthzIoHttpService','UniverUIPlugin','CollaborationController','getSheetId','editHistory.panel.listFetchError','getOwnPropertyDescriptor','status','mutations','7382809jRRyFc','CHANGESET_ACK','1em','_pluginMap','attrs','map','_disposableCollection','revertRevision$','asObservable','RibbonStartGroup','univerjs-icon\x20univerjs-icon-','SYNCED','_dialogService','displayName','clear','history-icon','tag','svg','menu','UniverDocsPlugin','height','every','http://www.w3.org/2000/svg','ThemeService','HistoryManagerService','random','Error','value','482193VweYPf','trim','use','Module','next','UNIVER_CONTAINER_ID_KEY','uComp','getCollabEntity','_componentManager','div','MenuItemType','RxDisposable','_sidebarService','UniverCollaborationPlugin','BehaviorSubject','UniverSheetSparklineUIPlugin','onCommandExecuted','defIds','UniverSheetsDrawingPlugin','getElementById','HistoryModeStatus','unMountHistoryContent','onStarting','close','OPERATION','_initListener','UniverDrawingPlugin','ILocalCacheService','2837889VWQcfP','univer-history-container','useRef','OTHERS','_configService','_init','none','9964122UyfdVJ','getCurrentRangeDisable$','100%','history-container','UniverSheetSparklinePlugin','UniverSheetsUIPlugin','IMenuManagerService','editHistory.panel.reverting','url(#history-icon_clip0_907_281)','_initPlugins','getUnit','pluginName','ComponentManager','HistoryLoaderService','from','getConfig','_localeService','LocaleService','UniverSheetsFormulaUIPlugin','subscribe','1728432muaKCm','toString','registerCommand','IAuthzIoService','CommandType','path','darkMode$','UniverSheetsHyperLinkPlugin'];_0x43c9=function(){return _0x25e453;};return _0x43c9();}let E=class extends o[_0x26a93c(0x211)]{constructor(_0x1c2bf7,_0x507ebf,_0x27b987,_0x354624,_0x55b1ff,_0x9cdf0f,_0x4bb371,_0x1f02e2){const _0x17bf16=_0x26a93c;super(),_(this,_0x17bf16(0x188),null),(this['_commandService']=_0x1c2bf7,this[_0x17bf16(0x1c6)]=_0x507ebf,this[_0x17bf16(0x20e)]=_0x27b987,this[_0x17bf16(0x15d)]=_0x354624,this[_0x17bf16(0x14f)]=_0x55b1ff,this[_0x17bf16(0x174)]=_0x9cdf0f,this[_0x17bf16(0x18e)]=_0x4bb371,this[_0x17bf16(0x1a2)]=_0x1f02e2,this[_0x17bf16(0x13d)]());}[_0x26a93c(0x13d)](){const _0xb56567=_0x26a93c;[M]['forEach'](_0x4dd93f=>this[_0xb56567(0x166)](o[_0xb56567(0x15c)](this['_commandService'][_0xb56567(0x155)](_0x4dd93f)))),this[_0xb56567(0x166)](this['_componentManager'][_0xb56567(0x1c1)]('HistoryIcon',q)),this[_0xb56567(0x1c6)]['mergeMenu'](fe),this['disposeWithMe'](this[_0xb56567(0x183)][_0xb56567(0x216)](_0x358fac=>{const _0x27a94e=_0xb56567;if(_0x358fac['id']===I['RevertRevisionMutation']['id']){this[_0x27a94e(0x174)]['show']({'content':this[_0x27a94e(0x14f)]['t'](_0x27a94e(0x146)),'type':b[_0x27a94e(0x1b3)]['Loading'],'duration':0x1388});const {unitId:_0x1da1a0}=_0x358fac[_0x27a94e(0x181)],_0x228a8a=this[_0x27a94e(0x18e)][_0x27a94e(0x20d)](_0x1da1a0),_0x5e4efe=T[_0x27a94e(0x19a)]([_0x228a8a['session']['event$'],_0x228a8a[_0x27a94e(0x1c7)]])[_0x27a94e(0x152)](async([_0x3048aa,_0x95e29a])=>{const _0x72881c=_0x27a94e;var _0x512c85;_0x3048aa['eventID']===I[_0x72881c(0x177)][_0x72881c(0x1eb)]&&(_0x95e29a==null?void 0x0:_0x95e29a[_0x72881c(0x1e8)])===f[_0x72881c(0x1c3)][_0x72881c(0x1f5)]&&_0x3048aa[_0x72881c(0x17e)][_0x72881c(0x1e9)][_0x72881c(0x16c)](_0x3fc71b=>_0x3fc71b['id']===I['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x72881c(0x21b)](),_0x5e4efe[_0x72881c(0x18b)](),this['_revertErrorTimer']&&clearTimeout(this[_0x72881c(0x188)]),await((_0x512c85=this[_0x72881c(0x1a2)])==null?void 0x0:_0x512c85[_0x72881c(0x163)]()),setTimeout(()=>window['location'][_0x72881c(0x1b8)]()));});this[_0x27a94e(0x188)]=setTimeout(()=>{const _0x2618a7=_0x27a94e;_0x5e4efe[_0x2618a7(0x18b)](),this[_0x2618a7(0x174)]['show']({'content':this[_0x2618a7(0x14f)]['t']('editHistory.panel.revertFailed'),'type':b[_0x2618a7(0x1b3)][_0x2618a7(0x204)],'duration':0xbb8});},0x1388);}}));}};E=Ie([S(0x0,o['ICommandService']),S(0x1,h[_0x26a93c(0x145)]),S(0x2,o[_0x26a93c(0x1d1)](h[_0x26a93c(0x14b)])),S(0x3,o[_0x26a93c(0x1d1)](exports[_0x26a93c(0x14c)])),S(0x4,o[_0x26a93c(0x1d1)](o[_0x26a93c(0x150)])),S(0x5,h[_0x26a93c(0x184)]),S(0x6,o[_0x26a93c(0x1d1)](f[_0x26a93c(0x1e4)])),S(0x7,f[_0x26a93c(0x137)])],E);var Ce=Object['getOwnPropertyDescriptor'],Ue=(_0x5a5c9d,_0x34996a,_0x40a4b4,_0x5a4ea0)=>{for(var _0x58ec1c=_0x5a4ea0>0x1?void 0x0:_0x5a4ea0?Ce(_0x34996a,_0x40a4b4):_0x34996a,_0x199b32=_0x5a5c9d['length']-0x1,_0x39e34a;_0x199b32>=0x0;_0x199b32--)(_0x39e34a=_0x5a5c9d[_0x199b32])&&(_0x58ec1c=_0x39e34a(_0x58ec1c)||_0x58ec1c);return _0x58ec1c;},N=(_0x4272c2,_0x4e5965)=>(_0x3109b2,_0x436ffb)=>_0x4e5965(_0x3109b2,_0x436ffb,_0x4272c2);const Ee=_0x26a93c(0x198);var C;exports[_0x26a93c(0x1ac)]=(C=class extends o['Plugin']{constructor(_0x56f836=R,_0x5ac97c,_0x1d050f){const _0x2f4e0d=_0x26a93c;super(),this['_config']=_0x56f836,this[_0x2f4e0d(0x1be)]=_0x5ac97c,this[_0x2f4e0d(0x13c)]=_0x1d050f;const {menu:_0x10445d,..._0x51e5c7}=o[_0x2f4e0d(0x18d)]({},R,this[_0x2f4e0d(0x1a9)]);_0x10445d&&this[_0x2f4e0d(0x13c)]['setConfig'](_0x2f4e0d(0x1fc),_0x10445d,{'merge':!0x0}),this[_0x2f4e0d(0x13c)][_0x2f4e0d(0x17b)](O,_0x51e5c7),this[_0x2f4e0d(0x1a9)]['univerContainerId']&&this['_configService']['setConfig'](P,this[_0x2f4e0d(0x1a9)][_0x2f4e0d(0x1c9)]);}[_0x26a93c(0x21c)](){const _0x40b36f=_0x26a93c;[[exports[_0x40b36f(0x14c)]],[E]]['forEach'](_0x199d40=>this['_injector'][_0x40b36f(0x1d3)](_0x199d40));}[_0x26a93c(0x1af)](){const _0x5ce31d=_0x26a93c;this[_0x5ce31d(0x1be)][_0x5ce31d(0x176)](E);}},_(C,_0x26a93c(0x186),o[_0x26a93c(0x1c8)]['UNIVER_UNKNOWN']),_(C,_0x26a93c(0x14a),Ee),C),exports['UniverEditHistoryLoaderPlugin']=Ue([N(0x1,o[_0x26a93c(0x1d1)](o[_0x26a93c(0x1bd)])),N(0x2,o[_0x26a93c(0x179)])],exports['UniverEditHistoryLoaderPlugin']),exports[_0x26a93c(0x20b)]=P,exports[_0x26a93c(0x16f)]=y;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x351cdb=_0x3d51;(function(_0x3f7b93,_0x41f8cd){const _0x3bdab4=_0x3d51,_0x74ecd2=_0x3f7b93();while(!![]){try{const _0xd6fffe=-parseInt(_0x3bdab4(0x156))/0x1*(parseInt(_0x3bdab4(0xee))/0x2)+parseInt(_0x3bdab4(0xd1))/0x3+parseInt(_0x3bdab4(0x14c))/0x4*(parseInt(_0x3bdab4(0x128))/0x5)+parseInt(_0x3bdab4(0x136))/0x6+-parseInt(_0x3bdab4(0xc9))/0x7+parseInt(_0x3bdab4(0x12a))/0x8+-parseInt(_0x3bdab4(0xd9))/0x9*(parseInt(_0x3bdab4(0x13a))/0xa);if(_0xd6fffe===_0x41f8cd)break;else _0x74ecd2['push'](_0x74ecd2['shift']());}catch(_0x4b4697){_0x74ecd2['push'](_0x74ecd2['shift']());}}}(_0x2caa,0x34207));var G=Object['defineProperty'],B=(_0x3b2b1b,_0x3f6f95,_0x4a8722)=>_0x3f6f95 in _0x3b2b1b?G(_0x3b2b1b,_0x3f6f95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a8722}):_0x3b2b1b[_0x3f6f95]=_0x4a8722,g=(_0x475a31,_0x401522,_0x2d8f3d)=>B(_0x475a31,typeof _0x401522!=_0x351cdb(0x11f)?_0x401522+'':_0x401522,_0x2d8f3d);import{Inject as _0xb486e7,LocaleService as _0x4683c1,IUniverInstanceService as _0x24c857,IConfigService as _0x37259d,ICommandService as _0x19bbe1,IPermissionService as _0x2a2008,ThemeService as _0x1549b7,Disposable as _0x40d988,DisposableCollection as _0x2e91b5,Univer as _0x542efc,IAuthzIoService as _0x412d1d,CommandType as _0x532fd4,UniverInstanceType as _0x2ff5e7,RxDisposable as _0x20f385,toDisposable as _0x3f4671,Plugin as _0x326fea,merge as _0x4ad89b,Injector as _0x474240}from'@univerjs/core';import{UniverCollaborationPlugin as _0x990d22,RevertRevisionMutation as _0x4c27c1,CollaborationEvent as _0xfbc1ac}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1aadd9,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3d3f3e,CollaborationController as _0x34a71d,ILocalCacheService as _0x38ec81,CollaborationStatus as _0x3f5ee7}from'@univerjs-pro/collaboration-client';import{MessageType as _0x491668}from'@univerjs/design';import{useRef as _0x1d0ab7,createElement as _0x3c1195,forwardRef as _0x2eb21c}from'react';import{IMessageService as _0x2f6aaf,IDialogService as _0x4f4531,ISidebarService as _0x26eb80,UniverUIPlugin as _0x55209f,getMenuHiddenObservable as _0x28a768,MenuItemType as _0x4bcc60,RibbonStartGroup as _0x537ca3,IMenuManagerService as _0x272f8a,ComponentManager as _0x5614e2}from'@univerjs/ui';import{BehaviorSubject as _0x127b30,combineLatest as _0x284725}from'rxjs';import{RangeProtectionRuleModel as _0x437cbf,UniverSheetsPlugin as _0x7b8edd,WorkbookEditablePermission as _0x85c82c,WorksheetEditPermission as _0x2e26b9,RangeProtectionPermissionEditPoint as _0x343c14,WorkbookRecoverHistoryPermission as _0x15dd03,getSheetCommandTarget as _0x539284,WorkbookViewHistoryPermission as _0x474a03}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x4fd57a,HistoryManagerService as _0x21fc62,HistoryModeStatus as _0x4925f1}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x13cf5c,UniverLicensePlugin as _0x504e94}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x2f5375}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x5104c6}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x4ce3b3}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x5da41f}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x23f8dd}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x33e25a}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x23602c,IImageIoService as _0x463d23}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1c639c}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x2bcfb8}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5e9fda}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x4002c0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x41a75f}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3eb862}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x225aa6}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5f33cd}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x159690}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xe41aaf}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2ae1df}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0xf04243}from'@univerjs/sheets-filter';function _0x3d51(_0x67a5f9,_0x1ca80b){const _0x2caa72=_0x2caa();return _0x3d51=function(_0x3d5154,_0x4966f6){_0x3d5154=_0x3d5154-0xbb;let _0x355a23=_0x2caa72[_0x3d5154];return _0x355a23;},_0x3d51(_0x67a5f9,_0x1ca80b);}import{UniverSheetsFilterUIPlugin as _0x53a1b1}from'@univerjs/sheets-filter-ui';function _0x2caa(){const _0x14e7d5=['toString','state$','_configService','path','revertRevision$','historyUniver$','width','OTHERS','editHistory.panel.reverting','[HistoryLoaderService]:\x20Plugin\x20','mountHistoryContent','_permissionService','appendChild','_pluginMap','replace','params','Exited','1967133WKzXya','tag','absolute','invoke','set','show','trim','_themeService','198432oyCbpN','url(#$1','onCommandExecuted','_checkCanRevert','getSheets','composePermission','random','current','87327hPDnzf','zIndex','_localCacheService','http://www.w3.org/2000/svg','triggerLoadVersions','disposeWithMe','mask','Entered','SYNCED','Loading','position','closeAll','createElement','xlink:href','none','dataset','event$','_selectionProtectionRuleModel','historyUniver','substring','map','14mgMvtl','_revertErrorTimer','use','_initPlugins','history-icon','setDarkMode','setTheme','getElementById','permissionId','registerCommand','_init','100%','HistoryIcon','getCurrentLocale','display','_historyManagerService','pluginName','getConfig','_injector','executeCommand','_sidebarService','colorChannel1','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','_collaborationController','attrs','history-icon_clip0_907_281','asObservable','_disposableCollection','unMountHistoryContent','mergeMenu','flat','subscribe','onStarting','idSuffix','M0\x200H16V16H0z','top','clipPath','_commandService','type','has','getSubunitRuleList','_localeService','univer-container','univer.operation.toggle-edit-history','Error','style','_initUniver','_dialogService','symbol','_historyUniver$','\x20has\x20been\x20registered.','entries','_initContainer','_initListener','_messageService','unsubscribe','OPERATION','102515zKXSTx','eventID','1088256pXCnjk','length','editHistory.panel.title','string','status','_menuManagerService','next','exhaustSavingTask','dispose','svg','BUTTON','white','1531170fTTWdk','currentTheme$','add','children','320ykhqBJ','onSteady','session','getOwnPropertyDescriptor','darkMode$','uComp','editHistory.panel.listFetchError','location','setConfig','some','UNIVER_SHEET','close','menu','get','data','forEach','every','div','76AjSogS','edit-history-loader.config','1em','__getInjector','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','CHANGESET_ACK','registerPlugin','fill','includes','displayName','5986rRJZXa','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','getAllPlugins','mutations'];_0x2caa=function(){return _0x14e7d5;};return _0x2caa();}import{UniverSheetsFormulaPlugin as _0x2eb3cd}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0xf4621}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1a480e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x5cccf7}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x34a8f9}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x59ad46,getCurrentRangeDisable$ as _0x56d943}from'@univerjs/sheets-ui';const x=_0x351cdb(0x14d),w={};function A({ref:_0x2a601c,..._0x2404e1}){const _0x1fb415=_0x351cdb,{icon:_0x14fda8,id:_0x460012,className:_0xf0ed97,extend:_0x428d77,..._0x164e83}=_0x2404e1,_0x3043fa=(_0x1fb415(0x104)+_0x460012+'\x20'+(_0xf0ed97||''))[_0x1fb415(0xcf)](),_0x2346eb=_0x1d0ab7('_'+si());return F(_0x14fda8,''+_0x460012,{'defIds':_0x14fda8['defIds'],'idSuffix':_0x2346eb[_0x1fb415(0xd8)]},{'ref':_0x2a601c,'className':_0x3043fa,..._0x164e83},_0x428d77);}function F(_0x252465,_0x5dd7fb,_0x560097,_0x31ecad,_0x6c8ce0){const _0x23762c=_0x351cdb;return _0x3c1195(_0x252465['tag'],{'key':_0x5dd7fb,...ni(_0x252465,_0x560097,_0x6c8ce0),..._0x31ecad},(oi(_0x252465,_0x560097)[_0x23762c(0x139)]||[])[_0x23762c(0xed)]((_0x26958b,_0x1e715d)=>F(_0x26958b,_0x5dd7fb+'-'+_0x252465[_0x23762c(0xca)]+'-'+_0x1e715d,_0x560097,void 0x0,_0x6c8ce0)));}function ni(_0x3984a2,_0x1f2086,_0x2825f1){const _0x3810eb=_0x351cdb,_0x39b547={..._0x3984a2['attrs']};_0x2825f1!=null&&_0x2825f1[_0x3810eb(0x103)]&&_0x39b547['fill']===_0x3810eb(0x103)&&(_0x39b547[_0x3810eb(0x153)]=_0x2825f1[_0x3810eb(0x103)]),_0x3984a2[_0x3810eb(0xca)]===_0x3810eb(0xdf)&&_0x39b547['id']&&(_0x39b547['id']=_0x39b547['id']+_0x1f2086[_0x3810eb(0x110)]),Object[_0x3810eb(0x122)](_0x39b547)[_0x3810eb(0x149)](([_0x3c8a07,_0x4f8035])=>{const _0x58be79=_0x3810eb;_0x3c8a07===_0x58be79(0xdf)&&typeof _0x4f8035==_0x58be79(0x12d)&&(_0x39b547[_0x3c8a07]=_0x4f8035[_0x58be79(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x1f2086['idSuffix']+')'));});const {defIds:_0x15cb20}=_0x1f2086;return!_0x15cb20||_0x15cb20[_0x3810eb(0x12b)]===0x0||(_0x3984a2[_0x3810eb(0xca)]===_0x3810eb(0xf0)&&_0x39b547['xlink:href']&&(_0x39b547[_0x3810eb(0xe6)]=_0x39b547[_0x3810eb(0xe6)]+_0x1f2086['idSuffix']),Object[_0x3810eb(0x122)](_0x39b547)['forEach'](([_0x178bed,_0x352b6e])=>{const _0x208a83=_0x3810eb;typeof _0x352b6e=='string'&&(_0x39b547[_0x178bed]=_0x352b6e[_0x208a83(0xc6)](/url\(#(.*)\)/,_0x208a83(0xd2)+_0x1f2086['idSuffix']+')'));})),_0x39b547;}function oi(_0x573d6e,_0x4f58ae){const _0x515f1c=_0x351cdb;var _0x41cbe1;const {defIds:_0x20a8a3}=_0x4f58ae;return!_0x20a8a3||_0x20a8a3[_0x515f1c(0x12b)]===0x0?_0x573d6e:_0x573d6e[_0x515f1c(0xca)]==='defs'&&((_0x41cbe1=_0x573d6e[_0x515f1c(0x139)])!=null&&_0x41cbe1[_0x515f1c(0x12b)])?{..._0x573d6e,'children':_0x573d6e[_0x515f1c(0x139)][_0x515f1c(0xed)](_0x43aacb=>typeof _0x43aacb[_0x515f1c(0x107)]['id']==_0x515f1c(0x12d)&&_0x20a8a3&&_0x20a8a3[_0x515f1c(0x154)](_0x43aacb[_0x515f1c(0x107)]['id'])?{..._0x43aacb,'attrs':{..._0x43aacb[_0x515f1c(0x107)],'id':_0x43aacb[_0x515f1c(0x107)]['id']+_0x4f58ae['idSuffix']}}:_0x43aacb)}:_0x573d6e;}function si(){const _0x38dcdb=_0x351cdb;return Math[_0x38dcdb(0xd7)]()[_0x38dcdb(0x15a)](0x24)[_0x38dcdb(0xec)](0x2,0x8);}A[_0x351cdb(0x155)]='UniverIcon';const ai={'tag':_0x351cdb(0x133),'attrs':{'xmlns':_0x351cdb(0xdc),'fill':_0x351cdb(0xe7),'viewBox':'0\x200\x2016\x2016','width':_0x351cdb(0x14e),'height':_0x351cdb(0x14e)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x351cdb(0xbb),'attrs':{'d':_0x351cdb(0x150)}},{'tag':_0x351cdb(0xbb),'attrs':{'d':_0x351cdb(0x157)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x351cdb(0x113),'attrs':{'id':_0x351cdb(0x108)},'children':[{'tag':'path','attrs':{'fill':_0x351cdb(0x135),'d':_0x351cdb(0x111)}}]}]}],'defIds':[_0x351cdb(0x108)]},j=_0x2eb21c(function(_0x1f300b,_0x4b5d28){const _0x55a2d2=_0x351cdb;return _0x3c1195(A,Object['assign']({},_0x1f300b,{'id':_0x55a2d2(0xf2),'ref':_0x4b5d28,'icon':ai}));});j[_0x351cdb(0x155)]='HistoryIcon';var ci=Object['getOwnPropertyDescriptor'],li=(_0x5ee0e8,_0xadb692,_0x5954bf,_0x42e9fe)=>{for(var _0x4fec2a=_0x42e9fe>0x1?void 0x0:_0x42e9fe?ci(_0xadb692,_0x5954bf):_0xadb692,_0x18251d=_0x5ee0e8['length']-0x1,_0x5e3a6a;_0x18251d>=0x0;_0x18251d--)(_0x5e3a6a=_0x5ee0e8[_0x18251d])&&(_0x4fec2a=_0x5e3a6a(_0x4fec2a)||_0x4fec2a);return _0x4fec2a;},l=(_0x4a758f,_0x24828d)=>(_0x2cd598,_0x160a3a)=>_0x24828d(_0x2cd598,_0x160a3a,_0x4a758f);const ui=_0x351cdb(0x119),V='UNIVER_CONTAINER_ID',d='univer-history-container';let f=class extends _0x40d988{constructor(_0x58b312,_0x2e92c7,_0x4c042b,_0x48c2ea,_0x369383,_0x531985,_0x5b9492,_0x324ac8,_0x52b87c,_0xe61267){const _0x51abe5=_0x351cdb;super(),g(this,'_historyUniver$',new _0x127b30(null)),g(this,_0x51abe5(0xbd),this[_0x51abe5(0x120)][_0x51abe5(0x109)]()),g(this,'_disposableCollection',new _0x2e91b5()),g(this,_0x51abe5(0xc5),new Map()),(this['_localeService']=_0x58b312,this['_univerInstanceService']=_0x2e92c7,this[_0x51abe5(0x15c)]=_0x4c042b,this[_0x51abe5(0x114)]=_0x48c2ea,this[_0x51abe5(0x125)]=_0x369383,this[_0x51abe5(0xc3)]=_0x531985,this[_0x51abe5(0xea)]=_0x5b9492,this['_dialogService']=_0x324ac8,this[_0x51abe5(0x102)]=_0x52b87c,this[_0x51abe5(0xd0)]=_0xe61267,this[_0x51abe5(0xf8)]());}get[_0x351cdb(0xeb)](){return this['_historyUniver$']['value'];}['_init'](){const _0x2331fd=_0x351cdb;this[_0x2331fd(0x123)](),this[_0x2331fd(0xf1)]();}[_0x351cdb(0x123)](){const _0x4648c2=_0x351cdb;var _0x2e8402;const _0x446077=(_0x2e8402=this[_0x4648c2(0x15c)][_0x4648c2(0xff)](V))!=null?_0x2e8402:ui,_0x1b4330=document[_0x4648c2(0xf5)](_0x446077);if(!_0x1b4330)return;const _0x263d58=document[_0x4648c2(0xe5)](_0x4648c2(0x14b));_0x263d58['id']=d,_0x263d58[_0x4648c2(0xe8)][_0x4648c2(0x13f)]='history-container',_0x263d58['style'][_0x4648c2(0xe3)]=_0x4648c2(0xcb),_0x263d58[_0x4648c2(0x11c)][_0x4648c2(0x112)]='0',_0x263d58[_0x4648c2(0x11c)]['left']='0',_0x263d58['style'][_0x4648c2(0xbe)]=_0x4648c2(0xf9),_0x263d58['style']['height']=_0x4648c2(0xf9),_0x263d58[_0x4648c2(0x11c)][_0x4648c2(0xda)]='1000',_0x263d58[_0x4648c2(0x11c)][_0x4648c2(0xfc)]=_0x4648c2(0xe7),_0x1b4330[_0x4648c2(0xc4)](_0x263d58);}[_0x351cdb(0xf1)](){const _0x484f48=_0x351cdb;var _0x1b1943;[[_0x5e9fda],[_0x55209f,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4f4531,null]]}],[_0x4002c0],[_0x23602c,{'override':[[_0x463d23,null]]}],[_0x23f8dd,{'hasScroll':!0x1}],[_0x33e25a],[_0x34a8f9],[_0x7b8edd,{'notExecuteFormula':!0x0}],[_0x59ad46],[_0x2eb3cd],[_0xf4621],[_0x990d22],[_0xf04243],[_0x53a1b1],[_0x3eb862],[_0x225aa6],[_0x1a480e],[_0x5cccf7],[_0x5da41f],[_0x5f33cd],[_0x159690],[_0x2bcfb8,{'notExecuteFormula':!0x0}],[_0x41a75f,{'workerURL':'./worker.js'}],[_0x1c639c],[_0xe41aaf],[_0x2ae1df],[_0x5104c6],[_0x4ce3b3],[_0x2f5375,{'notExecuteFormula':!0x0}],[_0x4fd57a,{'historyListServerUrl':(_0x1b1943=this[_0x484f48(0x15c)][_0x484f48(0xff)](x))==null?void 0x0:_0x1b1943['historyListServerUrl']}]]['forEach'](([_0x186698,_0x298e5d])=>this['registerPlugin'](_0x186698,_0x298e5d));}[_0x351cdb(0x132)](){const _0x53e42f=_0x351cdb;super[_0x53e42f(0x132)](),this['unMountHistoryContent'](),this[_0x53e42f(0xc5)]['clear']();}[_0x351cdb(0x152)](_0xc3edf3,_0x21d7a8,_0x370ca7){const _0x130e43=_0x351cdb;if(this['_pluginMap'][_0x130e43(0x116)](_0xc3edf3[_0x130e43(0xfe)])&&!_0x370ca7)throw new Error(_0x130e43(0xc1)+_0xc3edf3[_0x130e43(0xfe)]+_0x130e43(0x121));this[_0x130e43(0xc5)][_0x130e43(0xcd)](_0xc3edf3[_0x130e43(0xfe)],[_0xc3edf3,_0x21d7a8]);}[_0x351cdb(0x158)](){const _0x1fb04c=_0x351cdb;return Array['from'](this[_0x1fb04c(0xc5)]['values']());}[_0x351cdb(0xc2)](_0x14f8c6){const _0x558968=_0x351cdb,_0xcc6f04=document[_0x558968(0xf5)](d);_0xcc6f04&&(_0xcc6f04[_0x558968(0x11c)][_0x558968(0xfc)]='block',this[_0x558968(0x11d)](_0x14f8c6,d));}[_0x351cdb(0x10b)](){const _0x23202f=_0x351cdb;var _0x4be689;this[_0x23202f(0x10a)][_0x23202f(0x132)](),(_0x4be689=this['historyUniver'])==null||_0x4be689[_0x23202f(0x132)](),this[_0x23202f(0x120)][_0x23202f(0x130)](null);const _0x54bf53=document[_0x23202f(0xf5)](d);_0x54bf53&&(_0x54bf53[_0x23202f(0x11c)][_0x23202f(0xfc)]=_0x23202f(0xe7));}[_0x351cdb(0x11d)](_0x4d0c9d,_0x3d11f0){const _0x5cd6e9=_0x351cdb;if(this[_0x5cd6e9(0xeb)])return;const _0x3956c9=new _0x542efc({'locales':{[this['_localeService'][_0x5cd6e9(0xfb)]()]:this[_0x5cd6e9(0x118)]['getLocales']()},'override':[[_0x412d1d,{'useClass':_0x1aadd9}]]}),_0x5dd808=_0x3956c9[_0x5cd6e9(0x14f)]();this['disposeWithMe'](this['_themeService'][_0x5cd6e9(0x13e)]['subscribe'](_0x4fd3bc=>{const _0x5978bf=_0x5cd6e9;_0x5dd808[_0x5978bf(0x147)](_0x1549b7)[_0x5978bf(0xf3)](_0x4fd3bc);})),this[_0x5cd6e9(0xde)](this['_themeService'][_0x5cd6e9(0x137)][_0x5cd6e9(0x10e)](_0xeb76a=>{const _0x1b7421=_0x5cd6e9;_0x5dd808['get'](_0x1549b7)[_0x1b7421(0xf4)](_0xeb76a);})),_0x5dd808[_0x5cd6e9(0x147)](_0x4683c1)['setLocale'](this['_localeService'][_0x5cd6e9(0xfb)]()),_0x5dd808[_0x5cd6e9(0x147)](_0x37259d)[_0x5cd6e9(0x142)](_0x3d3f3e,this[_0x5cd6e9(0x15c)][_0x5cd6e9(0xff)](_0x3d3f3e));const _0x18008f=this[_0x5cd6e9(0x15c)][_0x5cd6e9(0xff)](_0x13cf5c);_0x18008f&&_0x3956c9[_0x5cd6e9(0x152)](_0x504e94,{'license':_0x18008f['ls']}),this['_pluginMap'][_0x5cd6e9(0x149)](([_0x5f26f2,_0x72f354])=>{const _0x3d6035=_0x5cd6e9;_0x3956c9[_0x3d6035(0x152)](_0x5f26f2,_0x72f354);}),_0x5dd808[_0x5cd6e9(0xcc)](_0x1649d8=>{const _0x4499cf=_0x5cd6e9;this[_0x4499cf(0x124)](_0x1649d8,_0x4d0c9d);}),this[_0x5cd6e9(0x120)]['next'](_0x3956c9);const _0x4ab10b=_0x5dd808[_0x5cd6e9(0x147)](_0x21fc62),_0x2ec3fe=this[_0x5cd6e9(0xd4)](_0x4d0c9d);_0x4ab10b[_0x5cd6e9(0xdd)](_0x4d0c9d,_0x3d11f0,_0x2ec3fe);}[_0x351cdb(0x124)](_0x134f94,_0x214de8){const _0x57a346=_0x351cdb,_0x4a1db3=_0x134f94[_0x57a346(0x147)](_0x21fc62);this[_0x57a346(0x10a)][_0x57a346(0x138)](_0x4a1db3['status$']['subscribe'](_0x339bdb=>{const _0x580f3f=_0x57a346;switch(_0x339bdb){case _0x4925f1[_0x580f3f(0xe0)]:this[_0x580f3f(0x11e)][_0x580f3f(0xe4)](),this[_0x580f3f(0x102)][_0x580f3f(0x145)]();break;case _0x4925f1[_0x580f3f(0xc8)]:this[_0x580f3f(0x10b)]();break;case _0x4925f1[_0x580f3f(0x11b)]:this[_0x580f3f(0x10b)](),this[_0x580f3f(0x125)]['show']({'content':this[_0x580f3f(0x118)]['t'](_0x580f3f(0x140)),'type':_0x491668[_0x580f3f(0x11b)],'duration':0xbb8});break;}})),this[_0x57a346(0x10a)][_0x57a346(0x138)](_0x4a1db3[_0x57a346(0xbc)]['subscribe'](async _0x40f1db=>{const _0x454c8e=_0x57a346;_0x40f1db&&this[_0x454c8e(0x114)][_0x454c8e(0x101)](_0x4c27c1['id'],{'unitId':_0x214de8,'revision':_0x40f1db});}));}[_0x351cdb(0xd4)](_0x158b14){const _0x18bc15=_0x351cdb,_0x3ef0d7=this['_univerInstanceService']['getUnit'](_0x158b14)[_0x18bc15(0xd5)]()[_0x18bc15(0xed)](_0x4b0f62=>_0x4b0f62['getSheetId']()),_0x3031d7=new _0x85c82c(_0x158b14)['id'],_0x3031d1=_0x3ef0d7[_0x18bc15(0xed)](_0x4626ec=>new _0x2e26b9(_0x158b14,_0x4626ec)['id']),_0x46f5f9=_0x3ef0d7[_0x18bc15(0xed)](_0x116234=>this[_0x18bc15(0xea)][_0x18bc15(0x117)](_0x158b14,_0x116234)['map'](_0x3ca356=>new _0x343c14(_0x158b14,_0x116234,_0x3ca356[_0x18bc15(0xf6)])['id']))[_0x18bc15(0x10d)](),_0x50fd3c=new _0x15dd03(_0x158b14)['id'];return this[_0x18bc15(0xc3)][_0x18bc15(0xd6)]([_0x3031d7,..._0x3031d1,..._0x46f5f9,_0x50fd3c])[_0x18bc15(0x14a)](_0x29ead0=>!!_0x29ead0['value']);}};f=li([l(0x0,_0xb486e7(_0x4683c1)),l(0x1,_0x24c857),l(0x2,_0x37259d),l(0x3,_0x19bbe1),l(0x4,_0x2f6aaf),l(0x5,_0x2a2008),l(0x6,_0xb486e7(_0x437cbf)),l(0x7,_0xb486e7(_0x4f4531)),l(0x8,_0xb486e7(_0x26eb80)),l(0x9,_0xb486e7(_0x1549b7))],f);const b={'id':_0x351cdb(0x11a),'type':_0x532fd4[_0x351cdb(0x127)],'handler':_0x32cd4c=>{const _0x56479f=_0x351cdb,_0x49d15e=_0x32cd4c['get'](f),_0xd616aa=_0x32cd4c[_0x56479f(0x147)](_0x24c857),{unitId:_0x299d5f}=_0x539284(_0xd616aa)||{};return _0x299d5f?(_0x49d15e[_0x56479f(0xc2)](_0x299d5f),!0x0):!0x1;}};function hi(_0x4987bb){const _0x566803=_0x351cdb;return{'id':b['id'],'type':_0x4bcc60[_0x566803(0x134)],'icon':'HistoryIcon','tooltip':_0x566803(0x12c),'hidden$':_0x28a768(_0x4987bb,_0x2ff5e7[_0x566803(0x144)]),'disabled$':_0x56d943(_0x4987bb,{'workbookTypes':[_0x85c82c,_0x474a03],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x537ca3[_0x351cdb(0xbf)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x351cdb(0x13d)],vi=(_0xeb6a2e,_0x5e00e8,_0xfe77aa,_0xf1dc24)=>{const _0x308f60=_0x351cdb;for(var _0x281700=_0xf1dc24>0x1?void 0x0:_0xf1dc24?mi(_0x5e00e8,_0xfe77aa):_0x5e00e8,_0x589553=_0xeb6a2e[_0x308f60(0x12b)]-0x1,_0x2b9bda;_0x589553>=0x0;_0x589553--)(_0x2b9bda=_0xeb6a2e[_0x589553])&&(_0x281700=_0x2b9bda(_0x281700)||_0x281700);return _0x281700;},m=(_0x1eb4bf,_0x5f5dce)=>(_0x6b765c,_0x533a54)=>_0x5f5dce(_0x6b765c,_0x533a54,_0x1eb4bf);let p=class extends _0x20f385{constructor(_0x167ca2,_0x2cc4e5,_0x2762ea,_0x50a449,_0x5c82db,_0x1bec75,_0x408ca3,_0x21b251){const _0x5777a6=_0x351cdb;super(),g(this,_0x5777a6(0xef),null),(this[_0x5777a6(0x114)]=_0x167ca2,this[_0x5777a6(0x12f)]=_0x2cc4e5,this['_componentManager']=_0x2762ea,this[_0x5777a6(0xfd)]=_0x50a449,this[_0x5777a6(0x118)]=_0x5c82db,this[_0x5777a6(0x125)]=_0x1bec75,this['_collaborationController']=_0x408ca3,this[_0x5777a6(0xdb)]=_0x21b251,this[_0x5777a6(0xf8)]());}[_0x351cdb(0xf8)](){const _0x1ebd46=_0x351cdb;[b][_0x1ebd46(0x149)](_0x54c286=>this[_0x1ebd46(0xde)](_0x3f4671(this['_commandService'][_0x1ebd46(0xf7)](_0x54c286)))),this[_0x1ebd46(0xde)](this['_componentManager']['register'](_0x1ebd46(0xfa),j)),this[_0x1ebd46(0x12f)][_0x1ebd46(0x10c)](gi),this['disposeWithMe'](this[_0x1ebd46(0x114)][_0x1ebd46(0xd3)](_0x55bec7=>{const _0xc8ea8=_0x1ebd46;if(_0x55bec7['id']===_0x4c27c1['id']){this['_messageService'][_0xc8ea8(0xce)]({'content':this[_0xc8ea8(0x118)]['t'](_0xc8ea8(0xc0)),'type':_0x491668[_0xc8ea8(0xe2)],'duration':0x1388});const {unitId:_0x323802}=_0x55bec7[_0xc8ea8(0xc7)],_0x252f5e=this[_0xc8ea8(0x106)]['getCollabEntity'](_0x323802),_0xc00e33=_0x284725([_0x252f5e[_0xc8ea8(0x13c)][_0xc8ea8(0xe9)],_0x252f5e[_0xc8ea8(0x15b)]])[_0xc8ea8(0x10e)](async([_0x495744,_0x14efa6])=>{const _0x4fcaed=_0xc8ea8;var _0x53391f;_0x495744[_0x4fcaed(0x129)]===_0xfbc1ac[_0x4fcaed(0x151)]&&(_0x14efa6==null?void 0x0:_0x14efa6[_0x4fcaed(0x12e)])===_0x3f5ee7[_0x4fcaed(0xe1)]&&_0x495744[_0x4fcaed(0x148)][_0x4fcaed(0x159)][_0x4fcaed(0x143)](_0x3482f0=>_0x3482f0['id']===_0x4c27c1['id'])&&(this[_0x4fcaed(0xfd)]['unMountHistoryContent'](),_0xc00e33[_0x4fcaed(0x126)](),this[_0x4fcaed(0xef)]&&clearTimeout(this['_revertErrorTimer']),await((_0x53391f=this[_0x4fcaed(0xdb)])==null?void 0x0:_0x53391f[_0x4fcaed(0x131)]()),setTimeout(()=>window[_0x4fcaed(0x141)]['reload']()));});this[_0xc8ea8(0xef)]=setTimeout(()=>{const _0x9dc8fc=_0xc8ea8;_0xc00e33[_0x9dc8fc(0x126)](),this['_messageService']['show']({'content':this[_0x9dc8fc(0x118)]['t']('editHistory.panel.revertFailed'),'type':_0x491668[_0x9dc8fc(0x11b)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x19bbe1),m(0x1,_0x272f8a),m(0x2,_0xb486e7(_0x5614e2)),m(0x3,_0xb486e7(f)),m(0x4,_0xb486e7(_0x4683c1)),m(0x5,_0x2f6aaf),m(0x6,_0xb486e7(_0x34a71d)),m(0x7,_0x38ec81)],p);var di=Object[_0x351cdb(0x13d)],fi=(_0x47e5e0,_0x3b7f7e,_0x61e863,_0x4c602a)=>{for(var _0xfabad1=_0x4c602a>0x1?void 0x0:_0x4c602a?di(_0x3b7f7e,_0x61e863):_0x3b7f7e,_0x48261a=_0x47e5e0['length']-0x1,_0x4cad34;_0x48261a>=0x0;_0x48261a--)(_0x4cad34=_0x47e5e0[_0x48261a])&&(_0xfabad1=_0x4cad34(_0xfabad1)||_0xfabad1);return _0xfabad1;},R=(_0x34a3dc,_0x1ff57a)=>(_0x58bb04,_0x3a65d4)=>_0x1ff57a(_0x58bb04,_0x3a65d4,_0x34a3dc);const _i='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let N=(_=class extends _0x326fea{constructor(_0x380d03=w,_0x5af1db,_0x262a7d){const _0x382a79=_0x351cdb;super(),this['_config']=_0x380d03,this[_0x382a79(0x100)]=_0x5af1db,this[_0x382a79(0x15c)]=_0x262a7d;const {menu:_0x332137,..._0x3b36dc}=_0x4ad89b({},w,this['_config']);_0x332137&&this[_0x382a79(0x15c)]['setConfig'](_0x382a79(0x146),_0x332137,{'merge':!0x0}),this[_0x382a79(0x15c)][_0x382a79(0x142)](x,_0x3b36dc),this['_config']['univerContainerId']&&this['_configService'][_0x382a79(0x142)](V,this['_config']['univerContainerId']);}[_0x351cdb(0x10f)](){const _0x297256=_0x351cdb;[[f],[p]][_0x297256(0x149)](_0x45e500=>this[_0x297256(0x100)][_0x297256(0x138)](_0x45e500));}[_0x351cdb(0x13b)](){const _0x57a7cd=_0x351cdb;this[_0x57a7cd(0x100)][_0x57a7cd(0x147)](p);}},g(_,_0x351cdb(0x115),_0x2ff5e7[_0x351cdb(0x105)]),g(_,_0x351cdb(0xfe),_i),_);N=fi([R(0x1,_0xb486e7(_0x474240)),R(0x2,_0x37259d)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ const _0x3fffe2=_0x4530;(function(_0x2fdd03,_0x44ec8b){const _0x55c8f5=_0x4530,_0x37a187=_0x2fdd03();while(!![]){try{const _0x7f0a78=parseInt(_0x55c8f5(0x261))/0x1+-parseInt(_0x55c8f5(0x202))/0x2*(parseInt(_0x55c8f5(0x262))/0x3)+-parseInt(_0x55c8f5(0x1c5))/0x4*(-parseInt(_0x55c8f5(0x238))/0x5)+-parseInt(_0x55c8f5(0x233))/0x6+-parseInt(_0x55c8f5(0x1fa))/0x7+parseInt(_0x55c8f5(0x253))/0x8+parseInt(_0x55c8f5(0x1d0))/0x9*(parseInt(_0x55c8f5(0x1df))/0xa);if(_0x7f0a78===_0x44ec8b)break;else _0x37a187['push'](_0x37a187['shift']());}catch(_0x5a4fbd){_0x37a187['push'](_0x37a187['shift']());}}}(_0x3169,0xa27dd));var G=Object['defineProperty'],B=(_0x324a60,_0x42a874,_0x26397a)=>_0x42a874 in _0x324a60?G(_0x324a60,_0x42a874,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26397a}):_0x324a60[_0x42a874]=_0x26397a,g=(_0x13f6e5,_0xcbf711,_0x223c3e)=>B(_0x13f6e5,typeof _0xcbf711!=_0x3fffe2(0x1ff)?_0xcbf711+'':_0xcbf711,_0x223c3e);import{Inject as _0x17330e,LocaleService as _0x4385bf,IUniverInstanceService as _0x322d57,IConfigService as _0x37cc44,ICommandService as _0x2bee6f,IPermissionService as _0x368a83,ThemeService as _0x4a43ac,Disposable as _0x36061d,DisposableCollection as _0x290258,Univer as _0x49b5cc,IAuthzIoService as _0x414334,CommandType as _0x2b4de2,UniverInstanceType as _0x5e60c2,RxDisposable as _0x43c053,toDisposable as _0x3f4337,Plugin as _0x337f8f,merge as _0x377268,Injector as _0x4f3144}from'@univerjs/core';import{UniverCollaborationPlugin as _0x3a6d1e,RevertRevisionMutation as _0x5174f8,CollaborationEvent as _0x203e49}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x36ee5e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x224825,CollaborationController as _0x3c3a85,ILocalCacheService as _0x1ffb0c,CollaborationStatus as _0x3b72d3}from'@univerjs-pro/collaboration-client';import{MessageType as _0x2c36b3}from'@univerjs/design';import{useRef as _0x1edfb8,createElement as _0x50624c,forwardRef as _0x54a7df}from'react';import{IMessageService as _0x5d12c6,IDialogService as _0x3ce7ac,ISidebarService as _0x4447d2,UniverUIPlugin as _0x20b316,getMenuHiddenObservable as _0x7e1557,MenuItemType as _0x246cb1,RibbonStartGroup as _0x5d4bd6,IMenuManagerService as _0x5667e1,ComponentManager as _0x2f8faf}from'@univerjs/ui';import{BehaviorSubject as _0x4cc219,combineLatest as _0x11e74c}from'rxjs';import{RangeProtectionRuleModel as _0x52c522,UniverSheetsPlugin as _0x3dbe6d,WorkbookEditablePermission as _0x5338ab,WorksheetEditPermission as _0x100b56,RangeProtectionPermissionEditPoint as _0x162fd5,WorkbookRecoverHistoryPermission as _0x4332a4,getSheetCommandTarget as _0x3f8406,WorkbookViewHistoryPermission as _0x2a6598}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x30fd52,HistoryManagerService as _0x19821e,HistoryModeStatus as _0x22fe1f}from'@univerjs-pro/edit-history-viewer';function _0x3169(){const _0x315aaf=['permissionId','_disposableCollection','width','use','colorChannel1','position','attrs','substring','div','invoke','M0\x200H16V16H0z','flat','history-icon','editHistory.panel.revertFailed','getLocales','revertRevision$','OTHERS','CHANGESET_ACK','getConfig','getSubunitRuleList','259908jbDZXP','string','set','univerjs-icon\x20univerjs-icon-','executeCommand','6015rRzDpE','_sidebarService','idSuffix','subscribe','__getInjector','Entered','getSheets','xlink:href','status','\x20has\x20been\x20registered.','session','[HistoryLoaderService]:\x20Plugin\x20','Loading','zIndex','currentColor','setDarkMode','getSheetId','clipPath','setLocale','onStarting','_univerInstanceService','100%','data','length','_localeService','_componentManager','some','6897424IFPQiK','UNIVER_UNKNOWN','unMountHistoryContent','show','includes','getOwnPropertyDescriptor','_commandService','historyUniver$','historyListServerUrl','_collaborationController','menu','_historyManagerService','getCollabEntity','value','656632AqnasX','1847295TlLyLB','_checkCanRevert','display','none','defIds','composePermission','dataset','1604BNsjlu','eventID','defs','_init','path','close','has','_initUniver','_permissionService','_menuManagerService','historyUniver','1062qsSyWi','white','type','editHistory.panel.title','entries','mask','_initListener','map','clear','./worker.js','_historyUniver$','_initPlugins','onCommandExecuted','_dialogService','dispose','32790bjgAIA','location','1000','_revertErrorTimer','register','_pluginMap','registerCommand','fill','every','_themeService','_config','HistoryIcon','mutations','_configService','_localCacheService','univer-container','OPERATION','darkMode$','univerContainerId','_messageService','style','mountHistoryContent','editHistory.panel.reverting','createElement','uComp','editHistory.panel.listFetchError','displayName','7444409LcvuxB','children','disposeWithMe','1em','forEach','symbol','replace','history-icon_clip0_907_281','2KJMPvn','registerPlugin','_initContainer','getElementById','appendChild','left','unsubscribe','getCurrentLocale','currentTheme$','SYNCED','Error','UniverIcon','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','mergeMenu','tag','params','top','edit-history-loader.config','reload','add','setConfig','_injector','pluginName','next','closeAll','getUnit','history-container','get','Exited'];_0x3169=function(){return _0x315aaf;};return _0x3169();}import{LS_CONFIG_KEY as _0x2557ea,UniverLicensePlugin as _0x2e01fe}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x54288c}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x4e0759}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x2ed0bc}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0xb79ae4}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x104da8}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x4366fe}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xcb9045,IImageIoService as _0x484922}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xfa3114}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x11ba6c}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x18d1cf}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x588e2c}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x367b56}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x29c08e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x5a7b03}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x124ca2}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x533435}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5ddb09}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x24a351}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x5ef91c}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x326fa8}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x58d69f}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x4e34ec}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x3d085e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x287349}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x338f11}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x55cef5,getCurrentRangeDisable$ as _0x1eb9c8}from'@univerjs/sheets-ui';const x=_0x3fffe2(0x213),w={};function A({ref:_0x4004e5,..._0x350f0c}){const _0x2ae1c6=_0x3fffe2,{icon:_0x100a61,id:_0x298bd8,className:_0x183a49,extend:_0x271f79,..._0x3c80c3}=_0x350f0c,_0x184291=(_0x2ae1c6(0x236)+_0x298bd8+'\x20'+(_0x183a49||''))['trim'](),_0x43fd63=_0x1edfb8('_'+si());return F(_0x100a61,''+_0x298bd8,{'defIds':_0x100a61[_0x2ae1c6(0x266)],'idSuffix':_0x43fd63['current']},{'ref':_0x4004e5,'className':_0x184291,..._0x3c80c3},_0x271f79);}function F(_0x898868,_0x331335,_0x172caa,_0x5f0484,_0x35e284){const _0x5687f6=_0x3fffe2;return _0x50624c(_0x898868['tag'],{'key':_0x331335,...ni(_0x898868,_0x172caa,_0x35e284),..._0x5f0484},(oi(_0x898868,_0x172caa)[_0x5687f6(0x1fb)]||[])[_0x5687f6(0x1d7)]((_0x7c85c4,_0x17ddc3)=>F(_0x7c85c4,_0x331335+'-'+_0x898868[_0x5687f6(0x210)]+'-'+_0x17ddc3,_0x172caa,void 0x0,_0x35e284)));}function ni(_0xe886c4,_0x3bb9da,_0x31eeef){const _0x47ec8c=_0x3fffe2,_0x27a19b={..._0xe886c4['attrs']};_0x31eeef!=null&&_0x31eeef['colorChannel1']&&_0x27a19b[_0x47ec8c(0x1e6)]===_0x47ec8c(0x223)&&(_0x27a19b['fill']=_0x31eeef['colorChannel1']),_0xe886c4[_0x47ec8c(0x210)]===_0x47ec8c(0x1d5)&&_0x27a19b['id']&&(_0x27a19b['id']=_0x27a19b['id']+_0x3bb9da[_0x47ec8c(0x23a)]),Object[_0x47ec8c(0x1d4)](_0x27a19b)[_0x47ec8c(0x1fe)](([_0x1dcadc,_0xa1b60f])=>{const _0x4f59c3=_0x47ec8c;_0x1dcadc===_0x4f59c3(0x1d5)&&typeof _0xa1b60f=='string'&&(_0x27a19b[_0x1dcadc]=_0xa1b60f['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3bb9da[_0x4f59c3(0x23a)]+')'));});const {defIds:_0x2e2478}=_0x3bb9da;return!_0x2e2478||_0x2e2478[_0x47ec8c(0x24f)]===0x0||(_0xe886c4[_0x47ec8c(0x210)]===_0x47ec8c(0x222)&&_0x27a19b[_0x47ec8c(0x23f)]&&(_0x27a19b[_0x47ec8c(0x23f)]=_0x27a19b[_0x47ec8c(0x23f)]+_0x3bb9da[_0x47ec8c(0x23a)]),Object['entries'](_0x27a19b)[_0x47ec8c(0x1fe)](([_0x2af143,_0x131b2b])=>{const _0x5e579e=_0x47ec8c;typeof _0x131b2b=='string'&&(_0x27a19b[_0x2af143]=_0x131b2b[_0x5e579e(0x200)](/url\(#(.*)\)/,'url(#$1'+_0x3bb9da['idSuffix']+')'));})),_0x27a19b;}function oi(_0x2b4d74,_0x2ffb98){const _0xa8ab4f=_0x3fffe2;var _0x2f70f1;const {defIds:_0x2b6d18}=_0x2ffb98;return!_0x2b6d18||_0x2b6d18[_0xa8ab4f(0x24f)]===0x0?_0x2b4d74:_0x2b4d74['tag']===_0xa8ab4f(0x1c7)&&((_0x2f70f1=_0x2b4d74['children'])!=null&&_0x2f70f1[_0xa8ab4f(0x24f)])?{..._0x2b4d74,'children':_0x2b4d74[_0xa8ab4f(0x1fb)][_0xa8ab4f(0x1d7)](_0x2769c0=>typeof _0x2769c0['attrs']['id']==_0xa8ab4f(0x234)&&_0x2b6d18&&_0x2b6d18[_0xa8ab4f(0x257)](_0x2769c0[_0xa8ab4f(0x225)]['id'])?{..._0x2769c0,'attrs':{..._0x2769c0[_0xa8ab4f(0x225)],'id':_0x2769c0[_0xa8ab4f(0x225)]['id']+_0x2ffb98[_0xa8ab4f(0x23a)]}}:_0x2769c0)}:_0x2b4d74;}function si(){const _0x310dd8=_0x3fffe2;return Math['random']()['toString'](0x24)[_0x310dd8(0x226)](0x2,0x8);}A['displayName']=_0x3fffe2(0x20d);const ai={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3fffe2(0x265),'viewBox':'0\x200\x2016\x2016','width':_0x3fffe2(0x1fd),'height':_0x3fffe2(0x1fd)},'children':[{'tag':'g','attrs':{'fill':_0x3fffe2(0x246),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x3fffe2(0x1c9),'attrs':{'d':_0x3fffe2(0x20e)}},{'tag':_0x3fffe2(0x1c9),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3fffe2(0x249),'attrs':{'id':_0x3fffe2(0x201)},'children':[{'tag':'path','attrs':{'fill':_0x3fffe2(0x1d1),'d':_0x3fffe2(0x229)}}]}]}],'defIds':[_0x3fffe2(0x201)]},j=_0x54a7df(function(_0x1130b1,_0x1dd179){const _0x15b40b=_0x3fffe2;return _0x50624c(A,Object['assign']({},_0x1130b1,{'id':_0x15b40b(0x22b),'ref':_0x1dd179,'icon':ai}));});j[_0x3fffe2(0x1f9)]=_0x3fffe2(0x1ea);var ci=Object['getOwnPropertyDescriptor'],li=(_0x1b465f,_0x41cda3,_0x37d30b,_0x4decec)=>{const _0x1d96e9=_0x3fffe2;for(var _0x83d6e1=_0x4decec>0x1?void 0x0:_0x4decec?ci(_0x41cda3,_0x37d30b):_0x41cda3,_0x513ae7=_0x1b465f[_0x1d96e9(0x24f)]-0x1,_0x56898a;_0x513ae7>=0x0;_0x513ae7--)(_0x56898a=_0x1b465f[_0x513ae7])&&(_0x83d6e1=_0x56898a(_0x83d6e1)||_0x83d6e1);return _0x83d6e1;},l=(_0x115d33,_0x72d3c9)=>(_0x54fb37,_0x2c391a)=>_0x72d3c9(_0x54fb37,_0x2c391a,_0x115d33);const ui=_0x3fffe2(0x1ee),V='UNIVER_CONTAINER_ID',d='univer-history-container';let f=class extends _0x36061d{constructor(_0x42ee2c,_0x1dda0a,_0x5c2400,_0x40827d,_0x744260,_0x523486,_0xb24c11,_0x2fb0c5,_0x565303,_0x3a8b0b){const _0x3eebee=_0x3fffe2;super(),g(this,_0x3eebee(0x1da),new _0x4cc219(null)),g(this,_0x3eebee(0x25a),this[_0x3eebee(0x1da)]['asObservable']()),g(this,_0x3eebee(0x220),new _0x290258()),g(this,'_pluginMap',new Map()),(this[_0x3eebee(0x250)]=_0x42ee2c,this[_0x3eebee(0x24c)]=_0x1dda0a,this[_0x3eebee(0x1ec)]=_0x5c2400,this['_commandService']=_0x40827d,this[_0x3eebee(0x1f2)]=_0x744260,this['_permissionService']=_0x523486,this['_selectionProtectionRuleModel']=_0xb24c11,this[_0x3eebee(0x1dd)]=_0x2fb0c5,this['_sidebarService']=_0x565303,this[_0x3eebee(0x1e8)]=_0x3a8b0b,this['_init']());}get['historyUniver'](){const _0x1bfce8=_0x3fffe2;return this['_historyUniver$'][_0x1bfce8(0x260)];}[_0x3fffe2(0x1c8)](){const _0x20cb12=_0x3fffe2;this[_0x20cb12(0x204)](),this['_initPlugins']();}[_0x3fffe2(0x204)](){const _0x557cc0=_0x3fffe2;var _0x4f3fcb;const _0x55c26e=(_0x4f3fcb=this[_0x557cc0(0x1ec)]['getConfig'](V))!=null?_0x4f3fcb:ui,_0x285dd4=document[_0x557cc0(0x205)](_0x55c26e);if(!_0x285dd4)return;const _0x2bfefd=document[_0x557cc0(0x1f6)](_0x557cc0(0x227));_0x2bfefd['id']=d,_0x2bfefd[_0x557cc0(0x268)][_0x557cc0(0x1f7)]=_0x557cc0(0x21c),_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x224)]='absolute',_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x212)]='0',_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x207)]='0',_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x221)]=_0x557cc0(0x24d),_0x2bfefd['style']['height']=_0x557cc0(0x24d),_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x245)]=_0x557cc0(0x1e1),_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x264)]=_0x557cc0(0x265),_0x285dd4[_0x557cc0(0x206)](_0x2bfefd);}[_0x3fffe2(0x1db)](){const _0x48689c=_0x3fffe2;var _0x43a29f;[[_0x18d1cf],[_0x20b316,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3ce7ac,null]]}],[_0x588e2c],[_0xcb9045,{'override':[[_0x484922,null]]}],[_0x104da8,{'hasScroll':!0x1}],[_0x4366fe],[_0x338f11],[_0x3dbe6d,{'notExecuteFormula':!0x0}],[_0x55cef5],[_0x58d69f],[_0x4e34ec],[_0x3a6d1e],[_0x5ef91c],[_0x326fa8],[_0x29c08e],[_0x5a7b03],[_0x3d085e],[_0x287349],[_0xb79ae4],[_0x124ca2],[_0x533435],[_0x11ba6c,{'notExecuteFormula':!0x0}],[_0x367b56,{'workerURL':_0x48689c(0x1d9)}],[_0xfa3114],[_0x5ddb09],[_0x24a351],[_0x4e0759],[_0x2ed0bc],[_0x54288c,{'notExecuteFormula':!0x0}],[_0x30fd52,{'historyListServerUrl':(_0x43a29f=this[_0x48689c(0x1ec)][_0x48689c(0x231)](x))==null?void 0x0:_0x43a29f[_0x48689c(0x25b)]}]][_0x48689c(0x1fe)](([_0x2c1675,_0xba2642])=>this[_0x48689c(0x203)](_0x2c1675,_0xba2642));}[_0x3fffe2(0x1de)](){const _0x13040c=_0x3fffe2;super['dispose'](),this['unMountHistoryContent'](),this['_pluginMap'][_0x13040c(0x1d8)]();}[_0x3fffe2(0x203)](_0x191d57,_0xfda321,_0x3ff1ca){const _0x3d1e4f=_0x3fffe2;if(this[_0x3d1e4f(0x1e4)][_0x3d1e4f(0x1cb)](_0x191d57[_0x3d1e4f(0x218)])&&!_0x3ff1ca)throw new Error(_0x3d1e4f(0x243)+_0x191d57[_0x3d1e4f(0x218)]+_0x3d1e4f(0x241));this[_0x3d1e4f(0x1e4)][_0x3d1e4f(0x235)](_0x191d57[_0x3d1e4f(0x218)],[_0x191d57,_0xfda321]);}['getAllPlugins'](){const _0x1f825c=_0x3fffe2;return Array['from'](this[_0x1f825c(0x1e4)]['values']());}[_0x3fffe2(0x1f4)](_0x4d210b){const _0x2433dc=_0x3fffe2,_0x11e0b5=document['getElementById'](d);_0x11e0b5&&(_0x11e0b5[_0x2433dc(0x1f3)][_0x2433dc(0x264)]='block',this[_0x2433dc(0x1cc)](_0x4d210b,d));}['unMountHistoryContent'](){const _0x417668=_0x3fffe2;var _0x32fc6;this[_0x417668(0x220)][_0x417668(0x1de)](),(_0x32fc6=this[_0x417668(0x1cf)])==null||_0x32fc6['dispose'](),this['_historyUniver$']['next'](null);const _0x3474fa=document[_0x417668(0x205)](d);_0x3474fa&&(_0x3474fa['style']['display']=_0x417668(0x265));}['_initUniver'](_0x19cfe6,_0x1ab3fd){const _0x2ca64f=_0x3fffe2;if(this[_0x2ca64f(0x1cf)])return;const _0x1a3b2d=new _0x49b5cc({'locales':{[this[_0x2ca64f(0x250)][_0x2ca64f(0x209)]()]:this['_localeService'][_0x2ca64f(0x22d)]()},'override':[[_0x414334,{'useClass':_0x36ee5e}]]}),_0x42037f=_0x1a3b2d[_0x2ca64f(0x23c)]();this[_0x2ca64f(0x1fc)](this['_themeService'][_0x2ca64f(0x1f0)][_0x2ca64f(0x23b)](_0x330a51=>{const _0x4366a7=_0x2ca64f;_0x42037f[_0x4366a7(0x21d)](_0x4a43ac)[_0x4366a7(0x247)](_0x330a51);})),this['disposeWithMe'](this[_0x2ca64f(0x1e8)][_0x2ca64f(0x20a)][_0x2ca64f(0x23b)](_0x44e479=>{const _0x5ad672=_0x2ca64f;_0x42037f[_0x5ad672(0x21d)](_0x4a43ac)['setTheme'](_0x44e479);})),_0x42037f[_0x2ca64f(0x21d)](_0x4385bf)[_0x2ca64f(0x24a)](this['_localeService'][_0x2ca64f(0x209)]()),_0x42037f[_0x2ca64f(0x21d)](_0x37cc44)[_0x2ca64f(0x216)](_0x224825,this[_0x2ca64f(0x1ec)]['getConfig'](_0x224825));const _0x2fea11=this[_0x2ca64f(0x1ec)][_0x2ca64f(0x231)](_0x2557ea);_0x2fea11&&_0x1a3b2d[_0x2ca64f(0x203)](_0x2e01fe,{'license':_0x2fea11['ls']}),this[_0x2ca64f(0x1e4)][_0x2ca64f(0x1fe)](([_0x48e14c,_0x60eff8])=>{const _0xaad82c=_0x2ca64f;_0x1a3b2d[_0xaad82c(0x203)](_0x48e14c,_0x60eff8);}),_0x42037f[_0x2ca64f(0x228)](_0x5295e7=>{const _0xdacec7=_0x2ca64f;this[_0xdacec7(0x1d6)](_0x5295e7,_0x19cfe6);}),this[_0x2ca64f(0x1da)][_0x2ca64f(0x219)](_0x1a3b2d);const _0xc3888b=_0x42037f[_0x2ca64f(0x21d)](_0x19821e),_0x59da5a=this[_0x2ca64f(0x263)](_0x19cfe6);_0xc3888b['triggerLoadVersions'](_0x19cfe6,_0x1ab3fd,_0x59da5a);}[_0x3fffe2(0x1d6)](_0x4e2d0a,_0x46836b){const _0x436087=_0x3fffe2,_0x7a6620=_0x4e2d0a[_0x436087(0x21d)](_0x19821e);this[_0x436087(0x220)][_0x436087(0x215)](_0x7a6620['status$'][_0x436087(0x23b)](_0x56c4ca=>{const _0x5aadf1=_0x436087;switch(_0x56c4ca){case _0x22fe1f[_0x5aadf1(0x23d)]:this['_dialogService'][_0x5aadf1(0x21a)](),this[_0x5aadf1(0x239)][_0x5aadf1(0x1ca)]();break;case _0x22fe1f[_0x5aadf1(0x21e)]:this[_0x5aadf1(0x255)]();break;case _0x22fe1f['Error']:this[_0x5aadf1(0x255)](),this[_0x5aadf1(0x1f2)][_0x5aadf1(0x256)]({'content':this[_0x5aadf1(0x250)]['t'](_0x5aadf1(0x1f8)),'type':_0x2c36b3[_0x5aadf1(0x20c)],'duration':0xbb8});break;}})),this[_0x436087(0x220)][_0x436087(0x215)](_0x7a6620[_0x436087(0x22e)][_0x436087(0x23b)](async _0xf20b3=>{const _0x31e8d9=_0x436087;_0xf20b3&&this['_commandService'][_0x31e8d9(0x237)](_0x5174f8['id'],{'unitId':_0x46836b,'revision':_0xf20b3});}));}[_0x3fffe2(0x263)](_0x1befb3){const _0x467fb=_0x3fffe2,_0x4e638a=this[_0x467fb(0x24c)][_0x467fb(0x21b)](_0x1befb3)[_0x467fb(0x23e)]()['map'](_0x36c43f=>_0x36c43f[_0x467fb(0x248)]()),_0x1661f6=new _0x5338ab(_0x1befb3)['id'],_0x32f32b=_0x4e638a[_0x467fb(0x1d7)](_0x18b2e4=>new _0x100b56(_0x1befb3,_0x18b2e4)['id']),_0x464865=_0x4e638a['map'](_0x537d0d=>this['_selectionProtectionRuleModel'][_0x467fb(0x232)](_0x1befb3,_0x537d0d)[_0x467fb(0x1d7)](_0x1b5fe0=>new _0x162fd5(_0x1befb3,_0x537d0d,_0x1b5fe0[_0x467fb(0x21f)])['id']))[_0x467fb(0x22a)](),_0x1b96bd=new _0x4332a4(_0x1befb3)['id'];return this[_0x467fb(0x1cd)][_0x467fb(0x267)]([_0x1661f6,..._0x32f32b,..._0x464865,_0x1b96bd])[_0x467fb(0x1e7)](_0x11185d=>!!_0x11185d[_0x467fb(0x260)]);}};function _0x4530(_0x12b759,_0x1b15fd){const _0x316909=_0x3169();return _0x4530=function(_0x4530fd,_0x32d24d){_0x4530fd=_0x4530fd-0x1c5;let _0x13726c=_0x316909[_0x4530fd];return _0x13726c;},_0x4530(_0x12b759,_0x1b15fd);}f=li([l(0x0,_0x17330e(_0x4385bf)),l(0x1,_0x322d57),l(0x2,_0x37cc44),l(0x3,_0x2bee6f),l(0x4,_0x5d12c6),l(0x5,_0x368a83),l(0x6,_0x17330e(_0x52c522)),l(0x7,_0x17330e(_0x3ce7ac)),l(0x8,_0x17330e(_0x4447d2)),l(0x9,_0x17330e(_0x4a43ac))],f);const b={'id':'univer.operation.toggle-edit-history','type':_0x2b4de2[_0x3fffe2(0x1ef)],'handler':_0x33acc7=>{const _0xa8753d=_0x3fffe2,_0x10bf23=_0x33acc7[_0xa8753d(0x21d)](f),_0x23ce85=_0x33acc7['get'](_0x322d57),{unitId:_0x8f072}=_0x3f8406(_0x23ce85)||{};return _0x8f072?(_0x10bf23[_0xa8753d(0x1f4)](_0x8f072),!0x0):!0x1;}};function hi(_0x3e896f){const _0x3db2ec=_0x3fffe2;return{'id':b['id'],'type':_0x246cb1['BUTTON'],'icon':_0x3db2ec(0x1ea),'tooltip':_0x3db2ec(0x1d3),'hidden$':_0x7e1557(_0x3e896f,_0x5e60c2['UNIVER_SHEET']),'disabled$':_0x1eb9c8(_0x3e896f,{'workbookTypes':[_0x5338ab,_0x2a6598],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x5d4bd6[_0x3fffe2(0x22f)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x3fffe2(0x258)],vi=(_0xdef662,_0x46eaab,_0x2e14df,_0x2dfd6c)=>{for(var _0x5577d1=_0x2dfd6c>0x1?void 0x0:_0x2dfd6c?mi(_0x46eaab,_0x2e14df):_0x46eaab,_0x56908e=_0xdef662['length']-0x1,_0x3c12a2;_0x56908e>=0x0;_0x56908e--)(_0x3c12a2=_0xdef662[_0x56908e])&&(_0x5577d1=_0x3c12a2(_0x5577d1)||_0x5577d1);return _0x5577d1;},m=(_0x37d5a2,_0x3706dd)=>(_0x108807,_0x39561f)=>_0x3706dd(_0x108807,_0x39561f,_0x37d5a2);let p=class extends _0x43c053{constructor(_0x4e510c,_0x384981,_0x511a6e,_0x42b570,_0x54f521,_0x391793,_0x559bf1,_0x52943b){const _0x3f0ab1=_0x3fffe2;super(),g(this,'_revertErrorTimer',null),(this[_0x3f0ab1(0x259)]=_0x4e510c,this[_0x3f0ab1(0x1ce)]=_0x384981,this['_componentManager']=_0x511a6e,this['_historyManagerService']=_0x42b570,this['_localeService']=_0x54f521,this[_0x3f0ab1(0x1f2)]=_0x391793,this[_0x3f0ab1(0x25c)]=_0x559bf1,this[_0x3f0ab1(0x1ed)]=_0x52943b,this['_init']());}[_0x3fffe2(0x1c8)](){const _0x264e3f=_0x3fffe2;[b][_0x264e3f(0x1fe)](_0x34770f=>this['disposeWithMe'](_0x3f4337(this[_0x264e3f(0x259)][_0x264e3f(0x1e5)](_0x34770f)))),this[_0x264e3f(0x1fc)](this[_0x264e3f(0x251)][_0x264e3f(0x1e3)](_0x264e3f(0x1ea),j)),this[_0x264e3f(0x1ce)][_0x264e3f(0x20f)](gi),this['disposeWithMe'](this['_commandService'][_0x264e3f(0x1dc)](_0x2ce494=>{const _0x4edf6a=_0x264e3f;if(_0x2ce494['id']===_0x5174f8['id']){this[_0x4edf6a(0x1f2)][_0x4edf6a(0x256)]({'content':this['_localeService']['t'](_0x4edf6a(0x1f5)),'type':_0x2c36b3[_0x4edf6a(0x244)],'duration':0x1388});const {unitId:_0x438372}=_0x2ce494[_0x4edf6a(0x211)],_0x205613=this['_collaborationController'][_0x4edf6a(0x25f)](_0x438372),_0x17d9ae=_0x11e74c([_0x205613[_0x4edf6a(0x242)]['event$'],_0x205613['state$']])[_0x4edf6a(0x23b)](async([_0x37635b,_0x46025b])=>{const _0x3dc179=_0x4edf6a;var _0x3eb027;_0x37635b[_0x3dc179(0x1c6)]===_0x203e49[_0x3dc179(0x230)]&&(_0x46025b==null?void 0x0:_0x46025b[_0x3dc179(0x240)])===_0x3b72d3[_0x3dc179(0x20b)]&&_0x37635b[_0x3dc179(0x24e)][_0x3dc179(0x1eb)][_0x3dc179(0x252)](_0x20df15=>_0x20df15['id']===_0x5174f8['id'])&&(this[_0x3dc179(0x25e)][_0x3dc179(0x255)](),_0x17d9ae['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x3eb027=this['_localCacheService'])==null?void 0x0:_0x3eb027['exhaustSavingTask']()),setTimeout(()=>window[_0x3dc179(0x1e0)][_0x3dc179(0x214)]()));});this[_0x4edf6a(0x1e2)]=setTimeout(()=>{const _0x528a08=_0x4edf6a;_0x17d9ae[_0x528a08(0x208)](),this['_messageService'][_0x528a08(0x256)]({'content':this[_0x528a08(0x250)]['t'](_0x528a08(0x22c)),'type':_0x2c36b3['Error'],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x2bee6f),m(0x1,_0x5667e1),m(0x2,_0x17330e(_0x2f8faf)),m(0x3,_0x17330e(f)),m(0x4,_0x17330e(_0x4385bf)),m(0x5,_0x5d12c6),m(0x6,_0x17330e(_0x3c3a85)),m(0x7,_0x1ffb0c)],p);var di=Object[_0x3fffe2(0x258)],fi=(_0x1b09f5,_0x317bb3,_0x5d3ff4,_0x577b6e)=>{for(var _0x56290f=_0x577b6e>0x1?void 0x0:_0x577b6e?di(_0x317bb3,_0x5d3ff4):_0x317bb3,_0xe1fce7=_0x1b09f5['length']-0x1,_0x5a4a04;_0xe1fce7>=0x0;_0xe1fce7--)(_0x5a4a04=_0x1b09f5[_0xe1fce7])&&(_0x56290f=_0x5a4a04(_0x56290f)||_0x56290f);return _0x56290f;},R=(_0x18bd9f,_0x554bed)=>(_0x4e97e6,_0x4f1c91)=>_0x554bed(_0x4e97e6,_0x4f1c91,_0x18bd9f);const _i='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let N=(_=class extends _0x337f8f{constructor(_0x107ef1=w,_0x278cb0,_0x5e4a72){const _0x2319e2=_0x3fffe2;super(),this[_0x2319e2(0x1e9)]=_0x107ef1,this[_0x2319e2(0x217)]=_0x278cb0,this[_0x2319e2(0x1ec)]=_0x5e4a72;const {menu:_0x27b9dc,..._0x41e196}=_0x377268({},w,this['_config']);_0x27b9dc&&this[_0x2319e2(0x1ec)][_0x2319e2(0x216)](_0x2319e2(0x25d),_0x27b9dc,{'merge':!0x0}),this[_0x2319e2(0x1ec)]['setConfig'](x,_0x41e196),this[_0x2319e2(0x1e9)]['univerContainerId']&&this['_configService']['setConfig'](V,this[_0x2319e2(0x1e9)][_0x2319e2(0x1f1)]);}[_0x3fffe2(0x24b)](){const _0x4ef541=_0x3fffe2;[[f],[p]][_0x4ef541(0x1fe)](_0x1f1963=>this[_0x4ef541(0x217)][_0x4ef541(0x215)](_0x1f1963));}['onSteady'](){const _0x470962=_0x3fffe2;this[_0x470962(0x217)][_0x470962(0x21d)](p);}},g(_,_0x3fffe2(0x1d2),_0x5e60c2[_0x3fffe2(0x254)]),g(_,_0x3fffe2(0x218),_i),_);N=fi([R(0x1,_0x17330e(_0x4f3144)),R(0x2,_0x37cc44)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x351cdb=_0x3d51;(function(_0x3f7b93,_0x41f8cd){const _0x3bdab4=_0x3d51,_0x74ecd2=_0x3f7b93();while(!![]){try{const _0xd6fffe=-parseInt(_0x3bdab4(0x156))/0x1*(parseInt(_0x3bdab4(0xee))/0x2)+parseInt(_0x3bdab4(0xd1))/0x3+parseInt(_0x3bdab4(0x14c))/0x4*(parseInt(_0x3bdab4(0x128))/0x5)+parseInt(_0x3bdab4(0x136))/0x6+-parseInt(_0x3bdab4(0xc9))/0x7+parseInt(_0x3bdab4(0x12a))/0x8+-parseInt(_0x3bdab4(0xd9))/0x9*(parseInt(_0x3bdab4(0x13a))/0xa);if(_0xd6fffe===_0x41f8cd)break;else _0x74ecd2['push'](_0x74ecd2['shift']());}catch(_0x4b4697){_0x74ecd2['push'](_0x74ecd2['shift']());}}}(_0x2caa,0x34207));var G=Object['defineProperty'],B=(_0x3b2b1b,_0x3f6f95,_0x4a8722)=>_0x3f6f95 in _0x3b2b1b?G(_0x3b2b1b,_0x3f6f95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a8722}):_0x3b2b1b[_0x3f6f95]=_0x4a8722,g=(_0x475a31,_0x401522,_0x2d8f3d)=>B(_0x475a31,typeof _0x401522!=_0x351cdb(0x11f)?_0x401522+'':_0x401522,_0x2d8f3d);import{Inject as _0xb486e7,LocaleService as _0x4683c1,IUniverInstanceService as _0x24c857,IConfigService as _0x37259d,ICommandService as _0x19bbe1,IPermissionService as _0x2a2008,ThemeService as _0x1549b7,Disposable as _0x40d988,DisposableCollection as _0x2e91b5,Univer as _0x542efc,IAuthzIoService as _0x412d1d,CommandType as _0x532fd4,UniverInstanceType as _0x2ff5e7,RxDisposable as _0x20f385,toDisposable as _0x3f4671,Plugin as _0x326fea,merge as _0x4ad89b,Injector as _0x474240}from'@univerjs/core';import{UniverCollaborationPlugin as _0x990d22,RevertRevisionMutation as _0x4c27c1,CollaborationEvent as _0xfbc1ac}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1aadd9,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3d3f3e,CollaborationController as _0x34a71d,ILocalCacheService as _0x38ec81,CollaborationStatus as _0x3f5ee7}from'@univerjs-pro/collaboration-client';import{MessageType as _0x491668}from'@univerjs/design';import{useRef as _0x1d0ab7,createElement as _0x3c1195,forwardRef as _0x2eb21c}from'react';import{IMessageService as _0x2f6aaf,IDialogService as _0x4f4531,ISidebarService as _0x26eb80,UniverUIPlugin as _0x55209f,getMenuHiddenObservable as _0x28a768,MenuItemType as _0x4bcc60,RibbonStartGroup as _0x537ca3,IMenuManagerService as _0x272f8a,ComponentManager as _0x5614e2}from'@univerjs/ui';import{BehaviorSubject as _0x127b30,combineLatest as _0x284725}from'rxjs';import{RangeProtectionRuleModel as _0x437cbf,UniverSheetsPlugin as _0x7b8edd,WorkbookEditablePermission as _0x85c82c,WorksheetEditPermission as _0x2e26b9,RangeProtectionPermissionEditPoint as _0x343c14,WorkbookRecoverHistoryPermission as _0x15dd03,getSheetCommandTarget as _0x539284,WorkbookViewHistoryPermission as _0x474a03}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x4fd57a,HistoryManagerService as _0x21fc62,HistoryModeStatus as _0x4925f1}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x13cf5c,UniverLicensePlugin as _0x504e94}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x2f5375}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x5104c6}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x4ce3b3}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x5da41f}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x23f8dd}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x33e25a}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x23602c,IImageIoService as _0x463d23}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x1c639c}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x2bcfb8}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5e9fda}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x4002c0}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x41a75f}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3eb862}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x225aa6}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5f33cd}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x159690}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0xe41aaf}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2ae1df}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0xf04243}from'@univerjs/sheets-filter';function _0x3d51(_0x67a5f9,_0x1ca80b){const _0x2caa72=_0x2caa();return _0x3d51=function(_0x3d5154,_0x4966f6){_0x3d5154=_0x3d5154-0xbb;let _0x355a23=_0x2caa72[_0x3d5154];return _0x355a23;},_0x3d51(_0x67a5f9,_0x1ca80b);}import{UniverSheetsFilterUIPlugin as _0x53a1b1}from'@univerjs/sheets-filter-ui';function _0x2caa(){const _0x14e7d5=['toString','state$','_configService','path','revertRevision$','historyUniver$','width','OTHERS','editHistory.panel.reverting','[HistoryLoaderService]:\x20Plugin\x20','mountHistoryContent','_permissionService','appendChild','_pluginMap','replace','params','Exited','1967133WKzXya','tag','absolute','invoke','set','show','trim','_themeService','198432oyCbpN','url(#$1','onCommandExecuted','_checkCanRevert','getSheets','composePermission','random','current','87327hPDnzf','zIndex','_localCacheService','http://www.w3.org/2000/svg','triggerLoadVersions','disposeWithMe','mask','Entered','SYNCED','Loading','position','closeAll','createElement','xlink:href','none','dataset','event$','_selectionProtectionRuleModel','historyUniver','substring','map','14mgMvtl','_revertErrorTimer','use','_initPlugins','history-icon','setDarkMode','setTheme','getElementById','permissionId','registerCommand','_init','100%','HistoryIcon','getCurrentLocale','display','_historyManagerService','pluginName','getConfig','_injector','executeCommand','_sidebarService','colorChannel1','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','_collaborationController','attrs','history-icon_clip0_907_281','asObservable','_disposableCollection','unMountHistoryContent','mergeMenu','flat','subscribe','onStarting','idSuffix','M0\x200H16V16H0z','top','clipPath','_commandService','type','has','getSubunitRuleList','_localeService','univer-container','univer.operation.toggle-edit-history','Error','style','_initUniver','_dialogService','symbol','_historyUniver$','\x20has\x20been\x20registered.','entries','_initContainer','_initListener','_messageService','unsubscribe','OPERATION','102515zKXSTx','eventID','1088256pXCnjk','length','editHistory.panel.title','string','status','_menuManagerService','next','exhaustSavingTask','dispose','svg','BUTTON','white','1531170fTTWdk','currentTheme$','add','children','320ykhqBJ','onSteady','session','getOwnPropertyDescriptor','darkMode$','uComp','editHistory.panel.listFetchError','location','setConfig','some','UNIVER_SHEET','close','menu','get','data','forEach','every','div','76AjSogS','edit-history-loader.config','1em','__getInjector','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','CHANGESET_ACK','registerPlugin','fill','includes','displayName','5986rRJZXa','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','getAllPlugins','mutations'];_0x2caa=function(){return _0x14e7d5;};return _0x2caa();}import{UniverSheetsFormulaPlugin as _0x2eb3cd}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0xf4621}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x1a480e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x5cccf7}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x34a8f9}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x59ad46,getCurrentRangeDisable$ as _0x56d943}from'@univerjs/sheets-ui';const x=_0x351cdb(0x14d),w={};function A({ref:_0x2a601c,..._0x2404e1}){const _0x1fb415=_0x351cdb,{icon:_0x14fda8,id:_0x460012,className:_0xf0ed97,extend:_0x428d77,..._0x164e83}=_0x2404e1,_0x3043fa=(_0x1fb415(0x104)+_0x460012+'\x20'+(_0xf0ed97||''))[_0x1fb415(0xcf)](),_0x2346eb=_0x1d0ab7('_'+si());return F(_0x14fda8,''+_0x460012,{'defIds':_0x14fda8['defIds'],'idSuffix':_0x2346eb[_0x1fb415(0xd8)]},{'ref':_0x2a601c,'className':_0x3043fa,..._0x164e83},_0x428d77);}function F(_0x252465,_0x5dd7fb,_0x560097,_0x31ecad,_0x6c8ce0){const _0x23762c=_0x351cdb;return _0x3c1195(_0x252465['tag'],{'key':_0x5dd7fb,...ni(_0x252465,_0x560097,_0x6c8ce0),..._0x31ecad},(oi(_0x252465,_0x560097)[_0x23762c(0x139)]||[])[_0x23762c(0xed)]((_0x26958b,_0x1e715d)=>F(_0x26958b,_0x5dd7fb+'-'+_0x252465[_0x23762c(0xca)]+'-'+_0x1e715d,_0x560097,void 0x0,_0x6c8ce0)));}function ni(_0x3984a2,_0x1f2086,_0x2825f1){const _0x3810eb=_0x351cdb,_0x39b547={..._0x3984a2['attrs']};_0x2825f1!=null&&_0x2825f1[_0x3810eb(0x103)]&&_0x39b547['fill']===_0x3810eb(0x103)&&(_0x39b547[_0x3810eb(0x153)]=_0x2825f1[_0x3810eb(0x103)]),_0x3984a2[_0x3810eb(0xca)]===_0x3810eb(0xdf)&&_0x39b547['id']&&(_0x39b547['id']=_0x39b547['id']+_0x1f2086[_0x3810eb(0x110)]),Object[_0x3810eb(0x122)](_0x39b547)[_0x3810eb(0x149)](([_0x3c8a07,_0x4f8035])=>{const _0x58be79=_0x3810eb;_0x3c8a07===_0x58be79(0xdf)&&typeof _0x4f8035==_0x58be79(0x12d)&&(_0x39b547[_0x3c8a07]=_0x4f8035[_0x58be79(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x1f2086['idSuffix']+')'));});const {defIds:_0x15cb20}=_0x1f2086;return!_0x15cb20||_0x15cb20[_0x3810eb(0x12b)]===0x0||(_0x3984a2[_0x3810eb(0xca)]===_0x3810eb(0xf0)&&_0x39b547['xlink:href']&&(_0x39b547[_0x3810eb(0xe6)]=_0x39b547[_0x3810eb(0xe6)]+_0x1f2086['idSuffix']),Object[_0x3810eb(0x122)](_0x39b547)['forEach'](([_0x178bed,_0x352b6e])=>{const _0x208a83=_0x3810eb;typeof _0x352b6e=='string'&&(_0x39b547[_0x178bed]=_0x352b6e[_0x208a83(0xc6)](/url\(#(.*)\)/,_0x208a83(0xd2)+_0x1f2086['idSuffix']+')'));})),_0x39b547;}function oi(_0x573d6e,_0x4f58ae){const _0x515f1c=_0x351cdb;var _0x41cbe1;const {defIds:_0x20a8a3}=_0x4f58ae;return!_0x20a8a3||_0x20a8a3[_0x515f1c(0x12b)]===0x0?_0x573d6e:_0x573d6e[_0x515f1c(0xca)]==='defs'&&((_0x41cbe1=_0x573d6e[_0x515f1c(0x139)])!=null&&_0x41cbe1[_0x515f1c(0x12b)])?{..._0x573d6e,'children':_0x573d6e[_0x515f1c(0x139)][_0x515f1c(0xed)](_0x43aacb=>typeof _0x43aacb[_0x515f1c(0x107)]['id']==_0x515f1c(0x12d)&&_0x20a8a3&&_0x20a8a3[_0x515f1c(0x154)](_0x43aacb[_0x515f1c(0x107)]['id'])?{..._0x43aacb,'attrs':{..._0x43aacb[_0x515f1c(0x107)],'id':_0x43aacb[_0x515f1c(0x107)]['id']+_0x4f58ae['idSuffix']}}:_0x43aacb)}:_0x573d6e;}function si(){const _0x38dcdb=_0x351cdb;return Math[_0x38dcdb(0xd7)]()[_0x38dcdb(0x15a)](0x24)[_0x38dcdb(0xec)](0x2,0x8);}A[_0x351cdb(0x155)]='UniverIcon';const ai={'tag':_0x351cdb(0x133),'attrs':{'xmlns':_0x351cdb(0xdc),'fill':_0x351cdb(0xe7),'viewBox':'0\x200\x2016\x2016','width':_0x351cdb(0x14e),'height':_0x351cdb(0x14e)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x351cdb(0xbb),'attrs':{'d':_0x351cdb(0x150)}},{'tag':_0x351cdb(0xbb),'attrs':{'d':_0x351cdb(0x157)}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x351cdb(0x113),'attrs':{'id':_0x351cdb(0x108)},'children':[{'tag':'path','attrs':{'fill':_0x351cdb(0x135),'d':_0x351cdb(0x111)}}]}]}],'defIds':[_0x351cdb(0x108)]},j=_0x2eb21c(function(_0x1f300b,_0x4b5d28){const _0x55a2d2=_0x351cdb;return _0x3c1195(A,Object['assign']({},_0x1f300b,{'id':_0x55a2d2(0xf2),'ref':_0x4b5d28,'icon':ai}));});j[_0x351cdb(0x155)]='HistoryIcon';var ci=Object['getOwnPropertyDescriptor'],li=(_0x5ee0e8,_0xadb692,_0x5954bf,_0x42e9fe)=>{for(var _0x4fec2a=_0x42e9fe>0x1?void 0x0:_0x42e9fe?ci(_0xadb692,_0x5954bf):_0xadb692,_0x18251d=_0x5ee0e8['length']-0x1,_0x5e3a6a;_0x18251d>=0x0;_0x18251d--)(_0x5e3a6a=_0x5ee0e8[_0x18251d])&&(_0x4fec2a=_0x5e3a6a(_0x4fec2a)||_0x4fec2a);return _0x4fec2a;},l=(_0x4a758f,_0x24828d)=>(_0x2cd598,_0x160a3a)=>_0x24828d(_0x2cd598,_0x160a3a,_0x4a758f);const ui=_0x351cdb(0x119),V='UNIVER_CONTAINER_ID',d='univer-history-container';let f=class extends _0x40d988{constructor(_0x58b312,_0x2e92c7,_0x4c042b,_0x48c2ea,_0x369383,_0x531985,_0x5b9492,_0x324ac8,_0x52b87c,_0xe61267){const _0x51abe5=_0x351cdb;super(),g(this,'_historyUniver$',new _0x127b30(null)),g(this,_0x51abe5(0xbd),this[_0x51abe5(0x120)][_0x51abe5(0x109)]()),g(this,'_disposableCollection',new _0x2e91b5()),g(this,_0x51abe5(0xc5),new Map()),(this['_localeService']=_0x58b312,this['_univerInstanceService']=_0x2e92c7,this[_0x51abe5(0x15c)]=_0x4c042b,this[_0x51abe5(0x114)]=_0x48c2ea,this[_0x51abe5(0x125)]=_0x369383,this[_0x51abe5(0xc3)]=_0x531985,this[_0x51abe5(0xea)]=_0x5b9492,this['_dialogService']=_0x324ac8,this[_0x51abe5(0x102)]=_0x52b87c,this[_0x51abe5(0xd0)]=_0xe61267,this[_0x51abe5(0xf8)]());}get[_0x351cdb(0xeb)](){return this['_historyUniver$']['value'];}['_init'](){const _0x2331fd=_0x351cdb;this[_0x2331fd(0x123)](),this[_0x2331fd(0xf1)]();}[_0x351cdb(0x123)](){const _0x4648c2=_0x351cdb;var _0x2e8402;const _0x446077=(_0x2e8402=this[_0x4648c2(0x15c)][_0x4648c2(0xff)](V))!=null?_0x2e8402:ui,_0x1b4330=document[_0x4648c2(0xf5)](_0x446077);if(!_0x1b4330)return;const _0x263d58=document[_0x4648c2(0xe5)](_0x4648c2(0x14b));_0x263d58['id']=d,_0x263d58[_0x4648c2(0xe8)][_0x4648c2(0x13f)]='history-container',_0x263d58['style'][_0x4648c2(0xe3)]=_0x4648c2(0xcb),_0x263d58[_0x4648c2(0x11c)][_0x4648c2(0x112)]='0',_0x263d58[_0x4648c2(0x11c)]['left']='0',_0x263d58['style'][_0x4648c2(0xbe)]=_0x4648c2(0xf9),_0x263d58['style']['height']=_0x4648c2(0xf9),_0x263d58[_0x4648c2(0x11c)][_0x4648c2(0xda)]='1000',_0x263d58[_0x4648c2(0x11c)][_0x4648c2(0xfc)]=_0x4648c2(0xe7),_0x1b4330[_0x4648c2(0xc4)](_0x263d58);}[_0x351cdb(0xf1)](){const _0x484f48=_0x351cdb;var _0x1b1943;[[_0x5e9fda],[_0x55209f,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4f4531,null]]}],[_0x4002c0],[_0x23602c,{'override':[[_0x463d23,null]]}],[_0x23f8dd,{'hasScroll':!0x1}],[_0x33e25a],[_0x34a8f9],[_0x7b8edd,{'notExecuteFormula':!0x0}],[_0x59ad46],[_0x2eb3cd],[_0xf4621],[_0x990d22],[_0xf04243],[_0x53a1b1],[_0x3eb862],[_0x225aa6],[_0x1a480e],[_0x5cccf7],[_0x5da41f],[_0x5f33cd],[_0x159690],[_0x2bcfb8,{'notExecuteFormula':!0x0}],[_0x41a75f,{'workerURL':'./worker.js'}],[_0x1c639c],[_0xe41aaf],[_0x2ae1df],[_0x5104c6],[_0x4ce3b3],[_0x2f5375,{'notExecuteFormula':!0x0}],[_0x4fd57a,{'historyListServerUrl':(_0x1b1943=this[_0x484f48(0x15c)][_0x484f48(0xff)](x))==null?void 0x0:_0x1b1943['historyListServerUrl']}]]['forEach'](([_0x186698,_0x298e5d])=>this['registerPlugin'](_0x186698,_0x298e5d));}[_0x351cdb(0x132)](){const _0x53e42f=_0x351cdb;super[_0x53e42f(0x132)](),this['unMountHistoryContent'](),this[_0x53e42f(0xc5)]['clear']();}[_0x351cdb(0x152)](_0xc3edf3,_0x21d7a8,_0x370ca7){const _0x130e43=_0x351cdb;if(this['_pluginMap'][_0x130e43(0x116)](_0xc3edf3[_0x130e43(0xfe)])&&!_0x370ca7)throw new Error(_0x130e43(0xc1)+_0xc3edf3[_0x130e43(0xfe)]+_0x130e43(0x121));this[_0x130e43(0xc5)][_0x130e43(0xcd)](_0xc3edf3[_0x130e43(0xfe)],[_0xc3edf3,_0x21d7a8]);}[_0x351cdb(0x158)](){const _0x1fb04c=_0x351cdb;return Array['from'](this[_0x1fb04c(0xc5)]['values']());}[_0x351cdb(0xc2)](_0x14f8c6){const _0x558968=_0x351cdb,_0xcc6f04=document[_0x558968(0xf5)](d);_0xcc6f04&&(_0xcc6f04[_0x558968(0x11c)][_0x558968(0xfc)]='block',this[_0x558968(0x11d)](_0x14f8c6,d));}[_0x351cdb(0x10b)](){const _0x23202f=_0x351cdb;var _0x4be689;this[_0x23202f(0x10a)][_0x23202f(0x132)](),(_0x4be689=this['historyUniver'])==null||_0x4be689[_0x23202f(0x132)](),this[_0x23202f(0x120)][_0x23202f(0x130)](null);const _0x54bf53=document[_0x23202f(0xf5)](d);_0x54bf53&&(_0x54bf53[_0x23202f(0x11c)][_0x23202f(0xfc)]=_0x23202f(0xe7));}[_0x351cdb(0x11d)](_0x4d0c9d,_0x3d11f0){const _0x5cd6e9=_0x351cdb;if(this[_0x5cd6e9(0xeb)])return;const _0x3956c9=new _0x542efc({'locales':{[this['_localeService'][_0x5cd6e9(0xfb)]()]:this[_0x5cd6e9(0x118)]['getLocales']()},'override':[[_0x412d1d,{'useClass':_0x1aadd9}]]}),_0x5dd808=_0x3956c9[_0x5cd6e9(0x14f)]();this['disposeWithMe'](this['_themeService'][_0x5cd6e9(0x13e)]['subscribe'](_0x4fd3bc=>{const _0x5978bf=_0x5cd6e9;_0x5dd808[_0x5978bf(0x147)](_0x1549b7)[_0x5978bf(0xf3)](_0x4fd3bc);})),this[_0x5cd6e9(0xde)](this['_themeService'][_0x5cd6e9(0x137)][_0x5cd6e9(0x10e)](_0xeb76a=>{const _0x1b7421=_0x5cd6e9;_0x5dd808['get'](_0x1549b7)[_0x1b7421(0xf4)](_0xeb76a);})),_0x5dd808[_0x5cd6e9(0x147)](_0x4683c1)['setLocale'](this['_localeService'][_0x5cd6e9(0xfb)]()),_0x5dd808[_0x5cd6e9(0x147)](_0x37259d)[_0x5cd6e9(0x142)](_0x3d3f3e,this[_0x5cd6e9(0x15c)][_0x5cd6e9(0xff)](_0x3d3f3e));const _0x18008f=this[_0x5cd6e9(0x15c)][_0x5cd6e9(0xff)](_0x13cf5c);_0x18008f&&_0x3956c9[_0x5cd6e9(0x152)](_0x504e94,{'license':_0x18008f['ls']}),this['_pluginMap'][_0x5cd6e9(0x149)](([_0x5f26f2,_0x72f354])=>{const _0x3d6035=_0x5cd6e9;_0x3956c9[_0x3d6035(0x152)](_0x5f26f2,_0x72f354);}),_0x5dd808[_0x5cd6e9(0xcc)](_0x1649d8=>{const _0x4499cf=_0x5cd6e9;this[_0x4499cf(0x124)](_0x1649d8,_0x4d0c9d);}),this[_0x5cd6e9(0x120)]['next'](_0x3956c9);const _0x4ab10b=_0x5dd808[_0x5cd6e9(0x147)](_0x21fc62),_0x2ec3fe=this[_0x5cd6e9(0xd4)](_0x4d0c9d);_0x4ab10b[_0x5cd6e9(0xdd)](_0x4d0c9d,_0x3d11f0,_0x2ec3fe);}[_0x351cdb(0x124)](_0x134f94,_0x214de8){const _0x57a346=_0x351cdb,_0x4a1db3=_0x134f94[_0x57a346(0x147)](_0x21fc62);this[_0x57a346(0x10a)][_0x57a346(0x138)](_0x4a1db3['status$']['subscribe'](_0x339bdb=>{const _0x580f3f=_0x57a346;switch(_0x339bdb){case _0x4925f1[_0x580f3f(0xe0)]:this[_0x580f3f(0x11e)][_0x580f3f(0xe4)](),this[_0x580f3f(0x102)][_0x580f3f(0x145)]();break;case _0x4925f1[_0x580f3f(0xc8)]:this[_0x580f3f(0x10b)]();break;case _0x4925f1[_0x580f3f(0x11b)]:this[_0x580f3f(0x10b)](),this[_0x580f3f(0x125)]['show']({'content':this[_0x580f3f(0x118)]['t'](_0x580f3f(0x140)),'type':_0x491668[_0x580f3f(0x11b)],'duration':0xbb8});break;}})),this[_0x57a346(0x10a)][_0x57a346(0x138)](_0x4a1db3[_0x57a346(0xbc)]['subscribe'](async _0x40f1db=>{const _0x454c8e=_0x57a346;_0x40f1db&&this[_0x454c8e(0x114)][_0x454c8e(0x101)](_0x4c27c1['id'],{'unitId':_0x214de8,'revision':_0x40f1db});}));}[_0x351cdb(0xd4)](_0x158b14){const _0x18bc15=_0x351cdb,_0x3ef0d7=this['_univerInstanceService']['getUnit'](_0x158b14)[_0x18bc15(0xd5)]()[_0x18bc15(0xed)](_0x4b0f62=>_0x4b0f62['getSheetId']()),_0x3031d7=new _0x85c82c(_0x158b14)['id'],_0x3031d1=_0x3ef0d7[_0x18bc15(0xed)](_0x4626ec=>new _0x2e26b9(_0x158b14,_0x4626ec)['id']),_0x46f5f9=_0x3ef0d7[_0x18bc15(0xed)](_0x116234=>this[_0x18bc15(0xea)][_0x18bc15(0x117)](_0x158b14,_0x116234)['map'](_0x3ca356=>new _0x343c14(_0x158b14,_0x116234,_0x3ca356[_0x18bc15(0xf6)])['id']))[_0x18bc15(0x10d)](),_0x50fd3c=new _0x15dd03(_0x158b14)['id'];return this[_0x18bc15(0xc3)][_0x18bc15(0xd6)]([_0x3031d7,..._0x3031d1,..._0x46f5f9,_0x50fd3c])[_0x18bc15(0x14a)](_0x29ead0=>!!_0x29ead0['value']);}};f=li([l(0x0,_0xb486e7(_0x4683c1)),l(0x1,_0x24c857),l(0x2,_0x37259d),l(0x3,_0x19bbe1),l(0x4,_0x2f6aaf),l(0x5,_0x2a2008),l(0x6,_0xb486e7(_0x437cbf)),l(0x7,_0xb486e7(_0x4f4531)),l(0x8,_0xb486e7(_0x26eb80)),l(0x9,_0xb486e7(_0x1549b7))],f);const b={'id':_0x351cdb(0x11a),'type':_0x532fd4[_0x351cdb(0x127)],'handler':_0x32cd4c=>{const _0x56479f=_0x351cdb,_0x49d15e=_0x32cd4c['get'](f),_0xd616aa=_0x32cd4c[_0x56479f(0x147)](_0x24c857),{unitId:_0x299d5f}=_0x539284(_0xd616aa)||{};return _0x299d5f?(_0x49d15e[_0x56479f(0xc2)](_0x299d5f),!0x0):!0x1;}};function hi(_0x4987bb){const _0x566803=_0x351cdb;return{'id':b['id'],'type':_0x4bcc60[_0x566803(0x134)],'icon':'HistoryIcon','tooltip':_0x566803(0x12c),'hidden$':_0x28a768(_0x4987bb,_0x2ff5e7[_0x566803(0x144)]),'disabled$':_0x56d943(_0x4987bb,{'workbookTypes':[_0x85c82c,_0x474a03],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x537ca3[_0x351cdb(0xbf)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x351cdb(0x13d)],vi=(_0xeb6a2e,_0x5e00e8,_0xfe77aa,_0xf1dc24)=>{const _0x308f60=_0x351cdb;for(var _0x281700=_0xf1dc24>0x1?void 0x0:_0xf1dc24?mi(_0x5e00e8,_0xfe77aa):_0x5e00e8,_0x589553=_0xeb6a2e[_0x308f60(0x12b)]-0x1,_0x2b9bda;_0x589553>=0x0;_0x589553--)(_0x2b9bda=_0xeb6a2e[_0x589553])&&(_0x281700=_0x2b9bda(_0x281700)||_0x281700);return _0x281700;},m=(_0x1eb4bf,_0x5f5dce)=>(_0x6b765c,_0x533a54)=>_0x5f5dce(_0x6b765c,_0x533a54,_0x1eb4bf);let p=class extends _0x20f385{constructor(_0x167ca2,_0x2cc4e5,_0x2762ea,_0x50a449,_0x5c82db,_0x1bec75,_0x408ca3,_0x21b251){const _0x5777a6=_0x351cdb;super(),g(this,_0x5777a6(0xef),null),(this[_0x5777a6(0x114)]=_0x167ca2,this[_0x5777a6(0x12f)]=_0x2cc4e5,this['_componentManager']=_0x2762ea,this[_0x5777a6(0xfd)]=_0x50a449,this[_0x5777a6(0x118)]=_0x5c82db,this[_0x5777a6(0x125)]=_0x1bec75,this['_collaborationController']=_0x408ca3,this[_0x5777a6(0xdb)]=_0x21b251,this[_0x5777a6(0xf8)]());}[_0x351cdb(0xf8)](){const _0x1ebd46=_0x351cdb;[b][_0x1ebd46(0x149)](_0x54c286=>this[_0x1ebd46(0xde)](_0x3f4671(this['_commandService'][_0x1ebd46(0xf7)](_0x54c286)))),this[_0x1ebd46(0xde)](this['_componentManager']['register'](_0x1ebd46(0xfa),j)),this[_0x1ebd46(0x12f)][_0x1ebd46(0x10c)](gi),this['disposeWithMe'](this[_0x1ebd46(0x114)][_0x1ebd46(0xd3)](_0x55bec7=>{const _0xc8ea8=_0x1ebd46;if(_0x55bec7['id']===_0x4c27c1['id']){this['_messageService'][_0xc8ea8(0xce)]({'content':this[_0xc8ea8(0x118)]['t'](_0xc8ea8(0xc0)),'type':_0x491668[_0xc8ea8(0xe2)],'duration':0x1388});const {unitId:_0x323802}=_0x55bec7[_0xc8ea8(0xc7)],_0x252f5e=this[_0xc8ea8(0x106)]['getCollabEntity'](_0x323802),_0xc00e33=_0x284725([_0x252f5e[_0xc8ea8(0x13c)][_0xc8ea8(0xe9)],_0x252f5e[_0xc8ea8(0x15b)]])[_0xc8ea8(0x10e)](async([_0x495744,_0x14efa6])=>{const _0x4fcaed=_0xc8ea8;var _0x53391f;_0x495744[_0x4fcaed(0x129)]===_0xfbc1ac[_0x4fcaed(0x151)]&&(_0x14efa6==null?void 0x0:_0x14efa6[_0x4fcaed(0x12e)])===_0x3f5ee7[_0x4fcaed(0xe1)]&&_0x495744[_0x4fcaed(0x148)][_0x4fcaed(0x159)][_0x4fcaed(0x143)](_0x3482f0=>_0x3482f0['id']===_0x4c27c1['id'])&&(this[_0x4fcaed(0xfd)]['unMountHistoryContent'](),_0xc00e33[_0x4fcaed(0x126)](),this[_0x4fcaed(0xef)]&&clearTimeout(this['_revertErrorTimer']),await((_0x53391f=this[_0x4fcaed(0xdb)])==null?void 0x0:_0x53391f[_0x4fcaed(0x131)]()),setTimeout(()=>window[_0x4fcaed(0x141)]['reload']()));});this[_0xc8ea8(0xef)]=setTimeout(()=>{const _0x9dc8fc=_0xc8ea8;_0xc00e33[_0x9dc8fc(0x126)](),this['_messageService']['show']({'content':this[_0x9dc8fc(0x118)]['t']('editHistory.panel.revertFailed'),'type':_0x491668[_0x9dc8fc(0x11b)],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x19bbe1),m(0x1,_0x272f8a),m(0x2,_0xb486e7(_0x5614e2)),m(0x3,_0xb486e7(f)),m(0x4,_0xb486e7(_0x4683c1)),m(0x5,_0x2f6aaf),m(0x6,_0xb486e7(_0x34a71d)),m(0x7,_0x38ec81)],p);var di=Object[_0x351cdb(0x13d)],fi=(_0x47e5e0,_0x3b7f7e,_0x61e863,_0x4c602a)=>{for(var _0xfabad1=_0x4c602a>0x1?void 0x0:_0x4c602a?di(_0x3b7f7e,_0x61e863):_0x3b7f7e,_0x48261a=_0x47e5e0['length']-0x1,_0x4cad34;_0x48261a>=0x0;_0x48261a--)(_0x4cad34=_0x47e5e0[_0x48261a])&&(_0xfabad1=_0x4cad34(_0xfabad1)||_0xfabad1);return _0xfabad1;},R=(_0x34a3dc,_0x1ff57a)=>(_0x58bb04,_0x3a65d4)=>_0x1ff57a(_0x58bb04,_0x3a65d4,_0x34a3dc);const _i='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let N=(_=class extends _0x326fea{constructor(_0x380d03=w,_0x5af1db,_0x262a7d){const _0x382a79=_0x351cdb;super(),this['_config']=_0x380d03,this[_0x382a79(0x100)]=_0x5af1db,this[_0x382a79(0x15c)]=_0x262a7d;const {menu:_0x332137,..._0x3b36dc}=_0x4ad89b({},w,this['_config']);_0x332137&&this[_0x382a79(0x15c)]['setConfig'](_0x382a79(0x146),_0x332137,{'merge':!0x0}),this[_0x382a79(0x15c)][_0x382a79(0x142)](x,_0x3b36dc),this['_config']['univerContainerId']&&this['_configService'][_0x382a79(0x142)](V,this['_config']['univerContainerId']);}[_0x351cdb(0x10f)](){const _0x297256=_0x351cdb;[[f],[p]][_0x297256(0x149)](_0x45e500=>this[_0x297256(0x100)][_0x297256(0x138)](_0x45e500));}[_0x351cdb(0x13b)](){const _0x57a7cd=_0x351cdb;this[_0x57a7cd(0x100)][_0x57a7cd(0x147)](p);}},g(_,_0x351cdb(0x115),_0x2ff5e7[_0x351cdb(0x105)]),g(_,_0x351cdb(0xfe),_i),_);N=fi([R(0x1,_0xb486e7(_0x474240)),R(0x2,_0x37259d)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
1
+ const _0x3fffe2=_0x4530;(function(_0x2fdd03,_0x44ec8b){const _0x55c8f5=_0x4530,_0x37a187=_0x2fdd03();while(!![]){try{const _0x7f0a78=parseInt(_0x55c8f5(0x261))/0x1+-parseInt(_0x55c8f5(0x202))/0x2*(parseInt(_0x55c8f5(0x262))/0x3)+-parseInt(_0x55c8f5(0x1c5))/0x4*(-parseInt(_0x55c8f5(0x238))/0x5)+-parseInt(_0x55c8f5(0x233))/0x6+-parseInt(_0x55c8f5(0x1fa))/0x7+parseInt(_0x55c8f5(0x253))/0x8+parseInt(_0x55c8f5(0x1d0))/0x9*(parseInt(_0x55c8f5(0x1df))/0xa);if(_0x7f0a78===_0x44ec8b)break;else _0x37a187['push'](_0x37a187['shift']());}catch(_0x5a4fbd){_0x37a187['push'](_0x37a187['shift']());}}}(_0x3169,0xa27dd));var G=Object['defineProperty'],B=(_0x324a60,_0x42a874,_0x26397a)=>_0x42a874 in _0x324a60?G(_0x324a60,_0x42a874,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26397a}):_0x324a60[_0x42a874]=_0x26397a,g=(_0x13f6e5,_0xcbf711,_0x223c3e)=>B(_0x13f6e5,typeof _0xcbf711!=_0x3fffe2(0x1ff)?_0xcbf711+'':_0xcbf711,_0x223c3e);import{Inject as _0x17330e,LocaleService as _0x4385bf,IUniverInstanceService as _0x322d57,IConfigService as _0x37cc44,ICommandService as _0x2bee6f,IPermissionService as _0x368a83,ThemeService as _0x4a43ac,Disposable as _0x36061d,DisposableCollection as _0x290258,Univer as _0x49b5cc,IAuthzIoService as _0x414334,CommandType as _0x2b4de2,UniverInstanceType as _0x5e60c2,RxDisposable as _0x43c053,toDisposable as _0x3f4337,Plugin as _0x337f8f,merge as _0x377268,Injector as _0x4f3144}from'@univerjs/core';import{UniverCollaborationPlugin as _0x3a6d1e,RevertRevisionMutation as _0x5174f8,CollaborationEvent as _0x203e49}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x36ee5e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x224825,CollaborationController as _0x3c3a85,ILocalCacheService as _0x1ffb0c,CollaborationStatus as _0x3b72d3}from'@univerjs-pro/collaboration-client';import{MessageType as _0x2c36b3}from'@univerjs/design';import{useRef as _0x1edfb8,createElement as _0x50624c,forwardRef as _0x54a7df}from'react';import{IMessageService as _0x5d12c6,IDialogService as _0x3ce7ac,ISidebarService as _0x4447d2,UniverUIPlugin as _0x20b316,getMenuHiddenObservable as _0x7e1557,MenuItemType as _0x246cb1,RibbonStartGroup as _0x5d4bd6,IMenuManagerService as _0x5667e1,ComponentManager as _0x2f8faf}from'@univerjs/ui';import{BehaviorSubject as _0x4cc219,combineLatest as _0x11e74c}from'rxjs';import{RangeProtectionRuleModel as _0x52c522,UniverSheetsPlugin as _0x3dbe6d,WorkbookEditablePermission as _0x5338ab,WorksheetEditPermission as _0x100b56,RangeProtectionPermissionEditPoint as _0x162fd5,WorkbookRecoverHistoryPermission as _0x4332a4,getSheetCommandTarget as _0x3f8406,WorkbookViewHistoryPermission as _0x2a6598}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x30fd52,HistoryManagerService as _0x19821e,HistoryModeStatus as _0x22fe1f}from'@univerjs-pro/edit-history-viewer';function _0x3169(){const _0x315aaf=['permissionId','_disposableCollection','width','use','colorChannel1','position','attrs','substring','div','invoke','M0\x200H16V16H0z','flat','history-icon','editHistory.panel.revertFailed','getLocales','revertRevision$','OTHERS','CHANGESET_ACK','getConfig','getSubunitRuleList','259908jbDZXP','string','set','univerjs-icon\x20univerjs-icon-','executeCommand','6015rRzDpE','_sidebarService','idSuffix','subscribe','__getInjector','Entered','getSheets','xlink:href','status','\x20has\x20been\x20registered.','session','[HistoryLoaderService]:\x20Plugin\x20','Loading','zIndex','currentColor','setDarkMode','getSheetId','clipPath','setLocale','onStarting','_univerInstanceService','100%','data','length','_localeService','_componentManager','some','6897424IFPQiK','UNIVER_UNKNOWN','unMountHistoryContent','show','includes','getOwnPropertyDescriptor','_commandService','historyUniver$','historyListServerUrl','_collaborationController','menu','_historyManagerService','getCollabEntity','value','656632AqnasX','1847295TlLyLB','_checkCanRevert','display','none','defIds','composePermission','dataset','1604BNsjlu','eventID','defs','_init','path','close','has','_initUniver','_permissionService','_menuManagerService','historyUniver','1062qsSyWi','white','type','editHistory.panel.title','entries','mask','_initListener','map','clear','./worker.js','_historyUniver$','_initPlugins','onCommandExecuted','_dialogService','dispose','32790bjgAIA','location','1000','_revertErrorTimer','register','_pluginMap','registerCommand','fill','every','_themeService','_config','HistoryIcon','mutations','_configService','_localCacheService','univer-container','OPERATION','darkMode$','univerContainerId','_messageService','style','mountHistoryContent','editHistory.panel.reverting','createElement','uComp','editHistory.panel.listFetchError','displayName','7444409LcvuxB','children','disposeWithMe','1em','forEach','symbol','replace','history-icon_clip0_907_281','2KJMPvn','registerPlugin','_initContainer','getElementById','appendChild','left','unsubscribe','getCurrentLocale','currentTheme$','SYNCED','Error','UniverIcon','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','mergeMenu','tag','params','top','edit-history-loader.config','reload','add','setConfig','_injector','pluginName','next','closeAll','getUnit','history-container','get','Exited'];_0x3169=function(){return _0x315aaf;};return _0x3169();}import{LS_CONFIG_KEY as _0x2557ea,UniverLicensePlugin as _0x2e01fe}from'@univerjs-pro/license';import{UniverSheetsPivotTablePlugin as _0x54288c}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x4e0759}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x2ed0bc}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0xb79ae4}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x104da8}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x4366fe}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0xcb9045,IImageIoService as _0x484922}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xfa3114}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x11ba6c}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x18d1cf}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x588e2c}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x367b56}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x29c08e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x5a7b03}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x124ca2}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x533435}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x5ddb09}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x24a351}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x5ef91c}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x326fa8}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x58d69f}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x4e34ec}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x3d085e}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x287349}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x338f11}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x55cef5,getCurrentRangeDisable$ as _0x1eb9c8}from'@univerjs/sheets-ui';const x=_0x3fffe2(0x213),w={};function A({ref:_0x4004e5,..._0x350f0c}){const _0x2ae1c6=_0x3fffe2,{icon:_0x100a61,id:_0x298bd8,className:_0x183a49,extend:_0x271f79,..._0x3c80c3}=_0x350f0c,_0x184291=(_0x2ae1c6(0x236)+_0x298bd8+'\x20'+(_0x183a49||''))['trim'](),_0x43fd63=_0x1edfb8('_'+si());return F(_0x100a61,''+_0x298bd8,{'defIds':_0x100a61[_0x2ae1c6(0x266)],'idSuffix':_0x43fd63['current']},{'ref':_0x4004e5,'className':_0x184291,..._0x3c80c3},_0x271f79);}function F(_0x898868,_0x331335,_0x172caa,_0x5f0484,_0x35e284){const _0x5687f6=_0x3fffe2;return _0x50624c(_0x898868['tag'],{'key':_0x331335,...ni(_0x898868,_0x172caa,_0x35e284),..._0x5f0484},(oi(_0x898868,_0x172caa)[_0x5687f6(0x1fb)]||[])[_0x5687f6(0x1d7)]((_0x7c85c4,_0x17ddc3)=>F(_0x7c85c4,_0x331335+'-'+_0x898868[_0x5687f6(0x210)]+'-'+_0x17ddc3,_0x172caa,void 0x0,_0x35e284)));}function ni(_0xe886c4,_0x3bb9da,_0x31eeef){const _0x47ec8c=_0x3fffe2,_0x27a19b={..._0xe886c4['attrs']};_0x31eeef!=null&&_0x31eeef['colorChannel1']&&_0x27a19b[_0x47ec8c(0x1e6)]===_0x47ec8c(0x223)&&(_0x27a19b['fill']=_0x31eeef['colorChannel1']),_0xe886c4[_0x47ec8c(0x210)]===_0x47ec8c(0x1d5)&&_0x27a19b['id']&&(_0x27a19b['id']=_0x27a19b['id']+_0x3bb9da[_0x47ec8c(0x23a)]),Object[_0x47ec8c(0x1d4)](_0x27a19b)[_0x47ec8c(0x1fe)](([_0x1dcadc,_0xa1b60f])=>{const _0x4f59c3=_0x47ec8c;_0x1dcadc===_0x4f59c3(0x1d5)&&typeof _0xa1b60f=='string'&&(_0x27a19b[_0x1dcadc]=_0xa1b60f['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3bb9da[_0x4f59c3(0x23a)]+')'));});const {defIds:_0x2e2478}=_0x3bb9da;return!_0x2e2478||_0x2e2478[_0x47ec8c(0x24f)]===0x0||(_0xe886c4[_0x47ec8c(0x210)]===_0x47ec8c(0x222)&&_0x27a19b[_0x47ec8c(0x23f)]&&(_0x27a19b[_0x47ec8c(0x23f)]=_0x27a19b[_0x47ec8c(0x23f)]+_0x3bb9da[_0x47ec8c(0x23a)]),Object['entries'](_0x27a19b)[_0x47ec8c(0x1fe)](([_0x2af143,_0x131b2b])=>{const _0x5e579e=_0x47ec8c;typeof _0x131b2b=='string'&&(_0x27a19b[_0x2af143]=_0x131b2b[_0x5e579e(0x200)](/url\(#(.*)\)/,'url(#$1'+_0x3bb9da['idSuffix']+')'));})),_0x27a19b;}function oi(_0x2b4d74,_0x2ffb98){const _0xa8ab4f=_0x3fffe2;var _0x2f70f1;const {defIds:_0x2b6d18}=_0x2ffb98;return!_0x2b6d18||_0x2b6d18[_0xa8ab4f(0x24f)]===0x0?_0x2b4d74:_0x2b4d74['tag']===_0xa8ab4f(0x1c7)&&((_0x2f70f1=_0x2b4d74['children'])!=null&&_0x2f70f1[_0xa8ab4f(0x24f)])?{..._0x2b4d74,'children':_0x2b4d74[_0xa8ab4f(0x1fb)][_0xa8ab4f(0x1d7)](_0x2769c0=>typeof _0x2769c0['attrs']['id']==_0xa8ab4f(0x234)&&_0x2b6d18&&_0x2b6d18[_0xa8ab4f(0x257)](_0x2769c0[_0xa8ab4f(0x225)]['id'])?{..._0x2769c0,'attrs':{..._0x2769c0[_0xa8ab4f(0x225)],'id':_0x2769c0[_0xa8ab4f(0x225)]['id']+_0x2ffb98[_0xa8ab4f(0x23a)]}}:_0x2769c0)}:_0x2b4d74;}function si(){const _0x310dd8=_0x3fffe2;return Math['random']()['toString'](0x24)[_0x310dd8(0x226)](0x2,0x8);}A['displayName']=_0x3fffe2(0x20d);const ai={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3fffe2(0x265),'viewBox':'0\x200\x2016\x2016','width':_0x3fffe2(0x1fd),'height':_0x3fffe2(0x1fd)},'children':[{'tag':'g','attrs':{'fill':_0x3fffe2(0x246),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x3fffe2(0x1c9),'attrs':{'d':_0x3fffe2(0x20e)}},{'tag':_0x3fffe2(0x1c9),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3fffe2(0x249),'attrs':{'id':_0x3fffe2(0x201)},'children':[{'tag':'path','attrs':{'fill':_0x3fffe2(0x1d1),'d':_0x3fffe2(0x229)}}]}]}],'defIds':[_0x3fffe2(0x201)]},j=_0x54a7df(function(_0x1130b1,_0x1dd179){const _0x15b40b=_0x3fffe2;return _0x50624c(A,Object['assign']({},_0x1130b1,{'id':_0x15b40b(0x22b),'ref':_0x1dd179,'icon':ai}));});j[_0x3fffe2(0x1f9)]=_0x3fffe2(0x1ea);var ci=Object['getOwnPropertyDescriptor'],li=(_0x1b465f,_0x41cda3,_0x37d30b,_0x4decec)=>{const _0x1d96e9=_0x3fffe2;for(var _0x83d6e1=_0x4decec>0x1?void 0x0:_0x4decec?ci(_0x41cda3,_0x37d30b):_0x41cda3,_0x513ae7=_0x1b465f[_0x1d96e9(0x24f)]-0x1,_0x56898a;_0x513ae7>=0x0;_0x513ae7--)(_0x56898a=_0x1b465f[_0x513ae7])&&(_0x83d6e1=_0x56898a(_0x83d6e1)||_0x83d6e1);return _0x83d6e1;},l=(_0x115d33,_0x72d3c9)=>(_0x54fb37,_0x2c391a)=>_0x72d3c9(_0x54fb37,_0x2c391a,_0x115d33);const ui=_0x3fffe2(0x1ee),V='UNIVER_CONTAINER_ID',d='univer-history-container';let f=class extends _0x36061d{constructor(_0x42ee2c,_0x1dda0a,_0x5c2400,_0x40827d,_0x744260,_0x523486,_0xb24c11,_0x2fb0c5,_0x565303,_0x3a8b0b){const _0x3eebee=_0x3fffe2;super(),g(this,_0x3eebee(0x1da),new _0x4cc219(null)),g(this,_0x3eebee(0x25a),this[_0x3eebee(0x1da)]['asObservable']()),g(this,_0x3eebee(0x220),new _0x290258()),g(this,'_pluginMap',new Map()),(this[_0x3eebee(0x250)]=_0x42ee2c,this[_0x3eebee(0x24c)]=_0x1dda0a,this[_0x3eebee(0x1ec)]=_0x5c2400,this['_commandService']=_0x40827d,this[_0x3eebee(0x1f2)]=_0x744260,this['_permissionService']=_0x523486,this['_selectionProtectionRuleModel']=_0xb24c11,this[_0x3eebee(0x1dd)]=_0x2fb0c5,this['_sidebarService']=_0x565303,this[_0x3eebee(0x1e8)]=_0x3a8b0b,this['_init']());}get['historyUniver'](){const _0x1bfce8=_0x3fffe2;return this['_historyUniver$'][_0x1bfce8(0x260)];}[_0x3fffe2(0x1c8)](){const _0x20cb12=_0x3fffe2;this[_0x20cb12(0x204)](),this['_initPlugins']();}[_0x3fffe2(0x204)](){const _0x557cc0=_0x3fffe2;var _0x4f3fcb;const _0x55c26e=(_0x4f3fcb=this[_0x557cc0(0x1ec)]['getConfig'](V))!=null?_0x4f3fcb:ui,_0x285dd4=document[_0x557cc0(0x205)](_0x55c26e);if(!_0x285dd4)return;const _0x2bfefd=document[_0x557cc0(0x1f6)](_0x557cc0(0x227));_0x2bfefd['id']=d,_0x2bfefd[_0x557cc0(0x268)][_0x557cc0(0x1f7)]=_0x557cc0(0x21c),_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x224)]='absolute',_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x212)]='0',_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x207)]='0',_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x221)]=_0x557cc0(0x24d),_0x2bfefd['style']['height']=_0x557cc0(0x24d),_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x245)]=_0x557cc0(0x1e1),_0x2bfefd[_0x557cc0(0x1f3)][_0x557cc0(0x264)]=_0x557cc0(0x265),_0x285dd4[_0x557cc0(0x206)](_0x2bfefd);}[_0x3fffe2(0x1db)](){const _0x48689c=_0x3fffe2;var _0x43a29f;[[_0x18d1cf],[_0x20b316,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3ce7ac,null]]}],[_0x588e2c],[_0xcb9045,{'override':[[_0x484922,null]]}],[_0x104da8,{'hasScroll':!0x1}],[_0x4366fe],[_0x338f11],[_0x3dbe6d,{'notExecuteFormula':!0x0}],[_0x55cef5],[_0x58d69f],[_0x4e34ec],[_0x3a6d1e],[_0x5ef91c],[_0x326fa8],[_0x29c08e],[_0x5a7b03],[_0x3d085e],[_0x287349],[_0xb79ae4],[_0x124ca2],[_0x533435],[_0x11ba6c,{'notExecuteFormula':!0x0}],[_0x367b56,{'workerURL':_0x48689c(0x1d9)}],[_0xfa3114],[_0x5ddb09],[_0x24a351],[_0x4e0759],[_0x2ed0bc],[_0x54288c,{'notExecuteFormula':!0x0}],[_0x30fd52,{'historyListServerUrl':(_0x43a29f=this[_0x48689c(0x1ec)][_0x48689c(0x231)](x))==null?void 0x0:_0x43a29f[_0x48689c(0x25b)]}]][_0x48689c(0x1fe)](([_0x2c1675,_0xba2642])=>this[_0x48689c(0x203)](_0x2c1675,_0xba2642));}[_0x3fffe2(0x1de)](){const _0x13040c=_0x3fffe2;super['dispose'](),this['unMountHistoryContent'](),this['_pluginMap'][_0x13040c(0x1d8)]();}[_0x3fffe2(0x203)](_0x191d57,_0xfda321,_0x3ff1ca){const _0x3d1e4f=_0x3fffe2;if(this[_0x3d1e4f(0x1e4)][_0x3d1e4f(0x1cb)](_0x191d57[_0x3d1e4f(0x218)])&&!_0x3ff1ca)throw new Error(_0x3d1e4f(0x243)+_0x191d57[_0x3d1e4f(0x218)]+_0x3d1e4f(0x241));this[_0x3d1e4f(0x1e4)][_0x3d1e4f(0x235)](_0x191d57[_0x3d1e4f(0x218)],[_0x191d57,_0xfda321]);}['getAllPlugins'](){const _0x1f825c=_0x3fffe2;return Array['from'](this[_0x1f825c(0x1e4)]['values']());}[_0x3fffe2(0x1f4)](_0x4d210b){const _0x2433dc=_0x3fffe2,_0x11e0b5=document['getElementById'](d);_0x11e0b5&&(_0x11e0b5[_0x2433dc(0x1f3)][_0x2433dc(0x264)]='block',this[_0x2433dc(0x1cc)](_0x4d210b,d));}['unMountHistoryContent'](){const _0x417668=_0x3fffe2;var _0x32fc6;this[_0x417668(0x220)][_0x417668(0x1de)](),(_0x32fc6=this[_0x417668(0x1cf)])==null||_0x32fc6['dispose'](),this['_historyUniver$']['next'](null);const _0x3474fa=document[_0x417668(0x205)](d);_0x3474fa&&(_0x3474fa['style']['display']=_0x417668(0x265));}['_initUniver'](_0x19cfe6,_0x1ab3fd){const _0x2ca64f=_0x3fffe2;if(this[_0x2ca64f(0x1cf)])return;const _0x1a3b2d=new _0x49b5cc({'locales':{[this[_0x2ca64f(0x250)][_0x2ca64f(0x209)]()]:this['_localeService'][_0x2ca64f(0x22d)]()},'override':[[_0x414334,{'useClass':_0x36ee5e}]]}),_0x42037f=_0x1a3b2d[_0x2ca64f(0x23c)]();this[_0x2ca64f(0x1fc)](this['_themeService'][_0x2ca64f(0x1f0)][_0x2ca64f(0x23b)](_0x330a51=>{const _0x4366a7=_0x2ca64f;_0x42037f[_0x4366a7(0x21d)](_0x4a43ac)[_0x4366a7(0x247)](_0x330a51);})),this['disposeWithMe'](this[_0x2ca64f(0x1e8)][_0x2ca64f(0x20a)][_0x2ca64f(0x23b)](_0x44e479=>{const _0x5ad672=_0x2ca64f;_0x42037f[_0x5ad672(0x21d)](_0x4a43ac)['setTheme'](_0x44e479);})),_0x42037f[_0x2ca64f(0x21d)](_0x4385bf)[_0x2ca64f(0x24a)](this['_localeService'][_0x2ca64f(0x209)]()),_0x42037f[_0x2ca64f(0x21d)](_0x37cc44)[_0x2ca64f(0x216)](_0x224825,this[_0x2ca64f(0x1ec)]['getConfig'](_0x224825));const _0x2fea11=this[_0x2ca64f(0x1ec)][_0x2ca64f(0x231)](_0x2557ea);_0x2fea11&&_0x1a3b2d[_0x2ca64f(0x203)](_0x2e01fe,{'license':_0x2fea11['ls']}),this[_0x2ca64f(0x1e4)][_0x2ca64f(0x1fe)](([_0x48e14c,_0x60eff8])=>{const _0xaad82c=_0x2ca64f;_0x1a3b2d[_0xaad82c(0x203)](_0x48e14c,_0x60eff8);}),_0x42037f[_0x2ca64f(0x228)](_0x5295e7=>{const _0xdacec7=_0x2ca64f;this[_0xdacec7(0x1d6)](_0x5295e7,_0x19cfe6);}),this[_0x2ca64f(0x1da)][_0x2ca64f(0x219)](_0x1a3b2d);const _0xc3888b=_0x42037f[_0x2ca64f(0x21d)](_0x19821e),_0x59da5a=this[_0x2ca64f(0x263)](_0x19cfe6);_0xc3888b['triggerLoadVersions'](_0x19cfe6,_0x1ab3fd,_0x59da5a);}[_0x3fffe2(0x1d6)](_0x4e2d0a,_0x46836b){const _0x436087=_0x3fffe2,_0x7a6620=_0x4e2d0a[_0x436087(0x21d)](_0x19821e);this[_0x436087(0x220)][_0x436087(0x215)](_0x7a6620['status$'][_0x436087(0x23b)](_0x56c4ca=>{const _0x5aadf1=_0x436087;switch(_0x56c4ca){case _0x22fe1f[_0x5aadf1(0x23d)]:this['_dialogService'][_0x5aadf1(0x21a)](),this[_0x5aadf1(0x239)][_0x5aadf1(0x1ca)]();break;case _0x22fe1f[_0x5aadf1(0x21e)]:this[_0x5aadf1(0x255)]();break;case _0x22fe1f['Error']:this[_0x5aadf1(0x255)](),this[_0x5aadf1(0x1f2)][_0x5aadf1(0x256)]({'content':this[_0x5aadf1(0x250)]['t'](_0x5aadf1(0x1f8)),'type':_0x2c36b3[_0x5aadf1(0x20c)],'duration':0xbb8});break;}})),this[_0x436087(0x220)][_0x436087(0x215)](_0x7a6620[_0x436087(0x22e)][_0x436087(0x23b)](async _0xf20b3=>{const _0x31e8d9=_0x436087;_0xf20b3&&this['_commandService'][_0x31e8d9(0x237)](_0x5174f8['id'],{'unitId':_0x46836b,'revision':_0xf20b3});}));}[_0x3fffe2(0x263)](_0x1befb3){const _0x467fb=_0x3fffe2,_0x4e638a=this[_0x467fb(0x24c)][_0x467fb(0x21b)](_0x1befb3)[_0x467fb(0x23e)]()['map'](_0x36c43f=>_0x36c43f[_0x467fb(0x248)]()),_0x1661f6=new _0x5338ab(_0x1befb3)['id'],_0x32f32b=_0x4e638a[_0x467fb(0x1d7)](_0x18b2e4=>new _0x100b56(_0x1befb3,_0x18b2e4)['id']),_0x464865=_0x4e638a['map'](_0x537d0d=>this['_selectionProtectionRuleModel'][_0x467fb(0x232)](_0x1befb3,_0x537d0d)[_0x467fb(0x1d7)](_0x1b5fe0=>new _0x162fd5(_0x1befb3,_0x537d0d,_0x1b5fe0[_0x467fb(0x21f)])['id']))[_0x467fb(0x22a)](),_0x1b96bd=new _0x4332a4(_0x1befb3)['id'];return this[_0x467fb(0x1cd)][_0x467fb(0x267)]([_0x1661f6,..._0x32f32b,..._0x464865,_0x1b96bd])[_0x467fb(0x1e7)](_0x11185d=>!!_0x11185d[_0x467fb(0x260)]);}};function _0x4530(_0x12b759,_0x1b15fd){const _0x316909=_0x3169();return _0x4530=function(_0x4530fd,_0x32d24d){_0x4530fd=_0x4530fd-0x1c5;let _0x13726c=_0x316909[_0x4530fd];return _0x13726c;},_0x4530(_0x12b759,_0x1b15fd);}f=li([l(0x0,_0x17330e(_0x4385bf)),l(0x1,_0x322d57),l(0x2,_0x37cc44),l(0x3,_0x2bee6f),l(0x4,_0x5d12c6),l(0x5,_0x368a83),l(0x6,_0x17330e(_0x52c522)),l(0x7,_0x17330e(_0x3ce7ac)),l(0x8,_0x17330e(_0x4447d2)),l(0x9,_0x17330e(_0x4a43ac))],f);const b={'id':'univer.operation.toggle-edit-history','type':_0x2b4de2[_0x3fffe2(0x1ef)],'handler':_0x33acc7=>{const _0xa8753d=_0x3fffe2,_0x10bf23=_0x33acc7[_0xa8753d(0x21d)](f),_0x23ce85=_0x33acc7['get'](_0x322d57),{unitId:_0x8f072}=_0x3f8406(_0x23ce85)||{};return _0x8f072?(_0x10bf23[_0xa8753d(0x1f4)](_0x8f072),!0x0):!0x1;}};function hi(_0x3e896f){const _0x3db2ec=_0x3fffe2;return{'id':b['id'],'type':_0x246cb1['BUTTON'],'icon':_0x3db2ec(0x1ea),'tooltip':_0x3db2ec(0x1d3),'hidden$':_0x7e1557(_0x3e896f,_0x5e60c2['UNIVER_SHEET']),'disabled$':_0x1eb9c8(_0x3e896f,{'workbookTypes':[_0x5338ab,_0x2a6598],'worksheetTypes':[],'rangeTypes':[]})};}const gi={[_0x5d4bd6[_0x3fffe2(0x22f)]]:{[b['id']]:{'order':0.2,'menuItemFactory':hi}}};var mi=Object[_0x3fffe2(0x258)],vi=(_0xdef662,_0x46eaab,_0x2e14df,_0x2dfd6c)=>{for(var _0x5577d1=_0x2dfd6c>0x1?void 0x0:_0x2dfd6c?mi(_0x46eaab,_0x2e14df):_0x46eaab,_0x56908e=_0xdef662['length']-0x1,_0x3c12a2;_0x56908e>=0x0;_0x56908e--)(_0x3c12a2=_0xdef662[_0x56908e])&&(_0x5577d1=_0x3c12a2(_0x5577d1)||_0x5577d1);return _0x5577d1;},m=(_0x37d5a2,_0x3706dd)=>(_0x108807,_0x39561f)=>_0x3706dd(_0x108807,_0x39561f,_0x37d5a2);let p=class extends _0x43c053{constructor(_0x4e510c,_0x384981,_0x511a6e,_0x42b570,_0x54f521,_0x391793,_0x559bf1,_0x52943b){const _0x3f0ab1=_0x3fffe2;super(),g(this,'_revertErrorTimer',null),(this[_0x3f0ab1(0x259)]=_0x4e510c,this[_0x3f0ab1(0x1ce)]=_0x384981,this['_componentManager']=_0x511a6e,this['_historyManagerService']=_0x42b570,this['_localeService']=_0x54f521,this[_0x3f0ab1(0x1f2)]=_0x391793,this[_0x3f0ab1(0x25c)]=_0x559bf1,this[_0x3f0ab1(0x1ed)]=_0x52943b,this['_init']());}[_0x3fffe2(0x1c8)](){const _0x264e3f=_0x3fffe2;[b][_0x264e3f(0x1fe)](_0x34770f=>this['disposeWithMe'](_0x3f4337(this[_0x264e3f(0x259)][_0x264e3f(0x1e5)](_0x34770f)))),this[_0x264e3f(0x1fc)](this[_0x264e3f(0x251)][_0x264e3f(0x1e3)](_0x264e3f(0x1ea),j)),this[_0x264e3f(0x1ce)][_0x264e3f(0x20f)](gi),this['disposeWithMe'](this['_commandService'][_0x264e3f(0x1dc)](_0x2ce494=>{const _0x4edf6a=_0x264e3f;if(_0x2ce494['id']===_0x5174f8['id']){this[_0x4edf6a(0x1f2)][_0x4edf6a(0x256)]({'content':this['_localeService']['t'](_0x4edf6a(0x1f5)),'type':_0x2c36b3[_0x4edf6a(0x244)],'duration':0x1388});const {unitId:_0x438372}=_0x2ce494[_0x4edf6a(0x211)],_0x205613=this['_collaborationController'][_0x4edf6a(0x25f)](_0x438372),_0x17d9ae=_0x11e74c([_0x205613[_0x4edf6a(0x242)]['event$'],_0x205613['state$']])[_0x4edf6a(0x23b)](async([_0x37635b,_0x46025b])=>{const _0x3dc179=_0x4edf6a;var _0x3eb027;_0x37635b[_0x3dc179(0x1c6)]===_0x203e49[_0x3dc179(0x230)]&&(_0x46025b==null?void 0x0:_0x46025b[_0x3dc179(0x240)])===_0x3b72d3[_0x3dc179(0x20b)]&&_0x37635b[_0x3dc179(0x24e)][_0x3dc179(0x1eb)][_0x3dc179(0x252)](_0x20df15=>_0x20df15['id']===_0x5174f8['id'])&&(this[_0x3dc179(0x25e)][_0x3dc179(0x255)](),_0x17d9ae['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x3eb027=this['_localCacheService'])==null?void 0x0:_0x3eb027['exhaustSavingTask']()),setTimeout(()=>window[_0x3dc179(0x1e0)][_0x3dc179(0x214)]()));});this[_0x4edf6a(0x1e2)]=setTimeout(()=>{const _0x528a08=_0x4edf6a;_0x17d9ae[_0x528a08(0x208)](),this['_messageService'][_0x528a08(0x256)]({'content':this[_0x528a08(0x250)]['t'](_0x528a08(0x22c)),'type':_0x2c36b3['Error'],'duration':0xbb8});},0x1388);}}));}};p=vi([m(0x0,_0x2bee6f),m(0x1,_0x5667e1),m(0x2,_0x17330e(_0x2f8faf)),m(0x3,_0x17330e(f)),m(0x4,_0x17330e(_0x4385bf)),m(0x5,_0x5d12c6),m(0x6,_0x17330e(_0x3c3a85)),m(0x7,_0x1ffb0c)],p);var di=Object[_0x3fffe2(0x258)],fi=(_0x1b09f5,_0x317bb3,_0x5d3ff4,_0x577b6e)=>{for(var _0x56290f=_0x577b6e>0x1?void 0x0:_0x577b6e?di(_0x317bb3,_0x5d3ff4):_0x317bb3,_0xe1fce7=_0x1b09f5['length']-0x1,_0x5a4a04;_0xe1fce7>=0x0;_0xe1fce7--)(_0x5a4a04=_0x1b09f5[_0xe1fce7])&&(_0x56290f=_0x5a4a04(_0x56290f)||_0x56290f);return _0x56290f;},R=(_0x18bd9f,_0x554bed)=>(_0x4e97e6,_0x4f1c91)=>_0x554bed(_0x4e97e6,_0x4f1c91,_0x18bd9f);const _i='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let N=(_=class extends _0x337f8f{constructor(_0x107ef1=w,_0x278cb0,_0x5e4a72){const _0x2319e2=_0x3fffe2;super(),this[_0x2319e2(0x1e9)]=_0x107ef1,this[_0x2319e2(0x217)]=_0x278cb0,this[_0x2319e2(0x1ec)]=_0x5e4a72;const {menu:_0x27b9dc,..._0x41e196}=_0x377268({},w,this['_config']);_0x27b9dc&&this[_0x2319e2(0x1ec)][_0x2319e2(0x216)](_0x2319e2(0x25d),_0x27b9dc,{'merge':!0x0}),this[_0x2319e2(0x1ec)]['setConfig'](x,_0x41e196),this[_0x2319e2(0x1e9)]['univerContainerId']&&this['_configService']['setConfig'](V,this[_0x2319e2(0x1e9)][_0x2319e2(0x1f1)]);}[_0x3fffe2(0x24b)](){const _0x4ef541=_0x3fffe2;[[f],[p]][_0x4ef541(0x1fe)](_0x1f1963=>this[_0x4ef541(0x217)][_0x4ef541(0x215)](_0x1f1963));}['onSteady'](){const _0x470962=_0x3fffe2;this[_0x470962(0x217)][_0x470962(0x21d)](p);}},g(_,_0x3fffe2(0x1d2),_0x5e60c2[_0x3fffe2(0x254)]),g(_,_0x3fffe2(0x218),_i),_);N=fi([R(0x1,_0x17330e(_0x4f3144)),R(0x2,_0x37cc44)],N);export{f as HistoryLoaderService,V as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,N as UniverEditHistoryLoaderPlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x148e(_0x39c645,_0xf1406c){const _0x5d289c=_0x5d28();return _0x148e=function(_0x148e1f,_0x37c7b6){_0x148e1f=_0x148e1f-0xa4;let _0x4bd8b7=_0x5d289c[_0x148e1f];return _0x4bd8b7;},_0x148e(_0x39c645,_0xf1406c);}function _0x5d28(){const _0x55bf3e=['UniverSheetsDrawingUIPlugin','[HistoryLoaderService]:\x20Plugin\x20','amd','UniverCore','editHistory.panel.listFetchError','replace','history-icon','children','_themeService','_configService','unsubscribe','UniverSheetsConditionalFormatting','UniverRenderEnginePlugin','dispose','add','UniverSheetsNumfmtPlugin','Injector','@univerjs/engine-formula','IDialogService','UniverDataValidationPlugin','Disposable','UniverSheetsDataValidation','close','1000','Entered','UniverLicensePlugin','WorkbookViewHistoryPermission','IPermissionService','923464Xuhnmn','reload','UniverDesign','eventID','UniverInstanceType','mountHistoryContent','IMenuManagerService','_selectionProtectionRuleModel','idSuffix','white','Plugin','10fpUcgH','value','getOwnPropertyDescriptor','UniverSheetsFormulaPlugin','UniverRpc','setConfig','rxjs','@univerjs/engine-render','./worker.js','UniverSheetSparklineUIPlugin','xlink:href','UniverEngineFormula','CollaborationStatus','CollaborationEvent','display','2134890JFKFKy','toStringTag','getElementById','UniverSheetsFormula','UniverSheetsFilterUi','fill','useRef','BehaviorSubject','UniverSheets','_localeService','setDarkMode','UniverSheetsConditionalFormattingUi','_historyManagerService','UniverSheetsDrawingPlugin','CollaborationController','location','trim','_initPlugins','UniverCollaborationPlugin','IConfigService','@univerjs/drawing','UniverDrawingUIPlugin','_injector','_initUniver','values','@univerjs/sheets','_disposableCollection','UniverSheetsConditionalFormattingUIPlugin','string','clear','26esMjKX','@univerjs/sheets-hyper-link','6RVJKDg','get','_config','has','getSheetCommandTarget','ISidebarService','@univerjs/sheets-conditional-formatting','defs','flat','HistoryModeStatus','createElement','some','MessageType','top','width','UniverNetworkPlugin','UniverSheetsDataValidationUIPlugin','@univerjs-pro/collaboration-client','@univerjs/sheets-drawing-ui','use','_init','onStarting','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','univerContainerId','UniverSheetsUIPlugin','@univerjs/docs-ui','BUTTON','@univerjs/sheets-data-validation','getSheetId','_initListener','forwardRef','HistoryIcon','UNIVER_UNKNOWN','UNIVER_HISTORY_CONTAINER_ID','_historyUniver$','registerCommand','show','appendChild','path','WorkbookRecoverHistoryPermission','getConfig','5qxdhEE','Loading','2190057HXHVfD','WorkbookEditablePermission','UniverProEditHistoryLoader','map','history-icon_clip0_907_281','assign','UniverSheetsDrawingUi','univer.operation.toggle-edit-history','@univerjs-pro/edit-history-viewer','unMountHistoryContent','@univerjs-pro/license','UniverSheetsFormulaUi','includes','position','@univerjs-pro/sheets-pivot','triggerLoadVersions','Error','UniverProEditHistoryViewer','object','RibbonStartGroup','absolute','substring','_revertErrorTimer','react','status','displayName','permissionId','history-container','_univerInstanceService','UniverProCollaboration','UniverProCollaborationClient','http://www.w3.org/2000/svg','getLocales','_initContainer','Exited','forEach','1195CiStVI','ComponentManager','colorChannel1','@univerjs/sheets-conditional-formatting-ui','getUnit','editHistory.panel.revertFailed','DisposableCollection','MenuItemType','UniverSheetsFilterPlugin','_permissionService','1619540wqFrEb','UniverDocsPlugin','UniverSheetsUi','IUniverInstanceService','getCurrentLocale','composePermission','ThemeService','UniverSheetsFilter','UniverSheetsHyperLinkUIPlugin','@univerjs/sheets-filter','10717487kIChHw','@univerjs/network','@univerjs/sheets-hyper-link-ui','getAllPlugins','UniverEditHistoryViewerPlugin','currentColor','CHANGESET_ACK','registerPlugin','_sidebarService','subscribe','UniverSheetSparklinePlugin','defIds','status$','Inject','setLocale','historyUniver','UniverDocsUi','next','OTHERS','@univerjs/design','@univerjs/sheets-data-validation-ui','url(#$1','OPERATION','_menuManagerService','event$','HistoryLoaderService','UniverProSheetsSparklineUi','_checkCanRevert','currentTheme$','disposeWithMe','@univerjs/ui','style','4710587FGpdwk','\x20has\x20been\x20registered.','svg','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','pluginName','combineLatest','RevertRevisionMutation','menu','Module','every','UniverSheetsHyperLinkPlugin','params','univer-container','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs/drawing-ui','symbol','zIndex','UNIVER_SHEET','historyUniver$','_componentManager','LocaleService','_commandService','@univerjs/sheets-drawing','tag','CommandType','AuthzIoHttpService','100%','UniverEditHistoryLoaderPlugin','UniverDocsUIPlugin','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','IMessageService','none','@univerjs/sheets-ui','_localCacheService','UniverSheetsDrawing','getCollabEntity','historyListServerUrl','asObservable','UniverSheetsDataValidationUi','LS_CONFIG_KEY','UniverDrawingPlugin','_messageService','UniverSheetsNumfmt','toString','closeAll','WorksheetEditPermission','data','executeCommand','RxDisposable','univerjs-icon\x20univerjs-icon-','1em','UniverUIPlugin','random','_dialogService','@univerjs/data-validation','revertRevision$','mask','@univerjs/docs','@univerjs-pro/collaboration','exhaustSavingTask','setTheme','block','UniverDocs','length','@univerjs/core','entries','UniverProSheetsPivot','UniverDataValidation','attrs','_pluginMap','UniverSheetsHyperLink'];_0x5d28=function(){return _0x55bf3e;};return _0x5d28();}(function(_0x3cc808,_0x2997d1){const _0x2b07e8=_0x148e,_0x589388=_0x3cc808();while(!![]){try{const _0x2fdce9=-parseInt(_0x2b07e8(0x136))/0x1*(-parseInt(_0x2b07e8(0xe5))/0x2)+-parseInt(_0x2b07e8(0x112))/0x3+parseInt(_0x2b07e8(0x140))/0x4*(-parseInt(_0x2b07e8(0x110))/0x5)+-parseInt(_0x2b07e8(0xe7))/0x6*(-parseInt(_0x2b07e8(0x16a))/0x7)+parseInt(_0x2b07e8(0xad))/0x8+-parseInt(_0x2b07e8(0xc7))/0x9+parseInt(_0x2b07e8(0xb8))/0xa*(parseInt(_0x2b07e8(0x14a))/0xb);if(_0x2fdce9===_0x2997d1)break;else _0x589388['push'](_0x589388['shift']());}catch(_0x32c0e1){_0x589388['push'](_0x589388['shift']());}}}(_0x5d28,0x63260),function(_0x3f91b3,_0x1731b2){const _0x3f3bb2=_0x148e;typeof exports==_0x3f3bb2(0x124)&&typeof module<'u'?_0x1731b2(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x3f3bb2(0x1b3)]?define(['exports',_0x3f3bb2(0x1aa),_0x3f3bb2(0x1a4),_0x3f3bb2(0xf8),_0x3f3bb2(0x15d),_0x3f3bb2(0x129),_0x3f3bb2(0x168),'rxjs',_0x3f3bb2(0xe0),_0x3f3bb2(0x11a),_0x3f3bb2(0x11c),_0x3f3bb2(0x120),'@univerjs-pro/sheets-sparkline','@univerjs-pro/sheets-sparkline-ui',_0x3f3bb2(0x1a0),_0x3f3bb2(0x1a3),_0x3f3bb2(0x100),_0x3f3bb2(0xdb),_0x3f3bb2(0x178),_0x3f3bb2(0x1c2),_0x3f3bb2(0xbf),_0x3f3bb2(0x14b),'@univerjs/rpc',_0x3f3bb2(0xed),_0x3f3bb2(0x139),_0x3f3bb2(0x102),_0x3f3bb2(0x15e),_0x3f3bb2(0x180),_0x3f3bb2(0xf9),_0x3f3bb2(0x149),'@univerjs/sheets-filter-ui','@univerjs/sheets-formula','@univerjs/sheets-formula-ui',_0x3f3bb2(0xe6),_0x3f3bb2(0x14c),'@univerjs/sheets-numfmt',_0x3f3bb2(0x18a)],_0x1731b2):(_0x3f91b3=typeof globalThis<'u'?globalThis:_0x3f91b3||self,_0x1731b2(_0x3f91b3[_0x3f3bb2(0x114)]={},_0x3f91b3[_0x3f3bb2(0x1b4)],_0x3f91b3[_0x3f3bb2(0x12f)],_0x3f91b3[_0x3f3bb2(0x130)],_0x3f91b3[_0x3f3bb2(0xaf)],_0x3f91b3['React'],_0x3f91b3['UniverUi'],_0x3f91b3[_0x3f3bb2(0xbe)],_0x3f91b3[_0x3f3bb2(0xcf)],_0x3f91b3[_0x3f3bb2(0x123)],_0x3f91b3['UniverProLicense'],_0x3f91b3[_0x3f3bb2(0x1ac)],_0x3f91b3['UniverProSheetsSparkline'],_0x3f91b3[_0x3f3bb2(0x164)],_0x3f91b3[_0x3f3bb2(0x1ad)],_0x3f91b3[_0x3f3bb2(0x1a8)],_0x3f91b3[_0x3f3bb2(0x15a)],_0x3f91b3['UniverDrawing'],_0x3f91b3['UniverDrawingUi'],_0x3f91b3[_0x3f3bb2(0xc3)],_0x3f91b3['UniverEngineRender'],_0x3f91b3['UniverNetwork'],_0x3f91b3[_0x3f3bb2(0xbc)],_0x3f91b3[_0x3f3bb2(0x1bc)],_0x3f91b3[_0x3f3bb2(0xd2)],_0x3f91b3[_0x3f3bb2(0xa6)],_0x3f91b3[_0x3f3bb2(0x190)],_0x3f91b3[_0x3f3bb2(0x18c)],_0x3f91b3[_0x3f3bb2(0x118)],_0x3f91b3[_0x3f3bb2(0x147)],_0x3f91b3[_0x3f3bb2(0xcb)],_0x3f91b3[_0x3f3bb2(0xca)],_0x3f91b3[_0x3f3bb2(0x11d)],_0x3f91b3[_0x3f3bb2(0x1b0)],_0x3f91b3['UniverSheetsHyperLinkUi'],_0x3f91b3[_0x3f3bb2(0x194)],_0x3f91b3[_0x3f3bb2(0x142)]));}(this,function(_0x3791fd,_0x3162da,_0x4e0478,_0x4d2b28,_0x541352,_0x3a9f13,_0x471906,_0xeb0818,_0x5424b5,_0x3704bb,_0x87ef23,_0x455c76,_0x415c85,_0x43cf25,_0x490aef,_0x4a4ef3,_0x1e58b9,_0x5cf4f2,_0x4984b1,_0x53b85c,_0x26d1fd,_0x21e6dc,_0xb2fdec,_0x4f2857,_0x225d08,_0x8215d2,_0xc41d5e,_0x27550b,_0xd53d7d,_0x1f2450,_0x5e760a,_0x2dbb5d,_0x38c660,_0x450b3e,_0x44bd5b,_0x944005,_0x44b8a3){'use strict';const _0x5adf50=_0x148e;var _0x1029d6=Object['defineProperty'],_0x1d6444=(_0x7a3fb1,_0x50db59,_0x236185)=>_0x50db59 in _0x7a3fb1?_0x1029d6(_0x7a3fb1,_0x50db59,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x236185}):_0x7a3fb1[_0x50db59]=_0x236185,_0x3d34e0=(_0x33cda4,_0x499e22,_0xe4da9f)=>_0x1d6444(_0x33cda4,typeof _0x499e22!=_0x5adf50(0x179)?_0x499e22+'':_0x499e22,_0xe4da9f),_0x3568b4;const _0x389811='edit-history-loader.config',_0x4db3b6={};function _0x2f138b({ref:_0x31476f,..._0x7f5573}){const _0xe4fa94=_0x5adf50,{icon:_0x3e90b2,id:_0x220e42,className:_0x598a62,extend:_0x27a20f,..._0x318da0}=_0x7f5573,_0x118ae0=(_0xe4fa94(0x19b)+_0x220e42+'\x20'+(_0x598a62||''))[_0xe4fa94(0xd7)](),_0x188d5f=_0x3a9f13[_0xe4fa94(0xcd)]('_'+_0x46d5a3());return _0x5e10a7(_0x3e90b2,''+_0x220e42,{'defIds':_0x3e90b2[_0xe4fa94(0x155)],'idSuffix':_0x188d5f['current']},{'ref':_0x31476f,'className':_0x118ae0,..._0x318da0},_0x27a20f);}function _0x5e10a7(_0x12fd9,_0x18673a,_0x4162dd,_0x38fe47,_0x408b4d){const _0x4d9f85=_0x5adf50;return _0x3a9f13[_0x4d9f85(0xf1)](_0x12fd9['tag'],{'key':_0x18673a,..._0x2d0aa9(_0x12fd9,_0x4162dd,_0x408b4d),..._0x38fe47},(_0x2f70bd(_0x12fd9,_0x4162dd)[_0x4d9f85(0x1b8)]||[])[_0x4d9f85(0x115)]((_0x426a7b,_0x3ecfc7)=>_0x5e10a7(_0x426a7b,_0x18673a+'-'+_0x12fd9[_0x4d9f85(0x181)]+'-'+_0x3ecfc7,_0x4162dd,void 0x0,_0x408b4d)));}function _0x2d0aa9(_0x19a31b,_0x44088e,_0x73043a){const _0x1c4862=_0x5adf50,_0x59477={..._0x19a31b[_0x1c4862(0x1ae)]};_0x73043a!=null&&_0x73043a['colorChannel1']&&_0x59477['fill']===_0x1c4862(0x138)&&(_0x59477[_0x1c4862(0xcc)]=_0x73043a['colorChannel1']),_0x19a31b[_0x1c4862(0x181)]===_0x1c4862(0x1a2)&&_0x59477['id']&&(_0x59477['id']=_0x59477['id']+_0x44088e[_0x1c4862(0xb5)]),Object[_0x1c4862(0x1ab)](_0x59477)[_0x1c4862(0x135)](([_0x45b0ea,_0x42526f])=>{const _0x4c4cf1=_0x1c4862;_0x45b0ea===_0x4c4cf1(0x1a2)&&typeof _0x42526f=='string'&&(_0x59477[_0x45b0ea]=_0x42526f[_0x4c4cf1(0x1b6)](/url\(#(.*)\)/,_0x4c4cf1(0x15f)+_0x44088e[_0x4c4cf1(0xb5)]+')'));});const {defIds:_0x1133e9}=_0x44088e;return!_0x1133e9||_0x1133e9[_0x1c4862(0x1a9)]===0x0||(_0x19a31b[_0x1c4862(0x181)]===_0x1c4862(0xfa)&&_0x59477[_0x1c4862(0xc2)]&&(_0x59477['xlink:href']=_0x59477['xlink:href']+_0x44088e[_0x1c4862(0xb5)]),Object[_0x1c4862(0x1ab)](_0x59477)[_0x1c4862(0x135)](([_0x16b7e6,_0x1912b6])=>{const _0x40be20=_0x1c4862;typeof _0x1912b6==_0x40be20(0xe3)&&(_0x59477[_0x16b7e6]=_0x1912b6[_0x40be20(0x1b6)](/url\(#(.*)\)/,_0x40be20(0x15f)+_0x44088e[_0x40be20(0xb5)]+')'));})),_0x59477;}function _0x2f70bd(_0xb63abb,_0x35c75b){const _0x515661=_0x5adf50;var _0x446dc8;const {defIds:_0x11bc00}=_0x35c75b;return!_0x11bc00||_0x11bc00[_0x515661(0x1a9)]===0x0?_0xb63abb:_0xb63abb[_0x515661(0x181)]===_0x515661(0xee)&&((_0x446dc8=_0xb63abb[_0x515661(0x1b8)])!=null&&_0x446dc8[_0x515661(0x1a9)])?{..._0xb63abb,'children':_0xb63abb[_0x515661(0x1b8)][_0x515661(0x115)](_0x3c75c8=>typeof _0x3c75c8[_0x515661(0x1ae)]['id']==_0x515661(0xe3)&&_0x11bc00&&_0x11bc00[_0x515661(0x11e)](_0x3c75c8[_0x515661(0x1ae)]['id'])?{..._0x3c75c8,'attrs':{..._0x3c75c8[_0x515661(0x1ae)],'id':_0x3c75c8[_0x515661(0x1ae)]['id']+_0x35c75b[_0x515661(0xb5)]}}:_0x3c75c8)}:_0xb63abb;}function _0x46d5a3(){const _0x38dda4=_0x5adf50;return Math[_0x38dda4(0x19e)]()[_0x38dda4(0x195)](0x24)[_0x38dda4(0x127)](0x2,0x8);}_0x2f138b[_0x5adf50(0x12b)]='UniverIcon';const _0x240b01={'tag':_0x5adf50(0x16c),'attrs':{'xmlns':_0x5adf50(0x131),'fill':_0x5adf50(0x189),'viewBox':'0\x200\x2016\x2016','width':_0x5adf50(0x19c),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x5adf50(0x14f),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x5adf50(0x10d),'attrs':{'d':_0x5adf50(0xfd)}},{'tag':_0x5adf50(0x10d),'attrs':{'d':_0x5adf50(0x16d)}}]},{'tag':_0x5adf50(0xee),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5adf50(0x116)},'children':[{'tag':_0x5adf50(0x10d),'attrs':{'fill':_0x5adf50(0xb6),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x24448b=_0x3a9f13[_0x5adf50(0x105)](function(_0x3b7097,_0x19f51a){const _0x1ced9a=_0x5adf50;return _0x3a9f13[_0x1ced9a(0xf1)](_0x2f138b,Object[_0x1ced9a(0x117)]({},_0x3b7097,{'id':_0x1ced9a(0x1b7),'ref':_0x19f51a,'icon':_0x240b01}));});_0x24448b[_0x5adf50(0x12b)]=_0x5adf50(0x106);var _0x56ed2c=Object[_0x5adf50(0xba)],_0x285423=(_0x34088c,_0x3152d8,_0x27f957,_0x39ccde)=>{const _0x18551d=_0x5adf50;for(var _0x20752e=_0x39ccde>0x1?void 0x0:_0x39ccde?_0x56ed2c(_0x3152d8,_0x27f957):_0x3152d8,_0x360ae9=_0x34088c[_0x18551d(0x1a9)]-0x1,_0x3fc6d6;_0x360ae9>=0x0;_0x360ae9--)(_0x3fc6d6=_0x34088c[_0x360ae9])&&(_0x20752e=_0x3fc6d6(_0x20752e)||_0x20752e);return _0x20752e;},_0x3478f3=(_0x5cbc67,_0x1f0b9b)=>(_0x3a84ce,_0x17ac7d)=>_0x1f0b9b(_0x3a84ce,_0x17ac7d,_0x5cbc67);const _0x1fbb69=_0x5adf50(0x176),_0x18b01d='UNIVER_CONTAINER_ID',_0x4a5e5c='univer-history-container';_0x3791fd[_0x5adf50(0x163)]=class extends _0x3162da[_0x5adf50(0xa5)]{constructor(_0x1231d3,_0x4ecee9,_0x2076d1,_0xbd8eab,_0x54c3b6,_0x3afdbe,_0x547d37,_0x34ec87,_0x5361c2,_0x55da85){const _0x291abb=_0x5adf50;super(),_0x3d34e0(this,_0x291abb(0x109),new _0xeb0818[(_0x291abb(0xce))](null)),_0x3d34e0(this,_0x291abb(0x17c),this[_0x291abb(0x109)][_0x291abb(0x18f)]()),_0x3d34e0(this,_0x291abb(0xe1),new _0x3162da[(_0x291abb(0x13c))]()),_0x3d34e0(this,_0x291abb(0x1af),new Map()),(this[_0x291abb(0xd0)]=_0x1231d3,this[_0x291abb(0x12e)]=_0x4ecee9,this['_configService']=_0x2076d1,this[_0x291abb(0x17f)]=_0xbd8eab,this[_0x291abb(0x193)]=_0x54c3b6,this[_0x291abb(0x13f)]=_0x3afdbe,this['_selectionProtectionRuleModel']=_0x547d37,this[_0x291abb(0x19f)]=_0x34ec87,this['_sidebarService']=_0x5361c2,this[_0x291abb(0x1b9)]=_0x55da85,this[_0x291abb(0xfb)]());}get[_0x5adf50(0x159)](){return this['_historyUniver$']['value'];}['_init'](){const _0x10bf2e=_0x5adf50;this[_0x10bf2e(0x133)](),this[_0x10bf2e(0xd8)]();}[_0x5adf50(0x133)](){const _0x39cd73=_0x5adf50;var _0x1b209b;const _0x280dbc=(_0x1b209b=this['_configService'][_0x39cd73(0x10f)](_0x18b01d))!=null?_0x1b209b:_0x1fbb69,_0x48c3d0=document[_0x39cd73(0xc9)](_0x280dbc);if(!_0x48c3d0)return;const _0x4e0557=document[_0x39cd73(0xf1)]('div');_0x4e0557['id']=_0x4a5e5c,_0x4e0557['dataset']['uComp']=_0x39cd73(0x12d),_0x4e0557[_0x39cd73(0x169)][_0x39cd73(0x11f)]=_0x39cd73(0x126),_0x4e0557['style'][_0x39cd73(0xf4)]='0',_0x4e0557['style']['left']='0',_0x4e0557[_0x39cd73(0x169)][_0x39cd73(0xf5)]=_0x39cd73(0x184),_0x4e0557[_0x39cd73(0x169)]['height']=_0x39cd73(0x184),_0x4e0557[_0x39cd73(0x169)][_0x39cd73(0x17a)]=_0x39cd73(0xa8),_0x4e0557['style']['display']=_0x39cd73(0x189),_0x48c3d0[_0x39cd73(0x10c)](_0x4e0557);}[_0x5adf50(0xd8)](){const _0x2f3848=_0x5adf50;var _0x142fbb;[[_0x26d1fd[_0x2f3848(0x1bd)]],[_0x471906[_0x2f3848(0x19d)],{'container':_0x4a5e5c,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x471906[_0x2f3848(0x1c3)],null]]}],[_0x21e6dc[_0x2f3848(0xf6)]],[_0x5cf4f2[_0x2f3848(0x192)],{'override':[[_0x5cf4f2['IImageIoService'],null]]}],[_0x4a4ef3[_0x2f3848(0x141)],{'hasScroll':!0x1}],[_0x1e58b9[_0x2f3848(0x186)]],[_0x944005[_0x2f3848(0x1c0)]],[_0x5424b5['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x44b8a3[_0x2f3848(0xff)]],[_0x2dbb5d[_0x2f3848(0xbb)]],[_0x38c660['UniverSheetsFormulaUIPlugin']],[_0x4e0478[_0x2f3848(0xd9)]],[_0x1f2450[_0x2f3848(0x13e)]],[_0x5e760a['UniverSheetsFilterUIPlugin']],[_0x4f2857['UniverSheetsConditionalFormattingPlugin']],[_0x225d08[_0x2f3848(0xe2)]],[_0x450b3e[_0x2f3848(0x174)]],[_0x44bd5b[_0x2f3848(0x148)]],[_0x490aef[_0x2f3848(0xa4)]],[_0x8215d2['UniverSheetsDataValidationPlugin']],[_0xc41d5e[_0x2f3848(0xf7)]],[_0x53b85c['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0xb2fdec['UniverRPCMainThreadPlugin'],{'workerURL':_0x2f3848(0xc0)}],[_0x4984b1[_0x2f3848(0xdc)]],[_0x27550b[_0x2f3848(0xd4)]],[_0xd53d7d[_0x2f3848(0x1b1)]],[_0x415c85[_0x2f3848(0x154)]],[_0x43cf25[_0x2f3848(0xc1)]],[_0x455c76['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x3704bb[_0x2f3848(0x14e)],{'historyListServerUrl':(_0x142fbb=this[_0x2f3848(0x1ba)][_0x2f3848(0x10f)](_0x389811))==null?void 0x0:_0x142fbb[_0x2f3848(0x18e)]}]][_0x2f3848(0x135)](([_0x35b54c,_0x1b598a])=>this[_0x2f3848(0x151)](_0x35b54c,_0x1b598a));}[_0x5adf50(0x1be)](){const _0x43d329=_0x5adf50;super[_0x43d329(0x1be)](),this['unMountHistoryContent'](),this[_0x43d329(0x1af)][_0x43d329(0xe4)]();}['registerPlugin'](_0x2779bc,_0x485f90,_0x331139){const _0x34f018=_0x5adf50;if(this[_0x34f018(0x1af)][_0x34f018(0xea)](_0x2779bc['pluginName'])&&!_0x331139)throw new Error(_0x34f018(0x1b2)+_0x2779bc['pluginName']+_0x34f018(0x16b));this[_0x34f018(0x1af)]['set'](_0x2779bc['pluginName'],[_0x2779bc,_0x485f90]);}[_0x5adf50(0x14d)](){const _0x4eb865=_0x5adf50;return Array['from'](this['_pluginMap'][_0x4eb865(0xdf)]());}[_0x5adf50(0xb2)](_0x1c0e23){const _0x4441ee=_0x5adf50,_0x53f373=document['getElementById'](_0x4a5e5c);_0x53f373&&(_0x53f373[_0x4441ee(0x169)][_0x4441ee(0xc6)]=_0x4441ee(0x1a7),this[_0x4441ee(0xde)](_0x1c0e23,_0x4a5e5c));}[_0x5adf50(0x11b)](){const _0x19d1f8=_0x5adf50;var _0x724858;this['_disposableCollection'][_0x19d1f8(0x1be)](),(_0x724858=this[_0x19d1f8(0x159)])==null||_0x724858['dispose'](),this[_0x19d1f8(0x109)][_0x19d1f8(0x15b)](null);const _0x553e10=document[_0x19d1f8(0xc9)](_0x4a5e5c);_0x553e10&&(_0x553e10[_0x19d1f8(0x169)]['display']=_0x19d1f8(0x189));}[_0x5adf50(0xde)](_0x279f17,_0x47ead4){const _0x1fe535=_0x5adf50;if(this[_0x1fe535(0x159)])return;const _0x367d80=new _0x3162da['Univer']({'locales':{[this[_0x1fe535(0xd0)]['getCurrentLocale']()]:this[_0x1fe535(0xd0)][_0x1fe535(0x132)]()},'override':[[_0x3162da['IAuthzIoService'],{'useClass':_0x4d2b28[_0x1fe535(0x183)]}]]}),_0x2ca3ab=_0x367d80['__getInjector']();this[_0x1fe535(0x167)](this[_0x1fe535(0x1b9)]['darkMode$'][_0x1fe535(0x153)](_0x225cb4=>{const _0x1b7a5e=_0x1fe535;_0x2ca3ab[_0x1b7a5e(0xe8)](_0x3162da[_0x1b7a5e(0x146)])[_0x1b7a5e(0xd1)](_0x225cb4);})),this['disposeWithMe'](this[_0x1fe535(0x1b9)][_0x1fe535(0x166)][_0x1fe535(0x153)](_0x5a2b44=>{const _0x606dc8=_0x1fe535;_0x2ca3ab[_0x606dc8(0xe8)](_0x3162da[_0x606dc8(0x146)])[_0x606dc8(0x1a6)](_0x5a2b44);})),_0x2ca3ab[_0x1fe535(0xe8)](_0x3162da[_0x1fe535(0x17e)])[_0x1fe535(0x158)](this[_0x1fe535(0xd0)][_0x1fe535(0x144)]()),_0x2ca3ab[_0x1fe535(0xe8)](_0x3162da[_0x1fe535(0xda)])[_0x1fe535(0xbd)](_0x4d2b28[_0x1fe535(0x177)],this['_configService'][_0x1fe535(0x10f)](_0x4d2b28[_0x1fe535(0x177)]));const _0x24f55c=this[_0x1fe535(0x1ba)][_0x1fe535(0x10f)](_0x87ef23[_0x1fe535(0x191)]);_0x24f55c&&_0x367d80[_0x1fe535(0x151)](_0x87ef23[_0x1fe535(0xaa)],{'license':_0x24f55c['ls']}),this[_0x1fe535(0x1af)][_0x1fe535(0x135)](([_0x358c6d,_0x2f9c4e])=>{const _0x340603=_0x1fe535;_0x367d80[_0x340603(0x151)](_0x358c6d,_0x2f9c4e);}),_0x2ca3ab['invoke'](_0x389c9d=>{const _0x3f3be4=_0x1fe535;this[_0x3f3be4(0x104)](_0x389c9d,_0x279f17);}),this[_0x1fe535(0x109)]['next'](_0x367d80);const _0xcb1187=_0x2ca3ab[_0x1fe535(0xe8)](_0x3704bb['HistoryManagerService']),_0x2b9174=this['_checkCanRevert'](_0x279f17);_0xcb1187[_0x1fe535(0x121)](_0x279f17,_0x47ead4,_0x2b9174);}[_0x5adf50(0x104)](_0x5672cf,_0x3c674b){const _0x928e3d=_0x5adf50,_0x129779=_0x5672cf[_0x928e3d(0xe8)](_0x3704bb['HistoryManagerService']);this[_0x928e3d(0xe1)][_0x928e3d(0x1bf)](_0x129779[_0x928e3d(0x156)][_0x928e3d(0x153)](_0x236978=>{const _0x3a867f=_0x928e3d;switch(_0x236978){case _0x3704bb['HistoryModeStatus'][_0x3a867f(0xa9)]:this[_0x3a867f(0x19f)][_0x3a867f(0x196)](),this[_0x3a867f(0x152)][_0x3a867f(0xa7)]();break;case _0x3704bb['HistoryModeStatus'][_0x3a867f(0x134)]:this[_0x3a867f(0x11b)]();break;case _0x3704bb[_0x3a867f(0xf0)][_0x3a867f(0x122)]:this[_0x3a867f(0x11b)](),this['_messageService'][_0x3a867f(0x10b)]({'content':this[_0x3a867f(0xd0)]['t'](_0x3a867f(0x1b5)),'type':_0x541352['MessageType'][_0x3a867f(0x122)],'duration':0xbb8});break;}})),this[_0x928e3d(0xe1)][_0x928e3d(0x1bf)](_0x129779[_0x928e3d(0x1a1)][_0x928e3d(0x153)](async _0x356787=>{const _0x301d64=_0x928e3d;_0x356787&&this[_0x301d64(0x17f)][_0x301d64(0x199)](_0x4e0478['RevertRevisionMutation']['id'],{'unitId':_0x3c674b,'revision':_0x356787});}));}[_0x5adf50(0x165)](_0x4b3b9d){const _0x37e49d=_0x5adf50,_0x59473b=this[_0x37e49d(0x12e)][_0x37e49d(0x13a)](_0x4b3b9d)['getSheets']()[_0x37e49d(0x115)](_0x14840e=>_0x14840e[_0x37e49d(0x103)]()),_0x2ba362=new _0x5424b5[(_0x37e49d(0x113))](_0x4b3b9d)['id'],_0x393571=_0x59473b[_0x37e49d(0x115)](_0x38bffb=>new _0x5424b5[(_0x37e49d(0x197))](_0x4b3b9d,_0x38bffb)['id']),_0x1cde96=_0x59473b[_0x37e49d(0x115)](_0x2e6890=>this[_0x37e49d(0xb4)]['getSubunitRuleList'](_0x4b3b9d,_0x2e6890)[_0x37e49d(0x115)](_0x164b9e=>new _0x5424b5['RangeProtectionPermissionEditPoint'](_0x4b3b9d,_0x2e6890,_0x164b9e[_0x37e49d(0x12c)])['id']))[_0x37e49d(0xef)](),_0x10531b=new _0x5424b5[(_0x37e49d(0x10e))](_0x4b3b9d)['id'];return this['_permissionService'][_0x37e49d(0x145)]([_0x2ba362,..._0x393571,..._0x1cde96,_0x10531b])[_0x37e49d(0x173)](_0x41f604=>!!_0x41f604[_0x37e49d(0xb9)]);}},_0x3791fd[_0x5adf50(0x163)]=_0x285423([_0x3478f3(0x0,_0x3162da[_0x5adf50(0x157)](_0x3162da[_0x5adf50(0x17e)])),_0x3478f3(0x1,_0x3162da[_0x5adf50(0x143)]),_0x3478f3(0x2,_0x3162da[_0x5adf50(0xda)]),_0x3478f3(0x3,_0x3162da['ICommandService']),_0x3478f3(0x4,_0x471906['IMessageService']),_0x3478f3(0x5,_0x3162da[_0x5adf50(0xac)]),_0x3478f3(0x6,_0x3162da[_0x5adf50(0x157)](_0x5424b5['RangeProtectionRuleModel'])),_0x3478f3(0x7,_0x3162da[_0x5adf50(0x157)](_0x471906[_0x5adf50(0x1c3)])),_0x3478f3(0x8,_0x3162da[_0x5adf50(0x157)](_0x471906[_0x5adf50(0xec)])),_0x3478f3(0x9,_0x3162da['Inject'](_0x3162da[_0x5adf50(0x146)]))],_0x3791fd['HistoryLoaderService']);const _0x31dcf9={'id':_0x5adf50(0x119),'type':_0x3162da[_0x5adf50(0x182)][_0x5adf50(0x160)],'handler':_0xf0a0bc=>{const _0x352a86=_0x5adf50,_0x47ed8a=_0xf0a0bc[_0x352a86(0xe8)](_0x3791fd['HistoryLoaderService']),_0x3c7321=_0xf0a0bc['get'](_0x3162da['IUniverInstanceService']),{unitId:_0x6f7005}=_0x5424b5[_0x352a86(0xeb)](_0x3c7321)||{};return _0x6f7005?(_0x47ed8a[_0x352a86(0xb2)](_0x6f7005),!0x0):!0x1;}};function _0x467c40(_0x35c250){const _0x42996e=_0x5adf50;return{'id':_0x31dcf9['id'],'type':_0x471906[_0x42996e(0x13d)][_0x42996e(0x101)],'icon':_0x42996e(0x106),'tooltip':'editHistory.panel.title','hidden$':_0x471906['getMenuHiddenObservable'](_0x35c250,_0x3162da[_0x42996e(0xb1)][_0x42996e(0x17b)]),'disabled$':_0x44b8a3['getCurrentRangeDisable$'](_0x35c250,{'workbookTypes':[_0x5424b5[_0x42996e(0x113)],_0x5424b5[_0x42996e(0xab)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x4499db={[_0x471906[_0x5adf50(0x125)][_0x5adf50(0x15c)]]:{[_0x31dcf9['id']]:{'order':0.2,'menuItemFactory':_0x467c40}}};var _0x48b950=Object['getOwnPropertyDescriptor'],_0x34eeb0=(_0x415056,_0x494d9b,_0x5baa65,_0x2fd4b2)=>{for(var _0xe36401=_0x2fd4b2>0x1?void 0x0:_0x2fd4b2?_0x48b950(_0x494d9b,_0x5baa65):_0x494d9b,_0x1a5e36=_0x415056['length']-0x1,_0x3cc7a9;_0x1a5e36>=0x0;_0x1a5e36--)(_0x3cc7a9=_0x415056[_0x1a5e36])&&(_0xe36401=_0x3cc7a9(_0xe36401)||_0xe36401);return _0xe36401;},_0xb1334f=(_0x86de70,_0x9535e7)=>(_0x3808da,_0x2c2c28)=>_0x9535e7(_0x3808da,_0x2c2c28,_0x86de70);let _0x48854a=class extends _0x3162da[_0x5adf50(0x19a)]{constructor(_0x3a5fd8,_0x570f7f,_0x3644c8,_0x52dd89,_0x22eb73,_0x578329,_0x314f44,_0x55ea87){const _0x4482ac=_0x5adf50;super(),_0x3d34e0(this,_0x4482ac(0x128),null),(this[_0x4482ac(0x17f)]=_0x3a5fd8,this[_0x4482ac(0x161)]=_0x570f7f,this[_0x4482ac(0x17d)]=_0x3644c8,this[_0x4482ac(0xd3)]=_0x52dd89,this['_localeService']=_0x22eb73,this['_messageService']=_0x578329,this['_collaborationController']=_0x314f44,this[_0x4482ac(0x18b)]=_0x55ea87,this['_init']());}[_0x5adf50(0xfb)](){const _0x3ac9d3=_0x5adf50;[_0x31dcf9][_0x3ac9d3(0x135)](_0x37cfc4=>this[_0x3ac9d3(0x167)](_0x3162da['toDisposable'](this[_0x3ac9d3(0x17f)][_0x3ac9d3(0x10a)](_0x37cfc4)))),this[_0x3ac9d3(0x167)](this[_0x3ac9d3(0x17d)]['register'](_0x3ac9d3(0x106),_0x24448b)),this[_0x3ac9d3(0x161)]['mergeMenu'](_0x4499db),this['disposeWithMe'](this[_0x3ac9d3(0x17f)]['onCommandExecuted'](_0x53233b=>{const _0x2212d4=_0x3ac9d3;if(_0x53233b['id']===_0x4e0478[_0x2212d4(0x170)]['id']){this['_messageService'][_0x2212d4(0x10b)]({'content':this[_0x2212d4(0xd0)]['t']('editHistory.panel.reverting'),'type':_0x541352['MessageType'][_0x2212d4(0x111)],'duration':0x1388});const {unitId:_0x458ed6}=_0x53233b[_0x2212d4(0x175)],_0x491a31=this['_collaborationController'][_0x2212d4(0x18d)](_0x458ed6),_0x415576=_0xeb0818[_0x2212d4(0x16f)]([_0x491a31['session'][_0x2212d4(0x162)],_0x491a31['state$']])[_0x2212d4(0x153)](async([_0x13ca24,_0x4281a3])=>{const _0x359d63=_0x2212d4;var _0x25d812;_0x13ca24[_0x359d63(0xb0)]===_0x4e0478[_0x359d63(0xc5)][_0x359d63(0x150)]&&(_0x4281a3==null?void 0x0:_0x4281a3[_0x359d63(0x12a)])===_0x4d2b28[_0x359d63(0xc4)]['SYNCED']&&_0x13ca24[_0x359d63(0x198)]['mutations'][_0x359d63(0xf2)](_0x21b431=>_0x21b431['id']===_0x4e0478[_0x359d63(0x170)]['id'])&&(this[_0x359d63(0xd3)]['unMountHistoryContent'](),_0x415576[_0x359d63(0x1bb)](),this[_0x359d63(0x128)]&&clearTimeout(this[_0x359d63(0x128)]),await((_0x25d812=this['_localCacheService'])==null?void 0x0:_0x25d812[_0x359d63(0x1a5)]()),setTimeout(()=>window[_0x359d63(0xd6)][_0x359d63(0xae)]()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x3c6b63=_0x2212d4;_0x415576['unsubscribe'](),this[_0x3c6b63(0x193)][_0x3c6b63(0x10b)]({'content':this[_0x3c6b63(0xd0)]['t'](_0x3c6b63(0x13b)),'type':_0x541352[_0x3c6b63(0xf3)][_0x3c6b63(0x122)],'duration':0xbb8});},0x1388);}}));}};_0x48854a=_0x34eeb0([_0xb1334f(0x0,_0x3162da['ICommandService']),_0xb1334f(0x1,_0x471906[_0x5adf50(0xb3)]),_0xb1334f(0x2,_0x3162da['Inject'](_0x471906[_0x5adf50(0x137)])),_0xb1334f(0x3,_0x3162da['Inject'](_0x3791fd[_0x5adf50(0x163)])),_0xb1334f(0x4,_0x3162da[_0x5adf50(0x157)](_0x3162da[_0x5adf50(0x17e)])),_0xb1334f(0x5,_0x471906[_0x5adf50(0x188)]),_0xb1334f(0x6,_0x3162da[_0x5adf50(0x157)](_0x4d2b28[_0x5adf50(0xd5)])),_0xb1334f(0x7,_0x4d2b28['ILocalCacheService'])],_0x48854a);var _0x4bcce7=Object['getOwnPropertyDescriptor'],_0x91af27=(_0xd1de62,_0x226221,_0x2e7e56,_0x4e3bb2)=>{const _0x22e435=_0x5adf50;for(var _0xd4c629=_0x4e3bb2>0x1?void 0x0:_0x4e3bb2?_0x4bcce7(_0x226221,_0x2e7e56):_0x226221,_0x1e78a4=_0xd1de62[_0x22e435(0x1a9)]-0x1,_0x2c9148;_0x1e78a4>=0x0;_0x1e78a4--)(_0x2c9148=_0xd1de62[_0x1e78a4])&&(_0xd4c629=_0x2c9148(_0xd4c629)||_0xd4c629);return _0xd4c629;},_0x332bbc=(_0x4f4099,_0x437c3d)=>(_0x10f9bb,_0x582e81)=>_0x437c3d(_0x10f9bb,_0x582e81,_0x4f4099);const _0x5521be=_0x5adf50(0x187);_0x3791fd[_0x5adf50(0x185)]=(_0x3568b4=class extends _0x3162da[_0x5adf50(0xb7)]{constructor(_0x451e2f=_0x4db3b6,_0x215e8c,_0x2ef21d){const _0x292131=_0x5adf50;super(),this['_config']=_0x451e2f,this[_0x292131(0xdd)]=_0x215e8c,this[_0x292131(0x1ba)]=_0x2ef21d;const {menu:_0x3da05a,..._0x45f2f8}=_0x3162da['merge']({},_0x4db3b6,this['_config']);_0x3da05a&&this[_0x292131(0x1ba)][_0x292131(0xbd)](_0x292131(0x171),_0x3da05a,{'merge':!0x0}),this[_0x292131(0x1ba)][_0x292131(0xbd)](_0x389811,_0x45f2f8),this[_0x292131(0xe9)][_0x292131(0xfe)]&&this[_0x292131(0x1ba)][_0x292131(0xbd)](_0x18b01d,this[_0x292131(0xe9)][_0x292131(0xfe)]);}[_0x5adf50(0xfc)](){const _0x395a9e=_0x5adf50;[[_0x3791fd['HistoryLoaderService']],[_0x48854a]][_0x395a9e(0x135)](_0x2c32c0=>this[_0x395a9e(0xdd)][_0x395a9e(0x1bf)](_0x2c32c0));}['onSteady'](){const _0x405ab1=_0x5adf50;this['_injector'][_0x405ab1(0xe8)](_0x48854a);}},_0x3d34e0(_0x3568b4,'type',_0x3162da[_0x5adf50(0xb1)][_0x5adf50(0x107)]),_0x3d34e0(_0x3568b4,_0x5adf50(0x16e),_0x5521be),_0x3568b4),_0x3791fd[_0x5adf50(0x185)]=_0x91af27([_0x332bbc(0x1,_0x3162da['Inject'](_0x3162da[_0x5adf50(0x1c1)])),_0x332bbc(0x2,_0x3162da['IConfigService'])],_0x3791fd['UniverEditHistoryLoaderPlugin']),_0x3791fd['UNIVER_CONTAINER_ID_KEY']=_0x18b01d,_0x3791fd[_0x5adf50(0x108)]=_0x4a5e5c,Object['defineProperty'](_0x3791fd,Symbol[_0x5adf50(0xc8)],{'value':_0x5adf50(0x172)});}));
1
+ function _0x47ba(_0x84772d,_0x5cf244){const _0x572a03=_0x572a();return _0x47ba=function(_0x47baad,_0x52a5f2){_0x47baad=_0x47baad-0xb1;let _0x1a9b0a=_0x572a03[_0x47baad];return _0x1a9b0a;},_0x47ba(_0x84772d,_0x5cf244);}(function(_0x3e5bd3,_0x239310){const _0x5c3138=_0x47ba,_0x412f21=_0x3e5bd3();while(!![]){try{const _0x269d3b=parseInt(_0x5c3138(0xd9))/0x1+-parseInt(_0x5c3138(0x197))/0x2*(parseInt(_0x5c3138(0x109))/0x3)+-parseInt(_0x5c3138(0xba))/0x4*(parseInt(_0x5c3138(0x1a1))/0x5)+-parseInt(_0x5c3138(0x1c0))/0x6+parseInt(_0x5c3138(0x14f))/0x7*(parseInt(_0x5c3138(0x171))/0x8)+-parseInt(_0x5c3138(0x134))/0x9+parseInt(_0x5c3138(0x140))/0xa*(parseInt(_0x5c3138(0x103))/0xb);if(_0x269d3b===_0x239310)break;else _0x412f21['push'](_0x412f21['shift']());}catch(_0x107ced){_0x412f21['push'](_0x412f21['shift']());}}}(_0x572a,0x554c9),function(_0x487d08,_0x4690fb){const _0x59838c=_0x47ba;typeof exports==_0x59838c(0x186)&&typeof module<'u'?_0x4690fb(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define==_0x59838c(0x169)&&define['amd']?define([_0x59838c(0x1ba),_0x59838c(0x113),_0x59838c(0x1af),_0x59838c(0x13f),_0x59838c(0x14e),_0x59838c(0x180),_0x59838c(0x12b),_0x59838c(0x175),'@univerjs/sheets',_0x59838c(0x1a2),_0x59838c(0x19f),_0x59838c(0x1ce),_0x59838c(0xe6),'@univerjs-pro/sheets-sparkline-ui',_0x59838c(0x1ca),_0x59838c(0x18d),_0x59838c(0x1d2),_0x59838c(0xc2),_0x59838c(0xda),'@univerjs/engine-formula',_0x59838c(0xc1),'@univerjs/network','@univerjs/rpc',_0x59838c(0x13c),_0x59838c(0x189),'@univerjs/sheets-data-validation',_0x59838c(0x19d),_0x59838c(0x156),_0x59838c(0x122),_0x59838c(0xbb),'@univerjs/sheets-filter-ui',_0x59838c(0x129),_0x59838c(0xe0),_0x59838c(0x11f),_0x59838c(0x1b1),_0x59838c(0x177),_0x59838c(0x178)],_0x4690fb):(_0x487d08=typeof globalThis<'u'?globalThis:_0x487d08||self,_0x4690fb(_0x487d08[_0x59838c(0xd5)]={},_0x487d08['UniverCore'],_0x487d08['UniverProCollaboration'],_0x487d08[_0x59838c(0x16a)],_0x487d08['UniverDesign'],_0x487d08[_0x59838c(0x17c)],_0x487d08[_0x59838c(0x187)],_0x487d08[_0x59838c(0x175)],_0x487d08[_0x59838c(0xb6)],_0x487d08[_0x59838c(0x163)],_0x487d08[_0x59838c(0x164)],_0x487d08[_0x59838c(0x199)],_0x487d08[_0x59838c(0x1a9)],_0x487d08[_0x59838c(0x157)],_0x487d08[_0x59838c(0x158)],_0x487d08['UniverDocs'],_0x487d08[_0x59838c(0x188)],_0x487d08[_0x59838c(0x12e)],_0x487d08[_0x59838c(0x119)],_0x487d08[_0x59838c(0x1b5)],_0x487d08[_0x59838c(0x1bf)],_0x487d08[_0x59838c(0xee)],_0x487d08['UniverRpc'],_0x487d08['UniverSheetsConditionalFormatting'],_0x487d08['UniverSheetsConditionalFormattingUi'],_0x487d08[_0x59838c(0x15e)],_0x487d08['UniverSheetsDataValidationUi'],_0x487d08[_0x59838c(0x185)],_0x487d08['UniverSheetsDrawingUi'],_0x487d08[_0x59838c(0x112)],_0x487d08[_0x59838c(0x1c8)],_0x487d08[_0x59838c(0xb8)],_0x487d08[_0x59838c(0xc0)],_0x487d08['UniverSheetsHyperLink'],_0x487d08[_0x59838c(0xd3)],_0x487d08[_0x59838c(0x1a3)],_0x487d08['UniverSheetsUi']));}(this,function(_0x18b33f,_0x435e89,_0x234872,_0x2868c4,_0x2f2ab8,_0x366824,_0x557bbb,_0x42e2cd,_0x16f271,_0x1a5dbd,_0x3482a2,_0x401203,_0x3f5a06,_0x11758e,_0x2c3eaf,_0x243795,_0xe13328,_0x46e0c0,_0x39126f,_0x2c6a58,_0x5d8efb,_0x16394d,_0x3b4b61,_0x159230,_0x2e3a0c,_0x9039ff,_0x4e746f,_0x6aca34,_0x4e88d0,_0xd45c08,_0x5e88a0,_0x20b1a4,_0x5b7081,_0x1c3c6e,_0xefefa5,_0x1795c2,_0xeb5ff2){'use strict';const _0x3a5fc3=_0x47ba;var _0x23cf73=Object[_0x3a5fc3(0x1bd)],_0x313d94=(_0x5993c1,_0x3bed89,_0xde1d35)=>_0x3bed89 in _0x5993c1?_0x23cf73(_0x5993c1,_0x3bed89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xde1d35}):_0x5993c1[_0x3bed89]=_0xde1d35,_0x2a07f4=(_0x46ed5c,_0x2780ae,_0x326f9f)=>_0x313d94(_0x46ed5c,typeof _0x2780ae!=_0x3a5fc3(0x1cf)?_0x2780ae+'':_0x2780ae,_0x326f9f),_0x5a65d5;const _0x3395af='edit-history-loader.config',_0x42bde0={};function _0x2b0eba({ref:_0xb6d089,..._0x3ab579}){const _0x5aaff8=_0x3a5fc3,{icon:_0x5e1707,id:_0x29caf9,className:_0x262b5f,extend:_0x51bcc9,..._0x5106fb}=_0x3ab579,_0x14299b=(_0x5aaff8(0x116)+_0x29caf9+'\x20'+(_0x262b5f||''))[_0x5aaff8(0x11d)](),_0x4fd9d5=_0x366824['useRef']('_'+_0x376e5b());return _0x2772ce(_0x5e1707,''+_0x29caf9,{'defIds':_0x5e1707[_0x5aaff8(0x16b)],'idSuffix':_0x4fd9d5[_0x5aaff8(0xbc)]},{'ref':_0xb6d089,'className':_0x14299b,..._0x5106fb},_0x51bcc9);}function _0x2772ce(_0x4ab9e0,_0x2c4fc1,_0x1c1e60,_0x4ad7dd,_0x51a194){const _0x19eb56=_0x3a5fc3;return _0x366824['createElement'](_0x4ab9e0[_0x19eb56(0xb7)],{'key':_0x2c4fc1,..._0x5dd60c(_0x4ab9e0,_0x1c1e60,_0x51a194),..._0x4ad7dd},(_0x2024ea(_0x4ab9e0,_0x1c1e60)[_0x19eb56(0x1ad)]||[])['map']((_0x8ba6d3,_0x577a84)=>_0x2772ce(_0x8ba6d3,_0x2c4fc1+'-'+_0x4ab9e0[_0x19eb56(0xb7)]+'-'+_0x577a84,_0x1c1e60,void 0x0,_0x51a194)));}function _0x5dd60c(_0x20ebf0,_0x5ee713,_0x4fce8c){const _0x2c1e70=_0x3a5fc3,_0x3683ee={..._0x20ebf0[_0x2c1e70(0x1c4)]};_0x4fce8c!=null&&_0x4fce8c[_0x2c1e70(0x142)]&&_0x3683ee[_0x2c1e70(0xb2)]==='colorChannel1'&&(_0x3683ee[_0x2c1e70(0xb2)]=_0x4fce8c[_0x2c1e70(0x142)]),_0x20ebf0[_0x2c1e70(0xb7)]===_0x2c1e70(0xe7)&&_0x3683ee['id']&&(_0x3683ee['id']=_0x3683ee['id']+_0x5ee713[_0x2c1e70(0xc8)]),Object['entries'](_0x3683ee)[_0x2c1e70(0x176)](([_0x20cf6c,_0x5d60fe])=>{const _0x439143=_0x2c1e70;_0x20cf6c==='mask'&&typeof _0x5d60fe=='string'&&(_0x3683ee[_0x20cf6c]=_0x5d60fe[_0x439143(0xe4)](/url\(#(.*)\)/,_0x439143(0x12f)+_0x5ee713[_0x439143(0xc8)]+')'));});const {defIds:_0x55b489}=_0x5ee713;return!_0x55b489||_0x55b489[_0x2c1e70(0xd8)]===0x0||(_0x20ebf0['tag']==='use'&&_0x3683ee[_0x2c1e70(0x198)]&&(_0x3683ee[_0x2c1e70(0x198)]=_0x3683ee['xlink:href']+_0x5ee713['idSuffix']),Object['entries'](_0x3683ee)[_0x2c1e70(0x176)](([_0x25a1fb,_0x1c9132])=>{const _0x14bc95=_0x2c1e70;typeof _0x1c9132==_0x14bc95(0x1cd)&&(_0x3683ee[_0x25a1fb]=_0x1c9132[_0x14bc95(0xe4)](/url\(#(.*)\)/,_0x14bc95(0x12f)+_0x5ee713['idSuffix']+')'));})),_0x3683ee;}function _0x2024ea(_0xdf03c6,_0x2a1259){const _0xbb731f=_0x3a5fc3;var _0x2b69c6;const {defIds:_0x4e4efa}=_0x2a1259;return!_0x4e4efa||_0x4e4efa[_0xbb731f(0xd8)]===0x0?_0xdf03c6:_0xdf03c6[_0xbb731f(0xb7)]===_0xbb731f(0xf9)&&((_0x2b69c6=_0xdf03c6[_0xbb731f(0x1ad)])!=null&&_0x2b69c6[_0xbb731f(0xd8)])?{..._0xdf03c6,'children':_0xdf03c6[_0xbb731f(0x1ad)][_0xbb731f(0x13d)](_0x543deb=>typeof _0x543deb[_0xbb731f(0x1c4)]['id']==_0xbb731f(0x1cd)&&_0x4e4efa&&_0x4e4efa[_0xbb731f(0x10c)](_0x543deb['attrs']['id'])?{..._0x543deb,'attrs':{..._0x543deb[_0xbb731f(0x1c4)],'id':_0x543deb[_0xbb731f(0x1c4)]['id']+_0x2a1259[_0xbb731f(0xc8)]}}:_0x543deb)}:_0xdf03c6;}function _0x376e5b(){const _0x21904e=_0x3a5fc3;return Math[_0x21904e(0x1c6)]()[_0x21904e(0x174)](0x24)[_0x21904e(0x1cc)](0x2,0x8);}_0x2b0eba[_0x3a5fc3(0x132)]='UniverIcon';const _0x52517b={'tag':_0x3a5fc3(0x14a),'attrs':{'xmlns':_0x3a5fc3(0xe5),'fill':_0x3a5fc3(0x1c3),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3a5fc3(0x17d)},'children':[{'tag':'g','attrs':{'fill':_0x3a5fc3(0xe8),'clipPath':_0x3a5fc3(0x137)},'children':[{'tag':_0x3a5fc3(0x115),'attrs':{'d':_0x3a5fc3(0xc5)}},{'tag':_0x3a5fc3(0x115),'attrs':{'d':_0x3a5fc3(0xb9)}}]},{'tag':_0x3a5fc3(0xf9),'attrs':{},'children':[{'tag':_0x3a5fc3(0xf5),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':'path','attrs':{'fill':_0x3a5fc3(0x152),'d':_0x3a5fc3(0x12d)}}]}]}],'defIds':[_0x3a5fc3(0x145)]},_0x107df8=_0x366824['forwardRef'](function(_0xa45381,_0x1d2171){const _0x19948d=_0x3a5fc3;return _0x366824[_0x19948d(0xf2)](_0x2b0eba,Object[_0x19948d(0x17a)]({},_0xa45381,{'id':_0x19948d(0x192),'ref':_0x1d2171,'icon':_0x52517b}));});_0x107df8[_0x3a5fc3(0x132)]=_0x3a5fc3(0x136);var _0x3f1413=Object[_0x3a5fc3(0x10a)],_0x4f3fea=(_0x1e0762,_0x33108b,_0xcc8e14,_0x543a87)=>{const _0x3e09d3=_0x3a5fc3;for(var _0x5ea944=_0x543a87>0x1?void 0x0:_0x543a87?_0x3f1413(_0x33108b,_0xcc8e14):_0x33108b,_0x27bd24=_0x1e0762[_0x3e09d3(0xd8)]-0x1,_0x4a10e4;_0x27bd24>=0x0;_0x27bd24--)(_0x4a10e4=_0x1e0762[_0x27bd24])&&(_0x5ea944=_0x4a10e4(_0x5ea944)||_0x5ea944);return _0x5ea944;},_0x14debb=(_0x8ee068,_0x3298f6)=>(_0x5f082e,_0xae6243)=>_0x3298f6(_0x5f082e,_0xae6243,_0x8ee068);const _0x117d15='univer-container',_0x521268=_0x3a5fc3(0xdb),_0x1cc2cc=_0x3a5fc3(0x1a0);_0x18b33f[_0x3a5fc3(0xf7)]=class extends _0x435e89[_0x3a5fc3(0xc4)]{constructor(_0x22874a,_0x1d9f97,_0x36b3b5,_0x507341,_0x16454e,_0x24f1ca,_0x4d3123,_0xcb5c49,_0x375c8a,_0x4f238e){const _0x79e84f=_0x3a5fc3;super(),_0x2a07f4(this,_0x79e84f(0x16e),new _0x42e2cd['BehaviorSubject'](null)),_0x2a07f4(this,_0x79e84f(0x121),this['_historyUniver$'][_0x79e84f(0x168)]()),_0x2a07f4(this,'_disposableCollection',new _0x435e89[(_0x79e84f(0x18b))]()),_0x2a07f4(this,_0x79e84f(0xcd),new Map()),(this[_0x79e84f(0x10d)]=_0x22874a,this[_0x79e84f(0x100)]=_0x1d9f97,this[_0x79e84f(0x194)]=_0x36b3b5,this[_0x79e84f(0xf0)]=_0x507341,this[_0x79e84f(0x1c1)]=_0x16454e,this[_0x79e84f(0x114)]=_0x24f1ca,this[_0x79e84f(0x15f)]=_0x4d3123,this[_0x79e84f(0x1b6)]=_0xcb5c49,this[_0x79e84f(0xe1)]=_0x375c8a,this[_0x79e84f(0xb1)]=_0x4f238e,this[_0x79e84f(0x1c5)]());}get[_0x3a5fc3(0xe2)](){const _0x5720d3=_0x3a5fc3;return this[_0x5720d3(0x16e)][_0x5720d3(0x130)];}[_0x3a5fc3(0x1c5)](){const _0x5f2939=_0x3a5fc3;this[_0x5f2939(0xde)](),this[_0x5f2939(0x102)]();}[_0x3a5fc3(0xde)](){const _0x3cc00e=_0x3a5fc3;var _0x360db4;const _0x407788=(_0x360db4=this[_0x3cc00e(0x194)][_0x3cc00e(0x101)](_0x521268))!=null?_0x360db4:_0x117d15,_0x5bd016=document[_0x3cc00e(0x19b)](_0x407788);if(!_0x5bd016)return;const _0x177c2b=document[_0x3cc00e(0xf2)](_0x3cc00e(0xd6));_0x177c2b['id']=_0x1cc2cc,_0x177c2b['dataset'][_0x3cc00e(0x1b0)]=_0x3cc00e(0xdd),_0x177c2b['style']['position']=_0x3cc00e(0x182),_0x177c2b[_0x3cc00e(0xfc)][_0x3cc00e(0xec)]='0',_0x177c2b[_0x3cc00e(0xfc)][_0x3cc00e(0x108)]='0',_0x177c2b[_0x3cc00e(0xfc)]['width']=_0x3cc00e(0xf8),_0x177c2b[_0x3cc00e(0xfc)][_0x3cc00e(0x11e)]=_0x3cc00e(0xf8),_0x177c2b['style'][_0x3cc00e(0x125)]='1000',_0x177c2b[_0x3cc00e(0xfc)]['display']=_0x3cc00e(0x1c3),_0x5bd016[_0x3cc00e(0x15d)](_0x177c2b);}[_0x3a5fc3(0x102)](){const _0x5dd7d1=_0x3a5fc3;var _0x4f3db3;[[_0x5d8efb[_0x5dd7d1(0xfd)]],[_0x557bbb[_0x5dd7d1(0x195)],{'container':_0x1cc2cc,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x557bbb[_0x5dd7d1(0x19e)],null]]}],[_0x16394d[_0x5dd7d1(0x107)]],[_0x46e0c0[_0x5dd7d1(0x1b8)],{'override':[[_0x46e0c0[_0x5dd7d1(0xc7)],null]]}],[_0x243795[_0x5dd7d1(0x16c)],{'hasScroll':!0x1}],[_0xe13328[_0x5dd7d1(0x1cb)]],[_0x1795c2['UniverSheetsNumfmtPlugin']],[_0x16f271[_0x5dd7d1(0x181)],{'notExecuteFormula':!0x0}],[_0xeb5ff2[_0x5dd7d1(0xf3)]],[_0x20b1a4[_0x5dd7d1(0x1b9)]],[_0x5b7081[_0x5dd7d1(0x19a)]],[_0x234872[_0x5dd7d1(0x183)]],[_0xd45c08[_0x5dd7d1(0x154)]],[_0x5e88a0[_0x5dd7d1(0x11a)]],[_0x159230['UniverSheetsConditionalFormattingPlugin']],[_0x2e3a0c['UniverSheetsConditionalFormattingUIPlugin']],[_0x1c3c6e['UniverSheetsHyperLinkPlugin']],[_0xefefa5[_0x5dd7d1(0x1a4)]],[_0x2c3eaf[_0x5dd7d1(0x1aa)]],[_0x9039ff[_0x5dd7d1(0xeb)]],[_0x4e746f['UniverSheetsDataValidationUIPlugin']],[_0x2c6a58[_0x5dd7d1(0x17b)],{'notExecuteFormula':!0x0}],[_0x3b4b61[_0x5dd7d1(0xfa)],{'workerURL':'./worker.js'}],[_0x39126f[_0x5dd7d1(0x18f)]],[_0x6aca34[_0x5dd7d1(0xf1)]],[_0x4e88d0[_0x5dd7d1(0x196)]],[_0x3f5a06['UniverSheetSparklinePlugin']],[_0x11758e['UniverSheetSparklineUIPlugin']],[_0x401203['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x1a5dbd[_0x5dd7d1(0xff)],{'historyListServerUrl':(_0x4f3db3=this[_0x5dd7d1(0x194)]['getConfig'](_0x3395af))==null?void 0x0:_0x4f3db3[_0x5dd7d1(0x18a)]}]][_0x5dd7d1(0x176)](([_0x2a3353,_0x2cb73d])=>this[_0x5dd7d1(0x141)](_0x2a3353,_0x2cb73d));}[_0x3a5fc3(0xf6)](){const _0x5bb2d2=_0x3a5fc3;super[_0x5bb2d2(0xf6)](),this[_0x5bb2d2(0x1a6)](),this[_0x5bb2d2(0xcd)][_0x5bb2d2(0x12c)]();}['registerPlugin'](_0x57cb7a,_0x5dc95a,_0x3693d7){const _0x52e15a=_0x3a5fc3;if(this[_0x52e15a(0xcd)][_0x52e15a(0xd0)](_0x57cb7a[_0x52e15a(0xfb)])&&!_0x3693d7)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x57cb7a[_0x52e15a(0xfb)]+_0x52e15a(0x123));this[_0x52e15a(0xcd)]['set'](_0x57cb7a[_0x52e15a(0xfb)],[_0x57cb7a,_0x5dc95a]);}[_0x3a5fc3(0x10f)](){const _0x296b55=_0x3a5fc3;return Array[_0x296b55(0x126)](this[_0x296b55(0xcd)][_0x296b55(0x14b)]());}[_0x3a5fc3(0x193)](_0x166721){const _0x153a8c=_0x3a5fc3,_0x46cdcd=document[_0x153a8c(0x19b)](_0x1cc2cc);_0x46cdcd&&(_0x46cdcd[_0x153a8c(0xfc)][_0x153a8c(0xe3)]=_0x153a8c(0xdf),this[_0x153a8c(0x17e)](_0x166721,_0x1cc2cc));}[_0x3a5fc3(0x1a6)](){const _0x14e148=_0x3a5fc3;var _0x59ab79;this['_disposableCollection'][_0x14e148(0xf6)](),(_0x59ab79=this[_0x14e148(0xe2)])==null||_0x59ab79['dispose'](),this[_0x14e148(0x16e)][_0x14e148(0x15a)](null);const _0x26ce2f=document[_0x14e148(0x19b)](_0x1cc2cc);_0x26ce2f&&(_0x26ce2f[_0x14e148(0xfc)][_0x14e148(0xe3)]=_0x14e148(0x1c3));}[_0x3a5fc3(0x17e)](_0x5a81f0,_0x178c7b){const _0x393c8d=_0x3a5fc3;if(this[_0x393c8d(0xe2)])return;const _0x493863=new _0x435e89[(_0x393c8d(0xfe))]({'locales':{[this[_0x393c8d(0x10d)]['getCurrentLocale']()]:this[_0x393c8d(0x10d)][_0x393c8d(0xef)]()},'override':[[_0x435e89[_0x393c8d(0x190)],{'useClass':_0x2868c4[_0x393c8d(0x13b)]}]]}),_0x1faded=_0x493863[_0x393c8d(0x139)]();this[_0x393c8d(0x162)](this[_0x393c8d(0xb1)]['darkMode$'][_0x393c8d(0x106)](_0x54c586=>{const _0x1a1bbf=_0x393c8d;_0x1faded[_0x1a1bbf(0x19c)](_0x435e89[_0x1a1bbf(0x120)])[_0x1a1bbf(0x173)](_0x54c586);})),this['disposeWithMe'](this[_0x393c8d(0xb1)][_0x393c8d(0x1d3)][_0x393c8d(0x106)](_0x2797bf=>{const _0x1deeb8=_0x393c8d;_0x1faded[_0x1deeb8(0x19c)](_0x435e89[_0x1deeb8(0x120)])['setTheme'](_0x2797bf);})),_0x1faded[_0x393c8d(0x19c)](_0x435e89[_0x393c8d(0x15b)])[_0x393c8d(0x15c)](this[_0x393c8d(0x10d)][_0x393c8d(0x1a8)]()),_0x1faded['get'](_0x435e89[_0x393c8d(0x1b3)])[_0x393c8d(0xcc)](_0x2868c4['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this['_configService']['getConfig'](_0x2868c4[_0x393c8d(0x155)]));const _0x324896=this[_0x393c8d(0x194)][_0x393c8d(0x101)](_0x3482a2[_0x393c8d(0x1b7)]);_0x324896&&_0x493863[_0x393c8d(0x141)](_0x3482a2[_0x393c8d(0xed)],{'license':_0x324896['ls']}),this['_pluginMap'][_0x393c8d(0x176)](([_0x1a01a4,_0x533195])=>{const _0x1deaff=_0x393c8d;_0x493863[_0x1deaff(0x141)](_0x1a01a4,_0x533195);}),_0x1faded[_0x393c8d(0x165)](_0x223c2e=>{const _0x4cb532=_0x393c8d;this[_0x4cb532(0x18c)](_0x223c2e,_0x5a81f0);}),this[_0x393c8d(0x16e)][_0x393c8d(0x15a)](_0x493863);const _0x49c61e=_0x1faded[_0x393c8d(0x19c)](_0x1a5dbd[_0x393c8d(0x143)]),_0x1a7dd8=this[_0x393c8d(0x151)](_0x5a81f0);_0x49c61e[_0x393c8d(0x131)](_0x5a81f0,_0x178c7b,_0x1a7dd8);}[_0x3a5fc3(0x18c)](_0x333b34,_0x22955c){const _0x5d0fc6=_0x3a5fc3,_0x26bdfa=_0x333b34[_0x5d0fc6(0x19c)](_0x1a5dbd[_0x5d0fc6(0x143)]);this[_0x5d0fc6(0x184)][_0x5d0fc6(0x118)](_0x26bdfa[_0x5d0fc6(0x149)][_0x5d0fc6(0x106)](_0x40c650=>{const _0x41d815=_0x5d0fc6;switch(_0x40c650){case _0x1a5dbd[_0x41d815(0x104)][_0x41d815(0xcb)]:this['_dialogService'][_0x41d815(0x170)](),this[_0x41d815(0xe1)]['close']();break;case _0x1a5dbd[_0x41d815(0x104)]['Exited']:this[_0x41d815(0x1a6)]();break;case _0x1a5dbd[_0x41d815(0x104)]['Error']:this[_0x41d815(0x1a6)](),this[_0x41d815(0x1c1)][_0x41d815(0x11c)]({'content':this[_0x41d815(0x10d)]['t'](_0x41d815(0xea)),'type':_0x2f2ab8[_0x41d815(0x13e)]['Error'],'duration':0xbb8});break;}})),this[_0x5d0fc6(0x184)]['add'](_0x26bdfa['revertRevision$'][_0x5d0fc6(0x106)](async _0xf52311=>{const _0x39f47b=_0x5d0fc6;_0xf52311&&this[_0x39f47b(0xf0)][_0x39f47b(0x1d0)](_0x234872['RevertRevisionMutation']['id'],{'unitId':_0x22955c,'revision':_0xf52311});}));}['_checkCanRevert'](_0x4f6c6b){const _0x4aba7a=_0x3a5fc3,_0x24d5da=this['_univerInstanceService']['getUnit'](_0x4f6c6b)['getSheets']()['map'](_0x30faf5=>_0x30faf5['getSheetId']()),_0x3603e8=new _0x16f271[(_0x4aba7a(0xe9))](_0x4f6c6b)['id'],_0x18acc9=_0x24d5da[_0x4aba7a(0x13d)](_0x57467e=>new _0x16f271['WorksheetEditPermission'](_0x4f6c6b,_0x57467e)['id']),_0x139558=_0x24d5da[_0x4aba7a(0x13d)](_0x252594=>this[_0x4aba7a(0x15f)][_0x4aba7a(0xd4)](_0x4f6c6b,_0x252594)[_0x4aba7a(0x13d)](_0x623ef4=>new _0x16f271['RangeProtectionPermissionEditPoint'](_0x4f6c6b,_0x252594,_0x623ef4[_0x4aba7a(0x1ae)])['id']))[_0x4aba7a(0x16d)](),_0x4abd0e=new _0x16f271[(_0x4aba7a(0x14d))](_0x4f6c6b)['id'];return this[_0x4aba7a(0x114)][_0x4aba7a(0x1c7)]([_0x3603e8,..._0x18acc9,..._0x139558,_0x4abd0e])['every'](_0x4fde2a=>!!_0x4fde2a[_0x4aba7a(0x130)]);}},_0x18b33f[_0x3a5fc3(0xf7)]=_0x4f3fea([_0x14debb(0x0,_0x435e89[_0x3a5fc3(0xd7)](_0x435e89[_0x3a5fc3(0x15b)])),_0x14debb(0x1,_0x435e89[_0x3a5fc3(0xce)]),_0x14debb(0x2,_0x435e89['IConfigService']),_0x14debb(0x3,_0x435e89[_0x3a5fc3(0x1c9)]),_0x14debb(0x4,_0x557bbb[_0x3a5fc3(0x10b)]),_0x14debb(0x5,_0x435e89[_0x3a5fc3(0xb4)]),_0x14debb(0x6,_0x435e89[_0x3a5fc3(0xd7)](_0x16f271[_0x3a5fc3(0x127)])),_0x14debb(0x7,_0x435e89[_0x3a5fc3(0xd7)](_0x557bbb[_0x3a5fc3(0x19e)])),_0x14debb(0x8,_0x435e89[_0x3a5fc3(0xd7)](_0x557bbb[_0x3a5fc3(0x179)])),_0x14debb(0x9,_0x435e89['Inject'](_0x435e89['ThemeService']))],_0x18b33f['HistoryLoaderService']);const _0x5c40c9={'id':'univer.operation.toggle-edit-history','type':_0x435e89[_0x3a5fc3(0x147)][_0x3a5fc3(0x191)],'handler':_0x23d02a=>{const _0x631cec=_0x3a5fc3,_0x3175b9=_0x23d02a[_0x631cec(0x19c)](_0x18b33f['HistoryLoaderService']),_0x4ff66b=_0x23d02a[_0x631cec(0x19c)](_0x435e89[_0x631cec(0xce)]),{unitId:_0x3dee76}=_0x16f271[_0x631cec(0x14c)](_0x4ff66b)||{};return _0x3dee76?(_0x3175b9[_0x631cec(0x193)](_0x3dee76),!0x0):!0x1;}};function _0x28e17c(_0x2316db){const _0x3e36fb=_0x3a5fc3;return{'id':_0x5c40c9['id'],'type':_0x557bbb[_0x3e36fb(0xcf)][_0x3e36fb(0x1a7)],'icon':_0x3e36fb(0x136),'tooltip':'editHistory.panel.title','hidden$':_0x557bbb[_0x3e36fb(0x1be)](_0x2316db,_0x435e89['UniverInstanceType'][_0x3e36fb(0x13a)]),'disabled$':_0xeb5ff2[_0x3e36fb(0x133)](_0x2316db,{'workbookTypes':[_0x16f271[_0x3e36fb(0xe9)],_0x16f271['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x1ad19d={[_0x557bbb[_0x3a5fc3(0x10e)]['OTHERS']]:{[_0x5c40c9['id']]:{'order':0.2,'menuItemFactory':_0x28e17c}}};var _0x5a325a=Object[_0x3a5fc3(0x10a)],_0x472750=(_0x22630f,_0x10ad8f,_0xa23f6c,_0x2c0bf4)=>{const _0x17c793=_0x3a5fc3;for(var _0x5c0ca8=_0x2c0bf4>0x1?void 0x0:_0x2c0bf4?_0x5a325a(_0x10ad8f,_0xa23f6c):_0x10ad8f,_0x5af9c5=_0x22630f[_0x17c793(0xd8)]-0x1,_0x2857e2;_0x5af9c5>=0x0;_0x5af9c5--)(_0x2857e2=_0x22630f[_0x5af9c5])&&(_0x5c0ca8=_0x2857e2(_0x5c0ca8)||_0x5c0ca8);return _0x5c0ca8;},_0x5ed603=(_0xaed5e9,_0x2ebdf9)=>(_0x1417e6,_0x466d49)=>_0x2ebdf9(_0x1417e6,_0x466d49,_0xaed5e9);let _0x2621b9=class extends _0x435e89[_0x3a5fc3(0xb3)]{constructor(_0x1d4d38,_0x278275,_0x22f7a0,_0x3fa3b0,_0x13c2ef,_0x315c8d,_0x3bd1ac,_0xc0dfe6){const _0x5092da=_0x3a5fc3;super(),_0x2a07f4(this,_0x5092da(0x124),null),(this[_0x5092da(0xf0)]=_0x1d4d38,this[_0x5092da(0x1c2)]=_0x278275,this[_0x5092da(0x105)]=_0x22f7a0,this['_historyManagerService']=_0x3fa3b0,this[_0x5092da(0x10d)]=_0x13c2ef,this['_messageService']=_0x315c8d,this['_collaborationController']=_0x3bd1ac,this[_0x5092da(0x146)]=_0xc0dfe6,this[_0x5092da(0x1c5)]());}[_0x3a5fc3(0x1c5)](){const _0x31e704=_0x3a5fc3;[_0x5c40c9][_0x31e704(0x176)](_0x478f6f=>this[_0x31e704(0x162)](_0x435e89[_0x31e704(0xdc)](this['_commandService'][_0x31e704(0x167)](_0x478f6f)))),this[_0x31e704(0x162)](this[_0x31e704(0x105)][_0x31e704(0x12a)]('HistoryIcon',_0x107df8)),this[_0x31e704(0x1c2)]['mergeMenu'](_0x1ad19d),this[_0x31e704(0x162)](this[_0x31e704(0xf0)]['onCommandExecuted'](_0x5c913e=>{const _0x230b42=_0x31e704;if(_0x5c913e['id']===_0x234872['RevertRevisionMutation']['id']){this[_0x230b42(0x1c1)][_0x230b42(0x11c)]({'content':this[_0x230b42(0x10d)]['t'](_0x230b42(0xc9)),'type':_0x2f2ab8[_0x230b42(0x13e)][_0x230b42(0xd2)],'duration':0x1388});const {unitId:_0x4a606b}=_0x5c913e[_0x230b42(0x1bb)],_0x4a5407=this[_0x230b42(0x1bc)][_0x230b42(0xbd)](_0x4a606b),_0x4aeeb6=_0x42e2cd['combineLatest']([_0x4a5407[_0x230b42(0x148)][_0x230b42(0x11b)],_0x4a5407['state$']])[_0x230b42(0x106)](async([_0x226692,_0x48ba04])=>{const _0x9ee197=_0x230b42;var _0x43c99b;_0x226692[_0x9ee197(0x159)]===_0x234872[_0x9ee197(0x135)][_0x9ee197(0x1d1)]&&(_0x48ba04==null?void 0x0:_0x48ba04[_0x9ee197(0x128)])===_0x2868c4[_0x9ee197(0x166)][_0x9ee197(0x117)]&&_0x226692[_0x9ee197(0x153)][_0x9ee197(0x150)]['some'](_0x345835=>_0x345835['id']===_0x234872['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x9ee197(0x1a6)](),_0x4aeeb6[_0x9ee197(0x110)](),this[_0x9ee197(0x124)]&&clearTimeout(this[_0x9ee197(0x124)]),await((_0x43c99b=this[_0x9ee197(0x146)])==null?void 0x0:_0x43c99b[_0x9ee197(0xb5)]()),setTimeout(()=>window['location'][_0x9ee197(0x16f)]()));});this[_0x230b42(0x124)]=setTimeout(()=>{const _0x6916f3=_0x230b42;_0x4aeeb6['unsubscribe'](),this[_0x6916f3(0x1c1)][_0x6916f3(0x11c)]({'content':this[_0x6916f3(0x10d)]['t'](_0x6916f3(0x17f)),'type':_0x2f2ab8['MessageType'][_0x6916f3(0x1ac)],'duration':0xbb8});},0x1388);}}));}};_0x2621b9=_0x472750([_0x5ed603(0x0,_0x435e89[_0x3a5fc3(0x1c9)]),_0x5ed603(0x1,_0x557bbb[_0x3a5fc3(0xca)]),_0x5ed603(0x2,_0x435e89['Inject'](_0x557bbb[_0x3a5fc3(0x144)])),_0x5ed603(0x3,_0x435e89[_0x3a5fc3(0xd7)](_0x18b33f[_0x3a5fc3(0xf7)])),_0x5ed603(0x4,_0x435e89[_0x3a5fc3(0xd7)](_0x435e89[_0x3a5fc3(0x15b)])),_0x5ed603(0x5,_0x557bbb[_0x3a5fc3(0x10b)]),_0x5ed603(0x6,_0x435e89['Inject'](_0x2868c4['CollaborationController'])),_0x5ed603(0x7,_0x2868c4[_0x3a5fc3(0xf4)])],_0x2621b9);var _0x4811e5=Object[_0x3a5fc3(0x10a)],_0x1d65a3=(_0x3da475,_0x325be6,_0x4b4ac5,_0x5366e9)=>{const _0x325fda=_0x3a5fc3;for(var _0xb4f209=_0x5366e9>0x1?void 0x0:_0x5366e9?_0x4811e5(_0x325be6,_0x4b4ac5):_0x325be6,_0x5d4681=_0x3da475[_0x325fda(0xd8)]-0x1,_0x3e688b;_0x5d4681>=0x0;_0x5d4681--)(_0x3e688b=_0x3da475[_0x5d4681])&&(_0xb4f209=_0x3e688b(_0xb4f209)||_0xb4f209);return _0xb4f209;},_0x36eaae=(_0x47d3a9,_0x789789)=>(_0x123aac,_0x4e3884)=>_0x789789(_0x123aac,_0x4e3884,_0x47d3a9);const _0x320642=_0x3a5fc3(0x18e);_0x18b33f[_0x3a5fc3(0x111)]=(_0x5a65d5=class extends _0x435e89[_0x3a5fc3(0xc3)]{constructor(_0x42d4cc=_0x42bde0,_0x4c4073,_0x1a70c1){const _0x2c9786=_0x3a5fc3;super(),this[_0x2c9786(0xbf)]=_0x42d4cc,this[_0x2c9786(0x161)]=_0x4c4073,this[_0x2c9786(0x194)]=_0x1a70c1;const {menu:_0x1d7a6d,..._0x22cad2}=_0x435e89[_0x2c9786(0x160)]({},_0x42bde0,this[_0x2c9786(0xbf)]);_0x1d7a6d&&this[_0x2c9786(0x194)][_0x2c9786(0xcc)]('menu',_0x1d7a6d,{'merge':!0x0}),this[_0x2c9786(0x194)][_0x2c9786(0xcc)](_0x3395af,_0x22cad2),this[_0x2c9786(0xbf)][_0x2c9786(0x1b2)]&&this[_0x2c9786(0x194)][_0x2c9786(0xcc)](_0x521268,this[_0x2c9786(0xbf)]['univerContainerId']);}[_0x3a5fc3(0x138)](){const _0x3c196e=_0x3a5fc3;[[_0x18b33f[_0x3c196e(0xf7)]],[_0x2621b9]]['forEach'](_0x1e391e=>this[_0x3c196e(0x161)][_0x3c196e(0x118)](_0x1e391e));}[_0x3a5fc3(0xd1)](){const _0x2fed86=_0x3a5fc3;this[_0x2fed86(0x161)][_0x2fed86(0x19c)](_0x2621b9);}},_0x2a07f4(_0x5a65d5,_0x3a5fc3(0xc6),_0x435e89['UniverInstanceType'][_0x3a5fc3(0x1ab)]),_0x2a07f4(_0x5a65d5,'pluginName',_0x320642),_0x5a65d5),_0x18b33f[_0x3a5fc3(0x111)]=_0x1d65a3([_0x36eaae(0x1,_0x435e89[_0x3a5fc3(0xd7)](_0x435e89[_0x3a5fc3(0x1b4)])),_0x36eaae(0x2,_0x435e89['IConfigService'])],_0x18b33f[_0x3a5fc3(0x111)]),_0x18b33f['UNIVER_CONTAINER_ID_KEY']=_0x521268,_0x18b33f[_0x3a5fc3(0x172)]=_0x1cc2cc,Object[_0x3a5fc3(0x1bd)](_0x18b33f,Symbol[_0x3a5fc3(0xbe)],{'value':_0x3a5fc3(0x1a5)});}));function _0x572a(){const _0x4c5a34=['merge','_injector','disposeWithMe','UniverProEditHistoryViewer','UniverProLicense','invoke','CollaborationStatus','registerCommand','asObservable','function','UniverProCollaborationClient','defIds','UniverDocsPlugin','flat','_historyUniver$','reload','closeAll','16BxNiyu','UNIVER_HISTORY_CONTAINER_ID','setDarkMode','toString','rxjs','forEach','@univerjs/sheets-numfmt','@univerjs/sheets-ui','ISidebarService','assign','UniverFormulaEnginePlugin','React','1em','_initUniver','editHistory.panel.revertFailed','react','UniverSheetsPlugin','absolute','UniverCollaborationPlugin','_disposableCollection','UniverSheetsDrawing','object','UniverUi','UniverDocsUi','@univerjs/sheets-conditional-formatting-ui','historyListServerUrl','DisposableCollection','_initListener','@univerjs/docs','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverDrawingUIPlugin','IAuthzIoService','OPERATION','history-icon','mountHistoryContent','_configService','UniverUIPlugin','UniverSheetsDrawingUIPlugin','64314mtymrn','xlink:href','UniverProSheetsPivot','UniverSheetsFormulaUIPlugin','getElementById','get','@univerjs/sheets-data-validation-ui','IDialogService','@univerjs-pro/license','univer-history-container','105FOToCW','@univerjs-pro/edit-history-viewer','UniverSheetsNumfmt','UniverSheetsHyperLinkUIPlugin','Module','unMountHistoryContent','BUTTON','getCurrentLocale','UniverProSheetsSparkline','UniverDataValidationPlugin','UNIVER_UNKNOWN','Error','children','permissionId','@univerjs-pro/collaboration','uComp','@univerjs/sheets-hyper-link-ui','univerContainerId','IConfigService','Injector','UniverEngineFormula','_dialogService','LS_CONFIG_KEY','UniverDrawingPlugin','UniverSheetsFormulaPlugin','exports','params','_collaborationController','defineProperty','getMenuHiddenObservable','UniverEngineRender','264738ZZrlBp','_messageService','_menuManagerService','none','attrs','_init','random','composePermission','UniverSheetsFilterUi','ICommandService','@univerjs/data-validation','UniverDocsUIPlugin','substring','string','@univerjs-pro/sheets-pivot','symbol','executeCommand','CHANGESET_ACK','@univerjs/docs-ui','currentTheme$','_themeService','fill','RxDisposable','IPermissionService','exhaustSavingTask','UniverSheets','tag','UniverSheetsFormula','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','103688RFYkon','@univerjs/sheets-filter','current','getCollabEntity','toStringTag','_config','UniverSheetsFormulaUi','@univerjs/engine-render','@univerjs/drawing','Plugin','Disposable','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','type','IImageIoService','idSuffix','editHistory.panel.reverting','IMenuManagerService','Entered','setConfig','_pluginMap','IUniverInstanceService','MenuItemType','has','onSteady','Loading','UniverSheetsHyperLinkUi','getSubunitRuleList','UniverProEditHistoryLoader','div','Inject','length','250144PddebH','@univerjs/drawing-ui','UNIVER_CONTAINER_ID','toDisposable','history-container','_initContainer','block','@univerjs/sheets-formula-ui','_sidebarService','historyUniver','display','replace','http://www.w3.org/2000/svg','@univerjs-pro/sheets-sparkline','mask','currentColor','WorkbookEditablePermission','editHistory.panel.listFetchError','UniverSheetsDataValidationPlugin','top','UniverLicensePlugin','UniverNetwork','getLocales','_commandService','UniverSheetsDrawingPlugin','createElement','UniverSheetsUIPlugin','ILocalCacheService','clipPath','dispose','HistoryLoaderService','100%','defs','UniverRPCMainThreadPlugin','pluginName','style','UniverRenderEnginePlugin','Univer','UniverEditHistoryViewerPlugin','_univerInstanceService','getConfig','_initPlugins','1661cGGbmv','HistoryModeStatus','_componentManager','subscribe','UniverNetworkPlugin','left','24MgbfBA','getOwnPropertyDescriptor','IMessageService','includes','_localeService','RibbonStartGroup','getAllPlugins','unsubscribe','UniverEditHistoryLoaderPlugin','UniverSheetsFilter','@univerjs/core','_permissionService','path','univerjs-icon\x20univerjs-icon-','SYNCED','add','UniverDrawingUi','UniverSheetsFilterUIPlugin','event$','show','trim','height','@univerjs/sheets-hyper-link','ThemeService','historyUniver$','@univerjs/sheets-drawing-ui','\x20has\x20been\x20registered.','_revertErrorTimer','zIndex','from','RangeProtectionRuleModel','status','@univerjs/sheets-formula','register','@univerjs/ui','clear','M0\x200H16V16H0z','UniverDrawing','url(#$1','value','triggerLoadVersions','displayName','getCurrentRangeDisable$','5256837KbjUkK','CollaborationEvent','HistoryIcon','url(#history-icon_clip0_907_281)','onStarting','__getInjector','UNIVER_SHEET','AuthzIoHttpService','@univerjs/sheets-conditional-formatting','map','MessageType','@univerjs-pro/collaboration-client','76990kqOTeI','registerPlugin','colorChannel1','HistoryManagerService','ComponentManager','history-icon_clip0_907_281','_localCacheService','CommandType','session','status$','svg','values','getSheetCommandTarget','WorkbookRecoverHistoryPermission','@univerjs/design','1282841HuNCUz','mutations','_checkCanRevert','white','data','UniverSheetsFilterPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs/sheets-drawing','UniverProSheetsSparklineUi','UniverDataValidation','eventID','next','LocaleService','setLocale','appendChild','UniverSheetsDataValidation','_selectionProtectionRuleModel'];_0x572a=function(){return _0x4c5a34;};return _0x572a();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/edit-history-loader",
3
- "version": "0.10.13",
3
+ "version": "0.10.14-nightly.202511070628",
4
4
  "private": false,
5
5
  "description": "UniverSheet edit history loader",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,48 +47,48 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^1.0.2",
50
- "@univerjs-pro/collaboration": "0.10.13",
51
- "@univerjs-pro/collaboration-client": "0.10.13",
52
- "@univerjs-pro/edit-history-viewer": "0.10.13",
53
- "@univerjs-pro/license": "0.10.13",
54
- "@univerjs-pro/sheets-sparkline": "0.10.13",
55
- "@univerjs-pro/sheets-sparkline-ui": "0.10.13",
56
- "@univerjs-pro/sheets-pivot": "0.10.13",
57
- "@univerjs/core": "0.10.13",
58
- "@univerjs/data-validation": "0.10.13",
59
- "@univerjs/design": "0.10.13",
60
- "@univerjs/docs": "0.10.13",
61
- "@univerjs/drawing": "0.10.13",
62
- "@univerjs/drawing-ui": "0.10.13",
63
- "@univerjs/docs-ui": "0.10.13",
64
- "@univerjs/engine-render": "0.10.13",
65
- "@univerjs/network": "0.10.13",
66
- "@univerjs/rpc": "0.10.13",
67
- "@univerjs/engine-formula": "0.10.13",
68
- "@univerjs/sheets": "0.10.13",
69
- "@univerjs/sheets-conditional-formatting": "0.10.13",
70
- "@univerjs/sheets-conditional-formatting-ui": "0.10.13",
71
- "@univerjs/sheets-data-validation": "0.10.13",
72
- "@univerjs/sheets-drawing-ui": "0.10.13",
73
- "@univerjs/sheets-data-validation-ui": "0.10.13",
74
- "@univerjs/sheets-drawing": "0.10.13",
75
- "@univerjs/sheets-filter": "0.10.13",
76
- "@univerjs/sheets-filter-ui": "0.10.13",
77
- "@univerjs/sheets-formula": "0.10.13",
78
- "@univerjs/sheets-formula-ui": "0.10.13",
79
- "@univerjs/sheets-hyper-link-ui": "0.10.13",
80
- "@univerjs/sheets-numfmt": "0.10.13",
81
- "@univerjs/sheets-ui": "0.10.13",
82
- "@univerjs/sheets-hyper-link": "0.10.13",
83
- "@univerjs/ui": "0.10.13"
50
+ "@univerjs-pro/collaboration": "0.10.14-nightly.202511070628",
51
+ "@univerjs-pro/edit-history-viewer": "0.10.14-nightly.202511070628",
52
+ "@univerjs-pro/collaboration-client": "0.10.14-nightly.202511070628",
53
+ "@univerjs-pro/license": "0.10.14-nightly.202511070628",
54
+ "@univerjs-pro/sheets-pivot": "0.10.14-nightly.202511070628",
55
+ "@univerjs-pro/sheets-sparkline": "0.10.14-nightly.202511070628",
56
+ "@univerjs-pro/sheets-sparkline-ui": "0.10.14-nightly.202511070628",
57
+ "@univerjs/core": "0.10.14-nightly.202511070628",
58
+ "@univerjs/data-validation": "0.10.14-nightly.202511070628",
59
+ "@univerjs/design": "0.10.14-nightly.202511070628",
60
+ "@univerjs/docs-ui": "0.10.14-nightly.202511070628",
61
+ "@univerjs/docs": "0.10.14-nightly.202511070628",
62
+ "@univerjs/drawing-ui": "0.10.14-nightly.202511070628",
63
+ "@univerjs/drawing": "0.10.14-nightly.202511070628",
64
+ "@univerjs/engine-formula": "0.10.14-nightly.202511070628",
65
+ "@univerjs/engine-render": "0.10.14-nightly.202511070628",
66
+ "@univerjs/rpc": "0.10.14-nightly.202511070628",
67
+ "@univerjs/network": "0.10.14-nightly.202511070628",
68
+ "@univerjs/sheets": "0.10.14-nightly.202511070628",
69
+ "@univerjs/sheets-data-validation": "0.10.14-nightly.202511070628",
70
+ "@univerjs/sheets-conditional-formatting-ui": "0.10.14-nightly.202511070628",
71
+ "@univerjs/sheets-conditional-formatting": "0.10.14-nightly.202511070628",
72
+ "@univerjs/sheets-data-validation-ui": "0.10.14-nightly.202511070628",
73
+ "@univerjs/sheets-drawing": "0.10.14-nightly.202511070628",
74
+ "@univerjs/sheets-drawing-ui": "0.10.14-nightly.202511070628",
75
+ "@univerjs/sheets-filter": "0.10.14-nightly.202511070628",
76
+ "@univerjs/sheets-formula": "0.10.14-nightly.202511070628",
77
+ "@univerjs/sheets-formula-ui": "0.10.14-nightly.202511070628",
78
+ "@univerjs/sheets-hyper-link": "0.10.14-nightly.202511070628",
79
+ "@univerjs/sheets-hyper-link-ui": "0.10.14-nightly.202511070628",
80
+ "@univerjs/sheets-filter-ui": "0.10.14-nightly.202511070628",
81
+ "@univerjs/sheets-ui": "0.10.14-nightly.202511070628",
82
+ "@univerjs/sheets-numfmt": "0.10.14-nightly.202511070628",
83
+ "@univerjs/ui": "0.10.14-nightly.202511070628"
84
84
  },
85
85
  "devDependencies": {
86
86
  "react": "18.3.1",
87
87
  "rxjs": "7.8.2",
88
88
  "typescript": "^5.9.3",
89
- "vite": "^7.1.10",
89
+ "vite": "^7.1.12",
90
90
  "vitest": "^3.2.4",
91
- "@univerjs-infra/shared": "0.10.13"
91
+ "@univerjs-infra/shared": "0.10.14"
92
92
  },
93
93
  "scripts": {
94
94
  "test": "vitest run",