@ckeditor/ckeditor5-ai 47.0.0-alpha.4 → 47.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +27 -3
- package/dist/index.css +28 -3
- package/dist/index.js +4 -4
- 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/lang/contexts.json +1 -0
- 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.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +2 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
- 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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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 +1 -1
- 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/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.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.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/aireviewmodels.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/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/aireviewmodeformamanager.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.d.ts +6 -0
- 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/augmentation.d.ts +6 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aisuggestioncontainer.css +8 -2
- package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
- package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3123(_0x513ffc,_0xf3bd8e){const _0x9aed32=_0x9aed();return _0x3123=function(_0x3123de,_0x462ff9){_0x3123de=_0x3123de-0x1d1;let _0x487624=_0x9aed32[_0x3123de];return _0x487624;},_0x3123(_0x513ffc,_0xf3bd8e);}const _0x566047=_0x3123;(function(_0x342a4a,_0x19c094){const _0x1d6cfa=_0x3123,_0x5d9321=_0x342a4a();while(!![]){try{const _0x5192b2=parseInt(_0x1d6cfa(0x1e6))/0x1+parseInt(_0x1d6cfa(0x1dd))/0x2*(parseInt(_0x1d6cfa(0x1d4))/0x3)+parseInt(_0x1d6cfa(0x1e7))/0x4*(-parseInt(_0x1d6cfa(0x1e4))/0x5)+-parseInt(_0x1d6cfa(0x1d7))/0x6*(-parseInt(_0x1d6cfa(0x1e0))/0x7)+parseInt(_0x1d6cfa(0x1d5))/0x8+-parseInt(_0x1d6cfa(0x1dc))/0x9+parseInt(_0x1d6cfa(0x1df))/0xa;if(_0x5192b2===_0x19c094)break;else _0x5d9321['push'](_0x5d9321['shift']());}catch(_0x538018){_0x5d9321['push'](_0x5d9321['shift']());}}}(_0x9aed,0xefe2c));function _0x9aed(){const _0x3e4b3f=['setReasoning','1530804DxZWRI','1930892mCYkPU','init','isWebSearchEnabled','webSearch','fire','capabilitiesUpdated','toggleReasoning','129bojTyk','5573080FngBqG','isReasoningEnabled','6pWdTlu','getCapabilitiesConfig','toggleWebSearch','_isWebSearchEnabled','_isReasoningEnabled','14230755VqdbaE','11066vPOxvv','getCapabilitiesRequestData','8074670imWPZw','5173777lgvICL','reasoning','setWebSearch','reset','15VbQfDm'];_0x9aed=function(){return _0x3e4b3f;};return _0x9aed();}import{EmitterMixin as _0x5dc020}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x566047(0x1d2)];export class AICapabilities extends _0x5dc020(){[_0x566047(0x1da)];[_0x566047(0x1db)];constructor(){const _0x23fc4b=_0x566047;super(),this[_0x23fc4b(0x1da)]=!0x1,this[_0x23fc4b(0x1db)]=!0x1;}[_0x566047(0x1e8)](){const _0x17ac43=_0x566047;this[_0x17ac43(0x1e3)]();}[_0x566047(0x1e3)](){const _0x165437=_0x566047;this[_0x165437(0x1e2)](!0x1),this[_0x165437(0x1e5)](!0x1);}[_0x566047(0x1d8)](){const _0x3c3463=_0x566047;return{'isWebSearchEnabled':this[_0x3c3463(0x1da)],'isReasoningEnabled':this[_0x3c3463(0x1db)]};}static[_0x566047(0x1de)](_0x824cb8){const _0x2105d4=_0x566047,_0x4d6067={};return _0x824cb8&&_0x824cb8[_0x2105d4(0x1e9)]&&(_0x4d6067[_0x2105d4(0x1ea)]={}),_0x824cb8&&_0x824cb8[_0x2105d4(0x1d6)]&&(_0x4d6067[_0x2105d4(0x1e1)]={}),_0x4d6067;}[_0x566047(0x1d9)](){const _0x50f73e=_0x566047;this[_0x50f73e(0x1e2)](!this[_0x50f73e(0x1da)]);}[_0x566047(0x1d3)](){const _0x411feb=_0x566047;this[_0x411feb(0x1e5)](!this[_0x411feb(0x1db)]);}[_0x566047(0x1e2)](_0xc24413){const _0x1c5b21=_0x566047;_0xc24413!==this[_0x1c5b21(0x1da)]&&(this[_0x1c5b21(0x1da)]=_0xc24413,this[_0x1c5b21(0x1d1)](_0x1c5b21(0x1d2),this[_0x1c5b21(0x1d8)]()));}[_0x566047(0x1e5)](_0x246698){const _0x3cac87=_0x566047;_0x246698!==this[_0x3cac87(0x1db)]&&(this[_0x3cac87(0x1db)]=_0x246698,this[_0x3cac87(0x1d1)](_0x3cac87(0x1d2),this[_0x3cac87(0x1d8)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x37a6f6,_0x41259d){var _0x45fa1d=_0x4ad4,_0x53b68e=_0x37a6f6();while(!![]){try{var _0x223e82=-parseInt(_0x45fa1d(0xff))/0x1*(-parseInt(_0x45fa1d(0xef))/0x2)+-parseInt(_0x45fa1d(0xf0))/0x3+parseInt(_0x45fa1d(0xf9))/0x4*(-parseInt(_0x45fa1d(0x104))/0x5)+-parseInt(_0x45fa1d(0xf3))/0x6+-parseInt(_0x45fa1d(0x103))/0x7+parseInt(_0x45fa1d(0x100))/0x8*(-parseInt(_0x45fa1d(0xf4))/0x9)+-parseInt(_0x45fa1d(0xed))/0xa*(-parseInt(_0x45fa1d(0xee))/0xb);if(_0x223e82===_0x41259d)break;else _0x53b68e['push'](_0x53b68e['shift']());}catch(_0x487d46){_0x53b68e['push'](_0x53b68e['shift']());}}}(_0x2843,0xd4095));function _0x2843(){var _0x16ddfb=['11JSVYhr','34YhbGju','3700917AXzQne','URL','SELECTION','1969506MzQzep','658791qNOPPH','MARKDOWN','DOCUMENT','markdown','FILE','16JEvZqY','HTML','TEXT','document','selection','web-resource','48869xkqgVF','184nCQZyn','html','text','6879922enEoaF','2015085Vbkyel','file','58781090wfVjLd'];_0x2843=function(){return _0x16ddfb;};return _0x2843();}export var AIContextItemType;!function(_0x3272d0){var _0x3904c0=_0x4ad4;_0x3272d0[_0x3904c0(0xf8)]=_0x3904c0(0xec),_0x3272d0[_0x3904c0(0xf6)]=_0x3904c0(0xfc),_0x3272d0[_0x3904c0(0xf1)]=_0x3904c0(0xfe),_0x3272d0[_0x3904c0(0xfb)]=_0x3904c0(0x102),_0x3272d0[_0x3904c0(0xf2)]=_0x3904c0(0xfd);}(AIContextItemType||(AIContextItemType={}));function _0x4ad4(_0x1a0666,_0x28339d){var _0x2843fa=_0x2843();return _0x4ad4=function(_0x4ad4a5,_0x4a2d80){_0x4ad4a5=_0x4ad4a5-0xec;var _0x2303ac=_0x2843fa[_0x4ad4a5];return _0x2303ac;},_0x4ad4(_0x1a0666,_0x28339d);}export var AIContextTextResourceType;!function(_0x6121e4){var _0x1a8f1c=_0x4ad4;_0x6121e4[_0x1a8f1c(0xfb)]=_0x1a8f1c(0x102),_0x6121e4[_0x1a8f1c(0xf5)]=_0x1a8f1c(0xf7),_0x6121e4[_0x1a8f1c(0xfa)]=_0x1a8f1c(0x101);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x133b(_0x44d192,_0x32dbcd){const _0x1fb0f4=_0x1fb0();return _0x133b=function(_0x133b0f,_0x2d0af){_0x133b0f=_0x133b0f-0x93;let _0x14015f=_0x1fb0f4[_0x133b0f];return _0x14015f;},_0x133b(_0x44d192,_0x32dbcd);}const _0x453475=_0x133b;(function(_0x50bc79,_0x1a5307){const _0x4b56fd=_0x133b,_0x2a093b=_0x50bc79();while(!![]){try{const _0x3fb820=parseInt(_0x4b56fd(0x93))/0x1*(parseInt(_0x4b56fd(0xb3))/0x2)+parseInt(_0x4b56fd(0xb4))/0x3+parseInt(_0x4b56fd(0xa0))/0x4*(-parseInt(_0x4b56fd(0xa7))/0x5)+parseInt(_0x4b56fd(0xbf))/0x6+parseInt(_0x4b56fd(0xc4))/0x7+parseInt(_0x4b56fd(0xc3))/0x8*(parseInt(_0x4b56fd(0x98))/0x9)+-parseInt(_0x4b56fd(0xa6))/0xa;if(_0x3fb820===_0x1a5307)break;else _0x2a093b['push'](_0x2a093b['shift']());}catch(_0x4b24cd){_0x2a093b['push'](_0x2a093b['shift']());}}}(_0x1fb0,0xe5ed3));import{CKEditorError as _0x17e14b,EmitterMixin as _0xad3428,logWarning as _0x548eb0,uid as _0x59994a}from'ckeditor5/src/utils.js';import{AIReply as _0x43d203,isIgnoredReplyType as _0x23b74d,isValidReplyType as _0x178bea,isReplyTitleType as _0x14e1e8,isSourceType as _0x526dcc}from'./aireply.js';function _0x1fb0(){const _0x595318=['abort','ai-interaction-invalid-event-type','connector','push','splice','createReply','source','replyChangeGroupStateUpdated','2170458tcHAmU','length','stopListening','isDestroyed','259048ecCxdM','3974740LNmXvK','find','event','interactionFinished','sources','getReply','forEach','textDelta','803228GCfMZu','interactionDestroyed','stop','content','abortController','99JNYUnf','fire','start','conversationTitle','replyCreated','appendContent','getDocumentContext','ai-chat-interaction-error','4384ZPzXXU','delegate','replies','getStream','interactionStopped','destroy','8183760mIakKk','3670RRMKXS','currentReply','setConversationTitle','currentRequest','sendRequest','interactionStarted','data','_finalizeInteraction','done','error','isStopped','replyContentUpdated','2TNsdnp','1426911nQCXSA','interactionCreated','editor'];_0x1fb0=function(){return _0x595318;};return _0x1fb0();}export const AI_MODEL_EVENT_NAMES=[_0x453475(0xb5),_0x453475(0xac),_0x453475(0xa4),_0x453475(0xc7),_0x453475(0x94),_0x453475(0x9c),_0x453475(0xb2),_0x453475(0xbe),_0x453475(0xa9),_0x453475(0xb0)];export class AIInteraction extends _0xad3428(){['id'];[_0x453475(0xa2)]=[];[_0x453475(0xa8)];[_0x453475(0xaa)];[_0x453475(0xb9)];[_0x453475(0xb1)]=!0x1;[_0x453475(0xc2)]=!0x1;[_0x453475(0xb6)];constructor({connector:_0x3e6f55,editor:_0x335952}){const _0x3cec22=_0x453475;super(),this['id']=_0x59994a(),this[_0x3cec22(0xb9)]=_0x3e6f55,this[_0x3cec22(0xb1)]=!0x0,this[_0x3cec22(0xb6)]=_0x335952;}async[_0x453475(0x9a)](){const _0x5c2816=_0x453475;let _0x3b6fea;this[_0x5c2816(0xb1)]=!0x1;try{this[_0x5c2816(0xaa)]=await this[_0x5c2816(0xab)](),this[_0x5c2816(0x99)](_0x5c2816(0xac),this);const _0x103471=await this[_0x5c2816(0xaa)][_0x5c2816(0xa3)](),_0x378574=[];for await(const _0x32ccf3 of _0x103471){if(this[_0x5c2816(0xb1)])return;if(_0x5c2816(0xb0)===_0x32ccf3[_0x5c2816(0xc6)])return void this[_0x5c2816(0x99)](_0x5c2816(0xb0),{'error':new _0x17e14b(_0x5c2816(0x9f),this)});_0x14e1e8(_0x32ccf3[_0x5c2816(0xc6)])&&this[_0x5c2816(0xa9)](_0x32ccf3[_0x5c2816(0xad)][_0x5c2816(0x9b)],!0x0),_0x526dcc(_0x32ccf3[_0x5c2816(0xc6)])?_0x378574[_0x5c2816(0xba)](_0x32ccf3[_0x5c2816(0xad)][_0x5c2816(0xbd)]):_0x178bea(_0x32ccf3[_0x5c2816(0xc6)])?(_0x32ccf3[_0x5c2816(0xc6)]!==_0x3b6fea&&(this[_0x5c2816(0xa8)]&&this[_0x5c2816(0xa8)][_0x5c2816(0xaf)](),this[_0x5c2816(0xa8)]=this[_0x5c2816(0xbc)]({'type':_0x32ccf3[_0x5c2816(0xc6)],'interactionId':this['id']}),_0x378574[_0x5c2816(0xc0)]>0x0&&(this[_0x5c2816(0xa8)][_0x5c2816(0xc8)]=_0x378574[_0x5c2816(0xbb)](0x0)),_0x3b6fea=_0x32ccf3[_0x5c2816(0xc6)]),this[_0x5c2816(0xa8)][_0x5c2816(0x9d)](_0x32ccf3[_0x5c2816(0xad)][_0x5c2816(0xcb)])):_0x23b74d(_0x32ccf3[_0x5c2816(0xc6)])||_0x548eb0(_0x5c2816(0xb8),{'chunk':_0x32ccf3});}}finally{this[_0x5c2816(0xb1)]||(this[_0x5c2816(0xae)](),this[_0x5c2816(0x99)](_0x5c2816(0xc7),this));}}[_0x453475(0x95)](){const _0x36953d=_0x453475;this[_0x36953d(0xb1)]||(this[_0x36953d(0xae)](),this[_0x36953d(0x99)](_0x36953d(0xa4),this));}[_0x453475(0xc9)](_0x5982c4){const _0x371838=_0x453475;return this[_0x371838(0xa2)][_0x371838(0xc5)](_0x27d944=>_0x27d944['id']===_0x5982c4);}[_0x453475(0xa5)](){const _0x4992ff=_0x453475;this[_0x4992ff(0xc2)]||(this[_0x4992ff(0x95)](),this[_0x4992ff(0xa2)][_0x4992ff(0xca)](_0x229b49=>_0x229b49[_0x4992ff(0xa5)]()),this[_0x4992ff(0xa2)]=[],this[_0x4992ff(0xc2)]=!0x0,this[_0x4992ff(0x99)](_0x4992ff(0x94),this),this[_0x4992ff(0xc1)]());}[_0x453475(0xbc)](_0x2be477){const _0x52cead=_0x453475,_0xe2df49=new _0x43d203({'editor':this[_0x52cead(0xb6)],'documentContextContent':this[_0x52cead(0x9e)]()?.[_0x52cead(0x96)],..._0x2be477});return this[_0x52cead(0xa2)][_0x52cead(0xba)](_0xe2df49),_0xe2df49[_0x52cead(0xa1)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x52cead(0x99)](_0x52cead(0x9c),_0xe2df49),_0xe2df49;}[_0x453475(0xa9)](_0x24f33e,_0x4ece09=!0x1){const _0x12828a=_0x453475;this[_0x12828a(0x99)](_0x12828a(0xa9),_0x24f33e,_0x4ece09);}[_0x453475(0xae)](){const _0xec1de4=_0x453475;this[_0xec1de4(0xb1)]=!0x0,this[_0xec1de4(0xaa)]&&this[_0xec1de4(0xaa)][_0xec1de4(0x97)][_0xec1de4(0xb7)](),this[_0xec1de4(0xa8)]&&this[_0xec1de4(0xa8)][_0xec1de4(0xaf)](),this[_0xec1de4(0xaa)]=this[_0xec1de4(0xa8)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a45fc=_0xb415;(function(_0x55fa73,_0x11b980){const _0x25d29f=_0xb415,_0x10837a=_0x55fa73();while(!![]){try{const _0x23f583=parseInt(_0x25d29f(0x15d))/0x1+parseInt(_0x25d29f(0x167))/0x2+-parseInt(_0x25d29f(0x149))/0x3*(parseInt(_0x25d29f(0x14a))/0x4)+parseInt(_0x25d29f(0x155))/0x5*(-parseInt(_0x25d29f(0x18a))/0x6)+-parseInt(_0x25d29f(0x182))/0x7+parseInt(_0x25d29f(0x154))/0x8*(-parseInt(_0x25d29f(0x192))/0x9)+-parseInt(_0x25d29f(0x151))/0xa*(-parseInt(_0x25d29f(0x184))/0xb);if(_0x23f583===_0x11b980)break;else _0x10837a['push'](_0x10837a['shift']());}catch(_0x3cf49f){_0x10837a['push'](_0x10837a['shift']());}}}(_0xe52d,0xe304b));import{ObservableMixin as _0x20bf9b,uid as _0x3829f5}from'ckeditor5/src/utils.js';import{Element as _0x392cbd,findAll as _0xc3ba80,getAttribute as _0x56407f,getParents as _0x38bae6,Document as _0x30f4e8,parse as _0x53df46,Text as _0x18f811}from'../utils/htmlparser.js';import{AIResponseParser as _0xc10d8f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4890ca}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x2a45fc(0x14c),_0x2a45fc(0x176)];export const AI_REPLY_TYPES_IGNORED=[_0x2a45fc(0x183)];export const AI_REPLY_TITLE_TYPE=_0x2a45fc(0x16c);export class AIReply extends _0x20bf9b(){['id'];[_0x2a45fc(0x17c)];[_0x2a45fc(0x175)];[_0x2a45fc(0x18c)]=[];[_0x2a45fc(0x15e)]=new _0x30f4e8([]);[_0x2a45fc(0x18b)]=new _0x30f4e8([]);[_0x2a45fc(0x152)]=[];[_0x2a45fc(0x185)]=!0x1;[_0x2a45fc(0x157)];[_0x2a45fc(0x17b)];[_0x2a45fc(0x158)];[_0x2a45fc(0x159)];constructor({type:_0x224088,content:_0x5a2d9f='',isDone:_0x375b2b=!0x1,interactionId:_0x15ed44,areActionsDisabled:_0x4e6952,documentContextContent:_0x17ba84,editor:_0x601ed3}){const _0x200174=_0x2a45fc;super(),this['id']=_0x3829f5(),this[_0x200174(0x17c)]=_0x15ed44,this[_0x200174(0x175)]=_0x224088,this[_0x200174(0x185)]=!!_0x4e6952,this[_0x200174(0x159)]=_0x601ed3,this[_0x200174(0x17b)]=new _0xc10d8f(),this[_0x200174(0x158)]=new _0x4890ca(),this[_0x200174(0x157)]=_0x53df46(_0x17ba84||''),this[_0x200174(0x177)](_0x200174(0x174),_0x375b2b),this['on'](_0x200174(0x170),()=>{const _0x37e6d9=_0x200174;this[_0x37e6d9(0x17a)]();}),this[_0x200174(0x177)](_0x200174(0x169),_0x5a2d9f);}[_0x2a45fc(0x15a)](_0x454837){const _0x21c48c=_0x2a45fc;this[_0x21c48c(0x177)](_0x21c48c(0x169),this[_0x21c48c(0x169)]+_0x454837);}[_0x2a45fc(0x15f)](){const _0x3e5898=_0x2a45fc;this[_0x3e5898(0x174)]||(this[_0x3e5898(0x177)](_0x3e5898(0x174),!0x0),this[_0x3e5898(0x17a)]());}[_0x2a45fc(0x178)](){const _0x49613a=_0x2a45fc;this[_0x49613a(0x18f)]();}[_0x2a45fc(0x191)](_0x2ef789,_0x326a6a){const _0x35c0fc=_0x2a45fc;this[_0x35c0fc(0x152)][_0x2ef789][_0x35c0fc(0x160)]=_0x326a6a,this[_0x35c0fc(0x18d)](_0x35c0fc(0x187),{'reply':this,'index':_0x2ef789,'state':_0x326a6a});}[_0x2a45fc(0x17a)](){const _0x12f6a2=_0x2a45fc;if(_0x12f6a2(0x14c)===this[_0x12f6a2(0x175)]){this[_0x12f6a2(0x15e)]=this[_0x12f6a2(0x17b)][_0x12f6a2(0x153)](this[_0x12f6a2(0x169)]);const _0x53c9d1=this[_0x12f6a2(0x152)];this[_0x12f6a2(0x150)]();const _0x4a96b3=this[_0x12f6a2(0x17e)](_0x53c9d1,this[_0x12f6a2(0x152)]);(_0x4a96b3[_0x12f6a2(0x168)]||this[_0x12f6a2(0x174)])&&this[_0x12f6a2(0x18d)](_0x12f6a2(0x14f),this,_0x4a96b3);}else this[_0x12f6a2(0x15e)]=this[_0x12f6a2(0x17b)][_0x12f6a2(0x188)](this[_0x12f6a2(0x169)]),this[_0x12f6a2(0x18d)](_0x12f6a2(0x14f),this);}[_0x2a45fc(0x17e)](_0x300502,_0x1d9c06){const _0x5d44fd=_0x2a45fc,_0xdfafc6=[];for(const _0x33317f of _0x1d9c06){const _0x3c1bce=_0x300502[_0x33317f[_0x5d44fd(0x17f)]];_0x3c1bce?_0x3c1bce[_0x5d44fd(0x180)][_0x5d44fd(0x168)]!==_0x33317f[_0x5d44fd(0x180)][_0x5d44fd(0x168)]?_0xdfafc6[_0x5d44fd(0x16d)](_0x33317f):_0x3c1bce[_0x5d44fd(0x180)][_0x5d44fd(0x14b)]((_0x28ef4b,_0x538ed4)=>{const _0x4cd1f5=_0x5d44fd,_0x415b78=_0x33317f[_0x4cd1f5(0x180)][_0x538ed4];_0x28ef4b['id']!==_0x415b78['id']&&_0xdfafc6[_0x4cd1f5(0x16d)](_0x33317f);}):_0xdfafc6[_0x5d44fd(0x16d)](_0x33317f);}return _0xdfafc6;}[_0x2a45fc(0x150)](){const _0x1a9f2b=_0x2a45fc,_0x558269=new _0x392cbd('p',{},[new _0x392cbd(_0x1a9f2b(0x165),{'style':_0x1a9f2b(0x166)},[new _0x18f811(_0x1a9f2b(0x190))])]),_0x11a7e5=this[_0x1a9f2b(0x158)][_0x1a9f2b(0x181)](this[_0x1a9f2b(0x15e)],this[_0x1a9f2b(0x157)][_0x1a9f2b(0x163)](!0x0),{'markUnstableElements':!this[_0x1a9f2b(0x174)],'replaceRemovedWith':_0x558269,'cutAfterLastChange':!this[_0x1a9f2b(0x174)]});if(!_0x11a7e5[_0x1a9f2b(0x14d)][_0x1a9f2b(0x168)]&&!this[_0x1a9f2b(0x174)])return;this[_0x1a9f2b(0x18b)]=_0x11a7e5[_0x1a9f2b(0x15e)];let _0x4c0a68=[];if(_0xc3ba80(_0x51f7b7=>{const _0x17b91b=_0x1a9f2b,_0x83a7e5=_0x56407f(_0x51f7b7,_0x17b91b(0x18e));if(!_0x83a7e5||!_0xc744a7(_0x83a7e5))return!0x1;const _0x23ea13=[_0x51f7b7,..._0x38bae6(_0x51f7b7)]['at'](-0x2);if(_0x51f7b7!=_0x23ea13){const _0x420e46=_0x56407f(_0x23ea13,_0x17b91b(0x18e));_0xc744a7(_0x420e46)||(_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x23ea13,'id':_0x420e46,'type':_0x17b91b(0x171)}),_0x11a7e5[_0x17b91b(0x14d)][_0x17b91b(0x16d)](_0x420e46));}else _0x11a7e5[_0x17b91b(0x14d)][_0x17b91b(0x172)](_0x83a7e5)?_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x171),'id':_0x83a7e5}):_0x11a7e5[_0x17b91b(0x156)][_0x17b91b(0x172)](_0x83a7e5)?_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x16f),'id':_0x83a7e5,'anchorId':_0x56407f(_0x51f7b7[_0x17b91b(0x179)],_0x17b91b(0x18e))}):_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x162),'id':_0x83a7e5});return!0x0;},this[_0x1a9f2b(0x18b)]),_0x4c0a68=_0x4c0a68[_0x1a9f2b(0x15b)](({node:_0x24b46d})=>[..._0x38bae6(_0x24b46d),_0x24b46d][_0x1a9f2b(0x186)](_0x4ffb63=>!_0x56407f(_0x4ffb63,_0x1a9f2b(0x16b)))),0x0==_0x4c0a68[_0x1a9f2b(0x168)])return;const _0x16b694=[[_0x4c0a68[0x0]]];for(let _0x4416fb=0x1;_0x4416fb<_0x4c0a68[_0x1a9f2b(0x168)];_0x4416fb++){const _0x554986=_0x16b694[_0x16b694[_0x1a9f2b(0x168)]-0x1],_0x324e49=_0x554986[_0x554986[_0x1a9f2b(0x168)]-0x1];_0x4c0a68[_0x4416fb][_0x1a9f2b(0x15c)][_0x1a9f2b(0x179)]==_0x324e49[_0x1a9f2b(0x15c)]&&_0x1a9f2b(0x171)!=_0x4c0a68[_0x4416fb][_0x1a9f2b(0x175)]&&_0x1a9f2b(0x171)!=_0x324e49[_0x1a9f2b(0x175)]?_0x554986[_0x1a9f2b(0x16d)](_0x4c0a68[_0x4416fb]):_0x16b694[_0x1a9f2b(0x16d)]([_0x4c0a68[_0x4416fb]]);}for(const _0x16733e of _0x16b694){const _0x1ad921=_0x16733e[0x0],_0x55c1ee=_0x16733e[_0x16733e[_0x1a9f2b(0x168)]-0x1],_0x273993=_0x4599d2(_0x1ad921[_0x1a9f2b(0x15c)][_0x1a9f2b(0x179)]);_0x273993&&_0x16733e[_0x1a9f2b(0x164)](_0x273993);const _0x140225=_0x4599d2(_0x55c1ee[_0x1a9f2b(0x15c)][_0x1a9f2b(0x173)]);_0x140225&&_0x16733e[_0x1a9f2b(0x16d)](_0x140225);}function _0xc744a7(_0x313d1e){const _0x5cb6be=_0x1a9f2b;return _0x11a7e5[_0x5cb6be(0x14d)][_0x5cb6be(0x172)](_0x313d1e)||_0x11a7e5[_0x5cb6be(0x156)][_0x5cb6be(0x172)](_0x313d1e)||_0x11a7e5[_0x5cb6be(0x161)][_0x5cb6be(0x172)](_0x313d1e);}function _0x4599d2(_0x80631f){const _0x4fc427=_0x1a9f2b;if(_0x80631f&&_0x56407f(_0x80631f,_0x4fc427(0x18e))&&!_0x56407f(_0x80631f,_0x4fc427(0x16b))){const _0x18f340=_0x56407f(_0x80631f,_0x4fc427(0x18e));if(!_0xc744a7(_0x18f340))return{'node':_0x80631f,'type':_0x4fc427(0x14e),'id':_0x18f340};}return null;}this[_0x1a9f2b(0x152)]=_0x16b694[_0x1a9f2b(0x189)]((_0x2646ae,_0x55ebae)=>({'changes':_0x2646ae,'state':_0x1a9f2b(0x17d),'index':_0x55ebae}));}}function _0xb415(_0x10ab0b,_0x448428){const _0xe52dc8=_0xe52d();return _0xb415=function(_0xb4157a,_0x292b1d){_0xb4157a=_0xb4157a-0x149;let _0x2adb67=_0xe52dc8[_0xb4157a];return _0x2adb67;},_0xb415(_0x10ab0b,_0x448428);}export function isValidReplyType(_0x128d0d){const _0x4c0325=_0x2a45fc;return Object[_0x4c0325(0x16e)](AI_REPLY_TYPES)[_0x4c0325(0x172)](_0x128d0d);}export function isIgnoredReplyType(_0x44bbb7){const _0x1860c4=_0x2a45fc;return AI_REPLY_TYPES_IGNORED[_0x1860c4(0x172)](_0x44bbb7);}export function isReplyTitleType(_0x1570bf){return _0x1570bf===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2c2966){const _0x3aba57=_0x2a45fc;return _0x3aba57(0x16a)===_0x2c2966;}function _0xe52d(){const _0x34fbfe=['content','source','data-unstable','conversation-title','push','values','new','change:content','modified','includes','nextSibling','isDone','type','text-delta','set','destroy','previousSibling','onContentChange','aiResponseParser','interactionId','pending','_getDifferentChangeGroups','index','changes','merge','7448602pNHixh','reasoning','87681niIChG','areActionsDisabled','every','replyChangeGroupStateUpdated','convertMarkdownToHTML','map','84KWEYGl','parsedMergedContent','sources','fire','data-id','stopListening','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','setChangeGroupState','126AUjlZH','636129ARJHgE','28MlClIT','forEach','modification-delta','modifiedNodeIds','context','replyContentUpdated','updateChangeGroups','4600CTDxIc','changeGroups','parseAndNormalizeHTML','234328HUqRXm','460025tnajtY','newNodeIds','documentContextContent','aiResponseApplier','editor','appendContent','filter','node','589538qrXlKC','parsedContent','done','state','removedNodeIds','removed','cloneNode','unshift','span','color:\x20#808080;\x20font-style:\x20italic','1840400ZVFubO','length'];_0xe52d=function(){return _0x34fbfe;};return _0xe52d();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x39e2df(){[_0x5564fc(0xa0)];[_0x5564fc(0x81)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5564fc(0xb6)]=new Set();constructor(_0x2b4b98){const _0x6284cf=_0x5564fc;super(),this[_0x6284cf(0xa0)]=_0x2b4b98||_0x3634ab;}[_0x5564fc(0x74)](_0x1aab40,_0x43b224,_0x4dc1f8){const _0x5ef6fb=_0x5564fc,_0x53f72e=_0x195dd7(_0x1aab40);if(0x0===_0x43b224[_0x5ef6fb(0xb7)][_0x5ef6fb(0x9a)]){const _0x36b563=[];return _0x10bd60(_0x5ef6fb(0x9e),_0x5ef6fb(0xbc),_0x53f72e)[_0x5ef6fb(0xba)](_0x25413c=>{const _0x93286e=_0x5ef6fb,_0x313610=this[_0x93286e(0xa0)]();_0x1c3b98(_0x25413c,_0x93286e(0x9e),_0x313610),_0x36b563[_0x93286e(0xb0)](_0x313610);}),this[_0x5ef6fb(0xb5)](_0x53f72e),{'parsedContent':_0x53f72e,'newNodeIds':_0x36b563,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0x84)]&&this[_0x5ef6fb(0x8a)](_0x53f72e),this[_0x5ef6fb(0x81)][_0x5ef6fb(0x8f)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xb9)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]=null,this[_0x5ef6fb(0xb6)]=new Set(_0x10bd60(_0x5ef6fb(0x9e),null,_0x43b224)[_0x5ef6fb(0xbb)](_0x534c06=>_0x5c2e3b(_0x534c06,_0x5ef6fb(0x9e)))[_0x5ef6fb(0xb3)](_0x1988a3=>!!_0x1988a3));let _0x11799b=-0x1,_0x26c8e7=!0x1;const _0x42b1c6=_0x53f72e[_0x5ef6fb(0xb7)],_0x211da2=Array[_0x5ef6fb(0xa4)](_0x42b1c6)[_0x5ef6fb(0xb3)](_0x4eabaf=>!(0x3===_0x4eabaf[_0x5ef6fb(0x7e)]&&''===_0x5133f3(_0x4eabaf)[_0x5ef6fb(0xa2)]())),_0x15e8b0=_0x211da2[_0x5ef6fb(0x9a)];for(let _0x35e3ac=0x0;_0x35e3ac<_0x15e8b0;_0x35e3ac++){const _0x4882a4=_0x211da2[_0x35e3ac],_0x14b2e7=_0x211da2[_0x35e3ac+0x1];if(this[_0x5ef6fb(0x78)](_0x4882a4)){if(-0x1===_0x11799b&&(_0x11799b=_0x35e3ac),this[_0x5ef6fb(0x76)](_0x4882a4),!this[_0x5ef6fb(0x78)](_0x14b2e7)){const [_0x233cfa,_0x58dd33]=this[_0x5ef6fb(0x77)](_0x4882a4,_0x26c8e7,_0x43b224);if(_0x233cfa){const _0x47d82b=Array[_0x5ef6fb(0xa4)](_0x211da2)[_0x5ef6fb(0x97)](_0x11799b,_0x35e3ac+0x1);this[_0x5ef6fb(0x7a)](_0x233cfa,_0x47d82b,_0x58dd33),_0x11799b=-0x1;}}}else{if(this[_0x5ef6fb(0x95)](_0x4882a4))_0x26c8e7=!0x0;else{if(this[_0x5ef6fb(0x85)](_0x4882a4)){const _0x4e9e70=_0x5c2e3b(_0x4882a4,_0x5ef6fb(0x9e));if(_0x4e9e70&&this[_0x5ef6fb(0xb6)][_0x5ef6fb(0x90)](_0x4e9e70)){const _0x16c564=_0x4855b2(_0x5ef6fb(0x9e),_0x4e9e70,_0x43b224);this[_0x5ef6fb(0x99)](_0x16c564,_0x4882a4);}if(this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0xa8)](_0x4e9e70)){const _0xcd440c=this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0x86)](_0x4e9e70);this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0xa7)](_0xcd440c,0x1);}}else{if(this[_0x5ef6fb(0x8d)](_0x4882a4)){const _0x242954=_0x5c2e3b(_0x4882a4,_0x5ef6fb(0x9e));this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)][_0x5ef6fb(0xa8)](_0x242954)||this[_0x5ef6fb(0x8b)](_0x4882a4);}}}}}for(const _0x4688a0 of this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]){const _0x2b60d5=_0x4855b2(_0x5ef6fb(0x9e),_0x4688a0,_0x43b224);if(_0x2b60d5){if(_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0xab)]){this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]=_0x4688a0;const _0x96f044=_0x4dc1f8[_0x5ef6fb(0xab)][_0x5ef6fb(0xa3)](!0x0);_0x1c3b98(_0x96f044,_0x5ef6fb(0x9e),_0x4688a0),_0x1c3b98(_0x96f044,_0x5ef6fb(0x7b),_0x5ef6fb(0x75)),_0x3a2056(_0x2b60d5,_0x96f044);}else _0x2f76dd(_0x2b60d5);}}if(_0x10bd60(_0x5ef6fb(0x88),null,_0x43b224)[_0x5ef6fb(0xba)](_0x24c353=>{const _0x3b334d=_0x5ef6fb,_0x4c0c18=_0x5c2e3b(_0x24c353,_0x3b334d(0x88)),_0x43c52b=_0x4855b2(_0x3b334d(0x9e),_0x4c0c18,_0x43b224);_0x43c52b&&_0x4660a0(_0x43c52b,_0x24c353);}),_0x10bd60(_0x5ef6fb(0x9e),_0x5ef6fb(0xbc),_0x43b224)[_0x5ef6fb(0xba)](_0x4659e0=>{const _0x5d009c=_0x5ef6fb,_0x32e042=this[_0x5d009c(0x80)](_0x4659e0);_0x1c3b98(_0x4659e0,_0x5d009c(0x9e),_0x32e042),this[_0x5d009c(0x81)][_0x5d009c(0x8f)][_0x5d009c(0xb0)](_0x32e042);}),this[_0x5ef6fb(0xb5)](_0x43b224),_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0x84)]&&this[_0x5ef6fb(0x8e)](_0x43b224,_0x4dc1f8[_0x5ef6fb(0xaa)]||0x0),_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0xa1)]&&this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]){let _0x41eafb=_0x4855b2(_0x5ef6fb(0x9e),this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)],_0x43b224);for(;_0x41eafb;)_0x5c78bd(_0x41eafb),_0x41eafb=_0x41eafb[_0x5ef6fb(0xaf)];}return{'parsedContent':_0x43b224,'newNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0x8f)],'modifiedNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)],'removedNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]};}[_0x5564fc(0x7a)](_0x40f91a,_0x5486ea,_0x12fa04){const _0x61fedb=_0x5564fc;for(const _0x1eceb5 of _0x5486ea){const _0x5c0be4=this[_0x61fedb(0x80)](_0x1eceb5);_0x1c3b98(_0x1eceb5,_0x61fedb(0x9e),_0x5c0be4),this[_0x61fedb(0x81)][_0x61fedb(0x8f)][_0x61fedb(0xb0)](_0x5c0be4),this[_0x61fedb(0x81)][_0x61fedb(0xad)]=_0x5c0be4;}const _0x480f01=_0x61fedb(0x94)===_0x12fa04||_0x61fedb(0x82)===_0x12fa04?_0x5486ea[_0x61fedb(0x79)]():_0x5486ea;for(const _0xda03b4 of _0x480f01)_0x360121(_0x40f91a,_0xda03b4,_0x12fa04);}[_0x5564fc(0x99)](_0x5840bb,_0x333819){const _0x15c742=_0x5564fc;if(!_0x5840bb)return;if(_0x5e1b73(_0x5840bb,_0x333819))return;const _0x2e7ec8=this[_0x15c742(0x80)](_0x5840bb);_0x1c3b98(_0x333819,_0x15c742(0x9e),_0x2e7ec8),this[_0x15c742(0x81)][_0x15c742(0xac)][_0x15c742(0xb0)](_0x2e7ec8),this[_0x15c742(0x81)][_0x15c742(0xad)]=_0x2e7ec8,_0x3a2056(_0x5840bb,_0x333819[_0x15c742(0xa3)](!0x0));}[_0x5564fc(0x77)](_0x18732b,_0x240da0,_0xbf21dc){const _0x4a4570=_0x5564fc,_0x5c28de=this[_0x4a4570(0xa6)](_0x18732b,!0x1);if(_0x5c28de){const _0x34148f=this[_0x4a4570(0x7f)](_0x5c28de),_0x5c4e25=_0x4855b2(_0x4a4570(0x9e),_0x34148f,_0xbf21dc);if(_0x5c4e25)return[_0x5c4e25,_0x4a4570(0x82)];this[_0x4a4570(0x81)][_0x4a4570(0xb9)][_0x4a4570(0xb0)](_0x34148f);}const _0x56c566=this[_0x4a4570(0x7c)](_0x18732b,!0x1);if(_0x56c566){const _0x5933f5=this[_0x4a4570(0x7f)](_0x56c566),_0x758a9f=_0x4855b2(_0x4a4570(0x9e),_0x5933f5,_0xbf21dc);if(_0x758a9f)return[_0x758a9f,_0x4a4570(0xb1)];this[_0x4a4570(0x81)][_0x4a4570(0xb9)][_0x4a4570(0xb0)](_0x5933f5);}return _0x240da0?_0x18732b[_0x4a4570(0xb8)]?this[_0x4a4570(0x83)](_0x18732b,_0xbf21dc):[_0xbf21dc[_0x4a4570(0xb7)][_0xbf21dc[_0x4a4570(0xb7)][_0x4a4570(0x9a)]-0x1],_0x4a4570(0x82)]:[_0xbf21dc[_0x4a4570(0xb7)][0x0],_0x4a4570(0xb1)];}[_0x5564fc(0x83)](_0x5e0cdf,_0x494937){const _0x1d2057=_0x5564fc,_0x41db61=[],_0x5b1e6c=this[_0x1d2057(0xa6)](_0x5e0cdf,!0x0);if(_0x5b1e6c){const _0x3901c0=this[_0x1d2057(0x7f)](_0x5b1e6c),_0x49a674=_0x4855b2(_0x1d2057(0x9e),_0x3901c0,_0x494937);_0x49a674&&_0x41db61[_0x1d2057(0xb0)]([_0x49a674,_0x1d2057(0x82)]);}const _0x27b41b=this[_0x1d2057(0x7c)](_0x5e0cdf,!0x0);if(_0x27b41b){const _0x36b946=this[_0x1d2057(0x7f)](_0x27b41b),_0x15cc97=_0x4855b2(_0x1d2057(0x9e),_0x36b946,_0x494937);_0x15cc97&&_0x41db61[_0x1d2057(0xb0)]([_0x15cc97,_0x1d2057(0xb1)]);}if(_0x41db61[_0x1d2057(0x9a)]>0x1)return _0x16fa6c(_0x41db61[0x0][0x0])<=_0x16fa6c(_0x41db61[0x1][0x0])?_0x41db61[0x0]:_0x41db61[0x1];return 0x1===_0x41db61[_0x1d2057(0x9a)]?_0x41db61[0x0]:[_0x494937[_0x1d2057(0xae)],_0x1d2057(0x82)];}[_0x5564fc(0x7c)](_0x95b77e,_0x35d1a7){const _0x2961c7=_0x5564fc;let _0x31d4c7=_0x95b77e[_0x2961c7(0xb8)],_0x2db1d2=null,_0x2e8fea=!0x1;for(;_0x31d4c7;){if(_0x114a30(_0x31d4c7)){if(this[_0x2961c7(0x8d)](_0x31d4c7)&&(_0x2db1d2=_0x31d4c7),this[_0x2961c7(0x95)](_0x31d4c7)&&_0x35d1a7&&!_0x2e8fea){_0x2e8fea=!0x0,_0x31d4c7=_0x31d4c7[_0x2961c7(0xb8)];continue;}break;}const _0x2902e6=_0x5c2e3b(_0x31d4c7,_0x2961c7(0x9e));if(_0x2902e6&&_0x2961c7(0xbc)!==_0x2902e6&&this[_0x2961c7(0xb6)][_0x2961c7(0x90)](_0x2902e6)){_0x2db1d2=_0x31d4c7;break;}_0x31d4c7=_0x31d4c7[_0x2961c7(0xb8)];}return _0x2db1d2;}[_0x5564fc(0xa6)](_0x443f67,_0xab1f69){const _0x285688=_0x5564fc;let _0x30222e=_0x443f67[_0x285688(0x9d)],_0x26d220=null,_0x2286a0=!0x1;for(;_0x30222e;){if(_0x114a30(_0x30222e)){if(this[_0x285688(0x8d)](_0x30222e)&&(_0x26d220=_0x30222e),this[_0x285688(0x95)](_0x30222e)&&_0xab1f69&&!_0x2286a0){_0x2286a0=!0x0,_0x30222e=_0x30222e[_0x285688(0x9d)];continue;}break;}const _0x270f27=_0x5c2e3b(_0x30222e,_0x285688(0x9e));if(_0x270f27&&_0x285688(0xbc)!==_0x270f27&&this[_0x285688(0xb6)][_0x285688(0x90)](_0x270f27)){_0x26d220=_0x30222e;break;}_0x30222e=_0x30222e[_0x285688(0x9d)];}return _0x26d220;}[_0x5564fc(0x76)](_0x3e3640){const _0x2ff21d=_0x5564fc;_0x521f1b(_0x3e3640)&&_0x10bd60(_0x2ff21d(0x9e),null,_0x3e3640)[_0x2ff21d(0xba)](_0x285c73=>{const _0x39e255=_0x2ff21d;if(this[_0x39e255(0x85)](_0x285c73)&&!this[_0x39e255(0x96)](_0x285c73)){const _0x9ad75=_0x5c2e3b(_0x285c73,_0x39e255(0x9e));_0x1c3b98(_0x285c73,_0x39e255(0x88),_0x9ad75),_0x1c3b98(_0x285c73,_0x39e255(0x9e),null);}});}[_0x5564fc(0x7f)](_0x1d100c){const _0x694ed1=_0x5564fc;if(!_0x1d100c)return null;if(_0x521f1b(_0x1d100c))return _0x5c2e3b(_0x1d100c,_0x694ed1(0x9e));if(_0x114a30(_0x1d100c)){const _0x261e95=_0x5133f3(_0x1d100c)[_0x694ed1(0xb4)](/removed[\s*-]data-id="([^"]+)"/);if(_0x261e95&&_0x261e95[0x1])return _0x261e95[0x1];}return null;}[_0x5564fc(0x8b)](_0x5192cc){const _0x16a7c3=_0x5564fc;if(_0x114a30(_0x5192cc)){const _0x1e99c0=_0x5133f3(_0x5192cc)[_0x16a7c3(0xb4)](/removed[\s*-]data-id="([^"]+)"/);_0x1e99c0&&_0x1e99c0[0x1]&&this[_0x16a7c3(0x81)][_0x16a7c3(0x7d)][_0x16a7c3(0xb0)](_0x1e99c0[0x1]);}}[_0x5564fc(0x80)](_0x3c9253){const _0xff35c9=_0x5564fc;return this[_0xff35c9(0x85)](_0x3c9253)?_0x5c2e3b(_0x3c9253,_0xff35c9(0x9e)):this[_0xff35c9(0xa0)]();}[_0x5564fc(0xb5)](_0x464d4d){const _0x512a0e=_0x5564fc;_0x16e681(_0x464d4d)[_0x512a0e(0xb3)](_0x5653b7=>this[_0x512a0e(0x8d)](_0x5653b7)||this[_0x512a0e(0x95)](_0x5653b7))[_0x512a0e(0xba)](_0x39f402=>{_0x2f76dd(_0x39f402);});}[_0x5564fc(0x8a)](_0x531b6f){const _0x16357d=_0x5564fc,_0x72205=_0x531b6f[_0x16357d(0xb7)],_0x20eb51=_0x72205[_0x72205[_0x16357d(0x9a)]-0x1];_0x20eb51&&_0x521f1b(_0x20eb51)&&_0x1c3b98(_0x20eb51,_0x16357d(0x92),_0x16357d(0x75));}[_0x5564fc(0x8e)](_0x4ea710,_0x593267){const _0x5e1d9a=_0x5564fc,_0x467fec=_0x4855b2(_0x5e1d9a(0x92),_0x5e1d9a(0x75),_0x4ea710);if(!_0x467fec)return;const _0x99752e=_0x15c503(_0x467fec)[_0x5e1d9a(0x97)](0x0,-0x1),_0x50ca69=_0x99752e[_0x5e1d9a(0x9a)];let _0x2087a8=_0x467fec;if(_0x50ca69>_0x593267){let _0x464f39=_0x50ca69,_0x205a8d=null;for(;_0x464f39>_0x593267&&_0x464f39>=0x0;)_0x464f39--,_0x205a8d=_0x99752e[_0x464f39];_0x205a8d&&(_0x2087a8=_0x205a8d,_0x1c3b98(_0x467fec,_0x5e1d9a(0x92),null),_0x1c3b98(_0x205a8d,_0x5e1d9a(0x92),_0x5e1d9a(0x75)));}else{if(_0x50ca69<_0x593267){let _0x4dfb04=_0x50ca69,_0x90a9a3=_0x467fec;for(;_0x4dfb04<_0x593267;){const _0x1f8424=_0x90a9a3[_0x5e1d9a(0xb7)][_0x5e1d9a(0xb3)](_0x4880ac=>_0x521f1b(_0x4880ac));if(0x0===_0x1f8424[_0x5e1d9a(0x9a)])break;_0x4dfb04++,_0x90a9a3=_0x1f8424[_0x1f8424[_0x5e1d9a(0x9a)]-0x1];}_0x90a9a3&&(_0x2087a8=_0x90a9a3,_0x1c3b98(_0x467fec,_0x5e1d9a(0x92),null),_0x1c3b98(_0x90a9a3,_0x5e1d9a(0x92),_0x5e1d9a(0x75)));}}let _0x166748=_0x2087a8;for(;_0x166748;){for(;_0x166748[_0x5e1d9a(0xb8)];)_0x166748=_0x166748[_0x5e1d9a(0xb8)],_0x521f1b(_0x166748)&&_0x1c3b98(_0x166748,_0x5e1d9a(0x92),_0x5e1d9a(0x75));_0x166748=_0x166748[_0x5e1d9a(0xaf)];}}[_0x5564fc(0x78)](_0x1cac7e){const _0x39f7c1=_0x5564fc;return Boolean(_0x39f7c1(0xbc)===_0x5c2e3b(_0x1cac7e,_0x39f7c1(0x9e)));}[_0x5564fc(0x85)](_0x197469){const _0x5a2bb2=_0x5564fc;return Boolean((_0x5c2e3b(_0x197469,_0x5a2bb2(0x9e))||'')[_0x5a2bb2(0x9a)]>0x0&&_0x5a2bb2(0xbc)!==_0x5c2e3b(_0x197469,_0x5a2bb2(0x9e)));}[_0x5564fc(0x8d)](_0x51e532){const _0x43ad54=_0x5564fc;return!!_0x51e532&&Boolean(_0x114a30(_0x51e532)&&_0x5133f3(_0x51e532)[_0x43ad54(0xb4)](/removed[\s*-]data-id="[^"]+"/));}[_0x5564fc(0x96)](_0xdf5d87){const _0x2a2415=_0x5564fc;let _0x41f122=_0xdf5d87[_0x2a2415(0xaf)];for(;_0x41f122;){if(_0x5c2e3b(_0x41f122,_0x2a2415(0x88)))return!0x0;_0x41f122=_0x41f122[_0x2a2415(0xaf)];}return!0x1;}[_0x5564fc(0x95)](_0x460228){const _0x2932b1=_0x5564fc;return Boolean(_0x114a30(_0x460228)&&_0x5133f3(_0x460228)[_0x2932b1(0xb4)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x15c6(_0xeec5d4,_0x5a7942){const _0x1ade56=_0x1ade();return _0x15c6=function(_0x15c62f,_0x38077a){_0x15c62f=_0x15c62f-0x74;let _0x222de1=_0x1ade56[_0x15c62f];return _0x222de1;},_0x15c6(_0xeec5d4,_0x5a7942);}function _0x1ade(){const _0x43cf25=['trim','cloneNode','from','6813sVDlEm','_findPrevElementWithDataId','splice','includes','86790VLkwZT','markUnstableElementsDepth','replaceRemovedWith','modifiedIds','lastTouchedId','lastChild','parentNode','push','beforebegin','394280eBhAHa','filter','match','_removeSpecialComments','_existingDataIds','childNodes','nextSibling','invalidIds','forEach','map','new-element','merge','true','_markWrappedElements','_findReferenceNode','_isNewNode','reverse','_insertNodes','data-removed','_findNextElementWithDataId','removedIds','nodeType','_getNodeDataId','_getUid','_touchedNodesState','afterend','_findFallbackReferenceNode','markUnstableElements','_isExistingNode','indexOf','1896yFhBKw','data-wrapped-id','14998ZeENGW','_markLastTagElementUnstable','_storeDeletedElementIds','1673VsMuwl','_isDelNode','_markUnstableElements','newIds','has','300xLKPzY','data-unstable','656qDiiaW','afterbegin','_isExistingContentComment','_hasWrappedParent','slice','7EuvpEs','_replaceNode','length','6272zqmxsF','1258980zYnSUS','previousSibling','data-id','11TfieEo','_generateUid','cutAfterLastChange'];_0x1ade=function(){return _0x43cf25;};return _0x1ade();}
|
|
23
|
+
const _0x3febde=_0x5065;(function(_0x35bb6f,_0x325c6d){const _0x24c588=_0x5065,_0x397d7e=_0x35bb6f();while(!![]){try{const _0xb3bd6b=parseInt(_0x24c588(0x1ee))/0x1+parseInt(_0x24c588(0x1ef))/0x2*(parseInt(_0x24c588(0x1dd))/0x3)+parseInt(_0x24c588(0x205))/0x4*(parseInt(_0x24c588(0x1d8))/0x5)+parseInt(_0x24c588(0x1c6))/0x6+-parseInt(_0x24c588(0x1d0))/0x7*(parseInt(_0x24c588(0x1f0))/0x8)+parseInt(_0x24c588(0x1e8))/0x9*(-parseInt(_0x24c588(0x1c5))/0xa)+-parseInt(_0x24c588(0x1da))/0xb;if(_0xb3bd6b===_0x325c6d)break;else _0x397d7e['push'](_0x397d7e['shift']());}catch(_0x24155b){_0x397d7e['push'](_0x397d7e['shift']());}}}(_0x24aa,0x398eb));import{ObservableMixin as _0x5d1755,uid as _0x15d1e1}from'ckeditor5/src/utils.js';function _0x24aa(){const _0x38c81b=['afterend','_replaceNode','modifiedIds','_findFallbackReferenceNode','data-id','_findNextElementWithDataId','1810CScfCa','newIds','5797385Ahvqtf','indexOf','previousSibling','42702Uzpclu','reverse','length','cutAfterLastChange','splice','_findReferenceNode','removedIds','has','map','_existingDataIds','_hasWrappedParent','64026nOwQYU','_isDelNode','_markWrappedElements','lastChild','parentNode','_isExistingContentComment','146844wlYTcz','28xHzCAz','424AFwgBR','lastTouchedId','new-element','from','cloneNode','_isExistingNode','data-removed','trim','_removeSpecialComments','_touchedNodesState','_storeDeletedElementIds','_markLastTagElementUnstable','_findPrevElementWithDataId','filter','data-unstable','merge','nodeType','_getUid','_isNewNode','_insertNodes','includes','4584ulsUPw','_markUnstableElements','slice','nextSibling','push','_getNodeDataId','forEach','markUnstableElements','80untfiN','573390qEbAae','replaceRemovedWith','data-wrapped-id','afterbegin','childNodes','markUnstableElementsDepth','beforebegin','match','invalidIds','_generateUid','4865bURcbT','true'];_0x24aa=function(){return _0x38c81b;};return _0x24aa();}function _0x5065(_0x3748ad,_0x17663c){const _0x24aa45=_0x24aa();return _0x5065=function(_0x506502,_0x347536){_0x506502=_0x506502-0x1be;let _0x19723d=_0x24aa45[_0x506502];return _0x19723d;},_0x5065(_0x3748ad,_0x17663c);}import{findAllByAttribute as _0x3b2eec,findByAttribute as _0x48c6d9,getAttribute as _0x4e3db5,isComment as _0x51155c,isTag as _0x101422,insertElement as _0x44581f,moveElement as _0x2bbe62,removeElement as _0x25b599,replaceElement as _0x19a95c,serialize as _0x43b44b,setAttribute as _0x1ae963,clone as _0x137d8b,findAllComments as _0x294bf8,getParents as _0x2ff4fc,getNodeNestingLevel as _0x18160d,areNodesSame as _0x4b2257,removeElementsAfter as _0x416884}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d1755(){[_0x3febde(0x1cf)];[_0x3febde(0x1f9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3febde(0x1e6)]=new Set();constructor(_0x589873){const _0x27e1aa=_0x3febde;super(),this[_0x27e1aa(0x1cf)]=_0x589873||_0x15d1e1;}[_0x3febde(0x1ff)](_0x36c38e,_0x44ee52,_0x38408b){const _0x3202be=_0x3febde,_0x5c0eee=_0x137d8b(_0x36c38e);if(0x0===_0x44ee52[_0x3202be(0x1ca)][_0x3202be(0x1df)]){const _0xd06278=[];return _0x3b2eec(_0x3202be(0x1d6),_0x3202be(0x1f2),_0x5c0eee)[_0x3202be(0x1c3)](_0x412ccd=>{const _0x2ac5c5=_0x3202be,_0x2b7788=this[_0x2ac5c5(0x1cf)]();_0x1ae963(_0x412ccd,_0x2ac5c5(0x1d6),_0x2b7788),_0xd06278[_0x2ac5c5(0x1c1)](_0x2b7788);}),this[_0x3202be(0x1f8)](_0x5c0eee),{'parsedContent':_0x5c0eee,'newNodeIds':_0xd06278,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x38408b&&_0x38408b[_0x3202be(0x1c4)]&&this[_0x3202be(0x1fb)](_0x5c0eee),this[_0x3202be(0x1f9)][_0x3202be(0x1d9)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1d4)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1ce)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]=null,this[_0x3202be(0x1e6)]=new Set(_0x3b2eec(_0x3202be(0x1d6),null,_0x44ee52)[_0x3202be(0x1e5)](_0x48f991=>_0x4e3db5(_0x48f991,_0x3202be(0x1d6)))[_0x3202be(0x1fd)](_0x623c15=>!!_0x623c15));let _0x1417fb=-0x1,_0x27cb98=!0x1;const _0x5d361b=_0x5c0eee[_0x3202be(0x1ca)],_0x12c9d6=Array[_0x3202be(0x1f3)](_0x5d361b)[_0x3202be(0x1fd)](_0x44ec29=>!(0x3===_0x44ec29[_0x3202be(0x200)]&&''===_0x43b44b(_0x44ec29)[_0x3202be(0x1f7)]())),_0x1ebc51=_0x12c9d6[_0x3202be(0x1df)];for(let _0x4a99ab=0x0;_0x4a99ab<_0x1ebc51;_0x4a99ab++){const _0x44b52e=_0x12c9d6[_0x4a99ab],_0x3a95cf=_0x12c9d6[_0x4a99ab+0x1];if(this[_0x3202be(0x202)](_0x44b52e)){if(-0x1===_0x1417fb&&(_0x1417fb=_0x4a99ab),this[_0x3202be(0x1ea)](_0x44b52e),!this[_0x3202be(0x202)](_0x3a95cf)){const [_0x411d28,_0x46ad4f]=this[_0x3202be(0x1e2)](_0x44b52e,_0x27cb98,_0x44ee52);if(_0x411d28){const _0x23f370=Array[_0x3202be(0x1f3)](_0x12c9d6)[_0x3202be(0x1bf)](_0x1417fb,_0x4a99ab+0x1);this[_0x3202be(0x203)](_0x411d28,_0x23f370,_0x46ad4f),_0x1417fb=-0x1;}}}else{if(this[_0x3202be(0x1ed)](_0x44b52e))_0x27cb98=!0x0;else{if(this[_0x3202be(0x1f5)](_0x44b52e)){const _0x4dd8d5=_0x4e3db5(_0x44b52e,_0x3202be(0x1d6));if(_0x4dd8d5&&this[_0x3202be(0x1e6)][_0x3202be(0x1e4)](_0x4dd8d5)){const _0x44c779=_0x48c6d9(_0x3202be(0x1d6),_0x4dd8d5,_0x44ee52);this[_0x3202be(0x1d3)](_0x44c779,_0x44b52e);}if(this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x204)](_0x4dd8d5)){const _0x437042=this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x1db)](_0x4dd8d5);this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x1e1)](_0x437042,0x1);}}else{if(this[_0x3202be(0x1e9)](_0x44b52e)){const _0x4c4442=_0x4e3db5(_0x44b52e,_0x3202be(0x1d6));this[_0x3202be(0x1f9)][_0x3202be(0x1d4)][_0x3202be(0x204)](_0x4c4442)||this[_0x3202be(0x1fa)](_0x44b52e);}}}}}for(const _0x2a5752 of this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]){const _0x5b4df0=_0x48c6d9(_0x3202be(0x1d6),_0x2a5752,_0x44ee52);if(_0x5b4df0){if(_0x38408b&&_0x38408b[_0x3202be(0x1c7)]){this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]=_0x2a5752;const _0x59c6e9=_0x38408b[_0x3202be(0x1c7)][_0x3202be(0x1f4)](!0x0);_0x1ae963(_0x59c6e9,_0x3202be(0x1d6),_0x2a5752),_0x1ae963(_0x59c6e9,_0x3202be(0x1f6),_0x3202be(0x1d1)),_0x19a95c(_0x5b4df0,_0x59c6e9);}else _0x25b599(_0x5b4df0);}}if(_0x3b2eec(_0x3202be(0x1c8),null,_0x44ee52)[_0x3202be(0x1c3)](_0x55d743=>{const _0xf5d36b=_0x3202be,_0xc9c1c6=_0x4e3db5(_0x55d743,_0xf5d36b(0x1c8)),_0x2d2735=_0x48c6d9(_0xf5d36b(0x1d6),_0xc9c1c6,_0x44ee52);_0x2d2735&&_0x2bbe62(_0x2d2735,_0x55d743);}),_0x3b2eec(_0x3202be(0x1d6),_0x3202be(0x1f2),_0x44ee52)[_0x3202be(0x1c3)](_0x29264f=>{const _0x3afaed=_0x3202be,_0x196c43=this[_0x3afaed(0x201)](_0x29264f);_0x1ae963(_0x29264f,_0x3afaed(0x1d6),_0x196c43),this[_0x3afaed(0x1f9)][_0x3afaed(0x1d9)][_0x3afaed(0x1c1)](_0x196c43);}),this[_0x3202be(0x1f8)](_0x44ee52),_0x38408b&&_0x38408b[_0x3202be(0x1c4)]&&this[_0x3202be(0x1be)](_0x44ee52,_0x38408b[_0x3202be(0x1cb)]||0x0),_0x38408b&&_0x38408b[_0x3202be(0x1e0)]&&this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]){let _0x23969f=_0x48c6d9(_0x3202be(0x1d6),this[_0x3202be(0x1f9)][_0x3202be(0x1f1)],_0x44ee52);for(;_0x23969f;)_0x416884(_0x23969f),_0x23969f=_0x23969f[_0x3202be(0x1ec)];}return{'parsedContent':_0x44ee52,'newNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1d9)],'modifiedNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1d4)],'removedNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]};}[_0x3febde(0x203)](_0x365dba,_0x4d004f,_0x2cd130){const _0x120203=_0x3febde;for(const _0x3fbce1 of _0x4d004f){const _0x1b5506=this[_0x120203(0x201)](_0x3fbce1);_0x1ae963(_0x3fbce1,_0x120203(0x1d6),_0x1b5506),this[_0x120203(0x1f9)][_0x120203(0x1d9)][_0x120203(0x1c1)](_0x1b5506),this[_0x120203(0x1f9)][_0x120203(0x1f1)]=_0x1b5506;}const _0x25e1d5=_0x120203(0x1c9)===_0x2cd130||_0x120203(0x1d2)===_0x2cd130?_0x4d004f[_0x120203(0x1de)]():_0x4d004f;for(const _0x437186 of _0x25e1d5)_0x44581f(_0x365dba,_0x437186,_0x2cd130);}[_0x3febde(0x1d3)](_0x1a8910,_0x2eefce){const _0x978614=_0x3febde;if(!_0x1a8910)return;if(_0x4b2257(_0x1a8910,_0x2eefce))return;const _0x528eef=this[_0x978614(0x201)](_0x1a8910);_0x1ae963(_0x2eefce,_0x978614(0x1d6),_0x528eef),this[_0x978614(0x1f9)][_0x978614(0x1d4)][_0x978614(0x1c1)](_0x528eef),this[_0x978614(0x1f9)][_0x978614(0x1f1)]=_0x528eef,_0x19a95c(_0x1a8910,_0x2eefce[_0x978614(0x1f4)](!0x0));}[_0x3febde(0x1e2)](_0x52e55e,_0x50c572,_0x5cb31e){const _0x281d0d=_0x3febde,_0x457011=this[_0x281d0d(0x1fc)](_0x52e55e,!0x1);if(_0x457011){const _0x2b2784=this[_0x281d0d(0x1c2)](_0x457011),_0x457b05=_0x48c6d9(_0x281d0d(0x1d6),_0x2b2784,_0x5cb31e);if(_0x457b05)return[_0x457b05,_0x281d0d(0x1d2)];this[_0x281d0d(0x1f9)][_0x281d0d(0x1ce)][_0x281d0d(0x1c1)](_0x2b2784);}const _0x492d7c=this[_0x281d0d(0x1d7)](_0x52e55e,!0x1);if(_0x492d7c){const _0x3d7c48=this[_0x281d0d(0x1c2)](_0x492d7c),_0x49cb21=_0x48c6d9(_0x281d0d(0x1d6),_0x3d7c48,_0x5cb31e);if(_0x49cb21)return[_0x49cb21,_0x281d0d(0x1cc)];this[_0x281d0d(0x1f9)][_0x281d0d(0x1ce)][_0x281d0d(0x1c1)](_0x3d7c48);}return _0x50c572?_0x52e55e[_0x281d0d(0x1c0)]?this[_0x281d0d(0x1d5)](_0x52e55e,_0x5cb31e):[_0x5cb31e[_0x281d0d(0x1ca)][_0x5cb31e[_0x281d0d(0x1ca)][_0x281d0d(0x1df)]-0x1],_0x281d0d(0x1d2)]:[_0x5cb31e[_0x281d0d(0x1ca)][0x0],_0x281d0d(0x1cc)];}[_0x3febde(0x1d5)](_0x21429a,_0x388a36){const _0x3ee238=_0x3febde,_0x5aae30=[],_0x2f7a3f=this[_0x3ee238(0x1fc)](_0x21429a,!0x0);if(_0x2f7a3f){const _0x6eabb2=this[_0x3ee238(0x1c2)](_0x2f7a3f),_0x47435d=_0x48c6d9(_0x3ee238(0x1d6),_0x6eabb2,_0x388a36);_0x47435d&&_0x5aae30[_0x3ee238(0x1c1)]([_0x47435d,_0x3ee238(0x1d2)]);}const _0x41ddd7=this[_0x3ee238(0x1d7)](_0x21429a,!0x0);if(_0x41ddd7){const _0x2084c5=this[_0x3ee238(0x1c2)](_0x41ddd7),_0x313cc2=_0x48c6d9(_0x3ee238(0x1d6),_0x2084c5,_0x388a36);_0x313cc2&&_0x5aae30[_0x3ee238(0x1c1)]([_0x313cc2,_0x3ee238(0x1cc)]);}if(_0x5aae30[_0x3ee238(0x1df)]>0x1)return _0x18160d(_0x5aae30[0x0][0x0])<=_0x18160d(_0x5aae30[0x1][0x0])?_0x5aae30[0x0]:_0x5aae30[0x1];return 0x1===_0x5aae30[_0x3ee238(0x1df)]?_0x5aae30[0x0]:[_0x388a36[_0x3ee238(0x1eb)],_0x3ee238(0x1d2)];}[_0x3febde(0x1d7)](_0xc65e81,_0x4ce1d0){const _0x17a7fc=_0x3febde;let _0x1c7c16=_0xc65e81[_0x17a7fc(0x1c0)],_0x4c7948=null,_0x1fdab4=!0x1;for(;_0x1c7c16;){if(_0x51155c(_0x1c7c16)){if(this[_0x17a7fc(0x1e9)](_0x1c7c16)&&(_0x4c7948=_0x1c7c16),this[_0x17a7fc(0x1ed)](_0x1c7c16)&&_0x4ce1d0&&!_0x1fdab4){_0x1fdab4=!0x0,_0x1c7c16=_0x1c7c16[_0x17a7fc(0x1c0)];continue;}break;}const _0x50fe9e=_0x4e3db5(_0x1c7c16,_0x17a7fc(0x1d6));if(_0x50fe9e&&_0x17a7fc(0x1f2)!==_0x50fe9e&&this[_0x17a7fc(0x1e6)][_0x17a7fc(0x1e4)](_0x50fe9e)){_0x4c7948=_0x1c7c16;break;}_0x1c7c16=_0x1c7c16[_0x17a7fc(0x1c0)];}return _0x4c7948;}[_0x3febde(0x1fc)](_0x14e0da,_0x562f6c){const _0x336011=_0x3febde;let _0x229b0a=_0x14e0da[_0x336011(0x1dc)],_0x32b96a=null,_0xbe0a13=!0x1;for(;_0x229b0a;){if(_0x51155c(_0x229b0a)){if(this[_0x336011(0x1e9)](_0x229b0a)&&(_0x32b96a=_0x229b0a),this[_0x336011(0x1ed)](_0x229b0a)&&_0x562f6c&&!_0xbe0a13){_0xbe0a13=!0x0,_0x229b0a=_0x229b0a[_0x336011(0x1dc)];continue;}break;}const _0x54091c=_0x4e3db5(_0x229b0a,_0x336011(0x1d6));if(_0x54091c&&_0x336011(0x1f2)!==_0x54091c&&this[_0x336011(0x1e6)][_0x336011(0x1e4)](_0x54091c)){_0x32b96a=_0x229b0a;break;}_0x229b0a=_0x229b0a[_0x336011(0x1dc)];}return _0x32b96a;}[_0x3febde(0x1ea)](_0x3329bf){const _0x49b0a3=_0x3febde;_0x101422(_0x3329bf)&&_0x3b2eec(_0x49b0a3(0x1d6),null,_0x3329bf)[_0x49b0a3(0x1c3)](_0x1cb815=>{const _0x201001=_0x49b0a3;if(this[_0x201001(0x1f5)](_0x1cb815)&&!this[_0x201001(0x1e7)](_0x1cb815)){const _0x204a94=_0x4e3db5(_0x1cb815,_0x201001(0x1d6));_0x1ae963(_0x1cb815,_0x201001(0x1c8),_0x204a94),_0x1ae963(_0x1cb815,_0x201001(0x1d6),null);}});}[_0x3febde(0x1c2)](_0x187dd3){const _0x3be7b6=_0x3febde;if(!_0x187dd3)return null;if(_0x101422(_0x187dd3))return _0x4e3db5(_0x187dd3,_0x3be7b6(0x1d6));if(_0x51155c(_0x187dd3)){const _0x2cb24b=_0x43b44b(_0x187dd3)[_0x3be7b6(0x1cd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2cb24b&&_0x2cb24b[0x1])return _0x2cb24b[0x1];}return null;}[_0x3febde(0x1fa)](_0x33a1b6){const _0x1d6091=_0x3febde;if(_0x51155c(_0x33a1b6)){const _0x4e6170=_0x43b44b(_0x33a1b6)[_0x1d6091(0x1cd)](/removed[\s*-]data-id="([^"]+)"/);_0x4e6170&&_0x4e6170[0x1]&&this[_0x1d6091(0x1f9)][_0x1d6091(0x1e3)][_0x1d6091(0x1c1)](_0x4e6170[0x1]);}}[_0x3febde(0x201)](_0x3abab6){const _0x148926=_0x3febde;return this[_0x148926(0x1f5)](_0x3abab6)?_0x4e3db5(_0x3abab6,_0x148926(0x1d6)):this[_0x148926(0x1cf)]();}[_0x3febde(0x1f8)](_0x2c805c){const _0x515568=_0x3febde;_0x294bf8(_0x2c805c)[_0x515568(0x1fd)](_0x5b898f=>this[_0x515568(0x1e9)](_0x5b898f)||this[_0x515568(0x1ed)](_0x5b898f))[_0x515568(0x1c3)](_0xfeb336=>{_0x25b599(_0xfeb336);});}[_0x3febde(0x1fb)](_0x20dc4a){const _0x559988=_0x3febde,_0x30f543=_0x20dc4a[_0x559988(0x1ca)],_0x410754=_0x30f543[_0x30f543[_0x559988(0x1df)]-0x1];_0x410754&&_0x101422(_0x410754)&&_0x1ae963(_0x410754,_0x559988(0x1fe),_0x559988(0x1d1));}[_0x3febde(0x1be)](_0x2eba3f,_0x413f92){const _0x4b28bc=_0x3febde,_0xcec155=_0x48c6d9(_0x4b28bc(0x1fe),_0x4b28bc(0x1d1),_0x2eba3f);if(!_0xcec155)return;const _0x1fc209=_0x2ff4fc(_0xcec155)[_0x4b28bc(0x1bf)](0x0,-0x1),_0x1f4838=_0x1fc209[_0x4b28bc(0x1df)];let _0x19ac7e=_0xcec155;if(_0x1f4838>_0x413f92){let _0x12393a=_0x1f4838,_0x5de675=null;for(;_0x12393a>_0x413f92&&_0x12393a>=0x0;)_0x12393a--,_0x5de675=_0x1fc209[_0x12393a];_0x5de675&&(_0x19ac7e=_0x5de675,_0x1ae963(_0xcec155,_0x4b28bc(0x1fe),null),_0x1ae963(_0x5de675,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1)));}else{if(_0x1f4838<_0x413f92){let _0x10aa2c=_0x1f4838,_0x470a69=_0xcec155;for(;_0x10aa2c<_0x413f92;){const _0x258919=_0x470a69[_0x4b28bc(0x1ca)][_0x4b28bc(0x1fd)](_0x39ada5=>_0x101422(_0x39ada5));if(0x0===_0x258919[_0x4b28bc(0x1df)])break;_0x10aa2c++,_0x470a69=_0x258919[_0x258919[_0x4b28bc(0x1df)]-0x1];}_0x470a69&&(_0x19ac7e=_0x470a69,_0x1ae963(_0xcec155,_0x4b28bc(0x1fe),null),_0x1ae963(_0x470a69,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1)));}}let _0x135e1c=_0x19ac7e;for(;_0x135e1c;){for(;_0x135e1c[_0x4b28bc(0x1c0)];)_0x135e1c=_0x135e1c[_0x4b28bc(0x1c0)],_0x101422(_0x135e1c)&&_0x1ae963(_0x135e1c,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1));_0x135e1c=_0x135e1c[_0x4b28bc(0x1ec)];}}[_0x3febde(0x202)](_0x3b036f){const _0x4bd638=_0x3febde;return Boolean(_0x4bd638(0x1f2)===_0x4e3db5(_0x3b036f,_0x4bd638(0x1d6)));}[_0x3febde(0x1f5)](_0x45dd06){const _0x597fc7=_0x3febde;return Boolean((_0x4e3db5(_0x45dd06,_0x597fc7(0x1d6))||'')[_0x597fc7(0x1df)]>0x0&&_0x597fc7(0x1f2)!==_0x4e3db5(_0x45dd06,_0x597fc7(0x1d6)));}[_0x3febde(0x1e9)](_0xb346af){const _0x316643=_0x3febde;return!!_0xb346af&&Boolean(_0x51155c(_0xb346af)&&_0x43b44b(_0xb346af)[_0x316643(0x1cd)](/removed[\s*-]data-id="[^"]+"/));}[_0x3febde(0x1e7)](_0x46a7e4){const _0x2d84f6=_0x3febde;let _0xf655da=_0x46a7e4[_0x2d84f6(0x1ec)];for(;_0xf655da;){if(_0x4e3db5(_0xf655da,_0x2d84f6(0x1c8)))return!0x0;_0xf655da=_0xf655da[_0x2d84f6(0x1ec)];}return!0x1;}[_0x3febde(0x1ed)](_0x352128){const _0x4b9416=_0x3febde;return Boolean(_0x51155c(_0x352128)&&_0x43b44b(_0x352128)[_0x4b9416(0x1cd)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x2755(){const _0x2211a7=['replace','51872HgWxGv','2401446QEIpJy','1185slPpzZ','231mWCQyp','14384WlqYTp','</dummy>','60071ytobAx','parseAndNormalizeHTML','2368SdfDxC','children','_parseHTML','13623468hLKKkB','convertMarkdownToHTML','<dummy>','_m2html','540lbyAHB','7sFEHZi','135rItIOP','601874fqqAZm','parse'];_0x2755=function(){return _0x2211a7;};return _0x2755();}const _0x138970=_0x26ba;(function(_0x46b2fd,_0x35e905){const _0x344660=_0x26ba,_0x12000c=_0x46b2fd();while(!![]){try{const _0x40022d=-parseInt(_0x344660(0x19c))/0x1+parseInt(_0x344660(0x192))/0x2*(-parseInt(_0x344660(0x1a2))/0x3)+-parseInt(_0x344660(0x1a3))/0x4*(-parseInt(_0x344660(0x1a1))/0x5)+-parseInt(_0x344660(0x1a0))/0x6*(parseInt(_0x344660(0x19a))/0x7)+-parseInt(_0x344660(0x19f))/0x8*(parseInt(_0x344660(0x19b))/0x9)+parseInt(_0x344660(0x199))/0xa*(-parseInt(_0x344660(0x190))/0xb)+parseInt(_0x344660(0x195))/0xc;if(_0x40022d===_0x35e905)break;else _0x12000c['push'](_0x12000c['shift']());}catch(_0x5927c0){_0x12000c['push'](_0x12000c['shift']());}}}(_0x2755,0x7a958));import{ObservableMixin as _0x3a59bd}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x10b906}from'@ckeditor/ckeditor5-markdown-gfm';function _0x26ba(_0x213fd4,_0x424791){const _0x2755f5=_0x2755();return _0x26ba=function(_0x26bab3,_0x257a86){_0x26bab3=_0x26bab3-0x18f;let _0x344423=_0x2755f5[_0x26bab3];return _0x344423;},_0x26ba(_0x213fd4,_0x424791);}import{parse as _0x4fedee}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3a59bd(){[_0x138970(0x198)];constructor(){const _0x1a0933=_0x138970;super(),this[_0x1a0933(0x198)]=new _0x10b906();}[_0x138970(0x196)](_0x38c2f7){const _0x3a12c2=_0x138970,_0x560384=this[_0x3a12c2(0x198)][_0x3a12c2(0x19d)](_0x38c2f7);return this[_0x3a12c2(0x191)](_0x560384);}[_0x138970(0x191)](_0x22c0ce){const _0x3ca16e=_0x138970;return this[_0x3ca16e(0x194)](_0x22c0ce);}[_0x138970(0x194)](_0x5f3a73){const _0x27231c=_0x138970,_0x253e09=_0x5f3a73[_0x27231c(0x19e)](/^\t+/gm,'\x20')[_0x27231c(0x19e)](/\n*/g,'')[_0x27231c(0x19e)](/\s+/g,'\x20')[_0x27231c(0x19e)](/<[^>]*?$/g,''),_0x236d0c=_0x4fedee(_0x27231c(0x197)+_0x253e09+_0x27231c(0x18f));return _0x236d0c[_0x27231c(0x193)]=_0x236d0c[_0x27231c(0x193)][0x0][_0x27231c(0x193)],_0x236d0c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2f5e(_0x394d05,_0x2c4a2a){var _0x269d39=_0x269d();return _0x2f5e=function(_0x2f5eca,_0x4422d7){_0x2f5eca=_0x2f5eca-0x11c;var _0x4a739a=_0x269d39[_0x2f5eca];return _0x4a739a;},_0x2f5e(_0x394d05,_0x2c4a2a);}(function(_0x1e94bc,_0x5db1e7){var _0x29faee=_0x2f5e,_0x31cf63=_0x1e94bc();while(!![]){try{var _0x487f2e=parseInt(_0x29faee(0x11c))/0x1+-parseInt(_0x29faee(0x123))/0x2*(parseInt(_0x29faee(0x120))/0x3)+parseInt(_0x29faee(0x11d))/0x4*(parseInt(_0x29faee(0x121))/0x5)+-parseInt(_0x29faee(0x11e))/0x6*(parseInt(_0x29faee(0x12b))/0x7)+-parseInt(_0x29faee(0x126))/0x8+-parseInt(_0x29faee(0x129))/0x9*(-parseInt(_0x29faee(0x124))/0xa)+parseInt(_0x29faee(0x127))/0xb;if(_0x487f2e===_0x5db1e7)break;else _0x31cf63['push'](_0x31cf63['shift']());}catch(_0x94f6a0){_0x31cf63['push'](_0x31cf63['shift']());}}}(_0x269d,0xd5923));function _0x269d(){var _0x1d63a7=['9397000ldLPga','18888925XwdGaO','AI_DISCLAIMER_TEXT','75177cNmUyx','setTemplate','1216131DwJmFq','1561047kJaneZ','4gjiKEz','6ozeDZe','ck-ai-disclaimer','27nsPxrj','1757260Rmnxzt','div','379386FClvXe','360GcHmIe','ck-ai-disclaimer__content'];_0x269d=function(){return _0x1d63a7;};return _0x269d();}import{View as _0x26402f}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e47ba}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x26402f{constructor(_0x3c9481){var _0x3dc3c7=_0x2f5e;super(_0x3c9481),this[_0x3dc3c7(0x12a)]({'tag':_0x3dc3c7(0x122),'attributes':{'class':['ck',_0x3dc3c7(0x11f)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3dc3c7(0x125)]},'children':[{'text':_0x5e47ba(_0x3c9481,_0x3dc3c7(0x128))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x15c4(){const _0x294b6c=['ck-ai-skeleton__item','21xbvlLU','ck-ai-skeleton','150px','24px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','map','width:\x20','div','center',';\x20height:\x20','315980aqwwvB','72GirmSz','right','100%','left','84734rSPfxI','287772QmSNpC','height','class','88px','265850RNmaRS','4hRbfgN','250px','fill','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','1072449zhKwfI','128px','8rMBZoD','44px','tag','attributes','40px','width','6fOECNY','940bRdiHL','_createSkeletonItems','328084hxwWJw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','72px','140px','align','setTemplate','22286KfLapT'];_0x15c4=function(){return _0x294b6c;};return _0x15c4();}const _0x5e5325=_0x2293;(function(_0x215455,_0x537120){const _0x24d866=_0x2293,_0x2a05bc=_0x215455();while(!![]){try{const _0x33f65b=parseInt(_0x24d866(0xc8))/0x1*(-parseInt(_0x24d866(0xce))/0x2)+parseInt(_0x24d866(0xda))/0x3*(parseInt(_0x24d866(0xdd))/0x4)+parseInt(_0x24d866(0xc3))/0x5+-parseInt(_0x24d866(0xc9))/0x6*(parseInt(_0x24d866(0xe5))/0x7)+parseInt(_0x24d866(0xd4))/0x8*(parseInt(_0x24d866(0xd2))/0x9)+parseInt(_0x24d866(0xdb))/0xa*(parseInt(_0x24d866(0xe3))/0xb)+parseInt(_0x24d866(0xc4))/0xc*(-parseInt(_0x24d866(0xcd))/0xd);if(_0x33f65b===_0x537120)break;else _0x2a05bc['push'](_0x2a05bc['shift']());}catch(_0xebbc8c){_0x2a05bc['push'](_0x2a05bc['shift']());}}}(_0x15c4,0x189b5));import{View as _0x4d1bcc}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x4d1bcc{constructor(_0x5b13ce,_0x1e525f){const _0x4028c0=_0x2293;super(_0x5b13ce),this[_0x4028c0(0xe2)]({'tag':_0x4028c0(0xc0),'attributes':{'class':['ck',_0x4028c0(0xe6)]},'children':this[_0x4028c0(0xdc)](_0x1e525f)});}[_0x5e5325(0xdc)](_0x4776aa){const _0x335ae7=_0x5e5325,_0x5861e0=['ck',_0x335ae7(0xe4)];return _0x4776aa[_0x335ae7(0xea)](_0x1c251e=>{const _0x4f71c3=_0x335ae7;let _0x7c41cc='';switch(_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xe1)]){case _0x4f71c3(0xc5):_0x7c41cc=_0x4f71c3(0xde);break;case _0x4f71c3(0xc1):_0x7c41cc=_0x4f71c3(0xe9);break;case _0x4f71c3(0xc7):_0x7c41cc=_0x4f71c3(0xd1);}return{'tag':_0x1c251e[_0x4f71c3(0xd6)],'attributes':{'class':[..._0x5861e0,_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xcb)]?_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xcb)]:''],'style':_0x4f71c3(0xeb)+_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xd9)]+_0x4f71c3(0xc2)+_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xca)]+';'+_0x7c41cc}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xdf),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xcf),'height':_0x5e5325(0xd8),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xcc),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xe7),'height':_0x5e5325(0xd8),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xe0),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xcf),'height':_0x5e5325(0xd8),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xcc),'align':_0x5e5325(0xc5)}}],'aiHistory':$i(0x5,_0x5e5325(0xc6),_0x5e5325(0xd5),_0x5e5325(0xc5)),'aiChatResources':$i(0x8,_0x5e5325(0xc6),_0x5e5325(0xe8),_0x5e5325(0xc5)),'aiReviewChecks':[{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xd3),'height':_0x5e5325(0xe8),'align':_0x5e5325(0xc7)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xe8),'align':_0x5e5325(0xc7)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xd3),'height':_0x5e5325(0xe8),'align':_0x5e5325(0xc7)}}]};function _0x2293(_0x4f79b2,_0x2e2a33){const _0x15c4e0=_0x15c4();return _0x2293=function(_0x22932d,_0x22a0a3){_0x22932d=_0x22932d-0xc0;let _0x4a982e=_0x15c4e0[_0x22932d];return _0x4a982e;},_0x2293(_0x4f79b2,_0x2e2a33);}function $i(_0x268314,_0x193b02,_0x3187e0,_0x34e90a){const _0x312b32=_0x5e5325;return new Array(_0x268314)[_0x312b32(0xd0)](null)[_0x312b32(0xea)](()=>({'tag':_0x312b32(0xc0),'attributes':{'width':_0x193b02,'height':_0x3187e0,'align':_0x34e90a}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3014(_0x437634,_0x1601c7){const _0x4bba91=_0x4bba();return _0x3014=function(_0x301426,_0x122972){_0x301426=_0x301426-0x17b;let _0x54f5ff=_0x4bba91[_0x301426];return _0x54f5ff;},_0x3014(_0x437634,_0x1601c7);}(function(_0x18ad5a,_0x39de81){const _0x14b5a6=_0x3014,_0x384197=_0x18ad5a();while(!![]){try{const _0x5846f4=parseInt(_0x14b5a6(0x187))/0x1*(parseInt(_0x14b5a6(0x182))/0x2)+-parseInt(_0x14b5a6(0x185))/0x3+-parseInt(_0x14b5a6(0x17d))/0x4+parseInt(_0x14b5a6(0x186))/0x5+parseInt(_0x14b5a6(0x17f))/0x6+parseInt(_0x14b5a6(0x17e))/0x7+-parseInt(_0x14b5a6(0x184))/0x8*(parseInt(_0x14b5a6(0x17b))/0x9);if(_0x5846f4===_0x39de81)break;else _0x384197['push'](_0x384197['shift']());}catch(_0x51481e){_0x384197['push'](_0x384197['shift']());}}}(_0x4bba,0xd2412));import{SpinnerView as _0x2df626}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x2df626{constructor(_0x2d7cc2=void 0x0){const _0x3e3363=_0x3014;super();const _0x53e47c=_0x2d7cc2?_0x3e3363(0x183)+_0x2d7cc2:'';this[_0x3e3363(0x181)]({'tag':_0x3e3363(0x17c),'attributes':{'class':[_0x3e3363(0x180),_0x53e47c]}});}}function _0x4bba(){const _0x3210f9=['16ihGovS','ck-ai-spinner_','4376EVsNsP','767766CrlhPt','3962335YCqQNW','50923eaQbIJ','2934gwGETg','span','3436636gXKngH','5580785BZVxur','944994TtSXmj','ck-ai-spinner','extendTemplate'];_0x4bba=function(){return _0x3210f9;};return _0x4bba();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x202ed2=_0x14dc;(function(_0x2b872c,_0xa339){const _0x1669c5=_0x14dc,_0x338aff=_0x2b872c();while(!![]){try{const _0x588c7f=-parseInt(_0x1669c5(0x1ca))/0x1*(-parseInt(_0x1669c5(0x1c5))/0x2)+parseInt(_0x1669c5(0x1d4))/0x3+-parseInt(_0x1669c5(0x1e9))/0x4+-parseInt(_0x1669c5(0x1ec))/0x5+-parseInt(_0x1669c5(0x1df))/0x6+parseInt(_0x1669c5(0x1ed))/0x7*(-parseInt(_0x1669c5(0x1ef))/0x8)+parseInt(_0x1669c5(0x1ce))/0x9;if(_0x588c7f===_0xa339)break;else _0x338aff['push'](_0x338aff['shift']());}catch(_0x3b7e67){_0x338aff['push'](_0x338aff['shift']());}}}(_0x5a36,0xedf13));import{ButtonView as _0x4a6d7f,IconView as _0x5559e9,ToolbarView as _0xa56694}from'ckeditor5/src/ui.js';function _0x14dc(_0x5b96ac,_0x12f506){const _0x5a3621=_0x5a36();return _0x14dc=function(_0x14dc09,_0x4850e7){_0x14dc09=_0x14dc09-0x1bf;let _0x754845=_0x5a3621[_0x14dc09];return _0x754845;},_0x14dc(_0x5b96ac,_0x12f506);}function _0x5a36(){const _0x40b9bc=['AI_SUGGESTION_BUTTON_SHOW_CHANGES','extendTemplate','isEnabled','ck-ai-mini-toolbar-copy-button','ck-ai-mini-toolbar-copy-button__check-mark','2KuZRRP','addMany','fire','AI_MINI_TOOLBAR_DISLIKE','_setupShowChangesButton','582320OZYrHO','ck-ai-mini-toolbar\x20ck-hidden','copyButton','class','7066179DPgQro','execute','showCopy','showDislike','toggleShowChanges','length','5028228yjtYzD','likeButton','customView','set','AI_MINI_TOOLBAR_COPY','showChanges','children','AI_MINI_TOOLBAR_LIKE','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','add','_setupRatingButtons','363732rRGCIX','_setupCopyButton','dislike','isLoading','bind','like','showLike','ck-ai-mini-toolbar','_config','locale','1831804BYWMFT','isOn','items','1957245rdnkWH','63tMiCYW','showChangesButton','1030128wCaqWX','dislikeButton','full'];_0x5a36=function(){return _0x40b9bc;};return _0x5a36();}import{IconCheck as _0x5346a5,IconCopy as _0x43892b,IconShowChangesOff as _0x37b546,IconShowChangesOn as _0x1a6677,IconThumbDown as _0x1cedde,IconThumbUp as _0x26bd37}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x26738f}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0xa56694{[_0x202ed2(0x1cc)];[_0x202ed2(0x1d5)];[_0x202ed2(0x1f0)];[_0x202ed2(0x1ee)];[_0x202ed2(0x1e7)];constructor(_0x23d8c0,_0x1a05e2={},_0x2f36db){const _0xb4bf3a=_0x202ed2;super(_0x23d8c0),this[_0xb4bf3a(0x1d7)](_0xb4bf3a(0x1e2),!0x1),this[_0xb4bf3a(0x1e7)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1a05e2};const _0x31e305=!(this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d0)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d9)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1e5)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d1)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d6)]?.[_0xb4bf3a(0x1d3)]);this[_0xb4bf3a(0x1cd)]=_0x31e305?_0xb4bf3a(0x1cb):_0xb4bf3a(0x1e6),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d0)]&&(this[_0xb4bf3a(0x1e0)](),this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1cc)])),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d9)]&&(this[_0xb4bf3a(0x1c9)](_0x2f36db),this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1ee)])),this[_0xb4bf3a(0x1de)](),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1e5)]&&this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1d5)]),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d1)]&&this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1f0)]),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d6)]&&this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1c6)](this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d6)]);}[_0x202ed2(0x1de)](){const _0x464dd9=_0x202ed2;this[_0x464dd9(0x1d5)]=new _0x4a6d7f(this[_0x464dd9(0x1e8)]),this[_0x464dd9(0x1d5)][_0x464dd9(0x1d7)]({'icon':_0x26bd37,'label':_0x26738f(this[_0x464dd9(0x1e8)],_0x464dd9(0x1db)),'tooltip':!0x0}),this[_0x464dd9(0x1d5)][_0x464dd9(0x1e3)](_0x464dd9(0x1c2))['to'](this,_0x464dd9(0x1e2),_0x5b1a68=>!_0x5b1a68),this[_0x464dd9(0x1d5)]['on'](_0x464dd9(0x1cf),()=>{const _0xc96854=_0x464dd9;this[_0xc96854(0x1c7)](_0xc96854(0x1e4));}),this[_0x464dd9(0x1f0)]=new _0x4a6d7f(this[_0x464dd9(0x1e8)]),this[_0x464dd9(0x1f0)][_0x464dd9(0x1d7)]({'icon':_0x1cedde,'label':_0x26738f(this[_0x464dd9(0x1e8)],_0x464dd9(0x1c8)),'tooltip':!0x0}),this[_0x464dd9(0x1f0)][_0x464dd9(0x1e3)](_0x464dd9(0x1c2))['to'](this,_0x464dd9(0x1e2),_0x5c5336=>!_0x5c5336),this[_0x464dd9(0x1f0)]['on'](_0x464dd9(0x1cf),()=>{const _0x47f95b=_0x464dd9;this[_0x47f95b(0x1c7)](_0x47f95b(0x1e1));});}[_0x202ed2(0x1e0)](){const _0x32bab3=_0x202ed2;this[_0x32bab3(0x1cc)]=new _0x4a6d7f(this[_0x32bab3(0x1e8)]),this[_0x32bab3(0x1cc)][_0x32bab3(0x1d7)]({'icon':_0x43892b,'label':_0x26738f(this[_0x32bab3(0x1e8)],_0x32bab3(0x1d8)),'class':_0x32bab3(0x1c3),'tooltip':!0x0}),this[_0x32bab3(0x1cc)][_0x32bab3(0x1e3)](_0x32bab3(0x1c2))['to'](this,_0x32bab3(0x1e2),_0x447636=>!_0x447636);const _0x1c8266=new _0x5559e9();_0x1c8266[_0x32bab3(0x1d7)]({'content':_0x5346a5}),_0x1c8266[_0x32bab3(0x1c1)]({'attributes':{'class':[_0x32bab3(0x1c4)]}}),this[_0x32bab3(0x1cc)]['on'](_0x32bab3(0x1cf),()=>{const _0x504d77=_0x32bab3;this[_0x504d77(0x1cc)][_0x504d77(0x1cd)]=_0x504d77(0x1dc),setTimeout(()=>{const _0x4261a8=_0x504d77;this[_0x4261a8(0x1cc)][_0x4261a8(0x1cd)]=_0x4261a8(0x1c3);},0x7d0);}),this[_0x32bab3(0x1cc)][_0x32bab3(0x1da)][_0x32bab3(0x1dd)](_0x1c8266);}[_0x202ed2(0x1c9)](_0x51335c){const _0x41a720=_0x202ed2;this[_0x41a720(0x1ee)]=new _0x4a6d7f(this[_0x41a720(0x1e8)]),this[_0x41a720(0x1ee)][_0x41a720(0x1d7)]({'icon':_0x37b546,'label':_0x26738f(this[_0x41a720(0x1e8)],_0x41a720(0x1c0)),'withText':_0x41a720(0x1bf)==this[_0x41a720(0x1e7)][_0x41a720(0x1d9)],'isOn':_0x51335c}),this[_0x41a720(0x1ee)][_0x41a720(0x1e3)](_0x41a720(0x1c2))['to'](this,_0x41a720(0x1e2),_0x503ca4=>!_0x503ca4),this[_0x41a720(0x1ee)]['on'](_0x41a720(0x1cf),()=>{const _0x4a51cf=_0x41a720,_0x7c65f5=!this[_0x4a51cf(0x1ee)][_0x4a51cf(0x1ea)];this[_0x4a51cf(0x1ee)][_0x4a51cf(0x1d7)]({'isOn':_0x7c65f5,'icon':_0x7c65f5?_0x1a6677:_0x37b546}),this[_0x4a51cf(0x1c7)](_0x4a51cf(0x1d2),_0x7c65f5);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x450bc5=_0x23f5;(function(_0x5b4846,_0x3f990a){const _0x45d26f=_0x23f5,_0x2ef9a1=_0x5b4846();while(!![]){try{const _0x1c55d2=-parseInt(_0x45d26f(0x1e4))/0x1*(-parseInt(_0x45d26f(0x1f5))/0x2)+-parseInt(_0x45d26f(0x1ec))/0x3+parseInt(_0x45d26f(0x1d7))/0x4+-parseInt(_0x45d26f(0x204))/0x5*(parseInt(_0x45d26f(0x20b))/0x6)+-parseInt(_0x45d26f(0x1e7))/0x7+parseInt(_0x45d26f(0x1e3))/0x8*(parseInt(_0x45d26f(0x1e0))/0x9)+parseInt(_0x45d26f(0x1ee))/0xa*(parseInt(_0x45d26f(0x20d))/0xb);if(_0x1c55d2===_0x3f990a)break;else _0x2ef9a1['push'](_0x2ef9a1['shift']());}catch(_0x5cbcbc){_0x2ef9a1['push'](_0x2ef9a1['shift']());}}}(_0x30e1,0xb6ee4));import{View as _0x4b7c09}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x228684}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x14273d}from'../../utils/eventnames.js';import{PromiseQueue as _0x20e9b2}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x48e6dd}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x32a418}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x4b7c09{[_0x450bc5(0x1d5)];[_0x450bc5(0x1f7)];[_0x450bc5(0x1f4)];[_0x450bc5(0x203)];[_0x450bc5(0x1f6)];constructor(_0xc0f813,{areActionsDisabled:_0x4b0dee,showUnchangedParts:_0x12e39b}){const _0x42332e=_0x450bc5;super(_0xc0f813),this[_0x42332e(0x1f7)]=_0x4b0dee,this[_0x42332e(0x1f4)]=_0x12e39b,this[_0x42332e(0x1dd)](_0x42332e(0x205),!0x1),this[_0x42332e(0x1d5)]=this[_0x42332e(0x1fa)](),this[_0x42332e(0x203)]=new _0x20e9b2(),this[_0x42332e(0x1f6)]=new _0x48e6dd({'id':_0x42332e(0x1ef),'initialContent':_0x32a418(_0xc0f813,_0x42332e(0x200)),'level':_0x42332e(0x1d8)}),this[_0x42332e(0x1f6)][_0x42332e(0x208)]=!0x1,this[_0x42332e(0x1f1)]({'tag':_0x42332e(0x1db),'attributes':{'class':['ck',_0x42332e(0x1f8),_0x42332e(0x1da),_0x42332e(0x206)]},'children':[{'tag':_0x42332e(0x1db),'attributes':{'class':['ck',_0x42332e(0x1dc)]},'children':this[_0x42332e(0x1d5)]},this[_0x42332e(0x1f6)]]});}get[_0x450bc5(0x20a)](){const _0x323828=_0x450bc5;return this[_0x323828(0x1d5)][_0x323828(0x1d9)];}async[_0x450bc5(0x207)]({parts:_0x68de9a,renderingStrategy:_0x1a8ad4,abortSignal:_0x35be79}){const _0x19b2ec=_0x450bc5;for(const _0x22cf27 of _0x68de9a)this[_0x19b2ec(0x203)][_0x19b2ec(0x1e8)](async _0x3cf26d=>{const _0x5f4f26=_0x19b2ec;let _0x416b80=this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1fd)](_0x1df72f=>_0x1df72f[_0x5f4f26(0x1fb)][_0x5f4f26(0x1ed)]==_0x22cf27[_0x5f4f26(0x1ed)]);_0x416b80||(_0x416b80=new _0x228684(this[_0x5f4f26(0x202)],{'part':_0x22cf27,'areActionsDisabled':this[_0x5f4f26(0x1f7)]}),_0x416b80[_0x5f4f26(0x20c)](..._0x14273d)['to'](this),this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1f2)](_0x416b80),this[_0x5f4f26(0x205)]=!0x0),0x2===this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1d9)]&&this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1f3)][_0x5f4f26(0x1f9)](!0x0),_0x416b80[_0x5f4f26(0x1f9)](this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1d9)]>0x1),await _0x416b80[_0x5f4f26(0x1eb)]({'part':_0x22cf27,'renderingStrategy':_0x1a8ad4,'showUnchangedParts':this[_0x5f4f26(0x1f4)],'abortSignal':_0x3cf26d});});return _0x35be79?.[_0x19b2ec(0x1e9)](_0x19b2ec(0x1e5),()=>{const _0x26a145=_0x19b2ec;this[_0x26a145(0x203)][_0x26a145(0x1e5)]();}),this[_0x19b2ec(0x203)][_0x19b2ec(0x1f0)];}[_0x450bc5(0x1fc)](_0x4904ec,_0x11a4cb){const _0x127846=_0x450bc5;this[_0x127846(0x1d5)][_0x127846(0x1e1)](_0x4904ec)[_0x127846(0x1e2)]=_0x11a4cb,this[_0x127846(0x205)]=_0x127846(0x201)==_0x11a4cb||Array[_0x127846(0x1fe)](this[_0x127846(0x1d5)])[_0x127846(0x209)](_0x1f2c6b=>_0x127846(0x201)==_0x1f2c6b[_0x127846(0x1e2)]);}[_0x450bc5(0x1e6)](_0x5b9aa0){const _0x4b837b=_0x450bc5;return this[_0x4b837b(0x1d5)][_0x4b837b(0x1e1)](_0x5b9aa0);}[_0x450bc5(0x1ff)](){const _0x14ea4a=_0x450bc5;if(!this[_0x14ea4a(0x1f4)]){const _0x3136e0=!this[_0x14ea4a(0x1d5)][_0x14ea4a(0x1fd)](_0x3c7bfe=>_0x3c7bfe[_0x14ea4a(0x1fb)][_0x14ea4a(0x1ea)]),_0x512a2b=!!this[_0x14ea4a(0x1d5)][_0x14ea4a(0x1fd)](_0x443085=>!_0x443085[_0x14ea4a(0x1fb)][_0x14ea4a(0x1ea)]);this[_0x14ea4a(0x1f6)][_0x14ea4a(0x208)]=_0x512a2b,_0x3136e0?this[_0x14ea4a(0x1f6)][_0x14ea4a(0x1d6)](_0x32a418(this[_0x14ea4a(0x202)],_0x14ea4a(0x1de))):this[_0x14ea4a(0x1f6)][_0x14ea4a(0x1d6)](_0x32a418(this[_0x14ea4a(0x202)],_0x14ea4a(0x200)));}}get[_0x450bc5(0x1df)](){const _0x39cb42=_0x450bc5;return!!this[_0x39cb42(0x1d5)][_0x39cb42(0x1fd)](_0x50166b=>_0x50166b[_0x39cb42(0x1fb)][_0x39cb42(0x1ea)]);}}function _0x23f5(_0x11b08c,_0x23b7b8){const _0x30e1a0=_0x30e1();return _0x23f5=function(_0x23f5bf,_0x20ae41){_0x23f5bf=_0x23f5bf-0x1d5;let _0x25e495=_0x30e1a0[_0x23f5bf];return _0x25e495;},_0x23f5(_0x11b08c,_0x23b7b8);}function _0x30e1(){const _0x2396a2=['get','state','42504DCbuMz','381741jXJMQT','abort','getPartView','8986019SrQnEf','enqueue','addEventListener','hasChanges','updateContent','83175ewaXZN','index','9703180choQUN','empty-parts-warning','queueEmptyPromise','setTemplate','add','first','_showUnchangedParts','6tQGlPI','_emptyPartsWarningView','_areActionsDisabled','ck-reset_all-excluded','toggleHeader','createCollection','partDefinition','updatePartState','find','from','markAsDone','AI_SUGGESTION_EMPTY_PART_WARNING','pending','locale','_updateContentPartsPromiseQueue','5OhMGcl','hasPendingParts','ck-content','updateContentParts','isVisible','some','partsCount','8101812jnJNhQ','delegate','11YLgCeG','_children','setContent','4055592LZXbiN','warning','length','ck-ai-suggestion__body','div','ck-ai-suggestion__body__content-parts','set','AI_SUGGESTION_NO_PARTS_WARNING','hasNonEmptyParts','477KOhIuH'];_0x30e1=function(){return _0x2396a2;};return _0x30e1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12e091=_0x5ec5;(function(_0x313481,_0x23c9d6){const _0x141d20=_0x5ec5,_0x2f22a3=_0x313481();while(!![]){try{const _0x30c60a=parseInt(_0x141d20(0xd6))/0x1+-parseInt(_0x141d20(0xc7))/0x2*(parseInt(_0x141d20(0x96))/0x3)+-parseInt(_0x141d20(0xb5))/0x4*(parseInt(_0x141d20(0xaf))/0x5)+-parseInt(_0x141d20(0xb9))/0x6*(parseInt(_0x141d20(0xb7))/0x7)+parseInt(_0x141d20(0xca))/0x8+-parseInt(_0x141d20(0xcc))/0x9*(parseInt(_0x141d20(0xbe))/0xa)+-parseInt(_0x141d20(0xc3))/0xb*(-parseInt(_0x141d20(0xcd))/0xc);if(_0x30c60a===_0x23c9d6)break;else _0x2f22a3['push'](_0x2f22a3['shift']());}catch(_0x3ae3af){_0x2f22a3['push'](_0x2f22a3['shift']());}}}(_0x1e0c,0xcf4ba));import{IconWeb as _0x2769a4}from'@ckeditor/ckeditor5-icons';import{View as _0x1faaef,ButtonView as _0x3d7785,IconView as _0x340cbe}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x4caa3f}from'./aiminitoolbarview.js';function _0x1e0c(){const _0x5b9abc=['sourcesView','children','fire','title','url','add','miniToolbarView','delegate','1579082dxSOVe','bodyView','ck-ai-web-sources__header','hasNonEmptyParts','icon','extendTemplate','173514HMxBFR','ck-ai-web-sources','markAsDone','ck-ai-web-source__image','ck-ai-suggestion__loader','isVisible','span','div','createCollection','AI_CHAT_SOURCES_HEADER','toggleSuggestionDisplayMode','hideLoader','bindTemplate','map','addMany','ck-hidden','isLoading','setLoading','updateContentParts','AI_CHAT_IS_WRITING','content','isShowChangesToggleVisible','img','clearLoading','setTemplate','39865MIGzqI','set','favicon','ck-ai-suggestion__container','updateSources','updateContent','232CtmNOg','_blank','246953GOGcZi','ck-rounded-corners','132lkxiSr','isOn','small','ck-ai-suggestion__loader-text','toggleShowChanges','2541170YkcJYy','_createLoaderView','open','bind','showLoader','14974795gzsrkf','isLoaderVisible','ck\x20ck-ai-web-source','headerView','20ibvPAw','loaderView','areChangesVisible','5936600RFJunF','locale','36CruHnB','12IYeroa'];_0x1e0c=function(){return _0x5b9abc;};return _0x1e0c();}import{AISuggestionHeaderView as _0xd0aa34}from'./aisuggestionheaderview.js';function _0x5ec5(_0x501c77,_0x23b441){const _0x1e0c47=_0x1e0c();return _0x5ec5=function(_0x5ec5aa,_0x2047c2){_0x5ec5aa=_0x5ec5aa-0x92;let _0x5477b0=_0x1e0c47[_0x5ec5aa];return _0x5477b0;},_0x5ec5(_0x501c77,_0x23b441);}import{AISuggestionBodyView as _0x4935ed}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xfbb5f6}from'../../utils/eventnames.js';import{AISpinnerView as _0x364e39}from'../aispinner.js';import{getTranslation as _0x1a9844}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x1faaef{[_0x12e091(0xd7)];[_0x12e091(0xcf)];[_0x12e091(0xc6)];[_0x12e091(0xd4)];[_0x12e091(0xc8)];[_0x12e091(0xce)];constructor(_0x19206d,{showDiff:_0x51cae5,areActionsDisabled:_0x123860,miniToolbarConfig:_0x53b3c4,hideHeader:_0x2f527a,showLoader:_0x54b76d,showUnchangedParts:_0x14eb55}){const _0x150f7d=_0x12e091;super(_0x19206d),this[_0x150f7d(0xb0)](_0x150f7d(0xc9),!0x1),this[_0x150f7d(0xb0)](_0x150f7d(0xc4),!!_0x54b76d),this[_0x150f7d(0xb0)](_0x150f7d(0xa6),!0x1),this[_0x150f7d(0xcf)]=this[_0x150f7d(0x9e)](),_0x2f527a||(this[_0x150f7d(0xc6)]=new _0xd0aa34(_0x19206d,{'showDiff':_0x51cae5}),this[_0x150f7d(0xc6)]['on'](_0x150f7d(0xbd),(_0x4fade1,_0x5acf27)=>{const _0xdc42a1=_0x150f7d;this[_0xdc42a1(0xc9)]=_0x5acf27[_0xdc42a1(0xba)],this[_0xdc42a1(0xd0)](_0xdc42a1(0xa0),{'showDiff':_0x5acf27[_0xdc42a1(0xba)]});}),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xc6)])),this[_0x150f7d(0xd7)]=new _0x4935ed(_0x19206d,{'areActionsDisabled':_0x123860,'showUnchangedParts':!!_0x14eb55}),this[_0x150f7d(0xd7)][_0x150f7d(0xd5)](..._0xfbb5f6)['to'](this),this[_0x150f7d(0xd7)][_0x150f7d(0x95)]({'attributes':{'class':[this[_0x150f7d(0xa2)]['if'](_0x150f7d(0xc4),_0x150f7d(0xa5))]}}),this[_0x150f7d(0xd4)]=new _0x4caa3f(_0x19206d,_0x53b3c4,_0x51cae5),this[_0x150f7d(0xd4)][_0x150f7d(0xd5)](..._0xfbb5f6)['to'](this),this[_0x150f7d(0xd4)]['on'](_0x150f7d(0xbd),(_0x252c06,_0x6898a6)=>{const _0x378931=_0x150f7d;this[_0x378931(0xc9)]=_0x6898a6,this[_0x378931(0xd0)](_0x378931(0xa0),{'showDiff':_0x6898a6});}),this[_0x150f7d(0xd4)][_0x150f7d(0xc1)](_0x150f7d(0xa6))['to'](this),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xd7)]),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xd4)]),this[_0x150f7d(0xce)]=new AIWebSourcesView(this[_0x150f7d(0xcb)]),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xce)]),_0x54b76d&&(this[_0x150f7d(0xc8)]=this[_0x150f7d(0xbf)](),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xc8)])),this[_0x150f7d(0xae)]({'tag':_0x150f7d(0x9d),'attributes':{'class':['ck',_0x150f7d(0xb2),_0x150f7d(0xb8)]},'children':this[_0x150f7d(0xcf)]});}async[_0x12e091(0xb4)](_0x2d505c){const _0x1b7e3b=_0x12e091;await this[_0x1b7e3b(0xd7)][_0x1b7e3b(0xa8)](_0x2d505c);}[_0x12e091(0xb3)](_0x5ac10b){const _0x26ff11=_0x12e091;this[_0x26ff11(0xce)][_0x26ff11(0xcf)][_0x26ff11(0xa4)](_0x5ac10b[_0x26ff11(0xa3)](_0x2c04dd=>new AIWebSourceView(this[_0x26ff11(0xcb)],_0x2c04dd))),this[_0x26ff11(0xce)][_0x26ff11(0x9b)]=!0x0;}[_0x12e091(0xc2)](){const _0x1c3b75=_0x12e091;this[_0x1c3b75(0xc8)]&&(this[_0x1c3b75(0xc4)]=!0x0);}[_0x12e091(0xa1)](){const _0x103fa0=_0x12e091;this[_0x103fa0(0xc8)]&&(this[_0x103fa0(0xc4)]=!0x1);}[_0x12e091(0x98)](){const _0x7f10f=_0x12e091;this[_0x7f10f(0xd7)][_0x7f10f(0x98)](),this[_0x7f10f(0xc6)]&&(this[_0x7f10f(0xc6)][_0x7f10f(0xab)]=this[_0x7f10f(0xd7)][_0x7f10f(0x93)]);}[_0x12e091(0xa7)](){const _0x29bf12=_0x12e091;this[_0x29bf12(0xa6)]=!0x0;}[_0x12e091(0xad)](){const _0x2a89ab=_0x12e091;this[_0x2a89ab(0xa6)]=!0x1;}[_0x12e091(0xbf)](){const _0x2e9205=_0x12e091,_0x466f0b=new _0x1faaef(this[_0x2e9205(0xcb)]),_0x2c835e=new _0x364e39(_0x2e9205(0xbb));_0x2c835e[_0x2e9205(0x9b)]=!0x0;const _0x215b16=new _0x1faaef(this[_0x2e9205(0xcb)]);return _0x215b16[_0x2e9205(0xae)]({'tag':_0x2e9205(0x9c),'attributes':{'class':['ck',_0x2e9205(0xbc)]},'children':[_0x1a9844(this[_0x2e9205(0xcb)],_0x2e9205(0xa9))]}),_0x466f0b[_0x2e9205(0xae)]({'tag':_0x2e9205(0x9d),'attributes':{'class':['ck',_0x2e9205(0x9a),this[_0x2e9205(0xa2)]['if'](_0x2e9205(0xc4),_0x2e9205(0xa5),_0x542f63=>!_0x542f63)]},'children':[_0x2c835e,_0x215b16]}),_0x466f0b;}}export class AIWebSourcesView extends _0x1faaef{[_0x12e091(0xcf)];constructor(_0x1e445c){const _0x2c077f=_0x12e091;super(_0x1e445c),this[_0x2c077f(0xcf)]=this[_0x2c077f(0x9e)](),this[_0x2c077f(0xb0)](_0x2c077f(0x9b),!0x1),this[_0x2c077f(0xae)]({'tag':_0x2c077f(0x9d),'attributes':{'class':['ck',_0x2c077f(0x97),this[_0x2c077f(0xa2)]['if'](_0x2c077f(0x9b),_0x2c077f(0xa5),_0x1c3eba=>!_0x1c3eba)]},'children':this[_0x2c077f(0xcf)]});const _0x4ea645=new _0x1faaef(this[_0x2c077f(0xcb)]),_0x11a2e0=new _0x340cbe();_0x11a2e0[_0x2c077f(0xaa)]=_0x2769a4,_0x4ea645[_0x2c077f(0xae)]({'tag':_0x2c077f(0x9d),'attributes':{'class':['ck',_0x2c077f(0x92)]},'children':[_0x11a2e0,{'tag':_0x2c077f(0x9c),'children':[{'text':_0x1a9844(this[_0x2c077f(0xcb)],_0x2c077f(0x9f))}]}]}),this[_0x2c077f(0xcf)][_0x2c077f(0xd3)](_0x4ea645);}}export class AIWebSourceView extends _0x3d7785{constructor(_0x587f14,_0x161909){const _0x33c5cc=_0x12e091;super(_0x587f14),this[_0x33c5cc(0xb0)]({'label':_0x161909[_0x33c5cc(0xd1)],'tooltip':_0x161909[_0x33c5cc(0xd1)],'class':[_0x33c5cc(0xc5)],'withText':!0x0});const _0x2ee161=this[_0x33c5cc(0xa2)];if(this[_0x33c5cc(0x95)]({'on':{'click':_0x2ee161['to'](()=>{const _0x589c86=_0x33c5cc;window[_0x589c86(0xc0)](_0x161909[_0x589c86(0xd2)],_0x589c86(0xb6));})}}),_0x161909[_0x33c5cc(0xb1)]){const _0x56b653=new _0x1faaef(_0x587f14);_0x56b653[_0x33c5cc(0xae)]({'tag':_0x33c5cc(0xac),'attributes':{'src':_0x161909[_0x33c5cc(0xb1)]||_0x2769a4,'alt':_0x161909[_0x33c5cc(0xd1)],'class':[_0x33c5cc(0x99)]}}),this[_0x33c5cc(0xcf)][_0x33c5cc(0xd3)](_0x56b653);}else this[_0x33c5cc(0xb0)](_0x33c5cc(0x94),_0x2769a4);}}
|