@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.0-alpha.7
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.d.ts +10 -2
- 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/model/aichatmodels.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/aichat/utils/scrollmanager.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/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/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/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/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x67d558=_0x43a1;(function(_0x3599bb,_0x45175a){const _0x2f26fe=_0x43a1,_0x308ac2=_0x3599bb();while(!![]){try{const _0x2ed784=-parseInt(_0x2f26fe(0x12f))/0x1*(parseInt(_0x2f26fe(0x11b))/0x2)+parseInt(_0x2f26fe(0x125))/0x3+parseInt(_0x2f26fe(0x122))/0x4*(-parseInt(_0x2f26fe(0x129))/0x5)+parseInt(_0x2f26fe(0x127))/0x6*(-parseInt(_0x2f26fe(0x12d))/0x7)+parseInt(_0x2f26fe(0x119))/0x8+parseInt(_0x2f26fe(0x12e))/0x9*(parseInt(_0x2f26fe(0x133))/0xa)+parseInt(_0x2f26fe(0x11f))/0xb;if(_0x2ed784===_0x45175a)break;else _0x308ac2['push'](_0x308ac2['shift']());}catch(_0x507ab3){_0x308ac2['push'](_0x308ac2['shift']());}}}(_0x5622,0x643ad));import{EmitterMixin as _0x4e696a}from'ckeditor5/src/utils.js';function _0x43a1(_0x164f32,_0x55a819){const _0x5622f0=_0x5622();return _0x43a1=function(_0x43a1a5,_0x5227b3){_0x43a1a5=_0x43a1a5-0x119;let _0x44a64d=_0x5622f0[_0x43a1a5];return _0x44a64d;},_0x43a1(_0x164f32,_0x55a819);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x67d558(0x11a)];function _0x5622(){const _0x2e64d3=['capabilitiesUpdated','6RaUIae','reset','setReasoning','init','9589294SmfTLJ','webSearch','setWebSearch','12352CJBUTu','isWebSearchEnabled','reasoning','43671HafWOq','_isWebSearchEnabled','2283018yCBvEO','fire','5dsOVLc','isReasoningEnabled','getCapabilitiesConfig','toggleReasoning','14MstGqd','14571FWoLds','159682nfEeFM','getCapabilitiesRequestData','_isReasoningEnabled','toggleWebSearch','2630ImrSHz','2732584UhIBbZ'];_0x5622=function(){return _0x2e64d3;};return _0x5622();}export class AICapabilities extends _0x4e696a(){[_0x67d558(0x126)];[_0x67d558(0x131)];constructor(){const _0x1db62=_0x67d558;super(),this[_0x1db62(0x126)]=!0x1,this[_0x1db62(0x131)]=!0x1;}[_0x67d558(0x11e)](){const _0x373206=_0x67d558;this[_0x373206(0x11c)]();}[_0x67d558(0x11c)](){const _0x20ebd2=_0x67d558;this[_0x20ebd2(0x121)](!0x1),this[_0x20ebd2(0x11d)](!0x1);}[_0x67d558(0x12b)](){const _0x3738ad=_0x67d558;return{'isWebSearchEnabled':this[_0x3738ad(0x126)],'isReasoningEnabled':this[_0x3738ad(0x131)]};}static[_0x67d558(0x130)](_0x20d989){const _0x1d31dd=_0x67d558,_0x287823={};return _0x20d989&&_0x20d989[_0x1d31dd(0x123)]&&(_0x287823[_0x1d31dd(0x120)]={}),_0x20d989&&_0x20d989[_0x1d31dd(0x12a)]&&(_0x287823[_0x1d31dd(0x124)]={}),_0x287823;}[_0x67d558(0x132)](){const _0x5c0802=_0x67d558;this[_0x5c0802(0x121)](!this[_0x5c0802(0x126)]);}[_0x67d558(0x12c)](){const _0x23923e=_0x67d558;this[_0x23923e(0x11d)](!this[_0x23923e(0x131)]);}[_0x67d558(0x121)](_0x24088d){const _0x1037b9=_0x67d558;_0x24088d!==this[_0x1037b9(0x126)]&&(this[_0x1037b9(0x126)]=_0x24088d,this[_0x1037b9(0x128)](_0x1037b9(0x11a),this[_0x1037b9(0x12b)]()));}[_0x67d558(0x11d)](_0x19c937){const _0x38861b=_0x67d558;_0x19c937!==this[_0x38861b(0x131)]&&(this[_0x38861b(0x131)]=_0x19c937,this[_0x38861b(0x128)](_0x38861b(0x11a),this[_0x38861b(0x12b)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x317a(_0x427c28,_0x50bbb6){var _0x537998=_0x5379();return _0x317a=function(_0x317a35,_0x389f45){_0x317a35=_0x317a35-0x170;var _0x4018c5=_0x537998[_0x317a35];return _0x4018c5;},_0x317a(_0x427c28,_0x50bbb6);}(function(_0x8e2fd8,_0xab515b){var _0x51d1c2=_0x317a,_0x253188=_0x8e2fd8();while(!![]){try{var _0x3427f5=-parseInt(_0x51d1c2(0x184))/0x1+parseInt(_0x51d1c2(0x17d))/0x2*(-parseInt(_0x51d1c2(0x186))/0x3)+parseInt(_0x51d1c2(0x179))/0x4*(parseInt(_0x51d1c2(0x178))/0x5)+parseInt(_0x51d1c2(0x172))/0x6+parseInt(_0x51d1c2(0x180))/0x7*(-parseInt(_0x51d1c2(0x177))/0x8)+-parseInt(_0x51d1c2(0x173))/0x9*(parseInt(_0x51d1c2(0x183))/0xa)+parseInt(_0x51d1c2(0x17a))/0xb;if(_0x3427f5===_0xab515b)break;else _0x253188['push'](_0x253188['shift']());}catch(_0x190c4e){_0x253188['push'](_0x253188['shift']());}}}(_0x5379,0x67654));export var AIContextItemType;function _0x5379(){var _0x4400d1=['3614896ihuzdV','5kaqnlt','2557524FPqxCT','8565238imtpcS','web-resource','SELECTION','2wpAzaQ','TEXT','document','7LCGNbd','MARKDOWN','text','10ZUebzs','383547MmDHTS','html','2366862hbAHUK','FILE','HTML','DOCUMENT','selection','4314966iaBfCz','803961vOrbGp','markdown','file','URL'];_0x5379=function(){return _0x4400d1;};return _0x5379();}!function(_0x39e790){var _0x4cd266=_0x317a;_0x39e790[_0x4cd266(0x187)]=_0x4cd266(0x175),_0x39e790[_0x4cd266(0x170)]=_0x4cd266(0x17f),_0x39e790[_0x4cd266(0x176)]=_0x4cd266(0x17b),_0x39e790[_0x4cd266(0x17e)]=_0x4cd266(0x182),_0x39e790[_0x4cd266(0x17c)]=_0x4cd266(0x171);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x521773){var _0x23a60d=_0x317a;_0x521773[_0x23a60d(0x17e)]=_0x23a60d(0x182),_0x521773[_0x23a60d(0x181)]=_0x23a60d(0x174),_0x521773[_0x23a60d(0x188)]=_0x23a60d(0x185);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7fecb1=_0xf98c;(function(_0x3b3893,_0x366e4c){const _0x5ed2b6=_0xf98c,_0xe692e8=_0x3b3893();while(!![]){try{const _0x4b2bda=parseInt(_0x5ed2b6(0x6c))/0x1+parseInt(_0x5ed2b6(0x7c))/0x2*(-parseInt(_0x5ed2b6(0x73))/0x3)+parseInt(_0x5ed2b6(0x72))/0x4+-parseInt(_0x5ed2b6(0x8a))/0x5+-parseInt(_0x5ed2b6(0x92))/0x6+-parseInt(_0x5ed2b6(0x95))/0x7+parseInt(_0x5ed2b6(0xa5))/0x8;if(_0x4b2bda===_0x366e4c)break;else _0xe692e8['push'](_0xe692e8['shift']());}catch(_0x308cea){_0xe692e8['push'](_0xe692e8['shift']());}}}(_0x83e1,0xc0555));function _0xf98c(_0x23113a,_0x239383){const _0x83e110=_0x83e1();return _0xf98c=function(_0xf98c08,_0x42bb3f){_0xf98c08=_0xf98c08-0x66;let _0x347e50=_0x83e110[_0xf98c08];return _0x347e50;},_0xf98c(_0x23113a,_0x239383);}import{CKEditorError as _0x3b7e58,EmitterMixin as _0x1d4046,logWarning as _0x1865c0,uid as _0x7f97ee}from'ckeditor5/src/utils.js';import{AIReply as _0x4e2095,isIgnoredReplyType as _0x1b1b34,isValidReplyType as _0xb82358,isReplyTitleType as _0x51b4ab,isSourceType as _0x1b291b}from'./aireply.js';function _0x83e1(){const _0x4004f9=['webSearchStarted','getStream','_isReasoning','actionCallId','interactionStopped','web-search','8050554VrFtpW','replyCreated','interactionFinished','5684567fiRvFJ','splice','sources','replyContentUpdated','source','modification-delta','interactionStarted','conversationTitle','interactionCreated','length','event','destroy','data','textDelta','abortController','content','28899536VnfORy','getDocumentContext','done','find','connector','message-metadata','ai-interaction-invalid-event-type','reasoningFinished','replyChangeGroupStateUpdated','currentRequest','ai-chat-interaction-error','_finalizeInteraction','293293egmLnj','getReply','fire','reasoningStarted','abort','error','1303428sIdPou','457437ieTQcD','forEach','sendRequest','messageId','delegate','stopListening','_isWebSearching','replies','callId','8tBjfRc','webSearchFinished','action-metadata','isStopped','push','stop','appendContent','reasoning','currentReply','createReply','editor','interactionDestroyed','setConversationTitle','start','3400195BLkmKK','isDestroyed'];_0x83e1=function(){return _0x4004f9;};return _0x83e1();}export const AI_MODEL_EVENT_NAMES=[_0x7fecb1(0x9d),_0x7fecb1(0x9b),_0x7fecb1(0x90),_0x7fecb1(0x94),_0x7fecb1(0x87),_0x7fecb1(0x93),_0x7fecb1(0x98),_0x7fecb1(0x68),_0x7fecb1(0x88),_0x7fecb1(0x8c),_0x7fecb1(0x7d),_0x7fecb1(0x6f),_0x7fecb1(0x67),_0x7fecb1(0x71)];export class AIInteraction extends _0x1d4046(){['id'];[_0x7fecb1(0x7a)]=[];[_0x7fecb1(0x84)];[_0x7fecb1(0x76)];[_0x7fecb1(0x8f)];[_0x7fecb1(0x69)];[_0x7fecb1(0xa9)];[_0x7fecb1(0x7f)]=!0x1;[_0x7fecb1(0x8b)]=!0x1;[_0x7fecb1(0x86)];[_0x7fecb1(0x8e)]=!0x1;[_0x7fecb1(0x79)]=!0x1;constructor({connector:_0x31f994,editor:_0x220539}){const _0x2104a0=_0x7fecb1;super(),this['id']=_0x7f97ee(),this[_0x2104a0(0xa9)]=_0x31f994,this[_0x2104a0(0x7f)]=!0x0,this[_0x2104a0(0x86)]=_0x220539;}async[_0x7fecb1(0x89)](){const _0x508a51=_0x7fecb1;let _0x40c79c;const _0x43f843=[];this[_0x508a51(0x7f)]=!0x1;try{this[_0x508a51(0x69)]=await this[_0x508a51(0x75)](),this[_0x508a51(0x6e)](_0x508a51(0x9b),this);const _0x55714e=await this[_0x508a51(0x69)][_0x508a51(0x8d)]();for await(const _0x5eaf5e of _0x55714e){if(this[_0x508a51(0x7f)])return;if(_0x508a51(0x71)===_0x5eaf5e[_0x508a51(0x9f)])return void this[_0x508a51(0x6e)](_0x508a51(0x71),{'error':new _0x3b7e58(_0x508a51(0x6a),this)});if(_0x508a51(0xaa)!==_0x5eaf5e[_0x508a51(0x9f)]){if(_0x508a51(0x7e)!==_0x5eaf5e[_0x508a51(0x9f)]){if(_0x51b4ab(_0x5eaf5e[_0x508a51(0x9f)])&&this[_0x508a51(0x88)](_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x9c)],!0x0),_0x1b291b(_0x5eaf5e[_0x508a51(0x9f)]))_0x43f843[_0x508a51(0x80)](_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x99)]);else{if(_0xb82358(_0x5eaf5e[_0x508a51(0x9f)])){if(_0x5eaf5e[_0x508a51(0x9f)]!==_0x40c79c){if(_0x40c79c=_0x5eaf5e[_0x508a51(0x9f)],_0x508a51(0x91)===_0x5eaf5e[_0x508a51(0x9f)]){this[_0x508a51(0x79)]||(this[_0x508a51(0x79)]=!0x0,this[_0x508a51(0x6e)](_0x508a51(0x8c),this));continue;}if(_0x508a51(0x83)===_0x5eaf5e[_0x508a51(0x9f)]){this[_0x508a51(0x8e)]||(this[_0x508a51(0x8e)]=!0x0,this[_0x508a51(0x6e)](_0x508a51(0x6f),this));continue;}this[_0x508a51(0x8e)]&&(this[_0x508a51(0x8e)]=!0x1,this[_0x508a51(0x6e)](_0x508a51(0x67),this)),this[_0x508a51(0x79)]&&(this[_0x508a51(0x79)]=!0x1,this[_0x508a51(0x6e)](_0x508a51(0x7d),this)),this[_0x508a51(0x84)]&&this[_0x508a51(0x84)][_0x508a51(0xa7)](),this[_0x508a51(0x84)]=this[_0x508a51(0x85)]({'type':_0x5eaf5e[_0x508a51(0x9f)],'interactionId':this['id'],'id':_0x5eaf5e[_0x508a51(0xa1)]?.['id']}),_0x43f843[_0x508a51(0x9e)]>0x0&&_0x508a51(0x9a)===_0x5eaf5e[_0x508a51(0x9f)]&&(this[_0x508a51(0x84)][_0x508a51(0x97)]=_0x43f843[_0x508a51(0x96)](0x0));}_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0xa2)]&&this[_0x508a51(0x84)][_0x508a51(0x82)](_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0xa2)]);}else _0x1b1b34(_0x5eaf5e[_0x508a51(0x9f)])||_0x1865c0(_0x508a51(0x66),{'chunk':_0x5eaf5e});}}else this[_0x508a51(0x8f)]=_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x7b)];}else this[_0x508a51(0x76)]=_0x5eaf5e[_0x508a51(0xa1)][_0x508a51(0x76)];}}finally{this[_0x508a51(0x7f)]||(_0x43f843[_0x508a51(0x9e)]>0x0&&(this[_0x508a51(0x84)][_0x508a51(0x97)]=_0x43f843[_0x508a51(0x96)](0x0)),this[_0x508a51(0x6b)](),this[_0x508a51(0x6e)](_0x508a51(0x94),this));}}[_0x7fecb1(0x81)](){const _0x2b00e2=_0x7fecb1;this[_0x2b00e2(0x7f)]||(this[_0x2b00e2(0x6b)](),this[_0x2b00e2(0x6e)](_0x2b00e2(0x90),this));}[_0x7fecb1(0x6d)](_0xa58b55){const _0x602ab2=_0x7fecb1;return this[_0x602ab2(0x7a)][_0x602ab2(0xa8)](_0x5ae791=>_0x5ae791['id']===_0xa58b55);}[_0x7fecb1(0xa0)](){const _0x3e1232=_0x7fecb1;this[_0x3e1232(0x8b)]||(this[_0x3e1232(0x81)](),this[_0x3e1232(0x7a)][_0x3e1232(0x74)](_0x52c401=>_0x52c401[_0x3e1232(0xa0)]()),this[_0x3e1232(0x7a)]=[],this[_0x3e1232(0x8b)]=!0x0,this[_0x3e1232(0x6e)](_0x3e1232(0x87),this),this[_0x3e1232(0x78)]());}[_0x7fecb1(0x85)](_0x45fee1){const _0x327033=_0x7fecb1,_0x309acb=new _0x4e2095({'editor':this[_0x327033(0x86)],'documentContextContent':this[_0x327033(0xa6)]()?.[_0x327033(0xa4)],..._0x45fee1});return this[_0x327033(0x7a)][_0x327033(0x80)](_0x309acb),_0x309acb[_0x327033(0x77)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x327033(0x6e)](_0x327033(0x93),_0x309acb),_0x309acb;}[_0x7fecb1(0x88)](_0x55b76b,_0x30fc29=!0x1){const _0x4e338e=_0x7fecb1;this[_0x4e338e(0x6e)](_0x4e338e(0x88),_0x55b76b,_0x30fc29);}[_0x7fecb1(0x6b)](){const _0x1846e7=_0x7fecb1;this[_0x1846e7(0x7f)]=!0x0,this[_0x1846e7(0x69)]&&this[_0x1846e7(0x69)][_0x1846e7(0xa3)][_0x1846e7(0x70)](),this[_0x1846e7(0x84)]&&this[_0x1846e7(0x84)][_0x1846e7(0xa7)](),this[_0x1846e7(0x69)]=this[_0x1846e7(0x84)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1f65(){const _0x59df82=['AI_MODEL_DESCRIPTION_','items','isAvailable','_filterModels','agent','getLocalized','getModels','getModel','9sGdAlO','AI_MODEL_DESCRIPTION_AUTO','4335832EPDPSR','toUpperCase','getAll','_defaultModelId','45ksMmRN','getDefault','59733IGIVGc','toLocaleLowerCase','find','ai-chat-default-model-id-unrecognized','description','216fgabDu','length','some','push','list','_modelList','23318097KTlBrV','1785632GqQath','provider','1158975WAFgsB','startsWith','7sBVCoK','AI_MODEL_NAME_AUTO','auto','_availableModels','1185260EdthFN','ai-models-unable-to-retrieve','map','ai-chat-model-id-unrecognized','187554UOctYs','string','_connector','_getModelById','getAvailableModels','name'];_0x1f65=function(){return _0x59df82;};return _0x1f65();}const _0x36e0fa=_0x2f53;(function(_0x24172f,_0x40444f){const _0x528d0c=_0x2f53,_0x246f8a=_0x24172f();while(!![]){try{const _0xf28aac=parseInt(_0x528d0c(0x18e))/0x1+parseInt(_0x528d0c(0x18c))/0x2+-parseInt(_0x528d0c(0x180))/0x3*(-parseInt(_0x528d0c(0x185))/0x4)+-parseInt(_0x528d0c(0x17e))/0x5*(-parseInt(_0x528d0c(0x198))/0x6)+parseInt(_0x528d0c(0x190))/0x7*(-parseInt(_0x528d0c(0x1a8))/0x8)+-parseInt(_0x528d0c(0x1a6))/0x9*(parseInt(_0x528d0c(0x194))/0xa)+-parseInt(_0x528d0c(0x18b))/0xb;if(_0xf28aac===_0x40444f)break;else _0x246f8a['push'](_0x246f8a['shift']());}catch(_0x5ce2c7){_0x246f8a['push'](_0x246f8a['shift']());}}}(_0x1f65,0x99510));import{CKEditorError as _0x1853f7,EmitterMixin as _0x4f3c76,logWarning as _0x15fe6c}from'ckeditor5/src/utils.js';function _0x2f53(_0x140794,_0x3e1bea){const _0x1f65ff=_0x1f65();return _0x2f53=function(_0x2f5356,_0x537686){_0x2f5356=_0x2f5356-0x17e;let _0x935210=_0x1f65ff[_0x2f5356];return _0x935210;},_0x2f53(_0x140794,_0x3e1bea);}import{getTranslation as _0x57869d}from'../utils/common-translations.js';export class AIModels extends _0x4f3c76(){[_0x36e0fa(0x19a)];[_0x36e0fa(0x193)];[_0x36e0fa(0x1ab)];[_0x36e0fa(0x18a)]=[];constructor({connector:_0x12074f,availableModels:_0x5ea677,defaultModelId:_0x366e11}){const _0x3f9d22=_0x36e0fa;super(),this[_0x3f9d22(0x19a)]=_0x12074f,this[_0x3f9d22(0x193)]=_0x5ea677,this[_0x3f9d22(0x1ab)]=_0x366e11;}async[_0x36e0fa(0x1aa)](){const _0x9aecfe=_0x36e0fa;if(!this[_0x9aecfe(0x18a)][_0x9aecfe(0x186)])try{const _0x26d258=this[_0x9aecfe(0x19a)][_0x9aecfe(0x1a4)](),_0x4aba2b=await _0x26d258[_0x9aecfe(0x189)]();this[_0x9aecfe(0x18a)]=_0x4aba2b[_0x9aecfe(0x19f)];}catch(_0x547968){throw new _0x1853f7(_0x9aecfe(0x195),null,{'error':_0x547968});}return[...this[_0x9aecfe(0x18a)]];}async[_0x36e0fa(0x19c)](){const _0x556772=_0x36e0fa,_0x4ced1b=await this[_0x556772(0x1aa)]();return this[_0x556772(0x1a1)](_0x4ced1b,this[_0x556772(0x193)]);}async[_0x36e0fa(0x1a5)](_0xb3f5c3){const _0x2e797a=_0x36e0fa,_0x3b720d=await this[_0x2e797a(0x1aa)]();if(!_0x3b720d[_0x2e797a(0x186)])return null;if(_0xb3f5c3){const _0x26696f=this[_0x2e797a(0x19b)](_0x3b720d,_0xb3f5c3);if(_0x26696f)return _0x26696f;_0x15fe6c(_0x2e797a(0x197),{'modelId':_0xb3f5c3,'fallBackModelId':this[_0x2e797a(0x1ab)]});}return this[_0x2e797a(0x17f)]();}async[_0x36e0fa(0x17f)](){const _0x492a2d=_0x36e0fa,_0x2a31a1=await this[_0x492a2d(0x19c)]();if(!_0x2a31a1[_0x492a2d(0x186)])return null;if(this[_0x492a2d(0x1ab)]){const _0x1fac83=this[_0x492a2d(0x19b)](_0x2a31a1,this[_0x492a2d(0x1ab)]);if(_0x1fac83)return _0x1fac83;_0x15fe6c(_0x492a2d(0x183),{'defaultModelId':this[_0x492a2d(0x1ab)],'fallBackModelId':_0x2a31a1[0x0]['id']});}return _0x2a31a1[0x0];}async[_0x36e0fa(0x1a0)](_0x4c6a88){const _0x54c12d=_0x36e0fa;return(await this[_0x54c12d(0x19c)]())[_0x54c12d(0x187)](_0x2b3f36=>_0x2b3f36[_0x54c12d(0x19d)]===_0x4c6a88[_0x54c12d(0x19d)]&&_0x2b3f36[_0x54c12d(0x18d)]===_0x4c6a88[_0x54c12d(0x18d)]);}[_0x36e0fa(0x1a1)](_0x469e3f,_0x1a1f94){const _0x361a9d=_0x36e0fa;let _0x575409;if(_0x1a1f94){_0x575409=[];const _0x3780c5=_0x361a9d(0x199)==typeof _0x1a1f94?[_0x1a1f94[_0x361a9d(0x181)]()]:_0x1a1f94[_0x361a9d(0x196)](_0x342b44=>_0x342b44[_0x361a9d(0x181)]());for(const _0x484632 of _0x3780c5)for(const _0x49de63 of _0x469e3f)(_0x49de63['id'][_0x361a9d(0x181)]()===_0x484632||_0x49de63[_0x361a9d(0x19d)][_0x361a9d(0x181)]()===_0x484632||Me(_0x49de63)&&_0x361a9d(0x192)===_0x484632||_0x49de63[_0x361a9d(0x18d)][_0x361a9d(0x181)]()===_0x484632||_0x49de63['id'][_0x361a9d(0x181)]()[_0x361a9d(0x18f)](_0x484632))&&_0x575409[_0x361a9d(0x188)](_0x49de63);}else _0x575409=_0x469e3f;return _0x575409;}[_0x36e0fa(0x19b)](_0x400e98,_0x35aca4){const _0x5ac374=_0x36e0fa;return _0x400e98[_0x5ac374(0x182)](_0x74f5f7=>Me(_0x74f5f7)&&_0x5ac374(0x192)===_0x35aca4?_0x74f5f7:_0x74f5f7['id']===_0x35aca4)||null;}static[_0x36e0fa(0x1a3)](_0x2952ba,_0x312ef3){const _0x665e37=_0x36e0fa;return _0x312ef3[_0x665e37(0x196)](_0x49ceb3=>{const _0x526d90=_0x665e37;if(Me(_0x49ceb3))_0x49ceb3[_0x526d90(0x19d)]=_0x57869d(_0x2952ba,_0x526d90(0x191)),_0x49ceb3[_0x526d90(0x184)]=_0x57869d(_0x2952ba,_0x526d90(0x1a7));else _0x57869d(_0x2952ba,_0x526d90(0x19e)+_0x49ceb3['id'][_0x526d90(0x1a9)]())[_0x526d90(0x18f)](_0x526d90(0x19e))||(_0x49ceb3[_0x526d90(0x184)]=_0x57869d(_0x2952ba,_0x526d90(0x19e)+_0x49ceb3['id'][_0x526d90(0x1a9)]()));return _0x49ceb3;});}}function Me(_0x53acda){const _0x2f47bb=_0x36e0fa;return _0x53acda['id'][_0x2f47bb(0x18f)](_0x2f47bb(0x1a2));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39cbc6=_0x2431;(function(_0x26132f,_0x49f2d5){const _0x265e98=_0x2431,_0x353059=_0x26132f();while(!![]){try{const _0xf4e39c=-parseInt(_0x265e98(0x13e))/0x1+-parseInt(_0x265e98(0x11c))/0x2*(-parseInt(_0x265e98(0x100))/0x3)+-parseInt(_0x265e98(0xfa))/0x4*(parseInt(_0x265e98(0xe8))/0x5)+-parseInt(_0x265e98(0x13d))/0x6*(parseInt(_0x265e98(0x107))/0x7)+-parseInt(_0x265e98(0x136))/0x8+-parseInt(_0x265e98(0x123))/0x9+-parseInt(_0x265e98(0x104))/0xa*(-parseInt(_0x265e98(0x11e))/0xb);if(_0xf4e39c===_0x49f2d5)break;else _0x353059['push'](_0x353059['shift']());}catch(_0x37a3b8){_0x353059['push'](_0x353059['shift']());}}}(_0x23d6,0xec679));import{CKEditorError as _0x3af711,ObservableMixin as _0x258fd4,uid as _0x43b7c6}from'ckeditor5/src/utils.js';function _0x23d6(){const _0x244e4f=['cloneNode','_setCachedContentParts','AI_SUGGESTION_CONTENT_PART_REMOVED','convertMarkdownToHTML','locale','removedNodeIds','data-unstable','length','onContentChange','reasoning','16dhhqWk','parsedContent','isDone','change:content','updateChangeGroups','nextSibling','1063569ciyIJf','withDiff','changeGroups','source','33130rMHBZo','modifiedNodeIds','splice','35TwjIBx','fire','context','parseAndNormalizeHTML','replyChangeGroupStateUpdated','changes','setChangeGroupState','getContentParts','conversation-title','withoutDiff','merge','stopListening','find','unshift','span','parsedMergedContent','done','indexOf','color:\x20#808080;\x20font-style:\x20italic','type','web-search','2RFzerS','ai-reply-get-content-parts-group-not-found','20757gSNhPf','push','_getCachedContentParts','sources','content','16776594iGpyWs','editor','modification-delta','index','newNodeIds','filter','cachedSuggestionContentParts','forEach','removed','aiResponseApplier','text-delta','_getDifferentChangeGroups','documentContextContent','set','previousSibling','data-id','values','replyContentUpdated','appendContent','8166608mDZofD','pending','aiResponseParser','state','every','map','node','1141116uiOrwm','398443GsgFMl','1754470xgiwnd','includes','ai-get-editor-from-context-no-editor','areActionsDisabled','interactionId','destroy','new','modified'];_0x23d6=function(){return _0x244e4f;};return _0x23d6();}import{Element as _0x7fe83,findAll as _0x57a572,getAttribute as _0x4e627b,getParents as _0x19e3f4,Document as _0x374bbd,parse as _0x5bb99c,Text as _0x1e4bed}from'../utils/htmlparser.js';import{AIResponseParser as _0x30814e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x214a13}from'../pipeline/airesponseapplier.js';function _0x2431(_0x2e3675,_0x3466c2){const _0x23d632=_0x23d6();return _0x2431=function(_0x2431ca,_0x3bb128){_0x2431ca=_0x2431ca-0xe8;let _0xa51258=_0x23d632[_0x2431ca];return _0xa51258;},_0x2431(_0x2e3675,_0x3466c2);}import{getSuggestionPartsFromReply as _0x165665}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2e6abb}from'../utils/common-translations.js';import{cloneDeep as _0x546a34}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cbc6(0x125),_0x39cbc6(0x12d),_0x39cbc6(0x11b),_0x39cbc6(0xf9)];export const AI_REPLY_TYPES_IGNORED=[_0x39cbc6(0x10f)];export const AI_REPLY_TITLE_TYPE=_0x39cbc6(0x10f);export class AIReply extends _0x258fd4(){['id'];[_0x39cbc6(0xec)];[_0x39cbc6(0x11a)];[_0x39cbc6(0x121)]=[];[_0x39cbc6(0xfb)]=new _0x374bbd([]);[_0x39cbc6(0x116)]=new _0x374bbd([]);[_0x39cbc6(0x102)]=[];[_0x39cbc6(0xeb)]=!0x1;[_0x39cbc6(0x12f)];[_0x39cbc6(0x138)];[_0x39cbc6(0x12c)];[_0x39cbc6(0x124)];[_0x39cbc6(0x129)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x494d91,content:_0x5ecd55='',isDone:_0x2dd1c9=!0x1,interactionId:_0x7e160f,areActionsDisabled:_0x1b8bb4,documentContextContent:_0x232da1,editor:_0x54ccbc,id:_0x2412bb}){const _0x47a782=_0x39cbc6;super(),this['id']=_0x2412bb||_0x43b7c6(),this[_0x47a782(0xec)]=_0x7e160f,this[_0x47a782(0x11a)]=_0x494d91,this[_0x47a782(0xeb)]=!!_0x1b8bb4,this[_0x47a782(0x124)]=_0x54ccbc,this[_0x47a782(0x138)]=new _0x30814e(),this[_0x47a782(0x12c)]=new _0x214a13(),this[_0x47a782(0x12f)]=_0x5bb99c(_0x232da1||''),this[_0x47a782(0x130)](_0x47a782(0xfc),_0x2dd1c9),this['on'](_0x47a782(0xfd),()=>{const _0x2cc979=_0x47a782;this[_0x2cc979(0xf8)]();}),this[_0x47a782(0x130)](_0x47a782(0x122),_0x5ecd55);}[_0x39cbc6(0x135)](_0x4cf1ff){const _0x30c89d=_0x39cbc6;this[_0x30c89d(0x130)](_0x30c89d(0x122),this[_0x30c89d(0x122)]+_0x4cf1ff);}[_0x39cbc6(0x117)](){const _0x5ca2d9=_0x39cbc6;this[_0x5ca2d9(0xfc)]||(this[_0x5ca2d9(0x130)](_0x5ca2d9(0xfc),!0x0),this[_0x5ca2d9(0xf8)]());}[_0x39cbc6(0xed)](){const _0x44e06a=_0x39cbc6;this[_0x44e06a(0x112)]();}[_0x39cbc6(0x10d)](_0x19ecfe,_0x53abc5){const _0x45a6d4=_0x39cbc6;this[_0x45a6d4(0x102)][_0x19ecfe][_0x45a6d4(0x139)]=_0x53abc5,this[_0x45a6d4(0x108)](_0x45a6d4(0x10b),{'reply':this,'index':_0x19ecfe,'state':_0x53abc5});}[_0x39cbc6(0x10e)]({showDiff:_0x3cd617,groupIndex:_0x310e42}){const _0x59ca50=_0x39cbc6;if(!this[_0x59ca50(0x124)])throw new _0x3af711(_0x59ca50(0xea),null,{'aiReply':this});const _0x3f8249=this[_0x59ca50(0x120)](_0x3cd617,_0x310e42);if(_0x3f8249)return _0x3f8249;let _0x2bb72e=[];if(void 0x0===_0x310e42)_0x2bb72e=this[_0x59ca50(0x102)];else{const _0x6c8449=this[_0x59ca50(0x102)][_0x59ca50(0x113)](({index:_0x9a7df0})=>_0x9a7df0===_0x310e42);if(!_0x6c8449)throw new _0x3af711(_0x59ca50(0x11d),null,{'aiReply':this,'groupIndex':_0x310e42});_0x2bb72e=[_0x6c8449];}const _0xec7d22=_0x165665({'editor':this[_0x59ca50(0x124)],'showDiff':_0x3cd617,'changeGroups':_0x2bb72e,'documentContextContent':this[_0x59ca50(0x12f)]});return this[_0x59ca50(0xf1)](_0x3cd617,_0xec7d22),_0xec7d22;}[_0x39cbc6(0x120)](_0x18c8b6,_0x1c67a2){const _0x496fd7=_0x39cbc6,_0x95e288=_0x18c8b6?_0x496fd7(0x101):_0x496fd7(0x110);if(!this[_0x496fd7(0x129)][_0x95e288][_0x496fd7(0xf7)])return null;const _0x130dc7=this[_0x496fd7(0x129)][_0x95e288];if(void 0x0===_0x1c67a2)return _0x546a34(_0x130dc7);{const _0x41408f=_0x130dc7[_0x496fd7(0x113)](({index:_0x3ec3fd})=>_0x3ec3fd===_0x1c67a2);if(_0x41408f)return[_0x546a34(_0x41408f)];}return null;}[_0x39cbc6(0xf1)](_0x2e0151,_0x3e870){const _0x2fb80f=_0x39cbc6,_0x25f110=_0x2e0151?_0x2fb80f(0x101):_0x2fb80f(0x110);_0x3e870[_0x2fb80f(0x12a)](_0xf5f717=>{const _0x1965d2=_0x2fb80f,_0x263882=this[_0x1965d2(0x129)][_0x25f110],_0x554e91=_0x263882[_0x1965d2(0x113)](({index:_0x25286d})=>_0x25286d===_0xf5f717[_0x1965d2(0x126)]);if(_0x554e91){const _0x41c4d5=_0x263882[_0x1965d2(0x118)](_0x554e91);_0x263882[_0x1965d2(0x106)](_0x41c4d5,0x1,_0xf5f717);}else _0x263882[_0x1965d2(0x11f)](_0xf5f717);});}[_0x39cbc6(0xf8)](){const _0x526b8e=_0x39cbc6;if(_0x526b8e(0x125)===this[_0x526b8e(0x11a)]){this[_0x526b8e(0xfb)]=this[_0x526b8e(0x138)][_0x526b8e(0x10a)](this[_0x526b8e(0x122)]);const _0x1e1e9e=this[_0x526b8e(0x102)];this[_0x526b8e(0xfe)]();const _0x363c07=this[_0x526b8e(0x12e)](_0x1e1e9e,this[_0x526b8e(0x102)]);(_0x363c07[_0x526b8e(0xf7)]||this[_0x526b8e(0xfc)])&&(this[_0x526b8e(0x108)](_0x526b8e(0x134),this,_0x363c07),this[_0x526b8e(0x129)][_0x526b8e(0x101)][_0x526b8e(0xf7)]=this[_0x526b8e(0x129)][_0x526b8e(0x110)][_0x526b8e(0xf7)]=0x0);}else this[_0x526b8e(0xfb)]=this[_0x526b8e(0x138)][_0x526b8e(0xf3)](this[_0x526b8e(0x122)]),this[_0x526b8e(0x108)](_0x526b8e(0x134),this);}[_0x39cbc6(0x12e)](_0x5421b3,_0x1ea341){const _0x2b5240=_0x39cbc6,_0xdc9c75=[];for(const _0x595bf4 of _0x1ea341){const _0x85a6c4=_0x5421b3[_0x595bf4[_0x2b5240(0x126)]];_0x85a6c4?_0x85a6c4[_0x2b5240(0x10c)][_0x2b5240(0xf7)]!==_0x595bf4[_0x2b5240(0x10c)][_0x2b5240(0xf7)]?_0xdc9c75[_0x2b5240(0x11f)](_0x595bf4):_0x85a6c4[_0x2b5240(0x10c)][_0x2b5240(0x12a)]((_0x7f64bb,_0x366805)=>{const _0x48763b=_0x2b5240,_0x4c8f1c=_0x595bf4[_0x48763b(0x10c)][_0x366805];_0x7f64bb['id']!==_0x4c8f1c['id']&&_0xdc9c75[_0x48763b(0x11f)](_0x595bf4);}):_0xdc9c75[_0x2b5240(0x11f)](_0x595bf4);}return _0xdc9c75;}[_0x39cbc6(0xfe)](){const _0x24cf27=_0x39cbc6,_0x2d08e1=new _0x7fe83('p',{},[new _0x7fe83(_0x24cf27(0x115),{'style':_0x24cf27(0x119)},[new _0x1e4bed(_0x2e6abb(this[_0x24cf27(0x124)][_0x24cf27(0xf4)],_0x24cf27(0xf2)))])]),_0x517fcd=this[_0x24cf27(0x12c)][_0x24cf27(0x111)](this[_0x24cf27(0xfb)],this[_0x24cf27(0x12f)][_0x24cf27(0xf0)](!0x0),{'markUnstableElements':!this[_0x24cf27(0xfc)],'replaceRemovedWith':_0x2d08e1,'cutAfterLastChange':!this[_0x24cf27(0xfc)]});if(!_0x517fcd[_0x24cf27(0x105)][_0x24cf27(0xf7)]&&!this[_0x24cf27(0xfc)])return;this[_0x24cf27(0x116)]=_0x517fcd[_0x24cf27(0xfb)];let _0x116ed9=[];if(_0x57a572(_0x4a6c3f=>{const _0x1b2e9e=_0x24cf27,_0x154f17=_0x4e627b(_0x4a6c3f,_0x1b2e9e(0x132));if(!_0x154f17||!_0x4a7b5c(_0x154f17))return!0x1;const _0x2237b3=[_0x4a6c3f,..._0x19e3f4(_0x4a6c3f)]['at'](-0x2);if(_0x4a6c3f!=_0x2237b3){const _0x351bbb=_0x4e627b(_0x2237b3,_0x1b2e9e(0x132));_0x4a7b5c(_0x351bbb)||(_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x2237b3,'id':_0x351bbb,'type':_0x1b2e9e(0xef)}),_0x517fcd[_0x1b2e9e(0x105)][_0x1b2e9e(0x11f)](_0x351bbb));}else _0x517fcd[_0x1b2e9e(0x105)][_0x1b2e9e(0xe9)](_0x154f17)?_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0xef),'id':_0x154f17}):_0x517fcd[_0x1b2e9e(0x127)][_0x1b2e9e(0xe9)](_0x154f17)?_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0xee),'id':_0x154f17,'anchorId':_0x4e627b(_0x4a6c3f[_0x1b2e9e(0x131)],_0x1b2e9e(0x132))}):_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0x12b),'id':_0x154f17});return!0x0;},this[_0x24cf27(0x116)]),_0x116ed9=_0x116ed9[_0x24cf27(0x128)](({node:_0x3a949b})=>[..._0x19e3f4(_0x3a949b),_0x3a949b][_0x24cf27(0x13a)](_0x487f73=>!_0x4e627b(_0x487f73,_0x24cf27(0xf6)))),0x0==_0x116ed9[_0x24cf27(0xf7)])return;const _0x17ddb5=[[_0x116ed9[0x0]]];for(let _0x5e3e44=0x1;_0x5e3e44<_0x116ed9[_0x24cf27(0xf7)];_0x5e3e44++){const _0x130eb1=_0x17ddb5[_0x17ddb5[_0x24cf27(0xf7)]-0x1],_0x1f54b5=_0x130eb1[_0x130eb1[_0x24cf27(0xf7)]-0x1];_0x116ed9[_0x5e3e44][_0x24cf27(0x13c)][_0x24cf27(0x131)]==_0x1f54b5[_0x24cf27(0x13c)]&&_0x24cf27(0xef)!=_0x116ed9[_0x5e3e44][_0x24cf27(0x11a)]&&_0x24cf27(0xef)!=_0x1f54b5[_0x24cf27(0x11a)]?_0x130eb1[_0x24cf27(0x11f)](_0x116ed9[_0x5e3e44]):_0x17ddb5[_0x24cf27(0x11f)]([_0x116ed9[_0x5e3e44]]);}for(const _0x224819 of _0x17ddb5){const _0x1861fc=_0x224819[0x0],_0x2dc540=_0x224819[_0x224819[_0x24cf27(0xf7)]-0x1],_0x1932c7=_0x5631ff(_0x1861fc[_0x24cf27(0x13c)][_0x24cf27(0x131)]);_0x1932c7&&_0x224819[_0x24cf27(0x114)](_0x1932c7);const _0x5ddadb=_0x5631ff(_0x2dc540[_0x24cf27(0x13c)][_0x24cf27(0xff)]);_0x5ddadb&&_0x224819[_0x24cf27(0x11f)](_0x5ddadb);}function _0x4a7b5c(_0x1a01f1){const _0x2ab5e0=_0x24cf27;return _0x517fcd[_0x2ab5e0(0x105)][_0x2ab5e0(0xe9)](_0x1a01f1)||_0x517fcd[_0x2ab5e0(0x127)][_0x2ab5e0(0xe9)](_0x1a01f1)||_0x517fcd[_0x2ab5e0(0xf5)][_0x2ab5e0(0xe9)](_0x1a01f1);}function _0x5631ff(_0x10c1ad){const _0x462ea8=_0x24cf27;if(_0x10c1ad&&_0x4e627b(_0x10c1ad,_0x462ea8(0x132))&&!_0x4e627b(_0x10c1ad,_0x462ea8(0xf6))){const _0x30afe7=_0x4e627b(_0x10c1ad,_0x462ea8(0x132));if(!_0x4a7b5c(_0x30afe7))return{'node':_0x10c1ad,'type':_0x462ea8(0x109),'id':_0x30afe7};}return null;}this[_0x24cf27(0x102)]=_0x17ddb5[_0x24cf27(0x13b)]((_0x3c81e4,_0x5d9b6b)=>({'changes':_0x3c81e4,'state':_0x24cf27(0x137),'index':_0x5d9b6b}));}}export function isValidReplyType(_0xa41bf9){const _0x57189f=_0x39cbc6;return Object[_0x57189f(0x133)](AI_REPLY_TYPES)[_0x57189f(0xe9)](_0xa41bf9);}export function isIgnoredReplyType(_0x5d823a){const _0x42bfd2=_0x39cbc6;return AI_REPLY_TYPES_IGNORED[_0x42bfd2(0xe9)](_0x5d823a);}export function isReplyTitleType(_0x302efd){return _0x302efd===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x371d32){const _0x473d5c=_0x39cbc6;return _0x473d5c(0x103)===_0x371d32;}
|
|
23
|
+
const _0x24024b=_0x1cb8;(function(_0x5dd93b,_0x119645){const _0x1487f0=_0x1cb8,_0x4d4334=_0x5dd93b();while(!![]){try{const _0x212864=-parseInt(_0x1487f0(0x1ce))/0x1*(parseInt(_0x1487f0(0x18f))/0x2)+-parseInt(_0x1487f0(0x1b0))/0x3*(-parseInt(_0x1487f0(0x1bb))/0x4)+-parseInt(_0x1487f0(0x1aa))/0x5*(-parseInt(_0x1487f0(0x195))/0x6)+-parseInt(_0x1487f0(0x198))/0x7+parseInt(_0x1487f0(0x190))/0x8*(parseInt(_0x1487f0(0x1b9))/0x9)+-parseInt(_0x1487f0(0x1b8))/0xa+parseInt(_0x1487f0(0x1a0))/0xb;if(_0x212864===_0x119645)break;else _0x4d4334['push'](_0x4d4334['shift']());}catch(_0x18a7ec){_0x4d4334['push'](_0x4d4334['shift']());}}}(_0x368a,0x2d931));import{CKEditorError as _0x5381ac,ObservableMixin as _0x1df695,uid as _0x5d76a9}from'ckeditor5/src/utils.js';import{Element as _0x2ebabc,findAll as _0x23ef37,getAttribute as _0x368a9c,getParents as _0x52cc98,Document as _0x339c54,parse as _0x41d596,Text as _0x50f5f2}from'../utils/htmlparser.js';import{AIResponseParser as _0x2174df}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x491d76}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x54f6e0}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x7a1add}from'../utils/common-translations.js';import{cloneDeep as _0x268c96}from'es-toolkit';export const AI_REPLY_TYPES=[_0x24024b(0x191),_0x24024b(0x19c),_0x24024b(0x1da),_0x24024b(0x1ca)];function _0x368a(){const _0x311121=['removed','_getCachedContentParts','6zwRgBv','areActionsDisabled','values','1828113UeeNUl','span','content','ai-get-editor-from-context-no-editor','text-delta','isDone','convertMarkdownToHTML','cloneNode','2538591tPPCOq','replyContentUpdated','source','find','onContentChange','includes','withoutDiff','unshift','destroy','editor','1220645SfmwlB','documentContextContent','_getDifferentChangeGroups','data-id','indexOf','withDiff','3171FmeNwh','aiResponseParser','updateChangeGroups','splice','cachedSuggestionContentParts','set','change:content','newNodeIds','1987730lxAVLx','9uOKMzx','aiResponseApplier','484DfmiXV','fire','setChangeGroupState','parseAndNormalizeHTML','sources','every','interactionId','appendContent','parsedMergedContent','color:\x20#808080;\x20font-style:\x20italic','length','state','index','AI_SUGGESTION_CONTENT_PART_REMOVED','map','reasoning','changes','changeGroups','context','17764rfVtOc','type','push','parsedContent','pending','forEach','modified','merge','previousSibling','removedNodeIds','_setCachedContentParts','stopListening','web-search','ai-reply-get-content-parts-group-not-found','conversation-title','done','getContentParts','node','modifiedNodeIds','filter','replyChangeGroupStateUpdated','locale','new','data-unstable','32yqGfGh','2624176tkNAHg','modification-delta','nextSibling'];_0x368a=function(){return _0x311121;};return _0x368a();}export const AI_REPLY_TYPES_IGNORED=[_0x24024b(0x1dc)];export const AI_REPLY_TITLE_TYPE=_0x24024b(0x1dc);export class AIReply extends _0x1df695(){['id'];[_0x24024b(0x1c1)];[_0x24024b(0x1cf)];[_0x24024b(0x1bf)]=[];[_0x24024b(0x1d1)]=new _0x339c54([]);[_0x24024b(0x1c3)]=new _0x339c54([]);[_0x24024b(0x1cc)]=[];[_0x24024b(0x196)]=!0x1;[_0x24024b(0x1ab)];[_0x24024b(0x1b1)];[_0x24024b(0x1ba)];[_0x24024b(0x1a9)];[_0x24024b(0x1b4)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x36d0cb,content:_0x344c31='',isDone:_0x1bda5e=!0x1,interactionId:_0x426762,areActionsDisabled:_0x533932,documentContextContent:_0x2f65a4,editor:_0xcf0641,id:_0x531861}){const _0x565ff0=_0x24024b;super(),this['id']=_0x531861||_0x5d76a9(),this[_0x565ff0(0x1c1)]=_0x426762,this[_0x565ff0(0x1cf)]=_0x36d0cb,this[_0x565ff0(0x196)]=!!_0x533932,this[_0x565ff0(0x1a9)]=_0xcf0641,this[_0x565ff0(0x1b1)]=new _0x2174df(),this[_0x565ff0(0x1ba)]=new _0x491d76(),this[_0x565ff0(0x1ab)]=_0x41d596(_0x2f65a4||''),this[_0x565ff0(0x1b5)](_0x565ff0(0x19d),_0x1bda5e),this['on'](_0x565ff0(0x1b6),()=>{const _0x4a9916=_0x565ff0;this[_0x4a9916(0x1a4)]();}),this[_0x565ff0(0x1b5)](_0x565ff0(0x19a),_0x344c31);}[_0x24024b(0x1c2)](_0x54b30f){const _0x4ed02e=_0x24024b;this[_0x4ed02e(0x1b5)](_0x4ed02e(0x19a),this[_0x4ed02e(0x19a)]+_0x54b30f);}[_0x24024b(0x1dd)](){const _0x568ea8=_0x24024b;this[_0x568ea8(0x19d)]||(this[_0x568ea8(0x1b5)](_0x568ea8(0x19d),!0x0),this[_0x568ea8(0x1a4)]());}[_0x24024b(0x1a8)](){const _0x3d5916=_0x24024b;this[_0x3d5916(0x1d9)]();}[_0x24024b(0x1bd)](_0x3ba326,_0x2c6641){const _0x195ad2=_0x24024b;this[_0x195ad2(0x1cc)][_0x3ba326][_0x195ad2(0x1c6)]=_0x2c6641,this[_0x195ad2(0x1bc)](_0x195ad2(0x1e2),{'reply':this,'index':_0x3ba326,'state':_0x2c6641});}[_0x24024b(0x1de)]({showDiff:_0x4d9144,groupIndex:_0x2c4658}){const _0xd6b16b=_0x24024b;if(!this[_0xd6b16b(0x1a9)])throw new _0x5381ac(_0xd6b16b(0x19b),null,{'aiReply':this});const _0x1c0f7a=this[_0xd6b16b(0x194)](_0x4d9144,_0x2c4658);if(_0x1c0f7a)return _0x1c0f7a;let _0x10d906=[];if(void 0x0===_0x2c4658)_0x10d906=this[_0xd6b16b(0x1cc)];else{const _0x1534ab=this[_0xd6b16b(0x1cc)][_0xd6b16b(0x1a3)](({index:_0x52548d})=>_0x52548d===_0x2c4658);if(!_0x1534ab)throw new _0x5381ac(_0xd6b16b(0x1db),null,{'aiReply':this,'groupIndex':_0x2c4658});_0x10d906=[_0x1534ab];}const _0x5d17ba=_0x54f6e0({'editor':this[_0xd6b16b(0x1a9)],'showDiff':_0x4d9144,'changeGroups':_0x10d906,'documentContextContent':this[_0xd6b16b(0x1ab)]});return this[_0xd6b16b(0x1d8)](_0x4d9144,_0x5d17ba),_0x5d17ba;}[_0x24024b(0x194)](_0x45286c,_0x588548){const _0xa409f4=_0x24024b,_0x22f35c=_0x45286c?_0xa409f4(0x1af):_0xa409f4(0x1a6);if(!this[_0xa409f4(0x1b4)][_0x22f35c][_0xa409f4(0x1c5)])return null;const _0x1eb575=this[_0xa409f4(0x1b4)][_0x22f35c];if(void 0x0===_0x588548)return _0x268c96(_0x1eb575);{const _0x593028=_0x1eb575[_0xa409f4(0x1a3)](({index:_0xcdff0f})=>_0xcdff0f===_0x588548);if(_0x593028)return[_0x268c96(_0x593028)];}return null;}[_0x24024b(0x1d8)](_0x7b807d,_0x2e8a8d){const _0x458b3c=_0x24024b,_0x6a377e=_0x7b807d?_0x458b3c(0x1af):_0x458b3c(0x1a6);_0x2e8a8d[_0x458b3c(0x1d3)](_0x4b9eb8=>{const _0x11d5ad=_0x458b3c,_0xe3b99c=this[_0x11d5ad(0x1b4)][_0x6a377e],_0x58d281=_0xe3b99c[_0x11d5ad(0x1a3)](({index:_0x5c1953})=>_0x5c1953===_0x4b9eb8[_0x11d5ad(0x1c7)]);if(_0x58d281){const _0x5d1764=_0xe3b99c[_0x11d5ad(0x1ae)](_0x58d281);_0xe3b99c[_0x11d5ad(0x1b3)](_0x5d1764,0x1,_0x4b9eb8);}else _0xe3b99c[_0x11d5ad(0x1d0)](_0x4b9eb8);});}[_0x24024b(0x1a4)](){const _0x4687bc=_0x24024b;if(_0x4687bc(0x191)===this[_0x4687bc(0x1cf)]){this[_0x4687bc(0x1d1)]=this[_0x4687bc(0x1b1)][_0x4687bc(0x1be)](this[_0x4687bc(0x19a)]);const _0x538bb3=this[_0x4687bc(0x1cc)];this[_0x4687bc(0x1b2)]();const _0x370b4c=this[_0x4687bc(0x1ac)](_0x538bb3,this[_0x4687bc(0x1cc)]);(_0x370b4c[_0x4687bc(0x1c5)]||this[_0x4687bc(0x19d)])&&(this[_0x4687bc(0x1bc)](_0x4687bc(0x1a1),this,_0x370b4c),this[_0x4687bc(0x1b4)][_0x4687bc(0x1af)][_0x4687bc(0x1c5)]=this[_0x4687bc(0x1b4)][_0x4687bc(0x1a6)][_0x4687bc(0x1c5)]=0x0);}else this[_0x4687bc(0x1d1)]=this[_0x4687bc(0x1b1)][_0x4687bc(0x19e)](this[_0x4687bc(0x19a)]),this[_0x4687bc(0x1bc)](_0x4687bc(0x1a1),this);}[_0x24024b(0x1ac)](_0x230fd8,_0x1837ad){const _0xc72b60=_0x24024b,_0x33103b=[];for(const _0x3ea162 of _0x1837ad){const _0x753925=_0x230fd8[_0x3ea162[_0xc72b60(0x1c7)]];_0x753925?_0x753925[_0xc72b60(0x1cb)][_0xc72b60(0x1c5)]!==_0x3ea162[_0xc72b60(0x1cb)][_0xc72b60(0x1c5)]?_0x33103b[_0xc72b60(0x1d0)](_0x3ea162):_0x753925[_0xc72b60(0x1cb)][_0xc72b60(0x1d3)]((_0x5522e9,_0x42af1e)=>{const _0x2fd615=_0xc72b60,_0x5815fd=_0x3ea162[_0x2fd615(0x1cb)][_0x42af1e];_0x5522e9['id']!==_0x5815fd['id']&&_0x33103b[_0x2fd615(0x1d0)](_0x3ea162);}):_0x33103b[_0xc72b60(0x1d0)](_0x3ea162);}return _0x33103b;}[_0x24024b(0x1b2)](){const _0x2b2d2d=_0x24024b,_0x1bf259=new _0x2ebabc('p',{},[new _0x2ebabc(_0x2b2d2d(0x199),{'style':_0x2b2d2d(0x1c4)},[new _0x50f5f2(_0x7a1add(this[_0x2b2d2d(0x1a9)][_0x2b2d2d(0x18c)],_0x2b2d2d(0x1c8)))])]),_0x1cf5e7=this[_0x2b2d2d(0x1ba)][_0x2b2d2d(0x1d5)](this[_0x2b2d2d(0x1d1)],this[_0x2b2d2d(0x1ab)][_0x2b2d2d(0x19f)](!0x0),{'markUnstableElements':!this[_0x2b2d2d(0x19d)],'replaceRemovedWith':_0x1bf259,'cutAfterLastChange':!this[_0x2b2d2d(0x19d)]});if(!_0x1cf5e7[_0x2b2d2d(0x1e0)][_0x2b2d2d(0x1c5)]&&!this[_0x2b2d2d(0x19d)])return;this[_0x2b2d2d(0x1c3)]=_0x1cf5e7[_0x2b2d2d(0x1d1)];let _0x5d8c71=[];if(_0x23ef37(_0x322e08=>{const _0x2fdbf1=_0x2b2d2d,_0x3a5293=_0x368a9c(_0x322e08,_0x2fdbf1(0x1ad));if(!_0x3a5293||!_0x3ec6ac(_0x3a5293))return!0x1;const _0x43329a=[_0x322e08,..._0x52cc98(_0x322e08)]['at'](-0x2);if(_0x322e08!=_0x43329a){const _0x33310b=_0x368a9c(_0x43329a,_0x2fdbf1(0x1ad));_0x3ec6ac(_0x33310b)||(_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x43329a,'id':_0x33310b,'type':_0x2fdbf1(0x1d4)}),_0x1cf5e7[_0x2fdbf1(0x1e0)][_0x2fdbf1(0x1d0)](_0x33310b));}else _0x1cf5e7[_0x2fdbf1(0x1e0)][_0x2fdbf1(0x1a5)](_0x3a5293)?_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x322e08,'type':_0x2fdbf1(0x1d4),'id':_0x3a5293}):_0x1cf5e7[_0x2fdbf1(0x1b7)][_0x2fdbf1(0x1a5)](_0x3a5293)?_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x322e08,'type':_0x2fdbf1(0x18d),'id':_0x3a5293,'anchorId':_0x368a9c(_0x322e08[_0x2fdbf1(0x1d6)],_0x2fdbf1(0x1ad))}):_0x5d8c71[_0x2fdbf1(0x1d0)]({'node':_0x322e08,'type':_0x2fdbf1(0x193),'id':_0x3a5293});return!0x0;},this[_0x2b2d2d(0x1c3)]),_0x5d8c71=_0x5d8c71[_0x2b2d2d(0x1e1)](({node:_0x310eea})=>[..._0x52cc98(_0x310eea),_0x310eea][_0x2b2d2d(0x1c0)](_0x53e30e=>!_0x368a9c(_0x53e30e,_0x2b2d2d(0x18e)))),0x0==_0x5d8c71[_0x2b2d2d(0x1c5)])return;const _0x1151bc=[[_0x5d8c71[0x0]]];for(let _0x12d496=0x1;_0x12d496<_0x5d8c71[_0x2b2d2d(0x1c5)];_0x12d496++){const _0x264f9f=_0x1151bc[_0x1151bc[_0x2b2d2d(0x1c5)]-0x1],_0x217d34=_0x264f9f[_0x264f9f[_0x2b2d2d(0x1c5)]-0x1];_0x5d8c71[_0x12d496][_0x2b2d2d(0x1df)][_0x2b2d2d(0x1d6)]==_0x217d34[_0x2b2d2d(0x1df)]&&_0x2b2d2d(0x1d4)!=_0x5d8c71[_0x12d496][_0x2b2d2d(0x1cf)]&&_0x2b2d2d(0x1d4)!=_0x217d34[_0x2b2d2d(0x1cf)]?_0x264f9f[_0x2b2d2d(0x1d0)](_0x5d8c71[_0x12d496]):_0x1151bc[_0x2b2d2d(0x1d0)]([_0x5d8c71[_0x12d496]]);}for(const _0x5513e6 of _0x1151bc){const _0x374809=_0x5513e6[0x0],_0x28df8a=_0x5513e6[_0x5513e6[_0x2b2d2d(0x1c5)]-0x1],_0x5b4a81=_0x1d4718(_0x374809[_0x2b2d2d(0x1df)][_0x2b2d2d(0x1d6)]);_0x5b4a81&&_0x5513e6[_0x2b2d2d(0x1a7)](_0x5b4a81);const _0x136c73=_0x1d4718(_0x28df8a[_0x2b2d2d(0x1df)][_0x2b2d2d(0x192)]);_0x136c73&&_0x5513e6[_0x2b2d2d(0x1d0)](_0x136c73);}function _0x3ec6ac(_0xcd00fa){const _0x1786df=_0x2b2d2d;return _0x1cf5e7[_0x1786df(0x1e0)][_0x1786df(0x1a5)](_0xcd00fa)||_0x1cf5e7[_0x1786df(0x1b7)][_0x1786df(0x1a5)](_0xcd00fa)||_0x1cf5e7[_0x1786df(0x1d7)][_0x1786df(0x1a5)](_0xcd00fa);}function _0x1d4718(_0x135e92){const _0x389555=_0x2b2d2d;if(_0x135e92&&_0x368a9c(_0x135e92,_0x389555(0x1ad))&&!_0x368a9c(_0x135e92,_0x389555(0x18e))){const _0x7c6ce=_0x368a9c(_0x135e92,_0x389555(0x1ad));if(!_0x3ec6ac(_0x7c6ce))return{'node':_0x135e92,'type':_0x389555(0x1cd),'id':_0x7c6ce};}return null;}this[_0x2b2d2d(0x1cc)]=_0x1151bc[_0x2b2d2d(0x1c9)]((_0x71aa66,_0x5a8a84)=>({'changes':_0x71aa66,'state':_0x2b2d2d(0x1d2),'index':_0x5a8a84}));}}export function isValidReplyType(_0x242239){const _0x49a015=_0x24024b;return Object[_0x49a015(0x197)](AI_REPLY_TYPES)[_0x49a015(0x1a5)](_0x242239);}export function isIgnoredReplyType(_0x21609c){const _0x4fcbb9=_0x24024b;return AI_REPLY_TYPES_IGNORED[_0x4fcbb9(0x1a5)](_0x21609c);}function _0x1cb8(_0xbcda76,_0x541c0a){const _0x368ab4=_0x368a();return _0x1cb8=function(_0x1cb80b,_0x271d0d){_0x1cb80b=_0x1cb80b-0x18c;let _0x26c330=_0x368ab4[_0x1cb80b];return _0x26c330;},_0x1cb8(_0xbcda76,_0x541c0a);}export function isReplyTitleType(_0x16e4b6){return _0x16e4b6===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x1e7444){const _0x127ac7=_0x24024b;return _0x127ac7(0x1a2)===_0x1e7444;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
_0x26d810(){[_0x5d9397(0x16c)];[_0x5d9397(0x14b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5d9397(0x164)]=new Set();constructor(_0x183f35){const _0x501a10=_0x5d9397;super(),this[_0x501a10(0x16c)]=_0x183f35||_0x1b9c51;}[_0x5d9397(0x12e)](_0x5c7e4d,_0x169c58,_0x2ebbfc){const _0x53c931=_0x5d9397,_0x358f0a=_0x4c5cb5(_0x5c7e4d);if(0x0===_0x169c58[_0x53c931(0x13d)][_0x53c931(0x16b)]){const _0x2259cf=[];return _0x4e1af9(_0x53c931(0x162),_0x53c931(0x157),_0x358f0a)[_0x53c931(0x148)](_0x37d9cc=>{const _0x140dca=_0x53c931,_0x2ac511=this[_0x140dca(0x16c)]();_0x9d8b9c(_0x37d9cc,_0x140dca(0x162),_0x2ac511),_0x2259cf[_0x140dca(0x143)](_0x2ac511);}),this[_0x53c931(0x134)](_0x358f0a),{'parsedContent':_0x358f0a,'newNodeIds':_0x2259cf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x140)]&&this[_0x53c931(0x159)](_0x358f0a),this[_0x53c931(0x14b)][_0x53c931(0x14a)]=[],this[_0x53c931(0x14b)][_0x53c931(0x14e)]=[],this[_0x53c931(0x14b)][_0x53c931(0x168)]=[],this[_0x53c931(0x14b)][_0x53c931(0x146)]=[],this[_0x53c931(0x14b)][_0x53c931(0x150)]=null,this[_0x53c931(0x164)]=new Set(_0x4e1af9(_0x53c931(0x162),null,_0x169c58)[_0x53c931(0x130)](_0x52677b=>_0x2b31ac(_0x52677b,_0x53c931(0x162)))[_0x53c931(0x165)](_0x22fc80=>!!_0x22fc80));let _0x5f2939=-0x1,_0x3103b2=!0x1;const _0x105b25=_0x358f0a[_0x53c931(0x13d)],_0x3d67f2=Array[_0x53c931(0x135)](_0x105b25)[_0x53c931(0x165)](_0x3dce55=>!(0x3===_0x3dce55[_0x53c931(0x14f)]&&''===_0x23bfe3(_0x3dce55)[_0x53c931(0x147)]())),_0x3c5030=_0x3d67f2[_0x53c931(0x16b)];for(let _0x44604e=0x0;_0x44604e<_0x3c5030;_0x44604e++){const _0x39effa=_0x3d67f2[_0x44604e],_0x4b1840=_0x3d67f2[_0x44604e+0x1];if(this[_0x53c931(0x16d)](_0x39effa)){if(-0x1===_0x5f2939&&(_0x5f2939=_0x44604e),this[_0x53c931(0x144)](_0x39effa),!this[_0x53c931(0x16d)](_0x4b1840)){const [_0x2f7977,_0x3f577d]=this[_0x53c931(0x13c)](_0x39effa,_0x3103b2,_0x169c58);if(_0x2f7977){const _0x51b4e0=Array[_0x53c931(0x135)](_0x3d67f2)[_0x53c931(0x12a)](_0x5f2939,_0x44604e+0x1);this[_0x53c931(0x13b)](_0x2f7977,_0x51b4e0,_0x3f577d),_0x5f2939=-0x1;}}}else{if(this[_0x53c931(0x141)](_0x39effa))_0x3103b2=!0x0;else{if(this[_0x53c931(0x16e)](_0x39effa)){const _0x5d31d5=_0x2b31ac(_0x39effa,_0x53c931(0x162));if(_0x5d31d5&&this[_0x53c931(0x164)][_0x53c931(0x145)](_0x5d31d5)){const _0x188f6f=_0x37c531(_0x53c931(0x162),_0x5d31d5,_0x169c58);this[_0x53c931(0x156)](_0x188f6f,_0x39effa);}if(this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x15b)](_0x5d31d5)){const _0x58da03=this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x16f)](_0x5d31d5);this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x154)](_0x58da03,0x1);}}else{if(this[_0x53c931(0x16a)](_0x39effa)){const _0x2f972c=_0x2b31ac(_0x39effa,_0x53c931(0x162));this[_0x53c931(0x14b)][_0x53c931(0x14e)][_0x53c931(0x15b)](_0x2f972c)||this[_0x53c931(0x166)](_0x39effa);}}}}}for(const _0x139916 of this[_0x53c931(0x14b)][_0x53c931(0x168)]){const _0x1ee883=_0x37c531(_0x53c931(0x162),_0x139916,_0x169c58);if(_0x1ee883){if(_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x15a)]){this[_0x53c931(0x14b)][_0x53c931(0x150)]=_0x139916;const _0x55ac88=_0x2ebbfc[_0x53c931(0x15a)][_0x53c931(0x133)](!0x0);_0x9d8b9c(_0x55ac88,_0x53c931(0x162),_0x139916),_0x9d8b9c(_0x55ac88,_0x53c931(0x14d),_0x53c931(0x155)),_0x249d0a(_0x1ee883,_0x55ac88);}else _0x545d08(_0x1ee883);}}if(_0x4e1af9(_0x53c931(0x138),null,_0x169c58)[_0x53c931(0x148)](_0x3b431d=>{const _0x255019=_0x53c931,_0x3abc57=_0x2b31ac(_0x3b431d,_0x255019(0x138)),_0xa6f98f=_0x37c531(_0x255019(0x162),_0x3abc57,_0x169c58);_0xa6f98f&&_0x34299a(_0xa6f98f,_0x3b431d);}),_0x4e1af9(_0x53c931(0x162),_0x53c931(0x157),_0x169c58)[_0x53c931(0x148)](_0x9c96e6=>{const _0x2ad207=_0x53c931,_0x3679e1=this[_0x2ad207(0x163)](_0x9c96e6);_0x9d8b9c(_0x9c96e6,_0x2ad207(0x162),_0x3679e1),this[_0x2ad207(0x14b)][_0x2ad207(0x14a)][_0x2ad207(0x143)](_0x3679e1);}),this[_0x53c931(0x134)](_0x169c58),_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x140)]&&this[_0x53c931(0x153)](_0x169c58,_0x2ebbfc[_0x53c931(0x139)]||0x0),_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x151)]&&this[_0x53c931(0x14b)][_0x53c931(0x150)]){let _0x510844=_0x37c531(_0x53c931(0x162),this[_0x53c931(0x14b)][_0x53c931(0x150)],_0x169c58);for(;_0x510844;)_0x4f333d(_0x510844),_0x510844=_0x510844[_0x53c931(0x12f)];}return{'parsedContent':_0x169c58,'newNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x14a)],'modifiedNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x14e)],'removedNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x168)]};}[_0x5d9397(0x13b)](_0x3d1573,_0x3fff19,_0x1d620b){const _0x24c8da=_0x5d9397;for(const _0x439c20 of _0x3fff19){const _0x5de363=this[_0x24c8da(0x163)](_0x439c20);_0x9d8b9c(_0x439c20,_0x24c8da(0x162),_0x5de363),this[_0x24c8da(0x14b)][_0x24c8da(0x14a)][_0x24c8da(0x143)](_0x5de363),this[_0x24c8da(0x14b)][_0x24c8da(0x150)]=_0x5de363;}const _0x4c0baf=_0x24c8da(0x15f)===_0x1d620b||_0x24c8da(0x12d)===_0x1d620b?_0x3fff19[_0x24c8da(0x170)]():_0x3fff19;for(const _0x3f07f3 of _0x4c0baf)_0xda863f(_0x3d1573,_0x3f07f3,_0x1d620b);}[_0x5d9397(0x156)](_0x3d317c,_0x4a268a){const _0x53a0cf=_0x5d9397;if(!_0x3d317c)return;if(_0x11e4e2(_0x3d317c,_0x4a268a))return;const _0xcea100=this[_0x53a0cf(0x163)](_0x3d317c);_0x9d8b9c(_0x4a268a,_0x53a0cf(0x162),_0xcea100),this[_0x53a0cf(0x14b)][_0x53a0cf(0x14e)][_0x53a0cf(0x143)](_0xcea100),this[_0x53a0cf(0x14b)][_0x53a0cf(0x150)]=_0xcea100,_0x249d0a(_0x3d317c,_0x4a268a[_0x53a0cf(0x133)](!0x0));}[_0x5d9397(0x13c)](_0x347732,_0x435466,_0x397306){const _0x56d873=_0x5d9397,_0x4f6d94=this[_0x56d873(0x169)](_0x347732,!0x1);if(_0x4f6d94){const _0x3818ec=this[_0x56d873(0x12c)](_0x4f6d94),_0x4fdb9e=_0x37c531(_0x56d873(0x162),_0x3818ec,_0x397306);if(_0x4fdb9e)return[_0x4fdb9e,_0x56d873(0x12d)];this[_0x56d873(0x14b)][_0x56d873(0x146)][_0x56d873(0x143)](_0x3818ec);}const _0x3c3ba1=this[_0x56d873(0x131)](_0x347732,!0x1);if(_0x3c3ba1){const _0x433966=this[_0x56d873(0x12c)](_0x3c3ba1),_0x46eead=_0x37c531(_0x56d873(0x162),_0x433966,_0x397306);if(_0x46eead)return[_0x46eead,_0x56d873(0x15e)];this[_0x56d873(0x14b)][_0x56d873(0x146)][_0x56d873(0x143)](_0x433966);}return _0x435466?_0x347732[_0x56d873(0x132)]?this[_0x56d873(0x13e)](_0x347732,_0x397306):[_0x397306[_0x56d873(0x13d)][_0x397306[_0x56d873(0x13d)][_0x56d873(0x16b)]-0x1],_0x56d873(0x12d)]:[_0x397306[_0x56d873(0x13d)][0x0],_0x56d873(0x15e)];}[_0x5d9397(0x13e)](_0x632bee,_0x40ba33){const _0x4c3986=_0x5d9397,_0x52e975=[],_0x20055c=this[_0x4c3986(0x169)](_0x632bee,!0x0);if(_0x20055c){const _0x4add0b=this[_0x4c3986(0x12c)](_0x20055c),_0x1cd402=_0x37c531(_0x4c3986(0x162),_0x4add0b,_0x40ba33);_0x1cd402&&_0x52e975[_0x4c3986(0x143)]([_0x1cd402,_0x4c3986(0x12d)]);}const _0x22421f=this[_0x4c3986(0x131)](_0x632bee,!0x0);if(_0x22421f){const _0x538452=this[_0x4c3986(0x12c)](_0x22421f),_0x10832c=_0x37c531(_0x4c3986(0x162),_0x538452,_0x40ba33);_0x10832c&&_0x52e975[_0x4c3986(0x143)]([_0x10832c,_0x4c3986(0x15e)]);}if(_0x52e975[_0x4c3986(0x16b)]>0x1)return _0x451550(_0x52e975[0x0][0x0])<=_0x451550(_0x52e975[0x1][0x0])?_0x52e975[0x0]:_0x52e975[0x1];return 0x1===_0x52e975[_0x4c3986(0x16b)]?_0x52e975[0x0]:[_0x40ba33[_0x4c3986(0x149)],_0x4c3986(0x12d)];}[_0x5d9397(0x131)](_0x61e8cd,_0x1563ae){const _0x4502ea=_0x5d9397;let _0x333228=_0x61e8cd[_0x4502ea(0x132)],_0x199451=null,_0x54e2f4=!0x1;for(;_0x333228;){if(_0x5c1da2(_0x333228)){if(this[_0x4502ea(0x16a)](_0x333228)&&(_0x199451=_0x333228),this[_0x4502ea(0x141)](_0x333228)&&_0x1563ae&&!_0x54e2f4){_0x54e2f4=!0x0,_0x333228=_0x333228[_0x4502ea(0x132)];continue;}break;}const _0x434600=_0x2b31ac(_0x333228,_0x4502ea(0x162));if(_0x434600&&_0x4502ea(0x157)!==_0x434600&&this[_0x4502ea(0x164)][_0x4502ea(0x145)](_0x434600)){_0x199451=_0x333228;break;}_0x333228=_0x333228[_0x4502ea(0x132)];}return _0x199451;}[_0x5d9397(0x169)](_0x5b8702,_0x47d9eb){const _0x3219d6=_0x5d9397;let _0x2ce664=_0x5b8702[_0x3219d6(0x15c)],_0x247591=null,_0xb2fd09=!0x1;for(;_0x2ce664;){if(_0x5c1da2(_0x2ce664)){if(this[_0x3219d6(0x16a)](_0x2ce664)&&(_0x247591=_0x2ce664),this[_0x3219d6(0x141)](_0x2ce664)&&_0x47d9eb&&!_0xb2fd09){_0xb2fd09=!0x0,_0x2ce664=_0x2ce664[_0x3219d6(0x15c)];continue;}break;}const _0x2f5679=_0x2b31ac(_0x2ce664,_0x3219d6(0x162));if(_0x2f5679&&_0x3219d6(0x157)!==_0x2f5679&&this[_0x3219d6(0x164)][_0x3219d6(0x145)](_0x2f5679)){_0x247591=_0x2ce664;break;}_0x2ce664=_0x2ce664[_0x3219d6(0x15c)];}return _0x247591;}[_0x5d9397(0x144)](_0x28abcc){const _0x5cf8c4=_0x5d9397;_0x83f103(_0x28abcc)&&_0x4e1af9(_0x5cf8c4(0x162),null,_0x28abcc)[_0x5cf8c4(0x148)](_0x45ae4c=>{const _0x51b4c5=_0x5cf8c4;if(this[_0x51b4c5(0x16e)](_0x45ae4c)&&!this[_0x51b4c5(0x167)](_0x45ae4c)){const _0x13ada3=_0x2b31ac(_0x45ae4c,_0x51b4c5(0x162));_0x9d8b9c(_0x45ae4c,_0x51b4c5(0x138),_0x13ada3),_0x9d8b9c(_0x45ae4c,_0x51b4c5(0x162),null);}});}[_0x5d9397(0x12c)](_0x4a4cf5){const _0x183746=_0x5d9397;if(!_0x4a4cf5)return null;if(_0x83f103(_0x4a4cf5))return _0x2b31ac(_0x4a4cf5,_0x183746(0x162));if(_0x5c1da2(_0x4a4cf5)){const _0x220371=_0x23bfe3(_0x4a4cf5)[_0x183746(0x13f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x220371&&_0x220371[0x1])return _0x220371[0x1];}return null;}[_0x5d9397(0x166)](_0x240678){const _0x501121=_0x5d9397;if(_0x5c1da2(_0x240678)){const _0xc4eb9e=_0x23bfe3(_0x240678)[_0x501121(0x13f)](/removed[\s*-]data-id="([^"]+)"/);_0xc4eb9e&&_0xc4eb9e[0x1]&&this[_0x501121(0x14b)][_0x501121(0x168)][_0x501121(0x143)](_0xc4eb9e[0x1]);}}[_0x5d9397(0x163)](_0x5dc97c){const _0xc4c0a8=_0x5d9397;return this[_0xc4c0a8(0x16e)](_0x5dc97c)?_0x2b31ac(_0x5dc97c,_0xc4c0a8(0x162)):this[_0xc4c0a8(0x16c)]();}[_0x5d9397(0x134)](_0xb05f1d){const _0x2d259f=_0x5d9397;_0x25deeb(_0xb05f1d)[_0x2d259f(0x165)](_0xd334c4=>this[_0x2d259f(0x16a)](_0xd334c4)||this[_0x2d259f(0x141)](_0xd334c4))[_0x2d259f(0x148)](_0x92d204=>{_0x545d08(_0x92d204);});}[_0x5d9397(0x159)](_0x5849df){const _0x235d71=_0x5d9397,_0x30e6b8=_0x5849df[_0x235d71(0x13d)],_0x3a08c3=_0x30e6b8[_0x30e6b8[_0x235d71(0x16b)]-0x1];_0x3a08c3&&_0x83f103(_0x3a08c3)&&_0x9d8b9c(_0x3a08c3,_0x235d71(0x152),_0x235d71(0x155));}[_0x5d9397(0x153)](_0x336723,_0x8dec2f){const _0xbc70c2=_0x5d9397,_0x207cb5=_0x37c531(_0xbc70c2(0x152),_0xbc70c2(0x155),_0x336723);if(!_0x207cb5)return;const _0x3e04e2=_0x588691(_0x207cb5)[_0xbc70c2(0x12a)](0x0,-0x1),_0x21e58f=_0x3e04e2[_0xbc70c2(0x16b)];let _0x10c797=_0x207cb5;if(_0x21e58f>_0x8dec2f){let _0x4f121a=_0x21e58f,_0x5eebd4=null;for(;_0x4f121a>_0x8dec2f&&_0x4f121a>=0x0;)_0x4f121a--,_0x5eebd4=_0x3e04e2[_0x4f121a];_0x5eebd4&&(_0x10c797=_0x5eebd4,_0x9d8b9c(_0x207cb5,_0xbc70c2(0x152),null),_0x9d8b9c(_0x5eebd4,_0xbc70c2(0x152),_0xbc70c2(0x155)));}else{if(_0x21e58f<_0x8dec2f){let _0xdb3160=_0x21e58f,_0x45beca=_0x207cb5;for(;_0xdb3160<_0x8dec2f;){const _0x2263cf=_0x45beca[_0xbc70c2(0x13d)][_0xbc70c2(0x165)](_0x1b1a9f=>_0x83f103(_0x1b1a9f));if(0x0===_0x2263cf[_0xbc70c2(0x16b)])break;_0xdb3160++,_0x45beca=_0x2263cf[_0x2263cf[_0xbc70c2(0x16b)]-0x1];}_0x45beca&&(_0x10c797=_0x45beca,_0x9d8b9c(_0x207cb5,_0xbc70c2(0x152),null),_0x9d8b9c(_0x45beca,_0xbc70c2(0x152),_0xbc70c2(0x155)));}}let _0xd96ce1=_0x10c797;for(;_0xd96ce1;){for(;_0xd96ce1[_0xbc70c2(0x132)];)_0xd96ce1=_0xd96ce1[_0xbc70c2(0x132)],_0x83f103(_0xd96ce1)&&_0x9d8b9c(_0xd96ce1,_0xbc70c2(0x152),_0xbc70c2(0x155));_0xd96ce1=_0xd96ce1[_0xbc70c2(0x12f)];}}[_0x5d9397(0x16d)](_0x1e9536){const _0x230e22=_0x5d9397;return Boolean(_0x230e22(0x157)===_0x2b31ac(_0x1e9536,_0x230e22(0x162)));}[_0x5d9397(0x16e)](_0x22b747){const _0x123ea4=_0x5d9397;return Boolean((_0x2b31ac(_0x22b747,_0x123ea4(0x162))||'')[_0x123ea4(0x16b)]>0x0&&_0x123ea4(0x157)!==_0x2b31ac(_0x22b747,_0x123ea4(0x162)));}[_0x5d9397(0x16a)](_0x4dc94e){const _0x206138=_0x5d9397;return!!_0x4dc94e&&Boolean(_0x5c1da2(_0x4dc94e)&&_0x23bfe3(_0x4dc94e)[_0x206138(0x13f)](/removed[\s*-]data-id="[^"]+"/));}[_0x5d9397(0x167)](_0x18347c){const _0x177421=_0x5d9397;let _0x5b42bf=_0x18347c[_0x177421(0x12f)];for(;_0x5b42bf;){if(_0x2b31ac(_0x5b42bf,_0x177421(0x138)))return!0x0;_0x5b42bf=_0x5b42bf[_0x177421(0x12f)];}return!0x1;}[_0x5d9397(0x141)](_0x1b90fc){const _0x286814=_0x5d9397;return Boolean(_0x5c1da2(_0x1b90fc)&&_0x23bfe3(_0x1b90fc)[_0x286814(0x13f)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x178613=_0x4530;function _0xb430(){const _0x5bd4bc=['reverse','markUnstableElementsDepth','4405667nNIOmQ','_findPrevElementWithDataId','_isNewNode','_generateUid','368630ESSWpP','afterbegin','_storeDeletedElementIds','_isExistingNode','_removeSpecialComments','_replaceNode','nodeType','214372UzqfoI','merge','4736208aBpGAz','lastChild','_findNextElementWithDataId','removedIds','_markLastTagElementUnstable','includes','data-unstable','has','_getUid','_findFallbackReferenceNode','filter','11DAAhac','_isExistingContentComment','forEach','_getNodeDataId','cutAfterLastChange','childNodes','splice','90378kDHCYj','nextSibling','3962888tmHpGt','_touchedNodesState','parentNode','true','55fFZedd','cloneNode','_insertNodes','50WzZNLx','replaceRemovedWith','map','push','trim','lastTouchedId','data-removed','beforebegin','_isDelNode','newIds','data-id','_hasWrappedParent','13268210NcNhkf','modifiedIds','indexOf','slice','data-wrapped-id','length','previousSibling','_findReferenceNode','new-element','9eCsgIM','afterend','invalidIds','match','from','markUnstableElements','_markUnstableElements','_markWrappedElements','_existingDataIds'];_0xb430=function(){return _0x5bd4bc;};return _0xb430();}(function(_0xdec56e,_0xa62f63){const _0x3bfeac=_0x4530,_0x3dc1b0=_0xdec56e();while(!![]){try{const _0x5af70f=-parseInt(_0x3bfeac(0x1f0))/0x1+-parseInt(_0x3bfeac(0x214))/0x2*(parseInt(_0x3bfeac(0x20b))/0x3)+parseInt(_0x3bfeac(0x1f7))/0x4*(parseInt(_0x3bfeac(0x211))/0x5)+parseInt(_0x3bfeac(0x1f9))/0x6+-parseInt(_0x3bfeac(0x1ec))/0x7+parseInt(_0x3bfeac(0x20d))/0x8*(-parseInt(_0x3bfeac(0x229))/0x9)+parseInt(_0x3bfeac(0x220))/0xa*(parseInt(_0x3bfeac(0x204))/0xb);if(_0x5af70f===_0xa62f63)break;else _0x3dc1b0['push'](_0x3dc1b0['shift']());}catch(_0x41f733){_0x3dc1b0['push'](_0x3dc1b0['shift']());}}}(_0xb430,0x701b6));import{ObservableMixin as _0x7f938,uid as _0x4c717e}from'ckeditor5/src/utils.js';function _0x4530(_0x41b386,_0x152524){const _0xb43075=_0xb430();return _0x4530=function(_0x4530fd,_0x2fe5e3){_0x4530fd=_0x4530fd-0x1e6;let _0x176593=_0xb43075[_0x4530fd];return _0x176593;},_0x4530(_0x41b386,_0x152524);}import{findAllByAttribute as _0x2bd5fa,findByAttribute as _0x1fa186,getAttribute as _0x44e358,isComment as _0xdd1f90,isTag as _0x144d48,insertElement as _0x56307e,moveElement as _0x5e4786,removeElement as _0x2b2ca0,replaceElement as _0x10d812,serialize as _0x3cb25a,setAttribute as _0x1d41de,clone as _0x19aff7,findAllComments as _0xff809a,getParents as _0x504b85,getNodeNestingLevel as _0x65eb81,areNodesSame as _0x559b62,removeElementsAfter as _0x612157}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x7f938(){[_0x178613(0x1ef)];[_0x178613(0x20e)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x178613(0x1e9)]=new Set();constructor(_0x4d5eb9){const _0x54f2e7=_0x178613;super(),this[_0x54f2e7(0x1ef)]=_0x4d5eb9||_0x4c717e;}[_0x178613(0x1f8)](_0x39c460,_0x483e88,_0x1744f2){const _0x17cb41=_0x178613,_0x503d79=_0x19aff7(_0x39c460);if(0x0===_0x483e88[_0x17cb41(0x209)][_0x17cb41(0x225)]){const _0x23e492=[];return _0x2bd5fa(_0x17cb41(0x21e),_0x17cb41(0x228),_0x503d79)[_0x17cb41(0x206)](_0x35e7aa=>{const _0x16c172=_0x17cb41,_0x4e79ac=this[_0x16c172(0x1ef)]();_0x1d41de(_0x35e7aa,_0x16c172(0x21e),_0x4e79ac),_0x23e492[_0x16c172(0x217)](_0x4e79ac);}),this[_0x17cb41(0x1f4)](_0x503d79),{'parsedContent':_0x503d79,'newNodeIds':_0x23e492,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1744f2&&_0x1744f2[_0x17cb41(0x1e6)]&&this[_0x17cb41(0x1fd)](_0x503d79),this[_0x17cb41(0x20e)][_0x17cb41(0x21d)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x221)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x22b)]=[],this[_0x17cb41(0x20e)][_0x17cb41(0x219)]=null,this[_0x17cb41(0x1e9)]=new Set(_0x2bd5fa(_0x17cb41(0x21e),null,_0x483e88)[_0x17cb41(0x216)](_0x5914b7=>_0x44e358(_0x5914b7,_0x17cb41(0x21e)))[_0x17cb41(0x203)](_0x51a61f=>!!_0x51a61f));let _0x599b8f=-0x1,_0x2764b2=!0x1;const _0x109b72=_0x503d79[_0x17cb41(0x209)],_0x4e9fa6=Array[_0x17cb41(0x22d)](_0x109b72)[_0x17cb41(0x203)](_0x4aa6c3=>!(0x3===_0x4aa6c3[_0x17cb41(0x1f6)]&&''===_0x3cb25a(_0x4aa6c3)[_0x17cb41(0x218)]())),_0x534e14=_0x4e9fa6[_0x17cb41(0x225)];for(let _0x3968c7=0x0;_0x3968c7<_0x534e14;_0x3968c7++){const _0x5035e6=_0x4e9fa6[_0x3968c7],_0x92d27e=_0x4e9fa6[_0x3968c7+0x1];if(this[_0x17cb41(0x1ee)](_0x5035e6)){if(-0x1===_0x599b8f&&(_0x599b8f=_0x3968c7),this[_0x17cb41(0x1e8)](_0x5035e6),!this[_0x17cb41(0x1ee)](_0x92d27e)){const [_0x5cf2d2,_0x2278b6]=this[_0x17cb41(0x227)](_0x5035e6,_0x2764b2,_0x483e88);if(_0x5cf2d2){const _0xaec435=Array[_0x17cb41(0x22d)](_0x4e9fa6)[_0x17cb41(0x223)](_0x599b8f,_0x3968c7+0x1);this[_0x17cb41(0x213)](_0x5cf2d2,_0xaec435,_0x2278b6),_0x599b8f=-0x1;}}}else{if(this[_0x17cb41(0x205)](_0x5035e6))_0x2764b2=!0x0;else{if(this[_0x17cb41(0x1f3)](_0x5035e6)){const _0x206c93=_0x44e358(_0x5035e6,_0x17cb41(0x21e));if(_0x206c93&&this[_0x17cb41(0x1e9)][_0x17cb41(0x200)](_0x206c93)){const _0x33c8f6=_0x1fa186(_0x17cb41(0x21e),_0x206c93,_0x483e88);this[_0x17cb41(0x1f5)](_0x33c8f6,_0x5035e6);}if(this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)][_0x17cb41(0x1fe)](_0x206c93)){const _0x27ad62=this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)][_0x17cb41(0x222)](_0x206c93);this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)][_0x17cb41(0x20a)](_0x27ad62,0x1);}}else{if(this[_0x17cb41(0x21c)](_0x5035e6)){const _0x195464=_0x44e358(_0x5035e6,_0x17cb41(0x21e));this[_0x17cb41(0x20e)][_0x17cb41(0x221)][_0x17cb41(0x1fe)](_0x195464)||this[_0x17cb41(0x1f2)](_0x5035e6);}}}}}for(const _0x37335f of this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)]){const _0x14ef5a=_0x1fa186(_0x17cb41(0x21e),_0x37335f,_0x483e88);if(_0x14ef5a){if(_0x1744f2&&_0x1744f2[_0x17cb41(0x215)]){this[_0x17cb41(0x20e)][_0x17cb41(0x219)]=_0x37335f;const _0x17754b=_0x1744f2[_0x17cb41(0x215)][_0x17cb41(0x212)](!0x0);_0x1d41de(_0x17754b,_0x17cb41(0x21e),_0x37335f),_0x1d41de(_0x17754b,_0x17cb41(0x21a),_0x17cb41(0x210)),_0x10d812(_0x14ef5a,_0x17754b);}else _0x2b2ca0(_0x14ef5a);}}if(_0x2bd5fa(_0x17cb41(0x224),null,_0x483e88)[_0x17cb41(0x206)](_0x459f69=>{const _0x50b26f=_0x17cb41,_0x4a474b=_0x44e358(_0x459f69,_0x50b26f(0x224)),_0x29a772=_0x1fa186(_0x50b26f(0x21e),_0x4a474b,_0x483e88);_0x29a772&&_0x5e4786(_0x29a772,_0x459f69);}),_0x2bd5fa(_0x17cb41(0x21e),_0x17cb41(0x228),_0x483e88)[_0x17cb41(0x206)](_0x3ffbc7=>{const _0x31edd2=_0x17cb41,_0x232bc6=this[_0x31edd2(0x201)](_0x3ffbc7);_0x1d41de(_0x3ffbc7,_0x31edd2(0x21e),_0x232bc6),this[_0x31edd2(0x20e)][_0x31edd2(0x21d)][_0x31edd2(0x217)](_0x232bc6);}),this[_0x17cb41(0x1f4)](_0x483e88),_0x1744f2&&_0x1744f2[_0x17cb41(0x1e6)]&&this[_0x17cb41(0x1e7)](_0x483e88,_0x1744f2[_0x17cb41(0x1eb)]||0x0),_0x1744f2&&_0x1744f2[_0x17cb41(0x208)]&&this[_0x17cb41(0x20e)][_0x17cb41(0x219)]){let _0x32abad=_0x1fa186(_0x17cb41(0x21e),this[_0x17cb41(0x20e)][_0x17cb41(0x219)],_0x483e88);for(;_0x32abad;)_0x612157(_0x32abad),_0x32abad=_0x32abad[_0x17cb41(0x20f)];}return{'parsedContent':_0x483e88,'newNodeIds':this[_0x17cb41(0x20e)][_0x17cb41(0x21d)],'modifiedNodeIds':this[_0x17cb41(0x20e)][_0x17cb41(0x221)],'removedNodeIds':this[_0x17cb41(0x20e)][_0x17cb41(0x1fc)]};}[_0x178613(0x213)](_0x38223a,_0x239349,_0x5a0a6a){const _0x2d0aff=_0x178613;for(const _0x5db486 of _0x239349){const _0x281514=this[_0x2d0aff(0x201)](_0x5db486);_0x1d41de(_0x5db486,_0x2d0aff(0x21e),_0x281514),this[_0x2d0aff(0x20e)][_0x2d0aff(0x21d)][_0x2d0aff(0x217)](_0x281514),this[_0x2d0aff(0x20e)][_0x2d0aff(0x219)]=_0x281514;}const _0x2bb8e7=_0x2d0aff(0x1f1)===_0x5a0a6a||_0x2d0aff(0x22a)===_0x5a0a6a?_0x239349[_0x2d0aff(0x1ea)]():_0x239349;for(const _0x17c756 of _0x2bb8e7)_0x56307e(_0x38223a,_0x17c756,_0x5a0a6a);}[_0x178613(0x1f5)](_0x10f722,_0x2cc7ce){const _0x54a6b0=_0x178613;if(!_0x10f722)return;if(_0x559b62(_0x10f722,_0x2cc7ce))return;const _0x705dda=this[_0x54a6b0(0x201)](_0x10f722);_0x1d41de(_0x2cc7ce,_0x54a6b0(0x21e),_0x705dda),this[_0x54a6b0(0x20e)][_0x54a6b0(0x221)][_0x54a6b0(0x217)](_0x705dda),this[_0x54a6b0(0x20e)][_0x54a6b0(0x219)]=_0x705dda,_0x10d812(_0x10f722,_0x2cc7ce[_0x54a6b0(0x212)](!0x0));}[_0x178613(0x227)](_0x569549,_0x4b06de,_0x36237f){const _0x1a077f=_0x178613,_0x216b32=this[_0x1a077f(0x1ed)](_0x569549,!0x1);if(_0x216b32){const _0x2097d3=this[_0x1a077f(0x207)](_0x216b32),_0x4e3098=_0x1fa186(_0x1a077f(0x21e),_0x2097d3,_0x36237f);if(_0x4e3098)return[_0x4e3098,_0x1a077f(0x22a)];this[_0x1a077f(0x20e)][_0x1a077f(0x22b)][_0x1a077f(0x217)](_0x2097d3);}const _0x2ea3e6=this[_0x1a077f(0x1fb)](_0x569549,!0x1);if(_0x2ea3e6){const _0x1bec0e=this[_0x1a077f(0x207)](_0x2ea3e6),_0x34341b=_0x1fa186(_0x1a077f(0x21e),_0x1bec0e,_0x36237f);if(_0x34341b)return[_0x34341b,_0x1a077f(0x21b)];this[_0x1a077f(0x20e)][_0x1a077f(0x22b)][_0x1a077f(0x217)](_0x1bec0e);}return _0x4b06de?_0x569549[_0x1a077f(0x20c)]?this[_0x1a077f(0x202)](_0x569549,_0x36237f):[_0x36237f[_0x1a077f(0x209)][_0x36237f[_0x1a077f(0x209)][_0x1a077f(0x225)]-0x1],_0x1a077f(0x22a)]:[_0x36237f[_0x1a077f(0x209)][0x0],_0x1a077f(0x21b)];}[_0x178613(0x202)](_0x5371ad,_0x4948eb){const _0x3a49b3=_0x178613,_0x15c65e=[],_0x2094f3=this[_0x3a49b3(0x1ed)](_0x5371ad,!0x0);if(_0x2094f3){const _0x4a993c=this[_0x3a49b3(0x207)](_0x2094f3),_0x31698f=_0x1fa186(_0x3a49b3(0x21e),_0x4a993c,_0x4948eb);_0x31698f&&_0x15c65e[_0x3a49b3(0x217)]([_0x31698f,_0x3a49b3(0x22a)]);}const _0xa26bbe=this[_0x3a49b3(0x1fb)](_0x5371ad,!0x0);if(_0xa26bbe){const _0x23c746=this[_0x3a49b3(0x207)](_0xa26bbe),_0x1245e5=_0x1fa186(_0x3a49b3(0x21e),_0x23c746,_0x4948eb);_0x1245e5&&_0x15c65e[_0x3a49b3(0x217)]([_0x1245e5,_0x3a49b3(0x21b)]);}if(_0x15c65e[_0x3a49b3(0x225)]>0x1)return _0x65eb81(_0x15c65e[0x0][0x0])<=_0x65eb81(_0x15c65e[0x1][0x0])?_0x15c65e[0x0]:_0x15c65e[0x1];return 0x1===_0x15c65e[_0x3a49b3(0x225)]?_0x15c65e[0x0]:[_0x4948eb[_0x3a49b3(0x1fa)],_0x3a49b3(0x22a)];}[_0x178613(0x1fb)](_0x4fdeaa,_0x1e881b){const _0xf62ee6=_0x178613;let _0x1f985c=_0x4fdeaa[_0xf62ee6(0x20c)],_0x1c72ac=null,_0x1a48f3=!0x1;for(;_0x1f985c;){if(_0xdd1f90(_0x1f985c)){if(this[_0xf62ee6(0x21c)](_0x1f985c)&&(_0x1c72ac=_0x1f985c),this[_0xf62ee6(0x205)](_0x1f985c)&&_0x1e881b&&!_0x1a48f3){_0x1a48f3=!0x0,_0x1f985c=_0x1f985c[_0xf62ee6(0x20c)];continue;}break;}const _0x250515=_0x44e358(_0x1f985c,_0xf62ee6(0x21e));if(_0x250515&&_0xf62ee6(0x228)!==_0x250515&&this[_0xf62ee6(0x1e9)][_0xf62ee6(0x200)](_0x250515)){_0x1c72ac=_0x1f985c;break;}_0x1f985c=_0x1f985c[_0xf62ee6(0x20c)];}return _0x1c72ac;}[_0x178613(0x1ed)](_0x49d025,_0x11390d){const _0xa50293=_0x178613;let _0x348cca=_0x49d025[_0xa50293(0x226)],_0x32c8c0=null,_0x4df30c=!0x1;for(;_0x348cca;){if(_0xdd1f90(_0x348cca)){if(this[_0xa50293(0x21c)](_0x348cca)&&(_0x32c8c0=_0x348cca),this[_0xa50293(0x205)](_0x348cca)&&_0x11390d&&!_0x4df30c){_0x4df30c=!0x0,_0x348cca=_0x348cca[_0xa50293(0x226)];continue;}break;}const _0x49a55e=_0x44e358(_0x348cca,_0xa50293(0x21e));if(_0x49a55e&&_0xa50293(0x228)!==_0x49a55e&&this[_0xa50293(0x1e9)][_0xa50293(0x200)](_0x49a55e)){_0x32c8c0=_0x348cca;break;}_0x348cca=_0x348cca[_0xa50293(0x226)];}return _0x32c8c0;}[_0x178613(0x1e8)](_0x464a7b){const _0xecc9a6=_0x178613;_0x144d48(_0x464a7b)&&_0x2bd5fa(_0xecc9a6(0x21e),null,_0x464a7b)[_0xecc9a6(0x206)](_0x36bbd3=>{const _0x1a0cd8=_0xecc9a6;if(this[_0x1a0cd8(0x1f3)](_0x36bbd3)&&!this[_0x1a0cd8(0x21f)](_0x36bbd3)){const _0x1bfecc=_0x44e358(_0x36bbd3,_0x1a0cd8(0x21e));_0x1d41de(_0x36bbd3,_0x1a0cd8(0x224),_0x1bfecc),_0x1d41de(_0x36bbd3,_0x1a0cd8(0x21e),null);}});}[_0x178613(0x207)](_0x4fbbcb){const _0x3a74ed=_0x178613;if(!_0x4fbbcb)return null;if(_0x144d48(_0x4fbbcb))return _0x44e358(_0x4fbbcb,_0x3a74ed(0x21e));if(_0xdd1f90(_0x4fbbcb)){const _0x16adc1=_0x3cb25a(_0x4fbbcb)[_0x3a74ed(0x22c)](/removed[\s*-]data-id="([^"]+)"/);if(_0x16adc1&&_0x16adc1[0x1])return _0x16adc1[0x1];}return null;}[_0x178613(0x1f2)](_0x3e875a){const _0x3c4845=_0x178613;if(_0xdd1f90(_0x3e875a)){const _0x19313a=_0x3cb25a(_0x3e875a)[_0x3c4845(0x22c)](/removed[\s*-]data-id="([^"]+)"/);_0x19313a&&_0x19313a[0x1]&&this[_0x3c4845(0x20e)][_0x3c4845(0x1fc)][_0x3c4845(0x217)](_0x19313a[0x1]);}}[_0x178613(0x201)](_0x256af9){const _0xbfedac=_0x178613;return this[_0xbfedac(0x1f3)](_0x256af9)?_0x44e358(_0x256af9,_0xbfedac(0x21e)):this[_0xbfedac(0x1ef)]();}[_0x178613(0x1f4)](_0x19cab9){const _0x5b63e2=_0x178613;_0xff809a(_0x19cab9)[_0x5b63e2(0x203)](_0x4ddb7e=>this[_0x5b63e2(0x21c)](_0x4ddb7e)||this[_0x5b63e2(0x205)](_0x4ddb7e))[_0x5b63e2(0x206)](_0x1c4f3a=>{_0x2b2ca0(_0x1c4f3a);});}[_0x178613(0x1fd)](_0x409564){const _0x410b9d=_0x178613,_0x20087c=_0x409564[_0x410b9d(0x209)],_0x5afa37=_0x20087c[_0x20087c[_0x410b9d(0x225)]-0x1];_0x5afa37&&_0x144d48(_0x5afa37)&&_0x1d41de(_0x5afa37,_0x410b9d(0x1ff),_0x410b9d(0x210));}[_0x178613(0x1e7)](_0x3d1ef5,_0x49ec74){const _0x4ba17e=_0x178613,_0x176784=_0x1fa186(_0x4ba17e(0x1ff),_0x4ba17e(0x210),_0x3d1ef5);if(!_0x176784)return;const _0x18f3dd=_0x504b85(_0x176784)[_0x4ba17e(0x223)](0x0,-0x1),_0x2af095=_0x18f3dd[_0x4ba17e(0x225)];let _0x3bff9d=_0x176784;if(_0x2af095>_0x49ec74){let _0x4b468c=_0x2af095,_0xa74b68=null;for(;_0x4b468c>_0x49ec74&&_0x4b468c>=0x0;)_0x4b468c--,_0xa74b68=_0x18f3dd[_0x4b468c];_0xa74b68&&(_0x3bff9d=_0xa74b68,_0x1d41de(_0x176784,_0x4ba17e(0x1ff),null),_0x1d41de(_0xa74b68,_0x4ba17e(0x1ff),_0x4ba17e(0x210)));}else{if(_0x2af095<_0x49ec74){let _0x24e324=_0x2af095,_0x106994=_0x176784;for(;_0x24e324<_0x49ec74;){const _0x590382=_0x106994[_0x4ba17e(0x209)][_0x4ba17e(0x203)](_0x45a811=>_0x144d48(_0x45a811));if(0x0===_0x590382[_0x4ba17e(0x225)])break;_0x24e324++,_0x106994=_0x590382[_0x590382[_0x4ba17e(0x225)]-0x1];}_0x106994&&(_0x3bff9d=_0x106994,_0x1d41de(_0x176784,_0x4ba17e(0x1ff),null),_0x1d41de(_0x106994,_0x4ba17e(0x1ff),_0x4ba17e(0x210)));}}let _0x14067d=_0x3bff9d;for(;_0x14067d;){for(;_0x14067d[_0x4ba17e(0x20c)];)_0x14067d=_0x14067d[_0x4ba17e(0x20c)],_0x144d48(_0x14067d)&&_0x1d41de(_0x14067d,_0x4ba17e(0x1ff),_0x4ba17e(0x210));_0x14067d=_0x14067d[_0x4ba17e(0x20f)];}}[_0x178613(0x1ee)](_0x52219a){const _0x21cda6=_0x178613;return Boolean(_0x21cda6(0x228)===_0x44e358(_0x52219a,_0x21cda6(0x21e)));}[_0x178613(0x1f3)](_0x22f43f){const _0x38b577=_0x178613;return Boolean((_0x44e358(_0x22f43f,_0x38b577(0x21e))||'')[_0x38b577(0x225)]>0x0&&_0x38b577(0x228)!==_0x44e358(_0x22f43f,_0x38b577(0x21e)));}[_0x178613(0x21c)](_0x51f4b5){const _0x37c88c=_0x178613;return!!_0x51f4b5&&Boolean(_0xdd1f90(_0x51f4b5)&&_0x3cb25a(_0x51f4b5)[_0x37c88c(0x22c)](/removed[\s*-]data-id="[^"]+"/));}[_0x178613(0x21f)](_0xfef0fb){const _0x4f8354=_0x178613;let _0x2a418a=_0xfef0fb[_0x4f8354(0x20f)];for(;_0x2a418a;){if(_0x44e358(_0x2a418a,_0x4f8354(0x224)))return!0x0;_0x2a418a=_0x2a418a[_0x4f8354(0x20f)];}return!0x1;}[_0x178613(0x205)](_0x389978){const _0x166643=_0x178613;return Boolean(_0xdd1f90(_0x389978)&&_0x3cb25a(_0x389978)[_0x166643(0x22c)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x49b4(){const _0x412137=['737zYmgft','9iCCKUZ','7012884cjjhIh','311704tPFSsk','607560xbFjsx','parse','46HRmaRl','7212520hWSHUh','parseAndNormalizeHTML','<dummy>','156963qajndf','459456ouLsCz','</dummy>','642276AIYQIs','children','_m2html','7qFCFZz','convertMarkdownToHTML','replace','_parseHTML','10OECYlu'];_0x49b4=function(){return _0x412137;};return _0x49b4();}const _0xf18517=_0xcc8a;(function(_0x5167f3,_0x5e0787){const _0x33548a=_0xcc8a,_0x547cf7=_0x5167f3();while(!![]){try{const _0xbc6515=-parseInt(_0x33548a(0x1f3))/0x1+parseInt(_0x33548a(0x203))/0x2*(-parseInt(_0x33548a(0x1f2))/0x3)+parseInt(_0x33548a(0x1f5))/0x4*(-parseInt(_0x33548a(0x1fc))/0x5)+parseInt(_0x33548a(0x1ff))/0x6*(-parseInt(_0x33548a(0x1f8))/0x7)+-parseInt(_0x33548a(0x200))/0x8*(parseInt(_0x33548a(0x1fe))/0x9)+parseInt(_0x33548a(0x1ef))/0xa+-parseInt(_0x33548a(0x1fd))/0xb*(-parseInt(_0x33548a(0x201))/0xc);if(_0xbc6515===_0x5e0787)break;else _0x547cf7['push'](_0x547cf7['shift']());}catch(_0x793ffb){_0x547cf7['push'](_0x547cf7['shift']());}}}(_0x49b4,0xe106c));import{ObservableMixin as _0x4e0868}from'ckeditor5/src/utils.js';function _0xcc8a(_0x3710a3,_0x4088c3){const _0x49b495=_0x49b4();return _0xcc8a=function(_0xcc8a79,_0x38688b){_0xcc8a79=_0xcc8a79-0x1ef;let _0x1406da=_0x49b495[_0xcc8a79];return _0x1406da;},_0xcc8a(_0x3710a3,_0x4088c3);}import{MarkdownGfmMdToHtml as _0x1021d7}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x2ad3a6}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e0868(){[_0xf18517(0x1f7)];constructor(){const _0x1fd4ea=_0xf18517;super(),this[_0x1fd4ea(0x1f7)]=new _0x1021d7();}[_0xf18517(0x1f9)](_0x36cbd2){const _0x2f20e9=_0xf18517,_0x37650f=this[_0x2f20e9(0x1f7)][_0x2f20e9(0x202)](_0x36cbd2);return this[_0x2f20e9(0x1f0)](_0x37650f);}[_0xf18517(0x1f0)](_0x45d250){const _0x2b1194=_0xf18517;return this[_0x2b1194(0x1fb)](_0x45d250);}[_0xf18517(0x1fb)](_0xc516c7){const _0x10a9b4=_0xf18517,_0x205151=_0xc516c7[_0x10a9b4(0x1fa)](/^\t+/gm,'\x20')[_0x10a9b4(0x1fa)](/\n*/g,'')[_0x10a9b4(0x1fa)](/\s+/g,'\x20')[_0x10a9b4(0x1fa)](/<[^>]*?$/g,''),_0x363c0d=_0x2ad3a6(_0x10a9b4(0x1f1)+_0x205151+_0x10a9b4(0x1f4));return _0x363c0d[_0x10a9b4(0x1f6)]=_0x363c0d[_0x10a9b4(0x1f6)][0x0][_0x10a9b4(0x1f6)],_0x363c0d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x343a(){var _0x48e565=['20bRlFeI','20964MtCgKw','setTemplate','970ctwvXR','ck-ai-disclaimer__content','21drajRN','988479LKJkAD','19393QTzdAd','div','8556gzIbtp','ck-ai-disclaimer','1645SuugzG','2249EMYmMS','19782XIwMGK','338495Krgxvp','988170pTiEiN','AI_DISCLAIMER_TEXT','16XAsUod'];_0x343a=function(){return _0x48e565;};return _0x343a();}function _0x395e(_0x39c0a0,_0x2d358a){var _0x343a0e=_0x343a();return _0x395e=function(_0x395e2c,_0x12450f){_0x395e2c=_0x395e2c-0x73;var _0x2e28c2=_0x343a0e[_0x395e2c];return _0x2e28c2;},_0x395e(_0x39c0a0,_0x2d358a);}(function(_0x2733a5,_0x4cdfed){var _0x1c4893=_0x395e,_0x3d1973=_0x2733a5();while(!![]){try{var _0x5a1e0d=-parseInt(_0x1c4893(0x7a))/0x1*(-parseInt(_0x1c4893(0x82))/0x2)+parseInt(_0x1c4893(0x84))/0x3+-parseInt(_0x1c4893(0x75))/0x4*(-parseInt(_0x1c4893(0x83))/0x5)+-parseInt(_0x1c4893(0x7e))/0x6*(parseInt(_0x1c4893(0x80))/0x7)+-parseInt(_0x1c4893(0x74))/0x8*(parseInt(_0x1c4893(0x7b))/0x9)+-parseInt(_0x1c4893(0x78))/0xa*(-parseInt(_0x1c4893(0x7c))/0xb)+-parseInt(_0x1c4893(0x76))/0xc*(parseInt(_0x1c4893(0x81))/0xd);if(_0x5a1e0d===_0x4cdfed)break;else _0x3d1973['push'](_0x3d1973['shift']());}catch(_0x1bf9fe){_0x3d1973['push'](_0x3d1973['shift']());}}}(_0x343a,0x2e4a4));import{View as _0x4c8bb3}from'ckeditor5/src/ui.js';import{getTranslation as _0x270e65}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4c8bb3{constructor(_0x476436){var _0x55880f=_0x395e;super(_0x476436),this[_0x55880f(0x77)]({'tag':_0x55880f(0x7d),'attributes':{'class':['ck',_0x55880f(0x7f)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x55880f(0x79)]},'children':[{'text':_0x270e65(_0x476436,_0x55880f(0x73))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e94a8=_0x7ea7;(function(_0x383dee,_0x2210d2){const _0x2098bf=_0x7ea7,_0x54ebc0=_0x383dee();while(!![]){try{const _0x4563b1=-parseInt(_0x2098bf(0x153))/0x1*(-parseInt(_0x2098bf(0x141))/0x2)+parseInt(_0x2098bf(0x14e))/0x3+-parseInt(_0x2098bf(0x157))/0x4*(parseInt(_0x2098bf(0x14d))/0x5)+parseInt(_0x2098bf(0x13d))/0x6+parseInt(_0x2098bf(0x134))/0x7+parseInt(_0x2098bf(0x137))/0x8*(-parseInt(_0x2098bf(0x149))/0x9)+-parseInt(_0x2098bf(0x143))/0xa;if(_0x4563b1===_0x2210d2)break;else _0x54ebc0['push'](_0x54ebc0['shift']());}catch(_0x293938){_0x54ebc0['push'](_0x54ebc0['shift']());}}}(_0x3d15,0xc67e9));function _0x7ea7(_0x23f685,_0x547842){const _0x3d15e9=_0x3d15();return _0x7ea7=function(_0x7ea76f,_0x47aa29){_0x7ea76f=_0x7ea76f-0x12f;let _0x16cbd1=_0x3d15e9[_0x7ea76f];return _0x16cbd1;},_0x7ea7(_0x23f685,_0x547842);}function _0x3d15(){const _0x20c3e5=['24px','552112vKIXAc','ck-ai-skeleton__item','fill','setTemplate','88px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','3483624GhCvjp','class','128px','div','64234TaoNdB','tag','9098600fpAfXC','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','align','center','100%','140px','90KYyvxD','72px','width:\x20','right','1689410YKKCOo','4191891MKBJLh','44px','left','250px','width','1UzKtII','map','ck-ai-skeleton','attributes','4nKfczB','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','40px',';\x20height:\x20','_createSkeletonItems','height','5186279HmLwNQ','150px'];_0x3d15=function(){return _0x20c3e5;};return _0x3d15();}import{View as _0x52c1c3}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x52c1c3{constructor(_0xc3583b,_0x1a8e2b){const _0x4c31ff=_0x7ea7;super(_0xc3583b),this[_0x4c31ff(0x13a)]({'tag':_0x4c31ff(0x140),'attributes':{'class':['ck',_0x4c31ff(0x155)]},'children':this[_0x4c31ff(0x132)](_0x1a8e2b)});}[_0x5e94a8(0x132)](_0x32d459){const _0x3f2bb1=_0x5e94a8,_0x1bd91f=['ck',_0x3f2bb1(0x138)];return _0x32d459[_0x3f2bb1(0x154)](_0x2a866f=>{const _0x287553=_0x3f2bb1;let _0x56ce67='';switch(_0x2a866f[_0x287553(0x156)][_0x287553(0x145)]){case _0x287553(0x14c):_0x56ce67=_0x287553(0x144);break;case _0x287553(0x146):_0x56ce67=_0x287553(0x12f);break;case _0x287553(0x150):_0x56ce67=_0x287553(0x13c);}return{'tag':_0x2a866f[_0x287553(0x142)],'attributes':{'class':[..._0x1bd91f,_0x2a866f[_0x287553(0x156)][_0x287553(0x13e)]?_0x2a866f[_0x287553(0x156)][_0x287553(0x13e)]:''],'style':_0x287553(0x14b)+_0x2a866f[_0x287553(0x156)][_0x287553(0x152)]+_0x287553(0x131)+_0x2a866f[_0x287553(0x156)][_0x287553(0x133)]+';'+_0x56ce67}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x147),'height':_0x5e94a8(0x14a),'align':_0x5e94a8(0x14c)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x151),'height':_0x5e94a8(0x130),'align':_0x5e94a8(0x14c)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x147),'height':_0x5e94a8(0x13b),'align':_0x5e94a8(0x14c)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x135),'height':_0x5e94a8(0x130),'align':_0x5e94a8(0x14c)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x147),'height':_0x5e94a8(0x148),'align':_0x5e94a8(0x14c)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x151),'height':_0x5e94a8(0x130),'align':_0x5e94a8(0x14c)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x147),'height':_0x5e94a8(0x13b),'align':_0x5e94a8(0x14c)}}],'aiHistory':ta(0x5,_0x5e94a8(0x147),_0x5e94a8(0x14f),_0x5e94a8(0x14c)),'aiChatResources':ta(0x8,_0x5e94a8(0x147),_0x5e94a8(0x136),_0x5e94a8(0x14c)),'aiReviewChecks':[{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x13f),'height':_0x5e94a8(0x136),'align':_0x5e94a8(0x150)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x147),'height':_0x5e94a8(0x136),'align':_0x5e94a8(0x150)}},{'tag':_0x5e94a8(0x140),'attributes':{'width':_0x5e94a8(0x13f),'height':_0x5e94a8(0x136),'align':_0x5e94a8(0x150)}}]};function ta(_0x4b1ecf,_0x2f0600,_0x356c06,_0x1e8742){const _0x23e93f=_0x5e94a8;return new Array(_0x4b1ecf)[_0x23e93f(0x139)](null)[_0x23e93f(0x154)](()=>({'tag':_0x23e93f(0x140),'attributes':{'width':_0x2f0600,'height':_0x356c06,'align':_0x1e8742}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2fa4(){const _0x1c143d=['extendTemplate','783774tpJXIe','2fLUHXp','653561hepStM','24mqPbGS','6nuxTCr','5397084RyavFX','20yVCNDZ','1619400xxoJQq','783965HhUwwb','1279730hEvrBo','436504UHVECN','ck-ai-spinner','span','ck-ai-spinner_'];_0x2fa4=function(){return _0x1c143d;};return _0x2fa4();}(function(_0x3a48ec,_0x46cf64){const _0x4dbf03=_0x3693,_0x3fc000=_0x3a48ec();while(!![]){try{const _0x1e269a=parseInt(_0x4dbf03(0x15b))/0x1*(parseInt(_0x4dbf03(0x15a))/0x2)+parseInt(_0x4dbf03(0x151))/0x3+parseInt(_0x4dbf03(0x154))/0x4+-parseInt(_0x4dbf03(0x153))/0x5+parseInt(_0x4dbf03(0x14e))/0x6*(parseInt(_0x4dbf03(0x152))/0x7)+parseInt(_0x4dbf03(0x14d))/0x8*(parseInt(_0x4dbf03(0x159))/0x9)+-parseInt(_0x4dbf03(0x150))/0xa*(parseInt(_0x4dbf03(0x14f))/0xb);if(_0x1e269a===_0x46cf64)break;else _0x3fc000['push'](_0x3fc000['shift']());}catch(_0x92c11a){_0x3fc000['push'](_0x3fc000['shift']());}}}(_0x2fa4,0x6b0ea));function _0x3693(_0x3df7d2,_0x31b1c5){const _0x2fa411=_0x2fa4();return _0x3693=function(_0x369315,_0x1af63a){_0x369315=_0x369315-0x14d;let _0x5c48da=_0x2fa411[_0x369315];return _0x5c48da;},_0x3693(_0x3df7d2,_0x31b1c5);}import{SpinnerView as _0xa04818}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0xa04818{constructor(_0x190c20=void 0x0){const _0x1b4be8=_0x3693;super();const _0x2bb4c0=_0x190c20?_0x1b4be8(0x157)+_0x190c20:'';this[_0x1b4be8(0x158)]({'tag':_0x1b4be8(0x156),'attributes':{'class':[_0x1b4be8(0x155),_0x2bb4c0]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4afc(_0x37f554,_0x5d9604){const _0x1c145a=_0x1c14();return _0x4afc=function(_0x4afcab,_0x4b91ed){_0x4afcab=_0x4afcab-0x1e4;let _0x46c7ab=_0x1c145a[_0x4afcab];return _0x46c7ab;},_0x4afc(_0x37f554,_0x5d9604);}const _0x2d72f9=_0x4afc;(function(_0x4c30db,_0x4223d5){const _0xde48a0=_0x4afc,_0x5bc611=_0x4c30db();while(!![]){try{const _0x26752d=-parseInt(_0xde48a0(0x201))/0x1*(-parseInt(_0xde48a0(0x208))/0x2)+parseInt(_0xde48a0(0x216))/0x3*(parseInt(_0xde48a0(0x20d))/0x4)+-parseInt(_0xde48a0(0x211))/0x5+parseInt(_0xde48a0(0x20f))/0x6+parseInt(_0xde48a0(0x206))/0x7*(-parseInt(_0xde48a0(0x1ff))/0x8)+-parseInt(_0xde48a0(0x1e9))/0x9+-parseInt(_0xde48a0(0x1fd))/0xa*(parseInt(_0xde48a0(0x203))/0xb);if(_0x26752d===_0x4223d5)break;else _0x5bc611['push'](_0x5bc611['shift']());}catch(_0x5f12b9){_0x5bc611['push'](_0x5bc611['shift']());}}}(_0x1c14,0x1d354));function _0x1c14(){const _0x28674f=['isLoading','showChanges','dislikeButton','add','1145862DBDdMj','locale','isOn','AI_MINI_TOOLBAR_COPY','likeButton','_setupCopyButton','customView','AI_SUGGESTION_BUTTON_SHOW_CHANGES','isEnabled','items','showChangesButton','extendTemplate','ck-ai-mini-toolbar\x20ck-hidden','_setupRatingButtons','bind','execute','showLike','set','dislike','ck-ai-mini-toolbar','710YgHvsX','class','416432jtwaih','ck-ai-mini-toolbar-copy-button','168353vZbzGq','AI_MINI_TOOLBAR_DISLIKE','12485umiTAo','_config','length','7ypxjPt','AI_MINI_TOOLBAR_LIKE','2osnVwr','toggleShowChanges','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','_setupShowChangesButton','122788xYoprm','addMany','1083822jkSCtM','showDislike','153955jouctn','fire','showCopy','like','children','6UOxeFY','full','copyButton'];_0x1c14=function(){return _0x28674f;};return _0x1c14();}import{ButtonView as _0x536766,IconView as _0x4b86e1,ToolbarView as _0x466c5b}from'ckeditor5/src/ui.js';import{IconCheck as _0x2e54ff,IconCopy as _0x23a0ee,IconShowChangesOff as _0x5d8381,IconShowChangesOn as _0x3cad7a,IconThumbDown as _0x645623,IconThumbUp as _0x52db1a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x122fed}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x466c5b{[_0x2d72f9(0x1e4)];[_0x2d72f9(0x1ed)];[_0x2d72f9(0x1e7)];[_0x2d72f9(0x1f3)];[_0x2d72f9(0x204)];constructor(_0xa267d8,_0x136d18={},_0x1b99a4){const _0x2d1e51=_0x2d72f9;super(_0xa267d8),this[_0x2d1e51(0x1fa)](_0x2d1e51(0x1e5),!0x1),this[_0x2d1e51(0x204)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x136d18};const _0x1ddad7=!(this[_0x2d1e51(0x204)][_0x2d1e51(0x213)]||this[_0x2d1e51(0x204)][_0x2d1e51(0x1e6)]||this[_0x2d1e51(0x204)][_0x2d1e51(0x1f9)]||this[_0x2d1e51(0x204)][_0x2d1e51(0x210)]||this[_0x2d1e51(0x204)][_0x2d1e51(0x1ef)]?.[_0x2d1e51(0x205)]);this[_0x2d1e51(0x1fe)]=_0x1ddad7?_0x2d1e51(0x1f5):_0x2d1e51(0x1fc),this[_0x2d1e51(0x204)][_0x2d1e51(0x213)]&&(this[_0x2d1e51(0x1ee)](),this[_0x2d1e51(0x1f2)][_0x2d1e51(0x1e8)](this[_0x2d1e51(0x1e4)])),this[_0x2d1e51(0x204)][_0x2d1e51(0x1e6)]&&(this[_0x2d1e51(0x20c)](_0x1b99a4),this[_0x2d1e51(0x1f2)][_0x2d1e51(0x1e8)](this[_0x2d1e51(0x1f3)])),this[_0x2d1e51(0x1f6)](),this[_0x2d1e51(0x204)][_0x2d1e51(0x1f9)]&&this[_0x2d1e51(0x1f2)][_0x2d1e51(0x1e8)](this[_0x2d1e51(0x1ed)]),this[_0x2d1e51(0x204)][_0x2d1e51(0x210)]&&this[_0x2d1e51(0x1f2)][_0x2d1e51(0x1e8)](this[_0x2d1e51(0x1e7)]),this[_0x2d1e51(0x204)][_0x2d1e51(0x1ef)]&&this[_0x2d1e51(0x1f2)][_0x2d1e51(0x20e)](this[_0x2d1e51(0x204)][_0x2d1e51(0x1ef)]);}[_0x2d72f9(0x1f6)](){const _0x1b85a4=_0x2d72f9;this[_0x1b85a4(0x1ed)]=new _0x536766(this[_0x1b85a4(0x1ea)]),this[_0x1b85a4(0x1ed)][_0x1b85a4(0x1fa)]({'icon':_0x52db1a,'label':_0x122fed(this[_0x1b85a4(0x1ea)],_0x1b85a4(0x207)),'tooltip':!0x0}),this[_0x1b85a4(0x1ed)][_0x1b85a4(0x1f7)](_0x1b85a4(0x1f1))['to'](this,_0x1b85a4(0x1e5),_0x322b35=>!_0x322b35),this[_0x1b85a4(0x1ed)]['on'](_0x1b85a4(0x1f8),()=>{const _0x462c65=_0x1b85a4;this[_0x462c65(0x212)](_0x462c65(0x214));}),this[_0x1b85a4(0x1e7)]=new _0x536766(this[_0x1b85a4(0x1ea)]),this[_0x1b85a4(0x1e7)][_0x1b85a4(0x1fa)]({'icon':_0x645623,'label':_0x122fed(this[_0x1b85a4(0x1ea)],_0x1b85a4(0x202)),'tooltip':!0x0}),this[_0x1b85a4(0x1e7)][_0x1b85a4(0x1f7)](_0x1b85a4(0x1f1))['to'](this,_0x1b85a4(0x1e5),_0x32c7b7=>!_0x32c7b7),this[_0x1b85a4(0x1e7)]['on'](_0x1b85a4(0x1f8),()=>{const _0x470b44=_0x1b85a4;this[_0x470b44(0x212)](_0x470b44(0x1fb));});}[_0x2d72f9(0x1ee)](){const _0x978632=_0x2d72f9;this[_0x978632(0x1e4)]=new _0x536766(this[_0x978632(0x1ea)]),this[_0x978632(0x1e4)][_0x978632(0x1fa)]({'icon':_0x23a0ee,'label':_0x122fed(this[_0x978632(0x1ea)],_0x978632(0x1ec)),'class':_0x978632(0x200),'tooltip':!0x0}),this[_0x978632(0x1e4)][_0x978632(0x1f7)](_0x978632(0x1f1))['to'](this,_0x978632(0x1e5),_0x330b3e=>!_0x330b3e);const _0x20429e=new _0x4b86e1();_0x20429e[_0x978632(0x1fa)]({'content':_0x2e54ff}),_0x20429e[_0x978632(0x1f4)]({'attributes':{'class':[_0x978632(0x20a)]}}),this[_0x978632(0x1e4)]['on'](_0x978632(0x1f8),()=>{const _0x151c78=_0x978632;this[_0x151c78(0x1e4)][_0x151c78(0x1fe)]=_0x151c78(0x20b),setTimeout(()=>{const _0x3471b3=_0x151c78;this[_0x3471b3(0x1e4)][_0x3471b3(0x1fe)]=_0x3471b3(0x200);},0x7d0);}),this[_0x978632(0x1e4)][_0x978632(0x215)][_0x978632(0x1e8)](_0x20429e);}[_0x2d72f9(0x20c)](_0x2da71d){const _0x59f81f=_0x2d72f9;this[_0x59f81f(0x1f3)]=new _0x536766(this[_0x59f81f(0x1ea)]),this[_0x59f81f(0x1f3)][_0x59f81f(0x1fa)]({'icon':_0x5d8381,'label':_0x122fed(this[_0x59f81f(0x1ea)],_0x59f81f(0x1f0)),'withText':_0x59f81f(0x217)==this[_0x59f81f(0x204)][_0x59f81f(0x1e6)],'tooltip':_0x59f81f(0x217)!=this[_0x59f81f(0x204)][_0x59f81f(0x1e6)],'isOn':_0x2da71d}),this[_0x59f81f(0x1f3)][_0x59f81f(0x1f7)](_0x59f81f(0x1f1))['to'](this,_0x59f81f(0x1e5),_0x4160e5=>!_0x4160e5),this[_0x59f81f(0x1f3)]['on'](_0x59f81f(0x1f8),()=>{const _0x3c0284=_0x59f81f,_0x1bc4f4=!this[_0x3c0284(0x1f3)][_0x3c0284(0x1eb)];this[_0x3c0284(0x1f3)][_0x3c0284(0x1fa)]({'isOn':_0x1bc4f4,'icon':_0x1bc4f4?_0x3cad7a:_0x5d8381}),this[_0x3c0284(0x212)](_0x3c0284(0x209),_0x1bc4f4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x390e81=_0x14b1;(function(_0x5e4bfb,_0x21a014){const _0xc13967=_0x14b1,_0x4337e7=_0x5e4bfb();while(!![]){try{const _0x56c2aa=-parseInt(_0xc13967(0x156))/0x1+parseInt(_0xc13967(0x124))/0x2*(-parseInt(_0xc13967(0x149))/0x3)+parseInt(_0xc13967(0x14d))/0x4+-parseInt(_0xc13967(0x13a))/0x5*(parseInt(_0xc13967(0x137))/0x6)+-parseInt(_0xc13967(0x12b))/0x7*(parseInt(_0xc13967(0x145))/0x8)+parseInt(_0xc13967(0x146))/0x9+parseInt(_0xc13967(0x133))/0xa*(parseInt(_0xc13967(0x14f))/0xb);if(_0x56c2aa===_0x21a014)break;else _0x4337e7['push'](_0x4337e7['shift']());}catch(_0x46c1df){_0x4337e7['push'](_0x4337e7['shift']());}}}(_0x2b41,0x309c0));import{View as _0x11f012}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x469089}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xec8dcd}from'../../utils/eventnames.js';function _0x2b41(){const _0x22984d=['warning','createCollection','124281RXyIxA','push','setContent','ck-ai-suggestion__body__content-parts','526416jnLgmH','add','11uujBBG','empty-parts-warning','div','_areActionsDisabled','abort','hasPendingParts','state','269871YlgyjH','_updateContentPartsPromiseQueue','find','length','forEach','AI_SUGGESTION_NO_PARTS_WARNING','enqueue','AI_SUGGESTION_EMPTY_PART_WARNING','partDefinition','filter','6VFBmjS','ck-ai-suggestion__body','_showUnchangedParts','addEventListener','_children','isVisible','pending','129437tsBshV','partsCount','set','delegate','updatePartState','_emptyPartsWarningView','updateContentParts','hasNonEmptyParts','10950650gcRGCM','toggleHeader','locale','hasChanges','2118pRnpKs','from','_availableActions','4955iLJRiD','getPartView','updateContent','some','index','findIndex','_cachedContentParts','markAsDone','queueEmptyPromise','first','setTemplate','136yzdKKd','276813LwflXZ'];_0x2b41=function(){return _0x22984d;};return _0x2b41();}function _0x14b1(_0x4e91fd,_0x35b4e5){const _0x2b41bd=_0x2b41();return _0x14b1=function(_0x14b113,_0x3ea71e){_0x14b113=_0x14b113-0x122;let _0x1b7a8b=_0x2b41bd[_0x14b113];return _0x1b7a8b;},_0x14b1(_0x4e91fd,_0x35b4e5);}import{PromiseQueue as _0x3d3cea}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x10fb79}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x12614e}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x11f012{[_0x390e81(0x128)];[_0x390e81(0x152)];[_0x390e81(0x126)];[_0x390e81(0x157)];[_0x390e81(0x130)];[_0x390e81(0x139)];[_0x390e81(0x140)]=[];constructor(_0x4fc691,_0x5d27fe){const _0x40f642=_0x390e81;super(_0x4fc691);const {areActionsDisabled:_0x5cca71,showUnchangedParts:_0x3ade38,availableActions:_0x2e25dc}=_0x5d27fe;this[_0x40f642(0x152)]=_0x5cca71,this[_0x40f642(0x126)]=_0x3ade38,this[_0x40f642(0x139)]=_0x2e25dc,this[_0x40f642(0x12d)](_0x40f642(0x154),!0x1),this[_0x40f642(0x128)]=this[_0x40f642(0x148)](),this[_0x40f642(0x157)]=new _0x3d3cea(),this[_0x40f642(0x130)]=new _0x10fb79({'id':_0x40f642(0x150),'initialContent':_0x12614e(_0x4fc691,_0x40f642(0x15d)),'level':_0x40f642(0x147)}),this[_0x40f642(0x130)][_0x40f642(0x129)]=!0x1,this[_0x40f642(0x144)]({'tag':_0x40f642(0x151),'attributes':{'class':['ck',_0x40f642(0x125)]},'children':[{'tag':_0x40f642(0x151),'attributes':{'class':['ck',_0x40f642(0x14c)]},'children':this[_0x40f642(0x128)]},this[_0x40f642(0x130)]]});}get[_0x390e81(0x12c)](){const _0x10061f=_0x390e81;return this[_0x10061f(0x128)][_0x10061f(0x159)];}async[_0x390e81(0x131)]({parts:_0x5acf62,renderingStrategy:_0x4b1fe3,abortSignal:_0x40e5ae}){const _0x4f5b27=_0x390e81;this[_0x4f5b27(0x128)][_0x4f5b27(0x159)]?_0x5acf62[_0x4f5b27(0x15a)](_0x25c798=>{const _0x43d6fb=_0x4f5b27,_0x39a127=this[_0x43d6fb(0x140)][_0x43d6fb(0x13f)](_0x1fda3e=>_0x1fda3e[_0x43d6fb(0x13e)]==_0x25c798[_0x43d6fb(0x13e)]);-0x1===_0x39a127?this[_0x43d6fb(0x140)][_0x43d6fb(0x14a)](_0x25c798):this[_0x43d6fb(0x140)][_0x39a127]=_0x25c798;}):this[_0x4f5b27(0x140)]=_0x5acf62;for(const _0x1a66f5 of _0x5acf62[_0x4f5b27(0x123)](_0x12b002=>_0x12b002[_0x4f5b27(0x136)]))this[_0x4f5b27(0x157)][_0x4f5b27(0x15c)](async _0x577d46=>{const _0x57a316=_0x4f5b27;let _0x100f7a=this[_0x57a316(0x13b)](_0x1a66f5[_0x57a316(0x13e)]);_0x100f7a||(_0x100f7a=new _0x469089(this[_0x57a316(0x135)],{'part':_0x1a66f5,'uiIndex':this[_0x57a316(0x128)][_0x57a316(0x159)]+0x1,'areActionsDisabled':this[_0x57a316(0x152)],'availableActions':this[_0x57a316(0x139)]}),_0x100f7a[_0x57a316(0x12e)](..._0xec8dcd)['to'](this),this[_0x57a316(0x128)][_0x57a316(0x14e)](_0x100f7a),this[_0x57a316(0x154)]=!0x0),0x2===this[_0x57a316(0x128)][_0x57a316(0x159)]&&this[_0x57a316(0x128)][_0x57a316(0x143)][_0x57a316(0x134)](!0x0),_0x100f7a[_0x57a316(0x134)](this[_0x57a316(0x128)][_0x57a316(0x159)]>0x1),await _0x100f7a[_0x57a316(0x13c)]({'part':_0x1a66f5,'renderingStrategy':_0x4b1fe3,'showUnchangedParts':this[_0x57a316(0x126)],'abortSignal':_0x577d46});});return _0x40e5ae?.[_0x4f5b27(0x127)](_0x4f5b27(0x153),()=>{const _0x461f5e=_0x4f5b27;this[_0x461f5e(0x157)][_0x461f5e(0x153)]();}),this[_0x4f5b27(0x157)][_0x4f5b27(0x142)];}[_0x390e81(0x12f)](_0x1f5a5c,_0x5b696a){const _0x5963c1=_0x390e81,_0x2d8aff=this[_0x5963c1(0x13b)](_0x1f5a5c);_0x2d8aff&&(_0x2d8aff[_0x5963c1(0x155)]=_0x5b696a),this[_0x5963c1(0x154)]=_0x5963c1(0x12a)==_0x5b696a||Array[_0x5963c1(0x138)](this[_0x5963c1(0x128)])[_0x5963c1(0x13d)](_0x831fef=>_0x5963c1(0x12a)==_0x831fef[_0x5963c1(0x155)]);}[_0x390e81(0x13b)](_0x33cc4c){const _0x385250=_0x390e81;return this[_0x385250(0x128)][_0x385250(0x158)](_0x1d3edf=>_0x1d3edf[_0x385250(0x122)][_0x385250(0x13e)]==_0x33cc4c)??null;}[_0x390e81(0x141)](){const _0x41f49e=_0x390e81;if(!this[_0x41f49e(0x126)]){const _0x2e6b4f=!this[_0x41f49e(0x140)][_0x41f49e(0x158)](({hasChanges:_0x25ac60})=>_0x25ac60),_0xf4756=!!this[_0x41f49e(0x140)][_0x41f49e(0x158)](({hasChanges:_0xb908fa})=>!_0xb908fa);this[_0x41f49e(0x130)][_0x41f49e(0x129)]=0x0==this[_0x41f49e(0x128)][_0x41f49e(0x159)]||_0xf4756,_0x2e6b4f?this[_0x41f49e(0x130)][_0x41f49e(0x14b)](_0x12614e(this[_0x41f49e(0x135)],_0x41f49e(0x15b))):this[_0x41f49e(0x130)][_0x41f49e(0x14b)](_0x12614e(this[_0x41f49e(0x135)],_0x41f49e(0x15d)));}}get[_0x390e81(0x132)](){const _0x3a9ca7=_0x390e81;return!!this[_0x3a9ca7(0x128)][_0x3a9ca7(0x158)](_0x1fac78=>_0x1fac78[_0x3a9ca7(0x122)][_0x3a9ca7(0x136)]);}}
|