@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20260110.0 → 0.0.0-nightly-20260111.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/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x9e0efc,_0x4b3097){const _0x137a3e=_0x5892,_0x25f3a7=_0x9e0efc();while(!![]){try{const _0x1fa98f=parseInt(_0x137a3e(0x209))/0x1+parseInt(_0x137a3e(0x1f8))/0x2+parseInt(_0x137a3e(0x224))/0x3+parseInt(_0x137a3e(0x217))/0x4*(parseInt(_0x137a3e(0x21f))/0x5)+parseInt(_0x137a3e(0x20f))/0x6+parseInt(_0x137a3e(0x20b))/0x7+-parseInt(_0x137a3e(0x1f0))/0x8*(parseInt(_0x137a3e(0x214))/0x9);if(_0x1fa98f===_0x4b3097)break;else _0x25f3a7['push'](_0x25f3a7['shift']());}catch(_0x20260d){_0x25f3a7['push'](_0x25f3a7['shift']());}}}(_0x5cd5,0x774b1));export function normalizeDescription(_0x363adb){const _0x1e38df=_0x5892;return Array[_0x1e38df(0x207)](_0x363adb)||(_0x363adb=[_0x363adb]),_0x363adb[_0x1e38df(0x202)](_0x43838b=>{const _0x1c700b=_0x1e38df,_0xfb432a=_0x43838b[_0x1c700b(0x21a)][_0x1c700b(0x20a)](/\*/g,''),_0x313049=_0x43838b[_0x1c700b(0x1f3)]?_0x1c700b(0x20d)+_0x43838b[_0x1c700b(0x1f3)][_0x1c700b(0x1fb)]+']':'';return'['+_0x43838b[_0x1c700b(0x1fe)]+']\x20'+_0xfb432a+_0x313049;})[_0x1e38df(0x1ff)](';\x20');}export function renderDescription(_0x3b27f2,_0x586533){const _0x4534d4=_0x5892;let _0x24b18b='';return _0x24b18b+=_0x3b27f2[_0x4534d4(0x210)]('*')[_0x4534d4(0x202)]((_0x386f69,_0x134a30)=>_0x134a30%0x2!=0x0?_0x4534d4(0x203)+cn(_0x386f69)+_0x4534d4(0x201):cn(_0x386f69))[_0x4534d4(0x1ff)](''),_0x586533&&(_0x24b18b+=_0x4534d4(0x1fc)+_0x586533[_0x4534d4(0x1fb)]+_0x4534d4(0x218)+_0x586533[_0x4534d4(0x222)]+_0x4534d4(0x1fd)),_0x24b18b;}function _0x5892(_0x298a64,_0x216c96){const _0x5cd53b=_0x5cd5();return _0x5892=function(_0x589239,_0x2c3383){_0x589239=_0x589239-0x1ef;let _0xdc9291=_0x5cd53b[_0x589239];return _0xdc9291;},_0x5892(_0x298a64,_0x216c96);}function cn(_0x1d5000){const _0x2d2a2d=_0x5892,_0x54dda2=document[_0x2d2a2d(0x21c)](_0x2d2a2d(0x21b));return _0x54dda2[_0x2d2a2d(0x206)]=_0x1d5000,_0x54dda2[_0x2d2a2d(0x1f6)];}export function sortSuggestions(_0x501d6f){const _0x3e2412=_0x5892;return _0x501d6f[_0x3e2412(0x204)]((_0xf6dac3,_0x36f7a)=>_0x3e2412(0x200)===_0xf6dac3[_0x3e2412(0x1fe)]&&_0x3e2412(0x200)!==_0x36f7a[_0x3e2412(0x1fe)]?-0x1:_0x3e2412(0x200)!==_0xf6dac3[_0x3e2412(0x1fe)]&&_0x3e2412(0x200)===_0x36f7a[_0x3e2412(0x1fe)]?0x1:_0x3e2412(0x205)==_0xf6dac3[_0x3e2412(0x1fe)]&&_0x3e2412(0x205)!=_0x36f7a[_0x3e2412(0x1fe)]?-0x1:_0x3e2412(0x205)!=_0xf6dac3[_0x3e2412(0x1fe)]&&_0x3e2412(0x205)==_0x36f7a[_0x3e2412(0x1fe)]?0x1:0x0);}export function getSelectedSuggestions(_0x45dff8,_0x1a9e9){const _0x3337be=_0x5892,_0x3450c1=Array[_0x3337be(0x1f2)](_0x45dff8[_0x3337be(0x219)]()),_0x5871f4=new Set();for(const _0xdc0806 of _0x1a9e9)if(_0xdc0806[_0x3337be(0x1f5)]){for(const _0x224133 of _0x3450c1)for(const _0x43cd14 of _0xdc0806[_0x3337be(0x219)]())(_0x224133[_0x3337be(0x212)](_0x43cd14)||_0x45dff8[_0x3337be(0x213)]&&!_0xdc0806[_0x3337be(0x211)]&&_0xdc0806[_0x3337be(0x20c)]&&_0x43cd14[_0x3337be(0x223)][_0x3337be(0x216)](_0x224133[_0x3337be(0x1fa)]))&&_0x5871f4[_0x3337be(0x221)](_0xdc0806);}return _0x5871f4;}export function getRangesOfBlockGroups(_0xaffffa,_0x49ec87){const _0x34edbf=_0x5892;let _0x4c2b51,_0x289931=0x0;const _0x1efe9c=[],_0x134b4d=_0x49ec87[_0x34edbf(0x20e)];for(;_0x289931<_0xaffffa[_0x34edbf(0x21e)];){const _0x8df87d=_0xaffffa[_0x289931],_0x4590f9=_0xaffffa[_0x289931+0x1];_0x4c2b51||(_0x4c2b51=_0x49ec87[_0x34edbf(0x220)](_0x8df87d)),un(_0x49ec87,_0x8df87d,_0x4590f9)||(_0x1efe9c[_0x34edbf(0x208)](_0x49ec87[_0x34edbf(0x21d)](_0x4c2b51,_0x134b4d[_0x34edbf(0x1ef)](_0x8df87d)?_0x49ec87[_0x34edbf(0x1f7)](_0x8df87d):_0x49ec87[_0x34edbf(0x1f1)](_0x8df87d,_0x34edbf(0x223)))),_0x4c2b51=null),_0x289931++;}return _0x1efe9c;}function un(_0x17c825,_0x1f8648,_0x6ae0ba){const _0x1a06fa=_0x5892;if(!_0x6ae0ba)return!0x1;const _0x39f574=_0x17c825[_0x1a06fa(0x1f7)](_0x1f8648),_0x227ea2=_0x17c825[_0x1a06fa(0x220)](_0x6ae0ba);return _0x39f574[_0x1a06fa(0x216)](_0x227ea2);}function _0x5cd5(){const _0x4ff1a=['value','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','\x22></span>','type','join','attribute','</span>','map','<span\x20class=\x22ck-suggestion-type\x22>','sort','deletion','innerText','isArray','push','274190JYJOhG','replace','5776897osePSE','next','\x20[color\x20','schema','2281098hfQonu','split','isMultiRange','isIntersecting','isCollapsed','794754LTPkCq','execute','isTouching','46956fnniFJ','\x22\x20title=\x22','getRanges','content','span','createElement','createRange','length','65AHqnHo','createPositionBefore','add','title','end','2552787RxQQTu','isObject','208aDZUEu','createPositionAt','from','color','change','isInContent','innerHTML','createPositionAfter','602802OOGhWZ','splice','start'];_0x5cd5=function(){return _0x4ff1a;};return _0x5cd5();}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x4e6e39,_0x5014d8,_0x3963a){const _0x3bfffb=_0x5892;for(;_0x3963a[_0x3bfffb(0x21e)];){const _0x40a47a=_0x3963a[_0x3bfffb(0x1f9)](0x0,0x64);_0x4e6e39[_0x3bfffb(0x1f4)](()=>{const _0x162d0b=_0x3bfffb;for(const _0x21fcfa of _0x40a47a)_0x21fcfa[_0x162d0b(0x1f5)]&&_0x5014d8[_0x162d0b(0x215)](_0x21fcfa['id']);});}}
|