@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.6
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/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x507a3e=_0x3033;(function(_0x59bd2c,_0x4e6333){const _0x219539=_0x3033,_0x5b4877=_0x59bd2c();while(!![]){try{const _0x191a19=parseInt(_0x219539(0xb7))/0x1+-parseInt(_0x219539(0xa1))/0x2+-parseInt(_0x219539(0x94))/0x3*(parseInt(_0x219539(0xbe))/0x4)+-parseInt(_0x219539(0xae))/0x5+-parseInt(_0x219539(0xa0))/0x6*(parseInt(_0x219539(0xc4))/0x7)+-parseInt(_0x219539(0xb8))/0x8*(parseInt(_0x219539(0xc1))/0x9)+parseInt(_0x219539(0xd3))/0xa;if(_0x191a19===_0x4e6333)break;else _0x5b4877['push'](_0x5b4877['shift']());}catch(_0x1b54b4){_0x5b4877['push'](_0x5b4877['shift']());}}}(_0x257a,0xb859f));import{CKEditorError as _0x964c65,EmitterMixin as _0x45105e,uid as _0x2888a3}from'ckeditor5/src/utils.js';function _0x3033(_0x5e44a,_0x38ee43){const _0x257a08=_0x257a();return _0x3033=function(_0x3033bf,_0xbb8680){_0x3033bf=_0x3033bf-0x8f;let _0x4a8127=_0x257a08[_0x3033bf];return _0x4a8127;},_0x3033(_0x5e44a,_0x38ee43);}import{AIReply as _0x4bade3,isIgnoredReplyType as _0x12f7f1,isValidReplyType as _0x51bda4,isReplyTitleType as _0x26150e,isSourceType as _0x1919b7}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x507a3e(0xcf),_0x507a3e(0x9b),_0x507a3e(0xba),_0x507a3e(0xb4),_0x507a3e(0xac),_0x507a3e(0xb3),_0x507a3e(0xd1),_0x507a3e(0xca),_0x507a3e(0xc9),_0x507a3e(0xc3),_0x507a3e(0x9a),_0x507a3e(0xb9),_0x507a3e(0xc7),_0x507a3e(0x90)];export class AIInteraction extends _0x45105e(){['id'];[_0x507a3e(0xad)]=[];[_0x507a3e(0x9f)];[_0x507a3e(0x91)];[_0x507a3e(0xb2)];[_0x507a3e(0xab)];[_0x507a3e(0xc6)];[_0x507a3e(0xc8)]=!0x1;[_0x507a3e(0xb6)]=!0x1;[_0x507a3e(0xce)];[_0x507a3e(0xcb)]=!0x1;[_0x507a3e(0x98)]=!0x1;constructor({connector:_0x11dc5e,editor:_0x1ef0d3}){const _0x59035c=_0x507a3e;super(),this['id']=_0x2888a3(),this[_0x59035c(0xc6)]=_0x11dc5e,this[_0x59035c(0xc8)]=!0x0,this[_0x59035c(0xce)]=_0x1ef0d3;}async[_0x507a3e(0x95)](){const _0xd0ce2=_0x507a3e;let _0x5cbfc5;const _0x19418b=[];this[_0xd0ce2(0xc8)]=!0x1;try{this[_0xd0ce2(0xab)]=await this[_0xd0ce2(0x92)](),this[_0xd0ce2(0xaf)](_0xd0ce2(0x9b),this);const _0x19de3e=await this[_0xd0ce2(0xab)][_0xd0ce2(0xbf)]();for await(const _0x5b834f of _0x19de3e){if(this[_0xd0ce2(0xc8)])return;if(_0xd0ce2(0x90)===_0x5b834f[_0xd0ce2(0x8f)])return void this[_0xd0ce2(0xaf)](_0xd0ce2(0x90),{'error':new _0x964c65(_0xd0ce2(0xa4),this)});if(_0xd0ce2(0xd2)!==_0x5b834f[_0xd0ce2(0x8f)]){if(_0xd0ce2(0xa9)!==_0x5b834f[_0xd0ce2(0x8f)]){if(_0x26150e(_0x5b834f[_0xd0ce2(0x8f)])&&this[_0xd0ce2(0xc9)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xc5)],!0x0),_0x1919b7(_0x5b834f[_0xd0ce2(0x8f)]))_0x19418b[_0xd0ce2(0x99)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xa8)]);else{if(_0x51bda4(_0x5b834f[_0xd0ce2(0x8f)])){if(_0x5b834f[_0xd0ce2(0x8f)]!==_0x5cbfc5){if(_0x5cbfc5=_0x5b834f[_0xd0ce2(0x8f)],_0xd0ce2(0xa6)===_0x5b834f[_0xd0ce2(0x8f)]){this[_0xd0ce2(0x98)]||(this[_0xd0ce2(0x98)]=!0x0,this[_0xd0ce2(0xaf)](_0xd0ce2(0xc3),this));continue;}if(_0xd0ce2(0x9e)===_0x5b834f[_0xd0ce2(0x8f)]){this[_0xd0ce2(0xcb)]||(this[_0xd0ce2(0xcb)]=!0x0,this[_0xd0ce2(0xaf)](_0xd0ce2(0xb9),this));continue;}this[_0xd0ce2(0xcb)]&&(this[_0xd0ce2(0xcb)]=!0x1,this[_0xd0ce2(0xaf)](_0xd0ce2(0xc7),this)),this[_0xd0ce2(0x98)]&&(this[_0xd0ce2(0x98)]=!0x1,this[_0xd0ce2(0xaf)](_0xd0ce2(0x9a),this)),this[_0xd0ce2(0x9f)]&&this[_0xd0ce2(0x9f)][_0xd0ce2(0xbb)](),this[_0xd0ce2(0x9f)]=this[_0xd0ce2(0xc2)]({'type':_0x5b834f[_0xd0ce2(0x8f)],'interactionId':this['id'],'id':_0x5b834f[_0xd0ce2(0x97)]?.['id']}),_0x19418b[_0xd0ce2(0x93)]>0x0&&_0xd0ce2(0xaa)===_0x5b834f[_0xd0ce2(0x8f)]&&(this[_0xd0ce2(0x9f)][_0xd0ce2(0xcc)]=_0x19418b[_0xd0ce2(0xd0)](0x0));}_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb1)]&&this[_0xd0ce2(0x9f)][_0xd0ce2(0x9c)](_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb1)]);}else _0x12f7f1(_0x5b834f[_0xd0ce2(0x8f)]);}}else this[_0xd0ce2(0xb2)]=_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0xb0)];}else this[_0xd0ce2(0x91)]=_0x5b834f[_0xd0ce2(0x97)][_0xd0ce2(0x91)];}}finally{this[_0xd0ce2(0xc8)]||(_0x19418b[_0xd0ce2(0x93)]>0x0&&(this[_0xd0ce2(0x9f)][_0xd0ce2(0xcc)]=_0x19418b[_0xd0ce2(0xd0)](0x0)),this[_0xd0ce2(0xc0)](),this[_0xd0ce2(0xaf)](_0xd0ce2(0xb4),this));}}[_0x507a3e(0xa7)](){const _0x4c04a6=_0x507a3e;this[_0x4c04a6(0xc8)]||(this[_0x4c04a6(0xc0)](),this[_0x4c04a6(0xaf)](_0x4c04a6(0xba),this));}[_0x507a3e(0x9d)](_0x1f152e){const _0x49e9ea=_0x507a3e;return this[_0x49e9ea(0xad)][_0x49e9ea(0xa2)](_0x167749=>_0x167749['id']===_0x1f152e);}[_0x507a3e(0xa3)](){const _0x2b54d8=_0x507a3e;this[_0x2b54d8(0xb6)]||(this[_0x2b54d8(0xa7)](),this[_0x2b54d8(0xad)][_0x2b54d8(0xa5)](_0x3a44d3=>_0x3a44d3[_0x2b54d8(0xa3)]()),this[_0x2b54d8(0xad)]=[],this[_0x2b54d8(0xb6)]=!0x0,this[_0x2b54d8(0xaf)](_0x2b54d8(0xac),this),this[_0x2b54d8(0xcd)]());}[_0x507a3e(0xc2)](_0x34f11f){const _0x2b85f4=_0x507a3e,_0x218507=new _0x4bade3({'editor':this[_0x2b85f4(0xce)],'documentContextContent':this[_0x2b85f4(0xbd)]()?.[_0x2b85f4(0xd4)],..._0x34f11f});return this[_0x2b85f4(0xad)][_0x2b85f4(0x99)](_0x218507),_0x218507[_0x2b85f4(0x96)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2b85f4(0xaf)](_0x2b85f4(0xb3),_0x218507),_0x218507;}[_0x507a3e(0xc9)](_0x4fed6c,_0x4c51db=!0x1){const _0x42d23c=_0x507a3e;this[_0x42d23c(0xaf)](_0x42d23c(0xc9),_0x4fed6c,_0x4c51db);}[_0x507a3e(0xc0)](){const _0x1ea918=_0x507a3e;this[_0x1ea918(0xc8)]=!0x0,this[_0x1ea918(0xab)]&&this[_0x1ea918(0xab)][_0x1ea918(0xb5)][_0x1ea918(0xbc)](),this[_0x1ea918(0x9f)]&&this[_0x1ea918(0x9f)][_0x1ea918(0xbb)](),this[_0x1ea918(0xab)]=this[_0x1ea918(0x9f)]=void 0x0;}}function _0x257a(){const _0x1dfd7a=['_isWebSearching','push','webSearchFinished','interactionStarted','appendContent','getReply','reasoning','currentReply','1254JmNWGT','1185316BcgdhR','find','destroy','ai-chat-interaction-error','forEach','web-search','stop','source','action-metadata','modification-delta','currentRequest','interactionDestroyed','replies','3763530oyujAT','fire','callId','textDelta','actionCallId','replyCreated','interactionFinished','abortController','isDestroyed','504991PIAOlE','5960696fvluTS','reasoningStarted','interactionStopped','done','abort','getDocumentContext','8HuTigZ','getStream','_finalizeInteraction','9oBQJIJ','createReply','webSearchStarted','21007yTqGpW','conversationTitle','connector','reasoningFinished','isStopped','setConversationTitle','replyChangeGroupStateUpdated','_isReasoning','sources','stopListening','editor','interactionCreated','splice','replyContentUpdated','message-metadata','30740000wCUPwJ','content','event','error','messageId','sendRequest','length','159342SRpnwn','start','delegate','data'];_0x257a=function(){return _0x1dfd7a;};return _0x257a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11b256=_0x36e3;(function(_0x478f55,_0x4c702c){const _0x46cc82=_0x36e3,_0x5d987d=_0x478f55();while(!![]){try{const _0x5be130=parseInt(_0x46cc82(0x1d4))/0x1*(-parseInt(_0x46cc82(0x1ce))/0x2)+-parseInt(_0x46cc82(0x1b6))/0x3+parseInt(_0x46cc82(0x1cc))/0x4*(parseInt(_0x46cc82(0x1ae))/0x5)+-parseInt(_0x46cc82(0x1b3))/0x6*(parseInt(_0x46cc82(0x1cb))/0x7)+-parseInt(_0x46cc82(0x1ac))/0x8*(parseInt(_0x46cc82(0x1c3))/0x9)+parseInt(_0x46cc82(0x1d6))/0xa*(parseInt(_0x46cc82(0x1ad))/0xb)+parseInt(_0x46cc82(0x1d3))/0xc*(parseInt(_0x46cc82(0x1cf))/0xd);if(_0x5be130===_0x4c702c)break;else _0x5d987d['push'](_0x5d987d['shift']());}catch(_0x2169d3){_0x5d987d['push'](_0x5d987d['shift']());}}}(_0x1fda,0x6262a));import{EmitterMixin as _0x5c2a56,logWarning as _0x2350b6,logError as _0x225787}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c50cf}from'../utils/common-translations.js';export class AIModels extends _0x5c2a56(){[_0x11b256(0x1b7)];[_0x11b256(0x1bd)];[_0x11b256(0x1c0)];[_0x11b256(0x1ab)];[_0x11b256(0x1c9)]=[];constructor({connector:_0x5ba045,availableModels:_0x16dd8a,defaultModelId:_0x4284b1,locale:_0x471d24}){const _0x29c766=_0x11b256;super(),this[_0x29c766(0x1b7)]=_0x5ba045,this[_0x29c766(0x1bd)]=_0x16dd8a,this[_0x29c766(0x1c0)]=_0x4284b1,this[_0x29c766(0x1ab)]=_0x471d24;}async[_0x11b256(0x1c7)](){const _0x1c2331=_0x11b256;if(!this[_0x1c2331(0x1c9)][_0x1c2331(0x1b9)])try{const _0x857c29=this[_0x1c2331(0x1ab)][_0x1c2331(0x1d2)]||'en',_0x7f60ae=this[_0x1c2331(0x1b7)][_0x1c2331(0x1c8)](_0x857c29),_0x5a51d6=await _0x7f60ae[_0x1c2331(0x1b0)]();this[_0x1c2331(0x1c9)]=_0x5a51d6[_0x1c2331(0x1be)][_0x1c2331(0x1c6)](_0x300d5b=>Be(_0x300d5b)?{..._0x300d5b,'name':_0x1c50cf(this[_0x1c2331(0x1ab)],_0x1c2331(0x1d0))}:_0x300d5b);}catch(_0x593744){throw _0x225787(_0x1c2331(0x1bf),{'error':_0x593744}),_0x593744;}return[...this[_0x1c2331(0x1c9)]];}async[_0x11b256(0x1b1)](){const _0x54775f=_0x11b256,_0xe70782=await this[_0x54775f(0x1c7)]();return this[_0x54775f(0x1d1)](_0xe70782,this[_0x54775f(0x1bd)]);}async[_0x11b256(0x1d7)](_0x12f8d7){const _0x31a7c5=_0x11b256,_0x4e7003=await this[_0x31a7c5(0x1c7)]();if(!_0x4e7003[_0x31a7c5(0x1b9)])return null;if(_0x12f8d7){const _0x4417ea=this[_0x31a7c5(0x1c2)](_0x4e7003,_0x12f8d7);if(_0x4417ea)return _0x4417ea;_0x2350b6(_0x31a7c5(0x1b2),{'modelId':_0x12f8d7,'fallBackModelId':this[_0x31a7c5(0x1c0)]});}return this[_0x31a7c5(0x1c4)]();}async[_0x11b256(0x1c4)](){const _0xed3bfb=_0x11b256,_0x1299b9=await this[_0xed3bfb(0x1b1)]();if(!_0x1299b9[_0xed3bfb(0x1b9)])return null;if(this[_0xed3bfb(0x1c0)]){const _0x23d274=this[_0xed3bfb(0x1c2)](_0x1299b9,this[_0xed3bfb(0x1c0)]);if(_0x23d274)return _0x23d274;_0x2350b6(_0xed3bfb(0x1d5),{'defaultModelId':this[_0xed3bfb(0x1c0)],'fallBackModelId':_0x1299b9[0x0]['id']});}return _0x1299b9[0x0];}async[_0x11b256(0x1b4)](_0x2c0cf4){const _0x13728e=_0x11b256;return(await this[_0x13728e(0x1b1)]())[_0x13728e(0x1bc)](_0x576604=>_0x576604[_0x13728e(0x1ba)]===_0x2c0cf4[_0x13728e(0x1ba)]&&_0x576604[_0x13728e(0x1c5)]===_0x2c0cf4[_0x13728e(0x1c5)]);}[_0x11b256(0x1d1)](_0x3c83ad,_0x407cc8){const _0x4b0a35=_0x11b256;let _0x31a844;if(_0x407cc8){_0x31a844=[];const _0x228373=_0x4b0a35(0x1c1)==typeof _0x407cc8?[_0x407cc8[_0x4b0a35(0x1bb)]()]:_0x407cc8[_0x4b0a35(0x1c6)](_0x2f675a=>_0x2f675a[_0x4b0a35(0x1bb)]());for(const _0x3fc09c of _0x228373)for(const _0x2b64e6 of _0x3c83ad)(_0x2b64e6['id'][_0x4b0a35(0x1bb)]()===_0x3fc09c||_0x2b64e6[_0x4b0a35(0x1ba)][_0x4b0a35(0x1bb)]()===_0x3fc09c||Be(_0x2b64e6)&&_0x4b0a35(0x1af)===_0x3fc09c||_0x2b64e6[_0x4b0a35(0x1c5)][_0x4b0a35(0x1bb)]()===_0x3fc09c||_0x2b64e6['id'][_0x4b0a35(0x1bb)]()[_0x4b0a35(0x1cd)](_0x3fc09c))&&_0x31a844[_0x4b0a35(0x1ca)](_0x2b64e6);}else _0x31a844=_0x3c83ad;return _0x31a844;}[_0x11b256(0x1c2)](_0x4e19ec,_0x2a9fa8){const _0x2ddef3=_0x11b256;return _0x4e19ec[_0x2ddef3(0x1b8)](_0x4e3b8=>Be(_0x4e3b8)&&_0x2ddef3(0x1af)===_0x2a9fa8?_0x4e3b8:_0x4e3b8['id']===_0x2a9fa8)||null;}}function _0x36e3(_0x37ada5,_0x4d0a1f){const _0x1fdaae=_0x1fda();return _0x36e3=function(_0x36e3e1,_0x207f1f){_0x36e3e1=_0x36e3e1-0x1ab;let _0x53c92a=_0x1fdaae[_0x36e3e1];return _0x53c92a;},_0x36e3(_0x37ada5,_0x4d0a1f);}function Be(_0x482301){const _0x4c71cc=_0x11b256;return _0x482301['id'][_0x4c71cc(0x1cd)](_0x4c71cc(0x1b5));}function _0x1fda(){const _0x38db9c=['4077EoInpm','ai-chat-default-model-id-unrecognized','124570qmOytY','getModel','_locale','255496Swrcjj','297TwvNPh','20kazoVq','auto','list','getAvailableModels','ai-chat-model-id-unrecognized','114eGtkzx','isAvailable','agent','524988Zlwtxk','_connector','find','length','name','toLocaleLowerCase','some','_availableModels','items','ai-models-unable-to-retrieve','_defaultModelId','string','_getModelById','99SwdySc','getDefault','provider','map','getAll','getModels','_modelList','push','290801QKhZmf','268936MPuxFj','startsWith','38QfKFRU','26QnLQPx','AI_MODEL_NAME_AUTO','_filterModels','uiLanguage','7144764TudbdC'];_0x1fda=function(){return _0x38db9c;};return _0x1fda();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x593493=_0x216a;(function(_0x22ad92,_0x4a8e5b){const _0x5e251c=_0x216a,_0x586e09=_0x22ad92();while(!![]){try{const _0x30b922=parseInt(_0x5e251c(0x1bb))/0x1*(-parseInt(_0x5e251c(0x1b4))/0x2)+-parseInt(_0x5e251c(0x1d4))/0x3*(parseInt(_0x5e251c(0x19f))/0x4)+parseInt(_0x5e251c(0x1dc))/0x5*(parseInt(_0x5e251c(0x1be))/0x6)+parseInt(_0x5e251c(0x1e5))/0x7+-parseInt(_0x5e251c(0x1ea))/0x8+-parseInt(_0x5e251c(0x1ca))/0x9*(parseInt(_0x5e251c(0x1c9))/0xa)+parseInt(_0x5e251c(0x1bf))/0xb*(parseInt(_0x5e251c(0x1cb))/0xc);if(_0x30b922===_0x4a8e5b)break;else _0x586e09['push'](_0x586e09['shift']());}catch(_0x3fb898){_0x586e09['push'](_0x586e09['shift']());}}}(_0x4f7c,0x51c92));import{CKEditorError as _0x1f2991,ObservableMixin as _0x522e51,uid as _0x36e269}from'ckeditor5/src/utils.js';import{Element as _0x316c3a,findAll as _0x10fc03,getAttribute as _0x350188,getParents as _0x514d4c,Document as _0x3753c9,parse as _0x51c887,Text as _0x29c142}from'../utils/htmlparser.js';import{AIResponseParser as _0x3a2ff9}from'../pipeline/airesponseparser.js';function _0x4f7c(){const _0x3245fa=['2779651guAixi','span','_getCachedContentParts','web-search','state','2572712oVSNAz','node','every','new','newNodeIds','cloneNode','values','_setCachedContentParts','nextSibling','data-unstable','content','includes','color:\x20#808080;\x20font-style:\x20italic','1287608hlzocv','removedNodeIds','changes','data-id','text-delta','splice','removed','ai-reply-get-content-parts-group-not-found','merge','find','stopListening','fire','parseAndNormalizeHTML','context','index','previousSibling','replyContentUpdated','reasoning','editor','appendContent','destroy','2IDDPbS','conversation-title','documentContextContent','withDiff','sources','areActionsDisabled','source','515640kDXfXQ','map','parsedContent','306VUEVuU','6815666QVPOeC','pending','replyChangeGroupStateUpdated','indexOf','convertMarkdownToHTML','setChangeGroupState','forEach','done','onContentChange','set','1548790uMCeuV','9odFAfs','24CtmBLr','ai-get-editor-from-context-no-editor','getContentParts','cachedSuggestionContentParts','filter','modifiedNodeIds','withoutDiff','unshift','AI_SUGGESTION_CONTENT_PART_REMOVED','3diHltx','push','isDone','type','updateChangeGroups','modification-delta','interactionId','aiResponseApplier','1245VXmwTX','changeGroups','parsedMergedContent','aiResponseParser','length','locale','change:content','_getDifferentChangeGroups','modified'];_0x4f7c=function(){return _0x3245fa;};return _0x4f7c();}import{AIResponseApplier as _0x519bc1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x62f285}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x414239}from'../utils/common-translations.js';import{cloneDeep as _0x44f0b5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x593493(0x1d9),_0x593493(0x1a3),_0x593493(0x1e8),_0x593493(0x1b0)];export const AI_REPLY_TYPES_IGNORED=[_0x593493(0x1b5)];export const AI_REPLY_TITLE_TYPE=_0x593493(0x1b5);export class AIReply extends _0x522e51(){['id'];[_0x593493(0x1da)];[_0x593493(0x1d7)];[_0x593493(0x1b8)]=[];[_0x593493(0x1bd)]=new _0x3753c9([]);[_0x593493(0x1de)]=new _0x3753c9([]);[_0x593493(0x1dd)]=[];[_0x593493(0x1b9)]=!0x1;[_0x593493(0x1b6)];[_0x593493(0x1df)];[_0x593493(0x1db)];[_0x593493(0x1b1)];[_0x593493(0x1ce)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x221d9a,content:_0x362e62='',isDone:_0x53d6d5=!0x1,interactionId:_0xa77fa3,areActionsDisabled:_0x4b07d0,documentContextContent:_0x45fa52,editor:_0x74d187,id:_0xbcdba6}){const _0x57febe=_0x593493;super(),this['id']=_0xbcdba6||_0x36e269(),this[_0x57febe(0x1da)]=_0xa77fa3,this[_0x57febe(0x1d7)]=_0x221d9a,this[_0x57febe(0x1b9)]=!!_0x4b07d0,this[_0x57febe(0x1b1)]=_0x74d187,this[_0x57febe(0x1df)]=new _0x3a2ff9(),this[_0x57febe(0x1db)]=new _0x519bc1(),this[_0x57febe(0x1b6)]=_0x51c887(_0x45fa52||''),this[_0x57febe(0x1c8)](_0x57febe(0x1d6),_0x53d6d5),this['on'](_0x57febe(0x1e2),()=>{const _0x27f38a=_0x57febe;this[_0x27f38a(0x1c7)]();}),this[_0x57febe(0x1c8)](_0x57febe(0x19c),_0x362e62);}[_0x593493(0x1b2)](_0x339226){const _0x762ec1=_0x593493;this[_0x762ec1(0x1c8)](_0x762ec1(0x19c),this[_0x762ec1(0x19c)]+_0x339226);}[_0x593493(0x1c6)](){const _0x21ca1f=_0x593493;this[_0x21ca1f(0x1d6)]||(this[_0x21ca1f(0x1c8)](_0x21ca1f(0x1d6),!0x0),this[_0x21ca1f(0x1c7)]());}[_0x593493(0x1b3)](){const _0x2cf336=_0x593493;this[_0x2cf336(0x1a9)]();}[_0x593493(0x1c4)](_0x4cb3e5,_0x56aa76){const _0x3db98f=_0x593493;this[_0x3db98f(0x1dd)][_0x4cb3e5][_0x3db98f(0x1e9)]=_0x56aa76,this[_0x3db98f(0x1aa)](_0x3db98f(0x1c1),{'reply':this,'index':_0x4cb3e5,'state':_0x56aa76});}[_0x593493(0x1cd)]({showDiff:_0x2c0d70,groupIndex:_0x29b6d3}){const _0x17b096=_0x593493;if(!this[_0x17b096(0x1b1)])throw new _0x1f2991(_0x17b096(0x1cc),null,{'aiReply':this});const _0x3f8302=this[_0x17b096(0x1e7)](_0x2c0d70,_0x29b6d3);if(_0x3f8302)return _0x3f8302;let _0x2fd6e2=[];if(void 0x0===_0x29b6d3)_0x2fd6e2=this[_0x17b096(0x1dd)];else{const _0x424a7f=this[_0x17b096(0x1dd)][_0x17b096(0x1a8)](({index:_0x451808})=>_0x451808===_0x29b6d3);if(!_0x424a7f)throw new _0x1f2991(_0x17b096(0x1a6),null,{'aiReply':this,'groupIndex':_0x29b6d3});_0x2fd6e2=[_0x424a7f];}const _0x2b262d=_0x62f285({'editor':this[_0x17b096(0x1b1)],'showDiff':_0x2c0d70,'changeGroups':_0x2fd6e2,'documentContextContent':this[_0x17b096(0x1b6)]});return this[_0x17b096(0x1f1)](_0x2c0d70,_0x2b262d),_0x2b262d;}[_0x593493(0x1e7)](_0xdbc3d0,_0x48013a){const _0x154fe1=_0x593493,_0x29abff=_0xdbc3d0?_0x154fe1(0x1b7):_0x154fe1(0x1d1);if(!this[_0x154fe1(0x1ce)][_0x29abff][_0x154fe1(0x1e0)])return null;const _0x436c7c=this[_0x154fe1(0x1ce)][_0x29abff];if(void 0x0===_0x48013a)return _0x44f0b5(_0x436c7c);{const _0x4b5e97=_0x436c7c[_0x154fe1(0x1a8)](({index:_0xe21fd5})=>_0xe21fd5===_0x48013a);if(_0x4b5e97)return[_0x44f0b5(_0x4b5e97)];}return null;}[_0x593493(0x1f1)](_0x174ce6,_0x40dbe2){const _0x43b0a5=_0x593493,_0xf913af=_0x174ce6?_0x43b0a5(0x1b7):_0x43b0a5(0x1d1);_0x40dbe2[_0x43b0a5(0x1c5)](_0x188593=>{const _0x578d2b=_0x43b0a5,_0x5ca1cd=this[_0x578d2b(0x1ce)][_0xf913af],_0x2bdb61=_0x5ca1cd[_0x578d2b(0x1a8)](({index:_0x34f130})=>_0x34f130===_0x188593[_0x578d2b(0x1ad)]);if(_0x2bdb61){const _0x5e37d0=_0x5ca1cd[_0x578d2b(0x1c2)](_0x2bdb61);_0x5ca1cd[_0x578d2b(0x1a4)](_0x5e37d0,0x1,_0x188593);}else _0x5ca1cd[_0x578d2b(0x1d5)](_0x188593);});}[_0x593493(0x1c7)](){const _0x3872df=_0x593493;if(_0x3872df(0x1d9)===this[_0x3872df(0x1d7)]){this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1ab)](this[_0x3872df(0x19c)]);const _0x3b2b2d=this[_0x3872df(0x1dd)];this[_0x3872df(0x1d8)]();const _0x16d646=this[_0x3872df(0x1e3)](_0x3b2b2d,this[_0x3872df(0x1dd)]);(_0x16d646[_0x3872df(0x1e0)]||this[_0x3872df(0x1d6)])&&(this[_0x3872df(0x1aa)](_0x3872df(0x1af),this,_0x16d646),this[_0x3872df(0x1ce)][_0x3872df(0x1b7)][_0x3872df(0x1e0)]=this[_0x3872df(0x1ce)][_0x3872df(0x1d1)][_0x3872df(0x1e0)]=0x0);}else this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1c3)](this[_0x3872df(0x19c)]),this[_0x3872df(0x1aa)](_0x3872df(0x1af),this);}[_0x593493(0x1e3)](_0x40c25f,_0xc337e7){const _0x385a2c=_0x593493,_0x10cfd7=[];for(const _0x224a1e of _0xc337e7){const _0x2b996d=_0x40c25f[_0x224a1e[_0x385a2c(0x1ad)]];_0x2b996d?_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]!==_0x224a1e[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]?_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e):_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1c5)]((_0x49c3a9,_0x55fbb2)=>{const _0x107da8=_0x385a2c,_0xec1622=_0x224a1e[_0x107da8(0x1a1)][_0x55fbb2];_0x49c3a9['id']!==_0xec1622['id']&&_0x10cfd7[_0x107da8(0x1d5)](_0x224a1e);}):_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e);}return _0x10cfd7;}[_0x593493(0x1d8)](){const _0x1d588a=_0x593493,_0x10253b=new _0x316c3a('p',{},[new _0x316c3a(_0x1d588a(0x1e6),{'style':_0x1d588a(0x19e)},[new _0x29c142(_0x414239(this[_0x1d588a(0x1b1)][_0x1d588a(0x1e1)],_0x1d588a(0x1d3)))])]),_0x54d8e2=this[_0x1d588a(0x1db)][_0x1d588a(0x1a7)](this[_0x1d588a(0x1bd)],this[_0x1d588a(0x1b6)][_0x1d588a(0x1ef)](!0x0),{'markUnstableElements':!this[_0x1d588a(0x1d6)],'replaceRemovedWith':_0x10253b,'cutAfterLastChange':!this[_0x1d588a(0x1d6)]});if(!_0x54d8e2[_0x1d588a(0x1d0)][_0x1d588a(0x1e0)]&&!this[_0x1d588a(0x1d6)])return;this[_0x1d588a(0x1de)]=_0x54d8e2[_0x1d588a(0x1bd)];let _0x45caa1=[];if(_0x10fc03(_0x54982a=>{const _0x1d8c80=_0x1d588a,_0x3ca72a=_0x350188(_0x54982a,_0x1d8c80(0x1a2));if(!_0x3ca72a||!_0x21a51a(_0x3ca72a))return!0x1;const _0x41197e=[_0x54982a,..._0x514d4c(_0x54982a)]['at'](-0x2);if(_0x54982a!=_0x41197e){const _0x95e03f=_0x350188(_0x41197e,_0x1d8c80(0x1a2));_0x21a51a(_0x95e03f)||(_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x41197e,'id':_0x95e03f,'type':_0x1d8c80(0x1e4)}),_0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x1d5)](_0x95e03f));}else _0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1e4),'id':_0x3ca72a}):_0x54d8e2[_0x1d8c80(0x1ee)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1ed),'id':_0x3ca72a,'anchorId':_0x350188(_0x54982a[_0x1d8c80(0x1ae)],_0x1d8c80(0x1a2))}):_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1a5),'id':_0x3ca72a});return!0x0;},this[_0x1d588a(0x1de)]),_0x45caa1=_0x45caa1[_0x1d588a(0x1cf)](({node:_0x1348a7})=>[..._0x514d4c(_0x1348a7),_0x1348a7][_0x1d588a(0x1ec)](_0x1c8a26=>!_0x350188(_0x1c8a26,_0x1d588a(0x19b)))),0x0==_0x45caa1[_0x1d588a(0x1e0)])return;const _0x5ad8e1=[[_0x45caa1[0x0]]];for(let _0x1cb294=0x1;_0x1cb294<_0x45caa1[_0x1d588a(0x1e0)];_0x1cb294++){const _0x9de08=_0x5ad8e1[_0x5ad8e1[_0x1d588a(0x1e0)]-0x1],_0xddc12=_0x9de08[_0x9de08[_0x1d588a(0x1e0)]-0x1];_0x45caa1[_0x1cb294][_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]==_0xddc12[_0x1d588a(0x1eb)]&&_0x1d588a(0x1e4)!=_0x45caa1[_0x1cb294][_0x1d588a(0x1d7)]&&_0x1d588a(0x1e4)!=_0xddc12[_0x1d588a(0x1d7)]?_0x9de08[_0x1d588a(0x1d5)](_0x45caa1[_0x1cb294]):_0x5ad8e1[_0x1d588a(0x1d5)]([_0x45caa1[_0x1cb294]]);}for(const _0x246721 of _0x5ad8e1){const _0x599533=_0x246721[0x0],_0x1dabb0=_0x246721[_0x246721[_0x1d588a(0x1e0)]-0x1],_0x917677=_0x923aac(_0x599533[_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]);_0x917677&&_0x246721[_0x1d588a(0x1d2)](_0x917677);const _0x42a338=_0x923aac(_0x1dabb0[_0x1d588a(0x1eb)][_0x1d588a(0x19a)]);_0x42a338&&_0x246721[_0x1d588a(0x1d5)](_0x42a338);}function _0x21a51a(_0x1aefe9){const _0x5145dc=_0x1d588a;return _0x54d8e2[_0x5145dc(0x1d0)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1ee)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1a0)][_0x5145dc(0x19d)](_0x1aefe9);}function _0x923aac(_0x2f0667){const _0x3e8bd6=_0x1d588a;if(_0x2f0667&&_0x350188(_0x2f0667,_0x3e8bd6(0x1a2))&&!_0x350188(_0x2f0667,_0x3e8bd6(0x19b))){const _0xb44fa4=_0x350188(_0x2f0667,_0x3e8bd6(0x1a2));if(!_0x21a51a(_0xb44fa4))return{'node':_0x2f0667,'type':_0x3e8bd6(0x1ac),'id':_0xb44fa4};}return null;}this[_0x1d588a(0x1dd)]=_0x5ad8e1[_0x1d588a(0x1bc)]((_0x2c1394,_0x2df253)=>({'changes':_0x2c1394,'state':_0x1d588a(0x1c0),'index':_0x2df253}));}}function _0x216a(_0x1df85c,_0x49cc84){const _0x4f7ca5=_0x4f7c();return _0x216a=function(_0x216a25,_0x19c05f){_0x216a25=_0x216a25-0x19a;let _0x3f094c=_0x4f7ca5[_0x216a25];return _0x3f094c;},_0x216a(_0x1df85c,_0x49cc84);}export function isValidReplyType(_0xe06df2){const _0x53c996=_0x593493;return Object[_0x53c996(0x1f0)](AI_REPLY_TYPES)[_0x53c996(0x19d)](_0xe06df2);}export function isIgnoredReplyType(_0x5255ec){const _0x4dd88e=_0x593493;return AI_REPLY_TYPES_IGNORED[_0x4dd88e(0x19d)](_0x5255ec);}export function isReplyTitleType(_0x1c5b82){return _0x1c5b82===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa74a4c){const _0x49bc2a=_0x593493;return _0x49bc2a(0x1ba)===_0xa74a4c;}
|
|
23
|
+
const _0x19ee2c=_0x1962;(function(_0x2d410b,_0x23b6a3){const _0x59e3e1=_0x1962,_0x109ba2=_0x2d410b();while(!![]){try{const _0x17cf62=parseInt(_0x59e3e1(0x1f9))/0x1*(parseInt(_0x59e3e1(0x1c3))/0x2)+-parseInt(_0x59e3e1(0x1e4))/0x3+parseInt(_0x59e3e1(0x1ea))/0x4*(-parseInt(_0x59e3e1(0x1dd))/0x5)+-parseInt(_0x59e3e1(0x1c5))/0x6*(-parseInt(_0x59e3e1(0x203))/0x7)+-parseInt(_0x59e3e1(0x1cb))/0x8+parseInt(_0x59e3e1(0x201))/0x9*(-parseInt(_0x59e3e1(0x1e1))/0xa)+parseInt(_0x59e3e1(0x1e6))/0xb*(parseInt(_0x59e3e1(0x1f6))/0xc);if(_0x17cf62===_0x23b6a3)break;else _0x109ba2['push'](_0x109ba2['shift']());}catch(_0x3ca128){_0x109ba2['push'](_0x109ba2['shift']());}}}(_0x3246,0x43b92));import{CKEditorError as _0x43738d,ObservableMixin as _0x405b94,uid as _0x30d951}from'ckeditor5/src/utils.js';import{Element as _0x1fae90,findAll as _0x3aa496,getAttribute as _0x11e672,getParents as _0x276fe8,Document as _0x32bc00,parse as _0x2933d1,Text as _0x325966}from'../utils/htmlparser.js';import{AIResponseParser as _0x31a9f1}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3856c5}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x33dc27}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xf160dc}from'../utils/common-translations.js';import{cloneDeep as _0x9fc937}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19ee2c(0x1d1),_0x19ee2c(0x1eb),_0x19ee2c(0x1ba),_0x19ee2c(0x1e0)];export const AI_REPLY_TYPES_IGNORED=[_0x19ee2c(0x1fa)];function _0x1962(_0x51267d,_0x5edcc3){const _0x324658=_0x3246();return _0x1962=function(_0x1962d5,_0x3ce7f1){_0x1962d5=_0x1962d5-0x1b9;let _0x28b2df=_0x324658[_0x1962d5];return _0x28b2df;},_0x1962(_0x51267d,_0x5edcc3);}export const AI_REPLY_TITLE_TYPE=_0x19ee2c(0x1fa);function _0x3246(){const _0x3657b6=['ai-get-editor-from-context-no-editor','replyChangeGroupStateUpdated','data-id','appendContent','filter','new','nextSibling','parsedMergedContent','removed','cloneNode','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','web-search','convertMarkdownToHTML','removedNodeIds','parsedContent','values','length','pending','context','unshift','34382ERmXSE','aiResponseParser','1110ePgzsL','destroy','onContentChange','modifiedNodeIds','splice','stopListening','4139312DgGENq','source','state','aiResponseApplier','locale','updateChangeGroups','modification-delta','_getDifferentChangeGroups','areActionsDisabled','replyContentUpdated','ai-reply-get-content-parts-group-not-found','getContentParts','previousSibling','fire','every','isDone','_setCachedContentParts','withDiff','693505tBTgdZ','sources','newNodeIds','reasoning','10XNHfjH','content','done','469158prUVjL','map','5087291qCkUfl','parseAndNormalizeHTML','includes','cachedSuggestionContentParts','12ahIVpm','text-delta','forEach','_getCachedContentParts','span','modified','change:content','indexOf','data-unstable','type','documentContextContent','withoutDiff','36MStnbn','setChangeGroupState','editor','12eOCPLJ','conversation-title','index','interactionId','find','changeGroups','node','color:\x20#808080;\x20font-style:\x20italic','2805507UzcqXN','changes','3227ZlrTug','push','set'];_0x3246=function(){return _0x3657b6;};return _0x3246();}export class AIReply extends _0x405b94(){['id'];[_0x19ee2c(0x1fc)];[_0x19ee2c(0x1f3)];[_0x19ee2c(0x1de)]=[];[_0x19ee2c(0x1bd)]=new _0x32bc00([]);[_0x19ee2c(0x20d)]=new _0x32bc00([]);[_0x19ee2c(0x1fe)]=[];[_0x19ee2c(0x1d3)]=!0x1;[_0x19ee2c(0x1f4)];[_0x19ee2c(0x1c4)];[_0x19ee2c(0x1ce)];[_0x19ee2c(0x1f8)];[_0x19ee2c(0x1e9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x281686,content:_0x184db4='',isDone:_0x560890=!0x1,interactionId:_0x127322,areActionsDisabled:_0x135983,documentContextContent:_0x1be38c,editor:_0x1a06c3,id:_0x510961}){const _0x2797c2=_0x19ee2c;super(),this['id']=_0x510961||_0x30d951(),this[_0x2797c2(0x1fc)]=_0x127322,this[_0x2797c2(0x1f3)]=_0x281686,this[_0x2797c2(0x1d3)]=!!_0x135983,this[_0x2797c2(0x1f8)]=_0x1a06c3,this[_0x2797c2(0x1c4)]=new _0x31a9f1(),this[_0x2797c2(0x1ce)]=new _0x3856c5(),this[_0x2797c2(0x1f4)]=_0x2933d1(_0x1be38c||''),this[_0x2797c2(0x205)](_0x2797c2(0x1da),_0x560890),this['on'](_0x2797c2(0x1f0),()=>{const _0xc4ffb=_0x2797c2;this[_0xc4ffb(0x1c7)]();}),this[_0x2797c2(0x205)](_0x2797c2(0x1e2),_0x184db4);}[_0x19ee2c(0x209)](_0x522efd){const _0x3e3283=_0x19ee2c;this[_0x3e3283(0x205)](_0x3e3283(0x1e2),this[_0x3e3283(0x1e2)]+_0x522efd);}[_0x19ee2c(0x1e3)](){const _0x529be6=_0x19ee2c;this[_0x529be6(0x1da)]||(this[_0x529be6(0x205)](_0x529be6(0x1da),!0x0),this[_0x529be6(0x1c7)]());}[_0x19ee2c(0x1c6)](){const _0x59ca16=_0x19ee2c;this[_0x59ca16(0x1ca)]();}[_0x19ee2c(0x1f7)](_0x52f7be,_0x499a96){const _0x41c73c=_0x19ee2c;this[_0x41c73c(0x1fe)][_0x52f7be][_0x41c73c(0x1cd)]=_0x499a96,this[_0x41c73c(0x1d8)](_0x41c73c(0x207),{'reply':this,'index':_0x52f7be,'state':_0x499a96});}[_0x19ee2c(0x1d6)]({showDiff:_0x4eb814,groupIndex:_0x3dae4b}){const _0x1506ec=_0x19ee2c;if(!this[_0x1506ec(0x1f8)])throw new _0x43738d(_0x1506ec(0x206),null,{'aiReply':this});const _0x59ad69=this[_0x1506ec(0x1ed)](_0x4eb814,_0x3dae4b);if(_0x59ad69)return _0x59ad69;let _0x4f6b45=[];if(void 0x0===_0x3dae4b)_0x4f6b45=this[_0x1506ec(0x1fe)];else{const _0x4da09f=this[_0x1506ec(0x1fe)][_0x1506ec(0x1fd)](({index:_0x576088})=>_0x576088===_0x3dae4b);if(!_0x4da09f)throw new _0x43738d(_0x1506ec(0x1d5),null,{'aiReply':this,'groupIndex':_0x3dae4b});_0x4f6b45=[_0x4da09f];}const _0x19c024=_0x33dc27({'editor':this[_0x1506ec(0x1f8)],'showDiff':_0x4eb814,'changeGroups':_0x4f6b45,'documentContextContent':this[_0x1506ec(0x1f4)]});return this[_0x1506ec(0x1db)](_0x4eb814,_0x19c024),_0x19c024;}[_0x19ee2c(0x1ed)](_0x54fecc,_0x2dea2e){const _0x122683=_0x19ee2c,_0x6fc963=_0x54fecc?_0x122683(0x1dc):_0x122683(0x1f5);if(!this[_0x122683(0x1e9)][_0x6fc963][_0x122683(0x1bf)])return null;const _0x4fdcf2=this[_0x122683(0x1e9)][_0x6fc963];if(void 0x0===_0x2dea2e)return _0x9fc937(_0x4fdcf2);{const _0x3426b4=_0x4fdcf2[_0x122683(0x1fd)](({index:_0x1ca6a8})=>_0x1ca6a8===_0x2dea2e);if(_0x3426b4)return[_0x9fc937(_0x3426b4)];}return null;}[_0x19ee2c(0x1db)](_0x1a0de5,_0x1e6e5c){const _0x596210=_0x19ee2c,_0x40fee5=_0x1a0de5?_0x596210(0x1dc):_0x596210(0x1f5);_0x1e6e5c[_0x596210(0x1ec)](_0x25fdc9=>{const _0x13c8a5=_0x596210,_0x366b0f=this[_0x13c8a5(0x1e9)][_0x40fee5],_0xc93d51=_0x366b0f[_0x13c8a5(0x1fd)](({index:_0x37c911})=>_0x37c911===_0x25fdc9[_0x13c8a5(0x1fb)]);if(_0xc93d51){const _0x7d7adc=_0x366b0f[_0x13c8a5(0x1f1)](_0xc93d51);_0x366b0f[_0x13c8a5(0x1c9)](_0x7d7adc,0x1,_0x25fdc9);}else _0x366b0f[_0x13c8a5(0x204)](_0x25fdc9);});}[_0x19ee2c(0x1c7)](){const _0x295985=_0x19ee2c;if(_0x295985(0x1d1)===this[_0x295985(0x1f3)]){this[_0x295985(0x1bd)]=this[_0x295985(0x1c4)][_0x295985(0x1e7)](this[_0x295985(0x1e2)]);const _0x348a12=this[_0x295985(0x1fe)];this[_0x295985(0x1d0)]();const _0x14ff27=this[_0x295985(0x1d2)](_0x348a12,this[_0x295985(0x1fe)]);(_0x14ff27[_0x295985(0x1bf)]||this[_0x295985(0x1da)])&&(this[_0x295985(0x1d8)](_0x295985(0x1d4),this,_0x14ff27),this[_0x295985(0x1e9)][_0x295985(0x1dc)][_0x295985(0x1bf)]=this[_0x295985(0x1e9)][_0x295985(0x1f5)][_0x295985(0x1bf)]=0x0);}else this[_0x295985(0x1bd)]=this[_0x295985(0x1c4)][_0x295985(0x1bb)](this[_0x295985(0x1e2)]),this[_0x295985(0x1d8)](_0x295985(0x1d4),this);}[_0x19ee2c(0x1d2)](_0x4ef1f7,_0x3b25b9){const _0x1a4c60=_0x19ee2c,_0x265e1e=[];for(const _0x206a2b of _0x3b25b9){const _0x324452=_0x4ef1f7[_0x206a2b[_0x1a4c60(0x1fb)]];_0x324452?_0x324452[_0x1a4c60(0x202)][_0x1a4c60(0x1bf)]!==_0x206a2b[_0x1a4c60(0x202)][_0x1a4c60(0x1bf)]?_0x265e1e[_0x1a4c60(0x204)](_0x206a2b):_0x324452[_0x1a4c60(0x202)][_0x1a4c60(0x1ec)]((_0x3a23ac,_0xf3c7b9)=>{const _0x2aeee0=_0x1a4c60,_0x113ed6=_0x206a2b[_0x2aeee0(0x202)][_0xf3c7b9];_0x3a23ac['id']!==_0x113ed6['id']&&_0x265e1e[_0x2aeee0(0x204)](_0x206a2b);}):_0x265e1e[_0x1a4c60(0x204)](_0x206a2b);}return _0x265e1e;}[_0x19ee2c(0x1d0)](){const _0x319f99=_0x19ee2c,_0x5f0a40=new _0x1fae90('p',{},[new _0x1fae90(_0x319f99(0x1ee),{'style':_0x319f99(0x200)},[new _0x325966(_0xf160dc(this[_0x319f99(0x1f8)][_0x319f99(0x1cf)],_0x319f99(0x210)))])]),_0x80e28a=this[_0x319f99(0x1ce)][_0x319f99(0x1b9)](this[_0x319f99(0x1bd)],this[_0x319f99(0x1f4)][_0x319f99(0x20f)](!0x0),{'markUnstableElements':!this[_0x319f99(0x1da)],'replaceRemovedWith':_0x5f0a40,'cutAfterLastChange':!this[_0x319f99(0x1da)]});if(!_0x80e28a[_0x319f99(0x1c8)][_0x319f99(0x1bf)]&&!this[_0x319f99(0x1da)])return;this[_0x319f99(0x20d)]=_0x80e28a[_0x319f99(0x1bd)];let _0x4181fc=[];if(_0x3aa496(_0x2cb60e=>{const _0x195fbc=_0x319f99,_0x52f319=_0x11e672(_0x2cb60e,_0x195fbc(0x208));if(!_0x52f319||!_0x12a269(_0x52f319))return!0x1;const _0x1c21a7=[_0x2cb60e,..._0x276fe8(_0x2cb60e)]['at'](-0x2);if(_0x2cb60e!=_0x1c21a7){const _0x7f9551=_0x11e672(_0x1c21a7,_0x195fbc(0x208));_0x12a269(_0x7f9551)||(_0x4181fc[_0x195fbc(0x204)]({'node':_0x1c21a7,'id':_0x7f9551,'type':_0x195fbc(0x1ef)}),_0x80e28a[_0x195fbc(0x1c8)][_0x195fbc(0x204)](_0x7f9551));}else _0x80e28a[_0x195fbc(0x1c8)][_0x195fbc(0x1e8)](_0x52f319)?_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x1ef),'id':_0x52f319}):_0x80e28a[_0x195fbc(0x1df)][_0x195fbc(0x1e8)](_0x52f319)?_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x20b),'id':_0x52f319,'anchorId':_0x11e672(_0x2cb60e[_0x195fbc(0x1d7)],_0x195fbc(0x208))}):_0x4181fc[_0x195fbc(0x204)]({'node':_0x2cb60e,'type':_0x195fbc(0x20e),'id':_0x52f319});return!0x0;},this[_0x319f99(0x20d)]),_0x4181fc=_0x4181fc[_0x319f99(0x20a)](({node:_0x4e793c})=>[..._0x276fe8(_0x4e793c),_0x4e793c][_0x319f99(0x1d9)](_0xd89fb7=>!_0x11e672(_0xd89fb7,_0x319f99(0x1f2)))),0x0==_0x4181fc[_0x319f99(0x1bf)])return;const _0x3ddc88=[[_0x4181fc[0x0]]];for(let _0x99d556=0x1;_0x99d556<_0x4181fc[_0x319f99(0x1bf)];_0x99d556++){const _0x36005c=_0x3ddc88[_0x3ddc88[_0x319f99(0x1bf)]-0x1],_0x268f75=_0x36005c[_0x36005c[_0x319f99(0x1bf)]-0x1];_0x4181fc[_0x99d556][_0x319f99(0x1ff)][_0x319f99(0x1d7)]==_0x268f75[_0x319f99(0x1ff)]&&_0x319f99(0x1ef)!=_0x4181fc[_0x99d556][_0x319f99(0x1f3)]&&_0x319f99(0x1ef)!=_0x268f75[_0x319f99(0x1f3)]?_0x36005c[_0x319f99(0x204)](_0x4181fc[_0x99d556]):_0x3ddc88[_0x319f99(0x204)]([_0x4181fc[_0x99d556]]);}for(const _0xe1c661 of _0x3ddc88){const _0x3e33e4=_0xe1c661[0x0],_0x310107=_0xe1c661[_0xe1c661[_0x319f99(0x1bf)]-0x1],_0x5b9054=_0x4c7b1b(_0x3e33e4[_0x319f99(0x1ff)][_0x319f99(0x1d7)]);_0x5b9054&&_0xe1c661[_0x319f99(0x1c2)](_0x5b9054);const _0x23b901=_0x4c7b1b(_0x310107[_0x319f99(0x1ff)][_0x319f99(0x20c)]);_0x23b901&&_0xe1c661[_0x319f99(0x204)](_0x23b901);}function _0x12a269(_0x263a36){const _0x5edb8b=_0x319f99;return _0x80e28a[_0x5edb8b(0x1c8)][_0x5edb8b(0x1e8)](_0x263a36)||_0x80e28a[_0x5edb8b(0x1df)][_0x5edb8b(0x1e8)](_0x263a36)||_0x80e28a[_0x5edb8b(0x1bc)][_0x5edb8b(0x1e8)](_0x263a36);}function _0x4c7b1b(_0xd67d53){const _0x5efb17=_0x319f99;if(_0xd67d53&&_0x11e672(_0xd67d53,_0x5efb17(0x208))&&!_0x11e672(_0xd67d53,_0x5efb17(0x1f2))){const _0x38f49e=_0x11e672(_0xd67d53,_0x5efb17(0x208));if(!_0x12a269(_0x38f49e))return{'node':_0xd67d53,'type':_0x5efb17(0x1c1),'id':_0x38f49e};}return null;}this[_0x319f99(0x1fe)]=_0x3ddc88[_0x319f99(0x1e5)]((_0x4d48ce,_0x4b97ee)=>({'changes':_0x4d48ce,'state':_0x319f99(0x1c0),'index':_0x4b97ee}));}}export function isValidReplyType(_0x28c49e){const _0x5c83de=_0x19ee2c;return Object[_0x5c83de(0x1be)](AI_REPLY_TYPES)[_0x5c83de(0x1e8)](_0x28c49e);}export function isIgnoredReplyType(_0x372fde){const _0x318474=_0x19ee2c;return AI_REPLY_TYPES_IGNORED[_0x318474(0x1e8)](_0x372fde);}export function isReplyTitleType(_0xd7affc){return _0xd7affc===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x253e07){const _0x4f16b2=_0x19ee2c;return _0x4f16b2(0x1cc)===_0x253e07;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x258ec0(){[_0x46e315(0xcf)];[_0x46e315(0xe3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x46e315(0xd2)]=new Set();constructor(_0x65303c){const _0x5bf4=_0x46e315;super(),this[_0x5bf4(0xcf)]=_0x65303c||_0x4c15dc;}[_0x46e315(0xa1)](_0x5414b9,_0x887038,_0x485b44){const _0x344975=_0x46e315,_0x126800=_0x4f1a86(_0x5414b9);if(0x0===_0x887038[_0x344975(0xd8)][_0x344975(0xce)]){const _0x5e3b6e=[];return _0x5cd323(_0x344975(0xd4),_0x344975(0xe4),_0x126800)[_0x344975(0xa9)](_0x597218=>{const _0x135690=_0x344975,_0x89594b=this[_0x135690(0xcf)]();_0x50f153(_0x597218,_0x135690(0xd4),_0x89594b),_0x5e3b6e[_0x135690(0xad)](_0x89594b);}),this[_0x344975(0xc5)](_0x126800),{'parsedContent':_0x126800,'newNodeIds':_0x5e3b6e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x485b44&&_0x485b44[_0x344975(0xb9)]&&this[_0x344975(0xc8)](_0x126800),this[_0x344975(0xe3)][_0x344975(0xca)]=[],this[_0x344975(0xe3)][_0x344975(0xba)]=[],this[_0x344975(0xe3)][_0x344975(0xd3)]=[],this[_0x344975(0xe3)][_0x344975(0xa2)]=[],this[_0x344975(0xe3)][_0x344975(0xb3)]=null,this[_0x344975(0xd2)]=new Set(_0x5cd323(_0x344975(0xd4),null,_0x887038)[_0x344975(0xd6)](_0x36869e=>_0x256857(_0x36869e,_0x344975(0xd4)))[_0x344975(0xde)](_0x194e93=>!!_0x194e93));let _0x3159c3=-0x1,_0x1d003d=!0x1;const _0x274f8b=_0x126800[_0x344975(0xd8)],_0xf5dab4=Array[_0x344975(0xbf)](_0x274f8b)[_0x344975(0xde)](_0x59b825=>!(0x3===_0x59b825[_0x344975(0xd7)]&&''===_0xacb80d(_0x59b825)[_0x344975(0xa5)]())),_0x423b20=_0xf5dab4[_0x344975(0xce)];for(let _0xc91eb=0x0;_0xc91eb<_0x423b20;_0xc91eb++){const _0x2836e3=_0xf5dab4[_0xc91eb],_0x5a4d39=_0xf5dab4[_0xc91eb+0x1];if(this[_0x344975(0xdb)](_0x2836e3)){if(-0x1===_0x3159c3&&(_0x3159c3=_0xc91eb),this[_0x344975(0xd5)](_0x2836e3),!this[_0x344975(0xdb)](_0x5a4d39)){const [_0x17b622,_0x3bb3ed]=this[_0x344975(0xda)](_0x2836e3,_0x1d003d,_0x887038);if(_0x17b622){const _0x6c2b78=Array[_0x344975(0xbf)](_0xf5dab4)[_0x344975(0xa0)](_0x3159c3,_0xc91eb+0x1);this[_0x344975(0xab)](_0x17b622,_0x6c2b78,_0x3bb3ed),_0x3159c3=-0x1;}}}else{if(this[_0x344975(0xd9)](_0x2836e3))_0x1d003d=!0x0;else{if(this[_0x344975(0xe0)](_0x2836e3)){const _0x32eec8=_0x256857(_0x2836e3,_0x344975(0xd4));if(_0x32eec8&&this[_0x344975(0xd2)][_0x344975(0xaa)](_0x32eec8)){const _0x384c72=_0xde5fce(_0x344975(0xd4),_0x32eec8,_0x887038);this[_0x344975(0xc6)](_0x384c72,_0x2836e3);}if(this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xb2)](_0x32eec8)){const _0x551b3a=this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xdd)](_0x32eec8);this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xd1)](_0x551b3a,0x1);}}else{if(this[_0x344975(0xb1)](_0x2836e3)){const _0xe9dbb4=_0x256857(_0x2836e3,_0x344975(0xd4));this[_0x344975(0xe3)][_0x344975(0xba)][_0x344975(0xb2)](_0xe9dbb4)||this[_0x344975(0xb4)](_0x2836e3);}}}}}for(const _0x500e70 of this[_0x344975(0xe3)][_0x344975(0xd3)]){const _0x49d14b=_0xde5fce(_0x344975(0xd4),_0x500e70,_0x887038);if(_0x49d14b){if(_0x485b44&&_0x485b44[_0x344975(0xe1)]){this[_0x344975(0xe3)][_0x344975(0xb3)]=_0x500e70;const _0x486abb=_0x485b44[_0x344975(0xe1)][_0x344975(0xac)](!0x0);_0x50f153(_0x486abb,_0x344975(0xd4),_0x500e70),_0x50f153(_0x486abb,_0x344975(0xcc),_0x344975(0xa8)),_0x53f494(_0x49d14b,_0x486abb);}else _0x323bdf(_0x49d14b);}}if(_0x5cd323(_0x344975(0xc4),null,_0x887038)[_0x344975(0xa9)](_0x56d34d=>{const _0x4e40a4=_0x344975,_0x2c9a3b=_0x256857(_0x56d34d,_0x4e40a4(0xc4)),_0x594b10=_0xde5fce(_0x4e40a4(0xd4),_0x2c9a3b,_0x887038);_0x594b10&&_0xea4c65(_0x594b10,_0x56d34d);}),_0x5cd323(_0x344975(0xd4),_0x344975(0xe4),_0x887038)[_0x344975(0xa9)](_0x12ec6d=>{const _0x4c3422=_0x344975,_0x150fe1=this[_0x4c3422(0x9d)](_0x12ec6d);_0x50f153(_0x12ec6d,_0x4c3422(0xd4),_0x150fe1),this[_0x4c3422(0xe3)][_0x4c3422(0xca)][_0x4c3422(0xad)](_0x150fe1);}),this[_0x344975(0xc5)](_0x887038),_0x485b44&&_0x485b44[_0x344975(0xb9)]&&this[_0x344975(0xc1)](_0x887038,_0x485b44[_0x344975(0xbb)]||0x0),_0x485b44&&_0x485b44[_0x344975(0xa7)]&&this[_0x344975(0xe3)][_0x344975(0xb3)]){let _0x5de5d0=_0xde5fce(_0x344975(0xd4),this[_0x344975(0xe3)][_0x344975(0xb3)],_0x887038);for(;_0x5de5d0;)_0x47346d(_0x5de5d0),_0x5de5d0=_0x5de5d0[_0x344975(0xb7)];}return{'parsedContent':_0x887038,'newNodeIds':this[_0x344975(0xe3)][_0x344975(0xca)],'modifiedNodeIds':this[_0x344975(0xe3)][_0x344975(0xba)],'removedNodeIds':this[_0x344975(0xe3)][_0x344975(0xd3)]};}[_0x46e315(0xab)](_0x429bf0,_0x4ed62d,_0x32073e){const _0x47272a=_0x46e315;for(const _0x406d5a of _0x4ed62d){const _0x16309e=this[_0x47272a(0x9d)](_0x406d5a);_0x50f153(_0x406d5a,_0x47272a(0xd4),_0x16309e),this[_0x47272a(0xe3)][_0x47272a(0xca)][_0x47272a(0xad)](_0x16309e),this[_0x47272a(0xe3)][_0x47272a(0xb3)]=_0x16309e;}const _0x2f9b70=_0x47272a(0xe2)===_0x32073e||_0x47272a(0xdf)===_0x32073e?_0x4ed62d[_0x47272a(0xb6)]():_0x4ed62d;for(const _0x588cd4 of _0x2f9b70)_0xd22dc5(_0x429bf0,_0x588cd4,_0x32073e);}[_0x46e315(0xc6)](_0x1cb315,_0x473f31){const _0x2a3187=_0x46e315;if(!_0x1cb315)return;if(_0x4b5d3b(_0x1cb315,_0x473f31))return;const _0x42b3a3=this[_0x2a3187(0x9d)](_0x1cb315);_0x50f153(_0x473f31,_0x2a3187(0xd4),_0x42b3a3),this[_0x2a3187(0xe3)][_0x2a3187(0xba)][_0x2a3187(0xad)](_0x42b3a3),this[_0x2a3187(0xe3)][_0x2a3187(0xb3)]=_0x42b3a3,_0x53f494(_0x1cb315,_0x473f31[_0x2a3187(0xac)](!0x0));}[_0x46e315(0xda)](_0x709b8d,_0x302edc,_0x3d3a32){const _0xa8a197=_0x46e315,_0x3c6a19=this[_0xa8a197(0xa6)](_0x709b8d,!0x1);if(_0x3c6a19){const _0x566dc4=this[_0xa8a197(0xa4)](_0x3c6a19),_0x3f2f55=_0xde5fce(_0xa8a197(0xd4),_0x566dc4,_0x3d3a32);if(_0x3f2f55)return[_0x3f2f55,_0xa8a197(0xdf)];this[_0xa8a197(0xe3)][_0xa8a197(0xa2)][_0xa8a197(0xad)](_0x566dc4);}const _0x38c84e=this[_0xa8a197(0xc7)](_0x709b8d,!0x1);if(_0x38c84e){const _0x4032df=this[_0xa8a197(0xa4)](_0x38c84e),_0x5af77a=_0xde5fce(_0xa8a197(0xd4),_0x4032df,_0x3d3a32);if(_0x5af77a)return[_0x5af77a,_0xa8a197(0x9b)];this[_0xa8a197(0xe3)][_0xa8a197(0xa2)][_0xa8a197(0xad)](_0x4032df);}return _0x302edc?_0x709b8d[_0xa8a197(0xb5)]?this[_0xa8a197(0xcd)](_0x709b8d,_0x3d3a32):[_0x3d3a32[_0xa8a197(0xd8)][_0x3d3a32[_0xa8a197(0xd8)][_0xa8a197(0xce)]-0x1],_0xa8a197(0xdf)]:[_0x3d3a32[_0xa8a197(0xd8)][0x0],_0xa8a197(0x9b)];}[_0x46e315(0xcd)](_0x1fc552,_0x3119c2){const _0x5bd545=_0x46e315,_0x10eb4f=[],_0x23ae09=this[_0x5bd545(0xa6)](_0x1fc552,!0x0);if(_0x23ae09){const _0x110db2=this[_0x5bd545(0xa4)](_0x23ae09),_0x5cb47e=_0xde5fce(_0x5bd545(0xd4),_0x110db2,_0x3119c2);_0x5cb47e&&_0x10eb4f[_0x5bd545(0xad)]([_0x5cb47e,_0x5bd545(0xdf)]);}const _0x2765e3=this[_0x5bd545(0xc7)](_0x1fc552,!0x0);if(_0x2765e3){const _0x5570a4=this[_0x5bd545(0xa4)](_0x2765e3),_0x5a57b9=_0xde5fce(_0x5bd545(0xd4),_0x5570a4,_0x3119c2);_0x5a57b9&&_0x10eb4f[_0x5bd545(0xad)]([_0x5a57b9,_0x5bd545(0x9b)]);}if(_0x10eb4f[_0x5bd545(0xce)]>0x1)return _0x3ea9e0(_0x10eb4f[0x0][0x0])<=_0x3ea9e0(_0x10eb4f[0x1][0x0])?_0x10eb4f[0x0]:_0x10eb4f[0x1];return 0x1===_0x10eb4f[_0x5bd545(0xce)]?_0x10eb4f[0x0]:[_0x3119c2[_0x5bd545(0x9e)],_0x5bd545(0xdf)];}[_0x46e315(0xc7)](_0x13db2b,_0xfbbf0e){const _0x142749=_0x46e315;let _0x174178=_0x13db2b[_0x142749(0xb5)],_0x2a410a=null,_0x298c43=!0x1;for(;_0x174178;){if(_0x22821a(_0x174178)){if(this[_0x142749(0xb1)](_0x174178)&&(_0x2a410a=_0x174178),this[_0x142749(0xd9)](_0x174178)&&_0xfbbf0e&&!_0x298c43){_0x298c43=!0x0,_0x174178=_0x174178[_0x142749(0xb5)];continue;}break;}const _0x630b85=_0x256857(_0x174178,_0x142749(0xd4));if(_0x630b85&&_0x142749(0xe4)!==_0x630b85&&this[_0x142749(0xd2)][_0x142749(0xaa)](_0x630b85)){_0x2a410a=_0x174178;break;}_0x174178=_0x174178[_0x142749(0xb5)];}return _0x2a410a;}[_0x46e315(0xa6)](_0x1af78d,_0x2d4fc1){const _0x5482aa=_0x46e315;let _0x248670=_0x1af78d[_0x5482aa(0xb8)],_0x24f0c1=null,_0x3b663d=!0x1;for(;_0x248670;){if(_0x22821a(_0x248670)){if(this[_0x5482aa(0xb1)](_0x248670)&&(_0x24f0c1=_0x248670),this[_0x5482aa(0xd9)](_0x248670)&&_0x2d4fc1&&!_0x3b663d){_0x3b663d=!0x0,_0x248670=_0x248670[_0x5482aa(0xb8)];continue;}break;}const _0x2f9ed2=_0x256857(_0x248670,_0x5482aa(0xd4));if(_0x2f9ed2&&_0x5482aa(0xe4)!==_0x2f9ed2&&this[_0x5482aa(0xd2)][_0x5482aa(0xaa)](_0x2f9ed2)){_0x24f0c1=_0x248670;break;}_0x248670=_0x248670[_0x5482aa(0xb8)];}return _0x24f0c1;}[_0x46e315(0xd5)](_0x46b16b){const _0x266500=_0x46e315;_0x454369(_0x46b16b)&&_0x5cd323(_0x266500(0xd4),null,_0x46b16b)[_0x266500(0xa9)](_0x3bf7ed=>{const _0x192a73=_0x266500;if(this[_0x192a73(0xe0)](_0x3bf7ed)&&!this[_0x192a73(0xbc)](_0x3bf7ed)){const _0x31b538=_0x256857(_0x3bf7ed,_0x192a73(0xd4));_0x50f153(_0x3bf7ed,_0x192a73(0xc4),_0x31b538),_0x50f153(_0x3bf7ed,_0x192a73(0xd4),null);}});}[_0x46e315(0xa4)](_0x213169){const _0x3513ee=_0x46e315;if(!_0x213169)return null;if(_0x454369(_0x213169))return _0x256857(_0x213169,_0x3513ee(0xd4));if(_0x22821a(_0x213169)){const _0x5e3117=_0xacb80d(_0x213169)[_0x3513ee(0xc0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5e3117&&_0x5e3117[0x1])return _0x5e3117[0x1];}return null;}[_0x46e315(0xb4)](_0x1fb901){const _0x173734=_0x46e315;if(_0x22821a(_0x1fb901)){const _0xb84c81=_0xacb80d(_0x1fb901)[_0x173734(0xc0)](/removed[\s*-]data-id="([^"]+)"/);_0xb84c81&&_0xb84c81[0x1]&&this[_0x173734(0xe3)][_0x173734(0xd3)][_0x173734(0xad)](_0xb84c81[0x1]);}}[_0x46e315(0x9d)](_0x2209db){const _0x2ab10b=_0x46e315;return this[_0x2ab10b(0xe0)](_0x2209db)?_0x256857(_0x2209db,_0x2ab10b(0xd4)):this[_0x2ab10b(0xcf)]();}[_0x46e315(0xc5)](_0x5683f3){const _0x31cc1d=_0x46e315;_0x2f5be0(_0x5683f3)[_0x31cc1d(0xde)](_0x5a09db=>this[_0x31cc1d(0xb1)](_0x5a09db)||this[_0x31cc1d(0xd9)](_0x5a09db))[_0x31cc1d(0xa9)](_0x6a9fe2=>{_0x323bdf(_0x6a9fe2);});}[_0x46e315(0xc8)](_0x404006){const _0x47b63d=_0x46e315,_0x2bce6f=_0x404006[_0x47b63d(0xd8)],_0x46d649=_0x2bce6f[_0x2bce6f[_0x47b63d(0xce)]-0x1];_0x46d649&&_0x454369(_0x46d649)&&_0x50f153(_0x46d649,_0x47b63d(0xc9),_0x47b63d(0xa8));}[_0x46e315(0xc1)](_0x3a1594,_0x1f4163){const _0x3beed1=_0x46e315,_0x572059=_0xde5fce(_0x3beed1(0xc9),_0x3beed1(0xa8),_0x3a1594);if(!_0x572059)return;const _0x5569d2=_0x481fef(_0x572059)[_0x3beed1(0xa0)](0x0,-0x1),_0x31c582=_0x5569d2[_0x3beed1(0xce)];let _0x4b9fdb=_0x572059;if(_0x31c582>_0x1f4163){let _0x498666=_0x31c582,_0x2201c8=null;for(;_0x498666>_0x1f4163&&_0x498666>=0x0;)_0x498666--,_0x2201c8=_0x5569d2[_0x498666];_0x2201c8&&(_0x4b9fdb=_0x2201c8,_0x50f153(_0x572059,_0x3beed1(0xc9),null),_0x50f153(_0x2201c8,_0x3beed1(0xc9),_0x3beed1(0xa8)));}else{if(_0x31c582<_0x1f4163){let _0x438af5=_0x31c582,_0x166ab6=_0x572059;for(;_0x438af5<_0x1f4163;){const _0x4fb3cc=_0x166ab6[_0x3beed1(0xd8)][_0x3beed1(0xde)](_0x2cda78=>_0x454369(_0x2cda78));if(0x0===_0x4fb3cc[_0x3beed1(0xce)])break;_0x438af5++,_0x166ab6=_0x4fb3cc[_0x4fb3cc[_0x3beed1(0xce)]-0x1];}_0x166ab6&&(_0x4b9fdb=_0x166ab6,_0x50f153(_0x572059,_0x3beed1(0xc9),null),_0x50f153(_0x166ab6,_0x3beed1(0xc9),_0x3beed1(0xa8)));}}let _0x156d64=_0x4b9fdb;for(;_0x156d64;){for(;_0x156d64[_0x3beed1(0xb5)];)_0x156d64=_0x156d64[_0x3beed1(0xb5)],_0x454369(_0x156d64)&&_0x50f153(_0x156d64,_0x3beed1(0xc9),_0x3beed1(0xa8));_0x156d64=_0x156d64[_0x3beed1(0xb7)];}}[_0x46e315(0xdb)](_0x44127d){const _0x37cab6=_0x46e315;return Boolean(_0x37cab6(0xe4)===_0x256857(_0x44127d,_0x37cab6(0xd4)));}[_0x46e315(0xe0)](_0xbbde3f){const _0x5aff52=_0x46e315;return Boolean((_0x256857(_0xbbde3f,_0x5aff52(0xd4))||'')[_0x5aff52(0xce)]>0x0&&_0x5aff52(0xe4)!==_0x256857(_0xbbde3f,_0x5aff52(0xd4)));}[_0x46e315(0xb1)](_0x3f80a8){const _0x293726=_0x46e315;return!!_0x3f80a8&&Boolean(_0x22821a(_0x3f80a8)&&_0xacb80d(_0x3f80a8)[_0x293726(0xc0)](/removed[\s*-]data-id="[^"]+"/));}[_0x46e315(0xbc)](_0x4ed08d){const _0x375abb=_0x46e315;let _0x9f9795=_0x4ed08d[_0x375abb(0xb7)];for(;_0x9f9795;){if(_0x256857(_0x9f9795,_0x375abb(0xc4)))return!0x0;_0x9f9795=_0x9f9795[_0x375abb(0xb7)];}return!0x1;}[_0x46e315(0xd9)](_0x232977){const _0x362f62=_0x46e315;return Boolean(_0x22821a(_0x232977)&&_0xacb80d(_0x232977)[_0x362f62(0xc0)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x5633(_0x3e2b5f,_0x23c716){const _0x298cb1=_0x298c();return _0x5633=function(_0x563382,_0x32e482){_0x563382=_0x563382-0x74;let _0x5d8bb4=_0x298cb1[_0x563382];return _0x5d8bb4;},_0x5633(_0x3e2b5f,_0x23c716);}const _0x290181=_0x5633;(function(_0x39ea35,_0x4e8c65){const _0x2713f3=_0x5633,_0x1ead1a=_0x39ea35();while(!![]){try{const _0x2f29fe=-parseInt(_0x2713f3(0xb6))/0x1+-parseInt(_0x2713f3(0x83))/0x2+parseInt(_0x2713f3(0x75))/0x3+parseInt(_0x2713f3(0xa0))/0x4*(parseInt(_0x2713f3(0x97))/0x5)+-parseInt(_0x2713f3(0xa9))/0x6+parseInt(_0x2713f3(0x7e))/0x7+parseInt(_0x2713f3(0xab))/0x8;if(_0x2f29fe===_0x4e8c65)break;else _0x1ead1a['push'](_0x1ead1a['shift']());}catch(_0x5d9e7e){_0x1ead1a['push'](_0x1ead1a['shift']());}}}(_0x298c,0xe8e2a));import{ObservableMixin as _0x1f9b90,uid as _0x2b3468}from'ckeditor5/src/utils.js';function _0x298c(){const _0x231d52=['cloneNode','newIds','_findReferenceNode','_insertNodes','slice','_removeSpecialComments','from','1005672cHAidn','_isNewNode','6163936ENkNFx','_generateUid','splice','data-removed','childNodes','reverse','forEach','invalidIds','parentNode','_storeDeletedElementIds','markUnstableElementsDepth','164954FOHgTW','_isDelNode','_touchedNodesState','map','525636YEmsHQ','_hasWrappedParent','lastTouchedId','has','_findNextElementWithDataId','cutAfterLastChange','_markUnstableElements','nodeType','_isExistingContentComment','3956995BEueMl','data-wrapped-id','data-id','_getUid','replaceRemovedWith','2057658Kyfoqt','push','_markLastTagElementUnstable','afterend','lastChild','match','indexOf','markUnstableElements','filter','includes','_findPrevElementWithDataId','removedIds','new-element','merge','data-unstable','nextSibling','_markWrappedElements','modifiedIds','previousSibling','_isExistingNode','40WsWJPO','_findFallbackReferenceNode','_existingDataIds','beforebegin','afterbegin','_getNodeDataId','trim','true','_replaceNode','402152LfFrlY','length'];_0x298c=function(){return _0x231d52;};return _0x298c();}import{findAllByAttribute as _0x312c4e,findByAttribute as _0x5d534b,getAttribute as _0x1f8f48,isComment as _0x5eee27,isTag as _0x469752,insertElement as _0x304816,moveElement as _0x414c2b,removeElement as _0x205df1,replaceElement as _0x488bd7,serialize as _0x519b13,setAttribute as _0x5e98d4,clone as _0x2c561c,findAllComments as _0x2ef713,getParents as _0x48195b,getNodeNestingLevel as _0x49ee1a,areNodesSame as _0x496e31,removeElementsAfter as _0x117bad}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f9b90(){[_0x290181(0xac)];[_0x290181(0xb8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x290181(0x99)]=new Set();constructor(_0x50f922){const _0x2cbbcf=_0x290181;super(),this[_0x2cbbcf(0xac)]=_0x50f922||_0x2b3468;}[_0x290181(0x90)](_0x25e2aa,_0x9c1898,_0x4d8903){const _0x18aad1=_0x290181,_0x5e2808=_0x2c561c(_0x25e2aa);if(0x0===_0x9c1898[_0x18aad1(0xaf)][_0x18aad1(0xa1)]){const _0xf16581=[];return _0x312c4e(_0x18aad1(0x80),_0x18aad1(0x8f),_0x5e2808)[_0x18aad1(0xb1)](_0x2e0d00=>{const _0x3c68c7=_0x18aad1,_0x699be4=this[_0x3c68c7(0xac)]();_0x5e98d4(_0x2e0d00,_0x3c68c7(0x80),_0x699be4),_0xf16581[_0x3c68c7(0x84)](_0x699be4);}),this[_0x18aad1(0xa7)](_0x5e2808),{'parsedContent':_0x5e2808,'newNodeIds':_0xf16581,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4d8903&&_0x4d8903[_0x18aad1(0x8a)]&&this[_0x18aad1(0x85)](_0x5e2808),this[_0x18aad1(0xb8)][_0x18aad1(0xa3)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x94)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0xb2)]=[],this[_0x18aad1(0xb8)][_0x18aad1(0x77)]=null,this[_0x18aad1(0x99)]=new Set(_0x312c4e(_0x18aad1(0x80),null,_0x9c1898)[_0x18aad1(0x74)](_0x3cd414=>_0x1f8f48(_0x3cd414,_0x18aad1(0x80)))[_0x18aad1(0x8b)](_0x2be040=>!!_0x2be040));let _0xe71138=-0x1,_0x90166c=!0x1;const _0x1ad4d3=_0x5e2808[_0x18aad1(0xaf)],_0xfe3ba7=Array[_0x18aad1(0xa8)](_0x1ad4d3)[_0x18aad1(0x8b)](_0x58ec0c=>!(0x3===_0x58ec0c[_0x18aad1(0x7c)]&&''===_0x519b13(_0x58ec0c)[_0x18aad1(0x9d)]())),_0x41003e=_0xfe3ba7[_0x18aad1(0xa1)];for(let _0x47675d=0x0;_0x47675d<_0x41003e;_0x47675d++){const _0x142b5e=_0xfe3ba7[_0x47675d],_0x582c4f=_0xfe3ba7[_0x47675d+0x1];if(this[_0x18aad1(0xaa)](_0x142b5e)){if(-0x1===_0xe71138&&(_0xe71138=_0x47675d),this[_0x18aad1(0x93)](_0x142b5e),!this[_0x18aad1(0xaa)](_0x582c4f)){const [_0x4907c6,_0x14d496]=this[_0x18aad1(0xa4)](_0x142b5e,_0x90166c,_0x9c1898);if(_0x4907c6){const _0x36579e=Array[_0x18aad1(0xa8)](_0xfe3ba7)[_0x18aad1(0xa6)](_0xe71138,_0x47675d+0x1);this[_0x18aad1(0xa5)](_0x4907c6,_0x36579e,_0x14d496),_0xe71138=-0x1;}}}else{if(this[_0x18aad1(0x7d)](_0x142b5e))_0x90166c=!0x0;else{if(this[_0x18aad1(0x96)](_0x142b5e)){const _0x3d6948=_0x1f8f48(_0x142b5e,_0x18aad1(0x80));if(_0x3d6948&&this[_0x18aad1(0x99)][_0x18aad1(0x78)](_0x3d6948)){const _0x42465a=_0x5d534b(_0x18aad1(0x80),_0x3d6948,_0x9c1898);this[_0x18aad1(0x9f)](_0x42465a,_0x142b5e);}if(this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0x8c)](_0x3d6948)){const _0x15d0cc=this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0x89)](_0x3d6948);this[_0x18aad1(0xb8)][_0x18aad1(0x8e)][_0x18aad1(0xad)](_0x15d0cc,0x1);}}else{if(this[_0x18aad1(0xb7)](_0x142b5e)){const _0x39278e=_0x1f8f48(_0x142b5e,_0x18aad1(0x80));this[_0x18aad1(0xb8)][_0x18aad1(0x94)][_0x18aad1(0x8c)](_0x39278e)||this[_0x18aad1(0xb4)](_0x142b5e);}}}}}for(const _0x2dfa78 of this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]){const _0x47019d=_0x5d534b(_0x18aad1(0x80),_0x2dfa78,_0x9c1898);if(_0x47019d){if(_0x4d8903&&_0x4d8903[_0x18aad1(0x82)]){this[_0x18aad1(0xb8)][_0x18aad1(0x77)]=_0x2dfa78;const _0x3a0976=_0x4d8903[_0x18aad1(0x82)][_0x18aad1(0xa2)](!0x0);_0x5e98d4(_0x3a0976,_0x18aad1(0x80),_0x2dfa78),_0x5e98d4(_0x3a0976,_0x18aad1(0xae),_0x18aad1(0x9e)),_0x488bd7(_0x47019d,_0x3a0976);}else _0x205df1(_0x47019d);}}if(_0x312c4e(_0x18aad1(0x7f),null,_0x9c1898)[_0x18aad1(0xb1)](_0x382c65=>{const _0x1a5513=_0x18aad1,_0x2ae2e5=_0x1f8f48(_0x382c65,_0x1a5513(0x7f)),_0x383313=_0x5d534b(_0x1a5513(0x80),_0x2ae2e5,_0x9c1898);_0x383313&&_0x414c2b(_0x383313,_0x382c65);}),_0x312c4e(_0x18aad1(0x80),_0x18aad1(0x8f),_0x9c1898)[_0x18aad1(0xb1)](_0x36d876=>{const _0x30707c=_0x18aad1,_0x4287a5=this[_0x30707c(0x81)](_0x36d876);_0x5e98d4(_0x36d876,_0x30707c(0x80),_0x4287a5),this[_0x30707c(0xb8)][_0x30707c(0xa3)][_0x30707c(0x84)](_0x4287a5);}),this[_0x18aad1(0xa7)](_0x9c1898),_0x4d8903&&_0x4d8903[_0x18aad1(0x8a)]&&this[_0x18aad1(0x7b)](_0x9c1898,_0x4d8903[_0x18aad1(0xb5)]||0x0),_0x4d8903&&_0x4d8903[_0x18aad1(0x7a)]&&this[_0x18aad1(0xb8)][_0x18aad1(0x77)]){let _0x1fa926=_0x5d534b(_0x18aad1(0x80),this[_0x18aad1(0xb8)][_0x18aad1(0x77)],_0x9c1898);for(;_0x1fa926;)_0x117bad(_0x1fa926),_0x1fa926=_0x1fa926[_0x18aad1(0xb3)];}return{'parsedContent':_0x9c1898,'newNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0xa3)],'modifiedNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0x94)],'removedNodeIds':this[_0x18aad1(0xb8)][_0x18aad1(0x8e)]};}[_0x290181(0xa5)](_0x5a76d5,_0xba8768,_0x531b0c){const _0x42af09=_0x290181;for(const _0x18ae48 of _0xba8768){const _0x5a4069=this[_0x42af09(0x81)](_0x18ae48);_0x5e98d4(_0x18ae48,_0x42af09(0x80),_0x5a4069),this[_0x42af09(0xb8)][_0x42af09(0xa3)][_0x42af09(0x84)](_0x5a4069),this[_0x42af09(0xb8)][_0x42af09(0x77)]=_0x5a4069;}const _0x516df6=_0x42af09(0x9b)===_0x531b0c||_0x42af09(0x86)===_0x531b0c?_0xba8768[_0x42af09(0xb0)]():_0xba8768;for(const _0x388c2b of _0x516df6)_0x304816(_0x5a76d5,_0x388c2b,_0x531b0c);}[_0x290181(0x9f)](_0x283d32,_0x433259){const _0x338fbc=_0x290181;if(!_0x283d32)return;if(_0x496e31(_0x283d32,_0x433259))return;const _0x5ba01d=this[_0x338fbc(0x81)](_0x283d32);_0x5e98d4(_0x433259,_0x338fbc(0x80),_0x5ba01d),this[_0x338fbc(0xb8)][_0x338fbc(0x94)][_0x338fbc(0x84)](_0x5ba01d),this[_0x338fbc(0xb8)][_0x338fbc(0x77)]=_0x5ba01d,_0x488bd7(_0x283d32,_0x433259[_0x338fbc(0xa2)](!0x0));}[_0x290181(0xa4)](_0x569f41,_0x24a14f,_0xde35cb){const _0x2c4131=_0x290181,_0x408944=this[_0x2c4131(0x8d)](_0x569f41,!0x1);if(_0x408944){const _0x392d40=this[_0x2c4131(0x9c)](_0x408944),_0x18f9c5=_0x5d534b(_0x2c4131(0x80),_0x392d40,_0xde35cb);if(_0x18f9c5)return[_0x18f9c5,_0x2c4131(0x86)];this[_0x2c4131(0xb8)][_0x2c4131(0xb2)][_0x2c4131(0x84)](_0x392d40);}const _0x2a32ae=this[_0x2c4131(0x79)](_0x569f41,!0x1);if(_0x2a32ae){const _0x1052e6=this[_0x2c4131(0x9c)](_0x2a32ae),_0x2df731=_0x5d534b(_0x2c4131(0x80),_0x1052e6,_0xde35cb);if(_0x2df731)return[_0x2df731,_0x2c4131(0x9a)];this[_0x2c4131(0xb8)][_0x2c4131(0xb2)][_0x2c4131(0x84)](_0x1052e6);}return _0x24a14f?_0x569f41[_0x2c4131(0x92)]?this[_0x2c4131(0x98)](_0x569f41,_0xde35cb):[_0xde35cb[_0x2c4131(0xaf)][_0xde35cb[_0x2c4131(0xaf)][_0x2c4131(0xa1)]-0x1],_0x2c4131(0x86)]:[_0xde35cb[_0x2c4131(0xaf)][0x0],_0x2c4131(0x9a)];}[_0x290181(0x98)](_0x2ff28b,_0x276c4d){const _0x4e2bdb=_0x290181,_0x5d879c=[],_0x34e03f=this[_0x4e2bdb(0x8d)](_0x2ff28b,!0x0);if(_0x34e03f){const _0x2ef6a7=this[_0x4e2bdb(0x9c)](_0x34e03f),_0x6fd47a=_0x5d534b(_0x4e2bdb(0x80),_0x2ef6a7,_0x276c4d);_0x6fd47a&&_0x5d879c[_0x4e2bdb(0x84)]([_0x6fd47a,_0x4e2bdb(0x86)]);}const _0x12b7e4=this[_0x4e2bdb(0x79)](_0x2ff28b,!0x0);if(_0x12b7e4){const _0x4aaa9f=this[_0x4e2bdb(0x9c)](_0x12b7e4),_0x531ac0=_0x5d534b(_0x4e2bdb(0x80),_0x4aaa9f,_0x276c4d);_0x531ac0&&_0x5d879c[_0x4e2bdb(0x84)]([_0x531ac0,_0x4e2bdb(0x9a)]);}if(_0x5d879c[_0x4e2bdb(0xa1)]>0x1)return _0x49ee1a(_0x5d879c[0x0][0x0])<=_0x49ee1a(_0x5d879c[0x1][0x0])?_0x5d879c[0x0]:_0x5d879c[0x1];return 0x1===_0x5d879c[_0x4e2bdb(0xa1)]?_0x5d879c[0x0]:[_0x276c4d[_0x4e2bdb(0x87)],_0x4e2bdb(0x86)];}[_0x290181(0x79)](_0x47fbf0,_0x1554e5){const _0x3cdef5=_0x290181;let _0x5da908=_0x47fbf0[_0x3cdef5(0x92)],_0x3ab13a=null,_0x54e264=!0x1;for(;_0x5da908;){if(_0x5eee27(_0x5da908)){if(this[_0x3cdef5(0xb7)](_0x5da908)&&(_0x3ab13a=_0x5da908),this[_0x3cdef5(0x7d)](_0x5da908)&&_0x1554e5&&!_0x54e264){_0x54e264=!0x0,_0x5da908=_0x5da908[_0x3cdef5(0x92)];continue;}break;}const _0x4d3753=_0x1f8f48(_0x5da908,_0x3cdef5(0x80));if(_0x4d3753&&_0x3cdef5(0x8f)!==_0x4d3753&&this[_0x3cdef5(0x99)][_0x3cdef5(0x78)](_0x4d3753)){_0x3ab13a=_0x5da908;break;}_0x5da908=_0x5da908[_0x3cdef5(0x92)];}return _0x3ab13a;}[_0x290181(0x8d)](_0x525f5e,_0x3196bc){const _0x5aaea6=_0x290181;let _0x4980e2=_0x525f5e[_0x5aaea6(0x95)],_0x2ed158=null,_0xb1aec3=!0x1;for(;_0x4980e2;){if(_0x5eee27(_0x4980e2)){if(this[_0x5aaea6(0xb7)](_0x4980e2)&&(_0x2ed158=_0x4980e2),this[_0x5aaea6(0x7d)](_0x4980e2)&&_0x3196bc&&!_0xb1aec3){_0xb1aec3=!0x0,_0x4980e2=_0x4980e2[_0x5aaea6(0x95)];continue;}break;}const _0x20005f=_0x1f8f48(_0x4980e2,_0x5aaea6(0x80));if(_0x20005f&&_0x5aaea6(0x8f)!==_0x20005f&&this[_0x5aaea6(0x99)][_0x5aaea6(0x78)](_0x20005f)){_0x2ed158=_0x4980e2;break;}_0x4980e2=_0x4980e2[_0x5aaea6(0x95)];}return _0x2ed158;}[_0x290181(0x93)](_0x477c90){const _0x450945=_0x290181;_0x469752(_0x477c90)&&_0x312c4e(_0x450945(0x80),null,_0x477c90)[_0x450945(0xb1)](_0x40f31f=>{const _0x270a4e=_0x450945;if(this[_0x270a4e(0x96)](_0x40f31f)&&!this[_0x270a4e(0x76)](_0x40f31f)){const _0x540777=_0x1f8f48(_0x40f31f,_0x270a4e(0x80));_0x5e98d4(_0x40f31f,_0x270a4e(0x7f),_0x540777),_0x5e98d4(_0x40f31f,_0x270a4e(0x80),null);}});}[_0x290181(0x9c)](_0x19f46f){const _0x36913d=_0x290181;if(!_0x19f46f)return null;if(_0x469752(_0x19f46f))return _0x1f8f48(_0x19f46f,_0x36913d(0x80));if(_0x5eee27(_0x19f46f)){const _0x4d47fd=_0x519b13(_0x19f46f)[_0x36913d(0x88)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4d47fd&&_0x4d47fd[0x1])return _0x4d47fd[0x1];}return null;}[_0x290181(0xb4)](_0x136d6e){const _0x44c8ad=_0x290181;if(_0x5eee27(_0x136d6e)){const _0x5637e7=_0x519b13(_0x136d6e)[_0x44c8ad(0x88)](/removed[\s*-]data-id="([^"]+)"/);_0x5637e7&&_0x5637e7[0x1]&&this[_0x44c8ad(0xb8)][_0x44c8ad(0x8e)][_0x44c8ad(0x84)](_0x5637e7[0x1]);}}[_0x290181(0x81)](_0x5c5ec3){const _0x5b4a42=_0x290181;return this[_0x5b4a42(0x96)](_0x5c5ec3)?_0x1f8f48(_0x5c5ec3,_0x5b4a42(0x80)):this[_0x5b4a42(0xac)]();}[_0x290181(0xa7)](_0x47bf62){const _0x4fc269=_0x290181;_0x2ef713(_0x47bf62)[_0x4fc269(0x8b)](_0x3d8f0b=>this[_0x4fc269(0xb7)](_0x3d8f0b)||this[_0x4fc269(0x7d)](_0x3d8f0b))[_0x4fc269(0xb1)](_0x588d05=>{_0x205df1(_0x588d05);});}[_0x290181(0x85)](_0xe5c509){const _0x4829ab=_0x290181,_0x1d7075=_0xe5c509[_0x4829ab(0xaf)],_0x1cf3bd=_0x1d7075[_0x1d7075[_0x4829ab(0xa1)]-0x1];_0x1cf3bd&&_0x469752(_0x1cf3bd)&&_0x5e98d4(_0x1cf3bd,_0x4829ab(0x91),_0x4829ab(0x9e));}[_0x290181(0x7b)](_0x37319b,_0x9e0c8c){const _0x1ad220=_0x290181,_0x14c57c=_0x5d534b(_0x1ad220(0x91),_0x1ad220(0x9e),_0x37319b);if(!_0x14c57c)return;const _0x1f0e01=_0x48195b(_0x14c57c)[_0x1ad220(0xa6)](0x0,-0x1),_0x7468cf=_0x1f0e01[_0x1ad220(0xa1)];let _0x7ee7b7=_0x14c57c;if(_0x7468cf>_0x9e0c8c){let _0x4c8ab4=_0x7468cf,_0x46dab5=null;for(;_0x4c8ab4>_0x9e0c8c&&_0x4c8ab4>=0x0;)_0x4c8ab4--,_0x46dab5=_0x1f0e01[_0x4c8ab4];_0x46dab5&&(_0x7ee7b7=_0x46dab5,_0x5e98d4(_0x14c57c,_0x1ad220(0x91),null),_0x5e98d4(_0x46dab5,_0x1ad220(0x91),_0x1ad220(0x9e)));}else{if(_0x7468cf<_0x9e0c8c){let _0x7fb62c=_0x7468cf,_0x3d051e=_0x14c57c;for(;_0x7fb62c<_0x9e0c8c;){const _0x10e9c9=_0x3d051e[_0x1ad220(0xaf)][_0x1ad220(0x8b)](_0x51e447=>_0x469752(_0x51e447));if(0x0===_0x10e9c9[_0x1ad220(0xa1)])break;_0x7fb62c++,_0x3d051e=_0x10e9c9[_0x10e9c9[_0x1ad220(0xa1)]-0x1];}_0x3d051e&&(_0x7ee7b7=_0x3d051e,_0x5e98d4(_0x14c57c,_0x1ad220(0x91),null),_0x5e98d4(_0x3d051e,_0x1ad220(0x91),_0x1ad220(0x9e)));}}let _0x5af43e=_0x7ee7b7;for(;_0x5af43e;){for(;_0x5af43e[_0x1ad220(0x92)];)_0x5af43e=_0x5af43e[_0x1ad220(0x92)],_0x469752(_0x5af43e)&&_0x5e98d4(_0x5af43e,_0x1ad220(0x91),_0x1ad220(0x9e));_0x5af43e=_0x5af43e[_0x1ad220(0xb3)];}}[_0x290181(0xaa)](_0xc8d88){const _0x1d618f=_0x290181;return Boolean(_0x1d618f(0x8f)===_0x1f8f48(_0xc8d88,_0x1d618f(0x80)));}[_0x290181(0x96)](_0x166fff){const _0x9f4a5b=_0x290181;return Boolean((_0x1f8f48(_0x166fff,_0x9f4a5b(0x80))||'')[_0x9f4a5b(0xa1)]>0x0&&_0x9f4a5b(0x8f)!==_0x1f8f48(_0x166fff,_0x9f4a5b(0x80)));}[_0x290181(0xb7)](_0x2ddc5d){const _0x5cc282=_0x290181;return!!_0x2ddc5d&&Boolean(_0x5eee27(_0x2ddc5d)&&_0x519b13(_0x2ddc5d)[_0x5cc282(0x88)](/removed[\s*-]data-id="[^"]+"/));}[_0x290181(0x76)](_0x5bba00){const _0x47ab2a=_0x290181;let _0x46587f=_0x5bba00[_0x47ab2a(0xb3)];for(;_0x46587f;){if(_0x1f8f48(_0x46587f,_0x47ab2a(0x7f)))return!0x0;_0x46587f=_0x46587f[_0x47ab2a(0xb3)];}return!0x1;}[_0x290181(0x7d)](_0x497a7d){const _0x97940b=_0x290181;return Boolean(_0x5eee27(_0x497a7d)&&_0x519b13(_0x497a7d)[_0x97940b(0x88)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function _0x500d(){const _0x3d5b1c=['57mgnYqF','children','24552WjgYTY','_m2html','52393uxmXwA','<dummy>','12IkWzMG','156CIenYc','1428098wqMVYe','</dummy>','11365HmZyHF','convertMarkdownToHTML','parse','1338LnPRXt','261NdZGbI','_parseHTML','713394ToCIOI','replace','7478110fvoCIq','130356JLqeug','parseAndNormalizeHTML'];_0x500d=function(){return _0x3d5b1c;};return _0x500d();}const _0x33fd49=_0x512a;(function(_0x5d101b,_0x548d23){const _0x55afbe=_0x512a,_0x486106=_0x5d101b();while(!![]){try{const _0x222515=parseInt(_0x55afbe(0x129))/0x1*(parseInt(_0x55afbe(0x12b))/0x2)+-parseInt(_0x55afbe(0x125))/0x3*(parseInt(_0x55afbe(0x123))/0x4)+parseInt(_0x55afbe(0x12f))/0x5*(parseInt(_0x55afbe(0x11d))/0x6)+parseInt(_0x55afbe(0x12d))/0x7+parseInt(_0x55afbe(0x127))/0x8*(parseInt(_0x55afbe(0x11e))/0x9)+parseInt(_0x55afbe(0x122))/0xa+-parseInt(_0x55afbe(0x120))/0xb*(parseInt(_0x55afbe(0x12c))/0xc);if(_0x222515===_0x548d23)break;else _0x486106['push'](_0x486106['shift']());}catch(_0x4baf18){_0x486106['push'](_0x486106['shift']());}}}(_0x500d,0x6199a));function _0x512a(_0x565522,_0x1d35f6){const _0x500da5=_0x500d();return _0x512a=function(_0x512a6e,_0x189316){_0x512a6e=_0x512a6e-0x11c;let _0x4aca20=_0x500da5[_0x512a6e];return _0x4aca20;},_0x512a(_0x565522,_0x1d35f6);}import{ObservableMixin as _0x4feb40}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x4b2362}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5c8505}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4feb40(){[_0x33fd49(0x128)];constructor(){const _0x17b777=_0x33fd49;super(),this[_0x17b777(0x128)]=new _0x4b2362();}[_0x33fd49(0x130)](_0x155d72){const _0x325b15=_0x33fd49,_0x2fd710=this[_0x325b15(0x128)][_0x325b15(0x11c)](_0x155d72);return this[_0x325b15(0x124)](_0x2fd710);}[_0x33fd49(0x124)](_0x23bff7){const _0x15979e=_0x33fd49;return this[_0x15979e(0x11f)](_0x23bff7);}[_0x33fd49(0x11f)](_0x3f1c3b){const _0x8b1366=_0x33fd49,_0x16218a=_0x3f1c3b[_0x8b1366(0x121)](/^\t+/gm,'\x20')[_0x8b1366(0x121)](/\n*/g,'')[_0x8b1366(0x121)](/\s+/g,'\x20')[_0x8b1366(0x121)](/<[^>]*?$/g,''),_0x20c968=_0x5c8505(_0x8b1366(0x12a)+_0x16218a+_0x8b1366(0x12e));return _0x20c968[_0x8b1366(0x126)]=_0x20c968[_0x8b1366(0x126)][0x0][_0x8b1366(0x126)],_0x20c968;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xe508(_0xd1f32b,_0x58fac5){var _0x1a6ef8=_0x1a6e();return _0xe508=function(_0xe5081,_0x28f2c3){_0xe5081=_0xe5081-0xe8;var _0x6c89aa=_0x1a6ef8[_0xe5081];return _0x6c89aa;},_0xe508(_0xd1f32b,_0x58fac5);}(function(_0x760f9,_0x388e13){var _0x4d0ad1=_0xe508,_0x26427d=_0x760f9();while(!![]){try{var _0x27f4fe=parseInt(_0x4d0ad1(0xf7))/0x1+parseInt(_0x4d0ad1(0xea))/0x2+parseInt(_0x4d0ad1(0xf4))/0x3*(-parseInt(_0x4d0ad1(0xe8))/0x4)+parseInt(_0x4d0ad1(0xf1))/0x5*(-parseInt(_0x4d0ad1(0xe9))/0x6)+-parseInt(_0x4d0ad1(0xf3))/0x7*(parseInt(_0x4d0ad1(0xf0))/0x8)+parseInt(_0x4d0ad1(0xf2))/0x9+-parseInt(_0x4d0ad1(0xec))/0xa*(-parseInt(_0x4d0ad1(0xee))/0xb);if(_0x27f4fe===_0x388e13)break;else _0x26427d['push'](_0x26427d['shift']());}catch(_0x2da94c){_0x26427d['push'](_0x26427d['shift']());}}}(_0x1a6e,0x9354b));import{View as _0x32ad8b}from'ckeditor5/src/ui.js';import{getTranslation as _0xeaa3ab}from'../../aicore/utils/common-translations.js';function _0x1a6e(){var _0x2d355c=['303780EUOMDy','16vorKDo','63330qICMWj','2109404KuaYjF','div','22290ddwHri','ck-ai-disclaimer','187SsDtoo','AI_DISCLAIMER_TEXT','191176UYSBZM','85zaVvYY','10280664whJfrV','315vvXimD','510303OXymkg','setTemplate','ck-ai-disclaimer__content'];_0x1a6e=function(){return _0x2d355c;};return _0x1a6e();}export class AIDisclaimerView extends _0x32ad8b{constructor(_0x4aef47){var _0x431dab=_0xe508;super(_0x4aef47),this[_0x431dab(0xf5)]({'tag':_0x431dab(0xeb),'attributes':{'class':['ck',_0x431dab(0xed)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x431dab(0xf6)]},'children':[{'text':_0xeaa3ab(_0x4aef47,_0x431dab(0xef))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2756(){const _0x2d2624=['fill','_createSkeletonItems','19245fXdQMd','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','10888fJDZMP','88px','tag','width:\x20','4ryNgvL','150px','1436mdfgOJ','center','height','left','attributes','1309rwzojx',';\x20height:\x20','24px','40px','ck-ai-skeleton__item','width','166250LRGksl','564FJtBnE','100%','2090242BHqdNb','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','right','387BiQxuF','44px','140px','class','128px','2502UybXzF','div','align','ck-ai-skeleton','104315ikkkBC','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','map','72px','132AsvEEt','11908oIQsDX','setTemplate','250px'];_0x2756=function(){return _0x2d2624;};return _0x2756();}const _0x50c7ad=_0x1e21;(function(_0x281e30,_0x52b3e3){const _0x40ac12=_0x1e21,_0x336027=_0x281e30();while(!![]){try{const _0x3247ad=parseInt(_0x40ac12(0x162))/0x1*(parseInt(_0x40ac12(0x172))/0x2)+parseInt(_0x40ac12(0x15e))/0x3*(parseInt(_0x40ac12(0x174))/0x4)+-parseInt(_0x40ac12(0x16c))/0x5*(parseInt(_0x40ac12(0x180))/0x6)+parseInt(_0x40ac12(0x179))/0x7*(-parseInt(_0x40ac12(0x16e))/0x8)+parseInt(_0x40ac12(0x185))/0x9*(parseInt(_0x40ac12(0x17f))/0xa)+-parseInt(_0x40ac12(0x182))/0xb+parseInt(_0x40ac12(0x166))/0xc*(-parseInt(_0x40ac12(0x167))/0xd);if(_0x3247ad===_0x52b3e3)break;else _0x336027['push'](_0x336027['shift']());}catch(_0x440432){_0x336027['push'](_0x336027['shift']());}}}(_0x2756,0x633e4));import{View as _0x482a39}from'ckeditor5/src/ui.js';function _0x1e21(_0x38c17f,_0xc5aff9){const _0x275643=_0x2756();return _0x1e21=function(_0x1e21a6,_0x36b80e){_0x1e21a6=_0x1e21a6-0x15a;let _0x239eb0=_0x275643[_0x1e21a6];return _0x239eb0;},_0x1e21(_0x38c17f,_0xc5aff9);}export class AISkeletonView extends _0x482a39{constructor(_0x26a1b7,_0x2f002a){const _0x3c75e9=_0x1e21;super(_0x26a1b7),this[_0x3c75e9(0x168)]({'tag':_0x3c75e9(0x15f),'attributes':{'class':['ck',_0x3c75e9(0x161)]},'children':this[_0x3c75e9(0x16b)](_0x2f002a)});}[_0x50c7ad(0x16b)](_0x1ac012){const _0x23485b=_0x50c7ad,_0x3ec3dc=['ck',_0x23485b(0x17d)];return _0x1ac012[_0x23485b(0x164)](_0x437ecf=>{const _0xeb29d8=_0x23485b;let _0x147472='';switch(_0x437ecf[_0xeb29d8(0x178)][_0xeb29d8(0x160)]){case _0xeb29d8(0x184):_0x147472=_0xeb29d8(0x183);break;case _0xeb29d8(0x175):_0x147472=_0xeb29d8(0x16d);break;case _0xeb29d8(0x177):_0x147472=_0xeb29d8(0x163);}return{'tag':_0x437ecf[_0xeb29d8(0x170)],'attributes':{'class':[..._0x3ec3dc,_0x437ecf[_0xeb29d8(0x178)][_0xeb29d8(0x15c)]?_0x437ecf[_0xeb29d8(0x178)][_0xeb29d8(0x15c)]:''],'style':_0xeb29d8(0x171)+_0x437ecf[_0xeb29d8(0x178)][_0xeb29d8(0x17e)]+_0xeb29d8(0x17a)+_0x437ecf[_0xeb29d8(0x178)][_0xeb29d8(0x176)]+';'+_0x147472}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x181),'height':_0x50c7ad(0x165),'align':_0x50c7ad(0x184)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x169),'height':_0x50c7ad(0x17c),'align':_0x50c7ad(0x184)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x181),'height':_0x50c7ad(0x16f),'align':_0x50c7ad(0x184)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x173),'height':_0x50c7ad(0x17c),'align':_0x50c7ad(0x184)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x181),'height':_0x50c7ad(0x15b),'align':_0x50c7ad(0x184)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x169),'height':_0x50c7ad(0x17c),'align':_0x50c7ad(0x184)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x181),'height':_0x50c7ad(0x16f),'align':_0x50c7ad(0x184)}}],'aiHistory':$i(0x5,_0x50c7ad(0x181),_0x50c7ad(0x15a),_0x50c7ad(0x184)),'aiChatResources':$i(0x8,_0x50c7ad(0x181),_0x50c7ad(0x17b),_0x50c7ad(0x184)),'aiReviewChecks':[{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x15d),'height':_0x50c7ad(0x17b),'align':_0x50c7ad(0x177)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x181),'height':_0x50c7ad(0x17b),'align':_0x50c7ad(0x177)}},{'tag':_0x50c7ad(0x15f),'attributes':{'width':_0x50c7ad(0x15d),'height':_0x50c7ad(0x17b),'align':_0x50c7ad(0x177)}}]};function $i(_0x150b8b,_0x4ad791,_0x519d4c,_0x1a8148){const _0x35d32a=_0x50c7ad;return new Array(_0x150b8b)[_0x35d32a(0x16a)](null)[_0x35d32a(0x164)](()=>({'tag':_0x35d32a(0x15f),'attributes':{'width':_0x4ad791,'height':_0x519d4c,'align':_0x1a8148}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2de583,_0x41e187){const _0x4c9462=_0x9e13,_0x2db3ce=_0x2de583();while(!![]){try{const _0x1cf155=-parseInt(_0x4c9462(0x18f))/0x1*(-parseInt(_0x4c9462(0x190))/0x2)+-parseInt(_0x4c9462(0x18c))/0x3*(parseInt(_0x4c9462(0x18d))/0x4)+-parseInt(_0x4c9462(0x189))/0x5+-parseInt(_0x4c9462(0x18a))/0x6*(parseInt(_0x4c9462(0x188))/0x7)+-parseInt(_0x4c9462(0x194))/0x8+parseInt(_0x4c9462(0x191))/0x9*(-parseInt(_0x4c9462(0x195))/0xa)+-parseInt(_0x4c9462(0x192))/0xb*(-parseInt(_0x4c9462(0x187))/0xc);if(_0x1cf155===_0x41e187)break;else _0x2db3ce['push'](_0x2db3ce['shift']());}catch(_0x12d280){_0x2db3ce['push'](_0x2db3ce['shift']());}}}(_0xe632,0xba91c));function _0x9e13(_0x183eaf,_0x2914d4){const _0xe632a7=_0xe632();return _0x9e13=function(_0x9e137b,_0x244485){_0x9e137b=_0x9e137b-0x186;let _0x363aaa=_0xe632a7[_0x9e137b];return _0x363aaa;},_0x9e13(_0x183eaf,_0x2914d4);}function _0xe632(){const _0x28629f=['ck-ai-spinner','6871ZCWQup','230yyKUqY','216RgtOTy','11fPZskw','ck-ai-spinner_','8608280IYQXMx','227930qhXOhI','span','49570956MWDkXw','20447psAjzp','3910205BrnnXC','2262lUvmuA','extendTemplate','6399pCzSzU','1220WGowde'];_0xe632=function(){return _0x28629f;};return _0xe632();}import{SpinnerView as _0x4f78c5}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x4f78c5{constructor(_0x433d2a=void 0x0){const _0x1a93ac=_0x9e13;super();const _0x3d4166=_0x433d2a?_0x1a93ac(0x193)+_0x433d2a:'';this[_0x1a93ac(0x18b)]({'tag':_0x1a93ac(0x186),'attributes':{'class':[_0x1a93ac(0x18e),_0x3d4166]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x427c(){const _0x1e4208=['full','AI_MINI_TOOLBAR_DISLIKE','244BHSbue','like','showChanges','showCopy','toggleShowChanges','157212XreoVV','class','copyButton','add','9987376IVXjUr','_setupCopyButton','2342967PSVOBr','likeButton','ck-ai-mini-toolbar-copy-button','addMany','AI_MINI_TOOLBAR_LIKE','ck-ai-mini-toolbar','showChangesButton','set','showLike','items','_setupRatingButtons','isEnabled','21244344nqEdFm','1JazFtK','142795XezRcr','_setupShowChangesButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','2074946ApMYHb','349542zKCmLH','bind','locale','execute','154rdJlrv','length','200NQimvg','isLoading','AI_MINI_TOOLBAR_COPY','isOn','extendTemplate','showDislike','ck-ai-mini-toolbar\x20ck-hidden','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislikeButton','ck-ai-mini-toolbar-copy-button__check-mark','customView','_config','dislike','children','fire'];_0x427c=function(){return _0x1e4208;};return _0x427c();}const _0x2e9402=_0x4bb2;(function(_0x305630,_0x2dd1f0){const _0x44d13e=_0x4bb2,_0x640fc0=_0x305630();while(!![]){try{const _0x23dcfa=-parseInt(_0x44d13e(0x1b1))/0x1*(parseInt(_0x44d13e(0x1b5))/0x2)+parseInt(_0x44d13e(0x1a4))/0x3+parseInt(_0x44d13e(0x199))/0x4*(-parseInt(_0x44d13e(0x1b2))/0x5)+-parseInt(_0x44d13e(0x19e))/0x6*(-parseInt(_0x44d13e(0x1ba))/0x7)+parseInt(_0x44d13e(0x1a2))/0x8+parseInt(_0x44d13e(0x1b6))/0x9*(-parseInt(_0x44d13e(0x1bc))/0xa)+parseInt(_0x44d13e(0x1b0))/0xb;if(_0x23dcfa===_0x2dd1f0)break;else _0x640fc0['push'](_0x640fc0['shift']());}catch(_0x2dbd3f){_0x640fc0['push'](_0x640fc0['shift']());}}}(_0x427c,0xef75b));import{ButtonView as _0x3faae2,IconView as _0x1594af,ToolbarView as _0x50a994}from'ckeditor5/src/ui.js';function _0x4bb2(_0x39fb75,_0x116ec9){const _0x427cd7=_0x427c();return _0x4bb2=function(_0x4bb2b0,_0x43b4b1){_0x4bb2b0=_0x4bb2b0-0x194;let _0x1da046=_0x427cd7[_0x4bb2b0];return _0x1da046;},_0x4bb2(_0x39fb75,_0x116ec9);}import{IconCheck as _0x4d9742,IconCopy as _0x31955d,IconShowChangesOff as _0x4006da,IconShowChangesOn as _0x4f07e1,IconThumbDown as _0x1ffa38,IconThumbUp as _0xe1a43e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x200ffc}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x50a994{[_0x2e9402(0x1a0)];[_0x2e9402(0x1a5)];[_0x2e9402(0x1c4)];[_0x2e9402(0x1aa)];[_0x2e9402(0x1c7)];constructor(_0x2fa4e4,_0x33a6c3={},_0x37fc1b){const _0x4c027c=_0x2e9402;super(_0x2fa4e4),this[_0x4c027c(0x1ab)](_0x4c027c(0x1bd),!0x1),this[_0x4c027c(0x1c7)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x33a6c3};const _0x3d1d76=!(this[_0x4c027c(0x1c7)][_0x4c027c(0x19c)]||this[_0x4c027c(0x1c7)][_0x4c027c(0x19b)]||this[_0x4c027c(0x1c7)][_0x4c027c(0x1ac)]||this[_0x4c027c(0x1c7)][_0x4c027c(0x1c1)]||this[_0x4c027c(0x1c7)][_0x4c027c(0x1c6)]?.[_0x4c027c(0x1bb)]);this[_0x4c027c(0x19f)]=_0x3d1d76?_0x4c027c(0x1c2):_0x4c027c(0x1a9),this[_0x4c027c(0x1c7)][_0x4c027c(0x19c)]&&(this[_0x4c027c(0x1a3)](),this[_0x4c027c(0x1ad)][_0x4c027c(0x1a1)](this[_0x4c027c(0x1a0)])),this[_0x4c027c(0x1c7)][_0x4c027c(0x19b)]&&(this[_0x4c027c(0x1b3)](_0x37fc1b),this[_0x4c027c(0x1ad)][_0x4c027c(0x1a1)](this[_0x4c027c(0x1aa)])),this[_0x4c027c(0x1ae)](),this[_0x4c027c(0x1c7)][_0x4c027c(0x1ac)]&&this[_0x4c027c(0x1ad)][_0x4c027c(0x1a1)](this[_0x4c027c(0x1a5)]),this[_0x4c027c(0x1c7)][_0x4c027c(0x1c1)]&&this[_0x4c027c(0x1ad)][_0x4c027c(0x1a1)](this[_0x4c027c(0x1c4)]),this[_0x4c027c(0x1c7)][_0x4c027c(0x1c6)]&&this[_0x4c027c(0x1ad)][_0x4c027c(0x1a7)](this[_0x4c027c(0x1c7)][_0x4c027c(0x1c6)]);}[_0x2e9402(0x1ae)](){const _0x513005=_0x2e9402;this[_0x513005(0x1a5)]=new _0x3faae2(this[_0x513005(0x1b8)]),this[_0x513005(0x1a5)][_0x513005(0x1ab)]({'icon':_0xe1a43e,'label':_0x200ffc(this[_0x513005(0x1b8)],_0x513005(0x1a8)),'tooltip':!0x0}),this[_0x513005(0x1a5)][_0x513005(0x1b7)](_0x513005(0x1af))['to'](this,_0x513005(0x1bd),_0xe2e07a=>!_0xe2e07a),this[_0x513005(0x1a5)]['on'](_0x513005(0x1b9),()=>{const _0x57715c=_0x513005;this[_0x57715c(0x196)](_0x57715c(0x19a));}),this[_0x513005(0x1c4)]=new _0x3faae2(this[_0x513005(0x1b8)]),this[_0x513005(0x1c4)][_0x513005(0x1ab)]({'icon':_0x1ffa38,'label':_0x200ffc(this[_0x513005(0x1b8)],_0x513005(0x198)),'tooltip':!0x0}),this[_0x513005(0x1c4)][_0x513005(0x1b7)](_0x513005(0x1af))['to'](this,_0x513005(0x1bd),_0x4b25e9=>!_0x4b25e9),this[_0x513005(0x1c4)]['on'](_0x513005(0x1b9),()=>{const _0x40f673=_0x513005;this[_0x40f673(0x196)](_0x40f673(0x194));});}[_0x2e9402(0x1a3)](){const _0x235f06=_0x2e9402;this[_0x235f06(0x1a0)]=new _0x3faae2(this[_0x235f06(0x1b8)]),this[_0x235f06(0x1a0)][_0x235f06(0x1ab)]({'icon':_0x31955d,'label':_0x200ffc(this[_0x235f06(0x1b8)],_0x235f06(0x1be)),'class':_0x235f06(0x1a6),'tooltip':!0x0}),this[_0x235f06(0x1a0)][_0x235f06(0x1b7)](_0x235f06(0x1af))['to'](this,_0x235f06(0x1bd),_0x2b650c=>!_0x2b650c);const _0x4dcf01=new _0x1594af();_0x4dcf01[_0x235f06(0x1ab)]({'content':_0x4d9742}),_0x4dcf01[_0x235f06(0x1c0)]({'attributes':{'class':[_0x235f06(0x1c5)]}}),this[_0x235f06(0x1a0)]['on'](_0x235f06(0x1b9),()=>{const _0x321e94=_0x235f06;this[_0x321e94(0x1a0)][_0x321e94(0x19f)]=_0x321e94(0x1b4),setTimeout(()=>{const _0x38fc12=_0x321e94;this[_0x38fc12(0x1a0)][_0x38fc12(0x19f)]=_0x38fc12(0x1a6);},0x7d0);}),this[_0x235f06(0x1a0)][_0x235f06(0x195)][_0x235f06(0x1a1)](_0x4dcf01);}[_0x2e9402(0x1b3)](_0x218d49){const _0x2cc09e=_0x2e9402;this[_0x2cc09e(0x1aa)]=new _0x3faae2(this[_0x2cc09e(0x1b8)]),this[_0x2cc09e(0x1aa)][_0x2cc09e(0x1ab)]({'icon':_0x4006da,'label':_0x200ffc(this[_0x2cc09e(0x1b8)],_0x2cc09e(0x1c3)),'withText':_0x2cc09e(0x197)==this[_0x2cc09e(0x1c7)][_0x2cc09e(0x19b)],'tooltip':_0x2cc09e(0x197)!=this[_0x2cc09e(0x1c7)][_0x2cc09e(0x19b)],'isOn':_0x218d49}),this[_0x2cc09e(0x1aa)][_0x2cc09e(0x1b7)](_0x2cc09e(0x1af))['to'](this,_0x2cc09e(0x1bd),_0x34113d=>!_0x34113d),this[_0x2cc09e(0x1aa)]['on'](_0x2cc09e(0x1b9),()=>{const _0xcdbbb2=_0x2cc09e,_0x2d9bac=!this[_0xcdbbb2(0x1aa)][_0xcdbbb2(0x1bf)];this[_0xcdbbb2(0x1aa)][_0xcdbbb2(0x1ab)]({'isOn':_0x2d9bac,'icon':_0x2d9bac?_0x4f07e1:_0x4006da}),this[_0xcdbbb2(0x196)](_0xcdbbb2(0x19d),_0x2d9bac);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24b22a=_0x2b76;(function(_0x496035,_0x17dc75){const _0x427576=_0x2b76,_0xc418a2=_0x496035();while(!![]){try{const _0x253a6f=-parseInt(_0x427576(0x158))/0x1+parseInt(_0x427576(0x159))/0x2*(parseInt(_0x427576(0x145))/0x3)+-parseInt(_0x427576(0x14f))/0x4+parseInt(_0x427576(0x13b))/0x5+-parseInt(_0x427576(0x13f))/0x6+-parseInt(_0x427576(0x153))/0x7+parseInt(_0x427576(0x140))/0x8*(parseInt(_0x427576(0x14c))/0x9);if(_0x253a6f===_0x17dc75)break;else _0xc418a2['push'](_0xc418a2['shift']());}catch(_0x393f66){_0xc418a2['push'](_0xc418a2['shift']());}}}(_0x1665,0x8ad1e));import{View as _0xb0e286}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2ba2b6}from'./aisuggestioncontentpartview.js';function _0x1665(){const _0x508b70=['_showUnchangedParts','115301JKGaUY','6RNMNBg','getPartView','queueEmptyPromise','findIndex','addEventListener','hasChanges','ck-ai-suggestion__body__content-parts','_availableActions','set','setTemplate','find','abort','enqueue','warning','createCollection','some','toggleHeader','from','markAsDone','delegate','_emptyPartsWarningView','locale','setContent','ck-ai-suggestion__body','AI_SUGGESTION_NO_PARTS_WARNING','partDefinition','add','first','2411890eYnWab','isVisible','updatePartState','index','6418188ZbroBB','139864lzvEJo','forEach','partsCount','_cachedContentParts','empty-parts-warning','419388olKAPw','hasPendingParts','pending','AI_SUGGESTION_EMPTY_PART_WARNING','length','_areActionsDisabled','updateContentParts','1062FWhizk','_children','updateContent','1958672PulxQh','state','push','hasNonEmptyParts','5050409NQJKcG','div','filter','_updateContentPartsPromiseQueue'];_0x1665=function(){return _0x508b70;};return _0x1665();}function _0x2b76(_0x5b6a97,_0x361fc6){const _0x16657a=_0x1665();return _0x2b76=function(_0x2b7660,_0x24b6c4){_0x2b7660=_0x2b7660-0x12b;let _0x21506a=_0x16657a[_0x2b7660];return _0x21506a;},_0x2b76(_0x5b6a97,_0x361fc6);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x33fe51}from'../../utils/eventnames.js';import{PromiseQueue as _0x286ca6}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x20e02f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x29f1a1}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0xb0e286{[_0x24b22a(0x14d)];[_0x24b22a(0x14a)];[_0x24b22a(0x157)];[_0x24b22a(0x156)];[_0x24b22a(0x133)];[_0x24b22a(0x160)];[_0x24b22a(0x143)]=[];constructor(_0x2ebc59,_0x143ce3){const _0x26e7ad=_0x24b22a;super(_0x2ebc59);const {areActionsDisabled:_0x23fd6f,showUnchangedParts:_0x109777,availableActions:_0x18f7a7}=_0x143ce3;this[_0x26e7ad(0x14a)]=_0x23fd6f,this[_0x26e7ad(0x157)]=_0x109777,this[_0x26e7ad(0x160)]=_0x18f7a7,this[_0x26e7ad(0x161)](_0x26e7ad(0x146),!0x1),this[_0x26e7ad(0x14d)]=this[_0x26e7ad(0x12d)](),this[_0x26e7ad(0x156)]=new _0x286ca6(),this[_0x26e7ad(0x133)]=new _0x20e02f({'id':_0x26e7ad(0x144),'initialContent':_0x29f1a1(_0x2ebc59,_0x26e7ad(0x148)),'level':_0x26e7ad(0x12c)}),this[_0x26e7ad(0x133)][_0x26e7ad(0x13c)]=!0x1,this[_0x26e7ad(0x162)]({'tag':_0x26e7ad(0x154),'attributes':{'class':['ck',_0x26e7ad(0x136)]},'children':[{'tag':_0x26e7ad(0x154),'attributes':{'class':['ck',_0x26e7ad(0x15f)]},'children':this[_0x26e7ad(0x14d)]},this[_0x26e7ad(0x133)]]});}get[_0x24b22a(0x142)](){const _0x36d459=_0x24b22a;return this[_0x36d459(0x14d)][_0x36d459(0x149)];}async[_0x24b22a(0x14b)]({parts:_0x35c405,renderingStrategy:_0x5c33b8,abortSignal:_0x5e9559}){const _0xb51542=_0x24b22a;this[_0xb51542(0x14d)][_0xb51542(0x149)]?_0x35c405[_0xb51542(0x141)](_0x2f6ceb=>{const _0x3d48da=_0xb51542,_0xd5b4da=this[_0x3d48da(0x143)][_0x3d48da(0x15c)](_0x5adca7=>_0x5adca7[_0x3d48da(0x13e)]==_0x2f6ceb[_0x3d48da(0x13e)]);-0x1===_0xd5b4da?this[_0x3d48da(0x143)][_0x3d48da(0x151)](_0x2f6ceb):this[_0x3d48da(0x143)][_0xd5b4da]=_0x2f6ceb;}):this[_0xb51542(0x143)]=_0x35c405;for(const _0x366223 of _0x35c405[_0xb51542(0x155)](_0x753cb5=>_0x753cb5[_0xb51542(0x15e)]))this[_0xb51542(0x156)][_0xb51542(0x12b)](async _0x4e774e=>{const _0x187a79=_0xb51542;let _0x592c75=this[_0x187a79(0x15a)](_0x366223[_0x187a79(0x13e)]);_0x592c75||(_0x592c75=new _0x2ba2b6(this[_0x187a79(0x134)],{'part':_0x366223,'uiIndex':this[_0x187a79(0x14d)][_0x187a79(0x149)]+0x1,'areActionsDisabled':this[_0x187a79(0x14a)],'availableActions':this[_0x187a79(0x160)]}),_0x592c75[_0x187a79(0x132)](..._0x33fe51)['to'](this),this[_0x187a79(0x14d)][_0x187a79(0x139)](_0x592c75),this[_0x187a79(0x146)]=!0x0),0x2===this[_0x187a79(0x14d)][_0x187a79(0x149)]&&this[_0x187a79(0x14d)][_0x187a79(0x13a)][_0x187a79(0x12f)](!0x0),_0x592c75[_0x187a79(0x12f)](this[_0x187a79(0x14d)][_0x187a79(0x149)]>0x1),await _0x592c75[_0x187a79(0x14e)]({'part':_0x366223,'renderingStrategy':_0x5c33b8,'showUnchangedParts':this[_0x187a79(0x157)],'abortSignal':_0x4e774e});});return _0x5e9559?.[_0xb51542(0x15d)](_0xb51542(0x164),()=>{const _0x3997d7=_0xb51542;this[_0x3997d7(0x156)][_0x3997d7(0x164)]();}),this[_0xb51542(0x156)][_0xb51542(0x15b)];}[_0x24b22a(0x13d)](_0x2ff68f,_0x4e6aa8){const _0x5d2b80=_0x24b22a,_0x478743=this[_0x5d2b80(0x15a)](_0x2ff68f);_0x478743&&(_0x478743[_0x5d2b80(0x150)]=_0x4e6aa8),this[_0x5d2b80(0x146)]=_0x5d2b80(0x147)==_0x4e6aa8||Array[_0x5d2b80(0x130)](this[_0x5d2b80(0x14d)])[_0x5d2b80(0x12e)](_0x4d3fc4=>_0x5d2b80(0x147)==_0x4d3fc4[_0x5d2b80(0x150)]);}[_0x24b22a(0x15a)](_0x2fcc77){const _0x37a122=_0x24b22a;return this[_0x37a122(0x14d)][_0x37a122(0x163)](_0x3129bf=>_0x3129bf[_0x37a122(0x138)][_0x37a122(0x13e)]==_0x2fcc77)??null;}[_0x24b22a(0x131)](){const _0x24cac8=_0x24b22a;if(!this[_0x24cac8(0x157)]){const _0x386a8d=!this[_0x24cac8(0x143)][_0x24cac8(0x163)](({hasChanges:_0x249e5d})=>_0x249e5d),_0x150abd=!!this[_0x24cac8(0x143)][_0x24cac8(0x163)](({hasChanges:_0x49d9f9})=>!_0x49d9f9);this[_0x24cac8(0x133)][_0x24cac8(0x13c)]=0x0==this[_0x24cac8(0x14d)][_0x24cac8(0x149)]||_0x150abd,_0x386a8d?this[_0x24cac8(0x133)][_0x24cac8(0x135)](_0x29f1a1(this[_0x24cac8(0x134)],_0x24cac8(0x137))):this[_0x24cac8(0x133)][_0x24cac8(0x135)](_0x29f1a1(this[_0x24cac8(0x134)],_0x24cac8(0x148)));}}get[_0x24b22a(0x152)](){const _0x56a6b7=_0x24b22a;return!!this[_0x56a6b7(0x14d)][_0x56a6b7(0x163)](_0x1ff972=>_0x1ff972[_0x56a6b7(0x138)][_0x56a6b7(0x15e)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e1658=_0x3393;(function(_0x3c5180,_0x207cd6){const _0x3c324a=_0x3393,_0x208266=_0x3c5180();while(!![]){try{const _0x3f4343=-parseInt(_0x3c324a(0x105))/0x1*(parseInt(_0x3c324a(0xe4))/0x2)+parseInt(_0x3c324a(0xcf))/0x3+-parseInt(_0x3c324a(0xbb))/0x4+-parseInt(_0x3c324a(0x109))/0x5*(parseInt(_0x3c324a(0xd9))/0x6)+parseInt(_0x3c324a(0xe3))/0x7+parseInt(_0x3c324a(0xc8))/0x8+parseInt(_0x3c324a(0xd1))/0x9;if(_0x3f4343===_0x207cd6)break;else _0x208266['push'](_0x208266['shift']());}catch(_0x16dc59){_0x208266['push'](_0x208266['shift']());}}}(_0x502f,0xf1d70));import{IconWeb as _0x2d2950}from'@ckeditor/ckeditor5-icons';import{View as _0x4aa873,ButtonView as _0xf9fff,IconView as _0x9544e5,BalloonPanelView as _0x3477c0}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x27fc0c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x2d1ef1}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x57074b}from'./aisuggestionbodyview.js';function _0x3393(_0x14dee9,_0x427368){const _0x502fa9=_0x502f();return _0x3393=function(_0x3393cc,_0x285139){_0x3393cc=_0x3393cc-0xaf;let _0x26baed=_0x502fa9[_0x3393cc];return _0x26baed;},_0x3393(_0x14dee9,_0x427368);}function _0x502f(){const _0x2ca0e1=['areChangesVisible','hasNonEmptyParts','clear','get','4286379EKqtcF','ck-ai-suggestion__container','3797136ZoOAtF','AI_CHAT_SOURCES_HEADER','isLoading','bodyView','removeNavigationItem','ck-ai-suggestion__loader-text','locale','textContent','6vHXYBv','isEnabled','addMany','span','ck-ai-web-source__tooltip-title','length','show','addNavigationItem','.ck-ai-chat','items','7165816QysGIi','394UjXqZj','ck-ai-web-source__tooltip-image','ck-hidden','...','toggleSuggestionDisplayMode','clearErrorState','ck-ai-web-sources','add','_bodyCollection','updateContent','icon','ck\x20ck-ai-web-source','ck-rounded-corners','hide','AI_CHAT_IS_WRITING','ck-ai-suggestion__error-text','favicon','ck-ai-web-source__tooltip-balloon','createCollection','fire','delegate','title','markAsDone','isShowChangesToggleVisible','_createErrorView','open','defaultPositions','errorView','ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-url','content','toggleShowChanges','updateContentParts','5217qMMeCT','ck-ai-web-sources__header','bind','clearLoading','9473670siwYKJ','_blank','.ck-ai-suggestion__error-text','map','_showTooltip','isLoaderVisible','bindTemplate','remove','showError','querySelector','loaderView','source','balloonPanelView','setErrorState','_setupBalloonPanel','ck-ai-web-source__image','pin','northArrowSouthEast','isVisible','ck-ai-suggestion__error','hideError','_createTooltipContentView','setLoading','_createLoaderView','AI_CHAT_GENERIC_ERROR','updateSources','headerView','hostname','substring','_updateTooltipContent','extendTemplate','northArrowSouth','ck-ai-suggestion__loader','small','children','miniToolbarView','element','div','img','url','1241848BrTLUo','sourcesView','set','ck-ai-web-source__tooltip','_hideTooltip','showLoader','hideLoader','setTemplate','bodyCollection','push','isOn','northArrowSouthWest','isErrorVisible','10793088aGzdTt','showChangesToggleView','destroy'];_0x502f=function(){return _0x2ca0e1;};return _0x502f();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4c9446}from'../../utils/eventnames.js';import{AISpinnerView as _0x4ba7b8}from'../aispinner.js';import{getTranslation as _0x347c88}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x4aa873{[_0x3e1658(0xd4)];[_0x3e1658(0xb6)];[_0x3e1658(0xb5)];[_0x3e1658(0x123)];[_0x3e1658(0x113)];[_0x3e1658(0xff)];[_0x3e1658(0xbc)];[_0x3e1658(0xec)];constructor(_0x5d8e8c,_0x371cc3,_0x4049a7){const _0x2c7490=_0x3e1658;super(_0x5d8e8c),this[_0x2c7490(0xec)]=_0x4049a7;const {showDiff:_0x5d5b3c,areActionsDisabled:_0x4408fc,miniToolbarConfig:_0x15221d,hideHeader:_0xab8f8c,showLoader:_0x20bf3f,showUnchangedParts:_0x4eedd1,availableActions:_0x41eaf7}=_0x371cc3;this[_0x2c7490(0xbd)](_0x2c7490(0xcb),!0x1),this[_0x2c7490(0xbd)](_0x2c7490(0x10e),!!_0x20bf3f),this[_0x2c7490(0xbd)](_0x2c7490(0xc7),!0x1),this[_0x2c7490(0xbd)](_0x2c7490(0xd3),!0x1),this[_0x2c7490(0xb5)]=this[_0x2c7490(0xf6)](),_0xab8f8c||(this[_0x2c7490(0x123)]=new _0x2d1ef1(_0x5d8e8c,{'showDiff':_0x5d5b3c}),this[_0x2c7490(0x123)]['on'](_0x2c7490(0x103),(_0x5382f2,_0x677b2f)=>{const _0xcdb66d=_0x2c7490;this[_0xcdb66d(0xcb)]=_0x677b2f[_0xcdb66d(0xc5)],this[_0xcdb66d(0xf7)](_0xcdb66d(0xe8),{'showDiff':_0x677b2f[_0xcdb66d(0xc5)]});}),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0x123)])),this[_0x2c7490(0xd4)]=new _0x57074b(_0x5d8e8c,{'areActionsDisabled':_0x4408fc,'showUnchangedParts':!!_0x4eedd1,'availableActions':_0x41eaf7}),this[_0x2c7490(0xd4)][_0x2c7490(0xf8)](..._0x4c9446)['to'](this),this[_0x2c7490(0xd4)][_0x2c7490(0xb1)]({'attributes':{'class':[this[_0x2c7490(0x10f)]['if'](_0x2c7490(0x10e),_0x2c7490(0xe6)),this[_0x2c7490(0x10f)]['if'](_0x2c7490(0xc7),_0x2c7490(0xe6))]}}),this[_0x2c7490(0xb6)]=new _0x27fc0c(_0x5d8e8c,_0x15221d,_0x5d5b3c),this[_0x2c7490(0xb6)][_0x2c7490(0xf8)](..._0x4c9446)['to'](this),this[_0x2c7490(0xb6)]['on'](_0x2c7490(0x103),(_0x1add03,_0x5e628b)=>{const _0x18242b=_0x2c7490;this[_0x18242b(0xcb)]=_0x5e628b,this[_0x18242b(0xf7)](_0x18242b(0xe8),{'showDiff':_0x5e628b});}),this[_0x2c7490(0xb6)][_0x2c7490(0x107)](_0x2c7490(0xd3))['to'](this),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xd4)]),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xb6)]),this[_0x2c7490(0xbc)]=new AIWebSourcesView(this[_0x2c7490(0xd7)],this[_0x2c7490(0xec)]),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xbc)]),_0x20bf3f&&(this[_0x2c7490(0x113)]=this[_0x2c7490(0x120)](),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0x113)])),this[_0x2c7490(0xff)]=this[_0x2c7490(0xfc)](),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xff)]),this[_0x2c7490(0xc2)]({'tag':_0x2c7490(0xb8),'attributes':{'class':['ck',_0x2c7490(0xd0),_0x2c7490(0xf0)]},'children':this[_0x2c7490(0xb5)]});}async[_0x3e1658(0xed)](_0x110c14){const _0x2ae096=_0x3e1658;await this[_0x2ae096(0xd4)][_0x2ae096(0x104)](_0x110c14);}[_0x3e1658(0x122)](_0x43fe34){const _0x53c5df=_0x3e1658,_0x6ddb6a=this[_0x53c5df(0xbc)],_0x1a05d4=_0x6ddb6a[_0x53c5df(0x115)];_0x6ddb6a[_0x53c5df(0xb5)][_0x53c5df(0xdb)](_0x43fe34[_0x53c5df(0x10c)](_0x4ff56c=>new AIWebSourceView(this[_0x53c5df(0xd7)],_0x4ff56c,_0x1a05d4))),_0x6ddb6a[_0x53c5df(0x11b)]=!0x0;}[_0x3e1658(0xc0)](){const _0x5448bb=_0x3e1658;this[_0x5448bb(0x113)]&&(this[_0x5448bb(0x10e)]=!0x0);}[_0x3e1658(0xc1)](){const _0x179379=_0x3e1658;this[_0x179379(0x113)]&&(this[_0x179379(0x10e)]=!0x1);}[_0x3e1658(0x111)](_0x4fb2ef){const _0x26ad80=_0x3e1658;if(this[_0x26ad80(0xff)]){const _0xb1cb2c=this[_0x26ad80(0xff)][_0x26ad80(0xb7)]?.[_0x26ad80(0x112)](_0x26ad80(0x10b));_0xb1cb2c&&(_0xb1cb2c[_0x26ad80(0xd8)]=_0x4fb2ef),this[_0x26ad80(0xc7)]=!0x0;}}[_0x3e1658(0x11d)](){const _0xb7a196=_0x3e1658;this[_0xb7a196(0xff)]&&(this[_0xb7a196(0xc7)]=!0x1);}[_0x3e1658(0xfa)](){const _0x354837=_0x3e1658;this[_0x354837(0xd4)][_0x354837(0xfa)](),this[_0x354837(0x123)]&&(this[_0x354837(0x123)][_0x354837(0xfb)]=this[_0x354837(0xd4)][_0x354837(0xcc)]);}[_0x3e1658(0x11f)](){const _0x43fe58=_0x3e1658;this[_0x43fe58(0xd3)]=!0x0;}[_0x3e1658(0x108)](){const _0x30d93d=_0x3e1658;this[_0x30d93d(0xd3)]=!0x1;}[_0x3e1658(0x116)](){const _0x291fe6=_0x3e1658;this[_0x291fe6(0xb6)]&&(this[_0x291fe6(0xb6)][_0x291fe6(0xd3)]=!0x0),this[_0x291fe6(0x123)]?.[_0x291fe6(0xc9)]&&(this[_0x291fe6(0x123)][_0x291fe6(0xc9)][_0x291fe6(0xda)]=!0x1);}[_0x3e1658(0xe9)](){const _0x582d82=_0x3e1658;this[_0x582d82(0xb6)]&&(this[_0x582d82(0xb6)][_0x582d82(0xd3)]=!0x1),this[_0x582d82(0x123)]?.[_0x582d82(0xc9)]&&(this[_0x582d82(0x123)][_0x582d82(0xc9)][_0x582d82(0xda)]=!0x0);}[_0x3e1658(0xe0)](_0x2812b4){const _0xc5caa5=_0x3e1658;this[_0xc5caa5(0xb6)][_0xc5caa5(0xe2)][_0xc5caa5(0xeb)](_0x2812b4);}[_0x3e1658(0xd5)](_0xfd530e){const _0x5d842a=_0x3e1658;this[_0x5d842a(0xb6)][_0x5d842a(0xe2)][_0x5d842a(0x110)](_0xfd530e);}[_0x3e1658(0x120)](){const _0x4e3444=_0x3e1658,_0x577be1=new _0x4aa873(this[_0x4e3444(0xd7)]),_0x4f143d=new _0x4ba7b8(_0x4e3444(0xb4));_0x4f143d[_0x4e3444(0x11b)]=!0x0;const _0x4a4a4f=new _0x4aa873(this[_0x4e3444(0xd7)]);return _0x4a4a4f[_0x4e3444(0xc2)]({'tag':_0x4e3444(0xdc),'attributes':{'class':['ck',_0x4e3444(0xd6)]},'children':[_0x347c88(this[_0x4e3444(0xd7)],_0x4e3444(0xf2))]}),_0x577be1[_0x4e3444(0xc2)]({'tag':_0x4e3444(0xb8),'attributes':{'class':['ck',_0x4e3444(0xb3),this[_0x4e3444(0x10f)]['if'](_0x4e3444(0x10e),_0x4e3444(0xe6),_0x3c7ec9=>!_0x3c7ec9)]},'children':[_0x4f143d,_0x4a4a4f]}),_0x577be1;}[_0x3e1658(0xfc)](){const _0x67d0a2=_0x3e1658,_0x33e6d2=new _0x4aa873(this[_0x67d0a2(0xd7)]),_0x1e4a7a=new _0x4aa873(this[_0x67d0a2(0xd7)]);return _0x1e4a7a[_0x67d0a2(0xc2)]({'tag':_0x67d0a2(0xdc),'attributes':{'class':['ck',_0x67d0a2(0xf3)]},'children':[_0x347c88(this[_0x67d0a2(0xd7)],_0x67d0a2(0x121))]}),_0x33e6d2[_0x67d0a2(0xc2)]({'tag':_0x67d0a2(0xb8),'attributes':{'class':['ck',_0x67d0a2(0x11c),this[_0x67d0a2(0x10f)]['if'](_0x67d0a2(0xc7),_0x67d0a2(0xe6),_0x43d3c4=>!_0x43d3c4)]},'children':[_0x1e4a7a]}),_0x33e6d2;}}export class AIWebSourcesView extends _0x4aa873{[_0x3e1658(0xb5)];[_0x3e1658(0x115)];[_0x3e1658(0xc3)];constructor(_0x4a4b2d,_0x22e673){const _0xa6ab2e=_0x3e1658;super(_0x4a4b2d),this[_0xa6ab2e(0xc3)]=_0x22e673,this[_0xa6ab2e(0xb5)]=this[_0xa6ab2e(0xf6)](),this[_0xa6ab2e(0xbd)](_0xa6ab2e(0x11b),!0x1),this[_0xa6ab2e(0xc2)]({'tag':_0xa6ab2e(0xb8),'attributes':{'class':['ck',_0xa6ab2e(0xea),this[_0xa6ab2e(0x10f)]['if'](_0xa6ab2e(0x11b),_0xa6ab2e(0xe6),_0x2d9fb8=>!_0x2d9fb8)]},'children':this[_0xa6ab2e(0xb5)]});const _0x82c741=new _0x4aa873(this[_0xa6ab2e(0xd7)]),_0x20cc90=new _0x9544e5();_0x20cc90[_0xa6ab2e(0x102)]=_0x2d2950,_0x82c741[_0xa6ab2e(0xc2)]({'tag':_0xa6ab2e(0xb8),'attributes':{'class':['ck',_0xa6ab2e(0x106)]},'children':[_0x20cc90,{'tag':_0xa6ab2e(0xdc),'children':[{'text':_0x347c88(this[_0xa6ab2e(0xd7)],_0xa6ab2e(0xd2))}]}]}),this[_0xa6ab2e(0xb5)][_0xa6ab2e(0xeb)](_0x82c741),this[_0xa6ab2e(0x117)](_0x4a4b2d);}[_0x3e1658(0x117)](_0x2fdff3){const _0xc920ce=_0x3e1658;this[_0xc920ce(0x115)]=new _0x3477c0(_0x2fdff3),this[_0xc920ce(0x115)][_0xc920ce(0xb1)]({'attributes':{'class':[_0xc920ce(0xf5)]}}),this[_0xc920ce(0xc3)][_0xc920ce(0xeb)](this[_0xc920ce(0x115)]);}}export class AIWebSourceView extends _0xf9fff{[_0x3e1658(0x115)];[_0x3e1658(0x114)];constructor(_0x3a7b90,_0x26b17e,_0x1c9989){const _0x4d4407=_0x3e1658;super(_0x3a7b90),this[_0x4d4407(0x114)]=_0x26b17e,this[_0x4d4407(0x115)]=_0x1c9989,this[_0x4d4407(0xbd)]({'label':_0x26b17e[_0x4d4407(0xf9)],'class':[_0x4d4407(0xef)],'withText':!0x0});const _0x4d5e2c=this[_0x4d4407(0x10f)];if(this[_0x4d4407(0xb1)]({'on':{'click':_0x4d5e2c['to'](()=>{const _0x4c6e56=_0x4d4407;window[_0x4c6e56(0xfd)](_0x26b17e[_0x4c6e56(0xba)],_0x4c6e56(0x10a));}),'mouseenter':_0x4d5e2c['to'](()=>{const _0xf65a35=_0x4d4407;this[_0xf65a35(0x10d)]();}),'mouseleave':_0x4d5e2c['to'](()=>{const _0x4c2f5d=_0x4d4407;this[_0x4c2f5d(0xbf)]();})}}),_0x26b17e[_0x4d4407(0xf4)]){const _0x3a677e=new _0x4aa873(_0x3a7b90);_0x3a677e[_0x4d4407(0xc2)]({'tag':_0x4d4407(0xb9),'attributes':{'src':_0x26b17e[_0x4d4407(0xf4)]||_0x2d2950,'alt':_0x26b17e[_0x4d4407(0xf9)],'class':[_0x4d4407(0x118)]}}),this[_0x4d4407(0xb5)][_0x4d4407(0xeb)](_0x3a677e);}else this[_0x4d4407(0xbd)](_0x4d4407(0xee),_0x2d2950);}[_0x3e1658(0x11e)](_0x344560,_0x270ec0){const _0x1e461b=_0x3e1658,_0x3b786f=new _0x4aa873(_0x344560),_0x4ddba1=[];let _0x5e7662;_0x270ec0?.[_0x1e461b(0xf4)]?(_0x5e7662=new _0x4aa873(_0x344560),_0x5e7662[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb9),'attributes':{'src':_0x270ec0[_0x1e461b(0xf4)],'alt':_0x270ec0[_0x1e461b(0xf9)],'class':[_0x1e461b(0xe5)]}})):(_0x5e7662=new _0x9544e5(),_0x5e7662[_0x1e461b(0x102)]=_0x2d2950,_0x5e7662[_0x1e461b(0xb1)]({'attributes':{'alt':_0x270ec0[_0x1e461b(0xf9)],'class':[_0x1e461b(0xe5)]}})),_0x4ddba1[_0x1e461b(0xc4)](_0x5e7662);const _0x31ac2a=new _0x4aa873(_0x344560);_0x31ac2a[_0x1e461b(0xc2)]({'tag':'a','attributes':{'class':[_0x1e461b(0x101)],'href':_0x270ec0[_0x1e461b(0xba)]},'children':[{'text':new URL(_0x270ec0[_0x1e461b(0xba)])?.[_0x1e461b(0x124)]}]}),_0x4ddba1[_0x1e461b(0xc4)](_0x31ac2a);const _0x3e3823=new _0x4aa873(_0x344560);_0x3e3823[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb8),'attributes':{'class':[_0x1e461b(0x100)]},'children':_0x4ddba1});const _0x2cfec7=new _0x4aa873(_0x344560);return _0x2cfec7[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xdc),'attributes':{'class':[_0x1e461b(0x100),_0x1e461b(0xdd)]},'children':[{'text':_0x270ec0[_0x1e461b(0xf9)][_0x1e461b(0xde)]>0x190?_0x270ec0[_0x1e461b(0xf9)][_0x1e461b(0xaf)](0x0,0x190)+_0x1e461b(0xe7):_0x270ec0[_0x1e461b(0xf9)]}]}),_0x3b786f[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb8),'attributes':{'class':['ck',_0x1e461b(0xbe)]},'children':[_0x3e3823,_0x2cfec7]}),_0x3b786f;}[_0x3e1658(0x10d)](){const _0xe7e8ac=_0x3e1658;this[_0xe7e8ac(0xb0)](),this[_0xe7e8ac(0x115)][_0xe7e8ac(0x119)]({'target':this[_0xe7e8ac(0xb7)],'positions':[_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0xb2)],_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0xc6)],_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0x11a)]],'limiter':document[_0xe7e8ac(0x112)](_0xe7e8ac(0xe1))}),this[_0xe7e8ac(0x115)][_0xe7e8ac(0xdf)]();}[_0x3e1658(0xbf)](){const _0x37b5a1=_0x3e1658;this[_0x37b5a1(0x115)][_0x37b5a1(0xf1)]();}[_0x3e1658(0xb0)](){const _0x22118d=_0x3e1658;this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xce)](0x0)?.[_0x22118d(0xca)](),this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xcd)]();const _0x3874de=this[_0x22118d(0x11e)](this[_0x22118d(0xd7)],this[_0x22118d(0x114)]);this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xeb)](_0x3874de);}}
|
|
23
|
+
const _0x2bd136=_0x5bd3;function _0x1211(){const _0x26c867=['defaultPositions','.ck-ai-chat','icon','querySelector','northArrowSouthEast','ck-ai-suggestion__container','hasNonEmptyParts','setTemplate','ck-ai-suggestion__error','hide','6033269TXqmMa','isShowChangesToggleVisible','url','ck-ai-web-source__tooltip-url','ck-ai-web-sources','title','2pokDjK','content','map','removeNavigationItem','isEnabled','ck-hidden','84TPfqqV','areChangesVisible','addNavigationItem','clearLoading','element','small','createCollection','addMany','substring','children','ck-ai-web-source__tooltip-image','delegate','ck-ai-web-source__tooltip-title','source','AI_CHAT_SOURCES_HEADER','destroy','isErrorVisible','_bodyCollection','span','clear','1313189Cplwjj','AI_CHAT_GENERIC_ERROR','div','sourcesView','northArrowSouth','isOn','hideLoader','_updateTooltipContent','open','_showTooltip','744dYJwRw','clearErrorState','AI_CHAT_IS_WRITING','.ck-ai-suggestion__error-text','toggleSuggestionDisplayMode','ck-ai-suggestion__loader','ck-ai-suggestion__loader-text','markAsDone','push','get','1640215cabWpN','_createTooltipContentView','updateContentParts','12132wfCAAp','36063SxcUNW','bodyView','showError','pin','_setupBalloonPanel','remove','setLoading','7147220HiSuhc','showLoader','fire','favicon','img','balloonPanelView','12DRDwlB','length','isLoaderVisible','...','errorView','ck-ai-web-sources__header','ck-ai-web-source__tooltip-row','northArrowSouthWest','isVisible','_createLoaderView','_createErrorView','setErrorState','246393BJgQyq','loaderView','updateSources','showChangesToggleView','ck-rounded-corners','add','headerView','isLoading','bindTemplate','_blank','939MEpIKq','miniToolbarView','extendTemplate','hostname','show','toggleShowChanges','bodyCollection','_hideTooltip','ck-ai-web-source__image','textContent','items','hideError','ck\x20ck-ai-web-source','locale','bind','updateContent','set','ck-ai-suggestion__error-text','ck-ai-web-source__tooltip-balloon','ck-ai-web-source__tooltip'];_0x1211=function(){return _0x26c867;};return _0x1211();}(function(_0x50ef8a,_0x34a1f4){const _0x109096=_0x5bd3,_0x413f7a=_0x50ef8a();while(!![]){try{const _0x25e846=-parseInt(_0x109096(0x1b9))/0x1*(parseInt(_0x109096(0x19f))/0x2)+-parseInt(_0x109096(0x1f4))/0x3*(-parseInt(_0x109096(0x1d0))/0x4)+parseInt(_0x109096(0x1cd))/0x5+parseInt(_0x109096(0x1a5))/0x6*(parseInt(_0x109096(0x1ea))/0x7)+parseInt(_0x109096(0x1c3))/0x8*(parseInt(_0x109096(0x1d1))/0x9)+-parseInt(_0x109096(0x1d8))/0xa+-parseInt(_0x109096(0x199))/0xb*(-parseInt(_0x109096(0x1de))/0xc);if(_0x25e846===_0x34a1f4)break;else _0x413f7a['push'](_0x413f7a['shift']());}catch(_0x3ce97e){_0x413f7a['push'](_0x413f7a['shift']());}}}(_0x1211,0xa1f51));import{IconWeb as _0x1d2dc8}from'@ckeditor/ckeditor5-icons';import{View as _0x49c3db,ButtonView as _0x32f137,IconView as _0x33aba6,BalloonPanelView as _0x342216}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0xc7580d}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x204e6e}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5793ad}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x43504f}from'../../utils/eventnames.js';import{AISpinnerView as _0x2e0848}from'../aispinner.js';import{getTranslation as _0x251a5e}from'../../utils/common-translations.js';function _0x5bd3(_0x1b534a,_0x3e9a41){const _0x1211e1=_0x1211();return _0x5bd3=function(_0x5bd304,_0x25148b){_0x5bd304=_0x5bd304-0x198;let _0x449329=_0x1211e1[_0x5bd304];return _0x449329;},_0x5bd3(_0x1b534a,_0x3e9a41);}export class AISuggestionContainerView extends _0x49c3db{[_0x2bd136(0x1d2)];[_0x2bd136(0x1f5)];[_0x2bd136(0x1ae)];[_0x2bd136(0x1f0)];[_0x2bd136(0x1eb)];[_0x2bd136(0x1e2)];[_0x2bd136(0x1bc)];[_0x2bd136(0x1b6)];constructor(_0x31a50e,_0x589062,_0x9e2a60){const _0x5a111d=_0x2bd136;super(_0x31a50e),this[_0x5a111d(0x1b6)]=_0x9e2a60;const {showDiff:_0x4dbbd8,areActionsDisabled:_0x4731e0,miniToolbarConfig:_0xb5e3c2,hideHeader:_0x4ebe5e,showLoader:_0x1c6cff,showUnchangedParts:_0x4f8c3b,availableActions:_0x328594}=_0x589062;this[_0x5a111d(0x204)](_0x5a111d(0x1a6),!0x1),this[_0x5a111d(0x204)](_0x5a111d(0x1e0),!!_0x1c6cff),this[_0x5a111d(0x204)](_0x5a111d(0x1b5),!0x1),this[_0x5a111d(0x204)](_0x5a111d(0x1f1),!0x1),this[_0x5a111d(0x1ae)]=this[_0x5a111d(0x1ab)](),_0x4ebe5e||(this[_0x5a111d(0x1f0)]=new _0x204e6e(_0x31a50e,{'showDiff':_0x4dbbd8}),this[_0x5a111d(0x1f0)]['on'](_0x5a111d(0x1f9),(_0x4f214e,_0x389405)=>{const _0x2cd425=_0x5a111d;this[_0x2cd425(0x1a6)]=_0x389405[_0x2cd425(0x1be)],this[_0x2cd425(0x1da)](_0x2cd425(0x1c7),{'showDiff':_0x389405[_0x2cd425(0x1be)]});}),this[_0x5a111d(0x1ae)][_0x5a111d(0x1ef)](this[_0x5a111d(0x1f0)])),this[_0x5a111d(0x1d2)]=new _0x5793ad(_0x31a50e,{'areActionsDisabled':_0x4731e0,'showUnchangedParts':!!_0x4f8c3b,'availableActions':_0x328594}),this[_0x5a111d(0x1d2)][_0x5a111d(0x1b0)](..._0x43504f)['to'](this),this[_0x5a111d(0x1d2)][_0x5a111d(0x1f6)]({'attributes':{'class':[this[_0x5a111d(0x1f2)]['if'](_0x5a111d(0x1e0),_0x5a111d(0x1a4)),this[_0x5a111d(0x1f2)]['if'](_0x5a111d(0x1b5),_0x5a111d(0x1a4))]}}),this[_0x5a111d(0x1f5)]=new _0xc7580d(_0x31a50e,_0xb5e3c2,_0x4dbbd8),this[_0x5a111d(0x1f5)][_0x5a111d(0x1b0)](..._0x43504f)['to'](this),this[_0x5a111d(0x1f5)]['on'](_0x5a111d(0x1f9),(_0x7b950e,_0x322a6e)=>{const _0x42e56b=_0x5a111d;this[_0x42e56b(0x1a6)]=_0x322a6e,this[_0x42e56b(0x1da)](_0x42e56b(0x1c7),{'showDiff':_0x322a6e});}),this[_0x5a111d(0x1f5)][_0x5a111d(0x202)](_0x5a111d(0x1f1))['to'](this),this[_0x5a111d(0x1ae)][_0x5a111d(0x1ef)](this[_0x5a111d(0x1d2)]),this[_0x5a111d(0x1ae)][_0x5a111d(0x1ef)](this[_0x5a111d(0x1f5)]),this[_0x5a111d(0x1bc)]=new AIWebSourcesView(this[_0x5a111d(0x201)],this[_0x5a111d(0x1b6)]),this[_0x5a111d(0x1ae)][_0x5a111d(0x1ef)](this[_0x5a111d(0x1bc)]),_0x1c6cff&&(this[_0x5a111d(0x1eb)]=this[_0x5a111d(0x1e7)](),this[_0x5a111d(0x1ae)][_0x5a111d(0x1ef)](this[_0x5a111d(0x1eb)])),this[_0x5a111d(0x1e2)]=this[_0x5a111d(0x1e8)](),this[_0x5a111d(0x1ae)][_0x5a111d(0x1ef)](this[_0x5a111d(0x1e2)]),this[_0x5a111d(0x20f)]({'tag':_0x5a111d(0x1bb),'attributes':{'class':['ck',_0x5a111d(0x20d),_0x5a111d(0x1ee)]},'children':this[_0x5a111d(0x1ae)]});}async[_0x2bd136(0x203)](_0x5db51f){const _0x375a08=_0x2bd136;await this[_0x375a08(0x1d2)][_0x375a08(0x1cf)](_0x5db51f);}[_0x2bd136(0x1ec)](_0x8dba3e){const _0x16c93e=_0x2bd136,_0x397160=this[_0x16c93e(0x1bc)],_0x2aec56=_0x397160[_0x16c93e(0x1dd)];_0x397160[_0x16c93e(0x1ae)][_0x16c93e(0x1ac)](_0x8dba3e[_0x16c93e(0x1a1)](_0x2dcdc9=>new AIWebSourceView(this[_0x16c93e(0x201)],_0x2dcdc9,_0x2aec56))),_0x397160[_0x16c93e(0x1e6)]=!0x0;}[_0x2bd136(0x1d9)](){const _0x55ff50=_0x2bd136;this[_0x55ff50(0x1eb)]&&(this[_0x55ff50(0x1e0)]=!0x0);}[_0x2bd136(0x1bf)](){const _0x1c8795=_0x2bd136;this[_0x1c8795(0x1eb)]&&(this[_0x1c8795(0x1e0)]=!0x1);}[_0x2bd136(0x1d3)](_0x4f8fea){const _0x1b60b4=_0x2bd136;if(this[_0x1b60b4(0x1e2)]){const _0x13744e=this[_0x1b60b4(0x1e2)][_0x1b60b4(0x1a9)]?.[_0x1b60b4(0x20b)](_0x1b60b4(0x1c6));_0x13744e&&(_0x13744e[_0x1b60b4(0x1fd)]=_0x4f8fea),this[_0x1b60b4(0x1b5)]=!0x0;}}[_0x2bd136(0x1ff)](){const _0x5b774a=_0x2bd136;this[_0x5b774a(0x1e2)]&&(this[_0x5b774a(0x1b5)]=!0x1);}[_0x2bd136(0x1ca)](){const _0x4f7078=_0x2bd136;this[_0x4f7078(0x1d2)][_0x4f7078(0x1ca)](),this[_0x4f7078(0x1f0)]&&(this[_0x4f7078(0x1f0)][_0x4f7078(0x19a)]=this[_0x4f7078(0x1d2)][_0x4f7078(0x20e)]);}[_0x2bd136(0x1d7)](){const _0x5c40f4=_0x2bd136;this[_0x5c40f4(0x1f1)]=!0x0;}[_0x2bd136(0x1a8)](){const _0x319ecc=_0x2bd136;this[_0x319ecc(0x1f1)]=!0x1;}[_0x2bd136(0x1e9)](){const _0x49a56d=_0x2bd136;this[_0x49a56d(0x1f5)]&&(this[_0x49a56d(0x1f5)][_0x49a56d(0x1f1)]=!0x0),this[_0x49a56d(0x1f0)]?.[_0x49a56d(0x1ed)]&&(this[_0x49a56d(0x1f0)][_0x49a56d(0x1ed)][_0x49a56d(0x1a3)]=!0x1);}[_0x2bd136(0x1c4)](){const _0x29510d=_0x2bd136;this[_0x29510d(0x1f5)]&&(this[_0x29510d(0x1f5)][_0x29510d(0x1f1)]=!0x1),this[_0x29510d(0x1f0)]?.[_0x29510d(0x1ed)]&&(this[_0x29510d(0x1f0)][_0x29510d(0x1ed)][_0x29510d(0x1a3)]=!0x0);}[_0x2bd136(0x1a7)](_0x62ada){const _0x3c1746=_0x2bd136;this[_0x3c1746(0x1f5)][_0x3c1746(0x1fe)][_0x3c1746(0x1ef)](_0x62ada);}[_0x2bd136(0x1a2)](_0x15201e){const _0x1f1be9=_0x2bd136;this[_0x1f1be9(0x1f5)][_0x1f1be9(0x1fe)][_0x1f1be9(0x1d6)](_0x15201e);}[_0x2bd136(0x1e7)](){const _0x5c0066=_0x2bd136,_0x5ebf69=new _0x49c3db(this[_0x5c0066(0x201)]),_0x187477=new _0x2e0848(_0x5c0066(0x1aa));_0x187477[_0x5c0066(0x1e6)]=!0x0;const _0x4755bd=new _0x49c3db(this[_0x5c0066(0x201)]);return _0x4755bd[_0x5c0066(0x20f)]({'tag':_0x5c0066(0x1b7),'attributes':{'class':['ck',_0x5c0066(0x1c9)]},'children':[_0x251a5e(this[_0x5c0066(0x201)],_0x5c0066(0x1c5))]}),_0x5ebf69[_0x5c0066(0x20f)]({'tag':_0x5c0066(0x1bb),'attributes':{'class':['ck',_0x5c0066(0x1c8),this[_0x5c0066(0x1f2)]['if'](_0x5c0066(0x1e0),_0x5c0066(0x1a4),_0x3d2542=>!_0x3d2542)]},'children':[_0x187477,_0x4755bd]}),_0x5ebf69;}[_0x2bd136(0x1e8)](){const _0x34c48c=_0x2bd136,_0x45eedc=new _0x49c3db(this[_0x34c48c(0x201)]),_0x58e0e5=new _0x49c3db(this[_0x34c48c(0x201)]);return _0x58e0e5[_0x34c48c(0x20f)]({'tag':_0x34c48c(0x1b7),'attributes':{'class':['ck',_0x34c48c(0x205)]},'children':[_0x251a5e(this[_0x34c48c(0x201)],_0x34c48c(0x1ba))]}),_0x45eedc[_0x34c48c(0x20f)]({'tag':_0x34c48c(0x1bb),'attributes':{'class':['ck',_0x34c48c(0x210),this[_0x34c48c(0x1f2)]['if'](_0x34c48c(0x1b5),_0x34c48c(0x1a4),_0x37febf=>!_0x37febf)]},'children':[_0x58e0e5]}),_0x45eedc;}}export class AIWebSourcesView extends _0x49c3db{[_0x2bd136(0x1ae)];[_0x2bd136(0x1dd)];[_0x2bd136(0x1fa)];constructor(_0x26fe65,_0x4808bc){const _0x2a3a89=_0x2bd136;super(_0x26fe65),this[_0x2a3a89(0x1fa)]=_0x4808bc,this[_0x2a3a89(0x1ae)]=this[_0x2a3a89(0x1ab)](),this[_0x2a3a89(0x204)](_0x2a3a89(0x1e6),!0x1),this[_0x2a3a89(0x20f)]({'tag':_0x2a3a89(0x1bb),'attributes':{'class':['ck',_0x2a3a89(0x19d),this[_0x2a3a89(0x1f2)]['if'](_0x2a3a89(0x1e6),_0x2a3a89(0x1a4),_0x2fc44c=>!_0x2fc44c)]},'children':this[_0x2a3a89(0x1ae)]});const _0x23d965=new _0x49c3db(this[_0x2a3a89(0x201)]),_0xf56fbb=new _0x33aba6();_0xf56fbb[_0x2a3a89(0x1a0)]=_0x1d2dc8,_0x23d965[_0x2a3a89(0x20f)]({'tag':_0x2a3a89(0x1bb),'attributes':{'class':['ck',_0x2a3a89(0x1e3)]},'children':[_0xf56fbb,{'tag':_0x2a3a89(0x1b7),'children':[{'text':_0x251a5e(this[_0x2a3a89(0x201)],_0x2a3a89(0x1b3))}]}]}),this[_0x2a3a89(0x1ae)][_0x2a3a89(0x1ef)](_0x23d965),this[_0x2a3a89(0x1d5)](_0x26fe65);}[_0x2bd136(0x1d5)](_0x5e10d6){const _0x5dd265=_0x2bd136;this[_0x5dd265(0x1dd)]=new _0x342216(_0x5e10d6),this[_0x5dd265(0x1dd)][_0x5dd265(0x1f6)]({'attributes':{'class':[_0x5dd265(0x206)]}}),this[_0x5dd265(0x1fa)][_0x5dd265(0x1ef)](this[_0x5dd265(0x1dd)]);}}export class AIWebSourceView extends _0x32f137{[_0x2bd136(0x1dd)];[_0x2bd136(0x1b2)];constructor(_0x1c39bc,_0x533f36,_0x5c1b87){const _0x377758=_0x2bd136;super(_0x1c39bc),this[_0x377758(0x1b2)]=_0x533f36,this[_0x377758(0x1dd)]=_0x5c1b87,this[_0x377758(0x204)]({'label':_0x533f36[_0x377758(0x19e)],'class':[_0x377758(0x200)],'withText':!0x0});const _0x574459=this[_0x377758(0x1f2)];if(this[_0x377758(0x1f6)]({'on':{'click':_0x574459['to'](()=>{const _0xd24481=_0x377758;window[_0xd24481(0x1c1)](_0x533f36[_0xd24481(0x19b)],_0xd24481(0x1f3));}),'mouseenter':_0x574459['to'](()=>{const _0x2e9c83=_0x377758;this[_0x2e9c83(0x1c2)]();}),'mouseleave':_0x574459['to'](()=>{const _0x5b65de=_0x377758;this[_0x5b65de(0x1fb)]();})}}),_0x533f36[_0x377758(0x1db)]){const _0x2344b3=new _0x49c3db(_0x1c39bc);_0x2344b3[_0x377758(0x20f)]({'tag':_0x377758(0x1dc),'attributes':{'src':_0x533f36[_0x377758(0x1db)]||_0x1d2dc8,'alt':_0x533f36[_0x377758(0x19e)],'class':[_0x377758(0x1fc)]}}),this[_0x377758(0x1ae)][_0x377758(0x1ef)](_0x2344b3);}else this[_0x377758(0x204)](_0x377758(0x20a),_0x1d2dc8);}[_0x2bd136(0x1ce)](_0x463e03,_0x366bd5){const _0x3710ae=_0x2bd136,_0x4359e6=new _0x49c3db(_0x463e03),_0x2b4b4f=[];let _0x3a9ca8;_0x366bd5?.[_0x3710ae(0x1db)]?(_0x3a9ca8=new _0x49c3db(_0x463e03),_0x3a9ca8[_0x3710ae(0x20f)]({'tag':_0x3710ae(0x1dc),'attributes':{'src':_0x366bd5[_0x3710ae(0x1db)],'alt':_0x366bd5[_0x3710ae(0x19e)],'class':[_0x3710ae(0x1af)]}})):(_0x3a9ca8=new _0x33aba6(),_0x3a9ca8[_0x3710ae(0x1a0)]=_0x1d2dc8,_0x3a9ca8[_0x3710ae(0x1f6)]({'attributes':{'alt':_0x366bd5[_0x3710ae(0x19e)],'class':[_0x3710ae(0x1af)]}})),_0x2b4b4f[_0x3710ae(0x1cb)](_0x3a9ca8);const _0x2c040b=new _0x49c3db(_0x463e03);_0x2c040b[_0x3710ae(0x20f)]({'tag':'a','attributes':{'class':[_0x3710ae(0x19c)],'href':_0x366bd5[_0x3710ae(0x19b)]},'children':[{'text':new URL(_0x366bd5[_0x3710ae(0x19b)])?.[_0x3710ae(0x1f7)]}]}),_0x2b4b4f[_0x3710ae(0x1cb)](_0x2c040b);const _0x11c49a=new _0x49c3db(_0x463e03);_0x11c49a[_0x3710ae(0x20f)]({'tag':_0x3710ae(0x1bb),'attributes':{'class':[_0x3710ae(0x1e4)]},'children':_0x2b4b4f});const _0x44f253=new _0x49c3db(_0x463e03);return _0x44f253[_0x3710ae(0x20f)]({'tag':_0x3710ae(0x1b7),'attributes':{'class':[_0x3710ae(0x1e4),_0x3710ae(0x1b1)]},'children':[{'text':_0x366bd5[_0x3710ae(0x19e)][_0x3710ae(0x1df)]>0x190?_0x366bd5[_0x3710ae(0x19e)][_0x3710ae(0x1ad)](0x0,0x190)+_0x3710ae(0x1e1):_0x366bd5[_0x3710ae(0x19e)]}]}),_0x4359e6[_0x3710ae(0x20f)]({'tag':_0x3710ae(0x1bb),'attributes':{'class':['ck',_0x3710ae(0x207)]},'children':[_0x11c49a,_0x44f253]}),_0x4359e6;}[_0x2bd136(0x1c2)](){const _0x319d87=_0x2bd136;this[_0x319d87(0x1c0)](),this[_0x319d87(0x1dd)][_0x319d87(0x1d4)]({'target':this[_0x319d87(0x1a9)],'positions':[_0x342216[_0x319d87(0x208)][_0x319d87(0x1bd)],_0x342216[_0x319d87(0x208)][_0x319d87(0x1e5)],_0x342216[_0x319d87(0x208)][_0x319d87(0x20c)]],'limiter':document[_0x319d87(0x20b)](_0x319d87(0x209))}),this[_0x319d87(0x1dd)][_0x319d87(0x1f8)]();}[_0x2bd136(0x1fb)](){const _0x3ecec4=_0x2bd136;this[_0x3ecec4(0x1dd)][_0x3ecec4(0x198)]();}[_0x2bd136(0x1c0)](){const _0x39ac54=_0x2bd136;this[_0x39ac54(0x1dd)][_0x39ac54(0x1a0)][_0x39ac54(0x1cc)](0x0)?.[_0x39ac54(0x1b4)](),this[_0x39ac54(0x1dd)][_0x39ac54(0x1a0)][_0x39ac54(0x1b8)]();const _0x545434=this[_0x39ac54(0x1ce)](this[_0x39ac54(0x201)],this[_0x39ac54(0x1b2)]);this[_0x39ac54(0x1dd)][_0x39ac54(0x1a0)][_0x39ac54(0x1ef)](_0x545434);}}
|