@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
24 lines • 3.3 kB
JavaScript
/*
* 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 _0x5a110e=_0x1213;(function(_0x175397,_0x8181f6){const _0x2810c2=_0x1213,_0x4a085c=_0x175397();while(!![]){try{const _0x58efc3=-parseInt(_0x2810c2(0x9f))/0x1+-parseInt(_0x2810c2(0x9a))/0x2*(-parseInt(_0x2810c2(0x9d))/0x3)+parseInt(_0x2810c2(0x9b))/0x4*(-parseInt(_0x2810c2(0x91))/0x5)+parseInt(_0x2810c2(0x94))/0x6+parseInt(_0x2810c2(0x95))/0x7+-parseInt(_0x2810c2(0x98))/0x8+-parseInt(_0x2810c2(0x9e))/0x9;if(_0x58efc3===_0x8181f6)break;else _0x4a085c['push'](_0x4a085c['shift']());}catch(_0x8ded0e){_0x4a085c['push'](_0x4a085c['shift']());}}}(_0x49c9,0x28b3a));import{ObservableMixin as _0x5488ef}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x16ce8b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5a3909}from'../utils/htmlparser.js';function _0x1213(_0x4d556e,_0x234ddc){const _0x49c934=_0x49c9();return _0x1213=function(_0x121399,_0x362e1d){_0x121399=_0x121399-0x91;let _0x58d61a=_0x49c934[_0x121399];return _0x58d61a;},_0x1213(_0x4d556e,_0x234ddc);}function _0x49c9(){const _0x9978=['<dummy>','1152824lqWiOW','parse','47132AxUKil','20RlqKLo','parseAndNormalizeHTML','39Tafeuv','1198674uZfeHC','290281KizFno','</dummy>','_parseHTML','convertMarkdownToHTML','42485frJRfv','replace','children','1045272vjxGaU','2073393FmHsTT','_m2html'];_0x49c9=function(){return _0x9978;};return _0x49c9();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
_0x5488ef(){[_0x5a110e(0x96)];constructor(){const _0x4c3a1d=_0x5a110e;super(),this[_0x4c3a1d(0x96)]=new _0x16ce8b();}[_0x5a110e(0xa2)](_0x484528){const _0x39f6b6=_0x5a110e,_0x2285e4=this[_0x39f6b6(0x96)][_0x39f6b6(0x99)](_0x484528);return this[_0x39f6b6(0x9c)](_0x2285e4);}[_0x5a110e(0x9c)](_0x24119d){const _0x4fb81e=_0x5a110e;return this[_0x4fb81e(0xa1)](_0x24119d);}[_0x5a110e(0xa1)](_0x22a446){const _0xa87c51=_0x5a110e,_0x400e4e=_0x22a446[_0xa87c51(0x92)](/^\t+/gm,'\x20')[_0xa87c51(0x92)](/\n*/g,'')[_0xa87c51(0x92)](/\s+/g,'\x20')[_0xa87c51(0x92)](/<[^>]*?$/g,''),_0x424223=_0x5a3909(_0xa87c51(0x97)+_0x400e4e+_0xa87c51(0xa0));return _0x424223[_0xa87c51(0x93)]=_0x424223[_0xa87c51(0x93)][0x0][_0xa87c51(0x93)],_0x424223;}}