@ckeditor/ckeditor5-footnotes 47.5.0-alpha.7 → 47.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={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:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>f,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["9KzZIja","$graveyard","rootName","length","70344sIvDap","insert","attributes","35WljHva","element","flat","3139930pyyBKU","push","483YsvomN","_getElementKey","elementName","set","reset","root","position","remove","nodeAfter","_elementName","from","type","98FAzOld","getItems","getChanges","734340NGUVtL","_model","add","createRangeOn","get","clear","getElementKey","slice","delete","values","9514mrGMkZ","has","4289307FRpDwO","$text","_trackedElements","174144GugLuZ","name","1668942DsiCEI"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(309365===parseInt(e(137))/1*(parseInt(e(124))/2)+parseInt(e(144))/3+parseInt(e(142))/4*(-parseInt(e(107))/5)+parseInt(e(127))/6+parseInt(e(112))/7*(-parseInt(e(104))/8)+-parseInt(e(145))/9*(parseInt(e(110))/10)+parseInt(e(139))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(128)];[r(121)];[r(113)];[r(141)]=new Map;constructor(t,e){const o=r;this[o(128)]=t,this[o(121)]=e[o(114)],this[o(113)]=e[o(133)]}[r(116)](){const t=r;this[t(141)][t(132)]()}[r(126)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(105)===i[e(123)]&&e(140)!==i[e(143)]&&i[e(118)][e(120)]){const t=this[e(128)][e(130)](i[e(118)][e(120)]);for(const o of t[e(125)]()){if(!o.is(e(108),this[e(121)]))continue;const t=this[e(113)](o);n[e(138)](t)||n[e(115)](t,[]),n[e(131)](t)[e(111)](o)}}if(e(119)===i[e(123)]&&i[e(143)]===this[e(121)]){const t=this[e(113)]({getAttribute:t=>i[e(106)][e(131)](t)});o[e(129)](t)}}for(const[t,n]of this[e(141)])e(101)===n[e(117)][e(102)]&&o[e(129)](t);for(const t of o)this[e(141)][e(135)](t);for(const[t,o]of n)this[e(141)][e(115)](t,o[o[e(103)]-1]);const i=new Set;for(const[t,s]of n)o[e(138)](t)&&(i[e(129)](s[0]),s[e(103)]>1?n[e(115)](t,s[e(134)](1)):n[e(135)](t),o[e(135)](t));return{removed:Array[e(122)](o),inserted:Array[e(122)](n[e(136)]())[e(109)](),moved:Array[e(122)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(107063===-parseInt(e(510))/1+-parseInt(e(479))/2+parseInt(e(422))/3+-parseInt(e(434))/4+-parseInt(e(420))/5+-parseInt(e(455))/6*(parseInt(e(456))/7)+parseInt(e(463))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class f extends t.Plugin{[u(494)]=[];[u(452)]=null;[u(441)]=null;[u(438)];[u(427)];[u(416)];static get[u(489)](){return u(453)}static get[u(435)](){return!0}static get[u(462)](){return!0}constructor(t){const e=u;super(t),this[e(438)]=new l(this[e(461)][e(486)],{elementName:e(447),getElementKey:()=>e(451)}),this[e(427)]=new l(this[e(461)][e(486)],{elementName:e(425),getElementKey:t=>t[e(473)](e(436))}),this[e(416)]=new l(this[e(461)][e(486)],{elementName:e(454),getElementKey:t=>t[e(473)](e(436))})}[u(465)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(444)][t(466)](e=>{const n=t,i=o[n(444)][n(500)][n(482)]();let s=!1;return this[n(492)](e,i)&&(s=!0),this[n(472)](e,i)&&(s=!0),this[n(457)](e,i)&&(s=!0),this[n(418)](e)&&(s=!0),this[n(499)](e)&&(s=!0),this[n(478)](e)&&(s=!0),s}),this[t(415)](o[t(444)],t(504),()=>{const e=t;o[e(469)]({isUndoable:!1},t=>{this[e(471)](t)})},{priority:t(439)}),this[t(415)](n,t(458),()=>{const e=t;this[e(494)]=[],this[e(438)][e(431)](),this[e(427)][e(431)](),this[e(416)][e(431)]()},{priority:t(496)})}[u(423)](){return this[u(452)]}[u(507)](t){const e=u;return this[e(494)][e(440)](e=>e.id===t)||null}[u(491)](){const t=u;return Array[t(421)](this[t(494)])}[u(437)](){return this[u(441)]}[u(476)](t){this[u(441)]=t}[u(432)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(494)][o(459)];i++)this[o(490)](t,i)&&(n=!0);return n}[u(419)](t,e){const o=u,n=t[o(474)](o(447),{});return t[o(483)](n,e),this[o(452)]=n,n}[u(471)](t){const e=u;if(!this[e(494)][e(459)]||this[e(452)])return;const o=this[e(494)][0][e(470)][e(428)],n=this[e(419)](t,o);for(const o of this[e(494)])o[e(446)][e(430)]||t[e(502)](o[e(446)],n,e(480));this[e(432)](t)}[u(492)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(438)][o(482)](e);if(r[o(459)]&&(this[o(452)]=r[0]),i[o(459)])if(i[o(459)]>1||this[o(452)]&&i[o(417)](t=>t!==this[o(452)])){const e=t[o(474)](o(447),{}),s=[];this[o(452)]&&s[o(508)](this[o(452)]),s[o(508)](...i),t[o(502)](e,s[0],o(509));for(const n of s)t[o(501)](t[o(424)](n),t[o(460)](e,o(480))),t[o(445)](n);this[o(452)]=e,this[o(432)](t),n=!0}else this[o(452)]=i[0];if(s[o(459)]&&o(429)===this[o(452)]?.[o(428)][o(484)]){for(const e of this[o(494)])t[o(445)](e[o(470)]),n=!0;this[o(494)]=[],this[o(452)]=null}return n}[u(472)](t,e){const o=u;let n=!1;const i=this[o(461)][o(503)][o(468)](o(464)),{inserted:s,moved:r}=this[o(416)][o(482)](e);for(const e of[...r,...s]){const s=e[o(473)](o(436)),r=this[o(507)](s);r&&(r[o(446)]=e),h(t,i,e)&&(n=!0)}return n}[u(457)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(427)][o(482)](e);for(const e of i)this[o(449)](t,e)&&(n=!0);for(const e of s)this[o(495)](t,e)&&(n=!0);for(const e of r)this[o(443)](t,e)&&(n=!0);return n}[u(499)](t){const e=u;if(!this[e(452)])return!1;let o=!1;if(this[e(452)][e(498)]!==this[e(494)][e(459)]){const n=[];for(const t of this[e(452)][e(488)]()){const i=t[e(473)](e(436));this[e(507)](i)||(n[e(485)](t),o=!0)}for(const o of n)t[e(445)](o)}const n=new Set,i=[];for(const t of this[e(452)][e(488)]()){const s=t[e(473)](e(436));n[e(487)](s)?(i[e(485)](t),o=!0):n[e(477)](s)}for(const o of i)t[e(445)](o);return this[e(452)][e(498)]||(t[e(445)](this[e(452)]),this[e(452)]=null,o=!0),o}[u(495)](t,e){const o=u;if(this[o(494)][o(440)](t=>t[o(470)]===e))return!1;let n=!1;const i=e[o(473)](o(436)),s=this[o(494)][o(493)](t=>t.id===i);-1!==s&&(t[o(445)](this[o(494)][s][o(470)]),this[o(494)][o(442)](s,1),n=!0);let r=this[o(452)]?function(t,e){const n=o;for(const o of t[n(488)]())if(o[n(473)](n(436))===e)return o;return null}(this[o(452)],i):null;r||(r=t[o(474)](o(454),{footnoteId:i}),this[o(452)]&&(t[o(502)](r,this[o(452)],o(480)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(461)][o(486)],this[o(494)],e);this[o(494)][o(442)](c,0,a);let l=c;return-1!==s&&(l=Math[o(505)](c,s)),this[o(432)](t,l)&&(n=!0),n}[u(449)](t,e){const o=u,n=this[o(494)][o(493)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(494)][n];return o(429)!==s[o(446)][o(428)][o(484)]&&(t[o(445)](s[o(446)]),i=!0),this[o(494)][o(442)](n,1),this[o(432)](t,n)&&(i=!0),i}[u(443)](t,e){const o=u,n=e[o(473)](o(436)),i=this[o(494)][o(493)](t=>t.id===n),s=this[o(494)][i];let r=!1;s[o(470)]=e,this[o(494)][o(442)](i,1);const a=m(this[o(461)][o(486)],this[o(494)],e);return this[o(494)][o(442)](a,0,s),this[o(432)](t,Math[o(505)](i,a))&&(r=!0),r}[u(490)](t,e){const o=u;if(!this[o(452)])return!1;const n=this[o(494)][e];let i;return i=this[o(441)]?this[o(441)]({footnote:n,container:this[o(452)],digits:String(this[o(494)][o(459)])[o(459)],value:e+1}):String(e+1),n[o(470)][o(473)](o(467))!=i&&(t[o(506)](o(467),i,n[o(470)]),!0)}[u(478)](t){const e=u;if(!this[e(452)]||this[e(494)][e(459)]<2)return!1;if(function(t,o){const n=e;if(t[n(459)]!==o[n(459)])return!1;for(let e=0;e<t[n(459)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(494)][e(511)](t=>t.id),Array[e(421)](this[e(452)][e(488)]())[e(511)](t=>t[e(473)](e(436)))))return!1;let o=!1;for(let n=0;n<this[e(494)][e(459)];n++){const i=this[e(494)][n],s=t[e(481)](i[e(446)]),r=t[e(460)](this[e(452)],n);s[e(426)](r)||(t[e(501)](t[e(475)](i[e(446)]),r),o=!0)}return o}[u(418)](t){const e=u;if(!this[e(494)][e(459)])return!1;const{model:o}=this[e(461)];let n=!1;for(let i=0;i<this[e(494)][e(459)]-1;i++){const s=this[e(494)][i],r=this[e(494)][i+1],a=o[e(481)](s[e(470)]),c=o[e(481)](r[e(470)]);e(497)===a[e(433)](c)&&(this[e(443)](t,s[e(470)]),i=-1,n=!0)}return n}}function d(t,e){const o=p();return(d=function(t,e){return o[t-=413]})(t,e)}function p(){const t=["getFootnote","push","before","33171gyqaLC","map","footnoteInlineContent","getRootNames","listenTo","_footnoteDefsTracker","some","_ensureFootnotesReferencesHaveProperOrder","_insertEmptyFootnotesDefinitionsContainer","1069295AMOgSY","from","285990XFKodX","getFootnotesDefinitionsObjectElement","createRangeIn","footnoteRef","isEqual","_footnoteRefsTracker","root","$graveyard","parent","reset","_updateFootnotesCounters","compareWith","617512QqOwvU","isOfficialPlugin","footnoteId","getFootnotesFormatter","_footnoteDefsContainerTracker","low","find","_footnoteFormatter","splice","_handleMovedFootnoteReference","document","remove","definition","footnotesDefinitions","paragraph","_handleRemoveFootnoteReferenceById","indexOf","singleton","_footnotesDefinitions","FootnotesTracker","footnoteDefinition","646698BAChkp","7cTzRsG","_handleFootnoteReferencesChanges","set","length","createPositionAt","editor","isPremiumPlugin","4647216obWBXW","footnotes.multiBlock","init","registerPostFixer","footnoteCounter","get","enqueueChange","reference","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","getAttribute","createElement","createRangeOn","setFootnoteFormatter","add","_sortFootnoteDefinitions","119956WIRjEt","end","createPositionBefore","getChanges","append","rootName","unshift","model","has","getChildren","pluginName","_updateFootnoteRefCounter","getFootnotes","_handleFootnotesDefinitionsObjectChanges","findIndex","_footnotes","_handleInsertedFootnoteReference","high","after","childCount","_handleFootnotesDefinitionsObjectSync","differ","move","insert","config","change:data","min","setAttribute"];return(p=function(){return t})()}function h(t,e,o){const n=u;if(o[n(498)])return!1;const i=n(e?448:413);return t[n(502)](t[n(474)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(459)])return 0;const i=t[n(481)](o);for(let o=0;o<e[n(459)];o++){const s=e[o],r=t[n(481)](s[n(470)]);if(n(509)===i[n(433)](r))return o}const s=o[n(428)];let r=-1;for(let t=e[n(459)]-1;t>=0;t--)if(e[t][n(470)][n(428)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(444)][n(414)](),c=a[n(450)](s[n(484)]),l=a[c+1];if(l)for(let t=0;t<e[n(459)];t++)if(e[t][n(470)][n(428)][n(484)]===l)return t;return e[n(459)]}const g=y;function w(){const t=["refresh","6220QqNnAH","4194UfiyxA","getFirstRange","selection","2397288khkBav","model","string","getItems","FootnotesEditing","test","49608BuPSaz","length","footnoteRef","isBlock","isObject","_moveSelectionToFootnoteDefinition","isEnabled","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","editor","get","checkChild","end","document","footnoteId","6786909JSScfF","7MOYzps","4426380zbRpYa","insertObject","change","60znDAtM","plugins","3143510uINPUb","createElement","9948504NHDJgI","execute"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=289]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(751072===parseInt(e(320))/1*(parseInt(e(303))/2)+-parseInt(e(314))/3+parseInt(e(300))/4+parseInt(e(310))/5*(-parseInt(e(311))/6)+parseInt(e(299))/7*(-parseInt(e(307))/8)+parseInt(e(298))/9+parseInt(e(305))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(309)](){const t=g,e=this[t(292)][t(315)][t(296)][t(313)],o=this[t(290)](e);this[t(289)]=!!o}[g(308)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(296)],r=this[e(290)](s);if(!r)return;const a=o[e(304)][e(293)](e(318)),c=t?.[e(297)]??(0,i.uid)();!function(t){const o=e;return o(316)==typeof t&&t[o(321)]>0&&!/\s/[o(319)](t)&&!/^\d/[o(319)](t)}(c)?(0,i.logWarning)(e(291)):(n[e(302)](t=>{const o=e,i=t[o(306)](o(322),{footnoteId:c});n[o(301)](i,r,null)}),a[e(325)](c))}[g(290)](t){const e=g,{model:o}=this[e(292)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(317)]())if(n[e(323)](t)||n[e(324)](t))return null;const s=i[e(295)];return n[e(294)](s,e(322))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770681600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).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: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 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);function D(){const t=["footnoteDefinition","1158059JVOFcI","clipboardInput","length","string","footnotesDefinitions","1916715njCYlI","includes","footnoteInlineContent","_defineClipboardIntegration","parse","getRanges","htmlProcessor","stringify","config","entries","isPremiumPlugin","FootnotesClipboard","2303PQczmW","232684imweXd","requires","dataTransfer","getChildren","_handlePasteFootnotesDefinitions","createRangeIn","selection","cloneElement","definition","application/ckeditor5-footnotes","hasAttribute","element","remove","insert","push","add","8TilLkp","method","5221620ewdKqI","2711574xbuLdr","document","root","setAttribute","footnotes.multiBlock","end","change","find","isOfficialPlugin","getData","footnoteId","footnoteRef","from","get","1180233wWDKge","getFirstRange","data","getSelectedBlocks","editor","listenTo","4fNugbg","content","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","outputTransformation","flatMap","editing","getFootnotes","sourceEditorId","createElement","getAttribute","toModel","append","reduce","create","toView","init","setData","_handleCopyFootnotesDefinitions","keys","drop","pluginName","getFootnote","contentInsertion","toData"];return(D=function(){return t})()}const T=A;function A(t,e){const o=D();return(A=function(t,e){return o[t-=110]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(357321===parseInt(e(115))/1*(-parseInt(e(155))/2)+parseInt(e(149))/3+parseInt(e(116))/4+-parseInt(e(186))/5+-parseInt(e(135))/6+-parseInt(e(181))/7*(-parseInt(e(132))/8)+parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(176)](){return T(114)}static get[T(117)](){return[I,P.ClipboardPipeline]}static get[T(143)](){return!0}static get[T(113)](){return!0}[T(171)](){this[T(189)]()}[T(189)](){const t=T;this[t(173)](),this[t(120)]()}[T(173)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(148)](P.ClipboardPipeline),s=o[t(148)](f);this[t(154)](i,t(159),(o,i)=>{const r=t,a=V(n[r(121)](i[r(156)]));if(!a[r(183)])return;const c=s[r(162)](),l=a[r(168)]((t,o)=>{const n=r,i=c[n(142)](t=>t.id===o);if(i){const o=e[n(151)][n(170)](i[n(124)],{isClipboardPipeline:!0}),s=e[n(151)][n(192)][n(179)](o);t[i.id]=s}return t},Object[r(169)](null));i[r(118)][r(172)](r(125),JSON[r(110)](l))})}[T(120)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(161)],r=n[t(148)](P.ClipboardPipeline),a=n[t(148)](f),c=e[t(111)][t(148)](t(139));let l=null;this[t(154)](s[t(136)],t(182),(e,o)=>{const n=t,i=o[n(118)][n(144)](n(125));l=i?JSON[n(190)](i):null}),this[t(154)](r,t(178),(n,s)=>{const r=t,u=s[r(163)]===this[r(153)].id;u&&r(175)===s[r(133)]||o[r(141)](t=>{const n=r;let f=a[n(157)]();const d=!!f&&Array[n(147)](o[n(136)][n(122)][n(152)]())[n(187)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(127),e(146)))return!0;return!1}(o[n(121)](s[n(156)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(169)](null);for(const e of i[o(119)]())e.is(o(127),o(180))&&e[o(126)](o(145))&&(s[e[o(165)](o(145))]=t[o(123)](e,!0));return Object[o(174)](s)[o(183)]?s:null}(t,s[n(156)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(121)](e))n.is(o(127),o(185))&&i[o(130)](n);for(const e of i)t[o(128)](e)}(t,s[n(156)]),!l)return;const{selection:p}=o[n(136)],h=p[n(150)]()[n(137)];f&&!d||(f=L(t,s[n(156)]),f||=a[n(158)](t,h));const m=Array[n(147)](p[n(191)]())[n(160)](V),g=function(t,e,o){const s=n,r=Object[s(169)](null);for(const{item:n}of t[s(121)](e))if(n.is(s(127),s(146))){const e=n[s(165)](s(145));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(138)](s(145),r[e],n)}return r}(t,s[n(156)],t=>{const e=n;return!u||!!a[e(177)](t)&&!m[e(187)](t)});for(const[o,i]of Object[n(112)](l)){const s=g[o]||o;let r;if(n(184)!=typeof i)r=i,s!==o&&t[n(138)](n(145),s,r);else{r=t[n(164)](n(180),{footnoteId:s});const o=e[n(151)][n(192)][n(170)](i);let a;if(c)a=e[n(151)][n(166)](o,r);else{a=t[n(164)](n(188));const i=e[n(151)][n(166)](o,a);t[n(129)](i,a)}t[n(167)](a,r)}t[n(129)](r,f,n(140))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(121)](e))if(n.is(o(127),o(185)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(127),e(146))&&o[e(131)](n[e(165)](e(145)));return Array[e(147)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),W=o.n(B),U=o(123),z=o.n(U),H=o(741),X=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=W().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=X();K()(q.A,G);q.A&&q.A.locals&&q.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,N.ButtonView)),e.add("menuBar:insertFootnote",Y(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=Z;function $(){var t=["requires","isPremiumPlugin","7195QiQguw","Footnotes","894GrFOga","458829tRiuqC","isOfficialPlugin","306231BJxsTG","88mSHiQu","4112vSDPsD","34767KDoksl","92822MOVSvu","4cvHXED","pluginName","7271460unIsJU"];return($=function(){return t})()}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=224]})(t,e)}!function(t){for(var e=Z,o=t();;)try{if(108747===-parseInt(e(227))/1+parseInt(e(228))/2*(-parseInt(e(238))/3)+parseInt(e(225))/4+-parseInt(e(233))/5*(parseInt(e(235))/6)+-parseInt(e(236))/7+-parseInt(e(224))/8*(parseInt(e(226))/9)+parseInt(e(230))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(229)](){return Q(234)}static get[Q(231)](){return[I,_,J]}static get[Q(237)](){return!0}static get[Q(232)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(539356===parseInt(e(138))/1*(parseInt(e(136))/2)+-parseInt(e(141))/3*(parseInt(e(147))/4)+parseInt(e(133))/5+-parseInt(e(145))/6*(parseInt(e(132))/7)+-parseInt(e(146))/8+parseInt(e(128))/9*(-parseInt(e(134))/10)+parseInt(e(130))/11*(parseInt(e(129))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(137),et(142),et(144),et(135),et(143),et(140),et(139),et(131)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=128]})(t,e)}function it(){const t=["lower-roman","upper-alpha","2676pbUaOq","decimal-leading-zero","lower-alpha","lower-latin","43338KWSADk","1319800XFWapH","4108DJSVRv","8271szBekn","708apVbYc","308649WFUfcd","upper-roman","973tchJVV","3660555JbrLmE","4110UVPOjE","upper-latin","136562CBsxGD","decimal","9YZkAPc"];return(it=function(){return t})()}const st=at;function rt(){const t=["5CodELh","1180sGTFND","get","isEnabled","plugins","refresh","footnotesListStyle","1255362xSqwEX","setAttribute","2NvoKnz","model","value","66829xSTGwF","132473nCyvUE","1012644hlNOPI","392xVmANB","getAttribute","4533003mBIadx","_updateFootnotesCounters","55777gNWIYZ","change","includes","2923820PKpBNV","execute","getFootnotesDefinitionsObjectElement"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=250]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(460352===parseInt(e(259))/1*(parseInt(e(274))/2)+-parseInt(e(272))/3+parseInt(e(262))/4*(-parseInt(e(265))/5)+parseInt(e(254))/6+-parseInt(e(252))/7*(-parseInt(e(255))/8)+-parseInt(e(257))/9+parseInt(e(266))/10*(parseInt(e(253))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(270)](){const t=st,{editor:e}=this,o=e[t(269)][t(267)](f)[t(264)]();this[t(268)]=!!o,this[t(251)]=o?.[t(256)](t(271))??null}[st(263)]({value:t}){const e=st,{editor:o}=this,n=o[e(269)][e(267)](f),i=n[e(264)]();i&&ot[e(261)](t)&&o[e(250)][e(260)](o=>{const s=e;o[s(273)](s(271),t,i),n[s(258)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=280]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(716663===-parseInt(e(290))/1+-parseInt(e(285))/2+parseInt(e(282))/3*(parseInt(e(284))/4)+-parseInt(e(294))/5*(parseInt(e(293))/6)+parseInt(e(281))/7*(-parseInt(e(289))/8)+parseInt(e(295))/9*(parseInt(e(304))/10)+-parseInt(e(287))/11*(-parseInt(e(288))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(286)](){const t=lt,{editor:e}=this,o=e[t(298)][t(297)](f)[t(292)]();this[t(283)]=!!o,this[t(300)]=o?.[t(291)](t(302))??null}[lt(305)]({value:t}){const e=lt,{editor:o}=this,n=o[e(298)][e(297)](f),i=n[e(292)]();i&&Number[e(299)](t)&&o[e(280)][e(296)](o=>{const s=e;o[s(301)](s(302),t,i),n[s(303)](o)})}}function dt(){const t=["_updateFootnotesCounters","11634430xaTqjT","execute","model","105TRZLtz","472089wHkbBV","isEnabled","4jGiFci","2186308uwXrkK","refresh","165OXXZxA","2788608VXkifC","449240YXsRWE","1049134oUXXnG","getAttribute","getFootnotesDefinitionsObjectElement","3315870yHHfig","10iZrVEh","9IhYroM","change","get","plugins","isInteger","value","setAttribute","footnotesListStart"];return(dt=function(){return t})()}const pt=mt;function ht(){const t=["document","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","init","6640cJeSYg","differ","get","list-style-type","parent","footnotesDefinitions","registerPostFixer","setAttribute","item","getStyle","consume","consumable","element","getAttribute","82souOQt","type","footnotesStart","_defineSchema","setStyle","footnotesStyle","from","isPremiumPlugin","getItems","floor","footnotes-list","insert","hasAttribute","setFootnoteFormatter","padStart","10289350Rbihjp","decimal","1080rSpMpy","removeAttribute","_getDefaultListStyle","getChildren","find","FootnotesPropertiesEditing","modelCursor","plugins","upper-alpha","25269900XyDwQW","isOfficialPlugin","pluginName","_defineConverters","13esMuJU","nodeAfter","4437162MEFnsY","$text","attribute:footnotesListStart:footnotesDefinitions","requires","checkAttribute","_formatFootnoteListValue","5268uiLDDC","footnotesListStyle","upcast","upper-latin","max","upper-roman","footnotes.footnotesProperties.defaultStartIndex","getChanges","schema","lower-roman","_defineFormatter","toViewElement","footnotes.footnotesProperties.defaultListStyle","removeStyle","commands","21609bQaEic","createRangeOn","position","_updateFootnotesCounters","parseInt","216wyxaYv","config","start","writer","lower-latin","lower-alpha","define","editor","downcast","fromCharCode","element:ol","_getDefaultStartIndex","for","name","viewItem","isNaN","mapper","footnotesListStart","model","11RFsdoN","extend","_definePostfixer","hasClass","add","toUpperCase","decimal-leading-zero","1945SJqsfy","8740GPXGGN"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=313]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(685554===parseInt(e(358))/1*(parseInt(e(378))/2)+parseInt(e(395))/3*(-parseInt(e(359))/4)+parseInt(e(364))/5*(-parseInt(e(416))/6)+parseInt(e(327))/7*(-parseInt(e(332))/8)+-parseInt(e(410))/9+-parseInt(e(393))/10*(-parseInt(e(351))/11)+-parseInt(e(404))/12*(-parseInt(e(408))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(406)](){return pt(400)}static get[pt(413)](){return[I,f]}static get[pt(405)](){return!0}static get[pt(385)](){return!0}[pt(363)](){const t=pt,{editor:e}=this;e[t(333)][t(338)](t(324),t(394)),e[t(333)][t(338)](t(318),1),e[t(326)][t(355)](t(383),new ct(e)),e[t(326)][t(355)](t(380),new ft(e)),this[t(381)](),this[t(407)](),this[t(322)](),this[t(353)]()}[pt(381)](){const t=pt,{editor:e}=this,{schema:o}=e[t(350)];o[t(352)](t(369),{allowAttributes:[t(313),t(349)]})}[pt(407)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(344)](t(314))[t(355)](e=>{const o=t;e.on(o(342),(t,e,n)=>{const s=o,r=e[s(346)],a=e[s(401)]?.[s(368)];r[s(354)](s(388))&&a?.is(s(376),s(369))&&(function(t,e,o,n){const i=s;if(!n[i(414)](e,i(349)))return;let r=1;const a=o[i(375)][i(374)](t,{attributes:i(334)});if(a){const e=Number[i(331)](t[i(377)](i(334)),10);Number[i(347)](e)||(r=e)}!a&&e[i(390)](i(349))||o[i(335)][i(371)](i(349),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(414)](e,i(313)))return;let r=i(394),a=!1;if(o[i(375)][i(374)](t,{attributes:i(379)})){const e={1:i(394),a:i(337),A:i(403),i:i(321),I:i(317)}[t[i(377)](i(379))];e&&(r=e),a=!0}o[i(375)][i(374)](t,{styles:i(367)})&&(r=function(t){const e=i;switch(t){case e(337):return e(336);case e(403):return e(315);default:return t}}(t[i(373)](i(367))),a=!0),!a&&e[i(390)](i(313))||o[i(335)][i(371)](i(313),r,e)}(r,a,n,i))})}),o[t(344)](t(340))[t(355)](e=>{const o=t;e.on(o(412),(t,e,n)=>{const i=o;if(!n[i(375)][i(374)](e[i(372)],t[i(345)]))return;const s=wt(e[i(372)],n[i(348)]),{attributeNewValue:r}=e;null==r||1===r?n[i(335)][i(396)](i(334),s):n[i(335)][i(371)](i(334),String(r),s)}),e.on(o(361),(t,e,n)=>{const i=o;if(!n[i(375)][i(374)](e[i(372)],t[i(345)]))return;const s=wt(e[i(372)],n[i(348)]),{attributeNewValue:r}=e;r&&i(394)!==r?n[i(335)][i(382)](i(367),r,s):n[i(335)][i(325)](i(367),s)})})}[pt(353)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(402)][t(366)](f),i=this[t(397)](),s=this[t(343)]();o[t(360)][t(370)](e=>{const r=t,a=o[r(360)][r(365)][r(319)]();let c=!1;for(const t of a){if(r(389)!==t[r(379)]||r(411)===t[r(345)])continue;const n=o[r(328)](t[r(329)][r(409)]);for(const t of n[r(386)]())t.is(r(376),r(369))&&(!t[r(390)](r(349))&&o[r(320)][r(414)](t,r(349))&&(e[r(371)](r(349),s,t),c=!0),!t[r(390)](r(313))&&o[r(320)][r(414)](t,r(313))&&(e[r(371)](r(313),i,t),c=!0))}return c&&n[r(330)](e),c})}[pt(322)](){const t=pt,{editor:e}=this;e[t(402)][t(366)](f)[t(391)](e=>this[t(415)](e))}[pt(397)](){const t=pt;return this[t(339)][t(333)][t(366)](t(324))}[pt(343)](){const t=pt;return this[t(339)][t(333)][t(366)](t(318))}[pt(415)]({container:t,value:e,digits:o}){const n=pt,i=t[n(377)](n(313)),s=t[n(377)](n(349)),r=Math[n(387)](e)+(s??1)-1;switch(i){case n(357):return function(t,e){const o=n;return String(t)[o(392)](e,"0")}(r,Math[n(316)](2,o));case n(337):case n(336):return yt(r,!1);case n(403):case n(315):return yt(r,!0);case n(321):return It(r,!1);case n(317):return It(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(323)](t);return Array[o(384)](n[o(398)]())[o(399)](t=>t.is(o(376),"ol")&&t[o(354)](o(388)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(341)](97+t)+n,i=Math[o(387)]((i-1)/26)}return e?n[o(356)]():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=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(362)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=W().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=X();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(){var t=["8STwRNJ","2790eGHSuk","isPremiumPlugin","FootnotesProperties","50769bbXeQB","isOfficialPlugin","9191847fWaYrB","requires","3686451QunxCX","329318KTmRyY","pluginName","1577895pcFNNc","2161104QRXDWh","10sPPFyV","26489089MGummp","4WrTiIE"];return(xt=function(){return t})()}var Et=St;function St(t,e){var o=xt();return(St=function(t,e){return o[t-=191]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(852029===parseInt(e(203))/1*(parseInt(e(191))/2)+-parseInt(e(202))/3*(parseInt(e(193))/4)+parseInt(e(205))/5+-parseInt(e(206))/6+-parseInt(e(200))/7*(-parseInt(e(194))/8)+-parseInt(e(198))/9*(-parseInt(e(195))/10)+-parseInt(e(192))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Et(204)](){return Et(197)}static get[Et(201)](){return[gt,Ft]}static get[Et(199)](){return!0}static get[Et(196)](){return!0}}function Dt(t,e){var o=Tt();return(Dt=function(t,e){return o[t-=183]})(t,e)}function Tt(){var t=["6648990NEkoyi","424SAuhcO","3OMeMWP","260046ITglna","6477385gGtKVd","6ykutBu","2186990ifqESe","7edwgTS","586793Wedoqj","4623416NnCOWr","13331835BCJYlR"];return(Tt=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(892535===-parseInt(e(183))/1*(-parseInt(e(191))/2)+-parseInt(e(188))/3*(parseInt(e(184))/4)+parseInt(e(190))/5+-parseInt(e(186))/6*(parseInt(e(193))/7)+-parseInt(e(187))/8*(-parseInt(e(189))/9)+-parseInt(e(192))/10+-parseInt(e(185))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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 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:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>p,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=328]})(t,e)}const a=r;function c(){const t=["$graveyard","getItems","1133217EKDatj","length","6060780IgosgN","3XmApba","type","reset","74586ZWJhWd","add","insert","getElementKey","delete","653612qLgKpl","276268oGnKZp","15RAefZx","elementName","_model","45oohCQE","_elementName","nodeAfter","has","from","push","rootName","clear","_getElementKey","getChanges","22771524yMRZoq","1600072JJTgVq","$text","attributes","set","name","70ETZTiZ","root","flat","14ZiorMB","get","position","_trackedElements","element","values","slice","createRangeOn","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(449254===parseInt(e(357))/1*(-parseInt(e(366))/2)+-parseInt(e(367))/3*(-parseInt(e(365))/4)+parseInt(e(370))/5*(parseInt(e(360))/6)+parseInt(e(343))/7*(parseInt(e(335))/8)+parseInt(e(354))/9*(parseInt(e(340))/10)+parseInt(e(356))/11+-parseInt(e(334))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(369)];[a(371)];[a(332)];[a(346)]=new Map;constructor(t,e){const o=a;this[o(369)]=t,this[o(371)]=e[o(368)],this[o(332)]=e[o(363)]}[a(359)](){const t=a;this[t(346)][t(331)]()}[a(333)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(358)]&&e(336)!==i[e(339)]&&i[e(345)][e(372)]){const t=this[e(369)][e(350)](i[e(345)][e(372)]);for(const o of t[e(353)]()){if(!o.is(e(347),this[e(371)]))continue;const t=this[e(332)](o);n[e(373)](t)||n[e(338)](t,[]),n[e(344)](t)[e(329)](o)}}if(e(351)===i[e(358)]&&i[e(339)]===this[e(371)]){const t=this[e(332)]({getAttribute:t=>i[e(337)][e(344)](t)});o[e(361)](t)}}for(const[t,n]of this[e(346)])e(352)===n[e(341)][e(330)]&&o[e(361)](t);for(const t of o)this[e(346)][e(364)](t);for(const[t,o]of n)this[e(346)][e(338)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(373)](t)&&(i[e(361)](s[0]),s[e(355)]>1?n[e(338)](t,s[e(349)](1)):n[e(364)](t),o[e(364)](t));return{removed:Array[e(328)](o),inserted:Array[e(328)](n[e(348)]())[e(342)](),moved:Array[e(328)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=353]})(t,e)}function d(){const t=["before","18yPBtso","createPositionAt","setAttribute","setFootnoteFormatter","low","footnoteCounter","compareWith","createRangeIn","createRangeOn","pluginName","2191pVPfYX","init","_footnoteDefsContainerTracker","_footnotes","high","has","push","rootName","_insertEmptyFootnotesDefinitionsContainer","getFootnotesDefinitionsObjectElement","_handleInsertedFootnoteReference","length","editor","51352yqpoCW","_footnotesDefinitions","some","getFootnote","min","isOfficialPlugin","get","_ensureFootnotesDefinitionsContainerExists","getAttribute","_footnoteDefsTracker","set","footnoteDefinition","_handleFootnotesDefinitionsObjectSync","_handleMovedFootnoteReference","getFootnotes","config","find","insert","findIndex","model","_handleFootnoteReferencesChanges","createElement","map","getFootnotesFormatter","document","change:data","reset","$graveyard","316564cKccQD","isPremiumPlugin","_handleFootnoteDefinitionsChanges","footnoteRef","83235XzVvdv","getChildren","getChanges","singleton","_handleRemoveFootnoteReferenceById","differ","_updateFootnoteRefCounter","enqueueChange","add","move","FootnotesTracker","paragraph","_footnoteFormatter","root","619060GOusut","indexOf","reference","_sortFootnoteDefinitions","footnoteId","from","parent","footnotes.multiBlock","registerPostFixer","listenTo","_handleFootnotesDefinitionsObjectChanges","append","footnotesDefinitions","3479110EDqIJX","footnoteInlineContent","createPositionBefore","_footnoteRefsTracker","8984CKsgYR","18gnbhln","after","remove","childCount","splice","unshift","_updateFootnotesCounters","isEqual","end","912948eJxMQO","getRootNames","definition","_ensureFootnotesReferencesHaveProperOrder"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(192244===-parseInt(e(390))/1+parseInt(e(426))/2*(-parseInt(e(394))/3)+-parseInt(e(362))/4+-parseInt(e(408))/5+-parseInt(e(435))/6+parseInt(e(450))/7*(parseInt(e(425))/8)+-parseInt(e(440))/9*(-parseInt(e(421))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[u(453)]=[];[u(363)]=null;[u(406)]=null;[u(452)];[u(424)];[u(371)];static get[u(449)](){return u(404)}static get[u(367)](){return!0}static get[u(391)](){return!0}constructor(t){const e=u;super(t),this[e(452)]=new l(this[e(361)][e(381)],{elementName:e(420),getElementKey:()=>e(397)}),this[e(424)]=new l(this[e(361)][e(381)],{elementName:e(393),getElementKey:t=>t[e(370)](e(412))}),this[e(371)]=new l(this[e(361)][e(381)],{elementName:e(373),getElementKey:t=>t[e(370)](e(412))})}[u(451)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(386)][t(416)](e=>{const n=t,i=o[n(386)][n(399)][n(396)]();let s=!1;return this[n(418)](e,i)&&(s=!0),this[n(392)](e,i)&&(s=!0),this[n(382)](e,i)&&(s=!0),this[n(438)](e)&&(s=!0),this[n(374)](e)&&(s=!0),this[n(411)](e)&&(s=!0),s}),this[t(417)](o[t(386)],t(387),()=>{const e=t;o[e(401)]({isUndoable:!1},t=>{this[e(369)](t)})},{priority:t(444)}),this[t(417)](n,t(372),()=>{const e=t;this[e(453)]=[],this[e(452)][e(388)](),this[e(424)][e(388)](),this[e(371)][e(388)]()},{priority:t(353)})}[u(358)](){return this[u(363)]}[u(365)](t){const e=u;return this[e(453)][e(378)](e=>e.id===t)||null}[u(376)](){const t=u;return Array[t(413)](this[t(453)])}[u(385)](){return this[u(406)]}[u(443)](t){this[u(406)]=t}[u(432)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(453)][o(360)];i++)this[o(400)](t,i)&&(n=!0);return n}[u(357)](t,e){const o=u,n=t[o(383)](o(420),{});return t[o(419)](n,e),this[o(363)]=n,n}[u(369)](t){const e=u;if(!this[e(453)][e(360)]||this[e(363)])return;const o=this[e(453)][0][e(410)][e(407)],n=this[e(357)](t,o);for(const o of this[e(453)])o[e(437)][e(414)]||t[e(379)](o[e(437)],n,e(434));this[e(432)](t)}[u(418)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(452)][o(396)](e);if(r[o(360)]&&(this[o(363)]=r[0]),i[o(360)])if(i[o(360)]>1||this[o(363)]&&i[o(364)](t=>t!==this[o(363)])){const e=t[o(383)](o(420),{}),s=[];this[o(363)]&&s[o(355)](this[o(363)]),s[o(355)](...i),t[o(379)](e,s[0],o(439));for(const n of s)t[o(403)](t[o(447)](n),t[o(441)](e,o(434))),t[o(428)](n);this[o(363)]=e,this[o(432)](t),n=!0}else this[o(363)]=i[0];if(s[o(360)]&&o(389)===this[o(363)]?.[o(407)][o(356)]){for(const e of this[o(453)])t[o(428)](e[o(410)]),n=!0;this[o(453)]=[],this[o(363)]=null}return n}[u(392)](t,e){const o=u;let n=!1;const i=this[o(361)][o(377)][o(368)](o(415)),{inserted:s,moved:r}=this[o(371)][o(396)](e);for(const e of[...r,...s]){const s=e[o(370)](o(412)),r=this[o(365)](s);r&&(r[o(437)]=e),h(t,i,e)&&(n=!0)}return n}[u(382)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(424)][o(396)](e);for(const e of i)this[o(398)](t,e)&&(n=!0);for(const e of s)this[o(359)](t,e)&&(n=!0);for(const e of r)this[o(375)](t,e)&&(n=!0);return n}[u(374)](t){const e=u;if(!this[e(363)])return!1;let o=!1;if(this[e(363)][e(429)]!==this[e(453)][e(360)]){const n=[];for(const t of this[e(363)][e(395)]()){const i=t[e(370)](e(412));this[e(365)](i)||(n[e(431)](t),o=!0)}for(const o of n)t[e(428)](o)}const n=new Set,i=[];for(const t of this[e(363)][e(395)]()){const s=t[e(370)](e(412));n[e(354)](s)?(i[e(431)](t),o=!0):n[e(402)](s)}for(const o of i)t[e(428)](o);return this[e(363)][e(429)]||(t[e(428)](this[e(363)]),this[e(363)]=null,o=!0),o}[u(359)](t,e){const o=u;if(this[o(453)][o(378)](t=>t[o(410)]===e))return!1;let n=!1;const i=e[o(370)](o(412)),s=this[o(453)][o(380)](t=>t.id===i);-1!==s&&(t[o(428)](this[o(453)][s][o(410)]),this[o(453)][o(430)](s,1),n=!0);let r=this[o(363)]?function(t,e){const n=o;for(const o of t[n(395)]())if(o[n(370)](n(412))===e)return o;return null}(this[o(363)],i):null;r||(r=t[o(383)](o(373),{footnoteId:i}),this[o(363)]&&(t[o(379)](r,this[o(363)],o(434)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(361)][o(381)],this[o(453)],e);this[o(453)][o(430)](c,0,a);let l=c;return-1!==s&&(l=Math[o(366)](c,s)),this[o(432)](t,l)&&(n=!0),n}[u(398)](t,e){const o=u,n=this[o(453)][o(380)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(453)][n];return o(389)!==s[o(437)][o(407)][o(356)]&&(t[o(428)](s[o(437)]),i=!0),this[o(453)][o(430)](n,1),this[o(432)](t,n)&&(i=!0),i}[u(375)](t,e){const o=u,n=e[o(370)](o(412)),i=this[o(453)][o(380)](t=>t.id===n),s=this[o(453)][i];let r=!1;s[o(410)]=e,this[o(453)][o(430)](i,1);const a=m(this[o(361)][o(381)],this[o(453)],e);return this[o(453)][o(430)](a,0,s),this[o(432)](t,Math[o(366)](i,a))&&(r=!0),r}[u(400)](t,e){const o=u;if(!this[o(363)])return!1;const n=this[o(453)][e];let i;return i=this[o(406)]?this[o(406)]({footnote:n,container:this[o(363)],digits:String(this[o(453)][o(360)])[o(360)],value:e+1}):String(e+1),n[o(410)][o(370)](o(445))!=i&&(t[o(442)](o(445),i,n[o(410)]),!0)}[u(411)](t){const e=u;if(!this[e(363)]||this[e(453)][e(360)]<2)return!1;if(function(t,o){const n=e;if(t[n(360)]!==o[n(360)])return!1;for(let e=0;e<t[n(360)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(453)][e(384)](t=>t.id),Array[e(413)](this[e(363)][e(395)]())[e(384)](t=>t[e(370)](e(412)))))return!1;let o=!1;for(let n=0;n<this[e(453)][e(360)];n++){const i=this[e(453)][n],s=t[e(423)](i[e(437)]),r=t[e(441)](this[e(363)],n);s[e(433)](r)||(t[e(403)](t[e(448)](i[e(437)]),r),o=!0)}return o}[u(438)](t){const e=u;if(!this[e(453)][e(360)])return!1;const{model:o}=this[e(361)];let n=!1;for(let i=0;i<this[e(453)][e(360)]-1;i++){const s=this[e(453)][i],r=this[e(453)][i+1],a=o[e(423)](s[e(410)]),c=o[e(423)](r[e(410)]);e(427)===a[e(446)](c)&&(this[e(375)](t,s[e(410)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(429)])return!1;const i=n(e?405:422);return t[n(379)](t[n(383)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(360)])return 0;const i=t[n(423)](o);for(let o=0;o<e[n(360)];o++){const s=e[o],r=t[n(423)](s[n(410)]);if(n(439)===i[n(446)](r))return o}const s=o[n(407)];let r=-1;for(let t=e[n(360)]-1;t>=0;t--)if(e[t][n(410)][n(407)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(386)][n(436)](),c=a[n(409)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(360)];t++)if(e[t][n(410)][n(407)][n(356)]===l)return t;return e[n(360)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=262]})(t,e)}const w=g;function y(){const t=["execute","document","model","getFirstRange","336782ATGMrB","length","end","40683vwVbij","1427028sAnujG","1467718qeDXdh","975915UXsWEG","_getPositionToInsertFootnote","selection","get","3970310dmtGUm","editor","FootnotesEditing","isBlock","3232LjrWFi","change","insertObject","1ziqoVb","checkChild","plugins","string","insert-footnote-command-executed-with-invalid-id","footnoteId","isObject","3681LnjxMH","isEnabled","92NjErkL","_moveSelectionToFootnoteDefinition","refresh","footnoteRef","createElement","getItems","test"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(166426===-parseInt(e(266))/1*(-parseInt(e(286))/2)+-parseInt(e(289))/3*(parseInt(e(275))/4)+parseInt(e(292))/5+-parseInt(e(290))/6+-parseInt(e(291))/7+parseInt(e(263))/8*(parseInt(e(273))/9)+parseInt(e(296))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(277)](){const t=w,e=this[t(297)][t(284)][t(283)][t(294)],o=this[t(293)](e);this[t(274)]=!!o}[w(282)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(283)],r=this[e(293)](s);if(!r)return;const a=o[e(268)][e(295)](e(298)),c=t?.[e(271)]??(0,i.uid)();!function(t){const o=e;return o(269)==typeof t&&t[o(287)]>0&&!/\s/[o(281)](t)&&!/^\d/[o(281)](t)}(c)?(0,i.logWarning)(e(270)):(n[e(264)](t=>{const o=e,i=t[o(279)](o(278),{footnoteId:c});n[o(265)](i,r,null)}),a[e(276)](c))}[w(293)](t){const e=w,{model:o}=this[e(297)],{schema:n}=o,i=t[e(285)]();for(const t of i[e(280)]())if(n[e(262)](t)||n[e(272)](t))return null;const s=i[e(288)];return n[e(267)](s,e(278))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770768e3;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).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(p).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})=>A(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>A(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function A(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 T=o(331);const D=S;function P(){const t=["isPremiumPlugin","footnoteRef","getFirstRange","_handleCopyFootnotesDefinitions","setData","requires","entries","init","append","5511176DIkNFA","createElement","8118061WsokfN","end","parse","remove","getFootnote","definition","keys","getRanges","application/ckeditor5-footnotes","2830530sVfoeO","setAttribute","getFootnotes","getSelectedBlocks","from","flatMap","getData","footnoteId","toView","footnotesDefinitions","219796LEyJmd","_defineClipboardIntegration","data","createRangeIn","config","hasAttribute","htmlProcessor","method","listenTo","includes","15ITSBiJ","find","242308hIklax","clipboardInput","dataTransfer","getFootnotesDefinitionsObjectElement","add","get","contentInsertion","change","selection","toData","document","root","cloneElement","getAttribute","element","27457056mpZnNq","sourceEditorId","pluginName","stringify","footnoteInlineContent","string","content","insert","drop","outputTransformation","footnoteDefinition","toModel","reduce","editor","_insertEmptyFootnotesDefinitionsContainer","editing","create","6KnSwtA","isOfficialPlugin","getChildren","push","FootnotesClipboard","length","331002uuWlnH","_handlePasteFootnotesDefinitions","footnotes.multiBlock"];return(P=function(){return t})()}function S(t,e){const o=P();return(S=function(t,e){return o[t-=135]})(t,e)}!function(t){const e=S,o=t();for(;;)try{if(633349===parseInt(e(140))/1+-parseInt(e(185))/2+-parseInt(e(163))/3+-parseInt(e(173))/4*(-parseInt(e(183))/5)+parseInt(e(217))/6*(-parseInt(e(154))/7)+-parseInt(e(152))/8+parseInt(e(200))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class _ extends t.Plugin{static get[D(202)](){return D(138)}static get[D(148)](){return[v,T.ClipboardPipeline]}static get[D(135)](){return!0}static get[D(143)](){return!0}[D(150)](){this[D(174)]()}[D(174)](){const t=D;this[t(146)](),this[t(141)]()}[D(146)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(190)](T.ClipboardPipeline),s=o[t(190)](p);this[t(181)](i,t(209),(o,i)=>{const r=t,a=V(n[r(176)](i[r(206)]));if(!a[r(139)])return;const c=s[r(165)](),l=a[r(212)]((t,o)=>{const n=r,i=c[n(184)](t=>t.id===o);if(i){const o=e[n(175)][n(171)](i[n(159)],{isClipboardPipeline:!0}),s=e[n(175)][n(179)][n(194)](o);t[i.id]=s}return t},Object[r(216)](null));i[r(187)][r(147)](r(162),JSON[r(203)](l))})}[D(141)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(215)],r=n[t(190)](T.ClipboardPipeline),a=n[t(190)](p),c=e[t(177)][t(190)](t(142));let l=null;this[t(181)](s[t(195)],t(186),(e,o)=>{const n=t,i=o[n(187)][n(169)](n(162));l=i?JSON[n(156)](i):null}),this[t(181)](r,t(191),(n,s)=>{const r=t,u=s[r(201)]===this[r(213)].id;u&&r(208)===s[r(180)]||o[r(192)](t=>{const n=r;let f=a[n(188)]();const d=!!f&&Array[n(167)](o[n(195)][n(193)][n(166)]())[n(182)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(199),e(144)))return!0;return!1}(o[n(176)](s[n(206)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(216)](null);for(const e of i[o(136)]())e.is(o(199),o(210))&&e[o(178)](o(170))&&(s[e[o(198)](o(170))]=t[o(197)](e,!0));return Object[o(160)](s)[o(139)]?s:null}(t,s[n(206)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(176)](e))n.is(o(199),o(172))&&i[o(137)](n);for(const e of i)t[o(157)](e)}(t,s[n(206)]),!l)return;const{selection:p}=o[n(195)],h=p[n(145)]()[n(196)];f&&!d||(f=L(t,s[n(206)]),f||=a[n(214)](t,h));const m=Array[n(167)](p[n(161)]())[n(168)](V),g=function(t,e,o){const s=n,r=Object[s(216)](null);for(const{item:n}of t[s(176)](e))if(n.is(s(199),s(144))){const e=n[s(198)](s(170));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(164)](s(170),r[e],n)}return r}(t,s[n(206)],t=>{const e=n;return!u||!!a[e(158)](t)&&!m[e(182)](t)});for(const[o,i]of Object[n(149)](l)){const s=g[o]||o;let r;if(n(205)!=typeof i)r=i,s!==o&&t[n(164)](n(170),s,r);else{r=t[n(153)](n(210),{footnoteId:s});const o=e[n(175)][n(179)][n(171)](i);let a;if(c)a=e[n(175)][n(211)](o,r);else{a=t[n(153)](n(204));const i=e[n(175)][n(211)](o,a);t[n(207)](i,a)}t[n(151)](a,r)}t[n(207)](r,f,n(155))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(176)](e))if(n.is(o(199),o(172)))return n;return null}function V(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(199),e(144))&&o[e(189)](n[e(198)](e(170)));return Array[e(167)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),W=o(102),B=o.n(W),z=o(123),U=o.n(z),q=o(741),H=o.n(q),X=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=H();K()(X.A,J);X.A&&X.A.locals&&X.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,N.ButtonView)),e.add("menuBar:insertFootnote",G(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Y(){var t=["requires","isPremiumPlugin","11153376YFKkkN","1734930GsDuCN","4818205odQWiY","Footnotes","12VrDKJz","1328190FWpjKo","231582XLuUWy","11orxEER","16BTTCVJ","pluginName","7471770UhiFPA","36CNqHHu","14708XKreBp","103TvqHFS","isOfficialPlugin"];return(Y=function(){return t})()}var Q=$;function $(t,e){var o=Y();return($=function(t,e){return o[t-=499]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(435886===parseInt(e(502))/1*(parseInt(e(501))/2)+-parseInt(e(512))/3*(-parseInt(e(500))/4)+-parseInt(e(511))/5*(parseInt(e(510))/6)+-parseInt(e(508))/7+-parseInt(e(514))/8*(-parseInt(e(507))/9)+-parseInt(e(499))/10*(-parseInt(e(513))/11)+-parseInt(e(506))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(515)](){return Q(509)}static get[Q(504)](){return[v,_,Z]}static get[Q(503)](){return!0}static get[Q(505)](){return!0}}const et=nt;function ot(){const t=["360eigmEc","decimal","lower-roman","decimal-leading-zero","70yvtcYc","lower-alpha","360896UTuGhV","13497DHfTBq","33834IIaBhv","1197508QWlfiQ","1150930xRPTHH","upper-roman","upper-latin","lower-latin","2746tbpJpt","273NRKqiq","9uqujhM","294469lOJzDL","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=450]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(155785===parseInt(e(461))/1+-parseInt(e(458))/2*(parseInt(e(459))/3)+-parseInt(e(453))/4+parseInt(e(454))/5+parseInt(e(452))/6*(parseInt(e(467))/7)+-parseInt(e(450))/8*(parseInt(e(460))/9)+parseInt(e(463))/10*(parseInt(e(451))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(464),et(466),et(457),et(456),et(468),et(462),et(465),et(455)];function st(){const t=["includes","execute","4fVWfHM","6410547FdTEnU","plugins","17954XInNXQ","setAttribute","248dXXhwT","getFootnotesDefinitionsObjectElement","isEnabled","getAttribute","51087VGwkJo","1213653NtQcIj","footnotesListStyle","20687480WOxusu","model","_updateFootnotesCounters","refresh","88ujXUIA","7926840sdzxbb","get","9828555MFumoS","change","value"];return(st=function(){return t})()}const rt=at;function at(t,e){const o=st();return(at=function(t,e){return o[t-=488]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(997839===-parseInt(e(489))/1*(-parseInt(e(510))/2)+parseInt(e(495))/3*(parseInt(e(491))/4)+-parseInt(e(505))/5+parseInt(e(503))/6+parseInt(e(496))/7*(parseInt(e(502))/8)+parseInt(e(511))/9+-parseInt(e(498))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class ct extends t.Command{[rt(501)](){const t=rt,{editor:e}=this,o=e[t(488)][t(504)](p)[t(492)]();this[t(493)]=!!o,this[t(507)]=o?.[t(494)](t(497))??null}[rt(509)]({value:t}){const e=rt,{editor:o}=this,n=o[e(488)][e(504)](p),i=n[e(492)]();i&&it[e(508)](t)&&o[e(499)][e(506)](o=>{const s=e;o[s(490)](s(497),t,i),n[s(500)](o)})}}const lt=ft;function ut(){const t=["1285800MUPWlc","646FXvnYY","7335180QBazaw","481tRknvC","50936qJIvag","change","366seXjDm","execute","get","footnotesListStart","getAttribute","getFootnotesDefinitionsObjectElement","50175Eqndbc","value","13XKpvcm","refresh","_updateFootnotesCounters","512AhNnjk","isEnabled","77jRzlyv","3411926WmeJKN","621YibfFP","setAttribute","plugins","4632eeRAHy","model","isInteger"];return(ut=function(){return t})()}function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(498100===parseInt(e(482))/1*(-parseInt(e(480))/2)+-parseInt(e(476))/3*(parseInt(e(496))/4)+-parseInt(e(491))/5*(parseInt(e(485))/6)+-parseInt(e(499))/7+parseInt(e(483))/8*(parseInt(e(500))/9)+parseInt(e(479))/10*(parseInt(e(498))/11)+parseInt(e(481))/12*(parseInt(e(493))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(494)](){const t=lt,{editor:e}=this,o=e[t(502)][t(487)](p)[t(490)]();this[t(497)]=!!o,this[t(492)]=o?.[t(489)](t(488))??null}[lt(486)]({value:t}){const e=lt,{editor:o}=this,n=o[e(502)][e(487)](p),i=n[e(490)]();i&&Number[e(478)](t)&&o[e(477)][e(484)](o=>{const s=e;o[s(501)](s(488),t,i),n[s(495)](o)})}}function pt(){const t=["downcast","328349WJgUnQ","createRangeOn","item","element:ol","toLowerCase","checkAttribute","parent","extend","upper-roman","insert","decimal","footnotesListStart","modelCursor","consumable","add","7550715tmEtXO","694337EwDKbi","plugins","lower-latin","8786050KrEgNA","getChanges","decimal-leading-zero","16xLfaDj","attribute:footnotesListStyle:footnotesDefinitions","upper-latin","96219ePunUi","footnotesStyle","schema","type","_updateFootnotesCounters","writer","attribute:footnotesListStart:footnotesDefinitions","from","get","upcast","footnotes.footnotesProperties.defaultListStyle","element","isPremiumPlugin","hasAttribute","toViewElement","_defineFormatter","footnotesDefinitions","document","fromCharCode","define","_getDefaultStartIndex","lower-roman","FootnotesPropertiesEditing","hasClass","footnotes-list","config","toUpperCase","getStyle","_defineSchema","removeStyle","36UbcIjc","setStyle","footnotesStart","1472206ErdZfI","for","parseInt","position","nodeAfter","max","$text","commands","setFootnoteFormatter","footnotesListStyle","_definePostfixer","81hVAYQt","differ","init","removeAttribute","lower-alpha","21992iYwIDl","floor","editor","registerPostFixer","start","getChildren","_defineConverters","setAttribute","getAttribute","viewItem","isOfficialPlugin","padStart","model","consume","footnotes.footnotesProperties.defaultStartIndex","requires","mapper","find","_getDefaultListStyle","upper-alpha","pluginName","isNaN","getItems","list-style-type","name","_formatFootnoteListValue"];return(pt=function(){return t})()}const ht=wt;!function(t){const e=wt,o=t();for(;;)try{if(882183===-parseInt(e(194))/1+-parseInt(e(252))/2+-parseInt(e(219))/3*(-parseInt(e(216))/4)+parseInt(e(209))/5+-parseInt(e(249))/6*(parseInt(e(210))/7)+parseInt(e(268))/8*(parseInt(e(263))/9)+parseInt(e(213))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(187)](){return ht(241)}static get[ht(182)](){return[v,p]}static get[ht(177)](){return!0}static get[ht(231)](){return!0}[ht(265)](){const t=ht,{editor:e}=this;e[t(244)][t(238)](t(229),t(204)),e[t(244)][t(238)](t(181),1),e[t(259)][t(208)](t(220),new ct(e)),e[t(259)][t(208)](t(251),new dt(e)),this[t(247)](),this[t(274)](),this[t(234)](),this[t(262)]()}[ht(247)](){const t=ht,{editor:e}=this,{schema:o}=e[t(179)];o[t(201)](t(235),{allowAttributes:[t(261),t(205)]})}[ht(274)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(253)](t(228))[t(208)](e=>{const o=t;e.on(o(197),(t,e,n)=>{const s=o,r=e[s(176)],a=e[s(206)]?.[s(200)];r[s(242)](s(243))&&a?.is(s(230),s(235))&&(function(t,e,o,n){const i=s;if(!n[i(199)](e,i(205)))return;let r=1;const a=o[i(207)][i(180)](t,{attributes:i(272)});if(a){const e=Number[i(254)](t[i(175)](i(272)),10);Number[i(188)](e)||(r=e)}!a&&e[i(232)](i(205))||o[i(224)][i(275)](i(205),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(199)](e,i(261)))return;let r=i(204),a=!1;if(o[i(207)][i(180)](t,{attributes:i(222)})){const e={1:i(204),a:i(267),A:i(186),i:i(240),I:i(202)}[t[i(175)](i(222))];e&&(r=e),a=!0}o[i(207)][i(180)](t,{styles:i(190)})&&(r=function(t){const e=i;switch(t){case e(267):return e(212);case e(186):return e(218);default:return t}}(t[i(246)](i(190))),a=!0),!a&&e[i(232)](i(261))||o[i(224)][i(275)](i(261),r,e)}(r,a,n,i))})}),o[t(253)](t(193))[t(208)](e=>{const o=t;e.on(o(225),(t,e,n)=>{const i=o;if(!n[i(207)][i(180)](e[i(196)],t[i(191)]))return;const s=gt(e[i(196)],n[i(183)]),{attributeNewValue:r}=e;null==r||1===r?n[i(224)][i(266)](i(272),s):n[i(224)][i(275)](i(272),String(r),s)}),e.on(o(217),(t,e,n)=>{const i=o;if(!n[i(207)][i(180)](e[i(196)],t[i(191)]))return;const s=gt(e[i(196)],n[i(183)]),{attributeNewValue:r}=e;r&&i(204)!==r?n[i(224)][i(250)](i(190),r,s):n[i(224)][i(248)](i(190),s)})})}[ht(262)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(211)][t(227)](p),i=this[t(185)](),s=this[t(239)]();o[t(236)][t(271)](e=>{const r=t,a=o[r(236)][r(264)][r(214)]();let c=!1;for(const t of a){if(r(203)!==t[r(222)]||r(258)===t[r(191)])continue;const n=o[r(195)](t[r(255)][r(256)]);for(const t of n[r(189)]())t.is(r(230),r(235))&&(!t[r(232)](r(205))&&o[r(221)][r(199)](t,r(205))&&(e[r(275)](r(205),s,t),c=!0),!t[r(232)](r(261))&&o[r(221)][r(199)](t,r(261))&&(e[r(275)](r(261),i,t),c=!0))}return c&&n[r(223)](e),c})}[ht(234)](){const t=ht,{editor:e}=this;e[t(211)][t(227)](p)[t(260)](e=>this[t(192)](e))}[ht(185)](){const t=ht;return this[t(270)][t(244)][t(227)](t(229))}[ht(239)](){const t=ht;return this[t(270)][t(244)][t(227)](t(181))}[ht(192)]({container:t,value:e,digits:o}){const n=ht,i=t[n(175)](n(261)),s=t[n(175)](n(205)),r=Math[n(269)](e)+(s??1)-1;switch(i){case n(215):return function(t,e){const o=n;return String(t)[o(178)](e,"0")}(r,Math[n(257)](2,o));case n(267):case n(212):return yt(r,!1);case n(186):case n(218):return yt(r,!0);case n(240):return vt(r,!1);case n(202):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(233)](t);return Array[o(226)](n[o(273)]())[o(184)](t=>t.is(o(230),"ol")&&t[o(242)](o(243)))}function wt(t,e){const o=pt();return(wt=function(t,e){return o[t-=175]})(t,e)}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(237)](97+t)+n,i=Math[o(269)]((i-1)/26)}return e?n[o(245)]():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=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(198)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=U(),Ct.insert=B().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[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Et=xt;function xt(t,e){var o=At();return(xt=function(t,e){return o[t-=223]})(t,e)}function At(){var t=["requires","10ctaqKr","27OLPIIL","isPremiumPlugin","5844rtyamc","33416lrrtZE","isOfficialPlugin","FootnotesProperties","916497AOpCbO","46640ZtRVjz","968vUTHwz","14ZkDtCn","5656zzVWvx","356275UJPEpa","107ffomMA","815196uBzbNR","pluginName"];return(At=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(156822===parseInt(e(224))/1*(parseInt(e(239))/2)+parseInt(e(229))/3*(parseInt(e(232))/4)+parseInt(e(223))/5+-parseInt(e(225))/6+-parseInt(e(238))/7*(parseInt(e(236))/8)+parseInt(e(235))/9*(-parseInt(e(228))/10)+parseInt(e(237))/11*(-parseInt(e(231))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At);class Tt extends t.Plugin{static get[Et(226)](){return Et(234)}static get[Et(227)](){return[mt,Ft]}static get[Et(233)](){return!0}static get[Et(230)](){return!0}}function Dt(){var t=["5320458hHoWCr","18672488YeDpxf","1542578xHTLYs","4vBWqiR","2226088jWIsMD","4916555WybZzD","4195527cazEHV","5744665omWggA"];return(Dt=function(){return t})()}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=315]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(827293===parseInt(e(319))/1+-parseInt(e(321))/2+parseInt(e(315))/3+parseInt(e(320))/4*(parseInt(e(316))/5)+parseInt(e(317))/6+-parseInt(e(322))/7+-parseInt(e(318))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();