@ckeditor/ckeditor5-footnotes 47.7.1-alpha.0 → 47.7.2-alpha.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 (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},271(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}},366(t){"use strict";t.exports=function(t){return t[1]}},789(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}}},298(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)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(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)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},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:()=>tt,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>Q,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-=177]})(t,e)}function c(){const t=["4079IeNNfx","210776uNFVlc","insert","set","_model","rootName","remove","_getElementKey","slice","6CfDJxL","142NiMtyg","_trackedElements","getElementKey","$text","length","nodeAfter","type","get","elementName","flat","getItems","_elementName","from","add","97375ZkquOF","createRangeOn","delete","reset","getChanges","1304103XMHUHd","213458LECQZQ","root","values","position","name","element","2203752DmVCSE","clear","5862807orGFHe","attributes","push","has","$graveyard"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(306681===parseInt(e(218))/1*(parseInt(e(185))/2)+parseInt(e(204))/3+-parseInt(e(219))/4+parseInt(e(199))/5*(-parseInt(e(184))/6)+parseInt(e(205))/7+parseInt(e(211))/8+-parseInt(e(213))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(179)];[r(196)];[r(182)];[r(186)]=new Map;constructor(t,e){const o=r;this[o(179)]=t,this[o(196)]=e[o(193)],this[o(182)]=e[o(187)]}[r(202)](){const t=r;this[t(186)][t(212)]()}[r(203)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(177)===i[e(191)]&&e(188)!==i[e(209)]&&i[e(208)][e(190)]){const t=this[e(179)][e(200)](i[e(208)][e(190)]);for(const o of t[e(195)]()){if(!o.is(e(210),this[e(196)]))continue;const t=this[e(182)](o);n[e(216)](t)||n[e(178)](t,[]),n[e(192)](t)[e(215)](o)}}if(e(181)===i[e(191)]&&i[e(209)]===this[e(196)]){const t=this[e(182)]({getAttribute:t=>i[e(214)][e(192)](t)});o[e(198)](t)}}for(const[t,n]of this[e(186)])e(217)===n[e(206)][e(180)]&&o[e(198)](t);for(const t of o)this[e(186)][e(201)](t);for(const[t,o]of n)this[e(186)][e(178)](t,o[o[e(189)]-1]);const i=new Set;for(const[t,s]of n)o[e(216)](t)&&(i[e(198)](s[0]),s[e(189)]>1?n[e(178)](t,s[e(183)](1)):n[e(201)](t),o[e(201)](t));return{removed:Array[e(197)](o),inserted:Array[e(197)](n[e(207)]())[e(194)](),moved:Array[e(197)](i)}}}function u(t,e){const o=d();return(u=function(t,e){return o[t-=128]})(t,e)}const f=u;function d(){const t=["childCount","_handleMovedFootnoteReference","_handleFootnoteDefinitionsChanges","footnotes.multiBlock","model","indexOf","min","change:data","reference","compareWith","definition","5337LOpxdM","add","18740810nOnKQX","getAttribute","_updateFootnoteRefCounter","_updateFootnotesCounters","_handleFootnoteReferencesChanges","push","singleton","193958rybZRI","getChanges","isEqual","_footnotesDefinitions","reset","differ","high","after","getChildren","rootName","_handleFootnotesDefinitionsObjectSync","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteCounter","_footnotes","footnotesDefinitions","getFootnotesDefinitionsObjectElement","238olDNuq","_footnoteDefsTracker","4092540wiafWy","unshift","_handleInsertedFootnoteReference","11rkSsUq","8hcMpYk","end","init","pluginName","set","setAttribute","insert","footnoteDefinition","_sortFootnoteDefinitions","from","_ensureFootnotesReferencesHaveProperOrder","listenTo","576090NuXyKu","length","FootnotesTracker","createRangeOn","isPremiumPlugin","document","getRootNames","createPositionAt","28qvUKJQ","enqueueChange","find","setFootnoteFormatter","config","createPositionBefore","_handleRemoveFootnoteReferenceById","some","splice","get","move","17148756elngkc","getFootnote","parent","has","createRangeIn","footnoteInlineContent","findIndex","_footnoteRefsTracker","footnoteRef","remove","getFootnotes","registerPostFixer","77028TKrrlX","_footnoteDefsContainerTracker","before","$graveyard","append","paragraph","footnoteId","root","map","_handleFootnotesDefinitionsObjectChanges","editor","getFootnotesFormatter","isOfficialPlugin","low","_ensureFootnotesDefinitionsContainerExists","_footnoteFormatter","17576SERAKd"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(973563===-parseInt(e(174))/1*(parseInt(e(151))/2)+parseInt(e(170))/3+-parseInt(e(194))/4*(-parseInt(e(186))/5)+parseInt(e(217))/6*(parseInt(e(168))/7)+-parseInt(e(130))/8*(parseInt(e(142))/9)+parseInt(e(144))/10+parseInt(e(173))/11*(-parseInt(e(205))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(165)]=[];[f(154)]=null;[f(129)]=null;[f(218)];[f(212)];[f(169)];static get[f(177)](){return f(188)}static get[f(229)](){return!0}static get[f(190)](){return!0}constructor(t){const e=f;super(t),this[e(218)]=new l(this[e(227)][e(135)],{elementName:e(166),getElementKey:()=>e(150)}),this[e(212)]=new l(this[e(227)][e(135)],{elementName:e(213),getElementKey:t=>t[e(145)](e(223))}),this[e(169)]=new l(this[e(227)][e(135)],{elementName:e(181),getElementKey:t=>t[e(145)](e(223))})}[f(176)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(191)][t(216)](e=>{const n=t,i=o[n(191)][n(156)][n(152)]();let s=!1;return this[n(226)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(148)](e,i)&&(s=!0),this[n(184)](e)&&(s=!0),this[n(161)](e)&&(s=!0),this[n(182)](e)&&(s=!0),s}),this[t(185)](o[t(191)],t(138),()=>{const e=t;o[e(195)]({isUndoable:!1},t=>{this[e(128)](t)})},{priority:t(230)}),this[t(185)](n,t(178),()=>{const e=t;this[e(165)]=[],this[e(218)][e(155)](),this[e(212)][e(155)](),this[e(169)][e(155)]()},{priority:t(157)})}[f(167)](){return this[f(154)]}[f(206)](t){const e=f;return this[e(165)][e(196)](e=>e.id===t)||null}[f(215)](){const t=f;return Array[t(183)](this[t(165)])}[f(228)](){return this[f(129)]}[f(197)](t){this[f(129)]=t}[f(147)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(165)][o(187)];i++)this[o(146)](t,i)&&(n=!0);return n}[f(163)](t,e){const o=f,n=t[o(162)](o(166),{});return t[o(221)](n,e),this[o(154)]=n,n}[f(128)](t){const e=f;if(!this[e(165)][e(187)]||this[e(154)])return;const o=this[e(165)][0][e(139)][e(224)],n=this[e(163)](t,o);for(const o of this[e(165)])o[e(141)][e(207)]||t[e(180)](o[e(141)],n,e(175));this[e(147)](t)}[f(226)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(218)][o(152)](e);if(r[o(187)]&&(this[o(154)]=r[0]),i[o(187)])if(i[o(187)]>1||this[o(154)]&&i[o(201)](t=>t!==this[o(154)])){const e=t[o(162)](o(166),{}),s=[];this[o(154)]&&s[o(149)](this[o(154)]),s[o(149)](...i),t[o(180)](e,s[0],o(219));for(const n of s)t[o(204)](t[o(209)](n),t[o(193)](e,o(175))),t[o(214)](n);this[o(154)]=e,this[o(147)](t),n=!0}else this[o(154)]=i[0];if(s[o(187)]&&o(220)===this[o(154)]?.[o(224)][o(160)]){for(const e of this[o(165)])t[o(214)](e[o(139)]),n=!0;this[o(165)]=[],this[o(154)]=null}return n}[f(133)](t,e){const o=f;let n=!1;const i=this[o(227)][o(198)][o(203)](o(134)),{inserted:s,moved:r}=this[o(169)][o(152)](e);for(const e of[...r,...s]){const s=e[o(145)](o(223)),r=this[o(206)](s);r&&(r[o(141)]=e),p(t,i,e)&&(n=!0)}return n}[f(148)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(212)][o(152)](e);for(const e of i)this[o(200)](t,e)&&(n=!0);for(const e of s)this[o(172)](t,e)&&(n=!0);for(const e of r)this[o(132)](t,e)&&(n=!0);return n}[f(161)](t){const e=f;if(!this[e(154)])return!1;let o=!1;if(this[e(154)][e(131)]!==this[e(165)][e(187)]){const n=[];for(const t of this[e(154)][e(159)]()){const i=t[e(145)](e(223));this[e(206)](i)||(n[e(171)](t),o=!0)}for(const o of n)t[e(214)](o)}const n=new Set,i=[];for(const t of this[e(154)][e(159)]()){const s=t[e(145)](e(223));n[e(208)](s)?(i[e(171)](t),o=!0):n[e(143)](s)}for(const o of i)t[e(214)](o);return this[e(154)][e(131)]||(t[e(214)](this[e(154)]),this[e(154)]=null,o=!0),o}[f(172)](t,e){const o=f;if(this[o(165)][o(196)](t=>t[o(139)]===e))return!1;let n=!1;const i=e[o(145)](o(223)),s=this[o(165)][o(211)](t=>t.id===i);-1!==s&&(t[o(214)](this[o(165)][s][o(139)]),this[o(165)][o(202)](s,1),n=!0);let r=this[o(154)]?function(t,e){const n=o;for(const o of t[n(159)]())if(o[n(145)](n(223))===e)return o;return null}(this[o(154)],i):null;r||(r=t[o(162)](o(181),{footnoteId:i}),this[o(154)]&&(t[o(180)](r,this[o(154)],o(175)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(227)][o(135)],this[o(165)],e);this[o(165)][o(202)](c,0,a);let l=c;return-1!==s&&(l=Math[o(137)](c,s)),this[o(147)](t,l)&&(n=!0),n}[f(200)](t,e){const o=f,n=this[o(165)][o(211)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(165)][n];return o(220)!==s[o(141)][o(224)][o(160)]&&(t[o(214)](s[o(141)]),i=!0),this[o(165)][o(202)](n,1),this[o(147)](t,n)&&(i=!0),i}[f(132)](t,e){const o=f,n=e[o(145)](o(223)),i=this[o(165)][o(211)](t=>t.id===n),s=this[o(165)][i];let r=!1;s[o(139)]=e,this[o(165)][o(202)](i,1);const a=m(this[o(227)][o(135)],this[o(165)],e);return this[o(165)][o(202)](a,0,s),this[o(147)](t,Math[o(137)](i,a))&&(r=!0),r}[f(146)](t,e){const o=f;if(!this[o(154)])return!1;const n=this[o(165)][e];let i;return i=this[o(129)]?this[o(129)]({footnote:n,container:this[o(154)],digits:String(this[o(165)][o(187)])[o(187)],value:e+1}):String(e+1),n[o(139)][o(145)](o(164))!=i&&(t[o(179)](o(164),i,n[o(139)]),!0)}[f(182)](t){const e=f;if(!this[e(154)]||this[e(165)][e(187)]<2)return!1;if(function(t,o){const n=e;if(t[n(187)]!==o[n(187)])return!1;for(let e=0;e<t[n(187)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(165)][e(225)](t=>t.id),Array[e(183)](this[e(154)][e(159)]())[e(225)](t=>t[e(145)](e(223)))))return!1;let o=!1;for(let n=0;n<this[e(165)][e(187)];n++){const i=this[e(165)][n],s=t[e(199)](i[e(141)]),r=t[e(193)](this[e(154)],n);s[e(153)](r)||(t[e(204)](t[e(189)](i[e(141)]),r),o=!0)}return o}[f(184)](t){const e=f;if(!this[e(165)][e(187)])return!1;const{model:o}=this[e(227)];let n=!1;for(let i=0;i<this[e(165)][e(187)]-1;i++){const s=this[e(165)][i],r=this[e(165)][i+1],a=o[e(199)](s[e(139)]),c=o[e(199)](r[e(139)]);e(158)===a[e(140)](c)&&(this[e(132)](t,s[e(139)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(131)])return!1;const i=n(e?222:210);return t[n(180)](t[n(162)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(187)])return 0;const i=t[n(199)](o);for(let o=0;o<e[n(187)];o++){const s=e[o],r=t[n(199)](s[n(139)]);if(n(219)===i[n(140)](r))return o}const s=o[n(224)];let r=-1;for(let t=e[n(187)]-1;t>=0;t--)if(e[t][n(139)][n(224)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(191)][n(192)](),c=a[n(136)](s[n(160)]),l=a[c+1];if(l)for(let t=0;t<e[n(187)];t++)if(e[t][n(139)][n(224)][n(160)]===l)return t;return e[n(187)]}const g=y;function w(){const t=["checkChild","687930nRselw","72728qQrOmW","string","editor","529136iVrCvm","15owUpkX","test","insert-footnote-command-executed-with-invalid-id","selection","328343xLFwmO","end","6039960QqGBAw","document","isEnabled","refresh","isBlock","insertObject","_getPositionToInsertFootnote","footnoteId","change","execute","getFirstRange","49rUwdiz","get","747nGdlum","length","FootnotesEditing","27969860GGCyRV","_moveSelectionToFootnoteDefinition","footnoteRef","829860ziyGxS","model","isObject","plugins","getItems","createElement"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=293]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(716151===-parseInt(e(320))/1+parseInt(e(304))/2+-parseInt(e(316))/3*(-parseInt(e(315))/4)+parseInt(e(322))/5+parseInt(e(311))/6*(parseInt(e(296))/7)+parseInt(e(312))/8*(parseInt(e(298))/9)+-parseInt(e(301))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(325)](){const t=g,e=this[t(314)][t(305)][t(323)][t(319)],o=this[t(328)](e);this[t(324)]=!!o}[g(294)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(323)],r=this[e(328)](s);if(!r)return;const a=o[e(307)][e(297)](e(300)),c=t?.[e(329)]??(0,i.uid)();!function(t){const o=e;return o(313)==typeof t&&t[o(299)]>0&&!/\s/[o(317)](t)&&!/^\d/[o(317)](t)}(c)?(0,i.logWarning)(e(318)):(n[e(293)](t=>{const o=e,i=t[o(309)](o(303),{footnoteId:c});n[o(327)](i,r,null)}),a[e(302)](c))}[g(328)](t){const e=g,{model:o}=this[e(314)],{schema:n}=o,i=t[e(295)]();for(const t of i[e(308)]())if(n[e(326)](t)||n[e(306)](t))return null;const s=i[e(321)];return n[e(310)](s,e(303))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776643200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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})=>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})=>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 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 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 P=o(331);const T=_;function _(t,e){const o=A();return(_=function(t,e){return o[t-=333]})(t,e)}function A(){const t=["setAttribute","getFootnote","cloneElement","content","getData","createElement","document","hasAttribute","5620aLFsNO","append","selection","keys","from","push","editing","definition","config","element","getFirstRange","createRangeIn","application/ckeditor5-footnotes","outputTransformation","570iyyUSk","sourceEditorId","requires","insert","find","flatMap","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","footnoteInlineContent","stringify","contentInsertion","listenTo","footnoteId","add","footnoteRef","editor","get","662RltPls","getRanges","remove","2732515bpNXYL","FootnotesClipboard","toData","isPremiumPlugin","string","_handleCopyFootnotesDefinitions","create","getFootnotesDefinitionsObjectElement","drop","root","reduce","28437FZNiUn","footnoteDefinition","data","getFootnotes","entries","5805117iWOHLp","setData","length","toView","toModel","init","end","includes","getSelectedBlocks","pluginName","getAttribute","footnotes.multiBlock","parse","4603304hxiYqO","htmlProcessor","clipboardInput","getChildren","_defineClipboardIntegration","footnotesDefinitions","_handlePasteFootnotesDefinitions","change","method","16639OpQVlg","100wZWSDW","2251KuUQrM","28336QUibbV","dataTransfer"];return(A=function(){return t})()}!function(t){const e=_,o=t();for(;;)try{if(414704===parseInt(e(349))/1*(parseInt(e(391))/2)+parseInt(e(405))/3*(-parseInt(e(348))/4)+-parseInt(e(394))/5+-parseInt(e(374))/6*(-parseInt(e(347))/7)+-parseInt(e(338))/8+-parseInt(e(410))/9+parseInt(e(360))/10*(parseInt(e(350))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(334)](){return T(395)}static get[T(376)](){return[v,P.ClipboardPipeline]}static get[T(381)](){return!0}static get[T(397)](){return!0}[T(415)](){this[T(342)]()}[T(342)](){const t=T;this[t(399)](),this[t(344)]()}[T(399)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(390)](P.ClipboardPipeline),s=o[t(390)](h);this[t(385)](i,t(373),(o,i)=>{const r=t,a=O(n[r(371)](i[r(355)]));if(!a[r(412)])return;const c=s[r(408)](),l=a[r(404)]((t,o)=>{const n=r,i=c[n(378)](t=>t.id===o);if(i){const o=e[n(407)][n(413)](i[n(367)],{isClipboardPipeline:!0}),s=e[n(407)][n(339)][n(396)](o);t[i.id]=s}return t},Object[r(400)](null));i[r(351)][r(411)](r(372),JSON[r(383)](l))})}[T(344)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(366)],r=n[t(390)](P.ClipboardPipeline),a=n[t(390)](h),c=e[t(368)][t(390)](t(336));let l=null;this[t(385)](s[t(358)],t(340),(e,o)=>{const n=t,i=o[n(351)][n(356)](n(372));l=i?JSON[n(337)](i):null}),this[t(385)](r,t(384),(n,s)=>{const r=t,u=s[r(375)]===this[r(389)].id;u&&r(402)===s[r(346)]||o[r(345)](t=>{const n=r;let f=a[n(401)]();const d=!!f&&Array[n(364)](o[n(358)][n(362)][n(333)]())[n(417)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(369),e(388)))return!0;return!1}(o[n(371)](s[n(355)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(400)](null);for(const e of i[o(341)]())e.is(o(369),o(406))&&e[o(359)](o(386))&&(s[e[o(335)](o(386))]=t[o(354)](e,!0));return Object[o(363)](s)[o(412)]?s:null}(t,s[n(355)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(369),o(343))&&i[o(365)](n);for(const e of i)t[o(393)](e)}(t,s[n(355)]),!l)return;const{selection:h}=o[n(358)],p=h[n(370)]()[n(403)];f&&!d||(f=L(t,s[n(355)]),f||=a[n(380)](t,p));const m=Array[n(364)](h[n(392)]())[n(379)](O),g=function(t,e,o){const s=n,r=Object[s(400)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(369),s(388))){const e=n[s(335)](s(386));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(352)](s(386),r[e],n)}return r}(t,s[n(355)],t=>{const e=n;return!u||!!a[e(353)](t)&&!m[e(417)](t)});for(const[o,i]of Object[n(409)](l)){const s=g[o]||o;let r;if(n(398)!=typeof i)r=i,s!==o&&t[n(352)](n(386),s,r);else{r=t[n(357)](n(406),{footnoteId:s});const o=e[n(407)][n(339)][n(413)](i);let a;if(c)a=e[n(407)][n(414)](o,r);else{a=t[n(357)](n(382));const i=e[n(407)][n(414)](o,a);t[n(377)](i,a)}t[n(361)](a,r)}t[n(377)](r,f,n(416))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(369),o(343)))return n;return null}function O(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(369),e(388))&&o[e(387)](n[e(335)](e(386)));return Array[e(364)](o)}var N=o(311),V=o(355),R=o(789),K=o.n(R),M=o(437),j=o.n(M),U=o(298),B=o.n(U),z=o(207),H=o.n(z),W=o(825),q=o.n(W),X=o(264),Y={attributes:{"data-cke":!0}};Y.setAttributes=H(),Y.insert=B().bind(null,"head"),Y.domAPI=j(),Y.insertStyleElement=q();K()(X.A,Y);X.A&&X.A.locals&&X.A.locals;class Q 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",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(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||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(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}}var G=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=263]})(t,e)}function $(){var t=["Footnotes","1479210efDXld","2dZLbXz","5FGlber","1984239iPhIpg","78883ryprYZ","961848xppOrN","requires","48uRimTn","75924UpmukD","75009rOPEHA","isOfficialPlugin","pluginName","2553770TmeyjH","isPremiumPlugin"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(128464===-parseInt(e(272))/1*(-parseInt(e(264))/2)+-parseInt(e(271))/3+parseInt(e(268))/4+-parseInt(e(265))/5*(-parseInt(e(263))/6)+parseInt(e(267))/7*(parseInt(e(270))/8)+-parseInt(e(266))/9+-parseInt(e(275))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(274)](){return G(277)}static get[G(269)](){return[v,D,Q]}static get[G(273)](){return!0}static get[G(276)](){return!0}}function et(){const t=["decimal","3288PAAPdY","upper-roman","lower-alpha","upper-alpha","lower-latin","1000590QxqSou","6051429YJTjRj","239183jaUNFI","8aEriyP","decimal-leading-zero","lower-roman","3314637twrumi","1169418tNxRNQ","3302648beblhH","11445HgEOYG","upper-latin"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=110]})(t,e)}const nt=ot;!function(t){const e=ot,o=t();for(;;)try{if(808650===-parseInt(e(118))/1+-parseInt(e(111))/2+parseInt(e(117))/3+parseInt(e(119))/4+-parseInt(e(120))/5*(-parseInt(e(123))/6)+parseInt(e(113))/7*(-parseInt(e(114))/8)+-parseInt(e(112))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[nt(122),nt(115),nt(110),nt(121),nt(125),nt(126),nt(116),nt(124)];function st(t,e){const o=rt();return(st=function(t,e){return o[t-=498]})(t,e)}function rt(){const t=["7585008YvWMlS","footnotesListStyle","model","includes","49DTPZsQ","getFootnotesDefinitionsObjectElement","change","172889NsSuff","428MfCREC","6256170aaHohR","refresh","1367062jYUVdO","14634rpqKOs","24375123OibkuN","getAttribute","execute","get","value","964164wWuvwA","plugins","_updateFootnotesCounters","setAttribute","isEnabled"];return(rt=function(){return t})()}const at=st;!function(t){const e=st,o=t();for(;;)try{if(762495===parseInt(e(519))/1+parseInt(e(500))/2+parseInt(e(501))/3*(parseInt(e(520))/4)+-parseInt(e(498))/5+-parseInt(e(507))/6*(parseInt(e(516))/7)+-parseInt(e(512))/8+parseInt(e(502))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[at(499)](){const t=at,{editor:e}=this,o=e[t(508)][t(505)](h)[t(517)]();this[t(511)]=!!o,this[t(506)]=o?.[t(503)](t(513))??null}[at(504)]({value:t}){const e=at,{editor:o}=this,n=o[e(508)][e(505)](h),i=n[e(517)]();i&&it[e(515)](t)&&o[e(514)][e(518)](o=>{const s=e;o[s(510)](s(513),t,i),n[s(509)](o)})}}function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=214]})(t,e)}const ut=lt;function ft(){const t=["footnotesListStart","value","isEnabled","6267928HFnFzo","refresh","5836xwqZdd","getFootnotesDefinitionsObjectElement","execute","2152314LxhUKb","363596bmSfJf","1887802ErXbat","plugins","setAttribute","_updateFootnotesCounters","model","getAttribute","198BqkMof","isInteger","change","186085tuLbXe","get","518410RSgTaX","1623pkJYth"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(786984===parseInt(e(233))/1+parseInt(e(222))/2+parseInt(e(223))/3*(-parseInt(e(229))/4)+parseInt(e(220))/5*(parseInt(e(217))/6)+parseInt(e(234))/7+-parseInt(e(227))/8+parseInt(e(232))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[ut(228)](){const t=ut,{editor:e}=this,o=e[t(235)][t(221)](h)[t(230)]();this[t(226)]=!!o,this[t(225)]=o?.[t(216)](t(224))??null}[ut(231)]({value:t}){const e=ut,{editor:o}=this,n=o[e(235)][e(221)](h),i=n[e(230)]();i&&Number[e(218)](t)&&o[e(215)][e(219)](o=>{const s=e;o[s(236)](s(224),t,i),n[s(214)](o)})}}const ht=wt;!function(t){const e=wt,o=t();for(;;)try{if(507627===parseInt(e(148))/1+parseInt(e(149))/2+parseInt(e(150))/3+parseInt(e(206))/4+-parseInt(e(198))/5*(parseInt(e(173))/6)+parseInt(e(217))/7*(-parseInt(e(163))/8)+-parseInt(e(214))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(vt);class pt extends t.Plugin{static get[ht(141)](){return ht(219)}static get[ht(174)](){return[v,h]}static get[ht(157)](){return!0}static get[ht(192)](){return!0}[ht(197)](){const t=ht,{editor:e}=this;e[t(179)][t(134)](t(227),t(218)),e[t(179)][t(134)](t(207),1),e[t(137)][t(215)](t(226),new ct(e)),e[t(137)][t(215)](t(175),new dt(e)),this[t(193)](),this[t(216)](),this[t(164)](),this[t(220)]()}[ht(193)](){const t=ht,{editor:e}=this,{schema:o}=e[t(201)];o[t(205)](t(184),{allowAttributes:[t(188),t(185)]})}[ht(216)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(176)](t(167))[t(215)](e=>{const o=t;e.on(o(165),(t,e,n)=>{const s=o,r=e[s(133)],a=e[s(181)]?.[s(139)];r[s(222)](s(131))&&a?.is(s(211),s(184))&&(function(t,e,o,n){const i=s;if(!n[i(183)](e,i(185)))return;let r=1;const a=o[i(152)][i(154)](t,{attributes:i(132)});if(a){const e=Number[i(136)](t[i(138)](i(132)),10);Number[i(221)](e)||(r=e)}!a&&e[i(208)](i(185))||o[i(162)][i(171)](i(185),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(183)](e,i(188)))return;let r=i(218),a=!1;if(o[i(152)][i(154)](t,{attributes:i(153)})){const e={1:i(218),a:i(151),A:i(195),i:i(172),I:i(143)}[t[i(138)](i(153))];e&&(r=e),a=!0}o[i(152)][i(154)](t,{styles:i(212)})&&(r=function(t){const e=i;switch(t){case e(151):return e(159);case e(195):return e(223);default:return t}}(t[i(180)](i(212))),a=!0),!a&&e[i(208)](i(188))||o[i(162)][i(171)](i(188),r,e)}(r,a,n,i))})}),o[t(176)](t(202))[t(215)](e=>{const o=t;e.on(o(200),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;null==r||1===r?n[i(162)][i(194)](i(132),s):n[i(162)][i(171)](i(132),String(r),s)}),e.on(o(177),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;r&&i(218)!==r?n[i(162)][i(146)](i(212),r,s):n[i(162)][i(187)](i(212),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(161)][t(204)](h),i=this[t(199)](),s=this[t(178)]();o[t(147)][t(140)](e=>{const r=t,a=o[r(147)][r(213)][r(156)]();let c=!1;for(const t of a){if(r(191)!==t[r(153)]||r(130)===t[r(186)])continue;const n=o[r(158)](t[r(142)][r(170)]);for(const t of n[r(189)]())t.is(r(211),r(184))&&(!t[r(208)](r(185))&&o[r(155)][r(183)](t,r(185))&&(e[r(171)](r(185),s,t),c=!0),!t[r(208)](r(188))&&o[r(155)][r(183)](t,r(188))&&(e[r(171)](r(188),i,t),c=!0))}return c&&n[r(144)](e),c})}[ht(164)](){const t=ht,{editor:e}=this;e[t(161)][t(204)](h)[t(190)](e=>this[t(182)](e))}[ht(199)](){const t=ht;return this[t(224)][t(179)][t(204)](t(227))}[ht(178)](){const t=ht;return this[t(224)][t(179)][t(204)](t(207))}[ht(182)]({container:t,value:e,digits:o}){const n=ht,i=t[n(138)](n(188)),s=t[n(138)](n(185)),r=Math[n(166)](e)+(s??1)-1;switch(i){case n(160):return function(t,e){const o=n;return String(t)[o(209)](e,"0")}(r,Math[n(203)](2,o));case n(151):case n(159):return gt(r,!1);case n(195):case n(223):return gt(r,!0);case n(172):return bt(r,!1);case n(143):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=ht,n=e[o(225)](t);return Array[o(229)](n[o(210)]())[o(168)](t=>t.is(o(211),"ol")&&t[o(222)](o(131)))}function gt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(228)](97+t)+n,i=Math[o(166)]((i-1)/26)}return e?n[o(145)]():n}function wt(t,e){const o=vt();return(wt=function(t,e){return o[t-=130]})(t,e)}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=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(169)]()}function vt(){const t=["isPremiumPlugin","_defineSchema","removeAttribute","upper-alpha","mapper","init","5hcKKVW","_getDefaultListStyle","attribute:footnotesListStart:footnotesDefinitions","model","downcast","max","get","extend","3241288uzUEhi","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","padStart","getChildren","element","list-style-type","differ","12220848HlhPpF","add","_defineConverters","49YpOotE","decimal","FootnotesPropertiesEditing","_definePostfixer","isNaN","hasClass","upper-latin","editor","toViewElement","footnotesStyle","footnotes.footnotesProperties.defaultListStyle","fromCharCode","from","$text","footnotes-list","start","viewItem","define","item","parseInt","commands","getAttribute","parent","registerPostFixer","pluginName","position","upper-roman","_updateFootnotesCounters","toUpperCase","setStyle","document","90711qLnxot","1743030KLOAmD","2291085DqcfVJ","lower-alpha","consumable","type","consume","schema","getChanges","isOfficialPlugin","createRangeOn","lower-latin","decimal-leading-zero","plugins","writer","729488fdYysR","_defineFormatter","element:ol","floor","upcast","find","toLowerCase","nodeAfter","setAttribute","lower-roman","194652ozSUCk","requires","footnotesStart","for","attribute:footnotesListStyle:footnotesDefinitions","_getDefaultStartIndex","config","getStyle","modelCursor","_formatFootnoteListValue","checkAttribute","footnotesDefinitions","footnotesListStart","name","removeStyle","footnotesListStyle","getItems","setFootnoteFormatter","insert"];return(vt=function(){return t})()}class It 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 kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=B().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft 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 It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),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 xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=270]})(t,e)}function St(){var t=["5960qRULmV","isPremiumPlugin","253880btZeLN","952035ujKZgH","573201jSifEL","138zMqLKd","171RUYMHo","12scNyRy","1870275VQmfTy","5862zltmYT","2bQqmbh","isOfficialPlugin","pluginName","2993280MRrvDO","1710mnCGtx","requires","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(379612===parseInt(e(279))/1*(parseInt(e(285))/2)+-parseInt(e(280))/3*(-parseInt(e(275))/4)+parseInt(e(272))/5*(parseInt(e(284))/6)+parseInt(e(278))/7+-parseInt(e(277))/8*(parseInt(e(281))/9)+-parseInt(e(271))/10+parseInt(e(283))/11*(parseInt(e(282))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(270)](){return xt(274)}static get[xt(273)](){return[pt,Ft]}static get[xt(286)](){return!0}static get[xt(276)](){return!0}}function Tt(t,e){var o=_t();return(Tt=function(t,e){return o[t-=346]})(t,e)}function _t(){var t=["9794568SckUfB","9098313JWhmNX","1164885JnUZiw","9tgfaaw","1468559fajgwU","2LUkYND","1349044FXfYxS","32994135BxKOdU","528684dBMiUN"];return(_t=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(830022===-parseInt(e(348))/1*(parseInt(e(349))/2)+-parseInt(e(347))/3*(-parseInt(e(350))/4)+parseInt(e(346))/5+-parseInt(e(352))/6+-parseInt(e(354))/7+-parseInt(e(353))/8+parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_t)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},271(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}},366(t){"use strict";t.exports=function(t){return t[1]}},789(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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,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}}},298(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)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(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)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},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:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["root","reset","getItems","nodeAfter","createRangeOn","has","44WtIqrA","_getElementKey","name","218gnrlHV","5779dSIlik","_elementName","$graveyard","type","12215256hGKLDV","7Cukbbn","position","flat","clear","elementName","1843770UtkrvX","attributes","set","6354378muhHVo","slice","rootName","remove","values","element","_model","779283JXEWHK","4493769XyOZrQ","get","delete","length","insert","getElementKey","from","add","getChanges","3118230nPpEqp","_trackedElements","push","12CaKSjI","$text"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(780151===-parseInt(e(146))/1*(parseInt(e(145))/2)+-parseInt(e(167))/3+-parseInt(e(134))/4*(-parseInt(e(156))/5)+-parseInt(e(159))/6+parseInt(e(151))/7*(parseInt(e(150))/8)+parseInt(e(166))/9+parseInt(e(131))/10*(parseInt(e(142))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(165)];[r(147)];[r(143)];[r(132)]=new Map;constructor(t,e){const o=r;this[o(165)]=t,this[o(147)]=e[o(155)],this[o(143)]=e[o(127)]}[r(137)](){const t=r;this[t(132)][t(154)]()}[r(130)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(171)===i[e(149)]&&e(135)!==i[e(144)]&&i[e(152)][e(139)]){const t=this[e(165)][e(140)](i[e(152)][e(139)]);for(const o of t[e(138)]()){if(!o.is(e(164),this[e(147)]))continue;const t=this[e(143)](o);n[e(141)](t)||n[e(158)](t,[]),n[e(168)](t)[e(133)](o)}}if(e(162)===i[e(149)]&&i[e(144)]===this[e(147)]){const t=this[e(143)]({getAttribute:t=>i[e(157)][e(168)](t)});o[e(129)](t)}}for(const[t,n]of this[e(132)])e(148)===n[e(136)][e(161)]&&o[e(129)](t);for(const t of o)this[e(132)][e(169)](t);for(const[t,o]of n)this[e(132)][e(158)](t,o[o[e(170)]-1]);const i=new Set;for(const[t,s]of n)o[e(141)](t)&&(i[e(129)](s[0]),s[e(170)]>1?n[e(158)](t,s[e(160)](1)):n[e(169)](t),o[e(169)](t));return{removed:Array[e(128)](o),inserted:Array[e(128)](n[e(163)]())[e(153)](),moved:Array[e(128)](i)}}}function f(){const t=["listenTo","isPremiumPlugin","pluginName","createPositionAt","append","getFootnotesFormatter","_updateFootnotesCounters","7299CYCnSk","getFootnotes","_footnoteFormatter","10292440ACVwTd","editor","_handleFootnotesDefinitionsObjectChanges","move","min","_footnotes","_insertEmptyFootnotesDefinitionsContainer","138zWDYyW","_handleFootnotesDefinitionsObjectSync","footnoteDefinition","setFootnoteFormatter","enqueueChange","_handleFootnoteReferencesChanges","find","indexOf","paragraph","footnoteRef","add","getRootNames","_footnoteDefsTracker","_footnoteDefsContainerTracker","low","387506fChEUB","findIndex","FootnotesTracker","footnoteId","reset","root","footnotes.multiBlock","registerPostFixer","length","singleton","23668623HRDUVQ","reference","set","6820450XCDnom","rootName","_handleInsertedFootnoteReference","definition","insert","unshift","push","27884mrdVDO","_sortFootnoteDefinitions","_handleFootnoteDefinitionsChanges","from","getChanges","document","_handleMovedFootnoteReference","createElement","_updateFootnoteRefCounter","footnoteInlineContent","splice","model","getFootnotesDefinitionsObjectElement","some","parent","$graveyard","compareWith","createRangeIn","high","footnotesDefinitions","config","createPositionBefore","map","footnoteCounter","_ensureFootnotesReferencesHaveProperOrder","differ","959006WCRMit","init","has","end","get","_footnotesDefinitions","childCount","isOfficialPlugin","12360mBdxRh","getChildren","_ensureFootnotesDefinitionsContainerExists","_handleRemoveFootnoteReferenceById","setAttribute","getFootnote","getAttribute","change:data","before","_footnoteRefsTracker","after","remove","2bcVEjx","363CFvkFx","createRangeOn","isEqual"];return(f=function(){return t})()}const u=p;!function(t){const e=p,o=t();for(;;)try{if(824897===-parseInt(e(220))/1*(-parseInt(e(302))/2)+-parseInt(e(221))/3*(parseInt(e(276))/4)+parseInt(e(269))/5+parseInt(e(241))/6*(parseInt(e(256))/7)+parseInt(e(310))/8*(parseInt(e(231))/9)+-parseInt(e(234))/10+-parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(239)]=[];[u(307)]=null;[u(233)]=null;[u(254)];[u(217)];[u(253)];static get[u(226)](){return u(258)}static get[u(309)](){return!0}static get[u(225)](){return!0}constructor(t){const e=u;super(t),this[e(254)]=new l(this[e(235)][e(287)],{elementName:e(295),getElementKey:()=>e(265)}),this[e(217)]=new l(this[e(235)][e(287)],{elementName:e(250),getElementKey:t=>t[e(316)](e(259))}),this[e(253)]=new l(this[e(235)][e(287)],{elementName:e(243),getElementKey:t=>t[e(316)](e(259))})}[u(303)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(281)][t(263)](e=>{const n=t,i=o[n(281)][n(301)][n(280)]();let s=!1;return this[n(236)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(246)](e,i)&&(s=!0),this[n(300)](e)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(277)](e)&&(s=!0),s}),this[t(224)](o[t(281)],t(317),()=>{const e=t;o[e(245)]({isUndoable:!1},t=>{this[e(312)](t)})},{priority:t(255)}),this[t(224)](n,t(268),()=>{const e=t;this[e(239)]=[],this[e(254)][e(260)](),this[e(217)][e(260)](),this[e(253)][e(260)]()},{priority:t(294)})}[u(288)](){return this[u(307)]}[u(315)](t){const e=u;return this[e(239)][e(247)](e=>e.id===t)||null}[u(232)](){const t=u;return Array[t(279)](this[t(239)])}[u(229)](){return this[u(233)]}[u(244)](t){this[u(233)]=t}[u(230)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(239)][o(264)];i++)this[o(284)](t,i)&&(n=!0);return n}[u(240)](t,e){const o=u,n=t[o(283)](o(295),{});return t[o(228)](n,e),this[o(307)]=n,n}[u(312)](t){const e=u;if(!this[e(239)][e(264)]||this[e(307)])return;const o=this[e(239)][0][e(267)][e(261)],n=this[e(240)](t,o);for(const o of this[e(239)])o[e(272)][e(290)]||t[e(273)](o[e(272)],n,e(305));this[e(230)](t)}[u(236)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(254)][o(280)](e);if(r[o(264)]&&(this[o(307)]=r[0]),i[o(264)])if(i[o(264)]>1||this[o(307)]&&i[o(289)](t=>t!==this[o(307)])){const e=t[o(283)](o(295),{}),s=[];this[o(307)]&&s[o(275)](this[o(307)]),s[o(275)](...i),t[o(273)](e,s[0],o(216));for(const n of s)t[o(237)](t[o(293)](n),t[o(227)](e,o(305))),t[o(219)](n);this[o(307)]=e,this[o(230)](t),n=!0}else this[o(307)]=i[0];if(s[o(264)]&&o(291)===this[o(307)]?.[o(261)][o(270)]){for(const e of this[o(239)])t[o(219)](e[o(267)]),n=!0;this[o(239)]=[],this[o(307)]=null}return n}[u(278)](t,e){const o=u;let n=!1;const i=this[o(235)][o(296)][o(306)](o(262)),{inserted:s,moved:r}=this[o(253)][o(280)](e);for(const e of[...r,...s]){const s=e[o(316)](o(259)),r=this[o(315)](s);r&&(r[o(272)]=e),h(t,i,e)&&(n=!0)}return n}[u(246)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(217)][o(280)](e);for(const e of i)this[o(313)](t,e)&&(n=!0);for(const e of s)this[o(271)](t,e)&&(n=!0);for(const e of r)this[o(282)](t,e)&&(n=!0);return n}[u(242)](t){const e=u;if(!this[e(307)])return!1;let o=!1;if(this[e(307)][e(308)]!==this[e(239)][e(264)]){const n=[];for(const t of this[e(307)][e(311)]()){const i=t[e(316)](e(259));this[e(315)](i)||(n[e(274)](t),o=!0)}for(const o of n)t[e(219)](o)}const n=new Set,i=[];for(const t of this[e(307)][e(311)]()){const s=t[e(316)](e(259));n[e(304)](s)?(i[e(274)](t),o=!0):n[e(251)](s)}for(const o of i)t[e(219)](o);return this[e(307)][e(308)]||(t[e(219)](this[e(307)]),this[e(307)]=null,o=!0),o}[u(271)](t,e){const o=u;if(this[o(239)][o(247)](t=>t[o(267)]===e))return!1;let n=!1;const i=e[o(316)](o(259)),s=this[o(239)][o(257)](t=>t.id===i);-1!==s&&(t[o(219)](this[o(239)][s][o(267)]),this[o(239)][o(286)](s,1),n=!0);let r=this[o(307)]?function(t,e){const n=o;for(const o of t[n(311)]())if(o[n(316)](n(259))===e)return o;return null}(this[o(307)],i):null;r||(r=t[o(283)](o(243),{footnoteId:i}),this[o(307)]&&(t[o(273)](r,this[o(307)],o(305)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(235)][o(287)],this[o(239)],e);this[o(239)][o(286)](c,0,a);let l=c;return-1!==s&&(l=Math[o(238)](c,s)),this[o(230)](t,l)&&(n=!0),n}[u(313)](t,e){const o=u,n=this[o(239)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(239)][n];return o(291)!==s[o(272)][o(261)][o(270)]&&(t[o(219)](s[o(272)]),i=!0),this[o(239)][o(286)](n,1),this[o(230)](t,n)&&(i=!0),i}[u(282)](t,e){const o=u,n=e[o(316)](o(259)),i=this[o(239)][o(257)](t=>t.id===n),s=this[o(239)][i];let r=!1;s[o(267)]=e,this[o(239)][o(286)](i,1);const a=m(this[o(235)][o(287)],this[o(239)],e);return this[o(239)][o(286)](a,0,s),this[o(230)](t,Math[o(238)](i,a))&&(r=!0),r}[u(284)](t,e){const o=u;if(!this[o(307)])return!1;const n=this[o(239)][e];let i;return i=this[o(233)]?this[o(233)]({footnote:n,container:this[o(307)],digits:String(this[o(239)][o(264)])[o(264)],value:e+1}):String(e+1),n[o(267)][o(316)](o(299))!=i&&(t[o(314)](o(299),i,n[o(267)]),!0)}[u(277)](t){const e=u;if(!this[e(307)]||this[e(239)][e(264)]<2)return!1;if(function(t,o){const n=e;if(t[n(264)]!==o[n(264)])return!1;for(let e=0;e<t[n(264)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(239)][e(298)](t=>t.id),Array[e(279)](this[e(307)][e(311)]())[e(298)](t=>t[e(316)](e(259)))))return!1;let o=!1;for(let n=0;n<this[e(239)][e(264)];n++){const i=this[e(239)][n],s=t[e(297)](i[e(272)]),r=t[e(227)](this[e(307)],n);s[e(223)](r)||(t[e(237)](t[e(222)](i[e(272)]),r),o=!0)}return o}[u(300)](t){const e=u;if(!this[e(239)][e(264)])return!1;const{model:o}=this[e(235)];let n=!1;for(let i=0;i<this[e(239)][e(264)]-1;i++){const s=this[e(239)][i],r=this[e(239)][i+1],a=o[e(297)](s[e(267)]),c=o[e(297)](r[e(267)]);e(218)===a[e(292)](c)&&(this[e(282)](t,s[e(267)]),i=-1,n=!0)}return n}}function p(t,e){const o=f();return(p=function(t,e){return o[t-=216]})(t,e)}function h(t,e,o){const n=u;if(o[n(308)])return!1;const i=n(e?249:285);return t[n(273)](t[n(283)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(264)])return 0;const i=t[n(297)](o);for(let o=0;o<e[n(264)];o++){const s=e[o],r=t[n(297)](s[n(267)]);if(n(216)===i[n(292)](r))return o}const s=o[n(261)];let r=-1;for(let t=e[n(264)]-1;t>=0;t--)if(e[t][n(267)][n(261)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(281)][n(252)](),c=a[n(248)](s[n(270)]),l=a[c+1];if(l)for(let t=0;t<e[n(264)];t++)if(e[t][n(267)][n(261)][n(270)]===l)return t;return e[n(264)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=147]})(t,e)}function y(){const t=["9WmBNlH","change","429664gwfXhG","insertObject","length","getFirstRange","_moveSelectionToFootnoteDefinition","_getPositionToInsertFootnote","refresh","196wusgBB","editor","createElement","isObject","40wHRAJC","model","87732gvNtvD","FootnotesEditing","1680841ucXfaH","getItems","footnoteRef","test","6824anuZhr","6772104pxFvfi","execute","footnoteId","12786653OcuFxg","insert-footnote-command-executed-with-invalid-id","document","3880EkiOYf","end","checkChild","selection","get","isBlock","string","214252bSzZyk","isEnabled","plugins"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(938729===-parseInt(e(160))/1+-parseInt(e(178))/2*(parseInt(e(181))/3)+parseInt(e(164))/4*(-parseInt(e(171))/5)+parseInt(e(165))/6+-parseInt(e(152))/7*(parseInt(e(183))/8)+-parseInt(e(158))/9+-parseInt(e(156))/10*(-parseInt(e(168))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(151)](){const t=g,e=this[t(153)][t(157)][t(170)][t(174)],o=this[t(150)](e);this[t(179)]=!!o}[g(166)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(170)],r=this[e(150)](s);if(!r)return;const a=o[e(180)][e(175)](e(159)),c=t?.[e(167)]??(0,i.uid)();!function(t){const o=e;return o(177)==typeof t&&t[o(147)]>0&&!/\s/[o(163)](t)&&!/^\d/[o(163)](t)}(c)?(0,i.logWarning)(e(169)):(n[e(182)](t=>{const o=e,i=t[o(154)](o(162),{footnoteId:c});n[o(184)](i,r,null)}),a[e(149)](c))}[g(150)](t){const e=g,{model:o}=this[e(153)],{schema:n}=o,i=t[e(148)]();for(const t of i[e(161)]())if(n[e(176)](t)||n[e(155)](t))return null;const s=i[e(172)];return n[e(173)](s,e(162))?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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1778803200;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([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})=>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 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 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 A=o(331);const P=T;function D(){const t=["selection","getAttribute","element","toData","1276101cDFzrY","string","createElement","hasAttribute","getData","sourceEditorId","reduce","toModel","1863060WXUGof","init","content","getFirstRange","toView","getFootnotesDefinitionsObjectElement","22zQArtQ","length","footnotesDefinitions","document","includes","_defineClipboardIntegration","getFootnote","end","getRanges","find","_handlePasteFootnotesDefinitions","htmlProcessor","root","9peHTpZ","_handleCopyFootnotesDefinitions","pluginName","keys","dataTransfer","getChildren","createRangeIn","getSelectedBlocks","listenTo","isPremiumPlugin","stringify","requires","flatMap","footnoteId","application/ckeditor5-footnotes","drop","241832rsrTqP","103744QFNTTL","41184KFLInw","contentInsertion","setAttribute","cloneElement","method","append","change","footnoteRef","definition","226500IOoCAM","editing","14FYdGPg","insert","create","remove","push","outputTransformation","FootnotesClipboard","footnoteDefinition","footnoteInlineContent","entries","footnotes.multiBlock","isOfficialPlugin","_insertEmptyFootnotesDefinitionsContainer","parse","data","editor","50Vsetez","config","getFootnotes","add","from","setData","clipboardInput","get","148994cYaEHA"];return(D=function(){return t})()}function T(t,e){const o=D();return(T=function(t,e){return o[t-=232]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(230219===parseInt(e(259))/1+parseInt(e(309))/2+parseInt(e(291))/3*(parseInt(e(307))/4)+parseInt(e(251))/5*(-parseInt(e(233))/6)+-parseInt(e(235))/7*(-parseInt(e(308))/8)+-parseInt(e(264))/9+parseInt(e(272))/10*(parseInt(e(278))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[P(293)](){return P(241)}static get[P(302)](){return[v,A.ClipboardPipeline]}static get[P(246)](){return!0}static get[P(300)](){return!0}[P(273)](){this[P(283)]()}[P(283)](){const t=P;this[t(292)](),this[t(288)]()}[P(292)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(258)](A.ClipboardPipeline),s=o[t(258)](d);this[t(299)](i,t(240),(o,i)=>{const r=t,a=V(n[r(297)](i[r(274)]));if(!a[r(279)])return;const c=s[r(253)](),l=a[r(270)]((t,o)=>{const n=r,i=c[n(287)](t=>t.id===o);if(i){const o=e[n(249)][n(276)](i[n(232)],{isClipboardPipeline:!0}),s=e[n(249)][n(289)][n(263)](o);t[i.id]=s}return t},Object[r(237)](null));i[r(295)][r(256)](r(305),JSON[r(301)](l))})}[P(288)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(234)],r=n[t(258)](A.ClipboardPipeline),a=n[t(258)](d),c=e[t(252)][t(258)](t(245));let l=null;this[t(299)](s[t(281)],t(257),(e,o)=>{const n=t,i=o[n(295)][n(268)](n(305));l=i?JSON[n(248)](i):null}),this[t(299)](r,t(310),(n,s)=>{const r=t,f=s[r(269)]===this[r(250)].id;f&&r(306)===s[r(313)]||o[r(315)](t=>{const n=r;let u=a[n(277)]();const d=!!u&&Array[n(255)](o[n(281)][n(260)][n(298)]())[n(282)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(262),e(316)))return!0;return!1}(o[n(297)](s[n(274)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(237)](null);for(const e of i[o(296)]())e.is(o(262),o(242))&&e[o(267)](o(304))&&(s[e[o(261)](o(304))]=t[o(312)](e,!0));return Object[o(294)](s)[o(279)]?s:null}(t,s[n(274)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(297)](e))n.is(o(262),o(280))&&i[o(239)](n);for(const e of i)t[o(238)](e)}(t,s[n(274)]),!l)return;const{selection:p}=o[n(281)],h=p[n(275)]()[n(290)];u&&!d||(u=L(t,s[n(274)]),u||=a[n(247)](t,h));const m=Array[n(255)](p[n(286)]())[n(303)](V),g=function(t,e,o){const s=n,r=Object[s(237)](null);for(const{item:n}of t[s(297)](e))if(n.is(s(262),s(316))){const e=n[s(261)](s(304));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(311)](s(304),r[e],n)}return r}(t,s[n(274)],t=>{const e=n;return!f||!!a[e(284)](t)&&!m[e(282)](t)});for(const[o,i]of Object[n(244)](l)){const s=g[o]||o;let r;if(n(265)!=typeof i)r=i,s!==o&&t[n(311)](n(304),s,r);else{r=t[n(266)](n(242),{footnoteId:s});const o=e[n(249)][n(289)][n(276)](i);let a;if(c)a=e[n(249)][n(271)](o,r);else{a=t[n(266)](n(243));const i=e[n(249)][n(271)](o,a);t[n(236)](i,a)}t[n(314)](a,r)}t[n(236)](r,u,n(285))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(297)](e))if(n.is(o(262),o(280)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(262),e(316))&&o[e(254)](n[e(261)](e(304)));return Array[e(255)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),M=o(437),j=o.n(M),B=o(298),z=o.n(B),W=o(207),H=o.n(W),U=o(825),q=o.n(U),X=o(264),Q={attributes:{"data-cke":!0}};Q.setAttributes=H(),Q.insert=z().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=q();K()(X.A,Q);X.A&&X.A.locals&&X.A.locals;class J 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",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(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||"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"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(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:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(t,e){var o=Y();return($=function(t,e){return o[t-=195]})(t,e)}var G=$;function Y(){var t=["138675hXRuzW","isOfficialPlugin","378202caFnio","1002400TJXzyN","Footnotes","1584456GkmPhn","430332QQNxTB","4EqoCkL","pluginName","2658672QxLocw","886863CRJZoD","isPremiumPlugin","1SdEvzQ","requires"];return(Y=function(){return t})()}!function(t){for(var e=$,o=t();;)try{if(160128===parseInt(e(207))/1*(-parseInt(e(197))/2)+parseInt(e(205))/3*(parseInt(e(202))/4)+parseInt(e(195))/5+parseInt(e(201))/6+-parseInt(e(198))/7+-parseInt(e(200))/8+parseInt(e(204))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[G(203)](){return G(199)}static get[G(208)](){return[v,_,J]}static get[G(196)](){return!0}static get[G(206)](){return!0}}const et=ot;function ot(t,e){const o=it();return(ot=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(814394===-parseInt(e(492))/1*(parseInt(e(491))/2)+parseInt(e(480))/3*(parseInt(e(493))/4)+parseInt(e(479))/5*(parseInt(e(494))/6)+-parseInt(e(482))/7+parseInt(e(481))/8+parseInt(e(489))/9+parseInt(e(483))/10*(-parseInt(e(487))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[et(488),et(485),et(484),et(476),et(478),et(486),et(477),et(490)];function it(){const t=["10zxxSHB","78801lvPkfk","10442136aODOKQ","10111626gMShBb","490HZspuB","lower-latin","decimal-leading-zero","upper-alpha","108922iSwjEQ","decimal","5274720FClEiZ","upper-roman","2672354WMMxhM","1kyxSza","120BguepK","4202790NRAPrE","upper-latin","lower-roman","lower-alpha"];return(it=function(){return t})()}const st=at;function rt(){const t=["get","11bWJdfc","99pibLOx","410416JFHnft","40555464ziRslC","6bDScMM","260Ylpubc","setAttribute","change","model","5CMmVUd","value","7407160OMSjZE","refresh","getAttribute","7563262CqKMUK","getFootnotesDefinitionsObjectElement","26142PbxdSn","plugins","5110470oHQzML","execute","includes","isEnabled","_updateFootnotesCounters","footnotesListStyle","813238KbLJSl"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(947585===-parseInt(e(204))/1+parseInt(e(185))/2*(parseInt(e(196))/3)+-parseInt(e(191))/4*(-parseInt(e(189))/5)+parseInt(e(184))/6*(parseInt(e(194))/7)+parseInt(e(208))/8*(parseInt(e(207))/9)+parseInt(e(198))/10*(parseInt(e(206))/11)+-parseInt(e(209))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(192)](){const t=st,{editor:e}=this,o=e[t(197)][t(205)](d)[t(195)]();this[t(201)]=!!o,this[t(190)]=o?.[t(193)](t(203))??null}[st(199)]({value:t}){const e=st,{editor:o}=this,n=o[e(197)][e(205)](d),i=n[e(195)]();i&&nt[e(200)](t)&&o[e(188)][e(187)](o=>{const s=e;o[s(186)](s(203),t,i),n[s(202)](o)})}}const lt=ut;function ft(){const t=["getFootnotesDefinitionsObjectElement","isEnabled","get","12221816vgyLXX","isInteger","model","1xlpNCq","getAttribute","_updateFootnotesCounters","plugins","32041207yaieZE","setAttribute","412adAukW","value","5331805FJcVzo","change","footnotesListStart","1383302DMfwcj","refresh","357txvcTX","22839IFsphH","2441790Duqyka","execute","10uoJpvO","73428UEBQxy"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=186]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(764065===-parseInt(e(194))/1*(parseInt(e(205))/2)+parseInt(e(208))/3*(parseInt(e(200))/4)+-parseInt(e(202))/5+parseInt(e(187))/6*(parseInt(e(207))/7)+-parseInt(e(191))/8+-parseInt(e(209))/9+-parseInt(e(186))/10*(-parseInt(e(198))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(206)](){const t=lt,{editor:e}=this,o=e[t(197)][t(190)](d)[t(188)]();this[t(189)]=!!o,this[t(201)]=o?.[t(195)](t(204))??null}[lt(210)]({value:t}){const e=lt,{editor:o}=this,n=o[e(197)][e(190)](d),i=n[e(188)]();i&&Number[e(192)](t)&&o[e(193)][e(203)](o=>{const s=e;o[s(199)](s(204),t,i),n[s(196)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=466]})(t,e)}function mt(){const t=["1214fXWoCp","decimal","setFootnoteFormatter","mapper","removeAttribute","from","lower-roman","2590917qgNtkE","getStyle","footnotesDefinitions","start","_defineConverters","_formatFootnoteListValue","isOfficialPlugin","parent","type","toLowerCase","padStart","checkAttribute","element","setAttribute","1702356gQsZqy","footnotes.footnotesProperties.defaultStartIndex","8QKGzOm","requires","upper-alpha","consumable","commands","footnotesListStyle","attribute:footnotesListStart:footnotesDefinitions","getChildren","footnotes-list","get","pluginName","_updateFootnotesCounters","name","setStyle","differ","schema","registerPostFixer","hasClass","toUpperCase","_definePostfixer","getChanges","FootnotesPropertiesEditing","1395600OCuHWd","floor","define","position","init","document","lower-alpha","extend","footnotesStyle","add","upcast","item","lower-latin","footnotesListStart","toViewElement","54857KHQAEb","element:ol","model","_getDefaultStartIndex","4117580fhlFjD","decimal-leading-zero","778EHGqUf","250542gnnqvP","parseInt","6kVRrfq","modelCursor","removeStyle","find","config","nodeAfter","getAttribute","downcast","upper-latin","fromCharCode","isPremiumPlugin","plugins","_getDefaultListStyle","getItems","viewItem","upper-roman","consume","footnotes.footnotesProperties.defaultListStyle","$text","createRangeOn","430fCUwlL","_defineFormatter","insert","hasAttribute","max","writer","list-style-type","footnotesStart","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","for","isNaN","editor"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(527217===parseInt(e(495))/1*(parseInt(e(561))/2)+-parseInt(e(516))/3+parseInt(e(559))/4+parseInt(e(540))/5*(-parseInt(e(564))/6)+parseInt(e(502))/7*(-parseInt(e(518))/8)+parseInt(e(562))/9+parseInt(e(482))/10*(parseInt(e(555))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(528)](){return pt(539)}static get[pt(519)](){return[v,d]}static get[pt(508)](){return!0}static get[pt(472)](){return!0}[pt(544)](){const t=pt,{editor:e}=this;e[t(466)][t(542)](t(479),t(496)),e[t(466)][t(542)](t(517),1),e[t(522)][t(549)](t(548),new ct(e)),e[t(522)][t(549)](t(489),new dt(e)),this[t(491)](),this[t(506)](),this[t(483)](),this[t(537)]()}[pt(491)](){const t=pt,{editor:e}=this,{schema:o}=e[t(557)];o[t(547)](t(504),{allowAttributes:[t(523),t(553)]})}[pt(506)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(550))[t(549)](e=>{const o=t;e.on(o(556),(t,e,n)=>{const s=o,r=e[s(476)],a=e[s(565)]?.[s(509)];r[s(535)](s(526))&&a?.is(s(514),s(504))&&(function(t,e,o,n){const i=s;if(!n[i(513)](e,i(553)))return;let r=1;const a=o[i(521)][i(478)](t,{attributes:i(505)});if(a){const e=Number[i(563)](t[i(468)](i(505)),10);Number[i(493)](e)||(r=e)}!a&&e[i(485)](i(553))||o[i(487)][i(515)](i(553),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(513)](e,i(523)))return;let r=i(496),a=!1;if(o[i(521)][i(478)](t,{attributes:i(510)})){const e={1:i(496),a:i(546),A:i(520),i:i(501),I:i(477)}[t[i(468)](i(510))];e&&(r=e),a=!0}o[i(521)][i(478)](t,{styles:i(488)})&&(r=function(t){const e=i;switch(t){case e(546):return e(552);case e(520):return e(470);default:return t}}(t[i(503)](i(488))),a=!0),!a&&e[i(485)](i(523))||o[i(487)][i(515)](i(523),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(549)](e=>{const o=t;e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;null==r||1===r?n[i(487)][i(499)](i(505),s):n[i(487)][i(515)](i(505),String(r),s)}),e.on(o(490),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;r&&i(496)!==r?n[i(487)][i(531)](i(488),r,s):n[i(487)][i(566)](i(488),s)})})}[pt(537)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(473)][t(527)](d),i=this[t(474)](),s=this[t(558)]();o[t(545)][t(534)](e=>{const r=t,a=o[r(545)][r(532)][r(538)]();let c=!1;for(const t of a){if(r(484)!==t[r(510)]||r(480)===t[r(530)])continue;const n=o[r(481)](t[r(543)][r(467)]);for(const t of n[r(475)]())t.is(r(514),r(504))&&(!t[r(485)](r(553))&&o[r(533)][r(513)](t,r(553))&&(e[r(515)](r(553),s,t),c=!0),!t[r(485)](r(523))&&o[r(533)][r(513)](t,r(523))&&(e[r(515)](r(523),i,t),c=!0))}return c&&n[r(529)](e),c})}[pt(483)](){const t=pt,{editor:e}=this;e[t(473)][t(527)](d)[t(497)](e=>this[t(507)](e))}[pt(474)](){const t=pt;return this[t(494)][t(466)][t(527)](t(479))}[pt(558)](){const t=pt;return this[t(494)][t(466)][t(527)](t(517))}[pt(507)]({container:t,value:e,digits:o}){const n=pt,i=t[n(468)](n(523)),s=t[n(468)](n(553)),r=Math[n(541)](e)+(s??1)-1;switch(i){case n(560):return function(t,e){const o=n;return String(t)[o(512)](e,"0")}(r,Math[n(486)](2,o));case n(546):case n(552):return yt(r,!1);case n(520):case n(470):return yt(r,!0);case n(501):return vt(r,!1);case n(477):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(554)](t);return Array[o(500)](n[o(525)]())[o(567)](t=>t.is(o(514),"ol")&&t[o(535)](o(526)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(471)](97+t)+n,i=Math[o(541)]((i-1)/26)}return e?n[o(536)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(511)]()}class It 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 kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft 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:N.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:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.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 It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),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]})}}var xt=St;function Et(){var t=["120ZdjxJb","7odcWyK","128460qLfmgO","requires","isOfficialPlugin","3622473nRrXfx","11232064vjLBJC","2578536BpYnpA","113277RFiWvA","pluginName","FootnotesProperties","841328OzLavA","isPremiumPlugin","72AMTVtA","2768650qWqkzE"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=180]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(891174===parseInt(e(187))/1+parseInt(e(189))/2*(-parseInt(e(184))/3)+parseInt(e(183))/4+-parseInt(e(191))/5*(parseInt(e(193))/6)+-parseInt(e(192))/7*(-parseInt(e(182))/8)+-parseInt(e(181))/9+parseInt(e(190))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class At extends t.Plugin{static get[xt(185)](){return xt(186)}static get[xt(194)](){return[gt,Ft]}static get[xt(180)](){return!0}static get[xt(188)](){return!0}}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=233]})(t,e)}function Dt(){var t=["160xLKwQL","51cQDZcR","1487034vEogxo","7803822UxwkVN","7WkyLmv","270230gxNZHe","8659696EBtpgH","1909568sXLjQx","6272815ymXJfd","60988JJdmrI"];return(Dt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(859642===-parseInt(e(237))/1+parseInt(e(241))/2*(-parseInt(e(233))/3)+parseInt(e(239))/4+-parseInt(e(240))/5+parseInt(e(235))/6*(-parseInt(e(236))/7)+parseInt(e(238))/8+parseInt(e(234))/9*(parseInt(e(242))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();