@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251114.0 → 0.0.0-nightly-20251119.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.
Files changed (165) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/footnotes.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/package.json +9 -9
  151. package/src/commands/insertfootnotecommand.js +1 -1
  152. package/src/footnotes.js +1 -1
  153. package/src/footnotesclipboard.js +1 -1
  154. package/src/footnotesediting.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  156. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  159. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  160. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  161. package/src/footnotesproperties.js +1 -1
  162. package/src/footnotestracker.js +1 -1
  163. package/src/footnotesui.js +1 -1
  164. package/src/index.js +1 -1
  165. package/src/modelelementtracker.js +1 -1
package/LICENSE.md CHANGED
@@ -7,10 +7,10 @@ Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) A
7
7
  CKEditor 5 Footnotes feature is licensed under a commercial license and is protected by copyright law.
8
8
  For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
9
9
 
10
- Sources of Intellectual Property Included in CKEditor 5 Footnotes feature
11
- --------------------------------------------------------------------------------
10
+ Sources of Intellectual Property Included in CKEditor 5
11
+ ------------------------------------------------------------
12
12
 
13
- Where not otherwise indicated, all CKEditor 5 Footnotes feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
13
+ Where not otherwise indicated, all CKEditor 5 content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
14
14
 
15
15
  Trademarks
16
16
  ----------
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=191]})(t,e)}const a=r;function c(){const t=["attributes","push","1051505LKhMfb","251528LjMCef","_model","element","18pvsmao","rootName","nodeAfter","getElementKey","1214899NIJgYo","flat","$text","length","clear","slice","2454770mkCbkY","from","6TStoSh","has","_elementName","_getElementKey","remove","insert","20dDAWaD","$graveyard","1680108AdPdfs","set","type","root","values","getItems","_trackedElements","104955gPKNLq","elementName","delete","name","reset","createRangeOn","add","get","position","30428cwjmiO","getChanges"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(162396===parseInt(e(209))/1*(-parseInt(e(233))/2)+parseInt(e(224))/3*(parseInt(e(215))/4)+-parseInt(e(193))/5+parseInt(e(217))/6+-parseInt(e(201))/7+-parseInt(e(194))/8*(parseInt(e(197))/9)+parseInt(e(207))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(195)];[a(211)];[a(212)];[a(223)]=new Map;constructor(t,e){const o=a;this[o(195)]=t,this[o(211)]=e[o(225)],this[o(212)]=e[o(200)]}[a(228)](){const t=a;this[t(223)][t(205)]()}[a(234)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(214)===i[e(219)]&&e(203)!==i[e(227)]&&i[e(232)][e(199)]){const t=this[e(195)][e(229)](i[e(232)][e(199)]);for(const o of t[e(222)]()){if(!o.is(e(196),this[e(211)]))continue;const t=this[e(212)](o);n[e(210)](t)||n[e(218)](t,[]),n[e(231)](t)[e(192)](o)}}if(e(213)===i[e(219)]&&i[e(227)]===this[e(211)]){const t=this[e(212)]({getAttribute:t=>i[e(191)][e(231)](t)});o[e(230)](t)}}for(const[t,n]of this[e(223)])e(216)===n[e(220)][e(198)]&&o[e(230)](t);for(const t of o)this[e(223)][e(226)](t);for(const[t,o]of n)this[e(223)][e(218)](t,o[o[e(204)]-1]);const i=new Set;for(const[t,s]of n)o[e(210)](t)&&(i[e(230)](s[0]),s[e(204)]>1?n[e(218)](t,s[e(206)](1)):n[e(226)](t),o[e(226)](t));return{removed:Array[e(208)](o),inserted:Array[e(208)](n[e(221)]())[e(202)](),moved:Array[e(208)](i)}}}function u(t,e){const o=d();return(u=function(t,e){return o[t-=401]})(t,e)}const f=u;function d(){const t=["5479910qelmlf","_updateFootnotesCounters","getRootNames","before","append","from","footnoteCounter","init","end","reference","set","listenTo","length","_footnoteDefsContainerTracker","isEqual","low","_sortFootnoteDefinitions","root","897665sLYDKQ","_footnotesDefinitions","editor","after","_footnotes","1315zpnodU","reset","setAttribute","move","createRangeOn","get","2uDZDYc","getFootnotesFormatter","27006bQWcpm","setFootnoteFormatter","compareWith","_footnoteFormatter","footnoteInlineContent","8779183qOjoOB","add","differ","_ensureFootnotesReferencesHaveProperOrder","getFootnotes","has","_handleFootnotesDefinitionsObjectSync","findIndex","some","_handleRemoveFootnoteReferenceById","87872emJOGt","map","_updateFootnoteRefCounter","135HshPYV","getChanges","childCount","change:data","footnotes.multiBlock","document","createPositionBefore","getFootnote","_handleFootnoteDefinitionsChanges","insert","registerPostFixer","pluginName","min","splice","definition","$graveyard","footnoteRef","_ensureFootnotesDefinitionsContainerExists","find","indexOf","paragraph","push","createRangeIn","footnoteDefinition","_footnoteDefsTracker","1331AgIIAl","isOfficialPlugin","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","model","unshift","createElement","createPositionAt","_handleInsertedFootnoteReference","enqueueChange","getFootnotesDefinitionsObjectElement","singleton","getAttribute","FootnotesTracker","getChildren","footnotesDefinitions","footnoteId","parent","config","_handleFootnoteReferencesChanges","_footnoteRefsTracker","high","9420aozZuf","27mNHcUq","rootName","_handleMovedFootnoteReference","_insertEmptyFootnotesDefinitionsContainer","143772xizAgy","remove"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(868790===parseInt(e(452))/1*(parseInt(e(463))/2)+-parseInt(e(483))/3*(-parseInt(e(427))/4)+parseInt(e(457))/5*(-parseInt(e(465))/6)+parseInt(e(470))/7+-parseInt(e(480))/8+-parseInt(e(428))/9*(parseInt(e(434))/10)+parseInt(e(405))/11*(parseInt(e(432))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(456)]=[];[f(453)]=null;[f(468)]=null;[f(447)];[f(425)];[f(404)];static get[f(494)](){return f(418)}static get[f(406)](){return!0}static get[f(407)](){return!0}constructor(t){const e=f;super(t),this[e(447)]=new l(this[e(454)][e(409)],{elementName:e(420),getElementKey:()=>e(416)}),this[e(425)]=new l(this[e(454)][e(409)],{elementName:e(499),getElementKey:t=>t[e(417)](e(421))}),this[e(404)]=new l(this[e(454)][e(409)],{elementName:e(403),getElementKey:t=>t[e(417)](e(421))})}[f(441)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(488)][t(493)](e=>{const n=t,i=o[n(488)][n(472)][n(484)]();let s=!1;return this[n(408)](e,i)&&(s=!0),this[n(491)](e,i)&&(s=!0),this[n(424)](e,i)&&(s=!0),this[n(473)](e)&&(s=!0),this[n(476)](e)&&(s=!0),this[n(450)](e)&&(s=!0),s}),this[t(445)](o[t(488)],t(486),()=>{const e=t;o[e(414)]({isUndoable:!1},t=>{this[e(500)](t)})},{priority:t(449)}),this[t(445)](n,t(444),()=>{const e=t;this[e(456)]=[],this[e(447)][e(458)](),this[e(425)][e(458)](),this[e(404)][e(458)]()},{priority:t(426)})}[f(415)](){return this[f(453)]}[f(490)](t){const e=f;return this[e(456)][e(501)](e=>e.id===t)||null}[f(474)](){const t=f;return Array[t(439)](this[t(456)])}[f(464)](){return this[f(468)]}[f(466)](t){this[f(468)]=t}[f(435)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(456)][o(446)];i++)this[o(482)](t,i)&&(n=!0);return n}[f(431)](t,e){const o=f,n=t[o(411)](o(420),{});return t[o(438)](n,e),this[o(453)]=n,n}[f(500)](t){const e=f;if(!this[e(456)][e(446)]||this[e(453)])return;const o=this[e(456)][0][e(443)][e(451)],n=this[e(431)](t,o);for(const o of this[e(456)])o[e(497)][e(422)]||t[e(492)](o[e(497)],n,e(442));this[e(435)](t)}[f(408)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(447)][o(484)](e);if(r[o(446)]&&(this[o(453)]=r[0]),i[o(446)])if(i[o(446)]>1||this[o(453)]&&i[o(478)](t=>t!==this[o(453)])){const e=t[o(411)](o(420),{}),s=[];this[o(453)]&&s[o(401)](this[o(453)]),s[o(401)](...i),t[o(492)](e,s[0],o(437));for(const n of s)t[o(460)](t[o(402)](n),t[o(412)](e,o(442))),t[o(433)](n);this[o(453)]=e,this[o(435)](t),n=!0}else this[o(453)]=i[0];if(s[o(446)]&&o(498)===this[o(453)]?.[o(451)][o(429)]){for(const e of this[o(456)])t[o(433)](e[o(443)]),n=!0;this[o(456)]=[],this[o(453)]=null}return n}[f(491)](t,e){const o=f;let n=!1;const i=this[o(454)][o(423)][o(462)](o(487)),{inserted:s,moved:r}=this[o(404)][o(484)](e);for(const e of[...r,...s]){const s=e[o(417)](o(421)),r=this[o(490)](s);r&&(r[o(497)]=e),p(t,i,e)&&(n=!0)}return n}[f(424)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(425)][o(484)](e);for(const e of i)this[o(479)](t,e)&&(n=!0);for(const e of s)this[o(413)](t,e)&&(n=!0);for(const e of r)this[o(430)](t,e)&&(n=!0);return n}[f(476)](t){const e=f;if(!this[e(453)])return!1;let o=!1;if(this[e(453)][e(485)]!==this[e(456)][e(446)]){const n=[];for(const t of this[e(453)][e(419)]()){const i=t[e(417)](e(421));this[e(490)](i)||(n[e(410)](t),o=!0)}for(const o of n)t[e(433)](o)}const n=new Set,i=[];for(const t of this[e(453)][e(419)]()){const s=t[e(417)](e(421));n[e(475)](s)?(i[e(410)](t),o=!0):n[e(471)](s)}for(const o of i)t[e(433)](o);return this[e(453)][e(485)]||(t[e(433)](this[e(453)]),this[e(453)]=null,o=!0),o}[f(413)](t,e){const o=f;if(this[o(456)][o(501)](t=>t[o(443)]===e))return!1;let n=!1;const i=e[o(417)](o(421)),s=this[o(456)][o(477)](t=>t.id===i);-1!==s&&(t[o(433)](this[o(456)][s][o(443)]),this[o(456)][o(496)](s,1),n=!0);let r=this[o(453)]?function(t,e){const n=o;for(const o of t[n(419)]())if(o[n(417)](n(421))===e)return o;return null}(this[o(453)],i):null;r||(r=t[o(411)](o(403),{footnoteId:i}),this[o(453)]&&(t[o(492)](r,this[o(453)],o(442)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(454)][o(409)],this[o(456)],e);this[o(456)][o(496)](c,0,a);let l=c;return-1!==s&&(l=Math[o(495)](c,s)),this[o(435)](t,l)&&(n=!0),n}[f(479)](t,e){const o=f,n=this[o(456)][o(477)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(456)][n];return o(498)!==s[o(497)][o(451)][o(429)]&&(t[o(433)](s[o(497)]),i=!0),this[o(456)][o(496)](n,1),this[o(435)](t,n)&&(i=!0),i}[f(430)](t,e){const o=f,n=e[o(417)](o(421)),i=this[o(456)][o(477)](t=>t.id===n),s=this[o(456)][i];let r=!1;s[o(443)]=e,this[o(456)][o(496)](i,1);const a=m(this[o(454)][o(409)],this[o(456)],e);return this[o(456)][o(496)](a,0,s),this[o(435)](t,Math[o(495)](i,a))&&(r=!0),r}[f(482)](t,e){const o=f;if(!this[o(453)])return!1;const n=this[o(456)][e];let i;return i=this[o(468)]?this[o(468)]({footnote:n,container:this[o(453)],digits:String(this[o(456)][o(446)])[o(446)],value:e+1}):String(e+1),n[o(443)][o(417)](o(440))!=i&&(t[o(459)](o(440),i,n[o(443)]),!0)}[f(450)](t){const e=f;if(!this[e(453)]||this[e(456)][e(446)]<2)return!1;if(function(t,o){const n=e;if(t[n(446)]!==o[n(446)])return!1;for(let e=0;e<t[n(446)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(456)][e(481)](t=>t.id),Array[e(439)](this[e(453)][e(419)]())[e(481)](t=>t[e(417)](e(421)))))return!1;let o=!1;for(let n=0;n<this[e(456)][e(446)];n++){const i=this[e(456)][n],s=t[e(489)](i[e(497)]),r=t[e(412)](this[e(453)],n);s[e(448)](r)||(t[e(460)](t[e(461)](i[e(497)]),r),o=!0)}return o}[f(473)](t){const e=f;if(!this[e(456)][e(446)])return!1;const{model:o}=this[e(454)];let n=!1;for(let i=0;i<this[e(456)][e(446)]-1;i++){const s=this[e(456)][i],r=this[e(456)][i+1],a=o[e(489)](s[e(443)]),c=o[e(489)](r[e(443)]);e(455)===a[e(467)](c)&&(this[e(430)](t,s[e(443)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(485)])return!1;const i=n(e?503:469);return t[n(492)](t[n(411)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(446)])return 0;const i=t[n(489)](o);for(let o=0;o<e[n(446)];o++){const s=e[o],r=t[n(489)](s[n(443)]);if(n(437)===i[n(467)](r))return o}const s=o[n(451)];let r=-1;for(let t=e[n(446)]-1;t>=0;t--)if(e[t][n(443)][n(451)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(488)][n(436)](),c=a[n(502)](s[n(429)]),l=a[c+1];if(l)for(let t=0;t<e[n(446)];t++)if(e[t][n(443)][n(451)][n(429)]===l)return t;return e[n(446)]}const g=y;function w(){const t=["isObject","508KdJHuP","createElement","getFirstRange","343408dVWSwS","end","2525424LHcdqe","FootnotesEditing","get","editor","15654357iVcdqR","plugins","getItems","model","_moveSelectionToFootnoteDefinition","_getPositionToInsertFootnote","test","checkChild","footnoteId","isBlock","insertObject","length","execute","7495IjHHwX","isEnabled","613756SzOTUz","document","1135185tHXEwd","selection","footnoteRef","string","insert-footnote-command-executed-with-invalid-id","change","1061974ZvjvPc","refresh","7QIvaJG"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=192]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(437968===parseInt(e(196))/1+parseInt(e(204))/2+parseInt(e(198))/3+-parseInt(e(208))/4*(-parseInt(e(194))/5)+parseInt(e(213))/6*(parseInt(e(206))/7)+parseInt(e(211))/8+-parseInt(e(217))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(205)](){const t=g,e=this[t(216)][t(220)][t(197)][t(199)],o=this[t(222)](e);this[t(195)]=!!o}[g(193)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(197)],r=this[e(222)](s);if(!r)return;const a=o[e(218)][e(215)](e(214)),c=t?.[e(225)]??(0,i.uid)();!function(t){const o=e;return o(201)==typeof t&&t[o(192)]>0&&!/\s/[o(223)](t)&&!/^\d/[o(223)](t)}(c)?(0,i.logWarning)(e(202)):(n[e(203)](t=>{const o=e,i=t[o(209)](o(200),{footnoteId:c});n[o(227)](i,r,null)}),a[e(221)](c))}[g(222)](t){const e=g,{model:o}=this[e(216)],{schema:n}=o,i=t[e(210)]();for(const t of i[e(219)]())if(n[e(226)](t)||n[e(207)](t))return null;const s=i[e(212)];return n[e(224)](s,e(200))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1763078400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var D=o(331);const P=_;function T(){const t=["data","selection","add","create","change","_defineClipboardIntegration","675VXeYCN","includes","drop","sourceEditorId","footnoteId","root","init","isOfficialPlugin","footnoteDefinition","push","from","get","2772fkBrRc","content","357744fMWBiF","getSelectedBlocks","insert","getFootnote","toModel","getFootnotesDefinitionsObjectElement","append","_handleCopyFootnotesDefinitions","requires","8zXZwEO","stringify","htmlProcessor","document","length","2470880IRAECJ","reduce","181276nGynzf","pluginName","FootnotesClipboard","createRangeIn","flatMap","setData","footnoteRef","method","isPremiumPlugin","getFirstRange","remove","outputTransformation","4336493cSKXnW","createElement","parse","editor","getRanges","footnotesDefinitions","15550SIQWyr","toData","1672mvfzkY","getAttribute","application/ckeditor5-footnotes","dataTransfer","getFootnotes","_insertEmptyFootnotesDefinitionsContainer","find","end","listenTo","_handlePasteFootnotesDefinitions","398188ZjpGeb","toView","clipboardInput","entries","contentInsertion","editing","setAttribute","definition","getData","element"];return(T=function(){return t})()}function _(t,e){const o=T();return(_=function(t,e){return o[t-=298]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(751715===parseInt(e(351))/1+parseInt(e(371))/2*(parseInt(e(333))/3)+parseInt(e(305))/4+parseInt(e(349))/5+-parseInt(e(335))/6+-parseInt(e(363))/7*(parseInt(e(344))/8)+-parseInt(e(321))/9*(parseInt(e(369))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class A extends t.Plugin{static get[P(352)](){return P(353)}static get[P(343)](){return[v,D.ClipboardPipeline]}static get[P(328)](){return!0}static get[P(359)](){return!0}[P(327)](){this[P(320)]()}[P(320)](){const t=P;this[t(342)](),this[t(304)]()}[P(342)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](D.ClipboardPipeline),s=o[t(332)](h);this[t(303)](i,t(362),(o,i)=>{const r=t,a=L(n[r(354)](i[r(334)]));if(!a[r(348)])return;const c=s[r(299)](),l=a[r(350)]((t,o)=>{const n=r,i=c[n(301)](t=>t.id===o);if(i){const o=e[n(315)][n(306)](i[n(312)],{isClipboardPipeline:!0}),s=e[n(315)][n(346)][n(370)](o);t[i.id]=s}return t},Object[r(318)](null));i[r(298)][r(356)](r(373),JSON[r(345)](l))})}[P(304)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(310)],r=n[t(332)](D.ClipboardPipeline),a=n[t(332)](h);let c=null;this[t(303)](s[t(347)],t(307),(e,o)=>{const n=t,i=o[n(298)][n(313)](n(373));c=i?JSON[n(365)](i):null}),this[t(303)](r,t(309),(n,s)=>{const r=t,l=s[r(324)]===this[r(366)].id;l&&r(323)===s[r(358)]||o[r(319)](t=>{const n=r;let u=a[n(340)]();const f=!!u&&Array[n(331)](o[n(347)][n(316)][n(336)]())[n(322)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(354)](e))n.is(o(314),o(368))&&i[o(330)](n);for(const e of i)t[o(361)](e)}(t,s[n(334)]),!c)return;const{selection:d}=o[n(347)],h=d[n(360)]()[n(326)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(354)](e))if(n.is(o(314),o(368)))return n;return null}(t,s[n(334)]),u||=a[n(300)](t,h));const p=Array[n(331)](d[n(367)]())[n(355)](L),m=function(t,e,o){const s=n,r=Object[s(318)](null);for(const{item:n}of t[s(354)](e))if(n.is(s(314),s(357))){const e=n[s(372)](s(325));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(311)](s(325),r[e],n)}return r}(t,s[n(334)],t=>{const e=n;return!l||!!a[e(338)](t)&&!p[e(322)](t)});for(const[o,i]of Object[n(308)](c)){const s=m[o]||o,r=t[n(364)](n(329),{footnoteId:s}),a=e[n(315)][n(346)][n(306)](i),c=e[n(315)][n(339)](a,r);t[n(341)](c,r),t[n(337)](r,u,n(302))}c=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(314),e(357))&&o[e(317)](n[e(372)](e(325)));return Array[e(331)](o)}var N=o(311),V=o(355),O=o(450),R=o.n(O),j=o(774),K=o.n(j),M=o(265),B=o.n(M),z=o(410),U=o.n(z),W=o(238),H=o.n(W),X=o(14),q={attributes:{"data-cke":!0}};q.setAttributes=U(),q.insert=B().bind(null,"head"),q.domAPI=K(),q.insertStyleElement=H();R()(X.A,q);X.A&&X.A.locals&&X.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(){var t=["Footnotes","1487805Ojetkv","2936500SLmfHm","346144avFOlq","isPremiumPlugin","450317JanEYD","requires","30YgZacv","6ejpGPX","pluginName","27KGRohS","171573xZlvYO","isOfficialPlugin","1038SWJbMc","84470bhdFEY","2079gzBJcu"];return(Q=function(){return t})()}var Y=Z;function Z(t,e){var o=Q();return(Z=function(t,e){return o[t-=363]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(486165===-parseInt(e(372))/1+parseInt(e(366))/2*(parseInt(e(370))/3)+parseInt(e(377))/4+parseInt(e(376))/5+parseInt(e(367))/6*(parseInt(e(364))/7)+-parseInt(e(378))/8*(-parseInt(e(369))/9)+-parseInt(e(373))/10*(parseInt(e(374))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Y(368)](){return Y(375)}static get[Y(365)](){return[v,A,G]}static get[Y(371)](){return!0}static get[Y(363)](){return!0}}function tt(){const t=["upper-roman","2369910lqjihj","lower-alpha","decimal","5416930eHHpTG","172506rSGNWu","11766KMTdGH","31tzulEl","upper-latin","lower-latin","21dNNLkz","lower-roman","525536DjYmfv","740588xNqxor","6cCesMG","4284486lwkBwX","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=334]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(335283===parseInt(e(339))/1*(parseInt(e(338))/2)+-parseInt(e(346))/3*(parseInt(e(345))/4)+-parseInt(e(351))/5+parseInt(e(337))/6*(-parseInt(e(342))/7)+parseInt(e(344))/8+parseInt(e(347))/9+parseInt(e(336))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(335),et(348),et(341),et(340),et(334),et(349),et(343),et(350)],it=rt;function st(){const t=["get","footnotesListStyle","1836904yZBBRw","8809568eJFZQh","getAttribute","value","setAttribute","change","7346pSQTzt","plugins","750uUdTiD","6762308rViOdU","includes","execute","3076020GEGCtR","415355gvDLPD","getFootnotesDefinitionsObjectElement","model","isEnabled","_updateFootnotesCounters","refresh","370091BCEhMg"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=335]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(549522===-parseInt(e(355))/1+-parseInt(e(342))/2*(-parseInt(e(344))/3)+-parseInt(e(336))/4+parseInt(e(349))/5+parseInt(e(348))/6+parseInt(e(345))/7+-parseInt(e(337))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(354)](){const t=it,{editor:e}=this,o=e[t(343)][t(356)](h)[t(350)]();this[t(352)]=!!o,this[t(339)]=o?.[t(338)](t(335))??null}[it(347)]({value:t}){const e=it,{editor:o}=this,n=o[e(343)][e(356)](h),i=n[e(350)]();i&&nt[e(346)](t)&&o[e(351)][e(341)](o=>{const s=e;o[s(340)](s(335),t,i),n[s(353)](o)})}}function ct(t,e){const o=ft();return(ct=function(t,e){return o[t-=341]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(603138===-parseInt(e(354))/1*(-parseInt(e(352))/2)+-parseInt(e(351))/3+parseInt(e(363))/4+-parseInt(e(341))/5+parseInt(e(356))/6+-parseInt(e(357))/7*(-parseInt(e(343))/8)+parseInt(e(347))/9*(-parseInt(e(360))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[lt(346)](){const t=lt,{editor:e}=this,o=e[t(361)][t(345)](h)[t(353)]();this[t(348)]=!!o,this[t(342)]=o?.[t(359)](t(349))??null}[lt(344)]({value:t}){const e=lt,{editor:o}=this,n=o[e(361)][e(345)](h),i=n[e(353)]();i&&Number[e(364)](t)&&o[e(350)][e(358)](o=>{const s=e;o[s(362)](s(349),t,i),n[s(355)](o)})}}function ft(){const t=["setAttribute","2269852WdQhiC","isInteger","1849560ElfRVQ","value","24XQebWK","execute","get","refresh","7662123hYMfuR","isEnabled","footnotesListStart","model","1377234hSlKhs","310vrgaVJ","getFootnotesDefinitionsObjectElement","2794iKGDVZ","_updateFootnotesCounters","1572342vTdyxe","2382065TEQEEJ","change","getAttribute","10uuetrE","plugins"];return(ft=function(){return t})()}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=149]})(t,e)}function pt(){const t=["pluginName","editor","config","model","parent","start","attribute:footnotesListStyle:footnotesDefinitions","footnotes-list","toUpperCase","toLowerCase","add","requires","upper-alpha","removeStyle","getItems","525514CUeVwx","decimal","element:ol","_updateFootnotesCounters","_formatFootnoteListValue","decimal-leading-zero","downcast","hasAttribute","parseInt","floor","upcast","modelCursor","attribute:footnotesListStart:footnotesDefinitions","fromCharCode","padStart","max","consume","1210DGHidf","113895uQwqyy","8649240biBvAv","_getDefaultStartIndex","121272tzfZTM","extend","getChildren","commands","setStyle","position","viewItem","differ","writer","footnotesListStyle","$text","setAttribute","createRangeOn","plugins","_defineSchema","8400620Xexkzo","footnotesStyle","footnotes.footnotesProperties.defaultStartIndex","hasClass","isOfficialPlugin","7170079JnERch","80lrQSUm","from","_defineConverters","1eNcjrP","_definePostfixer","setFootnoteFormatter","_defineFormatter","getStyle","footnotesListStart","lower-alpha","_getDefaultListStyle","upper-roman","schema","isPremiumPlugin","footnotes.footnotesProperties.defaultListStyle","consumable","for","lower-latin","insert","type","list-style-type","nodeAfter","getChanges","element","define","footnotesStart","checkAttribute","isNaN","document","removeAttribute","init","registerPostFixer","footnotesDefinitions","name","find","item","mapper","7301816lpERXK","toViewElement","lower-roman","FootnotesPropertiesEditing","getAttribute","get","upper-latin"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(933116===-parseInt(e(236))/1*(-parseInt(e(191))/2)+-parseInt(e(212))/3*(parseInt(e(233))/4)+parseInt(e(227))/5+parseInt(e(210))/6+-parseInt(e(232))/7+parseInt(e(169))/8+-parseInt(e(209))/9*(parseInt(e(208))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(176)](){return dt(172)}static get[dt(187)](){return[v,h]}static get[dt(231)](){return!0}static get[dt(246)](){return!0}[dt(162)](){const t=dt,{editor:e}=this;e[t(178)][t(156)](t(247),t(192)),e[t(178)][t(156)](t(229),1),e[t(215)][t(186)](t(228),new at(e)),e[t(215)][t(186)](t(157),new ut(e)),this[t(226)](),this[t(235)](),this[t(239)](),this[t(237)]()}[dt(226)](){const t=dt,{editor:e}=this,{schema:o}=e[t(179)];o[t(213)](t(164),{allowAttributes:[t(221),t(241)]})}[dt(235)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(249)](t(201))[t(186)](e=>{const o=t;e.on(o(193),(t,e,n)=>{const s=o,r=e[s(218)],a=e[s(202)]?.[s(180)];r[s(230)](s(183))&&a?.is(s(155),s(164))&&(function(t,e,o,n){const i=s;if(!n[i(158)](e,i(241)))return;let r=1;const a=o[i(248)][i(207)](t,{attributes:i(181)});if(a){const e=Number[i(199)](t[i(173)](i(181)),10);Number[i(159)](e)||(r=e)}!a&&e[i(198)](i(241))||o[i(220)][i(223)](i(241),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(158)](e,i(221)))return;let r=i(192),a=!1;if(o[i(248)][i(207)](t,{attributes:i(151)})){const e={1:i(192),a:i(242),A:i(188),i:i(171),I:i(244)}[t[i(173)](i(151))];e&&(r=e),a=!0}o[i(248)][i(207)](t,{styles:i(152)})&&(r=t[i(240)](i(152)),a=!0),!a&&e[i(198)](i(221))||o[i(220)][i(223)](i(221),r,e)}(r,a,n,i))})}),o[t(249)](t(197))[t(186)](e=>{const o=t;e.on(o(203),(t,e,n)=>{const i=o;if(!n[i(248)][i(207)](e[i(167)],t[i(165)]))return;const s=gt(e[i(167)],n[i(168)]),{attributeNewValue:r}=e;null==r||1===r?n[i(220)][i(161)](i(181),s):n[i(220)][i(223)](i(181),String(r),s)}),e.on(o(182),(t,e,n)=>{const i=o;if(!n[i(248)][i(207)](e[i(167)],t[i(165)]))return;const s=gt(e[i(167)],n[i(168)]),{attributeNewValue:r}=e;r&&i(192)!==r?n[i(220)][i(216)](i(152),r,s):n[i(220)][i(189)](i(152),s)})})}[dt(237)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(225)][t(174)](h),i=this[t(243)](),s=this[t(211)]();o[t(160)][t(163)](e=>{const r=t,a=o[r(160)][r(219)][r(154)]();let c=!1;for(const t of a){if(r(150)!==t[r(151)]||r(222)===t[r(165)])continue;const n=o[r(224)](t[r(217)][r(153)]);for(const t of n[r(190)]())t.is(r(155),r(164))&&(!t[r(198)](r(241))&&o[r(245)][r(158)](t,r(241))&&(e[r(223)](r(241),s,t),c=!0),!t[r(198)](r(221))&&o[r(245)][r(158)](t,r(221))&&(e[r(223)](r(221),i,t),c=!0))}return c&&n[r(194)](e),c})}[dt(239)](){const t=dt,{editor:e}=this;e[t(225)][t(174)](h)[t(238)](e=>this[t(195)](e))}[dt(243)](){const t=dt;return this[t(177)][t(178)][t(174)](t(247))}[dt(211)](){const t=dt;return this[t(177)][t(178)][t(174)](t(229))}[dt(195)]({container:t,value:e,digits:o}){const n=dt,i=t[n(173)](n(221)),s=t[n(173)](n(241)),r=Math[n(200)](e)+(s??1)-1;switch(i){case n(196):return function(t,e){const o=n;return String(t)[o(205)](e,"0")}(r,Math[n(206)](2,o));case n(242):case n(149):return wt(r,!1);case n(188):case n(175):return wt(r,!0);case n(171):return bt(r,!1);case n(244):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(170)](t);return Array[o(234)](n[o(214)]())[o(166)](t=>t.is(o(155),"ol")&&t[o(230)](o(183)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(204)](97+t)+n,i=Math[o(200)]((i-1)/26)}return e?n[o(184)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(185)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=K(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=302]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(579431===parseInt(e(310))/1+parseInt(e(306))/2*(-parseInt(e(309))/3)+-parseInt(e(307))/4*(parseInt(e(317))/5)+-parseInt(e(305))/6+-parseInt(e(315))/7*(-parseInt(e(314))/8)+parseInt(e(312))/9+parseInt(e(302))/10*(parseInt(e(313))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class xt extends t.Plugin{static get[Ft(303)](){return Ft(308)}static get[Ft(311)](){return[mt,Ct]}static get[Ft(316)](){return!0}static get[Ft(304)](){return!0}}function St(){var t=["5962UXDvdv","143056hPjgoz","7jJhyXM","isOfficialPlugin","5dSpRmq","7090vnkKwD","pluginName","isPremiumPlugin","2100054mBLLxo","832588slYNCs","4431820eRbgmj","FootnotesProperties","3DjHnty","1158523QWmXUE","requires","8037054uchUpF"];return(St=function(){return t})()}function Dt(t,e){var o=Pt();return(Dt=function(t,e){return o[t-=490]})(t,e)}function Pt(){var t=["8PHaOul","437748UxRgwX","117776DFDAEW","1112285hSSjjx","3628900XasECX","33BXiphQ","11jQEjNi","6748830rFPxYk","21492080mugNwk","10193679bQJGyB","14wuDhix"];return(Pt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(706247===-parseInt(e(492))/1+-parseInt(e(491))/2*(-parseInt(e(494))/3)+-parseInt(e(493))/4+-parseInt(e(496))/5+parseInt(e(490))/6*(parseInt(e(499))/7)+-parseInt(e(500))/8*(-parseInt(e(498))/9)+parseInt(e(497))/10*(parseInt(e(495))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=196]})(t,e)}function c(){const t=["attributes","960029YafXuU","length","1009590UcxWGF","reset","978220dmGivu","rootName","getItems","$graveyard","from","set","root","get","clear","flat","slice","_trackedElements","delete","3864666ZSboOp","has","remove","1048pjilkK","createRangeOn","_model","1678LeFjNV","4133316WnwIlI","name","position","$text","_getElementKey","add","element","_elementName","1445xYLGfa","type","insert","15507JOEzXZ","values","getElementKey","getChanges","nodeAfter","push","elementName"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(836601===parseInt(e(203))/1*(parseInt(e(237))/2)+-parseInt(e(238))/3+parseInt(e(218))/4+parseInt(e(216))/5+parseInt(e(231))/6+parseInt(e(214))/7+parseInt(e(234))/8*(-parseInt(e(206))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(236)];[r(202)];[r(199)];[r(229)]=new Map;constructor(t,e){const o=r;this[o(236)]=t,this[o(202)]=e[o(212)],this[o(199)]=e[o(208)]}[r(217)](){const t=r;this[t(229)][t(226)]()}[r(209)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(205)===i[e(204)]&&e(198)!==i[e(196)]&&i[e(197)][e(210)]){const t=this[e(236)][e(235)](i[e(197)][e(210)]);for(const o of t[e(220)]()){if(!o.is(e(201),this[e(202)]))continue;const t=this[e(199)](o);n[e(232)](t)||n[e(223)](t,[]),n[e(225)](t)[e(211)](o)}}if(e(233)===i[e(204)]&&i[e(196)]===this[e(202)]){const t=this[e(199)]({getAttribute:t=>i[e(213)][e(225)](t)});o[e(200)](t)}}for(const[t,n]of this[e(229)])e(221)===n[e(224)][e(219)]&&o[e(200)](t);for(const t of o)this[e(229)][e(230)](t);for(const[t,o]of n)this[e(229)][e(223)](t,o[o[e(215)]-1]);const i=new Set;for(const[t,s]of n)o[e(232)](t)&&(i[e(200)](s[0]),s[e(215)]>1?n[e(223)](t,s[e(228)](1)):n[e(230)](t),o[e(230)](t));return{removed:Array[e(222)](o),inserted:Array[e(222)](n[e(207)]())[e(227)](),moved:Array[e(222)](i)}}}function f(t,e){const o=h();return(f=function(t,e){return o[t-=199]})(t,e)}const u=f;!function(t){const e=f,o=t();for(;;)try{if(388910===-parseInt(e(258))/1*(-parseInt(e(233))/2)+-parseInt(e(241))/3+-parseInt(e(223))/4+-parseInt(e(253))/5+-parseInt(e(295))/6*(-parseInt(e(270))/7)+-parseInt(e(211))/8*(-parseInt(e(289))/9)+parseInt(e(273))/10*(parseInt(e(271))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(227)]=[];[u(225)]=null;[u(208)]=null;[u(261)];[u(281)];[u(242)];static get[u(259)](){return u(201)}static get[u(265)](){return!0}static get[u(262)](){return!0}constructor(t){const e=u;super(t),this[e(261)]=new l(this[e(280)][e(205)],{elementName:e(269),getElementKey:()=>e(272)}),this[e(281)]=new l(this[e(280)][e(205)],{elementName:e(257),getElementKey:t=>t[e(236)](e(217))}),this[e(242)]=new l(this[e(280)][e(205)],{elementName:e(212),getElementKey:t=>t[e(236)](e(217))})}[u(264)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(226)][t(218)](e=>{const n=t,i=o[n(226)][n(293)][n(285)]();let s=!1;return this[n(250)](e,i)&&(s=!0),this[n(276)](e,i)&&(s=!0),this[n(247)](e,i)&&(s=!0),this[n(244)](e)&&(s=!0),this[n(245)](e)&&(s=!0),this[n(202)](e)&&(s=!0),s}),this[t(282)](o[t(226)],t(298),()=>{const e=t;o[e(228)]({isUndoable:!1},t=>{this[e(224)](t)})},{priority:t(203)}),this[t(282)](n,t(239),()=>{const e=t;this[e(227)]=[],this[e(261)][e(246)](),this[e(281)][e(246)](),this[e(242)][e(246)]()},{priority:t(267)})}[u(231)](){return this[u(225)]}[u(214)](t){const e=u;return this[e(227)][e(297)](e=>e.id===t)||null}[u(234)](){const t=u;return Array[t(254)](this[t(227)])}[u(213)](){return this[u(208)]}[u(279)](t){this[u(208)]=t}[u(274)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(227)][o(255)];i++)this[o(209)](t,i)&&(n=!0);return n}[u(296)](t,e){const o=u,n=t[o(299)](o(269),{});return t[o(232)](n,e),this[o(225)]=n,n}[u(224)](t){const e=u;if(!this[e(227)][e(255)]||this[e(225)])return;const o=this[e(227)][0][e(252)][e(256)],n=this[e(296)](t,o);for(const o of this[e(227)])o[e(199)][e(210)]||t[e(222)](o[e(199)],n,e(248));this[e(274)](t)}[u(250)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(261)][o(285)](e);if(r[o(255)]&&(this[o(225)]=r[0]),i[o(255)])if(i[o(255)]>1||this[o(225)]&&i[o(216)](t=>t!==this[o(225)])){const e=t[o(299)](o(269),{}),s=[];this[o(225)]&&s[o(288)](this[o(225)]),s[o(288)](...i),t[o(222)](e,s[0],o(291));for(const n of s)t[o(266)](t[o(220)](n),t[o(204)](e,o(248))),t[o(235)](n);this[o(225)]=e,this[o(274)](t),n=!0}else this[o(225)]=i[0];if(s[o(255)]&&o(286)===this[o(225)]?.[o(256)][o(260)]){for(const e of this[o(227)])t[o(235)](e[o(252)]),n=!0;this[o(227)]=[],this[o(225)]=null}return n}[u(276)](t,e){const o=u;let n=!1;const i=this[o(280)][o(249)][o(200)](o(292)),{inserted:s,moved:r}=this[o(242)][o(285)](e);for(const e of[...r,...s]){const s=e[o(236)](o(217)),r=this[o(214)](s);r&&(r[o(199)]=e),p(t,i,e)&&(n=!0)}return n}[u(247)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(281)][o(285)](e);for(const e of i)this[o(206)](t,e)&&(n=!0);for(const e of s)this[o(287)](t,e)&&(n=!0);for(const e of r)this[o(284)](t,e)&&(n=!0);return n}[u(245)](t){const e=u;if(!this[e(225)])return!1;let o=!1;if(this[e(225)][e(275)]!==this[e(227)][e(255)]){const n=[];for(const t of this[e(225)][e(278)]()){const i=t[e(236)](e(217));this[e(214)](i)||(n[e(230)](t),o=!0)}for(const o of n)t[e(235)](o)}const n=new Set,i=[];for(const t of this[e(225)][e(278)]()){const s=t[e(236)](e(217));n[e(251)](s)?(i[e(230)](t),o=!0):n[e(283)](s)}for(const o of i)t[e(235)](o);return this[e(225)][e(275)]||(t[e(235)](this[e(225)]),this[e(225)]=null,o=!0),o}[u(287)](t,e){const o=u;if(this[o(227)][o(297)](t=>t[o(252)]===e))return!1;let n=!1;const i=e[o(236)](o(217)),s=this[o(227)][o(215)](t=>t.id===i);-1!==s&&(t[o(235)](this[o(227)][s][o(252)]),this[o(227)][o(243)](s,1),n=!0);let r=this[o(225)]?function(t,e){const n=o;for(const o of t[n(278)]())if(o[n(236)](n(217))===e)return o;return null}(this[o(225)],i):null;r||(r=t[o(299)](o(212),{footnoteId:i}),this[o(225)]&&(t[o(222)](r,this[o(225)],o(248)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(280)][o(205)],this[o(227)],e);this[o(227)][o(243)](c,0,a);let l=c;return-1!==s&&(l=Math[o(238)](c,s)),this[o(274)](t,l)&&(n=!0),n}[u(206)](t,e){const o=u,n=this[o(227)][o(215)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(227)][n];return o(286)!==s[o(199)][o(256)][o(260)]&&(t[o(235)](s[o(199)]),i=!0),this[o(227)][o(243)](n,1),this[o(274)](t,n)&&(i=!0),i}[u(284)](t,e){const o=u,n=e[o(236)](o(217)),i=this[o(227)][o(215)](t=>t.id===n),s=this[o(227)][i];let r=!1;s[o(252)]=e,this[o(227)][o(243)](i,1);const a=m(this[o(280)][o(205)],this[o(227)],e);return this[o(227)][o(243)](a,0,s),this[o(274)](t,Math[o(238)](i,a))&&(r=!0),r}[u(209)](t,e){const o=u;if(!this[o(225)])return!1;const n=this[o(227)][e];let i;return i=this[o(208)]?this[o(208)]({footnote:n,container:this[o(225)],digits:String(this[o(227)][o(255)])[o(255)],value:e+1}):String(e+1),n[o(252)][o(236)](o(221))!=i&&(t[o(219)](o(221),i,n[o(252)]),!0)}[u(202)](t){const e=u;if(!this[e(225)]||this[e(227)][e(255)]<2)return!1;if(function(t,o){const n=e;if(t[n(255)]!==o[n(255)])return!1;for(let e=0;e<t[n(255)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(227)][e(290)](t=>t.id),Array[e(254)](this[e(225)][e(278)]())[e(290)](t=>t[e(236)](e(217)))))return!1;let o=!1;for(let n=0;n<this[e(227)][e(255)];n++){const i=this[e(227)][n],s=t[e(294)](i[e(199)]),r=t[e(204)](this[e(225)],n);s[e(268)](r)||(t[e(266)](t[e(207)](i[e(199)]),r),o=!0)}return o}[u(244)](t){const e=u;if(!this[e(227)][e(255)])return!1;const{model:o}=this[e(280)];let n=!1;for(let i=0;i<this[e(227)][e(255)]-1;i++){const s=this[e(227)][i],r=this[e(227)][i+1],a=o[e(294)](s[e(252)]),c=o[e(294)](r[e(252)]);e(277)===a[e(240)](c)&&(this[e(284)](t,s[e(252)]),i=-1,n=!0)}return n}}function h(){const t=["document","_footnotes","enqueueChange","indexOf","unshift","getFootnotesDefinitionsObjectElement","append","12682AwVDcH","getFootnotes","remove","getAttribute","footnoteInlineContent","min","set","compareWith","673812RCkLhS","_footnoteDefsTracker","splice","_ensureFootnotesReferencesHaveProperOrder","_handleFootnotesDefinitionsObjectSync","reset","_handleFootnoteReferencesChanges","end","config","_handleFootnotesDefinitionsObjectChanges","has","reference","2591845vhMhTq","from","length","root","footnoteRef","109gvlCcr","pluginName","rootName","_footnoteDefsContainerTracker","isPremiumPlugin","paragraph","init","isOfficialPlugin","move","high","isEqual","footnotesDefinitions","166922nFEeSw","77brrAoX","singleton","403400dmovZQ","_updateFootnotesCounters","childCount","_handleFootnoteDefinitionsChanges","after","getChildren","setFootnoteFormatter","editor","_footnoteRefsTracker","listenTo","add","_handleMovedFootnoteReference","getChanges","$graveyard","_handleInsertedFootnoteReference","push","4311RhqsOk","map","before","footnotes.multiBlock","differ","createPositionBefore","108grMDoq","_insertEmptyFootnotesDefinitionsContainer","find","change:data","createElement","getRootNames","definition","get","FootnotesTracker","_sortFootnoteDefinitions","low","createPositionAt","model","_handleRemoveFootnoteReferenceById","createRangeOn","_footnoteFormatter","_updateFootnoteRefCounter","parent","4280RUWXXa","footnoteDefinition","getFootnotesFormatter","getFootnote","findIndex","some","footnoteId","registerPostFixer","setAttribute","createRangeIn","footnoteCounter","insert","2108636mUTJyc","_ensureFootnotesDefinitionsContainerExists","_footnotesDefinitions"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(275)])return!1;const i=n(e?263:237);return t[n(222)](t[n(299)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(255)])return 0;const i=t[n(294)](o);for(let o=0;o<e[n(255)];o++){const s=e[o],r=t[n(294)](s[n(252)]);if(n(291)===i[n(240)](r))return o}const s=o[n(256)];let r=-1;for(let t=e[n(255)]-1;t>=0;t--)if(e[t][n(252)][n(256)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(226)][n(300)](),c=a[n(229)](s[n(260)]),l=a[c+1];if(l)for(let t=0;t<e[n(255)];t++)if(e[t][n(252)][n(256)][n(260)]===l)return t;return e[n(255)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=348]})(t,e)}const w=g;function y(){const t=["refresh","insert-footnote-command-executed-with-invalid-id","5068896TdVdWm","document","2264170NVvfjn","get","insertObject","checkChild","isObject","length","model","selection","editor","_moveSelectionToFootnoteDefinition","1998332iKrCsq","_getPositionToInsertFootnote","execute","change","string","footnoteId","createElement","plugins","footnoteRef","83445lzrlab","isBlock","getItems","isEnabled","1376565sfFgfu","getFirstRange","test","8800827aIaTUh","FootnotesEditing","end","1902627aOHSeo"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(606020===-parseInt(e(360))/1+-parseInt(e(375))/2+parseInt(e(370))/3+parseInt(e(351))/4+parseInt(e(364))/5+-parseInt(e(373))/6+parseInt(e(367))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(371)](){const t=w,e=this[t(349)][t(381)][t(374)][t(348)],o=this[t(352)](e);this[t(363)]=!!o}[w(353)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(374)],r=this[e(352)](s);if(!r)return;const a=o[e(358)][e(376)](e(368)),c=t?.[e(356)]??(0,i.uid)();!function(t){const o=e;return o(355)==typeof t&&t[o(380)]>0&&!/\s/[o(366)](t)&&!/^\d/[o(366)](t)}(c)?(0,i.logWarning)(e(372)):(n[e(354)](t=>{const o=e,i=t[o(357)](o(359),{footnoteId:c});n[o(377)](i,r,null)}),a[e(350)](c))}[w(352)](t){const e=w,{model:o}=this[e(349)],{schema:n}=o,i=t[e(365)]();for(const t of i[e(362)]())if(n[e(361)](t)||n[e(379)](t))return null;const s=i[e(369)];return n[e(378)](s,e(359))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1763510400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const P=A;function _(){const t=["entries","document","reduce","method","selection","outputTransformation","element","add","44iBgtqr","listenTo","footnoteId","setAttribute","editing","_handlePasteFootnotesDefinitions","setData","append","data","113495aIthBY","includes","16782468XTiydI","change","flatMap","_insertEmptyFootnotesDefinitionsContainer","content","3qsPnpA","end","8xmzaFx","pluginName","from","465110alklrL","480HOrJkW","sourceEditorId","htmlProcessor","getData","editor","getAttribute","_handleCopyFootnotesDefinitions","FootnotesClipboard","getFootnotesDefinitionsObjectElement","getFootnote","toData","find","length","footnoteDefinition","createElement","isPremiumPlugin","16LPTNUd","toView","insert","create","init","getSelectedBlocks","root","parse","footnoteRef","_defineClipboardIntegration","footnotesDefinitions","remove","createRangeIn","requires","drop","getFirstRange","28321cGwKwg","35511izNKMh","stringify","push","2156562PMnWKx","get","contentInsertion","isOfficialPlugin","getRanges","definition","453692CDlNOu","getFootnotes","application/ckeditor5-footnotes","dataTransfer","toModel","clipboardInput"];return(_=function(){return t})()}function A(t,e){const o=_();return(A=function(t,e){return o[t-=343]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(204347===-parseInt(e(378))/1*(parseInt(e(362))/2)+-parseInt(e(418))/3*(parseInt(e(388))/4)+-parseInt(e(411))/5+parseInt(e(346))/6*(-parseInt(e(379))/7)+-parseInt(e(420))/8*(parseInt(e(382))/9)+parseInt(e(345))/10*(-parseInt(e(402))/11)+parseInt(e(413))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[P(343)](){return P(353)}static get[P(375)](){return[v,S.ClipboardPipeline]}static get[P(385)](){return!0}static get[P(361)](){return!0}[P(366)](){this[P(371)]()}[P(371)](){const t=P;this[t(352)](),this[t(407)]()}[P(352)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(383)](S.ClipboardPipeline),s=o[t(383)](d);this[t(403)](i,t(399),(o,i)=>{const r=t,a=L(n[r(374)](i[r(417)]));if(!a[r(358)])return;const c=s[r(389)](),l=a[r(396)]((t,o)=>{const n=r,i=c[n(357)](t=>t.id===o);if(i){const o=e[n(410)][n(363)](i[n(387)],{isClipboardPipeline:!0}),s=e[n(410)][n(348)][n(356)](o);t[i.id]=s}return t},Object[r(365)](null));i[r(391)][r(408)](r(390),JSON[r(380)](l))})}[P(407)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(406)],r=n[t(383)](S.ClipboardPipeline),a=n[t(383)](d);let c=null;this[t(403)](s[t(395)],t(393),(e,o)=>{const n=t,i=o[n(391)][n(349)](n(390));c=i?JSON[n(369)](i):null}),this[t(403)](r,t(384),(n,s)=>{const r=t,l=s[r(347)]===this[r(350)].id;l&&r(376)===s[r(397)]||o[r(414)](t=>{const n=r;let f=a[n(354)]();const u=!!f&&Array[n(344)](o[n(395)][n(398)][n(367)]())[n(412)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(400),o(372))&&i[o(381)](n);for(const e of i)t[o(373)](e)}(t,s[n(417)]),!c)return;const{selection:d}=o[n(395)],h=d[n(377)]()[n(368)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(400),o(372)))return n;return null}(t,s[n(417)]),f||=a[n(416)](t,h));const p=Array[n(344)](d[n(386)]())[n(415)](L),m=function(t,e,o){const s=n,r=Object[s(365)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(400),s(370))){const e=n[s(351)](s(404));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(405)](s(404),r[e],n)}return r}(t,s[n(417)],t=>{const e=n;return!l||!!a[e(355)](t)&&!p[e(412)](t)});for(const[o,i]of Object[n(394)](c)){const s=m[o]||o,r=t[n(360)](n(359),{footnoteId:s}),a=e[n(410)][n(348)][n(363)](i),c=e[n(410)][n(392)](a,r);t[n(409)](c,r),t[n(364)](r,f,n(419))}c=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(400),e(370))&&o[e(401)](n[e(351)](e(404)));return Array[e(344)](o)}var O=o(311),V=o(355),R=o(929),N=o.n(R),K=o(297),M=o.n(K),j=o(102),U=o.n(j),B=o(123),z=o.n(B),W=o(741),q=o.n(W),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=U().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();N()(H.A,X);H.A&&H.A.locals&&H.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,O.ButtonView)),e.add("menuBar:insertFootnote",G(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var J=$;function Y(){var t=["Footnotes","720CsKfGr","isPremiumPlugin","5376036dZNheg","1816911XErOrV","456288uUmHRC","pluginName","157658ysIcHL","5691yHzicO","isOfficialPlugin","3521905WIVsCd","requires","12702aTguIU","916KdXekA"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=497]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(517893===-parseInt(e(498))/1+-parseInt(e(500))/2+-parseInt(e(505))/3*(-parseInt(e(506))/4)+parseInt(e(503))/5+-parseInt(e(510))/6+-parseInt(e(501))/7*(-parseInt(e(508))/8)+parseInt(e(497))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class Q extends t.Plugin{static get[J(499)](){return J(507)}static get[J(504)](){return[v,D,Z]}static get[J(502)](){return!0}static get[J(509)](){return!0}}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=302]})(t,e)}const et=tt;function ot(){const t=["11efDRPJ","84646nqCrWs","5cHPTZU","714808PUylnt","lower-alpha","4419300foOvvm","lower-roman","246366IXYKlZ","3kqRfLq","lower-latin","21FmRdgS","upper-alpha","upper-latin","decimal","460908ntCCqy","decimal-leading-zero","upper-roman","448656yxpYYK","681776RtPFjK"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(188863===-parseInt(e(308))/1+parseInt(e(302))/2*(parseInt(e(309))/3)+-parseInt(e(304))/4*(parseInt(e(303))/5)+-parseInt(e(318))/6+-parseInt(e(311))/7*(-parseInt(e(319))/8)+-parseInt(e(315))/9+parseInt(e(306))/10*(parseInt(e(320))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(314),et(316),et(310),et(313),et(305),et(312),et(307),et(317)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=230]})(t,e)}function rt(){const t=["3528556fRvTBl","1032dhriaL","change","1094224fvlJDY","623021UvVoZD","plugins","footnotesListStyle","refresh","setAttribute","23219FMuJAU","isEnabled","2401698dLGFmY","3878328DqWIAF","includes","model","2711180umEGqK","getAttribute","value","get","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","execute"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(470487===-parseInt(e(230))/1+parseInt(e(251))/2+parseInt(e(237))/3+-parseInt(e(248))/4+parseInt(e(241))/5+parseInt(e(249))/6*(parseInt(e(235))/7)+-parseInt(e(238))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(233)](){const t=it,{editor:e}=this,o=e[t(231)][t(244)](d)[t(245)]();this[t(236)]=!!o,this[t(243)]=o?.[t(242)](t(232))??null}[it(247)]({value:t}){const e=it,{editor:o}=this,n=o[e(231)][e(244)](d),i=n[e(245)]();i&&nt[e(239)](t)&&o[e(240)][e(250)](o=>{const s=e;o[s(234)](s(232),t,i),n[s(246)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=391]})(t,e)}function ft(){const t=["get","setAttribute","getFootnotesDefinitionsObjectElement","132410vJRTCI","1581140ltDBqY","180hUXqXd","34530qSZKqz","getAttribute","change","isInteger","207388UwcDHE","_updateFootnotesCounters","1233bVGLIZ","632ZOCbsc","319693czkIlJ","isEnabled","model","plugins","value","14RMoKtB","4ERontL","62949SgDinW","footnotesListStart","execute","77TlMagA","refresh"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(173665===parseInt(e(411))/1+parseInt(e(394))/2*(parseInt(e(396))/3)+parseInt(e(395))/4*(parseInt(e(405))/5)+parseInt(e(407))/6*(-parseInt(e(399))/7)+parseInt(e(414))/8*(-parseInt(e(413))/9)+parseInt(e(404))/10+-parseInt(e(415))/11*(parseInt(e(406))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(400)](){const t=ct,{editor:e}=this,o=e[t(392)][t(401)](d)[t(403)]();this[t(416)]=!!o,this[t(393)]=o?.[t(408)](t(397))??null}[ct(398)]({value:t}){const e=ct,{editor:o}=this,n=o[e(392)][e(401)](d),i=n[e(403)]();i&&Number[e(410)](t)&&o[e(391)][e(409)](o=>{const s=e;o[s(402)](s(397),t,i),n[s(412)](o)})}}const dt=pt;function ht(){const t=["extend","list-style-type","410863cMfrsk","hasAttribute","mapper","differ","parent","footnotesDefinitions","start","660280VEXQHh","viewItem","setAttribute","isPremiumPlugin","_getDefaultStartIndex","padStart","config","upper-latin","lower-latin","_getDefaultListStyle","model","toUpperCase","position","toViewElement","6gOoGQO","isNaN","_updateFootnotesCounters","setStyle","floor","footnotesStyle","toLowerCase","nodeAfter","registerPostFixer","add","_formatFootnoteListValue","upper-roman","writer","from","find","removeAttribute","1780155EEnTwd","document","for","insert","schema","getStyle","FootnotesPropertiesEditing","2enzwCj","319wGViEd","removeStyle","footnotesListStart","footnotesStart","footnotes-list","hasClass","max","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","createRangeOn","339689wYVQKh","get","479075UQxpjH","element","footnotes.footnotesProperties.defaultListStyle","type","downcast","define","getAttribute","name","decimal","consume","attribute:footnotesListStyle:footnotesDefinitions","decimal-leading-zero","plugins","element:ol","attribute:footnotesListStart:footnotesDefinitions","init","_defineSchema","8MvPTXb","$text","modelCursor","getChanges","getChildren","parseInt","getItems","lower-alpha","requires","consumable","lower-roman","commands","editor","2219952YCMZlN","checkAttribute","fromCharCode","_definePostfixer","upcast","_defineFormatter","_defineConverters","upper-alpha","pluginName","isOfficialPlugin","1535229pXDgvy","setFootnoteFormatter","item"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=451]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(286711===parseInt(e(505))/1*(-parseInt(e(549))/2)+-parseInt(e(500))/3+-parseInt(e(490))/4+parseInt(e(460))/5*(parseInt(e(526))/6)+-parseInt(e(458))/7*(parseInt(e(477))/8)+-parseInt(e(542))/9+parseInt(e(512))/10*(parseInt(e(550))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(498)](){return dt(548)}static get[dt(485)](){return[v,d]}static get[dt(499)](){return!0}static get[dt(515)](){return!0}[dt(475)](){const t=dt,{editor:e}=this;e[t(518)][t(465)](t(462),t(468)),e[t(518)][t(465)](t(455),1),e[t(488)][t(535)](t(531),new at(e)),e[t(488)][t(535)](t(451),new ut(e)),this[t(476)](),this[t(496)](),this[t(495)](),this[t(493)]()}[dt(476)](){const t=dt,{editor:e}=this,{schema:o}=e[t(522)];o[t(503)](t(510),{allowAttributes:[t(456),t(552)]})}[dt(496)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(544)](t(494))[t(535)](e=>{const o=t;e.on(o(473),(t,e,n)=>{const s=o,r=e[s(513)],a=e[s(479)]?.[s(509)];r[s(453)](s(452))&&a?.is(s(461),s(510))&&(function(t,e,o,n){const i=s;if(!n[i(491)](e,i(552)))return;let r=1;const a=o[i(486)][i(469)](t,{attributes:i(511)});if(a){const e=Number[i(482)](t[i(466)](i(511)),10);Number[i(527)](e)||(r=e)}!a&&e[i(506)](i(552))||o[i(538)][i(514)](i(552),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(491)](e,i(456)))return;let r=i(468),a=!1;if(o[i(486)][i(469)](t,{attributes:i(463)})){const e={1:i(468),a:i(484),A:i(497),i:i(487),I:i(537)}[t[i(466)](i(463))];e&&(r=e),a=!0}o[i(486)][i(469)](t,{styles:i(504)})&&(r=t[i(547)](i(504)),a=!0),!a&&e[i(506)](i(456))||o[i(538)][i(514)](i(456),r,e)}(r,a,n,i))})}),o[t(544)](t(464))[t(535)](e=>{const o=t;e.on(o(474),(t,e,n)=>{const i=o;if(!n[i(486)][i(469)](e[i(502)],t[i(467)]))return;const s=gt(e[i(502)],n[i(507)]),{attributeNewValue:r}=e;null==r||1===r?n[i(538)][i(541)](i(511),s):n[i(538)][i(514)](i(511),String(r),s)}),e.on(o(470),(t,e,n)=>{const i=o;if(!n[i(486)][i(469)](e[i(502)],t[i(467)]))return;const s=gt(e[i(502)],n[i(507)]),{attributeNewValue:r}=e;r&&i(468)!==r?n[i(538)][i(529)](i(504),r,s):n[i(538)][i(551)](i(504),s)})})}[dt(493)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(472)][t(459)](d),i=this[t(521)](),s=this[t(516)]();o[t(543)][t(534)](e=>{const r=t,a=o[r(543)][r(508)][r(480)]();let c=!1;for(const t of a){if(r(545)!==t[r(463)]||r(478)===t[r(467)])continue;const n=o[r(457)](t[r(524)][r(533)]);for(const t of n[r(483)]())t.is(r(461),r(510))&&(!t[r(506)](r(552))&&o[r(546)][r(491)](t,r(552))&&(e[r(514)](r(552),s,t),c=!0),!t[r(506)](r(456))&&o[r(546)][r(491)](t,r(456))&&(e[r(514)](r(456),i,t),c=!0))}return c&&n[r(528)](e),c})}[dt(495)](){const t=dt,{editor:e}=this;e[t(472)][t(459)](d)[t(501)](e=>this[t(536)](e))}[dt(521)](){const t=dt;return this[t(489)][t(518)][t(459)](t(462))}[dt(516)](){const t=dt;return this[t(489)][t(518)][t(459)](t(455))}[dt(536)]({container:t,value:e,digits:o}){const n=dt,i=t[n(466)](n(456)),s=t[n(466)](n(552)),r=Math[n(530)](e)+(s??1)-1;switch(i){case n(471):return function(t,e){const o=n;return String(t)[o(517)](e,"0")}(r,Math[n(454)](2,o));case n(484):case n(520):return wt(r,!1);case n(497):case n(519):return wt(r,!0);case n(487):return bt(r,!1);case n(537):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(525)](t);return Array[o(539)](n[o(481)]())[o(540)](t=>t.is(o(461),"ol")&&t[o(453)](o(452)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(492)](97+t)+n,i=Math[o(530)]((i-1)/26)}return e?n[o(523)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(532)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=U().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=q();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(t,e){var o=Tt();return(Ft=function(t,e){return o[t-=375]})(t,e)}var xt=Ft;!function(t){for(var e=Ft,o=t();;)try{if(625844===parseInt(e(385))/1+-parseInt(e(378))/2*(parseInt(e(387))/3)+-parseInt(e(379))/4+-parseInt(e(382))/5*(-parseInt(e(384))/6)+parseInt(e(386))/7*(parseInt(e(381))/8)+parseInt(e(389))/9+parseInt(e(388))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[xt(375)](){return xt(377)}static get[xt(380)](){return[mt,Ct]}static get[xt(383)](){return!0}static get[xt(376)](){return!0}}function Tt(){var t=["8210079ZXucnt","pluginName","isPremiumPlugin","FootnotesProperties","158152fzqcBW","4360972bnKgCw","requires","552yTWUpf","1015fWMjGi","isOfficialPlugin","10434kFwtcN","383874atPcqs","41447cKfxoN","21nNOHCE","2119480MBuOdo"];return(Tt=function(){return t})()}function St(){var t=["335gxciep","7ZLRSLO","937960zdOjLU","317816mMklOf","12mgROXo","5716850CbZXZG","283438HFwzky","4910076gSqzgU","67806XUKfyF","401102wCZAke"];return(St=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=289]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(379453===parseInt(e(294))/1+-parseInt(e(291))/2*(-parseInt(e(289))/3)+parseInt(e(297))/4+parseInt(e(295))/5*(-parseInt(e(293))/6)+-parseInt(e(296))/7*(parseInt(e(298))/8)+parseInt(e(292))/9+-parseInt(e(290))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();