@ckeditor/ckeditor5-track-changes 47.7.2-alpha.0 → 47.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5f123a,_0x21c7f0){const _0x348b06=_0x4a07,_0x539e78=_0x5f123a();while(!![]){try{const _0x1710ef=parseInt(_0x348b06(0x1a8))/0x1*(-parseInt(_0x348b06(0x1a6))/0x2)+-parseInt(_0x348b06(0x18f))/0x3+parseInt(_0x348b06(0x186))/0x4*(parseInt(_0x348b06(0x1ac))/0x5)+-parseInt(_0x348b06(0x194))/0x6*(-parseInt(_0x348b06(0x196))/0x7)+parseInt(_0x348b06(0x1af))/0x8*(parseInt(_0x348b06(0x188))/0x9)+-parseInt(_0x348b06(0x19a))/0xa*(parseInt(_0x348b06(0x19e))/0xb)+parseInt(_0x348b06(0x1ab))/0xc*(parseInt(_0x348b06(0x18a))/0xd);if(_0x1710ef===_0x21c7f0)break;else _0x539e78['push'](_0x539e78['shift']());}catch(_0x309781){_0x539e78['push'](_0x539e78['shift']());}}}(_0x1389,0xd6324));export function normalizeDescription(_0x50fa32){const _0x1b4e70=_0x4a07;return Array[_0x1b4e70(0x18e)](_0x50fa32)||(_0x50fa32=[_0x50fa32]),_0x50fa32[_0x1b4e70(0x190)](_0x4539e2=>{const _0x809a36=_0x1b4e70,_0x391092=_0x4539e2[_0x809a36(0x179)][_0x809a36(0x1aa)](/\*/g,''),_0xd69171=_0x4539e2[_0x809a36(0x1ad)]?_0x809a36(0x1a3)+_0x4539e2[_0x809a36(0x1ad)][_0x809a36(0x199)]+']':'';return'['+_0x4539e2[_0x809a36(0x182)]+']\x20'+_0x391092+_0xd69171;})[_0x1b4e70(0x197)](';\x20');}export function renderDescription(_0x309a0d,_0x92e8bd){const _0x5f5766=_0x4a07;let _0x4e62f8='';return _0x4e62f8+=_0x309a0d[_0x5f5766(0x1a1)]('*')[_0x5f5766(0x190)]((_0x102234,_0x232e60)=>_0x232e60%0x2!=0x0?_0x5f5766(0x1a5)+on(_0x102234)+_0x5f5766(0x183):on(_0x102234))[_0x5f5766(0x197)](''),_0x92e8bd&&(_0x4e62f8+=_0x5f5766(0x177)+_0x92e8bd[_0x5f5766(0x199)]+_0x5f5766(0x189)+_0x92e8bd[_0x5f5766(0x18b)]+_0x5f5766(0x19d)),_0x4e62f8;}function on(_0x26d388){const _0x2ec8e0=_0x4a07,_0x51612a=document[_0x2ec8e0(0x1ae)](_0x2ec8e0(0x18c));return _0x51612a[_0x2ec8e0(0x198)]=_0x26d388,_0x51612a[_0x2ec8e0(0x1a7)];}export function sortSuggestions(_0x4decf2){const _0x5c44ee=_0x4a07;return _0x4decf2[_0x5c44ee(0x18d)]((_0x4f6d28,_0x4a7806)=>_0x5c44ee(0x1a2)===_0x4f6d28[_0x5c44ee(0x182)]&&_0x5c44ee(0x1a2)!==_0x4a7806[_0x5c44ee(0x182)]?-0x1:_0x5c44ee(0x1a2)!==_0x4f6d28[_0x5c44ee(0x182)]&&_0x5c44ee(0x1a2)===_0x4a7806[_0x5c44ee(0x182)]?0x1:_0x5c44ee(0x181)==_0x4f6d28[_0x5c44ee(0x182)]&&_0x5c44ee(0x181)!=_0x4a7806[_0x5c44ee(0x182)]?-0x1:_0x5c44ee(0x181)!=_0x4f6d28[_0x5c44ee(0x182)]&&_0x5c44ee(0x181)==_0x4a7806[_0x5c44ee(0x182)]?0x1:0x0);}function _0x1389(){const _0x234612=['136JAbzpf','start','5457708CsnHle','\x22\x20title=\x22','13TWhXSq','title','span','sort','isArray','236874YvjGqJ','map','execute','isCollapsed','createPositionAfter','24tbgiJs','change','1264914QUfhyF','join','innerText','value','2319570tFPMXf','getRanges','createPositionBefore','\x22></span>','44ybbXTd','push','schema','split','attribute','\x20[color\x20','isObject','<span\x20class=\x22ck-suggestion-type\x22>','459012uTchUP','innerHTML','5FBKbfT','from','replace','4167816XhNVNK','110105elXDqY','color','createElement','16IbcgVz','isMultiRange','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','isInContent','content','add','isIntersecting','isTouching','createRange','splice','createPositionAt','next','deletion','type','</span>','length','end'];_0x1389=function(){return _0x234612;};return _0x1389();}export function getSelectedSuggestions(_0x38fab5,_0x3cd6c2){const _0x2020c7=_0x4a07,_0x27f49c=Array[_0x2020c7(0x1a9)](_0x38fab5[_0x2020c7(0x19b)]()),_0x53f7e2=new Set();for(const _0x118982 of _0x3cd6c2)if(_0x118982[_0x2020c7(0x178)]){for(const _0x31c291 of _0x27f49c)for(const _0x16076a of _0x118982[_0x2020c7(0x19b)]())(_0x31c291[_0x2020c7(0x17b)](_0x16076a)||_0x38fab5[_0x2020c7(0x192)]&&!_0x118982[_0x2020c7(0x176)]&&_0x118982[_0x2020c7(0x180)]&&_0x16076a[_0x2020c7(0x185)][_0x2020c7(0x17c)](_0x31c291[_0x2020c7(0x187)]))&&_0x53f7e2[_0x2020c7(0x17a)](_0x118982);}return _0x53f7e2;}export function getRangesOfBlockGroups(_0x36aaf5,_0x45adbc){const _0x3c95f3=_0x4a07;let _0x146912,_0x3b88a4=0x0;const _0x44fbaf=[],_0x111c6c=_0x45adbc[_0x3c95f3(0x1a0)];for(;_0x3b88a4<_0x36aaf5[_0x3c95f3(0x184)];){const _0x48f0c=_0x36aaf5[_0x3b88a4],_0x57a3b3=_0x36aaf5[_0x3b88a4+0x1];_0x146912||(_0x146912=_0x45adbc[_0x3c95f3(0x19c)](_0x48f0c)),rn(_0x45adbc,_0x48f0c,_0x57a3b3)||(_0x44fbaf[_0x3c95f3(0x19f)](_0x45adbc[_0x3c95f3(0x17d)](_0x146912,_0x111c6c[_0x3c95f3(0x1a4)](_0x48f0c)?_0x45adbc[_0x3c95f3(0x193)](_0x48f0c):_0x45adbc[_0x3c95f3(0x17f)](_0x48f0c,_0x3c95f3(0x185)))),_0x146912=null),_0x3b88a4++;}return _0x44fbaf;}function rn(_0x59691f,_0x5882aa,_0x3ab0e8){const _0x2ef2c9=_0x4a07;if(!_0x3ab0e8)return!0x1;const _0x183385=_0x59691f[_0x2ef2c9(0x193)](_0x5882aa),_0x4e982d=_0x59691f[_0x2ef2c9(0x19c)](_0x3ab0e8);return _0x183385[_0x2ef2c9(0x17c)](_0x4e982d);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function _0x4a07(_0x3441a4,_0x17819a){const _0x13895a=_0x1389();return _0x4a07=function(_0x4a07be,_0x1d1cf9){_0x4a07be=_0x4a07be-0x176;let _0x101fb4=_0x13895a[_0x4a07be];return _0x101fb4;},_0x4a07(_0x3441a4,_0x17819a);}export function executeCommandForSuggestions(_0x29fa7c,_0x23150b,_0x35e91b){const _0x483a22=_0x4a07;for(;_0x35e91b[_0x483a22(0x184)];){const _0x5d7fd9=_0x35e91b[_0x483a22(0x17e)](0x0,0x64);_0x29fa7c[_0x483a22(0x195)](()=>{const _0x44e5a7=_0x483a22;for(const _0x566919 of _0x5d7fd9)_0x566919[_0x44e5a7(0x178)]&&_0x23150b[_0x44e5a7(0x191)](_0x566919['id']);});}}
|