@univerjs-pro/docs-reference 1.0.1 → 1.0.2

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5ea4b8=_0x8bb4;function _0x166b(){const _0x2f5641=['CustomRangeType','find','footnote','body','syncExecuteCommand','ENDNOTE','endnote','4fiMLNh','1305459YUhfWC','28189ghcAlM','SetDocumentEndnoteSettingsCommand','1014790NoGqZE','insertEndnote','InsertDocumentEndnoteCommand','InsertDocumentFootnoteCommand','9siznCH','setEndnoteSettings','sectionBreaks','deleteFootnote','startIndex','getEndnotes','360fxHfpA','rangeType','getDocumentDataModel','sectionId','ICommandService','4643576VGhNRJ','47465DaRoQi','getSnapshot','deepClone','flatMap','getFootnoteSettings','noteSettings','2191721eIFHwM','FOOTNOTE','sort','DeleteDocumentEndnoteCommand','60500hsZShT','generateRandomId','Tools','filter','deleteEndnote','properties','300fYCVUS','customRanges','notes','string','94UscScu','noteProperties','getFootnotes','noteId','get','FDocument','DeleteDocumentFootnoteCommand','setFootnoteSettings','_injector'];_0x166b=function(){return _0x2f5641;};return _0x166b();}function _0x8bb4(_0x138591,_0x544d81){_0x138591=_0x138591-0x1af;const _0x166b45=_0x166b();let _0x8bb466=_0x166b45[_0x138591];return _0x8bb466;}(function(_0x378365,_0x349bc8){const _0x221ec8=_0x8bb4,_0x2fcf0d=_0x378365();while(!![]){try{const _0x11b0da=parseInt(_0x221ec8(0x1bf))/0x1*(parseInt(_0x221ec8(0x1e5))/0x2)+-parseInt(_0x221ec8(0x1be))/0x3*(parseInt(_0x221ec8(0x1bd))/0x4)+parseInt(_0x221ec8(0x1d1))/0x5*(-parseInt(_0x221ec8(0x1e1))/0x6)+-parseInt(_0x221ec8(0x1d7))/0x7+-parseInt(_0x221ec8(0x1d0))/0x8*(-parseInt(_0x221ec8(0x1c5))/0x9)+-parseInt(_0x221ec8(0x1c1))/0xa+parseInt(_0x221ec8(0x1db))/0xb*(parseInt(_0x221ec8(0x1cb))/0xc);if(_0x11b0da===_0x349bc8)break;else _0x2fcf0d['push'](_0x2fcf0d['shift']());}catch(_0x1f2ed9){_0x2fcf0d['push'](_0x2fcf0d['shift']());}}}(_0x166b,0xb61d9));let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');var r=class extends n[_0x5ea4b8(0x1b2)]{['insertFootnote'](_0x44e116,_0x16d98a={}){const _0x5a2ce8=_0x5ea4b8;let _0x123f19=(0x0,t[_0x5a2ce8(0x1dc)])(0xc);return this[_0x5a2ce8(0x1b5)][_0x5a2ce8(0x1b1)](t[_0x5a2ce8(0x1cf)])[_0x5a2ce8(0x1ba)](e[_0x5a2ce8(0x1c4)]['id'],{..._0x16d98a,'unitId':this['id'],'offset':_0x44e116,'noteId':_0x123f19})?_0x123f19:null;}[_0x5ea4b8(0x1af)](){const _0x1296dd=_0x5ea4b8;var _0x518fe1;let _0x341485=this[_0x1296dd(0x1cd)]()['getSnapshot']();return(((_0x518fe1=_0x341485[_0x1296dd(0x1b9)])==null?void 0x0:_0x518fe1[_0x1296dd(0x1e2)])??[])['filter'](_0x9bf09f=>_0x9bf09f[_0x1296dd(0x1cc)]===t[_0x1296dd(0x1b6)][_0x1296dd(0x1d8)])[_0x1296dd(0x1d9)]((_0x14c2b4,_0x37fc44)=>_0x14c2b4[_0x1296dd(0x1c9)]-_0x37fc44[_0x1296dd(0x1c9)])[_0x1296dd(0x1d4)](_0x5c020a=>{const _0x46c65d=_0x1296dd;var _0x342e7b,_0x32267f;let _0x4ef24c=(_0x342e7b=_0x5c020a[_0x46c65d(0x1e0)])==null?void 0x0:_0x342e7b[_0x46c65d(0x1b0)],_0x591e4f=typeof _0x4ef24c==_0x46c65d(0x1e4)?(_0x32267f=_0x341485[_0x46c65d(0x1e3)])==null?void 0x0:_0x32267f[_0x4ef24c]:void 0x0;return _0x591e4f?[t[_0x46c65d(0x1dd)]['deepClone'](_0x591e4f)]:[];});}[_0x5ea4b8(0x1c8)](_0x233d34){const _0x394937=_0x5ea4b8;return this[_0x394937(0x1b5)]['get'](t[_0x394937(0x1cf)])['syncExecuteCommand'](e[_0x394937(0x1b3)]['id'],{'unitId':this['id'],'noteId':_0x233d34});}[_0x5ea4b8(0x1d5)](_0x5c09b7){const _0x305411=_0x5ea4b8;var _0x228b3a,_0x309999;let _0x6ec173=this['getDocumentDataModel']()[_0x305411(0x1d2)](),_0x55e6df=_0x5c09b7==null?(_0x228b3a=_0x6ec173['noteSettings'])==null?void 0x0:_0x228b3a['footnote']:(_0x309999=_0x6ec173[_0x305411(0x1b9)])==null||(_0x309999=_0x309999[_0x305411(0x1c7)])==null||(_0x309999=_0x309999[_0x305411(0x1b7)](_0x386713=>_0x386713[_0x305411(0x1ce)]===_0x5c09b7))==null||(_0x309999=_0x309999[_0x305411(0x1e6)])==null?void 0x0:_0x309999[_0x305411(0x1b8)];return _0x55e6df==null?void 0x0:t[_0x305411(0x1dd)]['deepClone'](_0x55e6df);}[_0x5ea4b8(0x1b4)](_0x2f5811,_0x23ec9b){const _0x578425=_0x5ea4b8;return this[_0x578425(0x1b5)]['get'](t[_0x578425(0x1cf)])['syncExecuteCommand'](e['SetDocumentFootnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x2f5811,'sectionId':_0x23ec9b});}[_0x5ea4b8(0x1c2)](_0x425c4c,_0xef5ca2={}){const _0x27cc5b=_0x5ea4b8;let _0x33bcb6=(0x0,t[_0x27cc5b(0x1dc)])(0xc);return this[_0x27cc5b(0x1b5)][_0x27cc5b(0x1b1)](t[_0x27cc5b(0x1cf)])[_0x27cc5b(0x1ba)](e[_0x27cc5b(0x1c3)]['id'],{..._0xef5ca2,'unitId':this['id'],'offset':_0x425c4c,'noteId':_0x33bcb6})?_0x33bcb6:null;}[_0x5ea4b8(0x1ca)](){const _0x59cdbf=_0x5ea4b8;var _0x25b9d4;let _0x58511d=this['getDocumentDataModel']()['getSnapshot']();return(((_0x25b9d4=_0x58511d['body'])==null?void 0x0:_0x25b9d4['customRanges'])??[])[_0x59cdbf(0x1de)](_0x455f58=>_0x455f58[_0x59cdbf(0x1cc)]===t[_0x59cdbf(0x1b6)][_0x59cdbf(0x1bb)])[_0x59cdbf(0x1d9)]((_0x1b047e,_0x3af24a)=>_0x1b047e[_0x59cdbf(0x1c9)]-_0x3af24a[_0x59cdbf(0x1c9)])['flatMap'](_0x409fcc=>{const _0x21d613=_0x59cdbf;var _0x463bcc,_0x51756e;let _0x7f5047=(_0x463bcc=_0x409fcc['properties'])==null?void 0x0:_0x463bcc['noteId'],_0x162926=typeof _0x7f5047==_0x21d613(0x1e4)?(_0x51756e=_0x58511d[_0x21d613(0x1e3)])==null?void 0x0:_0x51756e[_0x7f5047]:void 0x0;return _0x162926?[t[_0x21d613(0x1dd)][_0x21d613(0x1d3)](_0x162926)]:[];});}[_0x5ea4b8(0x1df)](_0x16cead){const _0x3271a0=_0x5ea4b8;return this[_0x3271a0(0x1b5)]['get'](t[_0x3271a0(0x1cf)])[_0x3271a0(0x1ba)](e[_0x3271a0(0x1da)]['id'],{'unitId':this['id'],'noteId':_0x16cead});}['getEndnoteSettings'](_0x2b20c2){const _0x4d998d=_0x5ea4b8;var _0x2509af,_0x5e55cf;let _0x99c3b8=this[_0x4d998d(0x1cd)]()[_0x4d998d(0x1d2)](),_0x5a2e15=_0x2b20c2==null?(_0x2509af=_0x99c3b8[_0x4d998d(0x1d6)])==null?void 0x0:_0x2509af[_0x4d998d(0x1bc)]:(_0x5e55cf=_0x99c3b8['body'])==null||(_0x5e55cf=_0x5e55cf[_0x4d998d(0x1c7)])==null||(_0x5e55cf=_0x5e55cf[_0x4d998d(0x1b7)](_0x152c41=>_0x152c41[_0x4d998d(0x1ce)]===_0x2b20c2))==null||(_0x5e55cf=_0x5e55cf[_0x4d998d(0x1e6)])==null?void 0x0:_0x5e55cf[_0x4d998d(0x1bc)];return _0x5a2e15==null?void 0x0:t[_0x4d998d(0x1dd)][_0x4d998d(0x1d3)](_0x5a2e15);}[_0x5ea4b8(0x1c6)](_0x155a7c,_0x495be7){const _0x2a92e7=_0x5ea4b8;return this[_0x2a92e7(0x1b5)][_0x2a92e7(0x1b1)](t[_0x2a92e7(0x1cf)])[_0x2a92e7(0x1ba)](e[_0x2a92e7(0x1c0)]['id'],{'unitId':this['id'],'settings':_0x155a7c,'sectionId':_0x495be7});}};n[_0x5ea4b8(0x1b2)]['extend'](r);
1
+ const _0x33d7fe=_0x20b6;(function(_0x22860c,_0x269e9e){const _0x30fe5d=_0x20b6,_0x1ffe5f=_0x22860c();while(!![]){try{const _0x589338=-parseInt(_0x30fe5d(0x1df))/0x1*(parseInt(_0x30fe5d(0x209))/0x2)+parseInt(_0x30fe5d(0x207))/0x3+-parseInt(_0x30fe5d(0x1f8))/0x4*(parseInt(_0x30fe5d(0x1d6))/0x5)+parseInt(_0x30fe5d(0x1ea))/0x6+parseInt(_0x30fe5d(0x1f5))/0x7*(parseInt(_0x30fe5d(0x1fc))/0x8)+parseInt(_0x30fe5d(0x1d9))/0x9*(parseInt(_0x30fe5d(0x1e9))/0xa)+-parseInt(_0x30fe5d(0x1fb))/0xb;if(_0x589338===_0x269e9e)break;else _0x1ffe5f['push'](_0x1ffe5f['shift']());}catch(_0x117678){_0x1ffe5f['push'](_0x1ffe5f['shift']());}}}(_0x13e6,0x92a14));function _0x20b6(_0x31d441,_0x3a638b){_0x31d441=_0x31d441-0x1d6;const _0x13e625=_0x13e6();let _0x20b667=_0x13e625[_0x31d441];return _0x20b667;}let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x13e6(){const _0x1fc1b9=['body','get','getEndnotes','7gCjOvU','FDocument','flatMap','DeleteDocumentFootnoteCommand','startIndex','properties','setFootnoteSettings','sort','customRanges','insertEndnote','175810dGJYaa','6500190DTQRMG','noteSettings','ICommandService','endnote','deepClone','notes','DeleteDocumentEndnoteCommand','getEndnoteSettings','getFootnotes','generateRandomId','string','6074747VYkZMq','sectionBreaks','find','628dhzNUE','_injector','SetDocumentEndnoteSettingsCommand','20338307ltDsaT','8hlpLNx','sectionId','insertFootnote','rangeType','InsertDocumentFootnoteCommand','InsertDocumentEndnoteCommand','syncExecuteCommand','deleteFootnote','extend','getSnapshot','FOOTNOTE','3108978eGBpXL','deleteEndnote','278878RCQdZx','filter','noteProperties','3405OpPohk','getDocumentDataModel','Tools','279XnEXmv','footnote','noteId'];_0x13e6=function(){return _0x1fc1b9;};return _0x13e6();}var r=class extends n[_0x33d7fe(0x1e0)]{[_0x33d7fe(0x1fe)](_0x2ed8b6,_0x5410bd={}){const _0x1382af=_0x33d7fe;let _0x28c0a0=(0x0,t[_0x1382af(0x1f3)])(0xc);return this[_0x1382af(0x1f9)][_0x1382af(0x1dd)](t[_0x1382af(0x1ec)])['syncExecuteCommand'](e[_0x1382af(0x200)]['id'],{..._0x5410bd,'unitId':this['id'],'offset':_0x2ed8b6,'noteId':_0x28c0a0})?_0x28c0a0:null;}[_0x33d7fe(0x1f2)](){const _0xbbd29=_0x33d7fe;var _0x32ac31;let _0x3e77ae=this[_0xbbd29(0x1d7)]()[_0xbbd29(0x205)]();return(((_0x32ac31=_0x3e77ae[_0xbbd29(0x1dc)])==null?void 0x0:_0x32ac31[_0xbbd29(0x1e7)])??[])[_0xbbd29(0x20a)](_0x247dd7=>_0x247dd7[_0xbbd29(0x1ff)]===t['CustomRangeType'][_0xbbd29(0x206)])[_0xbbd29(0x1e6)]((_0xbc8e65,_0x806394)=>_0xbc8e65[_0xbbd29(0x1e3)]-_0x806394['startIndex'])[_0xbbd29(0x1e1)](_0x48cfb0=>{const _0x4f1261=_0xbbd29;var _0x2e8b2c,_0x35fe1a;let _0x43ca7b=(_0x2e8b2c=_0x48cfb0[_0x4f1261(0x1e4)])==null?void 0x0:_0x2e8b2c[_0x4f1261(0x1db)],_0x710efc=typeof _0x43ca7b==_0x4f1261(0x1f4)?(_0x35fe1a=_0x3e77ae[_0x4f1261(0x1ef)])==null?void 0x0:_0x35fe1a[_0x43ca7b]:void 0x0;return _0x710efc?[t[_0x4f1261(0x1d8)][_0x4f1261(0x1ee)](_0x710efc)]:[];});}[_0x33d7fe(0x203)](_0x391df8){const _0x374f0a=_0x33d7fe;return this[_0x374f0a(0x1f9)][_0x374f0a(0x1dd)](t['ICommandService'])[_0x374f0a(0x202)](e[_0x374f0a(0x1e2)]['id'],{'unitId':this['id'],'noteId':_0x391df8});}['getFootnoteSettings'](_0x18aabf){const _0x3d142d=_0x33d7fe;var _0x228974,_0x19c606;let _0x1f1a76=this[_0x3d142d(0x1d7)]()[_0x3d142d(0x205)](),_0x1fa7b6=_0x18aabf==null?(_0x228974=_0x1f1a76['noteSettings'])==null?void 0x0:_0x228974[_0x3d142d(0x1da)]:(_0x19c606=_0x1f1a76[_0x3d142d(0x1dc)])==null||(_0x19c606=_0x19c606['sectionBreaks'])==null||(_0x19c606=_0x19c606['find'](_0xa3a9b5=>_0xa3a9b5['sectionId']===_0x18aabf))==null||(_0x19c606=_0x19c606[_0x3d142d(0x20b)])==null?void 0x0:_0x19c606['footnote'];return _0x1fa7b6==null?void 0x0:t['Tools']['deepClone'](_0x1fa7b6);}[_0x33d7fe(0x1e5)](_0x19aa4d,_0x9f173e){const _0xef3a10=_0x33d7fe;return this[_0xef3a10(0x1f9)][_0xef3a10(0x1dd)](t[_0xef3a10(0x1ec)])[_0xef3a10(0x202)](e['SetDocumentFootnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x19aa4d,'sectionId':_0x9f173e});}[_0x33d7fe(0x1e8)](_0x56d3fd,_0x836c3={}){const _0x243005=_0x33d7fe;let _0x4b4ae0=(0x0,t['generateRandomId'])(0xc);return this['_injector'][_0x243005(0x1dd)](t[_0x243005(0x1ec)])['syncExecuteCommand'](e[_0x243005(0x201)]['id'],{..._0x836c3,'unitId':this['id'],'offset':_0x56d3fd,'noteId':_0x4b4ae0})?_0x4b4ae0:null;}[_0x33d7fe(0x1de)](){const _0x7c6dec=_0x33d7fe;var _0x4bdb30;let _0x1f8575=this[_0x7c6dec(0x1d7)]()['getSnapshot']();return(((_0x4bdb30=_0x1f8575[_0x7c6dec(0x1dc)])==null?void 0x0:_0x4bdb30[_0x7c6dec(0x1e7)])??[])[_0x7c6dec(0x20a)](_0x1ed74b=>_0x1ed74b['rangeType']===t['CustomRangeType']['ENDNOTE'])[_0x7c6dec(0x1e6)]((_0x20d6d8,_0x5d5dea)=>_0x20d6d8[_0x7c6dec(0x1e3)]-_0x5d5dea[_0x7c6dec(0x1e3)])[_0x7c6dec(0x1e1)](_0x48e0a4=>{const _0x3beaf4=_0x7c6dec;var _0x375664,_0x2f8a68;let _0x434a2a=(_0x375664=_0x48e0a4['properties'])==null?void 0x0:_0x375664[_0x3beaf4(0x1db)],_0x387ea5=typeof _0x434a2a=='string'?(_0x2f8a68=_0x1f8575[_0x3beaf4(0x1ef)])==null?void 0x0:_0x2f8a68[_0x434a2a]:void 0x0;return _0x387ea5?[t['Tools'][_0x3beaf4(0x1ee)](_0x387ea5)]:[];});}[_0x33d7fe(0x208)](_0x4c27e9){const _0x684b77=_0x33d7fe;return this['_injector']['get'](t[_0x684b77(0x1ec)])[_0x684b77(0x202)](e[_0x684b77(0x1f0)]['id'],{'unitId':this['id'],'noteId':_0x4c27e9});}[_0x33d7fe(0x1f1)](_0x28ade0){const _0x2a397b=_0x33d7fe;var _0x51900d,_0x46537b;let _0x529f7b=this[_0x2a397b(0x1d7)]()[_0x2a397b(0x205)](),_0x2ee0df=_0x28ade0==null?(_0x51900d=_0x529f7b[_0x2a397b(0x1eb)])==null?void 0x0:_0x51900d[_0x2a397b(0x1ed)]:(_0x46537b=_0x529f7b[_0x2a397b(0x1dc)])==null||(_0x46537b=_0x46537b[_0x2a397b(0x1f6)])==null||(_0x46537b=_0x46537b[_0x2a397b(0x1f7)](_0x1003f9=>_0x1003f9[_0x2a397b(0x1fd)]===_0x28ade0))==null||(_0x46537b=_0x46537b[_0x2a397b(0x20b)])==null?void 0x0:_0x46537b['endnote'];return _0x2ee0df==null?void 0x0:t['Tools'][_0x2a397b(0x1ee)](_0x2ee0df);}['setEndnoteSettings'](_0x574946,_0x55683c){const _0x4e0429=_0x33d7fe;return this[_0x4e0429(0x1f9)]['get'](t['ICommandService'])[_0x4e0429(0x202)](e[_0x4e0429(0x1fa)]['id'],{'unitId':this['id'],'settings':_0x574946,'sectionId':_0x55683c});}};n[_0x33d7fe(0x1e0)][_0x33d7fe(0x204)](r);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x189c7a=_0x5cf5;(function(_0x8c0aa4,_0xe86b33){const _0x214f6c=_0x5cf5,_0x4eacf9=_0x8c0aa4();while(!![]){try{const _0x260d3b=-parseInt(_0x214f6c(0xfc))/0x1+parseInt(_0x214f6c(0xb3))/0x2*(-parseInt(_0x214f6c(0xc4))/0x3)+parseInt(_0x214f6c(0xc6))/0x4+parseInt(_0x214f6c(0xf7))/0x5+-parseInt(_0x214f6c(0xca))/0x6+parseInt(_0x214f6c(0x10a))/0x7*(parseInt(_0x214f6c(0x9b))/0x8)+-parseInt(_0x214f6c(0x10b))/0x9*(-parseInt(_0x214f6c(0xe4))/0xa);if(_0x260d3b===_0xe86b33)break;else _0x4eacf9['push'](_0x4eacf9['shift']());}catch(_0x10224c){_0x4eacf9['push'](_0x4eacf9['shift']());}}}(_0xb524,0xd19ce),Object['defineProperty'](exports,Symbol[_0x189c7a(0xa6)],{'value':_0x189c7a(0xc8)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x26d5a4,_0x5472ac,_0xadc989){const _0x4c3ab0=_0x189c7a;if(_0x26d5a4[_0x4c3ab0(0xe0)]!=null&&!(_0x5472ac==='footnote'?['pageBottom',_0x4c3ab0(0xce)]:[_0x4c3ab0(0xeb),_0x4c3ab0(0xd4)])['includes'](_0x26d5a4[_0x4c3ab0(0xe0)])||_0x26d5a4[_0x4c3ab0(0xfa)]!=null&&!(_0x5472ac===_0x4c3ab0(0xa8)?[_0x4c3ab0(0x99),_0x4c3ab0(0xe5),'eachPage']:[_0x4c3ab0(0x99),_0x4c3ab0(0xe5)])['includes'](_0x26d5a4['restart'])||_0x26d5a4[_0x4c3ab0(0xfd)]!=null&&(!Number[_0x4c3ab0(0xdf)](_0x26d5a4['startNumber'])||_0x26d5a4['startNumber']<0x1)||_0x4c3ab0(0xe1)in _0x26d5a4&&_0x26d5a4['columnCount']!=null&&(_0x5472ac!=='footnote'||!Number[_0x4c3ab0(0xdf)](_0x26d5a4[_0x4c3ab0(0xe1)])||_0x26d5a4[_0x4c3ab0(0xe1)]<0x0||_0x26d5a4[_0x4c3ab0(0xe1)]>0x4)||_0x26d5a4[_0x4c3ab0(0xe8)]!=null&&(typeof _0x26d5a4['numberFormat']!=_0x4c3ab0(0x110)||_0x26d5a4[_0x4c3ab0(0xe8)][_0x4c3ab0(0xa5)]===0x0))return!0x1;for(let _0x3a50cc of[_0x26d5a4[_0x4c3ab0(0xc3)],_0x26d5a4['continuationSeparator'],_0x26d5a4[_0x4c3ab0(0x105)]])if(_0x3a50cc!=null&&(_0xadc989!=null||(0x0,e['validateDocBodyStructure'])(_0x3a50cc)['length']>0x0))return!0x1;return!0x0;}function _0x5cf5(_0x20d275,_0x312a5b){_0x20d275=_0x20d275-0x92;const _0xb52451=_0xb524();let _0x5cf5ee=_0xb52451[_0x20d275];return _0x5cf5ee;}function i(_0x374a12,_0x228ec3,_0x357cfc){const _0x5f169d=_0x189c7a;var _0x43f319,_0x3d2328;if(_0x228ec3[_0x5f169d(0xc1)]!=null&&!r(_0x228ec3[_0x5f169d(0xc1)],_0x357cfc,_0x228ec3[_0x5f169d(0x96)]))return!0x1;let _0x45e4a4=((_0x43f319=_0x374a12[_0x5f169d(0xdb)])==null||(_0x43f319=_0x43f319['sectionBreaks'])==null?void 0x0:_0x43f319[_0x5f169d(0xaa)](_0x41d232=>_0x41d232[_0x5f169d(0x96)]===_0x228ec3[_0x5f169d(0x96)]))??-0x1;if(_0x228ec3['sectionId']!=null&&_0x45e4a4<0x0)return!0x1;let _0x77a118=_0x228ec3[_0x5f169d(0x96)]==null?_0x374a12['noteSettings']:(_0x3d2328=_0x374a12['body'])==null||(_0x3d2328=_0x3d2328[_0x5f169d(0xae)])==null?void 0x0:_0x3d2328[_0x45e4a4]['noteProperties'],_0x55b770=_0x228ec3['settings']==null?void 0x0:e['Tools']['deepClone'](_0x228ec3[_0x5f169d(0xc1)]),_0x65c2cc=_0x228ec3['sectionId']==null?[_0x5f169d(0xbc)]:[_0x5f169d(0xdb),_0x5f169d(0xae),_0x45e4a4,'noteProperties'],_0xbcdef0=e[_0x5f169d(0xc2)][_0x5f169d(0xc5)](),_0x4d368a=null;if(e[_0x5f169d(0xd8)][_0x5f169d(0x111)](_0x77a118==null?void 0x0:_0x77a118[_0x357cfc],_0x55b770)||(_0x4d368a=_0x77a118==null?_0xbcdef0['insertOp'](_0x65c2cc,{[_0x357cfc]:_0x55b770}):_0x228ec3[_0x5f169d(0x96)]!=null&&_0x55b770==null&&Object[_0x5f169d(0xa7)](_0x77a118)[_0x5f169d(0xf8)](_0x116638=>_0x116638===_0x357cfc)?_0xbcdef0[_0x5f169d(0xbb)](_0x65c2cc,_0x77a118):_0xbcdef0[_0x5f169d(0xdc)]([..._0x65c2cc,_0x357cfc],_0x77a118[_0x357cfc],_0x55b770)),_0x228ec3[_0x5f169d(0xd7)]!=null){var _0x4c53af;if(_0x357cfc!==_0x5f169d(0xa9)||_0x228ec3[_0x5f169d(0x96)]==null||typeof _0x228ec3[_0x5f169d(0xd7)]!='boolean')return!0x1;let _0x590b3a=(_0x4c53af=_0x374a12[_0x5f169d(0xdb)])==null||(_0x4c53af=_0x4c53af[_0x5f169d(0xae)])==null?void 0x0:_0x4c53af[_0x45e4a4]['suppressEndnotes'];_0x590b3a!==_0x228ec3[_0x5f169d(0xd7)]&&(_0x4d368a=e[_0x5f169d(0xc2)]['compose'](_0x4d368a,_0xbcdef0[_0x5f169d(0xdc)]([_0x5f169d(0xdb),_0x5f169d(0xae),_0x45e4a4,_0x5f169d(0xd7)],_0x590b3a,_0x228ec3['suppressEndnotes'])));}return _0x4d368a;}function a(_0x287ee5,_0x504dae,_0x3c993f){const _0x4f6cb9=_0x189c7a;if(!_0x504dae)return!0x1;let _0x593e6f=_0x287ee5[_0x4f6cb9(0xcd)](e[_0x4f6cb9(0x10f)])[_0x4f6cb9(0xe9)](_0x504dae['unitId'],e[_0x4f6cb9(0xde)][_0x4f6cb9(0xb2)]),_0x3c955f=_0x593e6f==null?void 0x0:_0x593e6f[_0x4f6cb9(0x10c)]();if(!_0x3c955f||_0x3c955f[_0x4f6cb9(0xad)][_0x4f6cb9(0xb0)]!==e['DocumentFlavor'][_0x4f6cb9(0xb5)])return!0x1;let _0x1b1a1e=i(_0x3c955f,_0x504dae,_0x3c993f);return _0x1b1a1e===!0x1||e[_0x4f6cb9(0xc2)][_0x4f6cb9(0x93)](_0x1b1a1e)?!0x1:!!_0x287ee5['get'](e['ICommandService'])[_0x4f6cb9(0xf3)](t[_0x4f6cb9(0xa1)]['id'],{'unitId':_0x504dae['unitId'],'segmentId':'','historyAction':_0x4f6cb9(0x104)+_0x3c993f+_0x4f6cb9(0x9d),'actions':_0x1b1a1e,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x189c7a(0x92),'type':e[_0x189c7a(0xa0)]['COMMAND'],'handler':(_0x697411,_0x5f54cc)=>a(_0x697411,_0x5f54cc,_0x189c7a(0xa8))},s={'id':'doc.command.set-endnote-settings','type':e[_0x189c7a(0xa0)]['COMMAND'],'handler':(_0x7247e5,_0x4130d0)=>a(_0x7247e5,_0x4130d0,_0x189c7a(0xa9))};function c(_0x32bc06,_0x3a256f){const _0x2ac420=_0x189c7a;return(_0x32bc06==null?void 0x0:_0x32bc06[_0x2ac420(0xad)][_0x2ac420(0xb0)])===e[_0x2ac420(0x107)]['TRADITIONAL']&&!!_0x32bc06[_0x2ac420(0xdb)]&&Number[_0x2ac420(0xdf)](_0x3a256f)&&_0x3a256f>=0x0&&_0x3a256f<_0x32bc06[_0x2ac420(0xdb)][_0x2ac420(0xd6)][_0x2ac420(0xa5)]-0x1;}function l(_0x7d13bc,_0x55e9c5,_0x41d324){const _0x25e12e=_0x189c7a;var _0x4001fc,_0x4809a4;if(_0x55e9c5[_0x25e12e(0xc1)]===void 0x0&&_0x55e9c5[_0x25e12e(0xd7)]===void 0x0)return null;let _0x790de0=_0x55e9c5[_0x25e12e(0x96)]==null?(_0x4001fc=_0x7d13bc['noteSettings'])==null?void 0x0:_0x4001fc[_0x41d324]:(_0x4809a4=_0x7d13bc[_0x25e12e(0xdb)])==null||(_0x4809a4=_0x4809a4[_0x25e12e(0xae)])==null||(_0x4809a4=_0x4809a4[_0x25e12e(0x114)](_0x290b22=>_0x290b22[_0x25e12e(0x96)]===_0x55e9c5[_0x25e12e(0x96)]))==null||(_0x4809a4=_0x4809a4[_0x25e12e(0xcb)])==null?void 0x0:_0x4809a4[_0x41d324];return i(_0x7d13bc,{'settings':_0x55e9c5[_0x25e12e(0xc1)]===void 0x0?_0x790de0??null:_0x55e9c5[_0x25e12e(0xc1)],'sectionId':_0x55e9c5[_0x25e12e(0x96)],'suppressEndnotes':_0x55e9c5[_0x25e12e(0xd7)]},_0x41d324);}function u(_0x8fca47,_0x4c5126,_0xc6b06d){const _0x330c51=_0x189c7a;var _0x171c69,_0x895856,_0x464d83;if(!_0x4c5126||_0x4c5126[_0x330c51(0xa4)])return!0x1;let _0x81385a=_0x8fca47[_0x330c51(0xcd)](e[_0x330c51(0x10f)])['getUnit'](_0x4c5126[_0x330c51(0x95)],e[_0x330c51(0xde)][_0x330c51(0xb2)]),_0x2a6a77=_0x81385a==null?void 0x0:_0x81385a['getSnapshot'](),{offset:_0x597030}=_0x4c5126;if(!c(_0x2a6a77,_0x597030))return!0x1;let _0xd97b4=l(_0x2a6a77,_0x4c5126,_0xc6b06d);if(_0xd97b4===!0x1)return!0x1;let _0x2bbff7=_0x4c5126[_0x330c51(0xc9)]??(0x0,e[_0x330c51(0xbe)])(0xc);if((_0x171c69=_0x2a6a77[_0x330c51(0xf9)])!=null&&_0x171c69[_0x2bbff7]||(_0x895856=_0x2a6a77[_0x330c51(0xd2)])!=null&&_0x895856[_0x2bbff7]||(_0x464d83=_0x2a6a77['footers'])!=null&&_0x464d83[_0x2bbff7])return!0x1;let _0x46543f=e[_0x330c51(0xd8)][_0x330c51(0xe6)]({'type':_0xc6b06d,'noteId':_0x2bbff7,'body':_0x4c5126[_0x330c51(0xdb)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x330c51(0x10e)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x4c5126[_0x330c51(0xb1)],'referenceTextStyle':_0x4c5126[_0x330c51(0x9e)],'tableSource':_0x4c5126[_0x330c51(0xdd)],'drawings':_0x4c5126['drawings'],'drawingsOrder':_0x4c5126[_0x330c51(0xc7)],'lists':_0x4c5126[_0x330c51(0xf4)]});if((0x0,e[_0x330c51(0x112)])({'notes':{[_0x2bbff7]:_0x46543f}})['length']>0x0)return!0x1;let _0x5c099b=new e['TextX']();_0x597030>0x0&&_0x5c099b[_0x330c51(0xd0)](_0x597030),_0x5c099b[_0x330c51(0x101)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0xc6b06d==='footnote'?e[_0x330c51(0xcc)][_0x330c51(0xb4)]:e[_0x330c51(0xcc)]['ENDNOTE'],'rangeId':(0x0,e[_0x330c51(0xbe)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x2bbff7}}]});let _0x170a87=e['JSONX'][_0x330c51(0xc5)](),_0x454bbc=_0x2a6a77['notes']==null?_0x170a87[_0x330c51(0xc0)]([_0x330c51(0xf9)],{[_0x2bbff7]:_0x46543f}):_0x170a87[_0x330c51(0xc0)]([_0x330c51(0xf9),_0x2bbff7],_0x46543f);return!!_0x8fca47[_0x330c51(0xcd)](e[_0x330c51(0xb8)])['syncExecuteCommand'](t[_0x330c51(0xa1)]['id'],{'unitId':_0x4c5126[_0x330c51(0x95)],'segmentId':'','historyAction':_0x330c51(0xe3)+_0xc6b06d,'actions':e[_0x330c51(0xc2)][_0x330c51(0xb9)](e[_0x330c51(0xc2)][_0x330c51(0xb9)](_0xd97b4,_0x454bbc),_0x170a87[_0x330c51(0xd1)](_0x5c099b[_0x330c51(0xfe)](),['body'])),'textRanges':[{'segmentId':_0x2bbff7,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x3795f3,_0x1698d9,_0x25659b){const _0x46c869=_0x189c7a;var _0x28d174,_0x194340;if(!_0x1698d9)return!0x1;let _0x2f2428=_0x3795f3[_0x46c869(0xcd)](e[_0x46c869(0x10f)])[_0x46c869(0xe9)](_0x1698d9['unitId'],e[_0x46c869(0xde)]['UNIVER_DOC']),_0x1a0ebc=_0x2f2428==null?void 0x0:_0x2f2428['getSnapshot'](),_0x3b0d17=_0x1a0ebc==null||(_0x28d174=_0x1a0ebc[_0x46c869(0xf9)])==null?void 0x0:_0x28d174[_0x1698d9[_0x46c869(0xc9)]],_0x204da3=_0x1a0ebc==null||(_0x194340=_0x1a0ebc['body'])==null||(_0x194340=_0x194340[_0x46c869(0x98)])==null?void 0x0:_0x194340[_0x46c869(0x114)](_0x4d4a68=>{const _0x404536=_0x46c869;var _0x43315b;return(_0x4d4a68['rangeType']===e[_0x404536(0xcc)][_0x404536(0xb4)]||_0x4d4a68[_0x404536(0xcf)]===e['CustomRangeType'][_0x404536(0x9f)])&&((_0x43315b=_0x4d4a68['properties'])==null?void 0x0:_0x43315b[_0x404536(0xc9)])===_0x1698d9[_0x404536(0xc9)];});if(!_0x1a0ebc||_0x1a0ebc[_0x46c869(0xad)][_0x46c869(0xb0)]!==e[_0x46c869(0x107)][_0x46c869(0xb5)]||!_0x3b0d17||_0x3b0d17[_0x46c869(0x113)]!==_0x25659b||!_0x204da3)return!0x1;let _0x496cad=new e[(_0x46c869(0xef))]();_0x204da3[_0x46c869(0xaf)]>0x0&&_0x496cad['retain'](_0x204da3[_0x46c869(0xaf)]),_0x496cad[_0x46c869(0xbf)](0x1);let _0x153ab7=e[_0x46c869(0xc2)][_0x46c869(0xc5)]();return!!_0x3795f3[_0x46c869(0xcd)](e[_0x46c869(0xb8)])[_0x46c869(0xf3)](t['RichTextEditingMutation']['id'],{'unitId':_0x1698d9['unitId'],'segmentId':'','historyAction':'delete-'+_0x25659b,'actions':e[_0x46c869(0xc2)]['compose'](_0x153ab7[_0x46c869(0xd1)](_0x496cad[_0x46c869(0xfe)](),[_0x46c869(0xdb)]),_0x153ab7[_0x46c869(0xbb)]([_0x46c869(0xf9),_0x1698d9[_0x46c869(0xc9)]],_0x3b0d17)),'textRanges':[{'startOffset':_0x204da3[_0x46c869(0xaf)],'endOffset':_0x204da3[_0x46c869(0xaf)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x189c7a(0xff),'type':e[_0x189c7a(0xa0)][_0x189c7a(0xac)],'handler':(_0xe1681b,_0x1d1754)=>u(_0xe1681b,_0x1d1754,_0x189c7a(0xa8))},p={'id':'doc.command.delete-footnote','type':e['CommandType'][_0x189c7a(0xac)],'handler':(_0x2a1b04,_0x505497)=>d(_0x2a1b04,_0x505497,'footnote')},m={'id':_0x189c7a(0xf1),'type':e['CommandType'][_0x189c7a(0xac)],'handler':(_0x4444eb,_0x316fa1)=>u(_0x4444eb,_0x316fa1,_0x189c7a(0xa9))},h={'id':'doc.command.delete-endnote','type':e['CommandType']['COMMAND'],'handler':(_0x314bee,_0x51068d)=>d(_0x314bee,_0x51068d,_0x189c7a(0xa9))};var g=_0x189c7a(0xfb),_='1.0.1';const v={};function y(_0x58b4fb,_0x1a572c){return function(_0x1b9e6c,_0x1ecc30){_0x1a572c(_0x1b9e6c,_0x1ecc30,_0x58b4fb);};}function b(_0x2acf69,_0x4c6cc0,_0xb122eb,_0x154f9f){const _0x5b4ba9=_0x189c7a;var _0x3e2b9f=arguments['length'],_0x506135=_0x3e2b9f<0x3?_0x4c6cc0:_0x154f9f===null?_0x154f9f=Object[_0x5b4ba9(0x94)](_0x4c6cc0,_0xb122eb):_0x154f9f,_0x5b24cc;if(typeof Reflect==_0x5b4ba9(0xf2)&&typeof Reflect[_0x5b4ba9(0x106)]==_0x5b4ba9(0xe2))_0x506135=Reflect[_0x5b4ba9(0x106)](_0x2acf69,_0x4c6cc0,_0xb122eb,_0x154f9f);else{for(var _0x308332=_0x2acf69[_0x5b4ba9(0xa5)]-0x1;_0x308332>=0x0;_0x308332--)(_0x5b24cc=_0x2acf69[_0x308332])&&(_0x506135=(_0x3e2b9f<0x3?_0x5b24cc(_0x506135):_0x3e2b9f>0x3?_0x5b24cc(_0x4c6cc0,_0xb122eb,_0x506135):_0x5b24cc(_0x4c6cc0,_0xb122eb))||_0x506135);}return _0x3e2b9f>0x3&&_0x506135&&Object['defineProperty'](_0x4c6cc0,_0xb122eb,_0x506135),_0x506135;}function x(_0x3f8463){'@babel/helpers - typeof';const _0x1c0628=_0x189c7a;return x=typeof Symbol=='function'&&typeof Symbol[_0x1c0628(0xbd)]==_0x1c0628(0xe7)?function(_0x5e6bc7){return typeof _0x5e6bc7;}:function(_0x38bea){const _0x540896=_0x1c0628;return _0x38bea&&typeof Symbol==_0x540896(0xe2)&&_0x38bea[_0x540896(0x109)]===Symbol&&_0x38bea!==Symbol['prototype']?'symbol':typeof _0x38bea;},x(_0x3f8463);}function S(_0x44f8a8,_0x235178){const _0x5a5d7a=_0x189c7a;if(x(_0x44f8a8)!=_0x5a5d7a(0xf2)||!_0x44f8a8)return _0x44f8a8;var _0xba2b08=_0x44f8a8[Symbol[_0x5a5d7a(0xf6)]];if(_0xba2b08!==void 0x0){var _0x1bffb6=_0xba2b08['call'](_0x44f8a8,_0x235178||'default');if(x(_0x1bffb6)!=_0x5a5d7a(0xf2))return _0x1bffb6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235178==='string'?String:Number)(_0x44f8a8);}function C(_0x72c1cf){const _0x5cd8cb=_0x189c7a;var _0x4d38fa=S(_0x72c1cf,_0x5cd8cb(0x110));return x(_0x4d38fa)==_0x5cd8cb(0xe7)?_0x4d38fa:_0x4d38fa+'';}function _0xb524(){const _0x188ad5=['ENDNOTE','CommandType','RichTextEditingMutation','IConfigService','_config','segmentId','length','toStringTag','keys','footnote','endnote','findIndex','forEach','COMMAND','documentStyle','sectionBreaks','startIndex','documentFlavor','customMark','UNIVER_DOC','2639738QRxnoQ','FOOTNOTE','TRADITIONAL','pluginName','InsertDocumentFootnoteCommand','ICommandService','compose','InsertDocumentEndnoteCommand','removeOp','noteSettings','iterator','generateRandomId','delete','insertOp','settings','JSONX','separator','3Ooqxfs','getInstance','6707376baFfIi','drawingsOrder','Module','noteId','3466836FitNQE','noteProperties','CustomRangeType','get','beneathText','rangeType','retain','editOp','headers','registerCommand','sectEnd','UniverDocsReferencePlugin','dataStream','suppressEndnotes','Tools','packageName','disposeWithMe','body','replaceOp','tableSource','UniverInstanceType','isInteger','position','columnCount','function','insert-','20iXyYOY','eachSect','deepClone','symbol','numberFormat','getUnit','UniverDocsPlugin','docEnd','docs-reference.config','version','onStarting','TextX','_commandService','doc.command.insert-endnote','object','syncExecuteCommand','lists','UniverLicensePlugin','toPrimitive','3142370AHRNzY','every','notes','restart','@univerjs-pro/docs-reference','1157219xNngOW','startNumber','serialize','doc.command.insert-footnote','merge','insert','defineProperty','Plugin','set-','continuationNotice','decorate','DocumentFlavor','SetDocumentFootnoteSettingsCommand','constructor','1253hhnQVw','871614TiqYea','getSnapshot','SetDocumentEndnoteSettingsCommand','createParagraphId','IUniverInstanceService','string','diffValue','validateDocumentStructure','type','find','doc.command.set-footnote-settings','isNoop','getOwnPropertyDescriptor','unitId','sectionId','UNIVER_DOCS_REFERENCE_PLUGIN','customRanges','continuous','Injector','63216IBTMPi','Inject','-settings','referenceTextStyle'];_0xb524=function(){return _0x188ad5;};return _0xb524();}function w(_0x4ac661,_0x440dca,_0x5e45fb){const _0x46e32a=_0x189c7a;return(_0x440dca=C(_0x440dca))in _0x4ac661?Object[_0x46e32a(0x102)](_0x4ac661,_0x440dca,{'value':_0x5e45fb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ac661[_0x440dca]=_0x5e45fb,_0x4ac661;}let T=class extends e[_0x189c7a(0x103)]{constructor(_0x4a861f=v,_0x3db2a6,_0x1277ce,_0x4bc25a){const _0x31720e=_0x189c7a;super(),this[_0x31720e(0xa3)]=_0x4a861f,this['_injector']=_0x3db2a6,this['_configService']=_0x1277ce,this['_commandService']=_0x4bc25a;let {..._0x232987}=(0x0,e[_0x31720e(0x100)])({},v,this[_0x31720e(0xa3)]);this['_configService']['setConfig'](_0x31720e(0xec),_0x232987);}[_0x189c7a(0xee)](){const _0x499f95=_0x189c7a;[f,p,o,m,h,s][_0x499f95(0xab)](_0x9a9907=>this[_0x499f95(0xda)](this[_0x499f95(0xf0)][_0x499f95(0xd3)](_0x9a9907)));}};w(T,_0x189c7a(0xb6),_0x189c7a(0x97)),w(T,_0x189c7a(0xd9),g),w(T,_0x189c7a(0xed),_),w(T,_0x189c7a(0x113),e[_0x189c7a(0xde)]['UNIVER_DOC']),T=b([(0x0,e['DependentOn'])(n[_0x189c7a(0xf5)],t[_0x189c7a(0xea)]),y(0x1,(0x0,e[_0x189c7a(0x9c)])(e[_0x189c7a(0x9a)])),y(0x2,e[_0x189c7a(0xa2)]),y(0x3,e[_0x189c7a(0xb8)])],T),exports['DeleteDocumentEndnoteCommand']=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x189c7a(0xba)]=m,exports[_0x189c7a(0xb7)]=f,exports[_0x189c7a(0x10d)]=s,exports[_0x189c7a(0x108)]=o,Object[_0x189c7a(0x102)](exports,_0x189c7a(0xd5),{'enumerable':!0x0,'get':function(){return T;}});
1
+ const _0x5887f8=_0x145e;(function(_0x57669e,_0x4f10bb){const _0x4cf500=_0x145e,_0x33dd35=_0x57669e();while(!![]){try{const _0x87835e=-parseInt(_0x4cf500(0x161))/0x1*(parseInt(_0x4cf500(0x16e))/0x2)+-parseInt(_0x4cf500(0x177))/0x3+-parseInt(_0x4cf500(0x140))/0x4*(-parseInt(_0x4cf500(0x102))/0x5)+-parseInt(_0x4cf500(0x158))/0x6+parseInt(_0x4cf500(0xfe))/0x7*(-parseInt(_0x4cf500(0x12c))/0x8)+-parseInt(_0x4cf500(0x139))/0x9*(parseInt(_0x4cf500(0x111))/0xa)+parseInt(_0x4cf500(0x10c))/0xb;if(_0x87835e===_0x4f10bb)break;else _0x33dd35['push'](_0x33dd35['shift']());}catch(_0x2ef009){_0x33dd35['push'](_0x33dd35['shift']());}}}(_0x2e00,0x1aeb1),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5887f8(0x175)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x1e5e97,_0xf5549d,_0x511420){const _0x38304c=_0x5887f8;if(_0x1e5e97[_0x38304c(0x10f)]!=null&&!(_0xf5549d==='footnote'?[_0x38304c(0x14e),_0x38304c(0x101)]:[_0x38304c(0x151),'sectEnd'])[_0x38304c(0x128)](_0x1e5e97[_0x38304c(0x10f)])||_0x1e5e97[_0x38304c(0xff)]!=null&&!(_0xf5549d===_0x38304c(0x132)?[_0x38304c(0x113),'eachSect',_0x38304c(0x15b)]:[_0x38304c(0x113),_0x38304c(0x10e)])[_0x38304c(0x128)](_0x1e5e97[_0x38304c(0xff)])||_0x1e5e97['startNumber']!=null&&(!Number['isInteger'](_0x1e5e97[_0x38304c(0x16a)])||_0x1e5e97['startNumber']<0x1)||_0x38304c(0x14b)in _0x1e5e97&&_0x1e5e97[_0x38304c(0x14b)]!=null&&(_0xf5549d!==_0x38304c(0x132)||!Number['isInteger'](_0x1e5e97['columnCount'])||_0x1e5e97[_0x38304c(0x14b)]<0x0||_0x1e5e97['columnCount']>0x4)||_0x1e5e97[_0x38304c(0x10a)]!=null&&(typeof _0x1e5e97[_0x38304c(0x10a)]!=_0x38304c(0x13a)||_0x1e5e97[_0x38304c(0x10a)][_0x38304c(0x15a)]===0x0))return!0x1;for(let _0x1af2d8 of[_0x1e5e97[_0x38304c(0x152)],_0x1e5e97[_0x38304c(0x146)],_0x1e5e97[_0x38304c(0x135)]])if(_0x1af2d8!=null&&(_0x511420!=null||(0x0,e[_0x38304c(0x112)])(_0x1af2d8)[_0x38304c(0x15a)]>0x0))return!0x1;return!0x0;}function i(_0x50c61a,_0x45e047,_0x2444de){const _0x1120fd=_0x5887f8;var _0xdc762c,_0x569256;if(_0x45e047[_0x1120fd(0x13d)]!=null&&!r(_0x45e047['settings'],_0x2444de,_0x45e047['sectionId']))return!0x1;let _0x3d0ac3=((_0xdc762c=_0x50c61a[_0x1120fd(0x104)])==null||(_0xdc762c=_0xdc762c[_0x1120fd(0x14d)])==null?void 0x0:_0xdc762c[_0x1120fd(0x125)](_0x5bd142=>_0x5bd142[_0x1120fd(0x115)]===_0x45e047['sectionId']))??-0x1;if(_0x45e047[_0x1120fd(0x115)]!=null&&_0x3d0ac3<0x0)return!0x1;let _0x3fd813=_0x45e047['sectionId']==null?_0x50c61a['noteSettings']:(_0x569256=_0x50c61a[_0x1120fd(0x104)])==null||(_0x569256=_0x569256[_0x1120fd(0x14d)])==null?void 0x0:_0x569256[_0x3d0ac3][_0x1120fd(0x107)],_0x467579=_0x45e047[_0x1120fd(0x13d)]==null?void 0x0:e['Tools'][_0x1120fd(0x144)](_0x45e047['settings']),_0x25e1df=_0x45e047[_0x1120fd(0x115)]==null?[_0x1120fd(0x167)]:[_0x1120fd(0x104),_0x1120fd(0x14d),_0x3d0ac3,'noteProperties'],_0x8ac647=e[_0x1120fd(0x168)][_0x1120fd(0x157)](),_0x42feff=null;if(e[_0x1120fd(0x110)][_0x1120fd(0x14c)](_0x3fd813==null?void 0x0:_0x3fd813[_0x2444de],_0x467579)||(_0x42feff=_0x3fd813==null?_0x8ac647[_0x1120fd(0xfc)](_0x25e1df,{[_0x2444de]:_0x467579}):_0x45e047[_0x1120fd(0x115)]!=null&&_0x467579==null&&Object[_0x1120fd(0x172)](_0x3fd813)['every'](_0x17d7e4=>_0x17d7e4===_0x2444de)?_0x8ac647[_0x1120fd(0x150)](_0x25e1df,_0x3fd813):_0x8ac647[_0x1120fd(0x147)]([..._0x25e1df,_0x2444de],_0x3fd813[_0x2444de],_0x467579)),_0x45e047[_0x1120fd(0x179)]!=null){var _0x238b19;if(_0x2444de!==_0x1120fd(0x12e)||_0x45e047['sectionId']==null||typeof _0x45e047[_0x1120fd(0x179)]!=_0x1120fd(0x13c))return!0x1;let _0x203f2e=(_0x238b19=_0x50c61a[_0x1120fd(0x104)])==null||(_0x238b19=_0x238b19[_0x1120fd(0x14d)])==null?void 0x0:_0x238b19[_0x3d0ac3]['suppressEndnotes'];_0x203f2e!==_0x45e047[_0x1120fd(0x179)]&&(_0x42feff=e['JSONX'][_0x1120fd(0x17a)](_0x42feff,_0x8ac647[_0x1120fd(0x147)]([_0x1120fd(0x104),_0x1120fd(0x14d),_0x3d0ac3,_0x1120fd(0x179)],_0x203f2e,_0x45e047[_0x1120fd(0x179)])));}return _0x42feff;}function a(_0x397ee5,_0x125ef3,_0x5ddf68){const _0x2a5215=_0x5887f8;if(!_0x125ef3)return!0x1;let _0x1eca33=_0x397ee5[_0x2a5215(0x13b)](e[_0x2a5215(0x153)])['getUnit'](_0x125ef3[_0x2a5215(0x12b)],e[_0x2a5215(0x148)][_0x2a5215(0x106)]),_0x869fcf=_0x1eca33==null?void 0x0:_0x1eca33[_0x2a5215(0x114)]();if(!_0x869fcf||_0x869fcf[_0x2a5215(0x127)][_0x2a5215(0x117)]!==e['DocumentFlavor'][_0x2a5215(0x120)])return!0x1;let _0x5d23c1=i(_0x869fcf,_0x125ef3,_0x5ddf68);return _0x5d23c1===!0x1||e['JSONX']['isNoop'](_0x5d23c1)?!0x1:!!_0x397ee5[_0x2a5215(0x13b)](e[_0x2a5215(0x11d)])[_0x2a5215(0x11b)](t['RichTextEditingMutation']['id'],{'unitId':_0x125ef3[_0x2a5215(0x12b)],'segmentId':'','historyAction':_0x2a5215(0x162)+_0x5ddf68+_0x2a5215(0x11f),'actions':_0x5d23c1,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':'doc.command.set-footnote-settings','type':e[_0x5887f8(0xfd)][_0x5887f8(0x118)],'handler':(_0x5040cc,_0x3280b4)=>a(_0x5040cc,_0x3280b4,_0x5887f8(0x132))},s={'id':_0x5887f8(0x134),'type':e[_0x5887f8(0xfd)][_0x5887f8(0x118)],'handler':(_0x33b394,_0x73841a)=>a(_0x33b394,_0x73841a,'endnote')};function c(_0x4a5c17,_0x2fdb3f){const _0x52c7ce=_0x5887f8;return(_0x4a5c17==null?void 0x0:_0x4a5c17['documentStyle'][_0x52c7ce(0x117)])===e['DocumentFlavor'][_0x52c7ce(0x120)]&&!!_0x4a5c17[_0x52c7ce(0x104)]&&Number[_0x52c7ce(0x133)](_0x2fdb3f)&&_0x2fdb3f>=0x0&&_0x2fdb3f<_0x4a5c17[_0x52c7ce(0x104)][_0x52c7ce(0x136)][_0x52c7ce(0x15a)]-0x1;}function l(_0x1ca9dc,_0x4a2f05,_0x886b12){const _0x1e16e2=_0x5887f8;var _0x23ad40,_0x9a1fda;if(_0x4a2f05[_0x1e16e2(0x13d)]===void 0x0&&_0x4a2f05[_0x1e16e2(0x179)]===void 0x0)return null;let _0x463bb2=_0x4a2f05[_0x1e16e2(0x115)]==null?(_0x23ad40=_0x1ca9dc[_0x1e16e2(0x167)])==null?void 0x0:_0x23ad40[_0x886b12]:(_0x9a1fda=_0x1ca9dc['body'])==null||(_0x9a1fda=_0x9a1fda[_0x1e16e2(0x14d)])==null||(_0x9a1fda=_0x9a1fda[_0x1e16e2(0x15f)](_0x5dffaf=>_0x5dffaf[_0x1e16e2(0x115)]===_0x4a2f05[_0x1e16e2(0x115)]))==null||(_0x9a1fda=_0x9a1fda[_0x1e16e2(0x107)])==null?void 0x0:_0x9a1fda[_0x886b12];return i(_0x1ca9dc,{'settings':_0x4a2f05[_0x1e16e2(0x13d)]===void 0x0?_0x463bb2??null:_0x4a2f05[_0x1e16e2(0x13d)],'sectionId':_0x4a2f05['sectionId'],'suppressEndnotes':_0x4a2f05[_0x1e16e2(0x179)]},_0x886b12);}function u(_0x4a811a,_0x57d446,_0x494945){const _0x2229df=_0x5887f8;var _0x1f3022,_0x4707de,_0xff499b;if(!_0x57d446||_0x57d446['segmentId'])return!0x1;let _0x2ffa54=_0x4a811a[_0x2229df(0x13b)](e[_0x2229df(0x153)])['getUnit'](_0x57d446['unitId'],e['UniverInstanceType'][_0x2229df(0x106)]),_0x5407f4=_0x2ffa54==null?void 0x0:_0x2ffa54[_0x2229df(0x114)](),{offset:_0x4efb72}=_0x57d446;if(!c(_0x5407f4,_0x4efb72))return!0x1;let _0x49b4a9=l(_0x5407f4,_0x57d446,_0x494945);if(_0x49b4a9===!0x1)return!0x1;let _0x11e8cd=_0x57d446[_0x2229df(0x149)]??(0x0,e[_0x2229df(0x122)])(0xc);if((_0x1f3022=_0x5407f4[_0x2229df(0x141)])!=null&&_0x1f3022[_0x11e8cd]||(_0x4707de=_0x5407f4['headers'])!=null&&_0x4707de[_0x11e8cd]||(_0xff499b=_0x5407f4['footers'])!=null&&_0xff499b[_0x11e8cd])return!0x1;let _0xca2b3c=e[_0x2229df(0x110)][_0x2229df(0x144)]({'type':_0x494945,'noteId':_0x11e8cd,'body':_0x57d446[_0x2229df(0x104)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e['createParagraphId'])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x57d446[_0x2229df(0x142)],'referenceTextStyle':_0x57d446[_0x2229df(0x165)],'tableSource':_0x57d446[_0x2229df(0x11a)],'drawings':_0x57d446['drawings'],'drawingsOrder':_0x57d446[_0x2229df(0x166)],'lists':_0x57d446['lists']});if((0x0,e[_0x2229df(0x131)])({'notes':{[_0x11e8cd]:_0xca2b3c}})[_0x2229df(0x15a)]>0x0)return!0x1;let _0x22faa8=new e[(_0x2229df(0x15d))]();_0x4efb72>0x0&&_0x22faa8[_0x2229df(0x15e)](_0x4efb72),_0x22faa8[_0x2229df(0x159)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x494945===_0x2229df(0x132)?e[_0x2229df(0x156)][_0x2229df(0x11e)]:e[_0x2229df(0x156)][_0x2229df(0x10b)],'rangeId':(0x0,e[_0x2229df(0x122)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x11e8cd}}]});let _0x41cb73=e['JSONX'][_0x2229df(0x157)](),_0x5ab2e5=_0x5407f4[_0x2229df(0x141)]==null?_0x41cb73[_0x2229df(0xfc)]([_0x2229df(0x141)],{[_0x11e8cd]:_0xca2b3c}):_0x41cb73['insertOp']([_0x2229df(0x141),_0x11e8cd],_0xca2b3c);return!!_0x4a811a[_0x2229df(0x13b)](e[_0x2229df(0x11d)])[_0x2229df(0x11b)](t[_0x2229df(0x10d)]['id'],{'unitId':_0x57d446[_0x2229df(0x12b)],'segmentId':'','historyAction':_0x2229df(0x12d)+_0x494945,'actions':e['JSONX'][_0x2229df(0x17a)](e[_0x2229df(0x168)]['compose'](_0x49b4a9,_0x5ab2e5),_0x41cb73[_0x2229df(0x121)](_0x22faa8[_0x2229df(0x123)](),[_0x2229df(0x104)])),'textRanges':[{'segmentId':_0x11e8cd,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x145e(_0x5d968c,_0xc48715){_0x5d968c=_0x5d968c-0xfa;const _0x2e001b=_0x2e00();let _0x145ec1=_0x2e001b[_0x5d968c];return _0x145ec1;}function d(_0x131b67,_0x4cbda1,_0x49777d){const _0x32809e=_0x5887f8;var _0x5bd28b,_0x13d32e;if(!_0x4cbda1)return!0x1;let _0x4ebdec=_0x131b67[_0x32809e(0x13b)](e[_0x32809e(0x153)])['getUnit'](_0x4cbda1['unitId'],e[_0x32809e(0x148)][_0x32809e(0x106)]),_0x449ae1=_0x4ebdec==null?void 0x0:_0x4ebdec[_0x32809e(0x114)](),_0x42787d=_0x449ae1==null||(_0x5bd28b=_0x449ae1[_0x32809e(0x141)])==null?void 0x0:_0x5bd28b[_0x4cbda1['noteId']],_0x4b0e7d=_0x449ae1==null||(_0x13d32e=_0x449ae1['body'])==null||(_0x13d32e=_0x13d32e[_0x32809e(0x138)])==null?void 0x0:_0x13d32e[_0x32809e(0x15f)](_0x1b8abc=>{const _0x2f6add=_0x32809e;var _0x520022;return(_0x1b8abc['rangeType']===e[_0x2f6add(0x156)][_0x2f6add(0x11e)]||_0x1b8abc['rangeType']===e['CustomRangeType'][_0x2f6add(0x10b)])&&((_0x520022=_0x1b8abc['properties'])==null?void 0x0:_0x520022[_0x2f6add(0x149)])===_0x4cbda1[_0x2f6add(0x149)];});if(!_0x449ae1||_0x449ae1[_0x32809e(0x127)][_0x32809e(0x117)]!==e['DocumentFlavor'][_0x32809e(0x120)]||!_0x42787d||_0x42787d[_0x32809e(0x16b)]!==_0x49777d||!_0x4b0e7d)return!0x1;let _0x448fa3=new e['TextX']();_0x4b0e7d[_0x32809e(0x119)]>0x0&&_0x448fa3[_0x32809e(0x15e)](_0x4b0e7d[_0x32809e(0x119)]),_0x448fa3['delete'](0x1);let _0x21aef0=e[_0x32809e(0x168)][_0x32809e(0x157)]();return!!_0x131b67['get'](e[_0x32809e(0x11d)])[_0x32809e(0x11b)](t[_0x32809e(0x10d)]['id'],{'unitId':_0x4cbda1[_0x32809e(0x12b)],'segmentId':'','historyAction':_0x32809e(0x12a)+_0x49777d,'actions':e['JSONX']['compose'](_0x21aef0[_0x32809e(0x121)](_0x448fa3[_0x32809e(0x123)](),[_0x32809e(0x104)]),_0x21aef0[_0x32809e(0x150)](['notes',_0x4cbda1['noteId']],_0x42787d)),'textRanges':[{'startOffset':_0x4b0e7d[_0x32809e(0x119)],'endOffset':_0x4b0e7d[_0x32809e(0x119)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x5887f8(0x130),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x4fe2dc,_0x1ca2d3)=>u(_0x4fe2dc,_0x1ca2d3,'footnote')},p={'id':_0x5887f8(0x170),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x1cb46a,_0x27d502)=>d(_0x1cb46a,_0x27d502,'footnote')},m={'id':_0x5887f8(0x143),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x12ebf0,_0x4b5909)=>u(_0x12ebf0,_0x4b5909,'endnote')},h={'id':_0x5887f8(0x176),'type':e[_0x5887f8(0xfd)]['COMMAND'],'handler':(_0x50e52d,_0x2fc3f7)=>d(_0x50e52d,_0x2fc3f7,_0x5887f8(0x12e))};var g=_0x5887f8(0x13f),_=_0x5887f8(0x145);const v={};function y(_0x47ad01,_0x490a1e){return function(_0x5adebf,_0x2a9b2d){_0x490a1e(_0x5adebf,_0x2a9b2d,_0x47ad01);};}function b(_0x5fa8b4,_0x1698ee,_0x109604,_0x5d020a){const _0x15d5db=_0x5887f8;var _0x4eb657=arguments[_0x15d5db(0x15a)],_0x3437b9=_0x4eb657<0x3?_0x1698ee:_0x5d020a===null?_0x5d020a=Object[_0x15d5db(0x129)](_0x1698ee,_0x109604):_0x5d020a,_0xec8160;if(typeof Reflect==_0x15d5db(0x16c)&&typeof Reflect[_0x15d5db(0x103)]==_0x15d5db(0x174))_0x3437b9=Reflect['decorate'](_0x5fa8b4,_0x1698ee,_0x109604,_0x5d020a);else{for(var _0x3b47f1=_0x5fa8b4[_0x15d5db(0x15a)]-0x1;_0x3b47f1>=0x0;_0x3b47f1--)(_0xec8160=_0x5fa8b4[_0x3b47f1])&&(_0x3437b9=(_0x4eb657<0x3?_0xec8160(_0x3437b9):_0x4eb657>0x3?_0xec8160(_0x1698ee,_0x109604,_0x3437b9):_0xec8160(_0x1698ee,_0x109604))||_0x3437b9);}return _0x4eb657>0x3&&_0x3437b9&&Object[_0x15d5db(0x171)](_0x1698ee,_0x109604,_0x3437b9),_0x3437b9;}function x(_0x2a0218){'@babel/helpers - typeof';const _0x1892d3=_0x5887f8;return x=typeof Symbol==_0x1892d3(0x174)&&typeof Symbol[_0x1892d3(0x154)]=='symbol'?function(_0x41baad){return typeof _0x41baad;}:function(_0x2e8a13){const _0x3e7b30=_0x1892d3;return _0x2e8a13&&typeof Symbol==_0x3e7b30(0x174)&&_0x2e8a13[_0x3e7b30(0xfb)]===Symbol&&_0x2e8a13!==Symbol[_0x3e7b30(0x13e)]?_0x3e7b30(0x126):typeof _0x2e8a13;},x(_0x2a0218);}function S(_0x2016f9,_0x2526e0){const _0x27b05e=_0x5887f8;if(x(_0x2016f9)!=_0x27b05e(0x16c)||!_0x2016f9)return _0x2016f9;var _0x33d15e=_0x2016f9[Symbol[_0x27b05e(0xfa)]];if(_0x33d15e!==void 0x0){var _0x25f25b=_0x33d15e[_0x27b05e(0x100)](_0x2016f9,_0x2526e0||_0x27b05e(0x14a));if(x(_0x25f25b)!=_0x27b05e(0x16c))return _0x25f25b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2526e0==='string'?String:Number)(_0x2016f9);}function C(_0x4faafb){const _0x59f818=_0x5887f8;var _0x2cff4f=S(_0x4faafb,_0x59f818(0x13a));return x(_0x2cff4f)==_0x59f818(0x126)?_0x2cff4f:_0x2cff4f+'';}function w(_0xef2dcb,_0x348abd,_0x546a68){return(_0x348abd=C(_0x348abd))in _0xef2dcb?Object['defineProperty'](_0xef2dcb,_0x348abd,{'value':_0x546a68,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xef2dcb[_0x348abd]=_0x546a68,_0xef2dcb;}let T=class extends e[_0x5887f8(0x108)]{constructor(_0x4683cd=v,_0x1d7c25,_0x5571db,_0x23b793){const _0x5cf389=_0x5887f8;super(),this[_0x5cf389(0x12f)]=_0x4683cd,this['_injector']=_0x1d7c25,this[_0x5cf389(0x164)]=_0x5571db,this[_0x5cf389(0x137)]=_0x23b793;let {..._0x52454f}=(0x0,e[_0x5cf389(0x11c)])({},v,this['_config']);this[_0x5cf389(0x164)]['setConfig'](_0x5cf389(0x173),_0x52454f);}['onStarting'](){const _0x104880=_0x5887f8;[f,p,o,m,h,s]['forEach'](_0x597bf2=>this[_0x104880(0x15c)](this[_0x104880(0x137)][_0x104880(0x16f)](_0x597bf2)));}};w(T,_0x5887f8(0x155),'UNIVER_DOCS_REFERENCE_PLUGIN'),w(T,_0x5887f8(0x105),g),w(T,_0x5887f8(0x16d),_),w(T,_0x5887f8(0x16b),e[_0x5887f8(0x148)]['UNIVER_DOC']),T=b([(0x0,e[_0x5887f8(0x109)])(n[_0x5887f8(0x116)],t['UniverDocsPlugin']),y(0x1,(0x0,e[_0x5887f8(0x14f)])(e['Injector'])),y(0x2,e[_0x5887f8(0x163)]),y(0x3,e[_0x5887f8(0x11d)])],T),exports[_0x5887f8(0x124)]=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x5887f8(0x160)]=m,exports['InsertDocumentFootnoteCommand']=f,exports[_0x5887f8(0x178)]=s,exports[_0x5887f8(0x169)]=o,Object['defineProperty'](exports,'UniverDocsReferencePlugin',{'enumerable':!0x0,'get':function(){return T;}});function _0x2e00(){const _0x1a730a=['startIndex','tableSource','syncExecuteCommand','merge','ICommandService','FOOTNOTE','-settings','TRADITIONAL','editOp','generateRandomId','serialize','DeleteDocumentEndnoteCommand','findIndex','symbol','documentStyle','includes','getOwnPropertyDescriptor','delete-','unitId','56FlIbAc','insert-','endnote','_config','doc.command.insert-footnote','validateDocumentStructure','footnote','isInteger','doc.command.set-endnote-settings','continuationNotice','dataStream','_commandService','customRanges','234rftFsz','string','get','boolean','settings','prototype','@univerjs-pro/docs-reference','1076mwDbFU','notes','customMark','doc.command.insert-endnote','deepClone','1.0.2','continuationSeparator','replaceOp','UniverInstanceType','noteId','default','columnCount','diffValue','sectionBreaks','pageBottom','Inject','removeOp','docEnd','separator','IUniverInstanceService','iterator','pluginName','CustomRangeType','getInstance','329352KXvCnz','insert','length','eachPage','disposeWithMe','TextX','retain','find','InsertDocumentEndnoteCommand','4wlXKNH','set-','IConfigService','_configService','referenceTextStyle','drawingsOrder','noteSettings','JSONX','SetDocumentFootnoteSettingsCommand','startNumber','type','object','version','55340YXziBB','registerCommand','doc.command.delete-footnote','defineProperty','keys','docs-reference.config','function','Module','doc.command.delete-endnote','179607hsnXxH','SetDocumentEndnoteSettingsCommand','suppressEndnotes','compose','toPrimitive','constructor','insertOp','CommandType','46641UDSLNA','restart','call','beneathText','145BTuNlx','decorate','body','packageName','UNIVER_DOC','noteProperties','Plugin','DependentOn','numberFormat','ENDNOTE','4879820LgFuXQ','RichTextEditingMutation','eachSect','position','Tools','26570dgxNCp','validateDocBodyStructure','continuous','getSnapshot','sectionId','UniverLicensePlugin','documentFlavor','COMMAND'];_0x2e00=function(){return _0x1a730a;};return _0x2e00();}
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x263322=_0x2d32;(function(_0x5a0e1f,_0x306aee){const _0xcbc016=_0x2d32,_0x2c2627=_0x5a0e1f();while(!![]){try{const _0x44f85d=parseInt(_0xcbc016(0x1e1))/0x1*(-parseInt(_0xcbc016(0x1e0))/0x2)+parseInt(_0xcbc016(0x1e5))/0x3+parseInt(_0xcbc016(0x1c3))/0x4+-parseInt(_0xcbc016(0x1da))/0x5*(parseInt(_0xcbc016(0x1db))/0x6)+parseInt(_0xcbc016(0x1d4))/0x7*(-parseInt(_0xcbc016(0x1dc))/0x8)+parseInt(_0xcbc016(0x1de))/0x9+parseInt(_0xcbc016(0x1bf))/0xa;if(_0x44f85d===_0x306aee)break;else _0x2c2627['push'](_0x2c2627['shift']());}catch(_0x28d6da){_0x2c2627['push'](_0x2c2627['shift']());}}}(_0xf518,0x9f41e));function _0x2d32(_0x48ecec,_0x47d6af){_0x48ecec=_0x48ecec-0x1ba;const _0xf518ec=_0xf518();let _0x2d32ef=_0xf518ec[_0x48ecec];return _0x2d32ef;}import{DeleteDocumentEndnoteCommand as _0x3c2ec0,DeleteDocumentFootnoteCommand as _0x1329e2,InsertDocumentEndnoteCommand as _0x4c5569,InsertDocumentFootnoteCommand as _0x4d59f8,SetDocumentEndnoteSettingsCommand as _0x49823,SetDocumentFootnoteSettingsCommand as _0x2e9c16}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x3640e8,ICommandService as _0x3171c9,Tools as _0x5b7f9e,generateRandomId as _0x4e0992}from'@univerjs/core';import{FDocument as _0x33ffe7}from'@univerjs/docs/facade';var d=class extends _0x33ffe7{[_0x263322(0x1c9)](_0x122038,_0x4db28b={}){const _0xa895db=_0x263322;let _0x24bdde=_0x4e0992(0xc);return this[_0xa895db(0x1d3)]['get'](_0x3171c9)[_0xa895db(0x1ba)](_0x4d59f8['id'],{..._0x4db28b,'unitId':this['id'],'offset':_0x122038,'noteId':_0x24bdde})?_0x24bdde:null;}[_0x263322(0x1bb)](){const _0x29dfcd=_0x263322;var _0x2fdd17;let _0x4a8db3=this[_0x29dfcd(0x1bc)]()[_0x29dfcd(0x1be)]();return(((_0x2fdd17=_0x4a8db3['body'])==null?void 0x0:_0x2fdd17[_0x29dfcd(0x1cd)])??[])[_0x29dfcd(0x1df)](_0x1ac66e=>_0x1ac66e['rangeType']===_0x3640e8[_0x29dfcd(0x1c7)])[_0x29dfcd(0x1c8)]((_0x1519ea,_0x405fe1)=>_0x1519ea[_0x29dfcd(0x1c4)]-_0x405fe1[_0x29dfcd(0x1c4)])[_0x29dfcd(0x1d0)](_0x2dcf53=>{const _0x1a4108=_0x29dfcd;var _0x3e3f0c,_0x4c5e8e;let _0x346e24=(_0x3e3f0c=_0x2dcf53[_0x1a4108(0x1cb)])==null?void 0x0:_0x3e3f0c[_0x1a4108(0x1d9)],_0x9fb73f=typeof _0x346e24==_0x1a4108(0x1d2)?(_0x4c5e8e=_0x4a8db3[_0x1a4108(0x1c2)])==null?void 0x0:_0x4c5e8e[_0x346e24]:void 0x0;return _0x9fb73f?[_0x5b7f9e['deepClone'](_0x9fb73f)]:[];});}['deleteFootnote'](_0x31fb0b){const _0x565544=_0x263322;return this[_0x565544(0x1d3)]['get'](_0x3171c9)[_0x565544(0x1ba)](_0x1329e2['id'],{'unitId':this['id'],'noteId':_0x31fb0b});}['getFootnoteSettings'](_0x26e97d){const _0x40c849=_0x263322;var _0x2d9444,_0x2f0787;let _0x4a9b5c=this['getDocumentDataModel']()[_0x40c849(0x1be)](),_0x3503ef=_0x26e97d==null?(_0x2d9444=_0x4a9b5c[_0x40c849(0x1dd)])==null?void 0x0:_0x2d9444[_0x40c849(0x1d7)]:(_0x2f0787=_0x4a9b5c[_0x40c849(0x1c6)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ca)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1c0)](_0x423277=>_0x423277[_0x40c849(0x1c5)]===_0x26e97d))==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ce)])==null?void 0x0:_0x2f0787[_0x40c849(0x1d7)];return _0x3503ef==null?void 0x0:_0x5b7f9e[_0x40c849(0x1d6)](_0x3503ef);}[_0x263322(0x1d8)](_0x5349b7,_0x51ee48){const _0x1a9e80=_0x263322;return this[_0x1a9e80(0x1d3)][_0x1a9e80(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x2e9c16['id'],{'unitId':this['id'],'settings':_0x5349b7,'sectionId':_0x51ee48});}['insertEndnote'](_0x3bcdf9,_0x4f3508={}){const _0x1c1e00=_0x263322;let _0x3dbd72=_0x4e0992(0xc);return this[_0x1c1e00(0x1d3)][_0x1c1e00(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x4c5569['id'],{..._0x4f3508,'unitId':this['id'],'offset':_0x3bcdf9,'noteId':_0x3dbd72})?_0x3dbd72:null;}[_0x263322(0x1e3)](){const _0x1ec1ca=_0x263322;var _0x404c74;let _0x988a2b=this[_0x1ec1ca(0x1bc)]()['getSnapshot']();return(((_0x404c74=_0x988a2b['body'])==null?void 0x0:_0x404c74[_0x1ec1ca(0x1cd)])??[])[_0x1ec1ca(0x1df)](_0x42b763=>_0x42b763[_0x1ec1ca(0x1d1)]===_0x3640e8[_0x1ec1ca(0x1cc)])['sort']((_0x18c162,_0x58c500)=>_0x18c162[_0x1ec1ca(0x1c4)]-_0x58c500[_0x1ec1ca(0x1c4)])[_0x1ec1ca(0x1d0)](_0x2c2e6f=>{const _0x47a754=_0x1ec1ca;var _0x238a9b,_0x35f867;let _0x204d90=(_0x238a9b=_0x2c2e6f[_0x47a754(0x1cb)])==null?void 0x0:_0x238a9b[_0x47a754(0x1d9)],_0x29886e=typeof _0x204d90=='string'?(_0x35f867=_0x988a2b[_0x47a754(0x1c2)])==null?void 0x0:_0x35f867[_0x204d90]:void 0x0;return _0x29886e?[_0x5b7f9e[_0x47a754(0x1d6)](_0x29886e)]:[];});}[_0x263322(0x1c1)](_0x3d539b){const _0xa90fe8=_0x263322;return this[_0xa90fe8(0x1d3)][_0xa90fe8(0x1bd)](_0x3171c9)[_0xa90fe8(0x1ba)](_0x3c2ec0['id'],{'unitId':this['id'],'noteId':_0x3d539b});}[_0x263322(0x1cf)](_0x1a08f7){const _0x1e5a83=_0x263322;var _0x4d55d3,_0x4da4f7;let _0x174490=this[_0x1e5a83(0x1bc)]()['getSnapshot'](),_0xd8fed4=_0x1a08f7==null?(_0x4d55d3=_0x174490[_0x1e5a83(0x1dd)])==null?void 0x0:_0x4d55d3['endnote']:(_0x4da4f7=_0x174490[_0x1e5a83(0x1c6)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ca)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1c0)](_0x545a43=>_0x545a43['sectionId']===_0x1a08f7))==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ce)])==null?void 0x0:_0x4da4f7[_0x1e5a83(0x1e2)];return _0xd8fed4==null?void 0x0:_0x5b7f9e[_0x1e5a83(0x1d6)](_0xd8fed4);}[_0x263322(0x1e4)](_0xac9a9f,_0x2b5a4a){const _0x290054=_0x263322;return this['_injector'][_0x290054(0x1bd)](_0x3171c9)[_0x290054(0x1ba)](_0x49823['id'],{'unitId':this['id'],'settings':_0xac9a9f,'sectionId':_0x2b5a4a});}};function _0xf518(){const _0x1946dc=['extend','deepClone','footnote','setFootnoteSettings','noteId','155YVhGaM','128070FhvdmU','8IxeqTR','noteSettings','8118855jQaKQs','filter','2wJYqhk','820411XtaUWd','endnote','getEndnotes','setEndnoteSettings','802080Vithbv','syncExecuteCommand','getFootnotes','getDocumentDataModel','get','getSnapshot','6941650ytOraT','find','deleteEndnote','notes','3233548BRETRR','startIndex','sectionId','body','FOOTNOTE','sort','insertFootnote','sectionBreaks','properties','ENDNOTE','customRanges','noteProperties','getEndnoteSettings','flatMap','rangeType','string','_injector','3763081yfqUzD'];_0xf518=function(){return _0x1946dc;};return _0xf518();}_0x33ffe7[_0x263322(0x1d5)](d);export{};
1
+ function _0x5c07(_0x173a84,_0x46cc7d){_0x173a84=_0x173a84-0x10a;const _0x165d51=_0x165d();let _0x5c075d=_0x165d51[_0x173a84];return _0x5c075d;}const _0x3e9fe7=_0x5c07;function _0x165d(){const _0x360d15=['insertFootnote','footnote','3288123AfRmYg','find','body','notes','noteSettings','noteProperties','1271565IzOIfL','endnote','32eaBhba','get','startIndex','setEndnoteSettings','_injector','flatMap','deleteFootnote','609061HBuNAw','40WyqReJ','syncExecuteCommand','string','534PTBJpA','sectionBreaks','185601YvuqDZ','sort','customRanges','rangeType','noteId','17857gnzoaf','properties','1711765SaVHSN','getSnapshot','988566XQqKyg','8mUXjAU','deleteEndnote','insertEndnote','deepClone','getEndnoteSettings','getFootnoteSettings','ENDNOTE','FOOTNOTE','setFootnoteSettings'];_0x165d=function(){return _0x360d15;};return _0x165d();}(function(_0x17f0d8,_0xce750b){const _0x59a14e=_0x5c07,_0x5b06ce=_0x17f0d8();while(!![]){try{const _0x4a16bd=-parseInt(_0x59a14e(0x11d))/0x1+-parseInt(_0x59a14e(0x12c))/0x2+-parseInt(_0x59a14e(0x123))/0x3*(-parseInt(_0x59a14e(0x116))/0x4)+-parseInt(_0x59a14e(0x114))/0x5+parseInt(_0x59a14e(0x121))/0x6*(parseInt(_0x59a14e(0x128))/0x7)+parseInt(_0x59a14e(0x12d))/0x8*(parseInt(_0x59a14e(0x10e))/0x9)+parseInt(_0x59a14e(0x11e))/0xa*(parseInt(_0x59a14e(0x12a))/0xb);if(_0x4a16bd===_0xce750b)break;else _0x5b06ce['push'](_0x5b06ce['shift']());}catch(_0x1eb96d){_0x5b06ce['push'](_0x5b06ce['shift']());}}}(_0x165d,0x55f7d));import{DeleteDocumentEndnoteCommand as _0x20f549,DeleteDocumentFootnoteCommand as _0x414b2,InsertDocumentEndnoteCommand as _0x57be98,InsertDocumentFootnoteCommand as _0xcd3aa8,SetDocumentEndnoteSettingsCommand as _0x2d211c,SetDocumentFootnoteSettingsCommand as _0x2cf00a}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x20f530,ICommandService as _0x2986de,Tools as _0x4f4c96,generateRandomId as _0x2083af}from'@univerjs/core';import{FDocument as _0x3f6f3f}from'@univerjs/docs/facade';var d=class extends _0x3f6f3f{[_0x3e9fe7(0x10c)](_0x4008d0,_0x2a49e9={}){const _0x4a35fe=_0x3e9fe7;let _0x15320b=_0x2083af(0xc);return this['_injector'][_0x4a35fe(0x117)](_0x2986de)[_0x4a35fe(0x11f)](_0xcd3aa8['id'],{..._0x2a49e9,'unitId':this['id'],'offset':_0x4008d0,'noteId':_0x15320b})?_0x15320b:null;}['getFootnotes'](){const _0x24432d=_0x3e9fe7;var _0x192a7e;let _0x13a822=this['getDocumentDataModel']()['getSnapshot']();return(((_0x192a7e=_0x13a822[_0x24432d(0x110)])==null?void 0x0:_0x192a7e[_0x24432d(0x125)])??[])['filter'](_0x3f5382=>_0x3f5382[_0x24432d(0x126)]===_0x20f530[_0x24432d(0x10a)])[_0x24432d(0x124)]((_0xaafa50,_0x496337)=>_0xaafa50[_0x24432d(0x118)]-_0x496337[_0x24432d(0x118)])[_0x24432d(0x11b)](_0x3a66a9=>{const _0x411af5=_0x24432d;var _0x2a027b,_0x5c779c;let _0xe16551=(_0x2a027b=_0x3a66a9[_0x411af5(0x129)])==null?void 0x0:_0x2a027b[_0x411af5(0x127)],_0xae4908=typeof _0xe16551==_0x411af5(0x120)?(_0x5c779c=_0x13a822['notes'])==null?void 0x0:_0x5c779c[_0xe16551]:void 0x0;return _0xae4908?[_0x4f4c96[_0x411af5(0x130)](_0xae4908)]:[];});}[_0x3e9fe7(0x11c)](_0x3aaacb){const _0x1e6a83=_0x3e9fe7;return this[_0x1e6a83(0x11a)][_0x1e6a83(0x117)](_0x2986de)[_0x1e6a83(0x11f)](_0x414b2['id'],{'unitId':this['id'],'noteId':_0x3aaacb});}[_0x3e9fe7(0x132)](_0x1a55b4){const _0x47789a=_0x3e9fe7;var _0x2bbc34,_0x15ef65;let _0x240be5=this['getDocumentDataModel']()[_0x47789a(0x12b)](),_0x164671=_0x1a55b4==null?(_0x2bbc34=_0x240be5[_0x47789a(0x112)])==null?void 0x0:_0x2bbc34[_0x47789a(0x10d)]:(_0x15ef65=_0x240be5[_0x47789a(0x110)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x122)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x10f)](_0x52a240=>_0x52a240['sectionId']===_0x1a55b4))==null||(_0x15ef65=_0x15ef65['noteProperties'])==null?void 0x0:_0x15ef65['footnote'];return _0x164671==null?void 0x0:_0x4f4c96[_0x47789a(0x130)](_0x164671);}[_0x3e9fe7(0x10b)](_0x20a59f,_0x3be077){const _0x3a04c4=_0x3e9fe7;return this['_injector'][_0x3a04c4(0x117)](_0x2986de)[_0x3a04c4(0x11f)](_0x2cf00a['id'],{'unitId':this['id'],'settings':_0x20a59f,'sectionId':_0x3be077});}[_0x3e9fe7(0x12f)](_0x27b8b2,_0x2f3224={}){const _0x44036c=_0x3e9fe7;let _0xb67386=_0x2083af(0xc);return this[_0x44036c(0x11a)][_0x44036c(0x117)](_0x2986de)[_0x44036c(0x11f)](_0x57be98['id'],{..._0x2f3224,'unitId':this['id'],'offset':_0x27b8b2,'noteId':_0xb67386})?_0xb67386:null;}['getEndnotes'](){const _0x1d6700=_0x3e9fe7;var _0x49e0d3;let _0x361372=this['getDocumentDataModel']()[_0x1d6700(0x12b)]();return(((_0x49e0d3=_0x361372[_0x1d6700(0x110)])==null?void 0x0:_0x49e0d3['customRanges'])??[])['filter'](_0x489f4c=>_0x489f4c[_0x1d6700(0x126)]===_0x20f530[_0x1d6700(0x133)])[_0x1d6700(0x124)]((_0x14d5c3,_0x212bba)=>_0x14d5c3[_0x1d6700(0x118)]-_0x212bba[_0x1d6700(0x118)])[_0x1d6700(0x11b)](_0x2d0abd=>{const _0x4acc38=_0x1d6700;var _0x2b0562,_0x32540f;let _0x460b90=(_0x2b0562=_0x2d0abd['properties'])==null?void 0x0:_0x2b0562[_0x4acc38(0x127)],_0x69f695=typeof _0x460b90==_0x4acc38(0x120)?(_0x32540f=_0x361372[_0x4acc38(0x111)])==null?void 0x0:_0x32540f[_0x460b90]:void 0x0;return _0x69f695?[_0x4f4c96['deepClone'](_0x69f695)]:[];});}[_0x3e9fe7(0x12e)](_0x136e25){const _0x10119d=_0x3e9fe7;return this[_0x10119d(0x11a)]['get'](_0x2986de)[_0x10119d(0x11f)](_0x20f549['id'],{'unitId':this['id'],'noteId':_0x136e25});}[_0x3e9fe7(0x131)](_0x3ba12f){const _0x9b75ca=_0x3e9fe7;var _0x498f9a,_0x56a58d;let _0x1d09c5=this['getDocumentDataModel']()[_0x9b75ca(0x12b)](),_0x2cc1b5=_0x3ba12f==null?(_0x498f9a=_0x1d09c5[_0x9b75ca(0x112)])==null?void 0x0:_0x498f9a[_0x9b75ca(0x115)]:(_0x56a58d=_0x1d09c5[_0x9b75ca(0x110)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x122)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x10f)](_0x1edeb0=>_0x1edeb0['sectionId']===_0x3ba12f))==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x113)])==null?void 0x0:_0x56a58d[_0x9b75ca(0x115)];return _0x2cc1b5==null?void 0x0:_0x4f4c96[_0x9b75ca(0x130)](_0x2cc1b5);}[_0x3e9fe7(0x119)](_0x195d73,_0x1f6786){const _0x2bb0eb=_0x3e9fe7;return this['_injector'][_0x2bb0eb(0x117)](_0x2986de)[_0x2bb0eb(0x11f)](_0x2d211c['id'],{'unitId':this['id'],'settings':_0x195d73,'sectionId':_0x1f6786});}};_0x3f6f3f['extend'](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4600df=_0x3539;(function(_0x413eed,_0x5ab849){const _0x341caf=_0x3539,_0x298b0a=_0x413eed();while(!![]){try{const _0x13434b=parseInt(_0x341caf(0x20f))/0x1*(-parseInt(_0x341caf(0x208))/0x2)+-parseInt(_0x341caf(0x1cd))/0x3*(-parseInt(_0x341caf(0x1c5))/0x4)+-parseInt(_0x341caf(0x1f7))/0x5+parseInt(_0x341caf(0x1d9))/0x6*(-parseInt(_0x341caf(0x1c9))/0x7)+parseInt(_0x341caf(0x1f0))/0x8+parseInt(_0x341caf(0x1c2))/0x9*(parseInt(_0x341caf(0x216))/0xa)+parseInt(_0x341caf(0x1ec))/0xb*(parseInt(_0x341caf(0x202))/0xc);if(_0x13434b===_0x5ab849)break;else _0x298b0a['push'](_0x298b0a['shift']());}catch(_0x4ddd19){_0x298b0a['push'](_0x298b0a['shift']());}}}(_0x4763,0x67ea3));import{CommandType as _0x2beccf,CustomRangeType as _0x1f509c,DependentOn as _0x126d9d,DocumentFlavor as _0x25b4a1,ICommandService as _0xbc5180,IConfigService as _0x19a8fd,IUniverInstanceService as _0x28d7f0,Inject as _0x4b5c4b,Injector as _0x38617d,JSONX as _0x4f86a5,Plugin as _0x26c983,TextX as _0x7c13a3,Tools as _0x1ea835,UniverInstanceType as _0x45c27a,createParagraphId as _0x57afb1,createSectionId as _0x4111f5,generateRandomId as _0x31c553,merge as _0x50c30f,validateDocBodyStructure as _0x35465e,validateDocumentStructure as _0x3dd22b}from'@univerjs/core';import{RichTextEditingMutation as _0x2b017e,UniverDocsPlugin as _0x1bad7e}from'@univerjs/docs';import{UniverLicensePlugin as _0x1111a2}from'@univerjs-pro/license';function C(_0x33e3bd,_0x32f7ab,_0x3849bc){const _0x905eb0=_0x3539;if(_0x33e3bd[_0x905eb0(0x1ff)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x20a),_0x905eb0(0x1ae)]:[_0x905eb0(0x21a),_0x905eb0(0x1fd)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ff)])||_0x33e3bd[_0x905eb0(0x1ab)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x1e7),_0x905eb0(0x1f5),_0x905eb0(0x210)]:[_0x905eb0(0x1e7),_0x905eb0(0x1f5)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ab)])||_0x33e3bd[_0x905eb0(0x1cb)]!=null&&(!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1cb)])||_0x33e3bd[_0x905eb0(0x1cb)]<0x1)||_0x905eb0(0x1bc)in _0x33e3bd&&_0x33e3bd[_0x905eb0(0x1bc)]!=null&&(_0x32f7ab!=='footnote'||!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1bc)])||_0x33e3bd[_0x905eb0(0x1bc)]<0x0||_0x33e3bd['columnCount']>0x4)||_0x33e3bd[_0x905eb0(0x218)]!=null&&(typeof _0x33e3bd['numberFormat']!='string'||_0x33e3bd[_0x905eb0(0x218)]['length']===0x0))return!0x1;for(let _0x328c56 of[_0x33e3bd[_0x905eb0(0x1b1)],_0x33e3bd[_0x905eb0(0x1f8)],_0x33e3bd['continuationNotice']])if(_0x328c56!=null&&(_0x3849bc!=null||_0x35465e(_0x328c56)[_0x905eb0(0x1e9)]>0x0))return!0x1;return!0x0;}function w(_0x14e80d,_0x5ba25c,_0x55fdfe){const _0x55ce38=_0x3539;var _0x5b4fa3,_0x1e3646;if(_0x5ba25c[_0x55ce38(0x1ba)]!=null&&!C(_0x5ba25c[_0x55ce38(0x1ba)],_0x55fdfe,_0x5ba25c[_0x55ce38(0x1af)]))return!0x1;let _0x10c278=((_0x5b4fa3=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x5b4fa3=_0x5b4fa3[_0x55ce38(0x1bd)])==null?void 0x0:_0x5b4fa3[_0x55ce38(0x1c6)](_0x119f1e=>_0x119f1e[_0x55ce38(0x1af)]===_0x5ba25c[_0x55ce38(0x1af)]))??-0x1;if(_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x10c278<0x0)return!0x1;let _0x4e55ea=_0x5ba25c[_0x55ce38(0x1af)]==null?_0x14e80d[_0x55ce38(0x1dc)]:(_0x1e3646=_0x14e80d['body'])==null||(_0x1e3646=_0x1e3646[_0x55ce38(0x1bd)])==null?void 0x0:_0x1e3646[_0x10c278]['noteProperties'],_0x5eee19=_0x5ba25c[_0x55ce38(0x1ba)]==null?void 0x0:_0x1ea835['deepClone'](_0x5ba25c['settings']),_0x3e6177=_0x5ba25c[_0x55ce38(0x1af)]==null?['noteSettings']:['body',_0x55ce38(0x1bd),_0x10c278,_0x55ce38(0x1cf)],_0x49ce7a=_0x4f86a5[_0x55ce38(0x1f9)](),_0x37e190=null;if(_0x1ea835['diffValue'](_0x4e55ea==null?void 0x0:_0x4e55ea[_0x55fdfe],_0x5eee19)||(_0x37e190=_0x4e55ea==null?_0x49ce7a[_0x55ce38(0x1d1)](_0x3e6177,{[_0x55fdfe]:_0x5eee19}):_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x5eee19==null&&Object[_0x55ce38(0x215)](_0x4e55ea)[_0x55ce38(0x205)](_0x27fe98=>_0x27fe98===_0x55fdfe)?_0x49ce7a[_0x55ce38(0x1e2)](_0x3e6177,_0x4e55ea):_0x49ce7a[_0x55ce38(0x1e4)]([..._0x3e6177,_0x55fdfe],_0x4e55ea[_0x55fdfe],_0x5eee19)),_0x5ba25c['suppressEndnotes']!=null){var _0x26653;if(_0x55fdfe!==_0x55ce38(0x1f4)||_0x5ba25c['sectionId']==null||typeof _0x5ba25c[_0x55ce38(0x201)]!=_0x55ce38(0x1d4))return!0x1;let _0x7bb256=(_0x26653=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x26653=_0x26653[_0x55ce38(0x1bd)])==null?void 0x0:_0x26653[_0x10c278][_0x55ce38(0x201)];_0x7bb256!==_0x5ba25c['suppressEndnotes']&&(_0x37e190=_0x4f86a5[_0x55ce38(0x1d2)](_0x37e190,_0x49ce7a[_0x55ce38(0x1e4)]([_0x55ce38(0x1b5),'sectionBreaks',_0x10c278,_0x55ce38(0x201)],_0x7bb256,_0x5ba25c[_0x55ce38(0x201)])));}return _0x37e190;}function T(_0x4009fa,_0x165f31,_0x51196c){const _0x1c643e=_0x3539;if(!_0x165f31)return!0x1;let _0x39184d=_0x4009fa[_0x1c643e(0x1fc)](_0x28d7f0)['getUnit'](_0x165f31[_0x1c643e(0x1df)],_0x45c27a[_0x1c643e(0x1c8)]),_0x258926=_0x39184d==null?void 0x0:_0x39184d['getSnapshot']();if(!_0x258926||_0x258926[_0x1c643e(0x1f6)][_0x1c643e(0x1d7)]!==_0x25b4a1[_0x1c643e(0x214)])return!0x1;let _0x1b59cf=w(_0x258926,_0x165f31,_0x51196c);return _0x1b59cf===!0x1||_0x4f86a5[_0x1c643e(0x1ea)](_0x1b59cf)?!0x1:!!_0x4009fa['get'](_0xbc5180)[_0x1c643e(0x1d3)](_0x2b017e['id'],{'unitId':_0x165f31['unitId'],'segmentId':'','historyAction':_0x1c643e(0x212)+_0x51196c+_0x1c643e(0x1b9),'actions':_0x1b59cf,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x510078,_0x44f459)=>T(_0x510078,_0x44f459,'footnote')},D={'id':'doc.command.set-endnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x49e484,_0x10e07f)=>T(_0x49e484,_0x10e07f,'endnote')};function O(_0x3b0436,_0x57ee53){const _0x575243=_0x4600df;return(_0x3b0436==null?void 0x0:_0x3b0436[_0x575243(0x1f6)][_0x575243(0x1d7)])===_0x25b4a1['TRADITIONAL']&&!!_0x3b0436[_0x575243(0x1b5)]&&Number[_0x575243(0x1dd)](_0x57ee53)&&_0x57ee53>=0x0&&_0x57ee53<_0x3b0436[_0x575243(0x1b5)][_0x575243(0x1c7)][_0x575243(0x1e9)]-0x1;}function k(_0x2ec1d8,_0x272edc,_0x55f525){const _0xac4721=_0x4600df;var _0x169563,_0x1c06bd;if(_0x272edc[_0xac4721(0x1ba)]===void 0x0&&_0x272edc['suppressEndnotes']===void 0x0)return null;let _0x3690dc=_0x272edc[_0xac4721(0x1af)]==null?(_0x169563=_0x2ec1d8[_0xac4721(0x1dc)])==null?void 0x0:_0x169563[_0x55f525]:(_0x1c06bd=_0x2ec1d8['body'])==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1bd)])==null||(_0x1c06bd=_0x1c06bd['find'](_0x23842c=>_0x23842c[_0xac4721(0x1af)]===_0x272edc['sectionId']))==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1cf)])==null?void 0x0:_0x1c06bd[_0x55f525];return w(_0x2ec1d8,{'settings':_0x272edc[_0xac4721(0x1ba)]===void 0x0?_0x3690dc??null:_0x272edc[_0xac4721(0x1ba)],'sectionId':_0x272edc['sectionId'],'suppressEndnotes':_0x272edc[_0xac4721(0x201)]},_0x55f525);}function A(_0x515098,_0x3f38d2,_0x4b3921){const _0x3f0d98=_0x4600df;var _0x22976a,_0x3ae86a,_0x5cf51c;if(!_0x3f38d2||_0x3f38d2['segmentId'])return!0x1;let _0x5eda21=_0x515098[_0x3f0d98(0x1fc)](_0x28d7f0)['getUnit'](_0x3f38d2['unitId'],_0x45c27a[_0x3f0d98(0x1c8)]),_0x329c5a=_0x5eda21==null?void 0x0:_0x5eda21[_0x3f0d98(0x1b7)](),{offset:_0x29dcbf}=_0x3f38d2;if(!O(_0x329c5a,_0x29dcbf))return!0x1;let _0x1fef75=k(_0x329c5a,_0x3f38d2,_0x4b3921);if(_0x1fef75===!0x1)return!0x1;let _0x415c01=_0x3f38d2[_0x3f0d98(0x1ed)]??_0x31c553(0xc);if((_0x22976a=_0x329c5a[_0x3f0d98(0x1bf)])!=null&&_0x22976a[_0x415c01]||(_0x3ae86a=_0x329c5a['headers'])!=null&&_0x3ae86a[_0x415c01]||(_0x5cf51c=_0x329c5a[_0x3f0d98(0x1cc)])!=null&&_0x5cf51c[_0x415c01])return!0x1;let _0x55959a=_0x1ea835[_0x3f0d98(0x1e0)]({'type':_0x4b3921,'noteId':_0x415c01,'body':_0x3f38d2[_0x3f0d98(0x1b5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x57afb1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x4111f5(new Set()),'startIndex':0x1}]},'customMark':_0x3f38d2['customMark'],'referenceTextStyle':_0x3f38d2[_0x3f0d98(0x1c3)],'tableSource':_0x3f38d2[_0x3f0d98(0x206)],'drawings':_0x3f38d2['drawings'],'drawingsOrder':_0x3f38d2['drawingsOrder'],'lists':_0x3f38d2[_0x3f0d98(0x1d0)]});if(_0x3dd22b({'notes':{[_0x415c01]:_0x55959a}})[_0x3f0d98(0x1e9)]>0x0)return!0x1;let _0x48c68f=new _0x7c13a3();_0x29dcbf>0x0&&_0x48c68f[_0x3f0d98(0x1b3)](_0x29dcbf),_0x48c68f[_0x3f0d98(0x200)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4b3921===_0x3f0d98(0x1ad)?_0x1f509c[_0x3f0d98(0x1ce)]:_0x1f509c['ENDNOTE'],'rangeId':_0x31c553(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x415c01}}]});let _0x4872a4=_0x4f86a5['getInstance'](),_0x2c37ec=_0x329c5a['notes']==null?_0x4872a4[_0x3f0d98(0x1d1)]([_0x3f0d98(0x1bf)],{[_0x415c01]:_0x55959a}):_0x4872a4[_0x3f0d98(0x1d1)](['notes',_0x415c01],_0x55959a);return!!_0x515098[_0x3f0d98(0x1fc)](_0xbc5180)[_0x3f0d98(0x1d3)](_0x2b017e['id'],{'unitId':_0x3f38d2[_0x3f0d98(0x1df)],'segmentId':'','historyAction':_0x3f0d98(0x1b6)+_0x4b3921,'actions':_0x4f86a5['compose'](_0x4f86a5[_0x3f0d98(0x1d2)](_0x1fef75,_0x2c37ec),_0x4872a4[_0x3f0d98(0x1ef)](_0x48c68f[_0x3f0d98(0x1f2)](),[_0x3f0d98(0x1b5)])),'textRanges':[{'segmentId':_0x415c01,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x975d8f,_0x50c57c,_0x46b976){const _0x20d8d9=_0x4600df;var _0x408632,_0xa10cf8;if(!_0x50c57c)return!0x1;let _0x1a6994=_0x975d8f['get'](_0x28d7f0)[_0x20d8d9(0x211)](_0x50c57c[_0x20d8d9(0x1df)],_0x45c27a[_0x20d8d9(0x1c8)]),_0x4b5235=_0x1a6994==null?void 0x0:_0x1a6994[_0x20d8d9(0x1b7)](),_0x4a60f1=_0x4b5235==null||(_0x408632=_0x4b5235[_0x20d8d9(0x1bf)])==null?void 0x0:_0x408632[_0x50c57c[_0x20d8d9(0x1ed)]],_0x522ce6=_0x4b5235==null||(_0xa10cf8=_0x4b5235[_0x20d8d9(0x1b5)])==null||(_0xa10cf8=_0xa10cf8[_0x20d8d9(0x1be)])==null?void 0x0:_0xa10cf8[_0x20d8d9(0x1ee)](_0x3b3029=>{const _0x2d9166=_0x20d8d9;var _0x2c1b3b;return(_0x3b3029['rangeType']===_0x1f509c[_0x2d9166(0x1ce)]||_0x3b3029[_0x2d9166(0x20b)]===_0x1f509c[_0x2d9166(0x1e3)])&&((_0x2c1b3b=_0x3b3029[_0x2d9166(0x1c0)])==null?void 0x0:_0x2c1b3b['noteId'])===_0x50c57c['noteId'];});if(!_0x4b5235||_0x4b5235[_0x20d8d9(0x1f6)][_0x20d8d9(0x1d7)]!==_0x25b4a1[_0x20d8d9(0x214)]||!_0x4a60f1||_0x4a60f1['type']!==_0x46b976||!_0x522ce6)return!0x1;let _0x4c3984=new _0x7c13a3();_0x522ce6['startIndex']>0x0&&_0x4c3984[_0x20d8d9(0x1b3)](_0x522ce6[_0x20d8d9(0x213)]),_0x4c3984[_0x20d8d9(0x1b4)](0x1);let _0x45f4fb=_0x4f86a5[_0x20d8d9(0x1f9)]();return!!_0x975d8f['get'](_0xbc5180)[_0x20d8d9(0x1d3)](_0x2b017e['id'],{'unitId':_0x50c57c[_0x20d8d9(0x1df)],'segmentId':'','historyAction':_0x20d8d9(0x219)+_0x46b976,'actions':_0x4f86a5[_0x20d8d9(0x1d2)](_0x45f4fb[_0x20d8d9(0x1ef)](_0x4c3984[_0x20d8d9(0x1f2)](),[_0x20d8d9(0x1b5)]),_0x45f4fb[_0x20d8d9(0x1e2)]([_0x20d8d9(0x1bf),_0x50c57c[_0x20d8d9(0x1ed)]],_0x4a60f1)),'textRanges':[{'startOffset':_0x522ce6['startIndex'],'endOffset':_0x522ce6[_0x20d8d9(0x213)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x4600df(0x1d6),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x30721f,_0x5e0680)=>A(_0x30721f,_0x5e0680,_0x4600df(0x1ad))},N={'id':_0x4600df(0x20e),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x5c98f8,_0x2d4464)=>j(_0x5c98f8,_0x2d4464,_0x4600df(0x1ad))},P={'id':_0x4600df(0x1d5),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0xfdb615,_0x2eb765)=>A(_0xfdb615,_0x2eb765,_0x4600df(0x1f4))},F={'id':_0x4600df(0x1de),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x10046c,_0x7c3427)=>j(_0x10046c,_0x7c3427,_0x4600df(0x1f4))};function _0x3539(_0xfed6f0,_0x15771d){_0xfed6f0=_0xfed6f0-0x1aa;const _0x4763c3=_0x4763();let _0x35396c=_0x4763c3[_0xfed6f0];return _0x35396c;}var I=_0x4600df(0x1da),L=_0x4600df(0x1c4);const R={};function z(_0x4acdba,_0x4c2d57){return function(_0x366aa1,_0x2f02f3){_0x4c2d57(_0x366aa1,_0x2f02f3,_0x4acdba);};}function B(_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e){const _0x544728=_0x4600df;var _0x3fb182=arguments[_0x544728(0x1e9)],_0x2a8e7f=_0x3fb182<0x3?_0x245561:_0x4e181e===null?_0x4e181e=Object['getOwnPropertyDescriptor'](_0x245561,_0x22bd4d):_0x4e181e,_0x196d1e;if(typeof Reflect==_0x544728(0x1ca)&&typeof Reflect[_0x544728(0x1e1)]==_0x544728(0x1d8))_0x2a8e7f=Reflect['decorate'](_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e);else{for(var _0x3447da=_0x3b3328[_0x544728(0x1e9)]-0x1;_0x3447da>=0x0;_0x3447da--)(_0x196d1e=_0x3b3328[_0x3447da])&&(_0x2a8e7f=(_0x3fb182<0x3?_0x196d1e(_0x2a8e7f):_0x3fb182>0x3?_0x196d1e(_0x245561,_0x22bd4d,_0x2a8e7f):_0x196d1e(_0x245561,_0x22bd4d))||_0x2a8e7f);}return _0x3fb182>0x3&&_0x2a8e7f&&Object[_0x544728(0x1e5)](_0x245561,_0x22bd4d,_0x2a8e7f),_0x2a8e7f;}function V(_0xe7b87e){'@babel/helpers - typeof';const _0x2e8c10=_0x4600df;return V=typeof Symbol=='function'&&typeof Symbol[_0x2e8c10(0x1e6)]==_0x2e8c10(0x1aa)?function(_0x29a605){return typeof _0x29a605;}:function(_0xbf3c23){const _0x43558b=_0x2e8c10;return _0xbf3c23&&typeof Symbol==_0x43558b(0x1d8)&&_0xbf3c23[_0x43558b(0x217)]===Symbol&&_0xbf3c23!==Symbol[_0x43558b(0x209)]?_0x43558b(0x1aa):typeof _0xbf3c23;},V(_0xe7b87e);}function H(_0x1e6791,_0x117acd){const _0x3a8ada=_0x4600df;if(V(_0x1e6791)!='object'||!_0x1e6791)return _0x1e6791;var _0x195df2=_0x1e6791[Symbol[_0x3a8ada(0x1ac)]];if(_0x195df2!==void 0x0){var _0x2ea2bb=_0x195df2['call'](_0x1e6791,_0x117acd||_0x3a8ada(0x1b2));if(V(_0x2ea2bb)!=_0x3a8ada(0x1ca))return _0x2ea2bb;throw TypeError(_0x3a8ada(0x20c));}return(_0x117acd===_0x3a8ada(0x1eb)?String:Number)(_0x1e6791);}function U(_0x287226){const _0x5c9d54=_0x4600df;var _0x5adef8=H(_0x287226,_0x5c9d54(0x1eb));return V(_0x5adef8)=='symbol'?_0x5adef8:_0x5adef8+'';}function W(_0x1972e8,_0x3af945,_0x2a6d37){const _0x4aae17=_0x4600df;return(_0x3af945=U(_0x3af945))in _0x1972e8?Object[_0x4aae17(0x1e5)](_0x1972e8,_0x3af945,{'value':_0x2a6d37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1972e8[_0x3af945]=_0x2a6d37,_0x1972e8;}function _0x4763(){const _0x152904=['eachPage','getUnit','set-','startIndex','TRADITIONAL','keys','22490fUUvqO','constructor','numberFormat','delete-','docEnd','symbol','restart','toPrimitive','footnote','beneathText','sectionId','includes','separator','default','retain','delete','body','insert-','getSnapshot','_configService','-settings','settings','setConfig','columnCount','sectionBreaks','customRanges','notes','properties','packageName','45SHzOiT','referenceTextStyle','1.0.1','52CcznWu','findIndex','dataStream','UNIVER_DOC','333977nlABkg','object','startNumber','footers','193854IEfIBZ','FOOTNOTE','noteProperties','lists','insertOp','compose','syncExecuteCommand','boolean','doc.command.insert-endnote','doc.command.insert-footnote','documentFlavor','function','42LVboyn','@univerjs-pro/docs-reference','_injector','noteSettings','isInteger','doc.command.delete-endnote','unitId','deepClone','decorate','removeOp','ENDNOTE','replaceOp','defineProperty','iterator','continuous','pluginName','length','isNoop','string','118415BMCwtc','noteId','find','editOp','56424WddhYL','_config','serialize','_commandService','endnote','eachSect','documentStyle','260200zhkUof','continuationSeparator','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','COMMAND','get','sectEnd','docs-reference.config','position','insert','suppressEndnotes','840UIRuGH','type','disposeWithMe','every','tableSource','forEach','18610xbmAoU','prototype','pageBottom','rangeType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','doc.command.delete-footnote','86zXxotq'];_0x4763=function(){return _0x152904;};return _0x4763();}let G=class extends _0x26c983{constructor(_0x184b0f=R,_0x27aa9d,_0x3929a9,_0x4cae4b){const _0x17a5c2=_0x4600df;super(),this[_0x17a5c2(0x1f1)]=_0x184b0f,this[_0x17a5c2(0x1db)]=_0x27aa9d,this[_0x17a5c2(0x1b8)]=_0x3929a9,this[_0x17a5c2(0x1f3)]=_0x4cae4b;let {..._0x5269ea}=_0x50c30f({},R,this[_0x17a5c2(0x1f1)]);this[_0x17a5c2(0x1b8)][_0x17a5c2(0x1bb)](_0x17a5c2(0x1fe),_0x5269ea);}[_0x4600df(0x20d)](){const _0x524f9d=_0x4600df;[M,N,E,P,F,D][_0x524f9d(0x207)](_0x19642b=>this[_0x524f9d(0x204)](this[_0x524f9d(0x1f3)]['registerCommand'](_0x19642b)));}};W(G,_0x4600df(0x1e8),_0x4600df(0x1fa)),W(G,_0x4600df(0x1c1),I),W(G,'version',L),W(G,_0x4600df(0x203),_0x45c27a[_0x4600df(0x1c8)]),G=B([_0x126d9d(_0x1111a2,_0x1bad7e),z(0x1,_0x4b5c4b(_0x38617d)),z(0x2,_0x19a8fd),z(0x3,_0xbc5180)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
1
+ const _0x3daf98=_0x32ce;function _0x51c2(){const _0xf19e97=['endnote','getInstance','@univerjs-pro/docs-reference','2175397kMeVnG','includes','671200IcOIaC','decorate','eachPage','numberFormat','getUnit','noteProperties','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','16nDTGPo','doc.command.set-footnote-settings','pageBottom','restart','TRADITIONAL','defineProperty','doc.command.insert-footnote','11703370TgOsby','customMark','1.0.2','settings','setConfig','boolean','string','suppressEndnotes','lists','editOp','headers','properties','body','doc.command.delete-footnote','201mbnoZp','-settings','isNoop','length','1878395Tyrdme','noteSettings','findIndex','continuationSeparator','1051263ZmsQkd','function','doc.command.set-endnote-settings','replaceOp','columnCount','onStarting','_commandService','retain','sectEnd','pluginName','dataStream','syncExecuteCommand','deepClone','diffValue','eachSect','docs-reference.config','position','noteId','drawings','drawingsOrder','ENDNOTE','serialize','removeOp','get','symbol','documentStyle','37424fbPskr','footnote','getSnapshot','startIndex','_configService','6nNdmeK','compose','COMMAND','startNumber','_config','sectionId','keys','insert-','delete','UNIVER_DOCS_REFERENCE_PLUGIN','toPrimitive','isInteger','constructor','insert','object','265078xpuDjf','UNIVER_DOC','segmentId','documentFlavor','type','default','notes','separator','call','doc.command.insert-endnote','customRanges','insertOp','unitId','delete-','sectionBreaks','forEach','tableSource','version','rangeType','disposeWithMe'];_0x51c2=function(){return _0xf19e97;};return _0x51c2();}(function(_0x2f3a92,_0x5dbd94){const _0x26e7e3=_0x32ce,_0x53e712=_0x2f3a92();while(!![]){try{const _0x42d287=-parseInt(_0x26e7e3(0xb3))/0x1+-parseInt(_0x26e7e3(0xcc))/0x2+-parseInt(_0x26e7e3(0xe8))/0x3*(-parseInt(_0x26e7e3(0x9f))/0x4)+parseInt(_0x26e7e3(0xec))/0x5*(-parseInt(_0x26e7e3(0xa4))/0x6)+-parseInt(_0x26e7e3(0xca))/0x7*(parseInt(_0x26e7e3(0xd3))/0x8)+parseInt(_0x26e7e3(0xf0))/0x9+parseInt(_0x26e7e3(0xda))/0xa;if(_0x42d287===_0x5dbd94)break;else _0x53e712['push'](_0x53e712['shift']());}catch(_0x2d5d6b){_0x53e712['push'](_0x53e712['shift']());}}}(_0x51c2,0x4d2c1));function _0x32ce(_0x22fa91,_0x56e465){_0x22fa91=_0x22fa91-0x90;const _0x51c2d4=_0x51c2();let _0x32ce89=_0x51c2d4[_0x22fa91];return _0x32ce89;}import{CommandType as _0x15545a,CustomRangeType as _0x45f257,DependentOn as _0x33e7c2,DocumentFlavor as _0x5c0d70,ICommandService as _0x19a995,IConfigService as _0x2afe4e,IUniverInstanceService as _0xc0ec08,Inject as _0x2dd80e,Injector as _0x348363,JSONX as _0x184147,Plugin as _0x1b8fd4,TextX as _0x4cd513,Tools as _0x4724ad,UniverInstanceType as _0x2699ed,createParagraphId as _0x513e99,createSectionId as _0x51287d,generateRandomId as _0xcecbd4,merge as _0x185aa9,validateDocBodyStructure as _0x14da4d,validateDocumentStructure as _0x2e2495}from'@univerjs/core';import{RichTextEditingMutation as _0x25e0c1,UniverDocsPlugin as _0x1056a6}from'@univerjs/docs';import{UniverLicensePlugin as _0x3f86ff}from'@univerjs-pro/license';function C(_0x451956,_0x111183,_0x309dbc){const _0x1bfb8b=_0x32ce;if(_0x451956[_0x1bfb8b(0x95)]!=null&&!(_0x111183===_0x1bfb8b(0xa0)?[_0x1bfb8b(0xd5),'beneathText']:['docEnd',_0x1bfb8b(0xf8)])['includes'](_0x451956['position'])||_0x451956[_0x1bfb8b(0xd6)]!=null&&!(_0x111183==='footnote'?['continuous',_0x1bfb8b(0x93),_0x1bfb8b(0xce)]:['continuous',_0x1bfb8b(0x93)])[_0x1bfb8b(0xcb)](_0x451956[_0x1bfb8b(0xd6)])||_0x451956[_0x1bfb8b(0xa7)]!=null&&(!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xa7)])||_0x451956['startNumber']<0x1)||_0x1bfb8b(0xf4)in _0x451956&&_0x451956[_0x1bfb8b(0xf4)]!=null&&(_0x111183!==_0x1bfb8b(0xa0)||!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xf4)])||_0x451956[_0x1bfb8b(0xf4)]<0x0||_0x451956[_0x1bfb8b(0xf4)]>0x4)||_0x451956['numberFormat']!=null&&(typeof _0x451956[_0x1bfb8b(0xcf)]!=_0x1bfb8b(0xe0)||_0x451956[_0x1bfb8b(0xcf)][_0x1bfb8b(0xeb)]===0x0))return!0x1;for(let _0x5982e7 of[_0x451956[_0x1bfb8b(0xba)],_0x451956[_0x1bfb8b(0xef)],_0x451956['continuationNotice']])if(_0x5982e7!=null&&(_0x309dbc!=null||_0x14da4d(_0x5982e7)[_0x1bfb8b(0xeb)]>0x0))return!0x1;return!0x0;}function w(_0xb610d4,_0x38a8ac,_0x353c32){const _0x320c4e=_0x32ce;var _0x43bce1,_0x2681f8;if(_0x38a8ac[_0x320c4e(0xdd)]!=null&&!C(_0x38a8ac[_0x320c4e(0xdd)],_0x353c32,_0x38a8ac[_0x320c4e(0xa9)]))return!0x1;let _0x1717c2=((_0x43bce1=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x43bce1=_0x43bce1[_0x320c4e(0xc1)])==null?void 0x0:_0x43bce1[_0x320c4e(0xee)](_0x5e9ed2=>_0x5e9ed2[_0x320c4e(0xa9)]===_0x38a8ac[_0x320c4e(0xa9)]))??-0x1;if(_0x38a8ac['sectionId']!=null&&_0x1717c2<0x0)return!0x1;let _0x18fa85=_0x38a8ac['sectionId']==null?_0xb610d4[_0x320c4e(0xed)]:(_0x2681f8=_0xb610d4['body'])==null||(_0x2681f8=_0x2681f8[_0x320c4e(0xc1)])==null?void 0x0:_0x2681f8[_0x1717c2][_0x320c4e(0xd1)],_0x11a2ff=_0x38a8ac[_0x320c4e(0xdd)]==null?void 0x0:_0x4724ad[_0x320c4e(0x91)](_0x38a8ac[_0x320c4e(0xdd)]),_0x5d7086=_0x38a8ac['sectionId']==null?[_0x320c4e(0xed)]:[_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xd1)],_0x22667f=_0x184147['getInstance'](),_0x372736=null;if(_0x4724ad[_0x320c4e(0x92)](_0x18fa85==null?void 0x0:_0x18fa85[_0x353c32],_0x11a2ff)||(_0x372736=_0x18fa85==null?_0x22667f['insertOp'](_0x5d7086,{[_0x353c32]:_0x11a2ff}):_0x38a8ac['sectionId']!=null&&_0x11a2ff==null&&Object[_0x320c4e(0xaa)](_0x18fa85)['every'](_0x234a95=>_0x234a95===_0x353c32)?_0x22667f[_0x320c4e(0x9b)](_0x5d7086,_0x18fa85):_0x22667f[_0x320c4e(0xf3)]([..._0x5d7086,_0x353c32],_0x18fa85[_0x353c32],_0x11a2ff)),_0x38a8ac[_0x320c4e(0xe1)]!=null){var _0x1869a6;if(_0x353c32!=='endnote'||_0x38a8ac[_0x320c4e(0xa9)]==null||typeof _0x38a8ac[_0x320c4e(0xe1)]!=_0x320c4e(0xdf))return!0x1;let _0x1deb12=(_0x1869a6=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x1869a6=_0x1869a6[_0x320c4e(0xc1)])==null?void 0x0:_0x1869a6[_0x1717c2][_0x320c4e(0xe1)];_0x1deb12!==_0x38a8ac[_0x320c4e(0xe1)]&&(_0x372736=_0x184147['compose'](_0x372736,_0x22667f[_0x320c4e(0xf3)]([_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xe1)],_0x1deb12,_0x38a8ac[_0x320c4e(0xe1)])));}return _0x372736;}function T(_0x40672d,_0x4812b3,_0x44e288){const _0x534a09=_0x32ce;if(!_0x4812b3)return!0x1;let _0x28caea=_0x40672d[_0x534a09(0x9c)](_0xc0ec08)[_0x534a09(0xd0)](_0x4812b3[_0x534a09(0xbf)],_0x2699ed[_0x534a09(0xb4)]),_0x41bcb8=_0x28caea==null?void 0x0:_0x28caea[_0x534a09(0xa1)]();if(!_0x41bcb8||_0x41bcb8['documentStyle'][_0x534a09(0xb6)]!==_0x5c0d70['TRADITIONAL'])return!0x1;let _0x214774=w(_0x41bcb8,_0x4812b3,_0x44e288);return _0x214774===!0x1||_0x184147[_0x534a09(0xea)](_0x214774)?!0x1:!!_0x40672d[_0x534a09(0x9c)](_0x19a995)[_0x534a09(0x90)](_0x25e0c1['id'],{'unitId':_0x4812b3['unitId'],'segmentId':'','historyAction':'set-'+_0x44e288+_0x534a09(0xe9),'actions':_0x214774,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x3daf98(0xd4),'type':_0x15545a['COMMAND'],'handler':(_0x454f7b,_0x4991da)=>T(_0x454f7b,_0x4991da,_0x3daf98(0xa0))},D={'id':_0x3daf98(0xf2),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x5c1a8d,_0x34115a)=>T(_0x5c1a8d,_0x34115a,_0x3daf98(0xc7))};function O(_0x124424,_0x5e258f){const _0xe97b3f=_0x3daf98;return(_0x124424==null?void 0x0:_0x124424['documentStyle'][_0xe97b3f(0xb6)])===_0x5c0d70[_0xe97b3f(0xd7)]&&!!_0x124424[_0xe97b3f(0xe6)]&&Number[_0xe97b3f(0xaf)](_0x5e258f)&&_0x5e258f>=0x0&&_0x5e258f<_0x124424[_0xe97b3f(0xe6)][_0xe97b3f(0xfa)][_0xe97b3f(0xeb)]-0x1;}function k(_0x1e4038,_0x1219f6,_0x45582f){const _0x259e8d=_0x3daf98;var _0x6b0f10,_0x3e73cb;if(_0x1219f6[_0x259e8d(0xdd)]===void 0x0&&_0x1219f6[_0x259e8d(0xe1)]===void 0x0)return null;let _0x4b160d=_0x1219f6[_0x259e8d(0xa9)]==null?(_0x6b0f10=_0x1e4038[_0x259e8d(0xed)])==null?void 0x0:_0x6b0f10[_0x45582f]:(_0x3e73cb=_0x1e4038[_0x259e8d(0xe6)])==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xc1)])==null||(_0x3e73cb=_0x3e73cb['find'](_0x21c732=>_0x21c732[_0x259e8d(0xa9)]===_0x1219f6[_0x259e8d(0xa9)]))==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xd1)])==null?void 0x0:_0x3e73cb[_0x45582f];return w(_0x1e4038,{'settings':_0x1219f6[_0x259e8d(0xdd)]===void 0x0?_0x4b160d??null:_0x1219f6[_0x259e8d(0xdd)],'sectionId':_0x1219f6[_0x259e8d(0xa9)],'suppressEndnotes':_0x1219f6[_0x259e8d(0xe1)]},_0x45582f);}function A(_0x336695,_0x5eecd2,_0x599fb5){const _0x3640c1=_0x3daf98;var _0x494d8b,_0x2c4e48,_0x4a9a09;if(!_0x5eecd2||_0x5eecd2[_0x3640c1(0xb5)])return!0x1;let _0x1ae203=_0x336695['get'](_0xc0ec08)[_0x3640c1(0xd0)](_0x5eecd2[_0x3640c1(0xbf)],_0x2699ed['UNIVER_DOC']),_0x69c894=_0x1ae203==null?void 0x0:_0x1ae203[_0x3640c1(0xa1)](),{offset:_0x1cb5c0}=_0x5eecd2;if(!O(_0x69c894,_0x1cb5c0))return!0x1;let _0x4aa026=k(_0x69c894,_0x5eecd2,_0x599fb5);if(_0x4aa026===!0x1)return!0x1;let _0x4952e0=_0x5eecd2[_0x3640c1(0x96)]??_0xcecbd4(0xc);if((_0x494d8b=_0x69c894[_0x3640c1(0xb9)])!=null&&_0x494d8b[_0x4952e0]||(_0x2c4e48=_0x69c894[_0x3640c1(0xe4)])!=null&&_0x2c4e48[_0x4952e0]||(_0x4a9a09=_0x69c894['footers'])!=null&&_0x4a9a09[_0x4952e0])return!0x1;let _0xdcd31e=_0x4724ad[_0x3640c1(0x91)]({'type':_0x599fb5,'noteId':_0x4952e0,'body':_0x5eecd2[_0x3640c1(0xe6)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x513e99(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x51287d(new Set()),'startIndex':0x1}]},'customMark':_0x5eecd2[_0x3640c1(0xdb)],'referenceTextStyle':_0x5eecd2['referenceTextStyle'],'tableSource':_0x5eecd2[_0x3640c1(0xc3)],'drawings':_0x5eecd2[_0x3640c1(0x97)],'drawingsOrder':_0x5eecd2[_0x3640c1(0x98)],'lists':_0x5eecd2[_0x3640c1(0xe2)]});if(_0x2e2495({'notes':{[_0x4952e0]:_0xdcd31e}})['length']>0x0)return!0x1;let _0x4d1214=new _0x4cd513();_0x1cb5c0>0x0&&_0x4d1214[_0x3640c1(0xf7)](_0x1cb5c0),_0x4d1214[_0x3640c1(0xb1)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x599fb5===_0x3640c1(0xa0)?_0x45f257['FOOTNOTE']:_0x45f257[_0x3640c1(0x99)],'rangeId':_0xcecbd4(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4952e0}}]});let _0x2cf56a=_0x184147[_0x3640c1(0xc8)](),_0x4261f4=_0x69c894[_0x3640c1(0xb9)]==null?_0x2cf56a[_0x3640c1(0xbe)](['notes'],{[_0x4952e0]:_0xdcd31e}):_0x2cf56a['insertOp']([_0x3640c1(0xb9),_0x4952e0],_0xdcd31e);return!!_0x336695[_0x3640c1(0x9c)](_0x19a995)['syncExecuteCommand'](_0x25e0c1['id'],{'unitId':_0x5eecd2['unitId'],'segmentId':'','historyAction':_0x3640c1(0xab)+_0x599fb5,'actions':_0x184147[_0x3640c1(0xa5)](_0x184147['compose'](_0x4aa026,_0x4261f4),_0x2cf56a[_0x3640c1(0xe3)](_0x4d1214[_0x3640c1(0x9a)](),[_0x3640c1(0xe6)])),'textRanges':[{'segmentId':_0x4952e0,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x5a3ed7,_0xce13f7,_0x101a07){const _0x1bce43=_0x3daf98;var _0x591bf9,_0x227140;if(!_0xce13f7)return!0x1;let _0x1b5a3f=_0x5a3ed7['get'](_0xc0ec08)[_0x1bce43(0xd0)](_0xce13f7['unitId'],_0x2699ed[_0x1bce43(0xb4)]),_0x3b79c8=_0x1b5a3f==null?void 0x0:_0x1b5a3f[_0x1bce43(0xa1)](),_0x1db5e0=_0x3b79c8==null||(_0x591bf9=_0x3b79c8[_0x1bce43(0xb9)])==null?void 0x0:_0x591bf9[_0xce13f7[_0x1bce43(0x96)]],_0x1f4219=_0x3b79c8==null||(_0x227140=_0x3b79c8[_0x1bce43(0xe6)])==null||(_0x227140=_0x227140[_0x1bce43(0xbd)])==null?void 0x0:_0x227140['find'](_0x1dacc8=>{const _0x16c580=_0x1bce43;var _0x32052f;return(_0x1dacc8['rangeType']===_0x45f257['FOOTNOTE']||_0x1dacc8[_0x16c580(0xc5)]===_0x45f257[_0x16c580(0x99)])&&((_0x32052f=_0x1dacc8[_0x16c580(0xe5)])==null?void 0x0:_0x32052f['noteId'])===_0xce13f7[_0x16c580(0x96)];});if(!_0x3b79c8||_0x3b79c8[_0x1bce43(0x9e)][_0x1bce43(0xb6)]!==_0x5c0d70[_0x1bce43(0xd7)]||!_0x1db5e0||_0x1db5e0[_0x1bce43(0xb7)]!==_0x101a07||!_0x1f4219)return!0x1;let _0x4a65bc=new _0x4cd513();_0x1f4219[_0x1bce43(0xa2)]>0x0&&_0x4a65bc[_0x1bce43(0xf7)](_0x1f4219[_0x1bce43(0xa2)]),_0x4a65bc[_0x1bce43(0xac)](0x1);let _0x3da97e=_0x184147[_0x1bce43(0xc8)]();return!!_0x5a3ed7[_0x1bce43(0x9c)](_0x19a995)[_0x1bce43(0x90)](_0x25e0c1['id'],{'unitId':_0xce13f7[_0x1bce43(0xbf)],'segmentId':'','historyAction':_0x1bce43(0xc0)+_0x101a07,'actions':_0x184147['compose'](_0x3da97e[_0x1bce43(0xe3)](_0x4a65bc['serialize'](),[_0x1bce43(0xe6)]),_0x3da97e[_0x1bce43(0x9b)](['notes',_0xce13f7[_0x1bce43(0x96)]],_0x1db5e0)),'textRanges':[{'startOffset':_0x1f4219[_0x1bce43(0xa2)],'endOffset':_0x1f4219[_0x1bce43(0xa2)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x3daf98(0xd9),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0xfa3d92,_0x3be213)=>A(_0xfa3d92,_0x3be213,_0x3daf98(0xa0))},N={'id':_0x3daf98(0xe7),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x12ceb6,_0x361470)=>j(_0x12ceb6,_0x361470,_0x3daf98(0xa0))},P={'id':_0x3daf98(0xbc),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x2878be,_0xdb2cc)=>A(_0x2878be,_0xdb2cc,'endnote')},F={'id':'doc.command.delete-endnote','type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x46e3ec,_0x28069a)=>j(_0x46e3ec,_0x28069a,'endnote')};var I=_0x3daf98(0xc9),L=_0x3daf98(0xdc);const R={};function z(_0x3fd14b,_0x3e0a16){return function(_0x482c38,_0x471061){_0x3e0a16(_0x482c38,_0x471061,_0x3fd14b);};}function B(_0x2116b0,_0x41c026,_0x44cd19,_0x358839){const _0x4326c1=_0x3daf98;var _0x18a35f=arguments['length'],_0x4a10a1=_0x18a35f<0x3?_0x41c026:_0x358839===null?_0x358839=Object['getOwnPropertyDescriptor'](_0x41c026,_0x44cd19):_0x358839,_0x25ee78;if(typeof Reflect=='object'&&typeof Reflect[_0x4326c1(0xcd)]==_0x4326c1(0xf1))_0x4a10a1=Reflect[_0x4326c1(0xcd)](_0x2116b0,_0x41c026,_0x44cd19,_0x358839);else{for(var _0x2ea153=_0x2116b0[_0x4326c1(0xeb)]-0x1;_0x2ea153>=0x0;_0x2ea153--)(_0x25ee78=_0x2116b0[_0x2ea153])&&(_0x4a10a1=(_0x18a35f<0x3?_0x25ee78(_0x4a10a1):_0x18a35f>0x3?_0x25ee78(_0x41c026,_0x44cd19,_0x4a10a1):_0x25ee78(_0x41c026,_0x44cd19))||_0x4a10a1);}return _0x18a35f>0x3&&_0x4a10a1&&Object[_0x4326c1(0xd8)](_0x41c026,_0x44cd19,_0x4a10a1),_0x4a10a1;}function V(_0x391a59){'@babel/helpers - typeof';const _0x4d5e3a=_0x3daf98;return V=typeof Symbol==_0x4d5e3a(0xf1)&&typeof Symbol['iterator']=='symbol'?function(_0x4c20e3){return typeof _0x4c20e3;}:function(_0x54a9a3){const _0x464cb5=_0x4d5e3a;return _0x54a9a3&&typeof Symbol==_0x464cb5(0xf1)&&_0x54a9a3[_0x464cb5(0xb0)]===Symbol&&_0x54a9a3!==Symbol['prototype']?_0x464cb5(0x9d):typeof _0x54a9a3;},V(_0x391a59);}function H(_0x935248,_0x237de1){const _0x2b13b7=_0x3daf98;if(V(_0x935248)!=_0x2b13b7(0xb2)||!_0x935248)return _0x935248;var _0x3caecc=_0x935248[Symbol[_0x2b13b7(0xae)]];if(_0x3caecc!==void 0x0){var _0x33178d=_0x3caecc[_0x2b13b7(0xbb)](_0x935248,_0x237de1||_0x2b13b7(0xb8));if(V(_0x33178d)!=_0x2b13b7(0xb2))return _0x33178d;throw TypeError(_0x2b13b7(0xd2));}return(_0x237de1===_0x2b13b7(0xe0)?String:Number)(_0x935248);}function U(_0xc87a6b){var _0x4e454d=H(_0xc87a6b,'string');return V(_0x4e454d)=='symbol'?_0x4e454d:_0x4e454d+'';}function W(_0x199859,_0x525e94,_0x3f93cb){return(_0x525e94=U(_0x525e94))in _0x199859?Object['defineProperty'](_0x199859,_0x525e94,{'value':_0x3f93cb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x199859[_0x525e94]=_0x3f93cb,_0x199859;}let G=class extends _0x1b8fd4{constructor(_0xe796b6=R,_0x307d65,_0x295269,_0x3596e3){const _0x2925a6=_0x3daf98;super(),this[_0x2925a6(0xa8)]=_0xe796b6,this['_injector']=_0x307d65,this['_configService']=_0x295269,this[_0x2925a6(0xf6)]=_0x3596e3;let {..._0x38fc00}=_0x185aa9({},R,this[_0x2925a6(0xa8)]);this[_0x2925a6(0xa3)][_0x2925a6(0xde)](_0x2925a6(0x94),_0x38fc00);}[_0x3daf98(0xf5)](){const _0x1ed817=_0x3daf98;[M,N,E,P,F,D][_0x1ed817(0xc2)](_0x2e4289=>this[_0x1ed817(0xc6)](this[_0x1ed817(0xf6)]['registerCommand'](_0x2e4289)));}};W(G,_0x3daf98(0xf9),_0x3daf98(0xad)),W(G,'packageName',I),W(G,_0x3daf98(0xc4),L),W(G,'type',_0x2699ed[_0x3daf98(0xb4)]),G=B([_0x33e7c2(_0x3f86ff,_0x1056a6),z(0x1,_0x2dd80e(_0x348363)),z(0x2,_0x2afe4e),z(0x3,_0x19a995)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x263322=_0x2d32;(function(_0x5a0e1f,_0x306aee){const _0xcbc016=_0x2d32,_0x2c2627=_0x5a0e1f();while(!![]){try{const _0x44f85d=parseInt(_0xcbc016(0x1e1))/0x1*(-parseInt(_0xcbc016(0x1e0))/0x2)+parseInt(_0xcbc016(0x1e5))/0x3+parseInt(_0xcbc016(0x1c3))/0x4+-parseInt(_0xcbc016(0x1da))/0x5*(parseInt(_0xcbc016(0x1db))/0x6)+parseInt(_0xcbc016(0x1d4))/0x7*(-parseInt(_0xcbc016(0x1dc))/0x8)+parseInt(_0xcbc016(0x1de))/0x9+parseInt(_0xcbc016(0x1bf))/0xa;if(_0x44f85d===_0x306aee)break;else _0x2c2627['push'](_0x2c2627['shift']());}catch(_0x28d6da){_0x2c2627['push'](_0x2c2627['shift']());}}}(_0xf518,0x9f41e));function _0x2d32(_0x48ecec,_0x47d6af){_0x48ecec=_0x48ecec-0x1ba;const _0xf518ec=_0xf518();let _0x2d32ef=_0xf518ec[_0x48ecec];return _0x2d32ef;}import{DeleteDocumentEndnoteCommand as _0x3c2ec0,DeleteDocumentFootnoteCommand as _0x1329e2,InsertDocumentEndnoteCommand as _0x4c5569,InsertDocumentFootnoteCommand as _0x4d59f8,SetDocumentEndnoteSettingsCommand as _0x49823,SetDocumentFootnoteSettingsCommand as _0x2e9c16}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x3640e8,ICommandService as _0x3171c9,Tools as _0x5b7f9e,generateRandomId as _0x4e0992}from'@univerjs/core';import{FDocument as _0x33ffe7}from'@univerjs/docs/facade';var d=class extends _0x33ffe7{[_0x263322(0x1c9)](_0x122038,_0x4db28b={}){const _0xa895db=_0x263322;let _0x24bdde=_0x4e0992(0xc);return this[_0xa895db(0x1d3)]['get'](_0x3171c9)[_0xa895db(0x1ba)](_0x4d59f8['id'],{..._0x4db28b,'unitId':this['id'],'offset':_0x122038,'noteId':_0x24bdde})?_0x24bdde:null;}[_0x263322(0x1bb)](){const _0x29dfcd=_0x263322;var _0x2fdd17;let _0x4a8db3=this[_0x29dfcd(0x1bc)]()[_0x29dfcd(0x1be)]();return(((_0x2fdd17=_0x4a8db3['body'])==null?void 0x0:_0x2fdd17[_0x29dfcd(0x1cd)])??[])[_0x29dfcd(0x1df)](_0x1ac66e=>_0x1ac66e['rangeType']===_0x3640e8[_0x29dfcd(0x1c7)])[_0x29dfcd(0x1c8)]((_0x1519ea,_0x405fe1)=>_0x1519ea[_0x29dfcd(0x1c4)]-_0x405fe1[_0x29dfcd(0x1c4)])[_0x29dfcd(0x1d0)](_0x2dcf53=>{const _0x1a4108=_0x29dfcd;var _0x3e3f0c,_0x4c5e8e;let _0x346e24=(_0x3e3f0c=_0x2dcf53[_0x1a4108(0x1cb)])==null?void 0x0:_0x3e3f0c[_0x1a4108(0x1d9)],_0x9fb73f=typeof _0x346e24==_0x1a4108(0x1d2)?(_0x4c5e8e=_0x4a8db3[_0x1a4108(0x1c2)])==null?void 0x0:_0x4c5e8e[_0x346e24]:void 0x0;return _0x9fb73f?[_0x5b7f9e['deepClone'](_0x9fb73f)]:[];});}['deleteFootnote'](_0x31fb0b){const _0x565544=_0x263322;return this[_0x565544(0x1d3)]['get'](_0x3171c9)[_0x565544(0x1ba)](_0x1329e2['id'],{'unitId':this['id'],'noteId':_0x31fb0b});}['getFootnoteSettings'](_0x26e97d){const _0x40c849=_0x263322;var _0x2d9444,_0x2f0787;let _0x4a9b5c=this['getDocumentDataModel']()[_0x40c849(0x1be)](),_0x3503ef=_0x26e97d==null?(_0x2d9444=_0x4a9b5c[_0x40c849(0x1dd)])==null?void 0x0:_0x2d9444[_0x40c849(0x1d7)]:(_0x2f0787=_0x4a9b5c[_0x40c849(0x1c6)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ca)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1c0)](_0x423277=>_0x423277[_0x40c849(0x1c5)]===_0x26e97d))==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ce)])==null?void 0x0:_0x2f0787[_0x40c849(0x1d7)];return _0x3503ef==null?void 0x0:_0x5b7f9e[_0x40c849(0x1d6)](_0x3503ef);}[_0x263322(0x1d8)](_0x5349b7,_0x51ee48){const _0x1a9e80=_0x263322;return this[_0x1a9e80(0x1d3)][_0x1a9e80(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x2e9c16['id'],{'unitId':this['id'],'settings':_0x5349b7,'sectionId':_0x51ee48});}['insertEndnote'](_0x3bcdf9,_0x4f3508={}){const _0x1c1e00=_0x263322;let _0x3dbd72=_0x4e0992(0xc);return this[_0x1c1e00(0x1d3)][_0x1c1e00(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x4c5569['id'],{..._0x4f3508,'unitId':this['id'],'offset':_0x3bcdf9,'noteId':_0x3dbd72})?_0x3dbd72:null;}[_0x263322(0x1e3)](){const _0x1ec1ca=_0x263322;var _0x404c74;let _0x988a2b=this[_0x1ec1ca(0x1bc)]()['getSnapshot']();return(((_0x404c74=_0x988a2b['body'])==null?void 0x0:_0x404c74[_0x1ec1ca(0x1cd)])??[])[_0x1ec1ca(0x1df)](_0x42b763=>_0x42b763[_0x1ec1ca(0x1d1)]===_0x3640e8[_0x1ec1ca(0x1cc)])['sort']((_0x18c162,_0x58c500)=>_0x18c162[_0x1ec1ca(0x1c4)]-_0x58c500[_0x1ec1ca(0x1c4)])[_0x1ec1ca(0x1d0)](_0x2c2e6f=>{const _0x47a754=_0x1ec1ca;var _0x238a9b,_0x35f867;let _0x204d90=(_0x238a9b=_0x2c2e6f[_0x47a754(0x1cb)])==null?void 0x0:_0x238a9b[_0x47a754(0x1d9)],_0x29886e=typeof _0x204d90=='string'?(_0x35f867=_0x988a2b[_0x47a754(0x1c2)])==null?void 0x0:_0x35f867[_0x204d90]:void 0x0;return _0x29886e?[_0x5b7f9e[_0x47a754(0x1d6)](_0x29886e)]:[];});}[_0x263322(0x1c1)](_0x3d539b){const _0xa90fe8=_0x263322;return this[_0xa90fe8(0x1d3)][_0xa90fe8(0x1bd)](_0x3171c9)[_0xa90fe8(0x1ba)](_0x3c2ec0['id'],{'unitId':this['id'],'noteId':_0x3d539b});}[_0x263322(0x1cf)](_0x1a08f7){const _0x1e5a83=_0x263322;var _0x4d55d3,_0x4da4f7;let _0x174490=this[_0x1e5a83(0x1bc)]()['getSnapshot'](),_0xd8fed4=_0x1a08f7==null?(_0x4d55d3=_0x174490[_0x1e5a83(0x1dd)])==null?void 0x0:_0x4d55d3['endnote']:(_0x4da4f7=_0x174490[_0x1e5a83(0x1c6)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ca)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1c0)](_0x545a43=>_0x545a43['sectionId']===_0x1a08f7))==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ce)])==null?void 0x0:_0x4da4f7[_0x1e5a83(0x1e2)];return _0xd8fed4==null?void 0x0:_0x5b7f9e[_0x1e5a83(0x1d6)](_0xd8fed4);}[_0x263322(0x1e4)](_0xac9a9f,_0x2b5a4a){const _0x290054=_0x263322;return this['_injector'][_0x290054(0x1bd)](_0x3171c9)[_0x290054(0x1ba)](_0x49823['id'],{'unitId':this['id'],'settings':_0xac9a9f,'sectionId':_0x2b5a4a});}};function _0xf518(){const _0x1946dc=['extend','deepClone','footnote','setFootnoteSettings','noteId','155YVhGaM','128070FhvdmU','8IxeqTR','noteSettings','8118855jQaKQs','filter','2wJYqhk','820411XtaUWd','endnote','getEndnotes','setEndnoteSettings','802080Vithbv','syncExecuteCommand','getFootnotes','getDocumentDataModel','get','getSnapshot','6941650ytOraT','find','deleteEndnote','notes','3233548BRETRR','startIndex','sectionId','body','FOOTNOTE','sort','insertFootnote','sectionBreaks','properties','ENDNOTE','customRanges','noteProperties','getEndnoteSettings','flatMap','rangeType','string','_injector','3763081yfqUzD'];_0xf518=function(){return _0x1946dc;};return _0xf518();}_0x33ffe7[_0x263322(0x1d5)](d);export{};
1
+ function _0x5c07(_0x173a84,_0x46cc7d){_0x173a84=_0x173a84-0x10a;const _0x165d51=_0x165d();let _0x5c075d=_0x165d51[_0x173a84];return _0x5c075d;}const _0x3e9fe7=_0x5c07;function _0x165d(){const _0x360d15=['insertFootnote','footnote','3288123AfRmYg','find','body','notes','noteSettings','noteProperties','1271565IzOIfL','endnote','32eaBhba','get','startIndex','setEndnoteSettings','_injector','flatMap','deleteFootnote','609061HBuNAw','40WyqReJ','syncExecuteCommand','string','534PTBJpA','sectionBreaks','185601YvuqDZ','sort','customRanges','rangeType','noteId','17857gnzoaf','properties','1711765SaVHSN','getSnapshot','988566XQqKyg','8mUXjAU','deleteEndnote','insertEndnote','deepClone','getEndnoteSettings','getFootnoteSettings','ENDNOTE','FOOTNOTE','setFootnoteSettings'];_0x165d=function(){return _0x360d15;};return _0x165d();}(function(_0x17f0d8,_0xce750b){const _0x59a14e=_0x5c07,_0x5b06ce=_0x17f0d8();while(!![]){try{const _0x4a16bd=-parseInt(_0x59a14e(0x11d))/0x1+-parseInt(_0x59a14e(0x12c))/0x2+-parseInt(_0x59a14e(0x123))/0x3*(-parseInt(_0x59a14e(0x116))/0x4)+-parseInt(_0x59a14e(0x114))/0x5+parseInt(_0x59a14e(0x121))/0x6*(parseInt(_0x59a14e(0x128))/0x7)+parseInt(_0x59a14e(0x12d))/0x8*(parseInt(_0x59a14e(0x10e))/0x9)+parseInt(_0x59a14e(0x11e))/0xa*(parseInt(_0x59a14e(0x12a))/0xb);if(_0x4a16bd===_0xce750b)break;else _0x5b06ce['push'](_0x5b06ce['shift']());}catch(_0x1eb96d){_0x5b06ce['push'](_0x5b06ce['shift']());}}}(_0x165d,0x55f7d));import{DeleteDocumentEndnoteCommand as _0x20f549,DeleteDocumentFootnoteCommand as _0x414b2,InsertDocumentEndnoteCommand as _0x57be98,InsertDocumentFootnoteCommand as _0xcd3aa8,SetDocumentEndnoteSettingsCommand as _0x2d211c,SetDocumentFootnoteSettingsCommand as _0x2cf00a}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x20f530,ICommandService as _0x2986de,Tools as _0x4f4c96,generateRandomId as _0x2083af}from'@univerjs/core';import{FDocument as _0x3f6f3f}from'@univerjs/docs/facade';var d=class extends _0x3f6f3f{[_0x3e9fe7(0x10c)](_0x4008d0,_0x2a49e9={}){const _0x4a35fe=_0x3e9fe7;let _0x15320b=_0x2083af(0xc);return this['_injector'][_0x4a35fe(0x117)](_0x2986de)[_0x4a35fe(0x11f)](_0xcd3aa8['id'],{..._0x2a49e9,'unitId':this['id'],'offset':_0x4008d0,'noteId':_0x15320b})?_0x15320b:null;}['getFootnotes'](){const _0x24432d=_0x3e9fe7;var _0x192a7e;let _0x13a822=this['getDocumentDataModel']()['getSnapshot']();return(((_0x192a7e=_0x13a822[_0x24432d(0x110)])==null?void 0x0:_0x192a7e[_0x24432d(0x125)])??[])['filter'](_0x3f5382=>_0x3f5382[_0x24432d(0x126)]===_0x20f530[_0x24432d(0x10a)])[_0x24432d(0x124)]((_0xaafa50,_0x496337)=>_0xaafa50[_0x24432d(0x118)]-_0x496337[_0x24432d(0x118)])[_0x24432d(0x11b)](_0x3a66a9=>{const _0x411af5=_0x24432d;var _0x2a027b,_0x5c779c;let _0xe16551=(_0x2a027b=_0x3a66a9[_0x411af5(0x129)])==null?void 0x0:_0x2a027b[_0x411af5(0x127)],_0xae4908=typeof _0xe16551==_0x411af5(0x120)?(_0x5c779c=_0x13a822['notes'])==null?void 0x0:_0x5c779c[_0xe16551]:void 0x0;return _0xae4908?[_0x4f4c96[_0x411af5(0x130)](_0xae4908)]:[];});}[_0x3e9fe7(0x11c)](_0x3aaacb){const _0x1e6a83=_0x3e9fe7;return this[_0x1e6a83(0x11a)][_0x1e6a83(0x117)](_0x2986de)[_0x1e6a83(0x11f)](_0x414b2['id'],{'unitId':this['id'],'noteId':_0x3aaacb});}[_0x3e9fe7(0x132)](_0x1a55b4){const _0x47789a=_0x3e9fe7;var _0x2bbc34,_0x15ef65;let _0x240be5=this['getDocumentDataModel']()[_0x47789a(0x12b)](),_0x164671=_0x1a55b4==null?(_0x2bbc34=_0x240be5[_0x47789a(0x112)])==null?void 0x0:_0x2bbc34[_0x47789a(0x10d)]:(_0x15ef65=_0x240be5[_0x47789a(0x110)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x122)])==null||(_0x15ef65=_0x15ef65[_0x47789a(0x10f)](_0x52a240=>_0x52a240['sectionId']===_0x1a55b4))==null||(_0x15ef65=_0x15ef65['noteProperties'])==null?void 0x0:_0x15ef65['footnote'];return _0x164671==null?void 0x0:_0x4f4c96[_0x47789a(0x130)](_0x164671);}[_0x3e9fe7(0x10b)](_0x20a59f,_0x3be077){const _0x3a04c4=_0x3e9fe7;return this['_injector'][_0x3a04c4(0x117)](_0x2986de)[_0x3a04c4(0x11f)](_0x2cf00a['id'],{'unitId':this['id'],'settings':_0x20a59f,'sectionId':_0x3be077});}[_0x3e9fe7(0x12f)](_0x27b8b2,_0x2f3224={}){const _0x44036c=_0x3e9fe7;let _0xb67386=_0x2083af(0xc);return this[_0x44036c(0x11a)][_0x44036c(0x117)](_0x2986de)[_0x44036c(0x11f)](_0x57be98['id'],{..._0x2f3224,'unitId':this['id'],'offset':_0x27b8b2,'noteId':_0xb67386})?_0xb67386:null;}['getEndnotes'](){const _0x1d6700=_0x3e9fe7;var _0x49e0d3;let _0x361372=this['getDocumentDataModel']()[_0x1d6700(0x12b)]();return(((_0x49e0d3=_0x361372[_0x1d6700(0x110)])==null?void 0x0:_0x49e0d3['customRanges'])??[])['filter'](_0x489f4c=>_0x489f4c[_0x1d6700(0x126)]===_0x20f530[_0x1d6700(0x133)])[_0x1d6700(0x124)]((_0x14d5c3,_0x212bba)=>_0x14d5c3[_0x1d6700(0x118)]-_0x212bba[_0x1d6700(0x118)])[_0x1d6700(0x11b)](_0x2d0abd=>{const _0x4acc38=_0x1d6700;var _0x2b0562,_0x32540f;let _0x460b90=(_0x2b0562=_0x2d0abd['properties'])==null?void 0x0:_0x2b0562[_0x4acc38(0x127)],_0x69f695=typeof _0x460b90==_0x4acc38(0x120)?(_0x32540f=_0x361372[_0x4acc38(0x111)])==null?void 0x0:_0x32540f[_0x460b90]:void 0x0;return _0x69f695?[_0x4f4c96['deepClone'](_0x69f695)]:[];});}[_0x3e9fe7(0x12e)](_0x136e25){const _0x10119d=_0x3e9fe7;return this[_0x10119d(0x11a)]['get'](_0x2986de)[_0x10119d(0x11f)](_0x20f549['id'],{'unitId':this['id'],'noteId':_0x136e25});}[_0x3e9fe7(0x131)](_0x3ba12f){const _0x9b75ca=_0x3e9fe7;var _0x498f9a,_0x56a58d;let _0x1d09c5=this['getDocumentDataModel']()[_0x9b75ca(0x12b)](),_0x2cc1b5=_0x3ba12f==null?(_0x498f9a=_0x1d09c5[_0x9b75ca(0x112)])==null?void 0x0:_0x498f9a[_0x9b75ca(0x115)]:(_0x56a58d=_0x1d09c5[_0x9b75ca(0x110)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x122)])==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x10f)](_0x1edeb0=>_0x1edeb0['sectionId']===_0x3ba12f))==null||(_0x56a58d=_0x56a58d[_0x9b75ca(0x113)])==null?void 0x0:_0x56a58d[_0x9b75ca(0x115)];return _0x2cc1b5==null?void 0x0:_0x4f4c96[_0x9b75ca(0x130)](_0x2cc1b5);}[_0x3e9fe7(0x119)](_0x195d73,_0x1f6786){const _0x2bb0eb=_0x3e9fe7;return this['_injector'][_0x2bb0eb(0x117)](_0x2986de)[_0x2bb0eb(0x11f)](_0x2d211c['id'],{'unitId':this['id'],'settings':_0x195d73,'sectionId':_0x1f6786});}};_0x3f6f3f['extend'](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4600df=_0x3539;(function(_0x413eed,_0x5ab849){const _0x341caf=_0x3539,_0x298b0a=_0x413eed();while(!![]){try{const _0x13434b=parseInt(_0x341caf(0x20f))/0x1*(-parseInt(_0x341caf(0x208))/0x2)+-parseInt(_0x341caf(0x1cd))/0x3*(-parseInt(_0x341caf(0x1c5))/0x4)+-parseInt(_0x341caf(0x1f7))/0x5+parseInt(_0x341caf(0x1d9))/0x6*(-parseInt(_0x341caf(0x1c9))/0x7)+parseInt(_0x341caf(0x1f0))/0x8+parseInt(_0x341caf(0x1c2))/0x9*(parseInt(_0x341caf(0x216))/0xa)+parseInt(_0x341caf(0x1ec))/0xb*(parseInt(_0x341caf(0x202))/0xc);if(_0x13434b===_0x5ab849)break;else _0x298b0a['push'](_0x298b0a['shift']());}catch(_0x4ddd19){_0x298b0a['push'](_0x298b0a['shift']());}}}(_0x4763,0x67ea3));import{CommandType as _0x2beccf,CustomRangeType as _0x1f509c,DependentOn as _0x126d9d,DocumentFlavor as _0x25b4a1,ICommandService as _0xbc5180,IConfigService as _0x19a8fd,IUniverInstanceService as _0x28d7f0,Inject as _0x4b5c4b,Injector as _0x38617d,JSONX as _0x4f86a5,Plugin as _0x26c983,TextX as _0x7c13a3,Tools as _0x1ea835,UniverInstanceType as _0x45c27a,createParagraphId as _0x57afb1,createSectionId as _0x4111f5,generateRandomId as _0x31c553,merge as _0x50c30f,validateDocBodyStructure as _0x35465e,validateDocumentStructure as _0x3dd22b}from'@univerjs/core';import{RichTextEditingMutation as _0x2b017e,UniverDocsPlugin as _0x1bad7e}from'@univerjs/docs';import{UniverLicensePlugin as _0x1111a2}from'@univerjs-pro/license';function C(_0x33e3bd,_0x32f7ab,_0x3849bc){const _0x905eb0=_0x3539;if(_0x33e3bd[_0x905eb0(0x1ff)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x20a),_0x905eb0(0x1ae)]:[_0x905eb0(0x21a),_0x905eb0(0x1fd)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ff)])||_0x33e3bd[_0x905eb0(0x1ab)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x1e7),_0x905eb0(0x1f5),_0x905eb0(0x210)]:[_0x905eb0(0x1e7),_0x905eb0(0x1f5)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ab)])||_0x33e3bd[_0x905eb0(0x1cb)]!=null&&(!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1cb)])||_0x33e3bd[_0x905eb0(0x1cb)]<0x1)||_0x905eb0(0x1bc)in _0x33e3bd&&_0x33e3bd[_0x905eb0(0x1bc)]!=null&&(_0x32f7ab!=='footnote'||!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1bc)])||_0x33e3bd[_0x905eb0(0x1bc)]<0x0||_0x33e3bd['columnCount']>0x4)||_0x33e3bd[_0x905eb0(0x218)]!=null&&(typeof _0x33e3bd['numberFormat']!='string'||_0x33e3bd[_0x905eb0(0x218)]['length']===0x0))return!0x1;for(let _0x328c56 of[_0x33e3bd[_0x905eb0(0x1b1)],_0x33e3bd[_0x905eb0(0x1f8)],_0x33e3bd['continuationNotice']])if(_0x328c56!=null&&(_0x3849bc!=null||_0x35465e(_0x328c56)[_0x905eb0(0x1e9)]>0x0))return!0x1;return!0x0;}function w(_0x14e80d,_0x5ba25c,_0x55fdfe){const _0x55ce38=_0x3539;var _0x5b4fa3,_0x1e3646;if(_0x5ba25c[_0x55ce38(0x1ba)]!=null&&!C(_0x5ba25c[_0x55ce38(0x1ba)],_0x55fdfe,_0x5ba25c[_0x55ce38(0x1af)]))return!0x1;let _0x10c278=((_0x5b4fa3=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x5b4fa3=_0x5b4fa3[_0x55ce38(0x1bd)])==null?void 0x0:_0x5b4fa3[_0x55ce38(0x1c6)](_0x119f1e=>_0x119f1e[_0x55ce38(0x1af)]===_0x5ba25c[_0x55ce38(0x1af)]))??-0x1;if(_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x10c278<0x0)return!0x1;let _0x4e55ea=_0x5ba25c[_0x55ce38(0x1af)]==null?_0x14e80d[_0x55ce38(0x1dc)]:(_0x1e3646=_0x14e80d['body'])==null||(_0x1e3646=_0x1e3646[_0x55ce38(0x1bd)])==null?void 0x0:_0x1e3646[_0x10c278]['noteProperties'],_0x5eee19=_0x5ba25c[_0x55ce38(0x1ba)]==null?void 0x0:_0x1ea835['deepClone'](_0x5ba25c['settings']),_0x3e6177=_0x5ba25c[_0x55ce38(0x1af)]==null?['noteSettings']:['body',_0x55ce38(0x1bd),_0x10c278,_0x55ce38(0x1cf)],_0x49ce7a=_0x4f86a5[_0x55ce38(0x1f9)](),_0x37e190=null;if(_0x1ea835['diffValue'](_0x4e55ea==null?void 0x0:_0x4e55ea[_0x55fdfe],_0x5eee19)||(_0x37e190=_0x4e55ea==null?_0x49ce7a[_0x55ce38(0x1d1)](_0x3e6177,{[_0x55fdfe]:_0x5eee19}):_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x5eee19==null&&Object[_0x55ce38(0x215)](_0x4e55ea)[_0x55ce38(0x205)](_0x27fe98=>_0x27fe98===_0x55fdfe)?_0x49ce7a[_0x55ce38(0x1e2)](_0x3e6177,_0x4e55ea):_0x49ce7a[_0x55ce38(0x1e4)]([..._0x3e6177,_0x55fdfe],_0x4e55ea[_0x55fdfe],_0x5eee19)),_0x5ba25c['suppressEndnotes']!=null){var _0x26653;if(_0x55fdfe!==_0x55ce38(0x1f4)||_0x5ba25c['sectionId']==null||typeof _0x5ba25c[_0x55ce38(0x201)]!=_0x55ce38(0x1d4))return!0x1;let _0x7bb256=(_0x26653=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x26653=_0x26653[_0x55ce38(0x1bd)])==null?void 0x0:_0x26653[_0x10c278][_0x55ce38(0x201)];_0x7bb256!==_0x5ba25c['suppressEndnotes']&&(_0x37e190=_0x4f86a5[_0x55ce38(0x1d2)](_0x37e190,_0x49ce7a[_0x55ce38(0x1e4)]([_0x55ce38(0x1b5),'sectionBreaks',_0x10c278,_0x55ce38(0x201)],_0x7bb256,_0x5ba25c[_0x55ce38(0x201)])));}return _0x37e190;}function T(_0x4009fa,_0x165f31,_0x51196c){const _0x1c643e=_0x3539;if(!_0x165f31)return!0x1;let _0x39184d=_0x4009fa[_0x1c643e(0x1fc)](_0x28d7f0)['getUnit'](_0x165f31[_0x1c643e(0x1df)],_0x45c27a[_0x1c643e(0x1c8)]),_0x258926=_0x39184d==null?void 0x0:_0x39184d['getSnapshot']();if(!_0x258926||_0x258926[_0x1c643e(0x1f6)][_0x1c643e(0x1d7)]!==_0x25b4a1[_0x1c643e(0x214)])return!0x1;let _0x1b59cf=w(_0x258926,_0x165f31,_0x51196c);return _0x1b59cf===!0x1||_0x4f86a5[_0x1c643e(0x1ea)](_0x1b59cf)?!0x1:!!_0x4009fa['get'](_0xbc5180)[_0x1c643e(0x1d3)](_0x2b017e['id'],{'unitId':_0x165f31['unitId'],'segmentId':'','historyAction':_0x1c643e(0x212)+_0x51196c+_0x1c643e(0x1b9),'actions':_0x1b59cf,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x510078,_0x44f459)=>T(_0x510078,_0x44f459,'footnote')},D={'id':'doc.command.set-endnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x49e484,_0x10e07f)=>T(_0x49e484,_0x10e07f,'endnote')};function O(_0x3b0436,_0x57ee53){const _0x575243=_0x4600df;return(_0x3b0436==null?void 0x0:_0x3b0436[_0x575243(0x1f6)][_0x575243(0x1d7)])===_0x25b4a1['TRADITIONAL']&&!!_0x3b0436[_0x575243(0x1b5)]&&Number[_0x575243(0x1dd)](_0x57ee53)&&_0x57ee53>=0x0&&_0x57ee53<_0x3b0436[_0x575243(0x1b5)][_0x575243(0x1c7)][_0x575243(0x1e9)]-0x1;}function k(_0x2ec1d8,_0x272edc,_0x55f525){const _0xac4721=_0x4600df;var _0x169563,_0x1c06bd;if(_0x272edc[_0xac4721(0x1ba)]===void 0x0&&_0x272edc['suppressEndnotes']===void 0x0)return null;let _0x3690dc=_0x272edc[_0xac4721(0x1af)]==null?(_0x169563=_0x2ec1d8[_0xac4721(0x1dc)])==null?void 0x0:_0x169563[_0x55f525]:(_0x1c06bd=_0x2ec1d8['body'])==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1bd)])==null||(_0x1c06bd=_0x1c06bd['find'](_0x23842c=>_0x23842c[_0xac4721(0x1af)]===_0x272edc['sectionId']))==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1cf)])==null?void 0x0:_0x1c06bd[_0x55f525];return w(_0x2ec1d8,{'settings':_0x272edc[_0xac4721(0x1ba)]===void 0x0?_0x3690dc??null:_0x272edc[_0xac4721(0x1ba)],'sectionId':_0x272edc['sectionId'],'suppressEndnotes':_0x272edc[_0xac4721(0x201)]},_0x55f525);}function A(_0x515098,_0x3f38d2,_0x4b3921){const _0x3f0d98=_0x4600df;var _0x22976a,_0x3ae86a,_0x5cf51c;if(!_0x3f38d2||_0x3f38d2['segmentId'])return!0x1;let _0x5eda21=_0x515098[_0x3f0d98(0x1fc)](_0x28d7f0)['getUnit'](_0x3f38d2['unitId'],_0x45c27a[_0x3f0d98(0x1c8)]),_0x329c5a=_0x5eda21==null?void 0x0:_0x5eda21[_0x3f0d98(0x1b7)](),{offset:_0x29dcbf}=_0x3f38d2;if(!O(_0x329c5a,_0x29dcbf))return!0x1;let _0x1fef75=k(_0x329c5a,_0x3f38d2,_0x4b3921);if(_0x1fef75===!0x1)return!0x1;let _0x415c01=_0x3f38d2[_0x3f0d98(0x1ed)]??_0x31c553(0xc);if((_0x22976a=_0x329c5a[_0x3f0d98(0x1bf)])!=null&&_0x22976a[_0x415c01]||(_0x3ae86a=_0x329c5a['headers'])!=null&&_0x3ae86a[_0x415c01]||(_0x5cf51c=_0x329c5a[_0x3f0d98(0x1cc)])!=null&&_0x5cf51c[_0x415c01])return!0x1;let _0x55959a=_0x1ea835[_0x3f0d98(0x1e0)]({'type':_0x4b3921,'noteId':_0x415c01,'body':_0x3f38d2[_0x3f0d98(0x1b5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x57afb1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x4111f5(new Set()),'startIndex':0x1}]},'customMark':_0x3f38d2['customMark'],'referenceTextStyle':_0x3f38d2[_0x3f0d98(0x1c3)],'tableSource':_0x3f38d2[_0x3f0d98(0x206)],'drawings':_0x3f38d2['drawings'],'drawingsOrder':_0x3f38d2['drawingsOrder'],'lists':_0x3f38d2[_0x3f0d98(0x1d0)]});if(_0x3dd22b({'notes':{[_0x415c01]:_0x55959a}})[_0x3f0d98(0x1e9)]>0x0)return!0x1;let _0x48c68f=new _0x7c13a3();_0x29dcbf>0x0&&_0x48c68f[_0x3f0d98(0x1b3)](_0x29dcbf),_0x48c68f[_0x3f0d98(0x200)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4b3921===_0x3f0d98(0x1ad)?_0x1f509c[_0x3f0d98(0x1ce)]:_0x1f509c['ENDNOTE'],'rangeId':_0x31c553(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x415c01}}]});let _0x4872a4=_0x4f86a5['getInstance'](),_0x2c37ec=_0x329c5a['notes']==null?_0x4872a4[_0x3f0d98(0x1d1)]([_0x3f0d98(0x1bf)],{[_0x415c01]:_0x55959a}):_0x4872a4[_0x3f0d98(0x1d1)](['notes',_0x415c01],_0x55959a);return!!_0x515098[_0x3f0d98(0x1fc)](_0xbc5180)[_0x3f0d98(0x1d3)](_0x2b017e['id'],{'unitId':_0x3f38d2[_0x3f0d98(0x1df)],'segmentId':'','historyAction':_0x3f0d98(0x1b6)+_0x4b3921,'actions':_0x4f86a5['compose'](_0x4f86a5[_0x3f0d98(0x1d2)](_0x1fef75,_0x2c37ec),_0x4872a4[_0x3f0d98(0x1ef)](_0x48c68f[_0x3f0d98(0x1f2)](),[_0x3f0d98(0x1b5)])),'textRanges':[{'segmentId':_0x415c01,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x975d8f,_0x50c57c,_0x46b976){const _0x20d8d9=_0x4600df;var _0x408632,_0xa10cf8;if(!_0x50c57c)return!0x1;let _0x1a6994=_0x975d8f['get'](_0x28d7f0)[_0x20d8d9(0x211)](_0x50c57c[_0x20d8d9(0x1df)],_0x45c27a[_0x20d8d9(0x1c8)]),_0x4b5235=_0x1a6994==null?void 0x0:_0x1a6994[_0x20d8d9(0x1b7)](),_0x4a60f1=_0x4b5235==null||(_0x408632=_0x4b5235[_0x20d8d9(0x1bf)])==null?void 0x0:_0x408632[_0x50c57c[_0x20d8d9(0x1ed)]],_0x522ce6=_0x4b5235==null||(_0xa10cf8=_0x4b5235[_0x20d8d9(0x1b5)])==null||(_0xa10cf8=_0xa10cf8[_0x20d8d9(0x1be)])==null?void 0x0:_0xa10cf8[_0x20d8d9(0x1ee)](_0x3b3029=>{const _0x2d9166=_0x20d8d9;var _0x2c1b3b;return(_0x3b3029['rangeType']===_0x1f509c[_0x2d9166(0x1ce)]||_0x3b3029[_0x2d9166(0x20b)]===_0x1f509c[_0x2d9166(0x1e3)])&&((_0x2c1b3b=_0x3b3029[_0x2d9166(0x1c0)])==null?void 0x0:_0x2c1b3b['noteId'])===_0x50c57c['noteId'];});if(!_0x4b5235||_0x4b5235[_0x20d8d9(0x1f6)][_0x20d8d9(0x1d7)]!==_0x25b4a1[_0x20d8d9(0x214)]||!_0x4a60f1||_0x4a60f1['type']!==_0x46b976||!_0x522ce6)return!0x1;let _0x4c3984=new _0x7c13a3();_0x522ce6['startIndex']>0x0&&_0x4c3984[_0x20d8d9(0x1b3)](_0x522ce6[_0x20d8d9(0x213)]),_0x4c3984[_0x20d8d9(0x1b4)](0x1);let _0x45f4fb=_0x4f86a5[_0x20d8d9(0x1f9)]();return!!_0x975d8f['get'](_0xbc5180)[_0x20d8d9(0x1d3)](_0x2b017e['id'],{'unitId':_0x50c57c[_0x20d8d9(0x1df)],'segmentId':'','historyAction':_0x20d8d9(0x219)+_0x46b976,'actions':_0x4f86a5[_0x20d8d9(0x1d2)](_0x45f4fb[_0x20d8d9(0x1ef)](_0x4c3984[_0x20d8d9(0x1f2)](),[_0x20d8d9(0x1b5)]),_0x45f4fb[_0x20d8d9(0x1e2)]([_0x20d8d9(0x1bf),_0x50c57c[_0x20d8d9(0x1ed)]],_0x4a60f1)),'textRanges':[{'startOffset':_0x522ce6['startIndex'],'endOffset':_0x522ce6[_0x20d8d9(0x213)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x4600df(0x1d6),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x30721f,_0x5e0680)=>A(_0x30721f,_0x5e0680,_0x4600df(0x1ad))},N={'id':_0x4600df(0x20e),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x5c98f8,_0x2d4464)=>j(_0x5c98f8,_0x2d4464,_0x4600df(0x1ad))},P={'id':_0x4600df(0x1d5),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0xfdb615,_0x2eb765)=>A(_0xfdb615,_0x2eb765,_0x4600df(0x1f4))},F={'id':_0x4600df(0x1de),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x10046c,_0x7c3427)=>j(_0x10046c,_0x7c3427,_0x4600df(0x1f4))};function _0x3539(_0xfed6f0,_0x15771d){_0xfed6f0=_0xfed6f0-0x1aa;const _0x4763c3=_0x4763();let _0x35396c=_0x4763c3[_0xfed6f0];return _0x35396c;}var I=_0x4600df(0x1da),L=_0x4600df(0x1c4);const R={};function z(_0x4acdba,_0x4c2d57){return function(_0x366aa1,_0x2f02f3){_0x4c2d57(_0x366aa1,_0x2f02f3,_0x4acdba);};}function B(_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e){const _0x544728=_0x4600df;var _0x3fb182=arguments[_0x544728(0x1e9)],_0x2a8e7f=_0x3fb182<0x3?_0x245561:_0x4e181e===null?_0x4e181e=Object['getOwnPropertyDescriptor'](_0x245561,_0x22bd4d):_0x4e181e,_0x196d1e;if(typeof Reflect==_0x544728(0x1ca)&&typeof Reflect[_0x544728(0x1e1)]==_0x544728(0x1d8))_0x2a8e7f=Reflect['decorate'](_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e);else{for(var _0x3447da=_0x3b3328[_0x544728(0x1e9)]-0x1;_0x3447da>=0x0;_0x3447da--)(_0x196d1e=_0x3b3328[_0x3447da])&&(_0x2a8e7f=(_0x3fb182<0x3?_0x196d1e(_0x2a8e7f):_0x3fb182>0x3?_0x196d1e(_0x245561,_0x22bd4d,_0x2a8e7f):_0x196d1e(_0x245561,_0x22bd4d))||_0x2a8e7f);}return _0x3fb182>0x3&&_0x2a8e7f&&Object[_0x544728(0x1e5)](_0x245561,_0x22bd4d,_0x2a8e7f),_0x2a8e7f;}function V(_0xe7b87e){'@babel/helpers - typeof';const _0x2e8c10=_0x4600df;return V=typeof Symbol=='function'&&typeof Symbol[_0x2e8c10(0x1e6)]==_0x2e8c10(0x1aa)?function(_0x29a605){return typeof _0x29a605;}:function(_0xbf3c23){const _0x43558b=_0x2e8c10;return _0xbf3c23&&typeof Symbol==_0x43558b(0x1d8)&&_0xbf3c23[_0x43558b(0x217)]===Symbol&&_0xbf3c23!==Symbol[_0x43558b(0x209)]?_0x43558b(0x1aa):typeof _0xbf3c23;},V(_0xe7b87e);}function H(_0x1e6791,_0x117acd){const _0x3a8ada=_0x4600df;if(V(_0x1e6791)!='object'||!_0x1e6791)return _0x1e6791;var _0x195df2=_0x1e6791[Symbol[_0x3a8ada(0x1ac)]];if(_0x195df2!==void 0x0){var _0x2ea2bb=_0x195df2['call'](_0x1e6791,_0x117acd||_0x3a8ada(0x1b2));if(V(_0x2ea2bb)!=_0x3a8ada(0x1ca))return _0x2ea2bb;throw TypeError(_0x3a8ada(0x20c));}return(_0x117acd===_0x3a8ada(0x1eb)?String:Number)(_0x1e6791);}function U(_0x287226){const _0x5c9d54=_0x4600df;var _0x5adef8=H(_0x287226,_0x5c9d54(0x1eb));return V(_0x5adef8)=='symbol'?_0x5adef8:_0x5adef8+'';}function W(_0x1972e8,_0x3af945,_0x2a6d37){const _0x4aae17=_0x4600df;return(_0x3af945=U(_0x3af945))in _0x1972e8?Object[_0x4aae17(0x1e5)](_0x1972e8,_0x3af945,{'value':_0x2a6d37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1972e8[_0x3af945]=_0x2a6d37,_0x1972e8;}function _0x4763(){const _0x152904=['eachPage','getUnit','set-','startIndex','TRADITIONAL','keys','22490fUUvqO','constructor','numberFormat','delete-','docEnd','symbol','restart','toPrimitive','footnote','beneathText','sectionId','includes','separator','default','retain','delete','body','insert-','getSnapshot','_configService','-settings','settings','setConfig','columnCount','sectionBreaks','customRanges','notes','properties','packageName','45SHzOiT','referenceTextStyle','1.0.1','52CcznWu','findIndex','dataStream','UNIVER_DOC','333977nlABkg','object','startNumber','footers','193854IEfIBZ','FOOTNOTE','noteProperties','lists','insertOp','compose','syncExecuteCommand','boolean','doc.command.insert-endnote','doc.command.insert-footnote','documentFlavor','function','42LVboyn','@univerjs-pro/docs-reference','_injector','noteSettings','isInteger','doc.command.delete-endnote','unitId','deepClone','decorate','removeOp','ENDNOTE','replaceOp','defineProperty','iterator','continuous','pluginName','length','isNoop','string','118415BMCwtc','noteId','find','editOp','56424WddhYL','_config','serialize','_commandService','endnote','eachSect','documentStyle','260200zhkUof','continuationSeparator','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','COMMAND','get','sectEnd','docs-reference.config','position','insert','suppressEndnotes','840UIRuGH','type','disposeWithMe','every','tableSource','forEach','18610xbmAoU','prototype','pageBottom','rangeType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','doc.command.delete-footnote','86zXxotq'];_0x4763=function(){return _0x152904;};return _0x4763();}let G=class extends _0x26c983{constructor(_0x184b0f=R,_0x27aa9d,_0x3929a9,_0x4cae4b){const _0x17a5c2=_0x4600df;super(),this[_0x17a5c2(0x1f1)]=_0x184b0f,this[_0x17a5c2(0x1db)]=_0x27aa9d,this[_0x17a5c2(0x1b8)]=_0x3929a9,this[_0x17a5c2(0x1f3)]=_0x4cae4b;let {..._0x5269ea}=_0x50c30f({},R,this[_0x17a5c2(0x1f1)]);this[_0x17a5c2(0x1b8)][_0x17a5c2(0x1bb)](_0x17a5c2(0x1fe),_0x5269ea);}[_0x4600df(0x20d)](){const _0x524f9d=_0x4600df;[M,N,E,P,F,D][_0x524f9d(0x207)](_0x19642b=>this[_0x524f9d(0x204)](this[_0x524f9d(0x1f3)]['registerCommand'](_0x19642b)));}};W(G,_0x4600df(0x1e8),_0x4600df(0x1fa)),W(G,_0x4600df(0x1c1),I),W(G,'version',L),W(G,_0x4600df(0x203),_0x45c27a[_0x4600df(0x1c8)]),G=B([_0x126d9d(_0x1111a2,_0x1bad7e),z(0x1,_0x4b5c4b(_0x38617d)),z(0x2,_0x19a8fd),z(0x3,_0xbc5180)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
1
+ const _0x3daf98=_0x32ce;function _0x51c2(){const _0xf19e97=['endnote','getInstance','@univerjs-pro/docs-reference','2175397kMeVnG','includes','671200IcOIaC','decorate','eachPage','numberFormat','getUnit','noteProperties','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','16nDTGPo','doc.command.set-footnote-settings','pageBottom','restart','TRADITIONAL','defineProperty','doc.command.insert-footnote','11703370TgOsby','customMark','1.0.2','settings','setConfig','boolean','string','suppressEndnotes','lists','editOp','headers','properties','body','doc.command.delete-footnote','201mbnoZp','-settings','isNoop','length','1878395Tyrdme','noteSettings','findIndex','continuationSeparator','1051263ZmsQkd','function','doc.command.set-endnote-settings','replaceOp','columnCount','onStarting','_commandService','retain','sectEnd','pluginName','dataStream','syncExecuteCommand','deepClone','diffValue','eachSect','docs-reference.config','position','noteId','drawings','drawingsOrder','ENDNOTE','serialize','removeOp','get','symbol','documentStyle','37424fbPskr','footnote','getSnapshot','startIndex','_configService','6nNdmeK','compose','COMMAND','startNumber','_config','sectionId','keys','insert-','delete','UNIVER_DOCS_REFERENCE_PLUGIN','toPrimitive','isInteger','constructor','insert','object','265078xpuDjf','UNIVER_DOC','segmentId','documentFlavor','type','default','notes','separator','call','doc.command.insert-endnote','customRanges','insertOp','unitId','delete-','sectionBreaks','forEach','tableSource','version','rangeType','disposeWithMe'];_0x51c2=function(){return _0xf19e97;};return _0x51c2();}(function(_0x2f3a92,_0x5dbd94){const _0x26e7e3=_0x32ce,_0x53e712=_0x2f3a92();while(!![]){try{const _0x42d287=-parseInt(_0x26e7e3(0xb3))/0x1+-parseInt(_0x26e7e3(0xcc))/0x2+-parseInt(_0x26e7e3(0xe8))/0x3*(-parseInt(_0x26e7e3(0x9f))/0x4)+parseInt(_0x26e7e3(0xec))/0x5*(-parseInt(_0x26e7e3(0xa4))/0x6)+-parseInt(_0x26e7e3(0xca))/0x7*(parseInt(_0x26e7e3(0xd3))/0x8)+parseInt(_0x26e7e3(0xf0))/0x9+parseInt(_0x26e7e3(0xda))/0xa;if(_0x42d287===_0x5dbd94)break;else _0x53e712['push'](_0x53e712['shift']());}catch(_0x2d5d6b){_0x53e712['push'](_0x53e712['shift']());}}}(_0x51c2,0x4d2c1));function _0x32ce(_0x22fa91,_0x56e465){_0x22fa91=_0x22fa91-0x90;const _0x51c2d4=_0x51c2();let _0x32ce89=_0x51c2d4[_0x22fa91];return _0x32ce89;}import{CommandType as _0x15545a,CustomRangeType as _0x45f257,DependentOn as _0x33e7c2,DocumentFlavor as _0x5c0d70,ICommandService as _0x19a995,IConfigService as _0x2afe4e,IUniverInstanceService as _0xc0ec08,Inject as _0x2dd80e,Injector as _0x348363,JSONX as _0x184147,Plugin as _0x1b8fd4,TextX as _0x4cd513,Tools as _0x4724ad,UniverInstanceType as _0x2699ed,createParagraphId as _0x513e99,createSectionId as _0x51287d,generateRandomId as _0xcecbd4,merge as _0x185aa9,validateDocBodyStructure as _0x14da4d,validateDocumentStructure as _0x2e2495}from'@univerjs/core';import{RichTextEditingMutation as _0x25e0c1,UniverDocsPlugin as _0x1056a6}from'@univerjs/docs';import{UniverLicensePlugin as _0x3f86ff}from'@univerjs-pro/license';function C(_0x451956,_0x111183,_0x309dbc){const _0x1bfb8b=_0x32ce;if(_0x451956[_0x1bfb8b(0x95)]!=null&&!(_0x111183===_0x1bfb8b(0xa0)?[_0x1bfb8b(0xd5),'beneathText']:['docEnd',_0x1bfb8b(0xf8)])['includes'](_0x451956['position'])||_0x451956[_0x1bfb8b(0xd6)]!=null&&!(_0x111183==='footnote'?['continuous',_0x1bfb8b(0x93),_0x1bfb8b(0xce)]:['continuous',_0x1bfb8b(0x93)])[_0x1bfb8b(0xcb)](_0x451956[_0x1bfb8b(0xd6)])||_0x451956[_0x1bfb8b(0xa7)]!=null&&(!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xa7)])||_0x451956['startNumber']<0x1)||_0x1bfb8b(0xf4)in _0x451956&&_0x451956[_0x1bfb8b(0xf4)]!=null&&(_0x111183!==_0x1bfb8b(0xa0)||!Number[_0x1bfb8b(0xaf)](_0x451956[_0x1bfb8b(0xf4)])||_0x451956[_0x1bfb8b(0xf4)]<0x0||_0x451956[_0x1bfb8b(0xf4)]>0x4)||_0x451956['numberFormat']!=null&&(typeof _0x451956[_0x1bfb8b(0xcf)]!=_0x1bfb8b(0xe0)||_0x451956[_0x1bfb8b(0xcf)][_0x1bfb8b(0xeb)]===0x0))return!0x1;for(let _0x5982e7 of[_0x451956[_0x1bfb8b(0xba)],_0x451956[_0x1bfb8b(0xef)],_0x451956['continuationNotice']])if(_0x5982e7!=null&&(_0x309dbc!=null||_0x14da4d(_0x5982e7)[_0x1bfb8b(0xeb)]>0x0))return!0x1;return!0x0;}function w(_0xb610d4,_0x38a8ac,_0x353c32){const _0x320c4e=_0x32ce;var _0x43bce1,_0x2681f8;if(_0x38a8ac[_0x320c4e(0xdd)]!=null&&!C(_0x38a8ac[_0x320c4e(0xdd)],_0x353c32,_0x38a8ac[_0x320c4e(0xa9)]))return!0x1;let _0x1717c2=((_0x43bce1=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x43bce1=_0x43bce1[_0x320c4e(0xc1)])==null?void 0x0:_0x43bce1[_0x320c4e(0xee)](_0x5e9ed2=>_0x5e9ed2[_0x320c4e(0xa9)]===_0x38a8ac[_0x320c4e(0xa9)]))??-0x1;if(_0x38a8ac['sectionId']!=null&&_0x1717c2<0x0)return!0x1;let _0x18fa85=_0x38a8ac['sectionId']==null?_0xb610d4[_0x320c4e(0xed)]:(_0x2681f8=_0xb610d4['body'])==null||(_0x2681f8=_0x2681f8[_0x320c4e(0xc1)])==null?void 0x0:_0x2681f8[_0x1717c2][_0x320c4e(0xd1)],_0x11a2ff=_0x38a8ac[_0x320c4e(0xdd)]==null?void 0x0:_0x4724ad[_0x320c4e(0x91)](_0x38a8ac[_0x320c4e(0xdd)]),_0x5d7086=_0x38a8ac['sectionId']==null?[_0x320c4e(0xed)]:[_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xd1)],_0x22667f=_0x184147['getInstance'](),_0x372736=null;if(_0x4724ad[_0x320c4e(0x92)](_0x18fa85==null?void 0x0:_0x18fa85[_0x353c32],_0x11a2ff)||(_0x372736=_0x18fa85==null?_0x22667f['insertOp'](_0x5d7086,{[_0x353c32]:_0x11a2ff}):_0x38a8ac['sectionId']!=null&&_0x11a2ff==null&&Object[_0x320c4e(0xaa)](_0x18fa85)['every'](_0x234a95=>_0x234a95===_0x353c32)?_0x22667f[_0x320c4e(0x9b)](_0x5d7086,_0x18fa85):_0x22667f[_0x320c4e(0xf3)]([..._0x5d7086,_0x353c32],_0x18fa85[_0x353c32],_0x11a2ff)),_0x38a8ac[_0x320c4e(0xe1)]!=null){var _0x1869a6;if(_0x353c32!=='endnote'||_0x38a8ac[_0x320c4e(0xa9)]==null||typeof _0x38a8ac[_0x320c4e(0xe1)]!=_0x320c4e(0xdf))return!0x1;let _0x1deb12=(_0x1869a6=_0xb610d4[_0x320c4e(0xe6)])==null||(_0x1869a6=_0x1869a6[_0x320c4e(0xc1)])==null?void 0x0:_0x1869a6[_0x1717c2][_0x320c4e(0xe1)];_0x1deb12!==_0x38a8ac[_0x320c4e(0xe1)]&&(_0x372736=_0x184147['compose'](_0x372736,_0x22667f[_0x320c4e(0xf3)]([_0x320c4e(0xe6),_0x320c4e(0xc1),_0x1717c2,_0x320c4e(0xe1)],_0x1deb12,_0x38a8ac[_0x320c4e(0xe1)])));}return _0x372736;}function T(_0x40672d,_0x4812b3,_0x44e288){const _0x534a09=_0x32ce;if(!_0x4812b3)return!0x1;let _0x28caea=_0x40672d[_0x534a09(0x9c)](_0xc0ec08)[_0x534a09(0xd0)](_0x4812b3[_0x534a09(0xbf)],_0x2699ed[_0x534a09(0xb4)]),_0x41bcb8=_0x28caea==null?void 0x0:_0x28caea[_0x534a09(0xa1)]();if(!_0x41bcb8||_0x41bcb8['documentStyle'][_0x534a09(0xb6)]!==_0x5c0d70['TRADITIONAL'])return!0x1;let _0x214774=w(_0x41bcb8,_0x4812b3,_0x44e288);return _0x214774===!0x1||_0x184147[_0x534a09(0xea)](_0x214774)?!0x1:!!_0x40672d[_0x534a09(0x9c)](_0x19a995)[_0x534a09(0x90)](_0x25e0c1['id'],{'unitId':_0x4812b3['unitId'],'segmentId':'','historyAction':'set-'+_0x44e288+_0x534a09(0xe9),'actions':_0x214774,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x3daf98(0xd4),'type':_0x15545a['COMMAND'],'handler':(_0x454f7b,_0x4991da)=>T(_0x454f7b,_0x4991da,_0x3daf98(0xa0))},D={'id':_0x3daf98(0xf2),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x5c1a8d,_0x34115a)=>T(_0x5c1a8d,_0x34115a,_0x3daf98(0xc7))};function O(_0x124424,_0x5e258f){const _0xe97b3f=_0x3daf98;return(_0x124424==null?void 0x0:_0x124424['documentStyle'][_0xe97b3f(0xb6)])===_0x5c0d70[_0xe97b3f(0xd7)]&&!!_0x124424[_0xe97b3f(0xe6)]&&Number[_0xe97b3f(0xaf)](_0x5e258f)&&_0x5e258f>=0x0&&_0x5e258f<_0x124424[_0xe97b3f(0xe6)][_0xe97b3f(0xfa)][_0xe97b3f(0xeb)]-0x1;}function k(_0x1e4038,_0x1219f6,_0x45582f){const _0x259e8d=_0x3daf98;var _0x6b0f10,_0x3e73cb;if(_0x1219f6[_0x259e8d(0xdd)]===void 0x0&&_0x1219f6[_0x259e8d(0xe1)]===void 0x0)return null;let _0x4b160d=_0x1219f6[_0x259e8d(0xa9)]==null?(_0x6b0f10=_0x1e4038[_0x259e8d(0xed)])==null?void 0x0:_0x6b0f10[_0x45582f]:(_0x3e73cb=_0x1e4038[_0x259e8d(0xe6)])==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xc1)])==null||(_0x3e73cb=_0x3e73cb['find'](_0x21c732=>_0x21c732[_0x259e8d(0xa9)]===_0x1219f6[_0x259e8d(0xa9)]))==null||(_0x3e73cb=_0x3e73cb[_0x259e8d(0xd1)])==null?void 0x0:_0x3e73cb[_0x45582f];return w(_0x1e4038,{'settings':_0x1219f6[_0x259e8d(0xdd)]===void 0x0?_0x4b160d??null:_0x1219f6[_0x259e8d(0xdd)],'sectionId':_0x1219f6[_0x259e8d(0xa9)],'suppressEndnotes':_0x1219f6[_0x259e8d(0xe1)]},_0x45582f);}function A(_0x336695,_0x5eecd2,_0x599fb5){const _0x3640c1=_0x3daf98;var _0x494d8b,_0x2c4e48,_0x4a9a09;if(!_0x5eecd2||_0x5eecd2[_0x3640c1(0xb5)])return!0x1;let _0x1ae203=_0x336695['get'](_0xc0ec08)[_0x3640c1(0xd0)](_0x5eecd2[_0x3640c1(0xbf)],_0x2699ed['UNIVER_DOC']),_0x69c894=_0x1ae203==null?void 0x0:_0x1ae203[_0x3640c1(0xa1)](),{offset:_0x1cb5c0}=_0x5eecd2;if(!O(_0x69c894,_0x1cb5c0))return!0x1;let _0x4aa026=k(_0x69c894,_0x5eecd2,_0x599fb5);if(_0x4aa026===!0x1)return!0x1;let _0x4952e0=_0x5eecd2[_0x3640c1(0x96)]??_0xcecbd4(0xc);if((_0x494d8b=_0x69c894[_0x3640c1(0xb9)])!=null&&_0x494d8b[_0x4952e0]||(_0x2c4e48=_0x69c894[_0x3640c1(0xe4)])!=null&&_0x2c4e48[_0x4952e0]||(_0x4a9a09=_0x69c894['footers'])!=null&&_0x4a9a09[_0x4952e0])return!0x1;let _0xdcd31e=_0x4724ad[_0x3640c1(0x91)]({'type':_0x599fb5,'noteId':_0x4952e0,'body':_0x5eecd2[_0x3640c1(0xe6)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x513e99(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x51287d(new Set()),'startIndex':0x1}]},'customMark':_0x5eecd2[_0x3640c1(0xdb)],'referenceTextStyle':_0x5eecd2['referenceTextStyle'],'tableSource':_0x5eecd2[_0x3640c1(0xc3)],'drawings':_0x5eecd2[_0x3640c1(0x97)],'drawingsOrder':_0x5eecd2[_0x3640c1(0x98)],'lists':_0x5eecd2[_0x3640c1(0xe2)]});if(_0x2e2495({'notes':{[_0x4952e0]:_0xdcd31e}})['length']>0x0)return!0x1;let _0x4d1214=new _0x4cd513();_0x1cb5c0>0x0&&_0x4d1214[_0x3640c1(0xf7)](_0x1cb5c0),_0x4d1214[_0x3640c1(0xb1)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x599fb5===_0x3640c1(0xa0)?_0x45f257['FOOTNOTE']:_0x45f257[_0x3640c1(0x99)],'rangeId':_0xcecbd4(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4952e0}}]});let _0x2cf56a=_0x184147[_0x3640c1(0xc8)](),_0x4261f4=_0x69c894[_0x3640c1(0xb9)]==null?_0x2cf56a[_0x3640c1(0xbe)](['notes'],{[_0x4952e0]:_0xdcd31e}):_0x2cf56a['insertOp']([_0x3640c1(0xb9),_0x4952e0],_0xdcd31e);return!!_0x336695[_0x3640c1(0x9c)](_0x19a995)['syncExecuteCommand'](_0x25e0c1['id'],{'unitId':_0x5eecd2['unitId'],'segmentId':'','historyAction':_0x3640c1(0xab)+_0x599fb5,'actions':_0x184147[_0x3640c1(0xa5)](_0x184147['compose'](_0x4aa026,_0x4261f4),_0x2cf56a[_0x3640c1(0xe3)](_0x4d1214[_0x3640c1(0x9a)](),[_0x3640c1(0xe6)])),'textRanges':[{'segmentId':_0x4952e0,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x5a3ed7,_0xce13f7,_0x101a07){const _0x1bce43=_0x3daf98;var _0x591bf9,_0x227140;if(!_0xce13f7)return!0x1;let _0x1b5a3f=_0x5a3ed7['get'](_0xc0ec08)[_0x1bce43(0xd0)](_0xce13f7['unitId'],_0x2699ed[_0x1bce43(0xb4)]),_0x3b79c8=_0x1b5a3f==null?void 0x0:_0x1b5a3f[_0x1bce43(0xa1)](),_0x1db5e0=_0x3b79c8==null||(_0x591bf9=_0x3b79c8[_0x1bce43(0xb9)])==null?void 0x0:_0x591bf9[_0xce13f7[_0x1bce43(0x96)]],_0x1f4219=_0x3b79c8==null||(_0x227140=_0x3b79c8[_0x1bce43(0xe6)])==null||(_0x227140=_0x227140[_0x1bce43(0xbd)])==null?void 0x0:_0x227140['find'](_0x1dacc8=>{const _0x16c580=_0x1bce43;var _0x32052f;return(_0x1dacc8['rangeType']===_0x45f257['FOOTNOTE']||_0x1dacc8[_0x16c580(0xc5)]===_0x45f257[_0x16c580(0x99)])&&((_0x32052f=_0x1dacc8[_0x16c580(0xe5)])==null?void 0x0:_0x32052f['noteId'])===_0xce13f7[_0x16c580(0x96)];});if(!_0x3b79c8||_0x3b79c8[_0x1bce43(0x9e)][_0x1bce43(0xb6)]!==_0x5c0d70[_0x1bce43(0xd7)]||!_0x1db5e0||_0x1db5e0[_0x1bce43(0xb7)]!==_0x101a07||!_0x1f4219)return!0x1;let _0x4a65bc=new _0x4cd513();_0x1f4219[_0x1bce43(0xa2)]>0x0&&_0x4a65bc[_0x1bce43(0xf7)](_0x1f4219[_0x1bce43(0xa2)]),_0x4a65bc[_0x1bce43(0xac)](0x1);let _0x3da97e=_0x184147[_0x1bce43(0xc8)]();return!!_0x5a3ed7[_0x1bce43(0x9c)](_0x19a995)[_0x1bce43(0x90)](_0x25e0c1['id'],{'unitId':_0xce13f7[_0x1bce43(0xbf)],'segmentId':'','historyAction':_0x1bce43(0xc0)+_0x101a07,'actions':_0x184147['compose'](_0x3da97e[_0x1bce43(0xe3)](_0x4a65bc['serialize'](),[_0x1bce43(0xe6)]),_0x3da97e[_0x1bce43(0x9b)](['notes',_0xce13f7[_0x1bce43(0x96)]],_0x1db5e0)),'textRanges':[{'startOffset':_0x1f4219[_0x1bce43(0xa2)],'endOffset':_0x1f4219[_0x1bce43(0xa2)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x3daf98(0xd9),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0xfa3d92,_0x3be213)=>A(_0xfa3d92,_0x3be213,_0x3daf98(0xa0))},N={'id':_0x3daf98(0xe7),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x12ceb6,_0x361470)=>j(_0x12ceb6,_0x361470,_0x3daf98(0xa0))},P={'id':_0x3daf98(0xbc),'type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x2878be,_0xdb2cc)=>A(_0x2878be,_0xdb2cc,'endnote')},F={'id':'doc.command.delete-endnote','type':_0x15545a[_0x3daf98(0xa6)],'handler':(_0x46e3ec,_0x28069a)=>j(_0x46e3ec,_0x28069a,'endnote')};var I=_0x3daf98(0xc9),L=_0x3daf98(0xdc);const R={};function z(_0x3fd14b,_0x3e0a16){return function(_0x482c38,_0x471061){_0x3e0a16(_0x482c38,_0x471061,_0x3fd14b);};}function B(_0x2116b0,_0x41c026,_0x44cd19,_0x358839){const _0x4326c1=_0x3daf98;var _0x18a35f=arguments['length'],_0x4a10a1=_0x18a35f<0x3?_0x41c026:_0x358839===null?_0x358839=Object['getOwnPropertyDescriptor'](_0x41c026,_0x44cd19):_0x358839,_0x25ee78;if(typeof Reflect=='object'&&typeof Reflect[_0x4326c1(0xcd)]==_0x4326c1(0xf1))_0x4a10a1=Reflect[_0x4326c1(0xcd)](_0x2116b0,_0x41c026,_0x44cd19,_0x358839);else{for(var _0x2ea153=_0x2116b0[_0x4326c1(0xeb)]-0x1;_0x2ea153>=0x0;_0x2ea153--)(_0x25ee78=_0x2116b0[_0x2ea153])&&(_0x4a10a1=(_0x18a35f<0x3?_0x25ee78(_0x4a10a1):_0x18a35f>0x3?_0x25ee78(_0x41c026,_0x44cd19,_0x4a10a1):_0x25ee78(_0x41c026,_0x44cd19))||_0x4a10a1);}return _0x18a35f>0x3&&_0x4a10a1&&Object[_0x4326c1(0xd8)](_0x41c026,_0x44cd19,_0x4a10a1),_0x4a10a1;}function V(_0x391a59){'@babel/helpers - typeof';const _0x4d5e3a=_0x3daf98;return V=typeof Symbol==_0x4d5e3a(0xf1)&&typeof Symbol['iterator']=='symbol'?function(_0x4c20e3){return typeof _0x4c20e3;}:function(_0x54a9a3){const _0x464cb5=_0x4d5e3a;return _0x54a9a3&&typeof Symbol==_0x464cb5(0xf1)&&_0x54a9a3[_0x464cb5(0xb0)]===Symbol&&_0x54a9a3!==Symbol['prototype']?_0x464cb5(0x9d):typeof _0x54a9a3;},V(_0x391a59);}function H(_0x935248,_0x237de1){const _0x2b13b7=_0x3daf98;if(V(_0x935248)!=_0x2b13b7(0xb2)||!_0x935248)return _0x935248;var _0x3caecc=_0x935248[Symbol[_0x2b13b7(0xae)]];if(_0x3caecc!==void 0x0){var _0x33178d=_0x3caecc[_0x2b13b7(0xbb)](_0x935248,_0x237de1||_0x2b13b7(0xb8));if(V(_0x33178d)!=_0x2b13b7(0xb2))return _0x33178d;throw TypeError(_0x2b13b7(0xd2));}return(_0x237de1===_0x2b13b7(0xe0)?String:Number)(_0x935248);}function U(_0xc87a6b){var _0x4e454d=H(_0xc87a6b,'string');return V(_0x4e454d)=='symbol'?_0x4e454d:_0x4e454d+'';}function W(_0x199859,_0x525e94,_0x3f93cb){return(_0x525e94=U(_0x525e94))in _0x199859?Object['defineProperty'](_0x199859,_0x525e94,{'value':_0x3f93cb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x199859[_0x525e94]=_0x3f93cb,_0x199859;}let G=class extends _0x1b8fd4{constructor(_0xe796b6=R,_0x307d65,_0x295269,_0x3596e3){const _0x2925a6=_0x3daf98;super(),this[_0x2925a6(0xa8)]=_0xe796b6,this['_injector']=_0x307d65,this['_configService']=_0x295269,this[_0x2925a6(0xf6)]=_0x3596e3;let {..._0x38fc00}=_0x185aa9({},R,this[_0x2925a6(0xa8)]);this[_0x2925a6(0xa3)][_0x2925a6(0xde)](_0x2925a6(0x94),_0x38fc00);}[_0x3daf98(0xf5)](){const _0x1ed817=_0x3daf98;[M,N,E,P,F,D][_0x1ed817(0xc2)](_0x2e4289=>this[_0x1ed817(0xc6)](this[_0x1ed817(0xf6)]['registerCommand'](_0x2e4289)));}};W(G,_0x3daf98(0xf9),_0x3daf98(0xad)),W(G,'packageName',I),W(G,_0x3daf98(0xc4),L),W(G,'type',_0x2699ed[_0x3daf98(0xb4)]),G=B([_0x33e7c2(_0x3f86ff,_0x1056a6),z(0x1,_0x2dd80e(_0x348363)),z(0x2,_0x2afe4e),z(0x3,_0x19a995)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0xed4d(_0x3d8c57,_0x1c1d37){_0x3d8c57=_0x3d8c57-0x15d;const _0x3fd52c=_0x3fd5();let _0xed4dd7=_0x3fd52c[_0x3d8c57];return _0xed4dd7;}(function(_0x1e5fb1,_0x1a630a){const _0x314154=_0xed4d,_0x4c787a=_0x1e5fb1();while(!![]){try{const _0x543fb6=parseInt(_0x314154(0x18e))/0x1*(parseInt(_0x314154(0x196))/0x2)+parseInt(_0x314154(0x184))/0x3+parseInt(_0x314154(0x164))/0x4+parseInt(_0x314154(0x183))/0x5+parseInt(_0x314154(0x171))/0x6*(-parseInt(_0x314154(0x165))/0x7)+-parseInt(_0x314154(0x182))/0x8+-parseInt(_0x314154(0x18f))/0x9*(parseInt(_0x314154(0x17a))/0xa);if(_0x543fb6===_0x1a630a)break;else _0x4c787a['push'](_0x4c787a['shift']());}catch(_0x35e692){_0x4c787a['push'](_0x4c787a['shift']());}}}(_0x3fd5,0x41784),function(_0x536dab,_0xcd2de1){const _0x201b0b=_0xed4d;typeof exports=='object'&&typeof module<'u'?_0xcd2de1(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x201b0b(0x195)]?define([_0x201b0b(0x160),_0x201b0b(0x16d),_0x201b0b(0x169)],_0xcd2de1):(_0x536dab=typeof globalThis<'u'?globalThis:_0x536dab||self,_0xcd2de1(_0x536dab[_0x201b0b(0x18a)],_0x536dab['UniverCore'],_0x536dab[_0x201b0b(0x17d)]));}(this,function(_0x5b2d4a,_0x51296d,_0x2e6067){const _0xd80e14=_0xed4d;var _0x3ac40a=class extends _0x2e6067['FDocument']{[_0xd80e14(0x180)](_0x26ea18,_0x4396fa={}){const _0x52dbb5=_0xd80e14;let _0x58023a=(0x0,_0x51296d[_0x52dbb5(0x162)])(0xc);return this[_0x52dbb5(0x16f)][_0x52dbb5(0x168)](_0x51296d[_0x52dbb5(0x15f)])[_0x52dbb5(0x17f)](_0x5b2d4a[_0x52dbb5(0x185)]['id'],{..._0x4396fa,'unitId':this['id'],'offset':_0x26ea18,'noteId':_0x58023a})?_0x58023a:null;}[_0xd80e14(0x16c)](){const _0x6687c8=_0xd80e14;var _0x4f49ae;let _0x1d747d=this['getDocumentDataModel']()[_0x6687c8(0x193)]();return(((_0x4f49ae=_0x1d747d['body'])==null?void 0x0:_0x4f49ae['customRanges'])??[])[_0x6687c8(0x18b)](_0xaf9bc5=>_0xaf9bc5[_0x6687c8(0x177)]===_0x51296d[_0x6687c8(0x166)]['FOOTNOTE'])[_0x6687c8(0x17c)]((_0x3392ca,_0x156e9f)=>_0x3392ca[_0x6687c8(0x181)]-_0x156e9f['startIndex'])['flatMap'](_0x301848=>{const _0x2f6c5a=_0x6687c8;var _0x208fcf,_0x5aacf9;let _0x2b7ad3=(_0x208fcf=_0x301848[_0x2f6c5a(0x163)])==null?void 0x0:_0x208fcf[_0x2f6c5a(0x16e)],_0x3412bb=typeof _0x2b7ad3==_0x2f6c5a(0x194)?(_0x5aacf9=_0x1d747d[_0x2f6c5a(0x192)])==null?void 0x0:_0x5aacf9[_0x2b7ad3]:void 0x0;return _0x3412bb?[_0x51296d[_0x2f6c5a(0x174)][_0x2f6c5a(0x16b)](_0x3412bb)]:[];});}[_0xd80e14(0x176)](_0x247604){const _0x2aab80=_0xd80e14;return this[_0x2aab80(0x16f)]['get'](_0x51296d[_0x2aab80(0x15f)])[_0x2aab80(0x17f)](_0x5b2d4a[_0x2aab80(0x191)]['id'],{'unitId':this['id'],'noteId':_0x247604});}[_0xd80e14(0x173)](_0x314729){const _0x24558d=_0xd80e14;var _0x14400f,_0x47d428;let _0x175f75=this[_0x24558d(0x179)]()[_0x24558d(0x193)](),_0x1a6810=_0x314729==null?(_0x14400f=_0x175f75[_0x24558d(0x161)])==null?void 0x0:_0x14400f['footnote']:(_0x47d428=_0x175f75[_0x24558d(0x188)])==null||(_0x47d428=_0x47d428[_0x24558d(0x15e)])==null||(_0x47d428=_0x47d428[_0x24558d(0x18c)](_0x123e1a=>_0x123e1a[_0x24558d(0x172)]===_0x314729))==null||(_0x47d428=_0x47d428[_0x24558d(0x167)])==null?void 0x0:_0x47d428[_0x24558d(0x170)];return _0x1a6810==null?void 0x0:_0x51296d[_0x24558d(0x174)][_0x24558d(0x16b)](_0x1a6810);}[_0xd80e14(0x187)](_0x407cd2,_0x27e0c8){const _0x159ecf=_0xd80e14;return this['_injector'][_0x159ecf(0x168)](_0x51296d[_0x159ecf(0x15f)])['syncExecuteCommand'](_0x5b2d4a[_0x159ecf(0x18d)]['id'],{'unitId':this['id'],'settings':_0x407cd2,'sectionId':_0x27e0c8});}[_0xd80e14(0x190)](_0x10e569,_0x351760={}){const _0x3649b3=_0xd80e14;let _0x19a940=(0x0,_0x51296d['generateRandomId'])(0xc);return this[_0x3649b3(0x16f)][_0x3649b3(0x168)](_0x51296d[_0x3649b3(0x15f)])[_0x3649b3(0x17f)](_0x5b2d4a['InsertDocumentEndnoteCommand']['id'],{..._0x351760,'unitId':this['id'],'offset':_0x10e569,'noteId':_0x19a940})?_0x19a940:null;}[_0xd80e14(0x175)](){const _0x3c6a2c=_0xd80e14;var _0x2525fa;let _0x55863e=this[_0x3c6a2c(0x179)]()[_0x3c6a2c(0x193)]();return(((_0x2525fa=_0x55863e[_0x3c6a2c(0x188)])==null?void 0x0:_0x2525fa[_0x3c6a2c(0x186)])??[])[_0x3c6a2c(0x18b)](_0x79b7f6=>_0x79b7f6[_0x3c6a2c(0x177)]===_0x51296d[_0x3c6a2c(0x166)]['ENDNOTE'])['sort']((_0xd6189e,_0xa24fbf)=>_0xd6189e[_0x3c6a2c(0x181)]-_0xa24fbf['startIndex'])[_0x3c6a2c(0x178)](_0x184a82=>{const _0x124a31=_0x3c6a2c;var _0xda0f94,_0x2893f7;let _0x1ef9e1=(_0xda0f94=_0x184a82[_0x124a31(0x163)])==null?void 0x0:_0xda0f94[_0x124a31(0x16e)],_0x1d5bbd=typeof _0x1ef9e1==_0x124a31(0x194)?(_0x2893f7=_0x55863e[_0x124a31(0x192)])==null?void 0x0:_0x2893f7[_0x1ef9e1]:void 0x0;return _0x1d5bbd?[_0x51296d[_0x124a31(0x174)][_0x124a31(0x16b)](_0x1d5bbd)]:[];});}[_0xd80e14(0x189)](_0x258f13){const _0x33af99=_0xd80e14;return this['_injector'][_0x33af99(0x168)](_0x51296d['ICommandService'])[_0x33af99(0x17f)](_0x5b2d4a[_0x33af99(0x197)]['id'],{'unitId':this['id'],'noteId':_0x258f13});}[_0xd80e14(0x16a)](_0x5f5b0a){const _0x2b41ca=_0xd80e14;var _0x55d35e,_0x3e42b7;let _0x3d097e=this[_0x2b41ca(0x179)]()[_0x2b41ca(0x193)](),_0x11fe41=_0x5f5b0a==null?(_0x55d35e=_0x3d097e[_0x2b41ca(0x161)])==null?void 0x0:_0x55d35e[_0x2b41ca(0x17b)]:(_0x3e42b7=_0x3d097e[_0x2b41ca(0x188)])==null||(_0x3e42b7=_0x3e42b7[_0x2b41ca(0x15e)])==null||(_0x3e42b7=_0x3e42b7['find'](_0x460f6d=>_0x460f6d['sectionId']===_0x5f5b0a))==null||(_0x3e42b7=_0x3e42b7[_0x2b41ca(0x167)])==null?void 0x0:_0x3e42b7[_0x2b41ca(0x17b)];return _0x11fe41==null?void 0x0:_0x51296d[_0x2b41ca(0x174)]['deepClone'](_0x11fe41);}['setEndnoteSettings'](_0x335eb0,_0x53d59a){const _0x1b1e74=_0xd80e14;return this[_0x1b1e74(0x16f)][_0x1b1e74(0x168)](_0x51296d['ICommandService'])[_0x1b1e74(0x17f)](_0x5b2d4a['SetDocumentEndnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x335eb0,'sectionId':_0x53d59a});}};_0x2e6067[_0xd80e14(0x15d)][_0xd80e14(0x17e)](_0x3ac40a);}));function _0x3fd5(){const _0x26627d=['getSnapshot','string','amd','814xhGEcD','DeleteDocumentEndnoteCommand','FDocument','sectionBreaks','ICommandService','@univerjs-pro/docs-reference','noteSettings','generateRandomId','properties','1772520nOtwGD','107191ocUmrz','CustomRangeType','noteProperties','get','@univerjs/docs/facade','getEndnoteSettings','deepClone','getFootnotes','@univerjs/core','noteId','_injector','footnote','210OmhAZM','sectionId','getFootnoteSettings','Tools','getEndnotes','deleteFootnote','rangeType','flatMap','getDocumentDataModel','10JzhKBI','endnote','sort','UniverDocsFacade','extend','syncExecuteCommand','insertFootnote','startIndex','945736isgVLx','7470slOUpy','671067hpBzdt','InsertDocumentFootnoteCommand','customRanges','setFootnoteSettings','body','deleteEndnote','UniverProDocsReference','filter','find','SetDocumentFootnoteSettingsCommand','1051FwAOfI','1563606wFWxne','insertEndnote','DeleteDocumentFootnoteCommand','notes'];_0x3fd5=function(){return _0x26627d;};return _0x3fd5();}
1
+ (function(_0x56cf62,_0x1ea2dc){const _0x2249b8=_0x4196,_0x3b23e7=_0x56cf62();while(!![]){try{const _0x511d44=parseInt(_0x2249b8(0x14c))/0x1*(-parseInt(_0x2249b8(0x147))/0x2)+-parseInt(_0x2249b8(0x14d))/0x3+-parseInt(_0x2249b8(0x133))/0x4+parseInt(_0x2249b8(0x16d))/0x5+-parseInt(_0x2249b8(0x164))/0x6*(-parseInt(_0x2249b8(0x161))/0x7)+parseInt(_0x2249b8(0x165))/0x8+-parseInt(_0x2249b8(0x169))/0x9*(-parseInt(_0x2249b8(0x152))/0xa);if(_0x511d44===_0x1ea2dc)break;else _0x3b23e7['push'](_0x3b23e7['shift']());}catch(_0x29aba8){_0x3b23e7['push'](_0x3b23e7['shift']());}}}(_0xc98f,0xeebf5),function(_0x189a1c,_0x30f1b8){const _0x1978dd=_0x4196;typeof exports==_0x1978dd(0x12f)&&typeof module<'u'?_0x30f1b8(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x1978dd(0x146)&&define[_0x1978dd(0x163)]?define([_0x1978dd(0x13f),'@univerjs/core',_0x1978dd(0x132)],_0x30f1b8):(_0x189a1c=typeof globalThis<'u'?globalThis:_0x189a1c||self,_0x30f1b8(_0x189a1c[_0x1978dd(0x136)],_0x189a1c[_0x1978dd(0x150)],_0x189a1c[_0x1978dd(0x144)]));}(this,function(_0x5d46d4,_0x13f39f,_0x5dd4ac){const _0xe569d5=_0x4196;var _0xc73eea=class extends _0x5dd4ac[_0xe569d5(0x14b)]{[_0xe569d5(0x13d)](_0x468c0c,_0x3f1cb4={}){const _0x13b39b=_0xe569d5;let _0xcbd70e=(0x0,_0x13f39f[_0x13b39b(0x157)])(0xc);return this['_injector'][_0x13b39b(0x155)](_0x13f39f[_0x13b39b(0x134)])[_0x13b39b(0x168)](_0x5d46d4[_0x13b39b(0x142)]['id'],{..._0x3f1cb4,'unitId':this['id'],'offset':_0x468c0c,'noteId':_0xcbd70e})?_0xcbd70e:null;}[_0xe569d5(0x15c)](){const _0x10b50b=_0xe569d5;var _0x2b5810;let _0x538b81=this[_0x10b50b(0x13a)]()[_0x10b50b(0x140)]();return(((_0x2b5810=_0x538b81['body'])==null?void 0x0:_0x2b5810[_0x10b50b(0x137)])??[])['filter'](_0x1016c6=>_0x1016c6[_0x10b50b(0x138)]===_0x13f39f[_0x10b50b(0x151)][_0x10b50b(0x162)])['sort']((_0x170503,_0x4d6fac)=>_0x170503['startIndex']-_0x4d6fac[_0x10b50b(0x158)])[_0x10b50b(0x141)](_0x5cce06=>{const _0x1a1bba=_0x10b50b;var _0x447b42,_0x2e4025;let _0x5be7a0=(_0x447b42=_0x5cce06[_0x1a1bba(0x143)])==null?void 0x0:_0x447b42[_0x1a1bba(0x167)],_0xd31b90=typeof _0x5be7a0==_0x1a1bba(0x154)?(_0x2e4025=_0x538b81[_0x1a1bba(0x14a)])==null?void 0x0:_0x2e4025[_0x5be7a0]:void 0x0;return _0xd31b90?[_0x13f39f[_0x1a1bba(0x14e)][_0x1a1bba(0x13c)](_0xd31b90)]:[];});}[_0xe569d5(0x135)](_0x17781e){const _0x3c8c6d=_0xe569d5;return this['_injector'][_0x3c8c6d(0x155)](_0x13f39f[_0x3c8c6d(0x134)])['syncExecuteCommand'](_0x5d46d4[_0x3c8c6d(0x166)]['id'],{'unitId':this['id'],'noteId':_0x17781e});}['getFootnoteSettings'](_0x1a19c6){const _0x43895e=_0xe569d5;var _0x5d229f,_0x5b7365;let _0x389f1e=this[_0x43895e(0x13a)]()[_0x43895e(0x140)](),_0x23caad=_0x1a19c6==null?(_0x5d229f=_0x389f1e[_0x43895e(0x16a)])==null?void 0x0:_0x5d229f[_0x43895e(0x15d)]:(_0x5b7365=_0x389f1e[_0x43895e(0x130)])==null||(_0x5b7365=_0x5b7365[_0x43895e(0x14f)])==null||(_0x5b7365=_0x5b7365['find'](_0x52da6f=>_0x52da6f[_0x43895e(0x160)]===_0x1a19c6))==null||(_0x5b7365=_0x5b7365[_0x43895e(0x131)])==null?void 0x0:_0x5b7365[_0x43895e(0x15d)];return _0x23caad==null?void 0x0:_0x13f39f[_0x43895e(0x14e)]['deepClone'](_0x23caad);}['setFootnoteSettings'](_0x53c040,_0x577f32){const _0x285b3f=_0xe569d5;return this['_injector'][_0x285b3f(0x155)](_0x13f39f[_0x285b3f(0x134)])[_0x285b3f(0x168)](_0x5d46d4[_0x285b3f(0x13e)]['id'],{'unitId':this['id'],'settings':_0x53c040,'sectionId':_0x577f32});}['insertEndnote'](_0x113fb9,_0x5e0d88={}){const _0x3acbc3=_0xe569d5;let _0x396d8b=(0x0,_0x13f39f[_0x3acbc3(0x157)])(0xc);return this[_0x3acbc3(0x159)][_0x3acbc3(0x155)](_0x13f39f['ICommandService'])[_0x3acbc3(0x168)](_0x5d46d4[_0x3acbc3(0x15a)]['id'],{..._0x5e0d88,'unitId':this['id'],'offset':_0x113fb9,'noteId':_0x396d8b})?_0x396d8b:null;}[_0xe569d5(0x148)](){const _0x5a5a14=_0xe569d5;var _0x186411;let _0x4b412e=this[_0x5a5a14(0x13a)]()['getSnapshot']();return(((_0x186411=_0x4b412e[_0x5a5a14(0x130)])==null?void 0x0:_0x186411[_0x5a5a14(0x137)])??[])[_0x5a5a14(0x145)](_0x234f04=>_0x234f04[_0x5a5a14(0x138)]===_0x13f39f[_0x5a5a14(0x151)][_0x5a5a14(0x156)])[_0x5a5a14(0x15b)]((_0x5b0690,_0x3c5462)=>_0x5b0690[_0x5a5a14(0x158)]-_0x3c5462[_0x5a5a14(0x158)])[_0x5a5a14(0x141)](_0x101b0b=>{const _0x35425d=_0x5a5a14;var _0x44f1a0,_0x244e92;let _0x3e0f00=(_0x44f1a0=_0x101b0b[_0x35425d(0x143)])==null?void 0x0:_0x44f1a0[_0x35425d(0x167)],_0x33b221=typeof _0x3e0f00==_0x35425d(0x154)?(_0x244e92=_0x4b412e['notes'])==null?void 0x0:_0x244e92[_0x3e0f00]:void 0x0;return _0x33b221?[_0x13f39f[_0x35425d(0x14e)]['deepClone'](_0x33b221)]:[];});}[_0xe569d5(0x15f)](_0x1b61a6){const _0x31a0f4=_0xe569d5;return this[_0x31a0f4(0x159)][_0x31a0f4(0x155)](_0x13f39f[_0x31a0f4(0x134)])[_0x31a0f4(0x168)](_0x5d46d4[_0x31a0f4(0x139)]['id'],{'unitId':this['id'],'noteId':_0x1b61a6});}[_0xe569d5(0x13b)](_0x385177){const _0x51a912=_0xe569d5;var _0x2b21b5,_0x3ec4e5;let _0x2fb14c=this['getDocumentDataModel']()[_0x51a912(0x140)](),_0x1dd14c=_0x385177==null?(_0x2b21b5=_0x2fb14c[_0x51a912(0x16a)])==null?void 0x0:_0x2b21b5[_0x51a912(0x15e)]:(_0x3ec4e5=_0x2fb14c[_0x51a912(0x130)])==null||(_0x3ec4e5=_0x3ec4e5[_0x51a912(0x14f)])==null||(_0x3ec4e5=_0x3ec4e5[_0x51a912(0x16c)](_0x41df7f=>_0x41df7f[_0x51a912(0x160)]===_0x385177))==null||(_0x3ec4e5=_0x3ec4e5[_0x51a912(0x131)])==null?void 0x0:_0x3ec4e5['endnote'];return _0x1dd14c==null?void 0x0:_0x13f39f['Tools'][_0x51a912(0x13c)](_0x1dd14c);}[_0xe569d5(0x153)](_0x5e78a6,_0x532bbe){const _0x48e2d3=_0xe569d5;return this[_0x48e2d3(0x159)][_0x48e2d3(0x155)](_0x13f39f[_0x48e2d3(0x134)])[_0x48e2d3(0x168)](_0x5d46d4[_0x48e2d3(0x16b)]['id'],{'unitId':this['id'],'settings':_0x5e78a6,'sectionId':_0x532bbe});}};_0x5dd4ac[_0xe569d5(0x14b)][_0xe569d5(0x149)](_0xc73eea);}));function _0x4196(_0x27fcd3,_0x455b60){_0x27fcd3=_0x27fcd3-0x12f;const _0xc98f19=_0xc98f();let _0x4196c6=_0xc98f19[_0x27fcd3];return _0x4196c6;}function _0xc98f(){const _0x1fa785=['getSnapshot','flatMap','InsertDocumentFootnoteCommand','properties','UniverDocsFacade','filter','function','5014SdAIlA','getEndnotes','extend','notes','FDocument','5dmlLkN','4537458OvfeVm','Tools','sectionBreaks','UniverCore','CustomRangeType','50YHDsJY','setEndnoteSettings','string','get','ENDNOTE','generateRandomId','startIndex','_injector','InsertDocumentEndnoteCommand','sort','getFootnotes','footnote','endnote','deleteEndnote','sectionId','1169MRYbYL','FOOTNOTE','amd','28758hIQEZk','11235064oTmnzS','DeleteDocumentFootnoteCommand','noteId','syncExecuteCommand','431901oSPMjE','noteSettings','SetDocumentEndnoteSettingsCommand','find','9680560QmFFkr','object','body','noteProperties','@univerjs/docs/facade','7511764uvTiAL','ICommandService','deleteFootnote','UniverProDocsReference','customRanges','rangeType','DeleteDocumentEndnoteCommand','getDocumentDataModel','getEndnoteSettings','deepClone','insertFootnote','SetDocumentFootnoteSettingsCommand','@univerjs-pro/docs-reference'];_0xc98f=function(){return _0x1fa785;};return _0xc98f();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1ee6(_0x1906d8,_0x326d1d){_0x1906d8=_0x1906d8-0x1a1;const _0x38963d=_0x3896();let _0x1ee6ca=_0x38963d[_0x1906d8];return _0x1ee6ca;}(function(_0x37cd6d,_0x133dd4){const _0x4b554f=_0x1ee6,_0x35b340=_0x37cd6d();while(!![]){try{const _0xd919da=-parseInt(_0x4b554f(0x1c1))/0x1*(parseInt(_0x4b554f(0x21b))/0x2)+-parseInt(_0x4b554f(0x214))/0x3*(parseInt(_0x4b554f(0x1e1))/0x4)+-parseInt(_0x4b554f(0x208))/0x5+parseInt(_0x4b554f(0x1cd))/0x6*(-parseInt(_0x4b554f(0x1f4))/0x7)+-parseInt(_0x4b554f(0x1d5))/0x8*(-parseInt(_0x4b554f(0x1e9))/0x9)+-parseInt(_0x4b554f(0x1ab))/0xa+parseInt(_0x4b554f(0x1f3))/0xb*(parseInt(_0x4b554f(0x21e))/0xc);if(_0xd919da===_0x133dd4)break;else _0x35b340['push'](_0x35b340['shift']());}catch(_0x224859){_0x35b340['push'](_0x35b340['shift']());}}}(_0x3896,0xe7fe1),function(_0x2a695d,_0x519143){const _0xa5a7e5=_0x1ee6;typeof exports==_0xa5a7e5(0x1f5)&&typeof module<'u'?_0x519143(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0xa5a7e5(0x1af),'@univerjs/core',_0xa5a7e5(0x1fc),_0xa5a7e5(0x1bc)],_0x519143):(_0x2a695d=typeof globalThis<'u'?globalThis:_0x2a695d||self,_0x519143(_0x2a695d[_0xa5a7e5(0x1bf)]={},_0x2a695d['UniverCore'],_0x2a695d['UniverDocs'],_0x2a695d[_0xa5a7e5(0x1e5)]));}(this,function(_0x3423f4,_0x4deab6,_0x53fd2c,_0x30e2f7){const _0x4c827f=_0x1ee6;Object[_0x4c827f(0x1c6)](_0x3423f4,Symbol[_0x4c827f(0x1e8)],{'value':_0x4c827f(0x21c)});function _0x515c54(_0x154b74,_0x1ededb,_0x542636){const _0x4b2111=_0x4c827f;if(_0x154b74[_0x4b2111(0x20c)]!=null&&!(_0x1ededb===_0x4b2111(0x1fa)?[_0x4b2111(0x1b5),_0x4b2111(0x1ff)]:[_0x4b2111(0x205),_0x4b2111(0x1a8)])[_0x4b2111(0x1ef)](_0x154b74[_0x4b2111(0x20c)])||_0x154b74[_0x4b2111(0x229)]!=null&&!(_0x1ededb===_0x4b2111(0x1fa)?[_0x4b2111(0x1a6),_0x4b2111(0x1bb),_0x4b2111(0x1ce)]:[_0x4b2111(0x1a6),'eachSect'])[_0x4b2111(0x1ef)](_0x154b74[_0x4b2111(0x229)])||_0x154b74[_0x4b2111(0x224)]!=null&&(!Number[_0x4b2111(0x211)](_0x154b74[_0x4b2111(0x224)])||_0x154b74[_0x4b2111(0x224)]<0x1)||_0x4b2111(0x1ac)in _0x154b74&&_0x154b74['columnCount']!=null&&(_0x1ededb!=='footnote'||!Number[_0x4b2111(0x211)](_0x154b74['columnCount'])||_0x154b74[_0x4b2111(0x1ac)]<0x0||_0x154b74[_0x4b2111(0x1ac)]>0x4)||_0x154b74[_0x4b2111(0x1d3)]!=null&&(typeof _0x154b74['numberFormat']!=_0x4b2111(0x215)||_0x154b74[_0x4b2111(0x1d3)][_0x4b2111(0x1e2)]===0x0))return!0x1;for(let _0x1b0513 of[_0x154b74[_0x4b2111(0x1a9)],_0x154b74[_0x4b2111(0x20a)],_0x154b74[_0x4b2111(0x1da)]])if(_0x1b0513!=null&&(_0x542636!=null||(0x0,_0x4deab6[_0x4b2111(0x1e7)])(_0x1b0513)[_0x4b2111(0x1e2)]>0x0))return!0x1;return!0x0;}function _0x280a64(_0x1de57e,_0x8de156,_0x796c42){const _0x4d58d0=_0x4c827f;var _0x1b0bcd,_0x1d5100;if(_0x8de156[_0x4d58d0(0x1a4)]!=null&&!_0x515c54(_0x8de156['settings'],_0x796c42,_0x8de156['sectionId']))return!0x1;let _0x4f3f36=((_0x1b0bcd=_0x1de57e[_0x4d58d0(0x1f9)])==null||(_0x1b0bcd=_0x1b0bcd[_0x4d58d0(0x1a2)])==null?void 0x0:_0x1b0bcd['findIndex'](_0x47f1f1=>_0x47f1f1[_0x4d58d0(0x1ed)]===_0x8de156[_0x4d58d0(0x1ed)]))??-0x1;if(_0x8de156[_0x4d58d0(0x1ed)]!=null&&_0x4f3f36<0x0)return!0x1;let _0x3a51c4=_0x8de156[_0x4d58d0(0x1ed)]==null?_0x1de57e['noteSettings']:(_0x1d5100=_0x1de57e[_0x4d58d0(0x1f9)])==null||(_0x1d5100=_0x1d5100[_0x4d58d0(0x1a2)])==null?void 0x0:_0x1d5100[_0x4f3f36][_0x4d58d0(0x1c2)],_0x1f735d=_0x8de156['settings']==null?void 0x0:_0x4deab6[_0x4d58d0(0x201)][_0x4d58d0(0x1ec)](_0x8de156['settings']),_0x27e62e=_0x8de156[_0x4d58d0(0x1ed)]==null?['noteSettings']:['body',_0x4d58d0(0x1a2),_0x4f3f36,_0x4d58d0(0x1c2)],_0x111701=_0x4deab6[_0x4d58d0(0x1cf)][_0x4d58d0(0x1f0)](),_0x5c0db6=null;if(_0x4deab6['Tools'][_0x4d58d0(0x213)](_0x3a51c4==null?void 0x0:_0x3a51c4[_0x796c42],_0x1f735d)||(_0x5c0db6=_0x3a51c4==null?_0x111701[_0x4d58d0(0x1b1)](_0x27e62e,{[_0x796c42]:_0x1f735d}):_0x8de156['sectionId']!=null&&_0x1f735d==null&&Object[_0x4d58d0(0x1b8)](_0x3a51c4)[_0x4d58d0(0x1ad)](_0x9cdee8=>_0x9cdee8===_0x796c42)?_0x111701[_0x4d58d0(0x220)](_0x27e62e,_0x3a51c4):_0x111701[_0x4d58d0(0x1ba)]([..._0x27e62e,_0x796c42],_0x3a51c4[_0x796c42],_0x1f735d)),_0x8de156['suppressEndnotes']!=null){var _0x4b47dd;if(_0x796c42!==_0x4d58d0(0x1d1)||_0x8de156[_0x4d58d0(0x1ed)]==null||typeof _0x8de156['suppressEndnotes']!=_0x4d58d0(0x1cb))return!0x1;let _0x507e92=(_0x4b47dd=_0x1de57e['body'])==null||(_0x4b47dd=_0x4b47dd[_0x4d58d0(0x1a2)])==null?void 0x0:_0x4b47dd[_0x4f3f36][_0x4d58d0(0x1bd)];_0x507e92!==_0x8de156[_0x4d58d0(0x1bd)]&&(_0x5c0db6=_0x4deab6[_0x4d58d0(0x1cf)][_0x4d58d0(0x200)](_0x5c0db6,_0x111701[_0x4d58d0(0x1ba)]([_0x4d58d0(0x1f9),_0x4d58d0(0x1a2),_0x4f3f36,'suppressEndnotes'],_0x507e92,_0x8de156[_0x4d58d0(0x1bd)])));}return _0x5c0db6;}function _0x556ca2(_0x5998d3,_0x27f9bc,_0x5136bf){const _0x16a9c8=_0x4c827f;if(!_0x27f9bc)return!0x1;let _0x5588cb=_0x5998d3[_0x16a9c8(0x1c4)](_0x4deab6[_0x16a9c8(0x1d9)])['getUnit'](_0x27f9bc['unitId'],_0x4deab6[_0x16a9c8(0x1fe)][_0x16a9c8(0x218)]),_0x3ece3e=_0x5588cb==null?void 0x0:_0x5588cb[_0x16a9c8(0x1ee)]();if(!_0x3ece3e||_0x3ece3e['documentStyle'][_0x16a9c8(0x207)]!==_0x4deab6['DocumentFlavor'][_0x16a9c8(0x1d2)])return!0x1;let _0x3c97b4=_0x280a64(_0x3ece3e,_0x27f9bc,_0x5136bf);return _0x3c97b4===!0x1||_0x4deab6['JSONX'][_0x16a9c8(0x225)](_0x3c97b4)?!0x1:!!_0x5998d3['get'](_0x4deab6[_0x16a9c8(0x1c5)])[_0x16a9c8(0x204)](_0x53fd2c[_0x16a9c8(0x1c0)]['id'],{'unitId':_0x27f9bc[_0x16a9c8(0x1ae)],'segmentId':'','historyAction':_0x16a9c8(0x209)+_0x5136bf+_0x16a9c8(0x216),'actions':_0x3c97b4,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x24cfba={'id':_0x4c827f(0x1df),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x3f5ec5,_0x301b3a)=>_0x556ca2(_0x3f5ec5,_0x301b3a,'footnote')},_0x4e5a24={'id':_0x4c827f(0x1d7),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x1a6ff9,_0x255f91)=>_0x556ca2(_0x1a6ff9,_0x255f91,_0x4c827f(0x1d1))};function _0x2026e1(_0x5a51f9,_0x28733a){const _0x503ab9=_0x4c827f;return(_0x5a51f9==null?void 0x0:_0x5a51f9[_0x503ab9(0x1b0)][_0x503ab9(0x207)])===_0x4deab6['DocumentFlavor'][_0x503ab9(0x1d2)]&&!!_0x5a51f9['body']&&Number['isInteger'](_0x28733a)&&_0x28733a>=0x0&&_0x28733a<_0x5a51f9['body'][_0x503ab9(0x203)][_0x503ab9(0x1e2)]-0x1;}function _0x2217d0(_0x15a33,_0x1d3975,_0x3f557f){const _0x42f274=_0x4c827f;var _0x4b4755,_0x29f6c3;if(_0x1d3975[_0x42f274(0x1a4)]===void 0x0&&_0x1d3975['suppressEndnotes']===void 0x0)return null;let _0x39c274=_0x1d3975['sectionId']==null?(_0x4b4755=_0x15a33['noteSettings'])==null?void 0x0:_0x4b4755[_0x3f557f]:(_0x29f6c3=_0x15a33[_0x42f274(0x1f9)])==null||(_0x29f6c3=_0x29f6c3[_0x42f274(0x1a2)])==null||(_0x29f6c3=_0x29f6c3['find'](_0x1c5141=>_0x1c5141[_0x42f274(0x1ed)]===_0x1d3975['sectionId']))==null||(_0x29f6c3=_0x29f6c3[_0x42f274(0x1c2)])==null?void 0x0:_0x29f6c3[_0x3f557f];return _0x280a64(_0x15a33,{'settings':_0x1d3975['settings']===void 0x0?_0x39c274??null:_0x1d3975['settings'],'sectionId':_0x1d3975[_0x42f274(0x1ed)],'suppressEndnotes':_0x1d3975[_0x42f274(0x1bd)]},_0x3f557f);}function _0x435730(_0x5e37ac,_0x3e339f,_0x407108){const _0x295037=_0x4c827f;var _0x2a947f,_0x18a7d1,_0x316bb9;if(!_0x3e339f||_0x3e339f[_0x295037(0x1f1)])return!0x1;let _0x5c2440=_0x5e37ac['get'](_0x4deab6[_0x295037(0x1d9)])[_0x295037(0x227)](_0x3e339f[_0x295037(0x1ae)],_0x4deab6[_0x295037(0x1fe)]['UNIVER_DOC']),_0xbe44e9=_0x5c2440==null?void 0x0:_0x5c2440[_0x295037(0x1ee)](),{offset:_0x2f5f6d}=_0x3e339f;if(!_0x2026e1(_0xbe44e9,_0x2f5f6d))return!0x1;let _0x33b5aa=_0x2217d0(_0xbe44e9,_0x3e339f,_0x407108);if(_0x33b5aa===!0x1)return!0x1;let _0x5bd45a=_0x3e339f[_0x295037(0x223)]??(0x0,_0x4deab6[_0x295037(0x1f8)])(0xc);if((_0x2a947f=_0xbe44e9[_0x295037(0x22e)])!=null&&_0x2a947f[_0x5bd45a]||(_0x18a7d1=_0xbe44e9['headers'])!=null&&_0x18a7d1[_0x5bd45a]||(_0x316bb9=_0xbe44e9[_0x295037(0x1d0)])!=null&&_0x316bb9[_0x5bd45a])return!0x1;let _0x14179c=_0x4deab6[_0x295037(0x201)][_0x295037(0x1ec)]({'type':_0x407108,'noteId':_0x5bd45a,'body':_0x3e339f[_0x295037(0x1f9)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x4deab6[_0x295037(0x1c8)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x4deab6[_0x295037(0x1b9)])(new Set()),'startIndex':0x1}]},'customMark':_0x3e339f[_0x295037(0x1c7)],'referenceTextStyle':_0x3e339f[_0x295037(0x1a3)],'tableSource':_0x3e339f[_0x295037(0x1db)],'drawings':_0x3e339f[_0x295037(0x217)],'drawingsOrder':_0x3e339f[_0x295037(0x1cc)],'lists':_0x3e339f[_0x295037(0x1aa)]});if((0x0,_0x4deab6[_0x295037(0x22c)])({'notes':{[_0x5bd45a]:_0x14179c}})['length']>0x0)return!0x1;let _0x391c0d=new _0x4deab6[(_0x295037(0x1a1))]();_0x2f5f6d>0x0&&_0x391c0d['retain'](_0x2f5f6d),_0x391c0d[_0x295037(0x1c9)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x407108===_0x295037(0x1fa)?_0x4deab6[_0x295037(0x20d)]['FOOTNOTE']:_0x4deab6[_0x295037(0x20d)][_0x295037(0x1e6)],'rangeId':(0x0,_0x4deab6['generateRandomId'])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x5bd45a}}]});let _0x19c76d=_0x4deab6[_0x295037(0x1cf)][_0x295037(0x1f0)](),_0x479f2d=_0xbe44e9[_0x295037(0x22e)]==null?_0x19c76d[_0x295037(0x1b1)](['notes'],{[_0x5bd45a]:_0x14179c}):_0x19c76d['insertOp']([_0x295037(0x22e),_0x5bd45a],_0x14179c);return!!_0x5e37ac[_0x295037(0x1c4)](_0x4deab6[_0x295037(0x1c5)])[_0x295037(0x204)](_0x53fd2c[_0x295037(0x1c0)]['id'],{'unitId':_0x3e339f[_0x295037(0x1ae)],'segmentId':'','historyAction':'insert-'+_0x407108,'actions':_0x4deab6[_0x295037(0x1cf)]['compose'](_0x4deab6[_0x295037(0x1cf)][_0x295037(0x200)](_0x33b5aa,_0x479f2d),_0x19c76d[_0x295037(0x1d8)](_0x391c0d[_0x295037(0x1fb)](),['body'])),'textRanges':[{'segmentId':_0x5bd45a,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0xc72110(_0x2b6b82,_0x14dc99,_0xaebaa3){const _0xd0952f=_0x4c827f;var _0xca8857,_0x233368;if(!_0x14dc99)return!0x1;let _0x2ea9fb=_0x2b6b82[_0xd0952f(0x1c4)](_0x4deab6[_0xd0952f(0x1d9)])[_0xd0952f(0x227)](_0x14dc99[_0xd0952f(0x1ae)],_0x4deab6[_0xd0952f(0x1fe)][_0xd0952f(0x218)]),_0x1b1d87=_0x2ea9fb==null?void 0x0:_0x2ea9fb[_0xd0952f(0x1ee)](),_0x47a798=_0x1b1d87==null||(_0xca8857=_0x1b1d87[_0xd0952f(0x22e)])==null?void 0x0:_0xca8857[_0x14dc99['noteId']],_0x5e5539=_0x1b1d87==null||(_0x233368=_0x1b1d87[_0xd0952f(0x1f9)])==null||(_0x233368=_0x233368[_0xd0952f(0x22d)])==null?void 0x0:_0x233368[_0xd0952f(0x1d4)](_0x54abd5=>{const _0x11ee0c=_0xd0952f;var _0x14ca66;return(_0x54abd5['rangeType']===_0x4deab6[_0x11ee0c(0x20d)][_0x11ee0c(0x226)]||_0x54abd5['rangeType']===_0x4deab6['CustomRangeType'][_0x11ee0c(0x1e6)])&&((_0x14ca66=_0x54abd5[_0x11ee0c(0x1d6)])==null?void 0x0:_0x14ca66[_0x11ee0c(0x223)])===_0x14dc99[_0x11ee0c(0x223)];});if(!_0x1b1d87||_0x1b1d87[_0xd0952f(0x1b0)][_0xd0952f(0x207)]!==_0x4deab6[_0xd0952f(0x1b4)][_0xd0952f(0x1d2)]||!_0x47a798||_0x47a798[_0xd0952f(0x228)]!==_0xaebaa3||!_0x5e5539)return!0x1;let _0xe04e45=new _0x4deab6['TextX']();_0x5e5539[_0xd0952f(0x212)]>0x0&&_0xe04e45[_0xd0952f(0x1b6)](_0x5e5539[_0xd0952f(0x212)]),_0xe04e45[_0xd0952f(0x1b7)](0x1);let _0x24e3a3=_0x4deab6[_0xd0952f(0x1cf)][_0xd0952f(0x1f0)]();return!!_0x2b6b82['get'](_0x4deab6['ICommandService'])[_0xd0952f(0x204)](_0x53fd2c[_0xd0952f(0x1c0)]['id'],{'unitId':_0x14dc99[_0xd0952f(0x1ae)],'segmentId':'','historyAction':'delete-'+_0xaebaa3,'actions':_0x4deab6[_0xd0952f(0x1cf)]['compose'](_0x24e3a3[_0xd0952f(0x1d8)](_0xe04e45[_0xd0952f(0x1fb)](),[_0xd0952f(0x1f9)]),_0x24e3a3['removeOp'](['notes',_0x14dc99[_0xd0952f(0x223)]],_0x47a798)),'textRanges':[{'startOffset':_0x5e5539[_0xd0952f(0x212)],'endOffset':_0x5e5539[_0xd0952f(0x212)],'collapsed':!0x0}],'debounce':!0x1});}let _0xb6c042={'id':_0x4c827f(0x1fd),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x95060c,_0x6f6b83)=>_0x435730(_0x95060c,_0x6f6b83,_0x4c827f(0x1fa))},_0x4e90a9={'id':'doc.command.delete-footnote','type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x4d8832,_0x109848)=>_0xc72110(_0x4d8832,_0x109848,_0x4c827f(0x1fa))},_0x1adffe={'id':'doc.command.insert-endnote','type':_0x4deab6['CommandType'][_0x4c827f(0x1de)],'handler':(_0x38d5e9,_0x5ed557)=>_0x435730(_0x38d5e9,_0x5ed557,_0x4c827f(0x1d1))},_0x4c3c40={'id':'doc.command.delete-endnote','type':_0x4deab6[_0x4c827f(0x22a)]['COMMAND'],'handler':(_0x487ab8,_0x1b4229)=>_0xc72110(_0x487ab8,_0x1b4229,'endnote')};var _0x25024f=_0x4c827f(0x219),_0x586be2='1.0.1';let _0x5482c2={};function _0x1d5d27(_0x7c1e69,_0x1b385f){return function(_0x464c10,_0x435fa3){_0x1b385f(_0x464c10,_0x435fa3,_0x7c1e69);};}function _0x27e6ef(_0x554ec2,_0x10343d,_0x448a68,_0xa4b47a){const _0x291103=_0x4c827f;var _0x12372d=arguments['length'],_0x28ee8a=_0x12372d<0x3?_0x10343d:_0xa4b47a===null?_0xa4b47a=Object[_0x291103(0x22b)](_0x10343d,_0x448a68):_0xa4b47a,_0x4168f0;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x291103(0x210))_0x28ee8a=Reflect[_0x291103(0x221)](_0x554ec2,_0x10343d,_0x448a68,_0xa4b47a);else{for(var _0x165f3d=_0x554ec2[_0x291103(0x1e2)]-0x1;_0x165f3d>=0x0;_0x165f3d--)(_0x4168f0=_0x554ec2[_0x165f3d])&&(_0x28ee8a=(_0x12372d<0x3?_0x4168f0(_0x28ee8a):_0x12372d>0x3?_0x4168f0(_0x10343d,_0x448a68,_0x28ee8a):_0x4168f0(_0x10343d,_0x448a68))||_0x28ee8a);}return _0x12372d>0x3&&_0x28ee8a&&Object[_0x291103(0x1c6)](_0x10343d,_0x448a68,_0x28ee8a),_0x28ee8a;}function _0xd017b1(_0x4db83d){'@babel/helpers - typeof';const _0x459aff=_0x4c827f;return _0xd017b1=typeof Symbol==_0x459aff(0x210)&&typeof Symbol[_0x459aff(0x1f7)]=='symbol'?function(_0x1f3254){return typeof _0x1f3254;}:function(_0x429ba4){const _0x491cd0=_0x459aff;return _0x429ba4&&typeof Symbol==_0x491cd0(0x210)&&_0x429ba4['constructor']===Symbol&&_0x429ba4!==Symbol[_0x491cd0(0x1ca)]?_0x491cd0(0x206):typeof _0x429ba4;},_0xd017b1(_0x4db83d);}function _0x46496e(_0x4d1fac,_0x3e1c13){const _0x20d0c5=_0x4c827f;if(_0xd017b1(_0x4d1fac)!='object'||!_0x4d1fac)return _0x4d1fac;var _0x26ef5c=_0x4d1fac[Symbol[_0x20d0c5(0x222)]];if(_0x26ef5c!==void 0x0){var _0x5dc3b1=_0x26ef5c[_0x20d0c5(0x1b2)](_0x4d1fac,_0x3e1c13||_0x20d0c5(0x1a5));if(_0xd017b1(_0x5dc3b1)!='object')return _0x5dc3b1;throw TypeError(_0x20d0c5(0x1e4));}return(_0x3e1c13==='string'?String:Number)(_0x4d1fac);}function _0x539435(_0x12a1de){const _0xe00d01=_0x4c827f;var _0x563ab0=_0x46496e(_0x12a1de,_0xe00d01(0x215));return _0xd017b1(_0x563ab0)==_0xe00d01(0x206)?_0x563ab0:_0x563ab0+'';}function _0x323a49(_0x3f89ab,_0x5d517b,_0x21d0db){const _0x141f7a=_0x4c827f;return(_0x5d517b=_0x539435(_0x5d517b))in _0x3f89ab?Object[_0x141f7a(0x1c6)](_0x3f89ab,_0x5d517b,{'value':_0x21d0db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f89ab[_0x5d517b]=_0x21d0db,_0x3f89ab;}let _0x3b82b9=class extends _0x4deab6[_0x4c827f(0x1a7)]{constructor(_0x5e49b7=_0x5482c2,_0x4462f5,_0x4f3de9,_0x271d26){const _0x576d49=_0x4c827f;super(),this[_0x576d49(0x21f)]=_0x5e49b7,this[_0x576d49(0x1b3)]=_0x4462f5,this[_0x576d49(0x1f2)]=_0x4f3de9,this[_0x576d49(0x21d)]=_0x271d26;let {..._0x418dc4}=(0x0,_0x4deab6[_0x576d49(0x1ea)])({},_0x5482c2,this['_config']);this[_0x576d49(0x1f2)][_0x576d49(0x20e)](_0x576d49(0x1e0),_0x418dc4);}['onStarting'](){const _0xf346c2=_0x4c827f;[_0xb6c042,_0x4e90a9,_0x24cfba,_0x1adffe,_0x4c3c40,_0x4e5a24]['forEach'](_0x4e518b=>this['disposeWithMe'](this[_0xf346c2(0x21d)]['registerCommand'](_0x4e518b)));}};_0x323a49(_0x3b82b9,_0x4c827f(0x1dc),'UNIVER_DOCS_REFERENCE_PLUGIN'),_0x323a49(_0x3b82b9,_0x4c827f(0x1dd),_0x25024f),_0x323a49(_0x3b82b9,_0x4c827f(0x202),_0x586be2),_0x323a49(_0x3b82b9,_0x4c827f(0x228),_0x4deab6[_0x4c827f(0x1fe)][_0x4c827f(0x218)]),_0x3b82b9=_0x27e6ef([(0x0,_0x4deab6[_0x4c827f(0x1eb)])(_0x30e2f7['UniverLicensePlugin'],_0x53fd2c[_0x4c827f(0x20b)]),_0x1d5d27(0x1,(0x0,_0x4deab6[_0x4c827f(0x1f6)])(_0x4deab6[_0x4c827f(0x1c3)])),_0x1d5d27(0x2,_0x4deab6[_0x4c827f(0x1e3)]),_0x1d5d27(0x3,_0x4deab6[_0x4c827f(0x1c5)])],_0x3b82b9),_0x3423f4['DeleteDocumentEndnoteCommand']=_0x4c3c40,_0x3423f4['DeleteDocumentFootnoteCommand']=_0x4e90a9,_0x3423f4[_0x4c827f(0x1be)]=_0x1adffe,_0x3423f4['InsertDocumentFootnoteCommand']=_0xb6c042,_0x3423f4[_0x4c827f(0x21a)]=_0x4e5a24,_0x3423f4['SetDocumentFootnoteSettingsCommand']=_0x24cfba,Object[_0x4c827f(0x1c6)](_0x3423f4,_0x4c827f(0x20f),{'enumerable':!0x0,'get':function(){return _0x3b82b9;}});}));function _0x3896(){const _0x1be20d=['diffValue','3xOdCFr','string','-settings','drawings','UNIVER_DOC','@univerjs-pro/docs-reference','SetDocumentEndnoteSettingsCommand','2bJTsBy','Module','_commandService','636IaBHcD','_config','removeOp','decorate','toPrimitive','noteId','startNumber','isNoop','FOOTNOTE','getUnit','type','restart','CommandType','getOwnPropertyDescriptor','validateDocumentStructure','customRanges','notes','TextX','sectionBreaks','referenceTextStyle','settings','default','continuous','Plugin','sectEnd','separator','lists','10310120GkLjMx','columnCount','every','unitId','exports','documentStyle','insertOp','call','_injector','DocumentFlavor','pageBottom','retain','delete','keys','createSectionId','replaceOp','eachSect','@univerjs-pro/license','suppressEndnotes','InsertDocumentEndnoteCommand','UniverProDocsReference','RichTextEditingMutation','1622624ZzXHvN','noteProperties','Injector','get','ICommandService','defineProperty','customMark','createParagraphId','insert','prototype','boolean','drawingsOrder','28794UUSfVS','eachPage','JSONX','footers','endnote','TRADITIONAL','numberFormat','find','16BKjmRV','properties','doc.command.set-endnote-settings','editOp','IUniverInstanceService','continuationNotice','tableSource','pluginName','packageName','COMMAND','doc.command.set-footnote-settings','docs-reference.config','3907068hFdlfr','length','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProLicense','ENDNOTE','validateDocBodyStructure','toStringTag','6773562tVNLJM','merge','DependentOn','deepClone','sectionId','getSnapshot','includes','getInstance','segmentId','_configService','1015421MXfbXE','357BrUhYv','object','Inject','iterator','generateRandomId','body','footnote','serialize','@univerjs/docs','doc.command.insert-footnote','UniverInstanceType','beneathText','compose','Tools','version','dataStream','syncExecuteCommand','docEnd','symbol','documentFlavor','7861630xCazCj','set-','continuationSeparator','UniverDocsPlugin','position','CustomRangeType','setConfig','UniverDocsReferencePlugin','function','isInteger','startIndex'];_0x3896=function(){return _0x1be20d;};return _0x3896();}
1
+ (function(_0x13e8e4,_0x12185d){const _0x383bf3=_0x597d,_0x8e34a0=_0x13e8e4();while(!![]){try{const _0x332cd1=parseInt(_0x383bf3(0xdf))/0x1*(parseInt(_0x383bf3(0x94))/0x2)+-parseInt(_0x383bf3(0x70))/0x3*(parseInt(_0x383bf3(0xca))/0x4)+-parseInt(_0x383bf3(0xa5))/0x5+parseInt(_0x383bf3(0xd7))/0x6*(parseInt(_0x383bf3(0xb6))/0x7)+parseInt(_0x383bf3(0xce))/0x8*(parseInt(_0x383bf3(0x90))/0x9)+parseInt(_0x383bf3(0x92))/0xa+-parseInt(_0x383bf3(0xd6))/0xb;if(_0x332cd1===_0x12185d)break;else _0x8e34a0['push'](_0x8e34a0['shift']());}catch(_0x52e940){_0x8e34a0['push'](_0x8e34a0['shift']());}}}(_0x3d58,0xb4fae),function(_0x1fb883,_0x346cd0){const _0x101992=_0x597d;typeof exports==_0x101992(0x6b)&&typeof module<'u'?_0x346cd0(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x101992(0x7f)&&define[_0x101992(0xdc)]?define([_0x101992(0x81),_0x101992(0x8d),_0x101992(0x76),'@univerjs-pro/license'],_0x346cd0):(_0x1fb883=typeof globalThis<'u'?globalThis:_0x1fb883||self,_0x346cd0(_0x1fb883[_0x101992(0xac)]={},_0x1fb883['UniverCore'],_0x1fb883['UniverDocs'],_0x1fb883['UniverProLicense']));}(this,function(_0x40c64f,_0x5d8c03,_0x2d6a04,_0x5a89e6){const _0x3d57a9=_0x597d;Object[_0x3d57a9(0xb2)](_0x40c64f,Symbol['toStringTag'],{'value':'Module'});function _0xfedf09(_0x4bd591,_0x570d5d,_0x4dfec6){const _0x12bea3=_0x3d57a9;if(_0x4bd591[_0x12bea3(0x9b)]!=null&&!(_0x570d5d===_0x12bea3(0xbb)?['pageBottom',_0x12bea3(0xe0)]:[_0x12bea3(0xd0),_0x12bea3(0xda)])[_0x12bea3(0x78)](_0x4bd591[_0x12bea3(0x9b)])||_0x4bd591[_0x12bea3(0x71)]!=null&&!(_0x570d5d==='footnote'?[_0x12bea3(0xa3),'eachSect','eachPage']:['continuous',_0x12bea3(0x82)])[_0x12bea3(0x78)](_0x4bd591[_0x12bea3(0x71)])||_0x4bd591[_0x12bea3(0x8e)]!=null&&(!Number[_0x12bea3(0x8b)](_0x4bd591[_0x12bea3(0x8e)])||_0x4bd591[_0x12bea3(0x8e)]<0x1)||_0x12bea3(0xaa)in _0x4bd591&&_0x4bd591[_0x12bea3(0xaa)]!=null&&(_0x570d5d!=='footnote'||!Number[_0x12bea3(0x8b)](_0x4bd591[_0x12bea3(0xaa)])||_0x4bd591[_0x12bea3(0xaa)]<0x0||_0x4bd591[_0x12bea3(0xaa)]>0x4)||_0x4bd591[_0x12bea3(0x9a)]!=null&&(typeof _0x4bd591[_0x12bea3(0x9a)]!='string'||_0x4bd591[_0x12bea3(0x9a)]['length']===0x0))return!0x1;for(let _0x2fcec6 of[_0x4bd591[_0x12bea3(0x67)],_0x4bd591[_0x12bea3(0x8c)],_0x4bd591['continuationNotice']])if(_0x2fcec6!=null&&(_0x4dfec6!=null||(0x0,_0x5d8c03[_0x12bea3(0xb9)])(_0x2fcec6)[_0x12bea3(0xa0)]>0x0))return!0x1;return!0x0;}function _0x2a94dc(_0x3f0c24,_0x37d097,_0x257fb0){const _0x3c7359=_0x3d57a9;var _0x453aa8,_0x2668a5;if(_0x37d097['settings']!=null&&!_0xfedf09(_0x37d097[_0x3c7359(0x89)],_0x257fb0,_0x37d097[_0x3c7359(0x9c)]))return!0x1;let _0x3636eb=((_0x453aa8=_0x3f0c24['body'])==null||(_0x453aa8=_0x453aa8['sectionBreaks'])==null?void 0x0:_0x453aa8['findIndex'](_0x52e00e=>_0x52e00e[_0x3c7359(0x9c)]===_0x37d097[_0x3c7359(0x9c)]))??-0x1;if(_0x37d097['sectionId']!=null&&_0x3636eb<0x0)return!0x1;let _0x2bec91=_0x37d097[_0x3c7359(0x9c)]==null?_0x3f0c24[_0x3c7359(0xa4)]:(_0x2668a5=_0x3f0c24[_0x3c7359(0x97)])==null||(_0x2668a5=_0x2668a5[_0x3c7359(0x6c)])==null?void 0x0:_0x2668a5[_0x3636eb][_0x3c7359(0x72)],_0x4bf9b2=_0x37d097['settings']==null?void 0x0:_0x5d8c03['Tools'][_0x3c7359(0x86)](_0x37d097[_0x3c7359(0x89)]),_0x3bec4a=_0x37d097[_0x3c7359(0x9c)]==null?['noteSettings']:[_0x3c7359(0x97),'sectionBreaks',_0x3636eb,_0x3c7359(0x72)],_0x4e5053=_0x5d8c03[_0x3c7359(0x6d)][_0x3c7359(0x73)](),_0x53f00f=null;if(_0x5d8c03['Tools']['diffValue'](_0x2bec91==null?void 0x0:_0x2bec91[_0x257fb0],_0x4bf9b2)||(_0x53f00f=_0x2bec91==null?_0x4e5053[_0x3c7359(0x85)](_0x3bec4a,{[_0x257fb0]:_0x4bf9b2}):_0x37d097[_0x3c7359(0x9c)]!=null&&_0x4bf9b2==null&&Object[_0x3c7359(0x68)](_0x2bec91)[_0x3c7359(0x96)](_0x188f66=>_0x188f66===_0x257fb0)?_0x4e5053['removeOp'](_0x3bec4a,_0x2bec91):_0x4e5053[_0x3c7359(0xc8)]([..._0x3bec4a,_0x257fb0],_0x2bec91[_0x257fb0],_0x4bf9b2)),_0x37d097[_0x3c7359(0x66)]!=null){var _0x76187d;if(_0x257fb0!==_0x3c7359(0x7b)||_0x37d097[_0x3c7359(0x9c)]==null||typeof _0x37d097[_0x3c7359(0x66)]!=_0x3c7359(0xa8))return!0x1;let _0x1998f0=(_0x76187d=_0x3f0c24[_0x3c7359(0x97)])==null||(_0x76187d=_0x76187d['sectionBreaks'])==null?void 0x0:_0x76187d[_0x3636eb][_0x3c7359(0x66)];_0x1998f0!==_0x37d097[_0x3c7359(0x66)]&&(_0x53f00f=_0x5d8c03[_0x3c7359(0x6d)][_0x3c7359(0xb1)](_0x53f00f,_0x4e5053[_0x3c7359(0xc8)](['body',_0x3c7359(0x6c),_0x3636eb,_0x3c7359(0x66)],_0x1998f0,_0x37d097[_0x3c7359(0x66)])));}return _0x53f00f;}function _0x521f42(_0x205f5d,_0x28dee2,_0x305463){const _0x15a44a=_0x3d57a9;if(!_0x28dee2)return!0x1;let _0x16cd81=_0x205f5d['get'](_0x5d8c03[_0x15a44a(0xdd)])[_0x15a44a(0x98)](_0x28dee2[_0x15a44a(0xa2)],_0x5d8c03[_0x15a44a(0x7c)][_0x15a44a(0xc3)]),_0x3d6f22=_0x16cd81==null?void 0x0:_0x16cd81[_0x15a44a(0x7e)]();if(!_0x3d6f22||_0x3d6f22[_0x15a44a(0xc9)][_0x15a44a(0x9d)]!==_0x5d8c03[_0x15a44a(0xb4)]['TRADITIONAL'])return!0x1;let _0x2bc405=_0x2a94dc(_0x3d6f22,_0x28dee2,_0x305463);return _0x2bc405===!0x1||_0x5d8c03[_0x15a44a(0x6d)][_0x15a44a(0xd3)](_0x2bc405)?!0x1:!!_0x205f5d['get'](_0x5d8c03['ICommandService'])['syncExecuteCommand'](_0x2d6a04[_0x15a44a(0xa6)]['id'],{'unitId':_0x28dee2[_0x15a44a(0xa2)],'segmentId':'','historyAction':_0x15a44a(0xc0)+_0x305463+_0x15a44a(0xc6),'actions':_0x2bc405,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x4aeec9={'id':_0x3d57a9(0x87),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x4431a3,_0x28ee0d)=>_0x521f42(_0x4431a3,_0x28ee0d,'footnote')},_0x47f9e3={'id':'doc.command.set-endnote-settings','type':_0x5d8c03['CommandType'][_0x3d57a9(0x88)],'handler':(_0x5133b5,_0x49140d)=>_0x521f42(_0x5133b5,_0x49140d,_0x3d57a9(0x7b))};function _0x4008e4(_0x442d2d,_0x55a40d){const _0xd67273=_0x3d57a9;return(_0x442d2d==null?void 0x0:_0x442d2d[_0xd67273(0xc9)][_0xd67273(0x9d)])===_0x5d8c03['DocumentFlavor']['TRADITIONAL']&&!!_0x442d2d['body']&&Number[_0xd67273(0x8b)](_0x55a40d)&&_0x55a40d>=0x0&&_0x55a40d<_0x442d2d[_0xd67273(0x97)][_0xd67273(0x6a)]['length']-0x1;}function _0x41595e(_0x44bc69,_0x33f73e,_0x2b9f4f){const _0x5d8df8=_0x3d57a9;var _0x12fb1b,_0x1f8e42;if(_0x33f73e[_0x5d8df8(0x89)]===void 0x0&&_0x33f73e[_0x5d8df8(0x66)]===void 0x0)return null;let _0x3108e4=_0x33f73e['sectionId']==null?(_0x12fb1b=_0x44bc69['noteSettings'])==null?void 0x0:_0x12fb1b[_0x2b9f4f]:(_0x1f8e42=_0x44bc69[_0x5d8df8(0x97)])==null||(_0x1f8e42=_0x1f8e42[_0x5d8df8(0x6c)])==null||(_0x1f8e42=_0x1f8e42['find'](_0x6f88c1=>_0x6f88c1[_0x5d8df8(0x9c)]===_0x33f73e['sectionId']))==null||(_0x1f8e42=_0x1f8e42[_0x5d8df8(0x72)])==null?void 0x0:_0x1f8e42[_0x2b9f4f];return _0x2a94dc(_0x44bc69,{'settings':_0x33f73e[_0x5d8df8(0x89)]===void 0x0?_0x3108e4??null:_0x33f73e['settings'],'sectionId':_0x33f73e[_0x5d8df8(0x9c)],'suppressEndnotes':_0x33f73e[_0x5d8df8(0x66)]},_0x2b9f4f);}function _0x310836(_0x6c936a,_0x1e7b50,_0x41b544){const _0x125a96=_0x3d57a9;var _0x59e09c,_0x73ce45,_0x58f8db;if(!_0x1e7b50||_0x1e7b50['segmentId'])return!0x1;let _0x1f593c=_0x6c936a[_0x125a96(0x65)](_0x5d8c03['IUniverInstanceService'])[_0x125a96(0x98)](_0x1e7b50[_0x125a96(0xa2)],_0x5d8c03[_0x125a96(0x7c)][_0x125a96(0xc3)]),_0x500ff0=_0x1f593c==null?void 0x0:_0x1f593c[_0x125a96(0x7e)](),{offset:_0x54a036}=_0x1e7b50;if(!_0x4008e4(_0x500ff0,_0x54a036))return!0x1;let _0x43be11=_0x41595e(_0x500ff0,_0x1e7b50,_0x41b544);if(_0x43be11===!0x1)return!0x1;let _0x4c42a3=_0x1e7b50[_0x125a96(0xaf)]??(0x0,_0x5d8c03['generateRandomId'])(0xc);if((_0x59e09c=_0x500ff0[_0x125a96(0x8a)])!=null&&_0x59e09c[_0x4c42a3]||(_0x73ce45=_0x500ff0['headers'])!=null&&_0x73ce45[_0x4c42a3]||(_0x58f8db=_0x500ff0[_0x125a96(0xcf)])!=null&&_0x58f8db[_0x4c42a3])return!0x1;let _0x2b9d7d=_0x5d8c03['Tools']['deepClone']({'type':_0x41b544,'noteId':_0x4c42a3,'body':_0x1e7b50[_0x125a96(0x97)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x5d8c03['createParagraphId'])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x5d8c03[_0x125a96(0x6e)])(new Set()),'startIndex':0x1}]},'customMark':_0x1e7b50[_0x125a96(0xd2)],'referenceTextStyle':_0x1e7b50[_0x125a96(0x77)],'tableSource':_0x1e7b50['tableSource'],'drawings':_0x1e7b50[_0x125a96(0xc5)],'drawingsOrder':_0x1e7b50[_0x125a96(0xa9)],'lists':_0x1e7b50[_0x125a96(0xbf)]});if((0x0,_0x5d8c03['validateDocumentStructure'])({'notes':{[_0x4c42a3]:_0x2b9d7d}})['length']>0x0)return!0x1;let _0x68c8fc=new _0x5d8c03['TextX']();_0x54a036>0x0&&_0x68c8fc['retain'](_0x54a036),_0x68c8fc[_0x125a96(0x80)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x41b544===_0x125a96(0xbb)?_0x5d8c03['CustomRangeType'][_0x125a96(0xb8)]:_0x5d8c03[_0x125a96(0xe2)][_0x125a96(0xc1)],'rangeId':(0x0,_0x5d8c03['generateRandomId'])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4c42a3}}]});let _0xe12c0d=_0x5d8c03['JSONX'][_0x125a96(0x73)](),_0x538b54=_0x500ff0[_0x125a96(0x8a)]==null?_0xe12c0d[_0x125a96(0x85)](['notes'],{[_0x4c42a3]:_0x2b9d7d}):_0xe12c0d[_0x125a96(0x85)]([_0x125a96(0x8a),_0x4c42a3],_0x2b9d7d);return!!_0x6c936a['get'](_0x5d8c03[_0x125a96(0xd5)])[_0x125a96(0xe5)](_0x2d6a04['RichTextEditingMutation']['id'],{'unitId':_0x1e7b50['unitId'],'segmentId':'','historyAction':_0x125a96(0xb3)+_0x41b544,'actions':_0x5d8c03[_0x125a96(0x6d)][_0x125a96(0xb1)](_0x5d8c03[_0x125a96(0x6d)][_0x125a96(0xb1)](_0x43be11,_0x538b54),_0xe12c0d['editOp'](_0x68c8fc[_0x125a96(0xe6)](),[_0x125a96(0x97)])),'textRanges':[{'segmentId':_0x4c42a3,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x2f41d3(_0x49a1ee,_0x44b612,_0x551327){const _0x5e1854=_0x3d57a9;var _0x53b885,_0x30571d;if(!_0x44b612)return!0x1;let _0x530f40=_0x49a1ee[_0x5e1854(0x65)](_0x5d8c03[_0x5e1854(0xdd)])[_0x5e1854(0x98)](_0x44b612[_0x5e1854(0xa2)],_0x5d8c03[_0x5e1854(0x7c)][_0x5e1854(0xc3)]),_0x52c0d3=_0x530f40==null?void 0x0:_0x530f40['getSnapshot'](),_0x22710c=_0x52c0d3==null||(_0x53b885=_0x52c0d3[_0x5e1854(0x8a)])==null?void 0x0:_0x53b885[_0x44b612[_0x5e1854(0xaf)]],_0x1e991f=_0x52c0d3==null||(_0x30571d=_0x52c0d3['body'])==null||(_0x30571d=_0x30571d[_0x5e1854(0x95)])==null?void 0x0:_0x30571d['find'](_0x4fec14=>{const _0x3e308b=_0x5e1854;var _0x4f9421;return(_0x4fec14['rangeType']===_0x5d8c03[_0x3e308b(0xe2)][_0x3e308b(0xb8)]||_0x4fec14[_0x3e308b(0x7d)]===_0x5d8c03[_0x3e308b(0xe2)][_0x3e308b(0xc1)])&&((_0x4f9421=_0x4fec14[_0x3e308b(0x75)])==null?void 0x0:_0x4f9421[_0x3e308b(0xaf)])===_0x44b612[_0x3e308b(0xaf)];});if(!_0x52c0d3||_0x52c0d3[_0x5e1854(0xc9)]['documentFlavor']!==_0x5d8c03[_0x5e1854(0xb4)][_0x5e1854(0xba)]||!_0x22710c||_0x22710c['type']!==_0x551327||!_0x1e991f)return!0x1;let _0x5ac75f=new _0x5d8c03['TextX']();_0x1e991f['startIndex']>0x0&&_0x5ac75f[_0x5e1854(0x9e)](_0x1e991f[_0x5e1854(0xcc)]),_0x5ac75f[_0x5e1854(0xcb)](0x1);let _0x1c4ca8=_0x5d8c03['JSONX'][_0x5e1854(0x73)]();return!!_0x49a1ee[_0x5e1854(0x65)](_0x5d8c03[_0x5e1854(0xd5)])[_0x5e1854(0xe5)](_0x2d6a04[_0x5e1854(0xa6)]['id'],{'unitId':_0x44b612[_0x5e1854(0xa2)],'segmentId':'','historyAction':'delete-'+_0x551327,'actions':_0x5d8c03[_0x5e1854(0x6d)][_0x5e1854(0xb1)](_0x1c4ca8[_0x5e1854(0x91)](_0x5ac75f[_0x5e1854(0xe6)](),[_0x5e1854(0x97)]),_0x1c4ca8[_0x5e1854(0xe1)]([_0x5e1854(0x8a),_0x44b612[_0x5e1854(0xaf)]],_0x22710c)),'textRanges':[{'startOffset':_0x1e991f[_0x5e1854(0xcc)],'endOffset':_0x1e991f[_0x5e1854(0xcc)],'collapsed':!0x0}],'debounce':!0x1});}let _0x2cfaa5={'id':_0x3d57a9(0x7a),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x304222,_0x1a0a68)=>_0x310836(_0x304222,_0x1a0a68,'footnote')},_0x39c13c={'id':'doc.command.delete-footnote','type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x10c3f2,_0xcf0e78)=>_0x2f41d3(_0x10c3f2,_0xcf0e78,_0x3d57a9(0xbb))},_0x312d39={'id':_0x3d57a9(0xd1),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x24e882,_0x52d16f)=>_0x310836(_0x24e882,_0x52d16f,_0x3d57a9(0x7b))},_0x2c383e={'id':_0x3d57a9(0xc4),'type':_0x5d8c03[_0x3d57a9(0xbc)][_0x3d57a9(0x88)],'handler':(_0x190a14,_0x1494cd)=>_0x2f41d3(_0x190a14,_0x1494cd,_0x3d57a9(0x7b))};var _0x3ef343='@univerjs-pro/docs-reference',_0x3c126c=_0x3d57a9(0x9f);let _0x2874c8={};function _0x4d7536(_0x425f9a,_0x11dd02){return function(_0x2ff2df,_0x1034b7){_0x11dd02(_0x2ff2df,_0x1034b7,_0x425f9a);};}function _0x4e6b5a(_0x3bbb5e,_0x22b94c,_0xdea5ca,_0xa1daca){const _0x581963=_0x3d57a9;var _0x3c09d0=arguments[_0x581963(0xa0)],_0x7c2aa8=_0x3c09d0<0x3?_0x22b94c:_0xa1daca===null?_0xa1daca=Object[_0x581963(0xbe)](_0x22b94c,_0xdea5ca):_0xa1daca,_0x4ca338;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x581963(0x7f))_0x7c2aa8=Reflect[_0x581963(0xae)](_0x3bbb5e,_0x22b94c,_0xdea5ca,_0xa1daca);else{for(var _0x559780=_0x3bbb5e[_0x581963(0xa0)]-0x1;_0x559780>=0x0;_0x559780--)(_0x4ca338=_0x3bbb5e[_0x559780])&&(_0x7c2aa8=(_0x3c09d0<0x3?_0x4ca338(_0x7c2aa8):_0x3c09d0>0x3?_0x4ca338(_0x22b94c,_0xdea5ca,_0x7c2aa8):_0x4ca338(_0x22b94c,_0xdea5ca))||_0x7c2aa8);}return _0x3c09d0>0x3&&_0x7c2aa8&&Object['defineProperty'](_0x22b94c,_0xdea5ca,_0x7c2aa8),_0x7c2aa8;}function _0x3bf735(_0x3673aa){'@babel/helpers - typeof';const _0xf45748=_0x3d57a9;return _0x3bf735=typeof Symbol==_0xf45748(0x7f)&&typeof Symbol['iterator']==_0xf45748(0xc7)?function(_0x2dfa96){return typeof _0x2dfa96;}:function(_0xa04e01){const _0x3a096b=_0xf45748;return _0xa04e01&&typeof Symbol==_0x3a096b(0x7f)&&_0xa04e01['constructor']===Symbol&&_0xa04e01!==Symbol['prototype']?_0x3a096b(0xc7):typeof _0xa04e01;},_0x3bf735(_0x3673aa);}function _0x42dd3a(_0x17acaa,_0x45559a){const _0x4fcc95=_0x3d57a9;if(_0x3bf735(_0x17acaa)!=_0x4fcc95(0x6b)||!_0x17acaa)return _0x17acaa;var _0x3f694b=_0x17acaa[Symbol['toPrimitive']];if(_0x3f694b!==void 0x0){var _0xa3a76d=_0x3f694b[_0x4fcc95(0x93)](_0x17acaa,_0x45559a||'default');if(_0x3bf735(_0xa3a76d)!=_0x4fcc95(0x6b))return _0xa3a76d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x45559a===_0x4fcc95(0x6f)?String:Number)(_0x17acaa);}function _0x380668(_0x13befa){const _0x34b455=_0x3d57a9;var _0x10b1a8=_0x42dd3a(_0x13befa,_0x34b455(0x6f));return _0x3bf735(_0x10b1a8)==_0x34b455(0xc7)?_0x10b1a8:_0x10b1a8+'';}function _0xa4440b(_0x365482,_0x30702e,_0x1b91b2){const _0x45d5b3=_0x3d57a9;return(_0x30702e=_0x380668(_0x30702e))in _0x365482?Object[_0x45d5b3(0xb2)](_0x365482,_0x30702e,{'value':_0x1b91b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x365482[_0x30702e]=_0x1b91b2,_0x365482;}let _0x3d8801=class extends _0x5d8c03[_0x3d57a9(0xa7)]{constructor(_0x570f98=_0x2874c8,_0x47d346,_0xc5425c,_0x5ad5a3){const _0x33b4a9=_0x3d57a9;super(),this[_0x33b4a9(0xa1)]=_0x570f98,this[_0x33b4a9(0xbd)]=_0x47d346,this[_0x33b4a9(0x79)]=_0xc5425c,this[_0x33b4a9(0x84)]=_0x5ad5a3;let {..._0x2706e7}=(0x0,_0x5d8c03[_0x33b4a9(0x69)])({},_0x2874c8,this[_0x33b4a9(0xa1)]);this['_configService']['setConfig'](_0x33b4a9(0x8f),_0x2706e7);}[_0x3d57a9(0x99)](){const _0x1caaed=_0x3d57a9;[_0x2cfaa5,_0x39c13c,_0x4aeec9,_0x312d39,_0x2c383e,_0x47f9e3][_0x1caaed(0xc2)](_0x5b8f0c=>this[_0x1caaed(0xab)](this[_0x1caaed(0x84)][_0x1caaed(0xd8)](_0x5b8f0c)));}};_0xa4440b(_0x3d8801,_0x3d57a9(0xe3),_0x3d57a9(0x74)),_0xa4440b(_0x3d8801,'packageName',_0x3ef343),_0xa4440b(_0x3d8801,_0x3d57a9(0xd4),_0x3c126c),_0xa4440b(_0x3d8801,'type',_0x5d8c03[_0x3d57a9(0x7c)][_0x3d57a9(0xc3)]),_0x3d8801=_0x4e6b5a([(0x0,_0x5d8c03[_0x3d57a9(0xe4)])(_0x5a89e6['UniverLicensePlugin'],_0x2d6a04[_0x3d57a9(0xb5)]),_0x4d7536(0x1,(0x0,_0x5d8c03['Inject'])(_0x5d8c03[_0x3d57a9(0xd9)])),_0x4d7536(0x2,_0x5d8c03[_0x3d57a9(0xdb)]),_0x4d7536(0x3,_0x5d8c03[_0x3d57a9(0xd5)])],_0x3d8801),_0x40c64f[_0x3d57a9(0xad)]=_0x2c383e,_0x40c64f[_0x3d57a9(0xb0)]=_0x39c13c,_0x40c64f[_0x3d57a9(0xb7)]=_0x312d39,_0x40c64f[_0x3d57a9(0x83)]=_0x2cfaa5,_0x40c64f['SetDocumentEndnoteSettingsCommand']=_0x47f9e3,_0x40c64f[_0x3d57a9(0xcd)]=_0x4aeec9,Object[_0x3d57a9(0xb2)](_0x40c64f,_0x3d57a9(0xde),{'enumerable':!0x0,'get':function(){return _0x3d8801;}});}));function _0x597d(_0x3139ae,_0xcfce5f){_0x3139ae=_0x3139ae-0x65;const _0x3d58fe=_0x3d58();let _0x597dc0=_0x3d58fe[_0x3139ae];return _0x597dc0;}function _0x3d58(){const _0x9051a7=['notes','isInteger','continuationSeparator','@univerjs/core','startNumber','docs-reference.config','8730bmqzgQ','editOp','4396520duFubs','call','2306fbZEBa','customRanges','every','body','getUnit','onStarting','numberFormat','position','sectionId','documentFlavor','retain','1.0.2','length','_config','unitId','continuous','noteSettings','4829185uZeRai','RichTextEditingMutation','Plugin','boolean','drawingsOrder','columnCount','disposeWithMe','UniverProDocsReference','DeleteDocumentEndnoteCommand','decorate','noteId','DeleteDocumentFootnoteCommand','compose','defineProperty','insert-','DocumentFlavor','UniverDocsPlugin','42uglypf','InsertDocumentEndnoteCommand','FOOTNOTE','validateDocBodyStructure','TRADITIONAL','footnote','CommandType','_injector','getOwnPropertyDescriptor','lists','set-','ENDNOTE','forEach','UNIVER_DOC','doc.command.delete-endnote','drawings','-settings','symbol','replaceOp','documentStyle','23324MYnijM','delete','startIndex','SetDocumentFootnoteSettingsCommand','1472YKWzab','footers','docEnd','doc.command.insert-endnote','customMark','isNoop','version','ICommandService','5801048yeuCFv','708036heEeCB','registerCommand','Injector','sectEnd','IConfigService','amd','IUniverInstanceService','UniverDocsReferencePlugin','894wtKorM','beneathText','removeOp','CustomRangeType','pluginName','DependentOn','syncExecuteCommand','serialize','get','suppressEndnotes','separator','keys','merge','dataStream','object','sectionBreaks','JSONX','createSectionId','string','63odfXJk','restart','noteProperties','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','properties','@univerjs/docs','referenceTextStyle','includes','_configService','doc.command.insert-footnote','endnote','UniverInstanceType','rangeType','getSnapshot','function','insert','exports','eachSect','InsertDocumentFootnoteCommand','_commandService','insertOp','deepClone','doc.command.set-footnote-settings','COMMAND','settings'];_0x3d58=function(){return _0x9051a7;};return _0x3d58();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-reference",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "description": "Document references commands and Facade integration.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -59,13 +59,13 @@
59
59
  "lib"
60
60
  ],
61
61
  "dependencies": {
62
- "@univerjs-pro/license": "1.0.1",
63
- "@univerjs/core": "1.0.1",
64
- "@univerjs/docs": "1.0.1"
62
+ "@univerjs-pro/license": "1.0.2",
63
+ "@univerjs/core": "1.0.2",
64
+ "@univerjs/docs": "1.0.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@univerjs-infra/shared": "1.0.1",
68
- "@univerjs/engine-render": "1.0.1",
67
+ "@univerjs-infra/shared": "1.0.2",
68
+ "@univerjs/engine-render": "1.0.2",
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
71
  "vitest": "^5.0.0"