UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 5.51 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0xb064e2=_0x5088;(function(_0x3cb48f,_0x3ecf09){const _0x2a73d9=_0x5088,_0x4894e9=_0x3cb48f();while(!![]){try{const _0x476577=-parseInt(_0x2a73d9(0x159))/0x1+-parseInt(_0x2a73d9(0x16d))/0x2*(-parseInt(_0x2a73d9(0x170))/0x3)+-parseInt(_0x2a73d9(0x173))/0x4+-parseInt(_0x2a73d9(0x160))/0x5+parseInt(_0x2a73d9(0x169))/0x6+parseInt(_0x2a73d9(0x16c))/0x7*(-parseInt(_0x2a73d9(0x15a))/0x8)+-parseInt(_0x2a73d9(0x164))/0x9*(-parseInt(_0x2a73d9(0x161))/0xa);if(_0x476577===_0x3ecf09)break;else _0x4894e9['push'](_0x4894e9['shift']());}catch(_0x128596){_0x4894e9['push'](_0x4894e9['shift']());}}}(_0x33ab,0x32ae3));function _0x33ab(){const _0x55995b=['239640qWhvtW','push','createAt','28lNekDX','284SZQwry','isEqual','path','3708NSrOGY','previousNode','document','1411576KAxmgK','firstChild','createFromPath','data','reverse','start','createBefore','63249NuQBJb','19288IeJSzH','length','parent','createAfter','forEach','slice','107850VXiAzr','40ZVTCdG','getContent','end','988857mNfeJs','nextNode','includes','lastChild','getNudgedToWordBoundary'];_0x33ab=function(){return _0x55995b;};return _0x33ab();}function _0x5088(_0xeb38aa,_0x53729d){const _0x33abd1=_0x33ab();return _0x5088=function(_0x50885f,_0x211adb){_0x50885f=_0x50885f-0x155;let _0x420061=_0x33abd1[_0x50885f];return _0x420061;},_0x5088(_0xeb38aa,_0x53729d);}import{DocumentPosition as _0x53c371}from'./documentposition.js';import{clone as _0x423c25,getParents as _0x54d66f,Document as _0x20f8fe,Text as _0x3e0bbb,isTag as _0x139586,isText as _0x3c416f,replaceElement as _0x56c0cb,removeElement as _0x1f77c7}from'./htmlparser.js';export class DocumentRange{[_0xb064e2(0x157)];[_0xb064e2(0x163)];constructor(_0x1c2817,_0xdc2fa0){const _0x26e45c=_0xb064e2;this[_0x26e45c(0x157)]=_0x1c2817,this[_0x26e45c(0x163)]=_0xdc2fa0;}[_0xb064e2(0x16e)](_0x1e595a){const _0x403481=_0xb064e2;return this==_0x1e595a||this[_0x403481(0x157)][_0x403481(0x16e)](_0x1e595a[_0x403481(0x157)])&&this[_0x403481(0x163)][_0x403481(0x16e)](_0x1e595a[_0x403481(0x163)]);}[_0xb064e2(0x168)](){const _0x3a6d4f=_0xb064e2;return new DocumentRange(this[_0x3a6d4f(0x157)][_0x3a6d4f(0x168)](_0x3a6d4f(0x157)),this[_0x3a6d4f(0x163)][_0x3a6d4f(0x168)](_0x3a6d4f(0x163)));}[_0xb064e2(0x162)](){const _0x25d53a=_0xb064e2,_0x234d03=_0x423c25(this[_0x25d53a(0x157)][_0x25d53a(0x172)]),_0x12cad0=_0x53c371[_0x25d53a(0x175)](_0x234d03,this[_0x25d53a(0x157)][_0x25d53a(0x16f)]),_0x2c96c3=_0x53c371[_0x25d53a(0x175)](_0x234d03,this[_0x25d53a(0x163)][_0x25d53a(0x16f)]);let _0x4acd24,_0x3ab887;if(_0x3c416f(_0x12cad0[_0x25d53a(0x15c)])){const _0x472ed9=_0x12cad0[_0x25d53a(0x16f)][_0x12cad0[_0x25d53a(0x16f)][_0x25d53a(0x15b)]-0x1],_0x37dae7=new _0x3e0bbb(_0x12cad0[_0x25d53a(0x15c)][_0x25d53a(0x155)][_0x25d53a(0x15f)](_0x472ed9));_0x56c0cb(_0x12cad0[_0x25d53a(0x15c)],_0x37dae7),_0x4acd24=_0x37dae7;}else _0x4acd24=_0x12cad0[_0x25d53a(0x165)];if(_0x3c416f(_0x2c96c3[_0x25d53a(0x15c)])){const _0x5098e6=_0x2c96c3[_0x25d53a(0x16f)][_0x2c96c3[_0x25d53a(0x16f)][_0x25d53a(0x15b)]-0x1],_0x23dfcc=new _0x3e0bbb(_0x2c96c3[_0x25d53a(0x15c)][_0x25d53a(0x155)][_0x25d53a(0x15f)](0x0,_0x5098e6));_0x56c0cb(_0x2c96c3[_0x25d53a(0x15c)],_0x23dfcc),_0x3ab887=_0x23dfcc;}else _0x3ab887=_0x2c96c3[_0x25d53a(0x171)];if(!(_0x4acd24&&_0x3ab887&&_0x234d03[_0x25d53a(0x174)]&&_0x234d03[_0x25d53a(0x167)]))return new _0x20f8fe([]);const _0x3f541f=_0x54d66f(_0x4acd24),_0xc74810=_0x54d66f(_0x3ab887),_0x40428d=[],_0x1c93b2=[];let _0x507325=_0x234d03[_0x25d53a(0x174)];for(;_0x507325&&_0x507325!==_0x4acd24;){let _0x25cf08;_0x3f541f[_0x25d53a(0x166)](_0x507325)||_0x40428d[_0x25d53a(0x16a)](_0x507325),_0x25cf08=_0x139586(_0x507325)?_0x53c371[_0x25d53a(0x16b)](_0x234d03,_0x507325,_0x25d53a(0x157)):_0x53c371[_0x25d53a(0x15d)](_0x234d03,_0x507325),_0x507325=_0x25cf08?_0x25cf08[_0x25d53a(0x165)]:null;}for(_0x507325=_0x234d03[_0x25d53a(0x167)];_0x507325&&_0x507325!==_0x3ab887;){let _0x2ed8d5;_0xc74810[_0x25d53a(0x166)](_0x507325)||_0x1c93b2[_0x25d53a(0x16a)](_0x507325),_0x2ed8d5=_0x139586(_0x507325)?_0x53c371[_0x25d53a(0x16b)](_0x234d03,_0x507325,_0x25d53a(0x163)):_0x53c371[_0x25d53a(0x158)](_0x234d03,_0x507325),_0x507325=_0x2ed8d5?_0x2ed8d5[_0x25d53a(0x171)]:null;}return _0x40428d[_0x25d53a(0x15e)](_0x19ec3e=>{_0x1f77c7(_0x19ec3e);}),_0x1c93b2[_0x25d53a(0x156)]()[_0x25d53a(0x15e)](_0x137d83=>{_0x1f77c7(_0x137d83);}),_0x234d03;}}