@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +4 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +2 -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.d.ts +2 -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/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.d.ts +3 -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.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -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.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +4 -0
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f8f35=_0x5692;(function(_0x5bce9d,_0x3dac87){const _0x27ba95=_0x5692,_0x5c7e96=_0x5bce9d();while(!![]){try{const _0x1b369b=parseInt(_0x27ba95(0x10e))/0x1+-parseInt(_0x27ba95(0xbb))/0x2*(-parseInt(_0x27ba95(0x10c))/0x3)+-parseInt(_0x27ba95(0xbe))/0x4*(-parseInt(_0x27ba95(0xe1))/0x5)+-parseInt(_0x27ba95(0xfe))/0x6+parseInt(_0x27ba95(0x12d))/0x7+parseInt(_0x27ba95(0xe2))/0x8+-parseInt(_0x27ba95(0xb8))/0x9*(parseInt(_0x27ba95(0x11c))/0xa);if(_0x1b369b===_0x3dac87)break;else _0x5c7e96['push'](_0x5c7e96['shift']());}catch(_0x477aa7){_0x5c7e96['push'](_0x5c7e96['shift']());}}}(_0x8d79,0x45a6c));import{ContextPlugin as _0x29da1c}from'ckeditor5/src/core.js';import{CKEditorError as _0xfb4bf1,logError as _0x95418e,scrollAncestorsToShowTarget as _0x26e1c5,scrollViewportToShowTarget as _0x527fba}from'ckeditor5/src/utils.js';function _0x8d79(){const _0x47ba7c=['isPremiumPlugin','addClass','upsertCustomAIReviewRating','_logError','panel','isCustom','init','showReviewCheckList','translate','label','replaceAll','deactivateChange','changeId','plugins','content','callId','ck-ai-review-mode-highlights','title','message','applyChange','reviewCheckResultActivated','rejectChange','result','getChangeElement','showChunkErrorView','options','addResultChanges','toUpperCase','_DESCRIPTION','length','_onReviewModeRunLeave','_currentReviewCheckRun','AIConnector','map','getRoot','AIReviewModeEditing','document','_aiReviewCheckList','domElement','AIReviewModeController','setAvailableChecks','_TITLE','aireviewmode-no-current-check-run','ready','getCheckById','rejected','error-general','ck-ai-review-mode-diff','restart','acceptAllChanges','684OKwmsc','switchToEdit','getActiveChanges','4DKhIYO','reviewCheckResultAdded','reviewCheckResultRejected','4arTwUU','view','totalCount','getAcceptedChangesCount','split','pluginName','contentNew','switchToReadOnly','markAllChangesAsAccepted','contentInitial','AI_REVIEW_CHECK_','context','ai-request-aborted','prompt','requires','_aiReviewModeEditing','_OPTIONS_LABEL','custom','hideChangeBalloon','changeMarkerClick','.ck-ai-review-mode__check-run-result','updateChangeState','diffContent','AI_MODEL_DESCRIPTION_','_aiConnector','isChangeActive','dismissChange','find','description','showActionsWhenResultIsReady','showCheckRunResult','processedResultsCount','accepted','changes','ai.reviewMode.translations','2199095hlsXCe','2306960ouZqMW','model','models','setCheckResultTitle','_translateReviewChecks','editing','isOfficialPlugin','setActiveStateInResults','_OPTIONS_DATA_','_changeActivationSource','loading','activateChange','status','AIReviewModeUI','_aiReviewModeUi','leaveReviewModeResultList','reviewCheckResultDeactivated','aireviewmode-check-run-failed','removeClass','markChangePositionInEditorContent','reviewCheckResultAccepted','clearAllMarkers','showCheckRunResults','reviewCheckRunUpdated','_isDiffOn','error-chunk','getEditor','_updateRatings','1690512qDgIcO','getAll','change','abortReviewStream','locale','aborted','reviewCheckResultReady','closest','getDocumentData','forceReadyState','start','params','args','includes','40743MuasKo','aireviewmode-source-check-not-found','499647lGNXcx','reviewName','finished','showReviewCompletedView','_onDiffChange','resetActiveStateInResults','source','listenTo','stopListening','_getTranslationWithDefault','checks','markChangeAsAccepted','emitter','runReviewCheck','114330oasUFR','getReviewCheckList','finishReview','retryReview','getMarkerElementForChange','data','toggleDiff','leaveReviewMode','upsertAIReviewRating','abort','showNoChangesView','acceptChange','config','markChangeAsRejected','showGeneralErrorView','get','unmodified','1266678HtyZnL','documentData','getTotalChangesCount','showChangeBalloon'];_0x8d79=function(){return _0x47ba7c;};return _0x8d79();}import{AIConnector as _0x5355f3}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x516c49}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x4807e6}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x316a10}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x3f2538}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x233201}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x3bf48d}from'../aicore/utils/common-translations.js';function _0x5692(_0xad4c08,_0x1d0bf8){const _0x8d798a=_0x8d79();return _0x5692=function(_0x56922d,_0xc39cbe){_0x56922d=_0x56922d-0x89;let _0x14b0dd=_0x8d798a[_0x56922d];return _0x14b0dd;},_0x5692(_0xad4c08,_0x1d0bf8);}export class AIReviewModeController extends _0x29da1c{[_0x4f8f35(0xd6)];[_0x4f8f35(0xf0)];[_0x4f8f35(0xcd)];[_0x4f8f35(0xab)];[_0x4f8f35(0xa5)];[_0x4f8f35(0xfa)]=!0x1;[_0x4f8f35(0xeb)]=null;static get[_0x4f8f35(0xcc)](){return[_0x5355f3];}static get[_0x4f8f35(0xc3)](){const _0x1c1a46=_0x4f8f35;return _0x1c1a46(0xad);}static get[_0x4f8f35(0xe8)](){return!0x0;}static get[_0x4f8f35(0x131)](){return!0x0;}async[_0x4f8f35(0x8c)](){const _0x3e1b8a=_0x4f8f35;this[_0x3e1b8a(0xd6)]=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x93)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xa6)),this[_0x3e1b8a(0xf0)]=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x93)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xef)),this[_0x3e1b8a(0xcd)]=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x93)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xa9));const _0x58347f=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x128)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xe0));if(_0x58347f){for(const _0x1ba940 of _0x233201)_0x3e1b8a(0x8e)===_0x1ba940['id']&&(_0x1ba940[_0x3e1b8a(0x9f)][0x0][_0x3e1b8a(0x121)]=_0x58347f);}const _0x48ed57=this[_0x3e1b8a(0xe6)](_0x233201);this[_0x3e1b8a(0xab)]=new _0x516c49(_0x48ed57);const _0x15c5ba=this[_0x3e1b8a(0xab)][_0x3e1b8a(0x118)][_0x3e1b8a(0xd9)](_0xc35627=>_0x3e1b8a(0xcf)===_0xc35627['id']);if(_0x15c5ba){const _0x1288a4=await new _0x3f2538({'connector':this[_0x3e1b8a(0xd6)]})[_0x3e1b8a(0xff)]();_0x15c5ba[_0x3e1b8a(0xe4)]=_0x1288a4[_0x3e1b8a(0xa7)](_0x32256a=>({..._0x32256a,'description':this[_0x3e1b8a(0x117)](_0x3e1b8a(0xd5)+_0x32256a['id'][_0x3e1b8a(0xa1)](),_0x32256a[_0x3e1b8a(0xda)])}));}this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11d),()=>{const _0x106b07=_0x3e1b8a;this[_0x106b07(0xf0)][_0x106b07(0xae)](this[_0x106b07(0xab)][_0x106b07(0x118)]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11b),async(_0x2177ed,_0x3467cc)=>{const _0x248bd6=_0x3e1b8a,_0x366a52=this[_0x248bd6(0xab)][_0x248bd6(0xb2)](_0x3467cc['id']);if(_0x366a52){this[_0x248bd6(0x112)](this[_0x248bd6(0xfa)]),_0x3467cc[_0x248bd6(0x8b)]?this[_0x248bd6(0xa5)]=new _0x316a10(_0x3467cc[_0x248bd6(0x10a)][_0x248bd6(0xcb)],_0x3467cc[_0x248bd6(0x10a)][_0x248bd6(0xe3)],this[_0x248bd6(0xcd)][_0x248bd6(0x106)](),_0x366a52,this[_0x248bd6(0xd6)]):this[_0x248bd6(0xa5)]=new _0x4807e6(this[_0x248bd6(0xcd)][_0x248bd6(0x106)](),_0x366a52,this[_0x248bd6(0xd6)],_0x3467cc[_0x248bd6(0x109)],_0x3467cc[_0x248bd6(0x10a)]),this[_0x248bd6(0xf0)][_0x248bd6(0xe5)](this[_0x248bd6(0xa5)][_0x248bd6(0x97)]),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xf9),(_0x360a9e,_0x3f4b79)=>{const _0x2921b9=_0x248bd6;_0x2921b9(0x121)===_0x3f4b79[_0x2921b9(0xee)]||_0x2921b9(0xec)===_0x3f4b79[_0x2921b9(0xee)]?(this[_0x2921b9(0xcd)][_0x2921b9(0xc5)](),this[_0x2921b9(0xf0)][_0x2921b9(0xf8)](_0x3f4b79)):_0x2921b9(0x110)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x111)]():_0x2921b9(0xb1)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0xdb)]():_0x2921b9(0x12c)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x126)]():_0x2921b9(0xb4)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x12a)]():_0x2921b9(0xfb)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x9e)]():_0x2921b9(0x103)===_0x3f4b79[_0x2921b9(0xee)]&&(this[_0x2921b9(0xa5)]&&this[_0x2921b9(0xa5)][_0x2921b9(0xdd)]>0x0?setTimeout(()=>{const _0x53a1b4=_0x2921b9;this[_0x53a1b4(0xa5)]?.[_0x53a1b4(0x107)]();},0x0):this[_0x2921b9(0xa4)](!0x0));}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xbc),(_0x26bf2c,_0xb74d26)=>{const _0x3c7eb4=_0x248bd6;if(!this[_0x3c7eb4(0xa5)])throw new _0xfb4bf1(_0x3c7eb4(0xb0),this);const _0x524d61=this[_0x3c7eb4(0xcd)][_0x3c7eb4(0xd4)](_0xb74d26[_0x3c7eb4(0x9c)][_0x3c7eb4(0xc7)],_0xb74d26[_0x3c7eb4(0x9c)][_0x3c7eb4(0xc4)]);_0xb74d26[_0x3c7eb4(0x114)][_0x3c7eb4(0xa0)](_0xb74d26[_0x3c7eb4(0x9c)]['id'],_0x524d61);}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0x104),(_0x4c208b,_0x55517b)=>{const _0x50791a=_0x248bd6;for(const _0x56968d of _0x55517b[_0x50791a(0xdf)])this[_0x50791a(0xf0)][_0x50791a(0xdc)](_0x56968d);this[_0x50791a(0xcd)][_0x50791a(0xf5)](_0x55517b[_0x50791a(0xdf)],_0x55517b[_0x50791a(0x114)][_0x50791a(0x12e)]);}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xf6),(_0x40eea9,_0x29ca48)=>{const _0xd85fb9=_0x248bd6;this[_0xd85fb9(0xf0)][_0xd85fb9(0xd3)](_0x29ca48[_0xd85fb9(0x100)]['id'],_0xd85fb9(0xde));}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xbd),(_0x2be0ac,_0x3076c3)=>{const _0x3cabbb=_0x248bd6;this[_0x3cabbb(0xf0)][_0x3cabbb(0xd3)](_0x3076c3[_0x3cabbb(0x100)]['id'],_0x3cabbb(0xb3));}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0x9a),(_0x22b115,_0x251b92)=>{const _0xd9294=_0x248bd6;this[_0xd9294(0xf0)][_0xd9294(0xe9)](_0x251b92[_0xd9294(0x100)]['id']);const _0x32278c=this[_0xd9294(0xcd)][_0xd9294(0x120)](_0x251b92[_0xd9294(0x100)]['id']);if(_0x32278c){if(_0xd9294(0x94)===this[_0xd9294(0xeb)]){const _0x16891d=this[_0xd9294(0xf0)][_0xd9294(0x9d)](_0x251b92[_0xd9294(0x100)]['id']);_0x16891d&&_0x26e1c5(_0x16891d[_0xd9294(0x105)](_0xd9294(0xd2))||_0x16891d);}else{if(_0xd9294(0x8a)===this[_0xd9294(0xeb)]){const _0x1dbc52={'target':_0x32278c[_0xd9294(0xac)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x527fba(_0x1dbc52);}}this[_0xd9294(0xf0)][_0xd9294(0x130)](_0x251b92[_0xd9294(0x100)],_0x32278c[_0xd9294(0xac)]);}}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xf2),()=>{const _0x23f5d0=_0x248bd6;this[_0x23f5d0(0xf0)][_0x23f5d0(0x113)]();});try{await this[_0x248bd6(0xa5)][_0x248bd6(0x108)]();}catch(_0x348efd){_0x348efd instanceof Error&&_0x348efd[_0x248bd6(0x98)][_0x248bd6(0x10b)](_0x248bd6(0xca))||(_0x348efd instanceof _0xfb4bf1?this[_0x248bd6(0x89)](_0x348efd):this[_0x248bd6(0x89)](new _0xfb4bf1(_0x248bd6(0xf3),this,{'error':_0x348efd})));}}else this[_0x248bd6(0x89)](new _0xfb4bf1(_0x248bd6(0x10d),this,{'checkId':_0x3467cc['id']}));}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x123),()=>{const _0x3db7c0=_0x3e1b8a;this[_0x3db7c0(0xa4)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xf1),()=>{const _0x1d20ad=_0x3e1b8a;this[_0x1d20ad(0xa4)](!0x0);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x101),()=>{const _0x15e687=_0x3e1b8a;this[_0x15e687(0xa5)]&&this[_0x15e687(0xa5)][_0x15e687(0x125)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11e),()=>{const _0x35c57b=_0x3e1b8a;this[_0x35c57b(0xa4)](!0x0);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xb7),()=>{const _0x300360=_0x3e1b8a;if(!this[_0x300360(0xa5)])return;const _0x50783d=this[_0x300360(0xa5)][_0x300360(0xba)]();_0x50783d[_0x300360(0xa3)]&&(this[_0x300360(0xcd)][_0x300360(0x99)](_0x50783d[_0x300360(0xa7)](_0x3e1343=>_0x3e1343['id'])),this[_0x300360(0xa5)][_0x300360(0xc6)](),this[_0x300360(0xfd)]());}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x127),(_0x9537c8,_0x440ad2)=>{const _0x334557=_0x3e1b8a;if(!this[_0x334557(0xa5)]||!this[_0x334557(0xa5)][_0x334557(0xd7)](_0x440ad2['id']))return;this[_0x334557(0xcd)][_0x334557(0x99)]([_0x440ad2['id']]),this[_0x334557(0xa5)][_0x334557(0x119)](_0x440ad2['id']),this[_0x334557(0xf0)][_0x334557(0xd0)]();const _0x4d28ce=_0x440ad2['id'][_0x334557(0xc2)]('-');this[_0x334557(0xfd)](_0x4d28ce[0x0]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xd8),(_0xa30855,_0xfefd1f)=>{const _0x135c65=_0x3e1b8a;if(!this[_0x135c65(0xa5)]||!this[_0x135c65(0xa5)][_0x135c65(0xd7)](_0xfefd1f['id']))return;this[_0x135c65(0xcd)][_0x135c65(0x9b)](_0xfefd1f['id']),this[_0x135c65(0xa5)][_0x135c65(0x129)](_0xfefd1f['id']),this[_0x135c65(0xf0)][_0x135c65(0xd0)]();const _0x155fe5=_0xfefd1f['id'][_0x135c65(0xc2)]('-');this[_0x135c65(0xfd)](_0x155fe5[0x0]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x122),(_0x255891,_0x1f5b2b)=>{const _0x1c21a6=_0x3e1b8a;this[_0x1c21a6(0xfa)]=_0x1f5b2b['on'],this[_0x1c21a6(0x112)](this[_0x1c21a6(0xfa)]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11f),async()=>{const _0x1dc873=_0x3e1b8a;this[_0x1dc873(0xa5)]&&await this[_0x1dc873(0xa5)][_0x1dc873(0xb6)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xed),(_0x36ff88,_0x43a242)=>{const _0x283e99=_0x3e1b8a;this[_0x283e99(0xa5)]&&(this[_0x283e99(0xeb)]=_0x283e99(0x8a),this[_0x283e99(0xa5)][_0x283e99(0xed)](_0x43a242['id']));}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x91),()=>{const _0x27bcef=_0x3e1b8a;this[_0x27bcef(0xa5)]&&this[_0x27bcef(0xa5)][_0x27bcef(0x91)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xcd)][_0x3e1b8a(0x11a)],_0x3e1b8a(0xd1),(_0x52c054,_0x5bec96)=>{const _0x583c24=_0x3e1b8a;this[_0x583c24(0xa5)]&&(this[_0x583c24(0xeb)]=_0x583c24(0x94),this[_0x583c24(0xa5)][_0x583c24(0xed)](_0x5bec96[_0x583c24(0x92)]));});}[_0x4f8f35(0xfd)](_0x2327cb){const _0x1e1e0e=_0x4f8f35;if(!this[_0x1e1e0e(0xa5)])return;const _0x47dd8d={'positiveCount':this[_0x1e1e0e(0xa5)][_0x1e1e0e(0xc1)](),'totalCount':this[_0x1e1e0e(0xa5)][_0x1e1e0e(0x12f)]()};if(0x0===_0x47dd8d[_0x1e1e0e(0xc0)])return;const _0x256823=this[_0x1e1e0e(0xa5)][_0x1e1e0e(0x95)];if(this[_0x1e1e0e(0xa5)]instanceof _0x4807e6){const _0x34174f=this[_0x1e1e0e(0xa5)][_0x1e1e0e(0x10f)];this[_0x1e1e0e(0xd6)][_0x1e1e0e(0x124)](_0x34174f,_0x256823,_0x47dd8d,_0x2327cb);}else this[_0x1e1e0e(0xa5)]instanceof _0x316a10&&this[_0x1e1e0e(0xd6)][_0x1e1e0e(0x133)](_0x256823,_0x47dd8d,_0x2327cb);}[_0x4f8f35(0xa4)](_0x4d180f=!0x1){const _0x3dea10=_0x4f8f35;this[_0x3dea10(0xa5)]&&(this[_0x3dea10(0xfd)](),this[_0x3dea10(0xa5)][_0x3dea10(0x125)](),this[_0x3dea10(0xa5)][_0x3dea10(0x116)](),this[_0x3dea10(0xa5)]=void 0x0),_0x4d180f&&this[_0x3dea10(0xf0)][_0x3dea10(0x8d)](),this[_0x3dea10(0xcd)][_0x3dea10(0xf7)](),this[_0x3dea10(0xcd)][_0x3dea10(0xb9)](),this[_0x3dea10(0xeb)]=null;const _0x43f559=this[_0x3dea10(0xcd)][_0x3dea10(0xfc)]();_0x43f559&&_0x43f559[_0x3dea10(0xe7)][_0x3dea10(0xbf)][_0x3dea10(0x100)](_0x245d1a=>{const _0x41481c=_0x3dea10,_0x3559c=_0x43f559[_0x41481c(0xe7)][_0x41481c(0xbf)][_0x41481c(0xaa)][_0x41481c(0xa8)]();_0x245d1a[_0x41481c(0xf4)](_0x41481c(0xb5),_0x3559c),_0x245d1a[_0x41481c(0xf4)](_0x41481c(0x96),_0x3559c);});}[_0x4f8f35(0x112)](_0x33a742){const _0x2d2495=_0x4f8f35,_0x5c39e0=this[_0x2d2495(0xcd)][_0x2d2495(0xfc)]();_0x5c39e0&&_0x5c39e0[_0x2d2495(0xe7)][_0x2d2495(0xbf)][_0x2d2495(0x100)](_0x73fb2a=>{const _0x43207a=_0x2d2495,_0x4b6b8d=_0x5c39e0[_0x43207a(0xe7)][_0x43207a(0xbf)][_0x43207a(0xaa)][_0x43207a(0xa8)]();_0x73fb2a[_0x43207a(0xf4)](_0x43207a(0xb5),_0x4b6b8d),_0x73fb2a[_0x43207a(0xf4)](_0x43207a(0x96),_0x4b6b8d),_0x73fb2a[_0x43207a(0x132)](_0x33a742?_0x43207a(0xb5):_0x43207a(0x96),_0x4b6b8d);});}[_0x4f8f35(0xe6)](_0x31192a){const _0x5551d8=_0x4f8f35;return _0x31192a[_0x5551d8(0xa7)](_0x3d2b06=>{const _0x130691=_0x5551d8,_0x2082fc=_0x130691(0xc8)+_0x3d2b06['id'][_0x130691(0xa1)]()[_0x130691(0x90)]('-','_'),_0x337f15={..._0x3d2b06,'title':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xaf),_0x3d2b06[_0x130691(0x97)]),'description':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xa2),_0x3d2b06[_0x130691(0xda)])};return _0x3d2b06[_0x130691(0x9f)]&&(_0x337f15[_0x130691(0x9f)]=_0x3d2b06[_0x130691(0x9f)][_0x130691(0xa7)](_0x36302d=>({..._0x36302d,'label':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xce),_0x36302d[_0x130691(0x8f)]||''),'data':_0x36302d[_0x130691(0x121)]?_0x36302d[_0x130691(0x121)][_0x130691(0xa7)](_0xa4c123=>({..._0xa4c123,'label':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xea)+_0xa4c123['id'][_0x130691(0xa1)](),_0xa4c123[_0x130691(0x8f)])})):void 0x0}))),_0x337f15;});}[_0x4f8f35(0x117)](_0x4e782d,_0xe88a0c){const _0xe6234f=_0x4f8f35,_0x3e471a=this[_0xe6234f(0xc9)][_0xe6234f(0x102)],_0x44bfbf=_0x3bf48d(_0x3e471a,_0x4e782d);return _0x44bfbf===_0x4e782d?_0xe88a0c:_0x44bfbf;}[_0x4f8f35(0x89)](_0x56e1a0){const _0x234c6d=_0x4f8f35;_0x95418e(_0x56e1a0[_0x234c6d(0x98)]),this[_0x234c6d(0xf0)][_0x234c6d(0x12a)]();}}
|
|
23
|
+
function _0x5467(_0x3c7fe4,_0x23265a){const _0x587fbf=_0x587f();return _0x5467=function(_0x54671a,_0x5ae6ce){_0x54671a=_0x54671a-0xbd;let _0x2c51f5=_0x587fbf[_0x54671a];return _0x2c51f5;},_0x5467(_0x3c7fe4,_0x23265a);}const _0x54c19f=_0x5467;(function(_0x3491bb,_0x31ae88){const _0x3bea46=_0x5467,_0x26ad44=_0x3491bb();while(!![]){try{const _0x19c050=parseInt(_0x3bea46(0x129))/0x1+-parseInt(_0x3bea46(0x11e))/0x2+-parseInt(_0x3bea46(0x145))/0x3*(-parseInt(_0x3bea46(0x14f))/0x4)+-parseInt(_0x3bea46(0x112))/0x5*(parseInt(_0x3bea46(0xc9))/0x6)+-parseInt(_0x3bea46(0x114))/0x7*(-parseInt(_0x3bea46(0xe8))/0x8)+-parseInt(_0x3bea46(0x15a))/0x9+parseInt(_0x3bea46(0x11c))/0xa;if(_0x19c050===_0x31ae88)break;else _0x26ad44['push'](_0x26ad44['shift']());}catch(_0x229ecf){_0x26ad44['push'](_0x26ad44['shift']());}}}(_0x587f,0xd3c64));import{ContextPlugin as _0x98f038}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a05a7,logError as _0x23d975,scrollAncestorsToShowTarget as _0x202e55,scrollViewportToShowTarget as _0x536c5a}from'ckeditor5/src/utils.js';import{AIConnector as _0x4cb807}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x4ae012}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x5dec4e}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x29c7f6}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0xc89551}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x175bca}from'./aireviewcheckdefinitions.js';function _0x587f(){const _0x434724=['contentInitial','abortReviewStream','AIReviewModeController','showChunkErrorView','16658760snZoWI','reviewCheckResultRejected','1667572QyVXDX','ai-review-mode-source-check-not-found','length','reviewCheckResultDeactivated','reviewCheckResultActivated','AIReviewModeEditing','documentData','emitter','aborted','addResultChanges','getRoot','294638mJBBYu','changes','getMarkerElementForChange','reviewCheckResultAdded','_isDiffOn','editing','content','deactivateChange','_OPTIONS_LABEL','_OPTIONS_DATA_','hasModifications','_aiReviewCheckList','result','source','ai-request-aborted','options','leaveReviewMode','listenTo','showCheckRunResult','isOfficialPlugin','markAllChangesAsAccepted','getChangeElement','showReviewCheckList','removeClass','loading','_onReviewModeRunLeave','includes','message','3xvXFSP','plugins','hideChangeBalloon','abort','toggleDiff','accepted','restart','panel','showActionsWhenResultIsReady','sendRating','2580756pwJXFr','toUpperCase','_TITLE','model','locale','requires','stopListening','label','error-chunk','leaveReviewModeResultList','prompt','15234183GKVzQI','custom','getDocumentData','setAvailableChecks','dismissChange','reviewCheckRunUpdated','showDiffInBalloon','AIReviewModeUI','AIConnector','_getTranslationWithDefault','context','retryReview','setActiveStateInResults','changeMarkerClick','ready','ai-review-mode-check-run-failed','rejectChange','view','start','diffContent','_aiReviewModeEditing','reviewCheckResultReady','3886410ixXOkv','isChangeActive','AI_REVIEW_CHECK_','addClass','setCheckResultTitle','pluginName','reviewCheckResultAccepted','getCheckById','ai-review-mode-no-current-check-run','.ck-ai-review-mode__check-run-result','acceptAllChanges','get','showCheckRunResults','clearAllMarkers','_currentReviewCheckRun','hideDiffInBalloon','switchToReadOnly','subTitle','change','unmodified','getEditor','config','isPremiumPlugin','acceptChange','init','markChangePositionInEditorContent','domElement','_aiConnector','_DESCRIPTION','_changeActivationSource','_translateReviewChecks','310472knmRwq','showGeneralErrorView','markChangeAsAccepted','_onDiffChange','replaceAll','showChangeBalloon','showReviewCompletedView','_aiReviewModeUi','finishReview','finished','rejected','models','activateChange','ai.reviewMode.translations','contentNew','markChangeAsRejected','applyChange','status','_logError','runReviewCheck','description','translate','checks','changeId','switchToEdit','data','resetActiveStateInResults','isCustom','map','getReviewCheckList','ck-ai-review-mode-diff','updateChangeState','getActiveChanges','AI_MODEL_DESCRIPTION_','error-general','closest','showNoChangesView','params','getAll','ck-ai-review-mode-highlights','find','forceReadyState','5TcfZlV','processedResultsCount','259QODDgR','title','args','document'];_0x587f=function(){return _0x434724;};return _0x587f();}import{getTranslation as _0x169053}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x98f038{[_0x54c19f(0xe4)];[_0x54c19f(0xef)];[_0x54c19f(0xc7)];[_0x54c19f(0x134)];[_0x54c19f(0xd7)];[_0x54c19f(0x12d)]=!0x1;[_0x54c19f(0xe6)]=null;static get[_0x54c19f(0x154)](){return[_0x4cb807];}static get[_0x54c19f(0xce)](){const _0x1084a8=_0x54c19f;return _0x1084a8(0x11a);}static get[_0x54c19f(0x13c)](){return!0x0;}static get[_0x54c19f(0xdf)](){return!0x0;}async[_0x54c19f(0xe1)](){const _0x501f4a=_0x54c19f;this[_0x501f4a(0xe4)]=this[_0x501f4a(0xbd)][_0x501f4a(0x146)][_0x501f4a(0xd4)](_0x501f4a(0x162)),this[_0x501f4a(0xef)]=this[_0x501f4a(0xbd)][_0x501f4a(0x146)][_0x501f4a(0xd4)](_0x501f4a(0x161)),this[_0x501f4a(0xc7)]=this[_0x501f4a(0xbd)][_0x501f4a(0x146)][_0x501f4a(0xd4)](_0x501f4a(0x123));const _0x42e066=this[_0x501f4a(0xbd)][_0x501f4a(0xde)][_0x501f4a(0xd4)](_0x501f4a(0xf5));if(_0x42e066){for(const _0x18899d of _0x175bca)_0x501f4a(0xfd)===_0x18899d['id']&&(_0x18899d[_0x501f4a(0x138)][0x0][_0x501f4a(0x101)]=_0x42e066);}const _0x1630be=this[_0x501f4a(0xe7)](_0x175bca);this[_0x501f4a(0x134)]=new _0x4ae012(_0x1630be);const _0xbeb58a=this[_0x501f4a(0x134)][_0x501f4a(0xfe)][_0x501f4a(0x110)](_0x21cc41=>_0x501f4a(0x15b)===_0x21cc41['id']);if(_0xbeb58a){const _0x4da091=await new _0xc89551({'connector':this[_0x501f4a(0xe4)]})[_0x501f4a(0x10e)]();_0xbeb58a[_0x501f4a(0xf3)]=_0x4da091[_0x501f4a(0x104)](_0x97869f=>({..._0x97869f,'description':this[_0x501f4a(0x163)](_0x501f4a(0x109)+_0x97869f['id'][_0x501f4a(0x150)](),_0x97869f[_0x501f4a(0xfc)])}));}this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x105),()=>{const _0x3d2625=_0x501f4a;this[_0x3d2625(0xef)][_0x3d2625(0x15d)](this[_0x3d2625(0x134)][_0x3d2625(0xfe)]);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xfb),async(_0x1d7649,_0x42c22c)=>{const _0x399374=_0x501f4a,_0xdbe5a3=this[_0x399374(0x134)][_0x399374(0xd0)](_0x42c22c['id']);if(_0xdbe5a3){this[_0x399374(0xeb)](this[_0x399374(0x12d)]),_0x42c22c[_0x399374(0x103)]?this[_0x399374(0xd7)]=new _0x29c7f6(_0x42c22c[_0x399374(0x116)][_0x399374(0x159)],_0x42c22c[_0x399374(0x116)][_0x399374(0x152)],this[_0x399374(0xc7)][_0x399374(0x15c)](),_0xdbe5a3,this[_0x399374(0xe4)]):this[_0x399374(0xd7)]=new _0x5dec4e(this[_0x399374(0xc7)][_0x399374(0x15c)](),_0xdbe5a3,this[_0x399374(0xe4)],_0x42c22c[_0x399374(0x10d)],_0x42c22c[_0x399374(0x116)]),this[_0x399374(0xef)][_0x399374(0xcd)](this[_0x399374(0xd7)][_0x399374(0x115)],this[_0x399374(0xd7)][_0x399374(0xda)]),this[_0x399374(0xd7)]['on'](_0x399374(0x15f),(_0x4036d3,_0xf2a78c)=>{const _0x34f2d9=_0x399374;_0x34f2d9(0x101)===_0xf2a78c[_0x34f2d9(0xf9)]||_0x34f2d9(0x141)===_0xf2a78c[_0x34f2d9(0xf9)]?(this[_0x34f2d9(0xc7)][_0x34f2d9(0xd9)](),this[_0x34f2d9(0xef)][_0x34f2d9(0xd5)](_0xf2a78c)):_0x34f2d9(0xf1)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0xee)]():_0x34f2d9(0xc1)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0x14d)]():_0x34f2d9(0xdc)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0x10c)]():_0x34f2d9(0x10a)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0xe9)]():_0x34f2d9(0x157)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0x11b)]():_0x34f2d9(0x126)===_0xf2a78c[_0x34f2d9(0xf9)]&&(this[_0x34f2d9(0xd7)]&&this[_0x34f2d9(0xd7)][_0x34f2d9(0x113)]>0x0?setTimeout(()=>{const _0x2030d5=_0x34f2d9;this[_0x2030d5(0xd7)]?.[_0x2030d5(0x111)]();},0x0):this[_0x34f2d9(0x142)](!0x0)),_0x34f2d9(0xc1)!==_0xf2a78c[_0x34f2d9(0xf9)]&&_0x34f2d9(0x157)!==_0xf2a78c[_0x34f2d9(0xf9)]&&_0x34f2d9(0x10a)!==_0xf2a78c[_0x34f2d9(0xf9)]||this[_0x34f2d9(0xd7)]?.[_0x34f2d9(0x14e)]();}),this[_0x399374(0xd7)]['on'](_0x399374(0x12c),(_0x34be71,_0xeff915)=>{const _0x560590=_0x399374;if(!this[_0x560590(0xd7)])throw new _0x3a05a7(_0x560590(0xd1),this);const _0x3dfed7=this[_0x560590(0xc7)][_0x560590(0xc6)](_0xeff915[_0x560590(0x135)][_0x560590(0x118)],_0xeff915[_0x560590(0x135)][_0x560590(0xf6)]);_0xeff915[_0x560590(0x136)][_0x560590(0x127)](_0xeff915[_0x560590(0x135)]['id'],_0x3dfed7);}),this[_0x399374(0xd7)]['on'](_0x399374(0xc8),(_0x492ec2,_0x273079)=>{const _0x555593=_0x399374;for(const _0x3add01 of _0x273079[_0x555593(0x12a)])this[_0x555593(0xef)][_0x555593(0x13b)](_0x3add01);this[_0x555593(0xc7)][_0x555593(0xe2)](_0x273079[_0x555593(0x12a)],_0x273079[_0x555593(0x136)][_0x555593(0x124)]);}),this[_0x399374(0xd7)]['on'](_0x399374(0xcf),(_0x520868,_0x27ed6e)=>{const _0x2003fb=_0x399374;this[_0x2003fb(0xef)][_0x2003fb(0x107)](_0x27ed6e[_0x2003fb(0xdb)]['id'],_0x2003fb(0x14a));}),this[_0x399374(0xd7)]['on'](_0x399374(0x11d),(_0x256e38,_0x1bf6dd)=>{const _0x1bf7b3=_0x399374;this[_0x1bf7b3(0xef)][_0x1bf7b3(0x107)](_0x1bf6dd[_0x1bf7b3(0xdb)]['id'],_0x1bf7b3(0xf2));}),this[_0x399374(0xd7)]['on'](_0x399374(0x122),(_0x426b0d,_0x5d7e4f)=>{const _0x5e6fd3=_0x399374;this[_0x5e6fd3(0xef)][_0x5e6fd3(0xbf)](_0x5d7e4f[_0x5e6fd3(0xdb)]['id']);const _0x4985e4=this[_0x5e6fd3(0xc7)][_0x5e6fd3(0x12b)](_0x5d7e4f[_0x5e6fd3(0xdb)]['id']);if(_0x4985e4){if(_0x5e6fd3(0x12f)===this[_0x5e6fd3(0xe6)]){const _0x14785f=this[_0x5e6fd3(0xef)][_0x5e6fd3(0x13e)](_0x5d7e4f[_0x5e6fd3(0xdb)]['id']);_0x14785f&&_0x202e55(_0x14785f[_0x5e6fd3(0x10b)](_0x5e6fd3(0xd2))||_0x14785f);}else{if(_0x5e6fd3(0x14c)===this[_0x5e6fd3(0xe6)]){const _0x5ba88b={'target':_0x4985e4[_0x5e6fd3(0xe3)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x536c5a(_0x5ba88b);}}this[_0x5e6fd3(0xef)][_0x5e6fd3(0xed)](_0x5d7e4f[_0x5e6fd3(0xdb)],_0x4985e4[_0x5e6fd3(0xe3)]);}}),this[_0x399374(0xd7)]['on'](_0x399374(0x121),()=>{const _0x503bf1=_0x399374;this[_0x503bf1(0xef)][_0x503bf1(0x102)]();});try{await this[_0x399374(0xd7)][_0x399374(0xc5)]();}catch(_0x27a45b){_0x27a45b instanceof Error&&_0x27a45b[_0x399374(0x144)][_0x399374(0x143)](_0x399374(0x137))||(_0x27a45b instanceof _0x3a05a7?this[_0x399374(0xfa)](_0x27a45b):this[_0x399374(0xfa)](new _0x3a05a7(_0x399374(0xc2),this,{'error':_0x27a45b})));}}else this[_0x399374(0xfa)](new _0x3a05a7(_0x399374(0x11f),this,{'checkId':_0x42c22c['id']}));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x139),()=>{const _0x15bd4d=_0x501f4a;this[_0x15bd4d(0x142)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x158),()=>{const _0x38bf65=_0x501f4a;this[_0x38bf65(0x142)](!0x0);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x119),()=>{const _0x149167=_0x501f4a;this[_0x149167(0xd7)]&&this[_0x149167(0xd7)][_0x149167(0x148)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xf0),()=>{const _0x30f889=_0x501f4a;this[_0x30f889(0x142)](!0x0);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xd3),()=>{const _0xb2f695=_0x501f4a;if(!this[_0xb2f695(0xd7)])return;const _0x30e6e0=this[_0xb2f695(0xd7)][_0xb2f695(0x108)]();_0x30e6e0[_0xb2f695(0x120)]&&(this[_0xb2f695(0xc7)][_0xb2f695(0xf8)](_0x30e6e0[_0xb2f695(0x104)](_0xfb55f0=>_0xfb55f0['id'])),this[_0xb2f695(0xd7)][_0xb2f695(0x13d)](),this[_0xb2f695(0xd7)][_0xb2f695(0x14e)]());}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xe0),(_0x8f774d,_0x515eb6)=>{const _0x3832e2=_0x501f4a;this[_0x3832e2(0xd7)]&&this[_0x3832e2(0xd7)][_0x3832e2(0xca)](_0x515eb6['id'])&&(this[_0x3832e2(0xc7)][_0x3832e2(0xf8)]([_0x515eb6['id']]),this[_0x3832e2(0xd7)][_0x3832e2(0xea)](_0x515eb6['id']),this[_0x3832e2(0xef)][_0x3832e2(0x147)](),this[_0x3832e2(0xd7)][_0x3832e2(0x14e)](_0x515eb6['id']));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x15e),(_0x3cce34,_0x1aa2a7)=>{const _0x121ca8=_0x501f4a;this[_0x121ca8(0xd7)]&&this[_0x121ca8(0xd7)][_0x121ca8(0xca)](_0x1aa2a7['id'])&&(this[_0x121ca8(0xc7)][_0x121ca8(0xc3)](_0x1aa2a7['id']),this[_0x121ca8(0xd7)][_0x121ca8(0xf7)](_0x1aa2a7['id']),this[_0x121ca8(0xef)][_0x121ca8(0x147)](),this[_0x121ca8(0xd7)][_0x121ca8(0x14e)](_0x1aa2a7['id']));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x149),(_0x48a95b,_0x5cd681)=>{const _0x43f5e6=_0x501f4a;this[_0x43f5e6(0x12d)]=_0x5cd681['on'],this[_0x43f5e6(0xeb)](this[_0x43f5e6(0x12d)]);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xbe),async()=>{const _0x54d87d=_0x501f4a;this[_0x54d87d(0xd7)]&&await this[_0x54d87d(0xd7)][_0x54d87d(0x14b)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xf4),(_0x2c505f,_0x52e40e)=>{const _0x3c8cb2=_0x501f4a;this[_0x3c8cb2(0xd7)]&&(this[_0x3c8cb2(0xe6)]=_0x3c8cb2(0x14c),this[_0x3c8cb2(0xd7)][_0x3c8cb2(0xf4)](_0x52e40e['id']));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x130),()=>{const _0x92dfc2=_0x501f4a;this[_0x92dfc2(0xd7)]&&this[_0x92dfc2(0xd7)][_0x92dfc2(0x130)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xc7)][_0x501f4a(0x125)],_0x501f4a(0xc0),(_0x2f839b,_0x481743)=>{const _0x19a181=_0x501f4a;this[_0x19a181(0xd7)]&&(this[_0x19a181(0xe6)]=_0x19a181(0x12f),this[_0x19a181(0xd7)][_0x19a181(0xf4)](_0x481743[_0x19a181(0xff)]));});}[_0x54c19f(0x142)](_0x3baf04=!0x1){const _0x837b8=_0x54c19f;this[_0x837b8(0xd7)]&&(this[_0x837b8(0xd7)][_0x837b8(0x133)]||this[_0x837b8(0xd7)][_0x837b8(0x14e)](),this[_0x837b8(0xd7)][_0x837b8(0x148)](),this[_0x837b8(0xd7)][_0x837b8(0x155)](),this[_0x837b8(0xd7)]=void 0x0),_0x3baf04&&this[_0x837b8(0xef)][_0x837b8(0x13f)](),this[_0x837b8(0xc7)][_0x837b8(0xd6)](),this[_0x837b8(0xc7)][_0x837b8(0x100)](),this[_0x837b8(0xe6)]=null;const _0x5c1b5d=this[_0x837b8(0xc7)][_0x837b8(0xdd)]();_0x5c1b5d&&_0x5c1b5d[_0x837b8(0x12e)][_0x837b8(0xc4)][_0x837b8(0xdb)](_0x2b2fdf=>{const _0x1890aa=_0x837b8,_0x1f3ac1=_0x5c1b5d[_0x1890aa(0x12e)][_0x1890aa(0xc4)][_0x1890aa(0x117)][_0x1890aa(0x128)]();_0x2b2fdf[_0x1890aa(0x140)](_0x1890aa(0x106),_0x1f3ac1),_0x2b2fdf[_0x1890aa(0x140)](_0x1890aa(0x10f),_0x1f3ac1);});}[_0x54c19f(0xeb)](_0x2f50fe){const _0x1de61c=_0x54c19f,_0x1b2930=this[_0x1de61c(0xc7)][_0x1de61c(0xdd)]();_0x2f50fe?this[_0x1de61c(0xef)][_0x1de61c(0xd8)]():this[_0x1de61c(0xef)][_0x1de61c(0x160)](),_0x1b2930&&_0x1b2930[_0x1de61c(0x12e)][_0x1de61c(0xc4)][_0x1de61c(0xdb)](_0x1722bf=>{const _0xc0f922=_0x1de61c,_0x2c9406=_0x1b2930[_0xc0f922(0x12e)][_0xc0f922(0xc4)][_0xc0f922(0x117)][_0xc0f922(0x128)]();_0x1722bf[_0xc0f922(0x140)](_0xc0f922(0x106),_0x2c9406),_0x1722bf[_0xc0f922(0x140)](_0xc0f922(0x10f),_0x2c9406),_0x1722bf[_0xc0f922(0xcc)](_0x2f50fe?_0xc0f922(0x106):_0xc0f922(0x10f),_0x2c9406);});}[_0x54c19f(0xe7)](_0x766561){const _0x207584=_0x54c19f;return _0x766561[_0x207584(0x104)](_0x9a8ee4=>{const _0x3cc1f4=_0x207584,_0x5207b6=_0x3cc1f4(0xcb)+_0x9a8ee4['id'][_0x3cc1f4(0x150)]()[_0x3cc1f4(0xec)]('-','_'),_0x5ac777={..._0x9a8ee4,'title':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0x151),_0x9a8ee4[_0x3cc1f4(0x115)]),'description':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0xe5),_0x9a8ee4[_0x3cc1f4(0xfc)])};return _0x9a8ee4[_0x3cc1f4(0x138)]&&(_0x5ac777[_0x3cc1f4(0x138)]=_0x9a8ee4[_0x3cc1f4(0x138)][_0x3cc1f4(0x104)](_0x3a79cf=>({..._0x3a79cf,'label':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0x131),_0x3a79cf[_0x3cc1f4(0x156)]||''),'data':_0x3a79cf[_0x3cc1f4(0x101)]?_0x3a79cf[_0x3cc1f4(0x101)][_0x3cc1f4(0x104)](_0x7472eb=>({..._0x7472eb,'label':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0x132)+_0x7472eb['id'][_0x3cc1f4(0x150)](),_0x7472eb[_0x3cc1f4(0x156)])})):void 0x0}))),_0x5ac777;});}[_0x54c19f(0x163)](_0x1575f1,_0x29e2b7){const _0x3295b3=_0x54c19f,_0x55f5e8=this[_0x3295b3(0xbd)][_0x3295b3(0x153)],_0x47995e=_0x169053(_0x55f5e8,_0x1575f1);return _0x47995e===_0x1575f1?_0x29e2b7:_0x47995e;}[_0x54c19f(0xfa)](_0x42a424){const _0x2f1f3b=_0x54c19f;_0x23d975(_0x42a424[_0x2f1f3b(0x144)]),this[_0x2f1f3b(0xef)][_0x2f1f3b(0xe9)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x123953=_0x2a39;(function(_0x568f11,_0x456a80){const _0x4edbdf=_0x2a39,_0x3cdd04=_0x568f11();while(!![]){try{const _0xcbebf6=parseInt(_0x4edbdf(0x1c2))/0x1*(-parseInt(_0x4edbdf(0x15b))/0x2)+parseInt(_0x4edbdf(0x1be))/0x3+parseInt(_0x4edbdf(0x16b))/0x4*(parseInt(_0x4edbdf(0x128))/0x5)+-parseInt(_0x4edbdf(0x165))/0x6*(parseInt(_0x4edbdf(0x1a9))/0x7)+parseInt(_0x4edbdf(0x1b7))/0x8+parseInt(_0x4edbdf(0x19f))/0x9+-parseInt(_0x4edbdf(0x1ad))/0xa*(parseInt(_0x4edbdf(0x107))/0xb);if(_0xcbebf6===_0x456a80)break;else _0x3cdd04['push'](_0x3cdd04['shift']());}catch(_0x5f179e){_0x3cdd04['push'](_0x3cdd04['shift']());}}}(_0x18d0,0xe1ac8));import{InsertOperation as _0x3431e1,MarkerOperation as _0xe11a51,ModelDocumentFragment as _0xc0592a,ModelPosition as _0x2287c7,ModelRange as _0x497f26,ModelTreeWalker as _0x2c68a3,transformOperationSets as _0x4a4c7a}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x36ed9f,EmitterMixin as _0x9e41f2}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x478e2f}from'ckeditor5/src/core.js';import{DocumentCompare as _0x2df776,DATA_ID_MODEL_ATTRIBUTE as _0x107eb4,DATA_ID_VIEW_ATTRIBUTE as _0x18843b}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x18d0(){const _0x4e2f78=['delete','_eventEmitter','parentElement','suggestion:insertion:id:authorId:','text','marker','createPositionAt','createText','for','documentFragment','_getOperationEnd','offset','deleteContent','domConverter','keys','createDocumentFragment','$textProxy','[data-marker-id=\x22','_getOperationStart','getChildren','_changeOperationOwnerDocument','getAttribute','end','enableReadOnlyMode','_sortMarkers','_appendChild','target','values','start','markers','startsWith','getDiff','_setAttribute','ck-ai_review-mode-marker_strikethrough','hasContentAfter','remove-text','isPremiumPlugin','insertContent','13276MBNNYX','click','childCount','markChangePositionInEditorContent','viewToDom','suggestion-context','set','every','element','append','12YsuSxg','isInline','_translateOperationToEditorContent','backward','concat','ck-ai_review-mode-marker_hide','316kkvyRT','flat','downcast','innerHTML','map','from','index','htmlProcessor','data-marker-id','jumpTo','view','getOperations','clone','processor','type','_changePositionOwnerDocument','_createGetContentUsingDataIdFn','_groupAdjacentOperations','get','_removeChildren','ck-ai_review-mode-marker_','AIEditing','baseVersion','name','addMarker','switchToReadOnly','model','afterInit','reviewmode-','_getMarkersDataForGroup','_createGetContentFn','isAtEnd','insert','isTouching','suggestion:deletion:id:authorId:','pluginName','markerToElement','_removeAttribute','[data-id=\x22','addOperation','parse','switchToEdit','attributeToAttribute','_getChangeContext','clearAllMarkers','remove-context','getEditor','getHtml','schema','elements','getRoot','model:$text','12633255FXdLWM','isOfficialPlugin','_domEmitter','history','ellipsisBefore','span','caption','DocumentCompare','plugins','createRange','2084362KNphvh','applyOperation','fire','$documentFragment','533870NTJfeP','getPath','operationsIsolated','forward','hasContentBefore','hasAttribute','editing','clear','listenTo','_nextDataId','13766408cjUpzW','removeMarker','getDomRoot','position','requires','path','change','2192484HlOMfW','push','createRawElement','newRange','73TJZNRO','filter','_clone','data','_shiftOperation','split','getChild','ck-ai_review-mode-marker_add','$markedRemove','howMany','_findAdjacentContextDistance','AIReviewModeEditing','No\x20element\x20found\x20for\x20ID:\x20','applyChange','document','toData','createUIElement','markerToHighlight','remove-only','dataDowncast','getRoots','querySelector','exec','getMarkerElementForChange','getRange','ck-ai_review-mode-marker_context-','className','conversion','_changeRangeOwnerDocument','parent','context','ellipsisAfter','737amTdDw','warn','version','outerHTML','ck-ai_review-mode-marker_underline','markerName','hasClass','groupId','operationsA','ck-ai_review-mode-marker_context-start','editingDowncast','createSelection','disableReadOnlyMode','sort','changeMarkerClick','batch','stringify','isAtStart','isOpening','add','rejectChange','getShiftedBy','nodes','getDocumentData','htmlWriter','length','_createGetContextFn','ai-review-mode','diffContent','offsetSize','createPositionAfter','_findMarkerElement','affectsData','109245EmXOSu','toDomElement','emitter','_changeRange','pop','_changePosition','oldRange','ck-ai_review-mode-marker_context-end','isDocumentOperation','_insertMarkers','includes','toView','_markers'];_0x18d0=function(){return _0x4e2f78;};return _0x18d0();}import{getEditorFromContext as _0x1f85bf}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x49b0e3}from'../aicore/aiediting.js';function _0x2a39(_0x22a65a,_0x2f0721){const _0x18d0ca=_0x18d0();return _0x2a39=function(_0x2a39bd,_0x218911){_0x2a39bd=_0x2a39bd-0xfa;let _0x1ba3a6=_0x18d0ca[_0x2a39bd];return _0x1ba3a6;},_0x2a39(_0x22a65a,_0x2f0721);}const ue=_0x123953(0x187);export class AIReviewModeEditing extends _0x478e2f{static get[_0x123953(0x18e)](){const _0x5858ad=_0x123953;return _0x5858ad(0x1cd);}static get[_0x123953(0x1bb)](){return[_0x2df776,_0x49b0e3];}static get[_0x123953(0x1a0)](){return!0x0;}static get[_0x123953(0x159)](){return!0x0;}[_0x123953(0x134)]=new Map();[_0x123953(0x1a1)];[_0x123953(0x136)];constructor(_0x1111e2){const _0x433c73=_0x123953;super(_0x1111e2),this[_0x433c73(0x1a1)]=new(_0x36ed9f())(),this[_0x433c73(0x136)]=new(_0x9e41f2())();}get[_0x123953(0x12a)](){const _0x4ad453=_0x123953;return this[_0x4ad453(0x136)];}[_0x123953(0x186)](){const _0x322328=_0x123953,_0x329d70=_0x1f85bf(this[_0x322328(0x105)]);_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x18f)]({'model':ue+_0x322328(0x18b),'view':(_0x394ffe,{writer:_0x550792})=>{const _0x453068=_0x322328,_0x5e5069=this[_0x453068(0x134)][_0x453068(0x17d)](_0x394ffe[_0x453068(0x10c)]),_0x73c560={'class':_0x453068(0x1c9),'data-marker-id':_0x394ffe[_0x453068(0x10c)]};return _0x550792[_0x453068(0x1d2)](_0x453068(0x1a4),_0x73c560,function(_0x4b1309){const _0x1469c7=_0x453068,_0xf210d2=this[_0x1469c7(0x129)](_0x4b1309);return _0xf210d2[_0x1469c7(0x16e)]=_0x5e5069?.[_0x1469c7(0x139)]||'',_0xf210d2;});}}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x1d3)]({'model':ue+_0x322328(0x1d4),'view':_0x37888b=>({'classes':_0x322328(0x156),'attributes':{'data-marker-id':_0x37888b[_0x322328(0x10c)]}})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x1d3)]({'model':ue+_0x322328(0x198),'view':_0x23670d=>({'classes':_0x322328(0x10b),'attributes':{'data-marker-id':_0x23670d[_0x322328(0x10c)]}})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x1d3)]({'model':ue+_0x322328(0x158),'view':_0x3e5a4b=>({'classes':_0x322328(0x16a),'attributes':{'data-marker-id':_0x3e5a4b[_0x322328(0x10c)]}})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0xfa))[_0x322328(0x18f)]({'model':ue+_0x322328(0x160),'view':(_0x290c85,{writer:_0x12385d})=>_0x12385d[_0x322328(0x1c0)](_0x322328(0x1a4),{'class':_0x322328(0x100)+(_0x290c85[_0x322328(0x119)]?_0x322328(0x151):_0x322328(0x14b))})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x16d))[_0x322328(0x195)]({'model':_0x107eb4,'view':_0x18843b}),this[_0x322328(0x1a1)][_0x322328(0x1b5)](document,_0x322328(0x15c),(_0x4e1bcc,_0x3d9c2d)=>{const _0x4a47b6=_0x322328,_0x302abb=_0x3d9c2d[_0x4a47b6(0x14f)],_0x9e382c=this[_0x4a47b6(0x126)](_0x302abb);if(!_0x9e382c)return;const _0xff5aa0=_0x9e382c[_0x4a47b6(0x14a)](_0x4a47b6(0x173)),_0x5eade1=_0xff5aa0[_0x4a47b6(0x1c7)](':')[_0x4a47b6(0x12c)]()?.[_0x4a47b6(0x1c7)]('_')[0x0];this[_0x4a47b6(0x136)][_0x4a47b6(0x1ab)](_0x4a47b6(0x115),{'markerId':_0xff5aa0,'changeId':_0x5eade1});});}[_0x123953(0x11e)](){const _0x431efc=_0x123953,_0x14d64a=this[_0x431efc(0x105)][_0x431efc(0x1a7)][_0x431efc(0x17d)](_0x431efc(0x180)),_0x17b4fa=_0x1f85bf(this[_0x431efc(0x105)]),_0x6c7f72=_0x17b4fa[_0x431efc(0x185)],_0x4a9ab2=new _0xc0592a();for(const _0xeeff98 of _0x6c7f72[_0x431efc(0x1d0)][_0x431efc(0x19d)]()[_0x431efc(0x148)]()){const _0x54e9ba=_0xeeff98[_0x431efc(0x1c4)](!0x0);_0x4a9ab2[_0x431efc(0x14e)](_0x54e9ba);}for(const _0x444820 of _0x6c7f72[_0x431efc(0x152)])_0x4a9ab2[_0x431efc(0x152)][_0x431efc(0x161)](_0x444820[_0x431efc(0x182)],this[_0x431efc(0x103)](_0x444820[_0x431efc(0xff)]()[_0x431efc(0x177)](),_0x4a9ab2));const _0x4ebe17=new _0x2c68a3({'ignoreElementEnd':!0x0,'startPosition':_0x6c7f72[_0x431efc(0x13b)](_0x4a9ab2,0x0)}),_0x23800c=new Set(),_0xe74556=new Map();for(const {item:_0x2da069}of _0x4ebe17){if(!_0x2da069['is'](_0x431efc(0x145)))continue;const _0x3d2b1c=_0x2da069[_0x431efc(0x104)];if((!_0x3d2b1c||!_0x3d2b1c['is'](_0x431efc(0x163),_0x431efc(0x1a5)))&&(_0x3d2b1c&&_0x3d2b1c['is'](_0x431efc(0x163)))){let _0x3cea81=_0x3d2b1c[_0x431efc(0x14a)](_0x107eb4);_0x3cea81||(_0x3cea81=_0x14d64a[_0x431efc(0x1b6)](_0x23800c),_0x3d2b1c[_0x431efc(0x155)](_0x107eb4,_0x3cea81)),_0x23800c[_0x431efc(0x11a)](_0x3cea81);let _0x1aa0a2=_0x3d2b1c;for(;_0x1aa0a2[_0x431efc(0x104)]&&!_0x1aa0a2[_0x431efc(0x104)]['is'](_0x431efc(0x13e));)_0x1aa0a2=_0x1aa0a2[_0x431efc(0x104)],_0x1aa0a2[_0x431efc(0x1b2)](_0x107eb4)&&_0x1aa0a2[_0x431efc(0x190)](_0x107eb4);_0xe74556[_0x431efc(0x161)](_0x3cea81,{'path':_0x3d2b1c[_0x431efc(0x1ae)](),'getContent':this[_0x431efc(0x17b)](_0x1aa0a2[_0x431efc(0x1c4)](!0x0),_0x3cea81,_0x17b4fa[_0x431efc(0x1c5)])}),_0x4ebe17[_0x431efc(0x174)](_0x6c7f72[_0x431efc(0x125)](_0x3d2b1c));}}return{'content':_0x17b4fa[_0x431efc(0x1c5)][_0x431efc(0x178)][_0x431efc(0x1d1)](_0x17b4fa[_0x431efc(0x1c5)][_0x431efc(0x133)](_0x4a9ab2)),'version':_0x17b4fa[_0x431efc(0x185)][_0x431efc(0x1d0)][_0x431efc(0x109)],'elements':_0xe74556};}[_0x123953(0x123)](_0x1b180d,_0x53aa8d){const _0x53406d=_0x123953,_0x4f115e=_0x1f85bf(this[_0x53406d(0x105)]),_0x7cbf9c=_0x4f115e[_0x53406d(0x1c5)][_0x53406d(0x193)](_0x1b180d,_0x53406d(0x1ac)),_0x5c84e0=_0x4f115e[_0x53406d(0x185)][_0x53406d(0x13b)](_0x7cbf9c,0x0),_0x210f29=this[_0x53406d(0x105)][_0x53406d(0x1a7)][_0x53406d(0x17d)](_0x53406d(0x1a6))[_0x53406d(0x154)](_0x1b180d,_0x53aa8d,{'anchor':_0x5c84e0,'markDeletions':!0x0})[_0x53406d(0x176)]()[_0x53406d(0x1c3)](_0x1e4d10=>_0x53406d(0x18b)===_0x1e4d10[_0x53406d(0x179)]||_0x53406d(0x13a)===_0x1e4d10[_0x53406d(0x179)]&&_0x1e4d10[_0x53406d(0x182)][_0x53406d(0x153)](_0x53406d(0x1ca))),_0x82bfa4=this[_0x53406d(0x17c)](_0x210f29),_0x20529c=[];let _0x759a47=0x0;return _0x4f115e[_0x53406d(0x185)][_0x53406d(0x1bd)](_0x1c92cf=>{const _0x50c15d=_0x53406d;for(let _0x20402b=0x0;_0x20402b<_0x82bfa4[_0x50c15d(0x120)];_0x20402b++){const _0x1f6ce4=_0x82bfa4[_0x20402b],_0x485896=_0x1c92cf[_0x50c15d(0x144)]();for(const _0x16a918 of _0x7cbf9c[_0x50c15d(0x148)]())_0x1c92cf[_0x50c15d(0x164)](_0x16a918[_0x50c15d(0x1c4)](!0x0),_0x485896);for(const _0xda5e6a of _0x1f6ce4[_0x50c15d(0x1af)])if(_0x50c15d(0x18b)===_0xda5e6a[_0x50c15d(0x179)]){const _0x572b5e=_0xda5e6a;_0x572b5e[_0x50c15d(0x181)]=null,_0x572b5e[_0x50c15d(0x130)]=!0x1,this[_0x50c15d(0x149)](_0x572b5e,_0x485896),_0x1c92cf[_0x50c15d(0x116)][_0x50c15d(0x192)](_0xda5e6a),_0x4f115e[_0x50c15d(0x185)][_0x50c15d(0x1aa)](_0xda5e6a);const _0x5c2ff2=_0x50c15d(0x138)+_0x759a47++,_0x3f9f5e=_0x4f115e[_0x50c15d(0x185)][_0x50c15d(0x1a8)](_0x572b5e[_0x50c15d(0x1ba)],_0x572b5e[_0x50c15d(0x1ba)][_0x50c15d(0x11c)](_0x572b5e[_0x50c15d(0x1cb)]));_0x485896[_0x50c15d(0x152)][_0x50c15d(0x161)](_0x5c2ff2,_0x3f9f5e);}else{if(_0x50c15d(0x13a)===_0xda5e6a[_0x50c15d(0x179)]&&_0xda5e6a[_0x50c15d(0x182)][_0x50c15d(0x153)](_0x50c15d(0x1ca))){const _0xba3280=_0xda5e6a,_0x451ef1=_0x50c15d(0x18d)+_0x759a47++;this[_0x50c15d(0x149)](_0xba3280,_0x485896),_0x485896[_0x50c15d(0x152)][_0x50c15d(0x161)](_0x451ef1,_0xba3280[_0x50c15d(0x1c1)]);}}const _0xa2e385=this[_0x50c15d(0x196)](this[_0x50c15d(0x17a)](this[_0x50c15d(0x147)](_0x1f6ce4[_0x50c15d(0x1af)][0x0]),_0x485896),this[_0x50c15d(0x17a)](this[_0x50c15d(0x13f)](_0x1f6ce4[_0x50c15d(0x1af)][_0x1f6ce4[_0x50c15d(0x1af)][_0x50c15d(0x120)]-0x1]),_0x485896));_0x485896[_0x50c15d(0x152)][_0x50c15d(0x161)](ue+_0x50c15d(0x160),new _0x497f26(_0xa2e385[_0x50c15d(0x151)],_0xa2e385[_0x50c15d(0x14b)])),_0x20529c[_0x50c15d(0x1bf)]({..._0x1f6ce4,'context':this[_0x50c15d(0x121)](_0x485896,_0x4f115e[_0x50c15d(0x1c5)],{'ellipsisBefore':_0xa2e385[_0x50c15d(0x1b1)],'ellipsisAfter':_0xa2e385[_0x50c15d(0x157)]}),'content':this[_0x50c15d(0x189)](_0x485896,_0x4f115e[_0x50c15d(0x1c5)])});}}),_0x20529c;}[_0x123953(0x15e)](_0x44a39f,_0x3e56c2){const _0x1a9056=_0x123953,_0x11a217=_0x44a39f[0x0][_0x1a9056(0x104)]['id'],_0x33e4e1=_0x3e56c2[_0x1a9056(0x19c)][_0x1a9056(0x17d)](_0x11a217);if(!_0x33e4e1)return void console[_0x1a9056(0x108)](_0x1a9056(0x1ce)+_0x11a217);const _0x3f0b08=_0x33e4e1[_0x1a9056(0x1bc)],_0x1d2a9b=_0x1f85bf(this[_0x1a9056(0x105)]),_0x3209ac=_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x1d0)][_0x1a9056(0x1a2)][_0x1a9056(0x176)](_0x3e56c2[_0x1a9056(0x109)]),_0x314cf2=[];for(const _0x632dd1 of _0x44a39f){const _0x345295=_0x632dd1[_0x1a9056(0x1af)][_0x1a9056(0x16f)](_0x59236b=>this[_0x1a9056(0x167)](_0x59236b,_0x3f0b08,_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x1d0)][_0x1a9056(0xfb)]()[0x0]));if(!_0x345295||!_0x345295[_0x1a9056(0x120)])continue;const _0x164a72=_0x345295[_0x1a9056(0x162)](_0x415f3c=>_0x1a9056(0x13a)===_0x415f3c[_0x1a9056(0x179)]&&_0x415f3c[_0x1a9056(0x182)][_0x1a9056(0x153)](_0x1a9056(0x1ca))),_0x39ab55={'document':_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x1d0)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x13f952=_0x4a4c7a(_0x345295,_0x3209ac,_0x39ab55)[_0x1a9056(0x10f)];for(const _0x2e0bae of _0x13f952)if(_0x1a9056(0x18b)===_0x2e0bae[_0x1a9056(0x179)]){const _0x5cf928=_0x2e0bae,_0x5ef96a=_0x5cf928[_0x1a9056(0x11d)];let _0x228094='';for(const _0x36fa42 of _0x5ef96a)_0x36fa42&&_0x36fa42['is'](_0x1a9056(0x19e))&&(_0x228094+=_0x36fa42[_0x1a9056(0x1c5)]);_0x314cf2[_0x1a9056(0x1bf)]({'start':_0x5cf928[_0x1a9056(0x1ba)],'end':_0x5cf928[_0x1a9056(0x1ba)],'type':_0x1a9056(0x18b),'groupId':_0x632dd1['id'],'text':_0x228094});}else{if(_0x1a9056(0x13a)===_0x2e0bae[_0x1a9056(0x179)]&&_0x2e0bae[_0x1a9056(0x182)][_0x1a9056(0x153)](_0x1a9056(0x1ca))){const _0x3dec8d=_0x2e0bae;let _0x19904d=_0x1a9056(0x158);if(_0x164a72){const _0x475b42=this[_0x1a9056(0x1cc)](_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x151)],_0x1a9056(0x168),_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x19b)]),_0x54959d=this[_0x1a9056(0x1cc)](_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x14b)],_0x1a9056(0x1b0),_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x19b)]);if(_0x475b42||_0x54959d){const _0x4d73bd=_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x151)][_0x1a9056(0x11c)](-_0x475b42),_0x583676=_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x14b)][_0x1a9056(0x11c)](_0x54959d);_0x314cf2[_0x1a9056(0x1bf)]({'start':_0x4d73bd,'end':_0x583676,'groupId':_0x632dd1['id'],'type':_0x1a9056(0x198)});}else _0x19904d=_0x1a9056(0x1d4);}_0x314cf2[_0x1a9056(0x1bf)]({'start':_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x151)],'end':_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x14b)],'groupId':_0x632dd1['id'],'type':_0x19904d});}}}this[_0x1a9056(0x131)](_0x314cf2);}[_0x123953(0x197)](){const _0x5289a9=_0x123953;_0x1f85bf(this[_0x5289a9(0x105)])[_0x5289a9(0x185)][_0x5289a9(0x1bd)](_0x3199b0=>{const _0x4837f3=_0x5289a9;for(const _0x59f455 of this[_0x4837f3(0x134)][_0x4837f3(0x143)]())_0x3199b0[_0x4837f3(0x1b8)](_0x59f455);}),this[_0x5289a9(0x134)][_0x5289a9(0x1b4)]();}[_0x123953(0x184)](){const _0x308953=_0x123953;_0x1f85bf(this[_0x308953(0x105)])[_0x308953(0x14c)](_0x308953(0x122));}[_0x123953(0x194)](){const _0x177e46=_0x123953;_0x1f85bf(this[_0x177e46(0x105)])[_0x177e46(0x113)](_0x177e46(0x122));}[_0x123953(0x1cf)](_0x462c83){const _0x31e7aa=_0x123953,_0x1bd19e=_0x1f85bf(this[_0x31e7aa(0x105)]),_0x416d05=_0x1bd19e[_0x31e7aa(0x185)],_0x340fb4=_0x462c83[_0x31e7aa(0x16f)](_0x5902e7=>this[_0x31e7aa(0x188)](_0x5902e7))[_0x31e7aa(0x16c)]();_0x416d05[_0x31e7aa(0x1bd)](_0x53d234=>{const _0x378a8d=_0x31e7aa;for(const _0x2a07f7 of _0x340fb4){const _0x3f7a57=_0x1bd19e[_0x378a8d(0x185)][_0x378a8d(0x152)][_0x378a8d(0x17d)](_0x2a07f7['id']);_0x3f7a57&&(_0x378a8d(0x18b)===_0x2a07f7[_0x378a8d(0x179)]?_0x416d05[_0x378a8d(0x15a)](_0x53d234[_0x378a8d(0x13c)](_0x2a07f7[_0x378a8d(0x139)]||''),_0x3f7a57[_0x378a8d(0xff)]()[_0x378a8d(0x151)]):_0x378a8d(0x158)!==_0x2a07f7[_0x378a8d(0x179)]&&_0x378a8d(0x1d4)!==_0x2a07f7[_0x378a8d(0x179)]||_0x416d05[_0x378a8d(0x141)](_0x416d05[_0x378a8d(0x112)](_0x3f7a57[_0x378a8d(0xff)]())),_0x53d234[_0x378a8d(0x1b8)](_0x2a07f7['id']),this[_0x378a8d(0x134)][_0x378a8d(0x135)](_0x2a07f7['id']));}});}[_0x123953(0x11b)](_0x4dc8bc){const _0x4e84a5=_0x123953,_0x18444b=_0x1f85bf(this[_0x4e84a5(0x105)]),_0x3d2c45=this[_0x4e84a5(0x188)](_0x4dc8bc);_0x18444b[_0x4e84a5(0x185)][_0x4e84a5(0x1bd)](_0x3fa874=>{const _0xe8cfa5=_0x4e84a5;for(const _0x32c1c7 of _0x3d2c45)_0x3fa874[_0xe8cfa5(0x1b8)](_0x32c1c7['id']),this[_0xe8cfa5(0x134)][_0xe8cfa5(0x135)](_0x32c1c7['id']);});}[_0x123953(0x199)](){const _0x2dbef9=_0x123953;return _0x1f85bf(this[_0x2dbef9(0x105)]);}[_0x123953(0xfe)](_0x465cec){const _0x4d190a=_0x123953,_0x720c67=Array[_0x4d190a(0x170)](this[_0x4d190a(0x134)][_0x4d190a(0x150)]())[_0x4d190a(0x1c3)](_0x357731=>_0x357731[_0x4d190a(0x10e)]===_0x465cec);if(!_0x720c67[_0x4d190a(0x120)])return null;const _0x1081a2=0x1===_0x720c67[_0x4d190a(0x120)]?_0x720c67[0x0]:this[_0x4d190a(0x14d)](_0x720c67)[0x0],_0x3424d7=_0x1f85bf(this[_0x4d190a(0x105)]),_0x404be2=_0x3424d7[_0x4d190a(0x185)][_0x4d190a(0x152)][_0x4d190a(0x17d)](_0x1081a2['id']);if(!_0x404be2)return null;const _0x23cac9=_0x404be2[_0x4d190a(0xff)](),_0x425efc=_0x3424d7[_0x4d190a(0x1b3)][_0x4d190a(0x175)][_0x4d190a(0x1b9)]();if(!_0x425efc||!_0x23cac9)return null;const _0x1fd354=_0x425efc[_0x4d190a(0xfc)](_0x4d190a(0x146)+_0x1081a2['id']+'\x22]');return _0x1fd354?{'modelRange':_0x23cac9,'domElement':_0x1fd354}:null;}[_0x123953(0x167)](_0x2843ee,_0x4359bb,_0x266377){const _0x32929c=_0x123953;if(_0x32929c(0x18b)===_0x2843ee[_0x32929c(0x179)]){const _0x29cc08=_0x2843ee;return new _0x3431e1(this[_0x32929c(0x12d)](_0x29cc08[_0x32929c(0x1ba)],_0x4359bb[_0x32929c(0x169)](_0x29cc08[_0x32929c(0x1ba)][_0x32929c(0x140)]),_0x266377),_0x29cc08[_0x32929c(0x11d)],_0x29cc08[_0x32929c(0x181)]);}if(_0x32929c(0x13a)===_0x2843ee[_0x32929c(0x179)]&&_0x2843ee[_0x32929c(0x182)][_0x32929c(0x153)](_0x32929c(0x1ca))){const _0x311822=_0x2843ee;return new _0xe11a51(_0x311822[_0x32929c(0x182)],_0x311822[_0x32929c(0x12e)],this[_0x32929c(0x12b)](_0x311822[_0x32929c(0x1c1)],_0x4359bb[_0x32929c(0x169)](_0x311822[_0x32929c(0x1c1)][_0x32929c(0x151)][_0x32929c(0x140)]),_0x4359bb[_0x32929c(0x169)](_0x311822[_0x32929c(0x1c1)][_0x32929c(0x14b)][_0x32929c(0x140)]),_0x266377),_0x311822[_0x32929c(0x134)],_0x311822[_0x32929c(0x127)],_0x311822[_0x32929c(0x181)]);}return _0x2843ee;}[_0x123953(0x17c)](_0x4ea586){const _0xeff732=_0x123953;if(!_0x4ea586[_0xeff732(0x120)])return[];const _0x5d6783=[];let _0xaa7e3f=0x0,_0x2ef483=0x0,_0x58db99=[];for(let _0x28ac4d=0x0;_0x28ac4d<=_0x4ea586[_0xeff732(0x120)];_0x28ac4d++){const _0x118360=_0x4ea586[_0x28ac4d],_0x221757=_0x4ea586[_0x28ac4d-0x1];!_0x118360||_0x221757&&!this[_0xeff732(0x13f)](_0x221757)[_0xeff732(0x18c)](this[_0xeff732(0x147)](_0x118360))?(_0x5d6783[_0xeff732(0x1bf)]({'operations':_0x58db99,'operationsIsolated':_0x58db99[_0xeff732(0x16f)](_0x17549a=>this[_0xeff732(0x1c6)](_0x17549a[_0xeff732(0x177)](),-_0x2ef483)),'groupOffset':_0xaa7e3f}),_0x58db99=_0x118360?[_0x118360]:[],_0x2ef483+=_0xaa7e3f,_0xaa7e3f=0x0):_0x58db99[_0xeff732(0x1bf)](_0x118360),_0x118360&&_0xeff732(0x18b)===_0x118360[_0xeff732(0x179)]&&(_0xaa7e3f+=_0x118360[_0xeff732(0x1cb)]);}return _0x5d6783;}[_0x123953(0x1cc)](_0x350da2,_0x25d10d,_0x334396,_0x4e98ae=0x1){const _0x5d73fb=_0x123953,_0x34ff74=new _0x2c68a3({'startPosition':_0x350da2,'direction':_0x25d10d});let _0x14009a=0x0;for(let _0x481ee6=0x0;_0x481ee6<_0x4e98ae;_0x481ee6++){let _0x1c338f=0x0,_0x474c89=!0x1,_0x2afd39=_0x5d73fb(0x1b0)===_0x25d10d?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x350aba}of _0x34ff74)if(_0x350aba['is'](_0x5d73fb(0x145))){const _0x2d9a52=_0x2afd39[_0x5d73fb(0xfd)](_0x350aba[_0x5d73fb(0x1c5)]);if(_0x2d9a52&&_0x2d9a52[_0x5d73fb(0x120)]){if(_0x1c338f+=_0x5d73fb(0x1b0)===_0x25d10d?_0x2d9a52[_0x5d73fb(0x171)]+_0x2d9a52[0x0][_0x5d73fb(0x120)]:_0x350aba[_0x5d73fb(0x1c5)][_0x5d73fb(0x120)]-_0x2d9a52[_0x5d73fb(0x171)],_0x2d9a52[0x0][_0x5d73fb(0x120)]!==_0x350aba[_0x5d73fb(0x1c5)][_0x5d73fb(0x120)])break;_0x474c89=!0x0,_0x2afd39=_0x5d73fb(0x1b0)===_0x25d10d?/^\w+/:/\w+$/;}else{if(_0x474c89)break;_0x1c338f+=_0x350aba[_0x5d73fb(0x124)];}}else{if(_0x350aba['is'](_0x5d73fb(0x163))){_0x334396[_0x5d73fb(0x166)](_0x350aba)&&!_0x474c89&&(_0x1c338f+=0x1);break;}}_0x14009a+=_0x1c338f,_0x34ff74[_0x5d73fb(0x174)](_0x350da2[_0x5d73fb(0x11c)](_0x5d73fb(0x1b0)===_0x25d10d?_0x14009a:-_0x14009a));}return _0x14009a;}[_0x123953(0x196)](_0x484f80,_0x276c3d){const _0x20cdc8=_0x123953,_0x387f59=_0x1f85bf(this[_0x20cdc8(0x105)])[_0x20cdc8(0x185)][_0x20cdc8(0x19b)],_0x442e26=this[_0x20cdc8(0x1cc)](_0x484f80,_0x20cdc8(0x168),_0x387f59,0x6),_0x212716=this[_0x20cdc8(0x1cc)](_0x276c3d,_0x20cdc8(0x1b0),_0x387f59,0x6),_0x13bb23=_0x484f80[_0x20cdc8(0x11c)](-_0x442e26),_0x23e0e1=_0x276c3d[_0x20cdc8(0x11c)](_0x212716);return{'start':_0x13bb23,'end':_0x23e0e1,'hasContentBefore':!_0x13bb23[_0x20cdc8(0x118)],'hasContentAfter':!_0x23e0e1[_0x20cdc8(0x18a)]};}[_0x123953(0x131)](_0x166d14){const _0x42edf9=_0x123953,_0x51532d=this[_0x42edf9(0x105)][_0x42edf9(0x1a7)][_0x42edf9(0x17d)](_0x42edf9(0x180)),_0xf02397=new Set();_0x1f85bf(this[_0x42edf9(0x105)])[_0x42edf9(0x185)][_0x42edf9(0x1bd)](_0x4859d3=>{const _0x358c42=_0x42edf9;for(const _0x38ffce of _0x166d14){const _0x3104a8=''+ue+_0x38ffce[_0x358c42(0x179)]+':'+_0x38ffce[_0x358c42(0x10e)]+'_'+_0x51532d[_0x358c42(0x1b6)](_0xf02397);this[_0x358c42(0x134)][_0x358c42(0x161)](_0x3104a8,{'id':_0x3104a8,'groupId':_0x38ffce[_0x358c42(0x10e)],'type':_0x38ffce[_0x358c42(0x179)],'text':_0x38ffce[_0x358c42(0x139)]}),_0x4859d3[_0x358c42(0x183)](_0x3104a8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4859d3[_0x358c42(0x1a8)](_0x38ffce[_0x358c42(0x151)],_0x38ffce[_0x358c42(0x14b)])});}});}[_0x123953(0x121)](_0x5bae54,_0x22322d,_0x5b2693){let _0x444ed7='';return()=>{const _0x4a4b49=_0x2a39;if(!_0x444ed7){const _0x5dcd62=_0x22322d[_0x4a4b49(0x133)](_0x5bae54,{'showSuggestionHighlights':!0x0}),_0x60ebdf=_0x5dcd62[_0x4a4b49(0x1c8)](0x0);if(!_0x60ebdf)return'';let _0x4edbd0=!0x1;const _0x5c5791=[];for(const _0x3225fc of _0x60ebdf[_0x4a4b49(0x148)]())_0x3225fc['is'](_0x4a4b49(0x163),_0x4a4b49(0x1a4))&&_0x3225fc[_0x4a4b49(0x10d)](_0x4a4b49(0x12f))&&(_0x4edbd0=!0x1),_0x4edbd0&&_0x5c5791[_0x4a4b49(0x1bf)](_0x3225fc),_0x3225fc['is'](_0x4a4b49(0x163),_0x4a4b49(0x1a4))&&_0x3225fc[_0x4a4b49(0x10d)](_0x4a4b49(0x110))&&(_0x4edbd0=!0x0);_0x60ebdf[_0x4a4b49(0x17e)](0x0,_0x60ebdf[_0x4a4b49(0x15d)]),_0x5b2693?.[_0x4a4b49(0x1a3)]&&_0x60ebdf[_0x4a4b49(0x14e)]('…'),_0x60ebdf[_0x4a4b49(0x14e)](_0x5c5791),_0x5b2693?.[_0x4a4b49(0x106)]&&_0x60ebdf[_0x4a4b49(0x14e)]('…');const _0x2aa550=_0x22322d[_0x4a4b49(0x172)][_0x4a4b49(0x142)][_0x4a4b49(0x15f)](_0x5dcd62),_0x3a791a=_0x22322d[_0x4a4b49(0x172)][_0x4a4b49(0x11f)][_0x4a4b49(0x19a)](_0x2aa550);_0x444ed7=_0x3a791a;}return _0x444ed7;};}[_0x123953(0x189)](_0x5fe4d5,_0x4b538d){const _0x5f11cf=_0x123953;let _0x31c0a4='';return()=>(_0x31c0a4||(_0x31c0a4=_0x4b538d[_0x5f11cf(0x117)](_0x5fe4d5,{'showSuggestionHighlights':!0x0})),_0x31c0a4);}[_0x123953(0x17b)](_0x1eea51,_0x5a3668,_0x3781f0){let _0x3c43f8='';return()=>{const _0x27a33a=_0x2a39;if(!_0x3c43f8){const _0x416ad6=_0x3781f0[_0x27a33a(0x133)](new _0xc0592a(_0x1eea51)),_0x93bb22=_0x3781f0[_0x27a33a(0x172)][_0x27a33a(0x142)][_0x27a33a(0x15f)](_0x416ad6)[_0x27a33a(0xfc)](_0x27a33a(0x191)+_0x5a3668+'\x22]');_0x3c43f8=_0x93bb22?.[_0x27a33a(0x10a)]||'';}return _0x3c43f8;};}[_0x123953(0x126)](_0x25fefe,_0x5af8c5=0x5){const _0x44b6b7=_0x123953;let _0xf4c155=_0x25fefe,_0x528d0=null;for(let _0x266eeb=0x0;_0x266eeb<_0x5af8c5&&_0xf4c155;_0x266eeb++){if(!_0xf4c155[_0x44b6b7(0x101)]){_0xf4c155=_0xf4c155[_0x44b6b7(0x137)];continue;}if(!(''+_0xf4c155[_0x44b6b7(0x101)])[_0x44b6b7(0x132)](_0x44b6b7(0x17f))){_0xf4c155=_0xf4c155[_0x44b6b7(0x137)];continue;}if(!_0xf4c155[_0x44b6b7(0x14a)](_0x44b6b7(0x173)))break;_0x528d0=_0xf4c155;break;}return _0x528d0;}[_0x123953(0x188)](_0x1ce440){const _0x6fb83e=_0x123953;return Array[_0x6fb83e(0x170)](this[_0x6fb83e(0x134)][_0x6fb83e(0x150)]())[_0x6fb83e(0x1c3)](_0x3a5c01=>_0x3a5c01[_0x6fb83e(0x10e)]===_0x1ce440);}[_0x123953(0x147)](_0x5ad1a6){const _0x7f53ef=_0x123953;return _0x7f53ef(0x18b)===_0x5ad1a6[_0x7f53ef(0x179)]?_0x5ad1a6[_0x7f53ef(0x1ba)]:_0x5ad1a6[_0x7f53ef(0x1c1)][_0x7f53ef(0x151)];}[_0x123953(0x13f)](_0x61b915,_0x565f9d=!0x1){const _0x508200=_0x123953;return _0x508200(0x18b)===_0x61b915[_0x508200(0x179)]?_0x565f9d?_0x61b915[_0x508200(0x1ba)]:_0x61b915[_0x508200(0x1ba)][_0x508200(0x11c)](_0x61b915[_0x508200(0x1cb)]):_0x61b915[_0x508200(0x1c1)][_0x508200(0x14b)];}[_0x123953(0x1c6)](_0x25cb20,_0x31f7b6){const _0x56bd42=_0x123953;return _0x56bd42(0x18b)===_0x25cb20[_0x56bd42(0x179)]?_0x25cb20[_0x56bd42(0x1ba)]=_0x25cb20[_0x56bd42(0x1ba)][_0x56bd42(0x11c)](_0x31f7b6):_0x56bd42(0x13a)===_0x25cb20[_0x56bd42(0x179)]&&_0x25cb20[_0x56bd42(0x1c1)]&&(_0x25cb20[_0x56bd42(0x1c1)]=new _0x497f26(_0x25cb20[_0x56bd42(0x1c1)][_0x56bd42(0x151)][_0x56bd42(0x11c)](_0x31f7b6),_0x25cb20[_0x56bd42(0x1c1)][_0x56bd42(0x14b)][_0x56bd42(0x11c)](_0x31f7b6))),_0x25cb20;}[_0x123953(0x149)](_0x15e7f3,_0xacd663){const _0x38574c=_0x123953;_0x38574c(0x18b)===_0x15e7f3[_0x38574c(0x179)]?_0x15e7f3[_0x38574c(0x1ba)]=this[_0x38574c(0x17a)](_0x15e7f3[_0x38574c(0x1ba)],_0xacd663):_0x38574c(0x13a)===_0x15e7f3[_0x38574c(0x179)]&&_0x15e7f3[_0x38574c(0x1c1)]&&(_0x15e7f3[_0x38574c(0x1c1)]=this[_0x38574c(0x103)](_0x15e7f3[_0x38574c(0x1c1)],_0xacd663));}[_0x123953(0x17a)](_0x454a86,_0x47d4d5){const _0x3239a4=_0x123953;return new _0x2287c7(_0x47d4d5,_0x454a86[_0x3239a4(0x1bc)]);}[_0x123953(0x103)](_0x1357ed,_0x2ca166){const _0x27b2b1=_0x123953;return new _0x497f26(this[_0x27b2b1(0x17a)](_0x1357ed[_0x27b2b1(0x151)],_0x2ca166),this[_0x27b2b1(0x17a)](_0x1357ed[_0x27b2b1(0x14b)],_0x2ca166));}[_0x123953(0x12d)](_0x369f7c,_0x1b2be8,_0x7d31ed){return new _0x2287c7(_0x7d31ed,[..._0x1b2be8]);}[_0x123953(0x12b)](_0x204bed,_0x738efd,_0x56cef5,_0x1d14c2){const _0x402234=_0x123953;return new _0x497f26(this[_0x402234(0x12d)](_0x204bed[_0x402234(0x151)],_0x738efd,_0x1d14c2),this[_0x402234(0x12d)](_0x204bed[_0x402234(0x14b)],_0x56cef5,_0x1d14c2));}[_0x123953(0x14d)](_0x37fb5e){const _0x3e1140=_0x123953,_0x1e290d=_0x59b255=>{const _0x56976a=_0x2a39;switch(_0x59b255){case _0x56976a(0x18b):return 0x1;case _0x56976a(0x198):return 0x2;case _0x56976a(0x1d4):return 0x3;case _0x56976a(0x158):return 0x4;}};return _0x37fb5e[_0x3e1140(0x114)]((_0x1f05ce,_0x330597)=>_0x1e290d(_0x1f05ce[_0x3e1140(0x179)])-_0x1e290d(_0x330597[_0x3e1140(0x179)]));}}
|
|
23
|
+
const _0x4a17a9=_0x4ef1;function _0x4ef1(_0x514e2d,_0x5e6511){const _0xee0cc4=_0xee0c();return _0x4ef1=function(_0x4ef19d,_0x182426){_0x4ef19d=_0x4ef19d-0x183;let _0x3eb1ec=_0xee0cc4[_0x4ef19d];return _0x3eb1ec;},_0x4ef1(_0x514e2d,_0x5e6511);}(function(_0x26b3da,_0x3155a4){const _0x13dd34=_0x4ef1,_0x53234b=_0x26b3da();while(!![]){try{const _0x25c7f1=-parseInt(_0x13dd34(0x257))/0x1+-parseInt(_0x13dd34(0x1b7))/0x2+parseInt(_0x13dd34(0x1b3))/0x3+parseInt(_0x13dd34(0x1e5))/0x4*(parseInt(_0x13dd34(0x220))/0x5)+-parseInt(_0x13dd34(0x210))/0x6*(parseInt(_0x13dd34(0x1e9))/0x7)+parseInt(_0x13dd34(0x1e2))/0x8+-parseInt(_0x13dd34(0x1c6))/0x9*(-parseInt(_0x13dd34(0x202))/0xa);if(_0x25c7f1===_0x3155a4)break;else _0x53234b['push'](_0x53234b['shift']());}catch(_0x45fea7){_0x53234b['push'](_0x53234b['shift']());}}}(_0xee0c,0xd1fa3));import{InsertOperation as _0x46e425,MarkerOperation as _0x4939dc,ModelDocumentFragment as _0x24db0a,ModelPosition as _0x1b76a1,ModelRange as _0x509e2b,ModelTreeWalker as _0x545646,transformOperationSets as _0x16b6e3}from'ckeditor5/src/engine.js';function _0xee0c(){const _0x178cff=['createRawElement','_markers','_insertMarkers','_changePosition','AIReviewModeEditing','_changeOperationOwnerDocument','plugins','hasContentBefore','clearAllMarkers','length','enableReadOnlyMode','affectsData','isPremiumPlugin','_getChangeContext','2969487dpzjkn','editing','model:$text','groupId','2867512CqVyFC','offsetSize','text','history','emitter','elements','suggestion:insertion:id:authorId:','No\x20element\x20found\x20for\x20ID:\x20','schema','start','[data-marker-id=\x22','processor','ck-ai_review-mode-marker_','nodes','DocumentCompare','132570lhvtqU','end','version','parentElement','_getOperationEnd','clone','for','caption','flat','_appendChild','conversion','_shiftOperation','split','element','$documentFragment','pluginName','values','marker','_createGetContentUsingDataIdFn','fire','push','get','toDomElement','document','map','data','markerName','$textProxy','5350880ofPGIJ','htmlWriter','_clone','20rsHLDc','data-marker-id','context','getRoot','19817jQihKR','_removeAttribute','parent','includes','from','ellipsisAfter','operationsIsolated','isOfficialPlugin','applyChange','toView','remove-context','exec','downcast','createPositionAt','keys','getShiftedBy','operationsA','ck-ai_review-mode-marker_context-','ck-ai_review-mode-marker_add','getDocumentData','hasAttribute','type','view','path','clear','650oOSyyb','outerHTML','toData','childCount','delete','applyOperation','$markedRemove','backward','warn','ck-ai_review-mode-marker_underline','getEditor','index','forward','oldRange','678KzYeRJ','ellipsisBefore','hasContentAfter','getDomRoot','rejectChange','_domEmitter','isOpening','_getMarkersDataForGroup','attributeToAttribute','_setAttribute','_findMarkerElement','getHtml','getDiff','isDocumentOperation','isAtStart','model','761125IFNbDW','getRange','documentFragment','pop','addOperation','baseVersion','position','_groupAdjacentOperations','getRoots','isInline','insertContent','suggestion:deletion:id:authorId:','ck-ai_review-mode-marker_strikethrough','sort','reviewmode-','createRange','hasClass','_eventEmitter','isAtEnd','set','switchToReadOnly','innerHTML','newRange','_nextDataId','target','markerToElement','offset','createPositionAfter','suggestion-context','_createGetContentFn','remove-only','className','getAttribute','batch','afterInit','insert','viewToDom','_changePositionOwnerDocument','name','_translateOperationToEditorContent','markers','ck-ai_review-mode-marker_hide','listenTo','span','_getOperationStart','querySelector','ai-review-mode','append','disableReadOnlyMode','htmlProcessor','add','editingDowncast','stringify','[data-id=\x22','getPath','763538ECDLLO','parse','_sortMarkers','addMarker','deleteContent','_findAdjacentContextDistance','removeMarker','createSelection','startsWith','remove-text','markChangePositionInEditorContent','filter','every','change','changeMarkerClick','click','_changeRangeOwnerDocument','howMany','jumpTo','requires','getChildren','createDocumentFragment','getMarkerElementForChange','AIEditing','dataDowncast','_createGetContextFn','isTouching','concat','_changeRange','domConverter','ck-ai_review-mode-marker_context-end','getOperations','_removeChildren','diffContent','createUIElement','switchToEdit','createText','getChild','markerToHighlight','ck-ai_review-mode-marker_context-start'];_0xee0c=function(){return _0x178cff;};return _0xee0c();}import{DomEmitterMixin as _0x46c443,EmitterMixin as _0x5efe69}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x1f294a}from'ckeditor5/src/core.js';import{DocumentCompare as _0x37923f,DATA_ID_MODEL_ATTRIBUTE as _0x20aad7,DATA_ID_VIEW_ATTRIBUTE as _0x575d2b}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x190b61}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x4ecf68}from'../aicore/aiediting.js';const ue=_0x4a17a9(0x22e);export class AIReviewModeEditing extends _0x1f294a{static get[_0x4a17a9(0x1d5)](){const _0x3b67d5=_0x4a17a9;return _0x3b67d5(0x1a9);}static get[_0x4a17a9(0x190)](){return[_0x37923f,_0x4ecf68];}static get[_0x4a17a9(0x1f0)](){return!0x0;}static get[_0x4a17a9(0x1b1)](){return!0x0;}[_0x4a17a9(0x1a6)]=new Map();[_0x4a17a9(0x215)];[_0x4a17a9(0x231)];constructor(_0x1ba2b2){const _0xcf450c=_0x4a17a9;super(_0x1ba2b2),this[_0xcf450c(0x215)]=new(_0x46c443())(),this[_0xcf450c(0x231)]=new(_0x5efe69())();}get[_0x4a17a9(0x1bb)](){const _0xd569f0=_0x4a17a9;return this[_0xd569f0(0x231)];}[_0x4a17a9(0x242)](){const _0x598db6=_0x4a17a9,_0x1629d4=_0x190b61(this[_0x598db6(0x1e7)]);_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x239)]({'model':ue+_0x598db6(0x243),'view':(_0x45d2a4,{writer:_0x4c1e88})=>{const _0x3afe09=_0x598db6,_0x457071=this[_0x3afe09(0x1a6)][_0x3afe09(0x1db)](_0x45d2a4[_0x3afe09(0x1e0)]),_0x1410ca={'class':_0x3afe09(0x1fb),'data-marker-id':_0x45d2a4[_0x3afe09(0x1e0)]};return _0x4c1e88[_0x3afe09(0x19f)](_0x3afe09(0x24b),_0x1410ca,function(_0x30e9ae){const _0x5191aa=_0x3afe09,_0x205e28=this[_0x5191aa(0x1dc)](_0x30e9ae);return _0x205e28[_0x5191aa(0x235)]=_0x457071?.[_0x5191aa(0x1b9)]||'',_0x205e28;});}}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x1a3)]({'model':ue+_0x598db6(0x23e),'view':_0x164cc2=>({'classes':_0x598db6(0x22c),'attributes':{'data-marker-id':_0x164cc2[_0x598db6(0x1e0)]}})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x1a3)]({'model':ue+_0x598db6(0x1f3),'view':_0x1913e6=>({'classes':_0x598db6(0x20b),'attributes':{'data-marker-id':_0x1913e6[_0x598db6(0x1e0)]}})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x1a3)]({'model':ue+_0x598db6(0x186),'view':_0x2e684b=>({'classes':_0x598db6(0x249),'attributes':{'data-marker-id':_0x2e684b[_0x598db6(0x1e0)]}})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x195))[_0x598db6(0x239)]({'model':ue+_0x598db6(0x23c),'view':(_0x33c63e,{writer:_0x8a8622})=>_0x8a8622[_0x598db6(0x1a5)](_0x598db6(0x24b),{'class':_0x598db6(0x1fa)+(_0x33c63e[_0x598db6(0x216)]?_0x598db6(0x1c0):_0x598db6(0x1c7))})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x1f5))[_0x598db6(0x218)]({'model':_0x20aad7,'view':_0x575d2b}),this[_0x598db6(0x215)][_0x598db6(0x24a)](document,_0x598db6(0x18c),(_0x197034,_0x3abac3)=>{const _0xd797f0=_0x598db6,_0xd3468c=_0x3abac3[_0xd797f0(0x238)],_0x1adc92=this[_0xd797f0(0x21a)](_0xd3468c);if(!_0x1adc92)return;const _0x24ac4c=_0x1adc92[_0xd797f0(0x240)](_0xd797f0(0x1e6)),_0x1a8857=_0x24ac4c[_0xd797f0(0x1d2)](':')[_0xd797f0(0x223)]()?.[_0xd797f0(0x1d2)]('_')[0x0];this[_0xd797f0(0x231)][_0xd797f0(0x1d9)](_0xd797f0(0x18b),{'markerId':_0x24ac4c,'changeId':_0x1a8857});});}[_0x4a17a9(0x1fc)](){const _0x37429a=_0x4a17a9,_0x47da7f=this[_0x37429a(0x1e7)][_0x37429a(0x1ab)][_0x37429a(0x1db)](_0x37429a(0x194)),_0x2fdbde=_0x190b61(this[_0x37429a(0x1e7)]),_0xc2fdec=_0x2fdbde[_0x37429a(0x21f)],_0x588b9e=new _0x24db0a();for(const _0x3e909d of _0xc2fdec[_0x37429a(0x1dd)][_0x37429a(0x1e8)]()[_0x37429a(0x191)]()){const _0x12daf5=_0x3e909d[_0x37429a(0x1e4)](!0x0);_0x588b9e[_0x37429a(0x1cf)](_0x12daf5);}for(const _0x5a8562 of _0xc2fdec[_0x37429a(0x248)])_0x588b9e[_0x37429a(0x248)][_0x37429a(0x233)](_0x5a8562[_0x37429a(0x246)],this[_0x37429a(0x18d)](_0x5a8562[_0x37429a(0x221)]()[_0x37429a(0x1cb)](),_0x588b9e));const _0x5ec251=new _0x545646({'ignoreElementEnd':!0x0,'startPosition':_0xc2fdec[_0x37429a(0x1f6)](_0x588b9e,0x0)}),_0x2f05c2=new Set(),_0x343427=new Map();for(const {item:_0x3f3757}of _0x5ec251){if(!_0x3f3757['is'](_0x37429a(0x1e1)))continue;const _0x22f8af=_0x3f3757[_0x37429a(0x1eb)];if((!_0x22f8af||!_0x22f8af['is'](_0x37429a(0x1d3),_0x37429a(0x1cd)))&&(_0x22f8af&&_0x22f8af['is'](_0x37429a(0x1d3)))){let _0x189ec=_0x22f8af[_0x37429a(0x240)](_0x20aad7);_0x189ec||(_0x189ec=_0x47da7f[_0x37429a(0x237)](_0x2f05c2),_0x22f8af[_0x37429a(0x219)](_0x20aad7,_0x189ec)),_0x2f05c2[_0x37429a(0x252)](_0x189ec);let _0x442c41=_0x22f8af;for(;_0x442c41[_0x37429a(0x1eb)]&&!_0x442c41[_0x37429a(0x1eb)]['is'](_0x37429a(0x222));)_0x442c41=_0x442c41[_0x37429a(0x1eb)],_0x442c41[_0x37429a(0x1fd)](_0x20aad7)&&_0x442c41[_0x37429a(0x1ea)](_0x20aad7);_0x343427[_0x37429a(0x233)](_0x189ec,{'path':_0x22f8af[_0x37429a(0x256)](),'getContent':this[_0x37429a(0x1d8)](_0x442c41[_0x37429a(0x1e4)](!0x0),_0x189ec,_0x2fdbde[_0x37429a(0x1df)])}),_0x5ec251[_0x37429a(0x18f)](_0xc2fdec[_0x37429a(0x23b)](_0x22f8af));}}return{'content':_0x2fdbde[_0x37429a(0x1df)][_0x37429a(0x1c2)][_0x37429a(0x204)](_0x2fdbde[_0x37429a(0x1df)][_0x37429a(0x1f2)](_0x588b9e)),'version':_0x2fdbde[_0x37429a(0x21f)][_0x37429a(0x1dd)][_0x37429a(0x1c8)],'elements':_0x343427};}[_0x4a17a9(0x19e)](_0x505031,_0x452eb9){const _0x558330=_0x4a17a9,_0x19b657=_0x190b61(this[_0x558330(0x1e7)]),_0x2593df=_0x19b657[_0x558330(0x1df)][_0x558330(0x258)](_0x505031,_0x558330(0x1d4)),_0x14fea5=_0x19b657[_0x558330(0x21f)][_0x558330(0x1f6)](_0x2593df,0x0),_0x43679a=this[_0x558330(0x1e7)][_0x558330(0x1ab)][_0x558330(0x1db)](_0x558330(0x1c5))[_0x558330(0x21c)](_0x505031,_0x452eb9,{'anchor':_0x14fea5,'markDeletions':!0x0})[_0x558330(0x19c)]()[_0x558330(0x188)](_0x21513b=>_0x558330(0x243)===_0x21513b[_0x558330(0x1fe)]||_0x558330(0x1d7)===_0x21513b[_0x558330(0x1fe)]&&_0x21513b[_0x558330(0x246)][_0x558330(0x185)](_0x558330(0x208))),_0x5efec0=this[_0x558330(0x227)](_0x43679a),_0x455b41=[];let _0x205f28=0x0;return _0x19b657[_0x558330(0x21f)][_0x558330(0x18a)](_0x3f4e9d=>{const _0x41c095=_0x558330;for(let _0x2718cd=0x0;_0x2718cd<_0x5efec0[_0x41c095(0x1ae)];_0x2718cd++){const _0x1ae817=_0x5efec0[_0x2718cd],_0x3c96de=_0x3f4e9d[_0x41c095(0x192)]();for(const _0x56fed4 of _0x2593df[_0x41c095(0x191)]())_0x3f4e9d[_0x41c095(0x24f)](_0x56fed4[_0x41c095(0x1e4)](!0x0),_0x3c96de);for(const _0x72b9f6 of _0x1ae817[_0x41c095(0x1ef)])if(_0x41c095(0x243)===_0x72b9f6[_0x41c095(0x1fe)]){const _0x4abff2=_0x72b9f6;_0x4abff2[_0x41c095(0x225)]=null,_0x4abff2[_0x41c095(0x21d)]=!0x1,this[_0x41c095(0x1aa)](_0x4abff2,_0x3c96de),_0x3f4e9d[_0x41c095(0x241)][_0x41c095(0x224)](_0x72b9f6),_0x19b657[_0x41c095(0x21f)][_0x41c095(0x207)](_0x72b9f6);const _0x5a4899=_0x41c095(0x1bd)+_0x205f28++,_0x2a10c5=_0x19b657[_0x41c095(0x21f)][_0x41c095(0x22f)](_0x4abff2[_0x41c095(0x226)],_0x4abff2[_0x41c095(0x226)][_0x41c095(0x1f8)](_0x4abff2[_0x41c095(0x18e)]));_0x3c96de[_0x41c095(0x248)][_0x41c095(0x233)](_0x5a4899,_0x2a10c5);}else{if(_0x41c095(0x1d7)===_0x72b9f6[_0x41c095(0x1fe)]&&_0x72b9f6[_0x41c095(0x246)][_0x41c095(0x185)](_0x41c095(0x208))){const _0x2cb482=_0x72b9f6,_0x5c8666=_0x41c095(0x22b)+_0x205f28++;this[_0x41c095(0x1aa)](_0x2cb482,_0x3c96de),_0x3c96de[_0x41c095(0x248)][_0x41c095(0x233)](_0x5c8666,_0x2cb482[_0x41c095(0x236)]);}}const _0x28dd2c=this[_0x41c095(0x1b2)](this[_0x41c095(0x245)](this[_0x41c095(0x24c)](_0x1ae817[_0x41c095(0x1ef)][0x0]),_0x3c96de),this[_0x41c095(0x245)](this[_0x41c095(0x1ca)](_0x1ae817[_0x41c095(0x1ef)][_0x1ae817[_0x41c095(0x1ef)][_0x41c095(0x1ae)]-0x1]),_0x3c96de));_0x3c96de[_0x41c095(0x248)][_0x41c095(0x233)](ue+_0x41c095(0x23c),new _0x509e2b(_0x28dd2c[_0x41c095(0x1c0)],_0x28dd2c[_0x41c095(0x1c7)])),_0x455b41[_0x41c095(0x1da)]({..._0x1ae817,'context':this[_0x41c095(0x196)](_0x3c96de,_0x19b657[_0x41c095(0x1df)],{'ellipsisBefore':_0x28dd2c[_0x41c095(0x1ac)],'ellipsisAfter':_0x28dd2c[_0x41c095(0x212)]}),'content':this[_0x41c095(0x23d)](_0x3c96de,_0x19b657[_0x41c095(0x1df)])});}}),_0x455b41;}[_0x4a17a9(0x187)](_0x483e96,_0x58d5b3){const _0x15eae3=_0x4a17a9,_0x195bc4=_0x483e96[0x0][_0x15eae3(0x1eb)]['id'],_0x505cab=_0x58d5b3[_0x15eae3(0x1bc)][_0x15eae3(0x1db)](_0x195bc4);if(!_0x505cab)return void console[_0x15eae3(0x20a)](_0x15eae3(0x1be)+_0x195bc4);const _0x1391f7=_0x505cab[_0x15eae3(0x200)],_0x24a353=_0x190b61(this[_0x15eae3(0x1e7)]),_0x4d3938=_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1dd)][_0x15eae3(0x1ba)][_0x15eae3(0x19c)](_0x58d5b3[_0x15eae3(0x1c8)]),_0x26b9d8=[];for(const _0x5ad85f of _0x483e96){const _0x2395b4=_0x5ad85f[_0x15eae3(0x1ef)][_0x15eae3(0x1de)](_0x9fa7c=>this[_0x15eae3(0x247)](_0x9fa7c,_0x1391f7,_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1dd)][_0x15eae3(0x228)]()[0x0]));if(!_0x2395b4||!_0x2395b4[_0x15eae3(0x1ae)])continue;const _0x5aaf60=_0x2395b4[_0x15eae3(0x189)](_0x168991=>_0x15eae3(0x1d7)===_0x168991[_0x15eae3(0x1fe)]&&_0x168991[_0x15eae3(0x246)][_0x15eae3(0x185)](_0x15eae3(0x208))),_0x5cf8b7={'document':_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1dd)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5f4424=_0x16b6e3(_0x2395b4,_0x4d3938,_0x5cf8b7)[_0x15eae3(0x1f9)];for(const _0x2d3bc6 of _0x5f4424)if(_0x15eae3(0x243)===_0x2d3bc6[_0x15eae3(0x1fe)]){const _0x12c5a5=_0x2d3bc6,_0x340ff5=_0x12c5a5[_0x15eae3(0x1c4)];let _0x311bdd='';for(const _0x4dfa80 of _0x340ff5)_0x4dfa80&&_0x4dfa80['is'](_0x15eae3(0x1b5))&&(_0x311bdd+=_0x4dfa80[_0x15eae3(0x1df)]);_0x26b9d8[_0x15eae3(0x1da)]({'start':_0x12c5a5[_0x15eae3(0x226)],'end':_0x12c5a5[_0x15eae3(0x226)],'type':_0x15eae3(0x243),'groupId':_0x5ad85f['id'],'text':_0x311bdd});}else{if(_0x15eae3(0x1d7)===_0x2d3bc6[_0x15eae3(0x1fe)]&&_0x2d3bc6[_0x15eae3(0x246)][_0x15eae3(0x185)](_0x15eae3(0x208))){const _0x50e028=_0x2d3bc6;let _0x1fbc05=_0x15eae3(0x186);if(_0x5aaf60){const _0x177142=this[_0x15eae3(0x25c)](_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c0)],_0x15eae3(0x209),_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1bf)]),_0x48a92e=this[_0x15eae3(0x25c)](_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c7)],_0x15eae3(0x20e),_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1bf)]);if(_0x177142||_0x48a92e){const _0xc69ad0=_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c0)][_0x15eae3(0x1f8)](-_0x177142),_0x5bd652=_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c7)][_0x15eae3(0x1f8)](_0x48a92e);_0x26b9d8[_0x15eae3(0x1da)]({'start':_0xc69ad0,'end':_0x5bd652,'groupId':_0x5ad85f['id'],'type':_0x15eae3(0x1f3)});}else _0x1fbc05=_0x15eae3(0x23e);}_0x26b9d8[_0x15eae3(0x1da)]({'start':_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c0)],'end':_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c7)],'groupId':_0x5ad85f['id'],'type':_0x1fbc05});}}}this[_0x15eae3(0x1a7)](_0x26b9d8);}[_0x4a17a9(0x1ad)](){const _0x2c3e1f=_0x4a17a9;_0x190b61(this[_0x2c3e1f(0x1e7)])[_0x2c3e1f(0x21f)][_0x2c3e1f(0x18a)](_0x6ab7c8=>{const _0x55007f=_0x2c3e1f;for(const _0xb14e4f of this[_0x55007f(0x1a6)][_0x55007f(0x1f7)]())_0x6ab7c8[_0x55007f(0x183)](_0xb14e4f);}),this[_0x2c3e1f(0x1a6)][_0x2c3e1f(0x201)]();}[_0x4a17a9(0x234)](){const _0x2f2cf4=_0x4a17a9;_0x190b61(this[_0x2f2cf4(0x1e7)])[_0x2f2cf4(0x1af)](_0x2f2cf4(0x24e));}[_0x4a17a9(0x1a0)](){const _0x31a509=_0x4a17a9;_0x190b61(this[_0x31a509(0x1e7)])[_0x31a509(0x250)](_0x31a509(0x24e));}[_0x4a17a9(0x1f1)](_0x1ddc53){const _0x245396=_0x4a17a9,_0x3d0485=_0x190b61(this[_0x245396(0x1e7)]),_0x434c1e=_0x3d0485[_0x245396(0x21f)],_0x9210dc=_0x1ddc53[_0x245396(0x1de)](_0x1cc7ff=>this[_0x245396(0x217)](_0x1cc7ff))[_0x245396(0x1ce)]();_0x434c1e[_0x245396(0x18a)](_0x1d130=>{const _0x108aaf=_0x245396;for(const _0x8e8286 of _0x9210dc){const _0x5daed4=_0x3d0485[_0x108aaf(0x21f)][_0x108aaf(0x248)][_0x108aaf(0x1db)](_0x8e8286['id']);_0x5daed4&&(_0x108aaf(0x243)===_0x8e8286[_0x108aaf(0x1fe)]?_0x434c1e[_0x108aaf(0x22a)](_0x1d130[_0x108aaf(0x1a1)](_0x8e8286[_0x108aaf(0x1b9)]||''),_0x5daed4[_0x108aaf(0x221)]()[_0x108aaf(0x1c0)]):_0x108aaf(0x186)!==_0x8e8286[_0x108aaf(0x1fe)]&&_0x108aaf(0x23e)!==_0x8e8286[_0x108aaf(0x1fe)]||_0x434c1e[_0x108aaf(0x25b)](_0x434c1e[_0x108aaf(0x184)](_0x5daed4[_0x108aaf(0x221)]())),_0x1d130[_0x108aaf(0x183)](_0x8e8286['id']),this[_0x108aaf(0x1a6)][_0x108aaf(0x206)](_0x8e8286['id']));}});}[_0x4a17a9(0x214)](_0x4652ec){const _0x2738ef=_0x4a17a9,_0x467b18=_0x190b61(this[_0x2738ef(0x1e7)]),_0x259ee4=this[_0x2738ef(0x217)](_0x4652ec);_0x467b18[_0x2738ef(0x21f)][_0x2738ef(0x18a)](_0x5c1f81=>{const _0x2e7f36=_0x2738ef;for(const _0x3d2f78 of _0x259ee4)_0x5c1f81[_0x2e7f36(0x183)](_0x3d2f78['id']),this[_0x2e7f36(0x1a6)][_0x2e7f36(0x206)](_0x3d2f78['id']);});}[_0x4a17a9(0x20c)](){const _0x2cca47=_0x4a17a9;return _0x190b61(this[_0x2cca47(0x1e7)]);}[_0x4a17a9(0x193)](_0x158b63){const _0x1e7c08=_0x4a17a9,_0x3b76b6=Array[_0x1e7c08(0x1ed)](this[_0x1e7c08(0x1a6)][_0x1e7c08(0x1d6)]())[_0x1e7c08(0x188)](_0xa721c3=>_0xa721c3[_0x1e7c08(0x1b6)]===_0x158b63);if(!_0x3b76b6[_0x1e7c08(0x1ae)])return null;const _0x5673cb=0x1===_0x3b76b6[_0x1e7c08(0x1ae)]?_0x3b76b6[0x0]:this[_0x1e7c08(0x259)](_0x3b76b6)[0x0],_0x3536c7=_0x190b61(this[_0x1e7c08(0x1e7)]),_0x4ac048=_0x3536c7[_0x1e7c08(0x21f)][_0x1e7c08(0x248)][_0x1e7c08(0x1db)](_0x5673cb['id']);if(!_0x4ac048)return null;const _0x263bdd=_0x4ac048[_0x1e7c08(0x221)](),_0x321454=_0x3536c7[_0x1e7c08(0x1b4)][_0x1e7c08(0x1ff)][_0x1e7c08(0x213)]();if(!_0x321454||!_0x263bdd)return null;const _0x3d0828=_0x321454[_0x1e7c08(0x24d)](_0x1e7c08(0x1c1)+_0x5673cb['id']+'\x22]');return _0x3d0828?{'modelRange':_0x263bdd,'domElement':_0x3d0828}:null;}[_0x4a17a9(0x247)](_0x585ceb,_0x3d7e04,_0x31e485){const _0x1c5ced=_0x4a17a9;if(_0x1c5ced(0x243)===_0x585ceb[_0x1c5ced(0x1fe)]){const _0x530d11=_0x585ceb;return new _0x46e425(this[_0x1c5ced(0x1a8)](_0x530d11[_0x1c5ced(0x226)],_0x3d7e04[_0x1c5ced(0x198)](_0x530d11[_0x1c5ced(0x226)][_0x1c5ced(0x23a)]),_0x31e485),_0x530d11[_0x1c5ced(0x1c4)],_0x530d11[_0x1c5ced(0x225)]);}if(_0x1c5ced(0x1d7)===_0x585ceb[_0x1c5ced(0x1fe)]&&_0x585ceb[_0x1c5ced(0x246)][_0x1c5ced(0x185)](_0x1c5ced(0x208))){const _0x4b86c5=_0x585ceb;return new _0x4939dc(_0x4b86c5[_0x1c5ced(0x246)],_0x4b86c5[_0x1c5ced(0x20f)],this[_0x1c5ced(0x199)](_0x4b86c5[_0x1c5ced(0x236)],_0x3d7e04[_0x1c5ced(0x198)](_0x4b86c5[_0x1c5ced(0x236)][_0x1c5ced(0x1c0)][_0x1c5ced(0x23a)]),_0x3d7e04[_0x1c5ced(0x198)](_0x4b86c5[_0x1c5ced(0x236)][_0x1c5ced(0x1c7)][_0x1c5ced(0x23a)]),_0x31e485),_0x4b86c5[_0x1c5ced(0x1a6)],_0x4b86c5[_0x1c5ced(0x1b0)],_0x4b86c5[_0x1c5ced(0x225)]);}return _0x585ceb;}[_0x4a17a9(0x227)](_0x5de843){const _0x228693=_0x4a17a9;if(!_0x5de843[_0x228693(0x1ae)])return[];const _0x3e8767=[];let _0x2a0eca=0x0,_0x2e871e=0x0,_0x499253=[];for(let _0x1c64f0=0x0;_0x1c64f0<=_0x5de843[_0x228693(0x1ae)];_0x1c64f0++){const _0x1677cb=_0x5de843[_0x1c64f0],_0x275756=_0x5de843[_0x1c64f0-0x1];!_0x1677cb||_0x275756&&!this[_0x228693(0x1ca)](_0x275756)[_0x228693(0x197)](this[_0x228693(0x24c)](_0x1677cb))?(_0x3e8767[_0x228693(0x1da)]({'operations':_0x499253,'operationsIsolated':_0x499253[_0x228693(0x1de)](_0x438117=>this[_0x228693(0x1d1)](_0x438117[_0x228693(0x1cb)](),-_0x2e871e)),'groupOffset':_0x2a0eca}),_0x499253=_0x1677cb?[_0x1677cb]:[],_0x2e871e+=_0x2a0eca,_0x2a0eca=0x0):_0x499253[_0x228693(0x1da)](_0x1677cb),_0x1677cb&&_0x228693(0x243)===_0x1677cb[_0x228693(0x1fe)]&&(_0x2a0eca+=_0x1677cb[_0x228693(0x18e)]);}return _0x3e8767;}[_0x4a17a9(0x25c)](_0x502015,_0x5c2942,_0x148ff8,_0x2ba568=0x1){const _0xc1a301=_0x4a17a9,_0x3a3327=new _0x545646({'startPosition':_0x502015,'direction':_0x5c2942});let _0x4ae7ca=0x0;for(let _0x5ab104=0x0;_0x5ab104<_0x2ba568;_0x5ab104++){let _0x3fc10a=0x0,_0x36434a=!0x1,_0x2dc4d2=_0xc1a301(0x20e)===_0x5c2942?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x1a5ffd}of _0x3a3327)if(_0x1a5ffd['is'](_0xc1a301(0x1e1))){const _0x282130=_0x2dc4d2[_0xc1a301(0x1f4)](_0x1a5ffd[_0xc1a301(0x1df)]);if(_0x282130&&_0x282130[_0xc1a301(0x1ae)]){if(_0x3fc10a+=_0xc1a301(0x20e)===_0x5c2942?_0x282130[_0xc1a301(0x20d)]+_0x282130[0x0][_0xc1a301(0x1ae)]:_0x1a5ffd[_0xc1a301(0x1df)][_0xc1a301(0x1ae)]-_0x282130[_0xc1a301(0x20d)],_0x282130[0x0][_0xc1a301(0x1ae)]!==_0x1a5ffd[_0xc1a301(0x1df)][_0xc1a301(0x1ae)])break;_0x36434a=!0x0,_0x2dc4d2=_0xc1a301(0x20e)===_0x5c2942?/^\w+/:/\w+$/;}else{if(_0x36434a)break;_0x3fc10a+=_0x1a5ffd[_0xc1a301(0x1b8)];}}else{if(_0x1a5ffd['is'](_0xc1a301(0x1d3))){_0x148ff8[_0xc1a301(0x229)](_0x1a5ffd)&&!_0x36434a&&(_0x3fc10a+=0x1);break;}}_0x4ae7ca+=_0x3fc10a,_0x3a3327[_0xc1a301(0x18f)](_0x502015[_0xc1a301(0x1f8)](_0xc1a301(0x20e)===_0x5c2942?_0x4ae7ca:-_0x4ae7ca));}return _0x4ae7ca;}[_0x4a17a9(0x1b2)](_0x67ac0a,_0x2489e6){const _0x581d5d=_0x4a17a9,_0xde82ee=_0x190b61(this[_0x581d5d(0x1e7)])[_0x581d5d(0x21f)][_0x581d5d(0x1bf)],_0x368947=this[_0x581d5d(0x25c)](_0x67ac0a,_0x581d5d(0x209),_0xde82ee,0x6),_0x4ae21e=this[_0x581d5d(0x25c)](_0x2489e6,_0x581d5d(0x20e),_0xde82ee,0x6),_0x178ae6=_0x67ac0a[_0x581d5d(0x1f8)](-_0x368947),_0x13b9f8=_0x2489e6[_0x581d5d(0x1f8)](_0x4ae21e);return{'start':_0x178ae6,'end':_0x13b9f8,'hasContentBefore':!_0x178ae6[_0x581d5d(0x21e)],'hasContentAfter':!_0x13b9f8[_0x581d5d(0x232)]};}[_0x4a17a9(0x1a7)](_0x3ed8dc){const _0x4fd980=_0x4a17a9,_0x5e10a5=this[_0x4fd980(0x1e7)][_0x4fd980(0x1ab)][_0x4fd980(0x1db)](_0x4fd980(0x194)),_0x55d4c0=new Set();_0x190b61(this[_0x4fd980(0x1e7)])[_0x4fd980(0x21f)][_0x4fd980(0x18a)](_0x2a1efb=>{const _0x24d625=_0x4fd980;for(const _0x4be1a9 of _0x3ed8dc){const _0xed7a7a=''+ue+_0x4be1a9[_0x24d625(0x1fe)]+':'+_0x4be1a9[_0x24d625(0x1b6)]+'_'+_0x5e10a5[_0x24d625(0x237)](_0x55d4c0);this[_0x24d625(0x1a6)][_0x24d625(0x233)](_0xed7a7a,{'id':_0xed7a7a,'groupId':_0x4be1a9[_0x24d625(0x1b6)],'type':_0x4be1a9[_0x24d625(0x1fe)],'text':_0x4be1a9[_0x24d625(0x1b9)]}),_0x2a1efb[_0x24d625(0x25a)](_0xed7a7a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a1efb[_0x24d625(0x22f)](_0x4be1a9[_0x24d625(0x1c0)],_0x4be1a9[_0x24d625(0x1c7)])});}});}[_0x4a17a9(0x196)](_0x35fa09,_0x3bb3a4,_0x55deec){let _0x136251='';return()=>{const _0x5ac3fc=_0x4ef1;if(!_0x136251){const _0x52ada0=_0x3bb3a4[_0x5ac3fc(0x1f2)](_0x35fa09,{'showSuggestionHighlights':!0x0}),_0xad63e3=_0x52ada0[_0x5ac3fc(0x1a2)](0x0);if(!_0xad63e3)return'';let _0x1f8755=!0x1;const _0x24685a=[];for(const _0x4b0a71 of _0xad63e3[_0x5ac3fc(0x191)]())_0x4b0a71['is'](_0x5ac3fc(0x1d3),_0x5ac3fc(0x24b))&&_0x4b0a71[_0x5ac3fc(0x230)](_0x5ac3fc(0x19b))&&(_0x1f8755=!0x1),_0x1f8755&&_0x24685a[_0x5ac3fc(0x1da)](_0x4b0a71),_0x4b0a71['is'](_0x5ac3fc(0x1d3),_0x5ac3fc(0x24b))&&_0x4b0a71[_0x5ac3fc(0x230)](_0x5ac3fc(0x1a4))&&(_0x1f8755=!0x0);_0xad63e3[_0x5ac3fc(0x19d)](0x0,_0xad63e3[_0x5ac3fc(0x205)]),_0x55deec?.[_0x5ac3fc(0x211)]&&_0xad63e3[_0x5ac3fc(0x1cf)]('…'),_0xad63e3[_0x5ac3fc(0x1cf)](_0x24685a),_0x55deec?.[_0x5ac3fc(0x1ee)]&&_0xad63e3[_0x5ac3fc(0x1cf)]('…');const _0x38dccd=_0x3bb3a4[_0x5ac3fc(0x251)][_0x5ac3fc(0x19a)][_0x5ac3fc(0x244)](_0x52ada0),_0x4144ca=_0x3bb3a4[_0x5ac3fc(0x251)][_0x5ac3fc(0x1e3)][_0x5ac3fc(0x21b)](_0x38dccd);_0x136251=_0x4144ca;}return _0x136251;};}[_0x4a17a9(0x23d)](_0x3b45fa,_0x4af9e8){const _0x276264=_0x4a17a9;let _0x41a324='';return()=>(_0x41a324||(_0x41a324=_0x4af9e8[_0x276264(0x254)](_0x3b45fa,{'showSuggestionHighlights':!0x0})),_0x41a324);}[_0x4a17a9(0x1d8)](_0x4a217c,_0x58982d,_0x4222cb){let _0x3c68fa='';return()=>{const _0x315789=_0x4ef1;if(!_0x3c68fa){const _0x32e827=_0x4222cb[_0x315789(0x1f2)](new _0x24db0a(_0x4a217c)),_0x4811ad=_0x4222cb[_0x315789(0x251)][_0x315789(0x19a)][_0x315789(0x244)](_0x32e827)[_0x315789(0x24d)](_0x315789(0x255)+_0x58982d+'\x22]');_0x3c68fa=_0x4811ad?.[_0x315789(0x203)]||'';}return _0x3c68fa;};}[_0x4a17a9(0x21a)](_0x19f4e5,_0x432bb4=0x5){const _0x43c5bf=_0x4a17a9;let _0x20f89c=_0x19f4e5,_0x4f3cfd=null;for(let _0x442d20=0x0;_0x442d20<_0x432bb4&&_0x20f89c;_0x442d20++){if(!_0x20f89c[_0x43c5bf(0x23f)]){_0x20f89c=_0x20f89c[_0x43c5bf(0x1c9)];continue;}if(!(''+_0x20f89c[_0x43c5bf(0x23f)])[_0x43c5bf(0x1ec)](_0x43c5bf(0x1c3))){_0x20f89c=_0x20f89c[_0x43c5bf(0x1c9)];continue;}if(!_0x20f89c[_0x43c5bf(0x240)](_0x43c5bf(0x1e6)))break;_0x4f3cfd=_0x20f89c;break;}return _0x4f3cfd;}[_0x4a17a9(0x217)](_0x42cee3){const _0xe39d7a=_0x4a17a9;return Array[_0xe39d7a(0x1ed)](this[_0xe39d7a(0x1a6)][_0xe39d7a(0x1d6)]())[_0xe39d7a(0x188)](_0xd4d543=>_0xd4d543[_0xe39d7a(0x1b6)]===_0x42cee3);}[_0x4a17a9(0x24c)](_0x1f966f){const _0x158f6d=_0x4a17a9;return _0x158f6d(0x243)===_0x1f966f[_0x158f6d(0x1fe)]?_0x1f966f[_0x158f6d(0x226)]:_0x1f966f[_0x158f6d(0x236)][_0x158f6d(0x1c0)];}[_0x4a17a9(0x1ca)](_0x44fc43,_0x1d8cf8=!0x1){const _0xa80575=_0x4a17a9;return _0xa80575(0x243)===_0x44fc43[_0xa80575(0x1fe)]?_0x1d8cf8?_0x44fc43[_0xa80575(0x226)]:_0x44fc43[_0xa80575(0x226)][_0xa80575(0x1f8)](_0x44fc43[_0xa80575(0x18e)]):_0x44fc43[_0xa80575(0x236)][_0xa80575(0x1c7)];}[_0x4a17a9(0x1d1)](_0x48c568,_0x4e9fec){const _0x48ba01=_0x4a17a9;return _0x48ba01(0x243)===_0x48c568[_0x48ba01(0x1fe)]?_0x48c568[_0x48ba01(0x226)]=_0x48c568[_0x48ba01(0x226)][_0x48ba01(0x1f8)](_0x4e9fec):_0x48ba01(0x1d7)===_0x48c568[_0x48ba01(0x1fe)]&&_0x48c568[_0x48ba01(0x236)]&&(_0x48c568[_0x48ba01(0x236)]=new _0x509e2b(_0x48c568[_0x48ba01(0x236)][_0x48ba01(0x1c0)][_0x48ba01(0x1f8)](_0x4e9fec),_0x48c568[_0x48ba01(0x236)][_0x48ba01(0x1c7)][_0x48ba01(0x1f8)](_0x4e9fec))),_0x48c568;}[_0x4a17a9(0x1aa)](_0x5b0d00,_0x534a9b){const _0x3e2bcf=_0x4a17a9;_0x3e2bcf(0x243)===_0x5b0d00[_0x3e2bcf(0x1fe)]?_0x5b0d00[_0x3e2bcf(0x226)]=this[_0x3e2bcf(0x245)](_0x5b0d00[_0x3e2bcf(0x226)],_0x534a9b):_0x3e2bcf(0x1d7)===_0x5b0d00[_0x3e2bcf(0x1fe)]&&_0x5b0d00[_0x3e2bcf(0x236)]&&(_0x5b0d00[_0x3e2bcf(0x236)]=this[_0x3e2bcf(0x18d)](_0x5b0d00[_0x3e2bcf(0x236)],_0x534a9b));}[_0x4a17a9(0x245)](_0x9bba49,_0x194e51){const _0x2a8a14=_0x4a17a9;return new _0x1b76a1(_0x194e51,_0x9bba49[_0x2a8a14(0x200)]);}[_0x4a17a9(0x18d)](_0x1d74bc,_0x4cdd97){const _0x1ef96f=_0x4a17a9;return new _0x509e2b(this[_0x1ef96f(0x245)](_0x1d74bc[_0x1ef96f(0x1c0)],_0x4cdd97),this[_0x1ef96f(0x245)](_0x1d74bc[_0x1ef96f(0x1c7)],_0x4cdd97));}[_0x4a17a9(0x1a8)](_0x38de88,_0x1d2a4e,_0xfe3f8a){return new _0x1b76a1(_0xfe3f8a,[..._0x1d2a4e]);}[_0x4a17a9(0x199)](_0xf4046d,_0x21fe5c,_0x15a7cf,_0x4d2364){const _0x524e3e=_0x4a17a9;return new _0x509e2b(this[_0x524e3e(0x1a8)](_0xf4046d[_0x524e3e(0x1c0)],_0x21fe5c,_0x4d2364),this[_0x524e3e(0x1a8)](_0xf4046d[_0x524e3e(0x1c7)],_0x15a7cf,_0x4d2364));}[_0x4a17a9(0x259)](_0x5a8010){const _0x407988=_0x4a17a9,_0x13d08d=_0x5f5cf9=>{const _0x22408b=_0x4ef1;switch(_0x5f5cf9){case _0x22408b(0x243):return 0x1;case _0x22408b(0x1f3):return 0x2;case _0x22408b(0x23e):return 0x3;case _0x22408b(0x186):return 0x4;}};return _0x5a8010[_0x407988(0x22d)]((_0x436768,_0x4bc106)=>_0x13d08d(_0x436768[_0x407988(0x1fe)])-_0x13d08d(_0x4bc106[_0x407988(0x1fe)]));}}
|
|
@@ -56,7 +56,7 @@ export declare class AIReviewModeUI extends ContextPlugin {
|
|
|
56
56
|
}): void;
|
|
57
57
|
showGeneralErrorView(): void;
|
|
58
58
|
showChunkErrorView(): void;
|
|
59
|
-
setCheckResultTitle(title: string): void;
|
|
59
|
+
setCheckResultTitle(title: string, subtitle?: string): void;
|
|
60
60
|
setActiveStateInResults(id: string): void;
|
|
61
61
|
resetActiveStateInResults(): void;
|
|
62
62
|
updateChangeState(id: string, status: 'active' | 'accepted' | 'rejected'): void;
|
|
@@ -66,6 +66,8 @@ export declare class AIReviewModeUI extends ContextPlugin {
|
|
|
66
66
|
hideActionsWhenResultIsReady(): void;
|
|
67
67
|
showChangeBalloon(change: AIReviewCheckResultChange, target: HTMLElement): void;
|
|
68
68
|
hideChangeBalloon(): void;
|
|
69
|
+
hideDiffInBalloon(): void;
|
|
70
|
+
showDiffInBalloon(): void;
|
|
69
71
|
getChangeElement(changeId: string): HTMLElement | null;
|
|
70
72
|
deactivateChange(): void;
|
|
71
73
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2d4d(_0x5a980e,_0x1d4d74){const _0x35b7c0=_0x35b7();return _0x2d4d=function(_0x2d4d80,_0xbb764a){_0x2d4d80=_0x2d4d80-0x12b;let _0x530891=_0x35b7c0[_0x2d4d80];return _0x530891;},_0x2d4d(_0x5a980e,_0x1d4d74);}const _0x10c537=_0x2d4d;(function(_0x3a1e62,_0x563e13){const _0x33a9b5=_0x2d4d,_0x5c31db=_0x3a1e62();while(!![]){try{const _0x2d93d8=-parseInt(_0x33a9b5(0x16f))/0x1*(parseInt(_0x33a9b5(0x13f))/0x2)+-parseInt(_0x33a9b5(0x17f))/0x3+-parseInt(_0x33a9b5(0x131))/0x4+parseInt(_0x33a9b5(0x16a))/0x5*(-parseInt(_0x33a9b5(0x141))/0x6)+-parseInt(_0x33a9b5(0x183))/0x7*(parseInt(_0x33a9b5(0x136))/0x8)+parseInt(_0x33a9b5(0x17c))/0x9+parseInt(_0x33a9b5(0x134))/0xa;if(_0x2d93d8===_0x563e13)break;else _0x5c31db['push'](_0x5c31db['shift']());}catch(_0xbd7228){_0x5c31db['push'](_0x5c31db['shift']());}}}(_0x35b7,0x605c3));import{ContextPlugin as _0x4026c6}from'ckeditor5/src/core.js';import{IconAIReview as _0x158efd}from'ckeditor5/src/icons.js';import{BodyCollection as _0x1b4550}from'ckeditor5/src/ui.js';import{AITabs as _0x254bc0}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x28eeed}from'./ui/aireviewmodeview.js';import{getTranslation as _0x4c0a16}from'../aicore/utils/common-translations.js';import{AIReviewModeBalloonSuggestionItemView as _0x2260c2}from'./ui/aireviewmodeballoonsuggestionview.js';import'../../theme/aireviewmode/aireviewmode.css';function _0x35b7(){const _0x355707=['error-general','fire','setAvailableChecks','element','accepted','hideResult','context','resetActiveStateInResults','pluginName','status','attachToDom','abortReviewStream','requires','leaveReviewModeResultList','updateChangeState','view','showReviewCheckResultsView','detachFromDom','activateChange','AITabs','showActionsWhenResultIsReady','_reviewModeBalloonSuggestionItemView','5dzphOF','hideBalloon','retryReview','leaveReviewMode','setActiveStateInResults','677828CgsZns','activateTab','get','runReviewCheck','showReviewCheckListView','setTitle','hideActionsWhenResultIsReady','forEach','_reviewModeView','showChangeBalloon','delegate','hideDiffInBalloon','showNoChangesView','4963968nJyovP','locale','showChunkErrorView','2126664bvFdkW','toggleDiff','destroy','addTab','967666CHCdpd','learnMore','showReviewCompletedView','getResults','showCheckRunResult','setCheckResultTitle','deactivateChange','1118204OuhOKE','isOfficialPlugin','addCheckRunResult','24366120gpePqQ','AI_REVIEW_MODE','32ntyZtg','showCheckRunResults','showGeneralErrorView','plugins','rejected','showBalloon','finishReview','isPremiumPlugin','hasChecks','2DZsMjw','getReviewCheckList','2245524uAUakv','init','setItemAsActive','getChangeElement','reviewCheckResultsView','error-chunk','dismissChange','setItemAsInactive','AIReviewModeUI','_bodyCollection','setChecks','find','reviewMode','showDiffInBalloon','acceptAllChanges','hideChangeBalloon','acceptChange','showReviewCheckList','reviewCheckListView'];_0x35b7=function(){return _0x355707;};return _0x35b7();}export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x10c537(0x140),_0x10c537(0x172),_0x10c537(0x15f),_0x10c537(0x180),_0x10c537(0x14f),_0x10c537(0x161),_0x10c537(0x166),_0x10c537(0x151),_0x10c537(0x147),_0x10c537(0x12b),_0x10c537(0x13c),_0x10c537(0x16c)];export class AIReviewModeUI extends _0x4026c6{[_0x10c537(0x177)];[_0x10c537(0x169)];[_0x10c537(0x14a)];static get[_0x10c537(0x160)](){return[_0x254bc0];}static get[_0x10c537(0x15c)](){const _0x210147=_0x10c537;return _0x210147(0x149);}static get[_0x10c537(0x132)](){return!0x0;}static get[_0x10c537(0x13d)](){return!0x0;}constructor(_0x5e2995){const _0x101557=_0x10c537;super(_0x5e2995),this[_0x101557(0x14a)]=new _0x1b4550(this[_0x101557(0x15a)][_0x101557(0x17d)]),this[_0x101557(0x14a)][_0x101557(0x15e)](),this[_0x101557(0x177)]=new _0x28eeed(this[_0x101557(0x15a)][_0x101557(0x17d)]),this[_0x101557(0x177)][_0x101557(0x179)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this[_0x101557(0x169)]=new _0x2260c2(this[_0x101557(0x15a)][_0x101557(0x17d)],this[_0x101557(0x14a)]),this[_0x101557(0x169)][_0x101557(0x179)](_0x101557(0x151),_0x101557(0x147),_0x101557(0x130))['to'](this);}[_0x10c537(0x142)](){const _0x12b406=_0x10c537,_0x41c6ea=this[_0x12b406(0x15a)][_0x12b406(0x139)][_0x12b406(0x171)](_0x12b406(0x167));_0x41c6ea[_0x12b406(0x163)]['on'](_0x12b406(0x170),(_0xeb5717,_0x18558e)=>{const _0x1c5423=_0x12b406;_0x1c5423(0x14d)===_0x18558e?this[_0x1c5423(0x155)](_0x1c5423(0x140)):this[_0x1c5423(0x155)](_0x1c5423(0x16d));}),_0x41c6ea[_0x12b406(0x163)][_0x12b406(0x182)]({'id':_0x12b406(0x14d),'buttonLabel':_0x4c0a16(this[_0x12b406(0x15a)][_0x12b406(0x17d)],_0x12b406(0x135)),'buttonIcon':_0x158efd,'order':0x0,'content':this[_0x12b406(0x177)]});}[_0x10c537(0x181)](){const _0x11fcc9=_0x10c537;this[_0x11fcc9(0x14a)][_0x11fcc9(0x165)](),super[_0x11fcc9(0x181)]();}[_0x10c537(0x156)](_0x4a7007){const _0x36bcc4=_0x10c537;this[_0x36bcc4(0x177)][_0x36bcc4(0x153)][_0x36bcc4(0x13e)]()||this[_0x36bcc4(0x177)][_0x36bcc4(0x153)][_0x36bcc4(0x14b)](_0x4a7007),this[_0x36bcc4(0x177)][_0x36bcc4(0x173)]();}[_0x10c537(0x152)](){const _0x592e00=_0x10c537;this[_0x592e00(0x155)](_0x592e00(0x140));}[_0x10c537(0x137)](_0x473d85){const _0x4505c4=_0x10c537;_0x473d85&&(_0x4505c4(0x154)!==_0x473d85[_0x4505c4(0x15d)]?_0x4505c4(0x146)!==_0x473d85[_0x4505c4(0x15d)]?this[_0x4505c4(0x177)][_0x4505c4(0x164)]():this[_0x4505c4(0x17e)]():this[_0x4505c4(0x138)]());}[_0x10c537(0x12e)](_0x29d6db){const _0x5347ba=_0x10c537;this[_0x5347ba(0x177)][_0x5347ba(0x133)](_0x29d6db);}[_0x10c537(0x138)](){const _0x2dcb21=_0x10c537;this[_0x2dcb21(0x177)][_0x2dcb21(0x138)]();}[_0x10c537(0x17e)](){const _0x5d57ef=_0x10c537;this[_0x5d57ef(0x177)][_0x5d57ef(0x17e)]();}[_0x10c537(0x12f)](_0x4620a2,_0x3f5da7){const _0x1c7519=_0x10c537;this[_0x1c7519(0x177)][_0x1c7519(0x145)][_0x1c7519(0x174)](_0x4620a2,_0x3f5da7);}[_0x10c537(0x16e)](_0x318cbe){const _0x159ea7=_0x10c537;this[_0x159ea7(0x177)][_0x159ea7(0x145)][_0x159ea7(0x12d)]()[_0x159ea7(0x176)](_0x5170b5=>{const _0x5ed9fe=_0x159ea7;_0x5170b5['id']===_0x318cbe&&_0x5170b5[_0x5ed9fe(0x143)]();});}[_0x10c537(0x15b)](){const _0x5446d4=_0x10c537;this[_0x5446d4(0x177)][_0x5446d4(0x145)][_0x5446d4(0x12d)]()[_0x5446d4(0x176)](_0x2a0b8a=>_0x2a0b8a[_0x5446d4(0x148)]());}[_0x10c537(0x162)](_0x46dcd3,_0x36f8d9){const _0x5e12f2=_0x10c537;_0x5e12f2(0x158)!==_0x36f8d9&&_0x5e12f2(0x13a)!==_0x36f8d9||this[_0x5e12f2(0x177)][_0x5e12f2(0x145)][_0x5e12f2(0x159)](_0x46dcd3);}[_0x10c537(0x12c)](){const _0x5e8728=_0x10c537;this[_0x5e8728(0x177)][_0x5e8728(0x12c)]();}[_0x10c537(0x168)](){const _0x49a226=_0x10c537;this[_0x49a226(0x177)][_0x49a226(0x168)]();}[_0x10c537(0x17b)](){const _0x332c8a=_0x10c537;this[_0x332c8a(0x177)][_0x332c8a(0x17b)]();}[_0x10c537(0x175)](){const _0x12aa22=_0x10c537;this[_0x12aa22(0x177)][_0x12aa22(0x175)]();}[_0x10c537(0x178)](_0x6d657a,_0x2ebc72){const _0x214091=_0x10c537;this[_0x214091(0x169)][_0x214091(0x13b)](_0x6d657a,_0x2ebc72);}[_0x10c537(0x150)](){const _0x1c4fa7=_0x10c537;this[_0x1c4fa7(0x169)][_0x1c4fa7(0x16b)]();}[_0x10c537(0x17a)](){const _0x288fe7=_0x10c537;this[_0x288fe7(0x169)][_0x288fe7(0x17a)]();}[_0x10c537(0x14e)](){const _0x384d15=_0x10c537;this[_0x384d15(0x169)][_0x384d15(0x14e)]();}[_0x10c537(0x144)](_0x1a23f5){const _0x374c9e=_0x10c537,_0x1d8308=this[_0x374c9e(0x177)][_0x374c9e(0x145)][_0x374c9e(0x12d)]()[_0x374c9e(0x14c)](_0x4f178b=>_0x4f178b['id']===_0x1a23f5);return _0x1d8308?_0x1d8308[_0x374c9e(0x157)]:null;}[_0x10c537(0x130)](){const _0x1959f4=_0x10c537;this[_0x1959f4(0x169)][_0x1959f4(0x130)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x54c9(_0x21e851,_0x2d60c2){var _0x4d50fe=_0x4d50();return _0x54c9=function(_0x54c989,_0x1c2091){_0x54c989=_0x54c989-0xdb;var _0x179ae2=_0x4d50fe[_0x54c989];return _0x179ae2;},_0x54c9(_0x21e851,_0x2d60c2);}var _0x3d95e4=_0x54c9;(function(_0x2c72dc,_0x1b10fe){var _0x5560c7=_0x54c9,_0x56e1c0=_0x2c72dc();while(!![]){try{var _0x523290=parseInt(_0x5560c7(0xe6))/0x1*(-parseInt(_0x5560c7(0xdf))/0x2)+parseInt(_0x5560c7(0xe7))/0x3*(parseInt(_0x5560c7(0xdc))/0x4)+parseInt(_0x5560c7(0xea))/0x5+-parseInt(_0x5560c7(0xe4))/0x6+-parseInt(_0x5560c7(0xe3))/0x7*(parseInt(_0x5560c7(0xe0))/0x8)+-parseInt(_0x5560c7(0xe2))/0x9+-parseInt(_0x5560c7(0xe9))/0xa*(-parseInt(_0x5560c7(0xdd))/0xb);if(_0x523290===_0x1b10fe)break;else _0x56e1c0['push'](_0x56e1c0['shift']());}catch(_0x14f76a){_0x56e1c0['push'](_0x56e1c0['shift']());}}}(_0x4d50,0x87473));function _0x4d50(){var _0x91727=['33922EXlCXq','6533520UhuEFL','useArgs','7YMJysX','3250833XNvwwn','options','20UtitAe','3189075mcqMAL','isParameterized','4RSXLxS','6465580VLkmCf','description','285502bBvHUe','328vuddQq','title','504216rJdQGc'];_0x4d50=function(){return _0x91727;};return _0x4d50();}export class AIReviewCheck{['id'];[_0x3d95e4(0xe1)];[_0x3d95e4(0xde)];[_0x3d95e4(0xdb)];[_0x3d95e4(0xe5)];[_0x3d95e4(0xe8)];constructor({id:_0x324f99,title:_0x270d67,description:_0x2e3455,isParameterized:_0x1ada87,useArgs:_0x4a02ee,options:_0x2302a0}){var _0x43f6bb=_0x3d95e4;this['id']=_0x324f99,this[_0x43f6bb(0xe1)]=_0x270d67,this[_0x43f6bb(0xde)]=_0x2e3455,this[_0x43f6bb(0xdb)]=_0x1ada87,this[_0x43f6bb(0xe5)]=_0x4a02ee,this[_0x43f6bb(0xe8)]=_0x2302a0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x264977=_0x4144;(function(_0x4836bb,_0x3879f8){var _0x40d1b0=_0x4144,_0x186a0f=_0x4836bb();while(!![]){try{var _0x524620=-parseInt(_0x40d1b0(0x95))/0x1*(-parseInt(_0x40d1b0(0x98))/0x2)+-parseInt(_0x40d1b0(0x9f))/0x3*(-parseInt(_0x40d1b0(0x9a))/0x4)+parseInt(_0x40d1b0(0x97))/0x5*(-parseInt(_0x40d1b0(0x93))/0x6)+parseInt(_0x40d1b0(0x9c))/0x7*(parseInt(_0x40d1b0(0x96))/0x8)+-parseInt(_0x40d1b0(0x94))/0x9+-parseInt(_0x40d1b0(0x9d))/0xa*(parseInt(_0x40d1b0(0x9e))/0xb)+parseInt(_0x40d1b0(0x9b))/0xc;if(_0x524620===_0x3879f8)break;else _0x186a0f['push'](_0x186a0f['shift']());}catch(_0x28147a){_0x186a0f['push'](_0x186a0f['shift']());}}}(_0x1cae,0x86e70));function _0x1cae(){var _0x475104=['9482499GwacPC','114131xVguJi','8GHinhV','25qqlOpK','2ocBWHn','models','4808ybyHVG','11607696wKtrZm','5458033hvIHes','473240ULLMNu','77TtsBON','2604GiNZZh','_models','1160466IFaNUm'];_0x1cae=function(){return _0x475104;};return _0x1cae();}import{AIReviewCheck as _0x24cbe2}from'./aireviewcheck.js';function _0x4144(_0x27df87,_0x391248){var _0x1cae20=_0x1cae();return _0x4144=function(_0x414446,_0x5d2ae3){_0x414446=_0x414446-0x92;var _0x9c9ca7=_0x1cae20[_0x414446];return _0x9c9ca7;},_0x4144(_0x27df87,_0x391248);}export class AIReviewCheckCustom extends _0x24cbe2{[_0x264977(0x92)]=[];get[_0x264977(0x99)](){var _0x3b9f70=_0x264977;return this[_0x3b9f70(0x92)];}set[_0x264977(0x99)](_0x48b043){var _0x5a7717=_0x264977;this[_0x5a7717(0x92)]=_0x48b043;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x154022=_0x1230;(function(_0x285d81,_0x2718c5){var _0x4f539f=_0x1230,_0x5be4ef=_0x285d81();while(!![]){try{var _0x50bef0=-parseInt(_0x4f539f(0x7b))/0x1+-parseInt(_0x4f539f(0x77))/0x2*(parseInt(_0x4f539f(0x76))/0x3)+parseInt(_0x4f539f(0x71))/0x4*(parseInt(_0x4f539f(0x72))/0x5)+-parseInt(_0x4f539f(0x78))/0x6+-parseInt(_0x4f539f(0x6f))/0x7+parseInt(_0x4f539f(0x75))/0x8+parseInt(_0x4f539f(0x6e))/0x9;if(_0x50bef0===_0x2718c5)break;else _0x5be4ef['push'](_0x5be4ef['shift']());}catch(_0x5bca83){_0x5be4ef['push'](_0x5be4ef['shift']());}}}(_0x1869,0xdd542));import{ObservableMixin as _0xdf3df7}from'ckeditor5/src/utils.js';import{AIReviewCheck as _0x2cf7a1}from'./aireviewcheck.js';function _0x1230(_0x354d16,_0x2c10e0){var _0x1869a2=_0x1869();return _0x1230=function(_0x12308b,_0x468106){_0x12308b=_0x12308b-0x6c;var _0x3bd341=_0x1869a2[_0x12308b];return _0x3bd341;},_0x1230(_0x354d16,_0x2c10e0);}function _0x1869(){var _0x3419fe=['_checks','8687840EzcXmc','951738RCvDwG','10uREaVU','10791684UOxQGk','checks','map','1205288lojRHh','getCheckById','custom','28252593SbYYVL','713489tgozGr','_mapCheckDefinitions','80792lMRmxl','340UYawbi','find'];_0x1869=function(){return _0x3419fe;};return _0x1869();}import{AIReviewCheckCustom as _0x16607c}from'./aireviewcheckcustom.js';export class AIReviewCheckList extends _0xdf3df7(){[_0x154022(0x74)];constructor(_0x2c6283){var _0x1a1e62=_0x154022;super(),this[_0x1a1e62(0x74)]=this[_0x1a1e62(0x70)](_0x2c6283);}get[_0x154022(0x79)](){var _0x125b3b=_0x154022;return this[_0x125b3b(0x74)];}[_0x154022(0x6c)](_0x501a9d){var _0x289b91=_0x154022;return this[_0x289b91(0x79)][_0x289b91(0x73)](_0x40e536=>_0x40e536['id']===_0x501a9d);}[_0x154022(0x70)](_0x523d9e){var _0x4a7805=_0x154022;return _0x523d9e[_0x4a7805(0x7a)](_0x5503ad=>_0x4a7805(0x6d)===_0x5503ad['id']?new _0x16607c(_0x5503ad):new _0x2cf7a1(_0x5503ad));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x51032d=_0x4b04;(function(_0x1c1151,_0x272c7c){var _0x89086d=_0x4b04,_0x20d027=_0x1c1151();while(!![]){try{var _0x2fc3b9=parseInt(_0x89086d(0x1ec))/0x1*(-parseInt(_0x89086d(0x1f0))/0x2)+parseInt(_0x89086d(0x1ee))/0x3+parseInt(_0x89086d(0x1f1))/0x4*(parseInt(_0x89086d(0x1f4))/0x5)+parseInt(_0x89086d(0x1ed))/0x6+parseInt(_0x89086d(0x1f2))/0x7*(parseInt(_0x89086d(0x1fa))/0x8)+-parseInt(_0x89086d(0x1f8))/0x9*(parseInt(_0x89086d(0x1f9))/0xa)+parseInt(_0x89086d(0x1ef))/0xb*(-parseInt(_0x89086d(0x1f7))/0xc);if(_0x2fc3b9===_0x272c7c)break;else _0x20d027['push'](_0x20d027['shift']());}catch(_0x39cbc2){_0x20d027['push'](_0x20d027['shift']());}}}(_0x529b,0xe2a03));function _0x4b04(_0x22f922,_0x189bd7){var _0x529ba9=_0x529b();return _0x4b04=function(_0x4b0491,_0x4798a0){_0x4b0491=_0x4b0491-0x1ec;var _0x559480=_0x529ba9[_0x4b0491];return _0x559480;},_0x4b04(_0x22f922,_0x189bd7);}import{EmitterMixin as _0x2f19ca}from'ckeditor5/src/utils.js';function _0x529b(){var _0x3d29db=['contentNew','11860qtgklF','documentVersion','contentInitial','14557080KFlQls','1647630iIObwk','100fQxFWY','8MQJOtu','158556wnlSMA','8703984itFPhf','1715748UxHVtE','11vGmJRM','20TkXrpU','2840TBanyO','12956363OkVcGS'];_0x529b=function(){return _0x3d29db;};return _0x529b();}export class AIReviewCheckResult extends _0x2f19ca(){['id'];[_0x51032d(0x1f3)];[_0x51032d(0x1f6)];[_0x51032d(0x1f5)];constructor({id:_0x4b2266,contentNew:_0x56e657,contentInitial:_0x241fb0,documentVersion:_0x265f91}){var _0x1874eb=_0x51032d;super(),this['id']=_0x4b2266,this[_0x1874eb(0x1f3)]=_0x56e657,this[_0x1874eb(0x1f6)]=_0x241fb0,this[_0x1874eb(0x1f5)]=_0x265f91;}}
|
|
@@ -37,6 +37,12 @@ export declare class AIReviewCheckResultChange extends /* #__PURE__ */ AIReviewC
|
|
|
37
37
|
* @observable
|
|
38
38
|
*/
|
|
39
39
|
isActivated: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates whether the change has been rated.
|
|
42
|
+
*
|
|
43
|
+
* @observable
|
|
44
|
+
*/
|
|
45
|
+
isRated: boolean;
|
|
40
46
|
/**
|
|
41
47
|
* Creates a new instance of the AIReviewCheckResult.
|
|
42
48
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x289a9a=_0x21be;function _0x49e6(){var _0x354966=['663719zMAgzo','active','contentDiffed','2223570VAGyXz','isActivated','isRated','operationsIsolated','205NJlfAB','2509128AEMhFg','4WvduZa','9epcVFx','_data','24feNSOx','5887170lZxOhS','status','operations','22CrrcBF','1059552xScsBU','_editorOperations','57724AAFHqN','context','set','145846rAzoOo','parent'];_0x49e6=function(){return _0x354966;};return _0x49e6();}(function(_0x30ab52,_0x50e64b){var _0x5551f6=_0x21be,_0x37f577=_0x30ab52();while(!![]){try{var _0x269e29=-parseInt(_0x5551f6(0x19d))/0x1*(-parseInt(_0x5551f6(0x190))/0x2)+parseInt(_0x5551f6(0x198))/0x3+parseInt(_0x5551f6(0x19a))/0x4*(-parseInt(_0x5551f6(0x1a6))/0x5)+parseInt(_0x5551f6(0x194))/0x6+parseInt(_0x5551f6(0x19f))/0x7*(-parseInt(_0x5551f6(0x193))/0x8)+-parseInt(_0x5551f6(0x191))/0x9*(-parseInt(_0x5551f6(0x1a2))/0xa)+-parseInt(_0x5551f6(0x197))/0xb*(parseInt(_0x5551f6(0x1a7))/0xc);if(_0x269e29===_0x50e64b)break;else _0x37f577['push'](_0x37f577['shift']());}catch(_0x4fef62){_0x37f577['push'](_0x37f577['shift']());}}}(_0x49e6,0x87486));import{ObservableMixin as _0x744d09}from'ckeditor5/src/utils.js';function _0x21be(_0x257b5c,_0x52e886){var _0x49e6ac=_0x49e6();return _0x21be=function(_0x21be95,_0x25990c){_0x21be95=_0x21be95-0x190;var _0x4c2a49=_0x49e6ac[_0x21be95];return _0x4c2a49;},_0x21be(_0x257b5c,_0x52e886);}export class AIReviewCheckResultChange extends _0x744d09(){['id'];[_0x289a9a(0x19e)];[_0x289a9a(0x192)];[_0x289a9a(0x199)]=[];constructor(_0x175570,_0x537848,_0x527b10){var _0x2b8f41=_0x289a9a;super(),this['id']=_0x175570,this[_0x2b8f41(0x19e)]=_0x527b10,this[_0x2b8f41(0x192)]=_0x537848,this[_0x2b8f41(0x19c)](_0x2b8f41(0x1a3),!0x1),this[_0x2b8f41(0x19c)](_0x2b8f41(0x1a4),!0x1),this[_0x2b8f41(0x19c)](_0x2b8f41(0x195),_0x2b8f41(0x1a0));}get[_0x289a9a(0x1a1)](){var _0x355e63=_0x289a9a;return this[_0x355e63(0x192)][_0x355e63(0x19b)]();}get[_0x289a9a(0x196)](){var _0x592ed5=_0x289a9a;return this[_0x592ed5(0x192)][_0x592ed5(0x196)];}get[_0x289a9a(0x1a5)](){var _0x47396b=_0x289a9a;return this[_0x47396b(0x192)][_0x47396b(0x1a5)];}}
|
|
@@ -23,6 +23,9 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
23
23
|
* The check run ID.
|
|
24
24
|
*/
|
|
25
25
|
readonly id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The call ID returned by the AI API when the check run is started.
|
|
28
|
+
*/
|
|
26
29
|
callId?: string;
|
|
27
30
|
constructor(documentData: AIDocumentData, sourceCheck: AIReviewCheck, connector: AIConnector, params?: Array<string>, args?: Record<string, any>);
|
|
28
31
|
/**
|
|
@@ -37,6 +40,18 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
37
40
|
* Returns the check title.
|
|
38
41
|
*/
|
|
39
42
|
get title(): string;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the check subtitle.
|
|
45
|
+
*/
|
|
46
|
+
get subTitle(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the check ID.
|
|
49
|
+
*/
|
|
50
|
+
get reviewName(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the check run has any modifications (accepted or rejected changes).
|
|
53
|
+
*/
|
|
54
|
+
get hasModifications(): boolean;
|
|
40
55
|
/**
|
|
41
56
|
* Starts the check run resulting in an API call. After the call is finished, the status
|
|
42
57
|
* and list of changes are updated.
|
|
@@ -59,9 +74,22 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
59
74
|
activateChange(changeId: string): void;
|
|
60
75
|
deactivateChange(): void;
|
|
61
76
|
forceReadyState(): void;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Sends the rating to an AI API for the review check run.
|
|
79
|
+
*
|
|
80
|
+
* If `changeId` is provided, the rating will be associated with that specific result, which
|
|
81
|
+
* the change is a part of (since the result is splitted into multiple changes). The `resultId`
|
|
82
|
+
* is used on the backend to track ratings for individual results.
|
|
83
|
+
* If `changeId` is not provided, the rating will be send as general for the whole check run.
|
|
84
|
+
*
|
|
85
|
+
* The rating will not be send if:
|
|
86
|
+
* - There is no `callId` (means the check run was not started or failed before getting the ID).
|
|
87
|
+
* - There are no changes in the check run.
|
|
88
|
+
* - The change with given `changeId` was already rated.
|
|
89
|
+
* - The check run is not ready yet (still streaming), since we don't know the final number of changes
|
|
90
|
+
* yet, which is required to send the rating.
|
|
91
|
+
*/
|
|
92
|
+
sendRating(changeId?: string): Promise<void>;
|
|
65
93
|
}
|
|
66
94
|
export type AIReviewCheckRunUpdatedEvent = {
|
|
67
95
|
name: 'reviewCheckRunUpdated';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2da551=_0x48c7;function _0x48c7(_0x553759,_0x5ed556){const _0x522f3d=_0x522f();return _0x48c7=function(_0x48c7ac,_0x2e8ff8){_0x48c7ac=_0x48c7ac-0x10c;let _0x4970e4=_0x522f3d[_0x48c7ac];return _0x4970e4;},_0x48c7(_0x553759,_0x5ed556);}(function(_0x43a19a,_0xdc9fac){const _0x4f88cb=_0x48c7,_0x45cd71=_0x43a19a();while(!![]){try{const _0xe0f309=parseInt(_0x4f88cb(0x161))/0x1*(-parseInt(_0x4f88cb(0x144))/0x2)+parseInt(_0x4f88cb(0x11e))/0x3*(parseInt(_0x4f88cb(0x14a))/0x4)+-parseInt(_0x4f88cb(0x157))/0x5+parseInt(_0x4f88cb(0x10c))/0x6*(-parseInt(_0x4f88cb(0x135))/0x7)+parseInt(_0x4f88cb(0x11f))/0x8+parseInt(_0x4f88cb(0x153))/0x9+-parseInt(_0x4f88cb(0x145))/0xa*(-parseInt(_0x4f88cb(0x124))/0xb);if(_0xe0f309===_0xdc9fac)break;else _0x45cd71['push'](_0x45cd71['shift']());}catch(_0x3df3cf){_0x45cd71['push'](_0x45cd71['shift']());}}}(_0x522f,0x68fb3));import{ObservableMixin as _0x44bb11,uid as _0x22cd51}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x22eb92}from'./aireviewcheckresult.js';import{AIReviewCheckResultChange as _0x590891}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x44bb11(){['id']=_0x22cd51();[_0x2da551(0x12c)];[_0x2da551(0x154)]=new Map();[_0x2da551(0x11d)]=[];[_0x2da551(0x11a)];[_0x2da551(0x156)];[_0x2da551(0x146)];[_0x2da551(0x14e)];[_0x2da551(0x122)];[_0x2da551(0x12f)]=null;[_0x2da551(0x125)];constructor(_0x50cb14,_0x34268e,_0x7c298c,_0x270eb2,_0x849bff){const _0x3dbbc8=_0x2da551;super(),this[_0x3dbbc8(0x11a)]=_0x50cb14,this[_0x3dbbc8(0x156)]=_0x34268e,this[_0x3dbbc8(0x146)]=_0x7c298c,this[_0x3dbbc8(0x14e)]=_0x270eb2,this[_0x3dbbc8(0x122)]=_0x849bff,this['on'](_0x3dbbc8(0x150),(_0x422a1b,_0x2c1376,_0x239fa8)=>{const _0xa9e78e=_0x3dbbc8;this[_0xa9e78e(0x127)](_0xa9e78e(0x149),{'status':_0x239fa8,'run':this,'error':this[_0xa9e78e(0x125)]});}),this[_0x3dbbc8(0x115)](_0x3dbbc8(0x165),_0x3dbbc8(0x141));}get[_0x2da551(0x110)](){const _0x2ed7df=_0x2da551;return this[_0x2ed7df(0x11a)];}get[_0x2da551(0x13f)](){const _0x27fbc1=_0x2da551;return this[_0x27fbc1(0x154)][_0x27fbc1(0x10d)];}get[_0x2da551(0x159)](){const _0x5b5e33=_0x2da551;return this[_0x5b5e33(0x156)][_0x5b5e33(0x159)];}get[_0x2da551(0x148)](){return'';}get[_0x2da551(0x128)](){const _0x25db5c=_0x2da551;return this[_0x25db5c(0x156)]['id'];}get[_0x2da551(0x15a)](){const _0x5c329d=_0x2da551;return!this[_0x5c329d(0x11d)][_0x5c329d(0x111)](_0x11e4e2=>_0x5c329d(0x134)===_0x11e4e2[_0x5c329d(0x165)]);}async[_0x2da551(0x10f)](){const _0x54910b=_0x2da551;this[_0x54910b(0x165)]=_0x54910b(0x114),this[_0x54910b(0x125)]=void 0x0;try{this[_0x54910b(0x12f)]=this[_0x54910b(0x14b)]();const _0x4a7261=await this[_0x54910b(0x12f)][_0x54910b(0x140)]();this[_0x54910b(0x165)]=_0x54910b(0x168);for await(const _0x393e55 of _0x4a7261)_0x54910b(0x162)!==_0x393e55[_0x54910b(0x168)][_0x54910b(0x120)]&&(_0x54910b(0x129)!==_0x393e55[_0x54910b(0x168)][_0x54910b(0x120)]?_0x54910b(0x138)!==_0x393e55[_0x54910b(0x131)]?this[_0x54910b(0x126)](_0x393e55[_0x54910b(0x168)][_0x54910b(0x142)],_0x393e55[_0x54910b(0x168)][_0x54910b(0x118)]):this[_0x54910b(0x12c)]=_0x393e55[_0x54910b(0x168)][_0x54910b(0x12c)]:this[_0x54910b(0x165)]=_0x54910b(0x158));_0x54910b(0x158)!==this[_0x54910b(0x165)]&&(0x0===this[_0x54910b(0x154)][_0x54910b(0x10d)]?this[_0x54910b(0x165)]=_0x54910b(0x162):this[_0x54910b(0x165)]=_0x54910b(0x132));}catch(_0x2d3a51){this[_0x54910b(0x125)]=_0x2d3a51,_0x2d3a51 instanceof Error&&_0x2d3a51[_0x54910b(0x130)][_0x54910b(0x167)](_0x54910b(0x163))?this[_0x54910b(0x165)]=_0x54910b(0x12a):this[_0x54910b(0x165)]=_0x54910b(0x139);}finally{this[_0x54910b(0x12f)]=null;}}async[_0x2da551(0x13a)](){const _0x1335c5=_0x2da551;this[_0x1335c5(0x154)][_0x1335c5(0x11b)](),this[_0x1335c5(0x11d)][_0x1335c5(0x112)]=0x0,this[_0x1335c5(0x125)]=void 0x0,await this[_0x1335c5(0x10f)]();}[_0x2da551(0x13e)](_0xa26207,_0x3174eb){const _0x4f964d=_0x2da551,_0x182921=this[_0x4f964d(0x154)][_0x4f964d(0x15f)](_0xa26207);if(!_0x182921)return;const _0x1a1860=[];_0x3174eb[_0x4f964d(0x123)]((_0x440e63,_0x4add11)=>{const _0x8593d8=_0x4f964d,_0x36d199=new _0x590891(_0x182921['id']+'-'+_0x4add11,_0x440e63,_0x182921);_0x36d199['on'](_0x8593d8(0x150),()=>{const _0x1ccf67=_0x8593d8;_0x1ccf67(0x155)===_0x36d199[_0x1ccf67(0x165)]?this[_0x1ccf67(0x127)](_0x1ccf67(0x15b),{'change':_0x36d199}):_0x1ccf67(0x13d)===_0x36d199[_0x1ccf67(0x165)]&&this[_0x1ccf67(0x127)](_0x1ccf67(0x13c),{'change':_0x36d199});}),_0x36d199['on'](_0x8593d8(0x113),()=>{const _0x53270c=_0x8593d8;_0x36d199[_0x53270c(0x12d)]?this[_0x53270c(0x127)](_0x53270c(0x11c),{'change':_0x36d199}):this[_0x53270c(0x127)](_0x53270c(0x119),{'change':_0x36d199});}),this[_0x8593d8(0x11d)][_0x8593d8(0x121)](_0x36d199),_0x1a1860[_0x8593d8(0x121)](_0x36d199);}),this[_0x4f964d(0x127)](_0x4f964d(0x117),{'changes':_0x1a1860,'result':_0x182921,'source':this});}[_0x2da551(0x147)](){const _0x50f82f=_0x2da551;this[_0x50f82f(0x12f)]&&(this[_0x50f82f(0x12f)][_0x50f82f(0x133)][_0x50f82f(0x147)](),this[_0x50f82f(0x12f)]=null,this[_0x50f82f(0x165)]=_0x50f82f(0x12a));}[_0x2da551(0x14d)](_0x20fd31){const _0x438698=_0x2da551,_0x311792=this[_0x438698(0x11d)][_0x438698(0x166)](_0x2195c2=>_0x2195c2['id']===_0x20fd31);return!(!_0x311792||_0x438698(0x134)!==_0x311792[_0x438698(0x165)]);}[_0x2da551(0x151)](){const _0x50be7d=_0x2da551;return this[_0x50be7d(0x11d)][_0x50be7d(0x12b)](_0x1e9715=>_0x50be7d(0x134)===_0x1e9715[_0x50be7d(0x165)]);}[_0x2da551(0x14c)](){const _0x12d3db=_0x2da551;for(const _0x1bd48d of this[_0x12d3db(0x11d)])_0x12d3db(0x134)===_0x1bd48d[_0x12d3db(0x165)]&&(_0x1bd48d[_0x12d3db(0x165)]=_0x12d3db(0x155));this[_0x12d3db(0x10e)]();}[_0x2da551(0x160)](_0x417bb3){const _0x498fd3=_0x2da551,_0x86312a=this[_0x498fd3(0x11d)][_0x498fd3(0x166)](_0x41fde9=>_0x41fde9['id']===_0x417bb3);_0x86312a&&_0x498fd3(0x134)===_0x86312a[_0x498fd3(0x165)]&&(_0x86312a[_0x498fd3(0x165)]=_0x498fd3(0x155)),this[_0x498fd3(0x10e)]();}[_0x2da551(0x15c)](_0x39b983){const _0x91593c=_0x2da551,_0x3021a3=this[_0x91593c(0x11d)][_0x91593c(0x166)](_0x2d54f0=>_0x2d54f0['id']===_0x39b983);_0x3021a3&&_0x91593c(0x134)===_0x3021a3[_0x91593c(0x165)]&&(_0x3021a3[_0x91593c(0x165)]=_0x91593c(0x13d)),this[_0x91593c(0x10e)]();}[_0x2da551(0x164)](_0x53932b){const _0x5627d8=_0x2da551;this[_0x5627d8(0x11d)][_0x5627d8(0x12b)](_0x338ffd=>_0x338ffd[_0x5627d8(0x12d)]&&_0x338ffd['id']!==_0x53932b)[_0x5627d8(0x123)](_0x240b16=>{const _0x38766a=_0x5627d8;_0x240b16[_0x38766a(0x12d)]=!0x1;});const _0x5acf1f=this[_0x5627d8(0x11d)][_0x5627d8(0x166)](_0x3cad4e=>_0x3cad4e['id']===_0x53932b);_0x5acf1f&&(_0x5acf1f[_0x5627d8(0x12d)]=!0x0);}[_0x2da551(0x15d)](){const _0x2e2b69=_0x2da551;this[_0x2e2b69(0x11d)][_0x2e2b69(0x12b)](_0x2d7c5b=>_0x2d7c5b[_0x2e2b69(0x12d)])[_0x2e2b69(0x123)](_0x4a5bae=>{const _0x39a2fe=_0x2e2b69;_0x4a5bae[_0x39a2fe(0x12d)]=!0x1;});}[_0x2da551(0x152)](){const _0x1ae630=_0x2da551;this[_0x1ae630(0x165)]=_0x1ae630(0x132);}async[_0x2da551(0x15e)](_0x56fffc){const _0x3fe3e2=_0x2da551;if(_0x3fe3e2(0x141)===this[_0x3fe3e2(0x165)]||_0x3fe3e2(0x114)===this[_0x3fe3e2(0x165)]||_0x3fe3e2(0x168)===this[_0x3fe3e2(0x165)])return;if(!this[_0x3fe3e2(0x12c)]||0x0===this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x112)])return;let _0x264281;if(_0x56fffc){const _0x54165d=this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x166)](_0x2aacef=>_0x2aacef['id']===_0x56fffc);if(_0x54165d&&_0x54165d[_0x3fe3e2(0x169)])return;_0x54165d&&(_0x264281=_0x54165d[_0x3fe3e2(0x13b)]['id'],_0x54165d[_0x3fe3e2(0x169)]=!0x0);}const _0x4df87c={'positiveCount':this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x12b)](_0x574719=>_0x3fe3e2(0x155)===_0x574719[_0x3fe3e2(0x165)])[_0x3fe3e2(0x112)],'totalCount':this[_0x3fe3e2(0x11d)][_0x3fe3e2(0x112)]};this[_0x3fe3e2(0x116)](_0x4df87c,this[_0x3fe3e2(0x12c)],_0x264281);}[_0x2da551(0x126)](_0x424ce5,_0x1404b5){const _0x5b67ca=_0x2da551,_0x30c16a=this[_0x5b67ca(0x11a)][_0x5b67ca(0x137)][_0x5b67ca(0x15f)](_0x424ce5);if(!_0x30c16a)return;const _0x1bea9d=_0x30c16a[_0x5b67ca(0x12e)]();if(_0x1bea9d===_0x1404b5)return;const _0x421c46=new _0x22eb92({'id':_0x424ce5,'contentInitial':_0x1bea9d,'contentNew':_0x1404b5,'documentVersion':this[_0x5b67ca(0x11a)][_0x5b67ca(0x136)]});this[_0x5b67ca(0x154)][_0x5b67ca(0x115)](_0x421c46['id'],_0x421c46),this[_0x5b67ca(0x127)](_0x5b67ca(0x14f),{'result':_0x421c46,'source':this});}[_0x2da551(0x10e)](){const _0x4e1da8=_0x2da551;if(_0x4e1da8(0x132)!==this[_0x4e1da8(0x165)])return;0x0===this[_0x4e1da8(0x11d)][_0x4e1da8(0x12b)](_0x103d2c=>_0x4e1da8(0x134)===_0x103d2c[_0x4e1da8(0x165)])[_0x4e1da8(0x112)]&&(this[_0x4e1da8(0x165)]=_0x4e1da8(0x143));}}function _0x522f(){const _0x3e7411=['activateChange','status','find','includes','data','isRated','14598QAACcO','size','_checkIfFinished','start','documentData','every','length','change:isActivated','loading','set','_sendRatingRequest','reviewCheckResultReady','textDelta','reviewCheckResultDeactivated','_documentData','clear','reviewCheckResultActivated','_changes','2073YpYTXR','1590656VkPnhj','operation','push','_reviewArgs','forEach','11YazVUV','_currentError','_addReviewCheckResult','fire','reviewName','error','aborted','filter','callId','isActivated','getContent','_activeRequest','message','event','ready','abortController','active','1477oCkGQn','version','elements','review-metadata','error-general','restart','parent','reviewCheckResultRejected','rejected','addResultChanges','processedResultsCount','getStream','initialized','dataId','finished','362fVJlOD','5922410FNFueY','_aiConnector','abort','subTitle','reviewCheckRunUpdated','4724FtqAre','_createApiRequest','markAllChangesAsAccepted','isChangeActive','_reviewParams','reviewCheckResultAdded','change:status','getActiveChanges','forceReadyState','4372101OMtzft','_results','accepted','_sourceCheck','4190330nwQsiY','error-chunk','title','hasModifications','reviewCheckResultAccepted','markChangeAsRejected','deactivateChange','sendRating','get','markChangeAsAccepted','1721hfQtYy','unmodified','ai-request-aborted'];_0x522f=function(){return _0x3e7411;};return _0x522f();}
|