{"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[\"fr\"]=t[\"fr\"]||{};e.dictionary=Object.assign(e.dictionary||{},{\"%0 of %1\":\"%0 sur %1\",\"Align center\":\"Centrer\",\"Align left\":\"Aligner à gauche\",\"Align right\":\"Aligner à droite\",Aquamarine:\"Bleu vert\",Big:\"Grand\",Black:\"Noir\",\"Block quote\":\"Citation\",Blue:\"Bleu\",\"Blue marker\":\"Marqueur bleu\",Bold:\"Gras\",\"Bulleted List\":\"Liste à puces\",\"Bulleted list styles toolbar\":\"Barre d'outils des styles de liste à puce\",Cancel:\"Annuler\",\"Centered image\":\"Image centrée\",\"Change image text alternative\":\"Changer le texte alternatif à l’image\",\"Characters: %0\":\"Caractères : %0\",\"Choose heading\":\"Choisir l'en-tête\",Circle:\"Cercle\",Column:\"Colonne\",Decimal:\"Chiffres\",\"Decimal with leading zero\":\"Chiffres avec des zéros supplémentaire\",\"Decrease indent\":\"Diminuer le retrait\",Default:\"Par défaut\",\"Delete column\":\"Supprimer la colonne\",\"Delete row\":\"Supprimer la ligne\",\"Dim grey\":\"Gris pâle\",Disc:\"Disque\",\"Document colors\":\"Couleurs du document\",Downloadable:\"Fichier téléchargeable\",\"Dropdown toolbar\":\"Barre d'outils dans un menu déroulant\",\"Edit block\":\"Modifier le bloc\",\"Edit link\":\"Modifier le lien\",\"Editor toolbar\":\"Barre d'outils de l'éditeur\",\"Enter image caption\":\"Saisir la légende de l’image\",\"Font Background Color\":\"Couleur d'arrière-plan\",\"Font Color\":\"Couleur de police\",\"Font Family\":\"Police\",\"Font Size\":\"Taille de police\",\"Full size image\":\"Image taille réelle\",Green:\"Vert\",\"Green marker\":\"Marqueur vert\",\"Green pen\":\"Crayon vert\",Grey:\"Gris\",\"Header column\":\"Colonne d'entête\",\"Header row\":\"Ligne d'entête\",Heading:\"En-tête\",\"Heading 1\":\"Titre 1\",\"Heading 2\":\"Titre 2\",\"Heading 3\":\"Titre 3\",\"Heading 4\":\"Titre 4\",\"Heading 5\":\"Titre 5\",\"Heading 6\":\"Titre 6\",Highlight:\"Surlignage\",Huge:\"Enorme\",\"Image resize list\":\"Liste des tailles d'images\",\"Image toolbar\":\"Barre d'outils des images\",\"image widget\":\"Objet image\",\"Increase indent\":\"Augmenter le retrait\",Insert:\"Insérer\",\"Insert column left\":\"Insérer une colonne à gauche\",\"Insert column right\":\"Insérer une colonne à droite\",\"Insert image\":\"Insérer une image\",\"Insert image via URL\":\"Insérer une image à partir d'une URL\",\"Insert media\":\"Insérer un média\",\"Insert paragraph after block\":\"Insérer du texte après ce bloc\",\"Insert paragraph before block\":\"Insérer du texte avant ce bloc\",\"Insert row above\":\"Insérer une ligne au-dessus\",\"Insert row below\":\"Insérer une ligne en-dessous\",\"Insert table\":\"Insérer un tableau\",Italic:\"Italique\",Justify:\"Justifier\",\"Left aligned image\":\"Image alignée à gauche\",\"Light blue\":\"Bleu clair\",\"Light green\":\"Vert clair\",\"Light grey\":\"Gris clair\",Link:\"Lien\",\"Link URL\":\"URL du lien\",\"Lower-latin\":\"Lettres minuscules\",\"Lower–roman\":\"Chiffres romains en minuscules\",\"Media URL\":\"URL de média\",\"media widget\":\"Widget média\",\"Merge cell down\":\"Fusionner la cellule en-dessous\",\"Merge cell left\":\"Fusionner la cellule à gauche\",\"Merge cell right\":\"Fusionner la cellule à droite\",\"Merge cell up\":\"Fusionner la cellule au-dessus\",\"Merge cells\":\"Fusionner les cellules\",Next:\"Suivant\",\"Numbered List\":\"Liste numérotée\",\"Numbered list styles toolbar\":\"Barre d'outils des styles de liste numérotée\",\"Open in a new tab\":\"Ouvrir dans un nouvel onglet\",\"Open link in new tab\":\"Ouvrir le lien dans un nouvel onglet\",Orange:\"Orange\",Original:\"Taille originale\",Paragraph:\"Paragraphe\",\"Paste the media URL in the input.\":\"Coller l'URL du média\",\"Pink marker\":\"Marqueur rose\",Previous:\"Précedent\",Purple:\"Violet\",Red:\"Rouge\",\"Red pen\":\"Crayon rouge\",Redo:\"Restaurer\",\"Remove color\":\"Enlever la couleur\",\"Remove highlight\":\"Enlever le surlignage\",\"Resize image\":\"Redimensionner l'image\",\"Resize image to %0\":\"Redimensionner à %0\",\"Resize image to the original size\":\"Appliquer les dimensions d'origine\",\"Rich Text Editor\":\"Éditeur de texte enrichi\",\"Rich Text Editor, %0\":\"Éditeur de texte enrichi, %0\",\"Right aligned image\":\"Image alignée à droite\",Row:\"Ligne\",Save:\"Enregistrer\",\"Select all\":\"Sélectionner tout\",\"Select column\":\"Sélectionner la colonne\",\"Select row\":\"Sélectionner la ligne\",\"Show more items\":\"Montrer plus d'éléments\",\"Side image\":\"Image latérale\",Small:\"Petit\",\"Split cell horizontally\":\"Scinder la cellule horizontalement\",\"Split cell vertically\":\"Scinder la cellule verticalement\",Square:\"Carré\",Subscript:\"Indice\",Superscript:\"Exposant\",\"Table toolbar\":\"Barre d'outils des tableaux\",\"Text alignment\":\"Alignement du texte\",\"Text alignment toolbar\":\"Barre d'outils d'alignement du texte\",\"Text alternative\":\"Texte alternatif\",\"Text highlight toolbar\":\"Barre d'outils du surlignage\",\"The URL must not be empty.\":\"L'URL ne doit pas être vide.\",\"This link has no URL\":\"Ce lien n'a pas d'URL\",\"This media URL is not supported.\":\"Cette URL de média n'est pas supportée.\",Tiny:\"Minuscule\",\"Tip: Paste the URL into the content to embed faster.\":\"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement\",\"Toggle the circle list style\":'Activer / désactiver le style de liste \"cercle\"',\"Toggle the decimal list style\":'Activer / désactiver le style de liste \"chiffres\"',\"Toggle the decimal with leading zero list style\":'Activer / désactiver le style de liste \"chiffres de mêmes longueurs\"',\"Toggle the disc list style\":'Activer / désactiver le style de liste \"disque\"',\"Toggle the lower–latin list style\":'Activer / désactiver le style de liste \"lettres minuscules\"',\"Toggle the lower–roman list style\":'Activer / désactiver le style de liste \"chiffres romains en minuscules\"',\"Toggle the square list style\":'Activer / désactiver le style de liste \"carré\"',\"Toggle the upper–latin list style\":'Activer / désactiver le style de liste \"lettres majuscules\"',\"Toggle the upper–roman list style\":'Activer / désactiver le style de liste \"chiffres romains en majuscules\"',Turquoise:\"Turquoise\",Underline:\"Souligné\",Undo:\"Annuler\",Unlink:\"Supprimer le lien\",Update:\"Modifier\",\"Update image URL\":\"Modifier l'URL de l'image\",\"Upload failed\":\"Échec de l'envoi\",\"Upload in progress\":\"Téléchargement en cours\",\"Upper-latin\":\"Lettres majuscules\",\"Upper-roman\":\"Chiffres romains en majuscules\",White:\"Blanc\",\"Widget toolbar\":\"Barre d'outils du widget\",\"Words: %0\":\"Mots : %0\",Yellow:\"Jaune\",\"Yellow marker\":\"Marqueur jaune\"});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=68)}([function(t,e,n){\"use strict\";n.d(e,\"a\",(function(){return i}));n.d(e,\"b\",(function(){return r}));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 gE(t){return t.replace(/(\\s+)<\\/span>/g,((t,e)=>{if(e.length==1){return\" \"}return e}))}const pE=[\"figcaption\",\"li\"];function kE(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=kE(o);if(n&&(n.is(\"containerElement\")||o.is(\"containerElement\"))){if(pE.includes(n.name)||pE.includes(o.name)){e+=\"\\n\"}else{e+=\"\\n\\n\"}}e+=t;n=o}}return e}class bE extends jn{static get pluginName(){return\"Clipboard\"}static get requires(){return[fE]}init(){const t=this.editor;const e=t.model.document;const n=t.editing.view;const o=n.document;n.addObserver(uE);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=gE(o.getData(\"text/html\"))}else if(o.getData(\"text/plain\")){i=mE(o.getData(\"text/plain\"))}i=this.editor.data.htmlProcessor.toView(i);const s=new r(this,\"inputTransformation\");this.fire(s,{content:i,dataTransfer:o,asPlainText:e.asPlainText});if(s.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||wE(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\",kE(o.content))}if(o.method==\"cut\"){t.model.deleteContent(e.selection)}}),{priority:\"low\"})}}function wE(t,e){if(t.childCount>1){return false}const n=t.getChild(0);if(e.isObject(n)){return false}return[...n.getAttributeKeys()].length==0}function*CE(t,e){for(const n of e){if(n&&t.getAttributeProperties(n[0]).copyOnEnter){yield n}}}class AE extends Vn{execute(){const t=this.editor.model;const e=t.document;t.change((n=>{_E(this.editor.model,n,e.selection,t.schema);this.fire(\"afterExecute\",{writer:n})}))}}function _E(t,e,n,o){const i=n.isCollapsed;const r=n.getFirstRange();const s=r.start.parent;const a=r.end.parent;if(o.isLimit(s)||o.isLimit(a)){if(!i&&s==a){t.deleteContent(n)}return}if(i){const t=CE(e.model.schema,n.getAttributes());vE(e,r.start);e.setSelectionAttribute(t)}else{const o=!(r.start.isAtStart&&r.end.isAtEnd);const i=s==a;t.deleteContent(n,{leaveUnmerged:o});if(o){if(i){vE(e,n.focus)}else{e.setSelection(a,0)}}}}function vE(t,e){t.split(e);t.setSelection(e.parent.nextSibling,0)}class yE extends cu{constructor(t){super(t);const e=this.document;e.on(\"keydown\",((t,n)=>{if(this.isEnabled&&n.keyCode==Ul.enter){let o;e.once(\"enter\",(t=>o=t),{priority:\"highest\"});e.fire(\"enter\",new lh(e,n.domEvent,{isSoft:n.shiftKey}));if(o&&o.stop.called){t.stop()}}}))}observe(){}}class xE extends jn{static get pluginName(){return\"Enter\"}init(){const t=this.editor;const e=t.editing.view;const n=e.document;e.addObserver(yE);t.commands.add(\"enter\",new AE(t));this.listenTo(n,\"enter\",((n,o)=>{o.preventDefault();if(o.isSoft){return}t.execute(\"enter\");e.scrollToTheSelection()}),{priority:\"low\"})}}class EE extends Vn{execute(){const t=this.editor.model;const e=t.document;t.change((n=>{ME(t,n,e.selection);this.fire(\"afterExecute\",{writer:n})}))}refresh(){const t=this.editor.model;const e=t.document;this.isEnabled=DE(t.schema,e.selection)}}function DE(t,e){if(e.rangeCount>1){return false}const n=e.anchor;if(!n||!t.checkChild(n,\"softBreak\")){return false}const o=e.getFirstRange();const i=o.start.parent;const r=o.end.parent;if((SE(i,t)||SE(r,t))&&i!==r){return false}return true}function ME(t,e,n){const o=n.isCollapsed;const i=n.getFirstRange();const r=i.start.parent;const s=i.end.parent;const a=r==s;if(o){const o=CE(t.schema,n.getAttributes());TE(t,e,i.end);e.removeSelectionAttribute(n.getAttributeKeys());e.setSelectionAttribute(o)}else{const o=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:o});if(a){TE(t,e,n.focus)}else{if(o){e.setSelection(s,0)}}}}function TE(t,e,n){const o=e.createElement(\"softBreak\");t.insertContent(o,n);e.setSelection(o,\"after\")}function SE(t,e){if(t.is(\"rootElement\")){return false}return e.isLimit(t)||SE(t.parent,e)}class IE extends jn{static get pluginName(){return\"ShiftEnter\"}init(){const t=this.editor;const e=t.model.schema;const n=t.conversion;const o=t.editing.view;const i=o.document;e.register(\"softBreak\",{allowWhere:\"$text\",isInline:true});n.for(\"upcast\").elementToElement({model:\"softBreak\",view:\"br\"});n.for(\"downcast\").elementToElement({model:\"softBreak\",view:(t,{writer:e})=>e.createEmptyElement(\"br\")});o.addObserver(yE);t.commands.add(\"shiftEnter\",new EE(t));this.listenTo(i,\"enter\",((e,n)=>{n.preventDefault();if(!n.isSoft){return}t.execute(\"shiftEnter\");o.scrollToTheSelection()}),{priority:\"low\"})}}class NE extends Vn{execute(){const t=this.editor.model;const e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!BE(t.schema,n)){do{n=n.parent;if(!n){return}}while(!BE(t.schema,n))}t.change((t=>{t.setSelection(n,\"in\")}))}}function BE(t,e){return t.isLimit(e)&&(t.checkChild(e,\"$text\")||t.checkChild(e,\"paragraph\"))}const zE=Wl(\"Ctrl+A\");class PE extends jn{static get pluginName(){return\"SelectAllEditing\"}init(){const t=this.editor;const e=t.editing.view;const n=e.document;t.commands.add(\"selectAll\",new NE(t));this.listenTo(n,\"keydown\",((e,n)=>{if(Gl(n)===zE){t.execute(\"selectAll\");n.preventDefault()}}))}}var LE='';class OE extends jn{static get pluginName(){return\"SelectAllUI\"}init(){const t=this.editor;t.ui.componentFactory.add(\"selectAll\",(e=>{const n=t.commands.get(\"selectAll\");const o=new Xb(e);const i=e.t;o.set({label:i(\"Select all\"),icon:LE,keystroke:\"Ctrl+A\",tooltip:true});o.bind(\"isOn\",\"isEnabled\").to(n,\"value\",\"isEnabled\");this.listenTo(o,\"execute\",(()=>{t.execute(\"selectAll\");t.editing.view.focus()}));return o}))}}class RE extends jn{static get requires(){return[PE,OE]}static get pluginName(){return\"SelectAll\"}}class jE extends Vn{constructor(t){super(t);this._stack=[];this._createdBatches=new WeakSet;this.refresh();this.listenTo(t.data,\"set\",(()=>this.clearStack()))}refresh(){this.isEnabled=this._stack.length>0}addBatch(t){const e=this.editor.model.document.selection;const n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n});this.refresh()}clearStack(){this._stack=[];this.refresh()}_restoreSelection(t,e,n){const o=this.editor.model;const i=o.document;const r=[];const s=t.map((t=>t.getTransformedByOperations(n)));const a=s.flat();for(const t of s){const e=t.filter((t=>t.root!=i.graveyard)).filter((t=>!VE(t,a)));if(!e.length){continue}FE(e);r.push(e[0])}if(r.length){o.change((t=>{t.setSelection(r,{backward:e})}))}}_undo(t,e){const n=this.editor.model;const o=n.document;this._createdBatches.add(e);const i=t.operations.slice().filter((t=>t.isDocumentOperation));i.reverse();for(const t of i){const i=t.baseVersion+1;const r=Array.from(o.history.getOperations(i));const s=i_([t.getReversed()],r,{useRelations:true,document:this.editor.model.document,padWithNoOps:false,forceWeakRemove:true});const a=s.operationsA;for(const i of a){e.addOperation(i);n.applyOperation(i);o.history.setOperationAsUndone(t,i)}}}}function FE(t){t.sort(((t,e)=>t.start.isBefore(e.start)?-1:1));for(let e=1;e