@ckeditor/ckeditor5-ai 47.0.0-alpha.9 → 47.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- 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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/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/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/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.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.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aitabs/aitabs.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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd0b5ad=_0x1451;(function(_0xf52fef,_0x300b47){const _0x1e7498=_0x1451,_0x1a0358=_0xf52fef();while(!![]){try{const _0x2b6c65=parseInt(_0x1e7498(0x180))/0x1+parseInt(_0x1e7498(0x165))/0x2+parseInt(_0x1e7498(0x162))/0x3+parseInt(_0x1e7498(0x186))/0x4*(parseInt(_0x1e7498(0x185))/0x5)+-parseInt(_0x1e7498(0x164))/0x6+parseInt(_0x1e7498(0x15d))/0x7+-parseInt(_0x1e7498(0x167))/0x8*(parseInt(_0x1e7498(0x182))/0x9);if(_0x2b6c65===_0x300b47)break;else _0x1a0358['push'](_0x1a0358['shift']());}catch(_0x55027f){_0x1a0358['push'](_0x1a0358['shift']());}}}(_0x299c,0x7a0b5));function _0x299c(){const _0x3746c9=['ck-ai-mini-toolbar-copy-button__check-mark','isEnabled','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','_setupCopyButton','ck-ai-mini-toolbar','_setupShowChangesButton','length','dislike','554886tTWsLt','full','162315kbgpmr','dislikeButton','execute','3490510rLiioz','4MdpDXv','customView','AI_MINI_TOOLBAR_DISLIKE','AI_MINI_TOOLBAR_LIKE','showChangesButton','likeButton','children','showCopy','copyButton','6454217qZVqoA','showLike','ck-ai-mini-toolbar-copy-button','toggleShowChanges','items','2939559jgqWaf','isOn','4984746rWrfCY','1221074wXMfVS','set','1080JsrsGr','add','AI_MINI_TOOLBAR_COPY','like','_config','fire','isLoading','class','AI_SUGGESTION_BUTTON_SHOW_CHANGES','locale','extendTemplate','addMany','bind','showDislike','showChanges','_setupRatingButtons'];_0x299c=function(){return _0x3746c9;};return _0x299c();}import{ButtonView as _0x5de937,IconView as _0x515123,ToolbarView as _0x4b6b47}from'ckeditor5/src/ui.js';import{IconCheck as _0x2c5f65,IconCopy as _0x8e6cc8,IconShowChangesOff as _0x3f80b9,IconShowChangesOn as _0x27655d,IconThumbDown as _0xf743b5,IconThumbUp as _0x54f007}from'@ckeditor/ckeditor5-icons';function _0x1451(_0x4bff10,_0x5cbcee){const _0x299ce5=_0x299c();return _0x1451=function(_0x14510f,_0x40ca37){_0x14510f=_0x14510f-0x15d;let _0x2f5d4a=_0x299ce5[_0x14510f];return _0x2f5d4a;},_0x1451(_0x4bff10,_0x5cbcee);}import{getTranslation as _0x2c102d}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x4b6b47{[_0xd0b5ad(0x18e)];[_0xd0b5ad(0x18b)];[_0xd0b5ad(0x183)];[_0xd0b5ad(0x18a)];[_0xd0b5ad(0x16b)];constructor(_0x740284,_0x371bbc={},_0x10a9ba){const _0x1fb0ce=_0xd0b5ad;super(_0x740284),this[_0x1fb0ce(0x166)](_0x1fb0ce(0x16d),!0x1),this[_0x1fb0ce(0x16b)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x371bbc};const _0x4ac04b=!(this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x18d)]||this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x175)]||this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x15e)]||this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x174)]||this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x187)]?.[_0x1fb0ce(0x17e)]);this[_0x1fb0ce(0x16e)]=_0x4ac04b?_0x1fb0ce(0x179):_0x1fb0ce(0x17c),this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x18d)]&&(this[_0x1fb0ce(0x17b)](),this[_0x1fb0ce(0x161)][_0x1fb0ce(0x168)](this[_0x1fb0ce(0x18e)])),this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x175)]&&(this[_0x1fb0ce(0x17d)](_0x10a9ba),this[_0x1fb0ce(0x161)][_0x1fb0ce(0x168)](this[_0x1fb0ce(0x18a)])),this[_0x1fb0ce(0x176)](),this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x15e)]&&this[_0x1fb0ce(0x161)][_0x1fb0ce(0x168)](this[_0x1fb0ce(0x18b)]),this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x174)]&&this[_0x1fb0ce(0x161)][_0x1fb0ce(0x168)](this[_0x1fb0ce(0x183)]),this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x187)]&&this[_0x1fb0ce(0x161)][_0x1fb0ce(0x172)](this[_0x1fb0ce(0x16b)][_0x1fb0ce(0x187)]);}[_0xd0b5ad(0x176)](){const _0x148512=_0xd0b5ad;this[_0x148512(0x18b)]=new _0x5de937(this[_0x148512(0x170)]),this[_0x148512(0x18b)][_0x148512(0x166)]({'icon':_0x54f007,'label':_0x2c102d(this[_0x148512(0x170)],_0x148512(0x189)),'tooltip':!0x0}),this[_0x148512(0x18b)][_0x148512(0x173)](_0x148512(0x178))['to'](this,_0x148512(0x16d),_0x4786d0=>!_0x4786d0),this[_0x148512(0x18b)]['on'](_0x148512(0x184),()=>{const _0x598653=_0x148512;this[_0x598653(0x16c)](_0x598653(0x16a));}),this[_0x148512(0x183)]=new _0x5de937(this[_0x148512(0x170)]),this[_0x148512(0x183)][_0x148512(0x166)]({'icon':_0xf743b5,'label':_0x2c102d(this[_0x148512(0x170)],_0x148512(0x188)),'tooltip':!0x0}),this[_0x148512(0x183)][_0x148512(0x173)](_0x148512(0x178))['to'](this,_0x148512(0x16d),_0x2b35f1=>!_0x2b35f1),this[_0x148512(0x183)]['on'](_0x148512(0x184),()=>{const _0x3d18ca=_0x148512;this[_0x3d18ca(0x16c)](_0x3d18ca(0x17f));});}[_0xd0b5ad(0x17b)](){const _0x4f5dc1=_0xd0b5ad;this[_0x4f5dc1(0x18e)]=new _0x5de937(this[_0x4f5dc1(0x170)]),this[_0x4f5dc1(0x18e)][_0x4f5dc1(0x166)]({'icon':_0x8e6cc8,'label':_0x2c102d(this[_0x4f5dc1(0x170)],_0x4f5dc1(0x169)),'class':_0x4f5dc1(0x15f),'tooltip':!0x0}),this[_0x4f5dc1(0x18e)][_0x4f5dc1(0x173)](_0x4f5dc1(0x178))['to'](this,_0x4f5dc1(0x16d),_0x19f2f8=>!_0x19f2f8);const _0x4c2514=new _0x515123();_0x4c2514[_0x4f5dc1(0x166)]({'content':_0x2c5f65}),_0x4c2514[_0x4f5dc1(0x171)]({'attributes':{'class':[_0x4f5dc1(0x177)]}}),this[_0x4f5dc1(0x18e)]['on'](_0x4f5dc1(0x184),()=>{const _0x32dbc3=_0x4f5dc1;this[_0x32dbc3(0x18e)][_0x32dbc3(0x16e)]=_0x32dbc3(0x17a),setTimeout(()=>{const _0x46ea59=_0x32dbc3;this[_0x46ea59(0x18e)][_0x46ea59(0x16e)]=_0x46ea59(0x15f);},0x7d0);}),this[_0x4f5dc1(0x18e)][_0x4f5dc1(0x18c)][_0x4f5dc1(0x168)](_0x4c2514);}[_0xd0b5ad(0x17d)](_0x3be995){const _0x48372e=_0xd0b5ad;this[_0x48372e(0x18a)]=new _0x5de937(this[_0x48372e(0x170)]),this[_0x48372e(0x18a)][_0x48372e(0x166)]({'icon':_0x3f80b9,'label':_0x2c102d(this[_0x48372e(0x170)],_0x48372e(0x16f)),'withText':_0x48372e(0x181)==this[_0x48372e(0x16b)][_0x48372e(0x175)],'tooltip':_0x48372e(0x181)!=this[_0x48372e(0x16b)][_0x48372e(0x175)],'isOn':_0x3be995}),this[_0x48372e(0x18a)][_0x48372e(0x173)](_0x48372e(0x178))['to'](this,_0x48372e(0x16d),_0x4199bf=>!_0x4199bf),this[_0x48372e(0x18a)]['on'](_0x48372e(0x184),()=>{const _0x3842ba=_0x48372e,_0x592a73=!this[_0x3842ba(0x18a)][_0x3842ba(0x163)];this[_0x3842ba(0x18a)][_0x3842ba(0x166)]({'isOn':_0x592a73,'icon':_0x592a73?_0x27655d:_0x3f80b9}),this[_0x3842ba(0x16c)](_0x3842ba(0x160),_0x592a73);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12cbb9=_0x497c;(function(_0x2d52b1,_0x3c6459){const _0x434e4a=_0x497c,_0x52efb5=_0x2d52b1();while(!![]){try{const _0x3d20ae=parseInt(_0x434e4a(0x18e))/0x1*(parseInt(_0x434e4a(0x1b5))/0x2)+-parseInt(_0x434e4a(0x1c0))/0x3+parseInt(_0x434e4a(0x192))/0x4+-parseInt(_0x434e4a(0x1be))/0x5*(parseInt(_0x434e4a(0x190))/0x6)+parseInt(_0x434e4a(0x1b1))/0x7+-parseInt(_0x434e4a(0x195))/0x8*(-parseInt(_0x434e4a(0x1b6))/0x9)+parseInt(_0x434e4a(0x18c))/0xa*(-parseInt(_0x434e4a(0x1a9))/0xb);if(_0x3d20ae===_0x3c6459)break;else _0x52efb5['push'](_0x52efb5['shift']());}catch(_0x2fd581){_0x52efb5['push'](_0x52efb5['shift']());}}}(_0x2a67,0xa7526));import{View as _0x570931}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x55b3ee}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x41f341}from'../../utils/eventnames.js';import{PromiseQueue as _0x1df808}from'../../../aichat/utils/promisequeue.js';function _0x2a67(){const _0x2b6061=['set','hasPendingParts','markAsDone','div','first','hasNonEmptyParts','warning','updateContentParts','_children','index','isVisible','143DcvGor','state','from','ck-ai-suggestion__body','getPartView','delegate','queueEmptyPromise','_updateContentPartsPromiseQueue','721679wtufms','AI_SUGGESTION_NO_PARTS_WARNING','hasChanges','_showUnchangedParts','57504AveXcx','151407gNAUUt','enqueue','toggleHeader','some','pending','locale','get','partsCount','231760NGhYuz','ck-ai-suggestion__body__content-parts','1317981LYkyrG','find','updateContent','117460BOVdgS','setTemplate','41sxsGKl','empty-parts-warning','162rsWfpB','add','613820lmXUwr','createCollection','partDefinition','520sjttQl','updatePartState','addEventListener','_areActionsDisabled','setContent','abort','_emptyPartsWarningView','length','AI_SUGGESTION_EMPTY_PART_WARNING'];_0x2a67=function(){return _0x2b6061;};return _0x2a67();}function _0x497c(_0x1aa077,_0x96d3eb){const _0x2a6726=_0x2a67();return _0x497c=function(_0x497c5b,_0x51095a){_0x497c5b=_0x497c5b-0x18b;let _0x50f1aa=_0x2a6726[_0x497c5b];return _0x50f1aa;},_0x497c(_0x1aa077,_0x96d3eb);}import{AIChatFeedErrorItemView as _0x800cfc}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x5135d2}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x570931{[_0x12cbb9(0x1a6)];[_0x12cbb9(0x198)];[_0x12cbb9(0x1b4)];[_0x12cbb9(0x1b0)];[_0x12cbb9(0x19b)];constructor(_0x434896,{areActionsDisabled:_0x4e8268,showUnchangedParts:_0x157bc7}){const _0x5b2a64=_0x12cbb9;super(_0x434896),this[_0x5b2a64(0x198)]=_0x4e8268,this[_0x5b2a64(0x1b4)]=_0x157bc7,this[_0x5b2a64(0x19e)](_0x5b2a64(0x19f),!0x1),this[_0x5b2a64(0x1a6)]=this[_0x5b2a64(0x193)](),this[_0x5b2a64(0x1b0)]=new _0x1df808(),this[_0x5b2a64(0x19b)]=new _0x800cfc({'id':_0x5b2a64(0x18f),'initialContent':_0x5135d2(_0x434896,_0x5b2a64(0x19d)),'level':_0x5b2a64(0x1a4)}),this[_0x5b2a64(0x19b)][_0x5b2a64(0x1a8)]=!0x1,this[_0x5b2a64(0x18d)]({'tag':_0x5b2a64(0x1a1),'attributes':{'class':['ck',_0x5b2a64(0x1ac)]},'children':[{'tag':_0x5b2a64(0x1a1),'attributes':{'class':['ck',_0x5b2a64(0x1bf)]},'children':this[_0x5b2a64(0x1a6)]},this[_0x5b2a64(0x19b)]]});}get[_0x12cbb9(0x1bd)](){const _0x53df4c=_0x12cbb9;return this[_0x53df4c(0x1a6)][_0x53df4c(0x19c)];}async[_0x12cbb9(0x1a5)]({parts:_0x2c0a34,renderingStrategy:_0x37a136,abortSignal:_0x3a0e5f}){const _0x446bd2=_0x12cbb9;for(const _0x31a011 of _0x2c0a34)this[_0x446bd2(0x1b0)][_0x446bd2(0x1b7)](async _0x215217=>{const _0x3d2cf6=_0x446bd2;let _0x19b831=this[_0x3d2cf6(0x1a6)][_0x3d2cf6(0x1c1)](_0x4dcb03=>_0x4dcb03[_0x3d2cf6(0x194)][_0x3d2cf6(0x1a7)]==_0x31a011[_0x3d2cf6(0x1a7)]);_0x19b831||(_0x19b831=new _0x55b3ee(this[_0x3d2cf6(0x1bb)],{'part':_0x31a011,'areActionsDisabled':this[_0x3d2cf6(0x198)]}),_0x19b831[_0x3d2cf6(0x1ae)](..._0x41f341)['to'](this),this[_0x3d2cf6(0x1a6)][_0x3d2cf6(0x191)](_0x19b831),this[_0x3d2cf6(0x19f)]=!0x0),0x2===this[_0x3d2cf6(0x1a6)][_0x3d2cf6(0x19c)]&&this[_0x3d2cf6(0x1a6)][_0x3d2cf6(0x1a2)][_0x3d2cf6(0x1b8)](!0x0),_0x19b831[_0x3d2cf6(0x1b8)](this[_0x3d2cf6(0x1a6)][_0x3d2cf6(0x19c)]>0x1),await _0x19b831[_0x3d2cf6(0x18b)]({'part':_0x31a011,'renderingStrategy':_0x37a136,'showUnchangedParts':this[_0x3d2cf6(0x1b4)],'abortSignal':_0x215217});});return _0x3a0e5f?.[_0x446bd2(0x197)](_0x446bd2(0x19a),()=>{const _0x39fb2f=_0x446bd2;this[_0x39fb2f(0x1b0)][_0x39fb2f(0x19a)]();}),this[_0x446bd2(0x1b0)][_0x446bd2(0x1af)];}[_0x12cbb9(0x196)](_0x5602f9,_0x42f6c0){const _0x23bb15=_0x12cbb9;this[_0x23bb15(0x1a6)][_0x23bb15(0x1bc)](_0x5602f9)[_0x23bb15(0x1aa)]=_0x42f6c0,this[_0x23bb15(0x19f)]=_0x23bb15(0x1ba)==_0x42f6c0||Array[_0x23bb15(0x1ab)](this[_0x23bb15(0x1a6)])[_0x23bb15(0x1b9)](_0x3b0ae3=>_0x23bb15(0x1ba)==_0x3b0ae3[_0x23bb15(0x1aa)]);}[_0x12cbb9(0x1ad)](_0x52b31c){const _0x218c61=_0x12cbb9;return this[_0x218c61(0x1a6)][_0x218c61(0x1bc)](_0x52b31c);}[_0x12cbb9(0x1a0)](){const _0x248f61=_0x12cbb9;if(!this[_0x248f61(0x1b4)]){const _0x4d03a0=!this[_0x248f61(0x1a6)][_0x248f61(0x1c1)](_0x5ebcf8=>_0x5ebcf8[_0x248f61(0x194)][_0x248f61(0x1b3)]),_0x34239e=!!this[_0x248f61(0x1a6)][_0x248f61(0x1c1)](_0x596e2e=>!_0x596e2e[_0x248f61(0x194)][_0x248f61(0x1b3)]);this[_0x248f61(0x19b)][_0x248f61(0x1a8)]=0x0==this[_0x248f61(0x1a6)][_0x248f61(0x19c)]||_0x34239e,_0x4d03a0?this[_0x248f61(0x19b)][_0x248f61(0x199)](_0x5135d2(this[_0x248f61(0x1bb)],_0x248f61(0x1b2))):this[_0x248f61(0x19b)][_0x248f61(0x199)](_0x5135d2(this[_0x248f61(0x1bb)],_0x248f61(0x19d)));}}get[_0x12cbb9(0x1a3)](){const _0x5233d4=_0x12cbb9;return!!this[_0x5233d4(0x1a6)][_0x5233d4(0x1c1)](_0x46b981=>_0x46b981[_0x5233d4(0x194)][_0x5233d4(0x1b3)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32adde=_0x3940;(function(_0x7b5728,_0xba445d){const _0x420b2d=_0x3940,_0x72caff=_0x7b5728();while(!![]){try{const _0x314335=parseInt(_0x420b2d(0x1c7))/0x1+parseInt(_0x420b2d(0x1bd))/0x2+parseInt(_0x420b2d(0x1e4))/0x3+-parseInt(_0x420b2d(0x1ef))/0x4+parseInt(_0x420b2d(0x1fb))/0x5*(parseInt(_0x420b2d(0x1cf))/0x6)+-parseInt(_0x420b2d(0x20d))/0x7+-parseInt(_0x420b2d(0x1f9))/0x8;if(_0x314335===_0xba445d)break;else _0x72caff['push'](_0x72caff['shift']());}catch(_0x480d87){_0x72caff['push'](_0x72caff['shift']());}}}(_0x5349,0x3b1a6));import{IconWeb as _0x2264ae}from'@ckeditor/ckeditor5-icons';import{View as _0x51337f,ButtonView as _0x51efc8,IconView as _0x53abbb}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x1cf76c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x24baaf}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x4f825e}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x54850b}from'../../utils/eventnames.js';function _0x5349(){const _0x570e7c=['div','img','span','ck-hidden','1977010tDKUGG','headerView','AI_CHAT_SOURCES_HEADER','ck-ai-web-sources__header','setErrorState','ck-ai-suggestion__container','836782lffdDe','hasNonEmptyParts','createCollection','locale','bodyView','sourcesView','setLoading','map','remove','extendTemplate','455860prapdO','bindTemplate','isVisible','clearLoading','AI_CHAT_IS_WRITING','items','element','loaderView','18dWJdhP','hideLoader','children','ck-ai-suggestion__error-text','ck-ai-web-sources','ck-ai-suggestion__error','_blank','AI_CHAT_GENERIC_ERROR','areChangesVisible','open','addNavigationItem','toggleShowChanges','bind','.ck-ai-suggestion__error-text','hideError','title','url','markAsDone','removeNavigationItem','_createErrorView','updateSources','1373832eDmjRn','miniToolbarView','updateContent','toggleSuggestionDisplayMode','content','fire','textContent','isLoading','set','small','add','1852584ODWIVt','updateContentParts','showChangesToggleView','isLoaderVisible','icon','isOn','querySelector','clearErrorState','ck-rounded-corners','setTemplate','5197760ulVzeK','isEnabled','508645oyNDvb','showError','errorView','isErrorVisible','ck-ai-suggestion__loader-text','isShowChangesToggleVisible','ck\x20ck-ai-web-source','favicon','_createLoaderView','showLoader','ck-ai-web-source__image','addMany','delegate','ck-ai-suggestion__loader'];_0x5349=function(){return _0x570e7c;};return _0x5349();}import{AISpinnerView as _0x3b101b}from'../aispinner.js';import{getTranslation as _0x15ee26}from'../../utils/common-translations.js';function _0x3940(_0x11dab1,_0x295204){const _0x5349ea=_0x5349();return _0x3940=function(_0x3940f5,_0x429e37){_0x3940f5=_0x3940f5-0x1bd;let _0x3b8a65=_0x5349ea[_0x3940f5];return _0x3b8a65;},_0x3940(_0x11dab1,_0x295204);}export class AISuggestionContainerView extends _0x51337f{[_0x32adde(0x1c1)];[_0x32adde(0x1e5)];[_0x32adde(0x1d1)];[_0x32adde(0x20e)];[_0x32adde(0x1ce)];[_0x32adde(0x1fd)];[_0x32adde(0x1c2)];constructor(_0x3a2457,{showDiff:_0x555c00,areActionsDisabled:_0x227133,miniToolbarConfig:_0x244c79,hideHeader:_0x176ace,showLoader:_0xb6d0fe,showUnchangedParts:_0x1d816c}){const _0xfcefeb=_0x32adde;super(_0x3a2457),this[_0xfcefeb(0x1ec)](_0xfcefeb(0x1d7),!0x1),this[_0xfcefeb(0x1ec)](_0xfcefeb(0x1f2),!!_0xb6d0fe),this[_0xfcefeb(0x1ec)](_0xfcefeb(0x1fe),!0x1),this[_0xfcefeb(0x1ec)](_0xfcefeb(0x1eb),!0x1),this[_0xfcefeb(0x1d1)]=this[_0xfcefeb(0x1bf)](),_0x176ace||(this[_0xfcefeb(0x20e)]=new _0x24baaf(_0x3a2457,{'showDiff':_0x555c00}),this[_0xfcefeb(0x20e)]['on'](_0xfcefeb(0x1da),(_0x549ff7,_0x5af564)=>{const _0x33c899=_0xfcefeb;this[_0x33c899(0x1d7)]=_0x5af564[_0x33c899(0x1f4)],this[_0x33c899(0x1e9)](_0x33c899(0x1e7),{'showDiff':_0x5af564[_0x33c899(0x1f4)]});}),this[_0xfcefeb(0x1d1)][_0xfcefeb(0x1ee)](this[_0xfcefeb(0x20e)])),this[_0xfcefeb(0x1c1)]=new _0x4f825e(_0x3a2457,{'areActionsDisabled':_0x227133,'showUnchangedParts':!!_0x1d816c}),this[_0xfcefeb(0x1c1)][_0xfcefeb(0x207)](..._0x54850b)['to'](this),this[_0xfcefeb(0x1c1)][_0xfcefeb(0x1c6)]({'attributes':{'class':[this[_0xfcefeb(0x1c8)]['if'](_0xfcefeb(0x1f2),_0xfcefeb(0x20c)),this[_0xfcefeb(0x1c8)]['if'](_0xfcefeb(0x1fe),_0xfcefeb(0x20c))]}}),this[_0xfcefeb(0x1e5)]=new _0x1cf76c(_0x3a2457,_0x244c79,_0x555c00),this[_0xfcefeb(0x1e5)][_0xfcefeb(0x207)](..._0x54850b)['to'](this),this[_0xfcefeb(0x1e5)]['on'](_0xfcefeb(0x1da),(_0x4af915,_0x458cfd)=>{const _0x25e675=_0xfcefeb;this[_0x25e675(0x1d7)]=_0x458cfd,this[_0x25e675(0x1e9)](_0x25e675(0x1e7),{'showDiff':_0x458cfd});}),this[_0xfcefeb(0x1e5)][_0xfcefeb(0x1db)](_0xfcefeb(0x1eb))['to'](this),this[_0xfcefeb(0x1d1)][_0xfcefeb(0x1ee)](this[_0xfcefeb(0x1c1)]),this[_0xfcefeb(0x1d1)][_0xfcefeb(0x1ee)](this[_0xfcefeb(0x1e5)]),this[_0xfcefeb(0x1c2)]=new AIWebSourcesView(this[_0xfcefeb(0x1c0)]),this[_0xfcefeb(0x1d1)][_0xfcefeb(0x1ee)](this[_0xfcefeb(0x1c2)]),_0xb6d0fe&&(this[_0xfcefeb(0x1ce)]=this[_0xfcefeb(0x203)](),this[_0xfcefeb(0x1d1)][_0xfcefeb(0x1ee)](this[_0xfcefeb(0x1ce)])),this[_0xfcefeb(0x1fd)]=this[_0xfcefeb(0x1e2)](),this[_0xfcefeb(0x1d1)][_0xfcefeb(0x1ee)](this[_0xfcefeb(0x1fd)]),this[_0xfcefeb(0x1f8)]({'tag':_0xfcefeb(0x209),'attributes':{'class':['ck',_0xfcefeb(0x212),_0xfcefeb(0x1f7)]},'children':this[_0xfcefeb(0x1d1)]});}async[_0x32adde(0x1e6)](_0x49ac52){const _0x272e98=_0x32adde;await this[_0x272e98(0x1c1)][_0x272e98(0x1f0)](_0x49ac52);}[_0x32adde(0x1e3)](_0x4634fe){const _0x446bec=_0x32adde;this[_0x446bec(0x1c2)][_0x446bec(0x1d1)][_0x446bec(0x206)](_0x4634fe[_0x446bec(0x1c4)](_0x292e4e=>new AIWebSourceView(this[_0x446bec(0x1c0)],_0x292e4e))),this[_0x446bec(0x1c2)][_0x446bec(0x1c9)]=!0x0;}[_0x32adde(0x204)](){const _0x4bd1d0=_0x32adde;this[_0x4bd1d0(0x1ce)]&&(this[_0x4bd1d0(0x1f2)]=!0x0);}[_0x32adde(0x1d0)](){const _0x169b1d=_0x32adde;this[_0x169b1d(0x1ce)]&&(this[_0x169b1d(0x1f2)]=!0x1);}[_0x32adde(0x1fc)](_0x7c67a9){const _0x2c57dd=_0x32adde;if(this[_0x2c57dd(0x1fd)]){const _0x47fd45=this[_0x2c57dd(0x1fd)][_0x2c57dd(0x1cd)]?.[_0x2c57dd(0x1f5)](_0x2c57dd(0x1dc));_0x47fd45&&(_0x47fd45[_0x2c57dd(0x1ea)]=_0x7c67a9),this[_0x2c57dd(0x1fe)]=!0x0;}}[_0x32adde(0x1dd)](){const _0x437c17=_0x32adde;this[_0x437c17(0x1fd)]&&(this[_0x437c17(0x1fe)]=!0x1);}[_0x32adde(0x1e0)](){const _0x56f66c=_0x32adde;this[_0x56f66c(0x1c1)][_0x56f66c(0x1e0)](),this[_0x56f66c(0x20e)]&&(this[_0x56f66c(0x20e)][_0x56f66c(0x200)]=this[_0x56f66c(0x1c1)][_0x56f66c(0x1be)]);}[_0x32adde(0x1c3)](){const _0x31cfa4=_0x32adde;this[_0x31cfa4(0x1eb)]=!0x0;}[_0x32adde(0x1ca)](){const _0x560565=_0x32adde;this[_0x560565(0x1eb)]=!0x1;}[_0x32adde(0x211)](){const _0x2e7172=_0x32adde;this[_0x2e7172(0x1e5)]&&(this[_0x2e7172(0x1e5)][_0x2e7172(0x1eb)]=!0x0),this[_0x2e7172(0x20e)]?.[_0x2e7172(0x1f1)]&&(this[_0x2e7172(0x20e)][_0x2e7172(0x1f1)][_0x2e7172(0x1fa)]=!0x1);}[_0x32adde(0x1f6)](){const _0x4177df=_0x32adde;this[_0x4177df(0x1e5)]&&(this[_0x4177df(0x1e5)][_0x4177df(0x1eb)]=!0x1),this[_0x4177df(0x20e)]?.[_0x4177df(0x1f1)]&&(this[_0x4177df(0x20e)][_0x4177df(0x1f1)][_0x4177df(0x1fa)]=!0x0);}[_0x32adde(0x1d9)](_0x1ff4cc){const _0x2ae30c=_0x32adde;this[_0x2ae30c(0x1e5)][_0x2ae30c(0x1cc)][_0x2ae30c(0x1ee)](_0x1ff4cc);}[_0x32adde(0x1e1)](_0x4e0f37){const _0x343892=_0x32adde;this[_0x343892(0x1e5)][_0x343892(0x1cc)][_0x343892(0x1c5)](_0x4e0f37);}[_0x32adde(0x203)](){const _0x38d867=_0x32adde,_0xb596c2=new _0x51337f(this[_0x38d867(0x1c0)]),_0x165840=new _0x3b101b(_0x38d867(0x1ed));_0x165840[_0x38d867(0x1c9)]=!0x0;const _0x1eba6e=new _0x51337f(this[_0x38d867(0x1c0)]);return _0x1eba6e[_0x38d867(0x1f8)]({'tag':_0x38d867(0x20b),'attributes':{'class':['ck',_0x38d867(0x1ff)]},'children':[_0x15ee26(this[_0x38d867(0x1c0)],_0x38d867(0x1cb))]}),_0xb596c2[_0x38d867(0x1f8)]({'tag':_0x38d867(0x209),'attributes':{'class':['ck',_0x38d867(0x208),this[_0x38d867(0x1c8)]['if'](_0x38d867(0x1f2),_0x38d867(0x20c),_0x1507c9=>!_0x1507c9)]},'children':[_0x165840,_0x1eba6e]}),_0xb596c2;}[_0x32adde(0x1e2)](){const _0x499124=_0x32adde,_0x2b5b65=new _0x51337f(this[_0x499124(0x1c0)]),_0x171549=new _0x51337f(this[_0x499124(0x1c0)]);return _0x171549[_0x499124(0x1f8)]({'tag':_0x499124(0x20b),'attributes':{'class':['ck',_0x499124(0x1d2)]},'children':[_0x15ee26(this[_0x499124(0x1c0)],_0x499124(0x1d6))]}),_0x2b5b65[_0x499124(0x1f8)]({'tag':_0x499124(0x209),'attributes':{'class':['ck',_0x499124(0x1d4),this[_0x499124(0x1c8)]['if'](_0x499124(0x1fe),_0x499124(0x20c),_0x5a8e0a=>!_0x5a8e0a)]},'children':[_0x171549]}),_0x2b5b65;}}export class AIWebSourcesView extends _0x51337f{[_0x32adde(0x1d1)];constructor(_0x1969dc){const _0x13a76f=_0x32adde;super(_0x1969dc),this[_0x13a76f(0x1d1)]=this[_0x13a76f(0x1bf)](),this[_0x13a76f(0x1ec)](_0x13a76f(0x1c9),!0x1),this[_0x13a76f(0x1f8)]({'tag':_0x13a76f(0x209),'attributes':{'class':['ck',_0x13a76f(0x1d3),this[_0x13a76f(0x1c8)]['if'](_0x13a76f(0x1c9),_0x13a76f(0x20c),_0x34fcc7=>!_0x34fcc7)]},'children':this[_0x13a76f(0x1d1)]});const _0x34c6e1=new _0x51337f(this[_0x13a76f(0x1c0)]),_0x541d25=new _0x53abbb();_0x541d25[_0x13a76f(0x1e8)]=_0x2264ae,_0x34c6e1[_0x13a76f(0x1f8)]({'tag':_0x13a76f(0x209),'attributes':{'class':['ck',_0x13a76f(0x210)]},'children':[_0x541d25,{'tag':_0x13a76f(0x20b),'children':[{'text':_0x15ee26(this[_0x13a76f(0x1c0)],_0x13a76f(0x20f))}]}]}),this[_0x13a76f(0x1d1)][_0x13a76f(0x1ee)](_0x34c6e1);}}export class AIWebSourceView extends _0x51efc8{constructor(_0x3359a8,_0x1be35a){const _0x55160f=_0x32adde;super(_0x3359a8),this[_0x55160f(0x1ec)]({'label':_0x1be35a[_0x55160f(0x1de)],'tooltip':_0x1be35a[_0x55160f(0x1de)],'class':[_0x55160f(0x201)],'withText':!0x0});const _0x3d1c29=this[_0x55160f(0x1c8)];if(this[_0x55160f(0x1c6)]({'on':{'click':_0x3d1c29['to'](()=>{const _0x147ade=_0x55160f;window[_0x147ade(0x1d8)](_0x1be35a[_0x147ade(0x1df)],_0x147ade(0x1d5));})}}),_0x1be35a[_0x55160f(0x202)]){const _0x206c22=new _0x51337f(_0x3359a8);_0x206c22[_0x55160f(0x1f8)]({'tag':_0x55160f(0x20a),'attributes':{'src':_0x1be35a[_0x55160f(0x202)]||_0x2264ae,'alt':_0x1be35a[_0x55160f(0x1de)],'class':[_0x55160f(0x205)]}}),this[_0x55160f(0x1d1)][_0x55160f(0x1ee)](_0x206c22);}else this[_0x55160f(0x1ec)](_0x55160f(0x1f3),_0x2264ae);}}
|
|
23
|
+
const _0x3424de=_0xef37;(function(_0x26d083,_0x4eed4f){const _0x5d1b8e=_0xef37,_0x53d9d4=_0x26d083();while(!![]){try{const _0x13b982=-parseInt(_0x5d1b8e(0x1d8))/0x1+parseInt(_0x5d1b8e(0x1aa))/0x2*(-parseInt(_0x5d1b8e(0x1a8))/0x3)+-parseInt(_0x5d1b8e(0x1a3))/0x4+-parseInt(_0x5d1b8e(0x1b9))/0x5*(-parseInt(_0x5d1b8e(0x19c))/0x6)+-parseInt(_0x5d1b8e(0x1b4))/0x7*(-parseInt(_0x5d1b8e(0x1e4))/0x8)+-parseInt(_0x5d1b8e(0x1ba))/0x9*(-parseInt(_0x5d1b8e(0x1d6))/0xa)+-parseInt(_0x5d1b8e(0x1c9))/0xb*(-parseInt(_0x5d1b8e(0x1bf))/0xc);if(_0x13b982===_0x4eed4f)break;else _0x53d9d4['push'](_0x53d9d4['shift']());}catch(_0x5828fd){_0x53d9d4['push'](_0x53d9d4['shift']());}}}(_0x5650,0xb8484));import{IconWeb as _0x5bf1b7}from'@ckeditor/ckeditor5-icons';function _0xef37(_0x6a888a,_0x13142f){const _0x565022=_0x5650();return _0xef37=function(_0xef3730,_0x3bc12f){_0xef3730=_0xef3730-0x194;let _0x2d8ac4=_0x565022[_0xef3730];return _0x2d8ac4;},_0xef37(_0x6a888a,_0x13142f);}import{View as _0x177d5a,ButtonView as _0xa39798,IconView as _0x452769}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x27b8d3}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x4c9632}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x17cc88}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5940af}from'../../utils/eventnames.js';import{AISpinnerView as _0x1b7920}from'../aispinner.js';import{getTranslation as _0x9d7bcf}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x177d5a{[_0x3424de(0x1e2)];[_0x3424de(0x1dc)];[_0x3424de(0x1c2)];[_0x3424de(0x1e6)];[_0x3424de(0x195)];[_0x3424de(0x1ad)];[_0x3424de(0x1af)];constructor(_0x43a61f,{showDiff:_0x11e136,areActionsDisabled:_0x3a5e6e,miniToolbarConfig:_0xff1ccd,hideHeader:_0x526c12,showLoader:_0x3e9620,showUnchangedParts:_0x51f085}){const _0x508cea=_0x3424de;super(_0x43a61f),this[_0x508cea(0x1c1)](_0x508cea(0x1c5),!0x1),this[_0x508cea(0x1c1)](_0x508cea(0x1ec),!!_0x3e9620),this[_0x508cea(0x1c1)](_0x508cea(0x1bb),!0x1),this[_0x508cea(0x1c1)](_0x508cea(0x194),!0x1),this[_0x508cea(0x1c2)]=this[_0x508cea(0x1bd)](),_0x526c12||(this[_0x508cea(0x1e6)]=new _0x4c9632(_0x43a61f,{'showDiff':_0x11e136}),this[_0x508cea(0x1e6)]['on'](_0x508cea(0x199),(_0x2bb0f9,_0x446dc8)=>{const _0x48da6b=_0x508cea;this[_0x48da6b(0x1c5)]=_0x446dc8[_0x48da6b(0x1cf)],this[_0x48da6b(0x1be)](_0x48da6b(0x1e8),{'showDiff':_0x446dc8[_0x48da6b(0x1cf)]});}),this[_0x508cea(0x1c2)][_0x508cea(0x1dd)](this[_0x508cea(0x1e6)])),this[_0x508cea(0x1e2)]=new _0x17cc88(_0x43a61f,{'areActionsDisabled':_0x3a5e6e,'showUnchangedParts':!!_0x51f085}),this[_0x508cea(0x1e2)][_0x508cea(0x1e7)](..._0x5940af)['to'](this),this[_0x508cea(0x1e2)][_0x508cea(0x198)]({'attributes':{'class':[this[_0x508cea(0x1df)]['if'](_0x508cea(0x1ec),_0x508cea(0x1e1)),this[_0x508cea(0x1df)]['if'](_0x508cea(0x1bb),_0x508cea(0x1e1))]}}),this[_0x508cea(0x1dc)]=new _0x27b8d3(_0x43a61f,_0xff1ccd,_0x11e136),this[_0x508cea(0x1dc)][_0x508cea(0x1e7)](..._0x5940af)['to'](this),this[_0x508cea(0x1dc)]['on'](_0x508cea(0x199),(_0x4e215b,_0x55dc3d)=>{const _0x27d976=_0x508cea;this[_0x27d976(0x1c5)]=_0x55dc3d,this[_0x27d976(0x1be)](_0x27d976(0x1e8),{'showDiff':_0x55dc3d});}),this[_0x508cea(0x1dc)][_0x508cea(0x1d3)](_0x508cea(0x194))['to'](this),this[_0x508cea(0x1c2)][_0x508cea(0x1dd)](this[_0x508cea(0x1e2)]),this[_0x508cea(0x1c2)][_0x508cea(0x1dd)](this[_0x508cea(0x1dc)]),this[_0x508cea(0x1af)]=new AIWebSourcesView(this[_0x508cea(0x19b)]),this[_0x508cea(0x1c2)][_0x508cea(0x1dd)](this[_0x508cea(0x1af)]),_0x3e9620&&(this[_0x508cea(0x195)]=this[_0x508cea(0x1eb)](),this[_0x508cea(0x1c2)][_0x508cea(0x1dd)](this[_0x508cea(0x195)])),this[_0x508cea(0x1ad)]=this[_0x508cea(0x1c3)](),this[_0x508cea(0x1c2)][_0x508cea(0x1dd)](this[_0x508cea(0x1ad)]),this[_0x508cea(0x1d7)]({'tag':_0x508cea(0x1c8),'attributes':{'class':['ck',_0x508cea(0x1b0),_0x508cea(0x1d2)]},'children':this[_0x508cea(0x1c2)]});}async[_0x3424de(0x1b1)](_0x2d331a){const _0x54721f=_0x3424de;await this[_0x54721f(0x1e2)][_0x54721f(0x19e)](_0x2d331a);}[_0x3424de(0x1c6)](_0x30646d){const _0x8a2085=_0x3424de;this[_0x8a2085(0x1af)][_0x8a2085(0x1c2)][_0x8a2085(0x1ed)](_0x30646d[_0x8a2085(0x1a4)](_0x1d6a4d=>new AIWebSourceView(this[_0x8a2085(0x19b)],_0x1d6a4d))),this[_0x8a2085(0x1af)][_0x8a2085(0x1cb)]=!0x0;}[_0x3424de(0x1e0)](){const _0x2131d3=_0x3424de;this[_0x2131d3(0x195)]&&(this[_0x2131d3(0x1ec)]=!0x0);}[_0x3424de(0x1c0)](){const _0xbfbe8a=_0x3424de;this[_0xbfbe8a(0x195)]&&(this[_0xbfbe8a(0x1ec)]=!0x1);}[_0x3424de(0x1ab)](_0x220eac){const _0x33756c=_0x3424de;if(this[_0x33756c(0x1ad)]){const _0x44ae18=this[_0x33756c(0x1ad)][_0x33756c(0x1b3)]?.[_0x33756c(0x197)](_0x33756c(0x1ea));_0x44ae18&&(_0x44ae18[_0x33756c(0x196)]=_0x220eac),this[_0x33756c(0x1bb)]=!0x0;}}[_0x3424de(0x1bc)](){const _0x4bcd4b=_0x3424de;this[_0x4bcd4b(0x1ad)]&&(this[_0x4bcd4b(0x1bb)]=!0x1);}[_0x3424de(0x1da)](){const _0x59b5f5=_0x3424de;this[_0x59b5f5(0x1e2)][_0x59b5f5(0x1da)](),this[_0x59b5f5(0x1e6)]&&(this[_0x59b5f5(0x1e6)][_0x59b5f5(0x19a)]=this[_0x59b5f5(0x1e2)][_0x59b5f5(0x1a9)]);}[_0x3424de(0x1ce)](){const _0x31ddda=_0x3424de;this[_0x31ddda(0x194)]=!0x0;}[_0x3424de(0x1d4)](){const _0xa4730e=_0x3424de;this[_0xa4730e(0x194)]=!0x1;}[_0x3424de(0x1ac)](){const _0x21876b=_0x3424de;this[_0x21876b(0x1dc)]&&(this[_0x21876b(0x1dc)][_0x21876b(0x194)]=!0x0),this[_0x21876b(0x1e6)]?.[_0x21876b(0x1c4)]&&(this[_0x21876b(0x1e6)][_0x21876b(0x1c4)][_0x21876b(0x1b2)]=!0x1);}[_0x3424de(0x1a7)](){const _0x5650a=_0x3424de;this[_0x5650a(0x1dc)]&&(this[_0x5650a(0x1dc)][_0x5650a(0x194)]=!0x1),this[_0x5650a(0x1e6)]?.[_0x5650a(0x1c4)]&&(this[_0x5650a(0x1e6)][_0x5650a(0x1c4)][_0x5650a(0x1b2)]=!0x0);}[_0x3424de(0x1d1)](_0x5c2ffd){const _0x32b881=_0x3424de;this[_0x32b881(0x1dc)][_0x32b881(0x1de)][_0x32b881(0x1dd)](_0x5c2ffd);}[_0x3424de(0x1a5)](_0x4252a5){const _0x41a95a=_0x3424de;this[_0x41a95a(0x1dc)][_0x41a95a(0x1de)][_0x41a95a(0x1e9)](_0x4252a5);}[_0x3424de(0x1eb)](){const _0x508e20=_0x3424de,_0x519ad7=new _0x177d5a(this[_0x508e20(0x19b)]),_0x3543a7=new _0x1b7920(_0x508e20(0x1b8));_0x3543a7[_0x508e20(0x1cb)]=!0x0;const _0x4c0aaf=new _0x177d5a(this[_0x508e20(0x19b)]);return _0x4c0aaf[_0x508e20(0x1d7)]({'tag':_0x508e20(0x1b6),'attributes':{'class':['ck',_0x508e20(0x1ae)]},'children':[_0x9d7bcf(this[_0x508e20(0x19b)],_0x508e20(0x1a0))]}),_0x519ad7[_0x508e20(0x1d7)]({'tag':_0x508e20(0x1c8),'attributes':{'class':['ck',_0x508e20(0x1d0),this[_0x508e20(0x1df)]['if'](_0x508e20(0x1ec),_0x508e20(0x1e1),_0x5a818a=>!_0x5a818a)]},'children':[_0x3543a7,_0x4c0aaf]}),_0x519ad7;}[_0x3424de(0x1c3)](){const _0x599182=_0x3424de,_0x2a98b7=new _0x177d5a(this[_0x599182(0x19b)]),_0x20b8ab=new _0x177d5a(this[_0x599182(0x19b)]);return _0x20b8ab[_0x599182(0x1d7)]({'tag':_0x599182(0x1b6),'attributes':{'class':['ck',_0x599182(0x1a2)]},'children':[_0x9d7bcf(this[_0x599182(0x19b)],_0x599182(0x1db))]}),_0x2a98b7[_0x599182(0x1d7)]({'tag':_0x599182(0x1c8),'attributes':{'class':['ck',_0x599182(0x1a1),this[_0x599182(0x1df)]['if'](_0x599182(0x1bb),_0x599182(0x1e1),_0x390a6c=>!_0x390a6c)]},'children':[_0x20b8ab]}),_0x2a98b7;}}export class AIWebSourcesView extends _0x177d5a{[_0x3424de(0x1c2)];constructor(_0x2bcf87){const _0x42ae41=_0x3424de;super(_0x2bcf87),this[_0x42ae41(0x1c2)]=this[_0x42ae41(0x1bd)](),this[_0x42ae41(0x1c1)](_0x42ae41(0x1cb),!0x1),this[_0x42ae41(0x1d7)]({'tag':_0x42ae41(0x1c8),'attributes':{'class':['ck',_0x42ae41(0x19d),this[_0x42ae41(0x1df)]['if'](_0x42ae41(0x1cb),_0x42ae41(0x1e1),_0x30a352=>!_0x30a352)]},'children':this[_0x42ae41(0x1c2)]});const _0x35ac4a=new _0x177d5a(this[_0x42ae41(0x19b)]),_0x585647=new _0x452769();_0x585647[_0x42ae41(0x1a6)]=_0x5bf1b7,_0x35ac4a[_0x42ae41(0x1d7)]({'tag':_0x42ae41(0x1c8),'attributes':{'class':['ck',_0x42ae41(0x1cd)]},'children':[_0x585647,{'tag':_0x42ae41(0x1b6),'children':[{'text':_0x9d7bcf(this[_0x42ae41(0x19b)],_0x42ae41(0x1d9))}]}]}),this[_0x42ae41(0x1c2)][_0x42ae41(0x1dd)](_0x35ac4a);}}export class AIWebSourceView extends _0xa39798{constructor(_0x35fe3d,_0x4f1f80){const _0x2fdb38=_0x3424de;super(_0x35fe3d),this[_0x2fdb38(0x1c1)]({'label':_0x4f1f80[_0x2fdb38(0x1e5)],'tooltip':_0x4f1f80[_0x2fdb38(0x1e5)],'class':[_0x2fdb38(0x1d5)],'withText':!0x0});const _0x78289d=this[_0x2fdb38(0x1df)];if(this[_0x2fdb38(0x198)]({'on':{'click':_0x78289d['to'](()=>{const _0x40c804=_0x2fdb38;window[_0x40c804(0x1e3)](_0x4f1f80[_0x40c804(0x1ca)],_0x40c804(0x19f));})}}),_0x4f1f80[_0x2fdb38(0x1b7)]){const _0x2f919d=new _0x177d5a(_0x35fe3d);_0x2f919d[_0x2fdb38(0x1d7)]({'tag':_0x2fdb38(0x1cc),'attributes':{'src':_0x4f1f80[_0x2fdb38(0x1b7)]||_0x5bf1b7,'alt':_0x4f1f80[_0x2fdb38(0x1e5)],'class':[_0x2fdb38(0x1c7)]}}),this[_0x2fdb38(0x1c2)][_0x2fdb38(0x1dd)](_0x2f919d);}else this[_0x2fdb38(0x1c1)](_0x2fdb38(0x1b5),_0x5bf1b7);}}function _0x5650(){const _0x10dcd0=['ck-ai-suggestion__error-text','3808700PQPbEf','map','removeNavigationItem','content','clearErrorState','8907czJsbr','hasNonEmptyParts','566XBLdOc','showError','setErrorState','errorView','ck-ai-suggestion__loader-text','sourcesView','ck-ai-suggestion__container','updateContent','isEnabled','element','2668428aCdPJF','icon','span','favicon','small','2780230ZcrufW','8994267XTTXag','isErrorVisible','hideError','createCollection','fire','982752etPPDE','hideLoader','set','children','_createErrorView','showChangesToggleView','areChangesVisible','updateSources','ck-ai-web-source__image','div','209zDvYYR','url','isVisible','img','ck-ai-web-sources__header','setLoading','isOn','ck-ai-suggestion__loader','addNavigationItem','ck-rounded-corners','bind','clearLoading','ck\x20ck-ai-web-source','10LTOmsp','setTemplate','1501461iwUAXm','AI_CHAT_SOURCES_HEADER','markAsDone','AI_CHAT_GENERIC_ERROR','miniToolbarView','add','items','bindTemplate','showLoader','ck-hidden','bodyView','open','8AtsyBZ','title','headerView','delegate','toggleSuggestionDisplayMode','remove','.ck-ai-suggestion__error-text','_createLoaderView','isLoaderVisible','addMany','isLoading','loaderView','textContent','querySelector','extendTemplate','toggleShowChanges','isShowChangesToggleVisible','locale','12mtFQhF','ck-ai-web-sources','updateContentParts','_blank','AI_CHAT_IS_WRITING','ck-ai-suggestion__error'];_0x5650=function(){return _0x10dcd0;};return _0x5650();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x412bbb=_0x4703;(function(_0x1ec08d,_0x38c604){const _0x4ab2ec=_0x4703,_0x4a9984=_0x1ec08d();while(!![]){try{const _0x50fa7d=-parseInt(_0x4ab2ec(0x161))/0x1*(-parseInt(_0x4ab2ec(0x192))/0x2)+-parseInt(_0x4ab2ec(0x16f))/0x3+parseInt(_0x4ab2ec(0x158))/0x4*(parseInt(_0x4ab2ec(0x17a))/0x5)+-parseInt(_0x4ab2ec(0x17b))/0x6+-parseInt(_0x4ab2ec(0x18c))/0x7*(-parseInt(_0x4ab2ec(0x17e))/0x8)+-parseInt(_0x4ab2ec(0x14e))/0x9*(-parseInt(_0x4ab2ec(0x186))/0xa)+-parseInt(_0x4ab2ec(0x14d))/0xb;if(_0x50fa7d===_0x38c604)break;else _0x4a9984['push'](_0x4a9984['shift']());}catch(_0x93651b){_0x4a9984['push'](_0x4a9984['shift']());}}}(_0x1603,0x28262));import{View as _0x55f918,IconView as _0x22022d,ToolbarView as _0x1005bb,ButtonView as _0x22091b}from'ckeditor5/src/ui.js';import{IconAddComment as _0x3bb829,IconDocumentWithLoupe as _0x4bc7e4,IconDocumentWithCheckmark as _0x3d7c0d,IconDocumentWithCross as _0x163d0e,IconRemove as _0x592089,IconThreeStars as _0x52b695}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x54c5bc}from'../../utils/htmlstreamer.js';function _0x4703(_0x25443a,_0x3faf80){const _0x160321=_0x1603();return _0x4703=function(_0x4703c2,_0x2a3513){_0x4703c2=_0x4703c2-0x148;let _0x51b0c9=_0x160321[_0x4703c2];return _0x51b0c9;},_0x4703(_0x25443a,_0x3faf80);}import{getTranslation as _0x5d8cd7}from'../../utils/common-translations.js';import{serialize as _0x34097d}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x22c592}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x55f918{[_0x412bbb(0x17d)];[_0x412bbb(0x17c)];[_0x412bbb(0x190)];[_0x412bbb(0x149)];constructor(_0x250b20,{part:_0x2e8eea,areActionsDisabled:_0x5655dd}){const _0x1cb971=_0x412bbb;super(_0x250b20),this[_0x1cb971(0x18b)](_0x1cb971(0x184),_0x2e8eea),this[_0x1cb971(0x18b)](_0x1cb971(0x18a),_0x1cb971(0x16a)),this[_0x1cb971(0x18b)](_0x1cb971(0x17f),!0x1),this[_0x1cb971(0x180)](_0x1cb971(0x179))['to'](this,_0x1cb971(0x18a),_0x3dc9fb=>_0x1cb971(0x16a)==_0x3dc9fb&&!_0x5655dd),this[_0x1cb971(0x17c)]=this[_0x1cb971(0x176)](),this[_0x1cb971(0x17d)]=new _0x54c5bc({'textNodeStyle':_0x1cb971(0x189),'delay':0x14}),this[_0x1cb971(0x190)]=new Jn(_0x250b20,_0x2e8eea),this[_0x1cb971(0x190)][_0x1cb971(0x180)](_0x1cb971(0x184))['to'](this),this[_0x1cb971(0x190)][_0x1cb971(0x180)](_0x1cb971(0x179))['to'](this),this[_0x1cb971(0x190)][_0x1cb971(0x180)](_0x1cb971(0x18a))['to'](this),this[_0x1cb971(0x190)][_0x1cb971(0x171)](..._0x22c592)['to'](this);const _0x3d462d=this[_0x1cb971(0x178)];this[_0x1cb971(0x149)]=new _0x55f918(),this[_0x1cb971(0x149)][_0x1cb971(0x16d)]({'tag':_0x1cb971(0x167),'attributes':{'class':['ck',_0x1cb971(0x148),_0x1cb971(0x162),_0x1cb971(0x152)]}}),this[_0x1cb971(0x17c)][_0x1cb971(0x16c)]([this[_0x1cb971(0x149)]]),this[_0x1cb971(0x16d)]({'tag':_0x1cb971(0x167),'attributes':{'class':['ck',_0x1cb971(0x154),_0x3d462d['to'](_0x1cb971(0x18a),_0x596486=>_0x1cb971(0x150)+_0x596486),_0x3d462d['to'](_0x1cb971(0x179),_0x39e89c=>_0x39e89c?_0x1cb971(0x159):void 0x0),_0x3d462d['if'](_0x1cb971(0x17f),_0x1cb971(0x16b),_0x3e164a=>!_0x3e164a)]},'children':this[_0x1cb971(0x17c)],'on':{'mouseenter':_0x3d462d['to'](()=>{const _0x49b847=_0x1cb971;this[_0x49b847(0x179)]&&this[_0x49b847(0x14f)](_0x49b847(0x182),{'index':_0x2e8eea[_0x49b847(0x14a)]});}),'mouseleave':_0x3d462d['to'](()=>{const _0x4b4255=_0x1cb971;this[_0x4b4255(0x179)]&&this[_0x4b4255(0x14f)](_0x4b4255(0x163),{'index':_0x2e8eea[_0x4b4255(0x14a)]});})}});}async[_0x412bbb(0x18f)]({part:_0x5cbf91,renderingStrategy:_0x1186e9,showUnchangedParts:_0x424680=!0x1,abortSignal:_0x2e6be4}){const _0x4c670c=_0x412bbb;this[_0x4c670c(0x184)]=_0x5cbf91,this[_0x4c670c(0x17f)]=this[_0x4c670c(0x184)][_0x4c670c(0x15a)]||_0x424680,this[_0x4c670c(0x17f)]&&(_0x4c670c(0x165)===_0x1186e9?await this[_0x4c670c(0x17d)][_0x4c670c(0x168)]({'document':this[_0x4c670c(0x184)][_0x4c670c(0x157)],'targetElement':this[_0x4c670c(0x149)][_0x4c670c(0x185)],'abortSignal':_0x2e6be4}):this[_0x4c670c(0x149)][_0x4c670c(0x185)][_0x4c670c(0x191)]=_0x34097d(this[_0x4c670c(0x184)][_0x4c670c(0x157)]));}[_0x412bbb(0x15c)](_0x304167){const _0x410502=_0x412bbb;_0x304167?this[_0x410502(0x17c)][_0x410502(0x187)](this[_0x410502(0x190)])||this[_0x410502(0x17c)][_0x410502(0x160)](this[_0x410502(0x190)],0x0):this[_0x410502(0x17c)][_0x410502(0x187)](this[_0x410502(0x190)])&&this[_0x410502(0x17c)][_0x410502(0x15b)](this[_0x410502(0x190)]);}}class Jn extends _0x55f918{[_0x412bbb(0x17c)];[_0x412bbb(0x15e)];[_0x412bbb(0x183)];[_0x412bbb(0x173)];constructor(_0x57a4bd,_0x431176){const _0x69a5c7=_0x412bbb;super(_0x57a4bd),this[_0x69a5c7(0x18b)](_0x69a5c7(0x184),_0x431176),this[_0x69a5c7(0x18b)](_0x69a5c7(0x179),!0x0),this[_0x69a5c7(0x18b)](_0x69a5c7(0x18a),_0x69a5c7(0x16a));const _0x11dc1c=new _0x22022d();_0x11dc1c[_0x69a5c7(0x157)]=_0x52b695,_0x11dc1c[_0x69a5c7(0x164)]({'attributes':{'class':[_0x69a5c7(0x153)]}});const _0x4555e9=new _0x22091b(_0x57a4bd);_0x4555e9[_0x69a5c7(0x18b)]({'label':_0x5d8cd7(_0x57a4bd,_0x69a5c7(0x175)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4bc7e4}),_0x4555e9[_0x69a5c7(0x180)](_0x69a5c7(0x179))['to'](this),_0x4555e9['on'](_0x69a5c7(0x15d),()=>{const _0x1f9996=_0x69a5c7;this[_0x1f9996(0x14f)](_0x1f9996(0x174),{'index':_0x431176[_0x1f9996(0x14a)]});});const _0x592e63=new _0x22091b(_0x57a4bd);_0x592e63[_0x69a5c7(0x18b)]({'label':_0x5d8cd7(_0x57a4bd,_0x69a5c7(0x188)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3bb829}),_0x592e63[_0x69a5c7(0x180)](_0x69a5c7(0x179))['to'](this),_0x592e63['on'](_0x69a5c7(0x15d),()=>{const _0x297c18=_0x69a5c7;this[_0x297c18(0x14f)](_0x297c18(0x177),{'index':_0x431176[_0x297c18(0x14a)]});});const _0x296924=new _0x22091b(_0x57a4bd);_0x296924[_0x69a5c7(0x18b)]({'label':_0x5d8cd7(_0x57a4bd,_0x69a5c7(0x169)),'tooltip':!0x0,'withText':!0x1,'icon':_0x592089}),_0x296924['on'](_0x69a5c7(0x15d),()=>{const _0x3c12ae=_0x69a5c7;this[_0x3c12ae(0x14f)](_0x3c12ae(0x172),{'index':_0x431176[_0x3c12ae(0x14a)]});}),_0x296924[_0x69a5c7(0x180)](_0x69a5c7(0x179))['to'](this),this[_0x69a5c7(0x15e)]=new _0x1005bb(_0x57a4bd),this[_0x69a5c7(0x15e)][_0x69a5c7(0x18e)][_0x69a5c7(0x16c)]([_0x4555e9,_0x592e63,_0x296924]),this[_0x69a5c7(0x183)]=new _0x22022d(),this[_0x69a5c7(0x183)][_0x69a5c7(0x157)]=_0x3d7c0d,this[_0x69a5c7(0x183)][_0x69a5c7(0x164)]({'attributes':{'class':[_0x69a5c7(0x193)],'data-cke-tooltip-text':_0x5d8cd7(_0x57a4bd,_0x69a5c7(0x155)),'data-cke-tooltip-position':'n'}}),this[_0x69a5c7(0x173)]=new _0x22022d(),this[_0x69a5c7(0x173)][_0x69a5c7(0x157)]=_0x163d0e,this[_0x69a5c7(0x173)][_0x69a5c7(0x164)]({'attributes':{'class':[_0x69a5c7(0x166)],'data-cke-tooltip-text':_0x5d8cd7(_0x57a4bd,_0x69a5c7(0x156)),'data-cke-tooltip-position':'n'}});const _0x2c8406=new _0x55f918(_0x57a4bd);_0x2c8406[_0x69a5c7(0x16d)]({'tag':_0x69a5c7(0x170),'attributes':{'class':['ck',_0x69a5c7(0x14c)]},'children':[_0x5d8cd7(_0x57a4bd,_0x69a5c7(0x151),(_0x431176[_0x69a5c7(0x14a)]+0x1)[_0x69a5c7(0x18d)]())]}),this[_0x69a5c7(0x17c)]=this[_0x69a5c7(0x176)](),this[_0x69a5c7(0x17c)][_0x69a5c7(0x16c)]([_0x11dc1c,_0x2c8406,this[_0x69a5c7(0x15e)]]),this[_0x69a5c7(0x16d)]({'tag':_0x69a5c7(0x167),'attributes':{'class':['ck',_0x69a5c7(0x162),_0x69a5c7(0x181)]},'children':this[_0x69a5c7(0x17c)]}),this['on'](_0x69a5c7(0x16e),(_0x2d30ad,_0x3fa333,_0x51470e,_0x74c9a)=>{const _0x2fdd43=_0x69a5c7;switch(_0x74c9a){case _0x2fdd43(0x16a):this[_0x2fdd43(0x17c)][_0x2fdd43(0x15b)](this[_0x2fdd43(0x15e)]);break;case _0x2fdd43(0x14b):this[_0x2fdd43(0x17c)][_0x2fdd43(0x15b)](this[_0x2fdd43(0x183)]);break;case _0x2fdd43(0x15f):this[_0x2fdd43(0x17c)][_0x2fdd43(0x15b)](this[_0x2fdd43(0x173)]);}switch(_0x51470e){case _0x2fdd43(0x16a):this[_0x2fdd43(0x17c)][_0x2fdd43(0x160)](this[_0x2fdd43(0x15e)]);break;case _0x2fdd43(0x14b):this[_0x2fdd43(0x17c)][_0x2fdd43(0x160)](this[_0x2fdd43(0x183)]);break;case _0x2fdd43(0x15f):this[_0x2fdd43(0x17c)][_0x2fdd43(0x160)](this[_0x2fdd43(0x173)]);}});}}function _0x1603(){const _0x5bfe4b=['innerHTML','12wlUBis','ck-ai-suggestion__body__content-part__icon-accepted','ck-content','contentView','index','accepted','ck-ai-suggestion__body__content-part__title__label','1318823GrBsuf','16812LewGEj','fire','ck-ai-suggestion__body__content-part_','AI_SUGGESTION_CONTENT_PART_TITLE','ck-ai-suggestion__body__content-part__content','ck-ai-suggestion__body__content-part__icon-title','ck-ai-suggestion__body__content-part','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','AI_SUGGESTION_CONTENT_PART_REJECTED','content','4208JoBzEY','ck-ai-suggestion__body__content-part_active','hasChanges','remove','toggleHeader','execute','_toolbarView','rejected','add','36409NweEQF','ck-reset_all-excluded','mouseLeaveSuggestion','extendTemplate','streaming','ck-ai-suggestion__body__content-part__icon-rejected','div','stream','AI_SUGGESTION_CONTENT_PART_DELETE','pending','ck-hidden','addMany','setTemplate','change:state','378462gKJDMi','span','delegate','rejectSuggestion','_iconStateRejected','showChangeInText','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','createCollection','insertSuggestion','bindTemplate','isEnabled','1010RKImJl','1069278EEScvr','children','htmlStreamer','48mvopCE','isVisible','bind','ck-ai-suggestion__body__content-part__title','mouseOverSuggestion','_iconStateAccepted','partDefinition','element','480NWFbOI','has','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','animation:\x20ck-html-streamer-fade-in\x20.5s','state','set','79436cFHjML','toString','items','updateContent','headerView'];_0x1603=function(){return _0x5bfe4b;};return _0x1603();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f2aed=_0x2f8b;(function(_0x12697d,_0x3c8073){const _0x14637f=_0x2f8b,_0x2fe1b6=_0x12697d();while(!![]){try{const _0x3b972f=parseInt(_0x14637f(0x200))/0x1*(parseInt(_0x14637f(0x1f4))/0x2)+-parseInt(_0x14637f(0x1ff))/0x3*(-parseInt(_0x14637f(0x201))/0x4)+-parseInt(_0x14637f(0x209))/0x5+-parseInt(_0x14637f(0x208))/0x6+parseInt(_0x14637f(0x207))/0x7*(parseInt(_0x14637f(0x202))/0x8)+parseInt(_0x14637f(0x210))/0x9*(parseInt(_0x14637f(0x1fa))/0xa)+parseInt(_0x14637f(0x217))/0xb;if(_0x3b972f===_0x3c8073)break;else _0x2fe1b6['push'](_0x2fe1b6['shift']());}catch(_0x8b51e3){_0x2fe1b6['push'](_0x2fe1b6['shift']());}}}(_0x5d0c,0x76423));import{getTranslation as _0x34ad29}from'../../utils/common-translations.js';function _0x5d0c(){const _0x1a4fb7=['toggleShowChanges','18CxlDEM','93306YfjvFY','20632MbjDmj','2192136RAcKaJ','execute','showDiff','setTemplate','ck-ai-suggestion__header','7WhxfQn','2904456bLQzAM','514940iZPHBP','set','showHeader','AI_SUGGESTION_BUTTON_SHOW_CHANGES','fire','content','ck-hidden','45xqHsFm','children','AI_SUGGESTION_HEADER_TITLE','filter','render','isShowChangesToggleVisible','bind','6167590vgGxPB','showChangesToggleView','span','2pnGyON','iconView','add','ck-ai-suggestion__header__show-changes-toggle','div','isVisible','224980dVEFEC','isOn','icon','remove'];_0x5d0c=function(){return _0x1a4fb7;};return _0x5d0c();}import{ButtonView as _0x2dd6be,IconView as _0x30b577,View as _0x557cd1}from'ckeditor5/src/ui.js';import{IconDocument as _0x313edd,IconShowChangesOff as _0x2d3310,IconShowChangesOn as _0x5384bb}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x557cd1{[_0x5f2aed(0x218)];constructor(_0x23f795,_0x36d422){const _0xfa4e67=_0x5f2aed;super(_0x23f795),this[_0xfa4e67(0x20a)](_0xfa4e67(0x215),!0x0),this[_0xfa4e67(0x218)]=new ShowChangesToggleView(_0x23f795),this[_0xfa4e67(0x218)][_0xfa4e67(0x20a)]({'class':_0xfa4e67(0x1f7),'label':_0x34ad29(_0x23f795,_0xfa4e67(0x20c)),'withText':!0x0}),this[_0xfa4e67(0x218)][_0xfa4e67(0x1fb)]=_0x36d422[_0xfa4e67(0x204)],this[_0xfa4e67(0x218)][_0xfa4e67(0x216)](_0xfa4e67(0x1f9))['to'](this,_0xfa4e67(0x215)),this[_0xfa4e67(0x218)][_0xfa4e67(0x216)](_0xfa4e67(0x1fc))['to'](this[_0xfa4e67(0x218)],_0xfa4e67(0x1fb),_0x5575d1=>_0x5575d1?_0x5384bb:_0x2d3310),this[_0xfa4e67(0x218)]['on'](_0xfa4e67(0x203),()=>{const _0x4d50d0=_0xfa4e67;this[_0x4d50d0(0x218)][_0x4d50d0(0x1fb)]=!this[_0x4d50d0(0x218)][_0x4d50d0(0x1fb)],this[_0x4d50d0(0x20d)](_0x4d50d0(0x1fe),{'isOn':this[_0x4d50d0(0x218)][_0x4d50d0(0x1fb)]});});const _0x1a9739=new _0x30b577();_0x1a9739[_0xfa4e67(0x20e)]=_0x313edd,this[_0xfa4e67(0x205)]({'tag':_0xfa4e67(0x1f8),'attributes':{'class':['ck',_0xfa4e67(0x206),!0x1===_0x36d422[_0xfa4e67(0x20b)]?_0xfa4e67(0x20f):null][_0xfa4e67(0x213)](Boolean)},'children':[_0x1a9739,{'tag':_0xfa4e67(0x219),'children':[_0x34ad29(_0x23f795,_0xfa4e67(0x212))]},this[_0xfa4e67(0x218)]]});}}function _0x2f8b(_0x578736,_0x282f4a){const _0x5d0c5b=_0x5d0c();return _0x2f8b=function(_0x2f8b35,_0x53203d){_0x2f8b35=_0x2f8b35-0x1f4;let _0x31b255=_0x5d0c5b[_0x2f8b35];return _0x31b255;},_0x2f8b(_0x578736,_0x282f4a);}export class ShowChangesToggleView extends _0x2dd6be{[_0x5f2aed(0x214)](){const _0x35cfc3=_0x5f2aed;super[_0x35cfc3(0x214)](),this[_0x35cfc3(0x211)][_0x35cfc3(0x1fd)](this[_0x35cfc3(0x1f5)]),this[_0x35cfc3(0x211)][_0x35cfc3(0x1f6)](this[_0x35cfc3(0x1f5)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1f33b8,_0x184696){const _0x4a09ab=_0x4073,_0x243138=_0x1f33b8();while(!![]){try{const _0x5eaa72=parseInt(_0x4a09ab(0xc5))/0x1+parseInt(_0x4a09ab(0xc1))/0x2*(-parseInt(_0x4a09ab(0xbe))/0x3)+-parseInt(_0x4a09ab(0xcb))/0x4*(parseInt(_0x4a09ab(0xb5))/0x5)+-parseInt(_0x4a09ab(0xc0))/0x6*(-parseInt(_0x4a09ab(0xc2))/0x7)+parseInt(_0x4a09ab(0xc4))/0x8*(parseInt(_0x4a09ab(0xc7))/0x9)+-parseInt(_0x4a09ab(0xb9))/0xa*(parseInt(_0x4a09ab(0xb8))/0xb)+-parseInt(_0x4a09ab(0xc6))/0xc*(-parseInt(_0x4a09ab(0xba))/0xd);if(_0x5eaa72===_0x184696)break;else _0x243138['push'](_0x243138['shift']());}catch(_0x34451e){_0x243138['push'](_0x243138['shift']());}}}(_0x5a52,0xb944b));import{ButtonView as _0x1361f0}from'ckeditor5/src/ui.js';import{IconMaximize as _0x361664,IconMinimize as _0x5c4410}from'ckeditor5/src/icons.js';function _0x5a52(){const _0x50ea2f=['914yoAYjn','154427DQddnt','label','16MgCamS','11847SUhWnr','60BNEmdu','718569sOEPws','isOn','execute','set','8CRKVQH','bind','ck-ai-tabs__resize\x20ck-ai-button-tertiary-text','320455yhecji','icon','AI_TABS_LABEL_MAXIMIZE','99jkstvL','1466540aKAQoe','4949243UoVXUj','fire','isMaximized','AI_TABS_LABEL_MINIMIZE','6810HpDtJW','resizeTabs','318upAjNs'];_0x5a52=function(){return _0x50ea2f;};return _0x5a52();}function _0x4073(_0x54c11b,_0xa48abe){const _0x5a52a0=_0x5a52();return _0x4073=function(_0x407375,_0x593108){_0x407375=_0x407375-0xb5;let _0x2f9192=_0x5a52a0[_0x407375];return _0x2f9192;},_0x4073(_0x54c11b,_0xa48abe);}import{getTranslation as _0x709c8e}from'../../aicore/utils/common-translations.js';export function createResizeButton(_0x490f0e,_0x13e032){const _0x56d3fc=_0x4073,_0x962b1c=new _0x1361f0(_0x490f0e),_0x2ab6df=_0x709c8e(_0x490f0e,_0x56d3fc(0xbd)),_0x4a69b7=_0x709c8e(_0x490f0e,_0x56d3fc(0xb7));return _0x962b1c[_0x56d3fc(0xca)]({'withText':!0x1,'icon':_0x361664,'tooltip':!0x0,'class':_0x56d3fc(0xcd)}),_0x962b1c[_0x56d3fc(0xcc)](_0x56d3fc(0xc3))['to'](_0x13e032,_0x56d3fc(0xbc),_0x307b7d=>_0x307b7d?_0x2ab6df:_0x4a69b7),_0x962b1c[_0x56d3fc(0xcc)](_0x56d3fc(0xb6))['to'](_0x13e032,_0x56d3fc(0xbc),_0x7cc6af=>_0x7cc6af?_0x5c4410:_0x361664),_0x962b1c[_0x56d3fc(0xcc)](_0x56d3fc(0xc8))['to'](_0x13e032,_0x56d3fc(0xbc)),_0x962b1c['on'](_0x56d3fc(0xc9),()=>{const _0x4c2283=_0x56d3fc;_0x13e032[_0x4c2283(0xbb)](_0x4c2283(0xbf));}),_0x962b1c;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a5ab4=_0x483e;(function(_0x579bdf,_0x9824cf){const _0x42b442=_0x483e,_0x152815=_0x579bdf();while(!![]){try{const _0x4e3a28=-parseInt(_0x42b442(0x7f))/0x1+parseInt(_0x42b442(0x8e))/0x2+parseInt(_0x42b442(0x92))/0x3+parseInt(_0x42b442(0x84))/0x4+-parseInt(_0x42b442(0x80))/0x5*(-parseInt(_0x42b442(0x89))/0x6)+parseInt(_0x42b442(0x8a))/0x7*(-parseInt(_0x42b442(0x94))/0x8)+-parseInt(_0x42b442(0x8d))/0x9*(parseInt(_0x42b442(0x91))/0xa);if(_0x4e3a28===_0x9824cf)break;else _0x152815['push'](_0x152815['shift']());}catch(_0x22e54a){_0x152815['push'](_0x152815['shift']());}}}(_0x58b8,0xea183));import{CKEditorError as _0x2a180b,compareArrays as _0x3faf02}from'ckeditor5/src/utils.js';function _0x483e(_0x67e3dc,_0x4abb42){const _0x58b8cd=_0x58b8();return _0x483e=function(_0x483e38,_0x34e9a0){_0x483e38=_0x483e38-0x7d;let _0x57c190=_0x58b8cd[_0x483e38];return _0x57c190;},_0x483e(_0x67e3dc,_0x4abb42);}import{getNodePath as _0x25b18a,isText as _0x490733,getChildren as _0x465039,isDocument as _0x2ddeb5,getParent as _0x471a76,textContent as _0x434082,hasChildren as _0x23d56d}from'./htmlparser.js';export class DocumentPosition{[_0x1a5ab4(0x82)];[_0x1a5ab4(0x9d)];[_0x1a5ab4(0x96)];constructor(_0x33ee36,_0x44753d,_0x160ef6){const _0x3eab42=_0x1a5ab4;if(_0x490733(_0x44753d)&&_0x160ef6>_0x44753d[_0x3eab42(0x81)][_0x3eab42(0x93)])throw new _0x2a180b(_0x3eab42(0x86),null,{'index':_0x160ef6,'parent':_0x44753d});if(_0x23d56d(_0x44753d)&&_0x160ef6>_0x465039(_0x44753d)[_0x3eab42(0x93)])throw new _0x2a180b(_0x3eab42(0x86),null,{'index':_0x160ef6,'parent':_0x44753d});if(_0x160ef6<0x0)throw new _0x2a180b(_0x3eab42(0x86),null,{'index':_0x160ef6,'parent':_0x44753d});this[_0x3eab42(0x82)]=_0x44753d,this[_0x3eab42(0x9d)]=_0x160ef6,this[_0x3eab42(0x96)]=_0x33ee36;}get[_0x1a5ab4(0x9a)](){const _0x333b1e=_0x1a5ab4;return[..._0x25b18a(this[_0x333b1e(0x82)]),this[_0x333b1e(0x9d)]];}[_0x1a5ab4(0x87)](_0x2ffed3){const _0x2df260=_0x1a5ab4;return this[_0x2df260(0x96)]==_0x2ffed3[_0x2df260(0x96)]&&_0x2df260(0x99)===_0x3faf02(this[_0x2df260(0x9a)],_0x2ffed3[_0x2df260(0x9a)]);}get[_0x1a5ab4(0x97)](){const _0x4f52b1=_0x1a5ab4;if(_0x23d56d(this[_0x4f52b1(0x82)])){const _0xc7d1e4=_0x465039(this[_0x4f52b1(0x82)])[this[_0x4f52b1(0x9d)]];if(_0xc7d1e4)return _0xc7d1e4;{const _0x2a94fb=DocumentPosition[_0x4f52b1(0x83)](this[_0x4f52b1(0x96)],this[_0x4f52b1(0x82)]);if(_0x2a94fb)return _0x2a94fb[_0x4f52b1(0x97)];}}return null;}get[_0x1a5ab4(0x95)](){const _0x541ee7=_0x1a5ab4;if(_0x23d56d(this[_0x541ee7(0x82)])){const _0x5f50b7=_0x465039(this[_0x541ee7(0x82)])[this[_0x541ee7(0x9d)]-0x1];if(_0x5f50b7)return _0x5f50b7;{const _0x45c3d7=DocumentPosition[_0x541ee7(0x7d)](this[_0x541ee7(0x96)],this[_0x541ee7(0x82)]);if(_0x45c3d7)return _0x45c3d7[_0x541ee7(0x95)];}}return null;}[_0x1a5ab4(0x8c)](_0x30fb2b=_0x1a5ab4(0x9c)){const _0x49a709=_0x1a5ab4;if(!_0x490733(this[_0x49a709(0x82)]))return this;const _0x1f25fb=this[_0x49a709(0x9a)][this[_0x49a709(0x9a)][_0x49a709(0x93)]-0x1],_0x265ecf=_0x434082(this[_0x49a709(0x82)])[_0x49a709(0x8f)](/(?:\s*\S+\s*)/g);let _0x19bbfe=0x0,_0x141a7c=_0x1f25fb;for(const _0x37facf of _0x265ecf){if(_0x19bbfe+_0x37facf[_0x49a709(0x93)]===_0x1f25fb)return this;if(_0x19bbfe+_0x37facf[_0x49a709(0x93)]>_0x1f25fb){_0x141a7c=_0x49a709(0x9c)===_0x30fb2b?_0x19bbfe:_0x19bbfe+_0x37facf[_0x49a709(0x93)];break;}_0x19bbfe+=_0x37facf[_0x49a709(0x93)];}return DocumentPosition[_0x49a709(0x98)](this[_0x49a709(0x96)],this[_0x49a709(0x82)],_0x141a7c);}static[_0x1a5ab4(0x83)](_0x1aee85,_0x534e69){const _0x493161=_0x1a5ab4;if(_0x2ddeb5(_0x534e69))return null;const _0xf26e57=_0x471a76(_0x534e69);return DocumentPosition[_0x493161(0x98)](_0x1aee85,_0xf26e57,_0x465039(_0xf26e57)[_0x493161(0x7e)](_0x534e69)+0x1);}static[_0x1a5ab4(0x7d)](_0x52fe66,_0x36f7ac){const _0x23f024=_0x1a5ab4;if(_0x2ddeb5(_0x36f7ac))return null;const _0x2843a7=_0x471a76(_0x36f7ac);return DocumentPosition[_0x23f024(0x98)](_0x52fe66,_0x2843a7,_0x465039(_0x2843a7)[_0x23f024(0x7e)](_0x36f7ac));}static[_0x1a5ab4(0x98)](_0x46788f,_0x58c538,_0x5d1fc0=_0x1a5ab4(0x9c)){const _0x381a04=_0x1a5ab4;return new DocumentPosition(_0x46788f,_0x58c538,_0x381a04(0x9c)===_0x5d1fc0?0x0:_0x381a04(0x90)===_0x5d1fc0?_0x490733(_0x58c538)?_0x58c538[_0x381a04(0x81)][_0x381a04(0x93)]:_0x465039(_0x58c538)[_0x381a04(0x93)]:_0x5d1fc0);}static[_0x1a5ab4(0x9b)](_0x231e42,_0x2e29fe){const _0x911196=_0x1a5ab4;if(!_0x2e29fe[_0x911196(0x93)])throw new _0x2a180b(_0x911196(0x8b),null,{'path':_0x2e29fe});const _0x1098de=_0x2e29fe[_0x911196(0x88)](0x0,-0x1)[_0x911196(0x85)]((_0x2c1fd5,_0x224891)=>_0x490733(_0x2c1fd5)?_0x2c1fd5:_0x465039(_0x2c1fd5)[_0x224891],_0x231e42);return DocumentPosition[_0x911196(0x98)](_0x231e42,_0x1098de,_0x2e29fe[_0x2e29fe[_0x911196(0x93)]-0x1]);}}function _0x58b8(){const _0x38bd4c=['document','nextNode','createAt','same','path','createFromPath','start','index','createBefore','indexOf','45455kWdlEh','5mBFXwB','data','parent','createAfter','3304180grLAsq','reduce','ai-documentposition-index-out-of-bounds','isEqual','slice','1185186caBlmn','7VYtYkV','ai-documentposition-createfrompath-path-cannot-be-empty','getNudgedToWordBoundary','3951YosYYD','2569526bwpDow','match','end','27980IhiNnB','2517819WBzSSS','length','7319872ZLLDIu','previousNode'];_0x58b8=function(){return _0x38bd4c;};return _0x58b8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3f64a9=_0xff4a;(function(_0x59db05,_0x2e14e8){const _0xce542=_0xff4a,_0x491fe7=_0x59db05();while(!![]){try{const _0x3f826c=-parseInt(_0xce542(0x195))/0x1+parseInt(_0xce542(0x187))/0x2*(parseInt(_0xce542(0x193))/0x3)+parseInt(_0xce542(0x180))/0x4*(-parseInt(_0xce542(0x17d))/0x5)+parseInt(_0xce542(0x183))/0x6+parseInt(_0xce542(0x182))/0x7+-parseInt(_0xce542(0x196))/0x8+parseInt(_0xce542(0x17e))/0x9*(parseInt(_0xce542(0x18f))/0xa);if(_0x3f826c===_0x2e14e8)break;else _0x491fe7['push'](_0x491fe7['shift']());}catch(_0x82d648){_0x491fe7['push'](_0x491fe7['shift']());}}}(_0x5d2b,0xa9042));import{DocumentPosition as _0x41fd66}from'./documentposition.js';import{clone as _0x48c107,getParents as _0x18ab5e,Document as _0x59b115,Text as _0x3a30a5,isTag as _0x272ebf,isText as _0x22a364,replaceElement as _0x231322,removeElement as _0x4e9ab8}from'./htmlparser.js';function _0xff4a(_0xc910bb,_0x2fdce5){const _0x5d2bad=_0x5d2b();return _0xff4a=function(_0xff4a94,_0x340c43){_0xff4a94=_0xff4a94-0x17a;let _0x54ce2a=_0x5d2bad[_0xff4a94];return _0x54ce2a;},_0xff4a(_0xc910bb,_0x2fdce5);}export class DocumentRange{[_0x3f64a9(0x192)];[_0x3f64a9(0x198)];constructor(_0x457c72,_0x263094){const _0x226178=_0x3f64a9;this[_0x226178(0x192)]=_0x457c72,this[_0x226178(0x198)]=_0x263094;}[_0x3f64a9(0x188)](_0x41cb3e){const _0x550fb6=_0x3f64a9;return this==_0x41cb3e||this[_0x550fb6(0x192)][_0x550fb6(0x188)](_0x41cb3e[_0x550fb6(0x192)])&&this[_0x550fb6(0x198)][_0x550fb6(0x188)](_0x41cb3e[_0x550fb6(0x198)]);}[_0x3f64a9(0x189)](){const _0x5922f4=_0x3f64a9;return new DocumentRange(this[_0x5922f4(0x192)][_0x5922f4(0x189)](_0x5922f4(0x192)),this[_0x5922f4(0x198)][_0x5922f4(0x189)](_0x5922f4(0x198)));}[_0x3f64a9(0x18b)](){const _0x86c0d7=_0x3f64a9,_0x11b772=_0x48c107(this[_0x86c0d7(0x192)][_0x86c0d7(0x17b)]),_0x55ad50=_0x41fd66[_0x86c0d7(0x17f)](_0x11b772,this[_0x86c0d7(0x192)][_0x86c0d7(0x199)]),_0x69de59=_0x41fd66[_0x86c0d7(0x17f)](_0x11b772,this[_0x86c0d7(0x198)][_0x86c0d7(0x199)]);let _0x496a4c,_0x390356;if(_0x22a364(_0x55ad50[_0x86c0d7(0x18a)])){const _0xd9378e=_0x55ad50[_0x86c0d7(0x199)][_0x55ad50[_0x86c0d7(0x199)][_0x86c0d7(0x194)]-0x1],_0x34a6e9=new _0x3a30a5(_0x55ad50[_0x86c0d7(0x18a)][_0x86c0d7(0x18e)][_0x86c0d7(0x19a)](_0xd9378e));_0x231322(_0x55ad50[_0x86c0d7(0x18a)],_0x34a6e9),_0x496a4c=_0x34a6e9;}else _0x496a4c=_0x55ad50[_0x86c0d7(0x185)];if(_0x22a364(_0x69de59[_0x86c0d7(0x18a)])){const _0x1e7c6d=_0x69de59[_0x86c0d7(0x199)][_0x69de59[_0x86c0d7(0x199)][_0x86c0d7(0x194)]-0x1],_0x17e22c=new _0x3a30a5(_0x69de59[_0x86c0d7(0x18a)][_0x86c0d7(0x18e)][_0x86c0d7(0x19a)](0x0,_0x1e7c6d));_0x231322(_0x69de59[_0x86c0d7(0x18a)],_0x17e22c),_0x390356=_0x17e22c;}else _0x390356=_0x69de59[_0x86c0d7(0x181)];if(!(_0x496a4c&&_0x390356&&_0x11b772[_0x86c0d7(0x17c)]&&_0x11b772[_0x86c0d7(0x18c)]))return new _0x59b115([]);const _0x530729=_0x18ab5e(_0x496a4c),_0xd0a494=_0x18ab5e(_0x390356),_0x77bfef=[],_0x2b77db=[];let _0x51319b=_0x11b772[_0x86c0d7(0x17c)];for(;_0x51319b&&_0x51319b!==_0x496a4c;){let _0x37f15b;_0x530729[_0x86c0d7(0x191)](_0x51319b)||_0x77bfef[_0x86c0d7(0x184)](_0x51319b),_0x37f15b=_0x272ebf(_0x51319b)?_0x41fd66[_0x86c0d7(0x190)](_0x11b772,_0x51319b,_0x86c0d7(0x192)):_0x41fd66[_0x86c0d7(0x17a)](_0x11b772,_0x51319b),_0x51319b=_0x37f15b?_0x37f15b[_0x86c0d7(0x185)]:null;}for(_0x51319b=_0x11b772[_0x86c0d7(0x18c)];_0x51319b&&_0x51319b!==_0x390356;){let _0x505876;_0xd0a494[_0x86c0d7(0x191)](_0x51319b)||_0x2b77db[_0x86c0d7(0x184)](_0x51319b),_0x505876=_0x272ebf(_0x51319b)?_0x41fd66[_0x86c0d7(0x190)](_0x11b772,_0x51319b,_0x86c0d7(0x198)):_0x41fd66[_0x86c0d7(0x197)](_0x11b772,_0x51319b),_0x51319b=_0x505876?_0x505876[_0x86c0d7(0x181)]:null;}return _0x77bfef[_0x86c0d7(0x186)](_0x368784=>{_0x4e9ab8(_0x368784);}),_0x2b77db[_0x86c0d7(0x18d)]()[_0x86c0d7(0x186)](_0x35b3a2=>{_0x4e9ab8(_0x35b3a2);}),_0x11b772;}}function _0x5d2b(){const _0x18ce94=['getNudgedToWordBoundary','parent','getContent','lastChild','reverse','data','2733690dzMfQl','createAt','includes','start','9UwCljO','length','685896uSftzy','5252240yettTf','createBefore','end','path','slice','createAfter','document','firstChild','1060325DtgFcS','27vOLJHG','createFromPath','16GcRNUk','previousNode','8775396pvIlSx','2598156EtvUoD','push','nextNode','forEach','250810WPnGgj','isEqual'];_0x5d2b=function(){return _0x18ce94;};return _0x5d2b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1a8965,_0x29c924){var _0x5b5198=_0xd158,_0x4ca30d=_0x1a8965();while(!![]){try{var _0x5d8bdf=-parseInt(_0x5b5198(0x9c))/0x1+parseInt(_0x5b5198(0x9f))/0x2+-parseInt(_0x5b5198(0xa2))/0x3*(parseInt(_0x5b5198(0xa1))/0x4)+parseInt(_0x5b5198(0x9e))/0x5+-parseInt(_0x5b5198(0xa9))/0x6*(parseInt(_0x5b5198(0xa3))/0x7)+-parseInt(_0x5b5198(0xa6))/0x8*(-parseInt(_0x5b5198(0x9a))/0x9)+parseInt(_0x5b5198(0x9d))/0xa*(parseInt(_0x5b5198(0xa7))/0xb);if(_0x5d8bdf===_0x29c924)break;else _0x4ca30d['push'](_0x4ca30d['shift']());}catch(_0x354ec8){_0x4ca30d['push'](_0x4ca30d['shift']());}}}(_0x1888,0x76f0b));function _0xd158(_0x43f664,_0x1d00d7){var _0x1888a5=_0x1888();return _0xd158=function(_0xd1580c,_0x556b62){_0xd1580c=_0xd1580c-0x9a;var _0x1e08bd=_0x1888a5[_0xd1580c];return _0x1e08bd;},_0xd158(_0x43f664,_0x1d00d7);}import{CKEditorError as _0x49e893}from'ckeditor5/src/utils.js';import{Editor as _0x5baf9e}from'ckeditor5/src/core.js';export function getEditorFromContext(_0x4cb200){var _0x1d43b0=_0xd158;if(_0x4cb200 instanceof _0x5baf9e)return _0x4cb200;if(_0x4cb200?.[_0x1d43b0(0xa4)]&&_0x4cb200[_0x1d43b0(0xa4)][_0x1d43b0(0xa0)](0x0))return _0x4cb200[_0x1d43b0(0xa4)][_0x1d43b0(0xa8)]>0x1&&console[_0x1d43b0(0x9b)](_0x1d43b0(0xa5)),_0x4cb200[_0x1d43b0(0xa4)][_0x1d43b0(0xa0)](0x0);throw new _0x49e893(_0x1d43b0(0xaa));}function _0x1888(){var _0x31a8ee=['1471515VAEbhj','740550PCmpeW','get','8pzdvXc','1135623RefgpX','6069GrvlCg','editors','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.','2635120gLRbUA','42801rKmAlv','length','2826nhMuxQ','ai-get-editor-from-context-no-editor','9eRSxTb','warn','664290hykawh','3400sJmPxo'];_0x1888=function(){return _0x31a8ee;};return _0x1888();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xb61c0,_0x302b61){const _0xc1df5a=_0x2d20,_0x5bdb2b=_0xb61c0();while(!![]){try{const _0x24e7c5=-parseInt(_0xc1df5a(0xa6))/0x1+parseInt(_0xc1df5a(0x98))/0x2*(-parseInt(_0xc1df5a(0xa9))/0x3)+parseInt(_0xc1df5a(0x96))/0x4*(parseInt(_0xc1df5a(0xb0))/0x5)+parseInt(_0xc1df5a(0xa1))/0x6+parseInt(_0xc1df5a(0x97))/0x7*(-parseInt(_0xc1df5a(0xae))/0x8)+parseInt(_0xc1df5a(0x9a))/0x9*(parseInt(_0xc1df5a(0x9c))/0xa)+-parseInt(_0xc1df5a(0xb3))/0xb*(-parseInt(_0xc1df5a(0x99))/0xc);if(_0x24e7c5===_0x302b61)break;else _0x5bdb2b['push'](_0x5bdb2b['shift']());}catch(_0x5db985){_0x5bdb2b['push'](_0x5bdb2b['shift']());}}}(_0x162d,0x3dd7b));import{transformOperationSets as _0x331783}from'ckeditor5/src/engine.js';import{append as _0x371062,findByAttribute as _0x59a47f,prependChild as _0x1faf82,removeElement as _0xe96acc,serialize as _0x50d156}from'./htmlparser.js';function _0x162d(){const _0xb48165=['cloneNode','previousSibling','9321mZJNGS','model','node','getOperations','filter','319512LpcPPQ','length','118635lLLKNl','map','history','581878xlXRrk','content','getDocumentContext','version','shift','20nVLFPC','63ECxIvC','182pkoGco','156IXRKed','9EZMpEW','getDiff','1092260xBBgRq','data-id','documentContextContent','operationsA','removed','2125140rpxUOD','anchorId','type','new','document','374230eSiBlc'];_0x162d=function(){return _0xb48165;};return _0x162d();}function _0x2d20(_0x5450fb,_0x433fe9){const _0x162df3=_0x162d();return _0x2d20=function(_0x2d207b,_0x1b49c3){_0x2d207b=_0x2d207b-0x95;let _0x54bc2b=_0x162df3[_0x2d207b];return _0x54bc2b;},_0x2d20(_0x5450fb,_0x433fe9);}export function getOperationsFromReply({editor:_0x276960,interaction:_0x27e6ff,reply:_0x1873ef,groups:_0x5d40fc,transform:_0x32edbc,documentCompare:_0x1c244c,documentCompareOptions:_0x4590b2}){const _0x3d4c35=_0x2d20,_0x4c7f1b=_0x27e6ff[_0x3d4c35(0xb5)]();if(!_0x4c7f1b)return[];const _0x339b05=_0x4c7f1b[_0x3d4c35(0xb4)],_0x49ca4c=_0x4c7f1b[_0x3d4c35(0xb6)],_0x19c082=_0x1873ef[_0x3d4c35(0x9e)][_0x3d4c35(0xa7)](!0x0);for(const {changes:_0x58e0b5}of _0x5d40fc){const _0x523a93=_0x58e0b5[_0x3d4c35(0xad)](_0x30ddfd=>_0x3d4c35(0xa4)!=_0x30ddfd[_0x3d4c35(0xa3)])[_0x3d4c35(0xb1)](_0xf596ea=>_0x59a47f(_0x3d4c35(0x9d),_0xf596ea['id'],_0x19c082)),_0xd7ca44=_0x58e0b5[_0x3d4c35(0xad)](_0x31f356=>_0x3d4c35(0xa0)!=_0x31f356[_0x3d4c35(0xa3)])[_0x3d4c35(0xb1)](_0x3bebac=>_0x3bebac[_0x3d4c35(0xab)][_0x3d4c35(0xa7)](!0x0));let _0x3d04ad=null;if(_0x523a93[_0x3d4c35(0xaf)]){_0x3d04ad=_0x523a93[0x0][_0x3d4c35(0xa8)];for(let _0xee5e2a=0x0;_0xee5e2a<_0x523a93[_0x3d4c35(0xaf)];_0xee5e2a++)_0xe96acc(_0x523a93[_0xee5e2a]);}if(_0xd7ca44[_0x3d4c35(0xaf)]){_0x3d04ad||(_0x58e0b5[0x0][_0x3d4c35(0xa2)]?_0x3d04ad=_0x59a47f(_0x3d4c35(0x9d),_0x58e0b5[0x0][_0x3d4c35(0xa2)],_0x19c082):(_0x3d04ad=_0xd7ca44[_0x3d4c35(0x95)](),_0x1faf82(_0x19c082,_0x3d04ad)));for(let _0x3252d8=0x0;_0x3252d8<_0xd7ca44[_0x3d4c35(0xaf)];_0x3252d8++)_0x371062(_0x3d04ad,_0xd7ca44[_0x3252d8]),_0x3d04ad=_0xd7ca44[_0x3252d8];}}const _0x197b0f=_0x50d156(_0x19c082),_0xa0a19=_0x1c244c[_0x3d4c35(0x9b)](_0x339b05,_0x197b0f,_0x4590b2)[_0x3d4c35(0xac)]();if(_0x32edbc){const _0x1e796e=_0x276960[_0x3d4c35(0xaa)][_0x3d4c35(0xa5)][_0x3d4c35(0xb2)][_0x3d4c35(0xac)](_0x49ca4c),_0x395a10={'document':_0x276960[_0x3d4c35(0xaa)][_0x3d4c35(0xa5)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x331783(_0xa0a19,_0x1e796e,_0x395a10)[_0x3d4c35(0x9f)];}return _0xa0a19;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3278(){const _0x1fbebb=['insert','addOperation','data-id','root','4477160ObfMic','position','sourcePosition','changeAttribute','delete','offset','element','...','children','stringify','focus','removed','newRange','removeAttribute','batch','_getTransformedByInsertion','cloneNode','isObject','map','data','change','createPositionFromPath','schema','isBefore','clone','nodeBefore','targetPosition','getMovedRangeStart','isMarkedRemoveOperation','toNone','parent','getDiff','merge','split','node','925674aUxBla','TrackChangesEditing','$root','2ZCEXWr','new','plugins','index','_getTransformedByDeletion','2056521lOuVzh','set','end','_applyOperationsAsSuggestions','word','110753sJoyVy','reverse','push','range','moveTargetPosition','7979265FVDkUd','remove','path','applyOperation','15ezuzaM','createRange','getOperations','markers','parse','baseVersion','DocumentCompare','POSITIVE_INFINITY','changes','splitPosition','nodeAfter','7UHUphF','length','start','6182530JCEapT','isBlock','type','getFirstRange','get','marker','name','model','getMinimalFlatRanges','createSelection','5753864eTXPSq','forward','setTo','rename','textNode','isAfter','$text','stickiness','modifySelection','slice','getShiftedBy','getTransformedByOperation','addAttribute','isDocumentOperation','createPositionAt','backward','howMany'];_0x3278=function(){return _0x1fbebb;};return _0x3278();}(function(_0x49d324,_0x4b683f){const _0x475829=_0x247c,_0x4a5ef3=_0x49d324();while(!![]){try{const _0x3005b7=parseInt(_0x475829(0x117))/0x1*(-parseInt(_0x475829(0x10d))/0x2)+parseInt(_0x475829(0x112))/0x3+-parseInt(_0x475829(0xe7))/0x4+parseInt(_0x475829(0x120))/0x5*(parseInt(_0x475829(0x10a))/0x6)+parseInt(_0x475829(0xc5))/0x7*(-parseInt(_0x475829(0xd2))/0x8)+parseInt(_0x475829(0x11c))/0x9+parseInt(_0x475829(0xc8))/0xa;if(_0x3005b7===_0x4b683f)break;else _0x4a5ef3['push'](_0x4a5ef3['shift']());}catch(_0x16b6dc){_0x4a5ef3['push'](_0x4a5ef3['shift']());}}}(_0x3278,0xabda2));function _0x247c(_0x52ec92,_0x8c1c43){const _0x3278ba=_0x3278();return _0x247c=function(_0x247c01,_0x1a0f10){_0x247c01=_0x247c01-0xc2;let _0x17b5d9=_0x3278ba[_0x247c01];return _0x17b5d9;},_0x247c(_0x52ec92,_0x8c1c43);}import{findOne as _0x261409,getAttribute as _0x4ac3d5,Document as _0x58bd81,serialize as _0x147288,parse as _0x5094a4}from'./htmlparser.js';import{_DetachOperation as _0x2820c1,_removeFromModelNodeList as _0x41bd51,_insertIntoModelNodeList as _0x3f9284}from'ckeditor5/src/engine.js';export function getSuggestionPartsFromReply({editor:_0x186080,changeGroups:_0x475927,documentContextContent:_0x1c150e,showDiff:_0x4a536b,trimUnchanged:_0x455171=!0x0}){const _0x2d781f=_0x247c;return _0x475927[_0x2d781f(0xf9)](_0x52218e=>{const _0x2b65f6=_0x2d781f,_0x4492fb=new _0x58bd81([]),_0x245cb6=new _0x58bd81([]);for(const _0x4dd47b of _0x52218e[_0x2b65f6(0xc2)])if(_0x4a536b&&_0x2b65f6(0xf2)==_0x4dd47b[_0x2b65f6(0xca)]||_0x245cb6[_0x2b65f6(0xef)][_0x2b65f6(0x119)](_0x4dd47b[_0x2b65f6(0x109)][_0x2b65f6(0xf7)](!0x0)),_0x2b65f6(0x10e)!=_0x4dd47b[_0x2b65f6(0xca)]&&(_0x4a536b||_0x2b65f6(0xf2)!=_0x4dd47b[_0x2b65f6(0xca)])){const _0x533036=_0x261409(_0x469060=>_0x4ac3d5(_0x469060,_0x2b65f6(0xe5))==_0x4dd47b['id'],_0x1c150e,!0x0);_0x533036&&_0x4492fb[_0x2b65f6(0xef)][_0x2b65f6(0x119)](_0x533036[_0x2b65f6(0xf7)](!0x0));}const {content:_0x58680d,hasChanges:_0xf0c7d7}=function(_0x3f3fc6,_0xe024b1,_0x2debda,_0x4f98be,_0x43bf16=!0x0){const _0x541e26=_0x2b65f6,_0x4f3ed4=_0x3f3fc6[_0x541e26(0x10f)][_0x541e26(0xcc)](_0x541e26(0x126)),_0x5e1b74=_0x3f3fc6[_0x541e26(0x10f)][_0x541e26(0xcc)](_0x541e26(0x10b)),_0x474594=_0x147288(_0xe024b1),_0x42fd54=_0x147288(_0x2debda),_0x48cd30=_0x3f3fc6[_0x541e26(0xfa)][_0x541e26(0x124)](_0x474594,_0x541e26(0x10c)),_0x422146=_0x3f3fc6[_0x541e26(0xcf)][_0x541e26(0xe0)](_0x48cd30,0x0),_0xd65be8=_0x4f3ed4[_0x541e26(0x106)](_0x474594,_0x42fd54,{'anchor':_0x422146,'markDeletions':_0x4f98be}),_0x35d554=_0xd65be8[_0x541e26(0x122)]();if(0x0==_0x35d554[_0x541e26(0xc6)])return{'content':_0xe024b1[_0x541e26(0xf7)](!0x0),'hasChanges':!0x1};_0x4f98be?_0x5e1b74[_0x541e26(0x115)](_0x35d554):_0x3f3fc6[_0x541e26(0xcf)][_0x541e26(0xfb)](_0x6542c6=>{const _0x2a4cd4=_0x541e26;for(const _0x2c5e3e of _0x35d554)if(_0x2a4cd4(0x11d)==_0x2c5e3e[_0x2a4cd4(0xca)]){const _0x5cfab0=_0x2c5e3e[_0x2a4cd4(0xe9)],_0x5752cf=_0x2c5e3e[_0x2a4cd4(0xe2)],_0x39622b=new _0x2820c1(_0x5cfab0,_0x5752cf);_0x6542c6[_0x2a4cd4(0xf5)][_0x2a4cd4(0xe4)](_0x39622b),_0x3f3fc6[_0x2a4cd4(0xcf)][_0x2a4cd4(0x11f)](_0x39622b);}else{if(_0x2a4cd4(0xcd)==_0x2c5e3e[_0x2a4cd4(0xca)]){const _0x3fe6cf=_0x2c5e3e[_0x2a4cd4(0xce)],_0x42cdd5=_0x2c5e3e[_0x2a4cd4(0xf3)];_0x48cd30[_0x2a4cd4(0x123)][_0x2a4cd4(0x113)](_0x3fe6cf,_0x42cdd5);}else _0x2c5e3e[_0x2a4cd4(0x125)]=null,_0x2c5e3e[_0x2a4cd4(0xdf)]=!0x1,_0x6542c6[_0x2a4cd4(0xf5)][_0x2a4cd4(0xe4)](_0x2c5e3e),_0x3f3fc6[_0x2a4cd4(0xcf)][_0x2a4cd4(0x11f)](_0x2c5e3e);}});if(_0x43bf16){const _0x5bb824=getMinimalSelection(_0x3f3fc6,_0x35d554,_0x48cd30);expandSelectionWithContext(_0x3f3fc6[_0x541e26(0xcf)],_0x5bb824),function(_0x1e2b0f,_0x1f4e5f){const _0x1ba421=_0x541e26,_0x317805=_0x1f4e5f[_0x1ba421(0xcb)]()[_0x1ba421(0xc7)];let _0x3e7b61=_0x1f4e5f[_0x1ba421(0xcb)]()[_0x1ba421(0x114)];const _0x13dfa0=_0x317805[_0x1ba421(0xe6)];(_0x3e7b61[_0x1ba421(0xd6)]||_0x3e7b61[_0x1ba421(0xc4)]&&_0x3e7b61[_0x1ba421(0xc4)]['is'](_0x1ba421(0xd8)))&&(_0x3f9284(_0x3e7b61,_0x1ba421(0xee)),_0x3e7b61=_0x3e7b61[_0x1ba421(0xdc)](0x3)),(_0x317805[_0x1ba421(0xd6)]||_0x317805[_0x1ba421(0x100)]&&_0x317805[_0x1ba421(0x100)]['is'](_0x1ba421(0xd8)))&&(_0x3f9284(_0x317805,_0x1ba421(0xee)),function(_0xffcdb5,_0x5a27e4,_0x3ba520){const _0x1a584e=_0x1ba421;for(let [_0x5b3124,_0x2cc13d]of _0xffcdb5[_0x1a584e(0x123)]){const _0x1565db=_0x2cc13d[_0x1a584e(0xf6)](_0x5a27e4,_0x3ba520,!0x1);_0x2cc13d=_0x1565db[0x0],_0xffcdb5[_0x1a584e(0x123)][_0x1a584e(0x113)](_0x5b3124,_0x2cc13d);}}(_0x13dfa0,_0x317805,0x3),_0x317805[_0x1ba421(0x105)]==_0x3e7b61[_0x1ba421(0x105)]&&(_0x3e7b61=_0x3e7b61[_0x1ba421(0xdc)](0x3)));const _0x48679f=_0x1e2b0f[_0x1ba421(0x121)](_0x1e2b0f[_0x1ba421(0xe0)](_0x13dfa0,0x0),_0x317805),_0x517b9b=_0x1e2b0f[_0x1ba421(0x121)](_0x3e7b61,_0x1e2b0f[_0x1ba421(0xe0)](_0x13dfa0,_0x1ba421(0x114))),_0x3c1aa4=[..._0x48679f[_0x1ba421(0xd0)](),..._0x517b9b[_0x1ba421(0xd0)]()];_0x3c1aa4[_0x1ba421(0x118)]();for(const _0x1328b9 of _0x3c1aa4)_0x41bd51(_0x1328b9),_transformMarkersByDeletion(_0x13dfa0,_0x1328b9);}(_0x3f3fc6[_0x541e26(0xcf)],_0x5bb824);}const _0x51a30f=_0x3f3fc6[_0x541e26(0xfa)][_0x541e26(0xf0)](_0x48cd30,{'showSuggestionHighlights':!0x0});return{'content':_0x5094a4(_0x51a30f),'hasChanges':!0x0};}(_0x186080,_0x4492fb,_0x245cb6,_0x4a536b,_0x455171);return{'type':_0x52218e[_0x2b65f6(0xc2)][0x0][_0x2b65f6(0xca)],'index':_0x52218e[_0x2b65f6(0x110)],'content':_0x58680d,'hasChanges':_0xf0c7d7};});}export function getMinimalSelection(_0x509b8f,_0x352d68,_0x151aa){const _0x2b390f=_0x247c,_0x116454=_0x509b8f[_0x2b390f(0x10f)][_0x2b390f(0xcc)](_0x2b390f(0x126));let _0xdbb0a=_0x509b8f[_0x2b390f(0xcf)][_0x2b390f(0xe0)](_0x151aa,Number[_0x2b390f(0x127)]),_0x1ff821=_0x509b8f[_0x2b390f(0xcf)][_0x2b390f(0xe0)](_0x151aa,0x0);for(const _0x1e74ed of _0x352d68){let _0x43e710,_0x17f522;if(_0x116454[_0x2b390f(0x103)](_0x1e74ed))_0x43e710=_0x1e74ed[_0x2b390f(0xf3)][_0x2b390f(0xc7)],_0x17f522=_0x1e74ed[_0x2b390f(0xf3)][_0x2b390f(0x114)];else switch(_0xdbb0a=_0xdbb0a[_0x2b390f(0xdd)](_0x1e74ed),_0x1ff821=_0x1ff821[_0x2b390f(0xdd)](_0x1e74ed),_0x1e74ed[_0x2b390f(0xca)]){case _0x2b390f(0xd5):_0x43e710=_0x1e74ed[_0x2b390f(0xe8)],_0x17f522=_0x43e710[_0x2b390f(0xdc)](0x1);break;case _0x2b390f(0xde):case _0x2b390f(0xf4):case _0x2b390f(0xea):_0x43e710=_0x1e74ed[_0x2b390f(0x11a)][_0x2b390f(0xc7)],_0x17f522=_0x1e74ed[_0x2b390f(0x11a)][_0x2b390f(0x114)];break;case _0x2b390f(0xe3):_0x43e710=_0x1e74ed[_0x2b390f(0xe8)],_0x17f522=_0x43e710[_0x2b390f(0xdc)](_0x1e74ed[_0x2b390f(0xe2)]);break;case _0x2b390f(0x108):_0x43e710=_0x1e74ed[_0x2b390f(0xc3)],_0x17f522=_0x1e74ed[_0x2b390f(0x11b)];break;case _0x2b390f(0x107):{const _0x2ea006=_0x1e74ed[_0x2b390f(0x101)][_0x2b390f(0x11e)][_0x2b390f(0xdb)](0x0,-0x1);_0x43e710=_0x509b8f[_0x2b390f(0xcf)][_0x2b390f(0xfc)](_0x151aa,_0x2ea006),_0x17f522=_0x43e710[_0x2b390f(0xdc)](0x1);break;}case _0x2b390f(0x11d):{const _0x4c8e78=_0x1e74ed[_0x2b390f(0xe2)],_0x419831=_0x1e74ed[_0x2b390f(0xe9)][_0x2b390f(0xf6)](_0x1e74ed[_0x2b390f(0x101)],_0x4c8e78),_0x268c40=_0x1e74ed[_0x2b390f(0x102)]();_0x2b390f(0x11d)==_0x1e74ed[_0x2b390f(0xca)]?(_0x43e710=_0x419831,_0x17f522=_0x419831):(_0x43e710=_0x268c40,_0x17f522=_0x268c40[_0x2b390f(0xdc)](_0x4c8e78));break;}}_0x43e710&&_0x43e710[_0x2b390f(0xfe)](_0xdbb0a)&&(_0xdbb0a=_0x43e710[_0x2b390f(0xff)](),_0xdbb0a[_0x2b390f(0xd9)]=_0x2b390f(0x104)),_0x17f522&&_0x17f522[_0x2b390f(0xd7)](_0x1ff821)&&(_0x1ff821=_0x17f522[_0x2b390f(0xff)](),_0x1ff821[_0x2b390f(0xd9)]=_0x2b390f(0x104));}return _0x509b8f[_0x2b390f(0xcf)][_0x2b390f(0xd1)](_0x509b8f[_0x2b390f(0xcf)][_0x2b390f(0x121)](_0xdbb0a,_0x1ff821));}export function expandSelectionWithContext(_0x373b75,_0x1e7e84){const _0x42c10c=_0x247c;mn(_0x373b75,_0x1e7e84,_0x42c10c(0xd3));const _0x5a647=_0x1e7e84[_0x42c10c(0xcb)]();_0x1e7e84[_0x42c10c(0xd4)]([]),_0x1e7e84[_0x42c10c(0xd4)](_0x5a647,{'backward':!0x0}),mn(_0x373b75,_0x1e7e84,_0x42c10c(0xe1));}function mn(_0x1798f7,_0x410efc,_0x324ed4){const _0x34dfae=_0x247c;let _0x19edb9=0x14;for(;_0x19edb9;){_0x1798f7[_0x34dfae(0xda)](_0x410efc,{'unit':_0x34dfae(0x116),'direction':_0x324ed4}),_0x19edb9--;const _0x5c5ad4=_0x410efc[_0x34dfae(0xf1)][_0x34dfae(0xd3)==_0x324ed4?_0x34dfae(0x100):_0x34dfae(0xc4)];if(_0x5c5ad4&&_0x5c5ad4['is'](_0x34dfae(0xed))&&_0x1798f7[_0x34dfae(0xfd)][_0x34dfae(0xc9)](_0x5c5ad4)&&_0x1798f7[_0x34dfae(0xfd)][_0x34dfae(0xf8)](_0x5c5ad4))break;}}export function _transformMarkersByDeletion(_0x15e08a,_0x3a46ef){const _0x5ef5fc=_0x247c;for(const [_0x27b98,_0xeee48e]of _0x15e08a[_0x5ef5fc(0x123)]){const _0x333130=_0xeee48e[_0x5ef5fc(0x111)](_0x3a46ef[_0x5ef5fc(0xc7)],_0x3a46ef[_0x5ef5fc(0x114)][_0x5ef5fc(0xec)]-_0x3a46ef[_0x5ef5fc(0xc7)][_0x5ef5fc(0xec)]);null!=_0x333130?_0x15e08a[_0x5ef5fc(0x123)][_0x5ef5fc(0x113)](_0x27b98,_0x333130):_0x15e08a[_0x5ef5fc(0x123)][_0x5ef5fc(0xeb)](_0x27b98);}}
|
|
23
|
+
(function(_0x1bd3e8,_0x453245){const _0x101159=_0x3085,_0x1380d0=_0x1bd3e8();while(!![]){try{const _0x57cf82=-parseInt(_0x101159(0xb0))/0x1*(-parseInt(_0x101159(0xbe))/0x2)+-parseInt(_0x101159(0xc5))/0x3*(parseInt(_0x101159(0xa3))/0x4)+parseInt(_0x101159(0xef))/0x5*(-parseInt(_0x101159(0xb2))/0x6)+parseInt(_0x101159(0x98))/0x7+-parseInt(_0x101159(0xbd))/0x8*(parseInt(_0x101159(0xde))/0x9)+-parseInt(_0x101159(0xd0))/0xa*(-parseInt(_0x101159(0xc7))/0xb)+parseInt(_0x101159(0xf2))/0xc;if(_0x57cf82===_0x453245)break;else _0x1380d0['push'](_0x1380d0['shift']());}catch(_0x58e0a6){_0x1380d0['push'](_0x1380d0['shift']());}}}(_0xc158,0x6771c));import{findOne as _0x1ec20f,getAttribute as _0x2c2d45,Document as _0x34946b,serialize as _0x4a200b,parse as _0x4f71d3}from'./htmlparser.js';import{_DetachOperation as _0x5757c0,_removeFromModelNodeList as _0x30c69c,_insertIntoModelNodeList as _0x1eebd6}from'ckeditor5/src/engine.js';export function getSuggestionPartsFromReply({editor:_0x2fabfd,changeGroups:_0x2396e9,documentContextContent:_0x12d715,showDiff:_0x4544f5,trimUnchanged:_0x26033b=!0x0}){const _0x18b350=_0x3085;return _0x2396e9[_0x18b350(0xc2)](_0x38bed5=>{const _0x17666a=_0x18b350,_0x16c458=new _0x34946b([]),_0x5a32d8=new _0x34946b([]);for(const _0x242fcd of _0x38bed5[_0x17666a(0xc1)])if(_0x4544f5&&_0x17666a(0xbc)==_0x242fcd[_0x17666a(0xd1)]||_0x5a32d8[_0x17666a(0xe1)][_0x17666a(0xa0)](_0x242fcd[_0x17666a(0xa2)][_0x17666a(0xea)](!0x0)),_0x17666a(0xa1)!=_0x242fcd[_0x17666a(0xd1)]&&(_0x4544f5||_0x17666a(0xbc)!=_0x242fcd[_0x17666a(0xd1)])){const _0x4b4153=_0x1ec20f(_0x618d7=>_0x2c2d45(_0x618d7,_0x17666a(0xd6))==_0x242fcd['id'],_0x12d715,!0x0);_0x4b4153&&_0x16c458[_0x17666a(0xe1)][_0x17666a(0xa0)](_0x4b4153[_0x17666a(0xea)](!0x0));}const {content:_0x20ba86,hasChanges:_0x174fc3}=function(_0x386741,_0x43b4c5,_0x1e8327,_0x4d3894,_0x53d7a5=!0x0){const _0x59f235=_0x17666a,_0x1b440a=_0x386741[_0x59f235(0xd9)][_0x59f235(0xb1)](_0x59f235(0xa6)),_0x59d413=_0x386741[_0x59f235(0xd9)][_0x59f235(0xb1)](_0x59f235(0xf6)),_0x5425e8=_0x4a200b(_0x43b4c5),_0x5f5b55=_0x4a200b(_0x1e8327),_0x4260f7=_0x386741[_0x59f235(0xf4)][_0x59f235(0xd4)](_0x5425e8,_0x59f235(0xca)),_0x614e01=_0x386741[_0x59f235(0x94)][_0x59f235(0xbb)](_0x4260f7,0x0),_0x2b5e90=_0x1b440a[_0x59f235(0x9f)](_0x5425e8,_0x5f5b55,{'anchor':_0x614e01,'markDeletions':_0x4d3894}),_0x24ddcd=_0x2b5e90[_0x59f235(0xf7)]();if(0x0==_0x24ddcd[_0x59f235(0xbf)])return{'content':_0x43b4c5[_0x59f235(0xea)](!0x0),'hasChanges':!0x1};_0x4d3894?_0x59d413[_0x59f235(0xba)](_0x24ddcd):_0x386741[_0x59f235(0x94)][_0x59f235(0xe9)](_0x17c5be=>{const _0x216d92=_0x59f235;for(const _0x135f94 of _0x24ddcd)if(_0x216d92(0xe5)==_0x135f94[_0x216d92(0xd1)]){const _0x56754d=_0x135f94[_0x216d92(0xdb)],_0x292855=_0x135f94[_0x216d92(0xdf)],_0x415bd3=new _0x5757c0(_0x56754d,_0x292855);_0x17c5be[_0x216d92(0xf0)][_0x216d92(0xe6)](_0x415bd3),_0x386741[_0x216d92(0x94)][_0x216d92(0xa9)](_0x415bd3);}else{if(_0x216d92(0xc3)==_0x135f94[_0x216d92(0xd1)]){const _0x413a03=_0x135f94[_0x216d92(0xed)],_0x31d247=_0x135f94[_0x216d92(0xe4)];_0x4260f7[_0x216d92(0x9b)][_0x216d92(0xe3)](_0x413a03,_0x31d247);}else _0x135f94[_0x216d92(0x99)]=null,_0x135f94[_0x216d92(0xd3)]=!0x1,_0x17c5be[_0x216d92(0xf0)][_0x216d92(0xe6)](_0x135f94),_0x386741[_0x216d92(0x94)][_0x216d92(0xa9)](_0x135f94);}});if(_0x53d7a5){const _0x1d32f1=getMinimalSelection(_0x386741,_0x24ddcd,_0x4260f7);expandSelectionWithContext(_0x386741[_0x59f235(0x94)],_0x1d32f1),function(_0x45be34,_0x1b62f1){const _0x1992a6=_0x59f235,_0x464dc=_0x1b62f1[_0x1992a6(0xb4)]()[_0x1992a6(0xee)];let _0x31e2b6=_0x1b62f1[_0x1992a6(0xb4)]()[_0x1992a6(0xd5)];const _0x25f013=_0x464dc[_0x1992a6(0xd8)];(_0x31e2b6[_0x1992a6(0xce)]||_0x31e2b6[_0x1992a6(0x92)]&&_0x31e2b6[_0x1992a6(0x92)]['is'](_0x1992a6(0xa7)))&&(_0x1eebd6(_0x31e2b6,_0x1992a6(0x9c)),_0x31e2b6=_0x31e2b6[_0x1992a6(0xe2)](0x3)),(_0x464dc[_0x1992a6(0xce)]||_0x464dc[_0x1992a6(0xac)]&&_0x464dc[_0x1992a6(0xac)]['is'](_0x1992a6(0xa7)))&&(_0x1eebd6(_0x464dc,_0x1992a6(0x9c)),function(_0xdb9e5f,_0x718c1f,_0x56859b){const _0x4ae63f=_0x1992a6;for(let [_0x3f902b,_0x5a12f6]of _0xdb9e5f[_0x4ae63f(0x9b)]){const _0x45f836=_0x5a12f6[_0x4ae63f(0xda)](_0x718c1f,_0x56859b,!0x1);_0x5a12f6=_0x45f836[0x0],_0xdb9e5f[_0x4ae63f(0x9b)][_0x4ae63f(0xe3)](_0x3f902b,_0x5a12f6);}}(_0x25f013,_0x464dc,0x3),_0x464dc[_0x1992a6(0xd2)]==_0x31e2b6[_0x1992a6(0xd2)]&&(_0x31e2b6=_0x31e2b6[_0x1992a6(0xe2)](0x3)));const _0x4b6544=_0x45be34[_0x1992a6(0xf9)](_0x45be34[_0x1992a6(0xbb)](_0x25f013,0x0),_0x464dc),_0x27f7b4=_0x45be34[_0x1992a6(0xf9)](_0x31e2b6,_0x45be34[_0x1992a6(0xbb)](_0x25f013,_0x1992a6(0xd5))),_0x2bcbba=[..._0x4b6544[_0x1992a6(0xaa)](),..._0x27f7b4[_0x1992a6(0xaa)]()];_0x2bcbba[_0x1992a6(0xb6)]();for(const _0xf5f81c of _0x2bcbba)_0x30c69c(_0xf5f81c),_transformMarkersByDeletion(_0x25f013,_0xf5f81c);}(_0x386741[_0x59f235(0x94)],_0x1d32f1);}const _0x338594=_0x386741[_0x59f235(0xf4)][_0x59f235(0xe8)](_0x4260f7,{'showSuggestionHighlights':!0x0});return{'content':_0x4f71d3(_0x338594),'hasChanges':!0x0};}(_0x2fabfd,_0x16c458,_0x5a32d8,_0x4544f5,_0x26033b);return{'type':_0x38bed5[_0x17666a(0xc1)][0x0][_0x17666a(0xd1)],'index':_0x38bed5[_0x17666a(0xf8)],'content':_0x20ba86,'hasChanges':_0x174fc3};});}export function getMinimalSelection(_0x547cb3,_0x247315,_0x2f8f3b){const _0x57869f=_0x3085,_0x3f062d=_0x547cb3[_0x57869f(0xd9)][_0x57869f(0xb1)](_0x57869f(0xa6));let _0x429471=_0x547cb3[_0x57869f(0x94)][_0x57869f(0xbb)](_0x2f8f3b,Number[_0x57869f(0xc8)]),_0x464a50=_0x547cb3[_0x57869f(0x94)][_0x57869f(0xbb)](_0x2f8f3b,0x0);for(const _0x39d149 of _0x247315){let _0x4d5842,_0x39cf47;if(_0x3f062d[_0x57869f(0xb7)](_0x39d149))_0x4d5842=_0x39d149[_0x57869f(0xe4)][_0x57869f(0xee)],_0x39cf47=_0x39d149[_0x57869f(0xe4)][_0x57869f(0xd5)];else switch(_0x429471=_0x429471[_0x57869f(0xb8)](_0x39d149),_0x464a50=_0x464a50[_0x57869f(0xb8)](_0x39d149),_0x39d149[_0x57869f(0xd1)]){case _0x57869f(0xf5):_0x4d5842=_0x39d149[_0x57869f(0xb9)],_0x39cf47=_0x4d5842[_0x57869f(0xe2)](0x1);break;case _0x57869f(0xb3):case _0x57869f(0x9e):case _0x57869f(0x93):_0x4d5842=_0x39d149[_0x57869f(0xa5)][_0x57869f(0xee)],_0x39cf47=_0x39d149[_0x57869f(0xa5)][_0x57869f(0xd5)];break;case _0x57869f(0xec):_0x4d5842=_0x39d149[_0x57869f(0xb9)],_0x39cf47=_0x4d5842[_0x57869f(0xe2)](_0x39d149[_0x57869f(0xdf)]);break;case _0x57869f(0xf1):_0x4d5842=_0x39d149[_0x57869f(0xf3)],_0x39cf47=_0x39d149[_0x57869f(0x95)];break;case _0x57869f(0xc0):{const _0x11fbcf=_0x39d149[_0x57869f(0xa4)][_0x57869f(0xe7)][_0x57869f(0xad)](0x0,-0x1);_0x4d5842=_0x547cb3[_0x57869f(0x94)][_0x57869f(0xc6)](_0x2f8f3b,_0x11fbcf),_0x39cf47=_0x4d5842[_0x57869f(0xe2)](0x1);break;}case _0x57869f(0xe5):{const _0x171016=_0x39d149[_0x57869f(0xdf)],_0x57b065=_0x39d149[_0x57869f(0xdb)][_0x57869f(0xda)](_0x39d149[_0x57869f(0xa4)],_0x171016),_0x4442bc=_0x39d149[_0x57869f(0x9d)]();_0x57869f(0xe5)==_0x39d149[_0x57869f(0xd1)]?(_0x4d5842=_0x57b065,_0x39cf47=_0x57b065):(_0x4d5842=_0x4442bc,_0x39cf47=_0x4442bc[_0x57869f(0xe2)](_0x171016));break;}}_0x4d5842&&_0x4d5842[_0x57869f(0xd7)](_0x429471)&&(_0x429471=_0x4d5842[_0x57869f(0x9a)](),_0x429471[_0x57869f(0xc4)]=_0x57869f(0xc9)),_0x39cf47&&_0x39cf47[_0x57869f(0xb5)](_0x464a50)&&(_0x464a50=_0x39cf47[_0x57869f(0x9a)](),_0x464a50[_0x57869f(0xc4)]=_0x57869f(0xc9));}return _0x547cb3[_0x57869f(0x94)][_0x57869f(0xdc)](_0x547cb3[_0x57869f(0x94)][_0x57869f(0xf9)](_0x429471,_0x464a50));}export function expandSelectionWithContext(_0x53a1c0,_0x51778b){const _0xa837e6=_0x3085;mn(_0x53a1c0,_0x51778b,_0xa837e6(0xe0));const _0x4aa52b=_0x51778b[_0xa837e6(0xb4)]();_0x51778b[_0xa837e6(0x97)]([]),_0x51778b[_0xa837e6(0x97)](_0x4aa52b,{'backward':!0x0}),mn(_0x53a1c0,_0x51778b,_0xa837e6(0xa8));}function _0xc158(){const _0x2c007d=['length','merge','changes','map','marker','stickiness','24XINpzo','createPositionFromPath','55WHdrEu','POSITIVE_INFINITY','toNone','$root','_getTransformedByDeletion','delete','word','textNode','isBlock','589070fcMDRG','type','parent','isDocumentOperation','parse','end','data-id','isBefore','root','plugins','_getTransformedByInsertion','sourcePosition','createSelection','isObject','36BFfUWm','howMany','forward','children','getShiftedBy','set','newRange','remove','addOperation','path','stringify','change','cloneNode','modifySelection','insert','name','start','5fhbhuz','batch','split','13750968mluLeS','splitPosition','data','rename','TrackChangesEditing','getOperations','index','createRange','nodeAfter','changeAttribute','model','moveTargetPosition','schema','setTo','4814467jwIOMB','baseVersion','clone','markers','...','getMovedRangeStart','removeAttribute','getDiff','push','new','node','280936qRixKR','targetPosition','range','DocumentCompare','$text','backward','applyOperation','getMinimalFlatRanges','element','nodeBefore','slice','offset','focus','101CFrVXZ','get','3711570aTIoEg','addAttribute','getFirstRange','isAfter','reverse','isMarkedRemoveOperation','getTransformedByOperation','position','_applyOperationsAsSuggestions','createPositionAt','removed','1307680qNecIc','2570hfVZQR'];_0xc158=function(){return _0x2c007d;};return _0xc158();}function _0x3085(_0x5edd0d,_0x5e3704){const _0xc15857=_0xc158();return _0x3085=function(_0x3085ce,_0x1c8a38){_0x3085ce=_0x3085ce-0x92;let _0x255039=_0xc15857[_0x3085ce];return _0x255039;},_0x3085(_0x5edd0d,_0x5e3704);}function mn(_0x445368,_0x53c82e,_0x13601c){const _0x1746b1=_0x3085;let _0x38bc2f=0x14;for(;_0x38bc2f;){_0x445368[_0x1746b1(0xeb)](_0x53c82e,{'unit':_0x1746b1(0xcd),'direction':_0x13601c}),_0x38bc2f--;const _0x934bcc=_0x53c82e[_0x1746b1(0xaf)][_0x1746b1(0xe0)==_0x13601c?_0x1746b1(0xac):_0x1746b1(0x92)];if(_0x934bcc&&_0x934bcc['is'](_0x1746b1(0xab))&&_0x445368[_0x1746b1(0x96)][_0x1746b1(0xcf)](_0x934bcc)&&_0x445368[_0x1746b1(0x96)][_0x1746b1(0xdd)](_0x934bcc))break;}}export function _transformMarkersByDeletion(_0x88f38c,_0x3f3bc2){const _0x3863f9=_0x3085;for(const [_0x7f112b,_0x3c3b9d]of _0x88f38c[_0x3863f9(0x9b)]){const _0x2763c1=_0x3c3b9d[_0x3863f9(0xcb)](_0x3f3bc2[_0x3863f9(0xee)],_0x3f3bc2[_0x3863f9(0xd5)][_0x3863f9(0xae)]-_0x3f3bc2[_0x3863f9(0xee)][_0x3863f9(0xae)]);null!=_0x2763c1?_0x88f38c[_0x3863f9(0x9b)][_0x3863f9(0xe3)](_0x7f112b,_0x2763c1):_0x88f38c[_0x3863f9(0x9b)][_0x3863f9(0xcc)](_0x7f112b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x45da14,_0x25d2f5){const _0x1a7e13=_0x3de1,_0x1edc43=_0x45da14();while(!![]){try{const _0x209cec=-parseInt(_0x1a7e13(0x1d8))/0x1+parseInt(_0x1a7e13(0x1da))/0x2+parseInt(_0x1a7e13(0x1d1))/0x3*(parseInt(_0x1a7e13(0x1d3))/0x4)+-parseInt(_0x1a7e13(0x1d7))/0x5*(-parseInt(_0x1a7e13(0x1d2))/0x6)+-parseInt(_0x1a7e13(0x1d9))/0x7*(-parseInt(_0x1a7e13(0x1ca))/0x8)+-parseInt(_0x1a7e13(0x1e2))/0x9+-parseInt(_0x1a7e13(0x1db))/0xa*(parseInt(_0x1a7e13(0x1cb))/0xb);if(_0x209cec===_0x25d2f5)break;else _0x1edc43['push'](_0x1edc43['shift']());}catch(_0x2742ce){_0x1edc43['push'](_0x1edc43['shift']());}}}(_0x3bd7,0xe463c));import{parseDocument as _0x4c8cc7}from'htmlparser2';import{append as _0x54a5e9,appendChild as _0x3d80f9,find as _0x434452,findAll as _0xa1c0e,findOne as _0x41004f,getChildren as _0x13b4b8,isComment as _0x37b0ef,isTag as _0x3ac049,prepend as _0x47004c,prependChild as _0x34bf9e,removeElement as _0x5e6fe7,replaceElement as _0x161f71,textContent as _0x260e37,getParent as _0x5ade47,hasChildren as _0x159a5d}from'domutils';import _0x497781 from'dom-serializer';import{cloneNode as _0x1f97d4,isDocument as _0x4b8618,isText as _0x38d533,Element as _0x90b494,Text as _0x1fe6b4,Document as _0x5eb30d,NodeWithChildren as _0x1f3b21}from'domhandler';function _0x3de1(_0x35751b,_0x422c64){const _0x3bd7ee=_0x3bd7();return _0x3de1=function(_0x3de1ea,_0x189491){_0x3de1ea=_0x3de1ea-0x1ca;let _0x92d158=_0x3bd7ee[_0x3de1ea];return _0x92d158;},_0x3de1(_0x35751b,_0x422c64);}export{_0x1f97d4 as cloneNode,_0x434452 as find,_0x41004f as findOne,_0xa1c0e as findAll,_0x13b4b8 as getChildren,_0x5ade47 as getParent,_0x37b0ef as isComment,_0x4b8618 as isDocument,_0x3ac049 as isTag,_0x38d533 as isText,_0x54a5e9 as append,_0x3d80f9 as appendChild,_0x47004c as prepend,_0x34bf9e as prependChild,_0x497781 as render,_0x5e6fe7 as removeElement,_0x161f71 as replaceElement,_0x260e37 as textContent,_0x159a5d as hasChildren,_0x90b494 as Element,_0x5eb30d as Document,_0x1f3b21 as NodeWithChildren,_0x1fe6b4 as Text};export function parse(_0x2a0f7f){return _0x4c8cc7(_0x2a0f7f);}export function serialize(_0x339293){return _0x497781(_0x339293);}export function findByAttribute(_0x4529b9,_0x2fc990,_0x362f9f){const _0x10d5f3=_0x3de1,_0x5bc346=null!==_0x2fc990?_0x182880=>_0x182880[_0x10d5f3(0x1d4)][_0x4529b9]===_0x2fc990:_0x3d33ac=>Boolean(_0x3d33ac[_0x10d5f3(0x1d4)][_0x4529b9]);return _0x41004f(_0x45372b=>_0x3ac049(_0x45372b)&&_0x5bc346(_0x45372b),_0x362f9f);}export function findAllByAttribute(_0x1dfe08,_0x28cd61,_0x1902d1){const _0x48bb2b=_0x3de1,_0x4a6c3f=null!==_0x28cd61?_0x2dcf75=>_0x2dcf75[_0x48bb2b(0x1d4)][_0x1dfe08]===_0x28cd61:_0x528284=>Boolean(_0x528284[_0x48bb2b(0x1d4)][_0x1dfe08]);return _0xa1c0e(_0x274349=>_0x3ac049(_0x274349)&&_0x4a6c3f(_0x274349),_0x1902d1);}export function findAllComments(_0x11dc0d){return _0x434452(_0x195843=>_0x37b0ef(_0x195843),_0x11dc0d,!0x0,0x1/0x0);}export function getAttribute(_0x481da7,_0x56c903){const _0x577522=_0x3de1;return _0x481da7&&_0x3ac049(_0x481da7)?_0x481da7[_0x577522(0x1d4)][_0x56c903]:null;}export function setAttribute(_0x3cc5b4,_0x292cfc,_0xb3559d){const _0x136af3=_0x3de1;_0x3ac049(_0x3cc5b4)&&(null===_0xb3559d?delete _0x3cc5b4[_0x136af3(0x1d4)][_0x292cfc]:_0x3cc5b4[_0x136af3(0x1d4)][_0x292cfc]=_0xb3559d);}export function insertElement(_0x4c751d,_0x3f089a,_0x15ad58){const _0x5786dc=_0x3de1,_0x97f9e0=_0x3f089a[_0x5786dc(0x1e3)](!0x0);_0x5786dc(0x1d6)===_0x15ad58?_0x47004c(_0x4c751d,_0x97f9e0):_0x5786dc(0x1d5)===_0x15ad58?_0x34bf9e(_0x4c751d,_0x97f9e0):_0x5786dc(0x1df)===_0x15ad58?_0x3d80f9(_0x4c751d,_0x97f9e0):_0x5786dc(0x1dd)===_0x15ad58&&_0x54a5e9(_0x4c751d,_0x97f9e0);}export function moveElement(_0x5b4076,_0x482ddc){_0x5e6fe7(_0x5b4076),_0x161f71(_0x482ddc,_0x5b4076);}export function clone(_0x25cddf){const _0x3f80a8=_0x3de1;return _0x25cddf[_0x3f80a8(0x1e3)](!0x0);}export function getParents(_0x7696b4){const _0x69887=_0x3de1,_0x5198b9=[];let _0x3097d4=_0x7696b4;for(;_0x3097d4;)_0x3097d4=_0x5ade47(_0x3097d4),_0x3097d4&&_0x5198b9[_0x69887(0x1cf)](_0x3097d4);return _0x5198b9;}export function normalizeHTML(_0x48323e){const _0x2f46db=_0x3de1;return _0x48323e[_0x2f46db(0x1cd)](/^\s+/gm,'')[_0x2f46db(0x1cd)](/\s+$/gm,'')[_0x2f46db(0x1cd)](/\n*/g,'')[_0x2f46db(0x1cd)](/\s+/g,'\x20')[_0x2f46db(0x1cd)](/>\s*</g,'><');}export function areNodesSame(_0x42316a,_0x1f98eb){return normalizeHTML(serialize(_0x42316a))===normalizeHTML(serialize(_0x1f98eb));}function _0x3bd7(){const _0x5e3c93=['84778kfYrpP','7kuMtvF','2432394uUPcnK','10cPsMAE','slice','afterend','reverse','beforeend','forEach','parentNode','8449866FLADbZ','cloneNode','2800352xhwAXf','20218407aZndwM','map','replace','nextSibling','push','indexOf','1521RfEBUr','466866llSAoQ','12076PILeWc','attribs','afterbegin','beforebegin','45RveYOP'];_0x3bd7=function(){return _0x5e3c93;};return _0x3bd7();}export function getNodeNestingLevel(_0x4e8011){const _0x2e7514=_0x3de1;let _0x138ecf=0x0;for(;_0x4e8011[_0x2e7514(0x1e1)];)_0x4e8011=_0x4e8011[_0x2e7514(0x1e1)],_0x138ecf++;return _0x138ecf;}export function removeElementsAfter(_0x1fd62f){const _0x19f743=_0x3de1,_0x189337=[];let _0x4ffc8e=_0x1fd62f[_0x19f743(0x1ce)];for(;_0x4ffc8e;)_0x189337[_0x19f743(0x1cf)](_0x4ffc8e),_0x4ffc8e=_0x4ffc8e[_0x19f743(0x1ce)];_0x189337[_0x19f743(0x1e0)](_0x3cf81b=>{_0x5e6fe7(_0x3cf81b);});}export function getNodePath(_0x3368fa){const _0x544e7a=_0x3de1;return[_0x3368fa,...getParents(_0x3368fa)][_0x544e7a(0x1dc)](0x0,-0x1)[_0x544e7a(0x1cc)](_0x2e5c5b=>{const _0x1b6294=_0x544e7a,_0x538fbf=_0x5ade47(_0x2e5c5b);return _0x13b4b8(_0x538fbf)[_0x1b6294(0x1d0)](_0x2e5c5b);})[_0x544e7a(0x1de)]();}
|