@ckeditor/ckeditor5-ai 47.7.5-alpha.0 → 47.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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 _0x53cee2=_0x3303;(function(_0x1cb59b,_0xc75bb3){const _0x436238=_0x3303,_0x1a3873=_0x1cb59b();while(!![]){try{const _0x4bbe30=parseInt(_0x436238(0x1d6))/0x1*(-parseInt(_0x436238(0x1b9))/0x2)+parseInt(_0x436238(0x1bc))/0x3+parseInt(_0x436238(0x1ba))/0x4+parseInt(_0x436238(0x1d2))/0x5*(-parseInt(_0x436238(0x1fa))/0x6)+parseInt(_0x436238(0x1b5))/0x7*(parseInt(_0x436238(0x1e0))/0x8)+-parseInt(_0x436238(0x1e8))/0x9+parseInt(_0x436238(0x1f8))/0xa*(parseInt(_0x436238(0x1c2))/0xb);if(_0x4bbe30===_0xc75bb3)break;else _0x1a3873['push'](_0x1a3873['shift']());}catch(_0x2f4774){_0x1a3873['push'](_0x1a3873['shift']());}}}(_0x1a06,0x8d12c));function _0x3303(_0x18b751,_0x174bd2){const _0x1a06bb=_0x1a06();return _0x3303=function(_0x330399,_0x2a7a57){_0x330399=_0x330399-0x1a8;let _0x3d84cb=_0x1a06bb[_0x330399];return _0x3d84cb;},_0x3303(_0x18b751,_0x174bd2);}function _0x1a06(){const _0x4ecd60=['toolName','callId','splice','5760940gItwrT','message-metadata','6aEiQAQ','resetWebSearchState','data','_finalizeInteraction','textDelta','attributes','push','destroy','mcp-tool-result','find','conversation-title','interactionFinished','actionCallId','editor','modification-delta','reasoningFinished','ai-chat-interaction-error','webSearchFinished','interactionDestroyed','49zurfub','replyChangeGroupStateUpdated','abortController','_isReasoning','2nphmpm','2132812XOftnM','setConversationTitle','1293891ebPuwD','resetReasoningState','sources','getReply','abort','interactionStopped','11lrrAMX','isStopped','createReply','error','replies','parse','conversationTitle','mcp-tool-notification','reasoningStarted','reasoning','length','web-search','currentReply','_handleToolResultData','_handleToolNotificationData','type','5207905skLkfH','toolDataReceived','result','done','464416pcYKgc','event','currentRequest','stop','fire','content','interactionStarted','webSearchStarted','sendRequest','appendContent','1199336RQfKvw','messageId','forEach','getStream','text','replyContentUpdated','connector','interactionCreated','4555620OwjicQ','delegate','start','stopListening','_isWebSearching','source','modification','notification','replyCreated','action-metadata','text-delta','isDestroyed','getDocumentContext'];_0x1a06=function(){return _0x4ecd60;};return _0x1a06();}import{CKEditorError as _0x2987ae,EmitterMixin as _0x28e8ca,uid as _0x44b2e9}from'ckeditor5/src/utils.js';import{AIReply as _0x3ffcc3}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x53cee2(0x1e7),_0x53cee2(0x1dc),_0x53cee2(0x1c1),_0x53cee2(0x1ad),_0x53cee2(0x1b4),_0x53cee2(0x1f0),_0x53cee2(0x1e5),_0x53cee2(0x1b6),_0x53cee2(0x1bb),_0x53cee2(0x1dd),_0x53cee2(0x1b3),_0x53cee2(0x1ca),_0x53cee2(0x1b1),_0x53cee2(0x1d3),_0x53cee2(0x1c5)];export class AIInteraction extends _0x28e8ca(){['id'];[_0x53cee2(0x1c6)]=[];[_0x53cee2(0x1ce)];[_0x53cee2(0x1e1)];[_0x53cee2(0x1ae)];[_0x53cee2(0x1d8)];[_0x53cee2(0x1e6)];[_0x53cee2(0x1c3)]=!0x1;[_0x53cee2(0x1f3)]=!0x1;[_0x53cee2(0x1af)];[_0x53cee2(0x1b8)]=!0x1;[_0x53cee2(0x1ec)]=!0x1;constructor({connector:_0x1adef5,editor:_0x36a935}){const _0x1cdc1d=_0x53cee2;super(),this['id']=_0x44b2e9(),this[_0x1cdc1d(0x1e6)]=_0x1adef5,this[_0x1cdc1d(0x1c3)]=!0x0,this[_0x1cdc1d(0x1af)]=_0x36a935;}async[_0x53cee2(0x1ea)](){const _0x27114e=_0x53cee2,_0x18b9b2=[];let _0x1aced4,_0x52063d,_0x167249;this[_0x27114e(0x1c3)]=!0x1;try{this[_0x27114e(0x1d8)]=await this[_0x27114e(0x1de)](),this[_0x27114e(0x1da)](_0x27114e(0x1dc),this);const _0x5b6899=await this[_0x27114e(0x1d8)][_0x27114e(0x1e3)]();for await(const _0x4fb256 of _0x5b6899){if(this[_0x27114e(0x1c3)])return;if(_0x27114e(0x1c5)==_0x4fb256[_0x27114e(0x1d7)])return void this[_0x27114e(0x1da)](_0x27114e(0x1c5),{'error':new _0x2987ae(_0x27114e(0x1b2),this)});switch(_0x4fb256[_0x27114e(0x1d7)]){case _0x27114e(0x1f9):this[_0x27114e(0x1e1)]=_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1e1)];break;case _0x27114e(0x1f1):this[_0x27114e(0x1ae)]=_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1f6)];break;case _0x27114e(0x1ac):this[_0x27114e(0x1bb)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1c8)],!0x0);break;case _0x27114e(0x1ed):_0x18b9b2[_0x27114e(0x1a8)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1ed)]);break;case _0x27114e(0x1cd):this[_0x27114e(0x1ec)]||(this[_0x27114e(0x1ec)]=!0x0,this[_0x27114e(0x1da)](_0x27114e(0x1dd),this));break;case _0x27114e(0x1cb):this[_0x27114e(0x1b8)]||(this[_0x27114e(0x1b8)]=!0x0,this[_0x27114e(0x1da)](_0x27114e(0x1ca),this));break;case _0x27114e(0x1b0):case _0x27114e(0x1f2):this[_0x27114e(0x1bd)](),this[_0x27114e(0x1fb)](),_0x1aced4=_0x27114e(0x1b0)==_0x4fb256[_0x27114e(0x1d7)]?_0x27114e(0x1ee):_0x27114e(0x1e4),_0x52063d=_0x27114e(0x1b0)==_0x4fb256[_0x27114e(0x1d7)]?_0x4fb256[_0x27114e(0x1fc)]['id']:void 0x0,this[_0x27114e(0x1ce)]&&this[_0x27114e(0x1ce)][_0x27114e(0x1d1)]!=_0x1aced4&&(this[_0x27114e(0x1ce)][_0x27114e(0x1d5)](),this[_0x27114e(0x1ce)]=void 0x0),this[_0x27114e(0x1ce)]||(this[_0x27114e(0x1ce)]=this[_0x27114e(0x1c4)]({'type':_0x1aced4,'interactionId':this['id'],'id':_0x52063d}),_0x27114e(0x1ee)==_0x1aced4&&(this[_0x27114e(0x1ce)][_0x27114e(0x1be)]=_0x18b9b2[_0x27114e(0x1f7)](0x0))),this[_0x27114e(0x1ce)][_0x27114e(0x1df)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1fe)]);break;case _0x27114e(0x1aa):_0x167249=JSON[_0x27114e(0x1c7)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1d4)]),this[_0x27114e(0x1cf)]({'toolName':_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1f5)],'data':_0x167249[_0x27114e(0x1fc)],'attributes':_0x167249[_0x27114e(0x1ff)]});break;case _0x27114e(0x1c9):this[_0x27114e(0x1d0)]({'toolName':_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1f5)],'data':_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1fc)]});}}}finally{this[_0x27114e(0x1c3)]||(this[_0x27114e(0x1ce)]&&_0x18b9b2[_0x27114e(0x1cc)]>0x0&&(this[_0x27114e(0x1ce)][_0x27114e(0x1be)]=_0x18b9b2[_0x27114e(0x1f7)](0x0)),this[_0x27114e(0x1fd)](),this[_0x27114e(0x1da)](_0x27114e(0x1ad),this));}}[_0x53cee2(0x1d9)](){const _0x5e31ec=_0x53cee2;this[_0x5e31ec(0x1c3)]||(this[_0x5e31ec(0x1fd)](),this[_0x5e31ec(0x1da)](_0x5e31ec(0x1c1),this));}[_0x53cee2(0x1bf)](_0x2213be){const _0x2f8063=_0x53cee2;return this[_0x2f8063(0x1c6)][_0x2f8063(0x1ab)](_0x3c48be=>_0x3c48be['id']===_0x2213be);}[_0x53cee2(0x1a9)](){const _0x41cdba=_0x53cee2;this[_0x41cdba(0x1f3)]||(this[_0x41cdba(0x1d9)](),this[_0x41cdba(0x1c6)][_0x41cdba(0x1e2)](_0x2c8d35=>_0x2c8d35[_0x41cdba(0x1a9)]()),this[_0x41cdba(0x1c6)]=[],this[_0x41cdba(0x1f3)]=!0x0,this[_0x41cdba(0x1da)](_0x41cdba(0x1b4),this),this[_0x41cdba(0x1eb)]());}[_0x53cee2(0x1c4)](_0x3755ec){const _0xdebce3=_0x53cee2,_0x29abc5=new _0x3ffcc3({'editor':this[_0xdebce3(0x1af)],'documentContextContent':this[_0xdebce3(0x1f4)]()?.[_0xdebce3(0x1db)],..._0x3755ec});return this[_0xdebce3(0x1c6)][_0xdebce3(0x1a8)](_0x29abc5),_0x29abc5[_0xdebce3(0x1e9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xdebce3(0x1da)](_0xdebce3(0x1f0),_0x29abc5),_0x29abc5;}[_0x53cee2(0x1bb)](_0x16f0ac,_0x312dbb=!0x1){const _0x211381=_0x53cee2;this[_0x211381(0x1da)](_0x211381(0x1bb),_0x16f0ac,_0x312dbb);}[_0x53cee2(0x1fb)](){const _0x52fa48=_0x53cee2;this[_0x52fa48(0x1ec)]&&(this[_0x52fa48(0x1ec)]=!0x1,this[_0x52fa48(0x1da)](_0x52fa48(0x1b3),this));}[_0x53cee2(0x1bd)](){const _0x235872=_0x53cee2;this[_0x235872(0x1b8)]&&(this[_0x235872(0x1b8)]=!0x1,this[_0x235872(0x1da)](_0x235872(0x1b1),this));}[_0x53cee2(0x1cf)](_0x239b8a){const _0x10e1b8=_0x53cee2;this[_0x10e1b8(0x1da)](_0x10e1b8(0x1d3),{'type':_0x10e1b8(0x1d4),'toolName':_0x239b8a[_0x10e1b8(0x1f5)],'data':structuredClone(_0x239b8a[_0x10e1b8(0x1fc)]||{}),'attributes':structuredClone(_0x239b8a[_0x10e1b8(0x1ff)]||{})},this);}[_0x53cee2(0x1d0)](_0x1a552e){const _0x3bb7cc=_0x53cee2;this[_0x3bb7cc(0x1da)](_0x3bb7cc(0x1d3),{'type':_0x3bb7cc(0x1ef),'toolName':_0x1a552e[_0x3bb7cc(0x1f5)],'data':structuredClone(_0x1a552e[_0x3bb7cc(0x1fc)])},this);}[_0x53cee2(0x1fd)](){const _0x29dd47=_0x53cee2;this[_0x29dd47(0x1c3)]=!0x0,this[_0x29dd47(0x1d8)]&&this[_0x29dd47(0x1d8)][_0x29dd47(0x1b7)][_0x29dd47(0x1c0)](),this[_0x29dd47(0x1ce)]&&this[_0x29dd47(0x1ce)][_0x29dd47(0x1d5)](),this[_0x29dd47(0x1d8)]=this[_0x29dd47(0x1ce)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5117c6=_0x330b;(function(_0x4a07a5,_0xcf16f0){const _0x5f1005=_0x330b,_0x4e00ef=_0x4a07a5();while(!![]){try{const _0xa2e529=parseInt(_0x5f1005(0x1db))/0x1*(-parseInt(_0x5f1005(0x1bf))/0x2)+parseInt(_0x5f1005(0x1d1))/0x3*(parseInt(_0x5f1005(0x1b5))/0x4)+parseInt(_0x5f1005(0x1d6))/0x5+parseInt(_0x5f1005(0x1dd))/0x6*(parseInt(_0x5f1005(0x1c7))/0x7)+parseInt(_0x5f1005(0x1b9))/0x8+parseInt(_0x5f1005(0x1cc))/0x9*(-parseInt(_0x5f1005(0x1b3))/0xa)+-parseInt(_0x5f1005(0x1c8))/0xb;if(_0xa2e529===_0xcf16f0)break;else _0x4e00ef['push'](_0x4e00ef['shift']());}catch(_0x299fc5){_0x4e00ef['push'](_0x4e00ef['shift']());}}}(_0x3b7e,0xdfb73));import{EmitterMixin as _0x5b3562,logWarning as _0x378098,logError as _0x373168}from'ckeditor5/src/utils.js';function _0x330b(_0x524e7a,_0x48c3a7){const _0x3b7ea8=_0x3b7e();return _0x330b=function(_0x330bc8,_0x179fd1){_0x330bc8=_0x330bc8-0x1b0;let _0x4f8642=_0x3b7ea8[_0x330bc8];return _0x4f8642;},_0x330b(_0x524e7a,_0x48c3a7);}function _0x3b7e(){const _0x223a7b=['add','3BWQkwC','displayedModels','9187674fGmAwy','_defaultModelId','has','ai-chat-model-id-unrecognized','items','_isMatchingFilter','some','getDefault','map','_connector','getAll','20EEssNw','getModels','4mCylGm','_locale','startsWith','_modelsRequest','1442888QTIWHU','filter','_getModelById','string','_retrieveModels','_config','354428ecvxyY','ai-chat-default-model-id-unrecognized','list','getModel','length','_modelList','getAvailableModels','isAvailable','7vtXNkg','16768488EVDDqG','provider','uiLanguage','defaultModelId','4495437cIjBNT','auto','_availableModels','ai-models-unable-to-retrieve','toLocaleLowerCase','5119011SQQmfw','push','_filterModels','name','find','2766990ApTEYI','recommended','agent','AI_MODEL_NAME_AUTO'];_0x3b7e=function(){return _0x223a7b;};return _0x3b7e();}import{getTranslation as _0x41ed44}from'../utils/common-translations.js';export class AIModels extends _0x5b3562(){[_0x5117c6(0x1b1)];[_0x5117c6(0x1be)];[_0x5117c6(0x1b6)];[_0x5117c6(0x1c4)]=[];[_0x5117c6(0x1b8)]=null;constructor({connector:_0x2a52f2,config:_0x4fcb11,locale:_0x2a81b4}){const _0x5e2d05=_0x5117c6;super(),this[_0x5e2d05(0x1b1)]=_0x2a52f2,this[_0x5e2d05(0x1be)]=_0x4fcb11,this[_0x5e2d05(0x1b6)]=_0x2a81b4;}get[_0x5117c6(0x1ce)](){const _0x37a4ae=_0x5117c6;return this[_0x37a4ae(0x1be)]?.[_0x37a4ae(0x1dc)];}get[_0x5117c6(0x1de)](){const _0x46fcab=_0x5117c6;return this[_0x46fcab(0x1be)]?.[_0x46fcab(0x1cb)];}async[_0x5117c6(0x1b2)](){const _0x144179=_0x5117c6;return this[_0x144179(0x1b8)]||(this[_0x144179(0x1b8)]=this[_0x144179(0x1bd)]()),this[_0x144179(0x1b8)];}async[_0x5117c6(0x1c5)](){const _0x64f61a=_0x5117c6,_0xa7ce46=await this[_0x64f61a(0x1b2)]();let _0x31556a;return _0x31556a=this[_0x64f61a(0x1ce)]?this[_0x64f61a(0x1d3)](_0xa7ce46,this[_0x64f61a(0x1ce)]):_0xa7ce46[_0x64f61a(0x1ba)](_0x2110a7=>_0x2110a7[_0x64f61a(0x1d7)]),_0x31556a;}async[_0x5117c6(0x1c2)](_0x157670){const _0x2f1420=_0x5117c6,_0x43d9d8=await this[_0x2f1420(0x1b2)]();if(!_0x43d9d8[_0x2f1420(0x1c3)])return null;if(_0x157670){const _0x299b6f=this[_0x2f1420(0x1bb)](_0x43d9d8,_0x157670);if(_0x299b6f)return _0x299b6f;_0x378098(_0x2f1420(0x1e0),{'modelId':_0x157670,'fallBackModelId':this[_0x2f1420(0x1de)]});}return this[_0x2f1420(0x1e4)]();}async[_0x5117c6(0x1e4)](){const _0x13b4d8=_0x5117c6,_0x1d1ace=await this[_0x13b4d8(0x1c5)]();if(!_0x1d1ace[_0x13b4d8(0x1c3)])return null;if(this[_0x13b4d8(0x1de)]){const _0x2703f2=this[_0x13b4d8(0x1bb)](_0x1d1ace,this[_0x13b4d8(0x1de)]);if(_0x2703f2)return _0x2703f2;_0x378098(_0x13b4d8(0x1c0),{'defaultModelId':this[_0x13b4d8(0x1de)],'fallBackModelId':_0x1d1ace[0x0]['id']});}return _0x1d1ace[0x0];}async[_0x5117c6(0x1c6)](_0x15803e){const _0x335a8=_0x5117c6;return(await this[_0x335a8(0x1c5)]())[_0x335a8(0x1e3)](_0x11e495=>_0x11e495[_0x335a8(0x1d4)]===_0x15803e[_0x335a8(0x1d4)]&&_0x11e495[_0x335a8(0x1c9)]===_0x15803e[_0x335a8(0x1c9)]);}async[_0x5117c6(0x1bd)](){const _0x50b409=_0x5117c6;if(!this[_0x50b409(0x1c4)][_0x50b409(0x1c3)])try{const _0x51d6cc=this[_0x50b409(0x1b6)][_0x50b409(0x1ca)]||'en',_0x32c7ff=this[_0x50b409(0x1b1)][_0x50b409(0x1b4)](_0x51d6cc),_0x40be70=await _0x32c7ff[_0x50b409(0x1c1)]();this[_0x50b409(0x1c4)]=_0x40be70[_0x50b409(0x1e1)][_0x50b409(0x1b0)](_0x37273b=>qi(_0x37273b)?{..._0x37273b,'name':_0x41ed44(this[_0x50b409(0x1b6)],_0x50b409(0x1d9))}:_0x37273b);}catch(_0x4255e3){throw _0x373168(_0x50b409(0x1cf),{'error':_0x4255e3}),_0x4255e3;}return[...this[_0x50b409(0x1c4)]];}[_0x5117c6(0x1d3)](_0x2ddbab,_0x4233d2){const _0xb21b69=_0x5117c6;let _0x2326e7;if(_0x4233d2){_0x2326e7=[];const _0x47e17c=new Set(),_0x4e4d6c=_0xb21b69(0x1bc)==typeof _0x4233d2?[_0x4233d2[_0xb21b69(0x1d0)]()]:_0x4233d2[_0xb21b69(0x1b0)](_0x2f0c82=>_0x2f0c82[_0xb21b69(0x1d0)]());for(const _0x3b44ae of _0x4e4d6c)for(const _0xc92f1a of _0x2ddbab)!_0x47e17c[_0xb21b69(0x1df)](_0xc92f1a['id'])&&this[_0xb21b69(0x1e2)](_0xc92f1a,_0x3b44ae)&&(_0x2326e7[_0xb21b69(0x1d2)](_0xc92f1a),_0x47e17c[_0xb21b69(0x1da)](_0xc92f1a['id']));}else _0x2326e7=_0x2ddbab;return _0x2326e7;}[_0x5117c6(0x1e2)](_0x17e81c,_0x5b9089){const _0x4f7978=_0x5117c6,_0x14320e=_0x17e81c['id'][_0x4f7978(0x1d0)](),_0x1774d5=_0x17e81c[_0x4f7978(0x1d4)][_0x4f7978(0x1d0)](),_0x2dc271=_0x17e81c[_0x4f7978(0x1c9)][_0x4f7978(0x1d0)]();return _0x14320e===_0x5b9089||_0x1774d5===_0x5b9089||qi(_0x17e81c)&&_0x4f7978(0x1cd)===_0x5b9089||_0x2dc271===_0x5b9089||_0x14320e[_0x4f7978(0x1b7)](_0x5b9089);}[_0x5117c6(0x1bb)](_0xe93f54,_0x97a93f){const _0x5457f8=_0x5117c6;return _0xe93f54[_0x5457f8(0x1d5)](_0x4cfe85=>qi(_0x4cfe85)&&_0x5457f8(0x1cd)===_0x97a93f?_0x4cfe85:_0x4cfe85['id']===_0x97a93f)||null;}}function qi(_0x3c7c3c){const _0x2fc94f=_0x5117c6;return _0x3c7c3c['id'][_0x2fc94f(0x1b7)](_0x2fc94f(0x1d8));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x26ce9d=_0x30ae;(function(_0x768623,_0x4357fe){const _0xe84b51=_0x30ae,_0x4cb024=_0x768623();while(!![]){try{const _0x18f5f1=parseInt(_0xe84b51(0xda))/0x1+parseInt(_0xe84b51(0xfa))/0x2*(parseInt(_0xe84b51(0xd8))/0x3)+-parseInt(_0xe84b51(0xd0))/0x4+-parseInt(_0xe84b51(0xce))/0x5*(parseInt(_0xe84b51(0xf4))/0x6)+parseInt(_0xe84b51(0xc4))/0x7*(-parseInt(_0xe84b51(0xb7))/0x8)+-parseInt(_0xe84b51(0xeb))/0x9+-parseInt(_0xe84b51(0xe4))/0xa*(-parseInt(_0xe84b51(0xed))/0xb);if(_0x18f5f1===_0x4357fe)break;else _0x4cb024['push'](_0x4cb024['shift']());}catch(_0x3da640){_0x4cb024['push'](_0x4cb024['shift']());}}}(_0x3bf6,0x7b090));import{CKEditorError as _0x5e40d0,ObservableMixin as _0x46c9bd,uid as _0x4f316a}from'ckeditor5/src/utils.js';import{Element as _0x5d814f,findAll as _0x122897,getAttribute as _0x18f9ed,getParents as _0x1632ba,Document as _0x2f1415,parse as _0xc44688,Text as _0x526c97}from'../utils/htmlparser.js';import{AIResponseParser as _0x5c5811}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5c6a6a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x19dcba}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5ba47d}from'../utils/common-translations.js';import{cloneDeep as _0x232a21}from'es-toolkit';function _0x30ae(_0x5b4da6,_0x5e7f1c){const _0x3bf69d=_0x3bf6();return _0x30ae=function(_0x30ae63,_0x502578){_0x30ae63=_0x30ae63-0xaa;let _0x21557a=_0x3bf69d[_0x30ae63];return _0x21557a;},_0x30ae(_0x5b4da6,_0x5e7f1c);}function _0x3bf6(){const _0x323f99=['getContentParts','new','index','ai-get-editor-from-context-no-editor','_setCachedContentParts','locale','30QKRFEk','interactionId','node','changes','merge','cachedSuggestionContentParts','updateChangeGroups','4300371lWuvJA','pending','545435okeuXY','AI_SUGGESTION_CONTENT_PART_REMOVED','type','filter','context','length','done','589728hmRAvn','parsedMergedContent','modifiedNodeIds','span','destroy','push','8FhijnD','documentContextContent','setChangeGroupState','areActionsDisabled','newNodeIds','editor','appendContent','isDone','splice','forEach','state','fire','convertMarkdownToHTML','sources','2456eACnJk','indexOf','removedNodeIds','withDiff','map','changeGroups','parsedContent','parseAndNormalizeHTML','includes','unshift','data-id','find','_getDifferentChangeGroups','5663zzkyZe','previousSibling','stopListening','aiResponseParser','replyChangeGroupStateUpdated','onContentChange','data-unstable','replyContentUpdated','set','removed','25rcBJMU','every','1104272lvJGMJ','cloneNode','aiResponseApplier','modification','nextSibling','change:content','color:\x20#808080;\x20font-style:\x20italic','_getCachedContentParts','700611EQmvvc','withoutDiff','914739fbgQCF','content','modified','ai-reply-get-content-parts-group-not-found'];_0x3bf6=function(){return _0x323f99;};return _0x3bf6();}export class AIReply extends _0x46c9bd(){['id'];[_0x26ce9d(0xe5)];[_0x26ce9d(0xef)];[_0x26ce9d(0xb6)]=[];[_0x26ce9d(0xbd)]=new _0x2f1415([]);[_0x26ce9d(0xf5)]=new _0x2f1415([]);[_0x26ce9d(0xbc)]=[];[_0x26ce9d(0xac)]=!0x1;[_0x26ce9d(0xaa)];[_0x26ce9d(0xc7)];[_0x26ce9d(0xd2)];[_0x26ce9d(0xae)];[_0x26ce9d(0xe9)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x365cee,content:_0x5b0f02='',isDone:_0x4a78ec=!0x1,interactionId:_0x4ade84,areActionsDisabled:_0x513062,documentContextContent:_0x3f0fbc,editor:_0x221bf3,id:_0x11c84d}){const _0x3b4530=_0x26ce9d;super(),this['id']=_0x11c84d||_0x4f316a(),this[_0x3b4530(0xe5)]=_0x4ade84,this[_0x3b4530(0xef)]=_0x365cee,this[_0x3b4530(0xac)]=!!_0x513062,this[_0x3b4530(0xae)]=_0x221bf3,this[_0x3b4530(0xc7)]=new _0x5c5811(),this[_0x3b4530(0xd2)]=new _0x5c6a6a(),this[_0x3b4530(0xaa)]=_0xc44688(_0x3f0fbc||''),this[_0x3b4530(0xcc)](_0x3b4530(0xb0),_0x4a78ec),this['on'](_0x3b4530(0xd5),()=>{const _0x94c43a=_0x3b4530;this[_0x94c43a(0xc9)]();}),this[_0x3b4530(0xcc)](_0x3b4530(0xdb),_0x5b0f02);}[_0x26ce9d(0xaf)](_0x59d0a8){const _0x240ec6=_0x26ce9d;this[_0x240ec6(0xcc)](_0x240ec6(0xdb),this[_0x240ec6(0xdb)]+_0x59d0a8);}[_0x26ce9d(0xf3)](){const _0x16a35d=_0x26ce9d;this[_0x16a35d(0xb0)]||(this[_0x16a35d(0xcc)](_0x16a35d(0xb0),!0x0),this[_0x16a35d(0xc9)]());}[_0x26ce9d(0xf8)](){const _0xfc4881=_0x26ce9d;this[_0xfc4881(0xc6)]();}[_0x26ce9d(0xab)](_0x2a0ebf,_0x5cbfd0){const _0x2a0fce=_0x26ce9d;this[_0x2a0fce(0xbc)][_0x2a0ebf][_0x2a0fce(0xb3)]=_0x5cbfd0,this[_0x2a0fce(0xb4)](_0x2a0fce(0xc8),{'reply':this,'index':_0x2a0ebf,'state':_0x5cbfd0});}[_0x26ce9d(0xde)]({showDiff:_0x15dbed,groupIndex:_0xcf2c04}){const _0x4919c4=_0x26ce9d;if(!this[_0x4919c4(0xae)])throw new _0x5e40d0(_0x4919c4(0xe1),null,{'aiReply':this});const _0x82a74d=this[_0x4919c4(0xd7)](_0x15dbed,_0xcf2c04);if(_0x82a74d)return _0x82a74d;let _0x3d596e=[];if(void 0x0===_0xcf2c04)_0x3d596e=this[_0x4919c4(0xbc)];else{const _0x391050=this[_0x4919c4(0xbc)][_0x4919c4(0xc2)](({index:_0x3bf94b})=>_0x3bf94b===_0xcf2c04);if(!_0x391050)throw new _0x5e40d0(_0x4919c4(0xdd),null,{'aiReply':this,'groupIndex':_0xcf2c04});_0x3d596e=[_0x391050];}const _0x27118d=_0x19dcba({'editor':this[_0x4919c4(0xae)],'showDiff':_0x15dbed,'changeGroups':_0x3d596e,'documentContextContent':this[_0x4919c4(0xaa)]});return this[_0x4919c4(0xe2)](_0x15dbed,_0x27118d),_0x27118d;}[_0x26ce9d(0xd7)](_0x30a29a,_0x489af0){const _0x467981=_0x26ce9d,_0x3de4aa=_0x30a29a?_0x467981(0xba):_0x467981(0xd9);if(!this[_0x467981(0xe9)][_0x3de4aa][_0x467981(0xf2)])return null;const _0xb7f85a=this[_0x467981(0xe9)][_0x3de4aa];if(void 0x0===_0x489af0)return _0xb7f85a[_0x467981(0xf2)]>0x0&&_0xb7f85a[_0x467981(0xf2)]!==this[_0x467981(0xbc)][_0x467981(0xf2)]?(this[_0x467981(0xe2)](_0x30a29a,null),null):_0x232a21(_0xb7f85a);{const _0x39acaa=_0xb7f85a[_0x467981(0xc2)](({index:_0x156796})=>_0x156796===_0x489af0);if(_0x39acaa)return[_0x232a21(_0x39acaa)];}return null;}[_0x26ce9d(0xe2)](_0x30b690,_0x1d9983){const _0x54bac9=_0x26ce9d,_0x28222c=_0x30b690?_0x54bac9(0xba):_0x54bac9(0xd9);_0x1d9983?_0x1d9983[_0x54bac9(0xb2)](_0x28aad7=>{const _0x5e5be7=_0x54bac9,_0x2d2d78=this[_0x5e5be7(0xe9)][_0x28222c],_0x196c73=_0x2d2d78[_0x5e5be7(0xc2)](({index:_0x226f17})=>_0x226f17===_0x28aad7[_0x5e5be7(0xe0)]);if(_0x196c73){const _0xb829e4=_0x2d2d78[_0x5e5be7(0xb8)](_0x196c73);_0x2d2d78[_0x5e5be7(0xb1)](_0xb829e4,0x1,_0x28aad7);}else _0x2d2d78[_0x5e5be7(0xf9)](_0x28aad7);}):this[_0x54bac9(0xe9)][_0x28222c][_0x54bac9(0xf2)]=0x0;}[_0x26ce9d(0xc9)](){const _0x18a979=_0x26ce9d;if(_0x18a979(0xd3)===this[_0x18a979(0xef)]){this[_0x18a979(0xbd)]=this[_0x18a979(0xc7)][_0x18a979(0xbe)](this[_0x18a979(0xdb)]);const _0x31d673=this[_0x18a979(0xbc)];this[_0x18a979(0xea)]();const _0x309a2a=this[_0x18a979(0xc3)](_0x31d673,this[_0x18a979(0xbc)]);(_0x309a2a[_0x18a979(0xf2)]||this[_0x18a979(0xb0)])&&(this[_0x18a979(0xb4)](_0x18a979(0xcb),this,_0x309a2a),this[_0x18a979(0xe9)][_0x18a979(0xba)][_0x18a979(0xf2)]=this[_0x18a979(0xe9)][_0x18a979(0xd9)][_0x18a979(0xf2)]=0x0);}else this[_0x18a979(0xbd)]=this[_0x18a979(0xc7)][_0x18a979(0xb5)](this[_0x18a979(0xdb)]),this[_0x18a979(0xb4)](_0x18a979(0xcb),this);}[_0x26ce9d(0xc3)](_0x31a5c9,_0xb5fef0){const _0x46afb2=_0x26ce9d,_0x3d01fa=[];for(const _0x1f448d of _0xb5fef0){const _0x2cc21c=_0x31a5c9[_0x1f448d[_0x46afb2(0xe0)]];_0x2cc21c?_0x2cc21c[_0x46afb2(0xe7)][_0x46afb2(0xf2)]!==_0x1f448d[_0x46afb2(0xe7)][_0x46afb2(0xf2)]?_0x3d01fa[_0x46afb2(0xf9)](_0x1f448d):_0x2cc21c[_0x46afb2(0xe7)][_0x46afb2(0xb2)]((_0x1e7022,_0x3d1964)=>{const _0x320079=_0x46afb2,_0xc3db1a=_0x1f448d[_0x320079(0xe7)][_0x3d1964];_0x1e7022['id']!==_0xc3db1a['id']&&_0x3d01fa[_0x320079(0xf9)](_0x1f448d);}):_0x3d01fa[_0x46afb2(0xf9)](_0x1f448d);}return _0x3d01fa;}[_0x26ce9d(0xea)](){const _0x57d304=_0x26ce9d,_0x378c23=new _0x5d814f('p',{},[new _0x5d814f(_0x57d304(0xf7),{'style':_0x57d304(0xd6)},[new _0x526c97(_0x5ba47d(this[_0x57d304(0xae)][_0x57d304(0xe3)],_0x57d304(0xee)))])]),_0x2082ce=this[_0x57d304(0xd2)][_0x57d304(0xe8)](this[_0x57d304(0xbd)],this[_0x57d304(0xaa)][_0x57d304(0xd1)](!0x0),{'markUnstableElements':!this[_0x57d304(0xb0)],'replaceRemovedWith':_0x378c23,'cutAfterLastChange':!this[_0x57d304(0xb0)]});if(!_0x2082ce[_0x57d304(0xf6)][_0x57d304(0xf2)]&&!this[_0x57d304(0xb0)])return;this[_0x57d304(0xf5)]=_0x2082ce[_0x57d304(0xbd)];let _0x30262d=[];if(_0x122897(_0x423020=>{const _0xd846ed=_0x57d304,_0x27f73=_0x18f9ed(_0x423020,_0xd846ed(0xc1));if(!_0x27f73||!_0x24ae82(_0x27f73))return!0x1;const _0x1f5064=[_0x423020,..._0x1632ba(_0x423020)]['at'](-0x2);if(_0x423020!=_0x1f5064){const _0x2c9df9=_0x18f9ed(_0x1f5064,_0xd846ed(0xc1));_0x24ae82(_0x2c9df9)||(_0x30262d[_0xd846ed(0xf9)]({'node':_0x1f5064,'id':_0x2c9df9,'type':_0xd846ed(0xdc)}),_0x2082ce[_0xd846ed(0xf6)][_0xd846ed(0xf9)](_0x2c9df9));}else _0x2082ce[_0xd846ed(0xf6)][_0xd846ed(0xbf)](_0x27f73)?_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xdc),'id':_0x27f73}):_0x2082ce[_0xd846ed(0xad)][_0xd846ed(0xbf)](_0x27f73)?_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xdf),'id':_0x27f73,'anchorId':_0x18f9ed(_0x423020[_0xd846ed(0xc5)],_0xd846ed(0xc1))}):_0x30262d[_0xd846ed(0xf9)]({'node':_0x423020,'type':_0xd846ed(0xcd),'id':_0x27f73});return!0x0;},this[_0x57d304(0xf5)]),_0x30262d=_0x30262d[_0x57d304(0xf0)](({node:_0x549bf5})=>[..._0x1632ba(_0x549bf5),_0x549bf5][_0x57d304(0xcf)](_0x1c666a=>!_0x18f9ed(_0x1c666a,_0x57d304(0xca)))),0x0==_0x30262d[_0x57d304(0xf2)])return;const _0x5f08f8=[[_0x30262d[0x0]]];for(let _0x20b231=0x1;_0x20b231<_0x30262d[_0x57d304(0xf2)];_0x20b231++){const _0x44f6ce=_0x5f08f8[_0x5f08f8[_0x57d304(0xf2)]-0x1],_0x14ee5d=_0x44f6ce[_0x44f6ce[_0x57d304(0xf2)]-0x1];_0x30262d[_0x20b231][_0x57d304(0xe6)][_0x57d304(0xc5)]==_0x14ee5d[_0x57d304(0xe6)]&&_0x57d304(0xdc)!=_0x30262d[_0x20b231][_0x57d304(0xef)]&&_0x57d304(0xdc)!=_0x14ee5d[_0x57d304(0xef)]?_0x44f6ce[_0x57d304(0xf9)](_0x30262d[_0x20b231]):_0x5f08f8[_0x57d304(0xf9)]([_0x30262d[_0x20b231]]);}for(const _0x94d981 of _0x5f08f8){const _0x588ae2=_0x94d981[0x0],_0x4fccf6=_0x94d981[_0x94d981[_0x57d304(0xf2)]-0x1],_0x3c5ee3=_0x12af34(_0x588ae2[_0x57d304(0xe6)][_0x57d304(0xc5)]);_0x3c5ee3&&_0x94d981[_0x57d304(0xc0)](_0x3c5ee3);const _0xb6c093=_0x12af34(_0x4fccf6[_0x57d304(0xe6)][_0x57d304(0xd4)]);_0xb6c093&&_0x94d981[_0x57d304(0xf9)](_0xb6c093);}function _0x24ae82(_0x5abd2f){const _0x40d180=_0x57d304;return _0x2082ce[_0x40d180(0xf6)][_0x40d180(0xbf)](_0x5abd2f)||_0x2082ce[_0x40d180(0xad)][_0x40d180(0xbf)](_0x5abd2f)||_0x2082ce[_0x40d180(0xb9)][_0x40d180(0xbf)](_0x5abd2f);}function _0x12af34(_0x4cb044){const _0xec9cdf=_0x57d304;if(_0x4cb044&&_0x18f9ed(_0x4cb044,_0xec9cdf(0xc1))&&!_0x18f9ed(_0x4cb044,_0xec9cdf(0xca))){const _0x1ecea3=_0x18f9ed(_0x4cb044,_0xec9cdf(0xc1));if(!_0x24ae82(_0x1ecea3))return{'node':_0x4cb044,'type':_0xec9cdf(0xf1),'id':_0x1ecea3};}return null;}this[_0x57d304(0xbc)]=_0x5f08f8[_0x57d304(0xbb)]((_0x36c5b9,_0x3581a1)=>({'changes':_0x36c5b9,'state':_0x57d304(0xec),'index':_0x3581a1}));}}
|
|
23
|
+
const _0x70ec67=_0x214f;(function(_0x26d608,_0x2131dd){const _0x19ec0a=_0x214f,_0x3fefd2=_0x26d608();while(!![]){try{const _0x3bf9d9=parseInt(_0x19ec0a(0xe4))/0x1*(-parseInt(_0x19ec0a(0xe3))/0x2)+-parseInt(_0x19ec0a(0x113))/0x3*(-parseInt(_0x19ec0a(0xe6))/0x4)+parseInt(_0x19ec0a(0xff))/0x5+-parseInt(_0x19ec0a(0xe5))/0x6*(parseInt(_0x19ec0a(0xd8))/0x7)+parseInt(_0x19ec0a(0xe7))/0x8*(parseInt(_0x19ec0a(0x118))/0x9)+-parseInt(_0x19ec0a(0x11c))/0xa*(parseInt(_0x19ec0a(0x110))/0xb)+parseInt(_0x19ec0a(0x114))/0xc;if(_0x3bf9d9===_0x2131dd)break;else _0x3fefd2['push'](_0x3fefd2['shift']());}catch(_0x3b23db){_0x3fefd2['push'](_0x3fefd2['shift']());}}}(_0x121a,0x1ce35));import{CKEditorError as _0x31dba2,ObservableMixin as _0x1a83c,uid as _0x10228e}from'ckeditor5/src/utils.js';import{Element as _0x4a3e1b,findAll as _0x80efd,getAttribute as _0x47d4a3,getParents as _0x4ffd00,Document as _0x102eab,parse as _0x8b1111,Text as _0x3e3316}from'../utils/htmlparser.js';import{AIResponseParser as _0x537513}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5243dc}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x583a9c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xae6588}from'../utils/common-translations.js';function _0x121a(){const _0x3b104f=['fire','_getDifferentChangeGroups','state','withDiff','setChangeGroupState','merge','_setCachedContentParts','aiResponseApplier','11ytTjnl','isDone','data-unstable','28821RkfGJw','5829192YMkbPD','stopListening','content','AI_SUGGESTION_CONTENT_PART_REMOVED','1422hbUhcJ','replyContentUpdated','nextSibling','convertMarkdownToHTML','2191630YgrqCl','indexOf','modification','length','splice','destroy','previousSibling','unshift','updateChangeGroups','ai-reply-get-content-parts-group-not-found','locale','context','removedNodeIds','new','161jrbDeC','areActionsDisabled','editor','parsedContent','cachedSuggestionContentParts','aiResponseParser','appendContent','find','color:\x20#808080;\x20font-style:\x20italic','changeGroups','change:content','4866YfPahL','4FpOyCA','55938tueMdL','4peXBYq','488PvZrdI','cloneNode','index','done','parsedMergedContent','newNodeIds','documentContextContent','node','removed','every','data-id','filter','getContentParts','withoutDiff','interactionId','ai-get-editor-from-context-no-editor','parseAndNormalizeHTML','span','replyChangeGroupStateUpdated','forEach','set','type','onContentChange','modifiedNodeIds','283190xQLust','push','includes','map','pending','_getCachedContentParts','changes','sources','modified'];_0x121a=function(){return _0x3b104f;};return _0x121a();}function _0x214f(_0x21993c,_0x50170c){const _0x121aad=_0x121a();return _0x214f=function(_0x214fcb,_0x6c2d69){_0x214fcb=_0x214fcb-0xce;let _0x18929e=_0x121aad[_0x214fcb];return _0x18929e;},_0x214f(_0x21993c,_0x50170c);}import{cloneDeep as _0x1914c9}from'es-toolkit';export class AIReply extends _0x1a83c(){['id'];[_0x70ec67(0xf5)];[_0x70ec67(0xfc)];[_0x70ec67(0x106)]=[];[_0x70ec67(0xdb)]=new _0x102eab([]);[_0x70ec67(0xeb)]=new _0x102eab([]);[_0x70ec67(0xe1)]=[];[_0x70ec67(0xd9)]=!0x1;[_0x70ec67(0xed)];[_0x70ec67(0xdd)];[_0x70ec67(0x10f)];[_0x70ec67(0xda)];[_0x70ec67(0xdc)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x54688b,content:_0x278f73='',isDone:_0x56d24a=!0x1,interactionId:_0x585213,areActionsDisabled:_0x19593e,documentContextContent:_0x3da1a0,editor:_0x12ff63,id:_0x44d38f}){const _0x36e6b1=_0x70ec67;super(),this['id']=_0x44d38f||_0x10228e(),this[_0x36e6b1(0xf5)]=_0x585213,this[_0x36e6b1(0xfc)]=_0x54688b,this[_0x36e6b1(0xd9)]=!!_0x19593e,this[_0x36e6b1(0xda)]=_0x12ff63,this[_0x36e6b1(0xdd)]=new _0x537513(),this[_0x36e6b1(0x10f)]=new _0x5243dc(),this[_0x36e6b1(0xed)]=_0x8b1111(_0x3da1a0||''),this[_0x36e6b1(0xfb)](_0x36e6b1(0x111),_0x56d24a),this['on'](_0x36e6b1(0xe2),()=>{const _0x532bf4=_0x36e6b1;this[_0x532bf4(0xfd)]();}),this[_0x36e6b1(0xfb)](_0x36e6b1(0x116),_0x278f73);}[_0x70ec67(0xde)](_0x50371){const _0x383559=_0x70ec67;this[_0x383559(0xfb)](_0x383559(0x116),this[_0x383559(0x116)]+_0x50371);}[_0x70ec67(0xea)](){const _0x4cd498=_0x70ec67;this[_0x4cd498(0x111)]||(this[_0x4cd498(0xfb)](_0x4cd498(0x111),!0x0),this[_0x4cd498(0xfd)]());}[_0x70ec67(0xcf)](){const _0x3e6020=_0x70ec67;this[_0x3e6020(0x115)]();}[_0x70ec67(0x10c)](_0x46f118,_0x193c1c){const _0x3c8169=_0x70ec67;this[_0x3c8169(0xe1)][_0x46f118][_0x3c8169(0x10a)]=_0x193c1c,this[_0x3c8169(0x108)](_0x3c8169(0xf9),{'reply':this,'index':_0x46f118,'state':_0x193c1c});}[_0x70ec67(0xf3)]({showDiff:_0x2d280d,groupIndex:_0xcc361e}){const _0x26d70b=_0x70ec67;if(!this[_0x26d70b(0xda)])throw new _0x31dba2(_0x26d70b(0xf6),null,{'aiReply':this});const _0x3cf343=this[_0x26d70b(0x104)](_0x2d280d,_0xcc361e);if(_0x3cf343)return _0x3cf343;let _0x49f8d9=[];if(void 0x0===_0xcc361e)_0x49f8d9=this[_0x26d70b(0xe1)];else{const _0x6333e3=this[_0x26d70b(0xe1)][_0x26d70b(0xdf)](({index:_0x33b595})=>_0x33b595===_0xcc361e);if(!_0x6333e3)throw new _0x31dba2(_0x26d70b(0xd3),null,{'aiReply':this,'groupIndex':_0xcc361e});_0x49f8d9=[_0x6333e3];}const _0x498e0a=_0x583a9c({'editor':this[_0x26d70b(0xda)],'showDiff':_0x2d280d,'changeGroups':_0x49f8d9,'documentContextContent':this[_0x26d70b(0xed)]});return this[_0x26d70b(0x10e)](_0x2d280d,_0x498e0a),_0x498e0a;}[_0x70ec67(0x104)](_0x3841a2,_0x187c53){const _0x52668b=_0x70ec67,_0x52fed8=_0x3841a2?_0x52668b(0x10b):_0x52668b(0xf4);if(!this[_0x52668b(0xdc)][_0x52fed8][_0x52668b(0x11f)])return null;const _0x7ae5c6=this[_0x52668b(0xdc)][_0x52fed8];if(void 0x0===_0x187c53)return _0x7ae5c6[_0x52668b(0x11f)]>0x0&&_0x7ae5c6[_0x52668b(0x11f)]!==this[_0x52668b(0xe1)][_0x52668b(0x11f)]?(this[_0x52668b(0x10e)](_0x3841a2,null),null):_0x1914c9(_0x7ae5c6);{const _0x2023ee=_0x7ae5c6[_0x52668b(0xdf)](({index:_0x15aaeb})=>_0x15aaeb===_0x187c53);if(_0x2023ee)return[_0x1914c9(_0x2023ee)];}return null;}[_0x70ec67(0x10e)](_0x4090fe,_0x2f2a8a){const _0x3370f2=_0x70ec67,_0x58f2c2=_0x4090fe?_0x3370f2(0x10b):_0x3370f2(0xf4);_0x2f2a8a?_0x2f2a8a[_0x3370f2(0xfa)](_0x2f74df=>{const _0x38e52b=_0x3370f2,_0x5b89d4=this[_0x38e52b(0xdc)][_0x58f2c2],_0x4ee5a5=_0x5b89d4[_0x38e52b(0xdf)](({index:_0x31ac66})=>_0x31ac66===_0x2f74df[_0x38e52b(0xe9)]);if(_0x4ee5a5){const _0x51f2d7=_0x5b89d4[_0x38e52b(0x11d)](_0x4ee5a5);_0x5b89d4[_0x38e52b(0xce)](_0x51f2d7,0x1,_0x2f74df);}else _0x5b89d4[_0x38e52b(0x100)](_0x2f74df);}):this[_0x3370f2(0xdc)][_0x58f2c2][_0x3370f2(0x11f)]=0x0;}[_0x70ec67(0xfd)](){const _0x1e6784=_0x70ec67;if(_0x1e6784(0x11e)===this[_0x1e6784(0xfc)]){this[_0x1e6784(0xdb)]=this[_0x1e6784(0xdd)][_0x1e6784(0xf7)](this[_0x1e6784(0x116)]);const _0x22127f=this[_0x1e6784(0xe1)];this[_0x1e6784(0xd2)]();const _0x4f7360=this[_0x1e6784(0x109)](_0x22127f,this[_0x1e6784(0xe1)]);(_0x4f7360[_0x1e6784(0x11f)]||this[_0x1e6784(0x111)])&&(this[_0x1e6784(0x108)](_0x1e6784(0x119),this,_0x4f7360),this[_0x1e6784(0xdc)][_0x1e6784(0x10b)][_0x1e6784(0x11f)]=this[_0x1e6784(0xdc)][_0x1e6784(0xf4)][_0x1e6784(0x11f)]=0x0);}else this[_0x1e6784(0xdb)]=this[_0x1e6784(0xdd)][_0x1e6784(0x11b)](this[_0x1e6784(0x116)]),this[_0x1e6784(0x108)](_0x1e6784(0x119),this);}[_0x70ec67(0x109)](_0x23be57,_0x35520e){const _0x22ae61=_0x70ec67,_0x172a6c=[];for(const _0x1deb76 of _0x35520e){const _0xfcd82f=_0x23be57[_0x1deb76[_0x22ae61(0xe9)]];_0xfcd82f?_0xfcd82f[_0x22ae61(0x105)][_0x22ae61(0x11f)]!==_0x1deb76[_0x22ae61(0x105)][_0x22ae61(0x11f)]?_0x172a6c[_0x22ae61(0x100)](_0x1deb76):_0xfcd82f[_0x22ae61(0x105)][_0x22ae61(0xfa)]((_0x28ce2b,_0x46db7c)=>{const _0x52b0bc=_0x22ae61,_0x6d0505=_0x1deb76[_0x52b0bc(0x105)][_0x46db7c];_0x28ce2b['id']!==_0x6d0505['id']&&_0x172a6c[_0x52b0bc(0x100)](_0x1deb76);}):_0x172a6c[_0x22ae61(0x100)](_0x1deb76);}return _0x172a6c;}[_0x70ec67(0xd2)](){const _0x108b58=_0x70ec67,_0xb97dd5=new _0x4a3e1b('p',{},[new _0x4a3e1b(_0x108b58(0xf8),{'style':_0x108b58(0xe0)},[new _0x3e3316(_0xae6588(this[_0x108b58(0xda)][_0x108b58(0xd4)],_0x108b58(0x117)))])]),_0x5b6099=this[_0x108b58(0x10f)][_0x108b58(0x10d)](this[_0x108b58(0xdb)],this[_0x108b58(0xed)][_0x108b58(0xe8)](!0x0),{'markUnstableElements':!this[_0x108b58(0x111)],'replaceRemovedWith':_0xb97dd5,'cutAfterLastChange':!this[_0x108b58(0x111)]});if(!_0x5b6099[_0x108b58(0xfe)][_0x108b58(0x11f)]&&!this[_0x108b58(0x111)])return;this[_0x108b58(0xeb)]=_0x5b6099[_0x108b58(0xdb)];let _0x596d08=[];if(_0x80efd(_0x44caaf=>{const _0x1ad645=_0x108b58,_0x1286b8=_0x47d4a3(_0x44caaf,_0x1ad645(0xf1));if(!_0x1286b8||!_0x25d976(_0x1286b8))return!0x1;const _0x4fe3df=[_0x44caaf,..._0x4ffd00(_0x44caaf)]['at'](-0x2);if(_0x44caaf!=_0x4fe3df){const _0x28ebee=_0x47d4a3(_0x4fe3df,_0x1ad645(0xf1));_0x25d976(_0x28ebee)||(_0x596d08[_0x1ad645(0x100)]({'node':_0x4fe3df,'id':_0x28ebee,'type':_0x1ad645(0x107)}),_0x5b6099[_0x1ad645(0xfe)][_0x1ad645(0x100)](_0x28ebee));}else _0x5b6099[_0x1ad645(0xfe)][_0x1ad645(0x101)](_0x1286b8)?_0x596d08[_0x1ad645(0x100)]({'node':_0x44caaf,'type':_0x1ad645(0x107),'id':_0x1286b8}):_0x5b6099[_0x1ad645(0xec)][_0x1ad645(0x101)](_0x1286b8)?_0x596d08[_0x1ad645(0x100)]({'node':_0x44caaf,'type':_0x1ad645(0xd7),'id':_0x1286b8,'anchorId':_0x47d4a3(_0x44caaf[_0x1ad645(0xd0)],_0x1ad645(0xf1))}):_0x596d08[_0x1ad645(0x100)]({'node':_0x44caaf,'type':_0x1ad645(0xef),'id':_0x1286b8});return!0x0;},this[_0x108b58(0xeb)]),_0x596d08=_0x596d08[_0x108b58(0xf2)](({node:_0x3ee86a})=>[..._0x4ffd00(_0x3ee86a),_0x3ee86a][_0x108b58(0xf0)](_0x3bbe63=>!_0x47d4a3(_0x3bbe63,_0x108b58(0x112)))),0x0==_0x596d08[_0x108b58(0x11f)])return;const _0x250e19=[[_0x596d08[0x0]]];for(let _0x5126a0=0x1;_0x5126a0<_0x596d08[_0x108b58(0x11f)];_0x5126a0++){const _0x30f564=_0x250e19[_0x250e19[_0x108b58(0x11f)]-0x1],_0x2cf777=_0x30f564[_0x30f564[_0x108b58(0x11f)]-0x1];_0x596d08[_0x5126a0][_0x108b58(0xee)][_0x108b58(0xd0)]==_0x2cf777[_0x108b58(0xee)]&&_0x108b58(0x107)!=_0x596d08[_0x5126a0][_0x108b58(0xfc)]&&_0x108b58(0x107)!=_0x2cf777[_0x108b58(0xfc)]?_0x30f564[_0x108b58(0x100)](_0x596d08[_0x5126a0]):_0x250e19[_0x108b58(0x100)]([_0x596d08[_0x5126a0]]);}for(const _0x29b59f of _0x250e19){const _0xd94057=_0x29b59f[0x0],_0x4beffe=_0x29b59f[_0x29b59f[_0x108b58(0x11f)]-0x1],_0x15cf01=_0x7d5a1b(_0xd94057[_0x108b58(0xee)][_0x108b58(0xd0)]);_0x15cf01&&_0x29b59f[_0x108b58(0xd1)](_0x15cf01);const _0x22d2da=_0x7d5a1b(_0x4beffe[_0x108b58(0xee)][_0x108b58(0x11a)]);_0x22d2da&&_0x29b59f[_0x108b58(0x100)](_0x22d2da);}function _0x25d976(_0x249373){const _0x4b3aaf=_0x108b58;return _0x5b6099[_0x4b3aaf(0xfe)][_0x4b3aaf(0x101)](_0x249373)||_0x5b6099[_0x4b3aaf(0xec)][_0x4b3aaf(0x101)](_0x249373)||_0x5b6099[_0x4b3aaf(0xd6)][_0x4b3aaf(0x101)](_0x249373);}function _0x7d5a1b(_0xca056d){const _0x3d94c8=_0x108b58;if(_0xca056d&&_0x47d4a3(_0xca056d,_0x3d94c8(0xf1))&&!_0x47d4a3(_0xca056d,_0x3d94c8(0x112))){const _0x4a066b=_0x47d4a3(_0xca056d,_0x3d94c8(0xf1));if(!_0x25d976(_0x4a066b))return{'node':_0xca056d,'type':_0x3d94c8(0xd5),'id':_0x4a066b};}return null;}this[_0x108b58(0xe1)]=_0x250e19[_0x108b58(0x102)]((_0x2af166,_0x37ebda)=>({'changes':_0x2af166,'state':_0x108b58(0x103),'index':_0x37ebda}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
_0x4daaa5(){[_0x587997(0x169)];[_0x587997(0x127)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x587997(0x144)]=new Set();constructor(_0x3afe41){const _0xe3b2e=_0x587997;super(),this[_0xe3b2e(0x169)]=_0x3afe41||_0x178923;}[_0x587997(0x141)](_0x2461c9,_0x4a82fa,_0x80acdb){const _0x19deaf=_0x587997,_0x22c4cf=_0x4ae774(_0x2461c9);if(0x0===_0x4a82fa[_0x19deaf(0x13a)][_0x19deaf(0x125)]){const _0x2a4b9c=[];return _0x7afdfe(_0x19deaf(0x135),_0x19deaf(0x14c),_0x22c4cf)[_0x19deaf(0x160)](_0x155840=>{const _0x17dbb0=_0x19deaf,_0x52632c=this[_0x17dbb0(0x169)]();_0x5ab751(_0x155840,_0x17dbb0(0x135),_0x52632c),_0x2a4b9c[_0x17dbb0(0x162)](_0x52632c);}),this[_0x19deaf(0x123)](_0x22c4cf),{'parsedContent':_0x22c4cf,'newNodeIds':_0x2a4b9c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x80acdb&&_0x80acdb[_0x19deaf(0x152)]&&this[_0x19deaf(0x13e)](_0x22c4cf),this[_0x19deaf(0x127)][_0x19deaf(0x13d)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x139)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x14b)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x137)]=[],this[_0x19deaf(0x127)][_0x19deaf(0x149)]=null,this[_0x19deaf(0x144)]=new Set(_0x7afdfe(_0x19deaf(0x135),null,_0x4a82fa)[_0x19deaf(0x122)](_0x36654c=>_0x4566c1(_0x36654c,_0x19deaf(0x135)))[_0x19deaf(0x150)](_0x531798=>!!_0x531798));let _0x11a3c4=-0x1,_0x5b6642=!0x1;const _0xe1d30d=_0x22c4cf[_0x19deaf(0x13a)],_0x37bc37=Array[_0x19deaf(0x14f)](_0xe1d30d)[_0x19deaf(0x150)](_0x5a15fa=>!(0x3===_0x5a15fa[_0x19deaf(0x12c)]&&''===_0x1e10d8(_0x5a15fa)[_0x19deaf(0x12a)]())),_0x5df4d6=_0x37bc37[_0x19deaf(0x125)];for(let _0xe241a3=0x0;_0xe241a3<_0x5df4d6;_0xe241a3++){const _0x3e7ad5=_0x37bc37[_0xe241a3],_0x1ebb79=_0x37bc37[_0xe241a3+0x1];if(this[_0x19deaf(0x148)](_0x3e7ad5)){if(-0x1===_0x11a3c4&&(_0x11a3c4=_0xe241a3),this[_0x19deaf(0x14a)](_0x3e7ad5),!this[_0x19deaf(0x148)](_0x1ebb79)){const [_0x539d6c,_0x36ec8f]=this[_0x19deaf(0x143)](_0x3e7ad5,_0x5b6642,_0x4a82fa);if(_0x539d6c){const _0x49974e=Array[_0x19deaf(0x14f)](_0x37bc37)[_0x19deaf(0x16a)](_0x11a3c4,_0xe241a3+0x1);this[_0x19deaf(0x132)](_0x539d6c,_0x49974e,_0x36ec8f),_0x11a3c4=-0x1;}}}else{if(this[_0x19deaf(0x13c)](_0x3e7ad5))_0x5b6642=!0x0;else{if(this[_0x19deaf(0x131)](_0x3e7ad5)){const _0x14c457=_0x4566c1(_0x3e7ad5,_0x19deaf(0x135));if(_0x14c457&&this[_0x19deaf(0x144)][_0x19deaf(0x155)](_0x14c457)){const _0x6727c1=_0x110819(_0x19deaf(0x135),_0x14c457,_0x4a82fa);this[_0x19deaf(0x15b)](_0x6727c1,_0x3e7ad5);}if(this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x13b)](_0x14c457)){const _0x5ecc17=this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x161)](_0x14c457);this[_0x19deaf(0x127)][_0x19deaf(0x14b)][_0x19deaf(0x166)](_0x5ecc17,0x1);}}else{if(this[_0x19deaf(0x124)](_0x3e7ad5)){const _0x41c329=_0x4566c1(_0x3e7ad5,_0x19deaf(0x135));this[_0x19deaf(0x127)][_0x19deaf(0x139)][_0x19deaf(0x13b)](_0x41c329)||this[_0x19deaf(0x145)](_0x3e7ad5);}}}}}for(const _0x4d9591 of this[_0x19deaf(0x127)][_0x19deaf(0x14b)]){const _0x376da7=_0x110819(_0x19deaf(0x135),_0x4d9591,_0x4a82fa);if(_0x376da7){if(_0x80acdb&&_0x80acdb[_0x19deaf(0x156)]){this[_0x19deaf(0x127)][_0x19deaf(0x149)]=_0x4d9591;const _0x175bc1=_0x80acdb[_0x19deaf(0x156)][_0x19deaf(0x15d)](!0x0);_0x5ab751(_0x175bc1,_0x19deaf(0x135),_0x4d9591),_0x5ab751(_0x175bc1,_0x19deaf(0x130),_0x19deaf(0x168)),_0x46fc58(_0x376da7,_0x175bc1);}else _0x4b9ff1(_0x376da7);}}if(_0x7afdfe(_0x19deaf(0x151),null,_0x4a82fa)[_0x19deaf(0x160)](_0xefb23f=>{const _0x1ab9be=_0x19deaf,_0x892960=_0x4566c1(_0xefb23f,_0x1ab9be(0x151)),_0x520a7d=_0x110819(_0x1ab9be(0x135),_0x892960,_0x4a82fa);_0x520a7d&&_0x1ac0c6(_0x520a7d,_0xefb23f);}),_0x7afdfe(_0x19deaf(0x135),_0x19deaf(0x14c),_0x4a82fa)[_0x19deaf(0x160)](_0x15d796=>{const _0x1f04fa=_0x19deaf,_0x8f2bed=this[_0x1f04fa(0x142)](_0x15d796);_0x5ab751(_0x15d796,_0x1f04fa(0x135),_0x8f2bed),this[_0x1f04fa(0x127)][_0x1f04fa(0x13d)][_0x1f04fa(0x162)](_0x8f2bed);}),this[_0x19deaf(0x123)](_0x4a82fa),_0x80acdb&&_0x80acdb[_0x19deaf(0x152)]&&this[_0x19deaf(0x12b)](_0x4a82fa,_0x80acdb[_0x19deaf(0x128)]||0x0),_0x80acdb&&_0x80acdb[_0x19deaf(0x154)]&&this[_0x19deaf(0x127)][_0x19deaf(0x149)]){let _0x23d845=_0x110819(_0x19deaf(0x135),this[_0x19deaf(0x127)][_0x19deaf(0x149)],_0x4a82fa);for(;_0x23d845;)_0xad8381(_0x23d845),_0x23d845=_0x23d845[_0x19deaf(0x158)];}return{'parsedContent':_0x4a82fa,'newNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x13d)],'modifiedNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x139)],'removedNodeIds':this[_0x19deaf(0x127)][_0x19deaf(0x14b)]};}[_0x587997(0x132)](_0x3b50b2,_0x53a2a4,_0x46163a){const _0x58f960=_0x587997;for(const _0x511107 of _0x53a2a4){const _0x269e8d=this[_0x58f960(0x142)](_0x511107);_0x5ab751(_0x511107,_0x58f960(0x135),_0x269e8d),this[_0x58f960(0x127)][_0x58f960(0x13d)][_0x58f960(0x162)](_0x269e8d),this[_0x58f960(0x127)][_0x58f960(0x149)]=_0x269e8d;}const _0xcb6f48=_0x58f960(0x140)===_0x46163a||_0x58f960(0x157)===_0x46163a?_0x53a2a4[_0x58f960(0x129)]():_0x53a2a4;for(const _0xc4563a of _0xcb6f48)_0x4794cf(_0x3b50b2,_0xc4563a,_0x46163a);}[_0x587997(0x15b)](_0xc2fa5,_0x2405b2){const _0x53cc93=_0x587997;if(!_0xc2fa5)return;if(_0x3ac447(_0xc2fa5,_0x2405b2))return;const _0xbe2248=this[_0x53cc93(0x142)](_0xc2fa5);_0x5ab751(_0x2405b2,_0x53cc93(0x135),_0xbe2248),this[_0x53cc93(0x127)][_0x53cc93(0x139)][_0x53cc93(0x162)](_0xbe2248),this[_0x53cc93(0x127)][_0x53cc93(0x149)]=_0xbe2248,_0x46fc58(_0xc2fa5,_0x2405b2[_0x53cc93(0x15d)](!0x0));}[_0x587997(0x143)](_0x3e88b4,_0x21f6a5,_0x537a4f){const _0x5f3be5=_0x587997,_0x33eb6d=this[_0x5f3be5(0x12f)](_0x3e88b4,!0x1);if(_0x33eb6d){const _0x14408a=this[_0x5f3be5(0x15e)](_0x33eb6d),_0x175bc3=_0x110819(_0x5f3be5(0x135),_0x14408a,_0x537a4f);if(_0x175bc3)return[_0x175bc3,_0x5f3be5(0x157)];this[_0x5f3be5(0x127)][_0x5f3be5(0x137)][_0x5f3be5(0x162)](_0x14408a);}const _0x4aa635=this[_0x5f3be5(0x12d)](_0x3e88b4,!0x1);if(_0x4aa635){const _0x2e4989=this[_0x5f3be5(0x15e)](_0x4aa635),_0x2c815a=_0x110819(_0x5f3be5(0x135),_0x2e4989,_0x537a4f);if(_0x2c815a)return[_0x2c815a,_0x5f3be5(0x133)];this[_0x5f3be5(0x127)][_0x5f3be5(0x137)][_0x5f3be5(0x162)](_0x2e4989);}return _0x21f6a5?_0x3e88b4[_0x5f3be5(0x15c)]?this[_0x5f3be5(0x153)](_0x3e88b4,_0x537a4f):[_0x537a4f[_0x5f3be5(0x13a)][_0x537a4f[_0x5f3be5(0x13a)][_0x5f3be5(0x125)]-0x1],_0x5f3be5(0x157)]:[_0x537a4f[_0x5f3be5(0x13a)][0x0],_0x5f3be5(0x133)];}[_0x587997(0x153)](_0x16b5b5,_0x571644){const _0x55dbe6=_0x587997,_0x2eddcf=[],_0x1ff93d=this[_0x55dbe6(0x12f)](_0x16b5b5,!0x0);if(_0x1ff93d){const _0x444ab7=this[_0x55dbe6(0x15e)](_0x1ff93d),_0x46fe90=_0x110819(_0x55dbe6(0x135),_0x444ab7,_0x571644);_0x46fe90&&_0x2eddcf[_0x55dbe6(0x162)]([_0x46fe90,_0x55dbe6(0x157)]);}const _0x2c85e8=this[_0x55dbe6(0x12d)](_0x16b5b5,!0x0);if(_0x2c85e8){const _0x5b461c=this[_0x55dbe6(0x15e)](_0x2c85e8),_0x194fe6=_0x110819(_0x55dbe6(0x135),_0x5b461c,_0x571644);_0x194fe6&&_0x2eddcf[_0x55dbe6(0x162)]([_0x194fe6,_0x55dbe6(0x133)]);}if(_0x2eddcf[_0x55dbe6(0x125)]>0x1)return _0x51b030(_0x2eddcf[0x0][0x0])<=_0x51b030(_0x2eddcf[0x1][0x0])?_0x2eddcf[0x0]:_0x2eddcf[0x1];return 0x1===_0x2eddcf[_0x55dbe6(0x125)]?_0x2eddcf[0x0]:[_0x571644[_0x55dbe6(0x163)],_0x55dbe6(0x157)];}[_0x587997(0x12d)](_0x5e975c,_0x4eff47){const _0x3702b0=_0x587997;let _0xf3908a=_0x5e975c[_0x3702b0(0x15c)],_0x416d90=null,_0x1a53c0=!0x1;for(;_0xf3908a;){if(_0x4f2611(_0xf3908a)){if(this[_0x3702b0(0x124)](_0xf3908a)&&(_0x416d90=_0xf3908a),this[_0x3702b0(0x13c)](_0xf3908a)&&_0x4eff47&&!_0x1a53c0){_0x1a53c0=!0x0,_0xf3908a=_0xf3908a[_0x3702b0(0x15c)];continue;}break;}const _0x2d342d=_0x4566c1(_0xf3908a,_0x3702b0(0x135));if(_0x2d342d&&_0x3702b0(0x14c)!==_0x2d342d&&this[_0x3702b0(0x144)][_0x3702b0(0x155)](_0x2d342d)){_0x416d90=_0xf3908a;break;}_0xf3908a=_0xf3908a[_0x3702b0(0x15c)];}return _0x416d90;}[_0x587997(0x12f)](_0x1c5230,_0x1a217c){const _0x1976c0=_0x587997;let _0x39ff3f=_0x1c5230[_0x1976c0(0x14e)],_0x3d293a=null,_0x2d865e=!0x1;for(;_0x39ff3f;){if(_0x4f2611(_0x39ff3f)){if(this[_0x1976c0(0x124)](_0x39ff3f)&&(_0x3d293a=_0x39ff3f),this[_0x1976c0(0x13c)](_0x39ff3f)&&_0x1a217c&&!_0x2d865e){_0x2d865e=!0x0,_0x39ff3f=_0x39ff3f[_0x1976c0(0x14e)];continue;}break;}const _0xf63890=_0x4566c1(_0x39ff3f,_0x1976c0(0x135));if(_0xf63890&&_0x1976c0(0x14c)!==_0xf63890&&this[_0x1976c0(0x144)][_0x1976c0(0x155)](_0xf63890)){_0x3d293a=_0x39ff3f;break;}_0x39ff3f=_0x39ff3f[_0x1976c0(0x14e)];}return _0x3d293a;}[_0x587997(0x14a)](_0x11bf4a){const _0x242e30=_0x587997;_0x10d4f2(_0x11bf4a)&&_0x7afdfe(_0x242e30(0x135),null,_0x11bf4a)[_0x242e30(0x160)](_0x535a47=>{const _0x50931f=_0x242e30;if(this[_0x50931f(0x131)](_0x535a47)&&!this[_0x50931f(0x164)](_0x535a47)){const _0x416a5a=_0x4566c1(_0x535a47,_0x50931f(0x135));_0x5ab751(_0x535a47,_0x50931f(0x151),_0x416a5a),_0x5ab751(_0x535a47,_0x50931f(0x135),null);}});}[_0x587997(0x15e)](_0x2519ae){const _0x284fb8=_0x587997;if(!_0x2519ae)return null;if(_0x10d4f2(_0x2519ae))return _0x4566c1(_0x2519ae,_0x284fb8(0x135));if(_0x4f2611(_0x2519ae)){const _0x55d841=_0x1e10d8(_0x2519ae)[_0x284fb8(0x138)](/removed[\s*-]data-id="([^"]+)"/);if(_0x55d841&&_0x55d841[0x1])return _0x55d841[0x1];}return null;}[_0x587997(0x145)](_0x13d84f){const _0x106566=_0x587997;if(_0x4f2611(_0x13d84f)){const _0x3ca39e=_0x1e10d8(_0x13d84f)[_0x106566(0x138)](/removed[\s*-]data-id="([^"]+)"/);_0x3ca39e&&_0x3ca39e[0x1]&&this[_0x106566(0x127)][_0x106566(0x14b)][_0x106566(0x162)](_0x3ca39e[0x1]);}}[_0x587997(0x142)](_0x1e73b5){const _0x90d037=_0x587997;return this[_0x90d037(0x131)](_0x1e73b5)?_0x4566c1(_0x1e73b5,_0x90d037(0x135)):this[_0x90d037(0x169)]();}[_0x587997(0x123)](_0x296856){const _0x5b6675=_0x587997;_0x19b8cb(_0x296856)[_0x5b6675(0x150)](_0x44b2ce=>this[_0x5b6675(0x124)](_0x44b2ce)||this[_0x5b6675(0x13c)](_0x44b2ce))[_0x5b6675(0x160)](_0x10ac8a=>{_0x4b9ff1(_0x10ac8a);});}[_0x587997(0x13e)](_0x28ca5b){const _0x1b8ac9=_0x587997,_0x29d2f9=_0x28ca5b[_0x1b8ac9(0x13a)],_0xad91ac=_0x29d2f9[_0x29d2f9[_0x1b8ac9(0x125)]-0x1];_0xad91ac&&_0x10d4f2(_0xad91ac)&&_0x5ab751(_0xad91ac,_0x1b8ac9(0x159),_0x1b8ac9(0x168));}[_0x587997(0x12b)](_0x2612c0,_0x1b9502){const _0x33d2be=_0x587997,_0x560705=_0x110819(_0x33d2be(0x159),_0x33d2be(0x168),_0x2612c0);if(!_0x560705)return;const _0x31938d=_0x502ca2(_0x560705)[_0x33d2be(0x16a)](0x0,-0x1),_0x25b0aa=_0x31938d[_0x33d2be(0x125)];let _0x2ad31f=_0x560705;if(_0x25b0aa>_0x1b9502){let _0x5b2704=_0x25b0aa,_0x1d402c=null;for(;_0x5b2704>_0x1b9502&&_0x5b2704>=0x0;)_0x5b2704--,_0x1d402c=_0x31938d[_0x5b2704];_0x1d402c&&(_0x2ad31f=_0x1d402c,_0x5ab751(_0x560705,_0x33d2be(0x159),null),_0x5ab751(_0x1d402c,_0x33d2be(0x159),_0x33d2be(0x168)));}else{if(_0x25b0aa<_0x1b9502){let _0x1beb30=_0x25b0aa,_0x5177b4=_0x560705;for(;_0x1beb30<_0x1b9502;){const _0x3690b8=_0x5177b4[_0x33d2be(0x13a)][_0x33d2be(0x150)](_0x6d89fa=>_0x10d4f2(_0x6d89fa));if(0x0===_0x3690b8[_0x33d2be(0x125)])break;_0x1beb30++,_0x5177b4=_0x3690b8[_0x3690b8[_0x33d2be(0x125)]-0x1];}_0x5177b4&&(_0x2ad31f=_0x5177b4,_0x5ab751(_0x560705,_0x33d2be(0x159),null),_0x5ab751(_0x5177b4,_0x33d2be(0x159),_0x33d2be(0x168)));}}let _0x4c4ddc=_0x2ad31f;for(;_0x4c4ddc;){for(;_0x4c4ddc[_0x33d2be(0x15c)];)_0x4c4ddc=_0x4c4ddc[_0x33d2be(0x15c)],_0x10d4f2(_0x4c4ddc)&&_0x5ab751(_0x4c4ddc,_0x33d2be(0x159),_0x33d2be(0x168));_0x4c4ddc=_0x4c4ddc[_0x33d2be(0x158)];}}[_0x587997(0x148)](_0x55f866){const _0x12da05=_0x587997;return Boolean(_0x12da05(0x14c)===_0x4566c1(_0x55f866,_0x12da05(0x135)));}[_0x587997(0x131)](_0x39f28e){const _0x3d6e7e=_0x587997;return Boolean((_0x4566c1(_0x39f28e,_0x3d6e7e(0x135))||'')[_0x3d6e7e(0x125)]>0x0&&_0x3d6e7e(0x14c)!==_0x4566c1(_0x39f28e,_0x3d6e7e(0x135)));}[_0x587997(0x124)](_0xcfc92f){const _0x899a79=_0x587997;return!!_0xcfc92f&&Boolean(_0x4f2611(_0xcfc92f)&&_0x1e10d8(_0xcfc92f)[_0x899a79(0x138)](/removed[\s*-]data-id="[^"]+"/));}[_0x587997(0x164)](_0x450040){const _0x4d33bc=_0x587997;let _0x1871c2=_0x450040[_0x4d33bc(0x158)];for(;_0x1871c2;){if(_0x4566c1(_0x1871c2,_0x4d33bc(0x151)))return!0x0;_0x1871c2=_0x1871c2[_0x4d33bc(0x158)];}return!0x1;}[_0x587997(0x13c)](_0x28c7f7){const _0x4e8caf=_0x587997;return Boolean(_0x4f2611(_0x28c7f7)&&_0x1e10d8(_0x28c7f7)[_0x4e8caf(0x138)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x5a85b5=_0x3916;function _0x52a5(){const _0xa62647=['_isExistingNode','invalidIds','16zmegyC','_findFallbackReferenceNode','_findPrevElementWithDataId','nodeType','previousSibling','402198MgnAqR','26422080jrgDAp','lastChild','nextSibling','push','has','_markWrappedElements','true','_existingDataIds','includes','modifiedIds','afterbegin','_getUid','_getNodeDataId','_removeSpecialComments','parentNode','_isNewNode','_isDelNode','length','_storeDeletedElementIds','forEach','_hasWrappedParent','match','childNodes','filter','data-unstable','7712118ddwnFl','newIds','_insertNodes','map','_findNextElementWithDataId','70tAWTQR','afterend','reverse','data-wrapped-id','indexOf','lastTouchedId','128464hKCjps','splice','trim','data-removed','_replaceNode','beforebegin','929250gevaPS','merge','cutAfterLastChange','496tTaNSg','markUnstableElementsDepth','cloneNode','127636AQOQMc','data-id','_markLastTagElementUnstable','_findReferenceNode','_touchedNodesState','new-element','slice','_markUnstableElements','from','markUnstableElements','replaceRemovedWith','_isExistingContentComment','removedIds','109095JenQYJ','_generateUid'];_0x52a5=function(){return _0xa62647;};return _0x52a5();}(function(_0x5e6614,_0x4afb5f){const _0x53f37c=_0x3916,_0x3906a5=_0x5e6614();while(!![]){try{const _0x27f5c1=-parseInt(_0x53f37c(0x146))/0x1*(-parseInt(_0x53f37c(0x11c))/0x2)+-parseInt(_0x53f37c(0x14c))/0x3+parseInt(_0x53f37c(0x152))/0x4+-parseInt(_0x53f37c(0x140))/0x5*(-parseInt(_0x53f37c(0x121))/0x6)+parseInt(_0x53f37c(0x118))/0x7*(parseInt(_0x53f37c(0x14f))/0x8)+parseInt(_0x53f37c(0x13b))/0x9+-parseInt(_0x53f37c(0x122))/0xa;if(_0x27f5c1===_0x4afb5f)break;else _0x3906a5['push'](_0x3906a5['shift']());}catch(_0x5d5097){_0x3906a5['push'](_0x3906a5['shift']());}}}(_0x52a5,0xd43b1));function _0x3916(_0x56ebe6,_0x312ae1){const _0x52a523=_0x52a5();return _0x3916=function(_0x391669,_0xc1762a){_0x391669=_0x391669-0x10e;let _0x5256c0=_0x52a523[_0x391669];return _0x5256c0;},_0x3916(_0x56ebe6,_0x312ae1);}import{ObservableMixin as _0x58dd18,uid as _0x2b95d3}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2e5a67,findByAttribute as _0xe76e57,getAttribute as _0x444800,isComment as _0x4404f1,isTag as _0x2ff435,insertElement as _0x3cf809,moveElement as _0x440b35,removeElement as _0x1e26c0,replaceElement as _0x2c8777,serialize as _0x3edd26,setAttribute as _0x38ee8e,clone as _0x23732e,findAllComments as _0x2da964,getParents as _0x656829,getNodeNestingLevel as _0x5dd463,areNodesSame as _0x1503d0,removeElementsAfter as _0x59b710}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x58dd18(){[_0x5a85b5(0x119)];[_0x5a85b5(0x10f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5a85b5(0x129)]=new Set();constructor(_0x3bb947){const _0x215304=_0x5a85b5;super(),this[_0x215304(0x119)]=_0x3bb947||_0x2b95d3;}[_0x5a85b5(0x14d)](_0x2512ec,_0x57f1d4,_0xa652b1){const _0x2c1ac6=_0x5a85b5,_0x495438=_0x23732e(_0x2512ec);if(0x0===_0x57f1d4[_0x2c1ac6(0x138)][_0x2c1ac6(0x133)]){const _0x42a0f3=[];return _0x2e5a67(_0x2c1ac6(0x153),_0x2c1ac6(0x110),_0x495438)[_0x2c1ac6(0x135)](_0x2f20ce=>{const _0x27d56f=_0x2c1ac6,_0x76c295=this[_0x27d56f(0x119)]();_0x38ee8e(_0x2f20ce,_0x27d56f(0x153),_0x76c295),_0x42a0f3[_0x27d56f(0x125)](_0x76c295);}),this[_0x2c1ac6(0x12f)](_0x495438),{'parsedContent':_0x495438,'newNodeIds':_0x42a0f3,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xa652b1&&_0xa652b1[_0x2c1ac6(0x114)]&&this[_0x2c1ac6(0x154)](_0x495438),this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x13c)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x12b)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x11b)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)]=null,this[_0x2c1ac6(0x129)]=new Set(_0x2e5a67(_0x2c1ac6(0x153),null,_0x57f1d4)[_0x2c1ac6(0x13e)](_0x4dc46f=>_0x444800(_0x4dc46f,_0x2c1ac6(0x153)))[_0x2c1ac6(0x139)](_0x61bee6=>!!_0x61bee6));let _0x2d151d=-0x1,_0x3371d2=!0x1;const _0x52a9b6=_0x495438[_0x2c1ac6(0x138)],_0x3de4be=Array[_0x2c1ac6(0x113)](_0x52a9b6)[_0x2c1ac6(0x139)](_0x388120=>!(0x3===_0x388120[_0x2c1ac6(0x11f)]&&''===_0x3edd26(_0x388120)[_0x2c1ac6(0x148)]())),_0x49616f=_0x3de4be[_0x2c1ac6(0x133)];for(let _0x499203=0x0;_0x499203<_0x49616f;_0x499203++){const _0x49a6af=_0x3de4be[_0x499203],_0x1d3f42=_0x3de4be[_0x499203+0x1];if(this[_0x2c1ac6(0x131)](_0x49a6af)){if(-0x1===_0x2d151d&&(_0x2d151d=_0x499203),this[_0x2c1ac6(0x127)](_0x49a6af),!this[_0x2c1ac6(0x131)](_0x1d3f42)){const [_0x2e98fb,_0x33a0fd]=this[_0x2c1ac6(0x10e)](_0x49a6af,_0x3371d2,_0x57f1d4);if(_0x2e98fb){const _0x724dae=Array[_0x2c1ac6(0x113)](_0x3de4be)[_0x2c1ac6(0x111)](_0x2d151d,_0x499203+0x1);this[_0x2c1ac6(0x13d)](_0x2e98fb,_0x724dae,_0x33a0fd),_0x2d151d=-0x1;}}}else{if(this[_0x2c1ac6(0x116)](_0x49a6af))_0x3371d2=!0x0;else{if(this[_0x2c1ac6(0x11a)](_0x49a6af)){const _0x1b62bd=_0x444800(_0x49a6af,_0x2c1ac6(0x153));if(_0x1b62bd&&this[_0x2c1ac6(0x129)][_0x2c1ac6(0x126)](_0x1b62bd)){const _0x510f12=_0xe76e57(_0x2c1ac6(0x153),_0x1b62bd,_0x57f1d4);this[_0x2c1ac6(0x14a)](_0x510f12,_0x49a6af);}if(this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)][_0x2c1ac6(0x12a)](_0x1b62bd)){const _0x3ae75b=this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)][_0x2c1ac6(0x144)](_0x1b62bd);this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)][_0x2c1ac6(0x147)](_0x3ae75b,0x1);}}else{if(this[_0x2c1ac6(0x132)](_0x49a6af)){const _0x3b098f=_0x444800(_0x49a6af,_0x2c1ac6(0x153));this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x12b)][_0x2c1ac6(0x12a)](_0x3b098f)||this[_0x2c1ac6(0x134)](_0x49a6af);}}}}}for(const _0x16b616 of this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)]){const _0x3d4a44=_0xe76e57(_0x2c1ac6(0x153),_0x16b616,_0x57f1d4);if(_0x3d4a44){if(_0xa652b1&&_0xa652b1[_0x2c1ac6(0x115)]){this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)]=_0x16b616;const _0x5f4841=_0xa652b1[_0x2c1ac6(0x115)][_0x2c1ac6(0x151)](!0x0);_0x38ee8e(_0x5f4841,_0x2c1ac6(0x153),_0x16b616),_0x38ee8e(_0x5f4841,_0x2c1ac6(0x149),_0x2c1ac6(0x128)),_0x2c8777(_0x3d4a44,_0x5f4841);}else _0x1e26c0(_0x3d4a44);}}if(_0x2e5a67(_0x2c1ac6(0x143),null,_0x57f1d4)[_0x2c1ac6(0x135)](_0x2cc97b=>{const _0x42b898=_0x2c1ac6,_0x31d116=_0x444800(_0x2cc97b,_0x42b898(0x143)),_0x253489=_0xe76e57(_0x42b898(0x153),_0x31d116,_0x57f1d4);_0x253489&&_0x440b35(_0x253489,_0x2cc97b);}),_0x2e5a67(_0x2c1ac6(0x153),_0x2c1ac6(0x110),_0x57f1d4)[_0x2c1ac6(0x135)](_0x4f249a=>{const _0x1612a7=_0x2c1ac6,_0x14b611=this[_0x1612a7(0x12d)](_0x4f249a);_0x38ee8e(_0x4f249a,_0x1612a7(0x153),_0x14b611),this[_0x1612a7(0x10f)][_0x1612a7(0x13c)][_0x1612a7(0x125)](_0x14b611);}),this[_0x2c1ac6(0x12f)](_0x57f1d4),_0xa652b1&&_0xa652b1[_0x2c1ac6(0x114)]&&this[_0x2c1ac6(0x112)](_0x57f1d4,_0xa652b1[_0x2c1ac6(0x150)]||0x0),_0xa652b1&&_0xa652b1[_0x2c1ac6(0x14e)]&&this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)]){let _0x45e7ef=_0xe76e57(_0x2c1ac6(0x153),this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)],_0x57f1d4);for(;_0x45e7ef;)_0x59b710(_0x45e7ef),_0x45e7ef=_0x45e7ef[_0x2c1ac6(0x130)];}return{'parsedContent':_0x57f1d4,'newNodeIds':this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x13c)],'modifiedNodeIds':this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x12b)],'removedNodeIds':this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)]};}[_0x5a85b5(0x13d)](_0x31ecde,_0x3f00d5,_0x1bd27a){const _0x581c82=_0x5a85b5;for(const _0x1d5ea0 of _0x3f00d5){const _0x4ab8d4=this[_0x581c82(0x12d)](_0x1d5ea0);_0x38ee8e(_0x1d5ea0,_0x581c82(0x153),_0x4ab8d4),this[_0x581c82(0x10f)][_0x581c82(0x13c)][_0x581c82(0x125)](_0x4ab8d4),this[_0x581c82(0x10f)][_0x581c82(0x145)]=_0x4ab8d4;}const _0x545f22=_0x581c82(0x12c)===_0x1bd27a||_0x581c82(0x141)===_0x1bd27a?_0x3f00d5[_0x581c82(0x142)]():_0x3f00d5;for(const _0x449ac6 of _0x545f22)_0x3cf809(_0x31ecde,_0x449ac6,_0x1bd27a);}[_0x5a85b5(0x14a)](_0x3902ae,_0x3c1251){const _0x47a5c0=_0x5a85b5;if(!_0x3902ae)return;if(_0x1503d0(_0x3902ae,_0x3c1251))return;const _0x27cc5a=this[_0x47a5c0(0x12d)](_0x3902ae);_0x38ee8e(_0x3c1251,_0x47a5c0(0x153),_0x27cc5a),this[_0x47a5c0(0x10f)][_0x47a5c0(0x12b)][_0x47a5c0(0x125)](_0x27cc5a),this[_0x47a5c0(0x10f)][_0x47a5c0(0x145)]=_0x27cc5a,_0x2c8777(_0x3902ae,_0x3c1251[_0x47a5c0(0x151)](!0x0));}[_0x5a85b5(0x10e)](_0x17eb65,_0x41e7cd,_0x5f57de){const _0x16d25b=_0x5a85b5,_0x2c3986=this[_0x16d25b(0x11e)](_0x17eb65,!0x1);if(_0x2c3986){const _0x406eb1=this[_0x16d25b(0x12e)](_0x2c3986),_0x5248b8=_0xe76e57(_0x16d25b(0x153),_0x406eb1,_0x5f57de);if(_0x5248b8)return[_0x5248b8,_0x16d25b(0x141)];this[_0x16d25b(0x10f)][_0x16d25b(0x11b)][_0x16d25b(0x125)](_0x406eb1);}const _0x5cea42=this[_0x16d25b(0x13f)](_0x17eb65,!0x1);if(_0x5cea42){const _0x344e2a=this[_0x16d25b(0x12e)](_0x5cea42),_0x1bf9cf=_0xe76e57(_0x16d25b(0x153),_0x344e2a,_0x5f57de);if(_0x1bf9cf)return[_0x1bf9cf,_0x16d25b(0x14b)];this[_0x16d25b(0x10f)][_0x16d25b(0x11b)][_0x16d25b(0x125)](_0x344e2a);}return _0x41e7cd?_0x17eb65[_0x16d25b(0x124)]?this[_0x16d25b(0x11d)](_0x17eb65,_0x5f57de):[_0x5f57de[_0x16d25b(0x138)][_0x5f57de[_0x16d25b(0x138)][_0x16d25b(0x133)]-0x1],_0x16d25b(0x141)]:[_0x5f57de[_0x16d25b(0x138)][0x0],_0x16d25b(0x14b)];}[_0x5a85b5(0x11d)](_0x5cc510,_0xc207a7){const _0x1b3148=_0x5a85b5,_0x36f2ce=[],_0x2cc9df=this[_0x1b3148(0x11e)](_0x5cc510,!0x0);if(_0x2cc9df){const _0x1582f0=this[_0x1b3148(0x12e)](_0x2cc9df),_0x49b18f=_0xe76e57(_0x1b3148(0x153),_0x1582f0,_0xc207a7);_0x49b18f&&_0x36f2ce[_0x1b3148(0x125)]([_0x49b18f,_0x1b3148(0x141)]);}const _0x50733a=this[_0x1b3148(0x13f)](_0x5cc510,!0x0);if(_0x50733a){const _0x3e2f75=this[_0x1b3148(0x12e)](_0x50733a),_0x3e0d65=_0xe76e57(_0x1b3148(0x153),_0x3e2f75,_0xc207a7);_0x3e0d65&&_0x36f2ce[_0x1b3148(0x125)]([_0x3e0d65,_0x1b3148(0x14b)]);}if(_0x36f2ce[_0x1b3148(0x133)]>0x1)return _0x5dd463(_0x36f2ce[0x0][0x0])<=_0x5dd463(_0x36f2ce[0x1][0x0])?_0x36f2ce[0x0]:_0x36f2ce[0x1];return 0x1===_0x36f2ce[_0x1b3148(0x133)]?_0x36f2ce[0x0]:[_0xc207a7[_0x1b3148(0x123)],_0x1b3148(0x141)];}[_0x5a85b5(0x13f)](_0x2e1e88,_0x431627){const _0x4aab92=_0x5a85b5;let _0x12d7da=_0x2e1e88[_0x4aab92(0x124)],_0x42959a=null,_0x289aac=!0x1;for(;_0x12d7da;){if(_0x4404f1(_0x12d7da)){if(this[_0x4aab92(0x132)](_0x12d7da)&&(_0x42959a=_0x12d7da),this[_0x4aab92(0x116)](_0x12d7da)&&_0x431627&&!_0x289aac){_0x289aac=!0x0,_0x12d7da=_0x12d7da[_0x4aab92(0x124)];continue;}break;}const _0x15037c=_0x444800(_0x12d7da,_0x4aab92(0x153));if(_0x15037c&&_0x4aab92(0x110)!==_0x15037c&&this[_0x4aab92(0x129)][_0x4aab92(0x126)](_0x15037c)){_0x42959a=_0x12d7da;break;}_0x12d7da=_0x12d7da[_0x4aab92(0x124)];}return _0x42959a;}[_0x5a85b5(0x11e)](_0x4275bb,_0x41ef08){const _0x593ed5=_0x5a85b5;let _0x425ffb=_0x4275bb[_0x593ed5(0x120)],_0x2dd0c4=null,_0xd45153=!0x1;for(;_0x425ffb;){if(_0x4404f1(_0x425ffb)){if(this[_0x593ed5(0x132)](_0x425ffb)&&(_0x2dd0c4=_0x425ffb),this[_0x593ed5(0x116)](_0x425ffb)&&_0x41ef08&&!_0xd45153){_0xd45153=!0x0,_0x425ffb=_0x425ffb[_0x593ed5(0x120)];continue;}break;}const _0x47bd8d=_0x444800(_0x425ffb,_0x593ed5(0x153));if(_0x47bd8d&&_0x593ed5(0x110)!==_0x47bd8d&&this[_0x593ed5(0x129)][_0x593ed5(0x126)](_0x47bd8d)){_0x2dd0c4=_0x425ffb;break;}_0x425ffb=_0x425ffb[_0x593ed5(0x120)];}return _0x2dd0c4;}[_0x5a85b5(0x127)](_0x529c82){const _0x5c16dd=_0x5a85b5;_0x2ff435(_0x529c82)&&_0x2e5a67(_0x5c16dd(0x153),null,_0x529c82)[_0x5c16dd(0x135)](_0x7a04ab=>{const _0x516e7a=_0x5c16dd;if(this[_0x516e7a(0x11a)](_0x7a04ab)&&!this[_0x516e7a(0x136)](_0x7a04ab)){const _0x39d453=_0x444800(_0x7a04ab,_0x516e7a(0x153));_0x38ee8e(_0x7a04ab,_0x516e7a(0x143),_0x39d453),_0x38ee8e(_0x7a04ab,_0x516e7a(0x153),null);}});}[_0x5a85b5(0x12e)](_0x29b4f3){const _0x1a4976=_0x5a85b5;if(!_0x29b4f3)return null;if(_0x2ff435(_0x29b4f3))return _0x444800(_0x29b4f3,_0x1a4976(0x153));if(_0x4404f1(_0x29b4f3)){const _0x377e72=_0x3edd26(_0x29b4f3)[_0x1a4976(0x137)](/removed[\s*-]data-id="([^"]+)"/);if(_0x377e72&&_0x377e72[0x1])return _0x377e72[0x1];}return null;}[_0x5a85b5(0x134)](_0x516973){const _0x90628=_0x5a85b5;if(_0x4404f1(_0x516973)){const _0x2eecf6=_0x3edd26(_0x516973)[_0x90628(0x137)](/removed[\s*-]data-id="([^"]+)"/);_0x2eecf6&&_0x2eecf6[0x1]&&this[_0x90628(0x10f)][_0x90628(0x117)][_0x90628(0x125)](_0x2eecf6[0x1]);}}[_0x5a85b5(0x12d)](_0x58a7de){const _0x103bef=_0x5a85b5;return this[_0x103bef(0x11a)](_0x58a7de)?_0x444800(_0x58a7de,_0x103bef(0x153)):this[_0x103bef(0x119)]();}[_0x5a85b5(0x12f)](_0x10ec32){const _0x549a79=_0x5a85b5;_0x2da964(_0x10ec32)[_0x549a79(0x139)](_0x45fea1=>this[_0x549a79(0x132)](_0x45fea1)||this[_0x549a79(0x116)](_0x45fea1))[_0x549a79(0x135)](_0x11179e=>{_0x1e26c0(_0x11179e);});}[_0x5a85b5(0x154)](_0x3652db){const _0x186682=_0x5a85b5,_0x421286=_0x3652db[_0x186682(0x138)],_0x30f42f=_0x421286[_0x421286[_0x186682(0x133)]-0x1];_0x30f42f&&_0x2ff435(_0x30f42f)&&_0x38ee8e(_0x30f42f,_0x186682(0x13a),_0x186682(0x128));}[_0x5a85b5(0x112)](_0x12a977,_0x1aeeba){const _0x441ed5=_0x5a85b5,_0x2cb508=_0xe76e57(_0x441ed5(0x13a),_0x441ed5(0x128),_0x12a977);if(!_0x2cb508)return;const _0x122c3d=_0x656829(_0x2cb508)[_0x441ed5(0x111)](0x0,-0x1),_0xbff72c=_0x122c3d[_0x441ed5(0x133)];let _0x243d73=_0x2cb508;if(_0xbff72c>_0x1aeeba){let _0x3385fa=_0xbff72c,_0x2dbc55=null;for(;_0x3385fa>_0x1aeeba&&_0x3385fa>=0x0;)_0x3385fa--,_0x2dbc55=_0x122c3d[_0x3385fa];_0x2dbc55&&(_0x243d73=_0x2dbc55,_0x38ee8e(_0x2cb508,_0x441ed5(0x13a),null),_0x38ee8e(_0x2dbc55,_0x441ed5(0x13a),_0x441ed5(0x128)));}else{if(_0xbff72c<_0x1aeeba){let _0x4ef734=_0xbff72c,_0x3db9e1=_0x2cb508;for(;_0x4ef734<_0x1aeeba;){const _0x3a1130=_0x3db9e1[_0x441ed5(0x138)][_0x441ed5(0x139)](_0x20710a=>_0x2ff435(_0x20710a));if(0x0===_0x3a1130[_0x441ed5(0x133)])break;_0x4ef734++,_0x3db9e1=_0x3a1130[_0x3a1130[_0x441ed5(0x133)]-0x1];}_0x3db9e1&&(_0x243d73=_0x3db9e1,_0x38ee8e(_0x2cb508,_0x441ed5(0x13a),null),_0x38ee8e(_0x3db9e1,_0x441ed5(0x13a),_0x441ed5(0x128)));}}let _0x343aed=_0x243d73;for(;_0x343aed;){for(;_0x343aed[_0x441ed5(0x124)];)_0x343aed=_0x343aed[_0x441ed5(0x124)],_0x2ff435(_0x343aed)&&_0x38ee8e(_0x343aed,_0x441ed5(0x13a),_0x441ed5(0x128));_0x343aed=_0x343aed[_0x441ed5(0x130)];}}[_0x5a85b5(0x131)](_0x24394f){const _0x307377=_0x5a85b5;return Boolean(_0x307377(0x110)===_0x444800(_0x24394f,_0x307377(0x153)));}[_0x5a85b5(0x11a)](_0x4e8391){const _0x19e989=_0x5a85b5;return Boolean((_0x444800(_0x4e8391,_0x19e989(0x153))||'')[_0x19e989(0x133)]>0x0&&_0x19e989(0x110)!==_0x444800(_0x4e8391,_0x19e989(0x153)));}[_0x5a85b5(0x132)](_0xc87f62){const _0x251d82=_0x5a85b5;return!!_0xc87f62&&Boolean(_0x4404f1(_0xc87f62)&&_0x3edd26(_0xc87f62)[_0x251d82(0x137)](/removed[\s*-]data-id="[^"]+"/));}[_0x5a85b5(0x136)](_0x45e718){const _0x40943a=_0x5a85b5;let _0x24bf77=_0x45e718[_0x40943a(0x130)];for(;_0x24bf77;){if(_0x444800(_0x24bf77,_0x40943a(0x143)))return!0x0;_0x24bf77=_0x24bf77[_0x40943a(0x130)];}return!0x1;}[_0x5a85b5(0x116)](_0xb962e1){const _0xc3481c=_0x5a85b5;return Boolean(_0x4404f1(_0xb962e1)&&_0x3edd26(_0xb962e1)[_0xc3481c(0x137)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x47cd7e=_0x4ba6;(function(_0x5d8a76,_0x627e25){const _0x1cf310=_0x4ba6,_0x171c64=_0x5d8a76();while(!![]){try{const _0x17a2e5=-parseInt(_0x1cf310(0x187))/0x1+-parseInt(_0x1cf310(0x18f))/0x2+-parseInt(_0x1cf310(0x18d))/0x3+-parseInt(_0x1cf310(0x18e))/0x4+parseInt(_0x1cf310(0x18b))/0x5+-parseInt(_0x1cf310(0x182))/0x6+-parseInt(_0x1cf310(0x18c))/0x7*(-parseInt(_0x1cf310(0x189))/0x8);if(_0x17a2e5===_0x627e25)break;else _0x171c64['push'](_0x171c64['shift']());}catch(_0x5385bd){_0x171c64['push'](_0x171c64['shift']());}}}(_0x413a,0x6a661));import{ObservableMixin as _0x3f5047}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3c9ef8}from'@ckeditor/ckeditor5-markdown-gfm';function _0x413a(){const _0xaffd78=['parseAndNormalizeHTML','8ujNwqs','convertMarkdownToHTML','696130qOGqET','20467237eYbLSU','1493793wObcfz','651608RPjzOE','1141448sobzIy','_m2html','<dummy>','replace','4117506TefdnB','parse','</dummy>','children','_parseHTML','709500QpZZdF'];_0x413a=function(){return _0xaffd78;};return _0x413a();}import{parse as _0x567c5b}from'../utils/htmlparser.js';function _0x4ba6(_0x4aa44f,_0x37748a){const _0x413a89=_0x413a();return _0x4ba6=function(_0x4ba657,_0x5f0182){_0x4ba657=_0x4ba657-0x17f;let _0x5c2d27=_0x413a89[_0x4ba657];return _0x5c2d27;},_0x4ba6(_0x4aa44f,_0x37748a);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3f5047(){[_0x47cd7e(0x17f)];constructor(){const _0x5a67b7=_0x47cd7e;super(),this[_0x5a67b7(0x17f)]=new _0x3c9ef8();}[_0x47cd7e(0x18a)](_0x1dc886){const _0x248a36=_0x47cd7e,_0x4c330c=this[_0x248a36(0x17f)][_0x248a36(0x183)](_0x1dc886);return this[_0x248a36(0x188)](_0x4c330c);}[_0x47cd7e(0x188)](_0x5afee5){const _0x495d01=_0x47cd7e;return this[_0x495d01(0x186)](_0x5afee5);}[_0x47cd7e(0x186)](_0x60c3ee){const _0x1f7380=_0x47cd7e,_0x3ae624=_0x60c3ee[_0x1f7380(0x181)](/^\t+/gm,'\x20')[_0x1f7380(0x181)](/\n*/g,'')[_0x1f7380(0x181)](/\s+/g,'\x20')[_0x1f7380(0x181)](/<[^>]*?$/g,''),_0x9d80bb=_0x567c5b(_0x1f7380(0x180)+_0x3ae624+_0x1f7380(0x184));return _0x9d80bb[_0x1f7380(0x185)]=_0x9d80bb[_0x1f7380(0x185)][0x0][_0x1f7380(0x185)],_0x9d80bb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x532917,_0x198f4a){var _0xe3f28f=_0x2b9b,_0x136741=_0x532917();while(!![]){try{var _0x18e87a=parseInt(_0xe3f28f(0x8c))/0x1*(-parseInt(_0xe3f28f(0x97))/0x2)+-parseInt(_0xe3f28f(0x91))/0x3+parseInt(_0xe3f28f(0x90))/0x4+parseInt(_0xe3f28f(0x8d))/0x5*(parseInt(_0xe3f28f(0x8e))/0x6)+-parseInt(_0xe3f28f(0x94))/0x7*(parseInt(_0xe3f28f(0x92))/0x8)+parseInt(_0xe3f28f(0x8a))/0x9+parseInt(_0xe3f28f(0x95))/0xa;if(_0x18e87a===_0x198f4a)break;else _0x136741['push'](_0x136741['shift']());}catch(_0x38dc4f){_0x136741['push'](_0x136741['shift']());}}}(_0x48c7,0x4ed4a));function _0x48c7(){var _0xaf235f=['792783Ukdaek','32728ptHPyS','ck-ai-disclaimer','805OghqnT','4241920VBCkHV','div','2PNTRym','AI_DISCLAIMER_TEXT','1614474IrnwJu','ck-ai-disclaimer__content','14653ehslfX','1415fTJovN','3378YXRvvU','setTemplate','1237448YZKVRd'];_0x48c7=function(){return _0xaf235f;};return _0x48c7();}function _0x2b9b(_0x1db867,_0x275f20){var _0x48c7f9=_0x48c7();return _0x2b9b=function(_0x2b9b97,_0x5c46ab){_0x2b9b97=_0x2b9b97-0x89;var _0x1331d3=_0x48c7f9[_0x2b9b97];return _0x1331d3;},_0x2b9b(_0x1db867,_0x275f20);}import{View as _0x2a71be}from'ckeditor5/src/ui.js';import{getTranslation as _0x1a0d48}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2a71be{constructor(_0x1070f8){var _0x21f205=_0x2b9b;super(_0x1070f8),this[_0x21f205(0x8f)]({'tag':_0x21f205(0x96),'attributes':{'class':['ck',_0x21f205(0x93)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x21f205(0x8b)]},'children':[{'text':_0x1a0d48(_0x1070f8,_0x21f205(0x89))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3063(_0xa334a8,_0x371542){const _0x5f1a6f=_0x5f1a();return _0x3063=function(_0x306376,_0x364aea){_0x306376=_0x306376-0x10e;let _0x4d26f7=_0x5f1a6f[_0x306376];return _0x4d26f7;},_0x3063(_0xa334a8,_0x371542);}const _0x3867f1=_0x3063;(function(_0x2937ed,_0x25041d){const _0x4bed35=_0x3063,_0x1ba448=_0x2937ed();while(!![]){try{const _0x1458db=parseInt(_0x4bed35(0x130))/0x1*(parseInt(_0x4bed35(0x138))/0x2)+parseInt(_0x4bed35(0x11f))/0x3*(-parseInt(_0x4bed35(0x121))/0x4)+parseInt(_0x4bed35(0x123))/0x5*(-parseInt(_0x4bed35(0x132))/0x6)+parseInt(_0x4bed35(0x136))/0x7*(parseInt(_0x4bed35(0x11c))/0x8)+parseInt(_0x4bed35(0x111))/0x9*(parseInt(_0x4bed35(0x125))/0xa)+-parseInt(_0x4bed35(0x131))/0xb+parseInt(_0x4bed35(0x134))/0xc*(-parseInt(_0x4bed35(0x11e))/0xd);if(_0x1458db===_0x25041d)break;else _0x1ba448['push'](_0x1ba448['shift']());}catch(_0x5f0064){_0x1ba448['push'](_0x1ba448['shift']());}}}(_0x5f1a,0x7c6f3));import{View as _0x229670}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x229670{constructor(_0x527b24,_0x2a1603){const _0x134d49=_0x3063;super(_0x527b24),this[_0x134d49(0x12b)]({'tag':_0x134d49(0x12e),'attributes':{'class':['ck',_0x134d49(0x127)]},'children':this[_0x134d49(0x110)](_0x2a1603)});}[_0x3867f1(0x110)](_0x5337fb){const _0x446849=_0x3867f1,_0x58e7ff=['ck',_0x446849(0x118)];return _0x5337fb[_0x446849(0x12f)](_0x308133=>{const _0x543c95=_0x446849;let _0x43e50d='';switch(_0x308133[_0x543c95(0x133)][_0x543c95(0x11b)]){case _0x543c95(0x135):_0x43e50d=_0x543c95(0x129);break;case _0x543c95(0x120):_0x43e50d=_0x543c95(0x11a);break;case _0x543c95(0x10f):_0x43e50d=_0x543c95(0x114);}return{'tag':_0x308133[_0x543c95(0x115)],'attributes':{'class':[..._0x58e7ff,_0x308133[_0x543c95(0x133)][_0x543c95(0x10e)]?_0x308133[_0x543c95(0x133)][_0x543c95(0x10e)]:''],'style':_0x543c95(0x122)+_0x308133[_0x543c95(0x133)][_0x543c95(0x12a)]+_0x543c95(0x11d)+_0x308133[_0x543c95(0x133)][_0x543c95(0x12c)]+';'+_0x43e50d}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x12d),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x119),'height':_0x3867f1(0x113),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x126),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x128),'height':_0x3867f1(0x113),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x116),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x119),'height':_0x3867f1(0x113),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x126),'align':_0x3867f1(0x135)}}],'aiHistory':ta(0x5,_0x3867f1(0x139),_0x3867f1(0x117),_0x3867f1(0x135)),'aiChatResources':ta(0x8,_0x3867f1(0x139),_0x3867f1(0x137),_0x3867f1(0x135)),'aiReviewChecks':[{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x124),'height':_0x3867f1(0x137),'align':_0x3867f1(0x10f)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x137),'align':_0x3867f1(0x10f)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x124),'height':_0x3867f1(0x137),'align':_0x3867f1(0x10f)}}]};function _0x5f1a(){const _0x346e36=['tag','140px','44px','ck-ai-skeleton__item','250px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','align','6040Hqrfaq',';\x20height:\x20','26NjSwWB','3xxdQzX','center','216884qHInhq','width:\x20','482155CLzLye','128px','10Adrlnl','88px','ck-ai-skeleton','150px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','width','setTemplate','height','72px','div','map','54956EQAWAW','5052850wCZlXM','24BvpjZn','attributes','3960396ydhWqD','right','5061jCODAx','24px','30qlrJYp','100%','class','left','_createSkeletonItems','6289551asvXzu','fill','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;'];_0x5f1a=function(){return _0x346e36;};return _0x5f1a();}function ta(_0x20cef7,_0x225473,_0x5bc892,_0x33df0b){const _0x105f38=_0x3867f1;return new Array(_0x20cef7)[_0x105f38(0x112)](null)[_0x105f38(0x12f)](()=>({'tag':_0x105f38(0x12e),'attributes':{'width':_0x225473,'height':_0x5bc892,'align':_0x33df0b}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xc89ec8,_0x55ea54){const _0x18dff8=_0x1868,_0x2c1f5b=_0xc89ec8();while(!![]){try{const _0x2aae8a=-parseInt(_0x18dff8(0x108))/0x1+parseInt(_0x18dff8(0x112))/0x2*(parseInt(_0x18dff8(0x113))/0x3)+parseInt(_0x18dff8(0x106))/0x4*(parseInt(_0x18dff8(0x107))/0x5)+parseInt(_0x18dff8(0x109))/0x6*(-parseInt(_0x18dff8(0x111))/0x7)+parseInt(_0x18dff8(0x10a))/0x8*(parseInt(_0x18dff8(0x10b))/0x9)+-parseInt(_0x18dff8(0x10d))/0xa*(-parseInt(_0x18dff8(0x103))/0xb)+-parseInt(_0x18dff8(0x10f))/0xc*(-parseInt(_0x18dff8(0x10e))/0xd);if(_0x2aae8a===_0x55ea54)break;else _0x2c1f5b['push'](_0x2c1f5b['shift']());}catch(_0xbe9e51){_0x2c1f5b['push'](_0x2c1f5b['shift']());}}}(_0x3bcd,0xda8ad));import{SpinnerView as _0xcd876f}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x1868(_0x154768,_0x1b4dd4){const _0x3bcd7f=_0x3bcd();return _0x1868=function(_0x1868e0,_0x19d456){_0x1868e0=_0x1868e0-0x103;let _0x2ab3b7=_0x3bcd7f[_0x1868e0];return _0x2ab3b7;},_0x1868(_0x154768,_0x1b4dd4);}function _0x3bcd(){const _0x1e36ce=['675740ZkHyFs','624JlLXux','ck-ai-spinner','32984sIrWzP','2ijUbRt','634497DlUgFf','88ZdrFil','extendTemplate','span','694516TwdMFG','5MgkSIs','1193752IOYNEm','1578TnyFyT','49352HkirTy','117GnTIfk','ck-ai-spinner_','199840hHPxEs'];_0x3bcd=function(){return _0x1e36ce;};return _0x3bcd();}export class AISpinnerView extends _0xcd876f{constructor(_0x2eb641=void 0x0){const _0xfb22b5=_0x1868;super();const _0x1e9590=_0x2eb641?_0xfb22b5(0x10c)+_0x2eb641:'';this[_0xfb22b5(0x104)]({'tag':_0xfb22b5(0x105),'attributes':{'class':[_0xfb22b5(0x110),_0x1e9590]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1e37(){const _0x5b8641=['AI_MINI_TOOLBAR_DISLIKE','10dCaUZo','items','AI_MINI_TOOLBAR_COPY','isOn','showDislike','98gziANA','_setupCopyButton','showCopy','toggleShowChangesEnabled','extendTemplate','120PlPVmK','toggleShowChanges','_config','ck-ai-mini-toolbar-copy-button__check-mark','AI_SUGGESTION_BUTTON_SHOW_CHANGES','set','isEnabled','bind','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','ck-ai-mini-toolbar','2030488ayJbek','showChanges','isShowChangesOn','customView','addMany','_setupRatingButtons','559584gfhbOK','11075985ytjiFY','AI_MINI_TOOLBAR_LIKE','1522782BKXNxU','dislike','class','ck-ai-mini-toolbar\x20ck-hidden','_setupShowChangesButton','full','children','add','likeButton','68716JlSpeB','dislikeButton','showLike','execute','ck-ai-button-tertiary','locale','showChangesButton','ck-ai-mini-toolbar-copy-button','icon','copyButton','like','132186FQDngv','421778VmEkpi','fire','length'];_0x1e37=function(){return _0x5b8641;};return _0x1e37();}const _0x474885=_0x4aaf;(function(_0x7edb01,_0x33d6a0){const _0x31b7fd=_0x4aaf,_0x4dfb54=_0x7edb01();while(!![]){try{const _0x235fc5=-parseInt(_0x31b7fd(0xac))/0x1+-parseInt(_0x31b7fd(0x8e))/0x2+-parseInt(_0x31b7fd(0x79))/0x3+-parseInt(_0x31b7fd(0x82))/0x4*(-parseInt(_0x31b7fd(0x9c))/0x5)+parseInt(_0x31b7fd(0x8d))/0x6*(parseInt(_0x31b7fd(0x97))/0x7)+-parseInt(_0x31b7fd(0xa6))/0x8+-parseInt(_0x31b7fd(0x77))/0x9*(-parseInt(_0x31b7fd(0x92))/0xa);if(_0x235fc5===_0x33d6a0)break;else _0x4dfb54['push'](_0x4dfb54['shift']());}catch(_0x16aa4e){_0x4dfb54['push'](_0x4dfb54['shift']());}}}(_0x1e37,0x666bd));import{ButtonView as _0xa07802,IconView as _0x19d7b7,ToolbarView as _0x1b2dfe}from'ckeditor5/src/ui.js';function _0x4aaf(_0x304ca9,_0x4fbc51){const _0x1e370d=_0x1e37();return _0x4aaf=function(_0x4aaf54,_0x452e17){_0x4aaf54=_0x4aaf54-0x77;let _0x50f6bc=_0x1e370d[_0x4aaf54];return _0x50f6bc;},_0x4aaf(_0x304ca9,_0x4fbc51);}import{IconCheck as _0x1e3a7f,IconCopy as _0x4b0387,IconShowChangesOff as _0x174b07,IconShowChangesOn as _0x1fb54d,IconThumbDown as _0x1aaea8,IconThumbUp as _0x3987ce}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x565236}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x1b2dfe{[_0x474885(0x8b)];[_0x474885(0x81)];[_0x474885(0x83)];[_0x474885(0x88)];[_0x474885(0x9e)];constructor(_0x2463fa,_0x5c6221={}){const _0x378f04=_0x474885;super(_0x2463fa),this[_0x378f04(0xa1)](_0x378f04(0xa2),!0x0),this[_0x378f04(0xa1)](_0x378f04(0xa8),!0x1),this[_0x378f04(0x9e)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5c6221};const _0x344501=!(this[_0x378f04(0x9e)][_0x378f04(0x99)]||this[_0x378f04(0x9e)][_0x378f04(0xa7)]||this[_0x378f04(0x9e)][_0x378f04(0x84)]||this[_0x378f04(0x9e)][_0x378f04(0x96)]||this[_0x378f04(0x9e)][_0x378f04(0xa9)]?.[_0x378f04(0x90)]);this[_0x378f04(0x7b)]=_0x344501?_0x378f04(0x7c):_0x378f04(0xa5),this[_0x378f04(0x9e)][_0x378f04(0x99)]&&(this[_0x378f04(0x98)](),this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x8b)])),this[_0x378f04(0x9e)][_0x378f04(0xa7)]&&(this[_0x378f04(0x7d)](),this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x88)])),this[_0x378f04(0xab)](),this[_0x378f04(0x9e)][_0x378f04(0x84)]&&this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x81)]),this[_0x378f04(0x9e)][_0x378f04(0x96)]&&this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x83)]),this[_0x378f04(0x9e)][_0x378f04(0xa9)]&&this[_0x378f04(0x93)][_0x378f04(0xaa)](this[_0x378f04(0x9e)][_0x378f04(0xa9)]);}[_0x474885(0x9a)](_0x172cc0){const _0x5ae684=_0x474885;this[_0x5ae684(0x88)][_0x5ae684(0xa2)]=_0x172cc0;}[_0x474885(0xab)](){const _0x2299e7=_0x474885;this[_0x2299e7(0x81)]=new _0xa07802(this[_0x2299e7(0x87)]),this[_0x2299e7(0x81)][_0x2299e7(0xa1)]({'icon':_0x3987ce,'label':_0x565236(this[_0x2299e7(0x87)],_0x2299e7(0x78)),'tooltip':!0x0}),this[_0x2299e7(0x81)][_0x2299e7(0xa3)](_0x2299e7(0xa2))['to'](this),this[_0x2299e7(0x81)]['on'](_0x2299e7(0x85),()=>{const _0x570c4d=_0x2299e7;this[_0x570c4d(0x8f)](_0x570c4d(0x8c));}),this[_0x2299e7(0x83)]=new _0xa07802(this[_0x2299e7(0x87)]),this[_0x2299e7(0x83)][_0x2299e7(0xa1)]({'icon':_0x1aaea8,'label':_0x565236(this[_0x2299e7(0x87)],_0x2299e7(0x91)),'tooltip':!0x0}),this[_0x2299e7(0x83)][_0x2299e7(0xa3)](_0x2299e7(0xa2))['to'](this),this[_0x2299e7(0x83)]['on'](_0x2299e7(0x85),()=>{const _0x2baba4=_0x2299e7;this[_0x2baba4(0x8f)](_0x2baba4(0x7a));});}[_0x474885(0x98)](){const _0x39440b=_0x474885;this[_0x39440b(0x8b)]=new _0xa07802(this[_0x39440b(0x87)]),this[_0x39440b(0x8b)][_0x39440b(0xa1)]({'icon':_0x4b0387,'label':_0x565236(this[_0x39440b(0x87)],_0x39440b(0x94)),'class':_0x39440b(0x89),'tooltip':!0x0}),this[_0x39440b(0x8b)][_0x39440b(0xa3)](_0x39440b(0xa2))['to'](this);const _0x109290=new _0x19d7b7();_0x109290[_0x39440b(0xa1)]({'content':_0x1e3a7f}),_0x109290[_0x39440b(0x9b)]({'attributes':{'class':[_0x39440b(0x9f)]}}),this[_0x39440b(0x8b)]['on'](_0x39440b(0x85),()=>{const _0x442734=_0x39440b;this[_0x442734(0x8b)][_0x442734(0x7b)]=_0x442734(0xa4),setTimeout(()=>{const _0x3d0efd=_0x442734;this[_0x3d0efd(0x8b)][_0x3d0efd(0x7b)]=_0x3d0efd(0x89);},0x7d0);}),this[_0x39440b(0x8b)][_0x39440b(0x7f)][_0x39440b(0x80)](_0x109290);}[_0x474885(0x7d)](){const _0x11284a=_0x474885;this[_0x11284a(0x88)]=new _0xa07802(this[_0x11284a(0x87)]),this[_0x11284a(0x88)][_0x11284a(0xa1)]({'icon':_0x174b07,'label':_0x565236(this[_0x11284a(0x87)],_0x11284a(0xa0)),'withText':_0x11284a(0x7e)==this[_0x11284a(0x9e)][_0x11284a(0xa7)],'tooltip':_0x11284a(0x7e)!=this[_0x11284a(0x9e)][_0x11284a(0xa7)],'class':_0x11284a(0x86)}),this[_0x11284a(0x88)][_0x11284a(0xa3)](_0x11284a(0x95))['to'](this,_0x11284a(0xa8)),this[_0x11284a(0x88)][_0x11284a(0xa3)](_0x11284a(0xa2))['to'](this),this[_0x11284a(0x88)][_0x11284a(0xa3)](_0x11284a(0x8a))['to'](this,_0x11284a(0xa8),_0x1099bb=>_0x1099bb?_0x1fb54d:_0x174b07),this[_0x11284a(0x88)]['on'](_0x11284a(0x85),()=>{const _0x3f5934=_0x11284a;this[_0x3f5934(0x8f)](_0x3f5934(0x9d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x21319f=_0x2d8e;function _0x1851(){const _0x4e33de=['_children','setTemplate','updateVisibility','bodyCollection','_areActionsDisabled','state','some','bind','addEventListener','updateContentParts','filter','enqueue','queueEmptyPromise','length','4542666ZrbdPS','502370fgxixO','locale','AI_SUGGESTION_EMPTY_PART_WARNING','5561168nwKaxm','updateSources','index','_emptyPartsWarningView','hasNonEmptyParts','warning','_sourcesView','_cachedContentParts','forEach','AI_SUGGESTION_NO_PARTS_WARNING','empty-parts-warning','findIndex','_updateContentPartsPromiseQueue','setContent','_switchButtonLabelsPlurality','updateContent','getPartView','div','isTrackChangesOn','partsCount','2107746tByqHW','isEnabled','ck-ai-suggestion__body','3461604nGmvYr','addSource','ck-ai-suggestion__body__content-parts','_actionsView','markAsDone','1716449NkZlDL','pending','_availableActions','set','_showUnchangedParts','add','availableActions','push','hasChanges','from','isActive','hasPendingParts','partDefinition','createCollection','2ctePuX','updatePartState','isVisible','delegate','abort','find','setPartActive','areActionsDisabled','238820uRcAdA'];_0x1851=function(){return _0x4e33de;};return _0x1851();}(function(_0x54b27f,_0x4e2746){const _0x500ab5=_0x2d8e,_0x2590c9=_0x54b27f();while(!![]){try{const _0x2d4e34=parseInt(_0x500ab5(0x229))/0x1+-parseInt(_0x500ab5(0x211))/0x2*(-parseInt(_0x500ab5(0x1fb))/0x3)+-parseInt(_0x500ab5(0x1fe))/0x4+-parseInt(_0x500ab5(0x219))/0x5+-parseInt(_0x500ab5(0x228))/0x6+parseInt(_0x500ab5(0x203))/0x7+parseInt(_0x500ab5(0x22c))/0x8;if(_0x2d4e34===_0x4e2746)break;else _0x2590c9['push'](_0x2590c9['shift']());}catch(_0x2063ba){_0x2590c9['push'](_0x2590c9['shift']());}}}(_0x1851,0x73f95));import{View as _0x339347}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x4c05ab}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4c163c}from'../../utils/eventnames.js';import{PromiseQueue as _0x5743c9}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x4aa5dc}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x2de494}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x3e5609}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x5e364f}from'./aiwebsourcesview.js';function _0x2d8e(_0x5f37d0,_0x151e5c){const _0x1851a0=_0x1851();return _0x2d8e=function(_0x2d8eff,_0x24af61){_0x2d8eff=_0x2d8eff-0x1f1;let _0x2c5653=_0x1851a0[_0x2d8eff];return _0x2c5653;},_0x2d8e(_0x5f37d0,_0x151e5c);}export class AISuggestionBodyView extends _0x339347{[_0x21319f(0x201)];[_0x21319f(0x232)];[_0x21319f(0x21a)];[_0x21319f(0x21e)];[_0x21319f(0x207)];[_0x21319f(0x1f3)];[_0x21319f(0x22f)];[_0x21319f(0x205)];[_0x21319f(0x233)]=[];constructor(_0x4e55a2,_0x1dfc32){const _0x391a2e=_0x21319f;super(_0x4e55a2);const {areActionsDisabled:_0x4aa9e9,showUnchangedParts:_0x1ec1b1,availableActions:_0x3563de}=_0x1dfc32;this[_0x391a2e(0x21e)]=_0x4aa9e9,this[_0x391a2e(0x207)]=_0x1ec1b1,this[_0x391a2e(0x205)]=_0x3563de,this[_0x391a2e(0x206)](_0x391a2e(0x20e),!0x1),this[_0x391a2e(0x206)](_0x391a2e(0x1f9),!0x1),this[_0x391a2e(0x21a)]=this[_0x391a2e(0x210)](),this[_0x391a2e(0x1f3)]=new _0x5743c9(),this[_0x391a2e(0x22f)]=new _0x4aa5dc({'id':_0x391a2e(0x1f1),'initialContent':_0x2de494(_0x4e55a2,_0x391a2e(0x22b)),'level':_0x391a2e(0x231)}),this[_0x391a2e(0x22f)][_0x391a2e(0x213)]=!0x1,this[_0x391a2e(0x201)]=new _0x3e5609(_0x4e55a2,_0x1dfc32[_0x391a2e(0x209)],this[_0x391a2e(0x21e)]),this[_0x391a2e(0x201)][_0x391a2e(0x221)](_0x391a2e(0x1f9))['to'](this),this[_0x391a2e(0x232)]=new _0x5e364f(this[_0x391a2e(0x22a)],_0x1dfc32[_0x391a2e(0x21d)]),_0x1dfc32[_0x391a2e(0x218)]?this[_0x391a2e(0x201)][_0x391a2e(0x1fc)]=!0x1:this[_0x391a2e(0x201)][_0x391a2e(0x221)](_0x391a2e(0x1fc))['to'](this,_0x391a2e(0x20e)),this[_0x391a2e(0x201)][_0x391a2e(0x214)](..._0x4c163c)['to'](this),this[_0x391a2e(0x21b)]({'tag':_0x391a2e(0x1f8),'attributes':{'class':['ck',_0x391a2e(0x1fd)]},'children':[{'tag':_0x391a2e(0x1f8),'attributes':{'class':['ck',_0x391a2e(0x200)]},'children':this[_0x391a2e(0x21a)]},this[_0x391a2e(0x22f)],this[_0x391a2e(0x201)],this[_0x391a2e(0x232)]]});}get[_0x21319f(0x1fa)](){const _0x4ae3a4=_0x21319f;return this[_0x4ae3a4(0x21a)][_0x4ae3a4(0x227)];}async[_0x21319f(0x223)]({parts:_0x2c34d9,renderingStrategy:_0x516663,abortSignal:_0x18bb0c}){const _0x1c2b67=_0x21319f;this[_0x1c2b67(0x21a)][_0x1c2b67(0x227)]?_0x2c34d9[_0x1c2b67(0x234)](_0x5a3c84=>{const _0x554113=_0x1c2b67,_0x19bd70=this[_0x554113(0x233)][_0x554113(0x1f2)](_0x43e093=>_0x43e093[_0x554113(0x22e)]==_0x5a3c84[_0x554113(0x22e)]);-0x1===_0x19bd70?this[_0x554113(0x233)][_0x554113(0x20a)](_0x5a3c84):this[_0x554113(0x233)][_0x19bd70]=_0x5a3c84;}):this[_0x1c2b67(0x233)]=_0x2c34d9;const _0x41a20f=this[_0x1c2b67(0x207)]?_0x2c34d9:_0x2c34d9[_0x1c2b67(0x224)](_0x2d683d=>_0x2d683d[_0x1c2b67(0x20b)]);this[_0x1c2b67(0x201)][_0x1c2b67(0x1f5)](_0x41a20f[_0x1c2b67(0x227)]>0x1);for(const _0x2c1c5c of _0x41a20f)this[_0x1c2b67(0x1f3)][_0x1c2b67(0x225)](async _0x215a03=>{const _0x4a918f=_0x1c2b67;let _0xb838d2=this[_0x4a918f(0x1f7)](_0x2c1c5c[_0x4a918f(0x22e)]);_0xb838d2||(_0xb838d2=new _0x4c05ab(this[_0x4a918f(0x22a)],{'part':_0x2c1c5c,'uiIndex':this[_0x4a918f(0x21a)][_0x4a918f(0x227)]+0x1,'areActionsDisabled':this[_0x4a918f(0x21e)],'availableActions':this[_0x4a918f(0x205)]}),_0xb838d2[_0x4a918f(0x214)](..._0x4c163c)['to'](this),this[_0x4a918f(0x21a)][_0x4a918f(0x208)](_0xb838d2),this[_0x4a918f(0x20e)]=!0x0),await _0xb838d2[_0x4a918f(0x1f6)]({'part':_0x2c1c5c,'renderingStrategy':_0x516663,'showUnchangedParts':this[_0x4a918f(0x207)],'abortSignal':_0x215a03}),_0xb838d2[_0x4a918f(0x202)]();});return _0x18bb0c?.[_0x1c2b67(0x222)](_0x1c2b67(0x215),()=>{const _0x1df723=_0x1c2b67;this[_0x1df723(0x1f3)][_0x1df723(0x215)]();}),this[_0x1c2b67(0x1f3)][_0x1c2b67(0x226)];}[_0x21319f(0x212)](_0x5cac78,_0x4807a9){const _0x587ebf=_0x21319f,_0x28bab1=this[_0x587ebf(0x1f7)](_0x5cac78);_0x28bab1&&(_0x28bab1[_0x587ebf(0x21f)]=_0x4807a9),this[_0x587ebf(0x20e)]=_0x587ebf(0x204)==_0x4807a9||Array[_0x587ebf(0x20c)](this[_0x587ebf(0x21a)])[_0x587ebf(0x220)](_0x1424d0=>_0x587ebf(0x204)==_0x1424d0[_0x587ebf(0x21f)]);}[_0x21319f(0x217)](_0x4addea,_0x483d44){const _0x16f05b=_0x21319f;if(!0x1===_0x4addea){for(const _0x53152e of this[_0x16f05b(0x21a)])_0x53152e[_0x16f05b(0x20d)]=!0x1;}else{const _0x7cd18f=this[_0x16f05b(0x1f7)](_0x4addea);_0x7cd18f&&(_0x7cd18f[_0x16f05b(0x20d)]=_0x483d44);}}[_0x21319f(0x22d)](_0x204647){const _0x3565d=_0x21319f;_0x204647[_0x3565d(0x234)](_0x5aab19=>this[_0x3565d(0x232)][_0x3565d(0x1ff)](_0x5aab19)),this[_0x3565d(0x232)][_0x3565d(0x213)]=!0x0;}[_0x21319f(0x1f7)](_0x272f4b){const _0x1f82e1=_0x21319f;return this[_0x1f82e1(0x21a)][_0x1f82e1(0x216)](_0x30c44c=>_0x30c44c[_0x1f82e1(0x20f)][_0x1f82e1(0x22e)]==_0x272f4b)??null;}[_0x21319f(0x202)](){const _0x46eb56=_0x21319f;if(!this[_0x46eb56(0x207)]){const _0x165371=!this[_0x46eb56(0x233)][_0x46eb56(0x216)](({hasChanges:_0x33411a})=>_0x33411a),_0x13ba4a=!!this[_0x46eb56(0x233)][_0x46eb56(0x216)](({hasChanges:_0x5e8abf})=>!_0x5e8abf);this[_0x46eb56(0x22f)][_0x46eb56(0x213)]=0x0==this[_0x46eb56(0x21a)][_0x46eb56(0x227)]||_0x13ba4a,_0x165371?this[_0x46eb56(0x22f)][_0x46eb56(0x1f4)](_0x2de494(this[_0x46eb56(0x22a)],_0x46eb56(0x235))):this[_0x46eb56(0x22f)][_0x46eb56(0x1f4)](_0x2de494(this[_0x46eb56(0x22a)],_0x46eb56(0x22b)));}this[_0x46eb56(0x21a)][_0x46eb56(0x234)](_0x3d74e1=>_0x3d74e1[_0x46eb56(0x202)]()),this[_0x46eb56(0x201)][_0x46eb56(0x21c)](this[_0x46eb56(0x230)]);}get[_0x21319f(0x230)](){const _0x10d51f=_0x21319f;return this[_0x10d51f(0x21a)][_0x10d51f(0x224)](_0x1047cb=>_0x1047cb[_0x10d51f(0x20f)][_0x10d51f(0x20b)])[_0x10d51f(0x227)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5bf9c4=_0x3e65;(function(_0x40eeef,_0xb5a1d1){const _0x242f12=_0x3e65,_0x715d58=_0x40eeef();while(!![]){try{const _0x3202cb=parseInt(_0x242f12(0x125))/0x1+-parseInt(_0x242f12(0x111))/0x2+parseInt(_0x242f12(0x124))/0x3*(parseInt(_0x242f12(0x114))/0x4)+-parseInt(_0x242f12(0x11c))/0x5*(parseInt(_0x242f12(0x115))/0x6)+parseInt(_0x242f12(0x129))/0x7+-parseInt(_0x242f12(0x12a))/0x8*(-parseInt(_0x242f12(0x128))/0x9)+-parseInt(_0x242f12(0x117))/0xa;if(_0x3202cb===_0xb5a1d1)break;else _0x715d58['push'](_0x715d58['shift']());}catch(_0x4d835d){_0x715d58['push'](_0x715d58['shift']());}}}(_0x2a07,0x44ef7));import{View as _0x1f8594}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5cf42e}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x317df3}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x483a74}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';function _0x2a07(){const _0x47337c=['delegate','bind','88782Nugvdl','458192xyNUSf','updateContent','headerView','9sXhBkx','485688cKUaja','160184jscAhM','add','children','isShowChangesToggleVisible','setTemplate','areChangesVisible','ck-rounded-corners','updateSources','createCollection','403780YFwZnZ','fire','isTrackChangesOn','48esnYcF','948PQzxrN','updateContentParts','2329860RQFYoY','toggleSuggestionDisplayMode','hasNonEmptyParts','bodyView','div','5870YYOiFa','markAsDone','set','toggleShowChanges','isOn','ck-ai-suggestion__container'];_0x2a07=function(){return _0x47337c;};return _0x2a07();}function _0x3e65(_0x4e5c12,_0x54ff9f){const _0x2a07f8=_0x2a07();return _0x3e65=function(_0x3e6581,_0x2534bb){_0x3e6581=_0x3e6581-0x110;let _0x297415=_0x2a07f8[_0x3e6581];return _0x297415;},_0x3e65(_0x4e5c12,_0x54ff9f);}export class AISuggestionContainerView extends _0x1f8594{[_0x5bf9c4(0x11a)];[_0x5bf9c4(0x12c)];[_0x5bf9c4(0x127)];constructor(_0x37747e,_0x565ffa,_0x297cf4){const _0x431be7=_0x5bf9c4;super(_0x37747e);const {showDiff:_0x42bd9a,areActionsDisabled:_0x33e346,showUnchangedParts:_0x176151,availableActions:_0x2bd0f0}=_0x565ffa;this[_0x431be7(0x11e)](_0x431be7(0x113),!0x1),this[_0x431be7(0x11e)](_0x431be7(0x12f),!0x1),this[_0x431be7(0x12c)]=this[_0x431be7(0x110)](),this[_0x431be7(0x127)]=new _0x5cf42e(_0x37747e,{'showDiff':_0x42bd9a}),this[_0x431be7(0x127)]['on'](_0x431be7(0x11f),(_0x517115,_0x315938)=>{const _0x4d01f6=_0x431be7;this[_0x4d01f6(0x12f)]=_0x315938[_0x4d01f6(0x120)],this[_0x4d01f6(0x112)](_0x4d01f6(0x118),{'showDiff':_0x315938[_0x4d01f6(0x120)]});}),this[_0x431be7(0x12c)][_0x431be7(0x12b)](this[_0x431be7(0x127)]),this[_0x431be7(0x11a)]=new _0x317df3(_0x37747e,{'areActionsDisabled':_0x33e346,'showUnchangedParts':!!_0x176151,'availableActions':_0x2bd0f0,'bodyCollection':_0x297cf4}),this[_0x431be7(0x11a)][_0x431be7(0x122)](..._0x483a74)['to'](this),this[_0x431be7(0x11a)][_0x431be7(0x123)](_0x431be7(0x113))['to'](this),this[_0x431be7(0x12c)][_0x431be7(0x12b)](this[_0x431be7(0x11a)]),this[_0x431be7(0x12e)]({'tag':_0x431be7(0x11b),'attributes':{'class':['ck',_0x431be7(0x121),_0x431be7(0x130)]},'children':this[_0x431be7(0x12c)]});}async[_0x5bf9c4(0x126)](_0x27abfd){const _0xc6b674=_0x5bf9c4;await this[_0xc6b674(0x11a)][_0xc6b674(0x116)](_0x27abfd);}[_0x5bf9c4(0x131)](_0x5f425d){const _0x2db109=_0x5bf9c4;this[_0x2db109(0x11a)][_0x2db109(0x131)](_0x5f425d);}[_0x5bf9c4(0x11d)](){const _0x2cc664=_0x5bf9c4;this[_0x2cc664(0x11a)][_0x2cc664(0x11d)](),this[_0x2cc664(0x127)]&&(this[_0x2cc664(0x127)][_0x2cc664(0x12d)]=this[_0x2cc664(0x11a)][_0x2cc664(0x119)]);}}
|