@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e2ab1=_0x3db2;(function(_0x5e7394,_0x417331){const _0x1d7421=_0x3db2,_0x4c6c26=_0x5e7394();while(!![]){try{const _0x4c238c=-parseInt(_0x1d7421(0x213))/0x1+-parseInt(_0x1d7421(0x229))/0x2+-parseInt(_0x1d7421(0x205))/0x3*(parseInt(_0x1d7421(0x227))/0x4)+parseInt(_0x1d7421(0x20d))/0x5+parseInt(_0x1d7421(0x1f4))/0x6+parseInt(_0x1d7421(0x20e))/0x7+parseInt(_0x1d7421(0x21f))/0x8;if(_0x4c238c===_0x417331)break;else _0x4c6c26['push'](_0x4c6c26['shift']());}catch(_0x2183db){_0x4c6c26['push'](_0x4c6c26['shift']());}}}(_0x4a31,0xc70ba));import{CKEditorError as _0x1000d7,EmitterMixin as _0x39cbed,uid as _0xe0fa91}from'ckeditor5/src/utils.js';function _0x4a31(){const _0x195339=['webSearchStarted','replyContentUpdated','data','error','text','textDelta','fire','setConversationTitle','reasoning','attributes','6593322kwyIcH','conversationTitle','stop','editor','connector','result','content','_handleToolNotificationData','isStopped','conversation-title','sources','getStream','webSearchFinished','currentRequest','sendRequest','getDocumentContext','forEach','619293hCJDEh','replies','resetWebSearchState','start','interactionStopped','ai-chat-interaction-error','done','mcp-tool-result','5220000JUHGiW','3601836EyfmZi','actionCallId','mcp-tool-notification','message-metadata','notification','672625YKvOnC','_isReasoning','_isWebSearching','interactionFinished','type','parse','_handleToolResultData','toolName','length','abort','resetReasoningState','delegate','4775000fUSbwZ','interactionDestroyed','messageId','push','reasoningStarted','web-search','source','event','4ogvoWY','reasoningFinished','3119928fjgeXq','interactionStarted','modification','currentReply','destroy','getReply','action-metadata','toolDataReceived','_finalizeInteraction','text-delta','abortController','createReply','replyCreated','appendContent','find','splice','replyChangeGroupStateUpdated','callId','interactionCreated','modification-delta','stopListening','isDestroyed'];_0x4a31=function(){return _0x195339;};return _0x4a31();}import{AIReply as _0x5e108d}from'./aireply.js';function _0x3db2(_0x191b81,_0x20a8c4){const _0x4a3151=_0x4a31();return _0x3db2=function(_0x3db25d,_0x47fbaa){_0x3db25d=_0x3db25d-0x1f4;let _0x2e88f0=_0x4a3151[_0x3db25d];return _0x2e88f0;},_0x3db2(_0x191b81,_0x20a8c4);}export const AI_MODEL_EVENT_NAMES=[_0x4e2ab1(0x23b),_0x4e2ab1(0x22a),_0x4e2ab1(0x209),_0x4e2ab1(0x216),_0x4e2ab1(0x220),_0x4e2ab1(0x235),_0x4e2ab1(0x240),_0x4e2ab1(0x239),_0x4e2ab1(0x246),_0x4e2ab1(0x23f),_0x4e2ab1(0x200),_0x4e2ab1(0x223),_0x4e2ab1(0x228),_0x4e2ab1(0x230),_0x4e2ab1(0x242)];export class AIInteraction extends _0x39cbed(){['id'];[_0x4e2ab1(0x206)]=[];[_0x4e2ab1(0x22c)];[_0x4e2ab1(0x221)];[_0x4e2ab1(0x20f)];[_0x4e2ab1(0x201)];[_0x4e2ab1(0x1f8)];[_0x4e2ab1(0x1fc)]=!0x1;[_0x4e2ab1(0x23e)]=!0x1;[_0x4e2ab1(0x1f7)];[_0x4e2ab1(0x214)]=!0x1;[_0x4e2ab1(0x215)]=!0x1;constructor({connector:_0x434231,editor:_0x4f7851}){const _0x194033=_0x4e2ab1;super(),this['id']=_0xe0fa91(),this[_0x194033(0x1f8)]=_0x434231,this[_0x194033(0x1fc)]=!0x0,this[_0x194033(0x1f7)]=_0x4f7851;}async[_0x4e2ab1(0x208)](){const _0x3c519f=_0x4e2ab1,_0x5d69cb=[];let _0x217ae8,_0x4f08c0,_0x2b9656;this[_0x3c519f(0x1fc)]=!0x1;try{this[_0x3c519f(0x201)]=await this[_0x3c519f(0x202)](),this[_0x3c519f(0x245)](_0x3c519f(0x22a),this);const _0x4ca478=await this[_0x3c519f(0x201)][_0x3c519f(0x1ff)]();for await(const _0x3011ee of _0x4ca478){if(this[_0x3c519f(0x1fc)])return;if(_0x3c519f(0x242)==_0x3011ee[_0x3c519f(0x226)])return void this[_0x3c519f(0x245)](_0x3c519f(0x242),{'error':new _0x1000d7(_0x3c519f(0x20a),this)});switch(_0x3011ee[_0x3c519f(0x226)]){case _0x3c519f(0x211):this[_0x3c519f(0x221)]=_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x221)];break;case _0x3c519f(0x22f):this[_0x3c519f(0x20f)]=_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x23a)];break;case _0x3c519f(0x1fd):this[_0x3c519f(0x246)](_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x1f5)],!0x0);break;case _0x3c519f(0x225):_0x5d69cb[_0x3c519f(0x222)](_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x225)]);break;case _0x3c519f(0x224):this[_0x3c519f(0x215)]||(this[_0x3c519f(0x215)]=!0x0,this[_0x3c519f(0x245)](_0x3c519f(0x23f),this));break;case _0x3c519f(0x247):this[_0x3c519f(0x214)]||(this[_0x3c519f(0x214)]=!0x0,this[_0x3c519f(0x245)](_0x3c519f(0x223),this));break;case _0x3c519f(0x23c):case _0x3c519f(0x232):this[_0x3c519f(0x21d)](),this[_0x3c519f(0x207)](),_0x217ae8=_0x3c519f(0x23c)==_0x3011ee[_0x3c519f(0x226)]?_0x3c519f(0x22b):_0x3c519f(0x243),_0x4f08c0=_0x3c519f(0x23c)==_0x3011ee[_0x3c519f(0x226)]?_0x3011ee[_0x3c519f(0x241)]['id']:void 0x0,this[_0x3c519f(0x22c)]&&this[_0x3c519f(0x22c)][_0x3c519f(0x217)]!=_0x217ae8&&(this[_0x3c519f(0x22c)][_0x3c519f(0x20b)](),this[_0x3c519f(0x22c)]=void 0x0),this[_0x3c519f(0x22c)]||(this[_0x3c519f(0x22c)]=this[_0x3c519f(0x234)]({'type':_0x217ae8,'interactionId':this['id'],'id':_0x4f08c0}),_0x3c519f(0x22b)==_0x217ae8&&(this[_0x3c519f(0x22c)][_0x3c519f(0x1fe)]=_0x5d69cb[_0x3c519f(0x238)](0x0))),this[_0x3c519f(0x22c)][_0x3c519f(0x236)](_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x244)]);break;case _0x3c519f(0x20c):_0x2b9656=JSON[_0x3c519f(0x218)](_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x1f9)]),this[_0x3c519f(0x219)]({'toolName':_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x21a)],'data':_0x2b9656[_0x3c519f(0x241)],'attributes':_0x2b9656[_0x3c519f(0x248)]});break;case _0x3c519f(0x210):this[_0x3c519f(0x1fb)]({'toolName':_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x21a)],'data':_0x3011ee[_0x3c519f(0x241)][_0x3c519f(0x241)]});}}}finally{this[_0x3c519f(0x1fc)]||(this[_0x3c519f(0x22c)]&&_0x5d69cb[_0x3c519f(0x21b)]>0x0&&(this[_0x3c519f(0x22c)][_0x3c519f(0x1fe)]=_0x5d69cb[_0x3c519f(0x238)](0x0)),this[_0x3c519f(0x231)](),this[_0x3c519f(0x245)](_0x3c519f(0x216),this));}}[_0x4e2ab1(0x1f6)](){const _0x336248=_0x4e2ab1;this[_0x336248(0x1fc)]||(this[_0x336248(0x231)](),this[_0x336248(0x245)](_0x336248(0x209),this));}[_0x4e2ab1(0x22e)](_0x437bdd){const _0x31c04e=_0x4e2ab1;return this[_0x31c04e(0x206)][_0x31c04e(0x237)](_0x5f1032=>_0x5f1032['id']===_0x437bdd);}[_0x4e2ab1(0x22d)](){const _0x5e338e=_0x4e2ab1;this[_0x5e338e(0x23e)]||(this[_0x5e338e(0x1f6)](),this[_0x5e338e(0x206)][_0x5e338e(0x204)](_0x474603=>_0x474603[_0x5e338e(0x22d)]()),this[_0x5e338e(0x206)]=[],this[_0x5e338e(0x23e)]=!0x0,this[_0x5e338e(0x245)](_0x5e338e(0x220),this),this[_0x5e338e(0x23d)]());}[_0x4e2ab1(0x234)](_0x1e6c58){const _0x32d4d5=_0x4e2ab1,_0x117ca0=new _0x5e108d({'editor':this[_0x32d4d5(0x1f7)],'documentContextContent':this[_0x32d4d5(0x203)]()?.[_0x32d4d5(0x1fa)],..._0x1e6c58});return this[_0x32d4d5(0x206)][_0x32d4d5(0x222)](_0x117ca0),_0x117ca0[_0x32d4d5(0x21e)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x32d4d5(0x245)](_0x32d4d5(0x235),_0x117ca0),_0x117ca0;}[_0x4e2ab1(0x246)](_0x4f2945,_0x5eb021=!0x1){const _0x43fc26=_0x4e2ab1;this[_0x43fc26(0x245)](_0x43fc26(0x246),_0x4f2945,_0x5eb021);}[_0x4e2ab1(0x207)](){const _0x6bffc3=_0x4e2ab1;this[_0x6bffc3(0x215)]&&(this[_0x6bffc3(0x215)]=!0x1,this[_0x6bffc3(0x245)](_0x6bffc3(0x200),this));}[_0x4e2ab1(0x21d)](){const _0x2ca7ca=_0x4e2ab1;this[_0x2ca7ca(0x214)]&&(this[_0x2ca7ca(0x214)]=!0x1,this[_0x2ca7ca(0x245)](_0x2ca7ca(0x228),this));}[_0x4e2ab1(0x219)](_0xd4943f){const _0x320d15=_0x4e2ab1;this[_0x320d15(0x245)](_0x320d15(0x230),{'type':_0x320d15(0x1f9),'toolName':_0xd4943f[_0x320d15(0x21a)],'data':structuredClone(_0xd4943f[_0x320d15(0x241)]||{}),'attributes':structuredClone(_0xd4943f[_0x320d15(0x248)]||{})},this);}[_0x4e2ab1(0x1fb)](_0x215b09){const _0x197291=_0x4e2ab1;this[_0x197291(0x245)](_0x197291(0x230),{'type':_0x197291(0x212),'toolName':_0x215b09[_0x197291(0x21a)],'data':structuredClone(_0x215b09[_0x197291(0x241)])},this);}[_0x4e2ab1(0x231)](){const _0x4c9b18=_0x4e2ab1;this[_0x4c9b18(0x1fc)]=!0x0,this[_0x4c9b18(0x201)]&&this[_0x4c9b18(0x201)][_0x4c9b18(0x233)][_0x4c9b18(0x21c)](),this[_0x4c9b18(0x22c)]&&this[_0x4c9b18(0x22c)][_0x4c9b18(0x20b)](),this[_0x4c9b18(0x201)]=this[_0x4c9b18(0x22c)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3216a6=_0x1d08;function _0x115a(){const _0x1ac47a=['AI_MODEL_NAME_AUTO','provider','_retrieveModels','1AcFUZR','agent','displayedModels','_modelList','1099VrRZEe','_connector','10AqwnVC','107530ORxdvs','map','_modelsRequest','124564cngRPQ','getDefault','length','filter','62032bbKBaf','isAvailable','30813060BbbDyF','defaultModelId','_getModelById','uiLanguage','startsWith','_filterModels','_availableModels','string','push','add','list','toLocaleLowerCase','ai-chat-default-model-id-unrecognized','getModel','6ftSVJK','getAll','items','10444257ogGzBM','has','ai-chat-model-id-unrecognized','_config','456SwrxhQ','some','1733634vGnWDT','auto','recommended','ai-models-unable-to-retrieve','139884eXzfgw','name','_isMatchingFilter','getAvailableModels','_defaultModelId','getModels','find','_locale'];_0x115a=function(){return _0x1ac47a;};return _0x115a();}(function(_0x4fda2c,_0x225465){const _0x1fbafd=_0x1d08,_0x12556c=_0x4fda2c();while(!![]){try{const _0x4cc8c1=-parseInt(_0x1fbafd(0x1e0))/0x1*(parseInt(_0x1fbafd(0x1d1))/0x2)+parseInt(_0x1fbafd(0x1c8))/0x3*(-parseInt(_0x1fbafd(0x1d5))/0x4)+parseInt(_0x1fbafd(0x1e7))/0x5*(parseInt(_0x1fbafd(0x1cf))/0x6)+-parseInt(_0x1fbafd(0x1e4))/0x7*(parseInt(_0x1fbafd(0x1ee))/0x8)+parseInt(_0x1fbafd(0x1cb))/0x9*(-parseInt(_0x1fbafd(0x1e6))/0xa)+-parseInt(_0x1fbafd(0x1ea))/0xb+parseInt(_0x1fbafd(0x1f0))/0xc;if(_0x4cc8c1===_0x225465)break;else _0x12556c['push'](_0x12556c['shift']());}catch(_0x41f854){_0x12556c['push'](_0x12556c['shift']());}}}(_0x115a,0xd5ef5));import{EmitterMixin as _0x5299e4,logWarning as _0x88fa7d,logError as _0x46d420}from'ckeditor5/src/utils.js';import{getTranslation as _0x42287b}from'../utils/common-translations.js';function _0x1d08(_0x59ead7,_0x2ab933){const _0x115ae7=_0x115a();return _0x1d08=function(_0x1d0879,_0x3c2bc6){_0x1d0879=_0x1d0879-0x1c4;let _0x1e794e=_0x115ae7[_0x1d0879];return _0x1e794e;},_0x1d08(_0x59ead7,_0x2ab933);}export class AIModels extends _0x5299e4(){[_0x3216a6(0x1e5)];[_0x3216a6(0x1ce)];[_0x3216a6(0x1dc)];[_0x3216a6(0x1e3)]=[];[_0x3216a6(0x1e9)]=null;constructor({connector:_0x349a85,config:_0x272602,locale:_0x2c7968}){const _0x323ac0=_0x3216a6;super(),this[_0x323ac0(0x1e5)]=_0x349a85,this[_0x323ac0(0x1ce)]=_0x272602,this[_0x323ac0(0x1dc)]=_0x2c7968;}get[_0x3216a6(0x1f6)](){const _0x38d028=_0x3216a6;return this[_0x38d028(0x1ce)]?.[_0x38d028(0x1e2)];}get[_0x3216a6(0x1d9)](){const _0x592123=_0x3216a6;return this[_0x592123(0x1ce)]?.[_0x592123(0x1f1)];}async[_0x3216a6(0x1c9)](){const _0x2de28e=_0x3216a6;return this[_0x2de28e(0x1e9)]||(this[_0x2de28e(0x1e9)]=this[_0x2de28e(0x1df)]()),this[_0x2de28e(0x1e9)];}async[_0x3216a6(0x1d8)](){const _0x47faf6=_0x3216a6,_0x2d4e83=await this[_0x47faf6(0x1c9)]();let _0x13fe3e;return _0x13fe3e=this[_0x47faf6(0x1f6)]?this[_0x47faf6(0x1f5)](_0x2d4e83,this[_0x47faf6(0x1f6)]):_0x2d4e83[_0x47faf6(0x1ed)](_0x19714c=>_0x19714c[_0x47faf6(0x1d3)]),_0x13fe3e;}async[_0x3216a6(0x1c7)](_0x18152e){const _0x537f03=_0x3216a6,_0xa9de43=await this[_0x537f03(0x1c9)]();if(!_0xa9de43[_0x537f03(0x1ec)])return null;if(_0x18152e){const _0x3cc2e6=this[_0x537f03(0x1f2)](_0xa9de43,_0x18152e);if(_0x3cc2e6)return _0x3cc2e6;_0x88fa7d(_0x537f03(0x1cd),{'modelId':_0x18152e,'fallBackModelId':this[_0x537f03(0x1d9)]});}return this[_0x537f03(0x1eb)]();}async[_0x3216a6(0x1eb)](){const _0x4306c6=_0x3216a6,_0x4ebce3=await this[_0x4306c6(0x1d8)]();if(!_0x4ebce3[_0x4306c6(0x1ec)])return null;if(this[_0x4306c6(0x1d9)]){const _0x2a0307=this[_0x4306c6(0x1f2)](_0x4ebce3,this[_0x4306c6(0x1d9)]);if(_0x2a0307)return _0x2a0307;_0x88fa7d(_0x4306c6(0x1c6),{'defaultModelId':this[_0x4306c6(0x1d9)],'fallBackModelId':_0x4ebce3[0x0]['id']});}return _0x4ebce3[0x0];}async[_0x3216a6(0x1ef)](_0xab7d57){const _0x541135=_0x3216a6;return(await this[_0x541135(0x1d8)]())[_0x541135(0x1d0)](_0x2e46d9=>_0x2e46d9[_0x541135(0x1d6)]===_0xab7d57[_0x541135(0x1d6)]&&_0x2e46d9[_0x541135(0x1de)]===_0xab7d57[_0x541135(0x1de)]);}async[_0x3216a6(0x1df)](){const _0x4280f5=_0x3216a6;if(!this[_0x4280f5(0x1e3)][_0x4280f5(0x1ec)])try{const _0x564a33=this[_0x4280f5(0x1dc)][_0x4280f5(0x1f3)]||'en',_0x36fba8=this[_0x4280f5(0x1e5)][_0x4280f5(0x1da)](_0x564a33),_0x208695=await _0x36fba8[_0x4280f5(0x1c4)]();this[_0x4280f5(0x1e3)]=_0x208695[_0x4280f5(0x1ca)][_0x4280f5(0x1e8)](_0xb62ae4=>Mi(_0xb62ae4)?{..._0xb62ae4,'name':_0x42287b(this[_0x4280f5(0x1dc)],_0x4280f5(0x1dd))}:_0xb62ae4);}catch(_0x329b6e){throw _0x46d420(_0x4280f5(0x1d4),{'error':_0x329b6e}),_0x329b6e;}return[...this[_0x4280f5(0x1e3)]];}[_0x3216a6(0x1f5)](_0x3417ba,_0x359ecc){const _0x41d0d9=_0x3216a6;let _0x267f86;if(_0x359ecc){_0x267f86=[];const _0x4729ee=new Set(),_0x26a926=_0x41d0d9(0x1f7)==typeof _0x359ecc?[_0x359ecc[_0x41d0d9(0x1c5)]()]:_0x359ecc[_0x41d0d9(0x1e8)](_0xf7be2=>_0xf7be2[_0x41d0d9(0x1c5)]());for(const _0x47ed0f of _0x26a926)for(const _0x5b4425 of _0x3417ba)!_0x4729ee[_0x41d0d9(0x1cc)](_0x5b4425['id'])&&this[_0x41d0d9(0x1d7)](_0x5b4425,_0x47ed0f)&&(_0x267f86[_0x41d0d9(0x1f8)](_0x5b4425),_0x4729ee[_0x41d0d9(0x1f9)](_0x5b4425['id']));}else _0x267f86=_0x3417ba;return _0x267f86;}[_0x3216a6(0x1d7)](_0x34baa3,_0x104deb){const _0x424ef9=_0x3216a6,_0x310405=_0x34baa3['id'][_0x424ef9(0x1c5)](),_0x506a6b=_0x34baa3[_0x424ef9(0x1d6)][_0x424ef9(0x1c5)](),_0x2dc8dd=_0x34baa3[_0x424ef9(0x1de)][_0x424ef9(0x1c5)]();return _0x310405===_0x104deb||_0x506a6b===_0x104deb||Mi(_0x34baa3)&&_0x424ef9(0x1d2)===_0x104deb||_0x2dc8dd===_0x104deb||_0x310405[_0x424ef9(0x1f4)](_0x104deb);}[_0x3216a6(0x1f2)](_0x387062,_0x3be224){const _0x559029=_0x3216a6;return _0x387062[_0x559029(0x1db)](_0x1e586c=>Mi(_0x1e586c)&&_0x559029(0x1d2)===_0x3be224?_0x1e586c:_0x1e586c['id']===_0x3be224)||null;}}function Mi(_0x37b0c5){const _0x57403b=_0x3216a6;return _0x37b0c5['id'][_0x57403b(0x1f4)](_0x57403b(0x1e1));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa043e6=_0x5699;(function(_0x549a53,_0x4a5b84){const _0x5b6abb=_0x5699,_0x578cdd=_0x549a53();while(!![]){try{const _0x17c6da=parseInt(_0x5b6abb(0x1a3))/0x1*(parseInt(_0x5b6abb(0x1ba))/0x2)+-parseInt(_0x5b6abb(0x1e5))/0x3*(-parseInt(_0x5b6abb(0x1ea))/0x4)+-parseInt(_0x5b6abb(0x1eb))/0x5+-parseInt(_0x5b6abb(0x1cc))/0x6+-parseInt(_0x5b6abb(0x1a7))/0x7*(-parseInt(_0x5b6abb(0x1ab))/0x8)+-parseInt(_0x5b6abb(0x1d1))/0x9+parseInt(_0x5b6abb(0x1a0))/0xa*(parseInt(_0x5b6abb(0x1b0))/0xb);if(_0x17c6da===_0x4a5b84)break;else _0x578cdd['push'](_0x578cdd['shift']());}catch(_0x236b7a){_0x578cdd['push'](_0x578cdd['shift']());}}}(_0x4bd6,0x4c4ff));import{CKEditorError as _0x13bf89,ObservableMixin as _0x30607b,uid as _0x3a4970}from'ckeditor5/src/utils.js';import{Element as _0x158042,findAll as _0x192198,getAttribute as _0x4e3334,getParents as _0x95013d,Document as _0x10b70b,parse as _0x2a9ea2,Text as _0x19117a}from'../utils/htmlparser.js';import{AIResponseParser as _0x50a6e8}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1ec513}from'../pipeline/airesponseapplier.js';function _0x5699(_0x126393,_0x1365a1){const _0x4bd656=_0x4bd6();return _0x5699=function(_0x5699e9,_0x24fae1){_0x5699e9=_0x5699e9-0x19d;let _0x261d7f=_0x4bd656[_0x5699e9];return _0x261d7f;},_0x5699(_0x126393,_0x1365a1);}import{getSuggestionPartsFromReply as _0x25c559}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x1171ee}from'../utils/common-translations.js';import{cloneDeep as _0x5311a0}from'es-toolkit';function _0x4bd6(){const _0x34ad60=['fire','set','locale','setChangeGroupState','ai-get-editor-from-context-no-editor','cachedSuggestionContentParts','index','includes','appendContent','parseAndNormalizeHTML','splice','AI_SUGGESTION_CONTENT_PART_REMOVED','areActionsDisabled','3YEppqg','data-id','stopListening','forEach','replyChangeGroupStateUpdated','2379752RhVOrI','1030865JJQapV','getContentParts','span','context','new','unshift','1115430RIVtgP','data-unstable','withoutDiff','6700CYvSdn','modified','documentContextContent','cloneNode','2842091RFSapV','find','_getCachedContentParts','modifiedNodeIds','8fUxyzq','parsedMergedContent','indexOf','filter','updateChangeGroups','11psPjEy','changeGroups','state','convertMarkdownToHTML','aiResponseParser','isDone','onContentChange','aiResponseApplier','modification','color:\x20#808080;\x20font-style:\x20italic','98pUAvHA','destroy','replyContentUpdated','withDiff','removedNodeIds','length','content','done','previousSibling','ai-reply-get-content-parts-group-not-found','node','push','parsedContent','changes','map','sources','pending','removed','2981916SLvsSR','type','editor','merge','nextSibling','3825540zCpvNy','newNodeIds','_setCachedContentParts','interactionId','_getDifferentChangeGroups','change:content','every'];_0x4bd6=function(){return _0x34ad60;};return _0x4bd6();}export class AIReply extends _0x30607b(){['id'];[_0xa043e6(0x1d4)];[_0xa043e6(0x1cd)];[_0xa043e6(0x1c9)]=[];[_0xa043e6(0x1c6)]=new _0x10b70b([]);[_0xa043e6(0x1ac)]=new _0x10b70b([]);[_0xa043e6(0x1b1)]=[];[_0xa043e6(0x1e4)]=!0x1;[_0xa043e6(0x1a5)];[_0xa043e6(0x1b4)];[_0xa043e6(0x1b7)];[_0xa043e6(0x1ce)];[_0xa043e6(0x1dd)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2bb556,content:_0x50bc97='',isDone:_0x47e95e=!0x1,interactionId:_0x35dd5d,areActionsDisabled:_0x40fd67,documentContextContent:_0x3713ca,editor:_0x572d56,id:_0x552cef}){const _0x56a097=_0xa043e6;super(),this['id']=_0x552cef||_0x3a4970(),this[_0x56a097(0x1d4)]=_0x35dd5d,this[_0x56a097(0x1cd)]=_0x2bb556,this[_0x56a097(0x1e4)]=!!_0x40fd67,this[_0x56a097(0x1ce)]=_0x572d56,this[_0x56a097(0x1b4)]=new _0x50a6e8(),this[_0x56a097(0x1b7)]=new _0x1ec513(),this[_0x56a097(0x1a5)]=_0x2a9ea2(_0x3713ca||''),this[_0x56a097(0x1d9)](_0x56a097(0x1b5),_0x47e95e),this['on'](_0x56a097(0x1d6),()=>{const _0x4e5762=_0x56a097;this[_0x4e5762(0x1b6)]();}),this[_0x56a097(0x1d9)](_0x56a097(0x1c0),_0x50bc97);}[_0xa043e6(0x1e0)](_0x1726ee){const _0x936a3a=_0xa043e6;this[_0x936a3a(0x1d9)](_0x936a3a(0x1c0),this[_0x936a3a(0x1c0)]+_0x1726ee);}[_0xa043e6(0x1c1)](){const _0x57ce83=_0xa043e6;this[_0x57ce83(0x1b5)]||(this[_0x57ce83(0x1d9)](_0x57ce83(0x1b5),!0x0),this[_0x57ce83(0x1b6)]());}[_0xa043e6(0x1bb)](){const _0x48c805=_0xa043e6;this[_0x48c805(0x1e7)]();}[_0xa043e6(0x1db)](_0x382366,_0x99a584){const _0x45e54=_0xa043e6;this[_0x45e54(0x1b1)][_0x382366][_0x45e54(0x1b2)]=_0x99a584,this[_0x45e54(0x1d8)](_0x45e54(0x1e9),{'reply':this,'index':_0x382366,'state':_0x99a584});}[_0xa043e6(0x1ec)]({showDiff:_0x94b84d,groupIndex:_0x5f32e7}){const _0x553b87=_0xa043e6;if(!this[_0x553b87(0x1ce)])throw new _0x13bf89(_0x553b87(0x1dc),null,{'aiReply':this});const _0x4a7c32=this[_0x553b87(0x1a9)](_0x94b84d,_0x5f32e7);if(_0x4a7c32)return _0x4a7c32;let _0x42bee5=[];if(void 0x0===_0x5f32e7)_0x42bee5=this[_0x553b87(0x1b1)];else{const _0x5e62d2=this[_0x553b87(0x1b1)][_0x553b87(0x1a8)](({index:_0x7e9bd8})=>_0x7e9bd8===_0x5f32e7);if(!_0x5e62d2)throw new _0x13bf89(_0x553b87(0x1c3),null,{'aiReply':this,'groupIndex':_0x5f32e7});_0x42bee5=[_0x5e62d2];}const _0x4c2fa3=_0x25c559({'editor':this[_0x553b87(0x1ce)],'showDiff':_0x94b84d,'changeGroups':_0x42bee5,'documentContextContent':this[_0x553b87(0x1a5)]});return this[_0x553b87(0x1d3)](_0x94b84d,_0x4c2fa3),_0x4c2fa3;}[_0xa043e6(0x1a9)](_0x4a68f9,_0x3c6a26){const _0x3cd915=_0xa043e6,_0x27488a=_0x4a68f9?_0x3cd915(0x1bd):_0x3cd915(0x1a2);if(!this[_0x3cd915(0x1dd)][_0x27488a][_0x3cd915(0x1bf)])return null;const _0xb6be1=this[_0x3cd915(0x1dd)][_0x27488a];if(void 0x0===_0x3c6a26)return _0xb6be1[_0x3cd915(0x1bf)]>0x0&&_0xb6be1[_0x3cd915(0x1bf)]!==this[_0x3cd915(0x1b1)][_0x3cd915(0x1bf)]?(this[_0x3cd915(0x1d3)](_0x4a68f9,null),null):_0x5311a0(_0xb6be1);{const _0x32dff9=_0xb6be1[_0x3cd915(0x1a8)](({index:_0x44438d})=>_0x44438d===_0x3c6a26);if(_0x32dff9)return[_0x5311a0(_0x32dff9)];}return null;}[_0xa043e6(0x1d3)](_0x4b620b,_0x4f8a1a){const _0xcf8aa5=_0xa043e6,_0x2b8e63=_0x4b620b?_0xcf8aa5(0x1bd):_0xcf8aa5(0x1a2);_0x4f8a1a?_0x4f8a1a[_0xcf8aa5(0x1e8)](_0x3d76e2=>{const _0x2108f7=_0xcf8aa5,_0x13d0e2=this[_0x2108f7(0x1dd)][_0x2b8e63],_0x18183e=_0x13d0e2[_0x2108f7(0x1a8)](({index:_0x5adec6})=>_0x5adec6===_0x3d76e2[_0x2108f7(0x1de)]);if(_0x18183e){const _0x2f9f35=_0x13d0e2[_0x2108f7(0x1ad)](_0x18183e);_0x13d0e2[_0x2108f7(0x1e2)](_0x2f9f35,0x1,_0x3d76e2);}else _0x13d0e2[_0x2108f7(0x1c5)](_0x3d76e2);}):this[_0xcf8aa5(0x1dd)][_0x2b8e63][_0xcf8aa5(0x1bf)]=0x0;}[_0xa043e6(0x1b6)](){const _0x106129=_0xa043e6;if(_0x106129(0x1b8)===this[_0x106129(0x1cd)]){this[_0x106129(0x1c6)]=this[_0x106129(0x1b4)][_0x106129(0x1e1)](this[_0x106129(0x1c0)]);const _0x124392=this[_0x106129(0x1b1)];this[_0x106129(0x1af)]();const _0x3489d4=this[_0x106129(0x1d5)](_0x124392,this[_0x106129(0x1b1)]);(_0x3489d4[_0x106129(0x1bf)]||this[_0x106129(0x1b5)])&&(this[_0x106129(0x1d8)](_0x106129(0x1bc),this,_0x3489d4),this[_0x106129(0x1dd)][_0x106129(0x1bd)][_0x106129(0x1bf)]=this[_0x106129(0x1dd)][_0x106129(0x1a2)][_0x106129(0x1bf)]=0x0);}else this[_0x106129(0x1c6)]=this[_0x106129(0x1b4)][_0x106129(0x1b3)](this[_0x106129(0x1c0)]),this[_0x106129(0x1d8)](_0x106129(0x1bc),this);}[_0xa043e6(0x1d5)](_0x46130d,_0x392fc5){const _0x2f2fb5=_0xa043e6,_0x2f518d=[];for(const _0x23826e of _0x392fc5){const _0x4b6baa=_0x46130d[_0x23826e[_0x2f2fb5(0x1de)]];_0x4b6baa?_0x4b6baa[_0x2f2fb5(0x1c7)][_0x2f2fb5(0x1bf)]!==_0x23826e[_0x2f2fb5(0x1c7)][_0x2f2fb5(0x1bf)]?_0x2f518d[_0x2f2fb5(0x1c5)](_0x23826e):_0x4b6baa[_0x2f2fb5(0x1c7)][_0x2f2fb5(0x1e8)]((_0xa5dc5,_0x3f9617)=>{const _0x14583d=_0x2f2fb5,_0x163c03=_0x23826e[_0x14583d(0x1c7)][_0x3f9617];_0xa5dc5['id']!==_0x163c03['id']&&_0x2f518d[_0x14583d(0x1c5)](_0x23826e);}):_0x2f518d[_0x2f2fb5(0x1c5)](_0x23826e);}return _0x2f518d;}[_0xa043e6(0x1af)](){const _0xa3a849=_0xa043e6,_0x55637e=new _0x158042('p',{},[new _0x158042(_0xa3a849(0x1ed),{'style':_0xa3a849(0x1b9)},[new _0x19117a(_0x1171ee(this[_0xa3a849(0x1ce)][_0xa3a849(0x1da)],_0xa3a849(0x1e3)))])]),_0x1725f9=this[_0xa3a849(0x1b7)][_0xa3a849(0x1cf)](this[_0xa3a849(0x1c6)],this[_0xa3a849(0x1a5)][_0xa3a849(0x1a6)](!0x0),{'markUnstableElements':!this[_0xa3a849(0x1b5)],'replaceRemovedWith':_0x55637e,'cutAfterLastChange':!this[_0xa3a849(0x1b5)]});if(!_0x1725f9[_0xa3a849(0x1aa)][_0xa3a849(0x1bf)]&&!this[_0xa3a849(0x1b5)])return;this[_0xa3a849(0x1ac)]=_0x1725f9[_0xa3a849(0x1c6)];let _0x4c75eb=[];if(_0x192198(_0x555f22=>{const _0x393e96=_0xa3a849,_0x26b07e=_0x4e3334(_0x555f22,_0x393e96(0x1e6));if(!_0x26b07e||!_0x24a6bc(_0x26b07e))return!0x1;const _0x4eb4b7=[_0x555f22,..._0x95013d(_0x555f22)]['at'](-0x2);if(_0x555f22!=_0x4eb4b7){const _0x1fe722=_0x4e3334(_0x4eb4b7,_0x393e96(0x1e6));_0x24a6bc(_0x1fe722)||(_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x4eb4b7,'id':_0x1fe722,'type':_0x393e96(0x1a4)}),_0x1725f9[_0x393e96(0x1aa)][_0x393e96(0x1c5)](_0x1fe722));}else _0x1725f9[_0x393e96(0x1aa)][_0x393e96(0x1df)](_0x26b07e)?_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x555f22,'type':_0x393e96(0x1a4),'id':_0x26b07e}):_0x1725f9[_0x393e96(0x1d2)][_0x393e96(0x1df)](_0x26b07e)?_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x555f22,'type':_0x393e96(0x19e),'id':_0x26b07e,'anchorId':_0x4e3334(_0x555f22[_0x393e96(0x1c2)],_0x393e96(0x1e6))}):_0x4c75eb[_0x393e96(0x1c5)]({'node':_0x555f22,'type':_0x393e96(0x1cb),'id':_0x26b07e});return!0x0;},this[_0xa3a849(0x1ac)]),_0x4c75eb=_0x4c75eb[_0xa3a849(0x1ae)](({node:_0x1dee76})=>[..._0x95013d(_0x1dee76),_0x1dee76][_0xa3a849(0x1d7)](_0x2f087b=>!_0x4e3334(_0x2f087b,_0xa3a849(0x1a1)))),0x0==_0x4c75eb[_0xa3a849(0x1bf)])return;const _0x4f159a=[[_0x4c75eb[0x0]]];for(let _0x5deaac=0x1;_0x5deaac<_0x4c75eb[_0xa3a849(0x1bf)];_0x5deaac++){const _0x313d4c=_0x4f159a[_0x4f159a[_0xa3a849(0x1bf)]-0x1],_0x10db57=_0x313d4c[_0x313d4c[_0xa3a849(0x1bf)]-0x1];_0x4c75eb[_0x5deaac][_0xa3a849(0x1c4)][_0xa3a849(0x1c2)]==_0x10db57[_0xa3a849(0x1c4)]&&_0xa3a849(0x1a4)!=_0x4c75eb[_0x5deaac][_0xa3a849(0x1cd)]&&_0xa3a849(0x1a4)!=_0x10db57[_0xa3a849(0x1cd)]?_0x313d4c[_0xa3a849(0x1c5)](_0x4c75eb[_0x5deaac]):_0x4f159a[_0xa3a849(0x1c5)]([_0x4c75eb[_0x5deaac]]);}for(const _0x2bb3d9 of _0x4f159a){const _0x238299=_0x2bb3d9[0x0],_0x41d413=_0x2bb3d9[_0x2bb3d9[_0xa3a849(0x1bf)]-0x1],_0x3ab2a7=_0x5afc88(_0x238299[_0xa3a849(0x1c4)][_0xa3a849(0x1c2)]);_0x3ab2a7&&_0x2bb3d9[_0xa3a849(0x19f)](_0x3ab2a7);const _0x5b6499=_0x5afc88(_0x41d413[_0xa3a849(0x1c4)][_0xa3a849(0x1d0)]);_0x5b6499&&_0x2bb3d9[_0xa3a849(0x1c5)](_0x5b6499);}function _0x24a6bc(_0x117ace){const _0x2e75bc=_0xa3a849;return _0x1725f9[_0x2e75bc(0x1aa)][_0x2e75bc(0x1df)](_0x117ace)||_0x1725f9[_0x2e75bc(0x1d2)][_0x2e75bc(0x1df)](_0x117ace)||_0x1725f9[_0x2e75bc(0x1be)][_0x2e75bc(0x1df)](_0x117ace);}function _0x5afc88(_0xbf39b8){const _0x3af03e=_0xa3a849;if(_0xbf39b8&&_0x4e3334(_0xbf39b8,_0x3af03e(0x1e6))&&!_0x4e3334(_0xbf39b8,_0x3af03e(0x1a1))){const _0x47ea4b=_0x4e3334(_0xbf39b8,_0x3af03e(0x1e6));if(!_0x24a6bc(_0x47ea4b))return{'node':_0xbf39b8,'type':_0x3af03e(0x19d),'id':_0x47ea4b};}return null;}this[_0xa3a849(0x1b1)]=_0x4f159a[_0xa3a849(0x1c8)]((_0x4674e5,_0x4737aa)=>({'changes':_0x4674e5,'state':_0xa3a849(0x1ca),'index':_0x4737aa}));}}
|
|
23
|
+
const _0x2e4c42=_0x4e3a;(function(_0x103d15,_0x38d625){const _0x53dfd7=_0x4e3a,_0x36cbd1=_0x103d15();while(!![]){try{const _0x5560f0=parseInt(_0x53dfd7(0x139))/0x1*(-parseInt(_0x53dfd7(0x17a))/0x2)+-parseInt(_0x53dfd7(0x176))/0x3*(parseInt(_0x53dfd7(0x179))/0x4)+parseInt(_0x53dfd7(0x150))/0x5+parseInt(_0x53dfd7(0x167))/0x6*(parseInt(_0x53dfd7(0x172))/0x7)+-parseInt(_0x53dfd7(0x185))/0x8+parseInt(_0x53dfd7(0x13a))/0x9+parseInt(_0x53dfd7(0x15b))/0xa;if(_0x5560f0===_0x38d625)break;else _0x36cbd1['push'](_0x36cbd1['shift']());}catch(_0x1702b5){_0x36cbd1['push'](_0x36cbd1['shift']());}}}(_0x1d6d,0xd01ee));import{CKEditorError as _0x16e4c3,ObservableMixin as _0x54de8f,uid as _0x3a7552}from'ckeditor5/src/utils.js';import{Element as _0x49d316,findAll as _0x429298,getAttribute as _0x5b912f,getParents as _0x27cdee,Document as _0x184503,parse as _0x2b3962,Text as _0x494fed}from'../utils/htmlparser.js';import{AIResponseParser as _0x272a60}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x31b76d}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3019c5}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5c2a06}from'../utils/common-translations.js';function _0x4e3a(_0x3206ee,_0x36f988){const _0x1d6dbc=_0x1d6d();return _0x4e3a=function(_0x4e3aff,_0x8f0da9){_0x4e3aff=_0x4e3aff-0x136;let _0xa3839a=_0x1d6dbc[_0x4e3aff];return _0xa3839a;},_0x4e3a(_0x3206ee,_0x36f988);}function _0x1d6d(){const _0x67c766=['358FFoyRi','14431131tjyIlQ','_getCachedContentParts','modified','context','setChangeGroupState','done','cloneNode','changes','fire','change:content','indexOf','withoutDiff','replyChangeGroupStateUpdated','sources','AI_SUGGESTION_CONTENT_PART_REMOVED','node','destroy','modification','updateChangeGroups','pending','nextSibling','previousSibling','2515960ahmhBX','state','type','splice','newNodeIds','areActionsDisabled','removedNodeIds','cachedSuggestionContentParts','index','span','documentContextContent','3094300mEPPHz','changeGroups','parseAndNormalizeHTML','forEach','length','parsedContent','push','locale','onContentChange','map','data-id','data-unstable','3462ZAAOhs','convertMarkdownToHTML','content','removed','ai-get-editor-from-context-no-editor','set','withDiff','stopListening','find','editor','replyContentUpdated','19572LERbHH','filter','includes','unshift','3rzgOcO','aiResponseApplier','new','5793660DShlmR','6530OzXvke','every','appendContent','merge','modifiedNodeIds','interactionId','ai-reply-get-content-parts-group-not-found','getContentParts','parsedMergedContent','color:\x20#808080;\x20font-style:\x20italic','_getDifferentChangeGroups','4477008fgBEur','aiResponseParser','isDone','_setCachedContentParts'];_0x1d6d=function(){return _0x67c766;};return _0x1d6d();}import{cloneDeep as _0x1b9c86}from'es-toolkit';export class AIReply extends _0x54de8f(){['id'];[_0x2e4c42(0x17f)];[_0x2e4c42(0x152)];[_0x2e4c42(0x147)]=[];[_0x2e4c42(0x160)]=new _0x184503([]);[_0x2e4c42(0x182)]=new _0x184503([]);[_0x2e4c42(0x15c)]=[];[_0x2e4c42(0x155)]=!0x1;[_0x2e4c42(0x15a)];[_0x2e4c42(0x136)];[_0x2e4c42(0x177)];[_0x2e4c42(0x170)];[_0x2e4c42(0x157)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1e8753,content:_0x3d3c6a='',isDone:_0x2a099c=!0x1,interactionId:_0x22c6c4,areActionsDisabled:_0x1ac08f,documentContextContent:_0x1e0314,editor:_0x29e250,id:_0x426f54}){const _0x414dc0=_0x2e4c42;super(),this['id']=_0x426f54||_0x3a7552(),this[_0x414dc0(0x17f)]=_0x22c6c4,this[_0x414dc0(0x152)]=_0x1e8753,this[_0x414dc0(0x155)]=!!_0x1ac08f,this[_0x414dc0(0x170)]=_0x29e250,this[_0x414dc0(0x136)]=new _0x272a60(),this[_0x414dc0(0x177)]=new _0x31b76d(),this[_0x414dc0(0x15a)]=_0x2b3962(_0x1e0314||''),this[_0x414dc0(0x16c)](_0x414dc0(0x137),_0x2a099c),this['on'](_0x414dc0(0x143),()=>{const _0x4916c4=_0x414dc0;this[_0x4916c4(0x163)]();}),this[_0x414dc0(0x16c)](_0x414dc0(0x169),_0x3d3c6a);}[_0x2e4c42(0x17c)](_0x4d46b9){const _0x54434e=_0x2e4c42;this[_0x54434e(0x16c)](_0x54434e(0x169),this[_0x54434e(0x169)]+_0x4d46b9);}[_0x2e4c42(0x13f)](){const _0x3bddfa=_0x2e4c42;this[_0x3bddfa(0x137)]||(this[_0x3bddfa(0x16c)](_0x3bddfa(0x137),!0x0),this[_0x3bddfa(0x163)]());}[_0x2e4c42(0x14a)](){const _0x7c0e93=_0x2e4c42;this[_0x7c0e93(0x16e)]();}[_0x2e4c42(0x13e)](_0x2f22c2,_0x494c03){const _0x38fe5b=_0x2e4c42;this[_0x38fe5b(0x15c)][_0x2f22c2][_0x38fe5b(0x151)]=_0x494c03,this[_0x38fe5b(0x142)](_0x38fe5b(0x146),{'reply':this,'index':_0x2f22c2,'state':_0x494c03});}[_0x2e4c42(0x181)]({showDiff:_0x18b3b4,groupIndex:_0x6470c9}){const _0x154841=_0x2e4c42;if(!this[_0x154841(0x170)])throw new _0x16e4c3(_0x154841(0x16b),null,{'aiReply':this});const _0x2914ef=this[_0x154841(0x13b)](_0x18b3b4,_0x6470c9);if(_0x2914ef)return _0x2914ef;let _0x558882=[];if(void 0x0===_0x6470c9)_0x558882=this[_0x154841(0x15c)];else{const _0x3ab28d=this[_0x154841(0x15c)][_0x154841(0x16f)](({index:_0x4884fb})=>_0x4884fb===_0x6470c9);if(!_0x3ab28d)throw new _0x16e4c3(_0x154841(0x180),null,{'aiReply':this,'groupIndex':_0x6470c9});_0x558882=[_0x3ab28d];}const _0x47cec1=_0x3019c5({'editor':this[_0x154841(0x170)],'showDiff':_0x18b3b4,'changeGroups':_0x558882,'documentContextContent':this[_0x154841(0x15a)]});return this[_0x154841(0x138)](_0x18b3b4,_0x47cec1),_0x47cec1;}[_0x2e4c42(0x13b)](_0x1d7eb8,_0x4ed91e){const _0x19ca73=_0x2e4c42,_0x1fe68e=_0x1d7eb8?_0x19ca73(0x16d):_0x19ca73(0x145);if(!this[_0x19ca73(0x157)][_0x1fe68e][_0x19ca73(0x15f)])return null;const _0x31748d=this[_0x19ca73(0x157)][_0x1fe68e];if(void 0x0===_0x4ed91e)return _0x31748d[_0x19ca73(0x15f)]>0x0&&_0x31748d[_0x19ca73(0x15f)]!==this[_0x19ca73(0x15c)][_0x19ca73(0x15f)]?(this[_0x19ca73(0x138)](_0x1d7eb8,null),null):_0x1b9c86(_0x31748d);{const _0x341f12=_0x31748d[_0x19ca73(0x16f)](({index:_0xaab762})=>_0xaab762===_0x4ed91e);if(_0x341f12)return[_0x1b9c86(_0x341f12)];}return null;}[_0x2e4c42(0x138)](_0xf48ed4,_0x376070){const _0x39d1a7=_0x2e4c42,_0x541a04=_0xf48ed4?_0x39d1a7(0x16d):_0x39d1a7(0x145);_0x376070?_0x376070[_0x39d1a7(0x15e)](_0x492502=>{const _0x300dd9=_0x39d1a7,_0xe2010c=this[_0x300dd9(0x157)][_0x541a04],_0xa14504=_0xe2010c[_0x300dd9(0x16f)](({index:_0x5deb4d})=>_0x5deb4d===_0x492502[_0x300dd9(0x158)]);if(_0xa14504){const _0x3535a0=_0xe2010c[_0x300dd9(0x144)](_0xa14504);_0xe2010c[_0x300dd9(0x153)](_0x3535a0,0x1,_0x492502);}else _0xe2010c[_0x300dd9(0x161)](_0x492502);}):this[_0x39d1a7(0x157)][_0x541a04][_0x39d1a7(0x15f)]=0x0;}[_0x2e4c42(0x163)](){const _0x51f6ce=_0x2e4c42;if(_0x51f6ce(0x14b)===this[_0x51f6ce(0x152)]){this[_0x51f6ce(0x160)]=this[_0x51f6ce(0x136)][_0x51f6ce(0x15d)](this[_0x51f6ce(0x169)]);const _0x3fef06=this[_0x51f6ce(0x15c)];this[_0x51f6ce(0x14c)]();const _0x509952=this[_0x51f6ce(0x184)](_0x3fef06,this[_0x51f6ce(0x15c)]);(_0x509952[_0x51f6ce(0x15f)]||this[_0x51f6ce(0x137)])&&(this[_0x51f6ce(0x142)](_0x51f6ce(0x171),this,_0x509952),this[_0x51f6ce(0x157)][_0x51f6ce(0x16d)][_0x51f6ce(0x15f)]=this[_0x51f6ce(0x157)][_0x51f6ce(0x145)][_0x51f6ce(0x15f)]=0x0);}else this[_0x51f6ce(0x160)]=this[_0x51f6ce(0x136)][_0x51f6ce(0x168)](this[_0x51f6ce(0x169)]),this[_0x51f6ce(0x142)](_0x51f6ce(0x171),this);}[_0x2e4c42(0x184)](_0xb496b5,_0x1406a5){const _0xfe9f3f=_0x2e4c42,_0x173841=[];for(const _0x2f443d of _0x1406a5){const _0x1ad103=_0xb496b5[_0x2f443d[_0xfe9f3f(0x158)]];_0x1ad103?_0x1ad103[_0xfe9f3f(0x141)][_0xfe9f3f(0x15f)]!==_0x2f443d[_0xfe9f3f(0x141)][_0xfe9f3f(0x15f)]?_0x173841[_0xfe9f3f(0x161)](_0x2f443d):_0x1ad103[_0xfe9f3f(0x141)][_0xfe9f3f(0x15e)]((_0x440f3d,_0x4407f8)=>{const _0xb21791=_0xfe9f3f,_0x2e2845=_0x2f443d[_0xb21791(0x141)][_0x4407f8];_0x440f3d['id']!==_0x2e2845['id']&&_0x173841[_0xb21791(0x161)](_0x2f443d);}):_0x173841[_0xfe9f3f(0x161)](_0x2f443d);}return _0x173841;}[_0x2e4c42(0x14c)](){const _0x2af18c=_0x2e4c42,_0x3403ec=new _0x49d316('p',{},[new _0x49d316(_0x2af18c(0x159),{'style':_0x2af18c(0x183)},[new _0x494fed(_0x5c2a06(this[_0x2af18c(0x170)][_0x2af18c(0x162)],_0x2af18c(0x148)))])]),_0x5e3cbb=this[_0x2af18c(0x177)][_0x2af18c(0x17d)](this[_0x2af18c(0x160)],this[_0x2af18c(0x15a)][_0x2af18c(0x140)](!0x0),{'markUnstableElements':!this[_0x2af18c(0x137)],'replaceRemovedWith':_0x3403ec,'cutAfterLastChange':!this[_0x2af18c(0x137)]});if(!_0x5e3cbb[_0x2af18c(0x17e)][_0x2af18c(0x15f)]&&!this[_0x2af18c(0x137)])return;this[_0x2af18c(0x182)]=_0x5e3cbb[_0x2af18c(0x160)];let _0x10eff8=[];if(_0x429298(_0x2887a6=>{const _0x5b6792=_0x2af18c,_0xc780b5=_0x5b912f(_0x2887a6,_0x5b6792(0x165));if(!_0xc780b5||!_0x3ec1f4(_0xc780b5))return!0x1;const _0x2e8ca9=[_0x2887a6,..._0x27cdee(_0x2887a6)]['at'](-0x2);if(_0x2887a6!=_0x2e8ca9){const _0x260ed8=_0x5b912f(_0x2e8ca9,_0x5b6792(0x165));_0x3ec1f4(_0x260ed8)||(_0x10eff8[_0x5b6792(0x161)]({'node':_0x2e8ca9,'id':_0x260ed8,'type':_0x5b6792(0x13c)}),_0x5e3cbb[_0x5b6792(0x17e)][_0x5b6792(0x161)](_0x260ed8));}else _0x5e3cbb[_0x5b6792(0x17e)][_0x5b6792(0x174)](_0xc780b5)?_0x10eff8[_0x5b6792(0x161)]({'node':_0x2887a6,'type':_0x5b6792(0x13c),'id':_0xc780b5}):_0x5e3cbb[_0x5b6792(0x154)][_0x5b6792(0x174)](_0xc780b5)?_0x10eff8[_0x5b6792(0x161)]({'node':_0x2887a6,'type':_0x5b6792(0x178),'id':_0xc780b5,'anchorId':_0x5b912f(_0x2887a6[_0x5b6792(0x14f)],_0x5b6792(0x165))}):_0x10eff8[_0x5b6792(0x161)]({'node':_0x2887a6,'type':_0x5b6792(0x16a),'id':_0xc780b5});return!0x0;},this[_0x2af18c(0x182)]),_0x10eff8=_0x10eff8[_0x2af18c(0x173)](({node:_0x542b15})=>[..._0x27cdee(_0x542b15),_0x542b15][_0x2af18c(0x17b)](_0xe073f8=>!_0x5b912f(_0xe073f8,_0x2af18c(0x166)))),0x0==_0x10eff8[_0x2af18c(0x15f)])return;const _0x242f45=[[_0x10eff8[0x0]]];for(let _0xcbed48=0x1;_0xcbed48<_0x10eff8[_0x2af18c(0x15f)];_0xcbed48++){const _0xee875d=_0x242f45[_0x242f45[_0x2af18c(0x15f)]-0x1],_0x545a3a=_0xee875d[_0xee875d[_0x2af18c(0x15f)]-0x1];_0x10eff8[_0xcbed48][_0x2af18c(0x149)][_0x2af18c(0x14f)]==_0x545a3a[_0x2af18c(0x149)]&&_0x2af18c(0x13c)!=_0x10eff8[_0xcbed48][_0x2af18c(0x152)]&&_0x2af18c(0x13c)!=_0x545a3a[_0x2af18c(0x152)]?_0xee875d[_0x2af18c(0x161)](_0x10eff8[_0xcbed48]):_0x242f45[_0x2af18c(0x161)]([_0x10eff8[_0xcbed48]]);}for(const _0x1ef072 of _0x242f45){const _0x1803ff=_0x1ef072[0x0],_0xc7058c=_0x1ef072[_0x1ef072[_0x2af18c(0x15f)]-0x1],_0x191e9a=_0x40e47c(_0x1803ff[_0x2af18c(0x149)][_0x2af18c(0x14f)]);_0x191e9a&&_0x1ef072[_0x2af18c(0x175)](_0x191e9a);const _0xa7f703=_0x40e47c(_0xc7058c[_0x2af18c(0x149)][_0x2af18c(0x14e)]);_0xa7f703&&_0x1ef072[_0x2af18c(0x161)](_0xa7f703);}function _0x3ec1f4(_0x16462f){const _0x10adfa=_0x2af18c;return _0x5e3cbb[_0x10adfa(0x17e)][_0x10adfa(0x174)](_0x16462f)||_0x5e3cbb[_0x10adfa(0x154)][_0x10adfa(0x174)](_0x16462f)||_0x5e3cbb[_0x10adfa(0x156)][_0x10adfa(0x174)](_0x16462f);}function _0x40e47c(_0x4440d7){const _0x2c4eb6=_0x2af18c;if(_0x4440d7&&_0x5b912f(_0x4440d7,_0x2c4eb6(0x165))&&!_0x5b912f(_0x4440d7,_0x2c4eb6(0x166))){const _0x355231=_0x5b912f(_0x4440d7,_0x2c4eb6(0x165));if(!_0x3ec1f4(_0x355231))return{'node':_0x4440d7,'type':_0x2c4eb6(0x13d),'id':_0x355231};}return null;}this[_0x2af18c(0x15c)]=_0x242f45[_0x2af18c(0x164)]((_0x20ab05,_0x3e9fd6)=>({'changes':_0x20ab05,'state':_0x2af18c(0x14d),'index':_0x3e9fd6}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x226427(){[_0x4a2e37(0xcf)];[_0x4a2e37(0x9f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4a2e37(0xbf)]=new Set();constructor(_0xf33811){const _0x5de80b=_0x4a2e37;super(),this[_0x5de80b(0xcf)]=_0xf33811||_0x10a4d1;}[_0x4a2e37(0xd7)](_0x19a533,_0x293af8,_0x5701c8){const _0x3dd7da=_0x4a2e37,_0xcc30f7=_0x29270f(_0x19a533);if(0x0===_0x293af8[_0x3dd7da(0xc1)][_0x3dd7da(0xd5)]){const _0x45be75=[];return _0x174e3c(_0x3dd7da(0xaa),_0x3dd7da(0xb4),_0xcc30f7)[_0x3dd7da(0xdd)](_0x5ef951=>{const _0x5362ce=_0x3dd7da,_0x240d8c=this[_0x5362ce(0xcf)]();_0x156962(_0x5ef951,_0x5362ce(0xaa),_0x240d8c),_0x45be75[_0x5362ce(0xb7)](_0x240d8c);}),this[_0x3dd7da(0xc9)](_0xcc30f7),{'parsedContent':_0xcc30f7,'newNodeIds':_0x45be75,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5701c8&&_0x5701c8[_0x3dd7da(0x9a)]&&this[_0x3dd7da(0xc4)](_0xcc30f7),this[_0x3dd7da(0x9f)][_0x3dd7da(0x9e)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0xd0)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0xdf)]=[],this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)]=null,this[_0x3dd7da(0xbf)]=new Set(_0x174e3c(_0x3dd7da(0xaa),null,_0x293af8)[_0x3dd7da(0xd1)](_0x3cb163=>_0x5e686a(_0x3cb163,_0x3dd7da(0xaa)))[_0x3dd7da(0xa8)](_0x56c722=>!!_0x56c722));let _0x5eb303=-0x1,_0x48ca57=!0x1;const _0x3f36ee=_0xcc30f7[_0x3dd7da(0xc1)],_0x274bc6=Array[_0x3dd7da(0xcc)](_0x3f36ee)[_0x3dd7da(0xa8)](_0x2ae2c6=>!(0x3===_0x2ae2c6[_0x3dd7da(0xad)]&&''===_0x236338(_0x2ae2c6)[_0x3dd7da(0xb2)]())),_0x2af873=_0x274bc6[_0x3dd7da(0xd5)];for(let _0x9dbbc0=0x0;_0x9dbbc0<_0x2af873;_0x9dbbc0++){const _0x4859a4=_0x274bc6[_0x9dbbc0],_0x1fa35f=_0x274bc6[_0x9dbbc0+0x1];if(this[_0x3dd7da(0xa0)](_0x4859a4)){if(-0x1===_0x5eb303&&(_0x5eb303=_0x9dbbc0),this[_0x3dd7da(0xc6)](_0x4859a4),!this[_0x3dd7da(0xa0)](_0x1fa35f)){const [_0x9ba5ff,_0x1253d8]=this[_0x3dd7da(0xa4)](_0x4859a4,_0x48ca57,_0x293af8);if(_0x9ba5ff){const _0x1b8c55=Array[_0x3dd7da(0xcc)](_0x274bc6)[_0x3dd7da(0xde)](_0x5eb303,_0x9dbbc0+0x1);this[_0x3dd7da(0xae)](_0x9ba5ff,_0x1b8c55,_0x1253d8),_0x5eb303=-0x1;}}}else{if(this[_0x3dd7da(0xa9)](_0x4859a4))_0x48ca57=!0x0;else{if(this[_0x3dd7da(0x99)](_0x4859a4)){const _0x405eec=_0x5e686a(_0x4859a4,_0x3dd7da(0xaa));if(_0x405eec&&this[_0x3dd7da(0xbf)][_0x3dd7da(0xb0)](_0x405eec)){const _0x2d44a3=_0x26639a(_0x3dd7da(0xaa),_0x405eec,_0x293af8);this[_0x3dd7da(0xa7)](_0x2d44a3,_0x4859a4);}if(this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)][_0x3dd7da(0xc7)](_0x405eec)){const _0x5aaec5=this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)][_0x3dd7da(0xa5)](_0x405eec);this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)][_0x3dd7da(0xba)](_0x5aaec5,0x1);}}else{if(this[_0x3dd7da(0xbc)](_0x4859a4)){const _0x47d93d=_0x5e686a(_0x4859a4,_0x3dd7da(0xaa));this[_0x3dd7da(0x9f)][_0x3dd7da(0xd0)][_0x3dd7da(0xc7)](_0x47d93d)||this[_0x3dd7da(0xd9)](_0x4859a4);}}}}}for(const _0x1172e0 of this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)]){const _0x338d34=_0x26639a(_0x3dd7da(0xaa),_0x1172e0,_0x293af8);if(_0x338d34){if(_0x5701c8&&_0x5701c8[_0x3dd7da(0xd6)]){this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)]=_0x1172e0;const _0x42f3e5=_0x5701c8[_0x3dd7da(0xd6)][_0x3dd7da(0xbe)](!0x0);_0x156962(_0x42f3e5,_0x3dd7da(0xaa),_0x1172e0),_0x156962(_0x42f3e5,_0x3dd7da(0xc3),_0x3dd7da(0xa3)),_0x3ec306(_0x338d34,_0x42f3e5);}else _0xa6ac68(_0x338d34);}}if(_0x174e3c(_0x3dd7da(0xb8),null,_0x293af8)[_0x3dd7da(0xdd)](_0xeec3bb=>{const _0x193acc=_0x3dd7da,_0x4f68d7=_0x5e686a(_0xeec3bb,_0x193acc(0xb8)),_0x4be916=_0x26639a(_0x193acc(0xaa),_0x4f68d7,_0x293af8);_0x4be916&&_0x3a7ad9(_0x4be916,_0xeec3bb);}),_0x174e3c(_0x3dd7da(0xaa),_0x3dd7da(0xb4),_0x293af8)[_0x3dd7da(0xdd)](_0xc48f82=>{const _0x56871a=_0x3dd7da,_0x32b844=this[_0x56871a(0xd2)](_0xc48f82);_0x156962(_0xc48f82,_0x56871a(0xaa),_0x32b844),this[_0x56871a(0x9f)][_0x56871a(0x9e)][_0x56871a(0xb7)](_0x32b844);}),this[_0x3dd7da(0xc9)](_0x293af8),_0x5701c8&&_0x5701c8[_0x3dd7da(0x9a)]&&this[_0x3dd7da(0x9c)](_0x293af8,_0x5701c8[_0x3dd7da(0xcb)]||0x0),_0x5701c8&&_0x5701c8[_0x3dd7da(0xb6)]&&this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)]){let _0x421bfe=_0x26639a(_0x3dd7da(0xaa),this[_0x3dd7da(0x9f)][_0x3dd7da(0x9b)],_0x293af8);for(;_0x421bfe;)_0x2b90e6(_0x421bfe),_0x421bfe=_0x421bfe[_0x3dd7da(0xc0)];}return{'parsedContent':_0x293af8,'newNodeIds':this[_0x3dd7da(0x9f)][_0x3dd7da(0x9e)],'modifiedNodeIds':this[_0x3dd7da(0x9f)][_0x3dd7da(0xd0)],'removedNodeIds':this[_0x3dd7da(0x9f)][_0x3dd7da(0xce)]};}[_0x4a2e37(0xae)](_0x550881,_0x1beb6c,_0x42d8fb){const _0x2ca3ed=_0x4a2e37;for(const _0x1d7c6a of _0x1beb6c){const _0x3c267a=this[_0x2ca3ed(0xd2)](_0x1d7c6a);_0x156962(_0x1d7c6a,_0x2ca3ed(0xaa),_0x3c267a),this[_0x2ca3ed(0x9f)][_0x2ca3ed(0x9e)][_0x2ca3ed(0xb7)](_0x3c267a),this[_0x2ca3ed(0x9f)][_0x2ca3ed(0x9b)]=_0x3c267a;}const _0x526f19=_0x2ca3ed(0xb5)===_0x42d8fb||_0x2ca3ed(0xd3)===_0x42d8fb?_0x1beb6c[_0x2ca3ed(0xdb)]():_0x1beb6c;for(const _0x17dcc7 of _0x526f19)_0x214e03(_0x550881,_0x17dcc7,_0x42d8fb);}[_0x4a2e37(0xa7)](_0x3ff6b9,_0x598fc3){const _0x1c58d7=_0x4a2e37;if(!_0x3ff6b9)return;if(_0x548837(_0x3ff6b9,_0x598fc3))return;const _0x52cfeb=this[_0x1c58d7(0xd2)](_0x3ff6b9);_0x156962(_0x598fc3,_0x1c58d7(0xaa),_0x52cfeb),this[_0x1c58d7(0x9f)][_0x1c58d7(0xd0)][_0x1c58d7(0xb7)](_0x52cfeb),this[_0x1c58d7(0x9f)][_0x1c58d7(0x9b)]=_0x52cfeb,_0x3ec306(_0x3ff6b9,_0x598fc3[_0x1c58d7(0xbe)](!0x0));}[_0x4a2e37(0xa4)](_0x5b909a,_0x32beed,_0x17f87b){const _0x3fc283=_0x4a2e37,_0x538439=this[_0x3fc283(0xca)](_0x5b909a,!0x1);if(_0x538439){const _0x2b3a09=this[_0x3fc283(0xbb)](_0x538439),_0xabd62d=_0x26639a(_0x3fc283(0xaa),_0x2b3a09,_0x17f87b);if(_0xabd62d)return[_0xabd62d,_0x3fc283(0xd3)];this[_0x3fc283(0x9f)][_0x3fc283(0xdf)][_0x3fc283(0xb7)](_0x2b3a09);}const _0x1ee279=this[_0x3fc283(0xbd)](_0x5b909a,!0x1);if(_0x1ee279){const _0x54101c=this[_0x3fc283(0xbb)](_0x1ee279),_0x69ccc7=_0x26639a(_0x3fc283(0xaa),_0x54101c,_0x17f87b);if(_0x69ccc7)return[_0x69ccc7,_0x3fc283(0xc8)];this[_0x3fc283(0x9f)][_0x3fc283(0xdf)][_0x3fc283(0xb7)](_0x54101c);}return _0x32beed?_0x5b909a[_0x3fc283(0xd4)]?this[_0x3fc283(0xd8)](_0x5b909a,_0x17f87b):[_0x17f87b[_0x3fc283(0xc1)][_0x17f87b[_0x3fc283(0xc1)][_0x3fc283(0xd5)]-0x1],_0x3fc283(0xd3)]:[_0x17f87b[_0x3fc283(0xc1)][0x0],_0x3fc283(0xc8)];}[_0x4a2e37(0xd8)](_0x4d2f33,_0x72e03b){const _0x2d2891=_0x4a2e37,_0x455d7a=[],_0x515400=this[_0x2d2891(0xca)](_0x4d2f33,!0x0);if(_0x515400){const _0xe5f3a1=this[_0x2d2891(0xbb)](_0x515400),_0xc4a183=_0x26639a(_0x2d2891(0xaa),_0xe5f3a1,_0x72e03b);_0xc4a183&&_0x455d7a[_0x2d2891(0xb7)]([_0xc4a183,_0x2d2891(0xd3)]);}const _0x53e6b1=this[_0x2d2891(0xbd)](_0x4d2f33,!0x0);if(_0x53e6b1){const _0x1a781b=this[_0x2d2891(0xbb)](_0x53e6b1),_0x4a86b6=_0x26639a(_0x2d2891(0xaa),_0x1a781b,_0x72e03b);_0x4a86b6&&_0x455d7a[_0x2d2891(0xb7)]([_0x4a86b6,_0x2d2891(0xc8)]);}if(_0x455d7a[_0x2d2891(0xd5)]>0x1)return _0x14dd26(_0x455d7a[0x0][0x0])<=_0x14dd26(_0x455d7a[0x1][0x0])?_0x455d7a[0x0]:_0x455d7a[0x1];return 0x1===_0x455d7a[_0x2d2891(0xd5)]?_0x455d7a[0x0]:[_0x72e03b[_0x2d2891(0xc2)],_0x2d2891(0xd3)];}[_0x4a2e37(0xbd)](_0x547b0f,_0x124b0a){const _0x538624=_0x4a2e37;let _0x3ca291=_0x547b0f[_0x538624(0xd4)],_0x2ecf7b=null,_0x3b6766=!0x1;for(;_0x3ca291;){if(_0x2d0259(_0x3ca291)){if(this[_0x538624(0xbc)](_0x3ca291)&&(_0x2ecf7b=_0x3ca291),this[_0x538624(0xa9)](_0x3ca291)&&_0x124b0a&&!_0x3b6766){_0x3b6766=!0x0,_0x3ca291=_0x3ca291[_0x538624(0xd4)];continue;}break;}const _0x1aa286=_0x5e686a(_0x3ca291,_0x538624(0xaa));if(_0x1aa286&&_0x538624(0xb4)!==_0x1aa286&&this[_0x538624(0xbf)][_0x538624(0xb0)](_0x1aa286)){_0x2ecf7b=_0x3ca291;break;}_0x3ca291=_0x3ca291[_0x538624(0xd4)];}return _0x2ecf7b;}[_0x4a2e37(0xca)](_0x2fa87b,_0x3b54a3){const _0x38e916=_0x4a2e37;let _0x221379=_0x2fa87b[_0x38e916(0x9d)],_0x159697=null,_0x1d28ac=!0x1;for(;_0x221379;){if(_0x2d0259(_0x221379)){if(this[_0x38e916(0xbc)](_0x221379)&&(_0x159697=_0x221379),this[_0x38e916(0xa9)](_0x221379)&&_0x3b54a3&&!_0x1d28ac){_0x1d28ac=!0x0,_0x221379=_0x221379[_0x38e916(0x9d)];continue;}break;}const _0x41891f=_0x5e686a(_0x221379,_0x38e916(0xaa));if(_0x41891f&&_0x38e916(0xb4)!==_0x41891f&&this[_0x38e916(0xbf)][_0x38e916(0xb0)](_0x41891f)){_0x159697=_0x221379;break;}_0x221379=_0x221379[_0x38e916(0x9d)];}return _0x159697;}[_0x4a2e37(0xc6)](_0x550336){const _0x495a44=_0x4a2e37;_0x2c1bf9(_0x550336)&&_0x174e3c(_0x495a44(0xaa),null,_0x550336)[_0x495a44(0xdd)](_0x403eaf=>{const _0x8172a7=_0x495a44;if(this[_0x8172a7(0x99)](_0x403eaf)&&!this[_0x8172a7(0xaf)](_0x403eaf)){const _0x1f7ea4=_0x5e686a(_0x403eaf,_0x8172a7(0xaa));_0x156962(_0x403eaf,_0x8172a7(0xb8),_0x1f7ea4),_0x156962(_0x403eaf,_0x8172a7(0xaa),null);}});}[_0x4a2e37(0xbb)](_0x41330d){const _0x435c53=_0x4a2e37;if(!_0x41330d)return null;if(_0x2c1bf9(_0x41330d))return _0x5e686a(_0x41330d,_0x435c53(0xaa));if(_0x2d0259(_0x41330d)){const _0x1d8a4e=_0x236338(_0x41330d)[_0x435c53(0xa1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1d8a4e&&_0x1d8a4e[0x1])return _0x1d8a4e[0x1];}return null;}[_0x4a2e37(0xd9)](_0x19c67e){const _0x3b6603=_0x4a2e37;if(_0x2d0259(_0x19c67e)){const _0x189438=_0x236338(_0x19c67e)[_0x3b6603(0xa1)](/removed[\s*-]data-id="([^"]+)"/);_0x189438&&_0x189438[0x1]&&this[_0x3b6603(0x9f)][_0x3b6603(0xce)][_0x3b6603(0xb7)](_0x189438[0x1]);}}[_0x4a2e37(0xd2)](_0x23cb5c){const _0x5716ae=_0x4a2e37;return this[_0x5716ae(0x99)](_0x23cb5c)?_0x5e686a(_0x23cb5c,_0x5716ae(0xaa)):this[_0x5716ae(0xcf)]();}[_0x4a2e37(0xc9)](_0x599656){const _0x3fd684=_0x4a2e37;_0xcb15ca(_0x599656)[_0x3fd684(0xa8)](_0x5cdb1d=>this[_0x3fd684(0xbc)](_0x5cdb1d)||this[_0x3fd684(0xa9)](_0x5cdb1d))[_0x3fd684(0xdd)](_0x118cb1=>{_0xa6ac68(_0x118cb1);});}[_0x4a2e37(0xc4)](_0x2ceff9){const _0x1bf035=_0x4a2e37,_0x5955e4=_0x2ceff9[_0x1bf035(0xc1)],_0x4a8997=_0x5955e4[_0x5955e4[_0x1bf035(0xd5)]-0x1];_0x4a8997&&_0x2c1bf9(_0x4a8997)&&_0x156962(_0x4a8997,_0x1bf035(0xcd),_0x1bf035(0xa3));}[_0x4a2e37(0x9c)](_0x286959,_0x35d683){const _0xb7d0a1=_0x4a2e37,_0x1e0e6c=_0x26639a(_0xb7d0a1(0xcd),_0xb7d0a1(0xa3),_0x286959);if(!_0x1e0e6c)return;const _0x252ab5=_0x38e67e(_0x1e0e6c)[_0xb7d0a1(0xde)](0x0,-0x1),_0x4f9b52=_0x252ab5[_0xb7d0a1(0xd5)];let _0x3719f3=_0x1e0e6c;if(_0x4f9b52>_0x35d683){let _0x354632=_0x4f9b52,_0x56ee49=null;for(;_0x354632>_0x35d683&&_0x354632>=0x0;)_0x354632--,_0x56ee49=_0x252ab5[_0x354632];_0x56ee49&&(_0x3719f3=_0x56ee49,_0x156962(_0x1e0e6c,_0xb7d0a1(0xcd),null),_0x156962(_0x56ee49,_0xb7d0a1(0xcd),_0xb7d0a1(0xa3)));}else{if(_0x4f9b52<_0x35d683){let _0x4ed183=_0x4f9b52,_0x2bda91=_0x1e0e6c;for(;_0x4ed183<_0x35d683;){const _0x1b5984=_0x2bda91[_0xb7d0a1(0xc1)][_0xb7d0a1(0xa8)](_0x38fdad=>_0x2c1bf9(_0x38fdad));if(0x0===_0x1b5984[_0xb7d0a1(0xd5)])break;_0x4ed183++,_0x2bda91=_0x1b5984[_0x1b5984[_0xb7d0a1(0xd5)]-0x1];}_0x2bda91&&(_0x3719f3=_0x2bda91,_0x156962(_0x1e0e6c,_0xb7d0a1(0xcd),null),_0x156962(_0x2bda91,_0xb7d0a1(0xcd),_0xb7d0a1(0xa3)));}}let _0x16baad=_0x3719f3;for(;_0x16baad;){for(;_0x16baad[_0xb7d0a1(0xd4)];)_0x16baad=_0x16baad[_0xb7d0a1(0xd4)],_0x2c1bf9(_0x16baad)&&_0x156962(_0x16baad,_0xb7d0a1(0xcd),_0xb7d0a1(0xa3));_0x16baad=_0x16baad[_0xb7d0a1(0xc0)];}}[_0x4a2e37(0xa0)](_0x5f39a6){const _0x1d05cb=_0x4a2e37;return Boolean(_0x1d05cb(0xb4)===_0x5e686a(_0x5f39a6,_0x1d05cb(0xaa)));}[_0x4a2e37(0x99)](_0xcbf8e5){const _0xa4d9ad=_0x4a2e37;return Boolean((_0x5e686a(_0xcbf8e5,_0xa4d9ad(0xaa))||'')[_0xa4d9ad(0xd5)]>0x0&&_0xa4d9ad(0xb4)!==_0x5e686a(_0xcbf8e5,_0xa4d9ad(0xaa)));}[_0x4a2e37(0xbc)](_0xb93dbd){const _0x2fd9bb=_0x4a2e37;return!!_0xb93dbd&&Boolean(_0x2d0259(_0xb93dbd)&&_0x236338(_0xb93dbd)[_0x2fd9bb(0xa1)](/removed[\s*-]data-id="[^"]+"/));}[_0x4a2e37(0xaf)](_0x5a2902){const _0x35b992=_0x4a2e37;let _0x4f7fe8=_0x5a2902[_0x35b992(0xc0)];for(;_0x4f7fe8;){if(_0x5e686a(_0x4f7fe8,_0x35b992(0xb8)))return!0x0;_0x4f7fe8=_0x4f7fe8[_0x35b992(0xc0)];}return!0x1;}[_0x4a2e37(0xa9)](_0xefb910){const _0x1cfcb4=_0x4a2e37;return Boolean(_0x2d0259(_0xefb910)&&_0x236338(_0xefb910)[_0x1cfcb4(0xa1)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x7e919d=_0x1204;(function(_0x3c114b,_0x4a8376){const _0x1a418c=_0x1204,_0x7578ff=_0x3c114b();while(!![]){try{const _0x17e001=parseInt(_0x1a418c(0x15c))/0x1+-parseInt(_0x1a418c(0x13f))/0x2*(parseInt(_0x1a418c(0x14d))/0x3)+parseInt(_0x1a418c(0x14f))/0x4*(parseInt(_0x1a418c(0x140))/0x5)+-parseInt(_0x1a418c(0x150))/0x6+-parseInt(_0x1a418c(0x15a))/0x7*(-parseInt(_0x1a418c(0x13d))/0x8)+parseInt(_0x1a418c(0x131))/0x9+-parseInt(_0x1a418c(0x13b))/0xa*(parseInt(_0x1a418c(0x162))/0xb);if(_0x17e001===_0x4a8376)break;else _0x7578ff['push'](_0x7578ff['shift']());}catch(_0x1b8456){_0x7578ff['push'](_0x7578ff['shift']());}}}(_0x373d,0xdbbed));import{ObservableMixin as _0x43379b,uid as _0x1048be}from'ckeditor5/src/utils.js';function _0x1204(_0x189017,_0x4fbb0c){const _0x373d8b=_0x373d();return _0x1204=function(_0x1204d0,_0x35fcd2){_0x1204d0=_0x1204d0-0x11d;let _0x170b19=_0x373d8b[_0x1204d0];return _0x170b19;},_0x1204(_0x189017,_0x4fbb0c);}import{findAllByAttribute as _0x3a300e,findByAttribute as _0x1e3a96,getAttribute as _0x28228d,isComment as _0x1822e7,isTag as _0x128640,insertElement as _0x7c707a,moveElement as _0x1b618d,removeElement as _0x27d151,replaceElement as _0x3a72cf,serialize as _0x4c3448,setAttribute as _0x44cb48,clone as _0x1564d4,findAllComments as _0x5d3d7c,getParents as _0x5dfad1,getNodeNestingLevel as _0x152f23,areNodesSame as _0x1664ff,removeElementsAfter as _0x5772b6}from'../utils/htmlparser.js';function _0x373d(){const _0x345d43=['11QzWfKG','push','_isExistingContentComment','map','trim','modifiedIds','length','_insertNodes','lastChild','removedIds','merge','previousSibling','data-removed','_removeSpecialComments','parentNode','new-element','beforebegin','data-id','_markWrappedElements','cloneNode','data-wrapped-id','_generateUid','splice','8952678GxtZOU','forEach','_getUid','replaceRemovedWith','_findPrevElementWithDataId','match','_hasWrappedParent','childNodes','_touchedNodesState','nextSibling','2288490ujcnlZ','reverse','8llhPwj','newIds','686772UUhnrq','895RCSKyi','_isDelNode','indexOf','true','data-unstable','afterend','filter','nodeType','_findReferenceNode','_findFallbackReferenceNode','_getNodeDataId','lastTouchedId','slice','9OTeYQu','invalidIds','10292rRVFBl','6955608RunoBP','_markLastTagElementUnstable','from','_isExistingNode','markUnstableElements','_findNextElementWithDataId','_replaceNode','cutAfterLastChange','includes','afterbegin','8193955vmPJeH','_existingDataIds','692478NfmUTB','markUnstableElementsDepth','has','_storeDeletedElementIds','_markUnstableElements','_isNewNode'];_0x373d=function(){return _0x345d43;};return _0x373d();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x43379b(){[_0x7e919d(0x12f)];[_0x7e919d(0x139)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x7e919d(0x15b)]=new Set();constructor(_0x592e02){const _0xddb536=_0x7e919d;super(),this[_0xddb536(0x12f)]=_0x592e02||_0x1048be;}[_0x7e919d(0x124)](_0x54c7ef,_0x1dfc57,_0x26c48d){const _0x143f15=_0x7e919d,_0x34e9c6=_0x1564d4(_0x54c7ef);if(0x0===_0x1dfc57[_0x143f15(0x138)][_0x143f15(0x120)]){const _0x4daaed=[];return _0x3a300e(_0x143f15(0x12b),_0x143f15(0x129),_0x34e9c6)[_0x143f15(0x132)](_0xba2480=>{const _0x3f17b9=_0x143f15,_0xa6e45d=this[_0x3f17b9(0x12f)]();_0x44cb48(_0xba2480,_0x3f17b9(0x12b),_0xa6e45d),_0x4daaed[_0x3f17b9(0x163)](_0xa6e45d);}),this[_0x143f15(0x127)](_0x34e9c6),{'parsedContent':_0x34e9c6,'newNodeIds':_0x4daaed,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x26c48d&&_0x26c48d[_0x143f15(0x154)]&&this[_0x143f15(0x151)](_0x34e9c6),this[_0x143f15(0x139)][_0x143f15(0x13e)]=[],this[_0x143f15(0x139)][_0x143f15(0x11f)]=[],this[_0x143f15(0x139)][_0x143f15(0x123)]=[],this[_0x143f15(0x139)][_0x143f15(0x14e)]=[],this[_0x143f15(0x139)][_0x143f15(0x14b)]=null,this[_0x143f15(0x15b)]=new Set(_0x3a300e(_0x143f15(0x12b),null,_0x1dfc57)[_0x143f15(0x11d)](_0x3934fb=>_0x28228d(_0x3934fb,_0x143f15(0x12b)))[_0x143f15(0x146)](_0x349f6e=>!!_0x349f6e));let _0x750d71=-0x1,_0x183aa3=!0x1;const _0x20b216=_0x34e9c6[_0x143f15(0x138)],_0x2cf329=Array[_0x143f15(0x152)](_0x20b216)[_0x143f15(0x146)](_0x3e1504=>!(0x3===_0x3e1504[_0x143f15(0x147)]&&''===_0x4c3448(_0x3e1504)[_0x143f15(0x11e)]())),_0x4f6f07=_0x2cf329[_0x143f15(0x120)];for(let _0x197409=0x0;_0x197409<_0x4f6f07;_0x197409++){const _0x4d3acc=_0x2cf329[_0x197409],_0x2a464a=_0x2cf329[_0x197409+0x1];if(this[_0x143f15(0x161)](_0x4d3acc)){if(-0x1===_0x750d71&&(_0x750d71=_0x197409),this[_0x143f15(0x12c)](_0x4d3acc),!this[_0x143f15(0x161)](_0x2a464a)){const [_0x119554,_0x457833]=this[_0x143f15(0x148)](_0x4d3acc,_0x183aa3,_0x1dfc57);if(_0x119554){const _0x27d314=Array[_0x143f15(0x152)](_0x2cf329)[_0x143f15(0x14c)](_0x750d71,_0x197409+0x1);this[_0x143f15(0x121)](_0x119554,_0x27d314,_0x457833),_0x750d71=-0x1;}}}else{if(this[_0x143f15(0x164)](_0x4d3acc))_0x183aa3=!0x0;else{if(this[_0x143f15(0x153)](_0x4d3acc)){const _0x4c5d4c=_0x28228d(_0x4d3acc,_0x143f15(0x12b));if(_0x4c5d4c&&this[_0x143f15(0x15b)][_0x143f15(0x15e)](_0x4c5d4c)){const _0x16853c=_0x1e3a96(_0x143f15(0x12b),_0x4c5d4c,_0x1dfc57);this[_0x143f15(0x156)](_0x16853c,_0x4d3acc);}if(this[_0x143f15(0x139)][_0x143f15(0x123)][_0x143f15(0x158)](_0x4c5d4c)){const _0x49c8c5=this[_0x143f15(0x139)][_0x143f15(0x123)][_0x143f15(0x142)](_0x4c5d4c);this[_0x143f15(0x139)][_0x143f15(0x123)][_0x143f15(0x130)](_0x49c8c5,0x1);}}else{if(this[_0x143f15(0x141)](_0x4d3acc)){const _0x3fa6d1=_0x28228d(_0x4d3acc,_0x143f15(0x12b));this[_0x143f15(0x139)][_0x143f15(0x11f)][_0x143f15(0x158)](_0x3fa6d1)||this[_0x143f15(0x15f)](_0x4d3acc);}}}}}for(const _0x2d9aeb of this[_0x143f15(0x139)][_0x143f15(0x123)]){const _0x350654=_0x1e3a96(_0x143f15(0x12b),_0x2d9aeb,_0x1dfc57);if(_0x350654){if(_0x26c48d&&_0x26c48d[_0x143f15(0x134)]){this[_0x143f15(0x139)][_0x143f15(0x14b)]=_0x2d9aeb;const _0x5854ea=_0x26c48d[_0x143f15(0x134)][_0x143f15(0x12d)](!0x0);_0x44cb48(_0x5854ea,_0x143f15(0x12b),_0x2d9aeb),_0x44cb48(_0x5854ea,_0x143f15(0x126),_0x143f15(0x143)),_0x3a72cf(_0x350654,_0x5854ea);}else _0x27d151(_0x350654);}}if(_0x3a300e(_0x143f15(0x12e),null,_0x1dfc57)[_0x143f15(0x132)](_0x83b51c=>{const _0x482a82=_0x143f15,_0x44fc96=_0x28228d(_0x83b51c,_0x482a82(0x12e)),_0x1df346=_0x1e3a96(_0x482a82(0x12b),_0x44fc96,_0x1dfc57);_0x1df346&&_0x1b618d(_0x1df346,_0x83b51c);}),_0x3a300e(_0x143f15(0x12b),_0x143f15(0x129),_0x1dfc57)[_0x143f15(0x132)](_0x5b21c8=>{const _0xb4dd91=_0x143f15,_0x1cfa2f=this[_0xb4dd91(0x133)](_0x5b21c8);_0x44cb48(_0x5b21c8,_0xb4dd91(0x12b),_0x1cfa2f),this[_0xb4dd91(0x139)][_0xb4dd91(0x13e)][_0xb4dd91(0x163)](_0x1cfa2f);}),this[_0x143f15(0x127)](_0x1dfc57),_0x26c48d&&_0x26c48d[_0x143f15(0x154)]&&this[_0x143f15(0x160)](_0x1dfc57,_0x26c48d[_0x143f15(0x15d)]||0x0),_0x26c48d&&_0x26c48d[_0x143f15(0x157)]&&this[_0x143f15(0x139)][_0x143f15(0x14b)]){let _0x382769=_0x1e3a96(_0x143f15(0x12b),this[_0x143f15(0x139)][_0x143f15(0x14b)],_0x1dfc57);for(;_0x382769;)_0x5772b6(_0x382769),_0x382769=_0x382769[_0x143f15(0x128)];}return{'parsedContent':_0x1dfc57,'newNodeIds':this[_0x143f15(0x139)][_0x143f15(0x13e)],'modifiedNodeIds':this[_0x143f15(0x139)][_0x143f15(0x11f)],'removedNodeIds':this[_0x143f15(0x139)][_0x143f15(0x123)]};}[_0x7e919d(0x121)](_0x334e85,_0x253429,_0x47ae7a){const _0x530ead=_0x7e919d;for(const _0x349aa7 of _0x253429){const _0x5a7441=this[_0x530ead(0x133)](_0x349aa7);_0x44cb48(_0x349aa7,_0x530ead(0x12b),_0x5a7441),this[_0x530ead(0x139)][_0x530ead(0x13e)][_0x530ead(0x163)](_0x5a7441),this[_0x530ead(0x139)][_0x530ead(0x14b)]=_0x5a7441;}const _0x56029e=_0x530ead(0x159)===_0x47ae7a||_0x530ead(0x145)===_0x47ae7a?_0x253429[_0x530ead(0x13c)]():_0x253429;for(const _0x16f126 of _0x56029e)_0x7c707a(_0x334e85,_0x16f126,_0x47ae7a);}[_0x7e919d(0x156)](_0x5380b3,_0x2af914){const _0x3fbc9f=_0x7e919d;if(!_0x5380b3)return;if(_0x1664ff(_0x5380b3,_0x2af914))return;const _0x364172=this[_0x3fbc9f(0x133)](_0x5380b3);_0x44cb48(_0x2af914,_0x3fbc9f(0x12b),_0x364172),this[_0x3fbc9f(0x139)][_0x3fbc9f(0x11f)][_0x3fbc9f(0x163)](_0x364172),this[_0x3fbc9f(0x139)][_0x3fbc9f(0x14b)]=_0x364172,_0x3a72cf(_0x5380b3,_0x2af914[_0x3fbc9f(0x12d)](!0x0));}[_0x7e919d(0x148)](_0x112ac1,_0x6e940a,_0x27178e){const _0x430c00=_0x7e919d,_0x290396=this[_0x430c00(0x135)](_0x112ac1,!0x1);if(_0x290396){const _0x5c5ced=this[_0x430c00(0x14a)](_0x290396),_0x2f4bd0=_0x1e3a96(_0x430c00(0x12b),_0x5c5ced,_0x27178e);if(_0x2f4bd0)return[_0x2f4bd0,_0x430c00(0x145)];this[_0x430c00(0x139)][_0x430c00(0x14e)][_0x430c00(0x163)](_0x5c5ced);}const _0x1512eb=this[_0x430c00(0x155)](_0x112ac1,!0x1);if(_0x1512eb){const _0x5aaae9=this[_0x430c00(0x14a)](_0x1512eb),_0x2284b3=_0x1e3a96(_0x430c00(0x12b),_0x5aaae9,_0x27178e);if(_0x2284b3)return[_0x2284b3,_0x430c00(0x12a)];this[_0x430c00(0x139)][_0x430c00(0x14e)][_0x430c00(0x163)](_0x5aaae9);}return _0x6e940a?_0x112ac1[_0x430c00(0x13a)]?this[_0x430c00(0x149)](_0x112ac1,_0x27178e):[_0x27178e[_0x430c00(0x138)][_0x27178e[_0x430c00(0x138)][_0x430c00(0x120)]-0x1],_0x430c00(0x145)]:[_0x27178e[_0x430c00(0x138)][0x0],_0x430c00(0x12a)];}[_0x7e919d(0x149)](_0x4ec945,_0xe2d8cf){const _0x27be0c=_0x7e919d,_0x32a79a=[],_0x59a68c=this[_0x27be0c(0x135)](_0x4ec945,!0x0);if(_0x59a68c){const _0x5bef7f=this[_0x27be0c(0x14a)](_0x59a68c),_0x3eed10=_0x1e3a96(_0x27be0c(0x12b),_0x5bef7f,_0xe2d8cf);_0x3eed10&&_0x32a79a[_0x27be0c(0x163)]([_0x3eed10,_0x27be0c(0x145)]);}const _0x5a48b1=this[_0x27be0c(0x155)](_0x4ec945,!0x0);if(_0x5a48b1){const _0x8cb2e0=this[_0x27be0c(0x14a)](_0x5a48b1),_0x22df8b=_0x1e3a96(_0x27be0c(0x12b),_0x8cb2e0,_0xe2d8cf);_0x22df8b&&_0x32a79a[_0x27be0c(0x163)]([_0x22df8b,_0x27be0c(0x12a)]);}if(_0x32a79a[_0x27be0c(0x120)]>0x1)return _0x152f23(_0x32a79a[0x0][0x0])<=_0x152f23(_0x32a79a[0x1][0x0])?_0x32a79a[0x0]:_0x32a79a[0x1];return 0x1===_0x32a79a[_0x27be0c(0x120)]?_0x32a79a[0x0]:[_0xe2d8cf[_0x27be0c(0x122)],_0x27be0c(0x145)];}[_0x7e919d(0x155)](_0x37bceb,_0x43644e){const _0x54789b=_0x7e919d;let _0x220ae1=_0x37bceb[_0x54789b(0x13a)],_0x8f9add=null,_0x394711=!0x1;for(;_0x220ae1;){if(_0x1822e7(_0x220ae1)){if(this[_0x54789b(0x141)](_0x220ae1)&&(_0x8f9add=_0x220ae1),this[_0x54789b(0x164)](_0x220ae1)&&_0x43644e&&!_0x394711){_0x394711=!0x0,_0x220ae1=_0x220ae1[_0x54789b(0x13a)];continue;}break;}const _0x190a06=_0x28228d(_0x220ae1,_0x54789b(0x12b));if(_0x190a06&&_0x54789b(0x129)!==_0x190a06&&this[_0x54789b(0x15b)][_0x54789b(0x15e)](_0x190a06)){_0x8f9add=_0x220ae1;break;}_0x220ae1=_0x220ae1[_0x54789b(0x13a)];}return _0x8f9add;}[_0x7e919d(0x135)](_0x5a8451,_0x38b052){const _0x195597=_0x7e919d;let _0x915c49=_0x5a8451[_0x195597(0x125)],_0x55d55f=null,_0x404d01=!0x1;for(;_0x915c49;){if(_0x1822e7(_0x915c49)){if(this[_0x195597(0x141)](_0x915c49)&&(_0x55d55f=_0x915c49),this[_0x195597(0x164)](_0x915c49)&&_0x38b052&&!_0x404d01){_0x404d01=!0x0,_0x915c49=_0x915c49[_0x195597(0x125)];continue;}break;}const _0x31e5c8=_0x28228d(_0x915c49,_0x195597(0x12b));if(_0x31e5c8&&_0x195597(0x129)!==_0x31e5c8&&this[_0x195597(0x15b)][_0x195597(0x15e)](_0x31e5c8)){_0x55d55f=_0x915c49;break;}_0x915c49=_0x915c49[_0x195597(0x125)];}return _0x55d55f;}[_0x7e919d(0x12c)](_0xb23fe8){const _0x57572e=_0x7e919d;_0x128640(_0xb23fe8)&&_0x3a300e(_0x57572e(0x12b),null,_0xb23fe8)[_0x57572e(0x132)](_0xe473a7=>{const _0xc1ed6=_0x57572e;if(this[_0xc1ed6(0x153)](_0xe473a7)&&!this[_0xc1ed6(0x137)](_0xe473a7)){const _0x1eb2c8=_0x28228d(_0xe473a7,_0xc1ed6(0x12b));_0x44cb48(_0xe473a7,_0xc1ed6(0x12e),_0x1eb2c8),_0x44cb48(_0xe473a7,_0xc1ed6(0x12b),null);}});}[_0x7e919d(0x14a)](_0x223f15){const _0x30d38e=_0x7e919d;if(!_0x223f15)return null;if(_0x128640(_0x223f15))return _0x28228d(_0x223f15,_0x30d38e(0x12b));if(_0x1822e7(_0x223f15)){const _0x3473a2=_0x4c3448(_0x223f15)[_0x30d38e(0x136)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3473a2&&_0x3473a2[0x1])return _0x3473a2[0x1];}return null;}[_0x7e919d(0x15f)](_0x5d1b95){const _0x336016=_0x7e919d;if(_0x1822e7(_0x5d1b95)){const _0x5b81ca=_0x4c3448(_0x5d1b95)[_0x336016(0x136)](/removed[\s*-]data-id="([^"]+)"/);_0x5b81ca&&_0x5b81ca[0x1]&&this[_0x336016(0x139)][_0x336016(0x123)][_0x336016(0x163)](_0x5b81ca[0x1]);}}[_0x7e919d(0x133)](_0x9d4c44){const _0x15fc0f=_0x7e919d;return this[_0x15fc0f(0x153)](_0x9d4c44)?_0x28228d(_0x9d4c44,_0x15fc0f(0x12b)):this[_0x15fc0f(0x12f)]();}[_0x7e919d(0x127)](_0x1c5a2e){const _0x409c2b=_0x7e919d;_0x5d3d7c(_0x1c5a2e)[_0x409c2b(0x146)](_0x3c6610=>this[_0x409c2b(0x141)](_0x3c6610)||this[_0x409c2b(0x164)](_0x3c6610))[_0x409c2b(0x132)](_0x25e404=>{_0x27d151(_0x25e404);});}[_0x7e919d(0x151)](_0x346485){const _0x6dc2d8=_0x7e919d,_0x1fe570=_0x346485[_0x6dc2d8(0x138)],_0x41f98c=_0x1fe570[_0x1fe570[_0x6dc2d8(0x120)]-0x1];_0x41f98c&&_0x128640(_0x41f98c)&&_0x44cb48(_0x41f98c,_0x6dc2d8(0x144),_0x6dc2d8(0x143));}[_0x7e919d(0x160)](_0x26d6e5,_0xbb6a31){const _0x5247ec=_0x7e919d,_0x25ca2f=_0x1e3a96(_0x5247ec(0x144),_0x5247ec(0x143),_0x26d6e5);if(!_0x25ca2f)return;const _0x408ab4=_0x5dfad1(_0x25ca2f)[_0x5247ec(0x14c)](0x0,-0x1),_0x201ded=_0x408ab4[_0x5247ec(0x120)];let _0x618f8=_0x25ca2f;if(_0x201ded>_0xbb6a31){let _0x2785d9=_0x201ded,_0x28e8a0=null;for(;_0x2785d9>_0xbb6a31&&_0x2785d9>=0x0;)_0x2785d9--,_0x28e8a0=_0x408ab4[_0x2785d9];_0x28e8a0&&(_0x618f8=_0x28e8a0,_0x44cb48(_0x25ca2f,_0x5247ec(0x144),null),_0x44cb48(_0x28e8a0,_0x5247ec(0x144),_0x5247ec(0x143)));}else{if(_0x201ded<_0xbb6a31){let _0x6f7511=_0x201ded,_0x3044a4=_0x25ca2f;for(;_0x6f7511<_0xbb6a31;){const _0x235ee2=_0x3044a4[_0x5247ec(0x138)][_0x5247ec(0x146)](_0x523507=>_0x128640(_0x523507));if(0x0===_0x235ee2[_0x5247ec(0x120)])break;_0x6f7511++,_0x3044a4=_0x235ee2[_0x235ee2[_0x5247ec(0x120)]-0x1];}_0x3044a4&&(_0x618f8=_0x3044a4,_0x44cb48(_0x25ca2f,_0x5247ec(0x144),null),_0x44cb48(_0x3044a4,_0x5247ec(0x144),_0x5247ec(0x143)));}}let _0x1e913f=_0x618f8;for(;_0x1e913f;){for(;_0x1e913f[_0x5247ec(0x13a)];)_0x1e913f=_0x1e913f[_0x5247ec(0x13a)],_0x128640(_0x1e913f)&&_0x44cb48(_0x1e913f,_0x5247ec(0x144),_0x5247ec(0x143));_0x1e913f=_0x1e913f[_0x5247ec(0x128)];}}[_0x7e919d(0x161)](_0x2f4aa9){const _0x5edc9f=_0x7e919d;return Boolean(_0x5edc9f(0x129)===_0x28228d(_0x2f4aa9,_0x5edc9f(0x12b)));}[_0x7e919d(0x153)](_0x1266b7){const _0x4ca413=_0x7e919d;return Boolean((_0x28228d(_0x1266b7,_0x4ca413(0x12b))||'')[_0x4ca413(0x120)]>0x0&&_0x4ca413(0x129)!==_0x28228d(_0x1266b7,_0x4ca413(0x12b)));}[_0x7e919d(0x141)](_0x464157){const _0x4fa89b=_0x7e919d;return!!_0x464157&&Boolean(_0x1822e7(_0x464157)&&_0x4c3448(_0x464157)[_0x4fa89b(0x136)](/removed[\s*-]data-id="[^"]+"/));}[_0x7e919d(0x137)](_0x4c7614){const _0x278fe7=_0x7e919d;let _0x2a6f40=_0x4c7614[_0x278fe7(0x128)];for(;_0x2a6f40;){if(_0x28228d(_0x2a6f40,_0x278fe7(0x12e)))return!0x0;_0x2a6f40=_0x2a6f40[_0x278fe7(0x128)];}return!0x1;}[_0x7e919d(0x164)](_0x271c51){const _0x2fb5d4=_0x7e919d;return Boolean(_0x1822e7(_0x271c51)&&_0x4c3448(_0x271c51)[_0x2fb5d4(0x136)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x488bb6=_0x5a6f;(function(_0x6f22fb,_0x325ad0){const _0x305ed1=_0x5a6f,_0x32f94d=_0x6f22fb();while(!![]){try{const _0x258390=-parseInt(_0x305ed1(0xc0))/0x1*(parseInt(_0x305ed1(0xb0))/0x2)+parseInt(_0x305ed1(0xb4))/0x3+-parseInt(_0x305ed1(0xbd))/0x4+parseInt(_0x305ed1(0xb7))/0x5+parseInt(_0x305ed1(0xbe))/0x6+parseInt(_0x305ed1(0xb5))/0x7+-parseInt(_0x305ed1(0xb8))/0x8*(-parseInt(_0x305ed1(0xb6))/0x9);if(_0x258390===_0x325ad0)break;else _0x32f94d['push'](_0x32f94d['shift']());}catch(_0x5a2e43){_0x32f94d['push'](_0x32f94d['shift']());}}}(_0x127f,0x67a33));function _0x5a6f(_0x520f5c,_0x104ed0){const _0x127f77=_0x127f();return _0x5a6f=function(_0x5a6f7a,_0x121e5f){_0x5a6f7a=_0x5a6f7a-0xaf;let _0x2b6d32=_0x127f77[_0x5a6f7a];return _0x2b6d32;},_0x5a6f(_0x520f5c,_0x104ed0);}import{ObservableMixin as _0xd23045}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0xb58d9f}from'@ckeditor/ckeditor5-markdown-gfm';function _0x127f(){const _0x536c46=['</dummy>','convertMarkdownToHTML','children','1693020yVCymS','1405390MXjHtC','981kEoyOj','3808605npawai','4728bfUUUc','_m2html','replace','parse','_parseHTML','3251444NBRAnK','625506kicNJa','<dummy>','458141eGrLDg','parseAndNormalizeHTML','2Qvaoev'];_0x127f=function(){return _0x536c46;};return _0x127f();}import{parse as _0x16f7a9}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xd23045(){[_0x488bb6(0xb9)];constructor(){const _0x4f49aa=_0x488bb6;super(),this[_0x4f49aa(0xb9)]=new _0xb58d9f();}[_0x488bb6(0xb2)](_0x53fb1d){const _0x2091d9=_0x488bb6,_0x4c0c2b=this[_0x2091d9(0xb9)][_0x2091d9(0xbb)](_0x53fb1d);return this[_0x2091d9(0xaf)](_0x4c0c2b);}[_0x488bb6(0xaf)](_0x20914f){const _0x2b9271=_0x488bb6;return this[_0x2b9271(0xbc)](_0x20914f);}[_0x488bb6(0xbc)](_0x20a1a2){const _0x8e3c7d=_0x488bb6,_0x1ce2fc=_0x20a1a2[_0x8e3c7d(0xba)](/^\t+/gm,'\x20')[_0x8e3c7d(0xba)](/\n*/g,'')[_0x8e3c7d(0xba)](/\s+/g,'\x20')[_0x8e3c7d(0xba)](/<[^>]*?$/g,''),_0x1c2676=_0x16f7a9(_0x8e3c7d(0xbf)+_0x1ce2fc+_0x8e3c7d(0xb1));return _0x1c2676[_0x8e3c7d(0xb3)]=_0x1c2676[_0x8e3c7d(0xb3)][0x0][_0x8e3c7d(0xb3)],_0x1c2676;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x41b6(){var _0x19c34c=['3706122rfVhBv','AI_DISCLAIMER_TEXT','2118672oDeTZp','ck-ai-disclaimer','3Kxzeze','1181870lkDbsU','div','135192BxEIoz','3916615GNFZsa','1531502fDbNPv','5475024JGdMse','setTemplate','ck-ai-disclaimer__content'];_0x41b6=function(){return _0x19c34c;};return _0x41b6();}(function(_0x355eca,_0x585d00){var _0xeef9ee=_0x3e30,_0x520fdf=_0x355eca();while(!![]){try{var _0x1d200a=parseInt(_0xeef9ee(0x1af))/0x1+-parseInt(_0xeef9ee(0x1ba))/0x2*(-parseInt(_0xeef9ee(0x1b9))/0x3)+-parseInt(_0xeef9ee(0x1b2))/0x4+parseInt(_0xeef9ee(0x1b0))/0x5+parseInt(_0xeef9ee(0x1b5))/0x6+parseInt(_0xeef9ee(0x1b1))/0x7+-parseInt(_0xeef9ee(0x1b7))/0x8;if(_0x1d200a===_0x585d00)break;else _0x520fdf['push'](_0x520fdf['shift']());}catch(_0x1d848c){_0x520fdf['push'](_0x520fdf['shift']());}}}(_0x41b6,0xade8d));import{View as _0x1a8209}from'ckeditor5/src/ui.js';function _0x3e30(_0x5410a8,_0xb48be5){var _0x41b6e9=_0x41b6();return _0x3e30=function(_0x3e3053,_0x5c0c1d){_0x3e3053=_0x3e3053-0x1ae;var _0x48dea3=_0x41b6e9[_0x3e3053];return _0x48dea3;},_0x3e30(_0x5410a8,_0xb48be5);}import{getTranslation as _0x28a101}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x1a8209{constructor(_0x10dcbc){var _0x316a44=_0x3e30;super(_0x10dcbc),this[_0x316a44(0x1b3)]({'tag':_0x316a44(0x1ae),'attributes':{'class':['ck',_0x316a44(0x1b8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x316a44(0x1b4)]},'children':[{'text':_0x28a101(_0x10dcbc,_0x316a44(0x1b6))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x442c5e=_0x1c1d;function _0x1c1d(_0x403a80,_0x42a7c1){const _0x378395=_0x3783();return _0x1c1d=function(_0x1c1d73,_0x4fd45e){_0x1c1d73=_0x1c1d73-0xf2;let _0x4419bc=_0x378395[_0x1c1d73];return _0x4419bc;},_0x1c1d(_0x403a80,_0x42a7c1);}(function(_0x4730b2,_0x2482e6){const _0x4a6a2a=_0x1c1d,_0x3af022=_0x4730b2();while(!![]){try{const _0x1637b3=-parseInt(_0x4a6a2a(0x101))/0x1+parseInt(_0x4a6a2a(0x114))/0x2*(-parseInt(_0x4a6a2a(0x117))/0x3)+parseInt(_0x4a6a2a(0x10b))/0x4*(-parseInt(_0x4a6a2a(0x11b))/0x5)+parseInt(_0x4a6a2a(0xf8))/0x6+-parseInt(_0x4a6a2a(0xf4))/0x7*(parseInt(_0x4a6a2a(0x109))/0x8)+-parseInt(_0x4a6a2a(0x10f))/0x9*(-parseInt(_0x4a6a2a(0xfb))/0xa)+-parseInt(_0x4a6a2a(0x103))/0xb*(-parseInt(_0x4a6a2a(0xf6))/0xc);if(_0x1637b3===_0x2482e6)break;else _0x3af022['push'](_0x3af022['shift']());}catch(_0x3d36e1){_0x3af022['push'](_0x3af022['shift']());}}}(_0x3783,0x34703));import{View as _0x302eed}from'ckeditor5/src/ui.js';function _0x3783(){const _0x2ffb86=['ck-ai-skeleton__item','104Pxewmz',';\x20height:\x20','811596wlbWhw','class','fill','44px','1602jIhnpv','150px','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','map','170mqYtXw','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','align','753aOksIO','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','140px','100%','10dvpyet','24px','width','setTemplate','150675hBenlQ','40px','192aPJsoZ','88px','518274CWKYhS','center','left','3980eVIVLl','attributes','_createSkeletonItems','72px','tag','height','266854dLtbbU','ck-ai-skeleton','709071rGimoc','width:\x20','right','div','250px'];_0x3783=function(){return _0x2ffb86;};return _0x3783();}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x302eed{constructor(_0x39f661,_0x19038a){const _0x23b3bb=_0x1c1d;super(_0x39f661),this[_0x23b3bb(0xf3)]({'tag':_0x23b3bb(0x106),'attributes':{'class':['ck',_0x23b3bb(0x102)]},'children':this[_0x23b3bb(0xfd)](_0x19038a)});}[_0x442c5e(0xfd)](_0x45a48a){const _0x16f5bf=_0x442c5e,_0x4a8db8=['ck',_0x16f5bf(0x108)];return _0x45a48a[_0x16f5bf(0x113)](_0x27c09f=>{const _0x5088b4=_0x16f5bf;let _0x14edcd='';switch(_0x27c09f[_0x5088b4(0xfc)][_0x5088b4(0x116)]){case _0x5088b4(0x105):_0x14edcd=_0x5088b4(0x118);break;case _0x5088b4(0xf9):_0x14edcd=_0x5088b4(0x115);break;case _0x5088b4(0xfa):_0x14edcd=_0x5088b4(0x112);}return{'tag':_0x27c09f[_0x5088b4(0xff)],'attributes':{'class':[..._0x4a8db8,_0x27c09f[_0x5088b4(0xfc)][_0x5088b4(0x10c)]?_0x27c09f[_0x5088b4(0xfc)][_0x5088b4(0x10c)]:''],'style':_0x5088b4(0x104)+_0x27c09f[_0x5088b4(0xfc)][_0x5088b4(0xf2)]+_0x5088b4(0x10a)+_0x27c09f[_0x5088b4(0xfc)][_0x5088b4(0x100)]+';'+_0x14edcd}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x11a),'height':_0x442c5e(0xfe),'align':_0x442c5e(0x105)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x107),'height':_0x442c5e(0xf5),'align':_0x442c5e(0x105)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x11a),'height':_0x442c5e(0xf7),'align':_0x442c5e(0x105)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x110),'height':_0x442c5e(0xf5),'align':_0x442c5e(0x105)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x11a),'height':_0x442c5e(0x119),'align':_0x442c5e(0x105)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x107),'height':_0x442c5e(0xf5),'align':_0x442c5e(0x105)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x11a),'height':_0x442c5e(0xf7),'align':_0x442c5e(0x105)}}],'aiHistory':ta(0x5,_0x442c5e(0x11a),_0x442c5e(0x10e),_0x442c5e(0x105)),'aiChatResources':ta(0x8,_0x442c5e(0x11a),_0x442c5e(0x11c),_0x442c5e(0x105)),'aiReviewChecks':[{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x111),'height':_0x442c5e(0x11c),'align':_0x442c5e(0xfa)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x11a),'height':_0x442c5e(0x11c),'align':_0x442c5e(0xfa)}},{'tag':_0x442c5e(0x106),'attributes':{'width':_0x442c5e(0x111),'height':_0x442c5e(0x11c),'align':_0x442c5e(0xfa)}}]};function ta(_0x1e47b6,_0x140b4e,_0xf0d3a,_0x40317b){const _0x40b5d2=_0x442c5e;return new Array(_0x1e47b6)[_0x40b5d2(0x10d)](null)[_0x40b5d2(0x113)](()=>({'tag':_0x40b5d2(0x106),'attributes':{'width':_0x140b4e,'height':_0xf0d3a,'align':_0x40317b}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2190(_0x5cd675,_0x11d6d1){const _0x2b32cf=_0x2b32();return _0x2190=function(_0x21907d,_0x1ec634){_0x21907d=_0x21907d-0xc7;let _0x275d15=_0x2b32cf[_0x21907d];return _0x275d15;},_0x2190(_0x5cd675,_0x11d6d1);}(function(_0x300435,_0x24c6c0){const _0x1be9ab=_0x2190,_0x3be7c5=_0x300435();while(!![]){try{const _0x5dbfcd=-parseInt(_0x1be9ab(0xd3))/0x1+-parseInt(_0x1be9ab(0xcf))/0x2+-parseInt(_0x1be9ab(0xd1))/0x3*(parseInt(_0x1be9ab(0xd4))/0x4)+parseInt(_0x1be9ab(0xcc))/0x5*(-parseInt(_0x1be9ab(0xd2))/0x6)+parseInt(_0x1be9ab(0xcd))/0x7+-parseInt(_0x1be9ab(0xd0))/0x8+-parseInt(_0x1be9ab(0xc9))/0x9*(-parseInt(_0x1be9ab(0xce))/0xa);if(_0x5dbfcd===_0x24c6c0)break;else _0x3be7c5['push'](_0x3be7c5['shift']());}catch(_0x3b34d5){_0x3be7c5['push'](_0x3be7c5['shift']());}}}(_0x2b32,0x650e5));import{SpinnerView as _0x1e96e2}from'ckeditor5/src/ui.js';function _0x2b32(){const _0x1d2b52=['284094UVTkRU','2931776FcMVEf','123jfFbYb','3770088PSKvFi','729144fKUwUs','75092HcZuYr','ck-ai-spinner_','ck-ai-spinner','154134SqtCnU','extendTemplate','span','5VnHPrb','1327109OrqHYI','1670EqGRoF'];_0x2b32=function(){return _0x1d2b52;};return _0x2b32();}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x1e96e2{constructor(_0x293798=void 0x0){const _0xbffc0a=_0x2190;super();const _0x5672c1=_0x293798?_0xbffc0a(0xc7)+_0x293798:'';this[_0xbffc0a(0xca)]({'tag':_0xbffc0a(0xcb),'attributes':{'class':[_0xbffc0a(0xc8),_0x5672c1]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1909b5=_0x2395;(function(_0x1e6074,_0x54351b){const _0x3003df=_0x2395,_0x29e288=_0x1e6074();while(!![]){try{const _0x5846e2=parseInt(_0x3003df(0x124))/0x1*(parseInt(_0x3003df(0x114))/0x2)+parseInt(_0x3003df(0x12a))/0x3+-parseInt(_0x3003df(0x133))/0x4+-parseInt(_0x3003df(0x135))/0x5+-parseInt(_0x3003df(0x11d))/0x6+-parseInt(_0x3003df(0x111))/0x7*(parseInt(_0x3003df(0x119))/0x8)+-parseInt(_0x3003df(0x116))/0x9*(-parseInt(_0x3003df(0x122))/0xa);if(_0x5846e2===_0x54351b)break;else _0x29e288['push'](_0x29e288['shift']());}catch(_0x58d86f){_0x29e288['push'](_0x29e288['shift']());}}}(_0x563d,0x2f701));import{ButtonView as _0xac2b4d,IconView as _0x59dc03,ToolbarView as _0x459fdb}from'ckeditor5/src/ui.js';function _0x563d(){const _0x2cc78b=['class','789774PlZCyf','_setupRatingButtons','addMany','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','AI_MINI_TOOLBAR_DISLIKE','extendTemplate','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','dislikeButton','158304iQTbgN','_config','1306700eIwosh','_setupCopyButton','add','showCopy','bind','showLike','showChanges','ck-ai-mini-toolbar\x20ck-hidden','likeButton','fire','full','ck-ai-mini-toolbar-copy-button','ck-ai-mini-toolbar','isEnabled','length','copyButton','children','isOn','147ogHDXN','items','AI_MINI_TOOLBAR_COPY','9854BhTEil','customView','18dNfziX','icon','set','1376zxzZIJ','ck-ai-button-tertiary','AI_MINI_TOOLBAR_LIKE','ck-ai-mini-toolbar-copy-button__check-mark','2258382TIptfX','toggleShowChanges','execute','_setupShowChangesButton','locale','1138330NzGrOf','showChangesButton','78nRNXbt','like','toggleShowChangesEnabled','isShowChangesOn','showDislike'];_0x563d=function(){return _0x2cc78b;};return _0x563d();}import{IconCheck as _0x1d29cb,IconCopy as _0x44762b,IconShowChangesOff as _0x2c071c,IconShowChangesOn as _0x10f224,IconThumbDown as _0x4296a4,IconThumbUp as _0x24eb15}from'@ckeditor/ckeditor5-icons';function _0x2395(_0x1e7396,_0x4ee101){const _0x563d0e=_0x563d();return _0x2395=function(_0x2395fc,_0x4a9a1a){_0x2395fc=_0x2395fc-0x106;let _0x301b2a=_0x563d0e[_0x2395fc];return _0x301b2a;},_0x2395(_0x1e7396,_0x4ee101);}import{getTranslation as _0xc8924e}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x459fdb{[_0x1909b5(0x10e)];[_0x1909b5(0x107)];[_0x1909b5(0x132)];[_0x1909b5(0x123)];[_0x1909b5(0x134)];constructor(_0x509b9d,_0x4b4e5e={}){const _0x2c957f=_0x1909b5;super(_0x509b9d),this[_0x2c957f(0x118)](_0x2c957f(0x10c),!0x0),this[_0x2c957f(0x118)](_0x2c957f(0x127),!0x1),this[_0x2c957f(0x134)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x4b4e5e};const _0x2fe8c4=!(this[_0x2c957f(0x134)][_0x2c957f(0x138)]||this[_0x2c957f(0x134)][_0x2c957f(0x13b)]||this[_0x2c957f(0x134)][_0x2c957f(0x13a)]||this[_0x2c957f(0x134)][_0x2c957f(0x128)]||this[_0x2c957f(0x134)][_0x2c957f(0x115)]?.[_0x2c957f(0x10d)]);this[_0x2c957f(0x129)]=_0x2fe8c4?_0x2c957f(0x106):_0x2c957f(0x10b),this[_0x2c957f(0x134)][_0x2c957f(0x138)]&&(this[_0x2c957f(0x136)](),this[_0x2c957f(0x112)][_0x2c957f(0x137)](this[_0x2c957f(0x10e)])),this[_0x2c957f(0x134)][_0x2c957f(0x13b)]&&(this[_0x2c957f(0x120)](),this[_0x2c957f(0x112)][_0x2c957f(0x137)](this[_0x2c957f(0x123)])),this[_0x2c957f(0x12b)](),this[_0x2c957f(0x134)][_0x2c957f(0x13a)]&&this[_0x2c957f(0x112)][_0x2c957f(0x137)](this[_0x2c957f(0x107)]),this[_0x2c957f(0x134)][_0x2c957f(0x128)]&&this[_0x2c957f(0x112)][_0x2c957f(0x137)](this[_0x2c957f(0x132)]),this[_0x2c957f(0x134)][_0x2c957f(0x115)]&&this[_0x2c957f(0x112)][_0x2c957f(0x12c)](this[_0x2c957f(0x134)][_0x2c957f(0x115)]);}[_0x1909b5(0x126)](_0x2ab6f5){const _0x4afb1b=_0x1909b5;this[_0x4afb1b(0x123)][_0x4afb1b(0x10c)]=_0x2ab6f5;}[_0x1909b5(0x12b)](){const _0x177d29=_0x1909b5;this[_0x177d29(0x107)]=new _0xac2b4d(this[_0x177d29(0x121)]),this[_0x177d29(0x107)][_0x177d29(0x118)]({'icon':_0x24eb15,'label':_0xc8924e(this[_0x177d29(0x121)],_0x177d29(0x11b)),'tooltip':!0x0}),this[_0x177d29(0x107)][_0x177d29(0x139)](_0x177d29(0x10c))['to'](this),this[_0x177d29(0x107)]['on'](_0x177d29(0x11f),()=>{const _0x221513=_0x177d29;this[_0x221513(0x108)](_0x221513(0x125));}),this[_0x177d29(0x132)]=new _0xac2b4d(this[_0x177d29(0x121)]),this[_0x177d29(0x132)][_0x177d29(0x118)]({'icon':_0x4296a4,'label':_0xc8924e(this[_0x177d29(0x121)],_0x177d29(0x12e)),'tooltip':!0x0}),this[_0x177d29(0x132)][_0x177d29(0x139)](_0x177d29(0x10c))['to'](this),this[_0x177d29(0x132)]['on'](_0x177d29(0x11f),()=>{const _0x390520=_0x177d29;this[_0x390520(0x108)](_0x390520(0x131));});}[_0x1909b5(0x136)](){const _0x2ba484=_0x1909b5;this[_0x2ba484(0x10e)]=new _0xac2b4d(this[_0x2ba484(0x121)]),this[_0x2ba484(0x10e)][_0x2ba484(0x118)]({'icon':_0x44762b,'label':_0xc8924e(this[_0x2ba484(0x121)],_0x2ba484(0x113)),'class':_0x2ba484(0x10a),'tooltip':!0x0}),this[_0x2ba484(0x10e)][_0x2ba484(0x139)](_0x2ba484(0x10c))['to'](this);const _0x564bfe=new _0x59dc03();_0x564bfe[_0x2ba484(0x118)]({'content':_0x1d29cb}),_0x564bfe[_0x2ba484(0x12f)]({'attributes':{'class':[_0x2ba484(0x11c)]}}),this[_0x2ba484(0x10e)]['on'](_0x2ba484(0x11f),()=>{const _0x1ea467=_0x2ba484;this[_0x1ea467(0x10e)][_0x1ea467(0x129)]=_0x1ea467(0x12d),setTimeout(()=>{const _0x1af004=_0x1ea467;this[_0x1af004(0x10e)][_0x1af004(0x129)]=_0x1af004(0x10a);},0x7d0);}),this[_0x2ba484(0x10e)][_0x2ba484(0x10f)][_0x2ba484(0x137)](_0x564bfe);}[_0x1909b5(0x120)](){const _0x341b59=_0x1909b5;this[_0x341b59(0x123)]=new _0xac2b4d(this[_0x341b59(0x121)]),this[_0x341b59(0x123)][_0x341b59(0x118)]({'icon':_0x2c071c,'label':_0xc8924e(this[_0x341b59(0x121)],_0x341b59(0x130)),'withText':_0x341b59(0x109)==this[_0x341b59(0x134)][_0x341b59(0x13b)],'tooltip':_0x341b59(0x109)!=this[_0x341b59(0x134)][_0x341b59(0x13b)],'class':_0x341b59(0x11a)}),this[_0x341b59(0x123)][_0x341b59(0x139)](_0x341b59(0x110))['to'](this,_0x341b59(0x127)),this[_0x341b59(0x123)][_0x341b59(0x139)](_0x341b59(0x10c))['to'](this),this[_0x341b59(0x123)][_0x341b59(0x139)](_0x341b59(0x117))['to'](this,_0x341b59(0x127),_0x48dc54=>_0x48dc54?_0x10f224:_0x2c071c),this[_0x341b59(0x123)]['on'](_0x341b59(0x11f),()=>{const _0x2994da=_0x341b59;this[_0x2994da(0x108)](_0x2994da(0x11e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6161a3=_0x14e8;(function(_0xe623b0,_0x55126f){const _0x28bb51=_0x14e8,_0x39ee15=_0xe623b0();while(!![]){try{const _0x629638=-parseInt(_0x28bb51(0x152))/0x1+-parseInt(_0x28bb51(0x164))/0x2*(parseInt(_0x28bb51(0x168))/0x3)+parseInt(_0x28bb51(0x161))/0x4+-parseInt(_0x28bb51(0x155))/0x5*(-parseInt(_0x28bb51(0x13d))/0x6)+parseInt(_0x28bb51(0x12d))/0x7+parseInt(_0x28bb51(0x133))/0x8+parseInt(_0x28bb51(0x157))/0x9*(parseInt(_0x28bb51(0x12a))/0xa);if(_0x629638===_0x55126f)break;else _0x39ee15['push'](_0x39ee15['shift']());}catch(_0x193564){_0x39ee15['push'](_0x39ee15['shift']());}}}(_0x4dfc,0x83ac9));import{View as _0x43d956}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x4f9119}from'./aisuggestioncontentpartview.js';function _0x4dfc(){const _0x1a0cd8=['warning','hasPendingParts','updateSources','ck-ai-suggestion__body__content-parts','AI_SUGGESTION_EMPTY_PART_WARNING','_cachedContentParts','push','782208DyfWqi','div','hasNonEmptyParts','10jadzSs','set','partsCount','updateContentParts','558252nYBqhc','_sourcesView','from','_showUnchangedParts','_emptyPartsWarningView','_switchButtonLabelsPlurality','ck-ai-suggestion__body','availableActions','isTrackChangesOn','1348990XkRCfc','updateVisibility','setTemplate','5997957WEoXyC','createCollection','isActive','isEnabled','_actionsView','partDefinition','2588088QIbNJa','add','enqueue','pending','locale','findIndex','filter','getPartView','updatePartState','markAsDone','46674oGfREP','abort','forEach','bodyCollection','setPartActive','isVisible','some','hasChanges','delegate','bind','setContent','_availableActions','_children','_updateContentPartsPromiseQueue','find','queueEmptyPromise','length','AI_SUGGESTION_NO_PARTS_WARNING','updateContent','_areActionsDisabled','addSource','492238kNWsjc','index','state','290tGmmfB','areActionsDisabled','9thzwoY','addEventListener','empty-parts-warning'];_0x4dfc=function(){return _0x1a0cd8;};return _0x4dfc();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2d2656}from'../../utils/eventnames.js';import{PromiseQueue as _0x542e07}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x4362f8}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x14e8(_0x1deb9a,_0x3060b9){const _0x4dfcba=_0x4dfc();return _0x14e8=function(_0x14e86a,_0x2dc371){_0x14e86a=_0x14e86a-0x129;let _0x12d9e3=_0x4dfcba[_0x14e86a];return _0x12d9e3;},_0x14e8(_0x1deb9a,_0x3060b9);}import{getTranslation as _0xe02db6}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x2a2a86}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x17fdde}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x43d956{[_0x6161a3(0x131)];[_0x6161a3(0x169)];[_0x6161a3(0x149)];[_0x6161a3(0x150)];[_0x6161a3(0x16b)];[_0x6161a3(0x14a)];[_0x6161a3(0x16c)];[_0x6161a3(0x148)];[_0x6161a3(0x15f)]=[];constructor(_0x564621,_0xe5b24b){const _0x1c5225=_0x6161a3;super(_0x564621);const {areActionsDisabled:_0x55e8dd,showUnchangedParts:_0x3b272f,availableActions:_0x230bfd}=_0xe5b24b;this[_0x1c5225(0x150)]=_0x55e8dd,this[_0x1c5225(0x16b)]=_0x3b272f,this[_0x1c5225(0x148)]=_0x230bfd,this[_0x1c5225(0x165)](_0x1c5225(0x15b),!0x1),this[_0x1c5225(0x165)](_0x1c5225(0x129),!0x1),this[_0x1c5225(0x149)]=this[_0x1c5225(0x12e)](),this[_0x1c5225(0x14a)]=new _0x542e07(),this[_0x1c5225(0x16c)]=new _0x4362f8({'id':_0x1c5225(0x159),'initialContent':_0xe02db6(_0x564621,_0x1c5225(0x15e)),'level':_0x1c5225(0x15a)}),this[_0x1c5225(0x16c)][_0x1c5225(0x142)]=!0x1,this[_0x1c5225(0x131)]=new _0x2a2a86(_0x564621,_0xe5b24b[_0x1c5225(0x16f)],this[_0x1c5225(0x150)]),this[_0x1c5225(0x131)][_0x1c5225(0x146)](_0x1c5225(0x129))['to'](this),this[_0x1c5225(0x169)]=new _0x17fdde(this[_0x1c5225(0x137)],_0xe5b24b[_0x1c5225(0x140)]),_0xe5b24b[_0x1c5225(0x156)]?this[_0x1c5225(0x131)][_0x1c5225(0x130)]=!0x1:this[_0x1c5225(0x131)][_0x1c5225(0x146)](_0x1c5225(0x130))['to'](this,_0x1c5225(0x15b)),this[_0x1c5225(0x131)][_0x1c5225(0x145)](..._0x2d2656)['to'](this),this[_0x1c5225(0x12c)]({'tag':_0x1c5225(0x162),'attributes':{'class':['ck',_0x1c5225(0x16e)]},'children':[{'tag':_0x1c5225(0x162),'attributes':{'class':['ck',_0x1c5225(0x15d)]},'children':this[_0x1c5225(0x149)]},this[_0x1c5225(0x16c)],this[_0x1c5225(0x131)],this[_0x1c5225(0x169)]]});}get[_0x6161a3(0x166)](){const _0x6fbc33=_0x6161a3;return this[_0x6fbc33(0x149)][_0x6fbc33(0x14d)];}async[_0x6161a3(0x167)]({parts:_0x534398,renderingStrategy:_0x30c486,abortSignal:_0x277a59}){const _0x2b16ee=_0x6161a3;this[_0x2b16ee(0x149)][_0x2b16ee(0x14d)]?_0x534398[_0x2b16ee(0x13f)](_0x50694b=>{const _0x403699=_0x2b16ee,_0x154f95=this[_0x403699(0x15f)][_0x403699(0x138)](_0x3027ff=>_0x3027ff[_0x403699(0x153)]==_0x50694b[_0x403699(0x153)]);-0x1===_0x154f95?this[_0x403699(0x15f)][_0x403699(0x160)](_0x50694b):this[_0x403699(0x15f)][_0x154f95]=_0x50694b;}):this[_0x2b16ee(0x15f)]=_0x534398;const _0x24114b=this[_0x2b16ee(0x16b)]?_0x534398:_0x534398[_0x2b16ee(0x139)](_0x272730=>_0x272730[_0x2b16ee(0x144)]);this[_0x2b16ee(0x131)][_0x2b16ee(0x16d)](_0x24114b[_0x2b16ee(0x14d)]>0x1);for(const _0x52b6dc of _0x24114b)this[_0x2b16ee(0x14a)][_0x2b16ee(0x135)](async _0x28bd46=>{const _0x1fcf1e=_0x2b16ee;let _0x376532=this[_0x1fcf1e(0x13a)](_0x52b6dc[_0x1fcf1e(0x153)]);_0x376532||(_0x376532=new _0x4f9119(this[_0x1fcf1e(0x137)],{'part':_0x52b6dc,'uiIndex':this[_0x1fcf1e(0x149)][_0x1fcf1e(0x14d)]+0x1,'areActionsDisabled':this[_0x1fcf1e(0x150)],'availableActions':this[_0x1fcf1e(0x148)]}),_0x376532[_0x1fcf1e(0x145)](..._0x2d2656)['to'](this),this[_0x1fcf1e(0x149)][_0x1fcf1e(0x134)](_0x376532),this[_0x1fcf1e(0x15b)]=!0x0),await _0x376532[_0x1fcf1e(0x14f)]({'part':_0x52b6dc,'renderingStrategy':_0x30c486,'showUnchangedParts':this[_0x1fcf1e(0x16b)],'abortSignal':_0x28bd46}),_0x376532[_0x1fcf1e(0x13c)]();});return _0x277a59?.[_0x2b16ee(0x158)](_0x2b16ee(0x13e),()=>{const _0x10e708=_0x2b16ee;this[_0x10e708(0x14a)][_0x10e708(0x13e)]();}),this[_0x2b16ee(0x14a)][_0x2b16ee(0x14c)];}[_0x6161a3(0x13b)](_0x5e1d75,_0x35c5ec){const _0x5c8adb=_0x6161a3,_0x2b655f=this[_0x5c8adb(0x13a)](_0x5e1d75);_0x2b655f&&(_0x2b655f[_0x5c8adb(0x154)]=_0x35c5ec),this[_0x5c8adb(0x15b)]=_0x5c8adb(0x136)==_0x35c5ec||Array[_0x5c8adb(0x16a)](this[_0x5c8adb(0x149)])[_0x5c8adb(0x143)](_0x5cbb53=>_0x5c8adb(0x136)==_0x5cbb53[_0x5c8adb(0x154)]);}[_0x6161a3(0x141)](_0x56e2e2,_0x3fa932){const _0x31cf5c=_0x6161a3;if(!0x1===_0x56e2e2){for(const _0x478f76 of this[_0x31cf5c(0x149)])_0x478f76[_0x31cf5c(0x12f)]=!0x1;}else{const _0x150f01=this[_0x31cf5c(0x13a)](_0x56e2e2);_0x150f01&&(_0x150f01[_0x31cf5c(0x12f)]=_0x3fa932);}}[_0x6161a3(0x15c)](_0x40d836){const _0x4bf653=_0x6161a3;_0x40d836[_0x4bf653(0x13f)](_0x31fe68=>this[_0x4bf653(0x169)][_0x4bf653(0x151)](_0x31fe68)),this[_0x4bf653(0x169)][_0x4bf653(0x142)]=!0x0;}[_0x6161a3(0x13a)](_0x1ee1e0){const _0x1101ce=_0x6161a3;return this[_0x1101ce(0x149)][_0x1101ce(0x14b)](_0x266db5=>_0x266db5[_0x1101ce(0x132)][_0x1101ce(0x153)]==_0x1ee1e0)??null;}[_0x6161a3(0x13c)](){const _0x5d28a9=_0x6161a3;if(!this[_0x5d28a9(0x16b)]){const _0x587bd5=!this[_0x5d28a9(0x15f)][_0x5d28a9(0x14b)](({hasChanges:_0x2f604c})=>_0x2f604c),_0x50d57a=!!this[_0x5d28a9(0x15f)][_0x5d28a9(0x14b)](({hasChanges:_0x3a0e38})=>!_0x3a0e38);this[_0x5d28a9(0x16c)][_0x5d28a9(0x142)]=0x0==this[_0x5d28a9(0x149)][_0x5d28a9(0x14d)]||_0x50d57a,_0x587bd5?this[_0x5d28a9(0x16c)][_0x5d28a9(0x147)](_0xe02db6(this[_0x5d28a9(0x137)],_0x5d28a9(0x14e))):this[_0x5d28a9(0x16c)][_0x5d28a9(0x147)](_0xe02db6(this[_0x5d28a9(0x137)],_0x5d28a9(0x15e)));}this[_0x5d28a9(0x149)][_0x5d28a9(0x13f)](_0x34343e=>_0x34343e[_0x5d28a9(0x13c)]()),this[_0x5d28a9(0x131)][_0x5d28a9(0x12b)](this[_0x5d28a9(0x163)]);}get[_0x6161a3(0x163)](){const _0x34dea2=_0x6161a3;return this[_0x34dea2(0x149)][_0x34dea2(0x139)](_0xd2f641=>_0xd2f641[_0x34dea2(0x132)][_0x34dea2(0x144)])[_0x34dea2(0x14d)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x548fb3=_0x467f;(function(_0x150c4d,_0x5685c2){const _0x4b1cd6=_0x467f,_0x94aa0f=_0x150c4d();while(!![]){try{const _0x38167b=parseInt(_0x4b1cd6(0x9d))/0x1*(-parseInt(_0x4b1cd6(0xa7))/0x2)+parseInt(_0x4b1cd6(0x98))/0x3*(parseInt(_0x4b1cd6(0xa0))/0x4)+parseInt(_0x4b1cd6(0x91))/0x5+-parseInt(_0x4b1cd6(0xae))/0x6+parseInt(_0x4b1cd6(0x97))/0x7*(-parseInt(_0x4b1cd6(0x90))/0x8)+-parseInt(_0x4b1cd6(0x93))/0x9+parseInt(_0x4b1cd6(0x96))/0xa;if(_0x38167b===_0x5685c2)break;else _0x94aa0f['push'](_0x94aa0f['shift']());}catch(_0xbb5449){_0x94aa0f['push'](_0x94aa0f['shift']());}}}(_0x2db6,0xefee1));import{View as _0xa99f58}from'ckeditor5/src/ui.js';function _0x467f(_0x80a56,_0x37a3c0){const _0x2db651=_0x2db6();return _0x467f=function(_0x467f16,_0x374d38){_0x467f16=_0x467f16-0x90;let _0x104026=_0x2db651[_0x467f16];return _0x104026;},_0x467f(_0x80a56,_0x37a3c0);}import{AISuggestionHeaderView as _0x4cb615}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x3bf9b1}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x20578e}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';function _0x2db6(){const _0x4cb927=['updateContentParts','headerView','8QBMSuu','7753830euDsFj','add','887130pAvKky','toggleShowChanges','ck-rounded-corners','11635630TLjNJk','4943351dXGkXW','5767629TpOKXZ','setTemplate','delegate','bodyView','bind','4Wifqqk','isShowChangesToggleVisible','fire','4VNTKnj','markAsDone','hasNonEmptyParts','ck-ai-suggestion__container','children','set','isTrackChangesOn','886910MBgVcM','toggleSuggestionDisplayMode','div','isOn','createCollection','updateContent','updateSources','6453216swZkSA','areChangesVisible'];_0x2db6=function(){return _0x4cb927;};return _0x2db6();}export class AISuggestionContainerView extends _0xa99f58{[_0x548fb3(0x9b)];[_0x548fb3(0xa4)];[_0x548fb3(0xb1)];constructor(_0x326e58,_0x5b0aae,_0x4e8b79){const _0x32c562=_0x548fb3;super(_0x326e58);const {showDiff:_0x38e7d6,areActionsDisabled:_0x454446,showUnchangedParts:_0x4a42d0,availableActions:_0x1e794a}=_0x5b0aae;this[_0x32c562(0xa5)](_0x32c562(0xa6),!0x1),this[_0x32c562(0xa5)](_0x32c562(0xaf),!0x1),this[_0x32c562(0xa4)]=this[_0x32c562(0xab)](),this[_0x32c562(0xb1)]=new _0x4cb615(_0x326e58,{'showDiff':_0x38e7d6}),this[_0x32c562(0xb1)]['on'](_0x32c562(0x94),(_0x2b9d0d,_0x3fd5df)=>{const _0x14dc8e=_0x32c562;this[_0x14dc8e(0xaf)]=_0x3fd5df[_0x14dc8e(0xaa)],this[_0x14dc8e(0x9f)](_0x14dc8e(0xa8),{'showDiff':_0x3fd5df[_0x14dc8e(0xaa)]});}),this[_0x32c562(0xa4)][_0x32c562(0x92)](this[_0x32c562(0xb1)]),this[_0x32c562(0x9b)]=new _0x3bf9b1(_0x326e58,{'areActionsDisabled':_0x454446,'showUnchangedParts':!!_0x4a42d0,'availableActions':_0x1e794a,'bodyCollection':_0x4e8b79}),this[_0x32c562(0x9b)][_0x32c562(0x9a)](..._0x20578e)['to'](this),this[_0x32c562(0x9b)][_0x32c562(0x9c)](_0x32c562(0xa6))['to'](this),this[_0x32c562(0xa4)][_0x32c562(0x92)](this[_0x32c562(0x9b)]),this[_0x32c562(0x99)]({'tag':_0x32c562(0xa9),'attributes':{'class':['ck',_0x32c562(0xa3),_0x32c562(0x95)]},'children':this[_0x32c562(0xa4)]});}async[_0x548fb3(0xac)](_0x14676d){const _0x29a414=_0x548fb3;await this[_0x29a414(0x9b)][_0x29a414(0xb0)](_0x14676d);}[_0x548fb3(0xad)](_0x13cd3d){const _0x2d364c=_0x548fb3;this[_0x2d364c(0x9b)][_0x2d364c(0xad)](_0x13cd3d);}[_0x548fb3(0xa1)](){const _0x27c2b3=_0x548fb3;this[_0x27c2b3(0x9b)][_0x27c2b3(0xa1)](),this[_0x27c2b3(0xb1)]&&(this[_0x27c2b3(0xb1)][_0x27c2b3(0x9e)]=this[_0x27c2b3(0x9b)][_0x27c2b3(0xa2)]);}}
|