@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.0
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 _0x3bbbca=_0x4e9f;(function(_0x1fb34e,_0x5ac3cc){const _0x2486ec=_0x4e9f,_0x400ba0=_0x1fb34e();while(!![]){try{const _0x41c8da=parseInt(_0x2486ec(0x100))/0x1*(parseInt(_0x2486ec(0xf6))/0x2)+parseInt(_0x2486ec(0xcf))/0x3*(-parseInt(_0x2486ec(0xd1))/0x4)+-parseInt(_0x2486ec(0x101))/0x5*(parseInt(_0x2486ec(0xc7))/0x6)+-parseInt(_0x2486ec(0xda))/0x7+parseInt(_0x2486ec(0x10d))/0x8+parseInt(_0x2486ec(0xfd))/0x9+parseInt(_0x2486ec(0xd9))/0xa*(parseInt(_0x2486ec(0xec))/0xb);if(_0x41c8da===_0x5ac3cc)break;else _0x400ba0['push'](_0x400ba0['shift']());}catch(_0x105ecb){_0x400ba0['push'](_0x400ba0['shift']());}}}(_0x3526,0x3af08));import{CKEditorError as _0x452652,EmitterMixin as _0x3fdf9b,uid as _0xe7dad6}from'ckeditor5/src/utils.js';function _0x3526(){const _0x49258c=['isDestroyed','888363zXXIlG','reasoning','reasoningFinished','10eSenNC','572255MsombX','content','_isWebSearching','callId','splice','text','replies','source','replyCreated','webSearchFinished','abortController','resetWebSearchState','1258856AHGWjX','conversationTitle','webSearchStarted','interactionStarted','data','actionCallId','interactionDestroyed','web-search','interactionCreated','error','start','appendContent','connector','getDocumentContext','replyChangeGroupStateUpdated','modification-delta','ai-chat-interaction-error','currentReply','18Mznmeq','createReply','destroy','stopListening','abort','action-metadata','setConversationTitle','push','51501NlkOuq','parse','96JRxBIG','sources','text-delta','conversation-title','interactionFinished','_finalizeInteraction','interactionStopped','editor','1311230wNVgBx','2984506AqHPch','fire','resetReasoningState','forEach','message-metadata','event','modification','notification','replyContentUpdated','result','toolName','messageId','_handleToolNotificationData','mcp-tool-notification','find','getReply','sendRequest','currentRequest','77OkniqX','_isReasoning','stop','mcp-tool-result','isStopped','length','reasoningStarted','getStream','toolDataReceived','attributes','49842Iktapt','delegate','done','textDelta','type','_handleToolResultData'];_0x3526=function(){return _0x49258c;};return _0x3526();}import{AIReply as _0x235828}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x3bbbca(0xbd),_0x3bbbca(0xb8),_0x3bbbca(0xd7),_0x3bbbca(0xd5),_0x3bbbca(0xbb),_0x3bbbca(0x109),_0x3bbbca(0xe2),_0x3bbbca(0xc3),_0x3bbbca(0xcd),_0x3bbbca(0xb7),_0x3bbbca(0x10a),_0x3bbbca(0xf2),_0x3bbbca(0xff),_0x3bbbca(0xf4),_0x3bbbca(0xbe)];function _0x4e9f(_0x423d55,_0x31118f){const _0x352629=_0x3526();return _0x4e9f=function(_0x4e9f83,_0x4c2516){_0x4e9f83=_0x4e9f83-0xb7;let _0x51cb20=_0x352629[_0x4e9f83];return _0x51cb20;},_0x4e9f(_0x423d55,_0x31118f);}export class AIInteraction extends _0x3fdf9b(){['id'];[_0x3bbbca(0x107)]=[];[_0x3bbbca(0xc6)];[_0x3bbbca(0xe5)];[_0x3bbbca(0xba)];[_0x3bbbca(0xeb)];[_0x3bbbca(0xc1)];[_0x3bbbca(0xf0)]=!0x1;[_0x3bbbca(0xfc)]=!0x1;[_0x3bbbca(0xd8)];[_0x3bbbca(0xed)]=!0x1;[_0x3bbbca(0x103)]=!0x1;constructor({connector:_0x349f8e,editor:_0x5380b1}){const _0x4b64cb=_0x3bbbca;super(),this['id']=_0xe7dad6(),this[_0x4b64cb(0xc1)]=_0x349f8e,this[_0x4b64cb(0xf0)]=!0x0,this[_0x4b64cb(0xd8)]=_0x5380b1;}async[_0x3bbbca(0xbf)](){const _0x1d7979=_0x3bbbca,_0x223ddc=[];let _0x69b9ed,_0x426b41,_0x4135b5;this[_0x1d7979(0xf0)]=!0x1;try{this[_0x1d7979(0xeb)]=await this[_0x1d7979(0xea)](),this[_0x1d7979(0xdb)](_0x1d7979(0xb8),this);const _0x6d0dc4=await this[_0x1d7979(0xeb)][_0x1d7979(0xf3)]();for await(const _0x1bba60 of _0x6d0dc4){if(this[_0x1d7979(0xf0)])return;if(_0x1d7979(0xbe)==_0x1bba60[_0x1d7979(0xdf)])return void this[_0x1d7979(0xdb)](_0x1d7979(0xbe),{'error':new _0x452652(_0x1d7979(0xc5),this)});switch(_0x1bba60[_0x1d7979(0xdf)]){case _0x1d7979(0xde):this[_0x1d7979(0xe5)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe5)];break;case _0x1d7979(0xcc):this[_0x1d7979(0xba)]=_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x104)];break;case _0x1d7979(0xd4):this[_0x1d7979(0xcd)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x10e)],!0x0);break;case _0x1d7979(0x108):_0x223ddc[_0x1d7979(0xce)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0x108)]);break;case _0x1d7979(0xbc):this[_0x1d7979(0x103)]||(this[_0x1d7979(0x103)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xb7),this));break;case _0x1d7979(0xfe):this[_0x1d7979(0xed)]||(this[_0x1d7979(0xed)]=!0x0,this[_0x1d7979(0xdb)](_0x1d7979(0xf2),this));break;case _0x1d7979(0xc4):case _0x1d7979(0xd3):this[_0x1d7979(0xdc)](),this[_0x1d7979(0x10c)](),_0x69b9ed=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1d7979(0xe0):_0x1d7979(0x106),_0x426b41=_0x1d7979(0xc4)==_0x1bba60[_0x1d7979(0xdf)]?_0x1bba60[_0x1d7979(0xb9)]['id']:void 0x0,this[_0x1d7979(0xc6)]&&this[_0x1d7979(0xc6)][_0x1d7979(0xfa)]!=_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xf8)](),this[_0x1d7979(0xc6)]=void 0x0),this[_0x1d7979(0xc6)]||(this[_0x1d7979(0xc6)]=this[_0x1d7979(0xc8)]({'type':_0x69b9ed,'interactionId':this['id'],'id':_0x426b41}),_0x1d7979(0xe0)==_0x69b9ed&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0))),this[_0x1d7979(0xc6)][_0x1d7979(0xc0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xf9)]);break;case _0x1d7979(0xef):_0x4135b5=JSON[_0x1d7979(0xd0)](_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe3)]),this[_0x1d7979(0xfb)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x4135b5[_0x1d7979(0xb9)],'attributes':_0x4135b5[_0x1d7979(0xf5)]});break;case _0x1d7979(0xe7):this[_0x1d7979(0xe6)]({'toolName':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xe4)],'data':_0x1bba60[_0x1d7979(0xb9)][_0x1d7979(0xb9)]});}}}finally{this[_0x1d7979(0xf0)]||(this[_0x1d7979(0xc6)]&&_0x223ddc[_0x1d7979(0xf1)]>0x0&&(this[_0x1d7979(0xc6)][_0x1d7979(0xd2)]=_0x223ddc[_0x1d7979(0x105)](0x0)),this[_0x1d7979(0xd6)](),this[_0x1d7979(0xdb)](_0x1d7979(0xd5),this));}}[_0x3bbbca(0xee)](){const _0x4bd502=_0x3bbbca;this[_0x4bd502(0xf0)]||(this[_0x4bd502(0xd6)](),this[_0x4bd502(0xdb)](_0x4bd502(0xd7),this));}[_0x3bbbca(0xe9)](_0x7995b5){const _0x153350=_0x3bbbca;return this[_0x153350(0x107)][_0x153350(0xe8)](_0x2b6081=>_0x2b6081['id']===_0x7995b5);}[_0x3bbbca(0xc9)](){const _0x4d3381=_0x3bbbca;this[_0x4d3381(0xfc)]||(this[_0x4d3381(0xee)](),this[_0x4d3381(0x107)][_0x4d3381(0xdd)](_0x9e27d5=>_0x9e27d5[_0x4d3381(0xc9)]()),this[_0x4d3381(0x107)]=[],this[_0x4d3381(0xfc)]=!0x0,this[_0x4d3381(0xdb)](_0x4d3381(0xbb),this),this[_0x4d3381(0xca)]());}[_0x3bbbca(0xc8)](_0x3f0cc6){const _0xe9e2ee=_0x3bbbca,_0x253e71=new _0x235828({'editor':this[_0xe9e2ee(0xd8)],'documentContextContent':this[_0xe9e2ee(0xc2)]()?.[_0xe9e2ee(0x102)],..._0x3f0cc6});return this[_0xe9e2ee(0x107)][_0xe9e2ee(0xce)](_0x253e71),_0x253e71[_0xe9e2ee(0xf7)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe9e2ee(0xdb)](_0xe9e2ee(0x109),_0x253e71),_0x253e71;}[_0x3bbbca(0xcd)](_0xb1e4a,_0x52c7b3=!0x1){const _0x5c856c=_0x3bbbca;this[_0x5c856c(0xdb)](_0x5c856c(0xcd),_0xb1e4a,_0x52c7b3);}[_0x3bbbca(0x10c)](){const _0x46e9b9=_0x3bbbca;this[_0x46e9b9(0x103)]&&(this[_0x46e9b9(0x103)]=!0x1,this[_0x46e9b9(0xdb)](_0x46e9b9(0x10a),this));}[_0x3bbbca(0xdc)](){const _0x3d3e24=_0x3bbbca;this[_0x3d3e24(0xed)]&&(this[_0x3d3e24(0xed)]=!0x1,this[_0x3d3e24(0xdb)](_0x3d3e24(0xff),this));}[_0x3bbbca(0xfb)](_0x525322){const _0x21f596=_0x3bbbca;this[_0x21f596(0xdb)](_0x21f596(0xf4),{'type':_0x21f596(0xe3),'toolName':_0x525322[_0x21f596(0xe4)],'data':structuredClone(_0x525322[_0x21f596(0xb9)]||{}),'attributes':structuredClone(_0x525322[_0x21f596(0xf5)]||{})},this);}[_0x3bbbca(0xe6)](_0x54e687){const _0x3b700c=_0x3bbbca;this[_0x3b700c(0xdb)](_0x3b700c(0xf4),{'type':_0x3b700c(0xe1),'toolName':_0x54e687[_0x3b700c(0xe4)],'data':structuredClone(_0x54e687[_0x3b700c(0xb9)])},this);}[_0x3bbbca(0xd6)](){const _0x5b3407=_0x3bbbca;this[_0x5b3407(0xf0)]=!0x0,this[_0x5b3407(0xeb)]&&this[_0x5b3407(0xeb)][_0x5b3407(0x10b)][_0x5b3407(0xcb)](),this[_0x5b3407(0xc6)]&&this[_0x5b3407(0xc6)][_0x5b3407(0xf8)](),this[_0x5b3407(0xeb)]=this[_0x5b3407(0xc6)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3263fb=_0x210c;(function(_0x22d58,_0x375b23){const _0x4c371d=_0x210c,_0x4b37a9=_0x22d58();while(!![]){try{const _0x33d42b=-parseInt(_0x4c371d(0x196))/0x1+-parseInt(_0x4c371d(0x18d))/0x2*(parseInt(_0x4c371d(0x1a1))/0x3)+parseInt(_0x4c371d(0x19b))/0x4*(parseInt(_0x4c371d(0x197))/0x5)+parseInt(_0x4c371d(0x1a6))/0x6+parseInt(_0x4c371d(0x193))/0x7+parseInt(_0x4c371d(0x199))/0x8*(-parseInt(_0x4c371d(0x194))/0x9)+parseInt(_0x4c371d(0x186))/0xa;if(_0x33d42b===_0x375b23)break;else _0x4b37a9['push'](_0x4b37a9['shift']());}catch(_0x2430a0){_0x4b37a9['push'](_0x4b37a9['shift']());}}}(_0x3b05,0x8b078));function _0x210c(_0x42c1ea,_0x52d307){const _0x3b057f=_0x3b05();return _0x210c=function(_0x210cb7,_0x59947f){_0x210cb7=_0x210cb7-0x173;let _0x15d83b=_0x3b057f[_0x210cb7];return _0x15d83b;},_0x210c(_0x42c1ea,_0x52d307);}import{EmitterMixin as _0x47fefe,logWarning as _0x22f5b6,logError as _0x566aba}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e4ede}from'../utils/common-translations.js';export class AIModels extends _0x47fefe(){[_0x3263fb(0x18a)];[_0x3263fb(0x17c)];[_0x3263fb(0x173)];[_0x3263fb(0x17e)]=[];[_0x3263fb(0x184)]=null;constructor({connector:_0x52bf00,config:_0x42b7bb,locale:_0x12dd25}){const _0x3417e9=_0x3263fb;super(),this[_0x3417e9(0x18a)]=_0x52bf00,this[_0x3417e9(0x17c)]=_0x42b7bb,this[_0x3417e9(0x173)]=_0x12dd25;}get[_0x3263fb(0x182)](){const _0x5a5ba4=_0x3263fb;return this[_0x5a5ba4(0x17c)]?.[_0x5a5ba4(0x180)];}get[_0x3263fb(0x19c)](){const _0x5e551d=_0x3263fb;return this[_0x5e551d(0x17c)]?.[_0x5e551d(0x192)];}async[_0x3263fb(0x1a3)](){const _0x319a82=_0x3263fb;return this[_0x319a82(0x184)]||(this[_0x319a82(0x184)]=this[_0x319a82(0x17b)]()),this[_0x319a82(0x184)];}async[_0x3263fb(0x18c)](){const _0xdaf700=_0x3263fb,_0x5155f7=await this[_0xdaf700(0x1a3)]();let _0x13d8d2;return _0x13d8d2=this[_0xdaf700(0x182)]?this[_0xdaf700(0x18e)](_0x5155f7,this[_0xdaf700(0x182)]):_0x5155f7[_0xdaf700(0x19e)](_0x3dfcfe=>_0x3dfcfe[_0xdaf700(0x1a4)]),_0x13d8d2;}async[_0x3263fb(0x175)](_0x550f80){const _0x93ea98=_0x3263fb,_0x3608cb=await this[_0x93ea98(0x1a3)]();if(!_0x3608cb[_0x93ea98(0x195)])return null;if(_0x550f80){const _0x44c189=this[_0x93ea98(0x189)](_0x3608cb,_0x550f80);if(_0x44c189)return _0x44c189;_0x22f5b6(_0x93ea98(0x18b),{'modelId':_0x550f80,'fallBackModelId':this[_0x93ea98(0x19c)]});}return this[_0x93ea98(0x1a0)]();}async[_0x3263fb(0x1a0)](){const _0x139984=_0x3263fb,_0xf8c862=await this[_0x139984(0x18c)]();if(!_0xf8c862[_0x139984(0x195)])return null;if(this[_0x139984(0x19c)]){const _0x31e442=this[_0x139984(0x189)](_0xf8c862,this[_0x139984(0x19c)]);if(_0x31e442)return _0x31e442;_0x22f5b6(_0x139984(0x174),{'defaultModelId':this[_0x139984(0x19c)],'fallBackModelId':_0xf8c862[0x0]['id']});}return _0xf8c862[0x0];}async[_0x3263fb(0x17a)](_0x156969){const _0x4b0017=_0x3263fb;return(await this[_0x4b0017(0x18c)]())[_0x4b0017(0x17d)](_0x18786b=>_0x18786b[_0x4b0017(0x190)]===_0x156969[_0x4b0017(0x190)]&&_0x18786b[_0x4b0017(0x179)]===_0x156969[_0x4b0017(0x179)]);}async[_0x3263fb(0x17b)](){const _0x2312ad=_0x3263fb;if(!this[_0x2312ad(0x17e)][_0x2312ad(0x195)])try{const _0x404f18=this[_0x2312ad(0x173)][_0x2312ad(0x18f)]||'en',_0x4c915a=this[_0x2312ad(0x18a)][_0x2312ad(0x177)](_0x404f18),_0x1f2336=await _0x4c915a[_0x2312ad(0x1a2)]();this[_0x2312ad(0x17e)]=_0x1f2336[_0x2312ad(0x19a)][_0x2312ad(0x183)](_0x1535a6=>ze(_0x1535a6)?{..._0x1535a6,'name':_0x3e4ede(this[_0x2312ad(0x173)],_0x2312ad(0x198))}:_0x1535a6);}catch(_0x14f0e9){throw _0x566aba(_0x2312ad(0x176),{'error':_0x14f0e9}),_0x14f0e9;}return[...this[_0x2312ad(0x17e)]];}[_0x3263fb(0x18e)](_0x28c869,_0x2ed42c){const _0x1928c2=_0x3263fb;let _0x4128aa;if(_0x2ed42c){_0x4128aa=[];const _0x34c85c=new Set(),_0x1c505b=_0x1928c2(0x178)==typeof _0x2ed42c?[_0x2ed42c[_0x1928c2(0x185)]()]:_0x2ed42c[_0x1928c2(0x183)](_0x18f1cc=>_0x18f1cc[_0x1928c2(0x185)]());for(const _0x2e571c of _0x1c505b)for(const _0x58ae37 of _0x28c869)!_0x34c85c[_0x1928c2(0x17f)](_0x58ae37['id'])&&this[_0x1928c2(0x19d)](_0x58ae37,_0x2e571c)&&(_0x4128aa[_0x1928c2(0x187)](_0x58ae37),_0x34c85c[_0x1928c2(0x191)](_0x58ae37['id']));}else _0x4128aa=_0x28c869;return _0x4128aa;}[_0x3263fb(0x19d)](_0x20646e,_0xc8694c){const _0xdbdcba=_0x3263fb,_0x386fc0=_0x20646e['id'][_0xdbdcba(0x185)](),_0x545355=_0x20646e[_0xdbdcba(0x190)][_0xdbdcba(0x185)](),_0x4d9099=_0x20646e[_0xdbdcba(0x179)][_0xdbdcba(0x185)]();return _0x386fc0===_0xc8694c||_0x545355===_0xc8694c||ze(_0x20646e)&&_0xdbdcba(0x181)===_0xc8694c||_0x4d9099===_0xc8694c||_0x386fc0[_0xdbdcba(0x1a5)](_0xc8694c);}[_0x3263fb(0x189)](_0x4a1bce,_0x3e36c6){const _0x588292=_0x3263fb;return _0x4a1bce[_0x588292(0x19f)](_0x4b212d=>ze(_0x4b212d)&&_0x588292(0x181)===_0x3e36c6?_0x4b212d:_0x4b212d['id']===_0x3e36c6)||null;}}function _0x3b05(){const _0x3fea71=['getModel','ai-models-unable-to-retrieve','getModels','string','provider','isAvailable','_retrieveModels','_config','some','_modelList','has','displayedModels','auto','_availableModels','map','_modelsRequest','toLocaleLowerCase','8606000XIQSLZ','push','agent','_getModelById','_connector','ai-chat-model-id-unrecognized','getAvailableModels','1877218TdMHly','_filterModels','uiLanguage','name','add','defaultModelId','4591699ceIXrF','1683lmmLSR','length','364747ioCYJb','5FvCbpq','AI_MODEL_NAME_AUTO','44080SPAwDl','items','2637960UGugBr','_defaultModelId','_isMatchingFilter','filter','find','getDefault','3NmweiD','list','getAll','recommended','startsWith','4362858FtCTKP','_locale','ai-chat-default-model-id-unrecognized'];_0x3b05=function(){return _0x3fea71;};return _0x3b05();}function ze(_0x71220c){const _0x30d1d2=_0x3263fb;return _0x71220c['id'][_0x30d1d2(0x1a5)](_0x30d1d2(0x188));}
|
|
@@ -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 _0x133240=_0x1276;function _0x2366(){const _0x3864d2=['unshift','editor','8DfVpbI','content','previousSibling','changes','612733BEJExI','aiResponseApplier','new','change:content','_getDifferentChangeGroups','1430DMOvNK','node','removedNodeIds','newNodeIds','aiResponseParser','_setCachedContentParts','map','modifiedNodeIds','582804CsBvZg','filter','locale','_getCachedContentParts','14481blGYWd','includes','setChangeGroupState','index','cachedSuggestionContentParts','span','updateChangeGroups','modification','done','2849130iXlbjm','state','interactionId','modified','removed','1988gCmNOx','replyChangeGroupStateUpdated','merge','ai-reply-get-content-parts-group-not-found','isDone','length','getContentParts','sources','convertMarkdownToHTML','areActionsDisabled','changeGroups','find','nextSibling','pending','ai-get-editor-from-context-no-editor','10JVtHTp','destroy','1455513yCENRs','replyContentUpdated','push','every','withoutDiff','12576JOOtbb','type','parsedContent','stopListening','indexOf','forEach','onContentChange','data-unstable','splice','parsedMergedContent','appendContent','color:\x20#808080;\x20font-style:\x20italic','withDiff','cloneNode','parseAndNormalizeHTML','documentContextContent','data-id','set','AI_SUGGESTION_CONTENT_PART_REMOVED','4633518LyyFUd','fire','context'];_0x2366=function(){return _0x3864d2;};return _0x2366();}(function(_0x2ee95e,_0x351a78){const _0x4312e9=_0x1276,_0xb7795d=_0x2ee95e();while(!![]){try{const _0x2c494d=-parseInt(_0x4312e9(0xc1))/0x1+parseInt(_0x4312e9(0xce))/0x2+parseInt(_0x4312e9(0x93))/0x3*(parseInt(_0x4312e9(0xb0))/0x4)+parseInt(_0x4312e9(0x91))/0x5*(-parseInt(_0x4312e9(0xab))/0x6)+-parseInt(_0x4312e9(0xd3))/0x7*(-parseInt(_0x4312e9(0x98))/0x8)+-parseInt(_0x4312e9(0xc5))/0x9*(-parseInt(_0x4312e9(0xb9))/0xa)+-parseInt(_0x4312e9(0xb4))/0xb;if(_0x2c494d===_0x351a78)break;else _0xb7795d['push'](_0xb7795d['shift']());}catch(_0x562cf9){_0xb7795d['push'](_0xb7795d['shift']());}}}(_0x2366,0xd8e6d));import{CKEditorError as _0x35bd97,ObservableMixin as _0x3378d9,uid as _0x184f65}from'ckeditor5/src/utils.js';function _0x1276(_0x23c05b,_0x1e1fd0){const _0x236614=_0x2366();return _0x1276=function(_0x127660,_0x3db56a){_0x127660=_0x127660-0x88;let _0x1d76cb=_0x236614[_0x127660];return _0x1d76cb;},_0x1276(_0x23c05b,_0x1e1fd0);}import{Element as _0x1b7a25,findAll as _0x53c501,getAttribute as _0x1b5aca,getParents as _0x3ddae2,Document as _0x5f4863,parse as _0x30d067,Text as _0x21caf2}from'../utils/htmlparser.js';import{AIResponseParser as _0x69afc0}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x547365}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5ee9af}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4401d9}from'../utils/common-translations.js';import{cloneDeep as _0x1ed1eb}from'es-toolkit';export class AIReply extends _0x3378d9(){['id'];[_0x133240(0xd0)];[_0x133240(0x99)];[_0x133240(0x89)]=[];[_0x133240(0x9a)]=new _0x5f4863([]);[_0x133240(0xa1)]=new _0x5f4863([]);[_0x133240(0x8c)]=[];[_0x133240(0x8b)]=!0x1;[_0x133240(0xa7)];[_0x133240(0xbd)];[_0x133240(0xb5)];[_0x133240(0xaf)];[_0x133240(0xc9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x321266,content:_0x2dd8d7='',isDone:_0x4bbf61=!0x1,interactionId:_0x5d6447,areActionsDisabled:_0xcafcfb,documentContextContent:_0x3b4477,editor:_0x52e1e3,id:_0xda752f}){const _0x1e4424=_0x133240;super(),this['id']=_0xda752f||_0x184f65(),this[_0x1e4424(0xd0)]=_0x5d6447,this[_0x1e4424(0x99)]=_0x321266,this[_0x1e4424(0x8b)]=!!_0xcafcfb,this[_0x1e4424(0xaf)]=_0x52e1e3,this[_0x1e4424(0xbd)]=new _0x69afc0(),this[_0x1e4424(0xb5)]=new _0x547365(),this[_0x1e4424(0xa7)]=_0x30d067(_0x3b4477||''),this[_0x1e4424(0xa9)](_0x1e4424(0xd7),_0x4bbf61),this['on'](_0x1e4424(0xb7),()=>{const _0x23fd89=_0x1e4424;this[_0x23fd89(0x9e)]();}),this[_0x1e4424(0xa9)](_0x1e4424(0xb1),_0x2dd8d7);}[_0x133240(0xa2)](_0x9df1ee){const _0x5d9683=_0x133240;this[_0x5d9683(0xa9)](_0x5d9683(0xb1),this[_0x5d9683(0xb1)]+_0x9df1ee);}[_0x133240(0xcd)](){const _0x4e8e93=_0x133240;this[_0x4e8e93(0xd7)]||(this[_0x4e8e93(0xa9)](_0x4e8e93(0xd7),!0x0),this[_0x4e8e93(0x9e)]());}[_0x133240(0x92)](){const _0x450079=_0x133240;this[_0x450079(0x9b)]();}[_0x133240(0xc7)](_0x14e4ad,_0x46d727){const _0x1a330c=_0x133240;this[_0x1a330c(0x8c)][_0x14e4ad][_0x1a330c(0xcf)]=_0x46d727,this[_0x1a330c(0xac)](_0x1a330c(0xd4),{'reply':this,'index':_0x14e4ad,'state':_0x46d727});}[_0x133240(0x88)]({showDiff:_0x273b0b,groupIndex:_0x4159a5}){const _0x23367b=_0x133240;if(!this[_0x23367b(0xaf)])throw new _0x35bd97(_0x23367b(0x90),null,{'aiReply':this});const _0xb9347f=this[_0x23367b(0xc4)](_0x273b0b,_0x4159a5);if(_0xb9347f)return _0xb9347f;let _0x14971b=[];if(void 0x0===_0x4159a5)_0x14971b=this[_0x23367b(0x8c)];else{const _0x1eb19b=this[_0x23367b(0x8c)][_0x23367b(0x8d)](({index:_0x5cff17})=>_0x5cff17===_0x4159a5);if(!_0x1eb19b)throw new _0x35bd97(_0x23367b(0xd6),null,{'aiReply':this,'groupIndex':_0x4159a5});_0x14971b=[_0x1eb19b];}const _0x17941e=_0x5ee9af({'editor':this[_0x23367b(0xaf)],'showDiff':_0x273b0b,'changeGroups':_0x14971b,'documentContextContent':this[_0x23367b(0xa7)]});return this[_0x23367b(0xbe)](_0x273b0b,_0x17941e),_0x17941e;}[_0x133240(0xc4)](_0x28adb,_0x3a11d6){const _0x311772=_0x133240,_0x59da44=_0x28adb?_0x311772(0xa4):_0x311772(0x97);if(!this[_0x311772(0xc9)][_0x59da44][_0x311772(0xd8)])return null;const _0x3ba1ca=this[_0x311772(0xc9)][_0x59da44];if(void 0x0===_0x3a11d6)return _0x3ba1ca[_0x311772(0xd8)]>0x0&&_0x3ba1ca[_0x311772(0xd8)]!==this[_0x311772(0x8c)][_0x311772(0xd8)]?(this[_0x311772(0xbe)](_0x28adb,null),null):_0x1ed1eb(_0x3ba1ca);{const _0x2f09d8=_0x3ba1ca[_0x311772(0x8d)](({index:_0x147a43})=>_0x147a43===_0x3a11d6);if(_0x2f09d8)return[_0x1ed1eb(_0x2f09d8)];}return null;}[_0x133240(0xbe)](_0x18d0ec,_0x12aa5d){const _0x40f735=_0x133240,_0x12a4a6=_0x18d0ec?_0x40f735(0xa4):_0x40f735(0x97);_0x12aa5d?_0x12aa5d[_0x40f735(0x9d)](_0x32b34d=>{const _0x197ebe=_0x40f735,_0x2ecbc1=this[_0x197ebe(0xc9)][_0x12a4a6],_0x5882cd=_0x2ecbc1[_0x197ebe(0x8d)](({index:_0x539f97})=>_0x539f97===_0x32b34d[_0x197ebe(0xc8)]);if(_0x5882cd){const _0x1b5dd0=_0x2ecbc1[_0x197ebe(0x9c)](_0x5882cd);_0x2ecbc1[_0x197ebe(0xa0)](_0x1b5dd0,0x1,_0x32b34d);}else _0x2ecbc1[_0x197ebe(0x95)](_0x32b34d);}):this[_0x40f735(0xc9)][_0x12a4a6][_0x40f735(0xd8)]=0x0;}[_0x133240(0x9e)](){const _0x113af4=_0x133240;if(_0x113af4(0xcc)===this[_0x113af4(0x99)]){this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0xa6)](this[_0x113af4(0xb1)]);const _0x28212f=this[_0x113af4(0x8c)];this[_0x113af4(0xcb)]();const _0x6ea48f=this[_0x113af4(0xb8)](_0x28212f,this[_0x113af4(0x8c)]);(_0x6ea48f[_0x113af4(0xd8)]||this[_0x113af4(0xd7)])&&(this[_0x113af4(0xac)](_0x113af4(0x94),this,_0x6ea48f),this[_0x113af4(0xc9)][_0x113af4(0xa4)][_0x113af4(0xd8)]=this[_0x113af4(0xc9)][_0x113af4(0x97)][_0x113af4(0xd8)]=0x0);}else this[_0x113af4(0x9a)]=this[_0x113af4(0xbd)][_0x113af4(0x8a)](this[_0x113af4(0xb1)]),this[_0x113af4(0xac)](_0x113af4(0x94),this);}[_0x133240(0xb8)](_0x57733b,_0x17c09e){const _0x212398=_0x133240,_0x3ed0b3=[];for(const _0x1bbfd1 of _0x17c09e){const _0x2230fc=_0x57733b[_0x1bbfd1[_0x212398(0xc8)]];_0x2230fc?_0x2230fc[_0x212398(0xb3)][_0x212398(0xd8)]!==_0x1bbfd1[_0x212398(0xb3)][_0x212398(0xd8)]?_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1):_0x2230fc[_0x212398(0xb3)][_0x212398(0x9d)]((_0x38e251,_0x1c7e97)=>{const _0x149395=_0x212398,_0x1fd4f8=_0x1bbfd1[_0x149395(0xb3)][_0x1c7e97];_0x38e251['id']!==_0x1fd4f8['id']&&_0x3ed0b3[_0x149395(0x95)](_0x1bbfd1);}):_0x3ed0b3[_0x212398(0x95)](_0x1bbfd1);}return _0x3ed0b3;}[_0x133240(0xcb)](){const _0x143f33=_0x133240,_0x282d31=new _0x1b7a25('p',{},[new _0x1b7a25(_0x143f33(0xca),{'style':_0x143f33(0xa3)},[new _0x21caf2(_0x4401d9(this[_0x143f33(0xaf)][_0x143f33(0xc3)],_0x143f33(0xaa)))])]),_0x24925c=this[_0x143f33(0xb5)][_0x143f33(0xd5)](this[_0x143f33(0x9a)],this[_0x143f33(0xa7)][_0x143f33(0xa5)](!0x0),{'markUnstableElements':!this[_0x143f33(0xd7)],'replaceRemovedWith':_0x282d31,'cutAfterLastChange':!this[_0x143f33(0xd7)]});if(!_0x24925c[_0x143f33(0xc0)][_0x143f33(0xd8)]&&!this[_0x143f33(0xd7)])return;this[_0x143f33(0xa1)]=_0x24925c[_0x143f33(0x9a)];let _0x53f16f=[];if(_0x53c501(_0x434d43=>{const _0x3cba3e=_0x143f33,_0x39aceb=_0x1b5aca(_0x434d43,_0x3cba3e(0xa8));if(!_0x39aceb||!_0x197229(_0x39aceb))return!0x1;const _0x190771=[_0x434d43,..._0x3ddae2(_0x434d43)]['at'](-0x2);if(_0x434d43!=_0x190771){const _0x1e4029=_0x1b5aca(_0x190771,_0x3cba3e(0xa8));_0x197229(_0x1e4029)||(_0x53f16f[_0x3cba3e(0x95)]({'node':_0x190771,'id':_0x1e4029,'type':_0x3cba3e(0xd1)}),_0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0x95)](_0x1e4029));}else _0x24925c[_0x3cba3e(0xc0)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd1),'id':_0x39aceb}):_0x24925c[_0x3cba3e(0xbc)][_0x3cba3e(0xc6)](_0x39aceb)?_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xb6),'id':_0x39aceb,'anchorId':_0x1b5aca(_0x434d43[_0x3cba3e(0xb2)],_0x3cba3e(0xa8))}):_0x53f16f[_0x3cba3e(0x95)]({'node':_0x434d43,'type':_0x3cba3e(0xd2),'id':_0x39aceb});return!0x0;},this[_0x143f33(0xa1)]),_0x53f16f=_0x53f16f[_0x143f33(0xc2)](({node:_0xc62b01})=>[..._0x3ddae2(_0xc62b01),_0xc62b01][_0x143f33(0x96)](_0x3d3d6b=>!_0x1b5aca(_0x3d3d6b,_0x143f33(0x9f)))),0x0==_0x53f16f[_0x143f33(0xd8)])return;const _0x2a4f97=[[_0x53f16f[0x0]]];for(let _0x50d227=0x1;_0x50d227<_0x53f16f[_0x143f33(0xd8)];_0x50d227++){const _0x1d7da1=_0x2a4f97[_0x2a4f97[_0x143f33(0xd8)]-0x1],_0x4b09e4=_0x1d7da1[_0x1d7da1[_0x143f33(0xd8)]-0x1];_0x53f16f[_0x50d227][_0x143f33(0xba)][_0x143f33(0xb2)]==_0x4b09e4[_0x143f33(0xba)]&&_0x143f33(0xd1)!=_0x53f16f[_0x50d227][_0x143f33(0x99)]&&_0x143f33(0xd1)!=_0x4b09e4[_0x143f33(0x99)]?_0x1d7da1[_0x143f33(0x95)](_0x53f16f[_0x50d227]):_0x2a4f97[_0x143f33(0x95)]([_0x53f16f[_0x50d227]]);}for(const _0xfa927a of _0x2a4f97){const _0x326a7c=_0xfa927a[0x0],_0x51717e=_0xfa927a[_0xfa927a[_0x143f33(0xd8)]-0x1],_0x3e0291=_0x3a6fc4(_0x326a7c[_0x143f33(0xba)][_0x143f33(0xb2)]);_0x3e0291&&_0xfa927a[_0x143f33(0xae)](_0x3e0291);const _0xc2f32e=_0x3a6fc4(_0x51717e[_0x143f33(0xba)][_0x143f33(0x8e)]);_0xc2f32e&&_0xfa927a[_0x143f33(0x95)](_0xc2f32e);}function _0x197229(_0x123fe6){const _0x91b125=_0x143f33;return _0x24925c[_0x91b125(0xc0)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbc)][_0x91b125(0xc6)](_0x123fe6)||_0x24925c[_0x91b125(0xbb)][_0x91b125(0xc6)](_0x123fe6);}function _0x3a6fc4(_0x161414){const _0x593cae=_0x143f33;if(_0x161414&&_0x1b5aca(_0x161414,_0x593cae(0xa8))&&!_0x1b5aca(_0x161414,_0x593cae(0x9f))){const _0x1e2ee6=_0x1b5aca(_0x161414,_0x593cae(0xa8));if(!_0x197229(_0x1e2ee6))return{'node':_0x161414,'type':_0x593cae(0xad),'id':_0x1e2ee6};}return null;}this[_0x143f33(0x8c)]=_0x2a4f97[_0x143f33(0xbf)]((_0x19c7f3,_0x33304f)=>({'changes':_0x19c7f3,'state':_0x143f33(0x8f),'index':_0x33304f}));}}
|
|
@@ -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 _0x2fb9aa=_0x42aa;(function(_0x1cbdc4,_0x435651){const _0x17fb1f=_0x42aa,_0x286f4b=_0x1cbdc4();while(!![]){try{const _0xc50e0=parseInt(_0x17fb1f(0x1c2))/0x1*(-parseInt(_0x17fb1f(0x1d9))/0x2)+parseInt(_0x17fb1f(0x1cb))/0x3*(parseInt(_0x17fb1f(0x1dc))/0x4)+-parseInt(_0x17fb1f(0x1ef))/0x5+parseInt(_0x17fb1f(0x1e6))/0x6+-parseInt(_0x17fb1f(0x1d5))/0x7*(-parseInt(_0x17fb1f(0x1b1))/0x8)+parseInt(_0x17fb1f(0x1dd))/0x9*(parseInt(_0x17fb1f(0x1bf))/0xa)+-parseInt(_0x17fb1f(0x1cd))/0xb;if(_0xc50e0===_0x435651)break;else _0x286f4b['push'](_0x286f4b['shift']());}catch(_0x1b8d7d){_0x286f4b['push'](_0x286f4b['shift']());}}}(_0x177e,0x6c2f8));function _0x42aa(_0x21c908,_0x2edb70){const _0x177efd=_0x177e();return _0x42aa=function(_0x42aadb,_0x4af54c){_0x42aadb=_0x42aadb-0x1a9;let _0x445882=_0x177efd[_0x42aadb];return _0x445882;},_0x42aa(_0x21c908,_0x2edb70);}import{ObservableMixin as _0x5c429e,uid as _0x39de47}from'ckeditor5/src/utils.js';function _0x177e(){const _0x52c8c3=['map','new-element','slice','664728erQtma','_existingDataIds','_insertNodes','_generateUid','markUnstableElementsDepth','_storeDeletedElementIds','afterbegin','_findPrevElementWithDataId','_findNextElementWithDataId','1634100vMFbbi','data-removed','nodeType','data-unstable','includes','_isExistingNode','_markUnstableElements','match','_findReferenceNode','lastChild','8lhDFBS','beforebegin','removedIds','invalidIds','indexOf','merge','_touchedNodesState','_markLastTagElementUnstable','afterend','length','has','_findFallbackReferenceNode','_isDelNode','cloneNode','249950SGJvGJ','_removeSpecialComments','from','190367wPCHbi','_hasWrappedParent','replaceRemovedWith','reverse','_markWrappedElements','forEach','data-wrapped-id','nextSibling','_isExistingContentComment','1108284dUCNOs','trim','5550248pcUNDM','childNodes','newIds','lastTouchedId','true','markUnstableElements','modifiedIds','cutAfterLastChange','4793089XaPgxy','data-id','splice','_getNodeDataId','2RxqFXv','filter','previousSibling','4WZULZr','108wRAIqF','parentNode','_isNewNode','_getUid','push','_replaceNode'];_0x177e=function(){return _0x52c8c3;};return _0x177e();}import{findAllByAttribute as _0x36c99f,findByAttribute as _0x357e2d,getAttribute as _0x2ad3fd,isComment as _0x36eef7,isTag as _0x328a22,insertElement as _0x466d82,moveElement as _0x574358,removeElement as _0x149f9c,replaceElement as _0x2ef022,serialize as _0x5a9b3b,setAttribute as _0x8dee3c,clone as _0x3880b6,findAllComments as _0x10a01b,getParents as _0x5ace6b,getNodeNestingLevel as _0x58d003,areNodesSame as _0x43e662,removeElementsAfter as _0x159905}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c429e(){[_0x2fb9aa(0x1e9)];[_0x2fb9aa(0x1b7)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2fb9aa(0x1e7)]=new Set();constructor(_0x29124b){const _0x16a889=_0x2fb9aa;super(),this[_0x16a889(0x1e9)]=_0x29124b||_0x39de47;}[_0x2fb9aa(0x1b6)](_0x3215ab,_0xf33d81,_0x423b85){const _0x3fb2de=_0x2fb9aa,_0x1e74ba=_0x3880b6(_0x3215ab);if(0x0===_0xf33d81[_0x3fb2de(0x1ce)][_0x3fb2de(0x1ba)]){const _0x393375=[];return _0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0x1e74ba)[_0x3fb2de(0x1c7)](_0x13ac02=>{const _0x1371f9=_0x3fb2de,_0xd91d63=this[_0x1371f9(0x1e9)]();_0x8dee3c(_0x13ac02,_0x1371f9(0x1d6),_0xd91d63),_0x393375[_0x1371f9(0x1e1)](_0xd91d63);}),this[_0x3fb2de(0x1c0)](_0x1e74ba),{'parsedContent':_0x1e74ba,'newNodeIds':_0x393375,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1b8)](_0x1e74ba),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b4)]=[],this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=null,this[_0x3fb2de(0x1e7)]=new Set(_0x36c99f(_0x3fb2de(0x1d6),null,_0xf33d81)[_0x3fb2de(0x1e3)](_0x50787f=>_0x2ad3fd(_0x50787f,_0x3fb2de(0x1d6)))[_0x3fb2de(0x1da)](_0x1e9167=>!!_0x1e9167));let _0x28a153=-0x1,_0x443618=!0x1;const _0x500c25=_0x1e74ba[_0x3fb2de(0x1ce)],_0x167230=Array[_0x3fb2de(0x1c1)](_0x500c25)[_0x3fb2de(0x1da)](_0x3cf47b=>!(0x3===_0x3cf47b[_0x3fb2de(0x1a9)]&&''===_0x5a9b3b(_0x3cf47b)[_0x3fb2de(0x1cc)]())),_0x4a2335=_0x167230[_0x3fb2de(0x1ba)];for(let _0x53a65a=0x0;_0x53a65a<_0x4a2335;_0x53a65a++){const _0x33b615=_0x167230[_0x53a65a],_0x24cacd=_0x167230[_0x53a65a+0x1];if(this[_0x3fb2de(0x1df)](_0x33b615)){if(-0x1===_0x28a153&&(_0x28a153=_0x53a65a),this[_0x3fb2de(0x1c6)](_0x33b615),!this[_0x3fb2de(0x1df)](_0x24cacd)){const [_0x4f5ee2,_0x541e1e]=this[_0x3fb2de(0x1af)](_0x33b615,_0x443618,_0xf33d81);if(_0x4f5ee2){const _0x458df6=Array[_0x3fb2de(0x1c1)](_0x167230)[_0x3fb2de(0x1e5)](_0x28a153,_0x53a65a+0x1);this[_0x3fb2de(0x1e8)](_0x4f5ee2,_0x458df6,_0x541e1e),_0x28a153=-0x1;}}}else{if(this[_0x3fb2de(0x1ca)](_0x33b615))_0x443618=!0x0;else{if(this[_0x3fb2de(0x1ac)](_0x33b615)){const _0x36aa24=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));if(_0x36aa24&&this[_0x3fb2de(0x1e7)][_0x3fb2de(0x1bb)](_0x36aa24)){const _0xe62f5f=_0x357e2d(_0x3fb2de(0x1d6),_0x36aa24,_0xf33d81);this[_0x3fb2de(0x1e2)](_0xe62f5f,_0x33b615);}if(this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1ab)](_0x36aa24)){const _0x28700a=this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1b5)](_0x36aa24);this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)][_0x3fb2de(0x1d7)](_0x28700a,0x1);}}else{if(this[_0x3fb2de(0x1bd)](_0x33b615)){const _0x2231e8=_0x2ad3fd(_0x33b615,_0x3fb2de(0x1d6));this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)][_0x3fb2de(0x1ab)](_0x2231e8)||this[_0x3fb2de(0x1eb)](_0x33b615);}}}}}for(const _0x5abcd6 of this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]){const _0x397475=_0x357e2d(_0x3fb2de(0x1d6),_0x5abcd6,_0xf33d81);if(_0x397475){if(_0x423b85&&_0x423b85[_0x3fb2de(0x1c4)]){this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]=_0x5abcd6;const _0x170b70=_0x423b85[_0x3fb2de(0x1c4)][_0x3fb2de(0x1be)](!0x0);_0x8dee3c(_0x170b70,_0x3fb2de(0x1d6),_0x5abcd6),_0x8dee3c(_0x170b70,_0x3fb2de(0x1f0),_0x3fb2de(0x1d1)),_0x2ef022(_0x397475,_0x170b70);}else _0x149f9c(_0x397475);}}if(_0x36c99f(_0x3fb2de(0x1c8),null,_0xf33d81)[_0x3fb2de(0x1c7)](_0x1cb67d=>{const _0x48d2a2=_0x3fb2de,_0x3a86ab=_0x2ad3fd(_0x1cb67d,_0x48d2a2(0x1c8)),_0x5d4c19=_0x357e2d(_0x48d2a2(0x1d6),_0x3a86ab,_0xf33d81);_0x5d4c19&&_0x574358(_0x5d4c19,_0x1cb67d);}),_0x36c99f(_0x3fb2de(0x1d6),_0x3fb2de(0x1e4),_0xf33d81)[_0x3fb2de(0x1c7)](_0x52323a=>{const _0x348e81=_0x3fb2de,_0x3eec3f=this[_0x348e81(0x1e0)](_0x52323a);_0x8dee3c(_0x52323a,_0x348e81(0x1d6),_0x3eec3f),this[_0x348e81(0x1b7)][_0x348e81(0x1cf)][_0x348e81(0x1e1)](_0x3eec3f);}),this[_0x3fb2de(0x1c0)](_0xf33d81),_0x423b85&&_0x423b85[_0x3fb2de(0x1d2)]&&this[_0x3fb2de(0x1ad)](_0xf33d81,_0x423b85[_0x3fb2de(0x1ea)]||0x0),_0x423b85&&_0x423b85[_0x3fb2de(0x1d4)]&&this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)]){let _0x4fa3ab=_0x357e2d(_0x3fb2de(0x1d6),this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d0)],_0xf33d81);for(;_0x4fa3ab;)_0x159905(_0x4fa3ab),_0x4fa3ab=_0x4fa3ab[_0x3fb2de(0x1de)];}return{'parsedContent':_0xf33d81,'newNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1cf)],'modifiedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1d3)],'removedNodeIds':this[_0x3fb2de(0x1b7)][_0x3fb2de(0x1b3)]};}[_0x2fb9aa(0x1e8)](_0x51ea49,_0x17a60d,_0x3f2240){const _0x3ecb8f=_0x2fb9aa;for(const _0xe03194 of _0x17a60d){const _0x190284=this[_0x3ecb8f(0x1e0)](_0xe03194);_0x8dee3c(_0xe03194,_0x3ecb8f(0x1d6),_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1cf)][_0x3ecb8f(0x1e1)](_0x190284),this[_0x3ecb8f(0x1b7)][_0x3ecb8f(0x1d0)]=_0x190284;}const _0x24fbe9=_0x3ecb8f(0x1ec)===_0x3f2240||_0x3ecb8f(0x1b9)===_0x3f2240?_0x17a60d[_0x3ecb8f(0x1c5)]():_0x17a60d;for(const _0xd4a2dd of _0x24fbe9)_0x466d82(_0x51ea49,_0xd4a2dd,_0x3f2240);}[_0x2fb9aa(0x1e2)](_0xacbd92,_0x2fb5e2){const _0x2eff93=_0x2fb9aa;if(!_0xacbd92)return;if(_0x43e662(_0xacbd92,_0x2fb5e2))return;const _0x275a6a=this[_0x2eff93(0x1e0)](_0xacbd92);_0x8dee3c(_0x2fb5e2,_0x2eff93(0x1d6),_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d3)][_0x2eff93(0x1e1)](_0x275a6a),this[_0x2eff93(0x1b7)][_0x2eff93(0x1d0)]=_0x275a6a,_0x2ef022(_0xacbd92,_0x2fb5e2[_0x2eff93(0x1be)](!0x0));}[_0x2fb9aa(0x1af)](_0x16c52e,_0x13e639,_0x3f5154){const _0x362dbe=_0x2fb9aa,_0x80903a=this[_0x362dbe(0x1ed)](_0x16c52e,!0x1);if(_0x80903a){const _0x2396bb=this[_0x362dbe(0x1d8)](_0x80903a),_0x49b439=_0x357e2d(_0x362dbe(0x1d6),_0x2396bb,_0x3f5154);if(_0x49b439)return[_0x49b439,_0x362dbe(0x1b9)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x2396bb);}const _0x5f3859=this[_0x362dbe(0x1ee)](_0x16c52e,!0x1);if(_0x5f3859){const _0x1fd63e=this[_0x362dbe(0x1d8)](_0x5f3859),_0x28b3e9=_0x357e2d(_0x362dbe(0x1d6),_0x1fd63e,_0x3f5154);if(_0x28b3e9)return[_0x28b3e9,_0x362dbe(0x1b2)];this[_0x362dbe(0x1b7)][_0x362dbe(0x1b4)][_0x362dbe(0x1e1)](_0x1fd63e);}return _0x13e639?_0x16c52e[_0x362dbe(0x1c9)]?this[_0x362dbe(0x1bc)](_0x16c52e,_0x3f5154):[_0x3f5154[_0x362dbe(0x1ce)][_0x3f5154[_0x362dbe(0x1ce)][_0x362dbe(0x1ba)]-0x1],_0x362dbe(0x1b9)]:[_0x3f5154[_0x362dbe(0x1ce)][0x0],_0x362dbe(0x1b2)];}[_0x2fb9aa(0x1bc)](_0x302b2b,_0x3fd188){const _0x44ff4a=_0x2fb9aa,_0x3c1ae4=[],_0x1c73a9=this[_0x44ff4a(0x1ed)](_0x302b2b,!0x0);if(_0x1c73a9){const _0x17ce32=this[_0x44ff4a(0x1d8)](_0x1c73a9),_0x10a23f=_0x357e2d(_0x44ff4a(0x1d6),_0x17ce32,_0x3fd188);_0x10a23f&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x10a23f,_0x44ff4a(0x1b9)]);}const _0x30d5a5=this[_0x44ff4a(0x1ee)](_0x302b2b,!0x0);if(_0x30d5a5){const _0x530940=this[_0x44ff4a(0x1d8)](_0x30d5a5),_0x3b8dc3=_0x357e2d(_0x44ff4a(0x1d6),_0x530940,_0x3fd188);_0x3b8dc3&&_0x3c1ae4[_0x44ff4a(0x1e1)]([_0x3b8dc3,_0x44ff4a(0x1b2)]);}if(_0x3c1ae4[_0x44ff4a(0x1ba)]>0x1)return _0x58d003(_0x3c1ae4[0x0][0x0])<=_0x58d003(_0x3c1ae4[0x1][0x0])?_0x3c1ae4[0x0]:_0x3c1ae4[0x1];return 0x1===_0x3c1ae4[_0x44ff4a(0x1ba)]?_0x3c1ae4[0x0]:[_0x3fd188[_0x44ff4a(0x1b0)],_0x44ff4a(0x1b9)];}[_0x2fb9aa(0x1ee)](_0x28240a,_0x58ec6b){const _0x1b507a=_0x2fb9aa;let _0x42eff=_0x28240a[_0x1b507a(0x1c9)],_0x5ceb86=null,_0x42e855=!0x1;for(;_0x42eff;){if(_0x36eef7(_0x42eff)){if(this[_0x1b507a(0x1bd)](_0x42eff)&&(_0x5ceb86=_0x42eff),this[_0x1b507a(0x1ca)](_0x42eff)&&_0x58ec6b&&!_0x42e855){_0x42e855=!0x0,_0x42eff=_0x42eff[_0x1b507a(0x1c9)];continue;}break;}const _0x1a53dc=_0x2ad3fd(_0x42eff,_0x1b507a(0x1d6));if(_0x1a53dc&&_0x1b507a(0x1e4)!==_0x1a53dc&&this[_0x1b507a(0x1e7)][_0x1b507a(0x1bb)](_0x1a53dc)){_0x5ceb86=_0x42eff;break;}_0x42eff=_0x42eff[_0x1b507a(0x1c9)];}return _0x5ceb86;}[_0x2fb9aa(0x1ed)](_0x52c262,_0x302f12){const _0x5ebb7a=_0x2fb9aa;let _0x238715=_0x52c262[_0x5ebb7a(0x1db)],_0x1bc8a1=null,_0x3aae12=!0x1;for(;_0x238715;){if(_0x36eef7(_0x238715)){if(this[_0x5ebb7a(0x1bd)](_0x238715)&&(_0x1bc8a1=_0x238715),this[_0x5ebb7a(0x1ca)](_0x238715)&&_0x302f12&&!_0x3aae12){_0x3aae12=!0x0,_0x238715=_0x238715[_0x5ebb7a(0x1db)];continue;}break;}const _0x599c25=_0x2ad3fd(_0x238715,_0x5ebb7a(0x1d6));if(_0x599c25&&_0x5ebb7a(0x1e4)!==_0x599c25&&this[_0x5ebb7a(0x1e7)][_0x5ebb7a(0x1bb)](_0x599c25)){_0x1bc8a1=_0x238715;break;}_0x238715=_0x238715[_0x5ebb7a(0x1db)];}return _0x1bc8a1;}[_0x2fb9aa(0x1c6)](_0x3419e7){const _0x2eca8f=_0x2fb9aa;_0x328a22(_0x3419e7)&&_0x36c99f(_0x2eca8f(0x1d6),null,_0x3419e7)[_0x2eca8f(0x1c7)](_0x13ee5e=>{const _0x2debd6=_0x2eca8f;if(this[_0x2debd6(0x1ac)](_0x13ee5e)&&!this[_0x2debd6(0x1c3)](_0x13ee5e)){const _0x291729=_0x2ad3fd(_0x13ee5e,_0x2debd6(0x1d6));_0x8dee3c(_0x13ee5e,_0x2debd6(0x1c8),_0x291729),_0x8dee3c(_0x13ee5e,_0x2debd6(0x1d6),null);}});}[_0x2fb9aa(0x1d8)](_0x373510){const _0x1687a7=_0x2fb9aa;if(!_0x373510)return null;if(_0x328a22(_0x373510))return _0x2ad3fd(_0x373510,_0x1687a7(0x1d6));if(_0x36eef7(_0x373510)){const _0x3b8981=_0x5a9b3b(_0x373510)[_0x1687a7(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3b8981&&_0x3b8981[0x1])return _0x3b8981[0x1];}return null;}[_0x2fb9aa(0x1eb)](_0x3fb016){const _0x2097df=_0x2fb9aa;if(_0x36eef7(_0x3fb016)){const _0x141558=_0x5a9b3b(_0x3fb016)[_0x2097df(0x1ae)](/removed[\s*-]data-id="([^"]+)"/);_0x141558&&_0x141558[0x1]&&this[_0x2097df(0x1b7)][_0x2097df(0x1b3)][_0x2097df(0x1e1)](_0x141558[0x1]);}}[_0x2fb9aa(0x1e0)](_0x348353){const _0x1b0b6f=_0x2fb9aa;return this[_0x1b0b6f(0x1ac)](_0x348353)?_0x2ad3fd(_0x348353,_0x1b0b6f(0x1d6)):this[_0x1b0b6f(0x1e9)]();}[_0x2fb9aa(0x1c0)](_0x2e3c11){const _0x54fec4=_0x2fb9aa;_0x10a01b(_0x2e3c11)[_0x54fec4(0x1da)](_0x127637=>this[_0x54fec4(0x1bd)](_0x127637)||this[_0x54fec4(0x1ca)](_0x127637))[_0x54fec4(0x1c7)](_0x2c0c1f=>{_0x149f9c(_0x2c0c1f);});}[_0x2fb9aa(0x1b8)](_0x4109a4){const _0x59f71f=_0x2fb9aa,_0x20d254=_0x4109a4[_0x59f71f(0x1ce)],_0x46c707=_0x20d254[_0x20d254[_0x59f71f(0x1ba)]-0x1];_0x46c707&&_0x328a22(_0x46c707)&&_0x8dee3c(_0x46c707,_0x59f71f(0x1aa),_0x59f71f(0x1d1));}[_0x2fb9aa(0x1ad)](_0x353b50,_0x57f344){const _0xfcbef6=_0x2fb9aa,_0x5e0c82=_0x357e2d(_0xfcbef6(0x1aa),_0xfcbef6(0x1d1),_0x353b50);if(!_0x5e0c82)return;const _0x4c10be=_0x5ace6b(_0x5e0c82)[_0xfcbef6(0x1e5)](0x0,-0x1),_0x5ba3b1=_0x4c10be[_0xfcbef6(0x1ba)];let _0x4f34a9=_0x5e0c82;if(_0x5ba3b1>_0x57f344){let _0x256aab=_0x5ba3b1,_0x56bf95=null;for(;_0x256aab>_0x57f344&&_0x256aab>=0x0;)_0x256aab--,_0x56bf95=_0x4c10be[_0x256aab];_0x56bf95&&(_0x4f34a9=_0x56bf95,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0x56bf95,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}else{if(_0x5ba3b1<_0x57f344){let _0x277292=_0x5ba3b1,_0xcfd737=_0x5e0c82;for(;_0x277292<_0x57f344;){const _0x17e2e5=_0xcfd737[_0xfcbef6(0x1ce)][_0xfcbef6(0x1da)](_0x4b9b43=>_0x328a22(_0x4b9b43));if(0x0===_0x17e2e5[_0xfcbef6(0x1ba)])break;_0x277292++,_0xcfd737=_0x17e2e5[_0x17e2e5[_0xfcbef6(0x1ba)]-0x1];}_0xcfd737&&(_0x4f34a9=_0xcfd737,_0x8dee3c(_0x5e0c82,_0xfcbef6(0x1aa),null),_0x8dee3c(_0xcfd737,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1)));}}let _0x4af2dd=_0x4f34a9;for(;_0x4af2dd;){for(;_0x4af2dd[_0xfcbef6(0x1c9)];)_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1c9)],_0x328a22(_0x4af2dd)&&_0x8dee3c(_0x4af2dd,_0xfcbef6(0x1aa),_0xfcbef6(0x1d1));_0x4af2dd=_0x4af2dd[_0xfcbef6(0x1de)];}}[_0x2fb9aa(0x1df)](_0x6a67){const _0x4c1850=_0x2fb9aa;return Boolean(_0x4c1850(0x1e4)===_0x2ad3fd(_0x6a67,_0x4c1850(0x1d6)));}[_0x2fb9aa(0x1ac)](_0x3d667a){const _0x347163=_0x2fb9aa;return Boolean((_0x2ad3fd(_0x3d667a,_0x347163(0x1d6))||'')[_0x347163(0x1ba)]>0x0&&_0x347163(0x1e4)!==_0x2ad3fd(_0x3d667a,_0x347163(0x1d6)));}[_0x2fb9aa(0x1bd)](_0x71d5ff){const _0x4afe2b=_0x2fb9aa;return!!_0x71d5ff&&Boolean(_0x36eef7(_0x71d5ff)&&_0x5a9b3b(_0x71d5ff)[_0x4afe2b(0x1ae)](/removed[\s*-]data-id="[^"]+"/));}[_0x2fb9aa(0x1c3)](_0x11e7f7){const _0xa36288=_0x2fb9aa;let _0x32a2b9=_0x11e7f7[_0xa36288(0x1de)];for(;_0x32a2b9;){if(_0x2ad3fd(_0x32a2b9,_0xa36288(0x1c8)))return!0x0;_0x32a2b9=_0x32a2b9[_0xa36288(0x1de)];}return!0x1;}[_0x2fb9aa(0x1ca)](_0x44f1ee){const _0x16af98=_0x2fb9aa;return Boolean(_0x36eef7(_0x44f1ee)&&_0x5a9b3b(_0x44f1ee)[_0x16af98(0x1ae)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x4cd3(_0x56e982,_0x522628){const _0x2a6325=_0x2a63();return _0x4cd3=function(_0x4cd34a,_0xa13325){_0x4cd34a=_0x4cd34a-0x1e0;let _0x5f0231=_0x2a6325[_0x4cd34a];return _0x5f0231;},_0x4cd3(_0x56e982,_0x522628);}const _0x329b22=_0x4cd3;function _0x2a63(){const _0x4b5649=['9652860qqkoPm','replace','</dummy>','28JuouqC','parseAndNormalizeHTML','children','2984527aBYtzF','parse','<dummy>','1685325HqLWhq','215536zBMOCJ','23665zVwyvf','1398glzjnZ','_parseHTML','_m2html','8QRaHSp','convertMarkdownToHTML','3221307OWfYnR','43691qHYxSB'];_0x2a63=function(){return _0x4b5649;};return _0x2a63();}(function(_0x2437e0,_0x118ad3){const _0x2a17d2=_0x4cd3,_0x4392e7=_0x2437e0();while(!![]){try{const _0x311e83=-parseInt(_0x2a17d2(0x1e3))/0x1*(parseInt(_0x2a17d2(0x1e7))/0x2)+parseInt(_0x2a17d2(0x1ed))/0x3+parseInt(_0x2a17d2(0x1ee))/0x4+parseInt(_0x2a17d2(0x1ef))/0x5*(-parseInt(_0x2a17d2(0x1f0))/0x6)+parseInt(_0x2a17d2(0x1ea))/0x7+-parseInt(_0x2a17d2(0x1e0))/0x8*(-parseInt(_0x2a17d2(0x1e2))/0x9)+parseInt(_0x2a17d2(0x1e4))/0xa;if(_0x311e83===_0x118ad3)break;else _0x4392e7['push'](_0x4392e7['shift']());}catch(_0x57b4a){_0x4392e7['push'](_0x4392e7['shift']());}}}(_0x2a63,0x9ee0e));import{ObservableMixin as _0x574c7f}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x17fb03}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4984d4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x574c7f(){[_0x329b22(0x1f2)];constructor(){const _0x30daa1=_0x329b22;super(),this[_0x30daa1(0x1f2)]=new _0x17fb03();}[_0x329b22(0x1e1)](_0x2c341a){const _0x4e35e3=_0x329b22,_0xddb7fc=this[_0x4e35e3(0x1f2)][_0x4e35e3(0x1eb)](_0x2c341a);return this[_0x4e35e3(0x1e8)](_0xddb7fc);}[_0x329b22(0x1e8)](_0x28b26b){const _0x4c2ced=_0x329b22;return this[_0x4c2ced(0x1f1)](_0x28b26b);}[_0x329b22(0x1f1)](_0x49b8af){const _0x7ace22=_0x329b22,_0x1bd74c=_0x49b8af[_0x7ace22(0x1e5)](/^\t+/gm,'\x20')[_0x7ace22(0x1e5)](/\n*/g,'')[_0x7ace22(0x1e5)](/\s+/g,'\x20')[_0x7ace22(0x1e5)](/<[^>]*?$/g,''),_0x51c0dc=_0x4984d4(_0x7ace22(0x1ec)+_0x1bd74c+_0x7ace22(0x1e6));return _0x51c0dc[_0x7ace22(0x1e9)]=_0x51c0dc[_0x7ace22(0x1e9)][0x0][_0x7ace22(0x1e9)],_0x51c0dc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x40c9(_0x3dd440,_0x79887f){var _0x34fed8=_0x34fe();return _0x40c9=function(_0x40c919,_0x2db29d){_0x40c919=_0x40c919-0x89;var _0x1d6f44=_0x34fed8[_0x40c919];return _0x1d6f44;},_0x40c9(_0x3dd440,_0x79887f);}(function(_0x499ac6,_0x1cdc99){var _0x33b264=_0x40c9,_0x1f07ba=_0x499ac6();while(!![]){try{var _0x4ff172=parseInt(_0x33b264(0x8f))/0x1+-parseInt(_0x33b264(0x8d))/0x2+parseInt(_0x33b264(0x8c))/0x3+parseInt(_0x33b264(0x90))/0x4*(parseInt(_0x33b264(0x8b))/0x5)+-parseInt(_0x33b264(0x95))/0x6*(-parseInt(_0x33b264(0x96))/0x7)+-parseInt(_0x33b264(0x91))/0x8+parseInt(_0x33b264(0x89))/0x9;if(_0x4ff172===_0x1cdc99)break;else _0x1f07ba['push'](_0x1f07ba['shift']());}catch(_0x1ab635){_0x1f07ba['push'](_0x1f07ba['shift']());}}}(_0x34fe,0xc9223));import{View as _0x2d7884}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d2612}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2d7884{constructor(_0x35b081){var _0xd52287=_0x40c9;super(_0x35b081),this[_0xd52287(0x8a)]({'tag':_0xd52287(0x93),'attributes':{'class':['ck',_0xd52287(0x94)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xd52287(0x92)]},'children':[{'text':_0x2d2612(_0x35b081,_0xd52287(0x8e))}]}]});}}function _0x34fe(){var _0x5bb71a=['119fVnMFH','8737911YCLZOG','setTemplate','2789435fMxJow','1744503YaBOHg','2279974IUUvxs','AI_DISCLAIMER_TEXT','141537omLqhB','8uNKOyF','9215976NDQFjJ','ck-ai-disclaimer__content','div','ck-ai-disclaimer','108048IMNqdB'];_0x34fe=function(){return _0x5bb71a;};return _0x34fe();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9804cb=_0x7e9d;(function(_0x5cf9b2,_0x4a6e99){const _0x9adf33=_0x7e9d,_0x4d4019=_0x5cf9b2();while(!![]){try{const _0x153d0e=parseInt(_0x9adf33(0x101))/0x1+parseInt(_0x9adf33(0x120))/0x2+parseInt(_0x9adf33(0x11d))/0x3+parseInt(_0x9adf33(0x115))/0x4+parseInt(_0x9adf33(0x112))/0x5+parseInt(_0x9adf33(0x104))/0x6+-parseInt(_0x9adf33(0xff))/0x7*(parseInt(_0x9adf33(0x118))/0x8);if(_0x153d0e===_0x4a6e99)break;else _0x4d4019['push'](_0x4d4019['shift']());}catch(_0x50f692){_0x4d4019['push'](_0x4d4019['shift']());}}}(_0x2df7,0x57777));function _0x2df7(){const _0x5a81e7=['16806056TttfPb','height','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','fill','140px','687480hZASSx','attributes','class','757662UmoeHx','40px','_createSkeletonItems','ck-ai-skeleton__item','center','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','7nyTfET','div','340845uKFfbJ','map','100%','2972832FeNoQp','150px','align',';\x20height:\x20','24px','right','ck-ai-skeleton','128px','72px','44px','88px','setTemplate','left','width','1829595diAskA','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','250px','2595172NjIDyJ','tag','width:\x20'];_0x2df7=function(){return _0x5a81e7;};return _0x2df7();}import{View as _0x2f317d}from'ckeditor5/src/ui.js';function _0x7e9d(_0x3ecc65,_0x4948ae){const _0x2df7c8=_0x2df7();return _0x7e9d=function(_0x7e9d97,_0x348ada){_0x7e9d97=_0x7e9d97-0xfb;let _0x5ef8b4=_0x2df7c8[_0x7e9d97];return _0x5ef8b4;},_0x7e9d(_0x3ecc65,_0x4948ae);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2f317d{constructor(_0x2e96c7,_0x196183){const _0x467422=_0x7e9d;super(_0x2e96c7),this[_0x467422(0x10f)]({'tag':_0x467422(0x100),'attributes':{'class':['ck',_0x467422(0x10a)]},'children':this[_0x467422(0xfb)](_0x196183)});}[_0x9804cb(0xfb)](_0x386be0){const _0x29874e=_0x9804cb,_0x4e5c7a=['ck',_0x29874e(0xfc)];return _0x386be0[_0x29874e(0x102)](_0x216fe5=>{const _0x53f81a=_0x29874e;let _0x1e1f42='';switch(_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x106)]){case _0x53f81a(0x109):_0x1e1f42=_0x53f81a(0x11a);break;case _0x53f81a(0xfd):_0x1e1f42=_0x53f81a(0xfe);break;case _0x53f81a(0x110):_0x1e1f42=_0x53f81a(0x113);}return{'tag':_0x216fe5[_0x53f81a(0x116)],'attributes':{'class':[..._0x4e5c7a,_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]?_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x11f)]:''],'style':_0x53f81a(0x117)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x111)]+_0x53f81a(0x107)+_0x216fe5[_0x53f81a(0x11e)][_0x53f81a(0x119)]+';'+_0x1e1f42}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x105),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x11c),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x114),'height':_0x9804cb(0x121),'align':_0x9804cb(0x109)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x10e),'align':_0x9804cb(0x109)}}],'aiHistory':ta(0x5,_0x9804cb(0x103),_0x9804cb(0x10d),_0x9804cb(0x109)),'aiChatResources':ta(0x8,_0x9804cb(0x103),_0x9804cb(0x108),_0x9804cb(0x109)),'aiReviewChecks':[{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x103),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}},{'tag':_0x9804cb(0x100),'attributes':{'width':_0x9804cb(0x10b),'height':_0x9804cb(0x108),'align':_0x9804cb(0x110)}}]};function ta(_0x1a1c47,_0x44b279,_0x515acd,_0x36b7a9){const _0x3f1e28=_0x9804cb;return new Array(_0x1a1c47)[_0x3f1e28(0x11b)](null)[_0x3f1e28(0x102)](()=>({'tag':_0x3f1e28(0x100),'attributes':{'width':_0x44b279,'height':_0x515acd,'align':_0x36b7a9}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1ec2fd,_0x5f3e3e){const _0x47cd8a=_0x56aa,_0x156c0d=_0x1ec2fd();while(!![]){try{const _0x5e68a3=-parseInt(_0x47cd8a(0x120))/0x1+-parseInt(_0x47cd8a(0x11c))/0x2+-parseInt(_0x47cd8a(0x117))/0x3*(parseInt(_0x47cd8a(0x118))/0x4)+parseInt(_0x47cd8a(0x115))/0x5*(-parseInt(_0x47cd8a(0x11f))/0x6)+-parseInt(_0x47cd8a(0x11b))/0x7+parseInt(_0x47cd8a(0x11a))/0x8+-parseInt(_0x47cd8a(0x116))/0x9*(-parseInt(_0x47cd8a(0x113))/0xa);if(_0x5e68a3===_0x5f3e3e)break;else _0x156c0d['push'](_0x156c0d['shift']());}catch(_0x35b8f4){_0x156c0d['push'](_0x156c0d['shift']());}}}(_0x2406,0xd935b));function _0x56aa(_0x3fc3ce,_0x81fef2){const _0x24061d=_0x2406();return _0x56aa=function(_0x56aa90,_0x32d673){_0x56aa90=_0x56aa90-0x113;let _0x510cbf=_0x24061d[_0x56aa90];return _0x510cbf;},_0x56aa(_0x3fc3ce,_0x81fef2);}import{SpinnerView as _0x147ea4}from'ckeditor5/src/ui.js';function _0x2406(){const _0x27490a=['10629080UKTQIU','7640794LkpBvp','1471086SXgHdd','extendTemplate','span','42oWvreT','961123WBxFdh','56645050cGmimR','ck-ai-spinner_','1125830LOpZFF','9PULnGY','579693UmUFtB','36euTftT','ck-ai-spinner'];_0x2406=function(){return _0x27490a;};return _0x2406();}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x147ea4{constructor(_0x10c22e=void 0x0){const _0x54df05=_0x56aa;super();const _0x3bc179=_0x10c22e?_0x54df05(0x114)+_0x10c22e:'';this[_0x54df05(0x11d)]({'tag':_0x54df05(0x11e),'attributes':{'class':[_0x54df05(0x119),_0x3bc179]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bbf0a=_0x2bbf;(function(_0x516307,_0x2799aa){const _0x3e2833=_0x2bbf,_0x51383d=_0x516307();while(!![]){try{const _0x5cbb7f=-parseInt(_0x3e2833(0x179))/0x1+-parseInt(_0x3e2833(0x17d))/0x2*(parseInt(_0x3e2833(0x187))/0x3)+-parseInt(_0x3e2833(0x1a2))/0x4+parseInt(_0x3e2833(0x1a5))/0x5+parseInt(_0x3e2833(0x18a))/0x6*(-parseInt(_0x3e2833(0x173))/0x7)+parseInt(_0x3e2833(0x190))/0x8*(-parseInt(_0x3e2833(0x180))/0x9)+-parseInt(_0x3e2833(0x18d))/0xa*(-parseInt(_0x3e2833(0x1a1))/0xb);if(_0x5cbb7f===_0x2799aa)break;else _0x51383d['push'](_0x51383d['shift']());}catch(_0x5c679b){_0x51383d['push'](_0x51383d['shift']());}}}(_0xf313,0xace8f));function _0xf313(){const _0x19bac9=['361298MhsWQa','length','isOn','ck-ai-mini-toolbar','1265586foWwNz','set','AI_MINI_TOOLBAR_DISLIKE','81myCXMH','full','showChanges','customView','isEnabled','icon','_setupRatingButtons','3CMrbfE','fire','showChangesButton','1254GTMgcK','_setupCopyButton','locale','11432080FXEQjY','showDislike','_setupShowChangesButton','906424KUlphF','bind','extendTemplate','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isShowChangesOn','add','class','dislikeButton','toggleShowChanges','like','toggleShowChangesEnabled','showCopy','copyButton','AI_MINI_TOOLBAR_COPY','children','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button','44LbHmbB','3303628VSUPnS','ck-ai-button-tertiary','addMany','1080870wTctyh','execute','AI_MINI_TOOLBAR_LIKE','items','likeButton','41566nQzTXz','showLike','_config','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','ck-ai-mini-toolbar\x20ck-hidden'];_0xf313=function(){return _0x19bac9;};return _0xf313();}import{ButtonView as _0x25f86a,IconView as _0x549260,ToolbarView as _0x5a9d3b}from'ckeditor5/src/ui.js';import{IconCheck as _0x891f94,IconCopy as _0x4538eb,IconShowChangesOff as _0x11dd25,IconShowChangesOn as _0x5c1256,IconThumbDown as _0x1e2860,IconThumbUp as _0x5f53d3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4d081f}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x2bbf(_0x12a531,_0x59ec4a){const _0xf31325=_0xf313();return _0x2bbf=function(_0x2bbf4a,_0x39fb5a){_0x2bbf4a=_0x2bbf4a-0x173;let _0x1bf279=_0xf31325[_0x2bbf4a];return _0x1bf279;},_0x2bbf(_0x12a531,_0x59ec4a);}export class AIMiniToolbarView extends _0x5a9d3b{[_0x4bbf0a(0x19c)];[_0x4bbf0a(0x1a9)];[_0x4bbf0a(0x197)];[_0x4bbf0a(0x189)];[_0x4bbf0a(0x175)];constructor(_0x39ec93,_0x14dfdd={}){const _0xc07a0d=_0x4bbf0a;super(_0x39ec93),this[_0xc07a0d(0x17e)](_0xc07a0d(0x184),!0x0),this[_0xc07a0d(0x17e)](_0xc07a0d(0x194),!0x1),this[_0xc07a0d(0x175)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x14dfdd};const _0x2923bc=!(this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]||this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]?.[_0xc07a0d(0x17a)]);this[_0xc07a0d(0x196)]=_0x2923bc?_0xc07a0d(0x178):_0xc07a0d(0x17c),this[_0xc07a0d(0x175)][_0xc07a0d(0x19b)]&&(this[_0xc07a0d(0x18b)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x19c)])),this[_0xc07a0d(0x175)][_0xc07a0d(0x182)]&&(this[_0xc07a0d(0x18f)](),this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x189)])),this[_0xc07a0d(0x186)](),this[_0xc07a0d(0x175)][_0xc07a0d(0x174)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x1a9)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x18e)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x195)](this[_0xc07a0d(0x197)]),this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]&&this[_0xc07a0d(0x1a8)][_0xc07a0d(0x1a4)](this[_0xc07a0d(0x175)][_0xc07a0d(0x183)]);}[_0x4bbf0a(0x19a)](_0x5ad758){const _0x53ad2a=_0x4bbf0a;this[_0x53ad2a(0x189)][_0x53ad2a(0x184)]=_0x5ad758;}[_0x4bbf0a(0x186)](){const _0x7970f0=_0x4bbf0a;this[_0x7970f0(0x1a9)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x1a9)][_0x7970f0(0x17e)]({'icon':_0x5f53d3,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x1a7)),'tooltip':!0x0}),this[_0x7970f0(0x1a9)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x1a9)]['on'](_0x7970f0(0x1a6),()=>{const _0x5f174e=_0x7970f0;this[_0x5f174e(0x188)](_0x5f174e(0x199));}),this[_0x7970f0(0x197)]=new _0x25f86a(this[_0x7970f0(0x18c)]),this[_0x7970f0(0x197)][_0x7970f0(0x17e)]({'icon':_0x1e2860,'label':_0x4d081f(this[_0x7970f0(0x18c)],_0x7970f0(0x17f)),'tooltip':!0x0}),this[_0x7970f0(0x197)][_0x7970f0(0x191)](_0x7970f0(0x184))['to'](this),this[_0x7970f0(0x197)]['on'](_0x7970f0(0x1a6),()=>{const _0x1abce8=_0x7970f0;this[_0x1abce8(0x188)](_0x1abce8(0x177));});}[_0x4bbf0a(0x18b)](){const _0x1299cf=_0x4bbf0a;this[_0x1299cf(0x19c)]=new _0x25f86a(this[_0x1299cf(0x18c)]),this[_0x1299cf(0x19c)][_0x1299cf(0x17e)]({'icon':_0x4538eb,'label':_0x4d081f(this[_0x1299cf(0x18c)],_0x1299cf(0x19d)),'class':_0x1299cf(0x1a0),'tooltip':!0x0}),this[_0x1299cf(0x19c)][_0x1299cf(0x191)](_0x1299cf(0x184))['to'](this);const _0x21488b=new _0x549260();_0x21488b[_0x1299cf(0x17e)]({'content':_0x891f94}),_0x21488b[_0x1299cf(0x192)]({'attributes':{'class':[_0x1299cf(0x19f)]}}),this[_0x1299cf(0x19c)]['on'](_0x1299cf(0x1a6),()=>{const _0x4c8e61=_0x1299cf;this[_0x4c8e61(0x19c)][_0x4c8e61(0x196)]=_0x4c8e61(0x193),setTimeout(()=>{const _0xeff223=_0x4c8e61;this[_0xeff223(0x19c)][_0xeff223(0x196)]=_0xeff223(0x1a0);},0x7d0);}),this[_0x1299cf(0x19c)][_0x1299cf(0x19e)][_0x1299cf(0x195)](_0x21488b);}[_0x4bbf0a(0x18f)](){const _0x5b9ef6=_0x4bbf0a;this[_0x5b9ef6(0x189)]=new _0x25f86a(this[_0x5b9ef6(0x18c)]),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x17e)]({'icon':_0x11dd25,'label':_0x4d081f(this[_0x5b9ef6(0x18c)],_0x5b9ef6(0x176)),'withText':_0x5b9ef6(0x181)==this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'tooltip':_0x5b9ef6(0x181)!=this[_0x5b9ef6(0x175)][_0x5b9ef6(0x182)],'class':_0x5b9ef6(0x1a3)}),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x17b))['to'](this,_0x5b9ef6(0x194)),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x184))['to'](this),this[_0x5b9ef6(0x189)][_0x5b9ef6(0x191)](_0x5b9ef6(0x185))['to'](this,_0x5b9ef6(0x194),_0x178bd7=>_0x178bd7?_0x5c1256:_0x11dd25),this[_0x5b9ef6(0x189)]['on'](_0x5b9ef6(0x1a6),()=>{const _0x4ab9b0=_0x5b9ef6;this[_0x4ab9b0(0x188)](_0x4ab9b0(0x198));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5551db=_0x3a4c;(function(_0x2ffe6b,_0x469084){const _0x58f162=_0x3a4c,_0x1f9007=_0x2ffe6b();while(!![]){try{const _0x8dde4f=-parseInt(_0x58f162(0x169))/0x1*(parseInt(_0x58f162(0x17c))/0x2)+parseInt(_0x58f162(0x174))/0x3+parseInt(_0x58f162(0x195))/0x4+-parseInt(_0x58f162(0x17e))/0x5+parseInt(_0x58f162(0x167))/0x6+-parseInt(_0x58f162(0x171))/0x7+parseInt(_0x58f162(0x16f))/0x8;if(_0x8dde4f===_0x469084)break;else _0x1f9007['push'](_0x1f9007['shift']());}catch(_0x57d484){_0x1f9007['push'](_0x1f9007['shift']());}}}(_0x4370,0x21da1));import{View as _0x53e3dc}from'ckeditor5/src/ui.js';function _0x4370(){const _0x2a052c=['index','ck-ai-suggestion__body','bind','state','_actionsView','find','length','from','addEventListener','hasNonEmptyParts','queueEmptyPromise','updateVisibility','areActionsDisabled','793680lEhdyI','warning','13zOqNOj','markAsDone','createCollection','setTemplate','_updateContentPartsPromiseQueue','_children','1951504RKZSVO','_areActionsDisabled','1110480lcaiMf','AI_SUGGESTION_NO_PARTS_WARNING','pending','314565jNzcBg','forEach','isEnabled','set','setPartActive','abort','isTrackChangesOn','hasPendingParts','17526ZOKggq','enqueue','819445dGggph','addSource','findIndex','locale','hasChanges','isActive','some','filter','AI_SUGGESTION_EMPTY_PART_WARNING','setContent','empty-parts-warning','partsCount','updateContentParts','_showUnchangedParts','_emptyPartsWarningView','_switchButtonLabelsPlurality','_sourcesView','updateContent','_availableActions','add','partDefinition','updateSources','bodyCollection','376128dYIDjI','push','_cachedContentParts','delegate','updatePartState','availableActions','isVisible','getPartView','ck-ai-suggestion__body__content-parts','div'];_0x4370=function(){return _0x2a052c;};return _0x4370();}import{AISuggestionBodyViewContentPartView as _0x598034}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x465c2d}from'../../utils/eventnames.js';import{PromiseQueue as _0x1b9173}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xe0ac6f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x511914}from'../../utils/common-translations.js';function _0x3a4c(_0x1a7fd6,_0x122a7c){const _0x4370e8=_0x4370();return _0x3a4c=function(_0x3a4c83,_0x4e294e){_0x3a4c83=_0x3a4c83-0x153;let _0x429013=_0x4370e8[_0x3a4c83];return _0x429013;},_0x3a4c(_0x1a7fd6,_0x122a7c);}import{AIChatFeedSuggestionItemActionsView as _0x4598b4}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1f4855}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x53e3dc{[_0x5551db(0x15e)];[_0x5551db(0x18e)];[_0x5551db(0x16e)];[_0x5551db(0x170)];[_0x5551db(0x18b)];[_0x5551db(0x16d)];[_0x5551db(0x18c)];[_0x5551db(0x190)];[_0x5551db(0x197)]=[];constructor(_0x2d4a8c,_0x2e30ab){const _0x4bc225=_0x5551db;super(_0x2d4a8c);const {areActionsDisabled:_0x2151c3,showUnchangedParts:_0x17b1b7,availableActions:_0x4fa612}=_0x2e30ab;this[_0x4bc225(0x170)]=_0x2151c3,this[_0x4bc225(0x18b)]=_0x17b1b7,this[_0x4bc225(0x190)]=_0x4fa612,this[_0x4bc225(0x177)](_0x4bc225(0x17b),!0x1),this[_0x4bc225(0x177)](_0x4bc225(0x17a),!0x1),this[_0x4bc225(0x16e)]=this[_0x4bc225(0x16b)](),this[_0x4bc225(0x16d)]=new _0x1b9173(),this[_0x4bc225(0x18c)]=new _0xe0ac6f({'id':_0x4bc225(0x188),'initialContent':_0x511914(_0x2d4a8c,_0x4bc225(0x186)),'level':_0x4bc225(0x168)}),this[_0x4bc225(0x18c)][_0x4bc225(0x156)]=!0x1,this[_0x4bc225(0x15e)]=new _0x4598b4(_0x2d4a8c,_0x2e30ab[_0x4bc225(0x155)],this[_0x4bc225(0x170)]),this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x17a))['to'](this),this[_0x4bc225(0x18e)]=new _0x1f4855(this[_0x4bc225(0x181)],_0x2e30ab[_0x4bc225(0x194)]),_0x2e30ab[_0x4bc225(0x166)]?this[_0x4bc225(0x15e)][_0x4bc225(0x176)]=!0x1:this[_0x4bc225(0x15e)][_0x4bc225(0x15c)](_0x4bc225(0x176))['to'](this,_0x4bc225(0x17b)),this[_0x4bc225(0x15e)][_0x4bc225(0x153)](..._0x465c2d)['to'](this),this[_0x4bc225(0x16c)]({'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x15b)]},'children':[{'tag':_0x4bc225(0x159),'attributes':{'class':['ck',_0x4bc225(0x158)]},'children':this[_0x4bc225(0x16e)]},this[_0x4bc225(0x18c)],this[_0x4bc225(0x15e)],this[_0x4bc225(0x18e)]]});}get[_0x5551db(0x189)](){const _0x27b727=_0x5551db;return this[_0x27b727(0x16e)][_0x27b727(0x160)];}async[_0x5551db(0x18a)]({parts:_0x1f06f7,renderingStrategy:_0x475806,abortSignal:_0x223d9c}){const _0x283c0b=_0x5551db;this[_0x283c0b(0x16e)][_0x283c0b(0x160)]?_0x1f06f7[_0x283c0b(0x175)](_0x1d9990=>{const _0x29fafe=_0x283c0b,_0x308e14=this[_0x29fafe(0x197)][_0x29fafe(0x180)](_0x5bb799=>_0x5bb799[_0x29fafe(0x15a)]==_0x1d9990[_0x29fafe(0x15a)]);-0x1===_0x308e14?this[_0x29fafe(0x197)][_0x29fafe(0x196)](_0x1d9990):this[_0x29fafe(0x197)][_0x308e14]=_0x1d9990;}):this[_0x283c0b(0x197)]=_0x1f06f7;const _0x10820a=this[_0x283c0b(0x18b)]?_0x1f06f7:_0x1f06f7[_0x283c0b(0x185)](_0x252c2a=>_0x252c2a[_0x283c0b(0x182)]);this[_0x283c0b(0x15e)][_0x283c0b(0x18d)](_0x10820a[_0x283c0b(0x160)]>0x1);for(const _0x283ca9 of _0x10820a)this[_0x283c0b(0x16d)][_0x283c0b(0x17d)](async _0x4ab46c=>{const _0x3334cc=_0x283c0b;let _0x20ecc6=this[_0x3334cc(0x157)](_0x283ca9[_0x3334cc(0x15a)]);_0x20ecc6||(_0x20ecc6=new _0x598034(this[_0x3334cc(0x181)],{'part':_0x283ca9,'uiIndex':this[_0x3334cc(0x16e)][_0x3334cc(0x160)]+0x1,'areActionsDisabled':this[_0x3334cc(0x170)],'availableActions':this[_0x3334cc(0x190)]}),_0x20ecc6[_0x3334cc(0x153)](..._0x465c2d)['to'](this),this[_0x3334cc(0x16e)][_0x3334cc(0x191)](_0x20ecc6),this[_0x3334cc(0x17b)]=!0x0),await _0x20ecc6[_0x3334cc(0x18f)]({'part':_0x283ca9,'renderingStrategy':_0x475806,'showUnchangedParts':this[_0x3334cc(0x18b)],'abortSignal':_0x4ab46c}),_0x20ecc6[_0x3334cc(0x16a)]();});return _0x223d9c?.[_0x283c0b(0x162)](_0x283c0b(0x179),()=>{const _0x3a3928=_0x283c0b;this[_0x3a3928(0x16d)][_0x3a3928(0x179)]();}),this[_0x283c0b(0x16d)][_0x283c0b(0x164)];}[_0x5551db(0x154)](_0x4acc52,_0xc1efa4){const _0x50db3e=_0x5551db,_0x155752=this[_0x50db3e(0x157)](_0x4acc52);_0x155752&&(_0x155752[_0x50db3e(0x15d)]=_0xc1efa4),this[_0x50db3e(0x17b)]=_0x50db3e(0x173)==_0xc1efa4||Array[_0x50db3e(0x161)](this[_0x50db3e(0x16e)])[_0x50db3e(0x184)](_0x55f946=>_0x50db3e(0x173)==_0x55f946[_0x50db3e(0x15d)]);}[_0x5551db(0x178)](_0x3b2371,_0x10d5fa){const _0x164187=_0x5551db;if(!0x1===_0x3b2371){for(const _0x4f61ae of this[_0x164187(0x16e)])_0x4f61ae[_0x164187(0x183)]=!0x1;}else{const _0x137ace=this[_0x164187(0x157)](_0x3b2371);_0x137ace&&(_0x137ace[_0x164187(0x183)]=_0x10d5fa);}}[_0x5551db(0x193)](_0x27c5cc){const _0x1e06d1=_0x5551db;_0x27c5cc[_0x1e06d1(0x175)](_0x28747d=>this[_0x1e06d1(0x18e)][_0x1e06d1(0x17f)](_0x28747d)),this[_0x1e06d1(0x18e)][_0x1e06d1(0x156)]=!0x0;}[_0x5551db(0x157)](_0x31b474){const _0x134a48=_0x5551db;return this[_0x134a48(0x16e)][_0x134a48(0x15f)](_0x123ea6=>_0x123ea6[_0x134a48(0x192)][_0x134a48(0x15a)]==_0x31b474)??null;}[_0x5551db(0x16a)](){const _0x24cc0c=_0x5551db;if(!this[_0x24cc0c(0x18b)]){const _0x39a98d=!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x4c28d9})=>_0x4c28d9),_0x464b66=!!this[_0x24cc0c(0x197)][_0x24cc0c(0x15f)](({hasChanges:_0x2ee9f1})=>!_0x2ee9f1);this[_0x24cc0c(0x18c)][_0x24cc0c(0x156)]=0x0==this[_0x24cc0c(0x16e)][_0x24cc0c(0x160)]||_0x464b66,_0x39a98d?this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x172))):this[_0x24cc0c(0x18c)][_0x24cc0c(0x187)](_0x511914(this[_0x24cc0c(0x181)],_0x24cc0c(0x186)));}this[_0x24cc0c(0x16e)][_0x24cc0c(0x175)](_0x37ff91=>_0x37ff91[_0x24cc0c(0x16a)]()),this[_0x24cc0c(0x15e)][_0x24cc0c(0x165)](this[_0x24cc0c(0x163)]);}get[_0x5551db(0x163)](){const _0x592353=_0x5551db;return this[_0x592353(0x16e)][_0x592353(0x185)](_0x2648ea=>_0x2648ea[_0x592353(0x192)][_0x592353(0x182)])[_0x592353(0x160)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44a6c3=_0x201c;(function(_0x34f4ce,_0x3e0acd){const _0x1b10b9=_0x201c,_0x1c4a78=_0x34f4ce();while(!![]){try{const _0x394b8e=parseInt(_0x1b10b9(0x18b))/0x1+-parseInt(_0x1b10b9(0x18a))/0x2+-parseInt(_0x1b10b9(0x18d))/0x3*(-parseInt(_0x1b10b9(0x199))/0x4)+parseInt(_0x1b10b9(0x18e))/0x5+-parseInt(_0x1b10b9(0x17e))/0x6*(parseInt(_0x1b10b9(0x18c))/0x7)+parseInt(_0x1b10b9(0x19a))/0x8*(parseInt(_0x1b10b9(0x195))/0x9)+parseInt(_0x1b10b9(0x196))/0xa;if(_0x394b8e===_0x3e0acd)break;else _0x1c4a78['push'](_0x1c4a78['shift']());}catch(_0x36d7db){_0x1c4a78['push'](_0x1c4a78['shift']());}}}(_0x4593,0x49bc5));function _0x201c(_0x4a688c,_0x5d702f){const _0x4593df=_0x4593();return _0x201c=function(_0x201c17,_0x330e07){_0x201c17=_0x201c17-0x17a;let _0x46aa1b=_0x4593df[_0x201c17];return _0x46aa1b;},_0x201c(_0x4a688c,_0x5d702f);}import{View as _0x5c5f53}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5cb4d0}from'./aisuggestionheaderview.js';function _0x4593(){const _0x29f7cd=['bodyView','isShowChangesToggleVisible','662262YmUzFk','328616timTsj','7fGusZT','249969TfdHHV','964910WylfeR','headerView','createCollection','children','markAsDone','isOn','div','22860fbpEiI','939670UQOKOR','bind','updateContent','4siXiQo','768UPmQEu','isTrackChangesOn','ck-ai-suggestion__container','toggleSuggestionDisplayMode','updateContentParts','fire','1857456soEQkW','add','set','delegate','updateSources','setTemplate','areChangesVisible','ck-rounded-corners','toggleShowChanges','hasNonEmptyParts'];_0x4593=function(){return _0x29f7cd;};return _0x4593();}import{AISuggestionBodyView as _0x74c478}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x203458}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x5c5f53{[_0x44a6c3(0x188)];[_0x44a6c3(0x191)];[_0x44a6c3(0x18f)];constructor(_0x2aa842,_0x4f7ab4,_0x18d74e){const _0x36e2a9=_0x44a6c3;super(_0x2aa842);const {showDiff:_0x3bc4f8,areActionsDisabled:_0x278322,showUnchangedParts:_0x147f74,availableActions:_0x437595}=_0x4f7ab4;this[_0x36e2a9(0x180)](_0x36e2a9(0x19b),!0x1),this[_0x36e2a9(0x180)](_0x36e2a9(0x184),!0x1),this[_0x36e2a9(0x191)]=this[_0x36e2a9(0x190)](),this[_0x36e2a9(0x18f)]=new _0x5cb4d0(_0x2aa842,{'showDiff':_0x3bc4f8}),this[_0x36e2a9(0x18f)]['on'](_0x36e2a9(0x186),(_0x192821,_0x4d4dba)=>{const _0x11549d=_0x36e2a9;this[_0x11549d(0x184)]=_0x4d4dba[_0x11549d(0x193)],this[_0x11549d(0x17d)](_0x11549d(0x17b),{'showDiff':_0x4d4dba[_0x11549d(0x193)]});}),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x18f)]),this[_0x36e2a9(0x188)]=new _0x74c478(_0x2aa842,{'areActionsDisabled':_0x278322,'showUnchangedParts':!!_0x147f74,'availableActions':_0x437595,'bodyCollection':_0x18d74e}),this[_0x36e2a9(0x188)][_0x36e2a9(0x181)](..._0x203458)['to'](this),this[_0x36e2a9(0x188)][_0x36e2a9(0x197)](_0x36e2a9(0x19b))['to'](this),this[_0x36e2a9(0x191)][_0x36e2a9(0x17f)](this[_0x36e2a9(0x188)]),this[_0x36e2a9(0x183)]({'tag':_0x36e2a9(0x194),'attributes':{'class':['ck',_0x36e2a9(0x17a),_0x36e2a9(0x185)]},'children':this[_0x36e2a9(0x191)]});}async[_0x44a6c3(0x198)](_0x296e16){const _0x1497de=_0x44a6c3;await this[_0x1497de(0x188)][_0x1497de(0x17c)](_0x296e16);}[_0x44a6c3(0x182)](_0x4cd2cf){const _0x1fd7b6=_0x44a6c3;this[_0x1fd7b6(0x188)][_0x1fd7b6(0x182)](_0x4cd2cf);}[_0x44a6c3(0x192)](){const _0x14e573=_0x44a6c3;this[_0x14e573(0x188)][_0x14e573(0x192)](),this[_0x14e573(0x18f)]&&(this[_0x14e573(0x18f)][_0x14e573(0x189)]=this[_0x14e573(0x188)][_0x14e573(0x187)]);}}
|