{"version":3,"file":"ckeditor.js","sources":["webpack://ClassicEditor/ckeditor.js"],"sourcesContent":["/*!\n * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md.\n */\n(function(t){const e=t[\"fa\"]=t[\"fa\"]||{};e.dictionary=Object.assign(e.dictionary||{},{\"%0 of %1\":\"0% از 1%\",\"Align center\":\"تراز وسط\",\"Align left\":\"تراز چپ\",\"Align right\":\"تراز راست\",\"Align table to the left\":\"\",\"Align table to the right\":\"جدول را در سمت راست تراز کنید\",Alignment:\"ترازبندی\",\"Almost equal to\":\"\",Angle:\"\",\"Approximately equal to\":\"\",Aquamarine:\"زمرد کبود\",\"Asterisk operator\":\"\",\"Austral sign\":\"\",\"back with leftwards arrow above\":\"\",Background:\"زمینه\",Big:\"بزرگ\",\"Bitcoin sign\":\"\",Black:\"سیاه\",\"Block quote\":\" بلوک نقل قول\",Blue:\"آبی\",\"Blue marker\":\"نشانگر آبی\",Bold:\"درشت\",Border:\"حاشیه\",\"Bulleted List\":\"لیست نشانهدار\",\"Bulleted list styles toolbar\":\"\",Cancel:\"لغو\",\"Cedi sign\":\"\",\"Cent sign\":\"\",\"Center table\":\"جدول وسط\",\"Centered image\":\"تصویر در وسط\",\"Change image text alternative\":\"تغییر متن جایگزین تصویر\",\"Character categories\":\"\",\"Choose heading\":\"انتخاب عنوان\",Circle:\"\",Code:\"کد\",\"Colon sign\":\"\",Color:\"رنگ\",\"Color picker\":\"\",Column:\"ستون\",\"Contains as member\":\"\",\"Copyright sign\":\"\",\"Cruzeiro sign\":\"\",\"Currency sign\":\"\",Dashed:\"نقطه چین\",Decimal:\"\",\"Decimal with leading zero\":\"\",\"Decrease indent\":\"کاهش تورفتگی\",Default:\"پیش فرض\",\"Degree sign\":\"\",\"Delete column\":\"حذف ستون\",\"Delete row\":\"حذف سطر\",\"Dim grey\":\"خاکستری تیره\",Dimensions:\"ابعاد\",Disc:\"\",\"Division sign\":\"\",\"Document colors\":\"رنگ اسناد\",\"Dollar sign\":\"\",\"Dong sign\":\"\",Dotted:\"خط چین\",Double:\"دوبل\",\"Double dagger\":\"\",\"Double exclamation mark\":\"\",\"Double low-9 quotation mark\":\"\",\"Double question mark\":\"\",Downloadable:\"قابل بارگیری\",\"downwards arrow to bar\":\"\",\"downwards dashed arrow\":\"\",\"downwards double arrow\":\"downwards double arrow\",\"Drachma sign\":\"\",\"Dropdown toolbar\":\"نوارابزار کشویی\",\"Edit link\":\"ویرایش پیوند\",\"Editor toolbar\":\"نوارابزار ویرایشگر\",\"Element of\":\"\",\"Em dash\":\"\",\"Empty set\":\"\",\"En dash\":\"\",\"end with leftwards arrow above\":\"\",\"Enter image caption\":\"عنوان تصویر را وارد کنید\",\"Euro sign\":\"\",\"Euro-currency sign\":\"\",\"Exclamation question mark\":\"\",\"Font Background Color\":\"رنگ پس زمینه فونت\",\"Font Color\":\"رنگ فونت\",\"Font Family\":\"خانواده فونت\",\"Font Size\":\"اندازه فونت\",\"For all\":\"\",\"Fraction slash\":\"\",\"French franc sign\":\"\",\"Full size image\":\"تصویر در اندازه کامل\",\"German penny sign\":\"\",\"Greater-than or equal to\":\"\",\"Greater-than sign\":\"\",Green:\"سبز\",\"Green marker\":\"نشانگر سبز\",\"Green pen\":\"قلم سبز\",Grey:\"خاکستری\",Groove:\"خط دار کردن\",\"Guarani sign\":\"\",\"Header column\":\"ستون سربرگ\",\"Header row\":\"سطر سربرگ\",Heading:\"عنوان\",\"Heading 1\":\"عنوان 1\",\"Heading 2\":\"عنوان 2\",\"Heading 3\":\"عنوان 3\",\"Heading 4\":\"عنوان 4\",\"Heading 5\":\"عنوان 5\",\"Heading 6\":\"عنوان 6\",Height:\"ارتفاع\",Highlight:\"برجسته\",\"Horizontal ellipsis\":\"\",\"Horizontal line\":\"خط افقی\",\"Hryvnia sign\":\"\",Huge:\"بسیار بزرگ\",\"Identical to\":\"\",\"Image resize list\":\"\",\"Image toolbar\":\"نوارابزار تصویر\",\"image widget\":\"ابزاره تصویر\",\"Increase indent\":\"افزایش تورفتگی\",\"Indian rupee sign\":\"\",Infinity:\"\",Insert:\"\",\"Insert code block\":\"درج بلوک کد\",\"Insert column left\":\"درج ستون در سمت چپ\",\"Insert column right\":\"درج ستون در سمت راست\",\"Insert image\":\"قرار دادن تصویر\",\"Insert image via URL\":\"\",\"Insert media\":\"وارد کردن رسانه\",\"Insert paragraph after block\":\"درج پاراگراف بعد از بلوک\",\"Insert paragraph before block\":\"درج پاراگراف قبل از بلوک\",\"Insert row above\":\"درج سطر در بالا\",\"Insert row below\":\"درج سطر در پایین\",\"Insert table\":\"درج جدول\",Inset:\"\",Integral:\"\",Intersection:\"\",\"Inverted exclamation mark\":\"\",\"Inverted question mark\":\"\",Italic:\"کج\",Justify:\"هم تراز کردن\",\"Kip sign\":\"\",\"Latin capital letter a with breve\":\"\",\"Latin capital letter a with macron\":\"\",\"Latin capital letter a with ogonek\":\"\",\"Latin capital letter c with acute\":\"\",\"Latin capital letter c with caron\":\"\",\"Latin capital letter c with circumflex\":\"\",\"Latin capital letter c with dot above\":\"\",\"Latin capital letter d with caron\":\"\",\"Latin capital letter d with stroke\":\"\",\"Latin capital letter e with breve\":\"\",\"Latin capital letter e with caron\":\"\",\"Latin capital letter e with dot above\":\"\",\"Latin capital letter e with macron\":\"\",\"Latin capital letter e with ogonek\":\"\",\"Latin capital letter eng\":\"\",\"Latin capital letter g with breve\":\"\",\"Latin capital letter g with cedilla\":\"\",\"Latin capital letter g with circumflex\":\"\",\"Latin capital letter g with dot above\":\"\",\"Latin capital letter h with circumflex\":\"\",\"Latin capital letter h with stroke\":\"\",\"Latin capital letter i with breve\":\"\",\"Latin capital letter i with dot above\":\"\",\"Latin capital letter i with macron\":\"\",\"Latin capital letter i with ogonek\":\"\",\"Latin capital letter i with tilde\":\"\",\"Latin capital letter j with circumflex\":\"\",\"Latin capital letter k with cedilla\":\"\",\"Latin capital letter l with acute\":\"\",\"Latin capital letter l with caron\":\"\",\"Latin capital letter l with cedilla\":\"\",\"Latin capital letter l with middle dot\":\"\",\"Latin capital letter l with stroke\":\"\",\"Latin capital letter n with acute\":\"\",\"Latin capital letter n with caron\":\"\",\"Latin capital letter n with cedilla\":\"\",\"Latin capital letter o with breve\":\"\",\"Latin capital letter o with double acute\":\"\",\"Latin capital letter o with macron\":\"\",\"Latin capital letter r with acute\":\"\",\"Latin capital letter r with caron\":\"\",\"Latin capital letter r with cedilla\":\"\",\"Latin capital letter s with acute\":\"\",\"Latin capital letter s with caron\":\"\",\"Latin capital letter s with cedilla\":\"\",\"Latin capital letter s with circumflex\":\"\",\"Latin capital letter t with caron\":\"\",\"Latin capital letter t with cedilla\":\"\",\"Latin capital letter t with stroke\":\"\",\"Latin capital letter u with breve\":\"\",\"Latin capital letter u with double acute\":\"\",\"Latin capital letter u with macron\":\"\",\"Latin capital letter u with ogonek\":\"\",\"Latin capital letter u with ring above\":\"\",\"Latin capital letter u with tilde\":\"\",\"Latin capital letter w with circumflex\":\"\",\"Latin capital letter y with circumflex\":\"\",\"Latin capital letter y with diaeresis\":\"\",\"Latin capital letter z with acute\":\"\",\"Latin capital letter z with caron\":\"\",\"Latin capital letter z with dot above\":\"\",\"Latin capital ligature ij\":\"\",\"Latin capital ligature oe\":\"\",\"Latin small letter a with breve\":\"\",\"Latin small letter a with macron\":\"\",\"Latin small letter a with ogonek\":\"\",\"Latin small letter c with acute\":\"\",\"Latin small letter c with caron\":\"\",\"Latin small letter c with circumflex\":\"\",\"Latin small letter c with dot above\":\"\",\"Latin small letter d with caron\":\"\",\"Latin small letter d with stroke\":\"\",\"Latin small letter dotless i\":\"\",\"Latin small letter e with breve\":\"\",\"Latin small letter e with caron\":\"\",\"Latin small letter e with dot above\":\"\",\"Latin small letter e with macron\":\"\",\"Latin small letter e with ogonek\":\"\",\"Latin small letter eng\":\"\",\"Latin small letter f with hook\":\"\",\"Latin small letter g with breve\":\"\",\"Latin small letter g with cedilla\":\"\",\"Latin small letter g with circumflex\":\"\",\"Latin small letter g with dot above\":\"\",\"Latin small letter h with circumflex\":\"\",\"Latin small letter h with stroke\":\"\",\"Latin small letter i with breve\":\"\",\"Latin small letter i with macron\":\"\",\"Latin small letter i with ogonek\":\"\",\"Latin small letter i with tilde\":\"\",\"Latin small letter j with circumflex\":\"\",\"Latin small letter k with cedilla\":\"\",\"Latin small letter kra\":\"\",\"Latin small letter l with acute\":\"\",\"Latin small letter l with caron\":\"\",\"Latin small letter l with cedilla\":\"\",\"Latin small letter l with middle dot\":\"\",\"Latin small letter l with stroke\":\"\",\"Latin small letter long s\":\"\",\"Latin small letter n preceded by apostrophe\":\"\",\"Latin small letter n with acute\":\"\",\"Latin small letter n with caron\":\"\",\"Latin small letter n with cedilla\":\"\",\"Latin small letter o with breve\":\"\",\"Latin small letter o with double acute\":\"\",\"Latin small letter o with macron\":\"\",\"Latin small letter r with acute\":\"\",\"Latin small letter r with caron\":\"\",\"Latin small letter r with cedilla\":\"\",\"Latin small letter s with acute\":\"\",\"Latin small letter s with caron\":\"\",\"Latin small letter s with cedilla\":\"\",\"Latin small letter s with circumflex\":\"\",\"Latin small letter t with caron\":\"\",\"Latin small letter t with cedilla\":\"\",\"Latin small letter t with stroke\":\"\",\"Latin small letter u with breve\":\"\",\"Latin small letter u with double acute\":\"\",\"Latin small letter u with macron\":\"\",\"Latin small letter u with ogonek\":\"\",\"Latin small letter u with ring above\":\"\",\"Latin small letter u with tilde\":\"\",\"Latin small letter w with circumflex\":\"\",\"Latin small letter y with circumflex\":\"\",\"Latin small letter z with acute\":\"\",\"Latin small letter z with caron\":\"\",\"Latin small letter z with dot above\":\"\",\"Latin small ligature ij\":\"\",\"Latin small ligature oe\":\"\",\"Left aligned image\":\"تصویر تراز شده چپ\",\"Left double quotation mark\":\"\",\"Left single quotation mark\":\"\",\"Left-pointing double angle quotation mark\":\"\",\"leftwards arrow to bar\":\"\",\"leftwards dashed arrow\":\"leftwards dashed arrow\",\"leftwards double arrow\":\"پیکان دوتایی چپ\",\"Less-than or equal to\":\"\",\"Less-than sign\":\"\",\"Light blue\":\"آبی روشن\",\"Light green\":\"سبز روشن\",\"Light grey\":\"خاکستری روشن\",Link:\"پیوند\",\"Link image\":\"اتصال پیوند به تصویر\",\"Link URL\":\"نشانی اینترنتی پیوند\",\"Lira sign\":\"\",\"Livre tournois sign\":\"\",\"Logical and\":\"\",\"Logical or\":\"\",\"Lower-latin\":\"\",\"Lower–roman\":\"\",Macron:\"\",\"Manat sign\":\"\",\"Media toolbar\":\"نوارابزار رسانه\",\"Media URL\":\"آدرس اینترنتی رسانه\",\"media widget\":\"ویجت رسانه\",\"Merge cell down\":\"ادغام سلول پایین\",\"Merge cell left\":\"ادغام سلول چپ\",\"Merge cell right\":\"ادغام سلول راست\",\"Merge cell up\":\"ادغام سلول بالا\",\"Merge cells\":\"ادغام سلول ها\",\"Mill sign\":\"\",\"Minus sign\":\"\",\"Multiplication sign\":\"\",\"N-ary product\":\"\",\"N-ary summation\":\"\",Nabla:\"\",\"Naira sign\":\"\",\"New sheqel sign\":\"\",Next:\"بعدی\",None:\"هیچ کدام\",\"Nordic mark sign\":\"\",\"Not an element of\":\"\",\"Not equal to\":\"\",\"Not sign\":\"\",\"Numbered List\":\"لیست عددی\",\"Numbered list styles toolbar\":\"\",\"on with exclamation mark with left right arrow above\":\"\",\"Open in a new tab\":\"بازکردن در برگه جدید\",\"Open link in new tab\":\"باز کردن پیوند در برگه جدید\",Orange:\"نارنجی\",Original:\"\",Outset:\"\",Overline:\"\",Paragraph:\"پاراگراف\",\"Paragraph sign\":\"\",\"Partial differential\":\"\",\"Paste the media URL in the input.\":\"آدرس رسانه را در ورودی قرار دهید\",\"Per mille sign\":\"\",\"Per ten thousand sign\":\"\",\"Peseta sign\":\"\",\"Peso sign\":\"\",\"Pink marker\":\"نشانگر صورتی\",\"Plain text\":\"متن ساده\",\"Plus-minus sign\":\"\",\"Pound sign\":\"\",Previous:\"قبلی\",\"Proportional to\":\"\",Purple:\"بنفش\",\"Question exclamation mark\":\"\",Red:\"قرمز\",\"Red pen\":\"قلم قرمز\",Redo:\"باز انجام\",\"Registered sign\":\"\",\"Remove color\":\"حذف رنگ\",\"Remove Format\":\"حذف کردن قالب\",\"Remove highlight\":\"حذف برجسته\",\"Resize image\":\"\",\"Resize image to %0\":\"\",\"Resize image to the original size\":\"\",\"Reversed paragraph sign\":\"\",\"Rich Text Editor\":\"ویرایشگر متن غنی\",\"Rich Text Editor, %0\":\"ویرایشگر متن غنی، %0\",Ridge:\"\",\"Right aligned image\":\"تصویر تراز شده راست\",\"Right double quotation mark\":\"\",\"Right single quotation mark\":\"\",\"Right-pointing double angle quotation mark\":\"\",\"rightwards arrow to bar\":\"\",\"rightwards dashed arrow\":\"\",\"rightwards double arrow\":\"\",Row:\"سطر\",\"Ruble sign\":\"\",\"Rupee sign\":\"\",Save:\"ذخیره\",\"Section sign\":\"\",\"Select all\":\"انتخاب همه\",\"Select column\":\"\",\"Select row\":\"\",\"Show more items\":\"نمایش گزینههای بیشتر\",\"Side image\":\"تصویر جانبی\",\"Single left-pointing angle quotation mark\":\"\",\"Single low-9 quotation mark\":\"\",\"Single right-pointing angle quotation mark\":\"\",Small:\"کوچک\",Solid:\"توپر\",\"soon with rightwards arrow above\":\"\",\"Special characters\":\"کاراکترهای ویژه\",\"Spesmilo sign\":\"\",\"Split cell horizontally\":\"تقسیم افقی سلول\",\"Split cell vertically\":\"تقسیم عمودی سلول\",Square:\"\",\"Square root\":\"\",Style:\"\",\"Table alignment toolbar\":\"\",\"Table properties\":\"خصوصیات جدول\",\"Table toolbar\":\"نوارابزار جدول\",\"Tenge sign\":\"\",\"Text alignment\":\"تراز متن\",\"Text alignment toolbar\":\"نوار ابزار ترازبندی متن\",\"Text alternative\":\"متن جایگزین\",\"Text highlight toolbar\":\"نوارابزار برجستگی متن\",'The color is invalid. Try \"#FF0000\" or \"rgb(255,0,0)\" or \"red\".':\"\",\"The URL must not be empty.\":\"آدرس اینترنتی URL نباید خالی باشد.\",'The value is invalid. Try \"10px\" or \"2em\" or simply \"2\".':\"\",\"There exists\":\"\",\"This link has no URL\":\"این پیوند نشانی اینترنتی ندارد\",\"This media URL is not supported.\":\"این آدرس اینترنتی رسانه پشتیبانی نمیشود\",\"Tilde operator\":\"\",Tiny:\"بسیار کوچک\",\"Tip: Paste the URL into the content to embed faster.\":\"نکته : آدرس را در محتوا قراردهید تا سریع تر جاسازی شود\",\"Toggle the circle list style\":\"\",\"Toggle the decimal list style\":\"\",\"Toggle the decimal with leading zero list style\":\"\",\"Toggle the disc list style\":\"\",\"Toggle the lower–latin list style\":\"\",\"Toggle the lower–roman list style\":\"\",\"Toggle the square list style\":\"\",\"Toggle the upper–latin list style\":\"\",\"Toggle the upper–roman list style\":\"\",\"top with upwards arrow above\":\"\",\"Trade mark sign\":\"\",\"Tugrik sign\":\"\",\"Turkish lira sign\":\"\",Turquoise:\"فیروزه ای\",\"Two dot leader\":\"\",\"Type or paste your content here.\":\"محتوای خود را در اینجا تایپ یا پیست کنید.\",\"Type your title\":\"عنوان خود را تایپ کنید\",Underline:\"خط زیر\",Undo:\"بازگردانی\",Union:\"\",Unlink:\"لغو پیوند\",\"up down arrow with base\":\"\",Update:\"\",\"Update image URL\":\"\",\"Upload failed\":\"آپلود ناموفق بود\",\"Upload in progress\":\"آپلود در حال انجام\",\"Upper-latin\":\"\",\"Upper-roman\":\"\",\"upwards arrow to bar\":\"\",\"upwards dashed arrow\":\"\",\"upwards double arrow\":\"\",\"Vulgar fraction one half\":\"\",\"Vulgar fraction one quarter\":\"\",\"Vulgar fraction three quarters\":\"\",White:\"سفید\",\"Widget toolbar\":\"نوار ابزار ویجت\",Width:\"عرض\",\"Won sign\":\"\",Yellow:\"زرد\",\"Yellow marker\":\"نشانگر زرد\",\"Yen sign\":\"\"});e.getPluralForm=function(t){return t>1}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));(function t(e,n){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=n();else if(typeof define===\"function\"&&define.amd)define([],n);else if(typeof exports===\"object\")exports[\"ClassicEditor\"]=n();else e[\"ClassicEditor\"]=n()})(window,(function(){return function(t){var e={};function n(o){if(e[o]){return e[o].exports}var i=e[o]={i:o,l:false,exports:{}};t[o].call(i.exports,i,i.exports,n);i.l=true;return i.exports}n.m=t;n.c=e;n.d=function(t,e,o){if(!n.o(t,e)){Object.defineProperty(t,e,{enumerable:true,get:o})}};n.r=function(t){if(typeof Symbol!==\"undefined\"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"})}Object.defineProperty(t,\"__esModule\",{value:true})};n.t=function(t,e){if(e&1)t=n(t);if(e&8)return t;if(e&4&&typeof t===\"object\"&&t&&t.__esModule)return t;var o=Object.create(null);n.r(o);Object.defineProperty(o,\"default\",{enumerable:true,value:t});if(e&2&&typeof t!=\"string\")for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o};n.n=function(t){var e=t&&t.__esModule?function e(){return t[\"default\"]}:function e(){return t};n.d(e,\"a\",e);return e};n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};n.p=\"\";return n(n.s=81)}([function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return i}));n.d(e,\"c\",(function(){return r}));n.d(e,\"b\",(function(){return s}));const o=\"https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html\";class i extends Error{constructor(t,e,n){const o=`${t}${n?` ${JSON.stringify(n)}`:\"\"}${a(t)}`;super(o);this.name=\"CKEditorError\";this.context=e;this.data=n}is(t){return t===\"CKEditorError\"}static rethrowUnexpectedError(t,e){if(t.is&&t.is(\"CKEditorError\")){throw t}const n=new i(t.message,e);n.stack=t.stack;throw n}}function r(t,e){console.warn(...c(t,e))}function s(t,e){console.error(...c(t,e))}function a(t){return`\\nRead more: ${o}#error-${t}`}function c(t,e){const n=a(t);return e?[t,e,n]:[t,n]}},function(t,e,n){\"use strict\";var o=function t(){var e;return function t(){if(typeof e===\"undefined\"){e=Boolean(window&&document&&document.all&&!window.atob)}return e}}();var i=function t(){var e={};return function t(n){if(typeof e[n]===\"undefined\"){var o=document.querySelector(n);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement){try{o=o.contentDocument.head}catch(t){o=null}}e[n]=o}return e[n]}}();var r=[];function s(t){var e=-1;for(var n=0;n
\").replace(/\\r?\\n/g,\"
\").replace(/^\\s/,\" \").replace(/\\s$/,\" \").replace(/\\s\\s/g,\" \");if(t.includes(\"
\")||t.includes(\"
\")){t=`
${t}
`}return t}function SC(t){return t.replace(/(\\s+)<\\/span>/g,((t,e)=>{if(e.length==1){return\" \"}return e}))}const MC=[\"figcaption\",\"li\"];function IC(t){let e=\"\";if(t.is(\"$text\")||t.is(\"$textProxy\")){e=t.data}else if(t.is(\"element\",\"img\")&&t.hasAttribute(\"alt\")){e=t.getAttribute(\"alt\")}else if(t.is(\"element\",\"br\")){e=\"\\n\"}else{let n=null;for(const o of t.getChildren()){const t=IC(o);if(n&&(n.is(\"containerElement\")||o.is(\"containerElement\"))){if(MC.includes(n.name)||MC.includes(o.name)){e+=\"\\n\"}else{e+=\"\\n\\n\"}}e+=t;n=o}}return e}class BC extends nC{static get pluginName(){return\"Clipboard\"}static get requires(){return[EC]}init(){const t=this.editor;const e=t.model.document;const n=t.editing.view;const o=n.document;n.addObserver(xC);this.listenTo(o,\"clipboardInput\",(e=>{if(t.isReadOnly){e.stop()}}),{priority:\"highest\"});this.listenTo(o,\"clipboardInput\",((t,e)=>{const o=e.dataTransfer;let i=\"\";if(o.getData(\"text/html\")){i=SC(o.getData(\"text/html\"))}else if(o.getData(\"text/plain\")){i=TC(o.getData(\"text/plain\"))}i=this.editor.data.htmlProcessor.toView(i);const r=new ts(this,\"inputTransformation\");this.fire(r,{content:i,dataTransfer:o,asPlainText:e.asPlainText});if(r.stop.called){t.stop()}n.scrollToTheSelection()}),{priority:\"low\"});this.listenTo(this,\"inputTransformation\",((t,e)=>{if(!e.content.isEmpty){const n=this.editor.data;const o=this.editor.model;const i=n.toModel(e.content,\"$clipboardHolder\");if(i.childCount==0){return}o.change((t=>{const n=o.document.selection;if(e.asPlainText||NC(i,o.schema)){const e=Array.from(n.getAttributes()).filter((([t])=>o.schema.getAttributeProperties(t).isFormatting));if(!n.isCollapsed){o.deleteContent(n,{doNotAutoparagraph:true})}e.push(...n.getAttributes());const r=t.createRangeIn(i);for(const n of r.getItems()){if(n.is(\"$text\")||n.is(\"$textProxy\")){t.setAttributes(e,n)}}}o.insertContent(i)}));t.stop()}}),{priority:\"low\"});function i(n,i){const r=i.dataTransfer;i.preventDefault();const s=t.data.toView(t.model.getSelectedContent(e.selection));o.fire(\"clipboardOutput\",{dataTransfer:r,content:s,method:n.name})}this.listenTo(o,\"copy\",i,{priority:\"low\"});this.listenTo(o,\"cut\",((e,n)=>{if(t.isReadOnly){n.preventDefault()}else{i(e,n)}}),{priority:\"low\"});this.listenTo(o,\"clipboardOutput\",((n,o)=>{if(!o.content.isEmpty){o.dataTransfer.setData(\"text/html\",this.editor.data.htmlProcessor.toData(o.content));o.dataTransfer.setData(\"text/plain\",IC(o.content))}if(o.method==\"cut\"){t.model.deleteContent(e.selection)}}),{priority:\"low\"})}}function NC(t,e){if(t.childCount>1){return false}const n=t.getChild(0);if(e.isObject(n)){return false}return[...n.getAttributeKeys()].length==0}const LC=new Map;function zC(t,e,n){let o=LC.get(t);if(!o){o=new Map;LC.set(t,o)}o.set(e,n)}function PC(t,e){const n=LC.get(t);if(n&&n.has(e)){return n.get(e)}return OC}function OC(t){return[t]}function RC(t,e,n={}){const o=PC(t.constructor,e.constructor);try{t=t.clone();return o(t,e,n)}catch(t){throw t}}function jC(t,e,n){t=t.slice();e=e.slice();const o=new FC(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(t);o.setOriginalOperations(e);const i=o.originalOperations;if(t.length==0||e.length==0){return{operationsA:t,operationsB:e,originalOperations:i}}const r=new WeakMap;for(const e of t){r.set(e,0)}const s={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};let a=0;while(a