@univerjs-pro/docs-reference 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x996464=_0x4171;function _0x4171(_0xf05cf1,_0x135353){_0xf05cf1=_0xf05cf1-0x1d2;const _0x2f14cd=_0x2f14();let _0x417127=_0x2f14cd[_0xf05cf1];return _0x417127;}(function(_0x55e8d2,_0x17c8b1){const _0x1fab35=_0x4171,_0x536f79=_0x55e8d2();while(!![]){try{const _0x3690f4=-parseInt(_0x1fab35(0x1ef))/0x1*(-parseInt(_0x1fab35(0x1d5))/0x2)+parseInt(_0x1fab35(0x1db))/0x3+parseInt(_0x1fab35(0x1e9))/0x4*(parseInt(_0x1fab35(0x1f8))/0x5)+-parseInt(_0x1fab35(0x1e2))/0x6+-parseInt(_0x1fab35(0x1f2))/0x7*(-parseInt(_0x1fab35(0x1e3))/0x8)+-parseInt(_0x1fab35(0x1f4))/0x9*(parseInt(_0x1fab35(0x1fd))/0xa)+-parseInt(_0x1fab35(0x204))/0xb;if(_0x3690f4===_0x17c8b1)break;else _0x536f79['push'](_0x536f79['shift']());}catch(_0x42d340){_0x536f79['push'](_0x536f79['shift']());}}}(_0x2f14,0xd83fd));function _0x2f14(){const _0x379ea8=['1984936qEGzCO','customRanges','deleteEndnote','generateRandomId','properties','deleteFootnote','12HjjCTg','CustomRangeType','getSnapshot','body','getEndnotes','startIndex','1299262kWqiuP','SetDocumentFootnoteSettingsCommand','DeleteDocumentEndnoteCommand','7xMSCEX','noteProperties','9OPlThD','string','find','getFootnotes','331015ffaRnk','setFootnoteSettings','InsertDocumentFootnoteCommand','deepClone','ENDNOTE','3758740uOooVc','Tools','InsertDocumentEndnoteCommand','footnote','notes','FDocument','endnote','162558NssvOZ','noteId','getDocumentDataModel','sort','flatMap','2bXBWch','getFootnoteSettings','setEndnoteSettings','get','ICommandService','sectionId','3406014lGDdvm','syncExecuteCommand','sectionBreaks','noteSettings','getEndnoteSettings','filter','_injector','9629502TgHIJV'];_0x2f14=function(){return _0x379ea8;};return _0x2f14();}let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');var r=class extends n[_0x996464(0x202)]{['insertFootnote'](_0xc4d294,_0x2f9ab2={}){const _0x55ddbd=_0x996464;let _0x3fcae6=(0x0,t['generateRandomId'])(0xc);return this[_0x55ddbd(0x1e1)][_0x55ddbd(0x1d8)](t[_0x55ddbd(0x1d9)])[_0x55ddbd(0x1dc)](e[_0x55ddbd(0x1fa)]['id'],{..._0x2f9ab2,'unitId':this['id'],'offset':_0xc4d294,'noteId':_0x3fcae6})?_0x3fcae6:null;}[_0x996464(0x1f7)](){const _0x375bc1=_0x996464;var _0x1e3b39;let _0x343720=this[_0x375bc1(0x1d2)]()[_0x375bc1(0x1eb)]();return(((_0x1e3b39=_0x343720[_0x375bc1(0x1ec)])==null?void 0x0:_0x1e3b39['customRanges'])??[])['filter'](_0x16b07a=>_0x16b07a['rangeType']===t['CustomRangeType']['FOOTNOTE'])[_0x375bc1(0x1d3)]((_0x1ee77c,_0x2afc80)=>_0x1ee77c[_0x375bc1(0x1ee)]-_0x2afc80[_0x375bc1(0x1ee)])[_0x375bc1(0x1d4)](_0x156a4f=>{const _0x3566a5=_0x375bc1;var _0x583083,_0x31fe8b;let _0x5cc344=(_0x583083=_0x156a4f[_0x3566a5(0x1e7)])==null?void 0x0:_0x583083[_0x3566a5(0x205)],_0x1d543a=typeof _0x5cc344==_0x3566a5(0x1f5)?(_0x31fe8b=_0x343720[_0x3566a5(0x201)])==null?void 0x0:_0x31fe8b[_0x5cc344]:void 0x0;return _0x1d543a?[t['Tools'][_0x3566a5(0x1fb)](_0x1d543a)]:[];});}[_0x996464(0x1e8)](_0x1bb0ab){const _0x1b0834=_0x996464;return this[_0x1b0834(0x1e1)][_0x1b0834(0x1d8)](t[_0x1b0834(0x1d9)])[_0x1b0834(0x1dc)](e['DeleteDocumentFootnoteCommand']['id'],{'unitId':this['id'],'noteId':_0x1bb0ab});}[_0x996464(0x1d6)](_0x2b621e){const _0x2f052d=_0x996464;var _0x2788df,_0x2be3ad;let _0x1f4855=this[_0x2f052d(0x1d2)]()[_0x2f052d(0x1eb)](),_0x373afe=_0x2b621e==null?(_0x2788df=_0x1f4855[_0x2f052d(0x1de)])==null?void 0x0:_0x2788df[_0x2f052d(0x200)]:(_0x2be3ad=_0x1f4855[_0x2f052d(0x1ec)])==null||(_0x2be3ad=_0x2be3ad[_0x2f052d(0x1dd)])==null||(_0x2be3ad=_0x2be3ad[_0x2f052d(0x1f6)](_0x17789b=>_0x17789b[_0x2f052d(0x1da)]===_0x2b621e))==null||(_0x2be3ad=_0x2be3ad[_0x2f052d(0x1f3)])==null?void 0x0:_0x2be3ad[_0x2f052d(0x200)];return _0x373afe==null?void 0x0:t[_0x2f052d(0x1fe)][_0x2f052d(0x1fb)](_0x373afe);}[_0x996464(0x1f9)](_0x42dba6,_0x4c87dd){const _0xf7b453=_0x996464;return this[_0xf7b453(0x1e1)]['get'](t['ICommandService'])[_0xf7b453(0x1dc)](e[_0xf7b453(0x1f0)]['id'],{'unitId':this['id'],'settings':_0x42dba6,'sectionId':_0x4c87dd});}['insertEndnote'](_0x179607,_0x24b84d={}){const _0x2a81a4=_0x996464;let _0x407df8=(0x0,t[_0x2a81a4(0x1e6)])(0xc);return this[_0x2a81a4(0x1e1)][_0x2a81a4(0x1d8)](t[_0x2a81a4(0x1d9)])[_0x2a81a4(0x1dc)](e[_0x2a81a4(0x1ff)]['id'],{..._0x24b84d,'unitId':this['id'],'offset':_0x179607,'noteId':_0x407df8})?_0x407df8:null;}[_0x996464(0x1ed)](){const _0x3477b7=_0x996464;var _0x249ee5;let _0x4ac5c5=this[_0x3477b7(0x1d2)]()[_0x3477b7(0x1eb)]();return(((_0x249ee5=_0x4ac5c5[_0x3477b7(0x1ec)])==null?void 0x0:_0x249ee5[_0x3477b7(0x1e4)])??[])[_0x3477b7(0x1e0)](_0x5551e5=>_0x5551e5['rangeType']===t[_0x3477b7(0x1ea)][_0x3477b7(0x1fc)])[_0x3477b7(0x1d3)]((_0x4c6ce6,_0x4be310)=>_0x4c6ce6[_0x3477b7(0x1ee)]-_0x4be310[_0x3477b7(0x1ee)])[_0x3477b7(0x1d4)](_0x3e7024=>{const _0x1ac814=_0x3477b7;var _0x49edfa,_0x5e0350;let _0xe4a76c=(_0x49edfa=_0x3e7024[_0x1ac814(0x1e7)])==null?void 0x0:_0x49edfa[_0x1ac814(0x205)],_0x3bae1d=typeof _0xe4a76c==_0x1ac814(0x1f5)?(_0x5e0350=_0x4ac5c5[_0x1ac814(0x201)])==null?void 0x0:_0x5e0350[_0xe4a76c]:void 0x0;return _0x3bae1d?[t[_0x1ac814(0x1fe)]['deepClone'](_0x3bae1d)]:[];});}[_0x996464(0x1e5)](_0x3e0928){const _0x212a9a=_0x996464;return this['_injector']['get'](t[_0x212a9a(0x1d9)])['syncExecuteCommand'](e[_0x212a9a(0x1f1)]['id'],{'unitId':this['id'],'noteId':_0x3e0928});}[_0x996464(0x1df)](_0x1a94e7){const _0x566631=_0x996464;var _0x53c26b,_0x21abbc;let _0x5c93d1=this[_0x566631(0x1d2)]()[_0x566631(0x1eb)](),_0xe1b076=_0x1a94e7==null?(_0x53c26b=_0x5c93d1[_0x566631(0x1de)])==null?void 0x0:_0x53c26b[_0x566631(0x203)]:(_0x21abbc=_0x5c93d1[_0x566631(0x1ec)])==null||(_0x21abbc=_0x21abbc[_0x566631(0x1dd)])==null||(_0x21abbc=_0x21abbc[_0x566631(0x1f6)](_0x3f07d8=>_0x3f07d8[_0x566631(0x1da)]===_0x1a94e7))==null||(_0x21abbc=_0x21abbc[_0x566631(0x1f3)])==null?void 0x0:_0x21abbc[_0x566631(0x203)];return _0xe1b076==null?void 0x0:t[_0x566631(0x1fe)][_0x566631(0x1fb)](_0xe1b076);}[_0x996464(0x1d7)](_0x204e19,_0x1df20b){const _0x3c7cd5=_0x996464;return this[_0x3c7cd5(0x1e1)][_0x3c7cd5(0x1d8)](t[_0x3c7cd5(0x1d9)])[_0x3c7cd5(0x1dc)](e['SetDocumentEndnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x204e19,'sectionId':_0x1df20b});}};n[_0x996464(0x202)]['extend'](r);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31b473=_0x4601;(function(_0x43997b,_0x5eeb1d){const _0x4bf2a1=_0x4601,_0x1a675c=_0x43997b();while(!![]){try{const _0xd79ab7=-parseInt(_0x4bf2a1(0x220))/0x1+parseInt(_0x4bf2a1(0x1c7))/0x2+-parseInt(_0x4bf2a1(0x1d9))/0x3+parseInt(_0x4bf2a1(0x1d8))/0x4+parseInt(_0x4bf2a1(0x203))/0x5*(-parseInt(_0x4bf2a1(0x22d))/0x6)+-parseInt(_0x4bf2a1(0x224))/0x7*(-parseInt(_0x4bf2a1(0x1e0))/0x8)+-parseInt(_0x4bf2a1(0x1e8))/0x9*(-parseInt(_0x4bf2a1(0x225))/0xa);if(_0xd79ab7===_0x5eeb1d)break;else _0x1a675c['push'](_0x1a675c['shift']());}catch(_0x2c2924){_0x1a675c['push'](_0x1a675c['shift']());}}}(_0x3296,0xeb116),Object[_0x31b473(0x1ed)](exports,Symbol[_0x31b473(0x207)],{'value':'Module'}));function _0x3296(){const _0x184295=['rangeType','merge','validateDocumentStructure','replaceOp','includes','_config','FOOTNOTE','7396376KnYsea','1115301eBaYmB','createSectionId','docs-reference.config','endnote','onStarting','footers','1.0.4','151760pdBZXG','IConfigService','_configService','properties','doc.command.set-endnote-settings','find','insertOp','startIndex','11285883HYtnqj','disposeWithMe','dataStream','SetDocumentEndnoteSettingsCommand','getSnapshot','defineProperty','ENDNOTE','sectionBreaks','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tableSource','UNIVER_DOC','DependentOn','drawings','noteProperties','doc.command.delete-endnote','restart','isInteger','deepClone','IUniverInstanceService','retain','customRanges','serialize','boolean','getOwnPropertyDescriptor','set-','version','10CuijvR','sectEnd','DeleteDocumentEndnoteCommand','columnCount','toStringTag','TRADITIONAL','startNumber','doc.command.set-footnote-settings','COMMAND','eachSect','Injector','compose','-settings','notes','docEnd','referenceTextStyle','doc.command.delete-footnote','decorate','ICommandService','body','continuationNotice','prototype','Tools','every','documentFlavor','CommandType','getUnit','settings','_commandService','1055753bbLZWD','insert','continuationSeparator','numberFormat','7rBHzkT','10asZklN','default','separator','doc.command.insert-footnote','suppressEndnotes','lists','sectionId','removeOp','2491182RRbTvj','noteId','UniverLicensePlugin','eachPage','syncExecuteCommand','diffValue','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','footnote','position','documentStyle','UniverInstanceType','string','DocumentFlavor','CustomRangeType','get','toPrimitive','pageBottom','length','InsertDocumentFootnoteCommand','continuous','function','delete','InsertDocumentEndnoteCommand','_injector','editOp','findIndex','doc.command.insert-endnote','JSONX','customMark','UniverDocsPlugin','SetDocumentFootnoteSettingsCommand','TextX','unitId','197402fZOuvg','RichTextEditingMutation','object','constructor','keys','createParagraphId','beneathText','noteSettings','symbol','generateRandomId'];_0x3296=function(){return _0x184295;};return _0x3296();}let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x2cbc69,_0x12cb3e,_0x5b0048){const _0x2b8c5c=_0x31b473;if(_0x2cbc69['position']!=null&&!(_0x12cb3e===_0x2b8c5c(0x235)?[_0x2b8c5c(0x23e),_0x2b8c5c(0x1cd)]:[_0x2b8c5c(0x211),_0x2b8c5c(0x204)])[_0x2b8c5c(0x1d5)](_0x2cbc69[_0x2b8c5c(0x236)])||_0x2cbc69[_0x2b8c5c(0x1f8)]!=null&&!(_0x12cb3e===_0x2b8c5c(0x235)?['continuous','eachSect',_0x2b8c5c(0x230)]:[_0x2b8c5c(0x241),_0x2b8c5c(0x20c)])[_0x2b8c5c(0x1d5)](_0x2cbc69[_0x2b8c5c(0x1f8)])||_0x2cbc69[_0x2b8c5c(0x209)]!=null&&(!Number['isInteger'](_0x2cbc69[_0x2b8c5c(0x209)])||_0x2cbc69['startNumber']<0x1)||_0x2b8c5c(0x206)in _0x2cbc69&&_0x2cbc69[_0x2b8c5c(0x206)]!=null&&(_0x12cb3e!==_0x2b8c5c(0x235)||!Number[_0x2b8c5c(0x1f9)](_0x2cbc69[_0x2b8c5c(0x206)])||_0x2cbc69[_0x2b8c5c(0x206)]<0x0||_0x2cbc69[_0x2b8c5c(0x206)]>0x4)||_0x2cbc69['numberFormat']!=null&&(typeof _0x2cbc69[_0x2b8c5c(0x223)]!=_0x2b8c5c(0x239)||_0x2cbc69[_0x2b8c5c(0x223)]['length']===0x0))return!0x1;for(let _0x1e9ad7 of[_0x2cbc69[_0x2b8c5c(0x227)],_0x2cbc69[_0x2b8c5c(0x222)],_0x2cbc69[_0x2b8c5c(0x217)]])if(_0x1e9ad7!=null&&(_0x5b0048!=null||(0x0,e['validateDocBodyStructure'])(_0x1e9ad7)[_0x2b8c5c(0x23f)]>0x0))return!0x1;return!0x0;}function i(_0xdbfb36,_0x57080e,_0x3eccc5){const _0x1e1d0f=_0x31b473;var _0xbaf892,_0x51cd15;if(_0x57080e[_0x1e1d0f(0x21e)]!=null&&!r(_0x57080e['settings'],_0x3eccc5,_0x57080e[_0x1e1d0f(0x22b)]))return!0x1;let _0x340bef=((_0xbaf892=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0xbaf892=_0xbaf892[_0x1e1d0f(0x1ef)])==null?void 0x0:_0xbaf892[_0x1e1d0f(0x1bf)](_0x2f2240=>_0x2f2240[_0x1e1d0f(0x22b)]===_0x57080e[_0x1e1d0f(0x22b)]))??-0x1;if(_0x57080e['sectionId']!=null&&_0x340bef<0x0)return!0x1;let _0x1c1265=_0x57080e[_0x1e1d0f(0x22b)]==null?_0xdbfb36[_0x1e1d0f(0x1ce)]:(_0x51cd15=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0x51cd15=_0x51cd15[_0x1e1d0f(0x1ef)])==null?void 0x0:_0x51cd15[_0x340bef][_0x1e1d0f(0x1f6)],_0xdab602=_0x57080e[_0x1e1d0f(0x21e)]==null?void 0x0:e[_0x1e1d0f(0x219)][_0x1e1d0f(0x1fa)](_0x57080e[_0x1e1d0f(0x21e)]),_0xfbf8fb=_0x57080e[_0x1e1d0f(0x22b)]==null?[_0x1e1d0f(0x1ce)]:[_0x1e1d0f(0x216),_0x1e1d0f(0x1ef),_0x340bef,_0x1e1d0f(0x1f6)],_0xee6d0b=e[_0x1e1d0f(0x1c1)]['getInstance'](),_0x2bd7b4=null;if(e[_0x1e1d0f(0x219)][_0x1e1d0f(0x232)](_0x1c1265==null?void 0x0:_0x1c1265[_0x3eccc5],_0xdab602)||(_0x2bd7b4=_0x1c1265==null?_0xee6d0b[_0x1e1d0f(0x1e6)](_0xfbf8fb,{[_0x3eccc5]:_0xdab602}):_0x57080e['sectionId']!=null&&_0xdab602==null&&Object[_0x1e1d0f(0x1cb)](_0x1c1265)[_0x1e1d0f(0x21a)](_0x2ca741=>_0x2ca741===_0x3eccc5)?_0xee6d0b['removeOp'](_0xfbf8fb,_0x1c1265):_0xee6d0b[_0x1e1d0f(0x1d4)]([..._0xfbf8fb,_0x3eccc5],_0x1c1265[_0x3eccc5],_0xdab602)),_0x57080e[_0x1e1d0f(0x229)]!=null){var _0xc0b97c;if(_0x3eccc5!==_0x1e1d0f(0x1dc)||_0x57080e[_0x1e1d0f(0x22b)]==null||typeof _0x57080e[_0x1e1d0f(0x229)]!=_0x1e1d0f(0x1ff))return!0x1;let _0x3d672a=(_0xc0b97c=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0xc0b97c=_0xc0b97c[_0x1e1d0f(0x1ef)])==null?void 0x0:_0xc0b97c[_0x340bef][_0x1e1d0f(0x229)];_0x3d672a!==_0x57080e[_0x1e1d0f(0x229)]&&(_0x2bd7b4=e[_0x1e1d0f(0x1c1)]['compose'](_0x2bd7b4,_0xee6d0b[_0x1e1d0f(0x1d4)](['body','sectionBreaks',_0x340bef,_0x1e1d0f(0x229)],_0x3d672a,_0x57080e[_0x1e1d0f(0x229)])));}return _0x2bd7b4;}function a(_0x3555d2,_0xed7e35,_0x1bff70){const _0x1c160e=_0x31b473;if(!_0xed7e35)return!0x1;let _0x2fc5c0=_0x3555d2[_0x1c160e(0x23c)](e[_0x1c160e(0x1fb)])[_0x1c160e(0x21d)](_0xed7e35[_0x1c160e(0x1c6)],e['UniverInstanceType'][_0x1c160e(0x1f3)]),_0x31d6e9=_0x2fc5c0==null?void 0x0:_0x2fc5c0[_0x1c160e(0x1ec)]();if(!_0x31d6e9||_0x31d6e9['documentStyle'][_0x1c160e(0x21b)]!==e[_0x1c160e(0x23a)][_0x1c160e(0x208)])return!0x1;let _0x14ba7a=i(_0x31d6e9,_0xed7e35,_0x1bff70);return _0x14ba7a===!0x1||e[_0x1c160e(0x1c1)]['isNoop'](_0x14ba7a)?!0x1:!!_0x3555d2[_0x1c160e(0x23c)](e[_0x1c160e(0x215)])[_0x1c160e(0x231)](t['RichTextEditingMutation']['id'],{'unitId':_0xed7e35[_0x1c160e(0x1c6)],'segmentId':'','historyAction':_0x1c160e(0x201)+_0x1bff70+_0x1c160e(0x20f),'actions':_0x14ba7a,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x31b473(0x20a),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x48b8dc,_0x377b56)=>a(_0x48b8dc,_0x377b56,'footnote')},s={'id':_0x31b473(0x1e4),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x2839f3,_0xc9de31)=>a(_0x2839f3,_0xc9de31,_0x31b473(0x1dc))};function c(_0xd4311f,_0xc75d5b){const _0x569391=_0x31b473;return(_0xd4311f==null?void 0x0:_0xd4311f[_0x569391(0x237)][_0x569391(0x21b)])===e[_0x569391(0x23a)][_0x569391(0x208)]&&!!_0xd4311f[_0x569391(0x216)]&&Number[_0x569391(0x1f9)](_0xc75d5b)&&_0xc75d5b>=0x0&&_0xc75d5b<_0xd4311f[_0x569391(0x216)][_0x569391(0x1ea)][_0x569391(0x23f)]-0x1;}function l(_0x1b9d73,_0x5ce521,_0x40a492){const _0x184ce9=_0x31b473;var _0xc0f74a,_0x1452f3;if(_0x5ce521['settings']===void 0x0&&_0x5ce521[_0x184ce9(0x229)]===void 0x0)return null;let _0x35797c=_0x5ce521[_0x184ce9(0x22b)]==null?(_0xc0f74a=_0x1b9d73[_0x184ce9(0x1ce)])==null?void 0x0:_0xc0f74a[_0x40a492]:(_0x1452f3=_0x1b9d73[_0x184ce9(0x216)])==null||(_0x1452f3=_0x1452f3[_0x184ce9(0x1ef)])==null||(_0x1452f3=_0x1452f3[_0x184ce9(0x1e5)](_0x2331ac=>_0x2331ac[_0x184ce9(0x22b)]===_0x5ce521[_0x184ce9(0x22b)]))==null||(_0x1452f3=_0x1452f3['noteProperties'])==null?void 0x0:_0x1452f3[_0x40a492];return i(_0x1b9d73,{'settings':_0x5ce521[_0x184ce9(0x21e)]===void 0x0?_0x35797c??null:_0x5ce521[_0x184ce9(0x21e)],'sectionId':_0x5ce521[_0x184ce9(0x22b)],'suppressEndnotes':_0x5ce521['suppressEndnotes']},_0x40a492);}function u(_0x27b079,_0x4a9154,_0x41c2aa){const _0x42633a=_0x31b473;var _0x4b1ded,_0x1dd945,_0x5aa939;if(!_0x4a9154||_0x4a9154['segmentId'])return!0x1;let _0x488019=_0x27b079['get'](e[_0x42633a(0x1fb)])[_0x42633a(0x21d)](_0x4a9154[_0x42633a(0x1c6)],e['UniverInstanceType'][_0x42633a(0x1f3)]),_0x25f468=_0x488019==null?void 0x0:_0x488019[_0x42633a(0x1ec)](),{offset:_0x455d9b}=_0x4a9154;if(!c(_0x25f468,_0x455d9b))return!0x1;let _0x530974=l(_0x25f468,_0x4a9154,_0x41c2aa);if(_0x530974===!0x1)return!0x1;let _0x4b662d=_0x4a9154[_0x42633a(0x22e)]??(0x0,e[_0x42633a(0x1d0)])(0xc);if((_0x4b1ded=_0x25f468[_0x42633a(0x210)])!=null&&_0x4b1ded[_0x4b662d]||(_0x1dd945=_0x25f468['headers'])!=null&&_0x1dd945[_0x4b662d]||(_0x5aa939=_0x25f468[_0x42633a(0x1de)])!=null&&_0x5aa939[_0x4b662d])return!0x1;let _0x711bab=e['Tools'][_0x42633a(0x1fa)]({'type':_0x41c2aa,'noteId':_0x4b662d,'body':_0x4a9154[_0x42633a(0x216)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x42633a(0x1cc)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e[_0x42633a(0x1da)])(new Set()),'startIndex':0x1}]},'customMark':_0x4a9154[_0x42633a(0x1c2)],'referenceTextStyle':_0x4a9154[_0x42633a(0x212)],'tableSource':_0x4a9154[_0x42633a(0x1f2)],'drawings':_0x4a9154[_0x42633a(0x1f5)],'drawingsOrder':_0x4a9154['drawingsOrder'],'lists':_0x4a9154[_0x42633a(0x22a)]});if((0x0,e[_0x42633a(0x1d3)])({'notes':{[_0x4b662d]:_0x711bab}})['length']>0x0)return!0x1;let _0x556929=new e[(_0x42633a(0x1c5))]();_0x455d9b>0x0&&_0x556929[_0x42633a(0x1fc)](_0x455d9b),_0x556929[_0x42633a(0x221)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x41c2aa===_0x42633a(0x235)?e[_0x42633a(0x23b)][_0x42633a(0x1d7)]:e[_0x42633a(0x23b)]['ENDNOTE'],'rangeId':(0x0,e[_0x42633a(0x1d0)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4b662d}}]});let _0x34abdc=e[_0x42633a(0x1c1)][_0x42633a(0x233)](),_0x2ebe0b=_0x25f468[_0x42633a(0x210)]==null?_0x34abdc['insertOp'](['notes'],{[_0x4b662d]:_0x711bab}):_0x34abdc[_0x42633a(0x1e6)](['notes',_0x4b662d],_0x711bab);return!!_0x27b079[_0x42633a(0x23c)](e[_0x42633a(0x215)])[_0x42633a(0x231)](t[_0x42633a(0x1c8)]['id'],{'unitId':_0x4a9154[_0x42633a(0x1c6)],'segmentId':'','historyAction':'insert-'+_0x41c2aa,'actions':e[_0x42633a(0x1c1)][_0x42633a(0x20e)](e[_0x42633a(0x1c1)]['compose'](_0x530974,_0x2ebe0b),_0x34abdc[_0x42633a(0x1be)](_0x556929[_0x42633a(0x1fe)](),[_0x42633a(0x216)])),'textRanges':[{'segmentId':_0x4b662d,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x4abd3b,_0x40cc29,_0x17ed55){const _0x33b9f6=_0x31b473;var _0x18e134,_0x12203d;if(!_0x40cc29)return!0x1;let _0x7f6588=_0x4abd3b[_0x33b9f6(0x23c)](e[_0x33b9f6(0x1fb)])['getUnit'](_0x40cc29[_0x33b9f6(0x1c6)],e[_0x33b9f6(0x238)]['UNIVER_DOC']),_0xabe10e=_0x7f6588==null?void 0x0:_0x7f6588[_0x33b9f6(0x1ec)](),_0x5241a4=_0xabe10e==null||(_0x18e134=_0xabe10e['notes'])==null?void 0x0:_0x18e134[_0x40cc29[_0x33b9f6(0x22e)]],_0x488a6b=_0xabe10e==null||(_0x12203d=_0xabe10e[_0x33b9f6(0x216)])==null||(_0x12203d=_0x12203d[_0x33b9f6(0x1fd)])==null?void 0x0:_0x12203d[_0x33b9f6(0x1e5)](_0x2227a3=>{const _0x56e5ca=_0x33b9f6;var _0x1522f9;return(_0x2227a3[_0x56e5ca(0x1d1)]===e[_0x56e5ca(0x23b)][_0x56e5ca(0x1d7)]||_0x2227a3[_0x56e5ca(0x1d1)]===e['CustomRangeType'][_0x56e5ca(0x1ee)])&&((_0x1522f9=_0x2227a3[_0x56e5ca(0x1e3)])==null?void 0x0:_0x1522f9[_0x56e5ca(0x22e)])===_0x40cc29[_0x56e5ca(0x22e)];});if(!_0xabe10e||_0xabe10e['documentStyle'][_0x33b9f6(0x21b)]!==e[_0x33b9f6(0x23a)]['TRADITIONAL']||!_0x5241a4||_0x5241a4[_0x33b9f6(0x1f0)]!==_0x17ed55||!_0x488a6b)return!0x1;let _0x3925a5=new e[(_0x33b9f6(0x1c5))]();_0x488a6b['startIndex']>0x0&&_0x3925a5[_0x33b9f6(0x1fc)](_0x488a6b['startIndex']),_0x3925a5[_0x33b9f6(0x1bb)](0x1);let _0x38e818=e[_0x33b9f6(0x1c1)][_0x33b9f6(0x233)]();return!!_0x4abd3b[_0x33b9f6(0x23c)](e[_0x33b9f6(0x215)])[_0x33b9f6(0x231)](t[_0x33b9f6(0x1c8)]['id'],{'unitId':_0x40cc29[_0x33b9f6(0x1c6)],'segmentId':'','historyAction':'delete-'+_0x17ed55,'actions':e[_0x33b9f6(0x1c1)]['compose'](_0x38e818[_0x33b9f6(0x1be)](_0x3925a5[_0x33b9f6(0x1fe)](),['body']),_0x38e818[_0x33b9f6(0x22c)](['notes',_0x40cc29[_0x33b9f6(0x22e)]],_0x5241a4)),'textRanges':[{'startOffset':_0x488a6b[_0x33b9f6(0x1e7)],'endOffset':_0x488a6b['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x31b473(0x228),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x16c7b3,_0x5cdb07)=>u(_0x16c7b3,_0x5cdb07,_0x31b473(0x235))},p={'id':_0x31b473(0x213),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x1f8334,_0x49c47c)=>d(_0x1f8334,_0x49c47c,_0x31b473(0x235))},m={'id':_0x31b473(0x1c0),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x52c261,_0x238d2c)=>u(_0x52c261,_0x238d2c,_0x31b473(0x1dc))},h={'id':_0x31b473(0x1f7),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x50b16a,_0x5c4fdb)=>d(_0x50b16a,_0x5c4fdb,_0x31b473(0x1dc))};var g='@univerjs-pro/docs-reference',_=_0x31b473(0x1df);function _0x4601(_0x44ccc1,_0x43aa67){_0x44ccc1=_0x44ccc1-0x1bb;const _0x329649=_0x3296();let _0x46017a=_0x329649[_0x44ccc1];return _0x46017a;}const v={};function y(_0x1eac12,_0x1ba99c){return function(_0x5719e6,_0x2c5460){_0x1ba99c(_0x5719e6,_0x2c5460,_0x1eac12);};}function b(_0x5c39ce,_0x2d0d8d,_0xe4d44a,_0x4635d0){const _0x36a55f=_0x31b473;var _0x99c3a5=arguments[_0x36a55f(0x23f)],_0x163214=_0x99c3a5<0x3?_0x2d0d8d:_0x4635d0===null?_0x4635d0=Object[_0x36a55f(0x200)](_0x2d0d8d,_0xe4d44a):_0x4635d0,_0xf9ae2c;if(typeof Reflect==_0x36a55f(0x1c9)&&typeof Reflect[_0x36a55f(0x214)]==_0x36a55f(0x242))_0x163214=Reflect[_0x36a55f(0x214)](_0x5c39ce,_0x2d0d8d,_0xe4d44a,_0x4635d0);else{for(var _0x45f65d=_0x5c39ce[_0x36a55f(0x23f)]-0x1;_0x45f65d>=0x0;_0x45f65d--)(_0xf9ae2c=_0x5c39ce[_0x45f65d])&&(_0x163214=(_0x99c3a5<0x3?_0xf9ae2c(_0x163214):_0x99c3a5>0x3?_0xf9ae2c(_0x2d0d8d,_0xe4d44a,_0x163214):_0xf9ae2c(_0x2d0d8d,_0xe4d44a))||_0x163214);}return _0x99c3a5>0x3&&_0x163214&&Object[_0x36a55f(0x1ed)](_0x2d0d8d,_0xe4d44a,_0x163214),_0x163214;}function x(_0x5de9f8){'@babel/helpers - typeof';const _0x1d99a0=_0x31b473;return x=typeof Symbol==_0x1d99a0(0x242)&&typeof Symbol['iterator']==_0x1d99a0(0x1cf)?function(_0xceb492){return typeof _0xceb492;}:function(_0x2353b8){const _0x5ccfc4=_0x1d99a0;return _0x2353b8&&typeof Symbol=='function'&&_0x2353b8[_0x5ccfc4(0x1ca)]===Symbol&&_0x2353b8!==Symbol[_0x5ccfc4(0x218)]?'symbol':typeof _0x2353b8;},x(_0x5de9f8);}function S(_0x5591b1,_0xb64901){const _0x5de3de=_0x31b473;if(x(_0x5591b1)!=_0x5de3de(0x1c9)||!_0x5591b1)return _0x5591b1;var _0x331f82=_0x5591b1[Symbol[_0x5de3de(0x23d)]];if(_0x331f82!==void 0x0){var _0x21c8e7=_0x331f82['call'](_0x5591b1,_0xb64901||_0x5de3de(0x226));if(x(_0x21c8e7)!=_0x5de3de(0x1c9))return _0x21c8e7;throw TypeError(_0x5de3de(0x1f1));}return(_0xb64901===_0x5de3de(0x239)?String:Number)(_0x5591b1);}function C(_0x31da72){const _0x5d0714=_0x31b473;var _0x5d337d=S(_0x31da72,_0x5d0714(0x239));return x(_0x5d337d)==_0x5d0714(0x1cf)?_0x5d337d:_0x5d337d+'';}function w(_0x558851,_0x185e30,_0x4814a7){const _0x555922=_0x31b473;return(_0x185e30=C(_0x185e30))in _0x558851?Object[_0x555922(0x1ed)](_0x558851,_0x185e30,{'value':_0x4814a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x558851[_0x185e30]=_0x4814a7,_0x558851;}let T=class extends e['Plugin']{constructor(_0x2198cf=v,_0x2f4879,_0x3a3732,_0x27a56c){const _0x4b8eb4=_0x31b473;super(),this[_0x4b8eb4(0x1d6)]=_0x2198cf,this[_0x4b8eb4(0x1bd)]=_0x2f4879,this['_configService']=_0x3a3732,this[_0x4b8eb4(0x21f)]=_0x27a56c;let {..._0x21ced5}=(0x0,e[_0x4b8eb4(0x1d2)])({},v,this['_config']);this[_0x4b8eb4(0x1e2)]['setConfig'](_0x4b8eb4(0x1db),_0x21ced5);}[_0x31b473(0x1dd)](){const _0x2ed407=_0x31b473;[f,p,o,m,h,s]['forEach'](_0x12952a=>this[_0x2ed407(0x1e9)](this['_commandService']['registerCommand'](_0x12952a)));}};w(T,'pluginName',_0x31b473(0x234)),w(T,'packageName',g),w(T,_0x31b473(0x202),_),w(T,_0x31b473(0x1f0),e[_0x31b473(0x238)][_0x31b473(0x1f3)]),T=b([(0x0,e[_0x31b473(0x1f4)])(n[_0x31b473(0x22f)],t[_0x31b473(0x1c3)]),y(0x1,(0x0,e['Inject'])(e[_0x31b473(0x20d)])),y(0x2,e[_0x31b473(0x1e1)]),y(0x3,e[_0x31b473(0x215)])],T),exports[_0x31b473(0x205)]=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x31b473(0x1bc)]=m,exports[_0x31b473(0x240)]=f,exports[_0x31b473(0x1eb)]=s,exports[_0x31b473(0x1c4)]=o,Object['defineProperty'](exports,'UniverDocsReferencePlugin',{'enumerable':!0x0,'get':function(){return T;}});
|
|
1
|
+
function _0x551b(_0x1b1b21,_0x1b3d80){_0x1b1b21=_0x1b1b21-0x1bb;const _0x1174e2=_0x1174();let _0x551b45=_0x1174e2[_0x1b1b21];return _0x551b45;}const _0x4ae111=_0x551b;(function(_0x1151fa,_0x33e112){const _0x209c35=_0x551b,_0x44bb2d=_0x1151fa();while(!![]){try{const _0x4173a0=parseInt(_0x209c35(0x21c))/0x1*(parseInt(_0x209c35(0x1c9))/0x2)+-parseInt(_0x209c35(0x20d))/0x3+-parseInt(_0x209c35(0x1e9))/0x4+-parseInt(_0x209c35(0x1e2))/0x5*(parseInt(_0x209c35(0x23a))/0x6)+-parseInt(_0x209c35(0x1ca))/0x7+-parseInt(_0x209c35(0x224))/0x8+parseInt(_0x209c35(0x1e3))/0x9*(parseInt(_0x209c35(0x200))/0xa);if(_0x4173a0===_0x33e112)break;else _0x44bb2d['push'](_0x44bb2d['shift']());}catch(_0x40ff60){_0x44bb2d['push'](_0x44bb2d['shift']());}}}(_0x1174,0xb45cf),Object[_0x4ae111(0x22d)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x12db16,_0x4988d8,_0x45ab87){const _0x51bb04=_0x4ae111;if(_0x12db16[_0x51bb04(0x1ec)]!=null&&!(_0x4988d8===_0x51bb04(0x236)?[_0x51bb04(0x1cb),'beneathText']:[_0x51bb04(0x1fd),_0x51bb04(0x21f)])[_0x51bb04(0x20e)](_0x12db16[_0x51bb04(0x1ec)])||_0x12db16[_0x51bb04(0x1f0)]!=null&&!(_0x4988d8===_0x51bb04(0x236)?[_0x51bb04(0x1d4),'eachSect','eachPage']:[_0x51bb04(0x1d4),_0x51bb04(0x1e1)])['includes'](_0x12db16[_0x51bb04(0x1f0)])||_0x12db16[_0x51bb04(0x20a)]!=null&&(!Number[_0x51bb04(0x216)](_0x12db16[_0x51bb04(0x20a)])||_0x12db16[_0x51bb04(0x20a)]<0x1)||_0x51bb04(0x22b)in _0x12db16&&_0x12db16[_0x51bb04(0x22b)]!=null&&(_0x4988d8!==_0x51bb04(0x236)||!Number[_0x51bb04(0x216)](_0x12db16[_0x51bb04(0x22b)])||_0x12db16['columnCount']<0x0||_0x12db16[_0x51bb04(0x22b)]>0x4)||_0x12db16[_0x51bb04(0x239)]!=null&&(typeof _0x12db16[_0x51bb04(0x239)]!=_0x51bb04(0x1c8)||_0x12db16[_0x51bb04(0x239)][_0x51bb04(0x21b)]===0x0))return!0x1;for(let _0x47fba0 of[_0x12db16[_0x51bb04(0x222)],_0x12db16[_0x51bb04(0x1f9)],_0x12db16[_0x51bb04(0x1d5)]])if(_0x47fba0!=null&&(_0x45ab87!=null||(0x0,e['validateDocBodyStructure'])(_0x47fba0)[_0x51bb04(0x21b)]>0x0))return!0x1;return!0x0;}function i(_0x4c8495,_0x36ba74,_0x3097f9){const _0x1fc1ca=_0x4ae111;var _0x545b1d,_0xa1a545;if(_0x36ba74['settings']!=null&&!r(_0x36ba74['settings'],_0x3097f9,_0x36ba74[_0x1fc1ca(0x228)]))return!0x1;let _0xe1bec1=((_0x545b1d=_0x4c8495[_0x1fc1ca(0x1d9)])==null||(_0x545b1d=_0x545b1d[_0x1fc1ca(0x1ea)])==null?void 0x0:_0x545b1d['findIndex'](_0x485af3=>_0x485af3[_0x1fc1ca(0x228)]===_0x36ba74[_0x1fc1ca(0x228)]))??-0x1;if(_0x36ba74[_0x1fc1ca(0x228)]!=null&&_0xe1bec1<0x0)return!0x1;let _0x52148d=_0x36ba74[_0x1fc1ca(0x228)]==null?_0x4c8495[_0x1fc1ca(0x220)]:(_0xa1a545=_0x4c8495[_0x1fc1ca(0x1d9)])==null||(_0xa1a545=_0xa1a545[_0x1fc1ca(0x1ea)])==null?void 0x0:_0xa1a545[_0xe1bec1][_0x1fc1ca(0x1d3)],_0x117f3f=_0x36ba74['settings']==null?void 0x0:e[_0x1fc1ca(0x234)][_0x1fc1ca(0x213)](_0x36ba74[_0x1fc1ca(0x208)]),_0x261be7=_0x36ba74['sectionId']==null?['noteSettings']:['body','sectionBreaks',_0xe1bec1,_0x1fc1ca(0x1d3)],_0x2c94bd=e[_0x1fc1ca(0x206)][_0x1fc1ca(0x1ff)](),_0x1d8340=null;if(e[_0x1fc1ca(0x234)]['diffValue'](_0x52148d==null?void 0x0:_0x52148d[_0x3097f9],_0x117f3f)||(_0x1d8340=_0x52148d==null?_0x2c94bd['insertOp'](_0x261be7,{[_0x3097f9]:_0x117f3f}):_0x36ba74[_0x1fc1ca(0x228)]!=null&&_0x117f3f==null&&Object[_0x1fc1ca(0x1cf)](_0x52148d)[_0x1fc1ca(0x226)](_0xbb4490=>_0xbb4490===_0x3097f9)?_0x2c94bd[_0x1fc1ca(0x204)](_0x261be7,_0x52148d):_0x2c94bd['replaceOp']([..._0x261be7,_0x3097f9],_0x52148d[_0x3097f9],_0x117f3f)),_0x36ba74[_0x1fc1ca(0x1e6)]!=null){var _0x13b6cc;if(_0x3097f9!=='endnote'||_0x36ba74['sectionId']==null||typeof _0x36ba74[_0x1fc1ca(0x1e6)]!=_0x1fc1ca(0x1e4))return!0x1;let _0x162bc3=(_0x13b6cc=_0x4c8495['body'])==null||(_0x13b6cc=_0x13b6cc['sectionBreaks'])==null?void 0x0:_0x13b6cc[_0xe1bec1]['suppressEndnotes'];_0x162bc3!==_0x36ba74[_0x1fc1ca(0x1e6)]&&(_0x1d8340=e[_0x1fc1ca(0x206)][_0x1fc1ca(0x1f6)](_0x1d8340,_0x2c94bd[_0x1fc1ca(0x1de)]([_0x1fc1ca(0x1d9),'sectionBreaks',_0xe1bec1,_0x1fc1ca(0x1e6)],_0x162bc3,_0x36ba74[_0x1fc1ca(0x1e6)])));}return _0x1d8340;}function a(_0x4b4f92,_0x430d9f,_0x1cbb25){const _0x570497=_0x4ae111;if(!_0x430d9f)return!0x1;let _0x372da8=_0x4b4f92[_0x570497(0x1c3)](e[_0x570497(0x1eb)])[_0x570497(0x1c6)](_0x430d9f[_0x570497(0x1ed)],e[_0x570497(0x20c)]['UNIVER_DOC']),_0x21e07f=_0x372da8==null?void 0x0:_0x372da8[_0x570497(0x237)]();if(!_0x21e07f||_0x21e07f[_0x570497(0x1c2)][_0x570497(0x202)]!==e[_0x570497(0x229)][_0x570497(0x1f5)])return!0x1;let _0x55f5c2=i(_0x21e07f,_0x430d9f,_0x1cbb25);return _0x55f5c2===!0x1||e[_0x570497(0x206)][_0x570497(0x21d)](_0x55f5c2)?!0x1:!!_0x4b4f92[_0x570497(0x1c3)](e[_0x570497(0x1ce)])[_0x570497(0x215)](t[_0x570497(0x1d1)]['id'],{'unitId':_0x430d9f[_0x570497(0x1ed)],'segmentId':'','historyAction':'set-'+_0x1cbb25+_0x570497(0x1c4),'actions':_0x55f5c2,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x4ae111(0x210),'type':e[_0x4ae111(0x207)]['COMMAND'],'handler':(_0x4b3261,_0x1f71f5)=>a(_0x4b3261,_0x1f71f5,_0x4ae111(0x236))},s={'id':_0x4ae111(0x203),'type':e['CommandType'][_0x4ae111(0x1f4)],'handler':(_0x365624,_0x1a52b2)=>a(_0x365624,_0x1a52b2,'endnote')};function c(_0x4bad92,_0x50571c){const _0x4fddf4=_0x4ae111;return(_0x4bad92==null?void 0x0:_0x4bad92[_0x4fddf4(0x1c2)][_0x4fddf4(0x202)])===e[_0x4fddf4(0x229)][_0x4fddf4(0x1f5)]&&!!_0x4bad92[_0x4fddf4(0x1d9)]&&Number[_0x4fddf4(0x216)](_0x50571c)&&_0x50571c>=0x0&&_0x50571c<_0x4bad92[_0x4fddf4(0x1d9)]['dataStream'][_0x4fddf4(0x21b)]-0x1;}function l(_0x4052aa,_0x802839,_0x5f121a){const _0x5d4e40=_0x4ae111;var _0x294b67,_0x3f9e20;if(_0x802839[_0x5d4e40(0x208)]===void 0x0&&_0x802839[_0x5d4e40(0x1e6)]===void 0x0)return null;let _0x1b0e4c=_0x802839['sectionId']==null?(_0x294b67=_0x4052aa[_0x5d4e40(0x220)])==null?void 0x0:_0x294b67[_0x5f121a]:(_0x3f9e20=_0x4052aa[_0x5d4e40(0x1d9)])==null||(_0x3f9e20=_0x3f9e20[_0x5d4e40(0x1ea)])==null||(_0x3f9e20=_0x3f9e20[_0x5d4e40(0x1dc)](_0x479830=>_0x479830[_0x5d4e40(0x228)]===_0x802839[_0x5d4e40(0x228)]))==null||(_0x3f9e20=_0x3f9e20[_0x5d4e40(0x1d3)])==null?void 0x0:_0x3f9e20[_0x5f121a];return i(_0x4052aa,{'settings':_0x802839[_0x5d4e40(0x208)]===void 0x0?_0x1b0e4c??null:_0x802839[_0x5d4e40(0x208)],'sectionId':_0x802839[_0x5d4e40(0x228)],'suppressEndnotes':_0x802839[_0x5d4e40(0x1e6)]},_0x5f121a);}function u(_0x50638f,_0x1d0bc9,_0x472a81){const _0x18be67=_0x4ae111;var _0x2fb0f4,_0x1e32a2,_0x30cea1;if(!_0x1d0bc9||_0x1d0bc9[_0x18be67(0x223)])return!0x1;let _0x2aa666=_0x50638f[_0x18be67(0x1c3)](e[_0x18be67(0x1eb)])[_0x18be67(0x1c6)](_0x1d0bc9[_0x18be67(0x1ed)],e['UniverInstanceType'][_0x18be67(0x1d2)]),_0x3c3707=_0x2aa666==null?void 0x0:_0x2aa666[_0x18be67(0x237)](),{offset:_0x423286}=_0x1d0bc9;if(!c(_0x3c3707,_0x423286))return!0x1;let _0x1a6559=l(_0x3c3707,_0x1d0bc9,_0x472a81);if(_0x1a6559===!0x1)return!0x1;let _0x79ff79=_0x1d0bc9['noteId']??(0x0,e[_0x18be67(0x230)])(0xc);if((_0x2fb0f4=_0x3c3707['notes'])!=null&&_0x2fb0f4[_0x79ff79]||(_0x1e32a2=_0x3c3707[_0x18be67(0x1fc)])!=null&&_0x1e32a2[_0x79ff79]||(_0x30cea1=_0x3c3707['footers'])!=null&&_0x30cea1[_0x79ff79])return!0x1;let _0xd8f5b1=e[_0x18be67(0x234)]['deepClone']({'type':_0x472a81,'noteId':_0x79ff79,'body':_0x1d0bc9[_0x18be67(0x1d9)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x18be67(0x20f)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x1d0bc9[_0x18be67(0x227)],'referenceTextStyle':_0x1d0bc9[_0x18be67(0x1ee)],'tableSource':_0x1d0bc9[_0x18be67(0x1d8)],'drawings':_0x1d0bc9[_0x18be67(0x1f8)],'drawingsOrder':_0x1d0bc9[_0x18be67(0x233)],'lists':_0x1d0bc9[_0x18be67(0x217)]});if((0x0,e[_0x18be67(0x221)])({'notes':{[_0x79ff79]:_0xd8f5b1}})[_0x18be67(0x21b)]>0x0)return!0x1;let _0x5a619c=new e[(_0x18be67(0x201))]();_0x423286>0x0&&_0x5a619c['retain'](_0x423286),_0x5a619c[_0x18be67(0x1dd)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x472a81===_0x18be67(0x236)?e[_0x18be67(0x22a)]['FOOTNOTE']:e[_0x18be67(0x22a)][_0x18be67(0x211)],'rangeId':(0x0,e[_0x18be67(0x230)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x79ff79}}]});let _0x2aa1c4=e['JSONX'][_0x18be67(0x1ff)](),_0x2682c3=_0x3c3707[_0x18be67(0x1e5)]==null?_0x2aa1c4[_0x18be67(0x205)]([_0x18be67(0x1e5)],{[_0x79ff79]:_0xd8f5b1}):_0x2aa1c4['insertOp']([_0x18be67(0x1e5),_0x79ff79],_0xd8f5b1);return!!_0x50638f['get'](e[_0x18be67(0x1ce)])[_0x18be67(0x215)](t[_0x18be67(0x1d1)]['id'],{'unitId':_0x1d0bc9['unitId'],'segmentId':'','historyAction':_0x18be67(0x1e0)+_0x472a81,'actions':e[_0x18be67(0x206)][_0x18be67(0x1f6)](e[_0x18be67(0x206)][_0x18be67(0x1f6)](_0x1a6559,_0x2682c3),_0x2aa1c4[_0x18be67(0x1df)](_0x5a619c[_0x18be67(0x1bf)](),[_0x18be67(0x1d9)])),'textRanges':[{'segmentId':_0x79ff79,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x2c647a,_0x48de50,_0x3d6643){const _0x3ab07e=_0x4ae111;var _0x3c0504,_0x1acbfc;if(!_0x48de50)return!0x1;let _0x111d12=_0x2c647a[_0x3ab07e(0x1c3)](e['IUniverInstanceService'])[_0x3ab07e(0x1c6)](_0x48de50[_0x3ab07e(0x1ed)],e[_0x3ab07e(0x20c)][_0x3ab07e(0x1d2)]),_0xaff4a4=_0x111d12==null?void 0x0:_0x111d12['getSnapshot'](),_0x418432=_0xaff4a4==null||(_0x3c0504=_0xaff4a4['notes'])==null?void 0x0:_0x3c0504[_0x48de50[_0x3ab07e(0x231)]],_0x2acc52=_0xaff4a4==null||(_0x1acbfc=_0xaff4a4[_0x3ab07e(0x1d9)])==null||(_0x1acbfc=_0x1acbfc[_0x3ab07e(0x214)])==null?void 0x0:_0x1acbfc[_0x3ab07e(0x1dc)](_0x1c94d2=>{const _0x2820e1=_0x3ab07e;var _0x1a83ed;return(_0x1c94d2[_0x2820e1(0x1cc)]===e[_0x2820e1(0x22a)][_0x2820e1(0x232)]||_0x1c94d2[_0x2820e1(0x1cc)]===e[_0x2820e1(0x22a)][_0x2820e1(0x211)])&&((_0x1a83ed=_0x1c94d2[_0x2820e1(0x1c1)])==null?void 0x0:_0x1a83ed[_0x2820e1(0x231)])===_0x48de50[_0x2820e1(0x231)];});if(!_0xaff4a4||_0xaff4a4[_0x3ab07e(0x1c2)]['documentFlavor']!==e[_0x3ab07e(0x229)][_0x3ab07e(0x1f5)]||!_0x418432||_0x418432[_0x3ab07e(0x1e7)]!==_0x3d6643||!_0x2acc52)return!0x1;let _0x328609=new e[(_0x3ab07e(0x201))]();_0x2acc52[_0x3ab07e(0x1fa)]>0x0&&_0x328609['retain'](_0x2acc52[_0x3ab07e(0x1fa)]),_0x328609[_0x3ab07e(0x1bb)](0x1);let _0x991975=e[_0x3ab07e(0x206)][_0x3ab07e(0x1ff)]();return!!_0x2c647a[_0x3ab07e(0x1c3)](e['ICommandService'])['syncExecuteCommand'](t[_0x3ab07e(0x1d1)]['id'],{'unitId':_0x48de50[_0x3ab07e(0x1ed)],'segmentId':'','historyAction':'delete-'+_0x3d6643,'actions':e['JSONX'][_0x3ab07e(0x1f6)](_0x991975[_0x3ab07e(0x1df)](_0x328609[_0x3ab07e(0x1bf)](),[_0x3ab07e(0x1d9)]),_0x991975[_0x3ab07e(0x204)]([_0x3ab07e(0x1e5),_0x48de50[_0x3ab07e(0x231)]],_0x418432)),'textRanges':[{'startOffset':_0x2acc52['startIndex'],'endOffset':_0x2acc52[_0x3ab07e(0x1fa)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':'doc.command.insert-footnote','type':e[_0x4ae111(0x207)]['COMMAND'],'handler':(_0x5e9257,_0x3f4f89)=>u(_0x5e9257,_0x3f4f89,_0x4ae111(0x236))},p={'id':'doc.command.delete-footnote','type':e['CommandType'][_0x4ae111(0x1f4)],'handler':(_0x27f5a6,_0x31e0c7)=>d(_0x27f5a6,_0x31e0c7,_0x4ae111(0x236))},m={'id':_0x4ae111(0x21e),'type':e[_0x4ae111(0x207)][_0x4ae111(0x1f4)],'handler':(_0x33c403,_0x119bc3)=>u(_0x33c403,_0x119bc3,_0x4ae111(0x1f2))},h={'id':_0x4ae111(0x23b),'type':e[_0x4ae111(0x207)]['COMMAND'],'handler':(_0x22ecc8,_0x11744f)=>d(_0x22ecc8,_0x11744f,_0x4ae111(0x1f2))};var g='@univerjs-pro/docs-reference',_='1.1.0';const v={};function y(_0x3169b3,_0x5831bf){return function(_0x27c66b,_0x52759b){_0x5831bf(_0x27c66b,_0x52759b,_0x3169b3);};}function b(_0x1b1415,_0x483dab,_0x344012,_0x4f255c){const _0x4722fe=_0x4ae111;var _0x1ea85e=arguments['length'],_0x41f5c3=_0x1ea85e<0x3?_0x483dab:_0x4f255c===null?_0x4f255c=Object['getOwnPropertyDescriptor'](_0x483dab,_0x344012):_0x4f255c,_0x33ffb5;if(typeof Reflect==_0x4722fe(0x1ef)&&typeof Reflect[_0x4722fe(0x1da)]==_0x4722fe(0x225))_0x41f5c3=Reflect['decorate'](_0x1b1415,_0x483dab,_0x344012,_0x4f255c);else{for(var _0x59427e=_0x1b1415['length']-0x1;_0x59427e>=0x0;_0x59427e--)(_0x33ffb5=_0x1b1415[_0x59427e])&&(_0x41f5c3=(_0x1ea85e<0x3?_0x33ffb5(_0x41f5c3):_0x1ea85e>0x3?_0x33ffb5(_0x483dab,_0x344012,_0x41f5c3):_0x33ffb5(_0x483dab,_0x344012))||_0x41f5c3);}return _0x1ea85e>0x3&&_0x41f5c3&&Object['defineProperty'](_0x483dab,_0x344012,_0x41f5c3),_0x41f5c3;}function _0x1174(){const _0x56c1a5=['pageBottom','rangeType','call','ICommandService','keys','DeleteDocumentEndnoteCommand','RichTextEditingMutation','UNIVER_DOC','noteProperties','continuous','continuationNotice','constructor','IConfigService','tableSource','body','decorate','symbol','find','insert','replaceOp','editOp','insert-','eachSect','23710bXGLIH','5922pHeCXc','boolean','notes','suppressEndnotes','type','_configService','5108044yGcYyR','sectionBreaks','IUniverInstanceService','position','unitId','referenceTextStyle','object','restart','InsertDocumentFootnoteCommand','endnote','Inject','COMMAND','TRADITIONAL','compose','toPrimitive','drawings','continuationSeparator','startIndex','DeleteDocumentFootnoteCommand','headers','docEnd','onStarting','getInstance','31150CJQrZs','TextX','documentFlavor','doc.command.set-endnote-settings','removeOp','insertOp','JSONX','CommandType','settings','setConfig','startNumber','_commandService','UniverInstanceType','992517nrIhyO','includes','createParagraphId','doc.command.set-footnote-settings','ENDNOTE','default','deepClone','customRanges','syncExecuteCommand','isInteger','lists','UniverLicensePlugin','_injector','registerCommand','length','6PiYVoM','isNoop','doc.command.insert-endnote','sectEnd','noteSettings','validateDocumentStructure','separator','segmentId','120760IyLKtB','function','every','customMark','sectionId','DocumentFlavor','CustomRangeType','columnCount','pluginName','defineProperty','Injector','forEach','generateRandomId','noteId','FOOTNOTE','drawingsOrder','Tools','disposeWithMe','footnote','getSnapshot','version','numberFormat','258cMACgd','doc.command.delete-endnote','UniverDocsPlugin','delete','docs-reference.config','_config','DependentOn','serialize','iterator','properties','documentStyle','get','-settings','InsertDocumentEndnoteCommand','getUnit','UniverDocsReferencePlugin','string','360928diphva','3967852DuGZTN'];_0x1174=function(){return _0x56c1a5;};return _0x1174();}function x(_0x5e33aa){'@babel/helpers - typeof';const _0x46c750=_0x4ae111;return x=typeof Symbol==_0x46c750(0x225)&&typeof Symbol[_0x46c750(0x1c0)]==_0x46c750(0x1db)?function(_0x1145b2){return typeof _0x1145b2;}:function(_0x161cbc){const _0x52463d=_0x46c750;return _0x161cbc&&typeof Symbol=='function'&&_0x161cbc[_0x52463d(0x1d6)]===Symbol&&_0x161cbc!==Symbol['prototype']?'symbol':typeof _0x161cbc;},x(_0x5e33aa);}function S(_0xab7f78,_0x1601d5){const _0x158ab0=_0x4ae111;if(x(_0xab7f78)!=_0x158ab0(0x1ef)||!_0xab7f78)return _0xab7f78;var _0x15a16e=_0xab7f78[Symbol[_0x158ab0(0x1f7)]];if(_0x15a16e!==void 0x0){var _0x4dc52f=_0x15a16e[_0x158ab0(0x1cd)](_0xab7f78,_0x1601d5||_0x158ab0(0x212));if(x(_0x4dc52f)!=_0x158ab0(0x1ef))return _0x4dc52f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1601d5===_0x158ab0(0x1c8)?String:Number)(_0xab7f78);}function C(_0x2b7218){const _0x3b9812=_0x4ae111;var _0x558cd0=S(_0x2b7218,_0x3b9812(0x1c8));return x(_0x558cd0)==_0x3b9812(0x1db)?_0x558cd0:_0x558cd0+'';}function w(_0x5ef5ea,_0x35d1ed,_0x40b16b){const _0x1d8d70=_0x4ae111;return(_0x35d1ed=C(_0x35d1ed))in _0x5ef5ea?Object[_0x1d8d70(0x22d)](_0x5ef5ea,_0x35d1ed,{'value':_0x40b16b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ef5ea[_0x35d1ed]=_0x40b16b,_0x5ef5ea;}let T=class extends e['Plugin']{constructor(_0x1842ed=v,_0x333db2,_0x65eb28,_0x2e95a7){const _0x76588c=_0x4ae111;super(),this[_0x76588c(0x1bd)]=_0x1842ed,this[_0x76588c(0x219)]=_0x333db2,this[_0x76588c(0x1e8)]=_0x65eb28,this[_0x76588c(0x20b)]=_0x2e95a7;let {..._0x4a19f3}=(0x0,e['merge'])({},v,this[_0x76588c(0x1bd)]);this[_0x76588c(0x1e8)][_0x76588c(0x209)](_0x76588c(0x1bc),_0x4a19f3);}[_0x4ae111(0x1fe)](){const _0x3a1ffd=_0x4ae111;[f,p,o,m,h,s][_0x3a1ffd(0x22f)](_0x3c4ec4=>this[_0x3a1ffd(0x235)](this[_0x3a1ffd(0x20b)][_0x3a1ffd(0x21a)](_0x3c4ec4)));}};w(T,_0x4ae111(0x22c),'UNIVER_DOCS_REFERENCE_PLUGIN'),w(T,'packageName',g),w(T,_0x4ae111(0x238),_),w(T,_0x4ae111(0x1e7),e[_0x4ae111(0x20c)][_0x4ae111(0x1d2)]),T=b([(0x0,e[_0x4ae111(0x1be)])(n[_0x4ae111(0x218)],t[_0x4ae111(0x23c)]),y(0x1,(0x0,e[_0x4ae111(0x1f3)])(e[_0x4ae111(0x22e)])),y(0x2,e[_0x4ae111(0x1d7)]),y(0x3,e[_0x4ae111(0x1ce)])],T),exports[_0x4ae111(0x1d0)]=h,exports[_0x4ae111(0x1fb)]=p,exports[_0x4ae111(0x1c5)]=m,exports[_0x4ae111(0x1f1)]=f,exports['SetDocumentEndnoteSettingsCommand']=s,exports['SetDocumentFootnoteSettingsCommand']=o,Object[_0x4ae111(0x22d)](exports,_0x4ae111(0x1c7),{'enumerable':!0x0,'get':function(){return T;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4fd676=_0x299f;(function(_0x2b4e23,_0x1eae5f){const _0x2f1b3b=_0x299f,_0x5397b0=_0x2b4e23();while(!![]){try{const _0x495a17=-parseInt(_0x2f1b3b(0x129))/0x1*(-parseInt(_0x2f1b3b(0x109))/0x2)+parseInt(_0x2f1b3b(0x10a))/0x3*(-parseInt(_0x2f1b3b(0x112))/0x4)+parseInt(_0x2f1b3b(0x121))/0x5*(-parseInt(_0x2f1b3b(0x10c))/0x6)+-parseInt(_0x2f1b3b(0x127))/0x7+-parseInt(_0x2f1b3b(0x128))/0x8*(-parseInt(_0x2f1b3b(0x108))/0x9)+-parseInt(_0x2f1b3b(0x12c))/0xa*(-parseInt(_0x2f1b3b(0x105))/0xb)+parseInt(_0x2f1b3b(0x118))/0xc;if(_0x495a17===_0x1eae5f)break;else _0x5397b0['push'](_0x5397b0['shift']());}catch(_0x4299e5){_0x5397b0['push'](_0x5397b0['shift']());}}}(_0x146b,0x60079));import{DeleteDocumentEndnoteCommand as _0x340aae,DeleteDocumentFootnoteCommand as _0x27fb0b,InsertDocumentEndnoteCommand as _0x21d78c,InsertDocumentFootnoteCommand as _0xea746b,SetDocumentEndnoteSettingsCommand as _0x35536d,SetDocumentFootnoteSettingsCommand as _0x47789b}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x129f40,ICommandService as _0x55ee89,Tools as _0x30b280,generateRandomId as _0x922008}from'@univerjs/core';function _0x299f(_0x2b24e3,_0x36ebbb){_0x2b24e3=_0x2b24e3-0x101;const _0x146b9c=_0x146b();let _0x299f75=_0x146b9c[_0x2b24e3];return _0x299f75;}function _0x146b(){const _0x59d869=['string','getFootnotes','693kmQYjb','customRanges','notes','3122766LsFami','2yVYUsb','136425ytFdVD','FOOTNOTE','600816PEbJWY','sectionId','startIndex','getSnapshot','extend','setEndnoteSettings','20ddUlrA','getDocumentDataModel','insertEndnote','noteId','insertFootnote','get','13159836xXdvQZ','footnote','body','syncExecuteCommand','endnote','deleteFootnote','filter','ENDNOTE','_injector','35uSsWva','flatMap','getEndnoteSettings','deleteEndnote','find','deepClone','3447731IbbhXt','8YeyLGm','87637pRbtCz','sectionBreaks','rangeType','44910ryLYDw','noteSettings','noteProperties'];_0x146b=function(){return _0x59d869;};return _0x146b();}import{FDocument as _0x266e8f}from'@univerjs/docs/facade';var d=class extends _0x266e8f{[_0x4fd676(0x116)](_0x452060,_0x438092={}){const _0x2df427=_0x4fd676;let _0x1ce775=_0x922008(0xc);return this[_0x2df427(0x120)][_0x2df427(0x117)](_0x55ee89)[_0x2df427(0x11b)](_0xea746b['id'],{..._0x438092,'unitId':this['id'],'offset':_0x452060,'noteId':_0x1ce775})?_0x1ce775:null;}[_0x4fd676(0x104)](){const _0x18bc07=_0x4fd676;var _0x470e6f;let _0x5108dd=this[_0x18bc07(0x113)]()[_0x18bc07(0x10f)]();return(((_0x470e6f=_0x5108dd['body'])==null?void 0x0:_0x470e6f[_0x18bc07(0x106)])??[])['filter'](_0x56abf6=>_0x56abf6[_0x18bc07(0x12b)]===_0x129f40[_0x18bc07(0x10b)])['sort']((_0x3978d1,_0x55d655)=>_0x3978d1[_0x18bc07(0x10e)]-_0x55d655['startIndex'])['flatMap'](_0x430385=>{const _0x17f11d=_0x18bc07;var _0x4f5963,_0x5dd289;let _0x475bc8=(_0x4f5963=_0x430385['properties'])==null?void 0x0:_0x4f5963[_0x17f11d(0x115)],_0x86ffa4=typeof _0x475bc8==_0x17f11d(0x103)?(_0x5dd289=_0x5108dd['notes'])==null?void 0x0:_0x5dd289[_0x475bc8]:void 0x0;return _0x86ffa4?[_0x30b280[_0x17f11d(0x126)](_0x86ffa4)]:[];});}[_0x4fd676(0x11d)](_0xbab1ed){const _0x376ce7=_0x4fd676;return this[_0x376ce7(0x120)][_0x376ce7(0x117)](_0x55ee89)[_0x376ce7(0x11b)](_0x27fb0b['id'],{'unitId':this['id'],'noteId':_0xbab1ed});}['getFootnoteSettings'](_0x5cfa19){const _0x1c694a=_0x4fd676;var _0x576c43,_0xca73b4;let _0x26a21d=this[_0x1c694a(0x113)]()['getSnapshot'](),_0x3b24be=_0x5cfa19==null?(_0x576c43=_0x26a21d['noteSettings'])==null?void 0x0:_0x576c43[_0x1c694a(0x119)]:(_0xca73b4=_0x26a21d[_0x1c694a(0x11a)])==null||(_0xca73b4=_0xca73b4[_0x1c694a(0x12a)])==null||(_0xca73b4=_0xca73b4[_0x1c694a(0x125)](_0x563548=>_0x563548['sectionId']===_0x5cfa19))==null||(_0xca73b4=_0xca73b4['noteProperties'])==null?void 0x0:_0xca73b4[_0x1c694a(0x119)];return _0x3b24be==null?void 0x0:_0x30b280['deepClone'](_0x3b24be);}['setFootnoteSettings'](_0x42ce54,_0x1d0d3b){const _0x26f65d=_0x4fd676;return this['_injector'][_0x26f65d(0x117)](_0x55ee89)[_0x26f65d(0x11b)](_0x47789b['id'],{'unitId':this['id'],'settings':_0x42ce54,'sectionId':_0x1d0d3b});}[_0x4fd676(0x114)](_0x550491,_0xc17eb6={}){const _0x37743a=_0x4fd676;let _0x5df971=_0x922008(0xc);return this[_0x37743a(0x120)]['get'](_0x55ee89)[_0x37743a(0x11b)](_0x21d78c['id'],{..._0xc17eb6,'unitId':this['id'],'offset':_0x550491,'noteId':_0x5df971})?_0x5df971:null;}['getEndnotes'](){const _0x4d253e=_0x4fd676;var _0x35c7b1;let _0xd56a92=this['getDocumentDataModel']()[_0x4d253e(0x10f)]();return(((_0x35c7b1=_0xd56a92[_0x4d253e(0x11a)])==null?void 0x0:_0x35c7b1[_0x4d253e(0x106)])??[])[_0x4d253e(0x11e)](_0x708349=>_0x708349[_0x4d253e(0x12b)]===_0x129f40[_0x4d253e(0x11f)])['sort']((_0x11f4b9,_0x2c510e)=>_0x11f4b9[_0x4d253e(0x10e)]-_0x2c510e[_0x4d253e(0x10e)])[_0x4d253e(0x122)](_0x1b753a=>{const _0x351152=_0x4d253e;var _0x5b256d,_0x42c402;let _0x22fd89=(_0x5b256d=_0x1b753a['properties'])==null?void 0x0:_0x5b256d[_0x351152(0x115)],_0x3e7ef4=typeof _0x22fd89==_0x351152(0x103)?(_0x42c402=_0xd56a92[_0x351152(0x107)])==null?void 0x0:_0x42c402[_0x22fd89]:void 0x0;return _0x3e7ef4?[_0x30b280[_0x351152(0x126)](_0x3e7ef4)]:[];});}[_0x4fd676(0x124)](_0x2745bc){const _0xc0b019=_0x4fd676;return this[_0xc0b019(0x120)][_0xc0b019(0x117)](_0x55ee89)[_0xc0b019(0x11b)](_0x340aae['id'],{'unitId':this['id'],'noteId':_0x2745bc});}[_0x4fd676(0x123)](_0x399f93){const _0x53f298=_0x4fd676;var _0x1cc09b,_0x3b8587;let _0x99325b=this[_0x53f298(0x113)]()[_0x53f298(0x10f)](),_0x5180c4=_0x399f93==null?(_0x1cc09b=_0x99325b[_0x53f298(0x101)])==null?void 0x0:_0x1cc09b[_0x53f298(0x11c)]:(_0x3b8587=_0x99325b[_0x53f298(0x11a)])==null||(_0x3b8587=_0x3b8587['sectionBreaks'])==null||(_0x3b8587=_0x3b8587[_0x53f298(0x125)](_0x45f0ce=>_0x45f0ce[_0x53f298(0x10d)]===_0x399f93))==null||(_0x3b8587=_0x3b8587[_0x53f298(0x102)])==null?void 0x0:_0x3b8587[_0x53f298(0x11c)];return _0x5180c4==null?void 0x0:_0x30b280[_0x53f298(0x126)](_0x5180c4);}[_0x4fd676(0x111)](_0x2518ba,_0x13b3b4){const _0x2ad0a3=_0x4fd676;return this['_injector'][_0x2ad0a3(0x117)](_0x55ee89)[_0x2ad0a3(0x11b)](_0x35536d['id'],{'unitId':this['id'],'settings':_0x2518ba,'sectionId':_0x13b3b4});}};_0x266e8f[_0x4fd676(0x110)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x354455=_0x2ad7;(function(_0x243805,_0x5c00f2){const _0x4de663=_0x2ad7,_0x259b48=_0x243805();while(!![]){try{const _0x51c828=parseInt(_0x4de663(0x131))/0x1*(-parseInt(_0x4de663(0x13c))/0x2)+parseInt(_0x4de663(0x119))/0x3+-parseInt(_0x4de663(0x120))/0x4*(-parseInt(_0x4de663(0xfe))/0x5)+-parseInt(_0x4de663(0x118))/0x6*(-parseInt(_0x4de663(0xf9))/0x7)+parseInt(_0x4de663(0x114))/0x8*(parseInt(_0x4de663(0xfd))/0x9)+-parseInt(_0x4de663(0x109))/0xa+-parseInt(_0x4de663(0x127))/0xb;if(_0x51c828===_0x5c00f2)break;else _0x259b48['push'](_0x259b48['shift']());}catch(_0x736753){_0x259b48['push'](_0x259b48['shift']());}}}(_0x1570,0x3798a));import{CommandType as _0x2dea21,CustomRangeType as _0x18c808,DependentOn as _0x25103f,DocumentFlavor as _0x1c338d,ICommandService as _0x96e9cf,IConfigService as _0x31856b,IUniverInstanceService as _0x3749d4,Inject as _0x481bb7,Injector as _0x20836d,JSONX as _0x27e466,Plugin as _0x24f424,TextX as _0x4e06e4,Tools as _0x223dfc,UniverInstanceType as _0x2a21bc,createParagraphId as _0x20e6fe,createSectionId as _0x17cab0,generateRandomId as _0x324573,merge as _0x3dfa1e,validateDocBodyStructure as _0x4b5823,validateDocumentStructure as _0x158a70}from'@univerjs/core';import{RichTextEditingMutation as _0x3c3a8a,UniverDocsPlugin as _0x280ea7}from'@univerjs/docs';import{UniverLicensePlugin as _0x99429e}from'@univerjs-pro/license';function C(_0x2f5685,_0x4e3080,_0x1ea806){const _0x18500f=_0x2ad7;if(_0x2f5685[_0x18500f(0x144)]!=null&&!(_0x4e3080===_0x18500f(0xf1)?['pageBottom',_0x18500f(0x12e)]:['docEnd','sectEnd'])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0x144)])||_0x2f5685['restart']!=null&&!(_0x4e3080===_0x18500f(0xf1)?[_0x18500f(0x10e),_0x18500f(0x108),_0x18500f(0x130)]:[_0x18500f(0x10e),_0x18500f(0x108)])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0xf5)])||_0x2f5685[_0x18500f(0x101)]!=null&&(!Number[_0x18500f(0x145)](_0x2f5685[_0x18500f(0x101)])||_0x2f5685['startNumber']<0x1)||_0x18500f(0xee)in _0x2f5685&&_0x2f5685[_0x18500f(0xee)]!=null&&(_0x4e3080!==_0x18500f(0xf1)||!Number['isInteger'](_0x2f5685['columnCount'])||_0x2f5685[_0x18500f(0xee)]<0x0||_0x2f5685['columnCount']>0x4)||_0x2f5685[_0x18500f(0x112)]!=null&&(typeof _0x2f5685[_0x18500f(0x112)]!=_0x18500f(0x149)||_0x2f5685[_0x18500f(0x112)][_0x18500f(0x11a)]===0x0))return!0x1;for(let _0x3b6638 of[_0x2f5685['separator'],_0x2f5685[_0x18500f(0x139)],_0x2f5685['continuationNotice']])if(_0x3b6638!=null&&(_0x1ea806!=null||_0x4b5823(_0x3b6638)[_0x18500f(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x5a001c,_0x3e27db,_0x274b4e){const _0x1c0acb=_0x2ad7;var _0x196da4,_0x40c5f6;if(_0x3e27db[_0x1c0acb(0x14d)]!=null&&!C(_0x3e27db[_0x1c0acb(0x14d)],_0x274b4e,_0x3e27db['sectionId']))return!0x1;let _0x30a694=((_0x196da4=_0x5a001c['body'])==null||(_0x196da4=_0x196da4[_0x1c0acb(0x10c)])==null?void 0x0:_0x196da4[_0x1c0acb(0x14c)](_0x5993f8=>_0x5993f8[_0x1c0acb(0x117)]===_0x3e27db['sectionId']))??-0x1;if(_0x3e27db['sectionId']!=null&&_0x30a694<0x0)return!0x1;let _0x5ce190=_0x3e27db['sectionId']==null?_0x5a001c[_0x1c0acb(0x116)]:(_0x40c5f6=_0x5a001c[_0x1c0acb(0x113)])==null||(_0x40c5f6=_0x40c5f6[_0x1c0acb(0x10c)])==null?void 0x0:_0x40c5f6[_0x30a694]['noteProperties'],_0x4276ba=_0x3e27db['settings']==null?void 0x0:_0x223dfc[_0x1c0acb(0x121)](_0x3e27db[_0x1c0acb(0x14d)]),_0x33dd5b=_0x3e27db[_0x1c0acb(0x117)]==null?['noteSettings']:[_0x1c0acb(0x113),_0x1c0acb(0x10c),_0x30a694,_0x1c0acb(0x140)],_0x5ce864=_0x27e466[_0x1c0acb(0x11d)](),_0x2b52f5=null;if(_0x223dfc[_0x1c0acb(0x141)](_0x5ce190==null?void 0x0:_0x5ce190[_0x274b4e],_0x4276ba)||(_0x2b52f5=_0x5ce190==null?_0x5ce864[_0x1c0acb(0x115)](_0x33dd5b,{[_0x274b4e]:_0x4276ba}):_0x3e27db['sectionId']!=null&&_0x4276ba==null&&Object[_0x1c0acb(0x12b)](_0x5ce190)[_0x1c0acb(0x105)](_0x5b0ea4=>_0x5b0ea4===_0x274b4e)?_0x5ce864[_0x1c0acb(0xf0)](_0x33dd5b,_0x5ce190):_0x5ce864['replaceOp']([..._0x33dd5b,_0x274b4e],_0x5ce190[_0x274b4e],_0x4276ba)),_0x3e27db[_0x1c0acb(0x135)]!=null){var _0x404016;if(_0x274b4e!==_0x1c0acb(0x125)||_0x3e27db[_0x1c0acb(0x117)]==null||typeof _0x3e27db[_0x1c0acb(0x135)]!=_0x1c0acb(0x111))return!0x1;let _0x294e40=(_0x404016=_0x5a001c['body'])==null||(_0x404016=_0x404016[_0x1c0acb(0x10c)])==null?void 0x0:_0x404016[_0x30a694][_0x1c0acb(0x135)];_0x294e40!==_0x3e27db['suppressEndnotes']&&(_0x2b52f5=_0x27e466[_0x1c0acb(0xf3)](_0x2b52f5,_0x5ce864[_0x1c0acb(0x11c)]([_0x1c0acb(0x113),'sectionBreaks',_0x30a694,'suppressEndnotes'],_0x294e40,_0x3e27db[_0x1c0acb(0x135)])));}return _0x2b52f5;}function T(_0x9b2920,_0x41e12d,_0x11fdb8){const _0x51999a=_0x2ad7;if(!_0x41e12d)return!0x1;let _0xc9dded=_0x9b2920[_0x51999a(0x11b)](_0x3749d4)['getUnit'](_0x41e12d[_0x51999a(0x13f)],_0x2a21bc[_0x51999a(0x13e)]),_0x58508b=_0xc9dded==null?void 0x0:_0xc9dded[_0x51999a(0x147)]();if(!_0x58508b||_0x58508b['documentStyle'][_0x51999a(0x13d)]!==_0x1c338d[_0x51999a(0xf8)])return!0x1;let _0x34f091=w(_0x58508b,_0x41e12d,_0x11fdb8);return _0x34f091===!0x1||_0x27e466[_0x51999a(0x106)](_0x34f091)?!0x1:!!_0x9b2920[_0x51999a(0x11b)](_0x96e9cf)[_0x51999a(0x110)](_0x3c3a8a['id'],{'unitId':_0x41e12d['unitId'],'segmentId':'','historyAction':_0x51999a(0x107)+_0x11fdb8+_0x51999a(0x122),'actions':_0x34f091,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x149d55,_0x4464dd)=>T(_0x149d55,_0x4464dd,_0x354455(0xf1))},D={'id':_0x354455(0x102),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x580a51,_0x46d6bf)=>T(_0x580a51,_0x46d6bf,_0x354455(0x125))};function O(_0x1d4bb9,_0x15aa09){const _0x4c5320=_0x354455;return(_0x1d4bb9==null?void 0x0:_0x1d4bb9[_0x4c5320(0x12d)][_0x4c5320(0x13d)])===_0x1c338d[_0x4c5320(0xf8)]&&!!_0x1d4bb9[_0x4c5320(0x113)]&&Number['isInteger'](_0x15aa09)&&_0x15aa09>=0x0&&_0x15aa09<_0x1d4bb9[_0x4c5320(0x113)]['dataStream'][_0x4c5320(0x11a)]-0x1;}function k(_0x3626a5,_0x2511c2,_0x356066){const _0x4d1bcb=_0x354455;var _0x1dd9a9,_0xaa62a3;if(_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0&&_0x2511c2[_0x4d1bcb(0x135)]===void 0x0)return null;let _0x575270=_0x2511c2['sectionId']==null?(_0x1dd9a9=_0x3626a5[_0x4d1bcb(0x116)])==null?void 0x0:_0x1dd9a9[_0x356066]:(_0xaa62a3=_0x3626a5[_0x4d1bcb(0x113)])==null||(_0xaa62a3=_0xaa62a3['sectionBreaks'])==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x133)](_0x354b47=>_0x354b47[_0x4d1bcb(0x117)]===_0x2511c2[_0x4d1bcb(0x117)]))==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x140)])==null?void 0x0:_0xaa62a3[_0x356066];return w(_0x3626a5,{'settings':_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0?_0x575270??null:_0x2511c2['settings'],'sectionId':_0x2511c2[_0x4d1bcb(0x117)],'suppressEndnotes':_0x2511c2[_0x4d1bcb(0x135)]},_0x356066);}function A(_0x40d02b,_0xef7492,_0x23a2e4){const _0x4b7d94=_0x354455;var _0x46fd1c,_0xd987d6,_0x2b9b94;if(!_0xef7492||_0xef7492[_0x4b7d94(0x123)])return!0x1;let _0x36c04b=_0x40d02b['get'](_0x3749d4)[_0x4b7d94(0xfc)](_0xef7492['unitId'],_0x2a21bc[_0x4b7d94(0x13e)]),_0x645dce=_0x36c04b==null?void 0x0:_0x36c04b[_0x4b7d94(0x147)](),{offset:_0x39a975}=_0xef7492;if(!O(_0x645dce,_0x39a975))return!0x1;let _0x411a47=k(_0x645dce,_0xef7492,_0x23a2e4);if(_0x411a47===!0x1)return!0x1;let _0x27b863=_0xef7492['noteId']??_0x324573(0xc);if((_0x46fd1c=_0x645dce[_0x4b7d94(0xfb)])!=null&&_0x46fd1c[_0x27b863]||(_0xd987d6=_0x645dce[_0x4b7d94(0x143)])!=null&&_0xd987d6[_0x27b863]||(_0x2b9b94=_0x645dce[_0x4b7d94(0x10a)])!=null&&_0x2b9b94[_0x27b863])return!0x1;let _0x2b0820=_0x223dfc[_0x4b7d94(0x121)]({'type':_0x23a2e4,'noteId':_0x27b863,'body':_0xef7492[_0x4b7d94(0x113)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x20e6fe(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x17cab0(new Set()),'startIndex':0x1}]},'customMark':_0xef7492['customMark'],'referenceTextStyle':_0xef7492[_0x4b7d94(0x14a)],'tableSource':_0xef7492[_0x4b7d94(0x136)],'drawings':_0xef7492[_0x4b7d94(0x13a)],'drawingsOrder':_0xef7492[_0x4b7d94(0x142)],'lists':_0xef7492['lists']});if(_0x158a70({'notes':{[_0x27b863]:_0x2b0820}})[_0x4b7d94(0x11a)]>0x0)return!0x1;let _0x22c30b=new _0x4e06e4();_0x39a975>0x0&&_0x22c30b[_0x4b7d94(0xf4)](_0x39a975),_0x22c30b['insert'](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x23a2e4===_0x4b7d94(0xf1)?_0x18c808[_0x4b7d94(0x150)]:_0x18c808[_0x4b7d94(0x11e)],'rangeId':_0x324573(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27b863}}]});let _0x5798d5=_0x27e466['getInstance'](),_0x9fbb4a=_0x645dce['notes']==null?_0x5798d5[_0x4b7d94(0x115)]([_0x4b7d94(0xfb)],{[_0x27b863]:_0x2b0820}):_0x5798d5['insertOp'](['notes',_0x27b863],_0x2b0820);return!!_0x40d02b[_0x4b7d94(0x11b)](_0x96e9cf)[_0x4b7d94(0x110)](_0x3c3a8a['id'],{'unitId':_0xef7492[_0x4b7d94(0x13f)],'segmentId':'','historyAction':'insert-'+_0x23a2e4,'actions':_0x27e466['compose'](_0x27e466[_0x4b7d94(0xf3)](_0x411a47,_0x9fbb4a),_0x5798d5[_0x4b7d94(0xfa)](_0x22c30b[_0x4b7d94(0x103)](),[_0x4b7d94(0x113)])),'textRanges':[{'segmentId':_0x27b863,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x50de60,_0x2ec0bb,_0x2acfd5){const _0x391281=_0x354455;var _0x5efb76,_0x292ddc;if(!_0x2ec0bb)return!0x1;let _0x484d3e=_0x50de60[_0x391281(0x11b)](_0x3749d4)[_0x391281(0xfc)](_0x2ec0bb[_0x391281(0x13f)],_0x2a21bc[_0x391281(0x13e)]),_0x1f8c8d=_0x484d3e==null?void 0x0:_0x484d3e[_0x391281(0x147)](),_0x10b90d=_0x1f8c8d==null||(_0x5efb76=_0x1f8c8d[_0x391281(0xfb)])==null?void 0x0:_0x5efb76[_0x2ec0bb[_0x391281(0xff)]],_0x2a2be6=_0x1f8c8d==null||(_0x292ddc=_0x1f8c8d['body'])==null||(_0x292ddc=_0x292ddc['customRanges'])==null?void 0x0:_0x292ddc['find'](_0x3fb58b=>{const _0x2da165=_0x391281;var _0x3454f1;return(_0x3fb58b[_0x2da165(0x12a)]===_0x18c808['FOOTNOTE']||_0x3fb58b['rangeType']===_0x18c808['ENDNOTE'])&&((_0x3454f1=_0x3fb58b[_0x2da165(0x10b)])==null?void 0x0:_0x3454f1['noteId'])===_0x2ec0bb[_0x2da165(0xff)];});if(!_0x1f8c8d||_0x1f8c8d['documentStyle'][_0x391281(0x13d)]!==_0x1c338d[_0x391281(0xf8)]||!_0x10b90d||_0x10b90d['type']!==_0x2acfd5||!_0x2a2be6)return!0x1;let _0x4a773d=new _0x4e06e4();_0x2a2be6[_0x391281(0x104)]>0x0&&_0x4a773d[_0x391281(0xf4)](_0x2a2be6[_0x391281(0x104)]),_0x4a773d[_0x391281(0x137)](0x1);let _0xaebca4=_0x27e466['getInstance']();return!!_0x50de60['get'](_0x96e9cf)[_0x391281(0x110)](_0x3c3a8a['id'],{'unitId':_0x2ec0bb[_0x391281(0x13f)],'segmentId':'','historyAction':'delete-'+_0x2acfd5,'actions':_0x27e466[_0x391281(0xf3)](_0xaebca4[_0x391281(0xfa)](_0x4a773d[_0x391281(0x103)](),[_0x391281(0x113)]),_0xaebca4['removeOp']([_0x391281(0xfb),_0x2ec0bb[_0x391281(0xff)]],_0x10b90d)),'textRanges':[{'startOffset':_0x2a2be6[_0x391281(0x104)],'endOffset':_0x2a2be6['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x354455(0xf7),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x24ee12,_0x2ea241)=>A(_0x24ee12,_0x2ea241,_0x354455(0xf1))},N={'id':'doc.command.delete-footnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x2157ab,_0x1e5999)=>j(_0x2157ab,_0x1e5999,_0x354455(0xf1))},P={'id':'doc.command.insert-endnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x393aff,_0x1d38d8)=>A(_0x393aff,_0x1d38d8,_0x354455(0x125))},F={'id':_0x354455(0x13b),'type':_0x2dea21['COMMAND'],'handler':(_0x1ce22a,_0x3a4e0e)=>j(_0x1ce22a,_0x3a4e0e,'endnote')};var I='@univerjs-pro/docs-reference',L=_0x354455(0x128);const R={};function z(_0xec09fb,_0x22029b){return function(_0x155a81,_0x4ed450){_0x22029b(_0x155a81,_0x4ed450,_0xec09fb);};}function B(_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4){const _0x714d30=_0x354455;var _0x447146=arguments[_0x714d30(0x11a)],_0x493ede=_0x447146<0x3?_0x207d95:_0x1a80e4===null?_0x1a80e4=Object[_0x714d30(0x100)](_0x207d95,_0x1d3f79):_0x1a80e4,_0x46f2af;if(typeof Reflect=='object'&&typeof Reflect[_0x714d30(0x148)]=='function')_0x493ede=Reflect[_0x714d30(0x148)](_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4);else{for(var _0x470fa0=_0x26397f[_0x714d30(0x11a)]-0x1;_0x470fa0>=0x0;_0x470fa0--)(_0x46f2af=_0x26397f[_0x470fa0])&&(_0x493ede=(_0x447146<0x3?_0x46f2af(_0x493ede):_0x447146>0x3?_0x46f2af(_0x207d95,_0x1d3f79,_0x493ede):_0x46f2af(_0x207d95,_0x1d3f79))||_0x493ede);}return _0x447146>0x3&&_0x493ede&&Object[_0x714d30(0x138)](_0x207d95,_0x1d3f79,_0x493ede),_0x493ede;}function V(_0x139767){'@babel/helpers - typeof';const _0xcd2fda=_0x354455;return V=typeof Symbol==_0xcd2fda(0x14b)&&typeof Symbol['iterator']==_0xcd2fda(0xf6)?function(_0x3a7d99){return typeof _0x3a7d99;}:function(_0x2c39d5){const _0x22227e=_0xcd2fda;return _0x2c39d5&&typeof Symbol==_0x22227e(0x14b)&&_0x2c39d5[_0x22227e(0xf2)]===Symbol&&_0x2c39d5!==Symbol['prototype']?_0x22227e(0xf6):typeof _0x2c39d5;},V(_0x139767);}function H(_0x2acbd6,_0x40c98a){const _0xadaed4=_0x354455;if(V(_0x2acbd6)!='object'||!_0x2acbd6)return _0x2acbd6;var _0x13eb0d=_0x2acbd6[Symbol[_0xadaed4(0x146)]];if(_0x13eb0d!==void 0x0){var _0xbbba85=_0x13eb0d[_0xadaed4(0x10d)](_0x2acbd6,_0x40c98a||_0xadaed4(0x10f));if(V(_0xbbba85)!=_0xadaed4(0x151))return _0xbbba85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x40c98a===_0xadaed4(0x149)?String:Number)(_0x2acbd6);}function U(_0x1c3a68){const _0x21d6dc=_0x354455;var _0x39560d=H(_0x1c3a68,_0x21d6dc(0x149));return V(_0x39560d)=='symbol'?_0x39560d:_0x39560d+'';}function W(_0x4380d9,_0x11a578,_0x4a35d5){const _0x376e7f=_0x354455;return(_0x11a578=U(_0x11a578))in _0x4380d9?Object[_0x376e7f(0x138)](_0x4380d9,_0x11a578,{'value':_0x4a35d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4380d9[_0x11a578]=_0x4a35d5,_0x4380d9;}let G=class extends _0x24f424{constructor(_0x3a806e=R,_0x4ae6c4,_0x673061,_0x495376){const _0x7f4525=_0x354455;super(),this['_config']=_0x3a806e,this['_injector']=_0x4ae6c4,this[_0x7f4525(0x14f)]=_0x673061,this['_commandService']=_0x495376;let {..._0x5ef51c}=_0x3dfa1e({},R,this['_config']);this[_0x7f4525(0x14f)][_0x7f4525(0x126)](_0x7f4525(0x12f),_0x5ef51c);}['onStarting'](){const _0x1d589=_0x354455;[M,N,E,P,F,D]['forEach'](_0x51ca67=>this['disposeWithMe'](this[_0x1d589(0x12c)]['registerCommand'](_0x51ca67)));}};W(G,_0x354455(0x132),_0x354455(0x134)),W(G,_0x354455(0xef),I),W(G,_0x354455(0x129),L),W(G,_0x354455(0x124),_0x2a21bc['UNIVER_DOC']),G=B([_0x25103f(_0x99429e,_0x280ea7),z(0x1,_0x481bb7(_0x20836d)),z(0x2,_0x31856b),z(0x3,_0x96e9cf)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};function _0x2ad7(_0x2ad720,_0x16e2dd){_0x2ad720=_0x2ad720-0xee;const _0x15704d=_0x1570();let _0x2ad7ce=_0x15704d[_0x2ad720];return _0x2ad7ce;}function _0x1570(){const _0xb51c48=['sectionId','5454IQXbGF','1364799hUQTWe','length','get','replaceOp','getInstance','ENDNOTE','includes','474236nYugCh','deepClone','-settings','segmentId','type','endnote','setConfig','8943066IiFtIm','1.0.4','version','rangeType','keys','_commandService','documentStyle','beneathText','docs-reference.config','eachPage','2571bnZPaC','pluginName','find','UNIVER_DOCS_REFERENCE_PLUGIN','suppressEndnotes','tableSource','delete','defineProperty','continuationSeparator','drawings','doc.command.delete-endnote','236wrFKvG','documentFlavor','UNIVER_DOC','unitId','noteProperties','diffValue','drawingsOrder','headers','position','isInteger','toPrimitive','getSnapshot','decorate','string','referenceTextStyle','function','findIndex','settings','COMMAND','_configService','FOOTNOTE','object','columnCount','packageName','removeOp','footnote','constructor','compose','retain','restart','symbol','doc.command.insert-footnote','TRADITIONAL','2541UZVYCI','editOp','notes','getUnit','9837hppaeA','15ERRpTo','noteId','getOwnPropertyDescriptor','startNumber','doc.command.set-endnote-settings','serialize','startIndex','every','isNoop','set-','eachSect','1320220nHhEnf','footers','properties','sectionBreaks','call','continuous','default','syncExecuteCommand','boolean','numberFormat','body','2456qllCIh','insertOp','noteSettings'];_0x1570=function(){return _0xb51c48;};return _0x1570();}
|
|
1
|
+
const _0x22b396=_0x3399;(function(_0x15d2ca,_0x1cbd33){const _0x309b25=_0x3399,_0x52a64a=_0x15d2ca();while(!![]){try{const _0x5e5a61=parseInt(_0x309b25(0x184))/0x1+-parseInt(_0x309b25(0x17e))/0x2*(parseInt(_0x309b25(0x15d))/0x3)+-parseInt(_0x309b25(0x16a))/0x4+-parseInt(_0x309b25(0x189))/0x5*(-parseInt(_0x309b25(0x17a))/0x6)+parseInt(_0x309b25(0x1b9))/0x7+parseInt(_0x309b25(0x1bf))/0x8+-parseInt(_0x309b25(0x1c3))/0x9;if(_0x5e5a61===_0x1cbd33)break;else _0x52a64a['push'](_0x52a64a['shift']());}catch(_0x3458a1){_0x52a64a['push'](_0x52a64a['shift']());}}}(_0x4b54,0x5d372));import{CommandType as _0x2c710e,CustomRangeType as _0x1c2972,DependentOn as _0x382a79,DocumentFlavor as _0x5d9527,ICommandService as _0x1dc54d,IConfigService as _0x417b48,IUniverInstanceService as _0x893d89,Inject as _0x72c1ec,Injector as _0xe4c5b2,JSONX as _0x268637,Plugin as _0x3f78bf,TextX as _0x30f2e6,Tools as _0xe26de,UniverInstanceType as _0x176aa1,createParagraphId as _0x1935ce,createSectionId as _0x13d756,generateRandomId as _0x342bc6,merge as _0x5d1571,validateDocBodyStructure as _0x2f43f1,validateDocumentStructure as _0x57396f}from'@univerjs/core';import{RichTextEditingMutation as _0x49f177,UniverDocsPlugin as _0x47677c}from'@univerjs/docs';import{UniverLicensePlugin as _0x163745}from'@univerjs-pro/license';function _0x4b54(){const _0x13e64d=['docEnd','iterator','docs-reference.config','getSnapshot','type','dataStream','_commandService','2080309KOvsXC','UNIVER_DOC','delete','editOp','continuationNotice','documentStyle','5937856HpBZft','continuous','getOwnPropertyDescriptor','diffValue','1733526AwydAz','UNIVER_DOCS_REFERENCE_PLUGIN','headers','restart','function','documentFlavor','deepClone','insert-','get','7827UNTBFw','syncExecuteCommand','settings','segmentId','pluginName','notes','sectEnd','includes','onStarting','COMMAND','separator','doc.command.delete-footnote','drawings','1675484GkGWLy','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','-settings','properties','suppressEndnotes','noteId','findIndex','eachPage','length','defineProperty','ENDNOTE','default','customRanges','@univerjs-pro/docs-reference','position','disposeWithMe','66oziwZv','body','retain','constructor','358QrjkJK','footnote','doc.command.insert-endnote','boolean','setConfig','FOOTNOTE','416278bXwaTk','insert','every','removeOp','compose','2095EZRkza','isNoop','noteSettings','decorate','_configService','TRADITIONAL','tableSource','serialize','footers','customMark','pageBottom','columnCount','drawingsOrder','startNumber','toPrimitive','_config','symbol','continuationSeparator','rangeType','doc.command.set-footnote-settings','delete-','doc.command.delete-endnote','noteProperties','endnote','sectionId','getInstance','referenceTextStyle','eachSect','set-','replaceOp','keys','isInteger','unitId','_injector','insertOp','getUnit','string','object','startIndex','numberFormat','sectionBreaks'];_0x4b54=function(){return _0x13e64d;};return _0x4b54();}function C(_0x4b4634,_0x39b3fa,_0x56d231){const _0x2cd497=_0x3399;if(_0x4b4634[_0x2cd497(0x178)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x193),'beneathText']:[_0x2cd497(0x1b2),_0x2cd497(0x163)])[_0x2cd497(0x164)](_0x4b4634[_0x2cd497(0x178)])||_0x4b4634[_0x2cd497(0x1c6)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x1c0),_0x2cd497(0x1a4),_0x2cd497(0x171)]:[_0x2cd497(0x1c0),_0x2cd497(0x1a4)])['includes'](_0x4b4634[_0x2cd497(0x1c6)])||_0x4b4634['startNumber']!=null&&(!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x196)])||_0x4b4634[_0x2cd497(0x196)]<0x1)||_0x2cd497(0x194)in _0x4b4634&&_0x4b4634[_0x2cd497(0x194)]!=null&&(_0x39b3fa!==_0x2cd497(0x17f)||!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x194)])||_0x4b4634[_0x2cd497(0x194)]<0x0||_0x4b4634[_0x2cd497(0x194)]>0x4)||_0x4b4634['numberFormat']!=null&&(typeof _0x4b4634['numberFormat']!=_0x2cd497(0x1ad)||_0x4b4634[_0x2cd497(0x1b0)][_0x2cd497(0x172)]===0x0))return!0x1;for(let _0x4b038b of[_0x4b4634[_0x2cd497(0x167)],_0x4b4634[_0x2cd497(0x19a)],_0x4b4634[_0x2cd497(0x1bd)]])if(_0x4b038b!=null&&(_0x56d231!=null||_0x2f43f1(_0x4b038b)[_0x2cd497(0x172)]>0x0))return!0x1;return!0x0;}function w(_0x1a77c6,_0x2e67f2,_0x27e8fe){const _0xfce965=_0x3399;var _0x105553,_0x3112c7;if(_0x2e67f2[_0xfce965(0x15f)]!=null&&!C(_0x2e67f2[_0xfce965(0x15f)],_0x27e8fe,_0x2e67f2[_0xfce965(0x1a1)]))return!0x1;let _0x32e1c0=((_0x105553=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x105553=_0x105553[_0xfce965(0x1b1)])==null?void 0x0:_0x105553[_0xfce965(0x170)](_0x8bde95=>_0x8bde95[_0xfce965(0x1a1)]===_0x2e67f2[_0xfce965(0x1a1)]))??-0x1;if(_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x32e1c0<0x0)return!0x1;let _0x54d37c=_0x2e67f2['sectionId']==null?_0x1a77c6[_0xfce965(0x18b)]:(_0x3112c7=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x3112c7=_0x3112c7[_0xfce965(0x1b1)])==null?void 0x0:_0x3112c7[_0x32e1c0]['noteProperties'],_0x220218=_0x2e67f2['settings']==null?void 0x0:_0xe26de[_0xfce965(0x1c9)](_0x2e67f2[_0xfce965(0x15f)]),_0x150ff5=_0x2e67f2[_0xfce965(0x1a1)]==null?['noteSettings']:[_0xfce965(0x17b),_0xfce965(0x1b1),_0x32e1c0,_0xfce965(0x19f)],_0x572b90=_0x268637[_0xfce965(0x1a2)](),_0x3876de=null;if(_0xe26de[_0xfce965(0x1c2)](_0x54d37c==null?void 0x0:_0x54d37c[_0x27e8fe],_0x220218)||(_0x3876de=_0x54d37c==null?_0x572b90[_0xfce965(0x1ab)](_0x150ff5,{[_0x27e8fe]:_0x220218}):_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x220218==null&&Object[_0xfce965(0x1a7)](_0x54d37c)[_0xfce965(0x186)](_0x4b7140=>_0x4b7140===_0x27e8fe)?_0x572b90[_0xfce965(0x187)](_0x150ff5,_0x54d37c):_0x572b90[_0xfce965(0x1a6)]([..._0x150ff5,_0x27e8fe],_0x54d37c[_0x27e8fe],_0x220218)),_0x2e67f2[_0xfce965(0x16e)]!=null){var _0x50837c;if(_0x27e8fe!==_0xfce965(0x1a0)||_0x2e67f2[_0xfce965(0x1a1)]==null||typeof _0x2e67f2[_0xfce965(0x16e)]!=_0xfce965(0x181))return!0x1;let _0x404f37=(_0x50837c=_0x1a77c6['body'])==null||(_0x50837c=_0x50837c[_0xfce965(0x1b1)])==null?void 0x0:_0x50837c[_0x32e1c0]['suppressEndnotes'];_0x404f37!==_0x2e67f2[_0xfce965(0x16e)]&&(_0x3876de=_0x268637[_0xfce965(0x188)](_0x3876de,_0x572b90[_0xfce965(0x1a6)]([_0xfce965(0x17b),'sectionBreaks',_0x32e1c0,_0xfce965(0x16e)],_0x404f37,_0x2e67f2[_0xfce965(0x16e)])));}return _0x3876de;}function T(_0x36f650,_0x1c6a6f,_0x3929e0){const _0x2898f4=_0x3399;if(!_0x1c6a6f)return!0x1;let _0x1f2908=_0x36f650['get'](_0x893d89)['getUnit'](_0x1c6a6f[_0x2898f4(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x316e06=_0x1f2908==null?void 0x0:_0x1f2908['getSnapshot']();if(!_0x316e06||_0x316e06[_0x2898f4(0x1be)]['documentFlavor']!==_0x5d9527['TRADITIONAL'])return!0x1;let _0x271a56=w(_0x316e06,_0x1c6a6f,_0x3929e0);return _0x271a56===!0x1||_0x268637[_0x2898f4(0x18a)](_0x271a56)?!0x1:!!_0x36f650[_0x2898f4(0x1cb)](_0x1dc54d)[_0x2898f4(0x15e)](_0x49f177['id'],{'unitId':_0x1c6a6f[_0x2898f4(0x1a9)],'segmentId':'','historyAction':_0x2898f4(0x1a5)+_0x3929e0+_0x2898f4(0x16c),'actions':_0x271a56,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x22b396(0x19c),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x1bb322,_0x546598)=>T(_0x1bb322,_0x546598,_0x22b396(0x17f))},D={'id':'doc.command.set-endnote-settings','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xd2eb8e,_0x2b6186)=>T(_0xd2eb8e,_0x2b6186,_0x22b396(0x1a0))};function O(_0x1de2cb,_0x1679a8){const _0x12399f=_0x22b396;return(_0x1de2cb==null?void 0x0:_0x1de2cb[_0x12399f(0x1be)]['documentFlavor'])===_0x5d9527[_0x12399f(0x18e)]&&!!_0x1de2cb['body']&&Number[_0x12399f(0x1a8)](_0x1679a8)&&_0x1679a8>=0x0&&_0x1679a8<_0x1de2cb[_0x12399f(0x17b)][_0x12399f(0x1b7)][_0x12399f(0x172)]-0x1;}function k(_0x523298,_0x15d1cd,_0x1371d5){const _0x25e8d7=_0x22b396;var _0x3fc59b,_0x2aad74;if(_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0&&_0x15d1cd[_0x25e8d7(0x16e)]===void 0x0)return null;let _0x4aec4a=_0x15d1cd[_0x25e8d7(0x1a1)]==null?(_0x3fc59b=_0x523298['noteSettings'])==null?void 0x0:_0x3fc59b[_0x1371d5]:(_0x2aad74=_0x523298['body'])==null||(_0x2aad74=_0x2aad74['sectionBreaks'])==null||(_0x2aad74=_0x2aad74['find'](_0x4e3733=>_0x4e3733[_0x25e8d7(0x1a1)]===_0x15d1cd[_0x25e8d7(0x1a1)]))==null||(_0x2aad74=_0x2aad74[_0x25e8d7(0x19f)])==null?void 0x0:_0x2aad74[_0x1371d5];return w(_0x523298,{'settings':_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0?_0x4aec4a??null:_0x15d1cd[_0x25e8d7(0x15f)],'sectionId':_0x15d1cd[_0x25e8d7(0x1a1)],'suppressEndnotes':_0x15d1cd[_0x25e8d7(0x16e)]},_0x1371d5);}function A(_0x4faa97,_0x5c4823,_0x3f44e4){const _0xdfb00b=_0x22b396;var _0x1763a4,_0x4b92d2,_0x568fe8;if(!_0x5c4823||_0x5c4823[_0xdfb00b(0x160)])return!0x1;let _0x315b88=_0x4faa97[_0xdfb00b(0x1cb)](_0x893d89)[_0xdfb00b(0x1ac)](_0x5c4823['unitId'],_0x176aa1['UNIVER_DOC']),_0xef938a=_0x315b88==null?void 0x0:_0x315b88[_0xdfb00b(0x1b5)](),{offset:_0x34b498}=_0x5c4823;if(!O(_0xef938a,_0x34b498))return!0x1;let _0x5ec2e3=k(_0xef938a,_0x5c4823,_0x3f44e4);if(_0x5ec2e3===!0x1)return!0x1;let _0x79f238=_0x5c4823[_0xdfb00b(0x16f)]??_0x342bc6(0xc);if((_0x1763a4=_0xef938a[_0xdfb00b(0x162)])!=null&&_0x1763a4[_0x79f238]||(_0x4b92d2=_0xef938a[_0xdfb00b(0x1c5)])!=null&&_0x4b92d2[_0x79f238]||(_0x568fe8=_0xef938a[_0xdfb00b(0x191)])!=null&&_0x568fe8[_0x79f238])return!0x1;let _0x3c4982=_0xe26de[_0xdfb00b(0x1c9)]({'type':_0x3f44e4,'noteId':_0x79f238,'body':_0x5c4823[_0xdfb00b(0x17b)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x1935ce(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x13d756(new Set()),'startIndex':0x1}]},'customMark':_0x5c4823[_0xdfb00b(0x192)],'referenceTextStyle':_0x5c4823[_0xdfb00b(0x1a3)],'tableSource':_0x5c4823[_0xdfb00b(0x18f)],'drawings':_0x5c4823[_0xdfb00b(0x169)],'drawingsOrder':_0x5c4823[_0xdfb00b(0x195)],'lists':_0x5c4823['lists']});if(_0x57396f({'notes':{[_0x79f238]:_0x3c4982}})[_0xdfb00b(0x172)]>0x0)return!0x1;let _0x3dba8f=new _0x30f2e6();_0x34b498>0x0&&_0x3dba8f[_0xdfb00b(0x17c)](_0x34b498),_0x3dba8f[_0xdfb00b(0x185)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x3f44e4===_0xdfb00b(0x17f)?_0x1c2972[_0xdfb00b(0x183)]:_0x1c2972[_0xdfb00b(0x174)],'rangeId':_0x342bc6(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x79f238}}]});let _0x2acb2e=_0x268637[_0xdfb00b(0x1a2)](),_0x4ea11a=_0xef938a[_0xdfb00b(0x162)]==null?_0x2acb2e[_0xdfb00b(0x1ab)](['notes'],{[_0x79f238]:_0x3c4982}):_0x2acb2e[_0xdfb00b(0x1ab)]([_0xdfb00b(0x162),_0x79f238],_0x3c4982);return!!_0x4faa97[_0xdfb00b(0x1cb)](_0x1dc54d)[_0xdfb00b(0x15e)](_0x49f177['id'],{'unitId':_0x5c4823['unitId'],'segmentId':'','historyAction':_0xdfb00b(0x1ca)+_0x3f44e4,'actions':_0x268637['compose'](_0x268637['compose'](_0x5ec2e3,_0x4ea11a),_0x2acb2e[_0xdfb00b(0x1bc)](_0x3dba8f[_0xdfb00b(0x190)](),[_0xdfb00b(0x17b)])),'textRanges':[{'segmentId':_0x79f238,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3399(_0x131595,_0x167742){_0x131595=_0x131595-0x15d;const _0x4b5495=_0x4b54();let _0x33992e=_0x4b5495[_0x131595];return _0x33992e;}function j(_0x164544,_0x180e32,_0x3e84ac){const _0x595870=_0x22b396;var _0x1a0c28,_0x171543;if(!_0x180e32)return!0x1;let _0x37057d=_0x164544['get'](_0x893d89)[_0x595870(0x1ac)](_0x180e32[_0x595870(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x53f88e=_0x37057d==null?void 0x0:_0x37057d['getSnapshot'](),_0xa31564=_0x53f88e==null||(_0x1a0c28=_0x53f88e[_0x595870(0x162)])==null?void 0x0:_0x1a0c28[_0x180e32[_0x595870(0x16f)]],_0x17debb=_0x53f88e==null||(_0x171543=_0x53f88e[_0x595870(0x17b)])==null||(_0x171543=_0x171543[_0x595870(0x176)])==null?void 0x0:_0x171543['find'](_0x4172a7=>{const _0xc4de05=_0x595870;var _0x5c0551;return(_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x183)]||_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x174)])&&((_0x5c0551=_0x4172a7[_0xc4de05(0x16d)])==null?void 0x0:_0x5c0551[_0xc4de05(0x16f)])===_0x180e32[_0xc4de05(0x16f)];});if(!_0x53f88e||_0x53f88e[_0x595870(0x1be)][_0x595870(0x1c8)]!==_0x5d9527[_0x595870(0x18e)]||!_0xa31564||_0xa31564[_0x595870(0x1b6)]!==_0x3e84ac||!_0x17debb)return!0x1;let _0x4a324d=new _0x30f2e6();_0x17debb[_0x595870(0x1af)]>0x0&&_0x4a324d[_0x595870(0x17c)](_0x17debb[_0x595870(0x1af)]),_0x4a324d[_0x595870(0x1bb)](0x1);let _0x15782a=_0x268637[_0x595870(0x1a2)]();return!!_0x164544['get'](_0x1dc54d)[_0x595870(0x15e)](_0x49f177['id'],{'unitId':_0x180e32[_0x595870(0x1a9)],'segmentId':'','historyAction':_0x595870(0x19d)+_0x3e84ac,'actions':_0x268637[_0x595870(0x188)](_0x15782a[_0x595870(0x1bc)](_0x4a324d[_0x595870(0x190)](),[_0x595870(0x17b)]),_0x15782a[_0x595870(0x187)]([_0x595870(0x162),_0x180e32[_0x595870(0x16f)]],_0xa31564)),'textRanges':[{'startOffset':_0x17debb['startIndex'],'endOffset':_0x17debb['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':'doc.command.insert-footnote','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x3fb8d3,_0x59beeb)=>A(_0x3fb8d3,_0x59beeb,'footnote')},N={'id':_0x22b396(0x168),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x78ddae,_0x2a8722)=>j(_0x78ddae,_0x2a8722,_0x22b396(0x17f))},P={'id':_0x22b396(0x180),'type':_0x2c710e['COMMAND'],'handler':(_0x2bb5c6,_0x29719b)=>A(_0x2bb5c6,_0x29719b,_0x22b396(0x1a0))},F={'id':_0x22b396(0x19e),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xa9bac,_0x286f9a)=>j(_0xa9bac,_0x286f9a,'endnote')};var I=_0x22b396(0x177),L='1.1.0';const R={};function z(_0x50bc0a,_0x319b4f){return function(_0x53ee3e,_0x5229e3){_0x319b4f(_0x53ee3e,_0x5229e3,_0x50bc0a);};}function B(_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e){const _0x17fa7f=_0x22b396;var _0x1935ba=arguments[_0x17fa7f(0x172)],_0x447408=_0x1935ba<0x3?_0x27ee0a:_0x1d3a0e===null?_0x1d3a0e=Object[_0x17fa7f(0x1c1)](_0x27ee0a,_0x4dce8d):_0x1d3a0e,_0x60c5b4;if(typeof Reflect==_0x17fa7f(0x1ae)&&typeof Reflect[_0x17fa7f(0x18c)]==_0x17fa7f(0x1c7))_0x447408=Reflect[_0x17fa7f(0x18c)](_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e);else{for(var _0xef3af9=_0x4b90f1[_0x17fa7f(0x172)]-0x1;_0xef3af9>=0x0;_0xef3af9--)(_0x60c5b4=_0x4b90f1[_0xef3af9])&&(_0x447408=(_0x1935ba<0x3?_0x60c5b4(_0x447408):_0x1935ba>0x3?_0x60c5b4(_0x27ee0a,_0x4dce8d,_0x447408):_0x60c5b4(_0x27ee0a,_0x4dce8d))||_0x447408);}return _0x1935ba>0x3&&_0x447408&&Object[_0x17fa7f(0x173)](_0x27ee0a,_0x4dce8d,_0x447408),_0x447408;}function V(_0x897c02){'@babel/helpers - typeof';const _0x19ec1d=_0x22b396;return V=typeof Symbol==_0x19ec1d(0x1c7)&&typeof Symbol[_0x19ec1d(0x1b3)]==_0x19ec1d(0x199)?function(_0x565405){return typeof _0x565405;}:function(_0x1e53f4){const _0x3aa67=_0x19ec1d;return _0x1e53f4&&typeof Symbol==_0x3aa67(0x1c7)&&_0x1e53f4[_0x3aa67(0x17d)]===Symbol&&_0x1e53f4!==Symbol['prototype']?_0x3aa67(0x199):typeof _0x1e53f4;},V(_0x897c02);}function H(_0x403f6e,_0x40d696){const _0x509b69=_0x22b396;if(V(_0x403f6e)!=_0x509b69(0x1ae)||!_0x403f6e)return _0x403f6e;var _0x33e79f=_0x403f6e[Symbol[_0x509b69(0x197)]];if(_0x33e79f!==void 0x0){var _0x7e58c0=_0x33e79f['call'](_0x403f6e,_0x40d696||_0x509b69(0x175));if(V(_0x7e58c0)!='object')return _0x7e58c0;throw TypeError(_0x509b69(0x16b));}return(_0x40d696===_0x509b69(0x1ad)?String:Number)(_0x403f6e);}function U(_0x1e4f28){const _0x3dab0e=_0x22b396;var _0x264ce4=H(_0x1e4f28,_0x3dab0e(0x1ad));return V(_0x264ce4)==_0x3dab0e(0x199)?_0x264ce4:_0x264ce4+'';}function W(_0x4a00fc,_0x29bfa2,_0x246d2a){const _0x2aa662=_0x22b396;return(_0x29bfa2=U(_0x29bfa2))in _0x4a00fc?Object[_0x2aa662(0x173)](_0x4a00fc,_0x29bfa2,{'value':_0x246d2a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a00fc[_0x29bfa2]=_0x246d2a,_0x4a00fc;}let G=class extends _0x3f78bf{constructor(_0x33fc1a=R,_0x428937,_0x25322f,_0x1df9f0){const _0x345774=_0x22b396;super(),this[_0x345774(0x198)]=_0x33fc1a,this[_0x345774(0x1aa)]=_0x428937,this[_0x345774(0x18d)]=_0x25322f,this[_0x345774(0x1b8)]=_0x1df9f0;let {..._0x35046a}=_0x5d1571({},R,this[_0x345774(0x198)]);this['_configService'][_0x345774(0x182)](_0x345774(0x1b4),_0x35046a);}[_0x22b396(0x165)](){const _0x441759=_0x22b396;[M,N,E,P,F,D]['forEach'](_0x1377b3=>this[_0x441759(0x179)](this[_0x441759(0x1b8)]['registerCommand'](_0x1377b3)));}};W(G,_0x22b396(0x161),_0x22b396(0x1c4)),W(G,'packageName',I),W(G,'version',L),W(G,_0x22b396(0x1b6),_0x176aa1[_0x22b396(0x1ba)]),G=B([_0x382a79(_0x163745,_0x47677c),z(0x1,_0x72c1ec(_0xe4c5b2)),z(0x2,_0x417b48),z(0x3,_0x1dc54d)],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
|
|
1
|
+
const _0x4fd676=_0x299f;(function(_0x2b4e23,_0x1eae5f){const _0x2f1b3b=_0x299f,_0x5397b0=_0x2b4e23();while(!![]){try{const _0x495a17=-parseInt(_0x2f1b3b(0x129))/0x1*(-parseInt(_0x2f1b3b(0x109))/0x2)+parseInt(_0x2f1b3b(0x10a))/0x3*(-parseInt(_0x2f1b3b(0x112))/0x4)+parseInt(_0x2f1b3b(0x121))/0x5*(-parseInt(_0x2f1b3b(0x10c))/0x6)+-parseInt(_0x2f1b3b(0x127))/0x7+-parseInt(_0x2f1b3b(0x128))/0x8*(-parseInt(_0x2f1b3b(0x108))/0x9)+-parseInt(_0x2f1b3b(0x12c))/0xa*(-parseInt(_0x2f1b3b(0x105))/0xb)+parseInt(_0x2f1b3b(0x118))/0xc;if(_0x495a17===_0x1eae5f)break;else _0x5397b0['push'](_0x5397b0['shift']());}catch(_0x4299e5){_0x5397b0['push'](_0x5397b0['shift']());}}}(_0x146b,0x60079));import{DeleteDocumentEndnoteCommand as _0x340aae,DeleteDocumentFootnoteCommand as _0x27fb0b,InsertDocumentEndnoteCommand as _0x21d78c,InsertDocumentFootnoteCommand as _0xea746b,SetDocumentEndnoteSettingsCommand as _0x35536d,SetDocumentFootnoteSettingsCommand as _0x47789b}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x129f40,ICommandService as _0x55ee89,Tools as _0x30b280,generateRandomId as _0x922008}from'@univerjs/core';function _0x299f(_0x2b24e3,_0x36ebbb){_0x2b24e3=_0x2b24e3-0x101;const _0x146b9c=_0x146b();let _0x299f75=_0x146b9c[_0x2b24e3];return _0x299f75;}function _0x146b(){const _0x59d869=['string','getFootnotes','693kmQYjb','customRanges','notes','3122766LsFami','2yVYUsb','136425ytFdVD','FOOTNOTE','600816PEbJWY','sectionId','startIndex','getSnapshot','extend','setEndnoteSettings','20ddUlrA','getDocumentDataModel','insertEndnote','noteId','insertFootnote','get','13159836xXdvQZ','footnote','body','syncExecuteCommand','endnote','deleteFootnote','filter','ENDNOTE','_injector','35uSsWva','flatMap','getEndnoteSettings','deleteEndnote','find','deepClone','3447731IbbhXt','8YeyLGm','87637pRbtCz','sectionBreaks','rangeType','44910ryLYDw','noteSettings','noteProperties'];_0x146b=function(){return _0x59d869;};return _0x146b();}import{FDocument as _0x266e8f}from'@univerjs/docs/facade';var d=class extends _0x266e8f{[_0x4fd676(0x116)](_0x452060,_0x438092={}){const _0x2df427=_0x4fd676;let _0x1ce775=_0x922008(0xc);return this[_0x2df427(0x120)][_0x2df427(0x117)](_0x55ee89)[_0x2df427(0x11b)](_0xea746b['id'],{..._0x438092,'unitId':this['id'],'offset':_0x452060,'noteId':_0x1ce775})?_0x1ce775:null;}[_0x4fd676(0x104)](){const _0x18bc07=_0x4fd676;var _0x470e6f;let _0x5108dd=this[_0x18bc07(0x113)]()[_0x18bc07(0x10f)]();return(((_0x470e6f=_0x5108dd['body'])==null?void 0x0:_0x470e6f[_0x18bc07(0x106)])??[])['filter'](_0x56abf6=>_0x56abf6[_0x18bc07(0x12b)]===_0x129f40[_0x18bc07(0x10b)])['sort']((_0x3978d1,_0x55d655)=>_0x3978d1[_0x18bc07(0x10e)]-_0x55d655['startIndex'])['flatMap'](_0x430385=>{const _0x17f11d=_0x18bc07;var _0x4f5963,_0x5dd289;let _0x475bc8=(_0x4f5963=_0x430385['properties'])==null?void 0x0:_0x4f5963[_0x17f11d(0x115)],_0x86ffa4=typeof _0x475bc8==_0x17f11d(0x103)?(_0x5dd289=_0x5108dd['notes'])==null?void 0x0:_0x5dd289[_0x475bc8]:void 0x0;return _0x86ffa4?[_0x30b280[_0x17f11d(0x126)](_0x86ffa4)]:[];});}[_0x4fd676(0x11d)](_0xbab1ed){const _0x376ce7=_0x4fd676;return this[_0x376ce7(0x120)][_0x376ce7(0x117)](_0x55ee89)[_0x376ce7(0x11b)](_0x27fb0b['id'],{'unitId':this['id'],'noteId':_0xbab1ed});}['getFootnoteSettings'](_0x5cfa19){const _0x1c694a=_0x4fd676;var _0x576c43,_0xca73b4;let _0x26a21d=this[_0x1c694a(0x113)]()['getSnapshot'](),_0x3b24be=_0x5cfa19==null?(_0x576c43=_0x26a21d['noteSettings'])==null?void 0x0:_0x576c43[_0x1c694a(0x119)]:(_0xca73b4=_0x26a21d[_0x1c694a(0x11a)])==null||(_0xca73b4=_0xca73b4[_0x1c694a(0x12a)])==null||(_0xca73b4=_0xca73b4[_0x1c694a(0x125)](_0x563548=>_0x563548['sectionId']===_0x5cfa19))==null||(_0xca73b4=_0xca73b4['noteProperties'])==null?void 0x0:_0xca73b4[_0x1c694a(0x119)];return _0x3b24be==null?void 0x0:_0x30b280['deepClone'](_0x3b24be);}['setFootnoteSettings'](_0x42ce54,_0x1d0d3b){const _0x26f65d=_0x4fd676;return this['_injector'][_0x26f65d(0x117)](_0x55ee89)[_0x26f65d(0x11b)](_0x47789b['id'],{'unitId':this['id'],'settings':_0x42ce54,'sectionId':_0x1d0d3b});}[_0x4fd676(0x114)](_0x550491,_0xc17eb6={}){const _0x37743a=_0x4fd676;let _0x5df971=_0x922008(0xc);return this[_0x37743a(0x120)]['get'](_0x55ee89)[_0x37743a(0x11b)](_0x21d78c['id'],{..._0xc17eb6,'unitId':this['id'],'offset':_0x550491,'noteId':_0x5df971})?_0x5df971:null;}['getEndnotes'](){const _0x4d253e=_0x4fd676;var _0x35c7b1;let _0xd56a92=this['getDocumentDataModel']()[_0x4d253e(0x10f)]();return(((_0x35c7b1=_0xd56a92[_0x4d253e(0x11a)])==null?void 0x0:_0x35c7b1[_0x4d253e(0x106)])??[])[_0x4d253e(0x11e)](_0x708349=>_0x708349[_0x4d253e(0x12b)]===_0x129f40[_0x4d253e(0x11f)])['sort']((_0x11f4b9,_0x2c510e)=>_0x11f4b9[_0x4d253e(0x10e)]-_0x2c510e[_0x4d253e(0x10e)])[_0x4d253e(0x122)](_0x1b753a=>{const _0x351152=_0x4d253e;var _0x5b256d,_0x42c402;let _0x22fd89=(_0x5b256d=_0x1b753a['properties'])==null?void 0x0:_0x5b256d[_0x351152(0x115)],_0x3e7ef4=typeof _0x22fd89==_0x351152(0x103)?(_0x42c402=_0xd56a92[_0x351152(0x107)])==null?void 0x0:_0x42c402[_0x22fd89]:void 0x0;return _0x3e7ef4?[_0x30b280[_0x351152(0x126)](_0x3e7ef4)]:[];});}[_0x4fd676(0x124)](_0x2745bc){const _0xc0b019=_0x4fd676;return this[_0xc0b019(0x120)][_0xc0b019(0x117)](_0x55ee89)[_0xc0b019(0x11b)](_0x340aae['id'],{'unitId':this['id'],'noteId':_0x2745bc});}[_0x4fd676(0x123)](_0x399f93){const _0x53f298=_0x4fd676;var _0x1cc09b,_0x3b8587;let _0x99325b=this[_0x53f298(0x113)]()[_0x53f298(0x10f)](),_0x5180c4=_0x399f93==null?(_0x1cc09b=_0x99325b[_0x53f298(0x101)])==null?void 0x0:_0x1cc09b[_0x53f298(0x11c)]:(_0x3b8587=_0x99325b[_0x53f298(0x11a)])==null||(_0x3b8587=_0x3b8587['sectionBreaks'])==null||(_0x3b8587=_0x3b8587[_0x53f298(0x125)](_0x45f0ce=>_0x45f0ce[_0x53f298(0x10d)]===_0x399f93))==null||(_0x3b8587=_0x3b8587[_0x53f298(0x102)])==null?void 0x0:_0x3b8587[_0x53f298(0x11c)];return _0x5180c4==null?void 0x0:_0x30b280[_0x53f298(0x126)](_0x5180c4);}[_0x4fd676(0x111)](_0x2518ba,_0x13b3b4){const _0x2ad0a3=_0x4fd676;return this['_injector'][_0x2ad0a3(0x117)](_0x55ee89)[_0x2ad0a3(0x11b)](_0x35536d['id'],{'unitId':this['id'],'settings':_0x2518ba,'sectionId':_0x13b3b4});}};_0x266e8f[_0x4fd676(0x110)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x354455=_0x2ad7;(function(_0x243805,_0x5c00f2){const _0x4de663=_0x2ad7,_0x259b48=_0x243805();while(!![]){try{const _0x51c828=parseInt(_0x4de663(0x131))/0x1*(-parseInt(_0x4de663(0x13c))/0x2)+parseInt(_0x4de663(0x119))/0x3+-parseInt(_0x4de663(0x120))/0x4*(-parseInt(_0x4de663(0xfe))/0x5)+-parseInt(_0x4de663(0x118))/0x6*(-parseInt(_0x4de663(0xf9))/0x7)+parseInt(_0x4de663(0x114))/0x8*(parseInt(_0x4de663(0xfd))/0x9)+-parseInt(_0x4de663(0x109))/0xa+-parseInt(_0x4de663(0x127))/0xb;if(_0x51c828===_0x5c00f2)break;else _0x259b48['push'](_0x259b48['shift']());}catch(_0x736753){_0x259b48['push'](_0x259b48['shift']());}}}(_0x1570,0x3798a));import{CommandType as _0x2dea21,CustomRangeType as _0x18c808,DependentOn as _0x25103f,DocumentFlavor as _0x1c338d,ICommandService as _0x96e9cf,IConfigService as _0x31856b,IUniverInstanceService as _0x3749d4,Inject as _0x481bb7,Injector as _0x20836d,JSONX as _0x27e466,Plugin as _0x24f424,TextX as _0x4e06e4,Tools as _0x223dfc,UniverInstanceType as _0x2a21bc,createParagraphId as _0x20e6fe,createSectionId as _0x17cab0,generateRandomId as _0x324573,merge as _0x3dfa1e,validateDocBodyStructure as _0x4b5823,validateDocumentStructure as _0x158a70}from'@univerjs/core';import{RichTextEditingMutation as _0x3c3a8a,UniverDocsPlugin as _0x280ea7}from'@univerjs/docs';import{UniverLicensePlugin as _0x99429e}from'@univerjs-pro/license';function C(_0x2f5685,_0x4e3080,_0x1ea806){const _0x18500f=_0x2ad7;if(_0x2f5685[_0x18500f(0x144)]!=null&&!(_0x4e3080===_0x18500f(0xf1)?['pageBottom',_0x18500f(0x12e)]:['docEnd','sectEnd'])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0x144)])||_0x2f5685['restart']!=null&&!(_0x4e3080===_0x18500f(0xf1)?[_0x18500f(0x10e),_0x18500f(0x108),_0x18500f(0x130)]:[_0x18500f(0x10e),_0x18500f(0x108)])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0xf5)])||_0x2f5685[_0x18500f(0x101)]!=null&&(!Number[_0x18500f(0x145)](_0x2f5685[_0x18500f(0x101)])||_0x2f5685['startNumber']<0x1)||_0x18500f(0xee)in _0x2f5685&&_0x2f5685[_0x18500f(0xee)]!=null&&(_0x4e3080!==_0x18500f(0xf1)||!Number['isInteger'](_0x2f5685['columnCount'])||_0x2f5685[_0x18500f(0xee)]<0x0||_0x2f5685['columnCount']>0x4)||_0x2f5685[_0x18500f(0x112)]!=null&&(typeof _0x2f5685[_0x18500f(0x112)]!=_0x18500f(0x149)||_0x2f5685[_0x18500f(0x112)][_0x18500f(0x11a)]===0x0))return!0x1;for(let _0x3b6638 of[_0x2f5685['separator'],_0x2f5685[_0x18500f(0x139)],_0x2f5685['continuationNotice']])if(_0x3b6638!=null&&(_0x1ea806!=null||_0x4b5823(_0x3b6638)[_0x18500f(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x5a001c,_0x3e27db,_0x274b4e){const _0x1c0acb=_0x2ad7;var _0x196da4,_0x40c5f6;if(_0x3e27db[_0x1c0acb(0x14d)]!=null&&!C(_0x3e27db[_0x1c0acb(0x14d)],_0x274b4e,_0x3e27db['sectionId']))return!0x1;let _0x30a694=((_0x196da4=_0x5a001c['body'])==null||(_0x196da4=_0x196da4[_0x1c0acb(0x10c)])==null?void 0x0:_0x196da4[_0x1c0acb(0x14c)](_0x5993f8=>_0x5993f8[_0x1c0acb(0x117)]===_0x3e27db['sectionId']))??-0x1;if(_0x3e27db['sectionId']!=null&&_0x30a694<0x0)return!0x1;let _0x5ce190=_0x3e27db['sectionId']==null?_0x5a001c[_0x1c0acb(0x116)]:(_0x40c5f6=_0x5a001c[_0x1c0acb(0x113)])==null||(_0x40c5f6=_0x40c5f6[_0x1c0acb(0x10c)])==null?void 0x0:_0x40c5f6[_0x30a694]['noteProperties'],_0x4276ba=_0x3e27db['settings']==null?void 0x0:_0x223dfc[_0x1c0acb(0x121)](_0x3e27db[_0x1c0acb(0x14d)]),_0x33dd5b=_0x3e27db[_0x1c0acb(0x117)]==null?['noteSettings']:[_0x1c0acb(0x113),_0x1c0acb(0x10c),_0x30a694,_0x1c0acb(0x140)],_0x5ce864=_0x27e466[_0x1c0acb(0x11d)](),_0x2b52f5=null;if(_0x223dfc[_0x1c0acb(0x141)](_0x5ce190==null?void 0x0:_0x5ce190[_0x274b4e],_0x4276ba)||(_0x2b52f5=_0x5ce190==null?_0x5ce864[_0x1c0acb(0x115)](_0x33dd5b,{[_0x274b4e]:_0x4276ba}):_0x3e27db['sectionId']!=null&&_0x4276ba==null&&Object[_0x1c0acb(0x12b)](_0x5ce190)[_0x1c0acb(0x105)](_0x5b0ea4=>_0x5b0ea4===_0x274b4e)?_0x5ce864[_0x1c0acb(0xf0)](_0x33dd5b,_0x5ce190):_0x5ce864['replaceOp']([..._0x33dd5b,_0x274b4e],_0x5ce190[_0x274b4e],_0x4276ba)),_0x3e27db[_0x1c0acb(0x135)]!=null){var _0x404016;if(_0x274b4e!==_0x1c0acb(0x125)||_0x3e27db[_0x1c0acb(0x117)]==null||typeof _0x3e27db[_0x1c0acb(0x135)]!=_0x1c0acb(0x111))return!0x1;let _0x294e40=(_0x404016=_0x5a001c['body'])==null||(_0x404016=_0x404016[_0x1c0acb(0x10c)])==null?void 0x0:_0x404016[_0x30a694][_0x1c0acb(0x135)];_0x294e40!==_0x3e27db['suppressEndnotes']&&(_0x2b52f5=_0x27e466[_0x1c0acb(0xf3)](_0x2b52f5,_0x5ce864[_0x1c0acb(0x11c)]([_0x1c0acb(0x113),'sectionBreaks',_0x30a694,'suppressEndnotes'],_0x294e40,_0x3e27db[_0x1c0acb(0x135)])));}return _0x2b52f5;}function T(_0x9b2920,_0x41e12d,_0x11fdb8){const _0x51999a=_0x2ad7;if(!_0x41e12d)return!0x1;let _0xc9dded=_0x9b2920[_0x51999a(0x11b)](_0x3749d4)['getUnit'](_0x41e12d[_0x51999a(0x13f)],_0x2a21bc[_0x51999a(0x13e)]),_0x58508b=_0xc9dded==null?void 0x0:_0xc9dded[_0x51999a(0x147)]();if(!_0x58508b||_0x58508b['documentStyle'][_0x51999a(0x13d)]!==_0x1c338d[_0x51999a(0xf8)])return!0x1;let _0x34f091=w(_0x58508b,_0x41e12d,_0x11fdb8);return _0x34f091===!0x1||_0x27e466[_0x51999a(0x106)](_0x34f091)?!0x1:!!_0x9b2920[_0x51999a(0x11b)](_0x96e9cf)[_0x51999a(0x110)](_0x3c3a8a['id'],{'unitId':_0x41e12d['unitId'],'segmentId':'','historyAction':_0x51999a(0x107)+_0x11fdb8+_0x51999a(0x122),'actions':_0x34f091,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x149d55,_0x4464dd)=>T(_0x149d55,_0x4464dd,_0x354455(0xf1))},D={'id':_0x354455(0x102),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x580a51,_0x46d6bf)=>T(_0x580a51,_0x46d6bf,_0x354455(0x125))};function O(_0x1d4bb9,_0x15aa09){const _0x4c5320=_0x354455;return(_0x1d4bb9==null?void 0x0:_0x1d4bb9[_0x4c5320(0x12d)][_0x4c5320(0x13d)])===_0x1c338d[_0x4c5320(0xf8)]&&!!_0x1d4bb9[_0x4c5320(0x113)]&&Number['isInteger'](_0x15aa09)&&_0x15aa09>=0x0&&_0x15aa09<_0x1d4bb9[_0x4c5320(0x113)]['dataStream'][_0x4c5320(0x11a)]-0x1;}function k(_0x3626a5,_0x2511c2,_0x356066){const _0x4d1bcb=_0x354455;var _0x1dd9a9,_0xaa62a3;if(_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0&&_0x2511c2[_0x4d1bcb(0x135)]===void 0x0)return null;let _0x575270=_0x2511c2['sectionId']==null?(_0x1dd9a9=_0x3626a5[_0x4d1bcb(0x116)])==null?void 0x0:_0x1dd9a9[_0x356066]:(_0xaa62a3=_0x3626a5[_0x4d1bcb(0x113)])==null||(_0xaa62a3=_0xaa62a3['sectionBreaks'])==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x133)](_0x354b47=>_0x354b47[_0x4d1bcb(0x117)]===_0x2511c2[_0x4d1bcb(0x117)]))==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x140)])==null?void 0x0:_0xaa62a3[_0x356066];return w(_0x3626a5,{'settings':_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0?_0x575270??null:_0x2511c2['settings'],'sectionId':_0x2511c2[_0x4d1bcb(0x117)],'suppressEndnotes':_0x2511c2[_0x4d1bcb(0x135)]},_0x356066);}function A(_0x40d02b,_0xef7492,_0x23a2e4){const _0x4b7d94=_0x354455;var _0x46fd1c,_0xd987d6,_0x2b9b94;if(!_0xef7492||_0xef7492[_0x4b7d94(0x123)])return!0x1;let _0x36c04b=_0x40d02b['get'](_0x3749d4)[_0x4b7d94(0xfc)](_0xef7492['unitId'],_0x2a21bc[_0x4b7d94(0x13e)]),_0x645dce=_0x36c04b==null?void 0x0:_0x36c04b[_0x4b7d94(0x147)](),{offset:_0x39a975}=_0xef7492;if(!O(_0x645dce,_0x39a975))return!0x1;let _0x411a47=k(_0x645dce,_0xef7492,_0x23a2e4);if(_0x411a47===!0x1)return!0x1;let _0x27b863=_0xef7492['noteId']??_0x324573(0xc);if((_0x46fd1c=_0x645dce[_0x4b7d94(0xfb)])!=null&&_0x46fd1c[_0x27b863]||(_0xd987d6=_0x645dce[_0x4b7d94(0x143)])!=null&&_0xd987d6[_0x27b863]||(_0x2b9b94=_0x645dce[_0x4b7d94(0x10a)])!=null&&_0x2b9b94[_0x27b863])return!0x1;let _0x2b0820=_0x223dfc[_0x4b7d94(0x121)]({'type':_0x23a2e4,'noteId':_0x27b863,'body':_0xef7492[_0x4b7d94(0x113)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x20e6fe(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x17cab0(new Set()),'startIndex':0x1}]},'customMark':_0xef7492['customMark'],'referenceTextStyle':_0xef7492[_0x4b7d94(0x14a)],'tableSource':_0xef7492[_0x4b7d94(0x136)],'drawings':_0xef7492[_0x4b7d94(0x13a)],'drawingsOrder':_0xef7492[_0x4b7d94(0x142)],'lists':_0xef7492['lists']});if(_0x158a70({'notes':{[_0x27b863]:_0x2b0820}})[_0x4b7d94(0x11a)]>0x0)return!0x1;let _0x22c30b=new _0x4e06e4();_0x39a975>0x0&&_0x22c30b[_0x4b7d94(0xf4)](_0x39a975),_0x22c30b['insert'](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x23a2e4===_0x4b7d94(0xf1)?_0x18c808[_0x4b7d94(0x150)]:_0x18c808[_0x4b7d94(0x11e)],'rangeId':_0x324573(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27b863}}]});let _0x5798d5=_0x27e466['getInstance'](),_0x9fbb4a=_0x645dce['notes']==null?_0x5798d5[_0x4b7d94(0x115)]([_0x4b7d94(0xfb)],{[_0x27b863]:_0x2b0820}):_0x5798d5['insertOp'](['notes',_0x27b863],_0x2b0820);return!!_0x40d02b[_0x4b7d94(0x11b)](_0x96e9cf)[_0x4b7d94(0x110)](_0x3c3a8a['id'],{'unitId':_0xef7492[_0x4b7d94(0x13f)],'segmentId':'','historyAction':'insert-'+_0x23a2e4,'actions':_0x27e466['compose'](_0x27e466[_0x4b7d94(0xf3)](_0x411a47,_0x9fbb4a),_0x5798d5[_0x4b7d94(0xfa)](_0x22c30b[_0x4b7d94(0x103)](),[_0x4b7d94(0x113)])),'textRanges':[{'segmentId':_0x27b863,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x50de60,_0x2ec0bb,_0x2acfd5){const _0x391281=_0x354455;var _0x5efb76,_0x292ddc;if(!_0x2ec0bb)return!0x1;let _0x484d3e=_0x50de60[_0x391281(0x11b)](_0x3749d4)[_0x391281(0xfc)](_0x2ec0bb[_0x391281(0x13f)],_0x2a21bc[_0x391281(0x13e)]),_0x1f8c8d=_0x484d3e==null?void 0x0:_0x484d3e[_0x391281(0x147)](),_0x10b90d=_0x1f8c8d==null||(_0x5efb76=_0x1f8c8d[_0x391281(0xfb)])==null?void 0x0:_0x5efb76[_0x2ec0bb[_0x391281(0xff)]],_0x2a2be6=_0x1f8c8d==null||(_0x292ddc=_0x1f8c8d['body'])==null||(_0x292ddc=_0x292ddc['customRanges'])==null?void 0x0:_0x292ddc['find'](_0x3fb58b=>{const _0x2da165=_0x391281;var _0x3454f1;return(_0x3fb58b[_0x2da165(0x12a)]===_0x18c808['FOOTNOTE']||_0x3fb58b['rangeType']===_0x18c808['ENDNOTE'])&&((_0x3454f1=_0x3fb58b[_0x2da165(0x10b)])==null?void 0x0:_0x3454f1['noteId'])===_0x2ec0bb[_0x2da165(0xff)];});if(!_0x1f8c8d||_0x1f8c8d['documentStyle'][_0x391281(0x13d)]!==_0x1c338d[_0x391281(0xf8)]||!_0x10b90d||_0x10b90d['type']!==_0x2acfd5||!_0x2a2be6)return!0x1;let _0x4a773d=new _0x4e06e4();_0x2a2be6[_0x391281(0x104)]>0x0&&_0x4a773d[_0x391281(0xf4)](_0x2a2be6[_0x391281(0x104)]),_0x4a773d[_0x391281(0x137)](0x1);let _0xaebca4=_0x27e466['getInstance']();return!!_0x50de60['get'](_0x96e9cf)[_0x391281(0x110)](_0x3c3a8a['id'],{'unitId':_0x2ec0bb[_0x391281(0x13f)],'segmentId':'','historyAction':'delete-'+_0x2acfd5,'actions':_0x27e466[_0x391281(0xf3)](_0xaebca4[_0x391281(0xfa)](_0x4a773d[_0x391281(0x103)](),[_0x391281(0x113)]),_0xaebca4['removeOp']([_0x391281(0xfb),_0x2ec0bb[_0x391281(0xff)]],_0x10b90d)),'textRanges':[{'startOffset':_0x2a2be6[_0x391281(0x104)],'endOffset':_0x2a2be6['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x354455(0xf7),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x24ee12,_0x2ea241)=>A(_0x24ee12,_0x2ea241,_0x354455(0xf1))},N={'id':'doc.command.delete-footnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x2157ab,_0x1e5999)=>j(_0x2157ab,_0x1e5999,_0x354455(0xf1))},P={'id':'doc.command.insert-endnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x393aff,_0x1d38d8)=>A(_0x393aff,_0x1d38d8,_0x354455(0x125))},F={'id':_0x354455(0x13b),'type':_0x2dea21['COMMAND'],'handler':(_0x1ce22a,_0x3a4e0e)=>j(_0x1ce22a,_0x3a4e0e,'endnote')};var I='@univerjs-pro/docs-reference',L=_0x354455(0x128);const R={};function z(_0xec09fb,_0x22029b){return function(_0x155a81,_0x4ed450){_0x22029b(_0x155a81,_0x4ed450,_0xec09fb);};}function B(_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4){const _0x714d30=_0x354455;var _0x447146=arguments[_0x714d30(0x11a)],_0x493ede=_0x447146<0x3?_0x207d95:_0x1a80e4===null?_0x1a80e4=Object[_0x714d30(0x100)](_0x207d95,_0x1d3f79):_0x1a80e4,_0x46f2af;if(typeof Reflect=='object'&&typeof Reflect[_0x714d30(0x148)]=='function')_0x493ede=Reflect[_0x714d30(0x148)](_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4);else{for(var _0x470fa0=_0x26397f[_0x714d30(0x11a)]-0x1;_0x470fa0>=0x0;_0x470fa0--)(_0x46f2af=_0x26397f[_0x470fa0])&&(_0x493ede=(_0x447146<0x3?_0x46f2af(_0x493ede):_0x447146>0x3?_0x46f2af(_0x207d95,_0x1d3f79,_0x493ede):_0x46f2af(_0x207d95,_0x1d3f79))||_0x493ede);}return _0x447146>0x3&&_0x493ede&&Object[_0x714d30(0x138)](_0x207d95,_0x1d3f79,_0x493ede),_0x493ede;}function V(_0x139767){'@babel/helpers - typeof';const _0xcd2fda=_0x354455;return V=typeof Symbol==_0xcd2fda(0x14b)&&typeof Symbol['iterator']==_0xcd2fda(0xf6)?function(_0x3a7d99){return typeof _0x3a7d99;}:function(_0x2c39d5){const _0x22227e=_0xcd2fda;return _0x2c39d5&&typeof Symbol==_0x22227e(0x14b)&&_0x2c39d5[_0x22227e(0xf2)]===Symbol&&_0x2c39d5!==Symbol['prototype']?_0x22227e(0xf6):typeof _0x2c39d5;},V(_0x139767);}function H(_0x2acbd6,_0x40c98a){const _0xadaed4=_0x354455;if(V(_0x2acbd6)!='object'||!_0x2acbd6)return _0x2acbd6;var _0x13eb0d=_0x2acbd6[Symbol[_0xadaed4(0x146)]];if(_0x13eb0d!==void 0x0){var _0xbbba85=_0x13eb0d[_0xadaed4(0x10d)](_0x2acbd6,_0x40c98a||_0xadaed4(0x10f));if(V(_0xbbba85)!=_0xadaed4(0x151))return _0xbbba85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x40c98a===_0xadaed4(0x149)?String:Number)(_0x2acbd6);}function U(_0x1c3a68){const _0x21d6dc=_0x354455;var _0x39560d=H(_0x1c3a68,_0x21d6dc(0x149));return V(_0x39560d)=='symbol'?_0x39560d:_0x39560d+'';}function W(_0x4380d9,_0x11a578,_0x4a35d5){const _0x376e7f=_0x354455;return(_0x11a578=U(_0x11a578))in _0x4380d9?Object[_0x376e7f(0x138)](_0x4380d9,_0x11a578,{'value':_0x4a35d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4380d9[_0x11a578]=_0x4a35d5,_0x4380d9;}let G=class extends _0x24f424{constructor(_0x3a806e=R,_0x4ae6c4,_0x673061,_0x495376){const _0x7f4525=_0x354455;super(),this['_config']=_0x3a806e,this['_injector']=_0x4ae6c4,this[_0x7f4525(0x14f)]=_0x673061,this['_commandService']=_0x495376;let {..._0x5ef51c}=_0x3dfa1e({},R,this['_config']);this[_0x7f4525(0x14f)][_0x7f4525(0x126)](_0x7f4525(0x12f),_0x5ef51c);}['onStarting'](){const _0x1d589=_0x354455;[M,N,E,P,F,D]['forEach'](_0x51ca67=>this['disposeWithMe'](this[_0x1d589(0x12c)]['registerCommand'](_0x51ca67)));}};W(G,_0x354455(0x132),_0x354455(0x134)),W(G,_0x354455(0xef),I),W(G,_0x354455(0x129),L),W(G,_0x354455(0x124),_0x2a21bc['UNIVER_DOC']),G=B([_0x25103f(_0x99429e,_0x280ea7),z(0x1,_0x481bb7(_0x20836d)),z(0x2,_0x31856b),z(0x3,_0x96e9cf)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};function _0x2ad7(_0x2ad720,_0x16e2dd){_0x2ad720=_0x2ad720-0xee;const _0x15704d=_0x1570();let _0x2ad7ce=_0x15704d[_0x2ad720];return _0x2ad7ce;}function _0x1570(){const _0xb51c48=['sectionId','5454IQXbGF','1364799hUQTWe','length','get','replaceOp','getInstance','ENDNOTE','includes','474236nYugCh','deepClone','-settings','segmentId','type','endnote','setConfig','8943066IiFtIm','1.0.4','version','rangeType','keys','_commandService','documentStyle','beneathText','docs-reference.config','eachPage','2571bnZPaC','pluginName','find','UNIVER_DOCS_REFERENCE_PLUGIN','suppressEndnotes','tableSource','delete','defineProperty','continuationSeparator','drawings','doc.command.delete-endnote','236wrFKvG','documentFlavor','UNIVER_DOC','unitId','noteProperties','diffValue','drawingsOrder','headers','position','isInteger','toPrimitive','getSnapshot','decorate','string','referenceTextStyle','function','findIndex','settings','COMMAND','_configService','FOOTNOTE','object','columnCount','packageName','removeOp','footnote','constructor','compose','retain','restart','symbol','doc.command.insert-footnote','TRADITIONAL','2541UZVYCI','editOp','notes','getUnit','9837hppaeA','15ERRpTo','noteId','getOwnPropertyDescriptor','startNumber','doc.command.set-endnote-settings','serialize','startIndex','every','isNoop','set-','eachSect','1320220nHhEnf','footers','properties','sectionBreaks','call','continuous','default','syncExecuteCommand','boolean','numberFormat','body','2456qllCIh','insertOp','noteSettings'];_0x1570=function(){return _0xb51c48;};return _0x1570();}
|
|
1
|
+
const _0x22b396=_0x3399;(function(_0x15d2ca,_0x1cbd33){const _0x309b25=_0x3399,_0x52a64a=_0x15d2ca();while(!![]){try{const _0x5e5a61=parseInt(_0x309b25(0x184))/0x1+-parseInt(_0x309b25(0x17e))/0x2*(parseInt(_0x309b25(0x15d))/0x3)+-parseInt(_0x309b25(0x16a))/0x4+-parseInt(_0x309b25(0x189))/0x5*(-parseInt(_0x309b25(0x17a))/0x6)+parseInt(_0x309b25(0x1b9))/0x7+parseInt(_0x309b25(0x1bf))/0x8+-parseInt(_0x309b25(0x1c3))/0x9;if(_0x5e5a61===_0x1cbd33)break;else _0x52a64a['push'](_0x52a64a['shift']());}catch(_0x3458a1){_0x52a64a['push'](_0x52a64a['shift']());}}}(_0x4b54,0x5d372));import{CommandType as _0x2c710e,CustomRangeType as _0x1c2972,DependentOn as _0x382a79,DocumentFlavor as _0x5d9527,ICommandService as _0x1dc54d,IConfigService as _0x417b48,IUniverInstanceService as _0x893d89,Inject as _0x72c1ec,Injector as _0xe4c5b2,JSONX as _0x268637,Plugin as _0x3f78bf,TextX as _0x30f2e6,Tools as _0xe26de,UniverInstanceType as _0x176aa1,createParagraphId as _0x1935ce,createSectionId as _0x13d756,generateRandomId as _0x342bc6,merge as _0x5d1571,validateDocBodyStructure as _0x2f43f1,validateDocumentStructure as _0x57396f}from'@univerjs/core';import{RichTextEditingMutation as _0x49f177,UniverDocsPlugin as _0x47677c}from'@univerjs/docs';import{UniverLicensePlugin as _0x163745}from'@univerjs-pro/license';function _0x4b54(){const _0x13e64d=['docEnd','iterator','docs-reference.config','getSnapshot','type','dataStream','_commandService','2080309KOvsXC','UNIVER_DOC','delete','editOp','continuationNotice','documentStyle','5937856HpBZft','continuous','getOwnPropertyDescriptor','diffValue','1733526AwydAz','UNIVER_DOCS_REFERENCE_PLUGIN','headers','restart','function','documentFlavor','deepClone','insert-','get','7827UNTBFw','syncExecuteCommand','settings','segmentId','pluginName','notes','sectEnd','includes','onStarting','COMMAND','separator','doc.command.delete-footnote','drawings','1675484GkGWLy','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','-settings','properties','suppressEndnotes','noteId','findIndex','eachPage','length','defineProperty','ENDNOTE','default','customRanges','@univerjs-pro/docs-reference','position','disposeWithMe','66oziwZv','body','retain','constructor','358QrjkJK','footnote','doc.command.insert-endnote','boolean','setConfig','FOOTNOTE','416278bXwaTk','insert','every','removeOp','compose','2095EZRkza','isNoop','noteSettings','decorate','_configService','TRADITIONAL','tableSource','serialize','footers','customMark','pageBottom','columnCount','drawingsOrder','startNumber','toPrimitive','_config','symbol','continuationSeparator','rangeType','doc.command.set-footnote-settings','delete-','doc.command.delete-endnote','noteProperties','endnote','sectionId','getInstance','referenceTextStyle','eachSect','set-','replaceOp','keys','isInteger','unitId','_injector','insertOp','getUnit','string','object','startIndex','numberFormat','sectionBreaks'];_0x4b54=function(){return _0x13e64d;};return _0x4b54();}function C(_0x4b4634,_0x39b3fa,_0x56d231){const _0x2cd497=_0x3399;if(_0x4b4634[_0x2cd497(0x178)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x193),'beneathText']:[_0x2cd497(0x1b2),_0x2cd497(0x163)])[_0x2cd497(0x164)](_0x4b4634[_0x2cd497(0x178)])||_0x4b4634[_0x2cd497(0x1c6)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x1c0),_0x2cd497(0x1a4),_0x2cd497(0x171)]:[_0x2cd497(0x1c0),_0x2cd497(0x1a4)])['includes'](_0x4b4634[_0x2cd497(0x1c6)])||_0x4b4634['startNumber']!=null&&(!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x196)])||_0x4b4634[_0x2cd497(0x196)]<0x1)||_0x2cd497(0x194)in _0x4b4634&&_0x4b4634[_0x2cd497(0x194)]!=null&&(_0x39b3fa!==_0x2cd497(0x17f)||!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x194)])||_0x4b4634[_0x2cd497(0x194)]<0x0||_0x4b4634[_0x2cd497(0x194)]>0x4)||_0x4b4634['numberFormat']!=null&&(typeof _0x4b4634['numberFormat']!=_0x2cd497(0x1ad)||_0x4b4634[_0x2cd497(0x1b0)][_0x2cd497(0x172)]===0x0))return!0x1;for(let _0x4b038b of[_0x4b4634[_0x2cd497(0x167)],_0x4b4634[_0x2cd497(0x19a)],_0x4b4634[_0x2cd497(0x1bd)]])if(_0x4b038b!=null&&(_0x56d231!=null||_0x2f43f1(_0x4b038b)[_0x2cd497(0x172)]>0x0))return!0x1;return!0x0;}function w(_0x1a77c6,_0x2e67f2,_0x27e8fe){const _0xfce965=_0x3399;var _0x105553,_0x3112c7;if(_0x2e67f2[_0xfce965(0x15f)]!=null&&!C(_0x2e67f2[_0xfce965(0x15f)],_0x27e8fe,_0x2e67f2[_0xfce965(0x1a1)]))return!0x1;let _0x32e1c0=((_0x105553=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x105553=_0x105553[_0xfce965(0x1b1)])==null?void 0x0:_0x105553[_0xfce965(0x170)](_0x8bde95=>_0x8bde95[_0xfce965(0x1a1)]===_0x2e67f2[_0xfce965(0x1a1)]))??-0x1;if(_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x32e1c0<0x0)return!0x1;let _0x54d37c=_0x2e67f2['sectionId']==null?_0x1a77c6[_0xfce965(0x18b)]:(_0x3112c7=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x3112c7=_0x3112c7[_0xfce965(0x1b1)])==null?void 0x0:_0x3112c7[_0x32e1c0]['noteProperties'],_0x220218=_0x2e67f2['settings']==null?void 0x0:_0xe26de[_0xfce965(0x1c9)](_0x2e67f2[_0xfce965(0x15f)]),_0x150ff5=_0x2e67f2[_0xfce965(0x1a1)]==null?['noteSettings']:[_0xfce965(0x17b),_0xfce965(0x1b1),_0x32e1c0,_0xfce965(0x19f)],_0x572b90=_0x268637[_0xfce965(0x1a2)](),_0x3876de=null;if(_0xe26de[_0xfce965(0x1c2)](_0x54d37c==null?void 0x0:_0x54d37c[_0x27e8fe],_0x220218)||(_0x3876de=_0x54d37c==null?_0x572b90[_0xfce965(0x1ab)](_0x150ff5,{[_0x27e8fe]:_0x220218}):_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x220218==null&&Object[_0xfce965(0x1a7)](_0x54d37c)[_0xfce965(0x186)](_0x4b7140=>_0x4b7140===_0x27e8fe)?_0x572b90[_0xfce965(0x187)](_0x150ff5,_0x54d37c):_0x572b90[_0xfce965(0x1a6)]([..._0x150ff5,_0x27e8fe],_0x54d37c[_0x27e8fe],_0x220218)),_0x2e67f2[_0xfce965(0x16e)]!=null){var _0x50837c;if(_0x27e8fe!==_0xfce965(0x1a0)||_0x2e67f2[_0xfce965(0x1a1)]==null||typeof _0x2e67f2[_0xfce965(0x16e)]!=_0xfce965(0x181))return!0x1;let _0x404f37=(_0x50837c=_0x1a77c6['body'])==null||(_0x50837c=_0x50837c[_0xfce965(0x1b1)])==null?void 0x0:_0x50837c[_0x32e1c0]['suppressEndnotes'];_0x404f37!==_0x2e67f2[_0xfce965(0x16e)]&&(_0x3876de=_0x268637[_0xfce965(0x188)](_0x3876de,_0x572b90[_0xfce965(0x1a6)]([_0xfce965(0x17b),'sectionBreaks',_0x32e1c0,_0xfce965(0x16e)],_0x404f37,_0x2e67f2[_0xfce965(0x16e)])));}return _0x3876de;}function T(_0x36f650,_0x1c6a6f,_0x3929e0){const _0x2898f4=_0x3399;if(!_0x1c6a6f)return!0x1;let _0x1f2908=_0x36f650['get'](_0x893d89)['getUnit'](_0x1c6a6f[_0x2898f4(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x316e06=_0x1f2908==null?void 0x0:_0x1f2908['getSnapshot']();if(!_0x316e06||_0x316e06[_0x2898f4(0x1be)]['documentFlavor']!==_0x5d9527['TRADITIONAL'])return!0x1;let _0x271a56=w(_0x316e06,_0x1c6a6f,_0x3929e0);return _0x271a56===!0x1||_0x268637[_0x2898f4(0x18a)](_0x271a56)?!0x1:!!_0x36f650[_0x2898f4(0x1cb)](_0x1dc54d)[_0x2898f4(0x15e)](_0x49f177['id'],{'unitId':_0x1c6a6f[_0x2898f4(0x1a9)],'segmentId':'','historyAction':_0x2898f4(0x1a5)+_0x3929e0+_0x2898f4(0x16c),'actions':_0x271a56,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x22b396(0x19c),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x1bb322,_0x546598)=>T(_0x1bb322,_0x546598,_0x22b396(0x17f))},D={'id':'doc.command.set-endnote-settings','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xd2eb8e,_0x2b6186)=>T(_0xd2eb8e,_0x2b6186,_0x22b396(0x1a0))};function O(_0x1de2cb,_0x1679a8){const _0x12399f=_0x22b396;return(_0x1de2cb==null?void 0x0:_0x1de2cb[_0x12399f(0x1be)]['documentFlavor'])===_0x5d9527[_0x12399f(0x18e)]&&!!_0x1de2cb['body']&&Number[_0x12399f(0x1a8)](_0x1679a8)&&_0x1679a8>=0x0&&_0x1679a8<_0x1de2cb[_0x12399f(0x17b)][_0x12399f(0x1b7)][_0x12399f(0x172)]-0x1;}function k(_0x523298,_0x15d1cd,_0x1371d5){const _0x25e8d7=_0x22b396;var _0x3fc59b,_0x2aad74;if(_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0&&_0x15d1cd[_0x25e8d7(0x16e)]===void 0x0)return null;let _0x4aec4a=_0x15d1cd[_0x25e8d7(0x1a1)]==null?(_0x3fc59b=_0x523298['noteSettings'])==null?void 0x0:_0x3fc59b[_0x1371d5]:(_0x2aad74=_0x523298['body'])==null||(_0x2aad74=_0x2aad74['sectionBreaks'])==null||(_0x2aad74=_0x2aad74['find'](_0x4e3733=>_0x4e3733[_0x25e8d7(0x1a1)]===_0x15d1cd[_0x25e8d7(0x1a1)]))==null||(_0x2aad74=_0x2aad74[_0x25e8d7(0x19f)])==null?void 0x0:_0x2aad74[_0x1371d5];return w(_0x523298,{'settings':_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0?_0x4aec4a??null:_0x15d1cd[_0x25e8d7(0x15f)],'sectionId':_0x15d1cd[_0x25e8d7(0x1a1)],'suppressEndnotes':_0x15d1cd[_0x25e8d7(0x16e)]},_0x1371d5);}function A(_0x4faa97,_0x5c4823,_0x3f44e4){const _0xdfb00b=_0x22b396;var _0x1763a4,_0x4b92d2,_0x568fe8;if(!_0x5c4823||_0x5c4823[_0xdfb00b(0x160)])return!0x1;let _0x315b88=_0x4faa97[_0xdfb00b(0x1cb)](_0x893d89)[_0xdfb00b(0x1ac)](_0x5c4823['unitId'],_0x176aa1['UNIVER_DOC']),_0xef938a=_0x315b88==null?void 0x0:_0x315b88[_0xdfb00b(0x1b5)](),{offset:_0x34b498}=_0x5c4823;if(!O(_0xef938a,_0x34b498))return!0x1;let _0x5ec2e3=k(_0xef938a,_0x5c4823,_0x3f44e4);if(_0x5ec2e3===!0x1)return!0x1;let _0x79f238=_0x5c4823[_0xdfb00b(0x16f)]??_0x342bc6(0xc);if((_0x1763a4=_0xef938a[_0xdfb00b(0x162)])!=null&&_0x1763a4[_0x79f238]||(_0x4b92d2=_0xef938a[_0xdfb00b(0x1c5)])!=null&&_0x4b92d2[_0x79f238]||(_0x568fe8=_0xef938a[_0xdfb00b(0x191)])!=null&&_0x568fe8[_0x79f238])return!0x1;let _0x3c4982=_0xe26de[_0xdfb00b(0x1c9)]({'type':_0x3f44e4,'noteId':_0x79f238,'body':_0x5c4823[_0xdfb00b(0x17b)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x1935ce(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x13d756(new Set()),'startIndex':0x1}]},'customMark':_0x5c4823[_0xdfb00b(0x192)],'referenceTextStyle':_0x5c4823[_0xdfb00b(0x1a3)],'tableSource':_0x5c4823[_0xdfb00b(0x18f)],'drawings':_0x5c4823[_0xdfb00b(0x169)],'drawingsOrder':_0x5c4823[_0xdfb00b(0x195)],'lists':_0x5c4823['lists']});if(_0x57396f({'notes':{[_0x79f238]:_0x3c4982}})[_0xdfb00b(0x172)]>0x0)return!0x1;let _0x3dba8f=new _0x30f2e6();_0x34b498>0x0&&_0x3dba8f[_0xdfb00b(0x17c)](_0x34b498),_0x3dba8f[_0xdfb00b(0x185)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x3f44e4===_0xdfb00b(0x17f)?_0x1c2972[_0xdfb00b(0x183)]:_0x1c2972[_0xdfb00b(0x174)],'rangeId':_0x342bc6(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x79f238}}]});let _0x2acb2e=_0x268637[_0xdfb00b(0x1a2)](),_0x4ea11a=_0xef938a[_0xdfb00b(0x162)]==null?_0x2acb2e[_0xdfb00b(0x1ab)](['notes'],{[_0x79f238]:_0x3c4982}):_0x2acb2e[_0xdfb00b(0x1ab)]([_0xdfb00b(0x162),_0x79f238],_0x3c4982);return!!_0x4faa97[_0xdfb00b(0x1cb)](_0x1dc54d)[_0xdfb00b(0x15e)](_0x49f177['id'],{'unitId':_0x5c4823['unitId'],'segmentId':'','historyAction':_0xdfb00b(0x1ca)+_0x3f44e4,'actions':_0x268637['compose'](_0x268637['compose'](_0x5ec2e3,_0x4ea11a),_0x2acb2e[_0xdfb00b(0x1bc)](_0x3dba8f[_0xdfb00b(0x190)](),[_0xdfb00b(0x17b)])),'textRanges':[{'segmentId':_0x79f238,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3399(_0x131595,_0x167742){_0x131595=_0x131595-0x15d;const _0x4b5495=_0x4b54();let _0x33992e=_0x4b5495[_0x131595];return _0x33992e;}function j(_0x164544,_0x180e32,_0x3e84ac){const _0x595870=_0x22b396;var _0x1a0c28,_0x171543;if(!_0x180e32)return!0x1;let _0x37057d=_0x164544['get'](_0x893d89)[_0x595870(0x1ac)](_0x180e32[_0x595870(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x53f88e=_0x37057d==null?void 0x0:_0x37057d['getSnapshot'](),_0xa31564=_0x53f88e==null||(_0x1a0c28=_0x53f88e[_0x595870(0x162)])==null?void 0x0:_0x1a0c28[_0x180e32[_0x595870(0x16f)]],_0x17debb=_0x53f88e==null||(_0x171543=_0x53f88e[_0x595870(0x17b)])==null||(_0x171543=_0x171543[_0x595870(0x176)])==null?void 0x0:_0x171543['find'](_0x4172a7=>{const _0xc4de05=_0x595870;var _0x5c0551;return(_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x183)]||_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x174)])&&((_0x5c0551=_0x4172a7[_0xc4de05(0x16d)])==null?void 0x0:_0x5c0551[_0xc4de05(0x16f)])===_0x180e32[_0xc4de05(0x16f)];});if(!_0x53f88e||_0x53f88e[_0x595870(0x1be)][_0x595870(0x1c8)]!==_0x5d9527[_0x595870(0x18e)]||!_0xa31564||_0xa31564[_0x595870(0x1b6)]!==_0x3e84ac||!_0x17debb)return!0x1;let _0x4a324d=new _0x30f2e6();_0x17debb[_0x595870(0x1af)]>0x0&&_0x4a324d[_0x595870(0x17c)](_0x17debb[_0x595870(0x1af)]),_0x4a324d[_0x595870(0x1bb)](0x1);let _0x15782a=_0x268637[_0x595870(0x1a2)]();return!!_0x164544['get'](_0x1dc54d)[_0x595870(0x15e)](_0x49f177['id'],{'unitId':_0x180e32[_0x595870(0x1a9)],'segmentId':'','historyAction':_0x595870(0x19d)+_0x3e84ac,'actions':_0x268637[_0x595870(0x188)](_0x15782a[_0x595870(0x1bc)](_0x4a324d[_0x595870(0x190)](),[_0x595870(0x17b)]),_0x15782a[_0x595870(0x187)]([_0x595870(0x162),_0x180e32[_0x595870(0x16f)]],_0xa31564)),'textRanges':[{'startOffset':_0x17debb['startIndex'],'endOffset':_0x17debb['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':'doc.command.insert-footnote','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x3fb8d3,_0x59beeb)=>A(_0x3fb8d3,_0x59beeb,'footnote')},N={'id':_0x22b396(0x168),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x78ddae,_0x2a8722)=>j(_0x78ddae,_0x2a8722,_0x22b396(0x17f))},P={'id':_0x22b396(0x180),'type':_0x2c710e['COMMAND'],'handler':(_0x2bb5c6,_0x29719b)=>A(_0x2bb5c6,_0x29719b,_0x22b396(0x1a0))},F={'id':_0x22b396(0x19e),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xa9bac,_0x286f9a)=>j(_0xa9bac,_0x286f9a,'endnote')};var I=_0x22b396(0x177),L='1.1.0';const R={};function z(_0x50bc0a,_0x319b4f){return function(_0x53ee3e,_0x5229e3){_0x319b4f(_0x53ee3e,_0x5229e3,_0x50bc0a);};}function B(_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e){const _0x17fa7f=_0x22b396;var _0x1935ba=arguments[_0x17fa7f(0x172)],_0x447408=_0x1935ba<0x3?_0x27ee0a:_0x1d3a0e===null?_0x1d3a0e=Object[_0x17fa7f(0x1c1)](_0x27ee0a,_0x4dce8d):_0x1d3a0e,_0x60c5b4;if(typeof Reflect==_0x17fa7f(0x1ae)&&typeof Reflect[_0x17fa7f(0x18c)]==_0x17fa7f(0x1c7))_0x447408=Reflect[_0x17fa7f(0x18c)](_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e);else{for(var _0xef3af9=_0x4b90f1[_0x17fa7f(0x172)]-0x1;_0xef3af9>=0x0;_0xef3af9--)(_0x60c5b4=_0x4b90f1[_0xef3af9])&&(_0x447408=(_0x1935ba<0x3?_0x60c5b4(_0x447408):_0x1935ba>0x3?_0x60c5b4(_0x27ee0a,_0x4dce8d,_0x447408):_0x60c5b4(_0x27ee0a,_0x4dce8d))||_0x447408);}return _0x1935ba>0x3&&_0x447408&&Object[_0x17fa7f(0x173)](_0x27ee0a,_0x4dce8d,_0x447408),_0x447408;}function V(_0x897c02){'@babel/helpers - typeof';const _0x19ec1d=_0x22b396;return V=typeof Symbol==_0x19ec1d(0x1c7)&&typeof Symbol[_0x19ec1d(0x1b3)]==_0x19ec1d(0x199)?function(_0x565405){return typeof _0x565405;}:function(_0x1e53f4){const _0x3aa67=_0x19ec1d;return _0x1e53f4&&typeof Symbol==_0x3aa67(0x1c7)&&_0x1e53f4[_0x3aa67(0x17d)]===Symbol&&_0x1e53f4!==Symbol['prototype']?_0x3aa67(0x199):typeof _0x1e53f4;},V(_0x897c02);}function H(_0x403f6e,_0x40d696){const _0x509b69=_0x22b396;if(V(_0x403f6e)!=_0x509b69(0x1ae)||!_0x403f6e)return _0x403f6e;var _0x33e79f=_0x403f6e[Symbol[_0x509b69(0x197)]];if(_0x33e79f!==void 0x0){var _0x7e58c0=_0x33e79f['call'](_0x403f6e,_0x40d696||_0x509b69(0x175));if(V(_0x7e58c0)!='object')return _0x7e58c0;throw TypeError(_0x509b69(0x16b));}return(_0x40d696===_0x509b69(0x1ad)?String:Number)(_0x403f6e);}function U(_0x1e4f28){const _0x3dab0e=_0x22b396;var _0x264ce4=H(_0x1e4f28,_0x3dab0e(0x1ad));return V(_0x264ce4)==_0x3dab0e(0x199)?_0x264ce4:_0x264ce4+'';}function W(_0x4a00fc,_0x29bfa2,_0x246d2a){const _0x2aa662=_0x22b396;return(_0x29bfa2=U(_0x29bfa2))in _0x4a00fc?Object[_0x2aa662(0x173)](_0x4a00fc,_0x29bfa2,{'value':_0x246d2a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a00fc[_0x29bfa2]=_0x246d2a,_0x4a00fc;}let G=class extends _0x3f78bf{constructor(_0x33fc1a=R,_0x428937,_0x25322f,_0x1df9f0){const _0x345774=_0x22b396;super(),this[_0x345774(0x198)]=_0x33fc1a,this[_0x345774(0x1aa)]=_0x428937,this[_0x345774(0x18d)]=_0x25322f,this[_0x345774(0x1b8)]=_0x1df9f0;let {..._0x35046a}=_0x5d1571({},R,this[_0x345774(0x198)]);this['_configService'][_0x345774(0x182)](_0x345774(0x1b4),_0x35046a);}[_0x22b396(0x165)](){const _0x441759=_0x22b396;[M,N,E,P,F,D]['forEach'](_0x1377b3=>this[_0x441759(0x179)](this[_0x441759(0x1b8)]['registerCommand'](_0x1377b3)));}};W(G,_0x22b396(0x161),_0x22b396(0x1c4)),W(G,'packageName',I),W(G,'version',L),W(G,_0x22b396(0x1b6),_0x176aa1[_0x22b396(0x1ba)]),G=B([_0x382a79(_0x163745,_0x47677c),z(0x1,_0x72c1ec(_0xe4c5b2)),z(0x2,_0x417b48),z(0x3,_0x1dc54d)],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
|
|
1
|
+
function _0x339a(_0x12cf06,_0x528778){_0x12cf06=_0x12cf06-0xce;const _0xf171eb=_0xf171();let _0x339a65=_0xf171eb[_0x12cf06];return _0x339a65;}(function(_0x3ccffd,_0x1eb4c0){const _0x4bb545=_0x339a,_0x8a487a=_0x3ccffd();while(!![]){try{const _0x4fc448=-parseInt(_0x4bb545(0xfe))/0x1+-parseInt(_0x4bb545(0x100))/0x2*(parseInt(_0x4bb545(0xdc))/0x3)+-parseInt(_0x4bb545(0xf6))/0x4+parseInt(_0x4bb545(0xd5))/0x5*(-parseInt(_0x4bb545(0xf2))/0x6)+parseInt(_0x4bb545(0x104))/0x7*(-parseInt(_0x4bb545(0xfc))/0x8)+-parseInt(_0x4bb545(0xee))/0x9*(-parseInt(_0x4bb545(0xe4))/0xa)+parseInt(_0x4bb545(0xce))/0xb;if(_0x4fc448===_0x1eb4c0)break;else _0x8a487a['push'](_0x8a487a['shift']());}catch(_0x28a610){_0x8a487a['push'](_0x8a487a['shift']());}}}(_0xf171,0x7db73),function(_0x28544e,_0x508801){const _0x2b784f=_0x339a;typeof exports==_0x2b784f(0x107)&&typeof module<'u'?_0x508801(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x2b784f(0x106)]?define([_0x2b784f(0x109),_0x2b784f(0x103),'@univerjs/docs/facade'],_0x508801):(_0x28544e=typeof globalThis<'u'?globalThis:_0x28544e||self,_0x508801(_0x28544e[_0x2b784f(0xec)],_0x28544e['UniverCore'],_0x28544e[_0x2b784f(0xf7)]));}(this,function(_0x26c9e5,_0x580170,_0x1b4e98){const _0x5cdd1c=_0x339a;var _0x14531c=class extends _0x1b4e98[_0x5cdd1c(0xe9)]{[_0x5cdd1c(0xd2)](_0x25e9da,_0x5131d6={}){const _0x34bc1b=_0x5cdd1c;let _0xb40691=(0x0,_0x580170[_0x34bc1b(0xd9)])(0xc);return this[_0x34bc1b(0xed)]['get'](_0x580170[_0x34bc1b(0xeb)])[_0x34bc1b(0xf5)](_0x26c9e5[_0x34bc1b(0xda)]['id'],{..._0x5131d6,'unitId':this['id'],'offset':_0x25e9da,'noteId':_0xb40691})?_0xb40691:null;}[_0x5cdd1c(0x101)](){const _0x1703d3=_0x5cdd1c;var _0x30a97d;let _0x240c80=this['getDocumentDataModel']()[_0x1703d3(0xf1)]();return(((_0x30a97d=_0x240c80[_0x1703d3(0xde)])==null?void 0x0:_0x30a97d[_0x1703d3(0xf4)])??[])[_0x1703d3(0xfb)](_0x279f22=>_0x279f22[_0x1703d3(0xd3)]===_0x580170[_0x1703d3(0xd7)]['FOOTNOTE'])[_0x1703d3(0xe8)]((_0x321556,_0x26f6c8)=>_0x321556['startIndex']-_0x26f6c8['startIndex'])[_0x1703d3(0xd0)](_0x1d6fb5=>{const _0x3022e7=_0x1703d3;var _0x2037b7,_0x543447;let _0xb61852=(_0x2037b7=_0x1d6fb5[_0x3022e7(0xf8)])==null?void 0x0:_0x2037b7[_0x3022e7(0x108)],_0x146f35=typeof _0xb61852==_0x3022e7(0xe3)?(_0x543447=_0x240c80['notes'])==null?void 0x0:_0x543447[_0xb61852]:void 0x0;return _0x146f35?[_0x580170[_0x3022e7(0x105)][_0x3022e7(0xe6)](_0x146f35)]:[];});}[_0x5cdd1c(0xea)](_0x3f9872){const _0x90d925=_0x5cdd1c;return this[_0x90d925(0xed)][_0x90d925(0x102)](_0x580170[_0x90d925(0xeb)])[_0x90d925(0xf5)](_0x26c9e5['DeleteDocumentFootnoteCommand']['id'],{'unitId':this['id'],'noteId':_0x3f9872});}['getFootnoteSettings'](_0x438770){const _0x4b1d0d=_0x5cdd1c;var _0x3a108c,_0x2cc3ae;let _0x5a1255=this[_0x4b1d0d(0xff)]()['getSnapshot'](),_0x3fb542=_0x438770==null?(_0x3a108c=_0x5a1255['noteSettings'])==null?void 0x0:_0x3a108c[_0x4b1d0d(0xd1)]:(_0x2cc3ae=_0x5a1255[_0x4b1d0d(0xde)])==null||(_0x2cc3ae=_0x2cc3ae[_0x4b1d0d(0xe7)])==null||(_0x2cc3ae=_0x2cc3ae[_0x4b1d0d(0xef)](_0x21f78b=>_0x21f78b[_0x4b1d0d(0xd8)]===_0x438770))==null||(_0x2cc3ae=_0x2cc3ae['noteProperties'])==null?void 0x0:_0x2cc3ae[_0x4b1d0d(0xd1)];return _0x3fb542==null?void 0x0:_0x580170['Tools'][_0x4b1d0d(0xe6)](_0x3fb542);}[_0x5cdd1c(0xe2)](_0x5bb3c2,_0x1ef3a0){const _0x44f8ad=_0x5cdd1c;return this[_0x44f8ad(0xed)]['get'](_0x580170[_0x44f8ad(0xeb)])[_0x44f8ad(0xf5)](_0x26c9e5[_0x44f8ad(0xe5)]['id'],{'unitId':this['id'],'settings':_0x5bb3c2,'sectionId':_0x1ef3a0});}['insertEndnote'](_0x48c358,_0x5c4c66={}){const _0x169e88=_0x5cdd1c;let _0x39d38e=(0x0,_0x580170['generateRandomId'])(0xc);return this[_0x169e88(0xed)][_0x169e88(0x102)](_0x580170[_0x169e88(0xeb)])[_0x169e88(0xf5)](_0x26c9e5[_0x169e88(0xf3)]['id'],{..._0x5c4c66,'unitId':this['id'],'offset':_0x48c358,'noteId':_0x39d38e})?_0x39d38e:null;}[_0x5cdd1c(0xdd)](){const _0x52a6af=_0x5cdd1c;var _0x35a60b;let _0x2c7184=this['getDocumentDataModel']()[_0x52a6af(0xf1)]();return(((_0x35a60b=_0x2c7184[_0x52a6af(0xde)])==null?void 0x0:_0x35a60b[_0x52a6af(0xf4)])??[])[_0x52a6af(0xfb)](_0x30b879=>_0x30b879[_0x52a6af(0xd3)]===_0x580170['CustomRangeType'][_0x52a6af(0xf9)])[_0x52a6af(0xe8)]((_0x2596c5,_0x49d872)=>_0x2596c5[_0x52a6af(0xe1)]-_0x49d872[_0x52a6af(0xe1)])[_0x52a6af(0xd0)](_0x54f5fe=>{const _0x4e4580=_0x52a6af;var _0x240ca1,_0x54dfe8;let _0x135e18=(_0x240ca1=_0x54f5fe[_0x4e4580(0xf8)])==null?void 0x0:_0x240ca1[_0x4e4580(0x108)],_0x1b00fd=typeof _0x135e18==_0x4e4580(0xe3)?(_0x54dfe8=_0x2c7184['notes'])==null?void 0x0:_0x54dfe8[_0x135e18]:void 0x0;return _0x1b00fd?[_0x580170['Tools'][_0x4e4580(0xe6)](_0x1b00fd)]:[];});}[_0x5cdd1c(0xdf)](_0x57f4e0){const _0x12d31f=_0x5cdd1c;return this[_0x12d31f(0xed)][_0x12d31f(0x102)](_0x580170[_0x12d31f(0xeb)])[_0x12d31f(0xf5)](_0x26c9e5[_0x12d31f(0xd4)]['id'],{'unitId':this['id'],'noteId':_0x57f4e0});}[_0x5cdd1c(0xfd)](_0x220780){const _0x36342b=_0x5cdd1c;var _0x327bc7,_0x5ee113;let _0x1a2ac2=this[_0x36342b(0xff)]()[_0x36342b(0xf1)](),_0x5f4210=_0x220780==null?(_0x327bc7=_0x1a2ac2[_0x36342b(0xd6)])==null?void 0x0:_0x327bc7['endnote']:(_0x5ee113=_0x1a2ac2['body'])==null||(_0x5ee113=_0x5ee113[_0x36342b(0xe7)])==null||(_0x5ee113=_0x5ee113[_0x36342b(0xef)](_0x3cf66c=>_0x3cf66c['sectionId']===_0x220780))==null||(_0x5ee113=_0x5ee113[_0x36342b(0xf0)])==null?void 0x0:_0x5ee113[_0x36342b(0xdb)];return _0x5f4210==null?void 0x0:_0x580170[_0x36342b(0x105)][_0x36342b(0xe6)](_0x5f4210);}[_0x5cdd1c(0xfa)](_0x2dc94b,_0x14c83d){const _0x42c34e=_0x5cdd1c;return this[_0x42c34e(0xed)]['get'](_0x580170['ICommandService'])[_0x42c34e(0xf5)](_0x26c9e5[_0x42c34e(0xcf)]['id'],{'unitId':this['id'],'settings':_0x2dc94b,'sectionId':_0x14c83d});}};_0x1b4e98[_0x5cdd1c(0xe9)][_0x5cdd1c(0xe0)](_0x14531c);}));function _0xf171(){const _0x22cdc5=['CustomRangeType','sectionId','generateRandomId','InsertDocumentFootnoteCommand','endnote','217074vjIjuI','getEndnotes','body','deleteEndnote','extend','startIndex','setFootnoteSettings','string','113020BVCVTg','SetDocumentFootnoteSettingsCommand','deepClone','sectionBreaks','sort','FDocument','deleteFootnote','ICommandService','UniverProDocsReference','_injector','549WpSAUw','find','noteProperties','getSnapshot','329898ASVmaU','InsertDocumentEndnoteCommand','customRanges','syncExecuteCommand','326508VYbIDG','UniverDocsFacade','properties','ENDNOTE','setEndnoteSettings','filter','98008yVbCsS','getEndnoteSettings','932073fnpEBo','getDocumentDataModel','8BzETSO','getFootnotes','get','@univerjs/core','574znCEdf','Tools','amd','object','noteId','@univerjs-pro/docs-reference','33747274YRSraK','SetDocumentEndnoteSettingsCommand','flatMap','footnote','insertFootnote','rangeType','DeleteDocumentEndnoteCommand','85pCXhLg','noteSettings'];_0xf171=function(){return _0x22cdc5;};return _0xf171();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1dd0(_0x27efe3,_0x2dced6){_0x27efe3=_0x27efe3-0x6d;const _0x18e67e=_0x18e6();let _0x1dd06d=_0x18e67e[_0x27efe3];return _0x1dd06d;}(function(_0x536dda,_0x5e1c53){const _0x16cbf9=_0x1dd0,_0x4d7000=_0x536dda();while(!![]){try{const _0x29e911=parseInt(_0x16cbf9(0xb4))/0x1*(parseInt(_0x16cbf9(0xe0))/0x2)+-parseInt(_0x16cbf9(0xf8))/0x3*(parseInt(_0x16cbf9(0xc4))/0x4)+parseInt(_0x16cbf9(0x75))/0x5*(-parseInt(_0x16cbf9(0xfb))/0x6)+-parseInt(_0x16cbf9(0xca))/0x7*(-parseInt(_0x16cbf9(0xfe))/0x8)+parseInt(_0x16cbf9(0xc1))/0x9*(parseInt(_0x16cbf9(0x89))/0xa)+parseInt(_0x16cbf9(0x8a))/0xb*(-parseInt(_0x16cbf9(0x81))/0xc)+-parseInt(_0x16cbf9(0x9d))/0xd;if(_0x29e911===_0x5e1c53)break;else _0x4d7000['push'](_0x4d7000['shift']());}catch(_0x666d87){_0x4d7000['push'](_0x4d7000['shift']());}}}(_0x18e6,0x262df),function(_0x74167f,_0x45401d){const _0xe4fbf9=_0x1dd0;typeof exports==_0xe4fbf9(0xe1)&&typeof module<'u'?_0x45401d(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0xe4fbf9(0x7b)&&define['amd']?define([_0xe4fbf9(0xa5),_0xe4fbf9(0xb2),_0xe4fbf9(0xa8),_0xe4fbf9(0xf0)],_0x45401d):(_0x74167f=typeof globalThis<'u'?globalThis:_0x74167f||self,_0x45401d(_0x74167f['UniverProDocsReference']={},_0x74167f['UniverCore'],_0x74167f[_0xe4fbf9(0xef)],_0x74167f[_0xe4fbf9(0x78)]));}(this,function(_0x12639a,_0x4c90e0,_0x4b7b07,_0x3f1e82){const _0x42cf90=_0x1dd0;Object[_0x42cf90(0xdb)](_0x12639a,Symbol[_0x42cf90(0xc2)],{'value':'Module'});function _0x20506f(_0x4549cb,_0x4cb9c4,_0x2412cb){const _0x4b294d=_0x42cf90;if(_0x4549cb[_0x4b294d(0xf5)]!=null&&!(_0x4cb9c4==='footnote'?['pageBottom','beneathText']:[_0x4b294d(0x99),_0x4b294d(0xd7)])[_0x4b294d(0xe5)](_0x4549cb[_0x4b294d(0xf5)])||_0x4549cb[_0x4b294d(0x80)]!=null&&!(_0x4cb9c4===_0x4b294d(0x6f)?[_0x4b294d(0x79),_0x4b294d(0xae),_0x4b294d(0x8c)]:[_0x4b294d(0x79),'eachSect'])[_0x4b294d(0xe5)](_0x4549cb[_0x4b294d(0x80)])||_0x4549cb[_0x4b294d(0x85)]!=null&&(!Number[_0x4b294d(0xd9)](_0x4549cb[_0x4b294d(0x85)])||_0x4549cb['startNumber']<0x1)||_0x4b294d(0xe2)in _0x4549cb&&_0x4549cb[_0x4b294d(0xe2)]!=null&&(_0x4cb9c4!=='footnote'||!Number[_0x4b294d(0xd9)](_0x4549cb[_0x4b294d(0xe2)])||_0x4549cb[_0x4b294d(0xe2)]<0x0||_0x4549cb[_0x4b294d(0xe2)]>0x4)||_0x4549cb['numberFormat']!=null&&(typeof _0x4549cb[_0x4b294d(0xe3)]!='string'||_0x4549cb['numberFormat'][_0x4b294d(0xb0)]===0x0))return!0x1;for(let _0x168e4d of[_0x4549cb[_0x4b294d(0xfc)],_0x4549cb[_0x4b294d(0xce)],_0x4549cb[_0x4b294d(0x6e)]])if(_0x168e4d!=null&&(_0x2412cb!=null||(0x0,_0x4c90e0[_0x4b294d(0x73)])(_0x168e4d)[_0x4b294d(0xb0)]>0x0))return!0x1;return!0x0;}function _0x426eff(_0x259ec8,_0x1df81b,_0x1aa1cf){const _0x33ab09=_0x42cf90;var _0x38c8ab,_0x4a6b29;if(_0x1df81b[_0x33ab09(0x76)]!=null&&!_0x20506f(_0x1df81b[_0x33ab09(0x76)],_0x1aa1cf,_0x1df81b[_0x33ab09(0xbc)]))return!0x1;let _0x94beec=((_0x38c8ab=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x38c8ab=_0x38c8ab[_0x33ab09(0xf1)])==null?void 0x0:_0x38c8ab['findIndex'](_0x50dfe8=>_0x50dfe8['sectionId']===_0x1df81b[_0x33ab09(0xbc)]))??-0x1;if(_0x1df81b['sectionId']!=null&&_0x94beec<0x0)return!0x1;let _0x571c62=_0x1df81b[_0x33ab09(0xbc)]==null?_0x259ec8[_0x33ab09(0x93)]:(_0x4a6b29=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x4a6b29=_0x4a6b29['sectionBreaks'])==null?void 0x0:_0x4a6b29[_0x94beec][_0x33ab09(0xee)],_0x42e690=_0x1df81b[_0x33ab09(0x76)]==null?void 0x0:_0x4c90e0[_0x33ab09(0xa0)][_0x33ab09(0x77)](_0x1df81b[_0x33ab09(0x76)]),_0x4d9c85=_0x1df81b['sectionId']==null?['noteSettings']:[_0x33ab09(0xb5),_0x33ab09(0xf1),_0x94beec,_0x33ab09(0xee)],_0x44c176=_0x4c90e0[_0x33ab09(0xf7)][_0x33ab09(0xac)](),_0x641f8c=null;if(_0x4c90e0[_0x33ab09(0xa0)][_0x33ab09(0x97)](_0x571c62==null?void 0x0:_0x571c62[_0x1aa1cf],_0x42e690)||(_0x641f8c=_0x571c62==null?_0x44c176[_0x33ab09(0xd5)](_0x4d9c85,{[_0x1aa1cf]:_0x42e690}):_0x1df81b[_0x33ab09(0xbc)]!=null&&_0x42e690==null&&Object['keys'](_0x571c62)[_0x33ab09(0xf2)](_0xda0997=>_0xda0997===_0x1aa1cf)?_0x44c176[_0x33ab09(0x6d)](_0x4d9c85,_0x571c62):_0x44c176[_0x33ab09(0xa3)]([..._0x4d9c85,_0x1aa1cf],_0x571c62[_0x1aa1cf],_0x42e690)),_0x1df81b[_0x33ab09(0x92)]!=null){var _0x14ffaf;if(_0x1aa1cf!==_0x33ab09(0x74)||_0x1df81b[_0x33ab09(0xbc)]==null||typeof _0x1df81b[_0x33ab09(0x92)]!='boolean')return!0x1;let _0x393d1f=(_0x14ffaf=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x14ffaf=_0x14ffaf[_0x33ab09(0xf1)])==null?void 0x0:_0x14ffaf[_0x94beec][_0x33ab09(0x92)];_0x393d1f!==_0x1df81b['suppressEndnotes']&&(_0x641f8c=_0x4c90e0[_0x33ab09(0xf7)]['compose'](_0x641f8c,_0x44c176[_0x33ab09(0xa3)](['body','sectionBreaks',_0x94beec,_0x33ab09(0x92)],_0x393d1f,_0x1df81b[_0x33ab09(0x92)])));}return _0x641f8c;}function _0x36f59d(_0xe2b999,_0x2f60ef,_0x5b93c0){const _0x583da7=_0x42cf90;if(!_0x2f60ef)return!0x1;let _0x3e8a3e=_0xe2b999[_0x583da7(0xcd)](_0x4c90e0[_0x583da7(0xec)])[_0x583da7(0xc5)](_0x2f60ef['unitId'],_0x4c90e0['UniverInstanceType'][_0x583da7(0x95)]),_0x1e114=_0x3e8a3e==null?void 0x0:_0x3e8a3e[_0x583da7(0x86)]();if(!_0x1e114||_0x1e114['documentStyle'][_0x583da7(0xed)]!==_0x4c90e0[_0x583da7(0x7a)][_0x583da7(0xb3)])return!0x1;let _0x251e36=_0x426eff(_0x1e114,_0x2f60ef,_0x5b93c0);return _0x251e36===!0x1||_0x4c90e0[_0x583da7(0xf7)][_0x583da7(0x90)](_0x251e36)?!0x1:!!_0xe2b999[_0x583da7(0xcd)](_0x4c90e0['ICommandService'])[_0x583da7(0xe4)](_0x4b7b07[_0x583da7(0x7f)]['id'],{'unitId':_0x2f60ef['unitId'],'segmentId':'','historyAction':_0x583da7(0x8d)+_0x5b93c0+_0x583da7(0xe9),'actions':_0x251e36,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x3ebf59={'id':'doc.command.set-footnote-settings','type':_0x4c90e0[_0x42cf90(0xc7)][_0x42cf90(0xfd)],'handler':(_0x3cae66,_0x103cc0)=>_0x36f59d(_0x3cae66,_0x103cc0,_0x42cf90(0x6f))},_0x2684ed={'id':_0x42cf90(0x82),'type':_0x4c90e0['CommandType'][_0x42cf90(0xfd)],'handler':(_0x1fb934,_0x2f28c8)=>_0x36f59d(_0x1fb934,_0x2f28c8,_0x42cf90(0x74))};function _0x45d47e(_0x256ab0,_0x53a4b9){const _0x25a082=_0x42cf90;return(_0x256ab0==null?void 0x0:_0x256ab0[_0x25a082(0xde)][_0x25a082(0xed)])===_0x4c90e0[_0x25a082(0x7a)]['TRADITIONAL']&&!!_0x256ab0['body']&&Number['isInteger'](_0x53a4b9)&&_0x53a4b9>=0x0&&_0x53a4b9<_0x256ab0[_0x25a082(0xb5)][_0x25a082(0xea)][_0x25a082(0xb0)]-0x1;}function _0x2526cd(_0xae4c7f,_0x50390c,_0x352c3e){const _0x5d4f3f=_0x42cf90;var _0x553960,_0x392333;if(_0x50390c[_0x5d4f3f(0x76)]===void 0x0&&_0x50390c[_0x5d4f3f(0x92)]===void 0x0)return null;let _0x3188d9=_0x50390c[_0x5d4f3f(0xbc)]==null?(_0x553960=_0xae4c7f[_0x5d4f3f(0x93)])==null?void 0x0:_0x553960[_0x352c3e]:(_0x392333=_0xae4c7f[_0x5d4f3f(0xb5)])==null||(_0x392333=_0x392333['sectionBreaks'])==null||(_0x392333=_0x392333[_0x5d4f3f(0xe6)](_0x2b4ff1=>_0x2b4ff1[_0x5d4f3f(0xbc)]===_0x50390c[_0x5d4f3f(0xbc)]))==null||(_0x392333=_0x392333['noteProperties'])==null?void 0x0:_0x392333[_0x352c3e];return _0x426eff(_0xae4c7f,{'settings':_0x50390c[_0x5d4f3f(0x76)]===void 0x0?_0x3188d9??null:_0x50390c[_0x5d4f3f(0x76)],'sectionId':_0x50390c[_0x5d4f3f(0xbc)],'suppressEndnotes':_0x50390c['suppressEndnotes']},_0x352c3e);}function _0x269270(_0x19c8b8,_0x61994,_0x406527){const _0x248e87=_0x42cf90;var _0x42c5df,_0x13da31,_0x275a27;if(!_0x61994||_0x61994[_0x248e87(0xbd)])return!0x1;let _0x369198=_0x19c8b8[_0x248e87(0xcd)](_0x4c90e0[_0x248e87(0xec)])[_0x248e87(0xc5)](_0x61994[_0x248e87(0x7c)],_0x4c90e0[_0x248e87(0xdc)][_0x248e87(0x95)]),_0x286c8a=_0x369198==null?void 0x0:_0x369198[_0x248e87(0x86)](),{offset:_0x5e240f}=_0x61994;if(!_0x45d47e(_0x286c8a,_0x5e240f))return!0x1;let _0x5ce5bc=_0x2526cd(_0x286c8a,_0x61994,_0x406527);if(_0x5ce5bc===!0x1)return!0x1;let _0x27e91a=_0x61994[_0x248e87(0xaf)]??(0x0,_0x4c90e0[_0x248e87(0x9a)])(0xc);if((_0x42c5df=_0x286c8a[_0x248e87(0xd4)])!=null&&_0x42c5df[_0x27e91a]||(_0x13da31=_0x286c8a[_0x248e87(0x8f)])!=null&&_0x13da31[_0x27e91a]||(_0x275a27=_0x286c8a[_0x248e87(0x71)])!=null&&_0x275a27[_0x27e91a])return!0x1;let _0x500a59=_0x4c90e0['Tools']['deepClone']({'type':_0x406527,'noteId':_0x27e91a,'body':_0x61994[_0x248e87(0xb5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x4c90e0[_0x248e87(0xbe)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x4c90e0[_0x248e87(0x9c)])(new Set()),'startIndex':0x1}]},'customMark':_0x61994[_0x248e87(0xc8)],'referenceTextStyle':_0x61994[_0x248e87(0xab)],'tableSource':_0x61994[_0x248e87(0x84)],'drawings':_0x61994[_0x248e87(0xa4)],'drawingsOrder':_0x61994[_0x248e87(0xd1)],'lists':_0x61994[_0x248e87(0xb7)]});if((0x0,_0x4c90e0['validateDocumentStructure'])({'notes':{[_0x27e91a]:_0x500a59}})['length']>0x0)return!0x1;let _0x1703bc=new _0x4c90e0[(_0x248e87(0xc9))]();_0x5e240f>0x0&&_0x1703bc[_0x248e87(0x9e)](_0x5e240f),_0x1703bc[_0x248e87(0xbf)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x406527==='footnote'?_0x4c90e0[_0x248e87(0x8b)][_0x248e87(0xcb)]:_0x4c90e0['CustomRangeType'][_0x248e87(0xb1)],'rangeId':(0x0,_0x4c90e0[_0x248e87(0x9a)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27e91a}}]});let _0x600cbc=_0x4c90e0[_0x248e87(0xf7)][_0x248e87(0xac)](),_0x6f816e=_0x286c8a[_0x248e87(0xd4)]==null?_0x600cbc[_0x248e87(0xd5)](['notes'],{[_0x27e91a]:_0x500a59}):_0x600cbc[_0x248e87(0xd5)]([_0x248e87(0xd4),_0x27e91a],_0x500a59);return!!_0x19c8b8[_0x248e87(0xcd)](_0x4c90e0[_0x248e87(0xb8)])['syncExecuteCommand'](_0x4b7b07['RichTextEditingMutation']['id'],{'unitId':_0x61994['unitId'],'segmentId':'','historyAction':_0x248e87(0xc6)+_0x406527,'actions':_0x4c90e0[_0x248e87(0xf7)][_0x248e87(0xda)](_0x4c90e0[_0x248e87(0xf7)]['compose'](_0x5ce5bc,_0x6f816e),_0x600cbc[_0x248e87(0x94)](_0x1703bc[_0x248e87(0xa1)](),[_0x248e87(0xb5)])),'textRanges':[{'segmentId':_0x27e91a,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3c88b6(_0x10c0ca,_0x41a9e7,_0x39e63b){const _0x28c1e3=_0x42cf90;var _0x3f7fbf,_0x48e40b;if(!_0x41a9e7)return!0x1;let _0x1cef95=_0x10c0ca[_0x28c1e3(0xcd)](_0x4c90e0[_0x28c1e3(0xec)])[_0x28c1e3(0xc5)](_0x41a9e7[_0x28c1e3(0x7c)],_0x4c90e0[_0x28c1e3(0xdc)][_0x28c1e3(0x95)]),_0x340589=_0x1cef95==null?void 0x0:_0x1cef95[_0x28c1e3(0x86)](),_0x4e56f2=_0x340589==null||(_0x3f7fbf=_0x340589[_0x28c1e3(0xd4)])==null?void 0x0:_0x3f7fbf[_0x41a9e7[_0x28c1e3(0xaf)]],_0x30741c=_0x340589==null||(_0x48e40b=_0x340589[_0x28c1e3(0xb5)])==null||(_0x48e40b=_0x48e40b[_0x28c1e3(0xf6)])==null?void 0x0:_0x48e40b['find'](_0x28fc86=>{const _0x4809b5=_0x28c1e3;var _0x4a8522;return(_0x28fc86[_0x4809b5(0x7d)]===_0x4c90e0[_0x4809b5(0x8b)][_0x4809b5(0xcb)]||_0x28fc86[_0x4809b5(0x7d)]===_0x4c90e0[_0x4809b5(0x8b)][_0x4809b5(0xb1)])&&((_0x4a8522=_0x28fc86['properties'])==null?void 0x0:_0x4a8522[_0x4809b5(0xaf)])===_0x41a9e7[_0x4809b5(0xaf)];});if(!_0x340589||_0x340589[_0x28c1e3(0xde)][_0x28c1e3(0xed)]!==_0x4c90e0['DocumentFlavor'][_0x28c1e3(0xb3)]||!_0x4e56f2||_0x4e56f2['type']!==_0x39e63b||!_0x30741c)return!0x1;let _0x322d0d=new _0x4c90e0['TextX']();_0x30741c[_0x28c1e3(0xa6)]>0x0&&_0x322d0d[_0x28c1e3(0x9e)](_0x30741c[_0x28c1e3(0xa6)]),_0x322d0d[_0x28c1e3(0xa2)](0x1);let _0x40ffbc=_0x4c90e0['JSONX'][_0x28c1e3(0xac)]();return!!_0x10c0ca[_0x28c1e3(0xcd)](_0x4c90e0[_0x28c1e3(0xb8)])[_0x28c1e3(0xe4)](_0x4b7b07['RichTextEditingMutation']['id'],{'unitId':_0x41a9e7[_0x28c1e3(0x7c)],'segmentId':'','historyAction':_0x28c1e3(0xf9)+_0x39e63b,'actions':_0x4c90e0['JSONX']['compose'](_0x40ffbc['editOp'](_0x322d0d[_0x28c1e3(0xa1)](),[_0x28c1e3(0xb5)]),_0x40ffbc[_0x28c1e3(0x6d)]([_0x28c1e3(0xd4),_0x41a9e7[_0x28c1e3(0xaf)]],_0x4e56f2)),'textRanges':[{'startOffset':_0x30741c[_0x28c1e3(0xa6)],'endOffset':_0x30741c[_0x28c1e3(0xa6)],'collapsed':!0x0}],'debounce':!0x1});}let _0x5e87d8={'id':_0x42cf90(0xba),'type':_0x4c90e0[_0x42cf90(0xc7)]['COMMAND'],'handler':(_0x1d84ad,_0x430c1c)=>_0x269270(_0x1d84ad,_0x430c1c,_0x42cf90(0x6f))},_0x2f487c={'id':_0x42cf90(0xc3),'type':_0x4c90e0['CommandType'][_0x42cf90(0xfd)],'handler':(_0x170854,_0x51b93a)=>_0x3c88b6(_0x170854,_0x51b93a,_0x42cf90(0x6f))},_0xecc2bc={'id':_0x42cf90(0xeb),'type':_0x4c90e0[_0x42cf90(0xc7)]['COMMAND'],'handler':(_0x25866a,_0x53c975)=>_0x269270(_0x25866a,_0x53c975,_0x42cf90(0x74))},_0xdcf53b={'id':_0x42cf90(0x8e),'type':_0x4c90e0[_0x42cf90(0xc7)][_0x42cf90(0xfd)],'handler':(_0xbab5ce,_0x5a1040)=>_0x3c88b6(_0xbab5ce,_0x5a1040,_0x42cf90(0x74))};var _0x4761e2=_0x42cf90(0xe8),_0x8570c0=_0x42cf90(0x9f);let _0x49bd17={};function _0x27bd0c(_0x3a062c,_0x15555e){return function(_0x45ccad,_0x24a8fe){_0x15555e(_0x45ccad,_0x24a8fe,_0x3a062c);};}function _0x58d9ea(_0x55f46a,_0x13f0fb,_0x3d5d89,_0x1b36e3){const _0x4c51e1=_0x42cf90;var _0x164efc=arguments[_0x4c51e1(0xb0)],_0x5c1b8b=_0x164efc<0x3?_0x13f0fb:_0x1b36e3===null?_0x1b36e3=Object['getOwnPropertyDescriptor'](_0x13f0fb,_0x3d5d89):_0x1b36e3,_0x5ce3fc;if(typeof Reflect==_0x4c51e1(0xe1)&&typeof Reflect[_0x4c51e1(0xfa)]==_0x4c51e1(0x7b))_0x5c1b8b=Reflect[_0x4c51e1(0xfa)](_0x55f46a,_0x13f0fb,_0x3d5d89,_0x1b36e3);else{for(var _0x52c75d=_0x55f46a[_0x4c51e1(0xb0)]-0x1;_0x52c75d>=0x0;_0x52c75d--)(_0x5ce3fc=_0x55f46a[_0x52c75d])&&(_0x5c1b8b=(_0x164efc<0x3?_0x5ce3fc(_0x5c1b8b):_0x164efc>0x3?_0x5ce3fc(_0x13f0fb,_0x3d5d89,_0x5c1b8b):_0x5ce3fc(_0x13f0fb,_0x3d5d89))||_0x5c1b8b);}return _0x164efc>0x3&&_0x5c1b8b&&Object[_0x4c51e1(0xdb)](_0x13f0fb,_0x3d5d89,_0x5c1b8b),_0x5c1b8b;}function _0x2c7feb(_0x4b37c1){'@babel/helpers - typeof';const _0x370000=_0x42cf90;return _0x2c7feb=typeof Symbol==_0x370000(0x7b)&&typeof Symbol[_0x370000(0x96)]==_0x370000(0x7e)?function(_0x211e47){return typeof _0x211e47;}:function(_0x5d1f14){const _0xc83f21=_0x370000;return _0x5d1f14&&typeof Symbol=='function'&&_0x5d1f14[_0xc83f21(0x88)]===Symbol&&_0x5d1f14!==Symbol[_0xc83f21(0x98)]?_0xc83f21(0x7e):typeof _0x5d1f14;},_0x2c7feb(_0x4b37c1);}function _0x4a50db(_0x16e99c,_0x90e5d9){const _0x350fe7=_0x42cf90;if(_0x2c7feb(_0x16e99c)!='object'||!_0x16e99c)return _0x16e99c;var _0x4af580=_0x16e99c[Symbol[_0x350fe7(0xf3)]];if(_0x4af580!==void 0x0){var _0x511cbf=_0x4af580['call'](_0x16e99c,_0x90e5d9||_0x350fe7(0xa9));if(_0x2c7feb(_0x511cbf)!=_0x350fe7(0xe1))return _0x511cbf;throw TypeError(_0x350fe7(0x72));}return(_0x90e5d9===_0x350fe7(0xb9)?String:Number)(_0x16e99c);}function _0x390b6b(_0x4fdcb4){const _0x3184ae=_0x42cf90;var _0x401216=_0x4a50db(_0x4fdcb4,_0x3184ae(0xb9));return _0x2c7feb(_0x401216)==_0x3184ae(0x7e)?_0x401216:_0x401216+'';}function _0x31368a(_0x3a475e,_0x2095bd,_0x1fd209){return(_0x2095bd=_0x390b6b(_0x2095bd))in _0x3a475e?Object['defineProperty'](_0x3a475e,_0x2095bd,{'value':_0x1fd209,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a475e[_0x2095bd]=_0x1fd209,_0x3a475e;}let _0x321418=class extends _0x4c90e0[_0x42cf90(0xdf)]{constructor(_0x3d5b5f=_0x49bd17,_0x1ae7fc,_0x55a7e6,_0x48bbe3){const _0x5ab171=_0x42cf90;super(),this[_0x5ab171(0xaa)]=_0x3d5b5f,this['_injector']=_0x1ae7fc,this['_configService']=_0x55a7e6,this['_commandService']=_0x48bbe3;let {..._0xe6eda5}=(0x0,_0x4c90e0['merge'])({},_0x49bd17,this[_0x5ab171(0xaa)]);this[_0x5ab171(0xa7)][_0x5ab171(0x9b)]('docs-reference.config',_0xe6eda5);}['onStarting'](){const _0x5e9936=_0x42cf90;[_0x5e87d8,_0x2f487c,_0x3ebf59,_0xecc2bc,_0xdcf53b,_0x2684ed]['forEach'](_0xadea0b=>this[_0x5e9936(0xdd)](this['_commandService'][_0x5e9936(0xd8)](_0xadea0b)));}};_0x31368a(_0x321418,_0x42cf90(0xad),'UNIVER_DOCS_REFERENCE_PLUGIN'),_0x31368a(_0x321418,_0x42cf90(0xd0),_0x4761e2),_0x31368a(_0x321418,_0x42cf90(0xd2),_0x8570c0),_0x31368a(_0x321418,_0x42cf90(0x87),_0x4c90e0[_0x42cf90(0xdc)][_0x42cf90(0x95)]),_0x321418=_0x58d9ea([(0x0,_0x4c90e0[_0x42cf90(0xe7)])(_0x3f1e82[_0x42cf90(0xcf)],_0x4b7b07[_0x42cf90(0xc0)]),_0x27bd0c(0x1,(0x0,_0x4c90e0[_0x42cf90(0x91)])(_0x4c90e0[_0x42cf90(0xbb)])),_0x27bd0c(0x2,_0x4c90e0[_0x42cf90(0xd3)]),_0x27bd0c(0x3,_0x4c90e0['ICommandService'])],_0x321418),_0x12639a[_0x42cf90(0xb6)]=_0xdcf53b,_0x12639a['DeleteDocumentFootnoteCommand']=_0x2f487c,_0x12639a[_0x42cf90(0x70)]=_0xecc2bc,_0x12639a[_0x42cf90(0xd6)]=_0x5e87d8,_0x12639a[_0x42cf90(0x83)]=_0x2684ed,_0x12639a[_0x42cf90(0xcc)]=_0x3ebf59,Object[_0x42cf90(0xdb)](_0x12639a,_0x42cf90(0xf4),{'enumerable':!0x0,'get':function(){return _0x321418;}});}));function _0x18e6(){const _0xdc6c35=['toStringTag','doc.command.delete-footnote','8592PIJyJD','getUnit','insert-','CommandType','customMark','TextX','315CjACXx','FOOTNOTE','SetDocumentFootnoteSettingsCommand','get','continuationSeparator','UniverLicensePlugin','packageName','drawingsOrder','version','IConfigService','notes','insertOp','InsertDocumentFootnoteCommand','sectEnd','registerCommand','isInteger','compose','defineProperty','UniverInstanceType','disposeWithMe','documentStyle','Plugin','312082uXkzBi','object','columnCount','numberFormat','syncExecuteCommand','includes','find','DependentOn','@univerjs-pro/docs-reference','-settings','dataStream','doc.command.insert-endnote','IUniverInstanceService','documentFlavor','noteProperties','UniverDocs','@univerjs-pro/license','sectionBreaks','every','toPrimitive','UniverDocsReferencePlugin','position','customRanges','JSONX','51mWHYyY','delete-','decorate','21396GEhIzA','separator','COMMAND','50088seIEeI','removeOp','continuationNotice','footnote','InsertDocumentEndnoteCommand','footers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','validateDocBodyStructure','endnote','120xqUeNo','settings','deepClone','UniverProLicense','continuous','DocumentFlavor','function','unitId','rangeType','symbol','RichTextEditingMutation','restart','12SHmGSD','doc.command.set-endnote-settings','SetDocumentEndnoteSettingsCommand','tableSource','startNumber','getSnapshot','type','constructor','30iaieeZ','519277diVWPT','CustomRangeType','eachPage','set-','doc.command.delete-endnote','headers','isNoop','Inject','suppressEndnotes','noteSettings','editOp','UNIVER_DOC','iterator','diffValue','prototype','docEnd','generateRandomId','setConfig','createSectionId','4182139UEjKcZ','retain','1.0.4','Tools','serialize','delete','replaceOp','drawings','exports','startIndex','_configService','@univerjs/docs','default','_config','referenceTextStyle','getInstance','pluginName','eachSect','noteId','length','ENDNOTE','@univerjs/core','TRADITIONAL','1hMGieg','body','DeleteDocumentEndnoteCommand','lists','ICommandService','string','doc.command.insert-footnote','Injector','sectionId','segmentId','createParagraphId','insert','UniverDocsPlugin','628821NFEJxQ'];_0x18e6=function(){return _0xdc6c35;};return _0x18e6();}
|
|
1
|
+
function _0x5460(){const _0x2a1789=['createSectionId','UniverProDocsReference','docEnd','doc.command.insert-footnote','rangeType','forEach','UniverDocsReferencePlugin','doc.command.set-endnote-settings','Tools','unitId','replaceOp','suppressEndnotes','properties','eachSect','sectionId','365548noZXfM','body','SetDocumentEndnoteSettingsCommand','includes','settings','get','footnote','eachPage','decorate','continuous','CustomRangeType','_configService','delete-','_commandService','doc.command.delete-endnote','TRADITIONAL','@univerjs-pro/license','InsertDocumentFootnoteCommand','beneathText','DependentOn','sectEnd','-settings','63TgjyXs','_config','lists','UniverProLicense','defineProperty','1738990DOoTcf','find','1832047QxAkwH','doc.command.set-footnote-settings','deepClone','startNumber','onStarting','FOOTNOTE','ENDNOTE','UNIVER_DOCS_REFERENCE_PLUGIN','toPrimitive','startIndex','Inject','endnote','IUniverInstanceService','getSnapshot','validateDocBodyStructure','createParagraphId','JSONX','4FgGhis','customMark','string','diffValue','sectionBreaks','getUnit','@univerjs/core','getOwnPropertyDescriptor','@univerjs/docs','iterator','disposeWithMe','registerCommand','segmentId','COMMAND','numberFormat','1.1.0','merge','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','constructor','removeOp','_injector','isInteger','insert-','30Djmmoj','287421rfjKCF','TextX','tableSource','referenceTextStyle','notes','UniverInstanceType','insertOp','ICommandService','noteId','UNIVER_DOC','function','findIndex','position','DocumentFlavor','getInstance','UniverLicensePlugin','drawings','CommandType','keys','delete','footers','exports','toStringTag','UniverCore','customRanges','boolean','SetDocumentFootnoteSettingsCommand','compose','insert','@univerjs-pro/docs-reference','object','generateRandomId','InsertDocumentEndnoteCommand','doc.command.insert-endnote','editOp','headers','serialize','10xLfVeg','restart','noteSettings','columnCount','104752ZyBKJa','set-','documentStyle','documentFlavor','syncExecuteCommand','DeleteDocumentFootnoteCommand','3860358seJnsz','3093277zSPCMZ','symbol','length','type','RichTextEditingMutation','retain','UniverDocsPlugin','noteProperties'];_0x5460=function(){return _0x2a1789;};return _0x5460();}function _0x5648(_0x39d009,_0x2bb904){_0x39d009=_0x39d009-0xab;const _0x5460a9=_0x5460();let _0x564841=_0x5460a9[_0x39d009];return _0x564841;}(function(_0x317df6,_0x1d785a){const _0x155ae9=_0x5648,_0x3a65b5=_0x317df6();while(!![]){try{const _0x3bdc71=parseInt(_0x155ae9(0x11a))/0x1+-parseInt(_0x155ae9(0xf8))/0x2*(-parseInt(_0x155ae9(0xd3))/0x3)+-parseInt(_0x155ae9(0xba))/0x4*(parseInt(_0x155ae9(0x135))/0x5)+-parseInt(_0x155ae9(0x102))/0x6+-parseInt(_0x155ae9(0x137))/0x7+parseInt(_0x155ae9(0xfc))/0x8*(-parseInt(_0x155ae9(0x130))/0x9)+-parseInt(_0x155ae9(0xd2))/0xa*(-parseInt(_0x155ae9(0x103))/0xb);if(_0x3bdc71===_0x1d785a)break;else _0x3a65b5['push'](_0x3a65b5['shift']());}catch(_0x3d6707){_0x3a65b5['push'](_0x3a65b5['shift']());}}}(_0x5460,0x53e52),function(_0x2856be,_0x43368d){const _0x271857=_0x5648;typeof exports=='object'&&typeof module<'u'?_0x43368d(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x271857(0xdd)&&define['amd']?define([_0x271857(0xe8),_0x271857(0xc0),_0x271857(0xc2),_0x271857(0x12a)],_0x43368d):(_0x2856be=typeof globalThis<'u'?globalThis:_0x2856be||self,_0x43368d(_0x2856be[_0x271857(0x10c)]={},_0x2856be[_0x271857(0xea)],_0x2856be['UniverDocs'],_0x2856be[_0x271857(0x133)]));}(this,function(_0x215267,_0x3993c2,_0x36a3dc,_0x1798e2){const _0xc6846c=_0x5648;Object[_0xc6846c(0x134)](_0x215267,Symbol[_0xc6846c(0xe9)],{'value':'Module'});function _0x54f1ba(_0x222069,_0x55a43e,_0x363f86){const _0x5604d3=_0xc6846c;if(_0x222069[_0x5604d3(0xdf)]!=null&&!(_0x55a43e===_0x5604d3(0x120)?['pageBottom',_0x5604d3(0x12c)]:[_0x5604d3(0x10d),_0x5604d3(0x12e)])[_0x5604d3(0x11d)](_0x222069[_0x5604d3(0xdf)])||_0x222069[_0x5604d3(0xf9)]!=null&&!(_0x55a43e===_0x5604d3(0x120)?[_0x5604d3(0x123),_0x5604d3(0x118),_0x5604d3(0x121)]:[_0x5604d3(0x123),_0x5604d3(0x118)])[_0x5604d3(0x11d)](_0x222069[_0x5604d3(0xf9)])||_0x222069['startNumber']!=null&&(!Number['isInteger'](_0x222069[_0x5604d3(0xac)])||_0x222069['startNumber']<0x1)||_0x5604d3(0xfb)in _0x222069&&_0x222069[_0x5604d3(0xfb)]!=null&&(_0x55a43e!==_0x5604d3(0x120)||!Number['isInteger'](_0x222069['columnCount'])||_0x222069[_0x5604d3(0xfb)]<0x0||_0x222069['columnCount']>0x4)||_0x222069[_0x5604d3(0xc8)]!=null&&(typeof _0x222069[_0x5604d3(0xc8)]!=_0x5604d3(0xbc)||_0x222069['numberFormat']['length']===0x0))return!0x1;for(let _0x1a24e1 of[_0x222069['separator'],_0x222069['continuationSeparator'],_0x222069['continuationNotice']])if(_0x1a24e1!=null&&(_0x363f86!=null||(0x0,_0x3993c2[_0x5604d3(0xb7)])(_0x1a24e1)[_0x5604d3(0x105)]>0x0))return!0x1;return!0x0;}function _0x4b523e(_0x23e59d,_0x32e05b,_0x314ab7){const _0x4002eb=_0xc6846c;var _0x155cab,_0x462ac1;if(_0x32e05b[_0x4002eb(0x11e)]!=null&&!_0x54f1ba(_0x32e05b[_0x4002eb(0x11e)],_0x314ab7,_0x32e05b[_0x4002eb(0x119)]))return!0x1;let _0x327c58=((_0x155cab=_0x23e59d['body'])==null||(_0x155cab=_0x155cab[_0x4002eb(0xbe)])==null?void 0x0:_0x155cab[_0x4002eb(0xde)](_0x25f216=>_0x25f216['sectionId']===_0x32e05b[_0x4002eb(0x119)]))??-0x1;if(_0x32e05b['sectionId']!=null&&_0x327c58<0x0)return!0x1;let _0x49c0af=_0x32e05b['sectionId']==null?_0x23e59d[_0x4002eb(0xfa)]:(_0x462ac1=_0x23e59d['body'])==null||(_0x462ac1=_0x462ac1[_0x4002eb(0xbe)])==null?void 0x0:_0x462ac1[_0x327c58][_0x4002eb(0x10a)],_0x5f4244=_0x32e05b['settings']==null?void 0x0:_0x3993c2[_0x4002eb(0x113)][_0x4002eb(0xab)](_0x32e05b[_0x4002eb(0x11e)]),_0x8f5dfa=_0x32e05b[_0x4002eb(0x119)]==null?[_0x4002eb(0xfa)]:['body',_0x4002eb(0xbe),_0x327c58,_0x4002eb(0x10a)],_0xa00dc6=_0x3993c2[_0x4002eb(0xb9)][_0x4002eb(0xe1)](),_0x3aae8f=null;if(_0x3993c2['Tools'][_0x4002eb(0xbd)](_0x49c0af==null?void 0x0:_0x49c0af[_0x314ab7],_0x5f4244)||(_0x3aae8f=_0x49c0af==null?_0xa00dc6[_0x4002eb(0xd9)](_0x8f5dfa,{[_0x314ab7]:_0x5f4244}):_0x32e05b[_0x4002eb(0x119)]!=null&&_0x5f4244==null&&Object[_0x4002eb(0xe5)](_0x49c0af)['every'](_0x2892d5=>_0x2892d5===_0x314ab7)?_0xa00dc6['removeOp'](_0x8f5dfa,_0x49c0af):_0xa00dc6[_0x4002eb(0x115)]([..._0x8f5dfa,_0x314ab7],_0x49c0af[_0x314ab7],_0x5f4244)),_0x32e05b[_0x4002eb(0x116)]!=null){var _0x59f32d;if(_0x314ab7!==_0x4002eb(0xb4)||_0x32e05b['sectionId']==null||typeof _0x32e05b[_0x4002eb(0x116)]!=_0x4002eb(0xec))return!0x1;let _0xd31bf5=(_0x59f32d=_0x23e59d['body'])==null||(_0x59f32d=_0x59f32d[_0x4002eb(0xbe)])==null?void 0x0:_0x59f32d[_0x327c58]['suppressEndnotes'];_0xd31bf5!==_0x32e05b[_0x4002eb(0x116)]&&(_0x3aae8f=_0x3993c2[_0x4002eb(0xb9)][_0x4002eb(0xee)](_0x3aae8f,_0xa00dc6[_0x4002eb(0x115)]([_0x4002eb(0x11b),'sectionBreaks',_0x327c58,_0x4002eb(0x116)],_0xd31bf5,_0x32e05b[_0x4002eb(0x116)])));}return _0x3aae8f;}function _0x5abd37(_0x24aac3,_0x3f7f18,_0x36aa11){const _0x28b611=_0xc6846c;if(!_0x3f7f18)return!0x1;let _0x2c3b8a=_0x24aac3[_0x28b611(0x11f)](_0x3993c2[_0x28b611(0xb5)])['getUnit'](_0x3f7f18[_0x28b611(0x114)],_0x3993c2[_0x28b611(0xd8)][_0x28b611(0xdc)]),_0x30ca26=_0x2c3b8a==null?void 0x0:_0x2c3b8a['getSnapshot']();if(!_0x30ca26||_0x30ca26[_0x28b611(0xfe)][_0x28b611(0xff)]!==_0x3993c2[_0x28b611(0xe0)][_0x28b611(0x129)])return!0x1;let _0x47adbc=_0x4b523e(_0x30ca26,_0x3f7f18,_0x36aa11);return _0x47adbc===!0x1||_0x3993c2[_0x28b611(0xb9)]['isNoop'](_0x47adbc)?!0x1:!!_0x24aac3[_0x28b611(0x11f)](_0x3993c2[_0x28b611(0xda)])['syncExecuteCommand'](_0x36a3dc[_0x28b611(0x107)]['id'],{'unitId':_0x3f7f18['unitId'],'segmentId':'','historyAction':_0x28b611(0xfd)+_0x36aa11+_0x28b611(0x12f),'actions':_0x47adbc,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x5d19a9={'id':_0xc6846c(0x138),'type':_0x3993c2[_0xc6846c(0xe4)]['COMMAND'],'handler':(_0x82e0c,_0x213d48)=>_0x5abd37(_0x82e0c,_0x213d48,_0xc6846c(0x120))},_0xff17c8={'id':_0xc6846c(0x112),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x330490,_0x4e52c2)=>_0x5abd37(_0x330490,_0x4e52c2,_0xc6846c(0xb4))};function _0x4ec6fe(_0x1b3989,_0x119fd3){const _0x57284b=_0xc6846c;return(_0x1b3989==null?void 0x0:_0x1b3989[_0x57284b(0xfe)][_0x57284b(0xff)])===_0x3993c2[_0x57284b(0xe0)]['TRADITIONAL']&&!!_0x1b3989['body']&&Number[_0x57284b(0xd0)](_0x119fd3)&&_0x119fd3>=0x0&&_0x119fd3<_0x1b3989[_0x57284b(0x11b)]['dataStream'][_0x57284b(0x105)]-0x1;}function _0xf46bc7(_0x19c373,_0x50884e,_0x29b144){const _0xb104ac=_0xc6846c;var _0xa1f716,_0x48f656;if(_0x50884e['settings']===void 0x0&&_0x50884e[_0xb104ac(0x116)]===void 0x0)return null;let _0x342dbc=_0x50884e[_0xb104ac(0x119)]==null?(_0xa1f716=_0x19c373[_0xb104ac(0xfa)])==null?void 0x0:_0xa1f716[_0x29b144]:(_0x48f656=_0x19c373[_0xb104ac(0x11b)])==null||(_0x48f656=_0x48f656[_0xb104ac(0xbe)])==null||(_0x48f656=_0x48f656[_0xb104ac(0x136)](_0x2c2443=>_0x2c2443['sectionId']===_0x50884e['sectionId']))==null||(_0x48f656=_0x48f656[_0xb104ac(0x10a)])==null?void 0x0:_0x48f656[_0x29b144];return _0x4b523e(_0x19c373,{'settings':_0x50884e[_0xb104ac(0x11e)]===void 0x0?_0x342dbc??null:_0x50884e[_0xb104ac(0x11e)],'sectionId':_0x50884e[_0xb104ac(0x119)],'suppressEndnotes':_0x50884e['suppressEndnotes']},_0x29b144);}function _0x2bdd6d(_0x4238ef,_0x11a207,_0x29e2c1){const _0x1d0bb6=_0xc6846c;var _0x3027b7,_0x40aa20,_0x522123;if(!_0x11a207||_0x11a207[_0x1d0bb6(0xc6)])return!0x1;let _0x135153=_0x4238ef[_0x1d0bb6(0x11f)](_0x3993c2[_0x1d0bb6(0xb5)])[_0x1d0bb6(0xbf)](_0x11a207[_0x1d0bb6(0x114)],_0x3993c2[_0x1d0bb6(0xd8)][_0x1d0bb6(0xdc)]),_0x12bca0=_0x135153==null?void 0x0:_0x135153[_0x1d0bb6(0xb6)](),{offset:_0x30bd5a}=_0x11a207;if(!_0x4ec6fe(_0x12bca0,_0x30bd5a))return!0x1;let _0x2f600c=_0xf46bc7(_0x12bca0,_0x11a207,_0x29e2c1);if(_0x2f600c===!0x1)return!0x1;let _0x4a3e17=_0x11a207[_0x1d0bb6(0xdb)]??(0x0,_0x3993c2[_0x1d0bb6(0xf2)])(0xc);if((_0x3027b7=_0x12bca0[_0x1d0bb6(0xd7)])!=null&&_0x3027b7[_0x4a3e17]||(_0x40aa20=_0x12bca0[_0x1d0bb6(0xf6)])!=null&&_0x40aa20[_0x4a3e17]||(_0x522123=_0x12bca0[_0x1d0bb6(0xe7)])!=null&&_0x522123[_0x4a3e17])return!0x1;let _0x448264=_0x3993c2[_0x1d0bb6(0x113)][_0x1d0bb6(0xab)]({'type':_0x29e2c1,'noteId':_0x4a3e17,'body':_0x11a207[_0x1d0bb6(0x11b)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x3993c2[_0x1d0bb6(0xb8)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x3993c2[_0x1d0bb6(0x10b)])(new Set()),'startIndex':0x1}]},'customMark':_0x11a207[_0x1d0bb6(0xbb)],'referenceTextStyle':_0x11a207[_0x1d0bb6(0xd6)],'tableSource':_0x11a207[_0x1d0bb6(0xd5)],'drawings':_0x11a207[_0x1d0bb6(0xe3)],'drawingsOrder':_0x11a207['drawingsOrder'],'lists':_0x11a207[_0x1d0bb6(0x132)]});if((0x0,_0x3993c2['validateDocumentStructure'])({'notes':{[_0x4a3e17]:_0x448264}})[_0x1d0bb6(0x105)]>0x0)return!0x1;let _0x3b51f9=new _0x3993c2[(_0x1d0bb6(0xd4))]();_0x30bd5a>0x0&&_0x3b51f9[_0x1d0bb6(0x108)](_0x30bd5a),_0x3b51f9[_0x1d0bb6(0xef)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x29e2c1===_0x1d0bb6(0x120)?_0x3993c2[_0x1d0bb6(0x124)]['FOOTNOTE']:_0x3993c2[_0x1d0bb6(0x124)]['ENDNOTE'],'rangeId':(0x0,_0x3993c2[_0x1d0bb6(0xf2)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4a3e17}}]});let _0x15e44d=_0x3993c2[_0x1d0bb6(0xb9)]['getInstance'](),_0x517347=_0x12bca0[_0x1d0bb6(0xd7)]==null?_0x15e44d[_0x1d0bb6(0xd9)](['notes'],{[_0x4a3e17]:_0x448264}):_0x15e44d[_0x1d0bb6(0xd9)]([_0x1d0bb6(0xd7),_0x4a3e17],_0x448264);return!!_0x4238ef[_0x1d0bb6(0x11f)](_0x3993c2[_0x1d0bb6(0xda)])[_0x1d0bb6(0x100)](_0x36a3dc[_0x1d0bb6(0x107)]['id'],{'unitId':_0x11a207[_0x1d0bb6(0x114)],'segmentId':'','historyAction':_0x1d0bb6(0xd1)+_0x29e2c1,'actions':_0x3993c2[_0x1d0bb6(0xb9)][_0x1d0bb6(0xee)](_0x3993c2[_0x1d0bb6(0xb9)][_0x1d0bb6(0xee)](_0x2f600c,_0x517347),_0x15e44d[_0x1d0bb6(0xf5)](_0x3b51f9[_0x1d0bb6(0xf7)](),[_0x1d0bb6(0x11b)])),'textRanges':[{'segmentId':_0x4a3e17,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x2e0a25(_0x253acb,_0x926295,_0x1dab6c){const _0xfa0a26=_0xc6846c;var _0x5d3ab0,_0x39facc;if(!_0x926295)return!0x1;let _0x4c9aec=_0x253acb[_0xfa0a26(0x11f)](_0x3993c2['IUniverInstanceService'])[_0xfa0a26(0xbf)](_0x926295[_0xfa0a26(0x114)],_0x3993c2['UniverInstanceType']['UNIVER_DOC']),_0xbd8a84=_0x4c9aec==null?void 0x0:_0x4c9aec[_0xfa0a26(0xb6)](),_0x79c866=_0xbd8a84==null||(_0x5d3ab0=_0xbd8a84[_0xfa0a26(0xd7)])==null?void 0x0:_0x5d3ab0[_0x926295[_0xfa0a26(0xdb)]],_0x47b2e9=_0xbd8a84==null||(_0x39facc=_0xbd8a84[_0xfa0a26(0x11b)])==null||(_0x39facc=_0x39facc[_0xfa0a26(0xeb)])==null?void 0x0:_0x39facc[_0xfa0a26(0x136)](_0x56174a=>{const _0xa7d3ad=_0xfa0a26;var _0x49a79f;return(_0x56174a[_0xa7d3ad(0x10f)]===_0x3993c2[_0xa7d3ad(0x124)][_0xa7d3ad(0xae)]||_0x56174a[_0xa7d3ad(0x10f)]===_0x3993c2['CustomRangeType'][_0xa7d3ad(0xaf)])&&((_0x49a79f=_0x56174a[_0xa7d3ad(0x117)])==null?void 0x0:_0x49a79f[_0xa7d3ad(0xdb)])===_0x926295['noteId'];});if(!_0xbd8a84||_0xbd8a84['documentStyle'][_0xfa0a26(0xff)]!==_0x3993c2[_0xfa0a26(0xe0)][_0xfa0a26(0x129)]||!_0x79c866||_0x79c866[_0xfa0a26(0x106)]!==_0x1dab6c||!_0x47b2e9)return!0x1;let _0x5372e1=new _0x3993c2[(_0xfa0a26(0xd4))]();_0x47b2e9['startIndex']>0x0&&_0x5372e1[_0xfa0a26(0x108)](_0x47b2e9[_0xfa0a26(0xb2)]),_0x5372e1[_0xfa0a26(0xe6)](0x1);let _0x531d5d=_0x3993c2[_0xfa0a26(0xb9)]['getInstance']();return!!_0x253acb[_0xfa0a26(0x11f)](_0x3993c2[_0xfa0a26(0xda)])[_0xfa0a26(0x100)](_0x36a3dc['RichTextEditingMutation']['id'],{'unitId':_0x926295[_0xfa0a26(0x114)],'segmentId':'','historyAction':_0xfa0a26(0x126)+_0x1dab6c,'actions':_0x3993c2[_0xfa0a26(0xb9)]['compose'](_0x531d5d[_0xfa0a26(0xf5)](_0x5372e1['serialize'](),[_0xfa0a26(0x11b)]),_0x531d5d[_0xfa0a26(0xce)]([_0xfa0a26(0xd7),_0x926295[_0xfa0a26(0xdb)]],_0x79c866)),'textRanges':[{'startOffset':_0x47b2e9[_0xfa0a26(0xb2)],'endOffset':_0x47b2e9[_0xfa0a26(0xb2)],'collapsed':!0x0}],'debounce':!0x1});}let _0x34e78c={'id':_0xc6846c(0x10e),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x2c9c85,_0x2cabd8)=>_0x2bdd6d(_0x2c9c85,_0x2cabd8,_0xc6846c(0x120))},_0x1b8118={'id':'doc.command.delete-footnote','type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x17d588,_0x3adb21)=>_0x2e0a25(_0x17d588,_0x3adb21,'footnote')},_0x5ccb16={'id':_0xc6846c(0xf4),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0xb6516,_0x327cd6)=>_0x2bdd6d(_0xb6516,_0x327cd6,_0xc6846c(0xb4))},_0x59c260={'id':_0xc6846c(0x128),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x17704f,_0xc7833c)=>_0x2e0a25(_0x17704f,_0xc7833c,'endnote')};var _0x2db123=_0xc6846c(0xf0),_0x5d4741=_0xc6846c(0xc9);let _0x29e3e6={};function _0xd1c73f(_0x172d1c,_0x29b262){return function(_0x1f27d4,_0x4e28b2){_0x29b262(_0x1f27d4,_0x4e28b2,_0x172d1c);};}function _0x4fe0dc(_0x56cd37,_0x66f492,_0x2e12a0,_0x544a7e){const _0x29ca0c=_0xc6846c;var _0x16b5ed=arguments[_0x29ca0c(0x105)],_0x1a80f3=_0x16b5ed<0x3?_0x66f492:_0x544a7e===null?_0x544a7e=Object[_0x29ca0c(0xc1)](_0x66f492,_0x2e12a0):_0x544a7e,_0x3f8dc8;if(typeof Reflect==_0x29ca0c(0xf1)&&typeof Reflect[_0x29ca0c(0x122)]==_0x29ca0c(0xdd))_0x1a80f3=Reflect[_0x29ca0c(0x122)](_0x56cd37,_0x66f492,_0x2e12a0,_0x544a7e);else{for(var _0x3ae3a0=_0x56cd37[_0x29ca0c(0x105)]-0x1;_0x3ae3a0>=0x0;_0x3ae3a0--)(_0x3f8dc8=_0x56cd37[_0x3ae3a0])&&(_0x1a80f3=(_0x16b5ed<0x3?_0x3f8dc8(_0x1a80f3):_0x16b5ed>0x3?_0x3f8dc8(_0x66f492,_0x2e12a0,_0x1a80f3):_0x3f8dc8(_0x66f492,_0x2e12a0))||_0x1a80f3);}return _0x16b5ed>0x3&&_0x1a80f3&&Object[_0x29ca0c(0x134)](_0x66f492,_0x2e12a0,_0x1a80f3),_0x1a80f3;}function _0x57a35c(_0x51d68b){'@babel/helpers - typeof';const _0x13671d=_0xc6846c;return _0x57a35c=typeof Symbol==_0x13671d(0xdd)&&typeof Symbol[_0x13671d(0xc3)]==_0x13671d(0x104)?function(_0x1ccfcf){return typeof _0x1ccfcf;}:function(_0x2f8594){const _0x24829e=_0x13671d;return _0x2f8594&&typeof Symbol==_0x24829e(0xdd)&&_0x2f8594[_0x24829e(0xcd)]===Symbol&&_0x2f8594!==Symbol['prototype']?_0x24829e(0x104):typeof _0x2f8594;},_0x57a35c(_0x51d68b);}function _0x1c4a05(_0x3d75fe,_0x4d725c){const _0x58891c=_0xc6846c;if(_0x57a35c(_0x3d75fe)!=_0x58891c(0xf1)||!_0x3d75fe)return _0x3d75fe;var _0xa54fb=_0x3d75fe[Symbol[_0x58891c(0xb1)]];if(_0xa54fb!==void 0x0){var _0x44ea6b=_0xa54fb['call'](_0x3d75fe,_0x4d725c||'default');if(_0x57a35c(_0x44ea6b)!=_0x58891c(0xf1))return _0x44ea6b;throw TypeError(_0x58891c(0xcc));}return(_0x4d725c===_0x58891c(0xbc)?String:Number)(_0x3d75fe);}function _0x52c22d(_0x139415){const _0x5e60e8=_0xc6846c;var _0x527be0=_0x1c4a05(_0x139415,_0x5e60e8(0xbc));return _0x57a35c(_0x527be0)==_0x5e60e8(0x104)?_0x527be0:_0x527be0+'';}function _0x547f05(_0x15a2be,_0x500390,_0x10d04a){const _0x4f5de5=_0xc6846c;return(_0x500390=_0x52c22d(_0x500390))in _0x15a2be?Object[_0x4f5de5(0x134)](_0x15a2be,_0x500390,{'value':_0x10d04a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15a2be[_0x500390]=_0x10d04a,_0x15a2be;}let _0x3c900d=class extends _0x3993c2['Plugin']{constructor(_0x40d905=_0x29e3e6,_0x5aa390,_0x33ef3e,_0xc0e8c1){const _0x5b37b4=_0xc6846c;super(),this[_0x5b37b4(0x131)]=_0x40d905,this[_0x5b37b4(0xcf)]=_0x5aa390,this['_configService']=_0x33ef3e,this['_commandService']=_0xc0e8c1;let {..._0x2788c8}=(0x0,_0x3993c2[_0x5b37b4(0xca)])({},_0x29e3e6,this['_config']);this[_0x5b37b4(0x125)]['setConfig']('docs-reference.config',_0x2788c8);}[_0xc6846c(0xad)](){const _0x53a37a=_0xc6846c;[_0x34e78c,_0x1b8118,_0x5d19a9,_0x5ccb16,_0x59c260,_0xff17c8][_0x53a37a(0x110)](_0x21f8c8=>this[_0x53a37a(0xc4)](this[_0x53a37a(0x127)][_0x53a37a(0xc5)](_0x21f8c8)));}};_0x547f05(_0x3c900d,'pluginName',_0xc6846c(0xb0)),_0x547f05(_0x3c900d,'packageName',_0x2db123),_0x547f05(_0x3c900d,'version',_0x5d4741),_0x547f05(_0x3c900d,_0xc6846c(0x106),_0x3993c2[_0xc6846c(0xd8)]['UNIVER_DOC']),_0x3c900d=_0x4fe0dc([(0x0,_0x3993c2[_0xc6846c(0x12d)])(_0x1798e2[_0xc6846c(0xe2)],_0x36a3dc[_0xc6846c(0x109)]),_0xd1c73f(0x1,(0x0,_0x3993c2[_0xc6846c(0xb3)])(_0x3993c2['Injector'])),_0xd1c73f(0x2,_0x3993c2[_0xc6846c(0xcb)]),_0xd1c73f(0x3,_0x3993c2[_0xc6846c(0xda)])],_0x3c900d),_0x215267['DeleteDocumentEndnoteCommand']=_0x59c260,_0x215267[_0xc6846c(0x101)]=_0x1b8118,_0x215267[_0xc6846c(0xf3)]=_0x5ccb16,_0x215267[_0xc6846c(0x12b)]=_0x34e78c,_0x215267[_0xc6846c(0x11c)]=_0xff17c8,_0x215267[_0xc6846c(0xed)]=_0x5d19a9,Object[_0xc6846c(0x134)](_0x215267,_0xc6846c(0x111),{'enumerable':!0x0,'get':function(){return _0x3c900d;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-reference",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Document references commands and Facade integration.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"lib"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@univerjs-pro/license": "1.0
|
|
63
|
-
"@univerjs/core": "1.0
|
|
64
|
-
"@univerjs/docs": "1.0
|
|
62
|
+
"@univerjs-pro/license": "1.1.0",
|
|
63
|
+
"@univerjs/core": "1.1.0",
|
|
64
|
+
"@univerjs/docs": "1.1.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.0
|
|
68
|
-
"@univerjs/engine-render": "1.0
|
|
67
|
+
"@univerjs-infra/shared": "1.1.0",
|
|
68
|
+
"@univerjs/engine-render": "1.1.0",
|
|
69
69
|
"rxjs": "7.8.2",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
|
-
"vitest": "^5.0.
|
|
71
|
+
"vitest": "^5.0.4"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"test": "vitest run",
|