@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251224.0 → 0.0.0-nightly-next-20251224.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-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:f,updater:h,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}}}},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:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,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=l();return(a=function(t,e){return o[t-=248]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(465883===-parseInt(e(288))/1+parseInt(e(254))/2*(-parseInt(e(266))/3)+-parseInt(e(251))/4+parseInt(e(255))/5+-parseInt(e(263))/6*(parseInt(e(275))/7)+parseInt(e(273))/8*(parseInt(e(253))/9)+parseInt(e(285))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(268)];[r(261)];[r(283)];[r(279)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(261)]=e[o(282)],this[o(283)]=e[o(286)]}[r(276)](){const t=r;this[t(279)][t(250)]()}[r(258)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(260)===i[e(277)]&&e(252)!==i[e(267)]&&i[e(274)][e(259)]){const t=this[e(268)][e(284)](i[e(274)][e(259)]);for(const o of t[e(256)]()){if(!o.is(e(270),this[e(261)]))continue;const t=this[e(283)](o);n[e(278)](t)||n[e(265)](t,[]),n[e(291)](t)[e(287)](o)}}if(e(264)===i[e(277)]&&i[e(267)]===this[e(261)]){const t=this[e(283)]({getAttribute:t=>i[e(271)][e(291)](t)});o[e(272)](t)}}for(const[t,n]of this[e(279)])e(257)===n[e(249)][e(281)]&&o[e(272)](t);for(const t of o)this[e(279)][e(280)](t);for(const[t,o]of n)this[e(279)][e(265)](t,o[o[e(269)]-1]);const i=new Set;for(const[t,s]of n)o[e(278)](t)&&(i[e(272)](s[0]),s[e(269)]>1?n[e(265)](t,s[e(290)](1)):n[e(280)](t),o[e(280)](t));return{removed:Array[e(289)](o),inserted:Array[e(289)](n[e(248)]())[e(262)](),moved:Array[e(289)](i)}}}function l(){const t=["3211648xLSuML","$text","585063dFoVYM","4PlcGCq","1262905FGnXbF","getItems","$graveyard","getChanges","nodeAfter","insert","_elementName","flat","54WibpqR","remove","set","766227byjaYS","name","_model","length","element","attributes","add","56POtLRu","position","222355manGNz","reset","type","has","_trackedElements","delete","rootName","elementName","_getElementKey","createRangeOn","14046110VNmGVT","getElementKey","push","46743bYCUmv","from","slice","get","values","root","clear"];return(l=function(){return t})()}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=458]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(555705===-parseInt(e(491))/1+parseInt(e(519))/2*(parseInt(e(465))/3)+parseInt(e(497))/4+-parseInt(e(463))/5*(-parseInt(e(489))/6)+parseInt(e(518))/7*(parseInt(e(461))/8)+parseInt(e(528))/9+parseInt(e(477))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(510)]=[];[u(488)]=null;[u(537)]=null;[u(532)];[u(495)];[u(515)];static get[u(551)](){return u(462)}static get[u(508)](){return!0}static get[u(525)](){return!0}constructor(t){const e=u;super(t),this[e(532)]=new c(this[e(558)][e(548)],{elementName:e(544),getElementKey:()=>e(483)}),this[e(495)]=new c(this[e(558)][e(548)],{elementName:e(468),getElementKey:t=>t[e(545)](e(505))}),this[e(515)]=new c(this[e(558)][e(548)],{elementName:e(504),getElementKey:t=>t[e(545)](e(505))})}[u(556)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(536)][t(509)](e=>{const n=t,i=o[n(536)][n(542)][n(469)]();let s=!1;return this[n(496)](e,i)&&(s=!0),this[n(555)](e,i)&&(s=!0),this[n(543)](e,i)&&(s=!0),this[n(517)](e)&&(s=!0),this[n(527)](e)&&(s=!0),this[n(481)](e)&&(s=!0),s}),this[t(538)](o[t(536)],t(524),()=>{const e=t;o[e(482)]({isUndoable:!1},t=>{this[e(471)](t)})},{priority:t(458)}),this[t(538)](n,t(503),()=>{const e=t;this[e(510)]=[],this[e(532)][e(520)](),this[e(495)][e(520)](),this[e(515)][e(520)]()},{priority:t(539)})}[u(478)](){return this[u(488)]}[u(479)](t){const e=u;return this[e(510)][e(530)](e=>e.id===t)||null}[u(541)](){const t=u;return Array[t(460)](this[t(510)])}[u(485)](){return this[u(537)]}[u(534)](t){this[u(537)]=t}[u(516)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(510)][o(523)];i++)this[o(464)](t,i)&&(n=!0);return n}[u(493)](t,e){const o=u,n=t[o(513)](o(544),{});return t[o(529)](n,e),this[o(488)]=n,n}[u(471)](t){const e=u;if(!this[e(510)][e(523)]||this[e(488)])return;const o=this[e(510)][0][e(494)][e(484)],n=this[e(493)](t,o);for(const o of this[e(510)])o[e(473)][e(531)]||t[e(459)](o[e(473)],n,e(522));this[e(516)](t)}[u(496)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(532)][o(469)](e);if(r[o(523)]&&(this[o(488)]=r[0]),i[o(523)])if(i[o(523)]>1||this[o(488)]&&i[o(552)](t=>t!==this[o(488)])){const e=t[o(513)](o(544),{}),s=[];this[o(488)]&&s[o(506)](this[o(488)]),s[o(506)](...i),t[o(459)](e,s[0],o(507));for(const n of s)t[o(547)](t[o(486)](n),t[o(526)](e,o(522))),t[o(502)](n);this[o(488)]=e,this[o(516)](t),n=!0}else this[o(488)]=i[0];if(s[o(523)]&&o(511)===this[o(488)]?.[o(484)][o(467)]){for(const e of this[o(510)])t[o(502)](e[o(494)]),n=!0;this[o(510)]=[],this[o(488)]=null}return n}[u(555)](t,e){const o=u;let n=!1;const i=this[o(558)][o(535)][o(490)](o(487)),{inserted:s,moved:r}=this[o(515)][o(469)](e);for(const e of[...r,...s]){const s=e[o(545)](o(505)),r=this[o(479)](s);r&&(r[o(473)]=e),p(t,i,e)&&(n=!0)}return n}[u(543)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(495)][o(469)](e);for(const e of i)this[o(472)](t,e)&&(n=!0);for(const e of s)this[o(475)](t,e)&&(n=!0);for(const e of r)this[o(557)](t,e)&&(n=!0);return n}[u(527)](t){const e=u;if(!this[e(488)])return!1;let o=!1;if(this[e(488)][e(521)]!==this[e(510)][e(523)]){const n=[];for(const t of this[e(488)][e(476)]()){const i=t[e(545)](e(505));this[e(479)](i)||(n[e(549)](t),o=!0)}for(const o of n)t[e(502)](o)}const n=new Set,i=[];for(const t of this[e(488)][e(476)]()){const s=t[e(545)](e(505));n[e(470)](s)?(i[e(549)](t),o=!0):n[e(554)](s)}for(const o of i)t[e(502)](o);return this[e(488)][e(521)]||(t[e(502)](this[e(488)]),this[e(488)]=null,o=!0),o}[u(475)](t,e){const o=u;if(this[o(510)][o(530)](t=>t[o(494)]===e))return!1;let n=!1;const i=e[o(545)](o(505)),s=this[o(510)][o(546)](t=>t.id===i);-1!==s&&(t[o(502)](this[o(510)][s][o(494)]),this[o(510)][o(500)](s,1),n=!0);let r=this[o(488)]?function(t,e){const n=o;for(const o of t[n(476)]())if(o[n(545)](n(505))===e)return o;return null}(this[o(488)],i):null;r||(r=t[o(513)](o(504),{footnoteId:i}),this[o(488)]&&(t[o(459)](r,this[o(488)],o(522)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(558)][o(548)],this[o(510)],e);this[o(510)][o(500)](c,0,a);let l=c;return-1!==s&&(l=Math[o(492)](c,s)),this[o(516)](t,l)&&(n=!0),n}[u(472)](t,e){const o=u,n=this[o(510)][o(546)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(510)][n];return o(511)!==s[o(473)][o(484)][o(467)]&&(t[o(502)](s[o(473)]),i=!0),this[o(510)][o(500)](n,1),this[o(516)](t,n)&&(i=!0),i}[u(557)](t,e){const o=u,n=e[o(545)](o(505)),i=this[o(510)][o(546)](t=>t.id===n),s=this[o(510)][i];let r=!1;s[o(494)]=e,this[o(510)][o(500)](i,1);const a=h(this[o(558)][o(548)],this[o(510)],e);return this[o(510)][o(500)](a,0,s),this[o(516)](t,Math[o(492)](i,a))&&(r=!0),r}[u(464)](t,e){const o=u;if(!this[o(488)])return!1;const n=this[o(510)][e];let i;return i=this[o(537)]?this[o(537)]({footnote:n,container:this[o(488)],digits:String(this[o(510)][o(523)])[o(523)],value:e+1}):String(e+1),n[o(494)][o(545)](o(499))!=i&&(t[o(498)](o(499),i,n[o(494)]),!0)}[u(481)](t){const e=u;if(!this[e(488)]||this[e(510)][e(523)]<2)return!1;if(function(t,o){const n=e;if(t[n(523)]!==o[n(523)])return!1;for(let e=0;e<t[n(523)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(510)][e(480)](t=>t.id),Array[e(460)](this[e(488)][e(476)]())[e(480)](t=>t[e(545)](e(505)))))return!1;let o=!1;for(let n=0;n<this[e(510)][e(523)];n++){const i=this[e(510)][n],s=t[e(466)](i[e(473)]),r=t[e(526)](this[e(488)],n);s[e(501)](r)||(t[e(547)](t[e(553)](i[e(473)]),r),o=!0)}return o}[u(517)](t){const e=u;if(!this[e(510)][e(523)])return!1;const{model:o}=this[e(558)];let n=!1;for(let i=0;i<this[e(510)][e(523)]-1;i++){const s=this[e(510)][i],r=this[e(510)][i+1],a=o[e(466)](s[e(494)]),c=o[e(466)](r[e(494)]);e(512)===a[e(540)](c)&&(this[e(557)](t,s[e(494)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(521)])return!1;const i=n(e?533:514);return t[n(459)](t[n(513)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(523)])return 0;const i=t[n(466)](o);for(let o=0;o<e[n(523)];o++){const s=e[o],r=t[n(466)](s[n(494)]);if(n(507)===i[n(540)](r))return o}const s=o[n(484)];let r=-1;for(let t=e[n(523)]-1;t>=0;t--)if(e[t][n(494)][n(484)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(536)][n(550)](),c=a[n(474)](s[n(467)]),l=a[c+1];if(l)for(let t=0;t<e[n(523)];t++)if(e[t][n(494)][n(484)][n(467)]===l)return t;return e[n(523)]}function m(){const t=["after","createElement","footnoteInlineContent","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesReferencesHaveProperOrder","654409csUJJQ","168EcOUne","reset","childCount","end","length","change:data","isPremiumPlugin","createPositionAt","_handleFootnotesDefinitionsObjectSync","825651nuFugk","append","find","parent","_footnoteDefsContainerTracker","paragraph","setFootnoteFormatter","config","document","_footnoteFormatter","listenTo","high","compareWith","getFootnotes","differ","_handleFootnoteReferencesChanges","footnotesDefinitions","getAttribute","findIndex","move","model","unshift","getRootNames","pluginName","some","createRangeOn","add","_handleFootnoteDefinitionsChanges","init","_handleMovedFootnoteReference","editor","low","insert","from","8PmrAWK","FootnotesTracker","125wXeuOO","_updateFootnoteRefCounter","4056VhyzQT","createPositionBefore","rootName","footnoteRef","getChanges","has","_ensureFootnotesDefinitionsContainerExists","_handleRemoveFootnoteReferenceById","definition","indexOf","_handleInsertedFootnoteReference","getChildren","2878440JbrllV","getFootnotesDefinitionsObjectElement","getFootnote","map","_sortFootnoteDefinitions","enqueueChange","singleton","root","getFootnotesFormatter","createRangeIn","footnotes.multiBlock","_footnotesDefinitions","148188TIAWIc","get","975524FAOOeG","min","_insertEmptyFootnotesDefinitionsContainer","reference","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges","1308564YdaQdu","setAttribute","footnoteCounter","splice","isEqual","remove","set","footnoteDefinition","footnoteId","push","before","isOfficialPlugin","registerPostFixer","_footnotes","$graveyard"];return(m=function(){return t})()}function g(t,e){const o=y();return(g=function(t,e){return o[t-=134]})(t,e)}const w=g;function y(){const t=["44474vCkWMg","7mMpqQk","FootnotesEditing","isEnabled","execute","609027lUQhcm","4535628KjSJCd","isObject","footnoteId","editor","3276040FJCZlx","refresh","length","string","isBlock","getItems","createElement","insert-footnote-command-executed-with-invalid-id","8258958LgynEp","change","3490195rwoOWE","20IFvsSO","test","plugins","_moveSelectionToFootnoteDefinition","footnoteRef","end","get","model","45gBKWPv","document","640576dTiDNp","getFirstRange","_getPositionToInsertFootnote","insertObject","selection","checkChild"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(380992===-parseInt(e(150))/1+parseInt(e(145))/2*(-parseInt(e(137))/3)+-parseInt(e(139))/4+-parseInt(e(165))/5+parseInt(e(151))/6+-parseInt(e(146))/7*(parseInt(e(155))/8)+-parseInt(e(163))/9*(-parseInt(e(166))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(156)](){const t=w,e=this[t(154)][t(136)][t(138)][t(143)],o=this[t(141)](e);this[t(148)]=!!o}[w(149)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(138)],r=this[e(141)](s);if(!r)return;const a=o[e(168)][e(135)](e(147)),c=t?.[e(153)]??(0,i.uid)();!function(t){const o=e;return o(158)==typeof t&&t[o(157)]>0&&!/\s/[o(167)](t)&&!/^\d/[o(167)](t)}(c)?(0,i.logWarning)(e(162)):(n[e(164)](t=>{const o=e,i=t[o(161)](o(170),{footnoteId:c});n[o(142)](i,r,null)}),a[e(169)](c))}[w(141)](t){const e=w,{model:o}=this[e(154)],{schema:n}=o,i=t[e(140)]();for(const t of i[e(160)]())if(n[e(159)](t)||n[e(152)](t))return null;const s=i[e(134)];return n[e(144)](s,e(170))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766534400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>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=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=105]})(t,e)}function _(){const t=["footnoteInlineContent","toData","editing","add","append","_handleCopyFootnotesDefinitions","drop","end","setData","3984990gRXTRE","footnoteRef","getRanges","1044670QigsuO","footnoteDefinition","1588419NaZcUr","toModel","_defineClipboardIntegration","hasAttribute","23365856GxUaUP","flatMap","toView","createElement","stringify","_insertEmptyFootnotesDefinitionsContainer","htmlProcessor","getFootnote","document","definition","4659jSKOFH","194KBKXfb","from","FootnotesClipboard","getData","4063980ResqWG","clipboardInput","parse","data","application/ckeditor5-footnotes","element","setAttribute","root","includes","footnoteId","requires","getFootnotes","contentInsertion","dataTransfer","find","insert","remove","editor","create","get","footnotes.multiBlock","listenTo","content","config","change","reduce","getChildren","isOfficialPlugin","pluginName","entries","outputTransformation","method","getFootnotesDefinitionsObjectElement","cloneElement","isPremiumPlugin","getSelectedBlocks","4997532aFZEeh","sourceEditorId","getAttribute","length","footnotesDefinitions","init","_handlePasteFootnotesDefinitions","keys","selection","push","string","getFirstRange","createRangeIn"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(771373===parseInt(e(106))/1+parseInt(e(123))/2*(parseInt(e(122))/3)+parseInt(e(163))/4+parseInt(e(185))/5+parseInt(e(127))/6+-parseInt(e(108))/7+-parseInt(e(112))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[T(155)](){return T(125)}static get[T(137)](){return[v,P.ClipboardPipeline]}static get[T(154)](){return!0}static get[T(161)](){return!0}[T(168)](){this[T(110)]()}[T(110)](){const t=T;this[t(181)](),this[t(169)]()}[T(181)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(146)](P.ClipboardPipeline),s=o[t(146)](d);this[t(148)](i,t(157),(o,i)=>{const r=t,a=V(n[r(175)](i[r(149)]));if(!a[r(166)])return;const c=s[r(138)](),l=a[r(152)]((t,o)=>{const n=r,i=c[n(141)](t=>t.id===o);if(i){const o=e[n(130)][n(114)](i[n(121)],{isClipboardPipeline:!0}),s=e[n(130)][n(118)][n(177)](o);t[i.id]=s}return t},Object[r(145)](null));i[r(140)][r(184)](r(131),JSON[r(116)](l))})}[T(169)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(178)],r=n[t(146)](P.ClipboardPipeline),a=n[t(146)](d),c=e[t(150)][t(146)](t(147));let l=null;this[t(148)](s[t(120)],t(128),(e,o)=>{const n=t,i=o[n(140)][n(126)](n(131));l=i?JSON[n(129)](i):null}),this[t(148)](r,t(139),(n,s)=>{const r=t,u=s[r(164)]===this[r(144)].id;u&&r(182)===s[r(158)]||o[r(151)](t=>{const n=r;let f=a[n(159)]();const d=!!f&&Array[n(124)](o[n(120)][n(171)][n(162)]())[n(135)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(132),e(186)))return!0;return!1}(o[n(175)](s[n(149)]))&&(l=function(t,e){const o=n,i=D(t,e);if(!i)return null;const s=Object[o(145)](null);for(const e of i[o(153)]())e.is(o(132),o(107))&&e[o(111)](o(136))&&(s[e[o(165)](o(136))]=t[o(160)](e,!0));return Object[o(170)](s)[o(166)]?s:null}(t,s[n(149)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(175)](e))n.is(o(132),o(167))&&i[o(172)](n);for(const e of i)t[o(143)](e)}(t,s[n(149)]),!l)return;const{selection:p}=o[n(120)],h=p[n(174)]()[n(134)];f&&!d||(f=D(t,s[n(149)]),f||=a[n(117)](t,h));const m=Array[n(124)](p[n(105)]())[n(113)](V),g=function(t,e,o){const s=n,r=Object[s(145)](null);for(const{item:n}of t[s(175)](e))if(n.is(s(132),s(186))){const e=n[s(165)](s(136));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(133)](s(136),r[e],n)}return r}(t,s[n(149)],t=>{const e=n;return!u||!!a[e(119)](t)&&!m[e(135)](t)});for(const[o,i]of Object[n(156)](l)){const s=g[o]||o;let r;if(n(173)!=typeof i)r=i,s!==o&&t[n(133)](n(136),s,r);else{r=t[n(115)](n(107),{footnoteId:s});const o=e[n(130)][n(118)][n(114)](i);let a;if(c)a=e[n(130)][n(109)](o,r);else{a=t[n(115)](n(176));const i=e[n(130)][n(109)](o,a);t[n(142)](i,a)}t[n(180)](a,r)}t[n(142)](r,f,n(183))}l=null})})}}function D(t,e){const o=T;for(const{item:n}of t[o(175)](e))if(n.is(o(132),o(167)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(132),e(186))&&o[e(179)](n[e(165)](e(136)));return Array[e(124)](o)}var O=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),W=o(102),B=o.n(W),U=o(123),z=o.n(U),H=o(741),J=o.n(H),G=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(G.A,X);G.A&&G.A.locals&&G.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",Q(t,O.ButtonView)),e.add("menuBar:insertFootnote",Q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=361]})(t,e)}var Y=Z;function $(){var t=["2590654CaQFUt","266667eLJjIu","requires","44586mAzniC","149747SbLlbz","245bWvIWA","pluginName","472SrbvkB","isOfficialPlugin","isPremiumPlugin","136gVjOap","1452sfcWCh","99804klIygI","10HfdctF","8uyLguW","18726lJMUSx","875450CzWdeV","Footnotes"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(298106===-parseInt(e(375))/1+parseInt(e(366))/2*(-parseInt(e(371))/3)+-parseInt(e(370))/4*(parseInt(e(372))/5)+parseInt(e(368))/6*(-parseInt(e(361))/7)+-parseInt(e(363))/8*(-parseInt(e(377))/9)+-parseInt(e(369))/10*(-parseInt(e(374))/11)+parseInt(e(367))/12*(parseInt(e(378))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(362)](){return Y(373)}static get[Y(376)](){return[v,L,q]}static get[Y(364)](){return!0}static get[Y(365)](){return!0}}function et(t,e){const o=ot();return(et=function(t,e){return o[t-=349]})(t,e)}function ot(){const t=["4722LnTESz","198pasZNY","upper-latin","lower-roman","28VPyxQu","decimal","4036IGufpB","3oaQmFd","lower-alpha","decimal-leading-zero","561wJJxLz","5287491QmMQDk","upper-alpha","477528EFiWVB","9867370JcWTAD","lower-latin","1680944mtmRFK","4255oVBwii","418426mTxjOA","upper-roman"];return(ot=function(){return t})()}const nt=et;!function(t){const e=et,o=t();for(;;)try{if(505839===parseInt(e(358))/1*(-parseInt(e(349))/2)+-parseInt(e(361))/3*(-parseInt(e(357))/4)+-parseInt(e(368))/5*(-parseInt(e(351))/6)+parseInt(e(355))/7*(-parseInt(e(367))/8)+-parseInt(e(362))/9+parseInt(e(365))/10+parseInt(e(352))/11*(parseInt(e(364))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[nt(356),nt(360),nt(366),nt(353),nt(359),nt(363),nt(354),nt(350)];function st(t,e){const o=at();return(st=function(t,e){return o[t-=195]})(t,e)}const rt=st;function at(){const t=["_updateFootnotesCounters","1275364xLReon","value","get","change","setAttribute","7538AsEZee","getAttribute","6000048UFHIOY","2785288yfFXZx","72560HepsiQ","3tPHsCb","199397kxaUZB","getFootnotesDefinitionsObjectElement","4270tIGiEV","1370nvZslv","execute","8136UXHJir","40kUuvom","isEnabled","plugins","footnotesListStyle","includes","model","refresh"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(458813===-parseInt(e(203))/1*(-parseInt(e(215))/2)+-parseInt(e(208))/3*(parseInt(e(198))/4)+-parseInt(e(207))/5+parseInt(e(214))/6*(-parseInt(e(211))/7)+-parseInt(e(206))/8+-parseInt(e(205))/9+-parseInt(e(212))/10*(-parseInt(e(209))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(196)](){const t=rt,{editor:e}=this,o=e[t(217)][t(200)](d)[t(210)]();this[t(216)]=!!o,this[t(199)]=o?.[t(204)](t(218))??null}[rt(213)]({value:t}){const e=rt,{editor:o}=this,n=o[e(217)][e(200)](d),i=n[e(210)]();i&&it[e(219)](t)&&o[e(195)][e(201)](o=>{const s=e;o[s(202)](s(218),t,i),n[s(197)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(976346===parseInt(e(450))/1+parseInt(e(445))/2+-parseInt(e(451))/3*(parseInt(e(436))/4)+parseInt(e(439))/5*(parseInt(e(448))/6)+-parseInt(e(435))/7*(parseInt(e(454))/8)+parseInt(e(453))/9+parseInt(e(444))/10*(-parseInt(e(440))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(437)](){const t=lt,{editor:e}=this,o=e[t(432)][t(452)](d)[t(434)]();this[t(449)]=!!o,this[t(430)]=o?.[t(433)](t(441))??null}[lt(442)]({value:t}){const e=lt,{editor:o}=this,n=o[e(432)][e(452)](d),i=n[e(434)]();i&&Number[e(438)](t)&&o[e(446)][e(443)](o=>{const s=e;o[s(431)](s(441),t,i),n[s(447)](o)})}}function dt(){const t=["execute","change","20XWXPAw","1841312gFufcf","model","_updateFootnotesCounters","18rBmqwx","isEnabled","1590855gWqxdM","6873hoAzWv","get","15103026ZoiLDU","448IJbsTV","value","setAttribute","plugins","getAttribute","getFootnotesDefinitionsObjectElement","7924MIMxPF","1264YChGEP","refresh","isInteger","1015785vCWjhP","16694711VbGeJg","footnotesListStart"];return(dt=function(){return t})()}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=109]})(t,e)}function mt(){const t=["attribute:footnotesListStart:footnotesDefinitions","max","mapper","footnotes.footnotesProperties.defaultListStyle","start","toViewElement","hasAttribute","position","isOfficialPlugin","modelCursor","_updateFootnotesCounters","1150755oDukGe","from","footnotes-list","item","get","1921878coxGEZ","toLowerCase","setFootnoteFormatter","decimal-leading-zero","_defineFormatter","footnotesStyle","21GexRer","attribute:footnotesListStyle:footnotesDefinitions","schema","consumable","$text","getStyle","init","find","upper-roman","6ufUEIx","type","upper-latin","upcast","model","lower-alpha","34721HvPSvY","getItems","footnotesDefinitions","plugins","toUpperCase","decimal","viewItem","floor","writer","editor","526933HioxsV","isNaN","parseInt","nodeAfter","for","_definePostfixer","192uxmpyy","parent","name","footnotes.footnotesProperties.defaultStartIndex","differ","removeAttribute","createRangeOn","document","setAttribute","2764100RvRxKv","lower-latin","element:ol","add","commands","_formatFootnoteListValue","element","getChanges","extend","footnotesListStart","setStyle","400388OPNgIJ","lower-roman","pluginName","8CQYpFX","downcast","registerPostFixer","getChildren","fromCharCode","footnotesStart","_defineSchema","define","requires","12OXMLHK","footnotesListStyle","_getDefaultStartIndex","checkAttribute","removeStyle","list-style-type","insert","FootnotesPropertiesEditing","padStart","isPremiumPlugin","166512hZOWIk","consume","config","_getDefaultListStyle","hasClass","upper-alpha","_defineConverters","getAttribute"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(245262===parseInt(e(192))/1*(parseInt(e(128))/2)+-parseInt(e(186))/3*(parseInt(e(125))/4)+parseInt(e(166))/5*(-parseInt(e(137))/6)+parseInt(e(177))/7*(-parseInt(e(147))/8)+-parseInt(e(171))/9+parseInt(e(114))/10+-parseInt(e(202))/11*(-parseInt(e(208))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(127)](){return pt(144)}static get[pt(136)](){return[v,d]}static get[pt(163)](){return!0}static get[pt(146)](){return!0}[pt(183)](){const t=pt,{editor:e}=this;e[t(149)][t(135)](t(158),t(197)),e[t(149)][t(135)](t(211),1),e[t(118)][t(117)](t(176),new ct(e)),e[t(118)][t(117)](t(133),new ft(e)),this[t(134)](),this[t(153)](),this[t(175)](),this[t(207)]()}[pt(134)](){const t=pt,{editor:e}=this,{schema:o}=e[t(190)];o[t(122)](t(194),{allowAttributes:[t(138),t(123)]})}[pt(153)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(206)](t(189))[t(117)](e=>{const o=t;e.on(o(116),(t,e,n)=>{const s=o,r=e[s(198)],a=e[s(164)]?.[s(209)];r[s(151)](s(168))&&a?.is(s(120),s(194))&&(function(t,e,o,n){const i=s;if(!n[i(140)](e,i(123)))return;let r=1;const a=o[i(180)][i(148)](t,{attributes:i(159)});if(a){const e=Number[i(204)](t[i(154)](i(159)),10);Number[i(203)](e)||(r=e)}!a&&e[i(161)](i(123))||o[i(200)][i(113)](i(123),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(140)](e,i(138)))return;let r=i(197),a=!1;if(o[i(180)][i(148)](t,{attributes:i(187)})){const e={1:i(197),a:i(191),A:i(152),i:i(126),I:i(185)}[t[i(154)](i(187))];e&&(r=e),a=!0}o[i(180)][i(148)](t,{styles:i(142)})&&(r=function(t){const e=i;switch(t){case e(191):return e(115);case e(152):return e(188);default:return t}}(t[i(182)](i(142))),a=!0),!a&&e[i(161)](i(138))||o[i(200)][i(113)](i(138),r,e)}(r,a,n,i))})}),o[t(206)](t(129))[t(117)](e=>{const o=t;e.on(o(155),(t,e,n)=>{const i=o;if(!n[i(180)][i(148)](e[i(169)],t[i(210)]))return;const s=wt(e[i(169)],n[i(157)]),{attributeNewValue:r}=e;null==r||1===r?n[i(200)][i(110)](i(159),s):n[i(200)][i(113)](i(159),String(r),s)}),e.on(o(178),(t,e,n)=>{const i=o;if(!n[i(180)][i(148)](e[i(169)],t[i(210)]))return;const s=wt(e[i(169)],n[i(157)]),{attributeNewValue:r}=e;r&&i(197)!==r?n[i(200)][i(124)](i(142),r,s):n[i(200)][i(141)](i(142),s)})})}[pt(207)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(195)][t(170)](d),i=this[t(150)](),s=this[t(139)]();o[t(112)][t(130)](e=>{const r=t,a=o[r(112)][r(109)][r(121)]();let c=!1;for(const t of a){if(r(143)!==t[r(187)]||r(181)===t[r(210)])continue;const n=o[r(111)](t[r(162)][r(205)]);for(const t of n[r(193)]())t.is(r(120),r(194))&&(!t[r(161)](r(123))&&o[r(179)][r(140)](t,r(123))&&(e[r(113)](r(123),s,t),c=!0),!t[r(161)](r(138))&&o[r(179)][r(140)](t,r(138))&&(e[r(113)](r(138),i,t),c=!0))}return c&&n[r(165)](e),c})}[pt(175)](){const t=pt,{editor:e}=this;e[t(195)][t(170)](d)[t(173)](e=>this[t(119)](e))}[pt(150)](){const t=pt;return this[t(201)][t(149)][t(170)](t(158))}[pt(139)](){const t=pt;return this[t(201)][t(149)][t(170)](t(211))}[pt(119)]({container:t,value:e,digits:o}){const n=pt,i=t[n(154)](n(138)),s=t[n(154)](n(123)),r=Math[n(199)](e)+(s??1)-1;switch(i){case n(174):return function(t,e){const o=n;return String(t)[o(145)](e,"0")}(r,Math[n(156)](2,o));case n(191):case n(115):return yt(r,!1);case n(152):case n(188):return yt(r,!0);case n(126):return vt(r,!1);case n(185):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(160)](t);return Array[o(167)](n[o(131)]())[o(184)](t=>t.is(o(120),"ol")&&t[o(151)](o(168)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(132)](97+t)+n,i=Math[o(199)]((i-1)/26)}return e?n[o(196)]():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(172)]()}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(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=B().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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]})}}function xt(t,e){var o=Pt();return(xt=function(t,e){return o[t-=437]})(t,e)}var Et=xt;!function(t){for(var e=xt,o=t();;)try{if(199678===-parseInt(e(444))/1*(parseInt(e(442))/2)+parseInt(e(449))/3+-parseInt(e(439))/4+-parseInt(e(441))/5+-parseInt(e(443))/6+-parseInt(e(448))/7*(-parseInt(e(438))/8)+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt);class St extends t.Plugin{static get[Et(446)](){return Et(447)}static get[Et(437)](){return[gt,Ft]}static get[Et(440)](){return!0}static get[Et(445)](){return!0}}function Pt(){var t=["1601832FWVWui","4JanYWO","isPremiumPlugin","pluginName","FootnotesProperties","2569973lToDGu","481374EMpPMt","3911859jfFPHH","requires","8bhRWLm","889704VYtnOE","isOfficialPlugin","263840TcbpUq","110202OCXgox"];return(Pt=function(){return t})()}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=217]})(t,e)}function At(){var t=["84oqRQse","11348eQOYET","10614260GcXgsj","653612cIVkTV","2ZJLvMU","53502QgKsvM","770SvxEFB","1592376lAebHh","4471434XXwBjB","2695284XjJDUS"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(535153===-parseInt(e(221))/1+parseInt(e(222))/2*(-parseInt(e(217))/3)+-parseInt(e(219))/4*(-parseInt(e(224))/5)+parseInt(e(223))/6*(-parseInt(e(218))/7)+parseInt(e(225))/8+parseInt(e(226))/9+parseInt(e(220))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,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);function r(t,e){const o=a();return(r=function(t,e){return o[t-=159]})(t,e)}function a(){const t=["$text","slice","clear","length","7595240OoNVxG","6488314ELYztC","flat","get","453165aIRtUV","name","getItems","getChanges","from","getElementKey","insert","nodeAfter","2792fNyiZb","element","has","set","1617767hdjoVc","remove","_elementName","delete","type","add","4509zmVhRp","$graveyard","push","root","_model","elementName","position","114BSbttP","5183802wLBgIl","attributes","2851738VBqhRM","reset","_trackedElements","values","createRangeOn","_getElementKey","rootName"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(960766===-parseInt(e(190))/1+parseInt(e(163))/2+parseInt(e(161))/3+parseInt(e(174))/4+parseInt(e(178))/5*(-parseInt(e(160))/6)+-parseInt(e(175))/7+-parseInt(e(186))/8*(-parseInt(e(196))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(200)];[c(192)];[c(168)];[c(165)]=new Map;constructor(t,e){const o=c;this[o(200)]=t,this[o(192)]=e[o(201)],this[o(168)]=e[o(183)]}[c(164)](){const t=c;this[t(165)][t(172)]()}[c(181)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(184)===i[e(194)]&&e(170)!==i[e(179)]&&i[e(159)][e(185)]){const t=this[e(200)][e(167)](i[e(159)][e(185)]);for(const o of t[e(180)]()){if(!o.is(e(187),this[e(192)]))continue;const t=this[e(168)](o);n[e(188)](t)||n[e(189)](t,[]),n[e(177)](t)[e(198)](o)}}if(e(191)===i[e(194)]&&i[e(179)]===this[e(192)]){const t=this[e(168)]({getAttribute:t=>i[e(162)][e(177)](t)});o[e(195)](t)}}for(const[t,n]of this[e(165)])e(197)===n[e(199)][e(169)]&&o[e(195)](t);for(const t of o)this[e(165)][e(193)](t);for(const[t,o]of n)this[e(165)][e(189)](t,o[o[e(173)]-1]);const i=new Set;for(const[t,s]of n)o[e(188)](t)&&(i[e(195)](s[0]),s[e(173)]>1?n[e(189)](t,s[e(171)](1)):n[e(193)](t),o[e(193)](t));return{removed:Array[e(182)](o),inserted:Array[e(182)](n[e(166)]())[e(176)](),moved:Array[e(182)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=474]})(t,e)}function d(){const t=["_updateFootnoteRefCounter","getFootnotesFormatter","footnoteRef","after","6tdZsPR","some","createPositionBefore","registerPostFixer","2958048pTBlyd","_footnoteRefsTracker","insert","parent","createRangeIn","document","has","11fsgenj","footnoteInlineContent","isOfficialPlugin","createPositionAt","editor","_footnotesDefinitions","findIndex","getFootnote","_sortFootnoteDefinitions","singleton","_handleFootnoteReferencesChanges","set","high","setAttribute","footnotesDefinitions","footnoteDefinition","_ensureFootnotesDefinitionsContainerExists","append","getFootnotes","52978ehWGxf","_updateFootnotesCounters","change:data","rootName","splice","min","_handleFootnoteDefinitionsChanges","setFootnoteFormatter","_insertEmptyFootnotesDefinitionsContainer","1920984hpAmsc","_handleInsertedFootnoteReference","_footnoteDefsTracker","$graveyard","enqueueChange","isPremiumPlugin","getChildren","3265857EyWaqh","init","map","differ","config","_footnoteFormatter","reset","5fyxMLP","1197301LPalRh","footnotes.multiBlock","_handleMovedFootnoteReference","getRootNames","before","length","indexOf","FootnotesTracker","_footnotes","createRangeOn","low","getFootnotesDefinitionsObjectElement","find","childCount","compareWith","definition","getAttribute","unshift","footnoteId","model","root","listenTo","end","move","from","_footnoteDefsContainerTracker","7298340mWWrzV","push","reference","_ensureFootnotesReferencesHaveProperOrder","getChanges","get","pluginName","remove","footnoteCounter","paragraph","905184qaWETw","isEqual","add","_handleFootnotesDefinitionsObjectSync","createElement","_handleRemoveFootnoteReferenceById","_handleFootnotesDefinitionsObjectChanges"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(444286===-parseInt(e(574))/1*(parseInt(e(492))/2)+-parseInt(e(552))/3+-parseInt(e(567))/4*(-parseInt(e(515))/5)+-parseInt(e(563))/6*(-parseInt(e(516))/7)+-parseInt(e(501))/8+-parseInt(e(508))/9+parseInt(e(542))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(524)]=[];[f(478)]=null;[f(513)]=null;[f(541)];[f(568)];[f(503)];static get[f(548)](){return f(523)}static get[f(475)](){return!0}static get[f(506)](){return!0}constructor(t){const e=f;super(t),this[e(541)]=new l(this[e(477)][e(535)],{elementName:e(487),getElementKey:()=>e(482)}),this[e(568)]=new l(this[e(477)][e(535)],{elementName:e(561),getElementKey:t=>t[e(532)](e(534))}),this[e(503)]=new l(this[e(477)][e(535)],{elementName:e(488),getElementKey:t=>t[e(532)](e(534))})}[f(509)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(572)][t(566)](e=>{const n=t,i=o[n(572)][n(511)][n(546)]();let s=!1;return this[n(558)](e,i)&&(s=!0),this[n(498)](e,i)&&(s=!0),this[n(483)](e,i)&&(s=!0),this[n(545)](e)&&(s=!0),this[n(555)](e)&&(s=!0),this[n(481)](e)&&(s=!0),s}),this[t(537)](o[t(572)],t(494),()=>{const e=t;o[e(505)]({isUndoable:!1},t=>{this[e(489)](t)})},{priority:t(526)}),this[t(537)](n,t(484),()=>{const e=t;this[e(524)]=[],this[e(541)][e(514)](),this[e(568)][e(514)](),this[e(503)][e(514)]()},{priority:t(485)})}[f(527)](){return this[f(478)]}[f(480)](t){const e=f;return this[e(524)][e(528)](e=>e.id===t)||null}[f(491)](){const t=f;return Array[t(540)](this[t(524)])}[f(560)](){return this[f(513)]}[f(499)](t){this[f(513)]=t}[f(493)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(524)][o(521)];i++)this[o(559)](t,i)&&(n=!0);return n}[f(500)](t,e){const o=f,n=t[o(556)](o(487),{});return t[o(490)](n,e),this[o(478)]=n,n}[f(489)](t){const e=f;if(!this[e(524)][e(521)]||this[e(478)])return;const o=this[e(524)][0][e(544)][e(536)],n=this[e(500)](t,o);for(const o of this[e(524)])o[e(531)][e(570)]||t[e(569)](o[e(531)],n,e(538));this[e(493)](t)}[f(558)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(541)][o(546)](e);if(r[o(521)]&&(this[o(478)]=r[0]),i[o(521)])if(i[o(521)]>1||this[o(478)]&&i[o(564)](t=>t!==this[o(478)])){const e=t[o(556)](o(487),{}),s=[];this[o(478)]&&s[o(543)](this[o(478)]),s[o(543)](...i),t[o(569)](e,s[0],o(520));for(const n of s)t[o(539)](t[o(571)](n),t[o(476)](e,o(538))),t[o(549)](n);this[o(478)]=e,this[o(493)](t),n=!0}else this[o(478)]=i[0];if(s[o(521)]&&o(504)===this[o(478)]?.[o(536)][o(495)]){for(const e of this[o(524)])t[o(549)](e[o(544)]),n=!0;this[o(524)]=[],this[o(478)]=null}return n}[f(498)](t,e){const o=f;let n=!1;const i=this[o(477)][o(512)][o(547)](o(517)),{inserted:s,moved:r}=this[o(503)][o(546)](e);for(const e of[...r,...s]){const s=e[o(532)](o(534)),r=this[o(480)](s);r&&(r[o(531)]=e),p(t,i,e)&&(n=!0)}return n}[f(483)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(568)][o(546)](e);for(const e of i)this[o(557)](t,e)&&(n=!0);for(const e of s)this[o(502)](t,e)&&(n=!0);for(const e of r)this[o(518)](t,e)&&(n=!0);return n}[f(555)](t){const e=f;if(!this[e(478)])return!1;let o=!1;if(this[e(478)][e(529)]!==this[e(524)][e(521)]){const n=[];for(const t of this[e(478)][e(507)]()){const i=t[e(532)](e(534));this[e(480)](i)||(n[e(533)](t),o=!0)}for(const o of n)t[e(549)](o)}const n=new Set,i=[];for(const t of this[e(478)][e(507)]()){const s=t[e(532)](e(534));n[e(573)](s)?(i[e(533)](t),o=!0):n[e(554)](s)}for(const o of i)t[e(549)](o);return this[e(478)][e(529)]||(t[e(549)](this[e(478)]),this[e(478)]=null,o=!0),o}[f(502)](t,e){const o=f;if(this[o(524)][o(528)](t=>t[o(544)]===e))return!1;let n=!1;const i=e[o(532)](o(534)),s=this[o(524)][o(479)](t=>t.id===i);-1!==s&&(t[o(549)](this[o(524)][s][o(544)]),this[o(524)][o(496)](s,1),n=!0);let r=this[o(478)]?function(t,e){const n=o;for(const o of t[n(507)]())if(o[n(532)](n(534))===e)return o;return null}(this[o(478)],i):null;r||(r=t[o(556)](o(488),{footnoteId:i}),this[o(478)]&&(t[o(569)](r,this[o(478)],o(538)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(477)][o(535)],this[o(524)],e);this[o(524)][o(496)](c,0,a);let l=c;return-1!==s&&(l=Math[o(497)](c,s)),this[o(493)](t,l)&&(n=!0),n}[f(557)](t,e){const o=f,n=this[o(524)][o(479)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(524)][n];return o(504)!==s[o(531)][o(536)][o(495)]&&(t[o(549)](s[o(531)]),i=!0),this[o(524)][o(496)](n,1),this[o(493)](t,n)&&(i=!0),i}[f(518)](t,e){const o=f,n=e[o(532)](o(534)),i=this[o(524)][o(479)](t=>t.id===n),s=this[o(524)][i];let r=!1;s[o(544)]=e,this[o(524)][o(496)](i,1);const a=m(this[o(477)][o(535)],this[o(524)],e);return this[o(524)][o(496)](a,0,s),this[o(493)](t,Math[o(497)](i,a))&&(r=!0),r}[f(559)](t,e){const o=f;if(!this[o(478)])return!1;const n=this[o(524)][e];let i;return i=this[o(513)]?this[o(513)]({footnote:n,container:this[o(478)],digits:String(this[o(524)][o(521)])[o(521)],value:e+1}):String(e+1),n[o(544)][o(532)](o(550))!=i&&(t[o(486)](o(550),i,n[o(544)]),!0)}[f(481)](t){const e=f;if(!this[e(478)]||this[e(524)][e(521)]<2)return!1;if(function(t,o){const n=e;if(t[n(521)]!==o[n(521)])return!1;for(let e=0;e<t[n(521)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(524)][e(510)](t=>t.id),Array[e(540)](this[e(478)][e(507)]())[e(510)](t=>t[e(532)](e(534)))))return!1;let o=!1;for(let n=0;n<this[e(524)][e(521)];n++){const i=this[e(524)][n],s=t[e(565)](i[e(531)]),r=t[e(476)](this[e(478)],n);s[e(553)](r)||(t[e(539)](t[e(525)](i[e(531)]),r),o=!0)}return o}[f(545)](t){const e=f;if(!this[e(524)][e(521)])return!1;const{model:o}=this[e(477)];let n=!1;for(let i=0;i<this[e(524)][e(521)]-1;i++){const s=this[e(524)][i],r=this[e(524)][i+1],a=o[e(565)](s[e(544)]),c=o[e(565)](r[e(544)]);e(562)===a[e(530)](c)&&(this[e(518)](t,s[e(544)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(529)])return!1;const i=n(e?551:474);return t[n(569)](t[n(556)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(521)])return 0;const i=t[n(565)](o);for(let o=0;o<e[n(521)];o++){const s=e[o],r=t[n(565)](s[n(544)]);if(n(520)===i[n(530)](r))return o}const s=o[n(536)];let r=-1;for(let t=e[n(521)]-1;t>=0;t--)if(e[t][n(544)][n(536)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(572)][n(519)](),c=a[n(522)](s[n(495)]),l=a[c+1];if(l)for(let t=0;t<e[n(521)];t++)if(e[t][n(544)][n(536)][n(495)]===l)return t;return e[n(521)]}const g=y;function w(){const t=["isBlock","string","model","506218eOpovd","change","1528464SIrFyW","FootnotesEditing","footnoteRef","editor","test","2987172XQcAss","getItems","selection","checkChild","_getPositionToInsertFootnote","execute","isEnabled","isObject","refresh","footnoteId","21QAgBda","insertObject","end","insert-footnote-command-executed-with-invalid-id","873iMLqUB","get","document","createElement","19496RQlIYk","18NwnmlR","137918UUHSji","3068210zsTLgi","_moveSelectionToFootnoteDefinition","plugins","length","getFirstRange","587147EegVvT","350giMOOZ"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=425]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(407190===parseInt(e(451))/1+parseInt(e(440))/2*(-parseInt(e(430))/3)+parseInt(e(458))/4+parseInt(e(441))/5+-parseInt(e(439))/6*(-parseInt(e(453))/7)+-parseInt(e(438))/8*(-parseInt(e(434))/9)+-parseInt(e(447))/10*(parseInt(e(446))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(428)](){const t=g,e=this[t(456)][t(450)][t(436)][t(460)],o=this[t(462)](e);this[t(426)]=!!o}[g(425)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(436)],r=this[e(462)](s);if(!r)return;const a=o[e(443)][e(435)](e(454)),c=t?.[e(429)]??(0,i.uid)();!function(t){const o=e;return o(449)==typeof t&&t[o(444)]>0&&!/\s/[o(457)](t)&&!/^\d/[o(457)](t)}(c)?(0,i.logWarning)(e(433)):(n[e(452)](t=>{const o=e,i=t[o(437)](o(455),{footnoteId:c});n[o(431)](i,r,null)}),a[e(442)](c))}[g(462)](t){const e=g,{model:o}=this[e(456)],{schema:n}=o,i=t[e(445)]();for(const t of i[e(459)]())if(n[e(448)](t)||n[e(427)](t))return null;const s=i[e(432)];return n[e(461)](s,e(455))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766534400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({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:v()}),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 v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=A;function A(t,e){const o=D();return(A=function(t,e){return o[t-=478]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(685022===parseInt(e(494))/1+-parseInt(e(520))/2*(parseInt(e(481))/3)+parseInt(e(493))/4+-parseInt(e(489))/5*(parseInt(e(537))/6)+-parseInt(e(521))/7+parseInt(e(511))/8*(-parseInt(e(540))/9)+parseInt(e(549))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[S(503)](){return S(509)}static get[S(507)](){return[I,P.ClipboardPipeline]}static get[S(497)](){return!0}static get[S(529)](){return!0}[S(517)](){this[S(495)]()}[S(495)](){const t=S;this[t(532)](),this[t(548)]()}[S(532)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(491)](P.ClipboardPipeline),s=o[t(491)](h);this[t(544)](i,t(487),(o,i)=>{const r=t,a=O(n[r(560)](i[r(559)]));if(!a[r(527)])return;const c=s[r(555)](),l=a[r(541)]((t,o)=>{const n=r,i=c[n(515)](t=>t.id===o);if(i){const o=e[n(557)][n(531)](i[n(508)],{isClipboardPipeline:!0}),s=e[n(557)][n(490)][n(488)](o);t[i.id]=s}return t},Object[r(545)](null));i[r(523)][r(506)](r(547),JSON[r(486)](l))})}[S(548)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(499)],r=n[t(491)](P.ClipboardPipeline),a=n[t(491)](h),c=e[t(539)][t(491)](t(536));let l=null;this[t(544)](s[t(525)],t(538),(e,o)=>{const n=t,i=o[n(523)][n(500)](n(547));l=i?JSON[n(505)](i):null}),this[t(544)](r,t(482),(n,s)=>{const r=t,f=s[r(553)]===this[r(518)].id;f&&r(504)===s[r(542)]||o[r(502)](t=>{const n=r;let u=a[n(480)]();const d=!!u&&Array[n(513)](o[n(525)][n(556)][n(514)]())[n(546)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(554),e(496)))return!0;return!1}(o[n(560)](s[n(559)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(545)](null);for(const e of i[o(501)]())e.is(o(554),o(510))&&e[o(543)](o(498))&&(s[e[o(479)](o(498))]=t[o(524)](e,!0));return Object[o(533)](s)[o(527)]?s:null}(t,s[n(559)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(560)](e))n.is(o(554),o(528))&&i[o(561)](n);for(const e of i)t[o(552)](e)}(t,s[n(559)]),!l)return;const{selection:h}=o[n(525)],p=h[n(483)]()[n(550)];u&&!d||(u=L(t,s[n(559)]),u||=a[n(485)](t,p));const m=Array[n(513)](h[n(492)]())[n(530)](O),g=function(t,e,o){const s=n,r=Object[s(545)](null);for(const{item:n}of t[s(560)](e))if(n.is(s(554),s(496))){const e=n[s(479)](s(498));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(534)](s(498),r[e],n)}return r}(t,s[n(559)],t=>{const e=n;return!f||!!a[e(535)](t)&&!m[e(546)](t)});for(const[o,i]of Object[n(551)](l)){const s=g[o]||o;let r;if(n(484)!=typeof i)r=i,s!==o&&t[n(534)](n(498),s,r);else{r=t[n(519)](n(510),{footnoteId:s});const o=e[n(557)][n(490)][n(531)](i);let a;if(c)a=e[n(557)][n(512)](o,r);else{a=t[n(519)](n(558));const i=e[n(557)][n(512)](o,a);t[n(516)](i,a)}t[n(526)](a,r)}t[n(516)](r,u,n(522))}l=null})})}}function L(t,e){const o=S;for(const{item:n}of t[o(560)](e))if(n.is(o(554),o(528)))return n;return null}function D(){const t=["getRanges","3034236GfdjGy","1292172Mocqfr","_defineClipboardIntegration","footnoteRef","isOfficialPlugin","footnoteId","editing","getData","getChildren","change","pluginName","drop","parse","setData","requires","definition","FootnotesClipboard","footnoteDefinition","8iJvElO","toModel","from","getSelectedBlocks","find","insert","init","editor","createElement","24GiwbuT","5176563bxUMTE","end","dataTransfer","cloneElement","document","append","length","footnotesDefinitions","isPremiumPlugin","flatMap","toView","_handleCopyFootnotesDefinitions","keys","setAttribute","getFootnote","footnotes.multiBlock","12XonKcT","clipboardInput","config","1939059nwIVBR","reduce","method","hasAttribute","listenTo","create","includes","application/ckeditor5-footnotes","_handlePasteFootnotesDefinitions","9232950JLDpST","root","entries","remove","sourceEditorId","element","getFootnotes","selection","data","footnoteInlineContent","content","createRangeIn","push","add","getAttribute","getFootnotesDefinitionsObjectElement","25107nLEKBS","contentInsertion","getFirstRange","string","_insertEmptyFootnotesDefinitionsContainer","stringify","outputTransformation","toData","3084040RNaYWT","htmlProcessor","get"];return(D=function(){return t})()}function O(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(554),e(496))&&o[e(478)](n[e(479)](e(498)));return Array[e(513)](o)}var V=o(311),R=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),W=o(123),z=o.n(W),q=o(741),H=o.n(q),Y=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=U().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();K()(Y.A,G);Y.A&&Y.A.locals&&Y.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",X(t,V.ButtonView)),e.add("menuBar:insertFootnote",X(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var $=J;function J(t,e){var o=Z();return(J=function(t,e){return o[t-=383]})(t,e)}function Z(){var t=["requires","64AXGEFT","1467981RuNswE","122382ORFcWO","26cAlVCS","7aTsnPY","20WlyOse","1283hgScHm","3812jQRScw","isPremiumPlugin","2075562VrPokh","pluginName","91nuauhw","10343960nInCJB","6013272tfYLnt","isOfficialPlugin","1340MKPHOR","Footnotes"];return(Z=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(999729===parseInt(e(396))/1*(parseInt(e(393))/2)+parseInt(e(391))/3+-parseInt(e(397))/4*(-parseInt(e(387))/5)+parseInt(e(392))/6*(parseInt(e(394))/7)+parseInt(e(390))/8*(parseInt(e(399))/9)+parseInt(e(395))/10*(parseInt(e(384))/11)+parseInt(e(385))/12*(-parseInt(e(383))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[$(400)](){return $(388)}static get[$(389)](){return[I,_,Q]}static get[$(386)](){return!0}static get[$(398)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(547360===parseInt(e(429))/1*(parseInt(e(420))/2)+-parseInt(e(414))/3*(-parseInt(e(421))/4)+-parseInt(e(416))/5*(-parseInt(e(417))/6)+parseInt(e(428))/7*(-parseInt(e(415))/8)+parseInt(e(422))/9*(parseInt(e(413))/10)+parseInt(e(423))/11+parseInt(e(412))/12*(-parseInt(e(432))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(418),et(424),et(430),et(426),et(425),et(431),et(419),et(427)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=412]})(t,e)}function it(){const t=["13836ksIsxY","decimal","lower-roman","185582mRcmUv","3705084HUmmew","4005fsEYGE","3652583tObpoP","decimal-leading-zero","lower-alpha","upper-latin","upper-roman","14uCYTTZ","3zbWePH","lower-latin","upper-alpha","312ccEjhq","973332TRymYb","16970AkhzOw","3ddrJmK","2687248KDfayL","1895NxgsFz"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=400]})(t,e)}function at(){const t=["isEnabled","2333190zVUcNe","1182759fvPHlh","refresh","3153689XMawAS","change","2263608YxiUph","2uIJLxg","value","getAttribute","56BnctTq","459390pqTBNg","plugins","execute","model","get","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","includes","setAttribute","footnotesListStyle","311944iInUWA","9690PqUeEw"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(243126===parseInt(e(421))/1*(parseInt(e(402))/2)+-parseInt(e(416))/3+parseInt(e(401))/4*(parseInt(e(413))/5)+parseInt(e(415))/6+-parseInt(e(418))/7+-parseInt(e(412))/8+parseInt(e(420))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(417)](){const t=st,{editor:e}=this,o=e[t(403)][t(406)](h)[t(408)]();this[t(414)]=!!o,this[t(422)]=o?.[t(400)](t(411))??null}[st(404)]({value:t}){const e=st,{editor:o}=this,n=o[e(403)][e(406)](h),i=n[e(408)]();i&&ot[e(409)](t)&&o[e(405)][e(419)](o=>{const s=e;o[s(410)](s(411),t,i),n[s(407)](o)})}}const lt=ut;function ft(){const t=["_updateFootnotesCounters","footnotesListStart","8888238JQSQYn","1539440ZTzUGr","2473632DDzwPN","value","789824WsyiLY","execute","9BpKAPO","refresh","model","687958FzioQR","setAttribute","isEnabled","change","410516tfRKOi","plugins","isInteger","1115qDdUIa","getAttribute","31156KzFqra","getFootnotesDefinitionsObjectElement","get","14FnVnpv"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=373]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(955543===parseInt(e(394))/1+parseInt(e(390))/2*(parseInt(e(387))/3)+-parseInt(e(375))/4*(parseInt(e(373))/5)+parseInt(e(381))/6+parseInt(e(378))/7*(parseInt(e(385))/8)+-parseInt(e(383))/9+-parseInt(e(382))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(388)](){const t=lt,{editor:e}=this,o=e[t(395)][t(377)](h)[t(376)]();this[t(392)]=!!o,this[t(384)]=o?.[t(374)](t(380))??null}[lt(386)]({value:t}){const e=lt,{editor:o}=this,n=o[e(395)][e(377)](h),i=n[e(376)]();i&&Number[e(396)](t)&&o[e(389)][e(393)](o=>{const s=e;o[s(391)](s(380),t,i),n[s(379)](o)})}}const ht=gt;function pt(){const t=["$text","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","type","fromCharCode","schema","mapper","isOfficialPlugin","_formatFootnoteListValue","from","removeAttribute","lower-roman","4482744NMIiUj","_getDefaultStartIndex","element:ol","toLowerCase","name","upper-roman","start","_updateFootnotesCounters","model","footnotesListStyle","editor","consumable","footnotesDefinitions","toViewElement","padStart","63UDAHoH","downcast","writer","registerPostFixer","item","find","hasAttribute","init","664pELlsO","footnotesListStart","parseInt","upper-latin","6073352iPRbpu","list-style-type","7OKsQfS","document","603flkMcd","requires","get","footnotes.footnotesProperties.defaultListStyle","upper-alpha","1620700HFQEAU","modelCursor","getChanges","attribute:footnotesListStyle:footnotesDefinitions","pluginName","setFootnoteFormatter","getItems","toUpperCase","lower-latin","element","for","getChildren","viewItem","450576PplLXs","footnotesStyle","define","differ","footnotesStart","273680DJNrFT","FootnotesPropertiesEditing","commands","checkAttribute","_defineConverters","upcast","attribute:footnotesListStart:footnotesDefinitions","max","floor","removeStyle","_getDefaultListStyle","parent","_definePostfixer","extend","_defineSchema","isNaN","setAttribute","4833150WusLhY","hasClass","position","add","plugins","setStyle","consume","decimal-leading-zero","getAttribute","insert","getStyle","config","_defineFormatter","footnotes-list","nodeAfter","isPremiumPlugin","createRangeOn","decimal"];return(pt=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(625918===-parseInt(e(172))/1+parseInt(e(146))/2*(-parseInt(e(138))/3)+-parseInt(e(123))/4+parseInt(e(159))/5+parseInt(e(194))/6+parseInt(e(152))/7*(-parseInt(e(150))/8)+-parseInt(e(154))/9*(-parseInt(e(177))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(163)](){return ht(178)}static get[ht(155)](){return[I,h]}static get[ht(118)](){return!0}static get[ht(209)](){return!0}[ht(145)](){const t=ht,{editor:e}=this;e[t(205)][t(174)](t(157),t(211)),e[t(205)][t(174)](t(214),1),e[t(179)][t(197)](t(173),new ct(e)),e[t(179)][t(197)](t(176),new dt(e)),this[t(191)](),this[t(181)](),this[t(206)](),this[t(189)]()}[ht(191)](){const t=ht,{editor:e}=this,{schema:o}=e[t(131)];o[t(190)](t(135),{allowAttributes:[t(132),t(147)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(169)](t(182))[t(197)](e=>{const o=t;e.on(o(125),(t,e,n)=>{const s=o,r=e[s(171)],a=e[s(160)]?.[s(188)];r[s(195)](s(207))&&a?.is(s(168),s(135))&&(function(t,e,o,n){const i=s;if(!n[i(180)](e,i(147)))return;let r=1;const a=o[i(134)][i(200)](t,{attributes:i(129)});if(a){const e=Number[i(148)](t[i(202)](i(129)),10);Number[i(192)](e)||(r=e)}!a&&e[i(144)](i(147))||o[i(140)][i(193)](i(147),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(180)](e,i(132)))return;let r=i(211),a=!1;if(o[i(134)][i(200)](t,{attributes:i(215)})){const e={1:i(211),a:i(213),A:i(158),i:i(122),I:i(128)}[t[i(202)](i(215))];e&&(r=e),a=!0}o[i(134)][i(200)](t,{styles:i(151)})&&(r=function(t){const e=i;switch(t){case e(213):return e(167);case e(158):return e(149);default:return t}}(t[i(204)](i(151))),a=!0),!a&&e[i(144)](i(132))||o[i(140)][i(193)](i(132),r,e)}(r,a,n,i))})}),o[t(169)](t(139))[t(197)](e=>{const o=t;e.on(o(183),(t,e,n)=>{const i=o;if(!n[i(134)][i(200)](e[i(142)],t[i(127)]))return;const s=wt(e[i(142)],n[i(117)]),{attributeNewValue:r}=e;null==r||1===r?n[i(140)][i(121)](i(129),s):n[i(140)][i(193)](i(129),String(r),s)}),e.on(o(162),(t,e,n)=>{const i=o;if(!n[i(134)][i(200)](e[i(142)],t[i(127)]))return;const s=wt(e[i(142)],n[i(117)]),{attributeNewValue:r}=e;r&&i(211)!==r?n[i(140)][i(199)](i(151),r,s):n[i(140)][i(186)](i(151),s)})})}[ht(189)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(198)][t(156)](h),i=this[t(187)](),s=this[t(124)]();o[t(153)][t(141)](e=>{const r=t,a=o[r(153)][r(175)][r(161)]();let c=!1;for(const t of a){if(r(203)!==t[r(215)]||r(212)===t[r(127)])continue;const n=o[r(210)](t[r(196)][r(208)]);for(const t of n[r(165)]())t.is(r(168),r(135))&&(!t[r(144)](r(147))&&o[r(217)][r(180)](t,r(147))&&(e[r(193)](r(147),s,t),c=!0),!t[r(144)](r(132))&&o[r(217)][r(180)](t,r(132))&&(e[r(193)](r(132),i,t),c=!0))}return c&&n[r(130)](e),c})}[ht(206)](){const t=ht,{editor:e}=this;e[t(198)][t(156)](h)[t(164)](e=>this[t(119)](e))}[ht(187)](){const t=ht;return this[t(133)][t(205)][t(156)](t(157))}[ht(124)](){const t=ht;return this[t(133)][t(205)][t(156)](t(214))}[ht(119)]({container:t,value:e,digits:o}){const n=ht,i=t[n(202)](n(132)),s=t[n(202)](n(147)),r=Math[n(185)](e)+(s??1)-1;switch(i){case n(201):return function(t,e){const o=n;return String(t)[o(137)](e,"0")}(r,Math[n(184)](2,o));case n(213):case n(167):return yt(r,!1);case n(158):case n(149):return yt(r,!0);case n(122):return It(r,!1);case n(128):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=pt();return(gt=function(t,e){return o[t-=117]})(t,e)}function wt(t,e){const o=ht,n=e[o(136)](t);return Array[o(120)](n[o(170)]())[o(143)](t=>t.is(o(168),"ol")&&t[o(195)](o(207)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(216)](97+t)+n,i=Math[o(185)]((i-1)/26)}return e?n[o(166)]():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 It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(126)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.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,V.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 V.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 V.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 V.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 V.LabeledFieldView(this.locale,V.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(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();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[V.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,V.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:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.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 V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),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}=V.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 Et=xt;function xt(t,e){var o=Pt();return(xt=function(t,e){return o[t-=112]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(422455===parseInt(e(127))/1+-parseInt(e(125))/2*(-parseInt(e(112))/3)+parseInt(e(121))/4*(parseInt(e(119))/5)+-parseInt(e(114))/6+-parseInt(e(117))/7*(-parseInt(e(118))/8)+parseInt(e(120))/9*(-parseInt(e(124))/10)+parseInt(e(122))/11*(-parseInt(e(128))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt);class Tt extends t.Plugin{static get[Et(123)](){return Et(126)}static get[Et(116)](){return[mt,Ft]}static get[Et(113)](){return!0}static get[Et(115)](){return!0}}function Pt(){var t=["pluginName","40TKLaTi","125098GYPyNK","FootnotesProperties","121635MtGYCq","43572EkHncZ","12CmlPqx","isOfficialPlugin","4157640oayGoX","isPremiumPlugin","requires","147ifLvbO","267112tqqNrl","21830gUemIr","1563228SwIUIv","692IKnxkI","55ArNDqf"];return(Pt=function(){return t})()}function St(t,e){var o=At();return(St=function(t,e){return o[t-=378]})(t,e)}function At(){var t=["873nXbujP","8665KKxbGD","37134522rtahbk","10161568jwuisS","762ffwCBk","1498428fUAssR","11148mYsiQT","2450672TNWQEs","1218144osEpRY"];return(At=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(647674===-parseInt(e(384))/1+-parseInt(e(381))/2+parseInt(e(385))/3*(-parseInt(e(382))/4)+-parseInt(e(386))/5*(-parseInt(e(380))/6)+parseInt(e(383))/7+-parseInt(e(379))/8+parseInt(e(378))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();