@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.3
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-editor.css +18 -11
- package/dist/index.css +19 -11
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/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.d.ts +1 -0
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4f6c(_0xe65c82,_0x1b9402){const _0x5c82c5=_0x5c82();return _0x4f6c=function(_0x4f6c03,_0x5a76c6){_0x4f6c03=_0x4f6c03-0x181;let _0xef27a4=_0x5c82c5[_0x4f6c03];return _0xef27a4;},_0x4f6c(_0xe65c82,_0x1b9402);}(function(_0x412bfe,_0x186c2b){const _0x17a45f=_0x4f6c,_0xefd6d7=_0x412bfe();while(!![]){try{const _0x34a281=-parseInt(_0x17a45f(0x184))/0x1+-parseInt(_0x17a45f(0x186))/0x2+-parseInt(_0x17a45f(0x185))/0x3+-parseInt(_0x17a45f(0x193))/0x4+parseInt(_0x17a45f(0x18d))/0x5+parseInt(_0x17a45f(0x18c))/0x6+parseInt(_0x17a45f(0x18b))/0x7*(parseInt(_0x17a45f(0x194))/0x8);if(_0x34a281===_0x186c2b)break;else _0xefd6d7['push'](_0xefd6d7['shift']());}catch(_0x4a3e25){_0xefd6d7['push'](_0xefd6d7['shift']());}}}(_0x5c82,0x9ef51));function _0x5c82(){const _0x5647f9=['fire','set','label','bind','663924tbJLTv','5216sjQbGT','isMaximized','AI_TABS_LABEL_MINIMIZE','isOn','372616sdoDFj','1018656IoLsso','518270lauVog','ck-ai-tabs__resize\x20ck-ai-button-tertiary-text','resizeTabs','execute','icon','7469JxALav','964680klZddb','4659545ZgvKdW','AI_TABS_LABEL_MAXIMIZE'];_0x5c82=function(){return _0x5647f9;};return _0x5c82();}import{ButtonView as _0x1a6430}from'ckeditor5/src/ui.js';import{IconMaximize as _0x449957,IconMinimize as _0x344eff}from'ckeditor5/src/icons.js';import{getTranslation as _0x369cc3}from'../../aicore/utils/common-translations.js';export function createResizeButton(_0x4528c8,_0x50da81){const _0x9a3827=_0x4f6c,_0x5f30da=new _0x1a6430(_0x4528c8),_0x1d773d=_0x369cc3(_0x4528c8,_0x9a3827(0x182)),_0x234461=_0x369cc3(_0x4528c8,_0x9a3827(0x18e));return _0x5f30da[_0x9a3827(0x190)]({'withText':!0x1,'icon':_0x449957,'tooltip':!0x0,'class':_0x9a3827(0x187)}),_0x5f30da[_0x9a3827(0x192)](_0x9a3827(0x191))['to'](_0x50da81,_0x9a3827(0x181),_0x56f645=>_0x56f645?_0x1d773d:_0x234461),_0x5f30da[_0x9a3827(0x192)](_0x9a3827(0x18a))['to'](_0x50da81,_0x9a3827(0x181),_0x552fd3=>_0x552fd3?_0x344eff:_0x449957),_0x5f30da[_0x9a3827(0x192)](_0x9a3827(0x183))['to'](_0x50da81,_0x9a3827(0x181)),_0x5f30da['on'](_0x9a3827(0x189),()=>{const _0x4b2c86=_0x9a3827;_0x50da81[_0x4b2c86(0x18f)](_0x4b2c86(0x188));}),_0x5f30da;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x309255=_0x4eb3;(function(_0x500f2a,_0x448c7b){const _0x1e5322=_0x4eb3,_0x41f67e=_0x500f2a();while(!![]){try{const _0x5297c8=-parseInt(_0x1e5322(0x187))/0x1*(parseInt(_0x1e5322(0x17e))/0x2)+parseInt(_0x1e5322(0x188))/0x3+parseInt(_0x1e5322(0x18c))/0x4+-parseInt(_0x1e5322(0x17f))/0x5+parseInt(_0x1e5322(0x184))/0x6*(-parseInt(_0x1e5322(0x18d))/0x7)+parseInt(_0x1e5322(0x194))/0x8+-parseInt(_0x1e5322(0x192))/0x9;if(_0x5297c8===_0x448c7b)break;else _0x41f67e['push'](_0x41f67e['shift']());}catch(_0x10e33d){_0x41f67e['push'](_0x41f67e['shift']());}}}(_0x42e7,0x516f6));function _0x42e7(){const _0x3d6359=['isEqual','slice','1788420wnWDoG','791TATKRW','same','path','document','ai-documentposition-index-out-of-bounds','2019546pRiSeL','end','2498408yPMalC','data','start','indexOf','ai-documentposition-createfrompath-path-cannot-be-empty','createAfter','reduce','parent','createFromPath','getNudgedToWordBoundary','2xpOFco','247225pzXSKu','previousNode','createBefore','nextNode','createAt','8508BCYYTo','length','match','68645KFjMQm','230610WwCFCW','index'];_0x42e7=function(){return _0x3d6359;};return _0x42e7();}import{CKEditorError as _0x34019d,compareArrays as _0x19265b}from'ckeditor5/src/utils.js';import{getNodePath as _0x4102b5,isText as _0x23c84e,getChildren as _0x1cf259,isDocument as _0x52fd9e,getParent as _0x5cc0ee,textContent as _0x2074f1,hasChildren as _0x58876e}from'./htmlparser.js';function _0x4eb3(_0x121d2f,_0x3fec12){const _0x42e784=_0x42e7();return _0x4eb3=function(_0x4eb3c4,_0x493e11){_0x4eb3c4=_0x4eb3c4-0x17c;let _0x1a2008=_0x42e784[_0x4eb3c4];return _0x1a2008;},_0x4eb3(_0x121d2f,_0x3fec12);}export class DocumentPosition{[_0x309255(0x19b)];[_0x309255(0x189)];[_0x309255(0x190)];constructor(_0x1e5be5,_0x430cd2,_0x96e6a6){const _0x502dce=_0x309255;if(_0x23c84e(_0x430cd2)&&_0x96e6a6>_0x430cd2[_0x502dce(0x195)][_0x502dce(0x185)])throw new _0x34019d(_0x502dce(0x191),null,{'index':_0x96e6a6,'parent':_0x430cd2});if(_0x58876e(_0x430cd2)&&_0x96e6a6>_0x1cf259(_0x430cd2)[_0x502dce(0x185)])throw new _0x34019d(_0x502dce(0x191),null,{'index':_0x96e6a6,'parent':_0x430cd2});if(_0x96e6a6<0x0)throw new _0x34019d(_0x502dce(0x191),null,{'index':_0x96e6a6,'parent':_0x430cd2});this[_0x502dce(0x19b)]=_0x430cd2,this[_0x502dce(0x189)]=_0x96e6a6,this[_0x502dce(0x190)]=_0x1e5be5;}get[_0x309255(0x18f)](){const _0x20e451=_0x309255;return[..._0x4102b5(this[_0x20e451(0x19b)]),this[_0x20e451(0x189)]];}[_0x309255(0x18a)](_0xb79b98){const _0x1b2b1b=_0x309255;return this[_0x1b2b1b(0x190)]==_0xb79b98[_0x1b2b1b(0x190)]&&_0x1b2b1b(0x18e)===_0x19265b(this[_0x1b2b1b(0x18f)],_0xb79b98[_0x1b2b1b(0x18f)]);}get[_0x309255(0x182)](){const _0x257e96=_0x309255;if(_0x58876e(this[_0x257e96(0x19b)])){const _0x55f287=_0x1cf259(this[_0x257e96(0x19b)])[this[_0x257e96(0x189)]];if(_0x55f287)return _0x55f287;{const _0x25165d=DocumentPosition[_0x257e96(0x199)](this[_0x257e96(0x190)],this[_0x257e96(0x19b)]);if(_0x25165d)return _0x25165d[_0x257e96(0x182)];}}return null;}get[_0x309255(0x180)](){const _0x3fe3cd=_0x309255;if(_0x58876e(this[_0x3fe3cd(0x19b)])){const _0xbd40b4=_0x1cf259(this[_0x3fe3cd(0x19b)])[this[_0x3fe3cd(0x189)]-0x1];if(_0xbd40b4)return _0xbd40b4;{const _0x3dfcca=DocumentPosition[_0x3fe3cd(0x181)](this[_0x3fe3cd(0x190)],this[_0x3fe3cd(0x19b)]);if(_0x3dfcca)return _0x3dfcca[_0x3fe3cd(0x180)];}}return null;}[_0x309255(0x17d)](_0x5acfa1=_0x309255(0x196)){const _0x48379f=_0x309255;if(!_0x23c84e(this[_0x48379f(0x19b)]))return this;const _0x43eaab=this[_0x48379f(0x18f)][this[_0x48379f(0x18f)][_0x48379f(0x185)]-0x1],_0x8fca3f=_0x2074f1(this[_0x48379f(0x19b)])[_0x48379f(0x186)](/(?:\s*\S+\s*)/g);let _0x5b51ec=0x0,_0x3c2754=_0x43eaab;for(const _0x422c78 of _0x8fca3f){if(_0x5b51ec+_0x422c78[_0x48379f(0x185)]===_0x43eaab)return this;if(_0x5b51ec+_0x422c78[_0x48379f(0x185)]>_0x43eaab){_0x3c2754=_0x48379f(0x196)===_0x5acfa1?_0x5b51ec:_0x5b51ec+_0x422c78[_0x48379f(0x185)];break;}_0x5b51ec+=_0x422c78[_0x48379f(0x185)];}return DocumentPosition[_0x48379f(0x183)](this[_0x48379f(0x190)],this[_0x48379f(0x19b)],_0x3c2754);}static[_0x309255(0x199)](_0x34b32a,_0x3b8ba1){const _0xe3cb4b=_0x309255;if(_0x52fd9e(_0x3b8ba1))return null;const _0x397770=_0x5cc0ee(_0x3b8ba1);return DocumentPosition[_0xe3cb4b(0x183)](_0x34b32a,_0x397770,_0x1cf259(_0x397770)[_0xe3cb4b(0x197)](_0x3b8ba1)+0x1);}static[_0x309255(0x181)](_0x5d68e8,_0x57d0eb){const _0x52c7a0=_0x309255;if(_0x52fd9e(_0x57d0eb))return null;const _0x27c86c=_0x5cc0ee(_0x57d0eb);return DocumentPosition[_0x52c7a0(0x183)](_0x5d68e8,_0x27c86c,_0x1cf259(_0x27c86c)[_0x52c7a0(0x197)](_0x57d0eb));}static[_0x309255(0x183)](_0x41c273,_0x4614f8,_0x11fefa=_0x309255(0x196)){const _0x33ddb8=_0x309255;return new DocumentPosition(_0x41c273,_0x4614f8,_0x33ddb8(0x196)===_0x11fefa?0x0:_0x33ddb8(0x193)===_0x11fefa?_0x23c84e(_0x4614f8)?_0x4614f8[_0x33ddb8(0x195)][_0x33ddb8(0x185)]:_0x1cf259(_0x4614f8)[_0x33ddb8(0x185)]:_0x11fefa);}static[_0x309255(0x17c)](_0x622119,_0x372515){const _0x1c4a6e=_0x309255;if(!_0x372515[_0x1c4a6e(0x185)])throw new _0x34019d(_0x1c4a6e(0x198),null,{'path':_0x372515});const _0x27741d=_0x372515[_0x1c4a6e(0x18b)](0x0,-0x1)[_0x1c4a6e(0x19a)]((_0x572e7d,_0x28dce6)=>_0x23c84e(_0x572e7d)?_0x572e7d:_0x1cf259(_0x572e7d)[_0x28dce6],_0x622119);return DocumentPosition[_0x1c4a6e(0x183)](_0x622119,_0x27741d,_0x372515[_0x372515[_0x1c4a6e(0x185)]-0x1]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28cfdb=_0x434c;function _0x434c(_0x335aef,_0x2c66d7){const _0x38a64b=_0x38a6();return _0x434c=function(_0x434c8d,_0x2448ae){_0x434c8d=_0x434c8d-0x1a8;let _0x49a490=_0x38a64b[_0x434c8d];return _0x49a490;},_0x434c(_0x335aef,_0x2c66d7);}(function(_0x1d47be,_0x5e1bf0){const _0x1296b0=_0x434c,_0x2a9e6b=_0x1d47be();while(!![]){try{const _0x964fa9=-parseInt(_0x1296b0(0x1bb))/0x1+-parseInt(_0x1296b0(0x1bc))/0x2+-parseInt(_0x1296b0(0x1ba))/0x3*(parseInt(_0x1296b0(0x1c4))/0x4)+-parseInt(_0x1296b0(0x1be))/0x5*(-parseInt(_0x1296b0(0x1c5))/0x6)+-parseInt(_0x1296b0(0x1aa))/0x7*(-parseInt(_0x1296b0(0x1b4))/0x8)+parseInt(_0x1296b0(0x1ae))/0x9*(parseInt(_0x1296b0(0x1c9))/0xa)+parseInt(_0x1296b0(0x1a9))/0xb;if(_0x964fa9===_0x5e1bf0)break;else _0x2a9e6b['push'](_0x2a9e6b['shift']());}catch(_0x54dbc1){_0x2a9e6b['push'](_0x2a9e6b['shift']());}}}(_0x38a6,0xd7777));import{DocumentPosition as _0x46c1d5}from'./documentposition.js';import{clone as _0x3f8c49,getParents as _0x95ce11,Document as _0x4d3251,Text as _0x1b6686,isTag as _0x593a69,isText as _0x210547,replaceElement as _0xd3f6f7,removeElement as _0x31d091}from'./htmlparser.js';export class DocumentRange{[_0x28cfdb(0x1b1)];[_0x28cfdb(0x1bd)];constructor(_0x383113,_0xcf99cf){const _0x5a0787=_0x28cfdb;this[_0x5a0787(0x1b1)]=_0x383113,this[_0x5a0787(0x1bd)]=_0xcf99cf;}[_0x28cfdb(0x1b7)](_0x446f9a){const _0x4eb4a4=_0x28cfdb;return this==_0x446f9a||this[_0x4eb4a4(0x1b1)][_0x4eb4a4(0x1b7)](_0x446f9a[_0x4eb4a4(0x1b1)])&&this[_0x4eb4a4(0x1bd)][_0x4eb4a4(0x1b7)](_0x446f9a[_0x4eb4a4(0x1bd)]);}[_0x28cfdb(0x1bf)](){const _0x3e8e67=_0x28cfdb;return new DocumentRange(this[_0x3e8e67(0x1b1)][_0x3e8e67(0x1bf)](_0x3e8e67(0x1b1)),this[_0x3e8e67(0x1bd)][_0x3e8e67(0x1bf)](_0x3e8e67(0x1bd)));}[_0x28cfdb(0x1c0)](){const _0x334847=_0x28cfdb,_0xa93af4=_0x3f8c49(this[_0x334847(0x1b1)][_0x334847(0x1ac)]),_0x2b1f65=_0x46c1d5[_0x334847(0x1af)](_0xa93af4,this[_0x334847(0x1b1)][_0x334847(0x1b8)]),_0x1b5af5=_0x46c1d5[_0x334847(0x1af)](_0xa93af4,this[_0x334847(0x1bd)][_0x334847(0x1b8)]);let _0x3634ee,_0x46f227;if(_0x210547(_0x2b1f65[_0x334847(0x1c2)])){const _0x3f2255=_0x2b1f65[_0x334847(0x1b8)][_0x2b1f65[_0x334847(0x1b8)][_0x334847(0x1a8)]-0x1],_0x4652e7=new _0x1b6686(_0x2b1f65[_0x334847(0x1c2)][_0x334847(0x1b0)][_0x334847(0x1c3)](_0x3f2255));_0xd3f6f7(_0x2b1f65[_0x334847(0x1c2)],_0x4652e7),_0x3634ee=_0x4652e7;}else _0x3634ee=_0x2b1f65[_0x334847(0x1c1)];if(_0x210547(_0x1b5af5[_0x334847(0x1c2)])){const _0x3b76dc=_0x1b5af5[_0x334847(0x1b8)][_0x1b5af5[_0x334847(0x1b8)][_0x334847(0x1a8)]-0x1],_0x18e226=new _0x1b6686(_0x1b5af5[_0x334847(0x1c2)][_0x334847(0x1b0)][_0x334847(0x1c3)](0x0,_0x3b76dc));_0xd3f6f7(_0x1b5af5[_0x334847(0x1c2)],_0x18e226),_0x46f227=_0x18e226;}else _0x46f227=_0x1b5af5[_0x334847(0x1b2)];if(!(_0x3634ee&&_0x46f227&&_0xa93af4[_0x334847(0x1b3)]&&_0xa93af4[_0x334847(0x1ad)]))return new _0x4d3251([]);const _0x241ebb=_0x95ce11(_0x3634ee),_0x2e3b69=_0x95ce11(_0x46f227),_0x238dc6=[],_0x432700=[];let _0x4e08bc=_0xa93af4[_0x334847(0x1b3)];for(;_0x4e08bc&&_0x4e08bc!==_0x3634ee;){let _0x145ae8;_0x241ebb[_0x334847(0x1c7)](_0x4e08bc)||_0x238dc6[_0x334847(0x1c8)](_0x4e08bc),_0x145ae8=_0x593a69(_0x4e08bc)?_0x46c1d5[_0x334847(0x1b5)](_0xa93af4,_0x4e08bc,_0x334847(0x1b1)):_0x46c1d5[_0x334847(0x1c6)](_0xa93af4,_0x4e08bc),_0x4e08bc=_0x145ae8?_0x145ae8[_0x334847(0x1c1)]:null;}for(_0x4e08bc=_0xa93af4[_0x334847(0x1ad)];_0x4e08bc&&_0x4e08bc!==_0x46f227;){let _0x530757;_0x2e3b69[_0x334847(0x1c7)](_0x4e08bc)||_0x432700[_0x334847(0x1c8)](_0x4e08bc),_0x530757=_0x593a69(_0x4e08bc)?_0x46c1d5[_0x334847(0x1b5)](_0xa93af4,_0x4e08bc,_0x334847(0x1bd)):_0x46c1d5[_0x334847(0x1ab)](_0xa93af4,_0x4e08bc),_0x4e08bc=_0x530757?_0x530757[_0x334847(0x1b2)]:null;}return _0x238dc6[_0x334847(0x1b9)](_0x4159c6=>{_0x31d091(_0x4159c6);}),_0x432700[_0x334847(0x1b6)]()[_0x334847(0x1b9)](_0x3cf620=>{_0x31d091(_0x3cf620);}),_0xa93af4;}}function _0x38a6(){const _0x33f07a=['createBefore','document','lastChild','10917KKCVEP','createFromPath','data','start','previousNode','firstChild','24WyxLfr','createAt','reverse','isEqual','path','forEach','2469CgvUTy','1266336aMVJgh','609182KoxMGt','end','1095HnPLVs','getNudgedToWordBoundary','getContent','nextNode','parent','slice','7432IEqdpD','27420ofPMBR','createAfter','includes','push','10060MWdhYN','length','13377672OqFGzH','1272488rdEcQv'];_0x38a6=function(){return _0x33f07a;};return _0x38a6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x25bcb0=_0x3ae1;(function(_0x2a5093,_0xdf412a){const _0x30b73f=_0x3ae1,_0xf46fe4=_0x2a5093();while(!![]){try{const _0x48e40e=-parseInt(_0x30b73f(0x185))/0x1+parseInt(_0x30b73f(0x18a))/0x2+parseInt(_0x30b73f(0x17e))/0x3+-parseInt(_0x30b73f(0x184))/0x4+parseInt(_0x30b73f(0x180))/0x5*(-parseInt(_0x30b73f(0x18e))/0x6)+parseInt(_0x30b73f(0x18c))/0x7+-parseInt(_0x30b73f(0x189))/0x8*(-parseInt(_0x30b73f(0x187))/0x9);if(_0x48e40e===_0xdf412a)break;else _0xf46fe4['push'](_0xf46fe4['shift']());}catch(_0x4a7fc5){_0xf46fe4['push'](_0xf46fe4['shift']());}}}(_0x5f48,0xc9ccd));function _0x3ae1(_0x2c5dc9,_0x3a2553){const _0x5f48df=_0x5f48();return _0x3ae1=function(_0x3ae182,_0x3d4058){_0x3ae182=_0x3ae182-0x17e;let _0x5cae0b=_0x5f48df[_0x3ae182];return _0x5cae0b;},_0x3ae1(_0x2c5dc9,_0x3a2553);}export const AI_SUGGESTION_UI_EVENT_NAMES=[_0x25bcb0(0x181),_0x25bcb0(0x188),_0x25bcb0(0x18b),_0x25bcb0(0x18d),_0x25bcb0(0x183),_0x25bcb0(0x18f),_0x25bcb0(0x17f),_0x25bcb0(0x182),_0x25bcb0(0x186)];function _0x5f48(){const _0x47cd39=['like','mouseOverSuggestion','2128280mRltAM','1069365mfOqir','dislike','4570515LfHqmS','insertSuggestion','16RpMiVE','474078uUiARn','applySuggestion','7546168DtJCzl','rejectSuggestion','19452yjJXye','mouseLeaveSuggestion','1206069xmzsTW','toggleSuggestionDisplayMode','470xGNwXc','showChangeInText'];_0x5f48=function(){return _0x47cd39;};return _0x5f48();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1a79(){var _0x533303=['ai-get-editor-from-context-no-editor','length','get','225023nsEtBS','1649242vNbwAd','editors','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.','8102405TNYpGB','4GQthJG','3436806sZWIFz','4826226XQWQDs','warn','2168853LhpunD','19294760ckqbuM'];_0x1a79=function(){return _0x533303;};return _0x1a79();}(function(_0x53f177,_0x17f8d3){var _0x42d2d6=_0x820a,_0x3d860b=_0x53f177();while(!![]){try{var _0x3d1d0a=parseInt(_0x42d2d6(0x9e))/0x1+parseInt(_0x42d2d6(0x96))/0x2+parseInt(_0x42d2d6(0x99))/0x3*(-parseInt(_0x42d2d6(0xa3))/0x4)+parseInt(_0x42d2d6(0xa2))/0x5+parseInt(_0x42d2d6(0x97))/0x6+-parseInt(_0x42d2d6(0x9f))/0x7+-parseInt(_0x42d2d6(0x9a))/0x8;if(_0x3d1d0a===_0x17f8d3)break;else _0x3d860b['push'](_0x3d860b['shift']());}catch(_0xd83517){_0x3d860b['push'](_0x3d860b['shift']());}}}(_0x1a79,0xf39f4));import{CKEditorError as _0x159ebc}from'ckeditor5/src/utils.js';function _0x820a(_0x5a2e3a,_0x19da0c){var _0x1a7976=_0x1a79();return _0x820a=function(_0x820a41,_0x14b167){_0x820a41=_0x820a41-0x96;var _0x3f0283=_0x1a7976[_0x820a41];return _0x3f0283;},_0x820a(_0x5a2e3a,_0x19da0c);}import{Editor as _0x24f956}from'ckeditor5/src/core.js';export function getEditorFromContext(_0x4b454f){var _0x3f386a=_0x820a;if(_0x4b454f instanceof _0x24f956)return _0x4b454f;if(_0x4b454f?.[_0x3f386a(0xa0)]&&_0x4b454f[_0x3f386a(0xa0)][_0x3f386a(0x9d)](0x0))return _0x4b454f[_0x3f386a(0xa0)][_0x3f386a(0x9c)]>0x1&&console[_0x3f386a(0x98)](_0x3f386a(0xa1)),_0x4b454f[_0x3f386a(0xa0)][_0x3f386a(0x9d)](0x0);throw new _0x159ebc(_0x3f386a(0x9b));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2cc3(_0x28e287,_0x30058a){const _0x4a6e55=_0x4a6e();return _0x2cc3=function(_0x2cc3a5,_0x4e0af5){_0x2cc3a5=_0x2cc3a5-0x74;let _0x12ea41=_0x4a6e55[_0x2cc3a5];return _0x12ea41;},_0x2cc3(_0x28e287,_0x30058a);}(function(_0x11d539,_0x94a029){const _0x1fa682=_0x2cc3,_0xe90678=_0x11d539();while(!![]){try{const _0x541b6a=-parseInt(_0x1fa682(0x8c))/0x1*(parseInt(_0x1fa682(0x81))/0x2)+parseInt(_0x1fa682(0x82))/0x3*(-parseInt(_0x1fa682(0x74))/0x4)+parseInt(_0x1fa682(0x92))/0x5*(-parseInt(_0x1fa682(0x87))/0x6)+parseInt(_0x1fa682(0x79))/0x7+parseInt(_0x1fa682(0x88))/0x8*(parseInt(_0x1fa682(0x83))/0x9)+parseInt(_0x1fa682(0x96))/0xa*(parseInt(_0x1fa682(0x85))/0xb)+-parseInt(_0x1fa682(0x77))/0xc*(-parseInt(_0x1fa682(0x7c))/0xd);if(_0x541b6a===_0x94a029)break;else _0xe90678['push'](_0xe90678['shift']());}catch(_0x58b6b5){_0xe90678['push'](_0xe90678['shift']());}}}(_0x4a6e,0xb4ce9));import{transformOperationSets as _0x4aad18}from'ckeditor5/src/engine.js';import{append as _0xd23ae3,findByAttribute as _0x75918b,prependChild as _0x2ff70a,removeElement as _0x30dbaa,serialize as _0x36ff4b}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x5e4611,interaction:_0x4a599d,reply:_0x4372c9,groups:_0x3ad3f7,transform:_0x18246c,documentCompare:_0x5cbf4e,documentCompareOptions:_0x2600d2}){const _0x204544=_0x2cc3,_0x457332=_0x4a599d[_0x204544(0x8e)]();if(!_0x457332)return[];const _0x357635=_0x457332[_0x204544(0x9a)],_0x86d60e=_0x457332[_0x204544(0x98)],_0x11f95b=_0x4372c9[_0x204544(0x9b)][_0x204544(0x7e)](!0x0);for(const {changes:_0x12447c}of _0x3ad3f7){const _0x489b9a=_0x12447c[_0x204544(0x75)](_0x3e2e29=>_0x204544(0x84)!=_0x3e2e29[_0x204544(0x7b)])[_0x204544(0x93)](_0x42c780=>_0x75918b(_0x204544(0x8a),_0x42c780['id'],_0x11f95b)),_0x5930a1=_0x12447c[_0x204544(0x75)](_0x10868b=>_0x204544(0x7a)!=_0x10868b[_0x204544(0x7b)])[_0x204544(0x93)](_0x1f4784=>_0x1f4784[_0x204544(0x76)][_0x204544(0x7e)](!0x0));let _0x1c6530=null;if(_0x489b9a[_0x204544(0x95)]){_0x1c6530=_0x489b9a[0x0][_0x204544(0x7d)];for(let _0x1f336e=0x0;_0x1f336e<_0x489b9a[_0x204544(0x95)];_0x1f336e++)_0x30dbaa(_0x489b9a[_0x1f336e]);}if(_0x5930a1[_0x204544(0x95)]){_0x1c6530||(_0x12447c[0x0][_0x204544(0x8d)]?_0x1c6530=_0x75918b(_0x204544(0x8a),_0x12447c[0x0][_0x204544(0x8d)],_0x11f95b):(_0x1c6530=_0x5930a1[_0x204544(0x9c)](),_0x2ff70a(_0x11f95b,_0x1c6530)));for(let _0x3f085c=0x0;_0x3f085c<_0x5930a1[_0x204544(0x95)];_0x3f085c++)_0xd23ae3(_0x1c6530,_0x5930a1[_0x3f085c]),_0x1c6530=_0x5930a1[_0x3f085c];}}const _0x3760a7=_0x36ff4b(_0x11f95b),_0x116ca7=_0x5cbf4e[_0x204544(0x97)](_0x357635,_0x3760a7,_0x2600d2)[_0x204544(0x91)]();if(_0x18246c){const _0x1e1b84=_0x5e4611[_0x204544(0x8b)][_0x204544(0x78)][_0x204544(0x90)][_0x204544(0x91)](_0x86d60e),_0x50aadf={'document':_0x5e4611[_0x204544(0x8b)][_0x204544(0x78)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x4aad18(_0x116ca7,_0x1e1b84,_0x50aadf)[_0x204544(0x86)];}return _0x116ca7;}export function fixMarkerOperationOldRange(_0x4d8091,_0x3136cc){const _0x14b487=_0x2cc3;if(_0x14b487(0x80)!=_0x3136cc[_0x14b487(0x7b)])return;const _0x4b8491=_0x4d8091[_0x14b487(0x8b)][_0x14b487(0x94)][_0x14b487(0x99)](_0x3136cc[_0x14b487(0x89)]);_0x4b8491&&(_0x3136cc[_0x14b487(0x7f)]=_0x4b8491[_0x14b487(0x8f)]());}function _0x4a6e(){const _0x5b6491=['document','2679292qnibEy','removed','type','3182569jAePop','previousSibling','cloneNode','oldRange','marker','172708WUrLFY','6MRfjxI','17937VhaMCC','new','521389VbJDyi','operationsA','690VJWAme','216CTuics','name','data-id','model','16aaMGAc','anchorId','getDocumentContext','getRange','history','getOperations','47755cbSTUp','map','markers','length','290EsXVHK','getDiff','version','get','content','documentContextContent','shift','2077308jBkHKq','filter','node','120HOTAcT'];_0x4a6e=function(){return _0x5b6491;};return _0x4a6e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x546166,_0x2bfeff){const _0x272721=_0xddd2,_0x58f306=_0x546166();while(!![]){try{const _0x201673=parseInt(_0x272721(0x1db))/0x1*(parseInt(_0x272721(0x1d9))/0x2)+parseInt(_0x272721(0x223))/0x3*(parseInt(_0x272721(0x213))/0x4)+parseInt(_0x272721(0x21e))/0x5*(parseInt(_0x272721(0x22a))/0x6)+-parseInt(_0x272721(0x1de))/0x7+-parseInt(_0x272721(0x1c7))/0x8+parseInt(_0x272721(0x1dd))/0x9+-parseInt(_0x272721(0x216))/0xa;if(_0x201673===_0x2bfeff)break;else _0x58f306['push'](_0x58f306['shift']());}catch(_0x47c6fc){_0x58f306['push'](_0x58f306['shift']());}}}(_0x1bcf,0x25932));import{findOne as _0x14abf5,getAttribute as _0x56beca,Document as _0x3ec2b5,serialize as _0x364836,parse as _0x3468b8}from'./htmlparser.js';import{fixElementSuggestionRange as _0x223f79}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x33a648,_DetachOperation as _0xcce429,_removeFromModelNodeList as _0x105028,_insertIntoModelNodeList as _0x3329c6}from'ckeditor5/src/engine.js';import{uid as _0x128b00}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x2cb1f7,changeGroups:_0x4056a6,documentContextContent:_0x3b79b5,showDiff:_0x4a1725,trimUnchanged:_0xd1ee44=!0x0}){const _0x1ce186=_0xddd2;return _0x4056a6[_0x1ce186(0x1bb)](_0x2a8fcf=>{const _0x2f4fa4=_0x1ce186,_0x1fa024=new _0x3ec2b5([]),_0x54fdd9=new _0x3ec2b5([]);for(const _0x280979 of _0x2a8fcf[_0x2f4fa4(0x20b)])if(_0x4a1725&&_0x2f4fa4(0x1f3)==_0x280979[_0x2f4fa4(0x1c8)]||_0x54fdd9[_0x2f4fa4(0x208)][_0x2f4fa4(0x1cf)](_0x280979[_0x2f4fa4(0x1cb)][_0x2f4fa4(0x202)](!0x0)),_0x2f4fa4(0x1c1)!=_0x280979[_0x2f4fa4(0x1c8)]&&(_0x4a1725||_0x2f4fa4(0x1f3)!=_0x280979[_0x2f4fa4(0x1c8)])){const _0x5af3e1=_0x14abf5(_0x5bd9ef=>_0x56beca(_0x5bd9ef,_0x2f4fa4(0x1d3))==_0x280979['id'],_0x3b79b5,!0x0);_0x5af3e1&&_0x1fa024[_0x2f4fa4(0x208)][_0x2f4fa4(0x1cf)](_0x5af3e1[_0x2f4fa4(0x202)](!0x0));}const {content:_0x534853,hasChanges:_0x4e2141}=function(_0x1b5ec8,_0x41ab25,_0x194c55,_0x2e853e,_0x33ed25=!0x0){const _0x138e32=_0x2f4fa4,_0x4e8603=_0x1b5ec8[_0x138e32(0x1d8)][_0x138e32(0x1cd)](_0x138e32(0x1cc)),_0x15e517=_0x364836(_0x41ab25),_0x9976e8=_0x364836(_0x194c55),_0x2c1baa=_0x1b5ec8[_0x138e32(0x1df)][_0x138e32(0x1fe)](_0x15e517,_0x138e32(0x220)),_0x98c406=_0x1b5ec8[_0x138e32(0x1e2)][_0x138e32(0x1da)](_0x2c1baa,0x0),_0xce03b7=_0x4e8603[_0x138e32(0x214)](_0x15e517,_0x9976e8,{'anchor':_0x98c406,'markDeletions':_0x2e853e}),_0x259f0b=_0xce03b7[_0x138e32(0x1e1)]();if(0x0==_0x259f0b[_0x138e32(0x200)])return{'content':_0x41ab25[_0x138e32(0x202)](!0x0),'hasChanges':!0x1};_0x2e853e?function(_0x323be2,_0x51a436,_0x5640f0){const _0x57035e=_0x138e32;if(0x0==_0x323be2[_0x57035e(0x200)])return;const _0x119d96=_0x5640f0[_0x57035e(0x1d8)][_0x57035e(0x1cd)](_0x57035e(0x1cc)),_0x324072=_0x5640f0[_0x57035e(0x1d8)][_0x57035e(0x1cd)](_0x57035e(0x20d));_0x5640f0[_0x57035e(0x1e2)][_0x57035e(0x207)](_0x47783f=>{const _0xfbdc6d=_0x57035e,_0x1c197b=new Set();for(let _0x59d0a0=0x0;_0x59d0a0<_0x323be2[_0xfbdc6d(0x200)];_0x59d0a0++){const _0x534c44=_0x323be2[_0x59d0a0];if(_0x534c44[_0xfbdc6d(0x1c6)]=null,_0x534c44[_0xfbdc6d(0x1d7)]=!0x1,_0x119d96[_0xfbdc6d(0x1f6)](_0x534c44)){const _0x4528fe=_0x223f79(_0x534c44[_0xfbdc6d(0x1fc)],_0x5640f0[_0xfbdc6d(0x1e2)]),_0x395ba9=_0xfbdc6d(0x1d1)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x395ba9,_0x4528fe);}else switch(_0x534c44[_0xfbdc6d(0x1c8)]){case _0xfbdc6d(0x1b9):{if(_0x534c44[_0xfbdc6d(0x204)]==_0x534c44[_0xfbdc6d(0x1d6)])break;_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);const _0x50db23=_0xfbdc6d(0x1e4),_0xe30b03=_0x534c44[_0xfbdc6d(0x211)],_0x53a0e0=_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1e5)](_0xe30b03,_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1da)](_0xe30b03[_0xfbdc6d(0x227)],_0xfbdc6d(0x219))),_0x582a75=_0xfbdc6d(0x1e6)+_0x50db23+':'+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x582a75,_0x53a0e0);break;}case _0xfbdc6d(0x203):case _0xfbdc6d(0x1fd):case _0xfbdc6d(0x1d5):{if(_0x534c44[_0xfbdc6d(0x1c2)]==_0x534c44[_0xfbdc6d(0x21a)])break;_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);const _0x2d8caf=_0x534c44[_0xfbdc6d(0x1d2)];if(!_0x324072[_0xfbdc6d(0x1b7)](_0x2d8caf))break;const _0x5b0f7a=_0x223f79(_0x534c44[_0xfbdc6d(0x1d0)],_0x5640f0[_0xfbdc6d(0x1e2)]),_0x250606=_0xfbdc6d(0x1e6)+_0x2d8caf+':'+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x250606,_0x5b0f7a);break;}case _0xfbdc6d(0x1f7):{_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);if(_0x323be2[_0x59d0a0+0x1]&&_0xfbdc6d(0x1ce)==_0x323be2[_0x59d0a0+0x1][_0xfbdc6d(0x1c8)]){ro(_0x51a436,_0x534c44);break;}const _0x5b3e9a=_0x534c44[_0xfbdc6d(0x211)],_0x4be634=_0x534c44[_0xfbdc6d(0x1ee)],_0x79d6e2=_0x223f79(_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1e5)](_0x5b3e9a,_0x5b3e9a[_0xfbdc6d(0x1ba)](_0x4be634)),_0x5640f0[_0xfbdc6d(0x1e2)]),_0x4f2d9d=_0xfbdc6d(0x1c0)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x4f2d9d,_0x79d6e2);break;}case _0xfbdc6d(0x21f):{_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);const _0x44d5e5=_0x534c44[_0xfbdc6d(0x206)],_0x367733=_0x534c44[_0xfbdc6d(0x21b)],_0x5bb54d=_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1e5)](_0x44d5e5,_0x367733),_0xc84839=_0xfbdc6d(0x1c0)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0xc84839,_0x5bb54d);break;}case _0xfbdc6d(0x1ce):{_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44),_0x323be2[_0x59d0a0-0x1]&&_0xfbdc6d(0x1f7)==_0x323be2[_0x59d0a0-0x1][_0xfbdc6d(0x1c8)]&&ro(_0x51a436,_0x534c44);const _0x58c216=_0x534c44[_0xfbdc6d(0x1e9)](),_0x5617bc=_0x534c44[_0xfbdc6d(0x1ee)];for(let _0xcaf049=0x0;_0xcaf049<_0x5617bc;_0xcaf049++){const _0x7bbe70=_0x58c216[_0xfbdc6d(0x1ba)](_0xcaf049)[_0xfbdc6d(0x227)];_0x1c197b[_0xfbdc6d(0x1bd)](_0x7bbe70);}break;}case _0xfbdc6d(0x201):{const _0x1a2eac=_0x534c44[_0xfbdc6d(0x1f8)],_0x3eb281=_0x534c44[_0xfbdc6d(0x1ee)],_0x5a496b=new _0xcce429(_0x1a2eac,_0x3eb281);_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x5a496b),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x5a496b);break;}}}for(const _0x30d23b of _0x1c197b){const _0x3de410=_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x215)](_0x30d23b),_0x2dbc4b=_0xfbdc6d(0x20e)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x2dbc4b,_0x223f79(_0x3de410,_0x5640f0[_0xfbdc6d(0x1e2)]));}});}(_0x259f0b,_0x2c1baa,_0x1b5ec8):_0x1b5ec8[_0x138e32(0x1e2)][_0x138e32(0x207)](_0x4cb707=>{const _0x1a5eeb=_0x138e32;for(const _0x2a06eb of _0x259f0b)if(_0x1a5eeb(0x201)==_0x2a06eb[_0x1a5eeb(0x1c8)]){const _0x3d19a1=_0x2a06eb[_0x1a5eeb(0x1f8)],_0x463b6f=_0x2a06eb[_0x1a5eeb(0x1ee)],_0x102a95=new _0xcce429(_0x3d19a1,_0x463b6f);_0x4cb707[_0x1a5eeb(0x1fb)][_0x1a5eeb(0x1ff)](_0x102a95),_0x1b5ec8[_0x1a5eeb(0x1e2)][_0x1a5eeb(0x222)](_0x102a95);}else{if(_0x1a5eeb(0x1f4)==_0x2a06eb[_0x1a5eeb(0x1c8)]){const _0x5f0dea=_0x2a06eb[_0x1a5eeb(0x1f9)],_0x496e69=_0x2a06eb[_0x1a5eeb(0x1fc)];_0x2c1baa[_0x1a5eeb(0x1f1)][_0x1a5eeb(0x1ca)](_0x5f0dea,_0x496e69);}else _0x2a06eb[_0x1a5eeb(0x1c6)]=null,_0x2a06eb[_0x1a5eeb(0x1d7)]=!0x1,_0x4cb707[_0x1a5eeb(0x1fb)][_0x1a5eeb(0x1ff)](_0x2a06eb),_0x1b5ec8[_0x1a5eeb(0x1e2)][_0x1a5eeb(0x222)](_0x2a06eb);}});if(_0x33ed25){const _0xe0ea75=getMinimalSelection(_0x1b5ec8,_0x259f0b,_0x2c1baa);expandSelectionWithContext(_0x1b5ec8[_0x138e32(0x1e2)],_0xe0ea75),function(_0x9bfbf0,_0x1c71d9){const _0x2a3a23=_0x138e32,_0x506965=_0x1c71d9[_0x2a3a23(0x20f)]()[_0x2a3a23(0x1e8)];let _0x201a01=_0x1c71d9[_0x2a3a23(0x20f)]()[_0x2a3a23(0x219)];const _0x91ba06=_0x506965[_0x2a3a23(0x205)];(_0x201a01[_0x2a3a23(0x1d4)]||_0x201a01[_0x2a3a23(0x227)]&&_0x201a01[_0x2a3a23(0x227)]['is'](_0x2a3a23(0x20c)))&&(_0x3329c6(_0x201a01,_0x2a3a23(0x228)),_0x201a01=_0x201a01[_0x2a3a23(0x1ba)](0x3)),(_0x506965[_0x2a3a23(0x1d4)]||_0x506965[_0x2a3a23(0x1c5)]&&_0x506965[_0x2a3a23(0x1c5)]['is'](_0x2a3a23(0x20c)))&&(_0x3329c6(_0x506965,_0x2a3a23(0x228)),function(_0x3a730d,_0x5e5e7f,_0x1b4854){const _0x14f50e=_0x2a3a23;for(let [_0xb16c8,_0x4a924a]of _0x3a730d[_0x14f50e(0x1f1)]){const _0x5d0de5=_0x4a924a[_0x14f50e(0x1ec)](_0x5e5e7f,_0x1b4854,!0x1);_0x4a924a=_0x5d0de5[0x0],_0x3a730d[_0x14f50e(0x1f1)][_0x14f50e(0x1ca)](_0xb16c8,_0x4a924a);}}(_0x91ba06,_0x506965,0x3),_0x506965[_0x2a3a23(0x1e3)]==_0x201a01[_0x2a3a23(0x1e3)]&&(_0x201a01=_0x201a01[_0x2a3a23(0x1ba)](0x3)));const _0x3eacc0=_0x9bfbf0[_0x2a3a23(0x1e5)](_0x9bfbf0[_0x2a3a23(0x1da)](_0x91ba06,0x0),_0x506965),_0x168e63=_0x9bfbf0[_0x2a3a23(0x1e5)](_0x201a01,_0x9bfbf0[_0x2a3a23(0x1da)](_0x91ba06,_0x2a3a23(0x219))),_0x27f52d=[..._0x3eacc0[_0x2a3a23(0x1f5)](),..._0x168e63[_0x2a3a23(0x1f5)]()];_0x27f52d[_0x2a3a23(0x20a)]();for(const _0x320411 of _0x27f52d)_0x105028(_0x320411),_transformMarkersByDeletion(_0x91ba06,_0x320411);}(_0x1b5ec8[_0x138e32(0x1e2)],_0xe0ea75);}const _0x12cf8d=_0x1b5ec8[_0x138e32(0x1df)][_0x138e32(0x209)](_0x2c1baa,{'showSuggestionHighlights':!0x0});return{'content':_0x3468b8(_0x12cf8d),'hasChanges':!0x0};}(_0x2cb1f7,_0x1fa024,_0x54fdd9,_0x4a1725,_0xd1ee44);return{'type':_0x2a8fcf[_0x2f4fa4(0x20b)][0x0][_0x2f4fa4(0x1c8)],'index':_0x2a8fcf[_0x2f4fa4(0x229)],'content':_0x534853,'hasChanges':_0x4e2141};});}function ro(_0x199867,_0x5c5d36){const _0x42a7e8=_0xddd2;for(const [_0x3ba9f7,_0x536aff]of _0x199867[_0x42a7e8(0x1f1)]){const _0x2ff191=_0x33a648[_0x42a7e8(0x1e0)](_0x536aff[_0x42a7e8(0x1fa)](_0x5c5d36));_0x199867[_0x42a7e8(0x1f1)][_0x42a7e8(0x1ca)](_0x3ba9f7,_0x2ff191);}}function _0xddd2(_0xed9dc1,_0x1e108d){const _0x1bcf4a=_0x1bcf();return _0xddd2=function(_0xddd27,_0x5b0b35){_0xddd27=_0xddd27-0x1b7;let _0x35dcae=_0x1bcf4a[_0xddd27];return _0x35dcae;},_0xddd2(_0xed9dc1,_0x1e108d);}export function getMinimalSelection(_0x29267f,_0x260fcc,_0x389f31){const _0x411991=_0xddd2,_0x4d8683=_0x29267f[_0x411991(0x1d8)][_0x411991(0x1cd)](_0x411991(0x1cc));let _0x142cd0=_0x29267f[_0x411991(0x1e2)][_0x411991(0x1da)](_0x389f31,Number[_0x411991(0x1c4)]),_0x3a4264=_0x29267f[_0x411991(0x1e2)][_0x411991(0x1da)](_0x389f31,0x0);for(const _0x145fa8 of _0x260fcc){let _0x2fae02,_0x4ecfad;if(_0x4d8683[_0x411991(0x1f6)](_0x145fa8))_0x2fae02=_0x145fa8[_0x411991(0x1fc)][_0x411991(0x1e8)],_0x4ecfad=_0x145fa8[_0x411991(0x1fc)][_0x411991(0x219)];else switch(_0x142cd0=_0x142cd0[_0x411991(0x1fa)](_0x145fa8),_0x3a4264=_0x3a4264[_0x411991(0x1fa)](_0x145fa8),_0x145fa8[_0x411991(0x1c8)]){case _0x411991(0x1b9):_0x2fae02=_0x145fa8[_0x411991(0x211)],_0x4ecfad=_0x2fae02[_0x411991(0x1ba)](0x1);break;case _0x411991(0x203):case _0x411991(0x1fd):case _0x411991(0x1d5):_0x2fae02=_0x145fa8[_0x411991(0x1d0)][_0x411991(0x1e8)],_0x4ecfad=_0x145fa8[_0x411991(0x1d0)][_0x411991(0x219)];break;case _0x411991(0x1f7):_0x2fae02=_0x145fa8[_0x411991(0x211)],_0x4ecfad=_0x2fae02[_0x411991(0x1ba)](_0x145fa8[_0x411991(0x1ee)]);break;case _0x411991(0x21f):_0x2fae02=_0x145fa8[_0x411991(0x206)],_0x4ecfad=_0x145fa8[_0x411991(0x21b)];break;case _0x411991(0x218):{const _0x3e8cce=_0x145fa8[_0x411991(0x1e7)][_0x411991(0x210)][_0x411991(0x1ed)](0x0,-0x1);_0x2fae02=_0x29267f[_0x411991(0x1e2)][_0x411991(0x1c3)](_0x389f31,_0x3e8cce),_0x4ecfad=_0x2fae02[_0x411991(0x1ba)](0x1);break;}case _0x411991(0x201):{const _0x1c9f3b=_0x145fa8[_0x411991(0x1ee)],_0x1080fd=_0x145fa8[_0x411991(0x1f8)][_0x411991(0x1ec)](_0x145fa8[_0x411991(0x1e7)],_0x1c9f3b),_0x5a3fea=_0x145fa8[_0x411991(0x1e9)]();_0x411991(0x201)==_0x145fa8[_0x411991(0x1c8)]?(_0x2fae02=_0x1080fd,_0x4ecfad=_0x1080fd):(_0x2fae02=_0x5a3fea,_0x4ecfad=_0x5a3fea[_0x411991(0x1ba)](_0x1c9f3b));break;}}_0x2fae02&&_0x2fae02[_0x411991(0x1ea)](_0x142cd0)&&(_0x142cd0=_0x2fae02[_0x411991(0x1be)](),_0x142cd0[_0x411991(0x21c)]=_0x411991(0x1bf)),_0x4ecfad&&_0x4ecfad[_0x411991(0x1b8)](_0x3a4264)&&(_0x3a4264=_0x4ecfad[_0x411991(0x1be)](),_0x3a4264[_0x411991(0x21c)]=_0x411991(0x1bf));}return _0x29267f[_0x411991(0x1e2)][_0x411991(0x1eb)](_0x29267f[_0x411991(0x1e2)][_0x411991(0x1e5)](_0x142cd0,_0x3a4264));}export function expandSelectionWithContext(_0x4932b3,_0x23e484){const _0x149197=_0xddd2;so(_0x4932b3,_0x23e484,_0x149197(0x226));const _0xdeb46b=_0x23e484[_0x149197(0x20f)]();_0x23e484[_0x149197(0x1bc)]([]),_0x23e484[_0x149197(0x1bc)](_0xdeb46b,{'backward':!0x0}),so(_0x4932b3,_0x23e484,_0x149197(0x1dc));}function _0x1bcf(){const _0x28c16c=['offset','markers','word','removed','marker','getMinimalFlatRanges','isMarkedRemoveOperation','insert','sourcePosition','name','getTransformedByOperation','batch','newRange','removeAttribute','parse','addOperation','length','remove','cloneNode','addAttribute','oldName','root','splitPosition','change','children','stringify','reverse','changes','$text','SuggestionsConversion','suggestion:formatBlock:$fakeWrap:','getFirstRange','path','position',':$aiSuggestion','19860XernCB','getDiff','createRangeOn','1576590TCVxpz','focus','merge','end','newValue','moveTargetPosition','stickiness','isObject','11830LdMGrO','split','$root','schema','applyOperation','18JMptDd','_getTransformedByDeletion','delete','forward','nodeAfter','...','index','144qKzIkG','isBlock','isRegisteredAttribute','isAfter','rename','getShiftedBy','map','setTo','add','clone','toNone','suggestion:insertion:','new','oldValue','createPositionFromPath','POSITIVE_INFINITY','nodeBefore','baseVersion','775160BIfPrr','type','modifySelection','set','node','DocumentCompare','get','move','push','range','suggestion:deletion:','key','data-id','textNode','changeAttribute','newName','isDocumentOperation','plugins','368526kcsjEO','createPositionAt','1cdpvpy','backward','1459440eYLTqM','171759NLYFAn','data','_createFromRanges','getOperations','model','parent','$elementName','createRange','suggestion:attribute:','targetPosition','start','getMovedRangeStart','isBefore','createSelection','_getTransformedByInsertion','slice','howMany','element'];_0x1bcf=function(){return _0x28c16c;};return _0x1bcf();}function so(_0x592256,_0x2ba8a4,_0x1da9d2){const _0x2e0a8a=_0xddd2;let _0x492cf0=0x14;for(;_0x492cf0;){_0x592256[_0x2e0a8a(0x1c9)](_0x2ba8a4,{'unit':_0x2e0a8a(0x1f2),'direction':_0x1da9d2}),_0x492cf0--;const _0x405c29=_0x2ba8a4[_0x2e0a8a(0x217)][_0x2e0a8a(0x226)==_0x1da9d2?_0x2e0a8a(0x1c5):_0x2e0a8a(0x227)];if(_0x405c29&&_0x405c29['is'](_0x2e0a8a(0x1ef))&&_0x592256[_0x2e0a8a(0x221)][_0x2e0a8a(0x22b)](_0x405c29)&&_0x592256[_0x2e0a8a(0x221)][_0x2e0a8a(0x21d)](_0x405c29))break;}}export function _transformMarkersByDeletion(_0x3bf543,_0x1d8ea4){const _0xb2e351=_0xddd2;for(const [_0x39e2db,_0x5e9fb3]of _0x3bf543[_0xb2e351(0x1f1)]){const _0x2a4bcb=_0x5e9fb3[_0xb2e351(0x224)](_0x1d8ea4[_0xb2e351(0x1e8)],_0x1d8ea4[_0xb2e351(0x219)][_0xb2e351(0x1f0)]-_0x1d8ea4[_0xb2e351(0x1e8)][_0xb2e351(0x1f0)]);null!=_0x2a4bcb?_0x3bf543[_0xb2e351(0x1f1)][_0xb2e351(0x1ca)](_0x39e2db,_0x2a4bcb):_0x3bf543[_0xb2e351(0x1f1)][_0xb2e351(0x225)](_0x39e2db);}}
|
|
23
|
+
(function(_0x444456,_0x5473ab){const _0x36bde6=_0x4846,_0xbbfd8a=_0x444456();while(!![]){try{const _0x5e7f18=parseInt(_0x36bde6(0x253))/0x1+parseInt(_0x36bde6(0x216))/0x2+-parseInt(_0x36bde6(0x21b))/0x3+parseInt(_0x36bde6(0x24e))/0x4*(-parseInt(_0x36bde6(0x200))/0x5)+parseInt(_0x36bde6(0x250))/0x6*(parseInt(_0x36bde6(0x23a))/0x7)+-parseInt(_0x36bde6(0x241))/0x8+-parseInt(_0x36bde6(0x229))/0x9;if(_0x5e7f18===_0x5473ab)break;else _0xbbfd8a['push'](_0xbbfd8a['shift']());}catch(_0xcc69d1){_0xbbfd8a['push'](_0xbbfd8a['shift']());}}}(_0x3220,0x8e0ac));import{findOne as _0x22f644,getAttribute as _0x4f8aed,Document as _0x2d1684,serialize as _0x18ea46,parse as _0x3b0d02}from'./htmlparser.js';import{fixElementSuggestionRange as _0x18902b}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x4e9513,_DetachOperation as _0x68c90f,_removeFromModelNodeList as _0x4d71e2,_insertIntoModelNodeList as _0x1dc9d7}from'ckeditor5/src/engine.js';import{uid as _0x243997}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0xa55016,changeGroups:_0x5c1fa7,documentContextContent:_0x4b556f,showDiff:_0x566979,trimUnchanged:_0x38053d=!0x0}){const _0x43f84e=_0x4846;return _0x5c1fa7[_0x43f84e(0x1ff)](_0x3dcf29=>{const _0x3aa190=_0x43f84e,_0x1025fb=new _0x2d1684([]),_0x33090e=new _0x2d1684([]);for(const _0x310951 of _0x3dcf29[_0x3aa190(0x248)])if(_0x566979&&_0x3aa190(0x247)==_0x310951[_0x3aa190(0x251)]||_0x33090e[_0x3aa190(0x239)][_0x3aa190(0x1ed)](_0x310951[_0x3aa190(0x1ee)][_0x3aa190(0x25d)](!0x0)),_0x3aa190(0x24c)!=_0x310951[_0x3aa190(0x251)]&&(_0x566979||_0x3aa190(0x247)!=_0x310951[_0x3aa190(0x251)])){const _0x31c943=_0x22f644(_0x5d979e=>_0x4f8aed(_0x5d979e,_0x3aa190(0x203))==_0x310951['id'],_0x4b556f,!0x0);_0x31c943&&_0x1025fb[_0x3aa190(0x239)][_0x3aa190(0x1ed)](_0x31c943[_0x3aa190(0x25d)](!0x0));}const {content:_0x5bc752,hasChanges:_0x2edc26}=function(_0x1ea9b4,_0x5c81f5,_0x2ed35a,_0x245746,_0x3c588c=!0x0){const _0x32d551=_0x3aa190,_0x29b1ec=_0x1ea9b4[_0x32d551(0x207)][_0x32d551(0x21a)](_0x32d551(0x236)),_0x3aa372=_0x18ea46(_0x5c81f5),_0x38fc18=_0x18ea46(_0x2ed35a),_0x37f868=_0x1ea9b4[_0x32d551(0x1f5)][_0x32d551(0x21e)](_0x3aa372,_0x32d551(0x235)),_0xafdcdb=_0x1ea9b4[_0x32d551(0x259)][_0x32d551(0x244)](_0x37f868,0x0),_0x5b4eae=_0x29b1ec[_0x32d551(0x1fc)](_0x3aa372,_0x38fc18,{'anchor':_0xafdcdb,'markDeletions':_0x245746}),_0x48e4e3=_0x5b4eae[_0x32d551(0x211)]();if(0x0==_0x48e4e3[_0x32d551(0x246)])return{'content':_0x5c81f5[_0x32d551(0x25d)](!0x0),'hasChanges':!0x1};_0x245746?function(_0x259577,_0xc9977,_0x500830){const _0x512960=_0x32d551;if(0x0==_0x259577[_0x512960(0x246)])return;const _0x1e0da0=_0x500830[_0x512960(0x207)][_0x512960(0x21a)](_0x512960(0x236)),_0x54fbc7=_0x500830[_0x512960(0x207)][_0x512960(0x21a)](_0x512960(0x22b));_0x500830[_0x512960(0x259)][_0x512960(0x228)](_0x3615bf=>{const _0x16b913=_0x512960,_0x26b92f=new Set();for(let _0x28f5c6=0x0;_0x28f5c6<_0x259577[_0x16b913(0x246)];_0x28f5c6++){const _0x20f1ae=_0x259577[_0x28f5c6];if(_0x20f1ae[_0x16b913(0x23b)]=null,_0x20f1ae[_0x16b913(0x213)]=!0x1,_0x1e0da0[_0x16b913(0x25e)](_0x20f1ae)){const _0x396962=_0x18902b(_0x20f1ae[_0x16b913(0x1f1)],_0x500830[_0x16b913(0x259)]),_0x4ad4f5=_0x16b913(0x224)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x4ad4f5,_0x396962);}else switch(_0x20f1ae[_0x16b913(0x251)]){case _0x16b913(0x21f):{if(_0x20f1ae[_0x16b913(0x21d)]==_0x20f1ae[_0x16b913(0x252)])break;_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);const _0x51ccc7=_0x16b913(0x230),_0x22d8f8=_0x20f1ae[_0x16b913(0x206)],_0x30af54=_0x500830[_0x16b913(0x259)][_0x16b913(0x22f)](_0x22d8f8,_0x500830[_0x16b913(0x259)][_0x16b913(0x244)](_0x22d8f8[_0x16b913(0x24f)],_0x16b913(0x243))),_0x519aad=_0x16b913(0x1fe)+_0x51ccc7+':'+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x519aad,_0x30af54);break;}case _0x16b913(0x1fb):case _0x16b913(0x25a):case _0x16b913(0x202):{if(_0x20f1ae[_0x16b913(0x204)]==_0x20f1ae[_0x16b913(0x212)])break;_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);const _0x5a0ad9=_0x20f1ae[_0x16b913(0x234)];if(!_0x54fbc7[_0x16b913(0x25b)](_0x5a0ad9))break;const _0x29c472=_0x18902b(_0x20f1ae[_0x16b913(0x257)],_0x500830[_0x16b913(0x259)]),_0x52ee33=_0x16b913(0x1fe)+_0x5a0ad9+':'+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x52ee33,_0x29c472);break;}case _0x16b913(0x231):{_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);if(_0x259577[_0x28f5c6+0x1]&&_0x16b913(0x22a)==_0x259577[_0x28f5c6+0x1][_0x16b913(0x251)]){ro(_0xc9977,_0x20f1ae);break;}const _0x1d5110=_0x20f1ae[_0x16b913(0x206)],_0x4d4b1f=_0x20f1ae[_0x16b913(0x214)],_0x49bbe9=_0x18902b(_0x500830[_0x16b913(0x259)][_0x16b913(0x22f)](_0x1d5110,_0x1d5110[_0x16b913(0x1fa)](_0x4d4b1f)),_0x500830[_0x16b913(0x259)]),_0x3e1307=_0x16b913(0x24d)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x3e1307,_0x49bbe9);break;}case _0x16b913(0x238):{_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);const _0x5f5abf=_0x20f1ae[_0x16b913(0x20a)],_0x500337=_0x20f1ae[_0x16b913(0x237)],_0x265b91=_0x500830[_0x16b913(0x259)][_0x16b913(0x22f)](_0x5f5abf,_0x500337),_0x35976d=_0x16b913(0x24d)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x35976d,_0x265b91);break;}case _0x16b913(0x22a):{_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae),_0x259577[_0x28f5c6-0x1]&&_0x16b913(0x231)==_0x259577[_0x28f5c6-0x1][_0x16b913(0x251)]&&ro(_0xc9977,_0x20f1ae);const _0x4d9883=_0x20f1ae[_0x16b913(0x205)](),_0x13fa8a=_0x20f1ae[_0x16b913(0x214)];for(let _0x3c0267=0x0;_0x3c0267<_0x13fa8a;_0x3c0267++){const _0x151454=_0x4d9883[_0x16b913(0x1fa)](_0x3c0267)[_0x16b913(0x24f)];_0x26b92f[_0x16b913(0x219)](_0x151454);}break;}case _0x16b913(0x256):{const _0xf754e4=_0x20f1ae[_0x16b913(0x25c)],_0x2f782c=_0x20f1ae[_0x16b913(0x214)],_0x3880f4=new _0x68c90f(_0xf754e4,_0x2f782c);_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x3880f4),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x3880f4);break;}}}for(const _0x4e8932 of _0x26b92f){const _0x412404=_0x500830[_0x16b913(0x259)][_0x16b913(0x221)](_0x4e8932),_0x18120b=_0x16b913(0x222)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x18120b,_0x18902b(_0x412404,_0x500830[_0x16b913(0x259)]));}});}(_0x48e4e3,_0x37f868,_0x1ea9b4):_0x1ea9b4[_0x32d551(0x259)][_0x32d551(0x228)](_0x464c70=>{const _0x13b271=_0x32d551;for(const _0x2690ea of _0x48e4e3)if(_0x13b271(0x256)==_0x2690ea[_0x13b271(0x251)]){const _0x24911f=_0x2690ea[_0x13b271(0x25c)],_0x3c9f98=_0x2690ea[_0x13b271(0x214)],_0x581a8f=new _0x68c90f(_0x24911f,_0x3c9f98);_0x464c70[_0x13b271(0x1f3)][_0x13b271(0x23f)](_0x581a8f),_0x1ea9b4[_0x13b271(0x259)][_0x13b271(0x218)](_0x581a8f);}else{if(_0x13b271(0x233)==_0x2690ea[_0x13b271(0x251)]){const _0x4aaf02=_0x2690ea[_0x13b271(0x201)],_0x5b430b=_0x2690ea[_0x13b271(0x1f1)];_0x37f868[_0x13b271(0x225)][_0x13b271(0x1f7)](_0x4aaf02,_0x5b430b);}else _0x2690ea[_0x13b271(0x23b)]=null,_0x2690ea[_0x13b271(0x213)]=!0x1,_0x464c70[_0x13b271(0x1f3)][_0x13b271(0x23f)](_0x2690ea),_0x1ea9b4[_0x13b271(0x259)][_0x13b271(0x218)](_0x2690ea);}});if(_0x3c588c){const _0x411ab5=getMinimalSelection(_0x1ea9b4,_0x48e4e3,_0x37f868);expandSelectionWithContext(_0x1ea9b4[_0x32d551(0x259)],_0x411ab5),function(_0x38e8a5,_0x1f5b51){const _0x1d0ead=_0x32d551,_0x5f929d=_0x1f5b51[_0x1d0ead(0x1ec)]()[_0x1d0ead(0x20f)];let _0xf03e46=_0x1f5b51[_0x1d0ead(0x1ec)]()[_0x1d0ead(0x243)];const _0x1330dc=_0x5f929d[_0x1d0ead(0x24b)];(_0xf03e46[_0x1d0ead(0x23e)]||_0xf03e46[_0x1d0ead(0x24f)]&&_0xf03e46[_0x1d0ead(0x24f)]['is'](_0x1d0ead(0x21c)))&&(_0x1dc9d7(_0xf03e46,_0x1d0ead(0x227)),_0xf03e46=_0xf03e46[_0x1d0ead(0x1fa)](0x3)),(_0x5f929d[_0x1d0ead(0x23e)]||_0x5f929d[_0x1d0ead(0x23d)]&&_0x5f929d[_0x1d0ead(0x23d)]['is'](_0x1d0ead(0x21c)))&&(_0x1dc9d7(_0x5f929d,_0x1d0ead(0x227)),function(_0x24847d,_0x4e743d,_0x35a67c){const _0x4ba5ba=_0x1d0ead;for(let [_0x590301,_0x126bf7]of _0x24847d[_0x4ba5ba(0x225)]){const _0x235a63=_0x126bf7[_0x4ba5ba(0x210)](_0x4e743d,_0x35a67c,!0x1);_0x126bf7=_0x235a63[0x0],_0x24847d[_0x4ba5ba(0x225)][_0x4ba5ba(0x1f7)](_0x590301,_0x126bf7);}}(_0x1330dc,_0x5f929d,0x3),_0x5f929d[_0x1d0ead(0x20b)]==_0xf03e46[_0x1d0ead(0x20b)]&&(_0xf03e46=_0xf03e46[_0x1d0ead(0x1fa)](0x3)));const _0x5bdfab=_0x38e8a5[_0x1d0ead(0x22f)](_0x38e8a5[_0x1d0ead(0x244)](_0x1330dc,0x0),_0x5f929d),_0x2701dd=_0x38e8a5[_0x1d0ead(0x22f)](_0xf03e46,_0x38e8a5[_0x1d0ead(0x244)](_0x1330dc,_0x1d0ead(0x243))),_0x5748dc=[..._0x5bdfab[_0x1d0ead(0x20e)](),..._0x2701dd[_0x1d0ead(0x20e)]()];_0x5748dc[_0x1d0ead(0x22c)]();for(const _0x4b4fe0 of _0x5748dc)_0x4d71e2(_0x4b4fe0),_transformMarkersByDeletion(_0x1330dc,_0x4b4fe0);}(_0x1ea9b4[_0x32d551(0x259)],_0x411ab5);}const _0x1dc7ae=_0x1ea9b4[_0x32d551(0x1f5)][_0x32d551(0x240)](_0x37f868,{'showSuggestionHighlights':!0x0});return{'content':_0x3b0d02(_0x1dc7ae),'hasChanges':!0x0};}(_0xa55016,_0x1025fb,_0x33090e,_0x566979,_0x38053d);return{'type':_0x3dcf29[_0x3aa190(0x248)][0x0][_0x3aa190(0x251)],'index':_0x3dcf29[_0x3aa190(0x1f0)],'content':_0x5bc752,'hasChanges':_0x2edc26};});}function ro(_0x413e16,_0x26d7ce){const _0x29e215=_0x4846;for(const [_0x1364f7,_0xf325f2]of _0x413e16[_0x29e215(0x225)]){const _0x159290=_0x4e9513[_0x29e215(0x1ef)](_0xf325f2[_0x29e215(0x242)](_0x26d7ce));_0x413e16[_0x29e215(0x225)][_0x29e215(0x1f7)](_0x1364f7,_0x159290);}}export function getMinimalSelection(_0x54a821,_0x4c203e,_0x510791){const _0x586799=_0x4846,_0x2ebb45=_0x54a821[_0x586799(0x207)][_0x586799(0x21a)](_0x586799(0x236));let _0x35a576=_0x54a821[_0x586799(0x259)][_0x586799(0x244)](_0x510791,Number[_0x586799(0x220)]),_0x37284f=_0x54a821[_0x586799(0x259)][_0x586799(0x244)](_0x510791,0x0);for(const _0x31da93 of _0x4c203e){let _0x34ca0c,_0x4455fd;if(_0x2ebb45[_0x586799(0x25e)](_0x31da93))_0x34ca0c=_0x31da93[_0x586799(0x1f1)][_0x586799(0x20f)],_0x4455fd=_0x31da93[_0x586799(0x1f1)][_0x586799(0x243)];else switch(_0x35a576=_0x35a576[_0x586799(0x242)](_0x31da93),_0x37284f=_0x37284f[_0x586799(0x242)](_0x31da93),_0x31da93[_0x586799(0x251)]){case _0x586799(0x21f):_0x34ca0c=_0x31da93[_0x586799(0x206)],_0x4455fd=_0x34ca0c[_0x586799(0x1fa)](0x1);break;case _0x586799(0x1fb):case _0x586799(0x25a):case _0x586799(0x202):_0x34ca0c=_0x31da93[_0x586799(0x257)][_0x586799(0x20f)],_0x4455fd=_0x31da93[_0x586799(0x257)][_0x586799(0x243)];break;case _0x586799(0x231):_0x34ca0c=_0x31da93[_0x586799(0x206)],_0x4455fd=_0x34ca0c[_0x586799(0x1fa)](_0x31da93[_0x586799(0x214)]);break;case _0x586799(0x238):_0x34ca0c=_0x31da93[_0x586799(0x20a)],_0x4455fd=_0x31da93[_0x586799(0x237)];break;case _0x586799(0x254):{const _0x4bef89=_0x31da93[_0x586799(0x217)][_0x586799(0x215)][_0x586799(0x1f9)](0x0,-0x1);_0x34ca0c=_0x54a821[_0x586799(0x259)][_0x586799(0x22e)](_0x510791,_0x4bef89),_0x4455fd=_0x34ca0c[_0x586799(0x1fa)](0x1);break;}case _0x586799(0x256):{const _0xfcf378=_0x31da93[_0x586799(0x214)],_0x248960=_0x31da93[_0x586799(0x25c)][_0x586799(0x210)](_0x31da93[_0x586799(0x217)],_0xfcf378),_0x254192=_0x31da93[_0x586799(0x205)]();_0x586799(0x256)==_0x31da93[_0x586799(0x251)]?(_0x34ca0c=_0x248960,_0x4455fd=_0x248960):(_0x34ca0c=_0x254192,_0x4455fd=_0x254192[_0x586799(0x1fa)](_0xfcf378));break;}}_0x34ca0c&&_0x34ca0c[_0x586799(0x208)](_0x35a576)&&(_0x35a576=_0x34ca0c[_0x586799(0x232)](),_0x35a576[_0x586799(0x22d)]=_0x586799(0x1f4)),_0x4455fd&&_0x4455fd[_0x586799(0x20d)](_0x37284f)&&(_0x37284f=_0x4455fd[_0x586799(0x232)](),_0x37284f[_0x586799(0x22d)]=_0x586799(0x1f4));}return _0x54a821[_0x586799(0x259)][_0x586799(0x223)](_0x54a821[_0x586799(0x259)][_0x586799(0x22f)](_0x35a576,_0x37284f));}export function expandSelectionWithContext(_0x1d7910,_0x4d7254){const _0xae11fd=_0x4846;so(_0x1d7910,_0x4d7254,_0xae11fd(0x255));const _0x5de101=_0x4d7254[_0xae11fd(0x1ec)]();_0x4d7254[_0xae11fd(0x226)]([]),_0x4d7254[_0xae11fd(0x226)](_0x5de101,{'backward':!0x0}),so(_0x1d7910,_0x4d7254,_0xae11fd(0x20c));}function _0x4846(_0x30787f,_0x2a8ce3){const _0x322052=_0x3220();return _0x4846=function(_0x48462f,_0x5719cf){_0x48462f=_0x48462f-0x1ec;let _0x14e637=_0x322052[_0x48462f];return _0x14e637;},_0x4846(_0x30787f,_0x2a8ce3);}function _0x3220(){const _0x3d4031=['marker','key','$root','DocumentCompare','moveTargetPosition','split','children','7efqQtk','baseVersion','isObject','nodeBefore','textNode','addOperation','stringify','7895824yQgDUr','getTransformedByOperation','end','createPositionAt','focus','length','removed','changes','element',':$aiSuggestion','root','new','suggestion:insertion:','204mUtEeo','nodeAfter','532758OgbDfi','type','newName','1003854TsRVhk','merge','forward','remove','range','isBlock','model','removeAttribute','isRegisteredAttribute','sourcePosition','cloneNode','isMarkedRemoveOperation','_getTransformedByDeletion','getFirstRange','push','node','_createFromRanges','index','newRange','delete','batch','toNone','data','offset','set','word','slice','getShiftedBy','addAttribute','getDiff','schema','suggestion:attribute:','map','4365zTpCiR','name','changeAttribute','data-id','oldValue','getMovedRangeStart','position','plugins','isBefore','modifySelection','splitPosition','parent','backward','isAfter','getMinimalFlatRanges','start','_getTransformedByInsertion','getOperations','newValue','isDocumentOperation','howMany','path','1140230yrMadv','targetPosition','applyOperation','add','get','55350CImYcF','$text','oldName','parse','rename','POSITIVE_INFINITY','createRangeOn','suggestion:formatBlock:$fakeWrap:','createSelection','suggestion:deletion:','markers','setTo','...','change','279063RJSlWv','move','SuggestionsConversion','reverse','stickiness','createPositionFromPath','createRange','$elementName','insert','clone'];_0x3220=function(){return _0x3d4031;};return _0x3220();}function so(_0x51aadf,_0x5e6cc9,_0x43cce2){const _0x2ca597=_0x4846;let _0x1db5e5=0x14;for(;_0x1db5e5;){_0x51aadf[_0x2ca597(0x209)](_0x5e6cc9,{'unit':_0x2ca597(0x1f8),'direction':_0x43cce2}),_0x1db5e5--;const _0x22b753=_0x5e6cc9[_0x2ca597(0x245)][_0x2ca597(0x255)==_0x43cce2?_0x2ca597(0x23d):_0x2ca597(0x24f)];if(_0x22b753&&_0x22b753['is'](_0x2ca597(0x249))&&_0x51aadf[_0x2ca597(0x1fd)][_0x2ca597(0x258)](_0x22b753)&&_0x51aadf[_0x2ca597(0x1fd)][_0x2ca597(0x23c)](_0x22b753))break;}}export function _transformMarkersByDeletion(_0x52d7cd,_0x43ed18){const _0x5397ed=_0x4846;for(const [_0x276a19,_0x3442b2]of _0x52d7cd[_0x5397ed(0x225)]){const _0x4d5aea=_0x3442b2[_0x5397ed(0x25f)](_0x43ed18[_0x5397ed(0x20f)],_0x43ed18[_0x5397ed(0x243)][_0x5397ed(0x1f6)]-_0x43ed18[_0x5397ed(0x20f)][_0x5397ed(0x1f6)]);null!=_0x4d5aea?_0x52d7cd[_0x5397ed(0x225)][_0x5397ed(0x1f7)](_0x276a19,_0x4d5aea):_0x52d7cd[_0x5397ed(0x225)][_0x5397ed(0x1f2)](_0x276a19);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x50546f,_0x335166){const _0x277e4c=_0x3c97,_0x5548f1=_0x50546f();while(!![]){try{const _0x1c7341=parseInt(_0x277e4c(0xd3))/0x1*(parseInt(_0x277e4c(0xd2))/0x2)+parseInt(_0x277e4c(0xc6))/0x3+parseInt(_0x277e4c(0xce))/0x4+-parseInt(_0x277e4c(0xbf))/0x5*(parseInt(_0x277e4c(0xc4))/0x6)+-parseInt(_0x277e4c(0xcf))/0x7+-parseInt(_0x277e4c(0xc2))/0x8+-parseInt(_0x277e4c(0xc1))/0x9;if(_0x1c7341===_0x335166)break;else _0x5548f1['push'](_0x5548f1['shift']());}catch(_0x23b470){_0x5548f1['push'](_0x5548f1['shift']());}}}(_0x5f29,0x4bad4));import{parseDocument as _0x22cda7}from'htmlparser2';import{append as _0x5c4bb3,appendChild as _0x1e60f9,find as _0x3cde3b,findAll as _0x7b0849,findOne as _0x52ad43,getChildren as _0xc0fd07,isComment as _0x485a37,isTag as _0x13c1de,prepend as _0x3bdf8d,prependChild as _0x36702,removeElement as _0x26de77,replaceElement as _0x51bf5a,textContent as _0x5830e0,getParent as _0xb482b4,hasChildren as _0x103306}from'domutils';function _0x3c97(_0x12c011,_0x34950f){const _0x5f2906=_0x5f29();return _0x3c97=function(_0x3c97c8,_0x32b2bb){_0x3c97c8=_0x3c97c8-0xbf;let _0x1ad8d7=_0x5f2906[_0x3c97c8];return _0x1ad8d7;},_0x3c97(_0x12c011,_0x34950f);}import _0x520afe from'dom-serializer';import{cloneNode as _0x36ad41,isDocument as _0x5c1393,isText as _0x2ca15b,Element as _0x5d2739,Text as _0x295bf,Document as _0x156c93,NodeWithChildren as _0x4153f8}from'domhandler';export{_0x36ad41 as cloneNode,_0x3cde3b as find,_0x52ad43 as findOne,_0x7b0849 as findAll,_0xc0fd07 as getChildren,_0xb482b4 as getParent,_0x485a37 as isComment,_0x5c1393 as isDocument,_0x13c1de as isTag,_0x2ca15b as isText,_0x5c4bb3 as append,_0x1e60f9 as appendChild,_0x3bdf8d as prepend,_0x36702 as prependChild,_0x520afe as render,_0x26de77 as removeElement,_0x51bf5a as replaceElement,_0x5830e0 as textContent,_0x103306 as hasChildren,_0x5d2739 as Element,_0x156c93 as Document,_0x4153f8 as NodeWithChildren,_0x295bf as Text};export function parse(_0x84304c){return _0x22cda7(_0x84304c);}export function serialize(_0x51784d){return _0x520afe(_0x51784d);}export function findByAttribute(_0x358115,_0xab3c7c,_0x2fb351){const _0x97bc7=_0x3c97,_0x3864c7=null!==_0xab3c7c?_0x1313f6=>_0x1313f6[_0x97bc7(0xd1)][_0x358115]===_0xab3c7c:_0x50e05c=>Boolean(_0x50e05c[_0x97bc7(0xd1)][_0x358115]);return _0x52ad43(_0x5b93a3=>_0x13c1de(_0x5b93a3)&&_0x3864c7(_0x5b93a3),_0x2fb351);}function _0x5f29(){const _0x505901=['1745506dgRXrO','beforeend','attribs','1139804NdFANn','1HxxWLQ','forEach','indexOf','beforebegin','5HmqcSl','afterend','814923eKGSsq','2120640PKELSL','reverse','883980CbSJxy','push','327189CfaSaG','parentNode','afterbegin','nextSibling','slice','replace','map','cloneNode','1533288FEjYdp'];_0x5f29=function(){return _0x505901;};return _0x5f29();}export function findAllByAttribute(_0x27c56b,_0x4403f5,_0x5137c8){const _0x294d4c=_0x3c97,_0x309c86=null!==_0x4403f5?_0x578400=>_0x578400[_0x294d4c(0xd1)][_0x27c56b]===_0x4403f5:_0x28c74a=>Boolean(_0x28c74a[_0x294d4c(0xd1)][_0x27c56b]);return _0x7b0849(_0xae592c=>_0x13c1de(_0xae592c)&&_0x309c86(_0xae592c),_0x5137c8);}export function findAllComments(_0xe05bc3){return _0x3cde3b(_0x4a2cfb=>_0x485a37(_0x4a2cfb),_0xe05bc3,!0x0,0x1/0x0);}export function getAttribute(_0x5242f5,_0x243fdd){const _0xd63762=_0x3c97;return _0x5242f5&&_0x13c1de(_0x5242f5)?_0x5242f5[_0xd63762(0xd1)][_0x243fdd]:null;}export function setAttribute(_0x4dfd94,_0x355896,_0x2feee9){const _0x4f6313=_0x3c97;_0x13c1de(_0x4dfd94)&&(null===_0x2feee9?delete _0x4dfd94[_0x4f6313(0xd1)][_0x355896]:_0x4dfd94[_0x4f6313(0xd1)][_0x355896]=_0x2feee9);}export function insertElement(_0xb6dd63,_0x2fde86,_0x2cf6c8){const _0x323b3f=_0x3c97,_0x564593=_0x2fde86[_0x323b3f(0xcd)](!0x0);_0x323b3f(0xd6)===_0x2cf6c8?_0x3bdf8d(_0xb6dd63,_0x564593):_0x323b3f(0xc8)===_0x2cf6c8?_0x36702(_0xb6dd63,_0x564593):_0x323b3f(0xd0)===_0x2cf6c8?_0x1e60f9(_0xb6dd63,_0x564593):_0x323b3f(0xc0)===_0x2cf6c8&&_0x5c4bb3(_0xb6dd63,_0x564593);}export function moveElement(_0x949c6c,_0x45cd4e){_0x26de77(_0x949c6c),_0x51bf5a(_0x45cd4e,_0x949c6c);}export function clone(_0x324a4e){const _0x45c62f=_0x3c97;return _0x324a4e[_0x45c62f(0xcd)](!0x0);}export function getParents(_0x1ae013){const _0x5b97d0=_0x3c97,_0x930cbb=[];let _0x523f71=_0x1ae013;for(;_0x523f71;)_0x523f71=_0xb482b4(_0x523f71),_0x523f71&&_0x930cbb[_0x5b97d0(0xc5)](_0x523f71);return _0x930cbb;}export function normalizeHTML(_0x5dea76){const _0x357aed=_0x3c97;return _0x5dea76[_0x357aed(0xcb)](/^\s+/gm,'')[_0x357aed(0xcb)](/\s+$/gm,'')[_0x357aed(0xcb)](/\n*/g,'')[_0x357aed(0xcb)](/\s+/g,'\x20')[_0x357aed(0xcb)](/>\s*</g,'><');}export function areNodesSame(_0x424936,_0x2f2d42){return normalizeHTML(serialize(_0x424936))===normalizeHTML(serialize(_0x2f2d42));}export function getNodeNestingLevel(_0x275871){const _0x33e9b7=_0x3c97;let _0x24ed34=0x0;for(;_0x275871[_0x33e9b7(0xc7)];)_0x275871=_0x275871[_0x33e9b7(0xc7)],_0x24ed34++;return _0x24ed34;}export function removeElementsAfter(_0x37caa4){const _0x37deb2=_0x3c97,_0x52635c=[];let _0x116441=_0x37caa4[_0x37deb2(0xc9)];for(;_0x116441;)_0x52635c[_0x37deb2(0xc5)](_0x116441),_0x116441=_0x116441[_0x37deb2(0xc9)];_0x52635c[_0x37deb2(0xd4)](_0x14e045=>{_0x26de77(_0x14e045);});}export function getNodePath(_0x634e94){const _0x2bb672=_0x3c97;return[_0x634e94,...getParents(_0x634e94)][_0x2bb672(0xca)](0x0,-0x1)[_0x2bb672(0xcc)](_0x621dfa=>{const _0x20c93f=_0x2bb672,_0xa2b7aa=_0xb482b4(_0x621dfa);return _0xc0fd07(_0xa2b7aa)[_0x20c93f(0xd5)](_0x621dfa);})[_0x2bb672(0xc3)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x54e9f5=_0x46f6;(function(_0x4fff5e,_0x2716c2){const _0x49fedf=_0x46f6,_0x656e10=_0x4fff5e();while(!![]){try{const _0x4d2272=-parseInt(_0x49fedf(0xc3))/0x1+-parseInt(_0x49fedf(0xe0))/0x2+-parseInt(_0x49fedf(0xe2))/0x3+parseInt(_0x49fedf(0xce))/0x4+-parseInt(_0x49fedf(0xba))/0x5*(parseInt(_0x49fedf(0xbf))/0x6)+-parseInt(_0x49fedf(0xda))/0x7+parseInt(_0x49fedf(0xb2))/0x8;if(_0x4d2272===_0x2716c2)break;else _0x656e10['push'](_0x656e10['shift']());}catch(_0x3a01bb){_0x656e10['push'](_0x656e10['shift']());}}}(_0xe10f,0xbd400));function _0xe10f(){const _0x373b0f=['match','5eyAcYh','reverse','cleanUpAnimations','stop','sub','1214826YNMmtR','entries','stream','addEventListener','125134SzzLYs','parent','join','querySelectorAll','includes','strong','span[data-ck-html-streamer-word-chunk]','splitTextNodeIntoWordNodes','code','delay','abort','2671464SYTLUS','timeoutAbortController','attribs','children','mark','ai-html-streamer-current-index-out-of-bounds','textNodeStyle','sup','signal','del','nodesList','document','444416vHBVOv','from','length','now','shouldBeStreamed','onStreamUpdate','588186xOelut','isStreaming','845292uVFvfR','bind','ins','push','div','options','isWordSplitSource','currentIndex','renderNode','map','isWordSplitResult','8594016wfqChW','childNodes','forEach','replaceWith','tagName','span','getParsedDocumentNodeList'];_0xe10f=function(){return _0x373b0f;};return _0xe10f();}import _0x57e6b4 from'morphdom';import{NodeWithChildren as _0x2e8930,Text as _0x4e6afe,Element as _0x1455a2,isText as _0x239767,isDocument as _0x23da6f,isTag as _0x510c71,cloneNode as _0x12ffe9,getChildren as _0x4fc4fe,prepend as _0x7f79a9,removeElement as _0x13c09f,textContent as _0x5aca08,render as _0x4617f1}from'./htmlparser.js';import{logWarning as _0x340da9}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x54e9f5(0xac)];[_0x54e9f5(0xe1)]=!0x1;[_0x54e9f5(0xd9)]=null;[_0x54e9f5(0xd8)]=[];[_0x54e9f5(0xae)]=0x0;[_0x54e9f5(0xcf)]=null;constructor(_0x2d3b20){const _0x4af444=_0x54e9f5;this[_0x4af444(0xac)]={'delay':_0x2d3b20[_0x4af444(0xcc)]??0x14,'textNodeStyle':_0x2d3b20[_0x4af444(0xd4)],'onStreamUpdate':_0x2d3b20[_0x4af444(0xdf)]||(()=>{})};}async[_0x54e9f5(0xc1)]({document:_0x35d076,targetElement:_0xea7db1,abortSignal:_0xd39cda}){const _0x2d06df=_0x54e9f5;this[_0x2d06df(0xe1)]&&this[_0x2d06df(0xbd)](),_0xd39cda?.[_0x2d06df(0xc2)](_0x2d06df(0xcd),this[_0x2d06df(0xbd)][_0x2d06df(0xe3)](this)),this[_0x2d06df(0xd9)]=_0x12ffe9(_0x35d076,!0x0),this[_0x2d06df(0xd8)]=this[_0x2d06df(0xb8)](),this[_0x2d06df(0xe1)]=!0x0,this[_0x2d06df(0xae)]>this[_0x2d06df(0xd8)][_0x2d06df(0xdc)]&&(_0x340da9(_0x2d06df(0xd3),{'currentIndex':this[_0x2d06df(0xae)],'nodeList':this[_0x2d06df(0xd8)]}),this[_0x2d06df(0xae)]=this[_0x2d06df(0xd8)][_0x2d06df(0xdc)]);for(let _0x3dacaf=0x0;_0x3dacaf<this[_0x2d06df(0xae)];_0x3dacaf++)this[_0x2d06df(0xd8)][_0x3dacaf][_0x2d06df(0xde)]=!0x0;let _0x2604c3=0x0;for(let _0xb972d1=this[_0x2d06df(0xae)];_0xb972d1<this[_0x2d06df(0xd8)][_0x2d06df(0xdc)];_0xb972d1++){const _0x25abb3=Date[_0x2d06df(0xdd)](),_0x3bad8c=this[_0x2d06df(0xd8)][_0xb972d1],_0x4728b3=_0x25abb3-_0x2604c3;_0x3bad8c[_0x2d06df(0xde)]=!0x0;let _0x5eeaf1=_0x3bad8c[_0x2d06df(0xc4)];for(;_0x5eeaf1;)_0x5eeaf1[_0x2d06df(0xde)]=!0x0,_0x5eeaf1=_0x5eeaf1[_0x2d06df(0xc4)];if(_0x4728b3<this[_0x2d06df(0xac)][_0x2d06df(0xcc)])try{const {promise:_0x5d2ab6,abortController:_0x14d0ab}=pr(this[_0x2d06df(0xac)][_0x2d06df(0xcc)]-_0x4728b3);this[_0x2d06df(0xcf)]=_0x14d0ab,await _0x5d2ab6;}catch(_0x244f74){return;}_0x57e6b4(_0xea7db1,'<'+_0xea7db1[_0x2d06df(0xb6)]+'>'+this[_0x2d06df(0xaf)](this[_0x2d06df(0xd9)])+'</'+_0xea7db1[_0x2d06df(0xb6)]+'>',{'childrenOnly':!0x0}),this[_0x2d06df(0xac)][_0x2d06df(0xdf)]&&this[_0x2d06df(0xac)][_0x2d06df(0xdf)](),this[_0x2d06df(0xae)]=_0xb972d1,_0x2604c3=Date[_0x2d06df(0xdd)]();}this[_0x2d06df(0xe1)]=!0x1;}[_0x54e9f5(0xbc)]({targetElement:_0x8958d}){const _0x3d701a=_0x54e9f5;Array[_0x3d701a(0xdb)](_0x8958d[_0x3d701a(0xc6)](_0x3d701a(0xc9)))[_0x3d701a(0xbb)]()[_0x3d701a(0xb4)](_0x481269=>{const _0x27e001=_0x3d701a;_0x481269[_0x27e001(0xb5)](_0x481269[_0x27e001(0xb3)][0x0]);});}[_0x54e9f5(0xbd)](){const _0x2a8e73=_0x54e9f5;this[_0x2a8e73(0xe1)]=!0x1,this[_0x2a8e73(0xcf)]&&(this[_0x2a8e73(0xcf)][_0x2a8e73(0xcd)](),this[_0x2a8e73(0xcf)]=null);}[_0x54e9f5(0xaf)](_0x39cc0e){const _0x2fc035=_0x54e9f5;let _0x3306d0='';if(function(_0x56b3cf){return _0x23da6f(_0x56b3cf);}(_0x39cc0e)){for(const _0x2cee89 of _0x39cc0e[_0x2fc035(0xd1)])_0x3306d0+=this[_0x2fc035(0xaf)](_0x2cee89);}else{if(dr(_0x39cc0e)){if(!_0x39cc0e[_0x2fc035(0xde)])return'';const _0x2125b6=_0x39cc0e,_0x1b4d32=Object[_0x2fc035(0xc0)](_0x2125b6[_0x2fc035(0xd0)])[_0x2fc035(0xb0)](([_0x52c938,_0x34fcdb])=>_0x52c938+'=\x22'+_0x34fcdb+'\x22')[_0x2fc035(0xc5)]('\x20');_0x3306d0+='<'+_0x2125b6[_0x2fc035(0xb6)]+(_0x1b4d32?'\x20'+_0x1b4d32:'')+'>';for(const _0x6742a9 of _0x4fc4fe(_0x2125b6))_0x3306d0+=this[_0x2fc035(0xaf)](_0x6742a9);_0x3306d0+='</'+_0x2125b6[_0x2fc035(0xb6)]+'>';}else{if(!ar(_0x39cc0e))return'';if(!_0x39cc0e[_0x2fc035(0xde)])return'';!function(_0x53e5d3){const _0x391af1=_0x2fc035;if(!_0x53e5d3[_0x391af1(0xc4)]||!dr(_0x53e5d3[_0x391af1(0xc4)]))return!0x1;if(!cr[_0x391af1(0xc7)](_0x53e5d3[_0x391af1(0xc4)][_0x391af1(0xb6)]))return!0x1;return!_0x5aca08(_0x53e5d3)[_0x391af1(0xb9)](/^\s*[<>]\s*$/);}(_0x39cc0e)?_0x3306d0+=_0x4617f1(_0x39cc0e):_0x3306d0+=_0x4617f1(new _0x1455a2(_0x2fc035(0xb7),{'data-ck-html-streamer-word-chunk':'','style':this[_0x2fc035(0xac)][_0x2fc035(0xd4)]},[_0x39cc0e]));}}return _0x3306d0;}[_0x54e9f5(0xb8)](){const _0x3b8ac0=_0x54e9f5,_0x105a0a=[];return function(_0x3c304b,_0x2feff1){const _0x4d6948=_0x46f6,_0x3956e2=_0x5e7a6f=>{const _0x4dbece=_0x46f6;if(_0x2feff1(_0x5e7a6f),_0x5e7a6f instanceof _0x2e8930)for(let _0x4ca1ee=0x0;_0x4ca1ee<_0x5e7a6f[_0x4dbece(0xd1)][_0x4dbece(0xdc)];_0x4ca1ee++){const _0x11680f=_0x5e7a6f[_0x4dbece(0xd1)][_0x4ca1ee];_0x3956e2(_0x11680f);}};for(let _0x248a23=0x0;_0x248a23<_0x3c304b[_0x4d6948(0xd1)][_0x4d6948(0xdc)];_0x248a23++)_0x3956e2(_0x3c304b[_0x4d6948(0xd1)][_0x248a23]);}(this[_0x3b8ac0(0xd9)],_0x20263a=>{const _0x36ff91=_0x3b8ac0;if(ar(_0x20263a)){const _0x1830af=this[_0x36ff91(0xca)](_0x20263a);_0x1830af[_0x36ff91(0xdc)]&&_0x105a0a[_0x36ff91(0xe5)](..._0x1830af);}_0x20263a[_0x36ff91(0xad)]||_0x20263a[_0x36ff91(0xb1)]||_0x105a0a[_0x36ff91(0xe5)](_0x20263a);}),_0x105a0a;}[_0x54e9f5(0xca)](_0x74d26c){const _0x420041=_0x54e9f5;if(_0x74d26c[_0x420041(0xad)]||_0x74d26c[_0x420041(0xb1)])return[];const _0x376da0=_0x5aca08(_0x74d26c)[_0x420041(0xb9)](/(?:\s*\S+\s*)/g),_0x5539e4=[];if(_0x376da0&&_0x376da0[_0x420041(0xdc)]>0x1){for(const _0xab9a4f of _0x376da0){const _0x1dd0d7=new _0x4e6afe(_0xab9a4f);_0x1dd0d7[_0x420041(0xb1)]=!0x0,_0x7f79a9(_0x74d26c,_0x1dd0d7),_0x5539e4[_0x420041(0xe5)](_0x1dd0d7);}_0x74d26c[_0x420041(0xad)]=!0x0,_0x13c09f(_0x74d26c);}return _0x5539e4;}}const cr=['p','li','td','th',_0x54e9f5(0xb7),'h1','h2','h3','h4','h5','h6','b',_0x54e9f5(0xc8),'i','em',_0x54e9f5(0xd2),_0x54e9f5(0xd7),_0x54e9f5(0xe4),_0x54e9f5(0xd5),_0x54e9f5(0xbe),'a',_0x54e9f5(0xcb),_0x54e9f5(0xe6)];function ar(_0x1e1a18){return _0x239767(_0x1e1a18);}function _0x46f6(_0x1c1cd8,_0x3d62fe){const _0xe10f23=_0xe10f();return _0x46f6=function(_0x46f6c5,_0x2e53c4){_0x46f6c5=_0x46f6c5-0xac;let _0x5eaafe=_0xe10f23[_0x46f6c5];return _0x5eaafe;},_0x46f6(_0x1c1cd8,_0x3d62fe);}function dr(_0x78776f){return _0x510c71(_0x78776f);}function pr(_0x4bb87b){const _0x4fbbd3=new AbortController();return{'promise':new Promise((_0x5eb49e,_0x4ad57e)=>{const _0x44848c=_0x46f6,_0x59f68f=setTimeout(_0x5eb49e,_0x4bb87b);_0x4fbbd3[_0x44848c(0xd6)][_0x44848c(0xc2)](_0x44848c(0xcd),()=>{clearTimeout(_0x59f68f),_0x4ad57e();});}),'abortController':_0x4fbbd3};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x35f7(_0x10d2bd,_0x222ca){const _0x29cad6=_0x29ca();return _0x35f7=function(_0x35f72d,_0x59d865){_0x35f72d=_0x35f72d-0x15e;let _0x398e51=_0x29cad6[_0x35f72d];return _0x398e51;},_0x35f7(_0x10d2bd,_0x222ca);}const _0x5721bd=_0x35f7;(function(_0x28f49b,_0x59a60e){const _0x3f1987=_0x35f7,_0x2ea9db=_0x28f49b();while(!![]){try{const _0xf3e80a=-parseInt(_0x3f1987(0x161))/0x1+-parseInt(_0x3f1987(0x167))/0x2*(-parseInt(_0x3f1987(0x15e))/0x3)+-parseInt(_0x3f1987(0x180))/0x4+-parseInt(_0x3f1987(0x16d))/0x5+-parseInt(_0x3f1987(0x173))/0x6+-parseInt(_0x3f1987(0x17d))/0x7+parseInt(_0x3f1987(0x185))/0x8;if(_0xf3e80a===_0x59a60e)break;else _0x2ea9db['push'](_0x2ea9db['shift']());}catch(_0x2cce91){_0x2ea9db['push'](_0x2ea9db['shift']());}}}(_0x29ca,0x353fd));const Fs=[_0x5721bd(0x16c),_0x5721bd(0x15f),_0x5721bd(0x174),_0x5721bd(0x163)],Us=[_0x5721bd(0x176),_0x5721bd(0x183),_0x5721bd(0x172),_0x5721bd(0x17a),_0x5721bd(0x17b),_0x5721bd(0x169),'\x20'];function _0x29ca(){const _0x2b7c39=['auto','85105sRpnpd','includes','keydown','deltaY','destroy','stop','168098rhQKhU','scrollHeight','End','_stop','_onUserEvent','wheel','180800ozgvtm','signal','bind','key','start','PageUp','75354veqNHv','pointerdown','addEventListener','ArrowUp','_rafUpdate','element','type','PageDown','Home','abortController','254632WSHLJs','animationFrameId','scrollTo','1179128FocqOx','_isAtBottom','isRunning','ArrowDown','abort','2102768TrlSkX','isUserPaused','15lkoSXD','touchstart'];_0x29ca=function(){return _0x2b7c39;};return _0x29ca();}export class ScrollManager{[_0x5721bd(0x178)];[_0x5721bd(0x17e)];[_0x5721bd(0x182)];[_0x5721bd(0x17c)];[_0x5721bd(0x186)];constructor(_0x86b252){const _0x39969b=_0x5721bd;this[_0x39969b(0x178)]=_0x86b252,this[_0x39969b(0x17e)]=null,this[_0x39969b(0x182)]=!0x1,this[_0x39969b(0x17c)]=new AbortController(),this[_0x39969b(0x186)]=!0x1;for(const _0x290123 of Fs){const _0x3dc054=_0x39969b(0x163)!==_0x290123;this[_0x39969b(0x178)][_0x39969b(0x175)](_0x290123,this[_0x39969b(0x16b)][_0x39969b(0x16f)](this),{'passive':_0x3dc054,'signal':this[_0x39969b(0x17c)][_0x39969b(0x16e)]});}}[_0x5721bd(0x171)](){const _0x394bbe=_0x5721bd;this[_0x394bbe(0x182)]||(this[_0x394bbe(0x182)]=!0x0,this[_0x394bbe(0x186)]=!0x1,this[_0x394bbe(0x17e)]=requestAnimationFrame(this[_0x394bbe(0x177)][_0x394bbe(0x16f)](this)));}[_0x5721bd(0x166)](){requestAnimationFrame(()=>{const _0x406eb2=_0x35f7;this[_0x406eb2(0x16a)]();});}[_0x5721bd(0x165)](){const _0x5e7f13=_0x5721bd;this[_0x5e7f13(0x16a)](),this[_0x5e7f13(0x17c)][_0x5e7f13(0x184)]();}[_0x5721bd(0x16a)](){const _0x33b59c=_0x5721bd;null!==this[_0x33b59c(0x17e)]&&(cancelAnimationFrame(this[_0x33b59c(0x17e)]),this[_0x33b59c(0x17e)]=null),this[_0x33b59c(0x182)]&&(this[_0x33b59c(0x182)]=!0x1),this[_0x33b59c(0x186)]=!0x1;}[_0x5721bd(0x16b)](_0x52aedc){const _0x291525=_0x5721bd;if(this[_0x291525(0x182)]){if(_0x291525(0x163)===_0x52aedc[_0x291525(0x179)]){const _0x1ad674=_0x52aedc[_0x291525(0x170)];if(!Us[_0x291525(0x162)](_0x1ad674))return;}_0x52aedc instanceof WheelEvent?_0x52aedc[_0x291525(0x164)]<0x0?this[_0x291525(0x186)]=!0x0:this[_0x291525(0x186)]=!this[_0x291525(0x181)]():this[_0x291525(0x186)]=!0x0;}}[_0x5721bd(0x181)](){const _0x57518d=_0x5721bd,{scrollTop:_0x260266,scrollHeight:_0x2d9028,clientHeight:_0x409fe7}=this[_0x57518d(0x178)];return _0x2d9028-_0x260266-_0x409fe7<=0x5;}[_0x5721bd(0x177)](){const _0xd7456=_0x5721bd;this[_0xd7456(0x182)]&&(this[_0xd7456(0x186)]||this[_0xd7456(0x178)][_0xd7456(0x17f)]({'top':this[_0xd7456(0x178)][_0xd7456(0x168)],'behavior':_0xd7456(0x160)}),this[_0xd7456(0x17e)]=requestAnimationFrame(this[_0xd7456(0x177)][_0xd7456(0x16f)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x359380=_0x2e9e;(function(_0x52dee4,_0x5df7d1){var _0x350a21=_0x2e9e,_0x49c207=_0x52dee4();while(!![]){try{var _0x297226=parseInt(_0x350a21(0x1d2))/0x1+parseInt(_0x350a21(0x1d0))/0x2+parseInt(_0x350a21(0x1d7))/0x3+parseInt(_0x350a21(0x1d6))/0x4*(parseInt(_0x350a21(0x1d4))/0x5)+-parseInt(_0x350a21(0x1d3))/0x6*(parseInt(_0x350a21(0x1d1))/0x7)+parseInt(_0x350a21(0x1cd))/0x8+-parseInt(_0x350a21(0x1cf))/0x9;if(_0x297226===_0x5df7d1)break;else _0x49c207['push'](_0x49c207['shift']());}catch(_0x63e9dd){_0x49c207['push'](_0x49c207['shift']());}}}(_0x3fbe,0xd7a3a));function _0x2e9e(_0x4f4ed8,_0x371839){var _0x3fbe93=_0x3fbe();return _0x2e9e=function(_0x2e9eec,_0x303459){_0x2e9eec=_0x2e9eec-0x1cc;var _0x250059=_0x3fbe93[_0x2e9eec];return _0x250059;},_0x2e9e(_0x4f4ed8,_0x371839);}import{Plugin as _0x37c1ec}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x13006b}from'./aitogglebutton/aitogglebuttonui.js';import{SuggestionsConversion as _0x83cabc}from'@ckeditor/ckeditor5-collaboration-core';function _0x3fbe(){var _0x4e5ac1=['AIEditorIntegration','pluginName','requires','2388416GONGkK','isOfficialPlugin','10688148RsGkYl','1049298sGiKTY','21yadYDK','1550667NEdKEi','3035814bVkAhr','715TJddgl','isPremiumPlugin','14964pFcISx','2039718dnRVCR'];_0x3fbe=function(){return _0x4e5ac1;};return _0x3fbe();}export class AIEditorIntegration extends _0x37c1ec{static get[_0x359380(0x1cc)](){return[_0x13006b,_0x83cabc];}static get[_0x359380(0x1d9)](){var _0x1b2344=_0x359380;return _0x1b2344(0x1d8);}static get[_0x359380(0x1ce)](){return!0x0;}static get[_0x359380(0x1d5)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbe8130=_0x38ef;(function(_0x33f9f5,_0x43a012){const _0x3c417b=_0x38ef,_0x2a9e3f=_0x33f9f5();while(!![]){try{const _0x1c93dc=-parseInt(_0x3c417b(0x1a2))/0x1+-parseInt(_0x3c417b(0x1b0))/0x2+-parseInt(_0x3c417b(0x1b7))/0x3+-parseInt(_0x3c417b(0x1a6))/0x4+parseInt(_0x3c417b(0x1af))/0x5*(parseInt(_0x3c417b(0x19d))/0x6)+-parseInt(_0x3c417b(0x19f))/0x7*(-parseInt(_0x3c417b(0x1bc))/0x8)+parseInt(_0x3c417b(0x1b4))/0x9*(parseInt(_0x3c417b(0x1a9))/0xa);if(_0x1c93dc===_0x43a012)break;else _0x2a9e3f['push'](_0x2a9e3f['shift']());}catch(_0x32fbdf){_0x2a9e3f['push'](_0x2a9e3f['shift']());}}}(_0x54a7,0xac357));import{Plugin as _0x33799d}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x245f6a}from'./toggleaicommand.js';import{ButtonView as _0x226b90,MenuBarMenuListItemButtonView as _0x5e1a57}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x4ed32a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x18734b}from'../../aicore/utils/common-translations.js';import{AITabs as _0x81e1b5}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';function _0x54a7(){const _0x2343cc=['1112569yXgePl','isEnabled','isOfficialPlugin','init','5584424ohZBdx','ck-ai-toggle-button','editor','16857490vJezkR','commands','toggleAi','listenTo','_createAIUIButton','isOn','22305nYxLiL','33774SozNas','pluginName','set','componentFactory','18IzWBSC','menuitemcheckbox','value','3425685FuOTqM','execute','requires','isPremiumPlugin','bind','8fcaWYF','menuBar:toggleAi','add','get','828ooENsu','AI_TOGGLE_BUTTON_LABEL','2699956AkAdER','locale','AIToggleButtonUI'];_0x54a7=function(){return _0x2343cc;};return _0x54a7();}function _0x38ef(_0x1f8522,_0x1ca2d4){const _0x54a78b=_0x54a7();return _0x38ef=function(_0x38ef86,_0x325558){_0x38ef86=_0x38ef86-0x19c;let _0x5f1742=_0x54a78b[_0x38ef86];return _0x5f1742;},_0x38ef(_0x1f8522,_0x1ca2d4);}export class AIToggleButtonUI extends _0x33799d{static get[_0xbe8130(0x1b9)](){return[_0x81e1b5];}static get[_0xbe8130(0x1b1)](){const _0x5dfa25=_0xbe8130;return _0x5dfa25(0x1a1);}static get[_0xbe8130(0x1a4)](){return!0x0;}static get[_0xbe8130(0x1ba)](){return!0x0;}[_0xbe8130(0x1a5)](){const _0x18e45c=_0xbe8130,_0x118d62=this[_0x18e45c(0x1a8)];_0x118d62[_0x18e45c(0x1aa)][_0x18e45c(0x1be)](_0x18e45c(0x1ab),new _0x245f6a(_0x118d62)),_0x118d62['ui'][_0x18e45c(0x1b3)][_0x18e45c(0x1be)](_0x18e45c(0x1ab),()=>{const _0x4b1a37=_0x18e45c,_0x462289=this[_0x4b1a37(0x1ad)](_0x226b90);return _0x462289[_0x4b1a37(0x1b2)]({'tooltip':!0x0,'class':_0x4b1a37(0x1a7)}),_0x462289;}),_0x118d62['ui'][_0x18e45c(0x1b3)][_0x18e45c(0x1be)](_0x18e45c(0x1bd),()=>{const _0x36c9fc=_0x18e45c,_0x2ae7a2=this[_0x36c9fc(0x1ad)](_0x5e1a57);return _0x2ae7a2[_0x36c9fc(0x1b2)]({'role':_0x36c9fc(0x1b5)}),_0x2ae7a2;});}[_0xbe8130(0x1ad)](_0x5a6104){const _0x67269c=_0xbe8130,_0x1a63d5=this[_0x67269c(0x1a8)],_0x4b4a76=_0x1a63d5[_0x67269c(0x1aa)][_0x67269c(0x19c)](_0x67269c(0x1ab)),_0xa954e8=new _0x5a6104(_0x1a63d5[_0x67269c(0x1a0)]);return _0xa954e8[_0x67269c(0x1b2)]({'label':_0x18734b(_0x1a63d5[_0x67269c(0x1a0)],_0x67269c(0x19e)),'icon':_0x4ed32a,'isToggleable':!0x0}),_0xa954e8[_0x67269c(0x1bb)](_0x67269c(0x1a3))['to'](_0x4b4a76),_0xa954e8[_0x67269c(0x1bb)](_0x67269c(0x1ae))['to'](_0x4b4a76,_0x67269c(0x1b6),_0x37cf12=>!!_0x37cf12),this[_0x67269c(0x1ac)](_0xa954e8,_0x67269c(0x1b8),()=>{const _0x224b1f=_0x67269c;_0x4b4a76[_0x224b1f(0x1b8)]();}),_0xa954e8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a20f6=_0x2d24;function _0x50dc(){const _0xb789b8=['isEnabled','165277AdTOxr','2084060oguuAc','2777680ziCCJt','plugins','view','312JWsKTr','12909bfCiTf','isVisible','execute','10296682wbTjio','534KOelMW','get','AITabs','value','153jOHPLE','editor','6WDvECG','266930yCOzJN','1439148hspAST','bind'];_0x50dc=function(){return _0xb789b8;};return _0x50dc();}(function(_0x9307d9,_0x43c260){const _0x154f5d=_0x2d24,_0x335c6a=_0x9307d9();while(!![]){try{const _0xb30dba=-parseInt(_0x154f5d(0x1c1))/0x1+parseInt(_0x154f5d(0x1ce))/0x2*(-parseInt(_0x154f5d(0x1ca))/0x3)+parseInt(_0x154f5d(0x1c5))/0x4+parseInt(_0x154f5d(0x1c6))/0x5*(parseInt(_0x154f5d(0x1bf))/0x6)+parseInt(_0x154f5d(0x1c4))/0x7*(parseInt(_0x154f5d(0x1c9))/0x8)+-parseInt(_0x154f5d(0x1d2))/0x9*(-parseInt(_0x154f5d(0x1c0))/0xa)+parseInt(_0x154f5d(0x1cd))/0xb;if(_0xb30dba===_0x43c260)break;else _0x335c6a['push'](_0x335c6a['shift']());}catch(_0x2409a0){_0x335c6a['push'](_0x335c6a['shift']());}}}(_0x50dc,0xc31c6));function _0x2d24(_0x21bbd9,_0x229eb6){const _0x50dc1f=_0x50dc();return _0x2d24=function(_0x2d243d,_0x50f81b){_0x2d243d=_0x2d243d-0x1bf;let _0x3a9306=_0x50dc1f[_0x2d243d];return _0x3a9306;},_0x2d24(_0x21bbd9,_0x229eb6);}import{Command as _0xe5d29}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0xe5d29{constructor(_0x17f932){const _0x20dc3a=_0x2d24;super(_0x17f932);const _0x17d0eb=_0x17f932[_0x20dc3a(0x1c7)][_0x20dc3a(0x1cf)](_0x20dc3a(0x1d0))[_0x20dc3a(0x1c8)];this[_0x20dc3a(0x1c2)](_0x20dc3a(0x1d1))['to'](_0x17d0eb,_0x20dc3a(0x1cb)),this[_0x20dc3a(0x1c3)]=!0x0;}[_0x2a20f6(0x1cc)](){const _0x3d6b7c=_0x2a20f6,_0x444d8d=this[_0x3d6b7c(0x1d3)][_0x3d6b7c(0x1c7)][_0x3d6b7c(0x1cf)](_0x3d6b7c(0x1d0))[_0x3d6b7c(0x1c8)];_0x444d8d[_0x3d6b7c(0x1cb)]=!_0x444d8d[_0x3d6b7c(0x1cb)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x198b(){var _0x527dd7=['167063NqIcuw','324909toBsOI','8QKjVyU','2082190RabuMP','96665KViTJY','isOfficialPlugin','config','isPremiumPlugin','20VHREjT','90762bSgMXD','269118dEfbkc','AIQuickActions','8166cDocTV','60pesKZD','define','ai.quickActions','pluginName','22gJCVTL','requires'];_0x198b=function(){return _0x527dd7;};return _0x198b();}var _0x4ddaf3=_0x1c44;(function(_0x5ec2fb,_0x9da38c){var _0x578e2c=_0x1c44,_0x5b212c=_0x5ec2fb();while(!![]){try{var _0xe0bb5b=parseInt(_0x578e2c(0x1bb))/0x1+parseInt(_0x578e2c(0x1b2))/0x2+parseInt(_0x578e2c(0x1b4))/0x3*(-parseInt(_0x578e2c(0x1b0))/0x4)+-parseInt(_0x578e2c(0x1bf))/0x5*(-parseInt(_0x578e2c(0x1b5))/0x6)+-parseInt(_0x578e2c(0x1b1))/0x7*(-parseInt(_0x578e2c(0x1bd))/0x8)+parseInt(_0x578e2c(0x1bc))/0x9+-parseInt(_0x578e2c(0x1be))/0xa*(parseInt(_0x578e2c(0x1b9))/0xb);if(_0xe0bb5b===_0x9da38c)break;else _0x5b212c['push'](_0x5b212c['shift']());}catch(_0x1c5898){_0x5b212c['push'](_0x5b212c['shift']());}}}(_0x198b,0x1bd33));import{Plugin as _0x1bff86}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x544630}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0x1180fb}from'./aiquickactionsediting.js';import{AIActions as _0x59555a}from'../aiactions/aiactions.js';function _0x1c44(_0x52da3f,_0xa39b6a){var _0x198bfe=_0x198b();return _0x1c44=function(_0x1c44ca,_0x377f4d){_0x1c44ca=_0x1c44ca-0x1b0;var _0x3094db=_0x198bfe[_0x1c44ca];return _0x3094db;},_0x1c44(_0x52da3f,_0xa39b6a);}export class AIQuickActions extends _0x1bff86{static get[_0x4ddaf3(0x1ba)](){return[_0x544630,_0x1180fb,_0x59555a];}static get[_0x4ddaf3(0x1b8)](){var _0x4a8dff=_0x4ddaf3;return _0x4a8dff(0x1b3);}static get[_0x4ddaf3(0x1c0)](){return!0x0;}static get[_0x4ddaf3(0x1c2)](){return!0x0;}constructor(_0x574c41){var _0x1b7064=_0x4ddaf3;super(_0x574c41),_0x574c41[_0x1b7064(0x1c1)][_0x1b7064(0x1b6)](_0x1b7064(0x1b7),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}
|