@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251129.0 → 0.0.0-nightly-20251201.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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},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:()=>Z,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(989130===-parseInt(e(146))/1+-parseInt(e(135))/2+-parseInt(e(132))/3+-parseInt(e(123))/4*(parseInt(e(141))/5)+parseInt(e(155))/6+parseInt(e(144))/7*(parseInt(e(148))/8)+parseInt(e(125))/9*(parseInt(e(139))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(138)];[r(127)];[r(128)];[r(140)]=new Map;constructor(t,e){const o=r;this[o(138)]=t,this[o(127)]=e[o(120)],this[o(128)]=e[o(149)]}[r(156)](){const t=r;this[t(140)][t(130)]()}[r(160)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(154)===i[e(151)]&&e(119)!==i[e(159)]&&i[e(134)][e(147)]){const t=this[e(138)][e(118)](i[e(134)][e(147)]);for(const o of t[e(122)]()){if(!o.is(e(133),this[e(127)]))continue;const t=this[e(128)](o);n[e(137)](t)||n[e(136)](t,[]),n[e(145)](t)[e(161)](o)}}if(e(143)===i[e(151)]&&i[e(159)]===this[e(127)]){const t=this[e(128)]({getAttribute:t=>i[e(153)][e(145)](t)});o[e(126)](t)}}for(const[t,n]of this[e(140)])e(152)===n[e(131)][e(157)]&&o[e(126)](t);for(const t of o)this[e(140)][e(142)](t);for(const[t,o]of n)this[e(140)][e(136)](t,o[o[e(158)]-1]);const i=new Set;for(const[t,s]of n)o[e(137)](t)&&(i[e(126)](s[0]),s[e(158)]>1?n[e(136)](t,s[e(150)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(124)](o),inserted:Array[e(124)](n[e(129)]())[e(121)](),moved:Array[e(124)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=118]})(t,e)}function l(){const t=["_trackedElements","160NGnIEz","delete","remove","21xnWEYG","get","1227960JvEqRD","nodeAfter","3098816FerbDC","getElementKey","slice","type","$graveyard","attributes","insert","7577910GNLqyf","reset","rootName","length","name","getChanges","push","createRangeOn","$text","elementName","flat","getItems","201124ARxWXN","from","275841pTPHHX","add","_elementName","_getElementKey","values","clear","root","5390679tRcCVu","element","position","3473110LdBOAy","set","has","_model","1610IhNNOQ"];return(l=function(){return t})()}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=231]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543304===parseInt(e(297))/1*(-parseInt(e(262))/2)+parseInt(e(286))/3+parseInt(e(328))/4*(parseInt(e(251))/5)+parseInt(e(304))/6*(parseInt(e(312))/7)+parseInt(e(311))/8*(-parseInt(e(258))/9)+-parseInt(e(299))/10*(-parseInt(e(261))/11)+parseInt(e(331))/12*(-parseInt(e(254))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(281)]=[];[u(249)]=null;[u(283)]=null;[u(260)];[u(315)];[u(244)];static get[u(246)](){return u(259)}static get[u(308)](){return!0}static get[u(275)](){return!0}constructor(t){const e=u;super(t),this[e(260)]=new a(this[e(255)][e(288)],{elementName:e(313),getElementKey:()=>e(314)}),this[e(315)]=new a(this[e(255)][e(288)],{elementName:e(267),getElementKey:t=>t[e(333)](e(332))}),this[e(244)]=new a(this[e(255)][e(288)],{elementName:e(248),getElementKey:t=>t[e(333)](e(332))})}[u(296)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(271)][t(238)](e=>{const n=t,i=o[n(271)][n(264)][n(265)]();let s=!1;return this[n(316)](e,i)&&(s=!0),this[n(274)](e,i)&&(s=!0),this[n(234)](e,i)&&(s=!0),this[n(326)](e)&&(s=!0),this[n(235)](e)&&(s=!0),this[n(236)](e)&&(s=!0),s}),this[t(319)](o[t(271)],t(231),()=>{const e=t;o[e(322)]({isUndoable:!1},t=>{this[e(290)](t)})},{priority:t(232)}),this[t(319)](n,t(309),()=>{const e=t;this[e(281)]=[],this[e(260)][e(273)](),this[e(315)][e(273)](),this[e(244)][e(273)]()},{priority:t(243)})}[u(266)](){return this[u(249)]}[u(327)](t){const e=u;return this[e(281)][e(321)](e=>e.id===t)||null}[u(256)](){const t=u;return Array[t(233)](this[t(281)])}[u(300)](){return this[u(283)]}[u(285)](t){this[u(283)]=t}[u(307)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(281)][o(334)];i++)this[o(241)](t,i)&&(n=!0);return n}[u(330)](t,e){const o=u,n=t[o(294)](o(313),{});return t[o(253)](n,e),this[o(249)]=n,n}[u(290)](t){const e=u;if(!this[e(281)][e(334)]||this[e(249)])return;const o=this[e(281)][0][e(277)][e(301)],n=this[e(330)](t,o);for(const o of this[e(281)])o[e(269)][e(242)]||t[e(280)](o[e(269)],n,e(270));this[e(307)](t)}[u(316)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(260)][o(265)](e);if(r[o(334)]&&(this[o(249)]=r[0]),i[o(334)])if(i[o(334)]>1||this[o(249)]&&i[o(284)](t=>t!==this[o(249)])){const e=t[o(294)](o(313),{}),s=[];this[o(249)]&&s[o(287)](this[o(249)]),s[o(287)](...i),t[o(280)](e,s[0],o(306));for(const n of s)t[o(268)](t[o(276)](n),t[o(320)](e,o(270))),t[o(247)](n);this[o(249)]=e,this[o(307)](t),n=!0}else this[o(249)]=i[0];if(s[o(334)]&&o(298)===this[o(249)]?.[o(301)][o(302)]){for(const e of this[o(281)])t[o(247)](e[o(277)]),n=!0;this[o(281)]=[],this[o(249)]=null}return n}[u(274)](t,e){const o=u;let n=!1;const i=this[o(255)][o(310)][o(292)](o(318)),{inserted:s,moved:r}=this[o(244)][o(265)](e);for(const e of[...r,...s]){const s=e[o(333)](o(332)),r=this[o(327)](s);r&&(r[o(269)]=e),p(t,i,e)&&(n=!0)}return n}[u(234)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(315)][o(265)](e);for(const e of i)this[o(257)](t,e)&&(n=!0);for(const e of s)this[o(240)](t,e)&&(n=!0);for(const e of r)this[o(317)](t,e)&&(n=!0);return n}[u(235)](t){const e=u;if(!this[e(249)])return!1;let o=!1;if(this[e(249)][e(279)]!==this[e(281)][e(334)]){const n=[];for(const t of this[e(249)][e(252)]()){const i=t[e(333)](e(332));this[e(327)](i)||(n[e(282)](t),o=!0)}for(const o of n)t[e(247)](o)}const n=new Set,i=[];for(const t of this[e(249)][e(252)]()){const s=t[e(333)](e(332));n[e(239)](s)?(i[e(282)](t),o=!0):n[e(245)](s)}for(const o of i)t[e(247)](o);return this[e(249)][e(279)]||(t[e(247)](this[e(249)]),this[e(249)]=null,o=!0),o}[u(240)](t,e){const o=u;if(this[o(281)][o(321)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(333)](o(332)),s=this[o(281)][o(324)](t=>t.id===i);-1!==s&&(t[o(247)](this[o(281)][s][o(277)]),this[o(281)][o(303)](s,1),n=!0);let r=this[o(249)]?function(t,e){const n=o;for(const o of t[n(252)]())if(o[n(333)](n(332))===e)return o;return null}(this[o(249)],i):null;r||(r=t[o(294)](o(248),{footnoteId:i}),this[o(249)]&&(t[o(280)](r,this[o(249)],o(270)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(255)][o(288)],this[o(281)],e);this[o(281)][o(303)](c,0,a);let l=c;return-1!==s&&(l=Math[o(293)](c,s)),this[o(307)](t,l)&&(n=!0),n}[u(257)](t,e){const o=u,n=this[o(281)][o(324)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(281)][n];return o(298)!==s[o(269)][o(301)][o(302)]&&(t[o(247)](s[o(269)]),i=!0),this[o(281)][o(303)](n,1),this[o(307)](t,n)&&(i=!0),i}[u(317)](t,e){const o=u,n=e[o(333)](o(332)),i=this[o(281)][o(324)](t=>t.id===n),s=this[o(281)][i];let r=!1;s[o(277)]=e,this[o(281)][o(303)](i,1);const a=m(this[o(255)][o(288)],this[o(281)],e);return this[o(281)][o(303)](a,0,s),this[o(307)](t,Math[o(293)](i,a))&&(r=!0),r}[u(241)](t,e){const o=u;if(!this[o(249)])return!1;const n=this[o(281)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(249)],digits:String(this[o(281)][o(334)])[o(334)],value:e+1}):String(e+1),n[o(277)][o(333)](o(291))!=i&&(t[o(329)](o(291),i,n[o(277)]),!0)}[u(236)](t){const e=u;if(!this[e(249)]||this[e(281)][e(334)]<2)return!1;if(function(t,o){const n=e;if(t[n(334)]!==o[n(334)])return!1;for(let e=0;e<t[n(334)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(281)][e(305)](t=>t.id),Array[e(233)](this[e(249)][e(252)]())[e(305)](t=>t[e(333)](e(332)))))return!1;let o=!1;for(let n=0;n<this[e(281)][e(334)];n++){const i=this[e(281)][n],s=t[e(295)](i[e(269)]),r=t[e(320)](this[e(249)],n);s[e(323)](r)||(t[e(268)](t[e(250)](i[e(269)]),r),o=!0)}return o}[u(326)](t){const e=u;if(!this[e(281)][e(334)])return!1;const{model:o}=this[e(255)];let n=!1;for(let i=0;i<this[e(281)][e(334)]-1;i++){const s=this[e(281)][i],r=this[e(281)][i+1],a=o[e(295)](s[e(277)]),c=o[e(295)](r[e(277)]);e(289)===a[e(278)](c)&&(this[e(317)](t,s[e(277)]),i=-1,n=!0)}return n}}function h(){const t=["min","createElement","createPositionBefore","init","1052957AYJDSt","$graveyard","10fFNQcl","getFootnotesFormatter","root","rootName","splice","6PRGRfz","map","before","_updateFootnotesCounters","isOfficialPlugin","set","config","8GSJcgi","3556182wtIShC","footnotesDefinitions","singleton","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges","_handleMovedFootnoteReference","footnotes.multiBlock","listenTo","createPositionAt","find","enqueueChange","isEqual","findIndex","paragraph","_ensureFootnotesReferencesHaveProperOrder","getFootnote","4162124JOSady","setAttribute","_insertEmptyFootnotesDefinitionsContainer","12KgtFKZ","footnoteId","getAttribute","length","change:data","low","from","_handleFootnoteReferencesChanges","_handleFootnotesDefinitionsObjectSync","_sortFootnoteDefinitions","footnoteInlineContent","registerPostFixer","has","_handleInsertedFootnoteReference","_updateFootnoteRefCounter","parent","high","_footnoteDefsTracker","add","pluginName","remove","footnoteDefinition","_footnotesDefinitions","createRangeOn","5sDtoYx","getChildren","append","21041501BkDhSI","editor","getFootnotes","_handleRemoveFootnoteReferenceById","962514ARKSIy","FootnotesTracker","_footnoteDefsContainerTracker","8451773nDCxsl","2HFHPgM","getRootNames","differ","getChanges","getFootnotesDefinitionsObjectElement","footnoteRef","move","definition","end","document","indexOf","reset","_handleFootnoteDefinitionsChanges","isPremiumPlugin","createRangeIn","reference","compareWith","childCount","insert","_footnotes","unshift","_footnoteFormatter","some","setFootnoteFormatter","3014652GOXCPQ","push","model","after","_ensureFootnotesDefinitionsContainerExists","footnoteCounter","get"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(279)])return!1;const i=n(e?325:237);return t[n(280)](t[n(294)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(334)])return 0;const i=t[n(295)](o);for(let o=0;o<e[n(334)];o++){const s=e[o],r=t[n(295)](s[n(277)]);if(n(306)===i[n(278)](r))return o}const s=o[n(301)];let r=-1;for(let t=e[n(334)]-1;t>=0;t--)if(e[t][n(277)][n(301)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(271)][n(263)](),c=a[n(272)](s[n(302)]),l=a[c+1];if(l)for(let t=0;t<e[n(334)];t++)if(e[t][n(277)][n(301)][n(302)]===l)return t;return e[n(334)]}const g=y;function w(){const t=["createElement","_getPositionToInsertFootnote","model","isObject","isBlock","end","getFirstRange","plugins","get","609JLiMsh","editor","isEnabled","change","7945592xPUbNu","footnoteRef","FootnotesEditing","5140GUlcvM","insertObject","6629035NySZOv","8972DjDXip","footnoteId","7RBJmMk","_moveSelectionToFootnoteDefinition","document","getItems","2559156kDBGHx","checkChild","38313CgvydA","length","refresh","execute","696616tUAXTC","372538iyAwXN","insert-footnote-command-executed-with-invalid-id","string","test","selection"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=171]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(755966===-parseInt(e(202))/1+-parseInt(e(203))/2+parseInt(e(180))/3*(-parseInt(e(190))/4)+parseInt(e(189))/5+-parseInt(e(196))/6+-parseInt(e(192))/7*(parseInt(e(184))/8)+parseInt(e(198))/9*(parseInt(e(187))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(200)](){const t=g,e=this[t(181)][t(173)][t(194)][t(207)],o=this[t(172)](e);this[t(182)]=!!o}[g(201)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(194)],r=this[e(172)](s);if(!r)return;const a=o[e(178)][e(179)](e(186)),c=t?.[e(191)]??(0,i.uid)();!function(t){const o=e;return o(205)==typeof t&&t[o(199)]>0&&!/\s/[o(206)](t)&&!/^\d/[o(206)](t)}(c)?(0,i.logWarning)(e(204)):(n[e(183)](t=>{const o=e,i=t[o(171)](o(185),{footnoteId:c});n[o(188)](i,r,null)}),a[e(193)](c))}[g(172)](t){const e=g,{model:o}=this[e(181)],{schema:n}=o,i=t[e(177)]();for(const t of i[e(195)]())if(n[e(175)](t)||n[e(174)](t))return null;const s=i[e(176)];return n[e(197)](s,e(185))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764374400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=D;function D(t,e){const o=T();return(D=function(t,e){return o[t-=397]})(t,e)}function T(){const t=["change","dataTransfer","length","2430ujEQsy","getFootnotesDefinitionsObjectElement","toData","_insertEmptyFootnotesDefinitionsContainer","isPremiumPlugin","88740thieDl","get","getFootnotes","root","toView","16SFDsUD","contentInsertion","footnotesDefinitions","element","25528HYkYMY","definition","parse","method","insert","content","isOfficialPlugin","create","init","outputTransformation","data","37377DRCtfg","getAttribute","252027jcwzrz","_handlePasteFootnotesDefinitions","714rOPcJq","350645xkoeTh","setData","document","includes","footnoteRef","getFootnote","application/ckeditor5-footnotes","footnoteId","clipboardInput","htmlProcessor","stringify","setAttribute","pluginName","remove","flatMap","listenTo","editor","selection","1836258aZTdMH","391338EiqgNB","requires","reduce","end","append","getRanges","getFirstRange","createRangeIn","FootnotesClipboard","from","sourceEditorId","editing","createElement","getSelectedBlocks","getData","_handleCopyFootnotesDefinitions","entries","_defineClipboardIntegration","toModel","find","push","footnoteDefinition","drop","add"];return(T=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(231948===-parseInt(e(445))/1+-parseInt(e(467))/2+-parseInt(e(423))/3+parseInt(e(428))/4*(-parseInt(e(448))/5)+parseInt(e(466))/6+-parseInt(e(447))/7*(parseInt(e(432))/8)+-parseInt(e(443))/9*(-parseInt(e(418))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(460)](){return A(399)}static get[A(468)](){return[I,S.ClipboardPipeline]}static get[A(438)](){return!0}static get[A(422)](){return!0}[A(440)](){this[A(408)]()}[A(408)](){const t=A;this[t(406)](),this[t(446)]()}[A(406)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(424)](S.ClipboardPipeline),s=o[t(424)](d);this[t(463)](i,t(441),(o,i)=>{const r=t,a=L(n[r(398)](i[r(437)]));if(!a[r(417)])return;const c=s[r(425)](),l=a[r(469)]((t,o)=>{const n=r,i=c[n(410)](t=>t.id===o);if(i){const o=e[n(442)][n(427)](i[n(433)],{isClipboardPipeline:!0}),s=e[n(442)][n(457)][n(420)](o);t[i.id]=s}return t},Object[r(439)](null));i[r(416)][r(449)](r(454),JSON[r(458)](l))})}[A(446)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(402)],r=n[t(424)](S.ClipboardPipeline),a=n[t(424)](d);let c=null;this[t(463)](s[t(450)],t(456),(e,o)=>{const n=t,i=o[n(416)][n(405)](n(454));c=i?JSON[n(434)](i):null}),this[t(463)](r,t(429),(n,s)=>{const r=t,l=s[r(401)]===this[r(464)].id;l&&r(413)===s[r(435)]||o[r(415)](t=>{const n=r;let u=a[n(419)]();const f=!!u&&Array[n(400)](o[n(450)][n(465)][n(404)]())[n(451)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(398)](e))n.is(o(431),o(430))&&i[o(411)](n);for(const e of i)t[o(461)](e)}(t,s[n(437)]),!c)return;const{selection:d}=o[n(450)],h=d[n(397)]()[n(426)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(398)](e))if(n.is(o(431),o(430)))return n;return null}(t,s[n(437)]),u||=a[n(421)](t,h));const p=Array[n(400)](d[n(472)]())[n(462)](L),m=function(t,e,o){const s=n,r=Object[s(439)](null);for(const{item:n}of t[s(398)](e))if(n.is(s(431),s(452))){const e=n[s(444)](s(455));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(459)](s(455),r[e],n)}return r}(t,s[n(437)],t=>{const e=n;return!l||!!a[e(453)](t)&&!p[e(451)](t)});for(const[o,i]of Object[n(407)](c)){const s=m[o]||o,r=t[n(403)](n(412),{footnoteId:s}),a=e[n(442)][n(457)][n(427)](i),c=e[n(442)][n(409)](a,r);t[n(471)](c,r),t[n(436)](r,u,n(470))}c=null})})}}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(431),e(452))&&o[e(414)](n[e(444)](e(455)));return Array[e(400)](o)}var N=o(311),O=o(355),R=o(929),V=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),Q=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=W(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();V()(Q.A,q);Q.A&&Q.A.locals&&Q.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(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 J=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=487]})(t,e)}function $(){var t=["requires","744yheebv","isOfficialPlugin","147wqEmkM","72088DzordO","isPremiumPlugin","6190nNhMEB","196508mQfmiL","pluginName","Footnotes","284516nCnUck","1608030hToJFw","403668QmWaXQ","13779duNCoz","1880dTRKiQ"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(210870===-parseInt(e(491))/1+parseInt(e(494))/2+-parseInt(e(496))/3+-parseInt(e(500))/4*(-parseInt(e(490))/5)+parseInt(e(495))/6+-parseInt(e(487))/7*(-parseInt(e(488))/8)+parseInt(e(497))/9*(-parseInt(e(498))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Z extends t.Plugin{static get[J(492)](){return J(493)}static get[J(499)](){return[I,_,G]}static get[J(501)](){return!0}static get[J(489)](){return!0}}const tt=ot;function et(){const t=["34786GsVCYf","upper-latin","7374ZKAqCO","1445NygWIn","1975344UsxAdA","1375590fMzkCf","lower-alpha","595071nZPeyU","upper-alpha","lower-roman","upper-roman","lower-latin","9095493HHmPuj","476fhiWWQ","decimal-leading-zero","12615CxHXZK","17loMcFh","decimal","80Azhwru"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=496]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(404545===parseInt(e(501))/1*(parseInt(e(504))/2)+-parseInt(e(500))/3*(parseInt(e(498))/4)+-parseInt(e(507))/5*(-parseInt(e(506))/6)+parseInt(e(508))/7+parseInt(e(503))/8*(parseInt(e(511))/9)+parseInt(e(509))/10+-parseInt(e(497))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[tt(502),tt(499),tt(496),tt(505),tt(510),tt(512),tt(513),tt(514)];function it(t,e){const o=at();return(it=function(t,e){return o[t-=147]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(559253===-parseInt(e(162))/1+parseInt(e(157))/2*(-parseInt(e(155))/3)+parseInt(e(163))/4+-parseInt(e(165))/5+parseInt(e(156))/6+-parseInt(e(148))/7+-parseInt(e(169))/8*(-parseInt(e(158))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[st(159)](){const t=st,{editor:e}=this,o=e[t(164)][t(154)](d)[t(166)]();this[t(149)]=!!o,this[t(147)]=o?.[t(167)](t(160))??null}[st(152)]({value:t}){const e=st,{editor:o}=this,n=o[e(164)][e(154)](d),i=n[e(166)]();i&&nt[e(168)](t)&&o[e(151)][e(150)](o=>{const s=e;o[s(161)](s(160),t,i),n[s(153)](o)})}}function at(){const t=["getAttribute","includes","35776retOcH","value","6956488GQLXHF","isEnabled","change","model","execute","_updateFootnotesCounters","get","1410522lUQgcz","266094mRnoUY","2fYpepD","4419nolYee","refresh","footnotesListStyle","setAttribute","965873XjbhiB","3854352TZQyWE","plugins","1073025rPKJUj","getFootnotesDefinitionsObjectElement"];return(at=function(){return t})()}function ct(){const t=["value","isInteger","change","4VYbFCt","10NjkgfO","6015690YvMCXu","getAttribute","execute","64780NapTsK","8200171UUtENo","_updateFootnotesCounters","9271493MSiFVy","model","plugins","setAttribute","6574976spWPGQ","get","footnotesListStart","refresh","1635222lWReQB","isEnabled","961513wFHdOA","85svIQyI","getFootnotesDefinitionsObjectElement","6lSFSuu"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ct();return(ut=function(t,e){return o[t-=475]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(670714===parseInt(e(490))/1+-parseInt(e(497))/2*(parseInt(e(488))/3)+-parseInt(e(477))/4*(-parseInt(e(491))/5)+-parseInt(e(493))/6*(-parseInt(e(478))/7)+-parseInt(e(484))/8+-parseInt(e(499))/9*(parseInt(e(498))/10)+parseInt(e(480))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[lt(487)](){const t=lt,{editor:e}=this,o=e[t(482)][t(485)](d)[t(492)]();this[t(489)]=!!o,this[t(494)]=o?.[t(475)](t(486))??null}[lt(476)]({value:t}){const e=lt,{editor:o}=this,n=o[e(482)][e(485)](d),i=n[e(492)]();i&&Number[e(495)](t)&&o[e(481)][e(496)](o=>{const s=e;o[s(483)](s(486),t,i),n[s(479)](o)})}}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=316]})(t,e)}function pt(){const t=["define","62652axNCON","_getDefaultStartIndex","toViewElement","1035702OuRyyy","padStart","setStyle","getChildren","max","writer","isPremiumPlugin","type","upper-roman","start","setAttribute","consume","add","model","element","footnotesListStyle","FootnotesPropertiesEditing","_defineConverters","differ","insert","commands","checkAttribute","322HesPdK","_defineSchema","plugins","downcast","19982yEKuUf","nodeAfter","pluginName","fromCharCode","getItems","1556628WPCMOL","modelCursor","434922rRCWit","consumable","editor","decimal-leading-zero","requires","lower-roman","52424LBECfC","createRangeOn","2519ehJBFY","viewItem","footnotesStyle","toLowerCase","footnotesDefinitions","schema","_updateFootnotesCounters","footnotes-list","getStyle","document","setFootnoteFormatter","parseInt","_getDefaultListStyle","for","footnotesListStart","name","item","upper-alpha","extend","toUpperCase","attribute:footnotesListStyle:footnotesDefinitions","isNaN","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","find","registerPostFixer","lower-latin","lower-alpha","10aZIwxx","2uQeXfw","_defineFormatter","from","config","hasClass","footnotesStart","$text","removeStyle","upper-latin","element:ol","get","5PJyNFe","floor","getAttribute","1568313CKjAoG","upcast","list-style-type","_definePostfixer","init","isOfficialPlugin","getChanges","attribute:footnotesListStart:footnotesDefinitions","parent","mapper","position","footnotes.footnotesProperties.defaultListStyle","_formatFootnoteListValue","decimal","hasAttribute"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(377572===parseInt(e(411))/1*(-parseInt(e(352))/2)+-parseInt(e(366))/3+-parseInt(e(416))/4+-parseInt(e(363))/5*(parseInt(e(418))/6)+parseInt(e(407))/7*(parseInt(e(321))/8)+-parseInt(e(385))/9*(parseInt(e(351))/10)+-parseInt(e(323))/11*(-parseInt(e(382))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(413)](){return dt(401)}static get[dt(319)](){return[I,d]}static get[dt(371)](){return!0}static get[dt(391)](){return!0}[dt(370)](){const t=dt,{editor:e}=this;e[t(355)][t(381)](t(377),t(379)),e[t(355)][t(381)](t(346),1),e[t(405)][t(397)](t(325),new rt(e)),e[t(405)][t(397)](t(357),new ft(e)),this[t(408)](),this[t(402)](),this[t(353)](),this[t(369)]()}[dt(408)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(341)](t(327),{allowAttributes:[t(400),t(337)]})}[dt(402)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(367))[t(397)](e=>{const o=t;e.on(o(361),(t,e,n)=>{const s=o,r=e[s(324)],a=e[s(417)]?.[s(374)];r[s(356)](s(330))&&a?.is(s(399),s(327))&&(function(t,e,o,n){const i=s;if(!n[i(406)](e,i(337)))return;let r=1;const a=o[i(316)][i(396)](t,{attributes:i(394)});if(a){const e=Number[i(334)](t[i(365)](i(394)),10);Number[i(344)](e)||(r=e)}!a&&e[i(380)](i(337))||o[i(390)][i(395)](i(337),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(406)](e,i(400)))return;let r=i(379),a=!1;if(o[i(316)][i(396)](t,{attributes:i(392)})){const e={1:i(379),a:i(350),A:i(340),i:i(320),I:i(393)}[t[i(365)](i(392))];e&&(r=e),a=!0}o[i(316)][i(396)](t,{styles:i(368)})&&(r=t[i(331)](i(368)),a=!0),!a&&e[i(380)](i(400))||o[i(390)][i(395)](i(400),r,e)}(r,a,n,i))})}),o[t(336)](t(410))[t(397)](e=>{const o=t;e.on(o(373),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;null==r||1===r?n[i(390)][i(345)](i(394),s):n[i(390)][i(395)](i(394),String(r),s)}),e.on(o(343),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;r&&i(379)!==r?n[i(390)][i(387)](i(368),r,s):n[i(390)][i(359)](i(368),s)})})}[dt(369)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(409)][t(362)](d),i=this[t(335)](),s=this[t(383)]();o[t(332)][t(348)](e=>{const r=t,a=o[r(332)][r(403)][r(372)]();let c=!1;for(const t of a){if(r(404)!==t[r(392)]||r(358)===t[r(338)])continue;const n=o[r(322)](t[r(376)][r(412)]);for(const t of n[r(415)]())t.is(r(399),r(327))&&(!t[r(380)](r(337))&&o[r(328)][r(406)](t,r(337))&&(e[r(395)](r(337),s,t),c=!0),!t[r(380)](r(400))&&o[r(328)][r(406)](t,r(400))&&(e[r(395)](r(400),i,t),c=!0))}return c&&n[r(329)](e),c})}[dt(353)](){const t=dt,{editor:e}=this;e[t(409)][t(362)](d)[t(333)](e=>this[t(378)](e))}[dt(335)](){const t=dt;return this[t(317)][t(355)][t(362)](t(377))}[dt(383)](){const t=dt;return this[t(317)][t(355)][t(362)](t(346))}[dt(378)]({container:t,value:e,digits:o}){const n=dt,i=t[n(365)](n(400)),s=t[n(365)](n(337)),r=Math[n(364)](e)+(s??1)-1;switch(i){case n(318):return function(t,e){const o=n;return String(t)[o(386)](e,"0")}(r,Math[n(389)](2,o));case n(350):case n(349):return wt(r,!1);case n(340):case n(360):return wt(r,!0);case n(320):return bt(r,!1);case n(393):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(384)](t);return Array[o(354)](n[o(388)]())[o(347)](t=>t.is(o(399),"ol")&&t[o(356)](o(330)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(414)](97+t)+n,i=Math[o(364)]((i-1)/26)}return e?n[o(342)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(326)]()}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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();V()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=202]})(t,e)}function Et(){var t=["687412GiWEhQ","FootnotesProperties","355851CviBxQ","337709aEprOZ","3IPqMIR","isOfficialPlugin","371304zJqKaK","258MNCxQP","587055umPXQx","32hJbEsy","13255HksAyA","70wNCJex","requires","isPremiumPlugin","484252niESUG","297OSEOIB","pluginName"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(205636===-parseInt(e(215))/1+-parseInt(e(212))/2+-parseInt(e(216))/3*(parseInt(e(209))/4)+-parseInt(e(205))/5*(-parseInt(e(202))/6)+parseInt(e(203))/7*(parseInt(e(204))/8)+-parseInt(e(214))/9*(parseInt(e(206))/10)+-parseInt(e(210))/11*(-parseInt(e(218))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(211)](){return Ft(213)}static get[Ft(207)](){return[mt,Ct]}static get[Ft(217)](){return!0}static get[Ft(208)](){return!0}}function St(t,e){var o=At();return(St=function(t,e){return o[t-=434]})(t,e)}function At(){var t=["1749786uLYNWh","22MDYaTy","10517418XYxImK","8632360McDoqQ","3265586MGjmkb","14095736eMhIVh","1gBHAom","10kkmeOl","7bqTxsO","6151516adPaFI","765477RLeezo"];return(At=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(970908===parseInt(e(443))/1*(parseInt(e(441))/2)+parseInt(e(436))/3+-parseInt(e(435))/4+parseInt(e(444))/5*(-parseInt(e(437))/6)+-parseInt(e(434))/7*(-parseInt(e(442))/8)+parseInt(e(439))/9+-parseInt(e(440))/10*(parseInt(e(438))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},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:()=>Z,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(989130===-parseInt(e(146))/1+-parseInt(e(135))/2+-parseInt(e(132))/3+-parseInt(e(123))/4*(parseInt(e(141))/5)+parseInt(e(155))/6+parseInt(e(144))/7*(parseInt(e(148))/8)+parseInt(e(125))/9*(parseInt(e(139))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(138)];[r(127)];[r(128)];[r(140)]=new Map;constructor(t,e){const o=r;this[o(138)]=t,this[o(127)]=e[o(120)],this[o(128)]=e[o(149)]}[r(156)](){const t=r;this[t(140)][t(130)]()}[r(160)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(154)===i[e(151)]&&e(119)!==i[e(159)]&&i[e(134)][e(147)]){const t=this[e(138)][e(118)](i[e(134)][e(147)]);for(const o of t[e(122)]()){if(!o.is(e(133),this[e(127)]))continue;const t=this[e(128)](o);n[e(137)](t)||n[e(136)](t,[]),n[e(145)](t)[e(161)](o)}}if(e(143)===i[e(151)]&&i[e(159)]===this[e(127)]){const t=this[e(128)]({getAttribute:t=>i[e(153)][e(145)](t)});o[e(126)](t)}}for(const[t,n]of this[e(140)])e(152)===n[e(131)][e(157)]&&o[e(126)](t);for(const t of o)this[e(140)][e(142)](t);for(const[t,o]of n)this[e(140)][e(136)](t,o[o[e(158)]-1]);const i=new Set;for(const[t,s]of n)o[e(137)](t)&&(i[e(126)](s[0]),s[e(158)]>1?n[e(136)](t,s[e(150)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(124)](o),inserted:Array[e(124)](n[e(129)]())[e(121)](),moved:Array[e(124)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=118]})(t,e)}function l(){const t=["_trackedElements","160NGnIEz","delete","remove","21xnWEYG","get","1227960JvEqRD","nodeAfter","3098816FerbDC","getElementKey","slice","type","$graveyard","attributes","insert","7577910GNLqyf","reset","rootName","length","name","getChanges","push","createRangeOn","$text","elementName","flat","getItems","201124ARxWXN","from","275841pTPHHX","add","_elementName","_getElementKey","values","clear","root","5390679tRcCVu","element","position","3473110LdBOAy","set","has","_model","1610IhNNOQ"];return(l=function(){return t})()}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=231]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543304===parseInt(e(297))/1*(-parseInt(e(262))/2)+parseInt(e(286))/3+parseInt(e(328))/4*(parseInt(e(251))/5)+parseInt(e(304))/6*(parseInt(e(312))/7)+parseInt(e(311))/8*(-parseInt(e(258))/9)+-parseInt(e(299))/10*(-parseInt(e(261))/11)+parseInt(e(331))/12*(-parseInt(e(254))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(281)]=[];[u(249)]=null;[u(283)]=null;[u(260)];[u(315)];[u(244)];static get[u(246)](){return u(259)}static get[u(308)](){return!0}static get[u(275)](){return!0}constructor(t){const e=u;super(t),this[e(260)]=new a(this[e(255)][e(288)],{elementName:e(313),getElementKey:()=>e(314)}),this[e(315)]=new a(this[e(255)][e(288)],{elementName:e(267),getElementKey:t=>t[e(333)](e(332))}),this[e(244)]=new a(this[e(255)][e(288)],{elementName:e(248),getElementKey:t=>t[e(333)](e(332))})}[u(296)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(271)][t(238)](e=>{const n=t,i=o[n(271)][n(264)][n(265)]();let s=!1;return this[n(316)](e,i)&&(s=!0),this[n(274)](e,i)&&(s=!0),this[n(234)](e,i)&&(s=!0),this[n(326)](e)&&(s=!0),this[n(235)](e)&&(s=!0),this[n(236)](e)&&(s=!0),s}),this[t(319)](o[t(271)],t(231),()=>{const e=t;o[e(322)]({isUndoable:!1},t=>{this[e(290)](t)})},{priority:t(232)}),this[t(319)](n,t(309),()=>{const e=t;this[e(281)]=[],this[e(260)][e(273)](),this[e(315)][e(273)](),this[e(244)][e(273)]()},{priority:t(243)})}[u(266)](){return this[u(249)]}[u(327)](t){const e=u;return this[e(281)][e(321)](e=>e.id===t)||null}[u(256)](){const t=u;return Array[t(233)](this[t(281)])}[u(300)](){return this[u(283)]}[u(285)](t){this[u(283)]=t}[u(307)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(281)][o(334)];i++)this[o(241)](t,i)&&(n=!0);return n}[u(330)](t,e){const o=u,n=t[o(294)](o(313),{});return t[o(253)](n,e),this[o(249)]=n,n}[u(290)](t){const e=u;if(!this[e(281)][e(334)]||this[e(249)])return;const o=this[e(281)][0][e(277)][e(301)],n=this[e(330)](t,o);for(const o of this[e(281)])o[e(269)][e(242)]||t[e(280)](o[e(269)],n,e(270));this[e(307)](t)}[u(316)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(260)][o(265)](e);if(r[o(334)]&&(this[o(249)]=r[0]),i[o(334)])if(i[o(334)]>1||this[o(249)]&&i[o(284)](t=>t!==this[o(249)])){const e=t[o(294)](o(313),{}),s=[];this[o(249)]&&s[o(287)](this[o(249)]),s[o(287)](...i),t[o(280)](e,s[0],o(306));for(const n of s)t[o(268)](t[o(276)](n),t[o(320)](e,o(270))),t[o(247)](n);this[o(249)]=e,this[o(307)](t),n=!0}else this[o(249)]=i[0];if(s[o(334)]&&o(298)===this[o(249)]?.[o(301)][o(302)]){for(const e of this[o(281)])t[o(247)](e[o(277)]),n=!0;this[o(281)]=[],this[o(249)]=null}return n}[u(274)](t,e){const o=u;let n=!1;const i=this[o(255)][o(310)][o(292)](o(318)),{inserted:s,moved:r}=this[o(244)][o(265)](e);for(const e of[...r,...s]){const s=e[o(333)](o(332)),r=this[o(327)](s);r&&(r[o(269)]=e),p(t,i,e)&&(n=!0)}return n}[u(234)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(315)][o(265)](e);for(const e of i)this[o(257)](t,e)&&(n=!0);for(const e of s)this[o(240)](t,e)&&(n=!0);for(const e of r)this[o(317)](t,e)&&(n=!0);return n}[u(235)](t){const e=u;if(!this[e(249)])return!1;let o=!1;if(this[e(249)][e(279)]!==this[e(281)][e(334)]){const n=[];for(const t of this[e(249)][e(252)]()){const i=t[e(333)](e(332));this[e(327)](i)||(n[e(282)](t),o=!0)}for(const o of n)t[e(247)](o)}const n=new Set,i=[];for(const t of this[e(249)][e(252)]()){const s=t[e(333)](e(332));n[e(239)](s)?(i[e(282)](t),o=!0):n[e(245)](s)}for(const o of i)t[e(247)](o);return this[e(249)][e(279)]||(t[e(247)](this[e(249)]),this[e(249)]=null,o=!0),o}[u(240)](t,e){const o=u;if(this[o(281)][o(321)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(333)](o(332)),s=this[o(281)][o(324)](t=>t.id===i);-1!==s&&(t[o(247)](this[o(281)][s][o(277)]),this[o(281)][o(303)](s,1),n=!0);let r=this[o(249)]?function(t,e){const n=o;for(const o of t[n(252)]())if(o[n(333)](n(332))===e)return o;return null}(this[o(249)],i):null;r||(r=t[o(294)](o(248),{footnoteId:i}),this[o(249)]&&(t[o(280)](r,this[o(249)],o(270)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(255)][o(288)],this[o(281)],e);this[o(281)][o(303)](c,0,a);let l=c;return-1!==s&&(l=Math[o(293)](c,s)),this[o(307)](t,l)&&(n=!0),n}[u(257)](t,e){const o=u,n=this[o(281)][o(324)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(281)][n];return o(298)!==s[o(269)][o(301)][o(302)]&&(t[o(247)](s[o(269)]),i=!0),this[o(281)][o(303)](n,1),this[o(307)](t,n)&&(i=!0),i}[u(317)](t,e){const o=u,n=e[o(333)](o(332)),i=this[o(281)][o(324)](t=>t.id===n),s=this[o(281)][i];let r=!1;s[o(277)]=e,this[o(281)][o(303)](i,1);const a=m(this[o(255)][o(288)],this[o(281)],e);return this[o(281)][o(303)](a,0,s),this[o(307)](t,Math[o(293)](i,a))&&(r=!0),r}[u(241)](t,e){const o=u;if(!this[o(249)])return!1;const n=this[o(281)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(249)],digits:String(this[o(281)][o(334)])[o(334)],value:e+1}):String(e+1),n[o(277)][o(333)](o(291))!=i&&(t[o(329)](o(291),i,n[o(277)]),!0)}[u(236)](t){const e=u;if(!this[e(249)]||this[e(281)][e(334)]<2)return!1;if(function(t,o){const n=e;if(t[n(334)]!==o[n(334)])return!1;for(let e=0;e<t[n(334)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(281)][e(305)](t=>t.id),Array[e(233)](this[e(249)][e(252)]())[e(305)](t=>t[e(333)](e(332)))))return!1;let o=!1;for(let n=0;n<this[e(281)][e(334)];n++){const i=this[e(281)][n],s=t[e(295)](i[e(269)]),r=t[e(320)](this[e(249)],n);s[e(323)](r)||(t[e(268)](t[e(250)](i[e(269)]),r),o=!0)}return o}[u(326)](t){const e=u;if(!this[e(281)][e(334)])return!1;const{model:o}=this[e(255)];let n=!1;for(let i=0;i<this[e(281)][e(334)]-1;i++){const s=this[e(281)][i],r=this[e(281)][i+1],a=o[e(295)](s[e(277)]),c=o[e(295)](r[e(277)]);e(289)===a[e(278)](c)&&(this[e(317)](t,s[e(277)]),i=-1,n=!0)}return n}}function h(){const t=["min","createElement","createPositionBefore","init","1052957AYJDSt","$graveyard","10fFNQcl","getFootnotesFormatter","root","rootName","splice","6PRGRfz","map","before","_updateFootnotesCounters","isOfficialPlugin","set","config","8GSJcgi","3556182wtIShC","footnotesDefinitions","singleton","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges","_handleMovedFootnoteReference","footnotes.multiBlock","listenTo","createPositionAt","find","enqueueChange","isEqual","findIndex","paragraph","_ensureFootnotesReferencesHaveProperOrder","getFootnote","4162124JOSady","setAttribute","_insertEmptyFootnotesDefinitionsContainer","12KgtFKZ","footnoteId","getAttribute","length","change:data","low","from","_handleFootnoteReferencesChanges","_handleFootnotesDefinitionsObjectSync","_sortFootnoteDefinitions","footnoteInlineContent","registerPostFixer","has","_handleInsertedFootnoteReference","_updateFootnoteRefCounter","parent","high","_footnoteDefsTracker","add","pluginName","remove","footnoteDefinition","_footnotesDefinitions","createRangeOn","5sDtoYx","getChildren","append","21041501BkDhSI","editor","getFootnotes","_handleRemoveFootnoteReferenceById","962514ARKSIy","FootnotesTracker","_footnoteDefsContainerTracker","8451773nDCxsl","2HFHPgM","getRootNames","differ","getChanges","getFootnotesDefinitionsObjectElement","footnoteRef","move","definition","end","document","indexOf","reset","_handleFootnoteDefinitionsChanges","isPremiumPlugin","createRangeIn","reference","compareWith","childCount","insert","_footnotes","unshift","_footnoteFormatter","some","setFootnoteFormatter","3014652GOXCPQ","push","model","after","_ensureFootnotesDefinitionsContainerExists","footnoteCounter","get"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(279)])return!1;const i=n(e?325:237);return t[n(280)](t[n(294)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(334)])return 0;const i=t[n(295)](o);for(let o=0;o<e[n(334)];o++){const s=e[o],r=t[n(295)](s[n(277)]);if(n(306)===i[n(278)](r))return o}const s=o[n(301)];let r=-1;for(let t=e[n(334)]-1;t>=0;t--)if(e[t][n(277)][n(301)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(271)][n(263)](),c=a[n(272)](s[n(302)]),l=a[c+1];if(l)for(let t=0;t<e[n(334)];t++)if(e[t][n(277)][n(301)][n(302)]===l)return t;return e[n(334)]}const g=y;function w(){const t=["createElement","_getPositionToInsertFootnote","model","isObject","isBlock","end","getFirstRange","plugins","get","609JLiMsh","editor","isEnabled","change","7945592xPUbNu","footnoteRef","FootnotesEditing","5140GUlcvM","insertObject","6629035NySZOv","8972DjDXip","footnoteId","7RBJmMk","_moveSelectionToFootnoteDefinition","document","getItems","2559156kDBGHx","checkChild","38313CgvydA","length","refresh","execute","696616tUAXTC","372538iyAwXN","insert-footnote-command-executed-with-invalid-id","string","test","selection"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=171]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(755966===-parseInt(e(202))/1+-parseInt(e(203))/2+parseInt(e(180))/3*(-parseInt(e(190))/4)+parseInt(e(189))/5+-parseInt(e(196))/6+-parseInt(e(192))/7*(parseInt(e(184))/8)+parseInt(e(198))/9*(parseInt(e(187))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(200)](){const t=g,e=this[t(181)][t(173)][t(194)][t(207)],o=this[t(172)](e);this[t(182)]=!!o}[g(201)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(194)],r=this[e(172)](s);if(!r)return;const a=o[e(178)][e(179)](e(186)),c=t?.[e(191)]??(0,i.uid)();!function(t){const o=e;return o(205)==typeof t&&t[o(199)]>0&&!/\s/[o(206)](t)&&!/^\d/[o(206)](t)}(c)?(0,i.logWarning)(e(204)):(n[e(183)](t=>{const o=e,i=t[o(171)](o(185),{footnoteId:c});n[o(188)](i,r,null)}),a[e(193)](c))}[g(172)](t){const e=g,{model:o}=this[e(181)],{schema:n}=o,i=t[e(177)]();for(const t of i[e(195)]())if(n[e(175)](t)||n[e(174)](t))return null;const s=i[e(176)];return n[e(197)](s,e(185))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764547200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=D;function D(t,e){const o=T();return(D=function(t,e){return o[t-=397]})(t,e)}function T(){const t=["change","dataTransfer","length","2430ujEQsy","getFootnotesDefinitionsObjectElement","toData","_insertEmptyFootnotesDefinitionsContainer","isPremiumPlugin","88740thieDl","get","getFootnotes","root","toView","16SFDsUD","contentInsertion","footnotesDefinitions","element","25528HYkYMY","definition","parse","method","insert","content","isOfficialPlugin","create","init","outputTransformation","data","37377DRCtfg","getAttribute","252027jcwzrz","_handlePasteFootnotesDefinitions","714rOPcJq","350645xkoeTh","setData","document","includes","footnoteRef","getFootnote","application/ckeditor5-footnotes","footnoteId","clipboardInput","htmlProcessor","stringify","setAttribute","pluginName","remove","flatMap","listenTo","editor","selection","1836258aZTdMH","391338EiqgNB","requires","reduce","end","append","getRanges","getFirstRange","createRangeIn","FootnotesClipboard","from","sourceEditorId","editing","createElement","getSelectedBlocks","getData","_handleCopyFootnotesDefinitions","entries","_defineClipboardIntegration","toModel","find","push","footnoteDefinition","drop","add"];return(T=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(231948===-parseInt(e(445))/1+-parseInt(e(467))/2+-parseInt(e(423))/3+parseInt(e(428))/4*(-parseInt(e(448))/5)+parseInt(e(466))/6+-parseInt(e(447))/7*(parseInt(e(432))/8)+-parseInt(e(443))/9*(-parseInt(e(418))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(460)](){return A(399)}static get[A(468)](){return[I,S.ClipboardPipeline]}static get[A(438)](){return!0}static get[A(422)](){return!0}[A(440)](){this[A(408)]()}[A(408)](){const t=A;this[t(406)](),this[t(446)]()}[A(406)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(424)](S.ClipboardPipeline),s=o[t(424)](d);this[t(463)](i,t(441),(o,i)=>{const r=t,a=L(n[r(398)](i[r(437)]));if(!a[r(417)])return;const c=s[r(425)](),l=a[r(469)]((t,o)=>{const n=r,i=c[n(410)](t=>t.id===o);if(i){const o=e[n(442)][n(427)](i[n(433)],{isClipboardPipeline:!0}),s=e[n(442)][n(457)][n(420)](o);t[i.id]=s}return t},Object[r(439)](null));i[r(416)][r(449)](r(454),JSON[r(458)](l))})}[A(446)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(402)],r=n[t(424)](S.ClipboardPipeline),a=n[t(424)](d);let c=null;this[t(463)](s[t(450)],t(456),(e,o)=>{const n=t,i=o[n(416)][n(405)](n(454));c=i?JSON[n(434)](i):null}),this[t(463)](r,t(429),(n,s)=>{const r=t,l=s[r(401)]===this[r(464)].id;l&&r(413)===s[r(435)]||o[r(415)](t=>{const n=r;let u=a[n(419)]();const f=!!u&&Array[n(400)](o[n(450)][n(465)][n(404)]())[n(451)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(398)](e))n.is(o(431),o(430))&&i[o(411)](n);for(const e of i)t[o(461)](e)}(t,s[n(437)]),!c)return;const{selection:d}=o[n(450)],h=d[n(397)]()[n(426)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(398)](e))if(n.is(o(431),o(430)))return n;return null}(t,s[n(437)]),u||=a[n(421)](t,h));const p=Array[n(400)](d[n(472)]())[n(462)](L),m=function(t,e,o){const s=n,r=Object[s(439)](null);for(const{item:n}of t[s(398)](e))if(n.is(s(431),s(452))){const e=n[s(444)](s(455));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(459)](s(455),r[e],n)}return r}(t,s[n(437)],t=>{const e=n;return!l||!!a[e(453)](t)&&!p[e(451)](t)});for(const[o,i]of Object[n(407)](c)){const s=m[o]||o,r=t[n(403)](n(412),{footnoteId:s}),a=e[n(442)][n(457)][n(427)](i),c=e[n(442)][n(409)](a,r);t[n(471)](c,r),t[n(436)](r,u,n(470))}c=null})})}}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(431),e(452))&&o[e(414)](n[e(444)](e(455)));return Array[e(400)](o)}var N=o(311),O=o(355),R=o(929),V=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),Q=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=W(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();V()(Q.A,q);Q.A&&Q.A.locals&&Q.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(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 J=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=487]})(t,e)}function $(){var t=["requires","744yheebv","isOfficialPlugin","147wqEmkM","72088DzordO","isPremiumPlugin","6190nNhMEB","196508mQfmiL","pluginName","Footnotes","284516nCnUck","1608030hToJFw","403668QmWaXQ","13779duNCoz","1880dTRKiQ"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(210870===-parseInt(e(491))/1+parseInt(e(494))/2+-parseInt(e(496))/3+-parseInt(e(500))/4*(-parseInt(e(490))/5)+parseInt(e(495))/6+-parseInt(e(487))/7*(-parseInt(e(488))/8)+parseInt(e(497))/9*(-parseInt(e(498))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Z extends t.Plugin{static get[J(492)](){return J(493)}static get[J(499)](){return[I,_,G]}static get[J(501)](){return!0}static get[J(489)](){return!0}}const tt=ot;function et(){const t=["34786GsVCYf","upper-latin","7374ZKAqCO","1445NygWIn","1975344UsxAdA","1375590fMzkCf","lower-alpha","595071nZPeyU","upper-alpha","lower-roman","upper-roman","lower-latin","9095493HHmPuj","476fhiWWQ","decimal-leading-zero","12615CxHXZK","17loMcFh","decimal","80Azhwru"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=496]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(404545===parseInt(e(501))/1*(parseInt(e(504))/2)+-parseInt(e(500))/3*(parseInt(e(498))/4)+-parseInt(e(507))/5*(-parseInt(e(506))/6)+parseInt(e(508))/7+parseInt(e(503))/8*(parseInt(e(511))/9)+parseInt(e(509))/10+-parseInt(e(497))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[tt(502),tt(499),tt(496),tt(505),tt(510),tt(512),tt(513),tt(514)];function it(t,e){const o=at();return(it=function(t,e){return o[t-=147]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(559253===-parseInt(e(162))/1+parseInt(e(157))/2*(-parseInt(e(155))/3)+parseInt(e(163))/4+-parseInt(e(165))/5+parseInt(e(156))/6+-parseInt(e(148))/7+-parseInt(e(169))/8*(-parseInt(e(158))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[st(159)](){const t=st,{editor:e}=this,o=e[t(164)][t(154)](d)[t(166)]();this[t(149)]=!!o,this[t(147)]=o?.[t(167)](t(160))??null}[st(152)]({value:t}){const e=st,{editor:o}=this,n=o[e(164)][e(154)](d),i=n[e(166)]();i&&nt[e(168)](t)&&o[e(151)][e(150)](o=>{const s=e;o[s(161)](s(160),t,i),n[s(153)](o)})}}function at(){const t=["getAttribute","includes","35776retOcH","value","6956488GQLXHF","isEnabled","change","model","execute","_updateFootnotesCounters","get","1410522lUQgcz","266094mRnoUY","2fYpepD","4419nolYee","refresh","footnotesListStyle","setAttribute","965873XjbhiB","3854352TZQyWE","plugins","1073025rPKJUj","getFootnotesDefinitionsObjectElement"];return(at=function(){return t})()}function ct(){const t=["value","isInteger","change","4VYbFCt","10NjkgfO","6015690YvMCXu","getAttribute","execute","64780NapTsK","8200171UUtENo","_updateFootnotesCounters","9271493MSiFVy","model","plugins","setAttribute","6574976spWPGQ","get","footnotesListStart","refresh","1635222lWReQB","isEnabled","961513wFHdOA","85svIQyI","getFootnotesDefinitionsObjectElement","6lSFSuu"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ct();return(ut=function(t,e){return o[t-=475]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(670714===parseInt(e(490))/1+-parseInt(e(497))/2*(parseInt(e(488))/3)+-parseInt(e(477))/4*(-parseInt(e(491))/5)+-parseInt(e(493))/6*(-parseInt(e(478))/7)+-parseInt(e(484))/8+-parseInt(e(499))/9*(parseInt(e(498))/10)+parseInt(e(480))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[lt(487)](){const t=lt,{editor:e}=this,o=e[t(482)][t(485)](d)[t(492)]();this[t(489)]=!!o,this[t(494)]=o?.[t(475)](t(486))??null}[lt(476)]({value:t}){const e=lt,{editor:o}=this,n=o[e(482)][e(485)](d),i=n[e(492)]();i&&Number[e(495)](t)&&o[e(481)][e(496)](o=>{const s=e;o[s(483)](s(486),t,i),n[s(479)](o)})}}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=316]})(t,e)}function pt(){const t=["define","62652axNCON","_getDefaultStartIndex","toViewElement","1035702OuRyyy","padStart","setStyle","getChildren","max","writer","isPremiumPlugin","type","upper-roman","start","setAttribute","consume","add","model","element","footnotesListStyle","FootnotesPropertiesEditing","_defineConverters","differ","insert","commands","checkAttribute","322HesPdK","_defineSchema","plugins","downcast","19982yEKuUf","nodeAfter","pluginName","fromCharCode","getItems","1556628WPCMOL","modelCursor","434922rRCWit","consumable","editor","decimal-leading-zero","requires","lower-roman","52424LBECfC","createRangeOn","2519ehJBFY","viewItem","footnotesStyle","toLowerCase","footnotesDefinitions","schema","_updateFootnotesCounters","footnotes-list","getStyle","document","setFootnoteFormatter","parseInt","_getDefaultListStyle","for","footnotesListStart","name","item","upper-alpha","extend","toUpperCase","attribute:footnotesListStyle:footnotesDefinitions","isNaN","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","find","registerPostFixer","lower-latin","lower-alpha","10aZIwxx","2uQeXfw","_defineFormatter","from","config","hasClass","footnotesStart","$text","removeStyle","upper-latin","element:ol","get","5PJyNFe","floor","getAttribute","1568313CKjAoG","upcast","list-style-type","_definePostfixer","init","isOfficialPlugin","getChanges","attribute:footnotesListStart:footnotesDefinitions","parent","mapper","position","footnotes.footnotesProperties.defaultListStyle","_formatFootnoteListValue","decimal","hasAttribute"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(377572===parseInt(e(411))/1*(-parseInt(e(352))/2)+-parseInt(e(366))/3+-parseInt(e(416))/4+-parseInt(e(363))/5*(parseInt(e(418))/6)+parseInt(e(407))/7*(parseInt(e(321))/8)+-parseInt(e(385))/9*(parseInt(e(351))/10)+-parseInt(e(323))/11*(-parseInt(e(382))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(413)](){return dt(401)}static get[dt(319)](){return[I,d]}static get[dt(371)](){return!0}static get[dt(391)](){return!0}[dt(370)](){const t=dt,{editor:e}=this;e[t(355)][t(381)](t(377),t(379)),e[t(355)][t(381)](t(346),1),e[t(405)][t(397)](t(325),new rt(e)),e[t(405)][t(397)](t(357),new ft(e)),this[t(408)](),this[t(402)](),this[t(353)](),this[t(369)]()}[dt(408)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(341)](t(327),{allowAttributes:[t(400),t(337)]})}[dt(402)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(367))[t(397)](e=>{const o=t;e.on(o(361),(t,e,n)=>{const s=o,r=e[s(324)],a=e[s(417)]?.[s(374)];r[s(356)](s(330))&&a?.is(s(399),s(327))&&(function(t,e,o,n){const i=s;if(!n[i(406)](e,i(337)))return;let r=1;const a=o[i(316)][i(396)](t,{attributes:i(394)});if(a){const e=Number[i(334)](t[i(365)](i(394)),10);Number[i(344)](e)||(r=e)}!a&&e[i(380)](i(337))||o[i(390)][i(395)](i(337),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(406)](e,i(400)))return;let r=i(379),a=!1;if(o[i(316)][i(396)](t,{attributes:i(392)})){const e={1:i(379),a:i(350),A:i(340),i:i(320),I:i(393)}[t[i(365)](i(392))];e&&(r=e),a=!0}o[i(316)][i(396)](t,{styles:i(368)})&&(r=t[i(331)](i(368)),a=!0),!a&&e[i(380)](i(400))||o[i(390)][i(395)](i(400),r,e)}(r,a,n,i))})}),o[t(336)](t(410))[t(397)](e=>{const o=t;e.on(o(373),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;null==r||1===r?n[i(390)][i(345)](i(394),s):n[i(390)][i(395)](i(394),String(r),s)}),e.on(o(343),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;r&&i(379)!==r?n[i(390)][i(387)](i(368),r,s):n[i(390)][i(359)](i(368),s)})})}[dt(369)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(409)][t(362)](d),i=this[t(335)](),s=this[t(383)]();o[t(332)][t(348)](e=>{const r=t,a=o[r(332)][r(403)][r(372)]();let c=!1;for(const t of a){if(r(404)!==t[r(392)]||r(358)===t[r(338)])continue;const n=o[r(322)](t[r(376)][r(412)]);for(const t of n[r(415)]())t.is(r(399),r(327))&&(!t[r(380)](r(337))&&o[r(328)][r(406)](t,r(337))&&(e[r(395)](r(337),s,t),c=!0),!t[r(380)](r(400))&&o[r(328)][r(406)](t,r(400))&&(e[r(395)](r(400),i,t),c=!0))}return c&&n[r(329)](e),c})}[dt(353)](){const t=dt,{editor:e}=this;e[t(409)][t(362)](d)[t(333)](e=>this[t(378)](e))}[dt(335)](){const t=dt;return this[t(317)][t(355)][t(362)](t(377))}[dt(383)](){const t=dt;return this[t(317)][t(355)][t(362)](t(346))}[dt(378)]({container:t,value:e,digits:o}){const n=dt,i=t[n(365)](n(400)),s=t[n(365)](n(337)),r=Math[n(364)](e)+(s??1)-1;switch(i){case n(318):return function(t,e){const o=n;return String(t)[o(386)](e,"0")}(r,Math[n(389)](2,o));case n(350):case n(349):return wt(r,!1);case n(340):case n(360):return wt(r,!0);case n(320):return bt(r,!1);case n(393):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(384)](t);return Array[o(354)](n[o(388)]())[o(347)](t=>t.is(o(399),"ol")&&t[o(356)](o(330)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(414)](97+t)+n,i=Math[o(364)]((i-1)/26)}return e?n[o(342)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(326)]()}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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();V()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=202]})(t,e)}function Et(){var t=["687412GiWEhQ","FootnotesProperties","355851CviBxQ","337709aEprOZ","3IPqMIR","isOfficialPlugin","371304zJqKaK","258MNCxQP","587055umPXQx","32hJbEsy","13255HksAyA","70wNCJex","requires","isPremiumPlugin","484252niESUG","297OSEOIB","pluginName"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(205636===-parseInt(e(215))/1+-parseInt(e(212))/2+-parseInt(e(216))/3*(parseInt(e(209))/4)+-parseInt(e(205))/5*(-parseInt(e(202))/6)+parseInt(e(203))/7*(parseInt(e(204))/8)+-parseInt(e(214))/9*(parseInt(e(206))/10)+-parseInt(e(210))/11*(-parseInt(e(218))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(211)](){return Ft(213)}static get[Ft(207)](){return[mt,Ct]}static get[Ft(217)](){return!0}static get[Ft(208)](){return!0}}function St(t,e){var o=At();return(St=function(t,e){return o[t-=434]})(t,e)}function At(){var t=["1749786uLYNWh","22MDYaTy","10517418XYxImK","8632360McDoqQ","3265586MGjmkb","14095736eMhIVh","1gBHAom","10kkmeOl","7bqTxsO","6151516adPaFI","765477RLeezo"];return(At=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(970908===parseInt(e(443))/1*(parseInt(e(441))/2)+parseInt(e(436))/3+-parseInt(e(435))/4+parseInt(e(444))/5*(-parseInt(e(437))/6)+-parseInt(e(434))/7*(-parseInt(e(442))/8)+parseInt(e(439))/9+-parseInt(e(440))/10*(parseInt(e(438))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1c8292,Command as _0x1f7936}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x47ae83,isWidget as _0x297299,toWidgetEditable as _0x7b471,WidgetToolbarRepository as _0x2f5df6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x48389b,logWarning as _0x524f11,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1d20ee,ClickObserver as _0x259591}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x24dd9b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2fb7d4,ButtonView as _0xaf85d0,View as _0x3a149b,ViewCollection as _0x4f86dd,FocusCycler as _0x51b0a1,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x5014c0,BalloonPanelView as _0x3f1694,createDropdown as _0x3944d5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x84eeab,IconListStyleDecimal as _0x5279ac,IconListStyleDecimalLeadingZero as _0x42017c,IconListStyleLowerRoman as _0x44ed05,IconListStyleUpperRoman as _0x488017,IconListStyleLowerLatin as _0x3a526c,IconListStyleUpperLatin as _0x5e391c}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3dd7f0,_0x34f35c){this['_model']=_0x3dd7f0,this['_elementName']=_0x34f35c['elementName'],this['_getElementKey']=_0x34f35c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5d3dd6){const _0x1909d4=new Set(),_0x1bd07e=new Map();for(const _0x27cf19 of _0x5d3dd6){if('insert'===_0x27cf19['type']&&'$text'!==_0x27cf19['name']&&_0x27cf19['position']['nodeAfter']){const _0x12a23d=this['_model']['createRangeOn'](_0x27cf19['position']['nodeAfter']);for(const _0x3baba2 of _0x12a23d['getItems']()){if(!_0x3baba2['is']('element',this['_elementName']))continue;const _0x448147=this['_getElementKey'](_0x3baba2);_0x1bd07e['has'](_0x448147)||_0x1bd07e['set'](_0x448147,[]),_0x1bd07e['get'](_0x448147)['push'](_0x3baba2);}}if('remove'===_0x27cf19['type']&&_0x27cf19['name']===this['_elementName']){const _0x35c779=this['_getElementKey']({'getAttribute':_0x5727f2=>_0x27cf19['attributes']['get'](_0x5727f2)});_0x1909d4['add'](_0x35c779);}}for(const [_0x9d9ac0,_0x2c73bd]of this['_trackedElements'])'$graveyard'===_0x2c73bd['root']['rootName']&&_0x1909d4['add'](_0x9d9ac0);for(const _0x5966b3 of _0x1909d4)this['_trackedElements']['delete'](_0x5966b3);for(const [_0x5e2475,_0x4ffffc]of _0x1bd07e)this['_trackedElements']['set'](_0x5e2475,_0x4ffffc[_0x4ffffc['length']-0x1]);const _0x151412=new Set();for(const [_0x53160e,_0x411b9d]of _0x1bd07e)_0x1909d4['has'](_0x53160e)&&(_0x151412['add'](_0x411b9d[0x0]),_0x411b9d['length']>0x1?_0x1bd07e['set'](_0x53160e,_0x411b9d['slice'](0x1)):_0x1bd07e['delete'](_0x53160e),_0x1909d4['delete'](_0x53160e));return{'removed':Array['from'](_0x1909d4),'inserted':Array['from'](_0x1bd07e['values']())['flat'](),'moved':Array['from'](_0x151412)};}}class c extends _0x1c8292{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f4f82){super(_0x3f4f82),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3e60fe=>_0x3e60fe['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x369c89=>_0x369c89['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4fb470}=this,{model:_0x2d6f52,data:_0x5c20f3}=_0x4fb470;_0x2d6f52['document']['registerPostFixer'](_0x45dff5=>{const _0x2d1685=_0x2d6f52['document']['differ']['getChanges']();let _0x44da5b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x45dff5,_0x2d1685)&&(_0x44da5b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x45dff5,_0x2d1685)&&(_0x44da5b=!0x0),this['_handleFootnoteReferencesChanges'](_0x45dff5,_0x2d1685)&&(_0x44da5b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x45dff5)&&(_0x44da5b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x45dff5)&&(_0x44da5b=!0x0),this['_sortFootnoteDefinitions'](_0x45dff5)&&(_0x44da5b=!0x0),_0x44da5b;}),this['listenTo'](_0x2d6f52['document'],'change:data',()=>{_0x2d6f52['enqueueChange']({'isUndoable':!0x1},_0x2335b7=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2335b7);});},{'priority':'low'}),this['listenTo'](_0x5c20f3,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4b4b61){return this['_footnotes']['find'](_0x47a7b7=>_0x47a7b7['id']===_0x4b4b61)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x22b6d0){this['_footnoteFormatter']=_0x22b6d0;}['_updateFootnotesCounters'](_0x1eb650,_0x2f653b=0x0){let _0x117cbe=!0x1;for(let _0x5d87fc=_0x2f653b;_0x5d87fc<this['_footnotes']['length'];_0x5d87fc++)this['_updateFootnoteRefCounter'](_0x1eb650,_0x5d87fc)&&(_0x117cbe=!0x0);return _0x117cbe;}['_insertEmptyFootnotesDefinitionsContainer'](_0xa760fa,_0x26a686){const _0x522c49=_0xa760fa['createElement']('footnotesDefinitions',{});return _0xa760fa['append'](_0x522c49,_0x26a686),this['_footnotesDefinitions']=_0x522c49,_0x522c49;}['_ensureFootnotesDefinitionsContainerExists'](_0x42058d){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x388de1=this['_footnotes'][0x0]['reference']['root'],_0x5b7151=this['_insertEmptyFootnotesDefinitionsContainer'](_0x42058d,_0x388de1);for(const _0x3cb573 of this['_footnotes'])_0x3cb573['definition']['parent']||_0x42058d['insert'](_0x3cb573['definition'],_0x5b7151,'end');this['_updateFootnotesCounters'](_0x42058d);}['_handleFootnotesDefinitionsObjectChanges'](_0x301ac1,_0x3995f6){let _0x16d2a0=!0x1;const {inserted:_0x4484af,removed:_0x755e70,moved:_0x3b481c}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3995f6);if(_0x3b481c['length']&&(this['_footnotesDefinitions']=_0x3b481c[0x0]),_0x4484af['length']){if(_0x4484af['length']>0x1||this['_footnotesDefinitions']&&_0x4484af['some'](_0x338d83=>_0x338d83!==this['_footnotesDefinitions'])){const _0x3e8814=_0x301ac1['createElement']('footnotesDefinitions',{}),_0x35f2d9=[];this['_footnotesDefinitions']&&_0x35f2d9['push'](this['_footnotesDefinitions']),_0x35f2d9['push'](..._0x4484af),_0x301ac1['insert'](_0x3e8814,_0x35f2d9[0x0],'before');for(const _0x138aab of _0x35f2d9)_0x301ac1['move'](_0x301ac1['createRangeIn'](_0x138aab),_0x301ac1['createPositionAt'](_0x3e8814,'end')),_0x301ac1['remove'](_0x138aab);this['_footnotesDefinitions']=_0x3e8814,this['_updateFootnotesCounters'](_0x301ac1),_0x16d2a0=!0x0;}else this['_footnotesDefinitions']=_0x4484af[0x0];}if(_0x755e70['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x5b36d3 of this['_footnotes'])_0x301ac1['remove'](_0x5b36d3['reference']),_0x16d2a0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x16d2a0;}['_handleFootnoteDefinitionsChanges'](_0x3b32e0,_0x52f606){let _0x116a9c=!0x1;const _0x4481f0=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x58830f,moved:_0x10424e}=this['_footnoteDefsTracker']['getChanges'](_0x52f606);for(const _0x1a4cfa of[..._0x10424e,..._0x58830f]){const _0x524530=_0x1a4cfa['getAttribute']('footnoteId'),_0x35f2d5=this['getFootnote'](_0x524530);_0x35f2d5&&(_0x35f2d5['definition']=_0x1a4cfa),_(_0x3b32e0,_0x4481f0,_0x1a4cfa)&&(_0x116a9c=!0x0);}return _0x116a9c;}['_handleFootnoteReferencesChanges'](_0xd72b7d,_0x5b80c8){let _0x4ce1e8=!0x1;const {removed:_0xc6465c,inserted:_0x1b936c,moved:_0x3ab44b}=this['_footnoteRefsTracker']['getChanges'](_0x5b80c8);for(const _0x530c30 of _0xc6465c)this['_handleRemoveFootnoteReferenceById'](_0xd72b7d,_0x530c30)&&(_0x4ce1e8=!0x0);for(const _0x4db17b of _0x1b936c)this['_handleInsertedFootnoteReference'](_0xd72b7d,_0x4db17b)&&(_0x4ce1e8=!0x0);for(const _0xb5dc6c of _0x3ab44b)this['_handleMovedFootnoteReference'](_0xd72b7d,_0xb5dc6c)&&(_0x4ce1e8=!0x0);return _0x4ce1e8;}['_handleFootnotesDefinitionsObjectSync'](_0x4ab7c2){if(!this['_footnotesDefinitions'])return!0x1;let _0x5e415c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x2f823d=[];for(const _0x3e4b6d of this['_footnotesDefinitions']['getChildren']()){const _0x2ce32d=_0x3e4b6d['getAttribute']('footnoteId');this['getFootnote'](_0x2ce32d)||(_0x2f823d['unshift'](_0x3e4b6d),_0x5e415c=!0x0);}for(const _0x330e4c of _0x2f823d)_0x4ab7c2['remove'](_0x330e4c);}const _0x57896f=new Set(),_0xe9eff4=[];for(const _0xe0b89a of this['_footnotesDefinitions']['getChildren']()){const _0x5e6446=_0xe0b89a['getAttribute']('footnoteId');_0x57896f['has'](_0x5e6446)?(_0xe9eff4['unshift'](_0xe0b89a),_0x5e415c=!0x0):_0x57896f['add'](_0x5e6446);}for(const _0x2d1ceb of _0xe9eff4)_0x4ab7c2['remove'](_0x2d1ceb);return this['_footnotesDefinitions']['childCount']||(_0x4ab7c2['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5e415c=!0x0),_0x5e415c;}['_handleInsertedFootnoteReference'](_0x55aae8,_0x4fc83f){if(this['_footnotes']['find'](_0x3f5da4=>_0x3f5da4['reference']===_0x4fc83f))return!0x1;let _0x3c704a=!0x1;const _0x475632=_0x4fc83f['getAttribute']('footnoteId'),_0x308cf5=this['_footnotes']['findIndex'](_0x1a15de=>_0x1a15de['id']===_0x475632);-0x1!==_0x308cf5&&(_0x55aae8['remove'](this['_footnotes'][_0x308cf5]['reference']),this['_footnotes']['splice'](_0x308cf5,0x1),_0x3c704a=!0x0);let _0x28cb33=this['_footnotesDefinitions']?function(_0x15ec44,_0x18c29f){for(const _0x32e057 of _0x15ec44['getChildren']())if(_0x32e057['getAttribute']('footnoteId')===_0x18c29f)return _0x32e057;return null;}(this['_footnotesDefinitions'],_0x475632):null;_0x28cb33||(_0x28cb33=_0x55aae8['createElement']('footnoteDefinition',{'footnoteId':_0x475632}),this['_footnotesDefinitions']&&(_0x55aae8['insert'](_0x28cb33,this['_footnotesDefinitions'],'end'),_0x3c704a=!0x0));const _0x5a57a8={'id':_0x475632,'reference':_0x4fc83f,'definition':_0x28cb33},_0x5c7050=I(this['editor']['model'],this['_footnotes'],_0x4fc83f);this['_footnotes']['splice'](_0x5c7050,0x0,_0x5a57a8);let _0x5bd7e7=_0x5c7050;return-0x1!==_0x308cf5&&(_0x5bd7e7=Math['min'](_0x5c7050,_0x308cf5)),this['_updateFootnotesCounters'](_0x55aae8,_0x5bd7e7)&&(_0x3c704a=!0x0),_0x3c704a;}['_handleRemoveFootnoteReferenceById'](_0x20f473,_0x85462b){const _0x3e5598=this['_footnotes']['findIndex'](_0x1012a9=>_0x1012a9['id']===_0x85462b);if(-0x1===_0x3e5598)return!0x1;let _0x5b49f6=!0x1;const _0x30da90=this['_footnotes'][_0x3e5598];return'$graveyard'!==_0x30da90['definition']['root']['rootName']&&(_0x20f473['remove'](_0x30da90['definition']),_0x5b49f6=!0x0),this['_footnotes']['splice'](_0x3e5598,0x1),this['_updateFootnotesCounters'](_0x20f473,_0x3e5598)&&(_0x5b49f6=!0x0),_0x5b49f6;}['_handleMovedFootnoteReference'](_0x281870,_0x368650){const _0x2af851=_0x368650['getAttribute']('footnoteId'),_0x32092a=this['_footnotes']['findIndex'](_0x348bed=>_0x348bed['id']===_0x2af851),_0x405cf2=this['_footnotes'][_0x32092a];let _0x30ba94=!0x1;_0x405cf2['reference']=_0x368650,this['_footnotes']['splice'](_0x32092a,0x1);const _0x44c629=I(this['editor']['model'],this['_footnotes'],_0x368650);return this['_footnotes']['splice'](_0x44c629,0x0,_0x405cf2),this['_updateFootnotesCounters'](_0x281870,Math['min'](_0x32092a,_0x44c629))&&(_0x30ba94=!0x0),_0x30ba94;}['_updateFootnoteRefCounter'](_0x22a669,_0x72db87){if(!this['_footnotesDefinitions'])return!0x1;const _0x158f7c=this['_footnotes'][_0x72db87];let _0x6ee0a7;return _0x6ee0a7=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x158f7c,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x72db87+0x1}):String(_0x72db87+0x1),_0x158f7c['reference']['getAttribute']('footnoteCounter')!=_0x6ee0a7&&(_0x22a669['setAttribute']('footnoteCounter',_0x6ee0a7,_0x158f7c['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xafb0f8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xddf44f,_0x3cc6d1){if(_0xddf44f['length']!==_0x3cc6d1['length'])return!0x1;for(let _0x40091f=0x0;_0x40091f<_0xddf44f['length'];_0x40091f++)if(_0xddf44f[_0x40091f]!==_0x3cc6d1[_0x40091f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1e3aa4=>_0x1e3aa4['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xfa3749=>_0xfa3749['getAttribute']('footnoteId'))))return!0x1;let _0x2f2375=!0x1;for(let _0x5efb6e=0x0;_0x5efb6e<this['_footnotes']['length'];_0x5efb6e++){const _0x2905ad=this['_footnotes'][_0x5efb6e],_0x2a916e=_0xafb0f8['createPositionBefore'](_0x2905ad['definition']),_0x2ff418=_0xafb0f8['createPositionAt'](this['_footnotesDefinitions'],_0x5efb6e);_0x2a916e['isEqual'](_0x2ff418)||(_0xafb0f8['move'](_0xafb0f8['createRangeOn'](_0x2905ad['definition']),_0x2ff418),_0x2f2375=!0x0);}return _0x2f2375;}['_ensureFootnotesReferencesHaveProperOrder'](_0x46a9c3){if(!this['_footnotes']['length'])return!0x1;const {model:_0x106f55}=this['editor'];let _0x14ff09=!0x1;for(let _0x4911d0=0x0;_0x4911d0<this['_footnotes']['length']-0x1;_0x4911d0++){const _0x36359a=this['_footnotes'][_0x4911d0],_0x5b7592=this['_footnotes'][_0x4911d0+0x1],_0x5ba7d6=_0x106f55['createPositionBefore'](_0x36359a['reference']),_0x551cc5=_0x106f55['createPositionBefore'](_0x5b7592['reference']);'after'===_0x5ba7d6['compareWith'](_0x551cc5)&&(this['_handleMovedFootnoteReference'](_0x46a9c3,_0x36359a['reference']),_0x4911d0=-0x1,_0x14ff09=!0x0);}return _0x14ff09;}}function _(_0x2d232d,_0xaad28d,_0x52fe6d){if(_0x52fe6d['childCount'])return!0x1;const _0x55de59=_0xaad28d?'paragraph':'footnoteInlineContent';return _0x2d232d['insert'](_0x2d232d['createElement'](_0x55de59),_0x52fe6d),!0x0;}function I(_0x389d1a,_0x504657,_0x1ac49f){if(0x0===_0x504657['length'])return 0x0;const _0x53d31a=_0x389d1a['createPositionBefore'](_0x1ac49f);for(let _0x14917e=0x0;_0x14917e<_0x504657['length'];_0x14917e++){const _0x1f9ab1=_0x504657[_0x14917e],_0x10db63=_0x389d1a['createPositionBefore'](_0x1f9ab1['reference']);if('before'===_0x53d31a['compareWith'](_0x10db63))return _0x14917e;}const _0x5ae348=_0x1ac49f['root'];let _0x489423=-0x1;for(let _0x4ed737=_0x504657['length']-0x1;_0x4ed737>=0x0;_0x4ed737--)if(_0x504657[_0x4ed737]['reference']['root']===_0x5ae348){_0x489423=_0x4ed737;break;}if(-0x1!==_0x489423)return _0x489423+0x1;const _0x343836=_0x389d1a['document']['getRootNames'](),_0x54ff59=_0x343836['indexOf'](_0x5ae348['rootName']),_0x181835=_0x343836[_0x54ff59+0x1];if(_0x181835){for(let _0xaec01b=0x0;_0xaec01b<_0x504657['length'];_0xaec01b++)if(_0x504657[_0xaec01b]['reference']['root']['rootName']===_0x181835)return _0xaec01b;}return _0x504657['length'];}class m extends _0x1f7936{['refresh'](){const _0x2c5be6=this['editor']['model']['document']['selection'],_0x5cb4d5=this['_getPositionToInsertFootnote'](_0x2c5be6);this['isEnabled']=!!_0x5cb4d5;}['execute'](_0x180b98){const {editor:_0x1d8686}=this,{model:_0x40d247}=_0x1d8686,{selection:_0x28f22c}=_0x40d247['document'],_0x447354=this['_getPositionToInsertFootnote'](_0x28f22c);if(!_0x447354)return;const _0x45cb4f=_0x1d8686['plugins']['get']('FootnotesEditing'),_0x50c118=_0x180b98?.['footnoteId']??_0x48389b();!function(_0x2f193e){return'string'==typeof _0x2f193e&&_0x2f193e['length']>0x0&&!/\s/['test'](_0x2f193e)&&!/^\d/['test'](_0x2f193e);}(_0x50c118)?_0x524f11('insert-footnote-command-executed-with-invalid-id'):(_0x40d247['change'](_0xc4002f=>{const _0xcc7166=_0xc4002f['createElement']('footnoteRef',{'footnoteId':_0x50c118});_0x40d247['insertObject'](_0xcc7166,_0x447354,null);}),_0x45cb4f['_moveSelectionToFootnoteDefinition'](_0x50c118));}['_getPositionToInsertFootnote'](_0x576fc3){const {model:_0x38ef92}=this['editor'],{schema:_0x1dd63f}=_0x38ef92,_0x23a5be=_0x576fc3['getFirstRange']();for(const _0x2c7ca4 of _0x23a5be['getItems']())if(_0x1dd63f['isBlock'](_0x2c7ca4)||_0x1dd63f['isObject'](_0x2c7ca4))return null;const _0x221bcf=_0x23a5be['end'];return _0x1dd63f['checkChild'](_0x221bcf,'footnoteRef')?_0x221bcf:null;}}class r extends _0x1c8292{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e4ce6}=this;_0x4e4ce6['config']['define']('footnotes.multiBlock',!0x0),_0x4e4ce6['commands']['add']('insertFootnote',new m(_0x4e4ce6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2cfb86){const _0x2e69d6=_0x3fea73([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x20cdd3=0x47a28506,_0x3af46f=0x47a5ff7e^_0x20cdd3,_0x224d1d=window[_0x3fea73([0x44,0x61,0x74,0x65])][_0x3fea73([0x6e,0x6f,0x77])](),_0x616b90=_0x2cfb86[_0x3fea73([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1893e9=new window[(_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x518ffd=>{_0x616b90[_0x3fea73([0x6f,0x6e,0x63,0x65])](_0x3fea73([0x72,0x65,0x61,0x64,0x79]),_0x518ffd);}),_0x403ef4={[_0x3fea73([0x6b,0x74,0x79])]:_0x3fea73([0x45,0x43]),[_0x3fea73([0x75,0x73,0x65])]:_0x3fea73([0x73,0x69,0x67]),[_0x3fea73([0x63,0x72,0x76])]:_0x3fea73([0x50,0x2d,0x32,0x35,0x36]),[_0x3fea73([0x78])]:_0x3fea73([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3fea73([0x79])]:_0x3fea73([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3fea73([0x61,0x6c,0x67])]:_0x3fea73([0x45,0x53,0x32,0x35,0x36])},_0x33cf0c=_0x616b90[_0x3fea73([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fea73([0x67,0x65,0x74])](_0x3fea73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4316de(){let _0x3362df,_0x5a6353=null,_0x531a84=null;try{if(_0x33cf0c==_0x3fea73([0x47,0x50,0x4c]))return _0x3fea73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3362df=_0x8a7fa6(),!_0x3362df)return _0x3fea73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3362df[_0x3fea73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x531a84=_0x20e06e(_0x3362df[_0x3fea73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3362df[_0x3fea73([0x6a,0x74,0x69])])),await _0x1cf2bf()?_0x113c78()?_0x419a3b()?_0x3fea73([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1cb2f8()?(_0x3362df[_0x3fea73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fea73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a6353=_0x2cf3a9(_0x3fea73([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3362df[_0x3fea73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fea73([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a6353=_0x2cf3a9(_0x3fea73([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12cda5()):_0x3fea73([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fea73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fea73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3fea73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x419a3b(){const _0x5052e6=[_0x3fea73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fea73([0x74,0x72,0x69,0x61,0x6c])][_0x3fea73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3362df[_0x3fea73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x224d1d/0x3e8:0xe10*_0x3af46f;return _0x3362df[_0x3fea73([0x65,0x78,0x70])]<_0x5052e6;}function _0x113c78(){const _0x28489d=_0x3362df[_0x3fea73([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28489d&&(!!_0x28489d[_0x3fea73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fea73([0x2a]))||!!_0x28489d[_0x3fea73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fea73([0x46,0x4f,0x4f])));}function _0x1cb2f8(){const _0x305065=_0x3362df[_0x3fea73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x305065||0x0==_0x305065[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f4dfb}=new URL(window[_0x3fea73([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x305065[_0x3fea73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4dfb))return!0x0;const _0x4c7c9b=_0x5f4dfb[_0x3fea73([0x73,0x70,0x6c,0x69,0x74])](_0x3fea73([0x2e]));return _0x305065[_0x3fea73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49591d=>_0x49591d[_0x3fea73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fea73([0x2a])))[_0x3fea73([0x6d,0x61,0x70])](_0x2159ec=>_0x2159ec[_0x3fea73([0x73,0x70,0x6c,0x69,0x74])](_0x3fea73([0x2e])))[_0x3fea73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43e36c=>_0x43e36c[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c7c9b[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fea73([0x6d,0x61,0x70])](_0x3c8a6e=>Array(_0x4c7c9b[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c8a6e[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fea73([0x66,0x69,0x6c,0x6c])](_0x3c8a6e[0x0]===_0x3fea73([0x2a])?_0x3fea73([0x2a]):'')[_0x3fea73([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c8a6e))[_0x3fea73([0x73,0x6f,0x6d,0x65])](_0xa98d1c=>_0x4c7c9b[_0x3fea73([0x65,0x76,0x65,0x72,0x79])]((_0x2f8d80,_0x2eec96)=>_0xa98d1c[_0x2eec96]===_0x2f8d80||_0xa98d1c[_0x2eec96]===_0x3fea73([0x2a])));}function _0x12cda5(){return _0x5a6353&&_0x531a84?new window[(_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd66fc2,_0x4534a1)=>{_0x5a6353[_0x3fea73([0x74,0x68,0x65,0x6e])](_0xd66fc2,_0x4534a1),_0x531a84[_0x3fea73([0x74,0x68,0x65,0x6e])](_0x14622f=>{_0x14622f!=_0x3fea73([0x56,0x61,0x6c,0x69,0x64])&&_0xd66fc2(_0x14622f);},_0x4534a1);}):_0x5a6353||_0x531a84||_0x3fea73([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20e06e(_0x5b3458,_0x1f1bd1){return new window[(_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483874=>{if(_0x595db6())return _0x483874(_0x3fea73([0x56,0x61,0x6c,0x69,0x64]));_0x42ae22(),_0x616b90[_0x3fea73([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fea73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17eb58=!0x1;const _0x40c550=_0x48389b();function _0x1a9adb(_0x4bbad8){return!!_0x4bbad8&&(typeof _0x4bbad8===_0x3fea73([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bbad8===_0x3fea73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bbad8[_0x3fea73([0x74,0x68,0x65,0x6e])]===_0x3fea73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bbad8[_0x3fea73([0x63,0x61,0x74,0x63,0x68])]===_0x3fea73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42bd48(_0x4e1f76){_0x1866bc(_0x4e1f76)[_0x3fea73([0x74,0x68,0x65,0x6e])](_0x3ef018=>{if(!_0x3ef018||_0x3ef018[_0x3fea73([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fea73([0x6f,0x6b]))return _0x3fea73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15cceb(_0x59fd17(_0x40c550+_0x1f1bd1))!=_0x3ef018[_0x3fea73([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fea73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fea73([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fea73([0x74,0x68,0x65,0x6e])](_0x35dc2f=>(_0x2bd3d9(),_0x35dc2f),()=>{const _0x4e9b50=_0x20e503();return null==_0x4e9b50?(_0x2bd3d9(),_0x3fea73([0x56,0x61,0x6c,0x69,0x64])):_0x3fea73(_0x224d1d-_0x4e9b50>(0x63ae0106^_0x20cdd3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fea73([0x74,0x68,0x65,0x6e])](_0x483874)[_0x3fea73([0x63,0x61,0x74,0x63,0x68])](()=>{_0x483874(_0x3fea73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x203f01=0x47946b86^_0x20cdd3;function _0x2bd3d9(){const _0x5e2851=_0x3fea73([0x6c,0x6c,0x63,0x74,0x2d])+_0x15cceb(_0x59fd17(_0x5b3458)),_0x3f94e9=_0x522548(_0x15cceb(window[_0x3fea73([0x4d,0x61,0x74,0x68])][_0x3fea73([0x63,0x65,0x69,0x6c])](_0x224d1d/_0x203f01)));window[_0x3fea73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fea73([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e2851,_0x3f94e9);}function _0x20e503(){const _0x4617e9=_0x3fea73([0x6c,0x6c,0x63,0x74,0x2d])+_0x15cceb(_0x59fd17(_0x5b3458)),_0x3cc979=window[_0x3fea73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fea73([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4617e9);return _0x3cc979?window[_0x3fea73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x522548(_0x3cc979),0x10)*_0x203f01:null;}function _0x1866bc(_0x4d65ae){return new window[(_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x511c72,_0x100685)=>{_0x4d65ae[_0x3fea73([0x74,0x68,0x65,0x6e])](_0x511c72,_0x100685),window[_0x3fea73([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x100685,0x47a351c6^_0x20cdd3);});}}_0x616b90[_0x3fea73([0x6f,0x6e])](_0x3fea73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b6f50,_0x22b461)=>{if(_0x22b461[0x0]!=_0x5b3458)return _0x483874(_0x3fea73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22b461[0x1]={..._0x22b461[0x1],[_0x3fea73([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40c550};},{[_0x3fea73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fea73([0x68,0x69,0x67,0x68])}),_0x616b90[_0x3fea73([0x6f,0x6e])](_0x3fea73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1544c2=>{_0x1a9adb(_0x1544c2[_0x3fea73([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17eb58=!0x0,_0x42bd48(_0x1544c2[_0x3fea73([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fea73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fea73([0x6c,0x6f,0x77])}),_0x1893e9[_0x3fea73([0x74,0x68,0x65,0x6e])](()=>{_0x17eb58||_0x483874(_0x3fea73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x595db6(){return _0x616b90[_0x3fea73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fea73([0x76,0x69,0x65,0x77])][_0x3fea73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fea73([0x61,0x75,0x74,0x6f]);}function _0x42ae22(){_0x616b90[_0x3fea73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fea73([0x76,0x69,0x65,0x77])][_0x3fea73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fea73([0x61,0x75,0x74,0x6f]);}}function _0x2cf3a9(_0xd37a4f){const _0x1514b7=[new window[(_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17cdad=>setTimeout(_0x17cdad,0x47abbbca^_0x20cdd3)),_0x1893e9[_0x3fea73([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x477d6e=>{let _0x12e7b1=0x0;_0x616b90[_0x3fea73([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fea73([0x6f,0x6e])](_0x3fea73([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22cc20,_0x12003f)=>{_0x12003f[0x0][_0x3fea73([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12e7b1++,_0x12e7b1==(0x47a284fe^_0x20cdd3)&&(_0x477d6e(),_0x22cc20[_0x3fea73([0x6f,0x66,0x66])]());});}))];return window[_0x3fea73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fea73([0x72,0x61,0x63,0x65])](_0x1514b7)[_0x3fea73([0x74,0x68,0x65,0x6e])](()=>_0xd37a4f);}async function _0x445a72(){await _0x1893e9,_0x616b90[_0x3fea73([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fea73([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34738d,_0x616b90[_0x3fea73([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fea73([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34738d,_0x616b90[_0x3fea73([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fea73([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38c21e(_0x490cc5){const _0x4a0a2e=_0x5dd089();_0x616b90[_0x4a0a2e]=_0x3fea73([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x490cc5,_0x490cc5!=_0x3fea73([0x56,0x61,0x6c,0x69,0x64])&&_0x445a72();}function _0x5dd089(){const _0x50d611=window[_0x3fea73([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fea73([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fea73([0x6e,0x6f,0x77])]())[_0x3fea73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fea73([0x2e]),'');let _0x4d4c44=_0x3fea73([0x75]);for(let _0x42efd2=0x0;_0x42efd2<_0x50d611[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42efd2+=0x2){let _0x49d993=window[_0x3fea73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50d611[_0x3fea73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42efd2,_0x42efd2+0x2));_0x49d993>=_0x2e69d6[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49d993-=_0x2e69d6[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d4c44+=_0x2e69d6[_0x49d993];}return _0x4d4c44;}function _0x8a7fa6(){const _0x12bb33=_0x33cf0c[_0x3fea73([0x73,0x70,0x6c,0x69,0x74])](_0x3fea73([0x2e]));if(0x3!=_0x12bb33[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dc4b2(_0x12bb33[0x1]);function _0x4dc4b2(_0x2f40d7){const _0x2a8654=_0x1653ca(_0x2f40d7);return _0x2a8654&&_0x3f7298()?_0x2a8654:null;function _0x3f7298(){const _0x4db293=_0x2a8654[_0x3fea73([0x6a,0x74,0x69])],_0x32cbda=window[_0x3fea73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4db293[_0x3fea73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4db293[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x348fec={..._0x2a8654,[_0x3fea73([0x6a,0x74,0x69])]:_0x4db293[_0x3fea73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4db293[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x348fec[_0x3fea73([0x76,0x63])],_0x59fd17(_0x348fec)==_0x32cbda;}}}async function _0x1cf2bf(){let _0x1fbefa=!0x0;try{const _0x486d9c=_0x33cf0c[_0x3fea73([0x73,0x70,0x6c,0x69,0x74])](_0x3fea73([0x2e])),[_0x4aa0df,_0x585f74,_0xe5554b]=_0x486d9c;return _0x418e66(_0x4aa0df),await _0x56594f(_0x4aa0df,_0x585f74,_0xe5554b),_0x1fbefa;}catch{return!0x1;}function _0x418e66(_0x496a16){const _0x5253c2=_0x1653ca(_0x496a16);_0x5253c2&&_0x5253c2[_0x3fea73([0x61,0x6c,0x67])]==_0x3fea73([0x45,0x53,0x32,0x35,0x36])||(_0x1fbefa=!0x1);}async function _0x56594f(_0x5ef36a,_0x42f009,_0x23787b){const _0x47dd6d=window[_0x3fea73([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fea73([0x66,0x72,0x6f,0x6d])](_0x47de77(_0x23787b),_0x47f473=>_0x47f473[_0x3fea73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10026b=new window[(_0x3fea73([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fea73([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ef36a+_0x3fea73([0x2e])+_0x42f009),_0x22546e=window[_0x3fea73([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fea73([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22546e)return;const _0x10bb52=await _0x22546e[_0x3fea73([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fea73([0x6a,0x77,0x6b]),_0x403ef4,{[_0x3fea73([0x6e,0x61,0x6d,0x65])]:_0x3fea73([0x45,0x43,0x44,0x53,0x41]),[_0x3fea73([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fea73([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fea73([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22546e[_0x3fea73([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fea73([0x6e,0x61,0x6d,0x65])]:_0x3fea73([0x45,0x43,0x44,0x53,0x41]),[_0x3fea73([0x68,0x61,0x73,0x68])]:{[_0x3fea73([0x6e,0x61,0x6d,0x65])]:_0x3fea73([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10bb52,_0x47dd6d,_0x10026b)||(_0x1fbefa=!0x1);}}function _0x1653ca(_0x1c36e4){return _0x1c36e4[_0x3fea73([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fea73([0x65,0x79]))?JSON[_0x3fea73([0x70,0x61,0x72,0x73,0x65])](_0x47de77(_0x1c36e4)):null;}function _0x47de77(_0x1d52a5){return window[_0x3fea73([0x61,0x74,0x6f,0x62])](_0x1d52a5[_0x3fea73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fea73([0x2b]))[_0x3fea73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fea73([0x2f])));}function _0x59fd17(_0x54bef8){let _0x3ef7f2=0x1505;function _0x456fc3(_0x236fab){for(let _0x3bbcf0=0x0;_0x3bbcf0<_0x236fab[_0x3fea73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bbcf0++){const _0x19f628=_0x236fab[_0x3fea73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bbcf0);_0x3ef7f2=(_0x3ef7f2<<0x5)+_0x3ef7f2+_0x19f628,_0x3ef7f2&=_0x3ef7f2;}}function _0x2d2dad(_0x242182){Array[_0x3fea73([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x242182)?_0x242182[_0x3fea73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d2dad):_0x242182&&typeof _0x242182==_0x3fea73([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fea73([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x242182)[_0x3fea73([0x73,0x6f,0x72,0x74])]()[_0x3fea73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c9f8f,_0x58f439])=>{_0x456fc3(_0x3c9f8f),_0x2d2dad(_0x58f439);}):_0x456fc3(window[_0x3fea73([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x242182));}return _0x2d2dad(_0x54bef8),_0x3ef7f2>>>0x0;}function _0x15cceb(_0x517c9e){return _0x517c9e[_0x3fea73([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fea73([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fea73([0x30]));}function _0x522548(_0x38c55f){return _0x38c55f[_0x3fea73([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fea73([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fea73([0x6a,0x6f,0x69,0x6e])]('');}function _0x34738d(){}function _0x3fea73(_0x5c7c9b){return _0x5c7c9b['map'](_0x27feca=>String['fromCharCode'](_0x27feca))['join']('');}_0x38c21e(await _0x4316de());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4a8299){const {plugins:_0x2b2711,editing:_0x3d3390,model:_0x584f86}=this['editor'],_0x35f3ef=_0x2b2711['get'](c)['getFootnote'](_0x4a8299);return!!_0x35f3ef&&(_0x584f86['change'](_0x3bab92=>{_0x3bab92['setSelection'](_0x3bab92['createPositionAt'](_0x35f3ef['definition'],'end'));}),_0x3d3390['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4bc28e){const {plugins:_0x26a558,editing:_0x139feb,model:_0x3373e2}=this['editor'],_0x18bc8c=_0x26a558['get'](c)['getFootnote'](_0x4bc28e);return!!_0x18bc8c&&(_0x3373e2['change'](_0x5ef5f4=>{_0x5ef5f4['setSelection'](_0x18bc8c['reference'],'on');}),_0x139feb['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x487b1f}=this['editor']['model'],_0x1b2cf8=this['editor']['config']['get']('footnotes.multiBlock');_0x487b1f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x487b1f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x487b1f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1b2cf8?_0x487b1f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x487b1f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x487b1f['addChildCheck'](_0x58497f=>{for(const _0x428186 of _0x58497f)if('footnoteDefinition'===_0x428186['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x433fc3}=this,{conversion:_0x5c54a7,editing:_0x5b2393}=_0x433fc3,{t:t}=_0x433fc3['locale'];_0x5c54a7['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4a505a,{writer:_0x3b6a7f,consumable:_0xf233c9})=>{const _0x323acd=_0x4a505a['getChild'](0x0);if(!_0x323acd||!_0x323acd['is']('element','a'))return null;const _0x5bb792=_0x323acd['getAttribute']('href')||'';if(!_0x5bb792['startsWith']('#'))return null;const _0x25eaf8=_0x5bb792['replace'](/^#/,'');if(!_0x25eaf8)return null;_0xf233c9['consume'](_0x323acd,{'name':!0x0,'attributes':['href']});for(const {item:_0x1af023}of _0x5b2393['view']['createRangeIn'](_0x323acd))_0x1af023['is']('$textProxy')?_0xf233c9['consume'](_0x1af023['textNode'],{'name':!0x0}):_0x1af023['is']('element')&&_0xf233c9['consume'](_0x1af023,{'name':!0x0});return _0x3b6a7f['createElement']('footnoteRef',{'footnoteId':_0x25eaf8});}}),_0x5c54a7['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xbc81a6,{writer:_0x101a09})=>D(_0xbc81a6,_0x101a09)}),_0x5c54a7['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1d41e6,{writer:_0x27260c})=>{const _0x1cb539=_0x1d41e6['getAttribute']('footnoteCounter');return _0x47ae83(D(_0x1d41e6,_0x27260c),_0x27260c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1cb539)});}});}['_defineDefinitionsConverters'](){const {editor:_0x11d1b6}=this,{t:t}=_0x11d1b6['locale'],{conversion:_0x230b82}=_0x11d1b6;_0x230b82['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x230b82['for']('upcast')['add'](_0xeed7db=>{_0xeed7db['on']('element:ol',(_0x2b4bb9,_0x5fec66,_0x196fe4)=>{const _0x30dbee=_0x5fec66['viewItem'];if(!_0x30dbee['hasClass']('footnotes-list')||!_0x5fec66['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x196fe4['consumable']['consume'](_0x30dbee,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x477473,modelCursor:_0x39b2e9}=_0x196fe4['convertChildren'](_0x5fec66['viewItem'],_0x5fec66['modelCursor']);_0x5fec66['modelRange']=_0x477473,_0x5fec66['modelCursor']=_0x39b2e9;}),_0xeed7db['on']('element:hr',(_0x1ef119,_0x4f5124,_0x209e47)=>{const _0x3625f1=_0x4f5124['viewItem'];_0x3625f1['hasClass']('footnotes-divider')&&_0x4f5124['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x209e47['consumable']['consume'](_0x3625f1,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x230b82['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x549d63,{writer:_0x4914fb})=>v(_0x4914fb)}),_0x230b82['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x314188,{writer:_0x36bf2f})=>{const _0x47fbea=v(_0x36bf2f,{'data-footnotes-list-label':t('Footnotes')}),_0x58df14=_0x47ae83(_0x47fbea,_0x36bf2f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x36bf2f['setCustomProperty']('footnotesDefinitions',!0x0,_0x58df14),_0x58df14;}});}['_defineDefinitionConverters'](){const {editor:_0x107ff9}=this,{conversion:_0x316042,locale:_0x3e89bb}=_0x107ff9,_0x5db086=_0x107ff9['config']['get']('footnotes.multiBlock');_0x316042['for']('upcast')['add'](_0x4b77b2=>{_0x4b77b2['on']('element:li',(_0x5702f4,_0x368137,_0x5193ac)=>{const _0x3534d6=_0x368137['viewItem'];if(!_0x3534d6['hasClass']('footnote-definition')||!_0x3534d6['getAttribute']('id'))return;const _0x5374c7=_0x3534d6['parent'];if(!_0x5374c7['is']('element','ol')||!_0x5374c7['hasClass']('footnotes-list'))return;if(!_0x5193ac['consumable']['test'](_0x3534d6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x48632e=_0x5193ac['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3534d6['getAttribute']('id')});if(!_0x5193ac['safeInsert'](_0x48632e,_0x368137['modelCursor']))return;_0x5193ac['consumable']['consume'](_0x3534d6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3a363d=Array['from'](_0x3534d6['getChildren']())['find'](_0x23efff=>_0x23efff['is']('element')&&_0x23efff['hasClass']('footnote-content'));for(const _0x3fd6c6 of _0x3534d6['getChildren']())_0x3fd6c6['is']('element')&&(_0x5193ac['consumable']['consume'](_0x3fd6c6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5193ac['consumable']['consume'](_0x3fd6c6,{'name':!0x0,'classes':'footnote-content'}));if(_0x3a363d){if(_0x5db086)_0x5193ac['convertChildren'](_0x3a363d,_0x48632e);else{const _0x4f2c0c=_0x5193ac['writer']['createElement']('footnoteInlineContent');_0x5193ac['writer']['insert'](_0x4f2c0c,_0x48632e),_0x5193ac['convertChildren'](_0x3a363d,_0x4f2c0c);}}_0x5193ac['updateConversionResult'](_0x48632e,_0x368137);});}),_0x316042['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2294f0,{writer:_0x527122})=>b(_0x2294f0,_0x527122,_0x3e89bb,{'dataPipeline':!0x0})}),_0x316042['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x134376,{writer:_0x41f163})=>b(_0x134376,_0x41f163,_0x3e89bb)});}['_defineBogusParagraphConverters'](){const {editor:_0x40fa21}=this,{conversion:_0x376e41}=_0x40fa21;_0x40fa21['config']['get']('footnotes.multiBlock')?(_0x376e41['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x376e41['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x40fa21['model']['document'],'change:data',()=>{!function(_0xad3a3f,_0x54efa6){const _0x21b7c0=_0xad3a3f['document']['differ'],_0x4f562a=new Set();for(const _0x2d093d of _0x21b7c0['getChanges']()){const _0x55ccd9='attribute'==_0x2d093d['type']?_0x2d093d['range']['start']['parent']:_0x2d093d['position']['parent'];_0x55ccd9['is']('element','footnoteDefinition')&&_0x4f562a['add'](_0x55ccd9);}for(const _0x37c09d of _0x4f562a['values']()){const _0x3ecdcf=Array['from'](_0x37c09d['getChildren']())['filter'](_0x182f54=>g(_0x182f54,_0x54efa6['mapper']));for(const _0x179785 of _0x3ecdcf)_0x54efa6['reconvertItem'](_0x179785);}}(_0x40fa21['model'],_0x40fa21['editing']);})):(_0x376e41['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x376e41['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x360c9d,{writer:_0x2aa855})=>{const _0x2e2b21=_0x2aa855['createContainerElement']('span');return _0x2aa855['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2e2b21),_0x2e2b21;}}));}['_defineKeyboardHandlers'](){const {editor:_0x193b2c}=this,{editing:_0x129884,t:t}=_0x193b2c,_0x3e3f3e=_0x193b2c['model']['document']['selection'];_0x193b2c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x193b2c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x129884['view']['document'],'enter',(_0x36c048,_0x107c97)=>{const _0x585e2a=function(_0x68e68){const _0x4d8955=_0x68e68['getSelectedElement']();if(_0x4d8955?.['is']('element','footnoteRef'))return _0x4d8955;return null;}(_0x3e3f3e);if(_0x585e2a){const _0x183d2d=_0x585e2a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x183d2d),_0x107c97['preventDefault'](),_0x36c048['stop']();}},{'context':_0x297299});}['_defineClickHandlers'](){const {editor:_0x1ff16d}=this,{editing:_0x51066e}=_0x1ff16d;_0x1ff16d['editing']['view']['addObserver'](_0x1d20ee),_0x1ff16d['editing']['view']['addObserver'](_0x259591);let _0x29e840=!0x1;this['listenTo'](_0x51066e['view']['document'],'pointerdown',(_0x249bed,_0x59808a)=>{const {target:_0x4532ba}=_0x59808a,_0x18b2c4=_0x51066e['view']['document']['selection'];_0x29e840=!!(_0x4532ba?.['is']('element','a')&&_0x4532ba['parent']?.['is']('element','sup')&&_0x4532ba['parent']['hasClass']('footnote'))&&_0x18b2c4['getSelectedElement']()===_0x4532ba['parent'];},{'priority':'high'}),this['listenTo'](_0x51066e['view']['document'],'click',(_0x43ed7f,_0x2bedc5)=>{const {target:_0x2b2389}=_0x2bedc5;if(!_0x2b2389?.['is']('element','a'))return;if(_0x2b2389['parent']?.['is']('element','sup')&&_0x2b2389['parent']['hasClass']('footnote')&&!_0x29e840)return void _0x2bedc5['preventDefault']();let _0x399636=_0x2b2389['getAttribute']('href');if(!_0x399636?.['startsWith']('#'))return;_0x399636=_0x399636['slice'](0x1);let _0x262dfb=!0x1;(_0x399636['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x399636['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x399636))&&(_0x262dfb=!0x0),_0x262dfb&&(_0x2bedc5['preventDefault'](),_0x43ed7f['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x565f40}={}){return(_0x1ea570,{writer:_0x30e288})=>{if(!p(_0x1ea570))return null;if(!_0x565f40)return _0x30e288['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x28b9f1=_0x30e288['createContainerElement']('p');return _0x30e288['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x28b9f1),_0x28b9f1;};}function p(_0x1c240f){const {parent:_0x2bc2cc}=_0x1c240f;if(!_0x2bc2cc?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2bc2cc['childCount'])return!0x1;for(const _0x3ae350 of _0x1c240f['getAttributeKeys']())if(!_0x3ae350['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3ae350)return!0x1;return!0x0;}function g(_0x243a56,_0x5c374e){if(!_0x243a56['is']('element','paragraph'))return!0x1;const _0x3042cc=_0x5c374e['toViewElement'](_0x243a56);return!!_0x3042cc&&p(_0x243a56)!==_0x3042cc['is']('element','span');}function J(_0x523958){return _0x297299(_0x523958)&&_0x523958['is']('containerElement')&&!!_0x523958['getCustomProperty']('footnotesDefinitions');}function v(_0x3a268f,_0x128a3d={}){const _0x4d4390=_0x3a268f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x9cc5bb=_0x3a268f['createContainerElement']('ol',{'class':'footnotes-list'},_0x3a268f['createSlot']());return _0x3a268f['createContainerElement']('div',{'class':'footnotes',..._0x128a3d},[_0x4d4390,_0x9cc5bb]);}function D(_0x57125f,_0x214676){const _0x4a042f=_0x57125f['getAttribute']('footnoteId'),_0x4ef45c=_0x57125f['getAttribute']('footnoteCounter'),_0x5ea2bc=_0x214676['createUIElement']('a',{'href':'#'+_0x4a042f},function(_0x5311bd){const _0x1027c7=this['toDomElement'](_0x5311bd);return _0x1027c7['textContent']=_0x4ef45c,_0x1027c7;}),_0x9122b8=_0x214676['createContainerElement']('sup',{'id':'ref-'+_0x4a042f,'class':'footnote'},[_0x5ea2bc]);return _0x9122b8['getFillerOffset']=()=>null,_0x9122b8;}function b(_0x1d45a2,_0x27dbfe,_0x4460a0,{dataPipeline:_0x5ce49a}={}){const {t:t}=_0x4460a0,_0xf9dfe0=_0x1d45a2['getAttribute']('footnoteId'),_0x83c17=_0x27dbfe['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xf9dfe0},function(_0xfe72c9){const _0xd399ec=this['toDomElement'](_0xfe72c9);return _0xd399ec['innerText']='^',_0xd399ec;}),_0x5ca64e=_0x5ce49a?_0x27dbfe['createContainerElement']('div',{'class':'footnote-content'}):_0x7b471(_0x27dbfe['createEditableElement']('div',{'class':'footnote-content'}),_0x27dbfe,{'label':t('Footnote\x20content.')});return _0x27dbfe['insert'](_0x27dbfe['createPositionAt'](_0x5ca64e,0x0),_0x27dbfe['createSlot']()),_0x27dbfe['createContainerElement']('li',{'class':'footnote-definition','id':_0xf9dfe0},[_0x83c17,_0x5ca64e]);}class e extends _0x1c8292{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x24dd9b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4dc5dd}=this,{plugins:_0x50dc59,model:_0x1eb4bb}=_0x4dc5dd,_0x53558c=_0x50dc59['get'](_0x24dd9b),_0x3bf20e=_0x50dc59['get'](c);this['listenTo'](_0x53558c,'outputTransformation',(_0x2d7785,_0xcb6cb3)=>{const _0x3e7ce4=f(_0x1eb4bb['createRangeIn'](_0xcb6cb3['content']));if(!_0x3e7ce4['length'])return;const _0x54b811=_0x3bf20e['getFootnotes'](),_0x126ad6=_0x3e7ce4['reduce']((_0x1a423c,_0xe9511c)=>{const _0x1145c9=_0x54b811['find'](_0x5fd0a3=>_0x5fd0a3['id']===_0xe9511c);if(_0x1145c9){const _0x4bd0f4=_0x4dc5dd['data']['toView'](_0x1145c9['definition'],{'isClipboardPipeline':!0x0}),_0x3b622a=_0x4dc5dd['data']['htmlProcessor']['toData'](_0x4bd0f4);_0x1a423c[_0x1145c9['id']]=_0x3b622a;}return _0x1a423c;},Object['create'](null));_0xcb6cb3['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x126ad6));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5827b2}=this,{model:_0x5d8263,plugins:_0xf431e1}=_0x5827b2,{view:_0x3b1c42}=_0x5827b2['editing'],_0x3f1579=_0xf431e1['get'](_0x24dd9b),_0x202e54=_0xf431e1['get'](c);let _0x1dd01f=null;this['listenTo'](_0x3b1c42['document'],'clipboardInput',(_0x17952e,_0x551ece)=>{const _0x1f9e29=_0x551ece['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1dd01f=_0x1f9e29?JSON['parse'](_0x1f9e29):null;}),this['listenTo'](_0x3f1579,'contentInsertion',(_0x248641,_0x201c85)=>{const _0x57b047=_0x201c85['sourceEditorId']===this['editor']['id'];_0x57b047&&'drop'===_0x201c85['method']||_0x5d8263['change'](_0x53516a=>{let _0x1f8229=_0x202e54['getFootnotesDefinitionsObjectElement']();const _0x4be97e=!!_0x1f8229&&Array['from'](_0x5d8263['document']['selection']['getSelectedBlocks']())['includes'](_0x1f8229);if((_0x1f8229&&!_0x4be97e||!_0x1f8229&&!_0x1dd01f)&&function(_0x5b588d,_0x294625){const _0x11a1df=[];for(const {item:_0x275de9}of _0x5b588d['createRangeIn'](_0x294625))_0x275de9['is']('element','footnotesDefinitions')&&_0x11a1df['push'](_0x275de9);for(const _0x1a7036 of _0x11a1df)_0x5b588d['remove'](_0x1a7036);}(_0x53516a,_0x201c85['content']),!_0x1dd01f)return;const {selection:_0x1e5b7b}=_0x5d8263['document'],_0x4f45ee=_0x1e5b7b['getFirstRange']()['root'];_0x1f8229&&!_0x4be97e||(_0x1f8229=function(_0x58f6a1,_0x160bb4){for(const {item:_0x41bf9f}of _0x58f6a1['createRangeIn'](_0x160bb4))if(_0x41bf9f['is']('element','footnotesDefinitions'))return _0x41bf9f;return null;}(_0x53516a,_0x201c85['content']),_0x1f8229||=_0x202e54['_insertEmptyFootnotesDefinitionsContainer'](_0x53516a,_0x4f45ee));const _0x4d0520=Array['from'](_0x1e5b7b['getRanges']())['flatMap'](f),_0x2d75f5=function(_0x2d8d3f,_0x35719f,_0x3da0a7){const _0x2ebfc6=Object['create'](null);for(const {item:_0x49aad3}of _0x2d8d3f['createRangeIn'](_0x35719f))if(_0x49aad3['is']('element','footnoteRef')){const _0xd8a75d=_0x49aad3['getAttribute']('footnoteId');if(!_0x3da0a7(_0xd8a75d))continue;_0x2ebfc6[_0xd8a75d]||(_0x2ebfc6[_0xd8a75d]=_0x48389b()),_0x2d8d3f['setAttribute']('footnoteId',_0x2ebfc6[_0xd8a75d],_0x49aad3);}return _0x2ebfc6;}(_0x53516a,_0x201c85['content'],_0x3b16a2=>{if(!_0x57b047)return!0x0;return!!_0x202e54['getFootnote'](_0x3b16a2)&&!_0x4d0520['includes'](_0x3b16a2);});for(const [_0x103a9b,_0x22e330]of Object['entries'](_0x1dd01f)){const _0x29ad7b=_0x2d75f5[_0x103a9b]||_0x103a9b,_0x5e7c1d=_0x53516a['createElement']('footnoteDefinition',{'footnoteId':_0x29ad7b}),_0x20cb21=_0x5827b2['data']['htmlProcessor']['toView'](_0x22e330),_0x285da6=_0x5827b2['data']['toModel'](_0x20cb21,_0x5e7c1d);_0x53516a['append'](_0x285da6,_0x5e7c1d),_0x53516a['insert'](_0x5e7c1d,_0x1f8229,'end');}_0x1dd01f=null;});});}}function f(_0x100b04){const _0x13a5d3=new Set();for(const {item:_0x435d98}of _0x100b04)_0x435d98['is']('element','footnoteRef')&&_0x13a5d3['add'](_0x435d98['getAttribute']('footnoteId'));return Array['from'](_0x13a5d3);}class i extends _0x1c8292{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20d078}=this,{componentFactory:_0x28ecdd}=_0x20d078['ui'];_0x28ecdd['add']('insertFootnote',x(_0x20d078,_0xaf85d0)),_0x28ecdd['add']('menuBar:insertFootnote',x(_0x20d078,_0x2fb7d4)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1fb10a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2667a2;for(const _0x2a1028 in _0x1fb10a){const _0x92c137=_0x2a1028,_0x500a59=_0x1fb10a[_0x92c137];if('footnotesLicenseKeyValid'==_0x500a59||'footnotesLicenseKeyInvalid'==_0x500a59||'footnotesLicenseKeyExpired'==_0x500a59||'footnotesLicenseKeyDomainLimit'==_0x500a59||'footnotesLicenseKeyNotAllowed'==_0x500a59||'footnotesLicenseKeyEvaluationLimit'==_0x500a59||'footnotesLicenseKeyTrialLimit'==_0x500a59||'footnotesLicenseKeyUsageLimit'==_0x500a59){delete _0x1fb10a[_0x92c137],_0x2667a2=_0x500a59,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x2667a2&&_0x1fb10a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x2667a2&&_0x1fb10a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x2667a2&&_0x1fb10a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x2667a2&&_0x1fb10a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x2667a2&&_0x1fb10a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x2667a2&&_0x1fb10a['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x2667a2&&_0x1fb10a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x43f822,_0x13199b){const _0x545752=_0x43f822['commands']['get']('insertFootnote');return _0x1f00a3=>{const {t:t}=_0x1f00a3,_0x2118e2=new _0x13199b(_0x1f00a3),_0x59b64a=_0x2118e2 instanceof _0x2fb7d4;return _0x2118e2['bind']('isEnabled')['to'](_0x545752,'isEnabled'),_0x2118e2['set']({'label':t(_0x59b64a?'Footnote':'Insert\x20footnote'),'icon':_0x84eeab,'tooltip':!0x0}),_0x2118e2['on']('execute',()=>{_0x545752['execute'](),_0x43f822['editing']['view']['focus']();}),_0x2118e2;};}class lt extends _0x1c8292{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x1f7936{['refresh'](){const {editor:_0x1d9fdc}=this,_0x4b171a=_0x1d9fdc['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b171a,this['value']=_0x4b171a?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x295546}){const {editor:_0x21c76c}=this,_0x46ddd8=_0x21c76c['plugins']['get'](c),_0x3087e5=_0x46ddd8['getFootnotesDefinitionsObjectElement']();_0x3087e5&&Q['includes'](_0x295546)&&_0x21c76c['model']['change'](_0x9ddd3d=>{_0x9ddd3d['setAttribute']('footnotesListStyle',_0x295546,_0x3087e5),_0x46ddd8['_updateFootnotesCounters'](_0x9ddd3d);});}}class C extends _0x1f7936{['refresh'](){const {editor:_0x5a50ba}=this,_0x525f4b=_0x5a50ba['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x525f4b,this['value']=_0x525f4b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x458fac}){const {editor:_0x17a835}=this,_0x23640c=_0x17a835['plugins']['get'](c),_0x26b672=_0x23640c['getFootnotesDefinitionsObjectElement']();_0x26b672&&Number['isInteger'](_0x458fac)&&_0x17a835['model']['change'](_0xd06739=>{_0xd06739['setAttribute']('footnotesListStart',_0x458fac,_0x26b672),_0x23640c['_updateFootnotesCounters'](_0xd06739);});}}class P extends _0x1c8292{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8c46b2}=this;_0x8c46b2['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x8c46b2['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x8c46b2['commands']['add']('footnotesStyle',new S(_0x8c46b2)),_0x8c46b2['commands']['add']('footnotesStart',new C(_0x8c46b2)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x32d75b}=this,{schema:_0x19d8cc}=_0x32d75b['model'];_0x19d8cc['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x36d60e}=this,{conversion:_0x52cce8,model:_0x3508db}=_0x36d60e,{schema:_0x21dc94}=_0x3508db;_0x52cce8['for']('upcast')['add'](_0x41b44a=>{_0x41b44a['on']('element:ol',(_0x381156,_0x52a017,_0x3e8fb8)=>{const _0x183f8a=_0x52a017['viewItem'],_0x48d1a2=_0x52a017['modelCursor']?.['parent'];_0x183f8a['hasClass']('footnotes-list')&&_0x48d1a2?.['is']('element','footnotesDefinitions')&&(function(_0x14f1f9,_0x322ae2,_0x4cf968,_0x189468){if(!_0x189468['checkAttribute'](_0x322ae2,'footnotesListStart'))return;let _0x322c1c=0x1;const _0x1a11fb=_0x4cf968['consumable']['consume'](_0x14f1f9,{'attributes':'start'});if(_0x1a11fb){const _0x36105c=Number['parseInt'](_0x14f1f9['getAttribute']('start'),0xa);Number['isNaN'](_0x36105c)||(_0x322c1c=_0x36105c);}!_0x1a11fb&&_0x322ae2['hasAttribute']('footnotesListStart')||_0x4cf968['writer']['setAttribute']('footnotesListStart',_0x322c1c,_0x322ae2);}(_0x183f8a,_0x48d1a2,_0x3e8fb8,_0x21dc94),function(_0x19d635,_0x17022a,_0x831a64,_0x1005c2){if(!_0x1005c2['checkAttribute'](_0x17022a,'footnotesListStyle'))return;let _0x2d4cd5='decimal',_0x32444b=!0x1;if(_0x831a64['consumable']['consume'](_0x19d635,{'attributes':'type'})){const _0x21714a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x19d635['getAttribute']('type')];_0x21714a&&(_0x2d4cd5=_0x21714a),_0x32444b=!0x0;}_0x831a64['consumable']['consume'](_0x19d635,{'styles':'list-style-type'})&&(_0x2d4cd5=_0x19d635['getStyle']('list-style-type'),_0x32444b=!0x0),!_0x32444b&&_0x17022a['hasAttribute']('footnotesListStyle')||_0x831a64['writer']['setAttribute']('footnotesListStyle',_0x2d4cd5,_0x17022a);}(_0x183f8a,_0x48d1a2,_0x3e8fb8,_0x21dc94));});}),_0x52cce8['for']('downcast')['add'](_0x1bd5a8=>{_0x1bd5a8['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x37a4b4,_0x27e1d3,_0x3f03d9)=>{if(!_0x3f03d9['consumable']['consume'](_0x27e1d3['item'],_0x37a4b4['name']))return;const _0x52e560=M(_0x27e1d3['item'],_0x3f03d9['mapper']),{attributeNewValue:_0x1cefa5}=_0x27e1d3;null==_0x1cefa5||0x1===_0x1cefa5?_0x3f03d9['writer']['removeAttribute']('start',_0x52e560):_0x3f03d9['writer']['setAttribute']('start',String(_0x1cefa5),_0x52e560);}),_0x1bd5a8['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1ac2a5,_0x516903,_0x4bdad3)=>{if(!_0x4bdad3['consumable']['consume'](_0x516903['item'],_0x1ac2a5['name']))return;const _0x36eab7=M(_0x516903['item'],_0x4bdad3['mapper']),{attributeNewValue:_0x4c317b}=_0x516903;_0x4c317b&&'decimal'!==_0x4c317b?_0x4bdad3['writer']['setStyle']('list-style-type',_0x4c317b,_0x36eab7):_0x4bdad3['writer']['removeStyle']('list-style-type',_0x36eab7);});});}['_definePostfixer'](){const {editor:_0x58bfa5}=this,{model:_0x139307}=_0x58bfa5,_0x1825ec=_0x58bfa5['plugins']['get'](c),_0xd3fae8=this['_getDefaultListStyle'](),_0x43dcd2=this['_getDefaultStartIndex']();_0x139307['document']['registerPostFixer'](_0x36ad34=>{const _0x525ed2=_0x139307['document']['differ']['getChanges']();let _0x4c0c1a=!0x1;for(const _0x11485d of _0x525ed2){if('insert'!==_0x11485d['type']||'$text'===_0x11485d['name'])continue;const _0x5d1252=_0x139307['createRangeOn'](_0x11485d['position']['nodeAfter']);for(const _0x44340b of _0x5d1252['getItems']())_0x44340b['is']('element','footnotesDefinitions')&&(!_0x44340b['hasAttribute']('footnotesListStart')&&_0x139307['schema']['checkAttribute'](_0x44340b,'footnotesListStart')&&(_0x36ad34['setAttribute']('footnotesListStart',_0x43dcd2,_0x44340b),_0x4c0c1a=!0x0),!_0x44340b['hasAttribute']('footnotesListStyle')&&_0x139307['schema']['checkAttribute'](_0x44340b,'footnotesListStyle')&&(_0x36ad34['setAttribute']('footnotesListStyle',_0xd3fae8,_0x44340b),_0x4c0c1a=!0x0));}return _0x4c0c1a&&_0x1825ec['_updateFootnotesCounters'](_0x36ad34),_0x4c0c1a;});}['_defineFormatter'](){const {editor:_0x687057}=this;_0x687057['plugins']['get'](c)['setFootnoteFormatter'](_0x36c198=>this['_formatFootnoteListValue'](_0x36c198));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5de4e2,value:_0x4dd839,digits:_0x3c0904}){const _0x282f52=_0x5de4e2['getAttribute']('footnotesListStyle'),_0x529949=_0x5de4e2['getAttribute']('footnotesListStart'),_0x750bd4=Math['floor'](_0x4dd839)+(_0x529949??0x1)-0x1;switch(_0x282f52){case'decimal-leading-zero':return function(_0x1f7086,_0x71f3e6){return String(_0x1f7086)['padStart'](_0x71f3e6,'0');}(_0x750bd4,Math['max'](0x2,_0x3c0904));case'lower-alpha':case'lower-latin':return N(_0x750bd4,!0x1);case'upper-alpha':case'upper-latin':return N(_0x750bd4,!0x0);case'lower-roman':return X(_0x750bd4,!0x1);case'upper-roman':return X(_0x750bd4,!0x0);default:return String(_0x750bd4);}}}function M(_0x65e726,_0x246420){const _0x5a5da0=_0x246420['toViewElement'](_0x65e726);return Array['from'](_0x5a5da0['getChildren']())['find'](_0x5253db=>_0x5253db['is']('element','ol')&&_0x5253db['hasClass']('footnotes-list'));}function N(_0x4cb24e,_0x5e549b){let _0x38c0d3='',_0x3d2845=_0x4cb24e;for(;_0x3d2845>0x0;){const _0x293cc0=(_0x3d2845-0x1)%0x1a;_0x38c0d3=String['fromCharCode'](0x61+_0x293cc0)+_0x38c0d3,_0x3d2845=Math['floor']((_0x3d2845-0x1)/0x1a);}return _0x5e549b?_0x38c0d3['toUpperCase']():_0x38c0d3;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x18e7ca,_0x542dcd){let _0x15b7d9='',_0x4ff700=_0x18e7ca;for(const {value:_0x55423d,numeral:_0x113d9d}of V)for(;_0x4ff700>=_0x55423d;)_0x15b7d9+=_0x113d9d,_0x4ff700-=_0x55423d;return _0x542dcd?_0x15b7d9:_0x15b7d9['toLowerCase']();}class H extends _0x3a149b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x4f86dd();['focusCycler'];constructor(_0x1bc44d,{styleButtonViews:_0x39a790,styleGridAriaLabel:_0x5a2501}){super(_0x1bc44d),(this['focusCycler']=new _0x51b0a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x39a790,_0x5a2501),[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 _0x95a1a4 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x95a1a4['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x57eb6c=_0x4840f4=>_0x4840f4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x57eb6c),this['keystrokes']['set']('arrowleft',_0x57eb6c),this['keystrokes']['set']('arrowup',_0x57eb6c),this['keystrokes']['set']('arrowdown',_0x57eb6c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2888bd,_0x39a8a9){const _0x5319b1=new _0x3a149b(this['locale']);return _0x5319b1['children']=_0x5319b1['createCollection'](),_0x5319b1['children']['addMany'](_0x2888bd),_0x5319b1['setTemplate']({'tag':'div','attributes':{'aria-label':_0x39a8a9,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5319b1['children']}),_0x5319b1['children']['delegate']('execute')['to'](this),_0x5319b1['focus']=function(){for(const _0x68412d of this['children'])if(_0x68412d instanceof _0xaf85d0&&_0x68412d['isOn'])return void _0x68412d['focus']();this['children']['first']['focus']();},_0x5319b1['focusTracker']=new ot(),_0x5319b1['keystrokes']=new rt(),_0x5319b1['render'](),_0x5319b1['keystrokes']['listenTo'](_0x5319b1['element']),this['children']['add'](_0x5319b1),_0x5319b1;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4a2b75=this['_createStartIndexPropertyView'](),_0x20cc74=[_0x4a2b75],_0x2cb4c2=new st(this['locale'],_0x20cc74);return _0x2cb4c2['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2cb4c2['buttonView']['bind']('isEnabled')['toMany'](_0x20cc74,'isEnabled',(..._0x59eeec)=>_0x59eeec['some'](_0xa7c598=>_0xa7c598)),_0x2cb4c2['buttonView']['on']('change:isEnabled',(_0x2b535a,_0x2dd839,_0x34b728)=>{_0x34b728||(_0x2cb4c2['isCollapsed']=!0x0);}),this['children']['add'](_0x2cb4c2),[_0x4a2b75,_0x2cb4c2];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1e273c=new it(this['locale'],et);return _0x1e273c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1e273c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1e273c['fieldView']['on']('input',()=>{const _0x57c5ce=_0x1e273c['fieldView']['element'],_0x193c60=_0x57c5ce['valueAsNumber'];Number['isNaN'](_0x193c60)?_0x1e273c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x57c5ce['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x193c60}):_0x1e273c['errorText']=t(_0x193c60<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1e273c;}}class j extends _0x1c8292{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5014c0,_0x2f5df6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x859dd0}=this,{componentFactory:_0x504696}=_0x859dd0['ui'];_0x859dd0['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x504696['add']('footnotesStyle',function(_0xcb795f){return _0x5ed610=>{const {t:t}=_0x5ed610,_0x127fc8=_0xcb795f['commands']['get']('footnotesStyle'),_0x1e5c1b=_0x3944d5(_0x5ed610),{buttonView:_0x94bc3c}=_0x1e5c1b;return _0x1e5c1b['class']='ck-footnotes-styles-dropdown',_0x1e5c1b['bind']('isEnabled')['to'](_0x127fc8,'isEnabled'),_0x94bc3c['set']({'label':t('Footnotes\x20style'),'icon':_0x84eeab,'tooltip':!0x0}),_0x1e5c1b['once']('change:isOpen',()=>{const _0x1ab991=function({editor:_0x4fc681,dropdownView:_0xad9bfc}){const {t:t}=_0x4fc681['locale'],_0x4bf464=t('Footnotes\x20definitions\x20styles'),_0x185969=function(_0xc957ef){const t=_0xc957ef['locale']['t'],_0x195081=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5279ac},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x42017c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x44ed05},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x488017},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3a526c},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5e391c}];return _0x195081['map'](function(_0x2583ee){const _0x481e4d=_0x2583ee['locale'];return({label:_0x59fd79,icon:_0x16bae0,tooltip:_0x2e3095,style:_0x3e2d6b})=>{const _0x31b384=_0x2583ee['commands']['get']('footnotesStyle'),_0x56ab09=new _0xaf85d0(_0x481e4d);return _0x56ab09['set']({'label':_0x59fd79,'icon':_0x16bae0,'tooltip':_0x2e3095}),_0x56ab09['bind']('isOn')['to'](_0x31b384,'value',_0x509dbe=>_0x509dbe===_0x3e2d6b),_0x56ab09['bind']('isEnabled')['to'](_0x31b384,'isEnabled'),_0x56ab09['on']('execute',()=>{_0x2583ee['execute']('footnotesStyle',{'value':_0x3e2d6b}),_0x2583ee['editing']['view']['focus']();}),_0x56ab09;};}(_0xc957ef));}(_0x4fc681),_0x399e0e=new H(_0x4fc681['locale'],{'styleGridAriaLabel':_0x4bf464,'styleButtonViews':_0x185969});return _0x399e0e['delegate']('execute')['to'](_0xad9bfc),_0x399e0e['on']('footnotesListStart',(_0x315c31,_0x317fd4)=>{_0x4fc681['execute']('footnotesStart',{'value':_0x317fd4['startIndex']});}),_0x399e0e;}({'editor':_0xcb795f,'dropdownView':_0x1e5c1b});_0x1e5c1b['panelView']['children']['add'](_0x1ab991);}),_0x1e5c1b;};}(_0x859dd0));}['afterInit'](){const {editor:_0x5bf5da}=this,{t:t}=_0x5bf5da['locale'],_0x38ea3d=_0x5bf5da['plugins']['get'](_0x2f5df6),{defaultPositions:_0x4ee25d}=_0x3f1694;_0x38ea3d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5bf5da['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xcb34c0=>{let _0x146a9c=_0xcb34c0['getFirstPosition']()?.['parent'];return _0x146a9c?.['is']('$text')&&(_0x146a9c=_0x146a9c['parent']),_0x146a9c?.['is']('element')?_0x146a9c['findAncestor'](J):null;},'positions':[_0x4ee25d['southArrowNorth'],_0x4ee25d['southArrowNorthMiddleWest'],_0x4ee25d['southArrowNorthMiddleEast'],_0x4ee25d['southArrowNorthWest'],_0x4ee25d['southArrowNorthEast'],_0x4ee25d['northArrowSouth'],_0x4ee25d['northArrowSouthMiddleWest'],_0x4ee25d['northArrowSouthMiddleEast'],_0x4ee25d['northArrowSouthWest'],_0x4ee25d['northArrowSouthEast'],_0x4ee25d['viewportStickyNorth']]});}}class ft extends _0x1c8292{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x3c0d71,Command as _0x25ead8}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4f51ec,isWidget as _0x46fe4d,toWidgetEditable as _0x31ff1d,WidgetToolbarRepository as _0x166e8e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x20b358,logWarning as _0x458152,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x40d796,ClickObserver as _0x184870}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1ef6b2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x86620c,ButtonView as _0x3d77de,View as _0x4e0417,ViewCollection as _0x194cae,FocusCycler as _0x333af1,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x503f80,BalloonPanelView as _0x4b756c,createDropdown as _0x1d91f8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x183d10,IconListStyleDecimal as _0x351165,IconListStyleDecimalLeadingZero as _0x45f5c3,IconListStyleLowerRoman as _0x2f8963,IconListStyleUpperRoman as _0x5c83a6,IconListStyleLowerLatin as _0x57c65c,IconListStyleUpperLatin as _0x37aad6}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x10fa1c,_0x378d16){this['_model']=_0x10fa1c,this['_elementName']=_0x378d16['elementName'],this['_getElementKey']=_0x378d16['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xb08193){const _0xaeb4be=new Set(),_0x45eef0=new Map();for(const _0xb805c2 of _0xb08193){if('insert'===_0xb805c2['type']&&'$text'!==_0xb805c2['name']&&_0xb805c2['position']['nodeAfter']){const _0x17496d=this['_model']['createRangeOn'](_0xb805c2['position']['nodeAfter']);for(const _0x1b2849 of _0x17496d['getItems']()){if(!_0x1b2849['is']('element',this['_elementName']))continue;const _0x1f4fb0=this['_getElementKey'](_0x1b2849);_0x45eef0['has'](_0x1f4fb0)||_0x45eef0['set'](_0x1f4fb0,[]),_0x45eef0['get'](_0x1f4fb0)['push'](_0x1b2849);}}if('remove'===_0xb805c2['type']&&_0xb805c2['name']===this['_elementName']){const _0x5a446a=this['_getElementKey']({'getAttribute':_0x17f11a=>_0xb805c2['attributes']['get'](_0x17f11a)});_0xaeb4be['add'](_0x5a446a);}}for(const [_0x251ef3,_0x4afab3]of this['_trackedElements'])'$graveyard'===_0x4afab3['root']['rootName']&&_0xaeb4be['add'](_0x251ef3);for(const _0x2d43a7 of _0xaeb4be)this['_trackedElements']['delete'](_0x2d43a7);for(const [_0x227f2e,_0x51a338]of _0x45eef0)this['_trackedElements']['set'](_0x227f2e,_0x51a338[_0x51a338['length']-0x1]);const _0x17cf56=new Set();for(const [_0x5a5bd6,_0x11b220]of _0x45eef0)_0xaeb4be['has'](_0x5a5bd6)&&(_0x17cf56['add'](_0x11b220[0x0]),_0x11b220['length']>0x1?_0x45eef0['set'](_0x5a5bd6,_0x11b220['slice'](0x1)):_0x45eef0['delete'](_0x5a5bd6),_0xaeb4be['delete'](_0x5a5bd6));return{'removed':Array['from'](_0xaeb4be),'inserted':Array['from'](_0x45eef0['values']())['flat'](),'moved':Array['from'](_0x17cf56)};}}class c extends _0x3c0d71{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32b882){super(_0x32b882),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x50517b=>_0x50517b['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x196d1a=>_0x196d1a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x59fd65}=this,{model:_0x4b0aab,data:_0x10a2b5}=_0x59fd65;_0x4b0aab['document']['registerPostFixer'](_0x3666e2=>{const _0x379147=_0x4b0aab['document']['differ']['getChanges']();let _0x37264e=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3666e2,_0x379147)&&(_0x37264e=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3666e2,_0x379147)&&(_0x37264e=!0x0),this['_handleFootnoteReferencesChanges'](_0x3666e2,_0x379147)&&(_0x37264e=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3666e2)&&(_0x37264e=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3666e2)&&(_0x37264e=!0x0),this['_sortFootnoteDefinitions'](_0x3666e2)&&(_0x37264e=!0x0),_0x37264e;}),this['listenTo'](_0x4b0aab['document'],'change:data',()=>{_0x4b0aab['enqueueChange']({'isUndoable':!0x1},_0x199a51=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x199a51);});},{'priority':'low'}),this['listenTo'](_0x10a2b5,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x19f846){return this['_footnotes']['find'](_0x28211=>_0x28211['id']===_0x19f846)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x161549){this['_footnoteFormatter']=_0x161549;}['_updateFootnotesCounters'](_0x1f65af,_0x2edce4=0x0){let _0x4a0737=!0x1;for(let _0x37f095=_0x2edce4;_0x37f095<this['_footnotes']['length'];_0x37f095++)this['_updateFootnoteRefCounter'](_0x1f65af,_0x37f095)&&(_0x4a0737=!0x0);return _0x4a0737;}['_insertEmptyFootnotesDefinitionsContainer'](_0x21aa3e,_0x2661ab){const _0x985131=_0x21aa3e['createElement']('footnotesDefinitions',{});return _0x21aa3e['append'](_0x985131,_0x2661ab),this['_footnotesDefinitions']=_0x985131,_0x985131;}['_ensureFootnotesDefinitionsContainerExists'](_0x40cc15){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x296533=this['_footnotes'][0x0]['reference']['root'],_0x2ad87a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x40cc15,_0x296533);for(const _0x3073b5 of this['_footnotes'])_0x3073b5['definition']['parent']||_0x40cc15['insert'](_0x3073b5['definition'],_0x2ad87a,'end');this['_updateFootnotesCounters'](_0x40cc15);}['_handleFootnotesDefinitionsObjectChanges'](_0x23f709,_0x337ec5){let _0x4d2d62=!0x1;const {inserted:_0x353675,removed:_0x35417a,moved:_0x4ee1e7}=this['_footnoteDefsContainerTracker']['getChanges'](_0x337ec5);if(_0x4ee1e7['length']&&(this['_footnotesDefinitions']=_0x4ee1e7[0x0]),_0x353675['length']){if(_0x353675['length']>0x1||this['_footnotesDefinitions']&&_0x353675['some'](_0x3caa11=>_0x3caa11!==this['_footnotesDefinitions'])){const _0x2abd19=_0x23f709['createElement']('footnotesDefinitions',{}),_0x37eefd=[];this['_footnotesDefinitions']&&_0x37eefd['push'](this['_footnotesDefinitions']),_0x37eefd['push'](..._0x353675),_0x23f709['insert'](_0x2abd19,_0x37eefd[0x0],'before');for(const _0x3c0c0d of _0x37eefd)_0x23f709['move'](_0x23f709['createRangeIn'](_0x3c0c0d),_0x23f709['createPositionAt'](_0x2abd19,'end')),_0x23f709['remove'](_0x3c0c0d);this['_footnotesDefinitions']=_0x2abd19,this['_updateFootnotesCounters'](_0x23f709),_0x4d2d62=!0x0;}else this['_footnotesDefinitions']=_0x353675[0x0];}if(_0x35417a['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x8f0f21 of this['_footnotes'])_0x23f709['remove'](_0x8f0f21['reference']),_0x4d2d62=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4d2d62;}['_handleFootnoteDefinitionsChanges'](_0x43ae41,_0x5254c6){let _0x4ca899=!0x1;const _0x1aa005=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x812896,moved:_0x1abb5c}=this['_footnoteDefsTracker']['getChanges'](_0x5254c6);for(const _0x497ea1 of[..._0x1abb5c,..._0x812896]){const _0x55481d=_0x497ea1['getAttribute']('footnoteId'),_0x32a312=this['getFootnote'](_0x55481d);_0x32a312&&(_0x32a312['definition']=_0x497ea1),_(_0x43ae41,_0x1aa005,_0x497ea1)&&(_0x4ca899=!0x0);}return _0x4ca899;}['_handleFootnoteReferencesChanges'](_0x16f4ff,_0x54c57f){let _0x5441ad=!0x1;const {removed:_0x498719,inserted:_0x23bbe9,moved:_0x5d6375}=this['_footnoteRefsTracker']['getChanges'](_0x54c57f);for(const _0x16ebdf of _0x498719)this['_handleRemoveFootnoteReferenceById'](_0x16f4ff,_0x16ebdf)&&(_0x5441ad=!0x0);for(const _0x5a1633 of _0x23bbe9)this['_handleInsertedFootnoteReference'](_0x16f4ff,_0x5a1633)&&(_0x5441ad=!0x0);for(const _0x23bb81 of _0x5d6375)this['_handleMovedFootnoteReference'](_0x16f4ff,_0x23bb81)&&(_0x5441ad=!0x0);return _0x5441ad;}['_handleFootnotesDefinitionsObjectSync'](_0x5d4c89){if(!this['_footnotesDefinitions'])return!0x1;let _0x5af0f8=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x10b13e=[];for(const _0x3b9590 of this['_footnotesDefinitions']['getChildren']()){const _0x4446a9=_0x3b9590['getAttribute']('footnoteId');this['getFootnote'](_0x4446a9)||(_0x10b13e['unshift'](_0x3b9590),_0x5af0f8=!0x0);}for(const _0x24eb9b of _0x10b13e)_0x5d4c89['remove'](_0x24eb9b);}const _0x44a199=new Set(),_0x26bb32=[];for(const _0x8e506f of this['_footnotesDefinitions']['getChildren']()){const _0x22c31e=_0x8e506f['getAttribute']('footnoteId');_0x44a199['has'](_0x22c31e)?(_0x26bb32['unshift'](_0x8e506f),_0x5af0f8=!0x0):_0x44a199['add'](_0x22c31e);}for(const _0x3e2f69 of _0x26bb32)_0x5d4c89['remove'](_0x3e2f69);return this['_footnotesDefinitions']['childCount']||(_0x5d4c89['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5af0f8=!0x0),_0x5af0f8;}['_handleInsertedFootnoteReference'](_0x53013b,_0x2613d5){if(this['_footnotes']['find'](_0x4dd4fc=>_0x4dd4fc['reference']===_0x2613d5))return!0x1;let _0x16e106=!0x1;const _0x43b39b=_0x2613d5['getAttribute']('footnoteId'),_0x10756c=this['_footnotes']['findIndex'](_0x51bcc8=>_0x51bcc8['id']===_0x43b39b);-0x1!==_0x10756c&&(_0x53013b['remove'](this['_footnotes'][_0x10756c]['reference']),this['_footnotes']['splice'](_0x10756c,0x1),_0x16e106=!0x0);let _0x3eed22=this['_footnotesDefinitions']?function(_0x4c41ae,_0x3ec719){for(const _0x20f3b7 of _0x4c41ae['getChildren']())if(_0x20f3b7['getAttribute']('footnoteId')===_0x3ec719)return _0x20f3b7;return null;}(this['_footnotesDefinitions'],_0x43b39b):null;_0x3eed22||(_0x3eed22=_0x53013b['createElement']('footnoteDefinition',{'footnoteId':_0x43b39b}),this['_footnotesDefinitions']&&(_0x53013b['insert'](_0x3eed22,this['_footnotesDefinitions'],'end'),_0x16e106=!0x0));const _0x16c5b8={'id':_0x43b39b,'reference':_0x2613d5,'definition':_0x3eed22},_0x14f7cf=I(this['editor']['model'],this['_footnotes'],_0x2613d5);this['_footnotes']['splice'](_0x14f7cf,0x0,_0x16c5b8);let _0x3d12a3=_0x14f7cf;return-0x1!==_0x10756c&&(_0x3d12a3=Math['min'](_0x14f7cf,_0x10756c)),this['_updateFootnotesCounters'](_0x53013b,_0x3d12a3)&&(_0x16e106=!0x0),_0x16e106;}['_handleRemoveFootnoteReferenceById'](_0x32abf0,_0x5318ac){const _0x128bc1=this['_footnotes']['findIndex'](_0x1069fd=>_0x1069fd['id']===_0x5318ac);if(-0x1===_0x128bc1)return!0x1;let _0x130d40=!0x1;const _0x1780ce=this['_footnotes'][_0x128bc1];return'$graveyard'!==_0x1780ce['definition']['root']['rootName']&&(_0x32abf0['remove'](_0x1780ce['definition']),_0x130d40=!0x0),this['_footnotes']['splice'](_0x128bc1,0x1),this['_updateFootnotesCounters'](_0x32abf0,_0x128bc1)&&(_0x130d40=!0x0),_0x130d40;}['_handleMovedFootnoteReference'](_0x165ca5,_0x981a6d){const _0x5a3b52=_0x981a6d['getAttribute']('footnoteId'),_0x513ea2=this['_footnotes']['findIndex'](_0xb0683=>_0xb0683['id']===_0x5a3b52),_0x8ad4b9=this['_footnotes'][_0x513ea2];let _0x2f4cc8=!0x1;_0x8ad4b9['reference']=_0x981a6d,this['_footnotes']['splice'](_0x513ea2,0x1);const _0x86a487=I(this['editor']['model'],this['_footnotes'],_0x981a6d);return this['_footnotes']['splice'](_0x86a487,0x0,_0x8ad4b9),this['_updateFootnotesCounters'](_0x165ca5,Math['min'](_0x513ea2,_0x86a487))&&(_0x2f4cc8=!0x0),_0x2f4cc8;}['_updateFootnoteRefCounter'](_0x5987c2,_0x350cca){if(!this['_footnotesDefinitions'])return!0x1;const _0x23f1fb=this['_footnotes'][_0x350cca];let _0x17410a;return _0x17410a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x23f1fb,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x350cca+0x1}):String(_0x350cca+0x1),_0x23f1fb['reference']['getAttribute']('footnoteCounter')!=_0x17410a&&(_0x5987c2['setAttribute']('footnoteCounter',_0x17410a,_0x23f1fb['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3c8cd0){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x359d6e,_0x6a9a4b){if(_0x359d6e['length']!==_0x6a9a4b['length'])return!0x1;for(let _0x4f4afc=0x0;_0x4f4afc<_0x359d6e['length'];_0x4f4afc++)if(_0x359d6e[_0x4f4afc]!==_0x6a9a4b[_0x4f4afc])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x30319b=>_0x30319b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3bb7ea=>_0x3bb7ea['getAttribute']('footnoteId'))))return!0x1;let _0x1e9c4d=!0x1;for(let _0x771a23=0x0;_0x771a23<this['_footnotes']['length'];_0x771a23++){const _0x363020=this['_footnotes'][_0x771a23],_0x8f3250=_0x3c8cd0['createPositionBefore'](_0x363020['definition']),_0x4bbbad=_0x3c8cd0['createPositionAt'](this['_footnotesDefinitions'],_0x771a23);_0x8f3250['isEqual'](_0x4bbbad)||(_0x3c8cd0['move'](_0x3c8cd0['createRangeOn'](_0x363020['definition']),_0x4bbbad),_0x1e9c4d=!0x0);}return _0x1e9c4d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x418722){if(!this['_footnotes']['length'])return!0x1;const {model:_0x17d06a}=this['editor'];let _0x43cb23=!0x1;for(let _0x41e728=0x0;_0x41e728<this['_footnotes']['length']-0x1;_0x41e728++){const _0x2879e0=this['_footnotes'][_0x41e728],_0xb56f=this['_footnotes'][_0x41e728+0x1],_0x46bdff=_0x17d06a['createPositionBefore'](_0x2879e0['reference']),_0x290cab=_0x17d06a['createPositionBefore'](_0xb56f['reference']);'after'===_0x46bdff['compareWith'](_0x290cab)&&(this['_handleMovedFootnoteReference'](_0x418722,_0x2879e0['reference']),_0x41e728=-0x1,_0x43cb23=!0x0);}return _0x43cb23;}}function _(_0x282ee9,_0x2b75a5,_0x3a7f4a){if(_0x3a7f4a['childCount'])return!0x1;const _0x304815=_0x2b75a5?'paragraph':'footnoteInlineContent';return _0x282ee9['insert'](_0x282ee9['createElement'](_0x304815),_0x3a7f4a),!0x0;}function I(_0x59f987,_0x3d8730,_0x455943){if(0x0===_0x3d8730['length'])return 0x0;const _0x1d0832=_0x59f987['createPositionBefore'](_0x455943);for(let _0x46e6ee=0x0;_0x46e6ee<_0x3d8730['length'];_0x46e6ee++){const _0x2fdb89=_0x3d8730[_0x46e6ee],_0x2ad363=_0x59f987['createPositionBefore'](_0x2fdb89['reference']);if('before'===_0x1d0832['compareWith'](_0x2ad363))return _0x46e6ee;}const _0x5ed2b7=_0x455943['root'];let _0x55180e=-0x1;for(let _0x1c3432=_0x3d8730['length']-0x1;_0x1c3432>=0x0;_0x1c3432--)if(_0x3d8730[_0x1c3432]['reference']['root']===_0x5ed2b7){_0x55180e=_0x1c3432;break;}if(-0x1!==_0x55180e)return _0x55180e+0x1;const _0x53d900=_0x59f987['document']['getRootNames'](),_0x1d6e45=_0x53d900['indexOf'](_0x5ed2b7['rootName']),_0x342e43=_0x53d900[_0x1d6e45+0x1];if(_0x342e43){for(let _0x108738=0x0;_0x108738<_0x3d8730['length'];_0x108738++)if(_0x3d8730[_0x108738]['reference']['root']['rootName']===_0x342e43)return _0x108738;}return _0x3d8730['length'];}class m extends _0x25ead8{['refresh'](){const _0x5065ee=this['editor']['model']['document']['selection'],_0x356d99=this['_getPositionToInsertFootnote'](_0x5065ee);this['isEnabled']=!!_0x356d99;}['execute'](_0x7e1d17){const {editor:_0x41539b}=this,{model:_0x3700d5}=_0x41539b,{selection:_0x252cd0}=_0x3700d5['document'],_0x28ccb6=this['_getPositionToInsertFootnote'](_0x252cd0);if(!_0x28ccb6)return;const _0xb84c7a=_0x41539b['plugins']['get']('FootnotesEditing'),_0xdc6f5a=_0x7e1d17?.['footnoteId']??_0x20b358();!function(_0x2eaf7e){return'string'==typeof _0x2eaf7e&&_0x2eaf7e['length']>0x0&&!/\s/['test'](_0x2eaf7e)&&!/^\d/['test'](_0x2eaf7e);}(_0xdc6f5a)?_0x458152('insert-footnote-command-executed-with-invalid-id'):(_0x3700d5['change'](_0x559332=>{const _0x4839e3=_0x559332['createElement']('footnoteRef',{'footnoteId':_0xdc6f5a});_0x3700d5['insertObject'](_0x4839e3,_0x28ccb6,null);}),_0xb84c7a['_moveSelectionToFootnoteDefinition'](_0xdc6f5a));}['_getPositionToInsertFootnote'](_0xa61f7b){const {model:_0x1d2d56}=this['editor'],{schema:_0x3e2ddd}=_0x1d2d56,_0x559faa=_0xa61f7b['getFirstRange']();for(const _0xce7f78 of _0x559faa['getItems']())if(_0x3e2ddd['isBlock'](_0xce7f78)||_0x3e2ddd['isObject'](_0xce7f78))return null;const _0x37132d=_0x559faa['end'];return _0x3e2ddd['checkChild'](_0x37132d,'footnoteRef')?_0x37132d:null;}}class r extends _0x3c0d71{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d938d}=this;_0x3d938d['config']['define']('footnotes.multiBlock',!0x0),_0x3d938d['commands']['add']('insertFootnote',new m(_0x3d938d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x403dbe){const _0x721a71=_0x1de111([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x4f34f9=0x47a28506,_0x3cbaf3=0x47a5ffae^_0x4f34f9,_0x58da89=window[_0x1de111([0x44,0x61,0x74,0x65])][_0x1de111([0x6e,0x6f,0x77])](),_0x4db335=_0x403dbe[_0x1de111([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x534641=new window[(_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40174f=>{_0x4db335[_0x1de111([0x6f,0x6e,0x63,0x65])](_0x1de111([0x72,0x65,0x61,0x64,0x79]),_0x40174f);}),_0x44e71f={[_0x1de111([0x6b,0x74,0x79])]:_0x1de111([0x45,0x43]),[_0x1de111([0x75,0x73,0x65])]:_0x1de111([0x73,0x69,0x67]),[_0x1de111([0x63,0x72,0x76])]:_0x1de111([0x50,0x2d,0x32,0x35,0x36]),[_0x1de111([0x78])]:_0x1de111([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1de111([0x79])]:_0x1de111([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1de111([0x61,0x6c,0x67])]:_0x1de111([0x45,0x53,0x32,0x35,0x36])},_0x2a83b3=_0x4db335[_0x1de111([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1de111([0x67,0x65,0x74])](_0x1de111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f07fa(){let _0x3b33c7,_0x1f8933=null,_0x28684f=null;try{if(_0x2a83b3==_0x1de111([0x47,0x50,0x4c]))return _0x1de111([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b33c7=_0x407fbd(),!_0x3b33c7)return _0x1de111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b33c7[_0x1de111([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28684f=_0x29c56c(_0x3b33c7[_0x1de111([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b33c7[_0x1de111([0x6a,0x74,0x69])])),await _0x50c373()?_0x342633()?_0x3dd55b()?_0x1de111([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b01dc()?(_0x3b33c7[_0x1de111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1de111([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f8933=_0x22eaaa(_0x1de111([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b33c7[_0x1de111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1de111([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f8933=_0x22eaaa(_0x1de111([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5129be()):_0x1de111([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1de111([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1de111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1de111([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3dd55b(){const _0x2f8840=[_0x1de111([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1de111([0x74,0x72,0x69,0x61,0x6c])][_0x1de111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b33c7[_0x1de111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58da89/0x3e8:0xe10*_0x3cbaf3;return _0x3b33c7[_0x1de111([0x65,0x78,0x70])]<_0x2f8840;}function _0x342633(){const _0x40b177=_0x3b33c7[_0x1de111([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40b177&&(!!_0x40b177[_0x1de111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de111([0x2a]))||!!_0x40b177[_0x1de111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de111([0x46,0x4f,0x4f])));}function _0x5b01dc(){const _0x5f4b0a=_0x3b33c7[_0x1de111([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f4b0a||0x0==_0x5f4b0a[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34ce9b}=new URL(window[_0x1de111([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f4b0a[_0x1de111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ce9b))return!0x0;const _0x15d214=_0x34ce9b[_0x1de111([0x73,0x70,0x6c,0x69,0x74])](_0x1de111([0x2e]));return _0x5f4b0a[_0x1de111([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c78d9=>_0x2c78d9[_0x1de111([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de111([0x2a])))[_0x1de111([0x6d,0x61,0x70])](_0x33eeff=>_0x33eeff[_0x1de111([0x73,0x70,0x6c,0x69,0x74])](_0x1de111([0x2e])))[_0x1de111([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30c745=>_0x30c745[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15d214[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1de111([0x6d,0x61,0x70])](_0x187c56=>Array(_0x15d214[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x187c56[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1de111([0x66,0x69,0x6c,0x6c])](_0x187c56[0x0]===_0x1de111([0x2a])?_0x1de111([0x2a]):'')[_0x1de111([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x187c56))[_0x1de111([0x73,0x6f,0x6d,0x65])](_0x22d74a=>_0x15d214[_0x1de111([0x65,0x76,0x65,0x72,0x79])]((_0x47457e,_0x3e06a5)=>_0x22d74a[_0x3e06a5]===_0x47457e||_0x22d74a[_0x3e06a5]===_0x1de111([0x2a])));}function _0x5129be(){return _0x1f8933&&_0x28684f?new window[(_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22ffe6,_0x23e22b)=>{_0x1f8933[_0x1de111([0x74,0x68,0x65,0x6e])](_0x22ffe6,_0x23e22b),_0x28684f[_0x1de111([0x74,0x68,0x65,0x6e])](_0x6b3269=>{_0x6b3269!=_0x1de111([0x56,0x61,0x6c,0x69,0x64])&&_0x22ffe6(_0x6b3269);},_0x23e22b);}):_0x1f8933||_0x28684f||_0x1de111([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29c56c(_0x530f47,_0x3d9994){return new window[(_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39c9f0=>{if(_0x455a3d())return _0x39c9f0(_0x1de111([0x56,0x61,0x6c,0x69,0x64]));_0x1d5b0a(),_0x4db335[_0x1de111([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1de111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a94c0=!0x1;const _0x10f896=_0x20b358();function _0x480446(_0x3d5131){return!!_0x3d5131&&(typeof _0x3d5131===_0x1de111([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d5131===_0x1de111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d5131[_0x1de111([0x74,0x68,0x65,0x6e])]===_0x1de111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d5131[_0x1de111([0x63,0x61,0x74,0x63,0x68])]===_0x1de111([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x589c02(_0x1e6dd2){_0x308225(_0x1e6dd2)[_0x1de111([0x74,0x68,0x65,0x6e])](_0x4652af=>{if(!_0x4652af||_0x4652af[_0x1de111([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1de111([0x6f,0x6b]))return _0x1de111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39dfa7(_0x55db35(_0x10f896+_0x3d9994))!=_0x4652af[_0x1de111([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1de111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1de111([0x56,0x61,0x6c,0x69,0x64]);})[_0x1de111([0x74,0x68,0x65,0x6e])](_0x5127c3=>(_0x54347c(),_0x5127c3),()=>{const _0x12be9e=_0x504618();return null==_0x12be9e?(_0x54347c(),_0x1de111([0x56,0x61,0x6c,0x69,0x64])):_0x1de111(_0x58da89-_0x12be9e>(0x63ae0106^_0x4f34f9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1de111([0x74,0x68,0x65,0x6e])](_0x39c9f0)[_0x1de111([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39c9f0(_0x1de111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37823d=0x47946b86^_0x4f34f9;function _0x54347c(){const _0x1e13f0=_0x1de111([0x6c,0x6c,0x63,0x74,0x2d])+_0x39dfa7(_0x55db35(_0x530f47)),_0x3795ac=_0x4de15d(_0x39dfa7(window[_0x1de111([0x4d,0x61,0x74,0x68])][_0x1de111([0x63,0x65,0x69,0x6c])](_0x58da89/_0x37823d)));window[_0x1de111([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1de111([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e13f0,_0x3795ac);}function _0x504618(){const _0x1896dc=_0x1de111([0x6c,0x6c,0x63,0x74,0x2d])+_0x39dfa7(_0x55db35(_0x530f47)),_0x32c4df=window[_0x1de111([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1de111([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1896dc);return _0x32c4df?window[_0x1de111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4de15d(_0x32c4df),0x10)*_0x37823d:null;}function _0x308225(_0x459db1){return new window[(_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ba1a5,_0x19d645)=>{_0x459db1[_0x1de111([0x74,0x68,0x65,0x6e])](_0x1ba1a5,_0x19d645),window[_0x1de111([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19d645,0x47a351c6^_0x4f34f9);});}}_0x4db335[_0x1de111([0x6f,0x6e])](_0x1de111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e3406,_0x392c2b)=>{if(_0x392c2b[0x0]!=_0x530f47)return _0x39c9f0(_0x1de111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x392c2b[0x1]={..._0x392c2b[0x1],[_0x1de111([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10f896};},{[_0x1de111([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1de111([0x68,0x69,0x67,0x68])}),_0x4db335[_0x1de111([0x6f,0x6e])](_0x1de111([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c49a2=>{_0x480446(_0x1c49a2[_0x1de111([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a94c0=!0x0,_0x589c02(_0x1c49a2[_0x1de111([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1de111([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1de111([0x6c,0x6f,0x77])}),_0x534641[_0x1de111([0x74,0x68,0x65,0x6e])](()=>{_0x4a94c0||_0x39c9f0(_0x1de111([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x455a3d(){return _0x4db335[_0x1de111([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1de111([0x76,0x69,0x65,0x77])][_0x1de111([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1de111([0x61,0x75,0x74,0x6f]);}function _0x1d5b0a(){_0x4db335[_0x1de111([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1de111([0x76,0x69,0x65,0x77])][_0x1de111([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1de111([0x61,0x75,0x74,0x6f]);}}function _0x22eaaa(_0x36269c){const _0x40808c=[new window[(_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24bba0=>setTimeout(_0x24bba0,0x47abbbca^_0x4f34f9)),_0x534641[_0x1de111([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20cd70=>{let _0x116659=0x0;_0x4db335[_0x1de111([0x6d,0x6f,0x64,0x65,0x6c])][_0x1de111([0x6f,0x6e])](_0x1de111([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50778e,_0x560229)=>{_0x560229[0x0][_0x1de111([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x116659++,_0x116659==(0x47a284fe^_0x4f34f9)&&(_0x20cd70(),_0x50778e[_0x1de111([0x6f,0x66,0x66])]());});}))];return window[_0x1de111([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1de111([0x72,0x61,0x63,0x65])](_0x40808c)[_0x1de111([0x74,0x68,0x65,0x6e])](()=>_0x36269c);}async function _0x5d9567(){await _0x534641,_0x4db335[_0x1de111([0x6d,0x6f,0x64,0x65,0x6c])][_0x1de111([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x276b26,_0x4db335[_0x1de111([0x6d,0x6f,0x64,0x65,0x6c])][_0x1de111([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x276b26,_0x4db335[_0x1de111([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1de111([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25b5eb(_0x2aa7f9){const _0x2d2863=_0x2b6233();_0x4db335[_0x2d2863]=_0x1de111([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2aa7f9,_0x2aa7f9!=_0x1de111([0x56,0x61,0x6c,0x69,0x64])&&_0x5d9567();}function _0x2b6233(){const _0x5be6ab=window[_0x1de111([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1de111([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1de111([0x6e,0x6f,0x77])]())[_0x1de111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1de111([0x2e]),'');let _0x1c7b8d=_0x1de111([0x75]);for(let _0x17dbd0=0x0;_0x17dbd0<_0x5be6ab[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17dbd0+=0x2){let _0x476a0c=window[_0x1de111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5be6ab[_0x1de111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17dbd0,_0x17dbd0+0x2));_0x476a0c>=_0x721a71[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x476a0c-=_0x721a71[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c7b8d+=_0x721a71[_0x476a0c];}return _0x1c7b8d;}function _0x407fbd(){const _0x446394=_0x2a83b3[_0x1de111([0x73,0x70,0x6c,0x69,0x74])](_0x1de111([0x2e]));if(0x3!=_0x446394[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52b5c1(_0x446394[0x1]);function _0x52b5c1(_0x58bcb7){const _0x3b5f34=_0x5968cb(_0x58bcb7);return _0x3b5f34&&_0x37fb0e()?_0x3b5f34:null;function _0x37fb0e(){const _0x274f0f=_0x3b5f34[_0x1de111([0x6a,0x74,0x69])],_0x35ca11=window[_0x1de111([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274f0f[_0x1de111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274f0f[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31c3d3={..._0x3b5f34,[_0x1de111([0x6a,0x74,0x69])]:_0x274f0f[_0x1de111([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274f0f[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31c3d3[_0x1de111([0x76,0x63])],_0x55db35(_0x31c3d3)==_0x35ca11;}}}async function _0x50c373(){let _0x272f07=!0x0;try{const _0x26e1ba=_0x2a83b3[_0x1de111([0x73,0x70,0x6c,0x69,0x74])](_0x1de111([0x2e])),[_0x531409,_0x220330,_0x549cbd]=_0x26e1ba;return _0x3d33d9(_0x531409),await _0x131f9a(_0x531409,_0x220330,_0x549cbd),_0x272f07;}catch{return!0x1;}function _0x3d33d9(_0xbe3d54){const _0x9d810f=_0x5968cb(_0xbe3d54);_0x9d810f&&_0x9d810f[_0x1de111([0x61,0x6c,0x67])]==_0x1de111([0x45,0x53,0x32,0x35,0x36])||(_0x272f07=!0x1);}async function _0x131f9a(_0x2d9bb0,_0x52bcc2,_0x544f27){const _0x51ab17=window[_0x1de111([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1de111([0x66,0x72,0x6f,0x6d])](_0x5d8db4(_0x544f27),_0x13ad52=>_0x13ad52[_0x1de111([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a3692=new window[(_0x1de111([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1de111([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d9bb0+_0x1de111([0x2e])+_0x52bcc2),_0x7546df=window[_0x1de111([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1de111([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7546df)return;const _0x89e306=await _0x7546df[_0x1de111([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1de111([0x6a,0x77,0x6b]),_0x44e71f,{[_0x1de111([0x6e,0x61,0x6d,0x65])]:_0x1de111([0x45,0x43,0x44,0x53,0x41]),[_0x1de111([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1de111([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1de111([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7546df[_0x1de111([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1de111([0x6e,0x61,0x6d,0x65])]:_0x1de111([0x45,0x43,0x44,0x53,0x41]),[_0x1de111([0x68,0x61,0x73,0x68])]:{[_0x1de111([0x6e,0x61,0x6d,0x65])]:_0x1de111([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x89e306,_0x51ab17,_0x2a3692)||(_0x272f07=!0x1);}}function _0x5968cb(_0x27efd1){return _0x27efd1[_0x1de111([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1de111([0x65,0x79]))?JSON[_0x1de111([0x70,0x61,0x72,0x73,0x65])](_0x5d8db4(_0x27efd1)):null;}function _0x5d8db4(_0x38beff){return window[_0x1de111([0x61,0x74,0x6f,0x62])](_0x38beff[_0x1de111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1de111([0x2b]))[_0x1de111([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1de111([0x2f])));}function _0x55db35(_0xdce197){let _0x55b9bc=0x1505;function _0x5d1630(_0xa1e64e){for(let _0x163fe3=0x0;_0x163fe3<_0xa1e64e[_0x1de111([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x163fe3++){const _0x4336ba=_0xa1e64e[_0x1de111([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x163fe3);_0x55b9bc=(_0x55b9bc<<0x5)+_0x55b9bc+_0x4336ba,_0x55b9bc&=_0x55b9bc;}}function _0x505614(_0x361397){Array[_0x1de111([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x361397)?_0x361397[_0x1de111([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x505614):_0x361397&&typeof _0x361397==_0x1de111([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1de111([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x361397)[_0x1de111([0x73,0x6f,0x72,0x74])]()[_0x1de111([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d7018,_0x4d92dc])=>{_0x5d1630(_0x5d7018),_0x505614(_0x4d92dc);}):_0x5d1630(window[_0x1de111([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x361397));}return _0x505614(_0xdce197),_0x55b9bc>>>0x0;}function _0x39dfa7(_0x5a375b){return _0x5a375b[_0x1de111([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1de111([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1de111([0x30]));}function _0x4de15d(_0x14026b){return _0x14026b[_0x1de111([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1de111([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1de111([0x6a,0x6f,0x69,0x6e])]('');}function _0x276b26(){}function _0x1de111(_0x3e3c08){return _0x3e3c08['map'](_0x5eca99=>String['fromCharCode'](_0x5eca99))['join']('');}_0x25b5eb(await _0x1f07fa());}(this);}['_moveSelectionToFootnoteDefinition'](_0x300f64){const {plugins:_0x56e873,editing:_0x257fbf,model:_0x3c26bd}=this['editor'],_0x35249c=_0x56e873['get'](c)['getFootnote'](_0x300f64);return!!_0x35249c&&(_0x3c26bd['change'](_0x369715=>{_0x369715['setSelection'](_0x369715['createPositionAt'](_0x35249c['definition'],'end'));}),_0x257fbf['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x59349e){const {plugins:_0x47a017,editing:_0x5e1781,model:_0x924114}=this['editor'],_0x1726ad=_0x47a017['get'](c)['getFootnote'](_0x59349e);return!!_0x1726ad&&(_0x924114['change'](_0x397bfc=>{_0x397bfc['setSelection'](_0x1726ad['reference'],'on');}),_0x5e1781['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x263b67}=this['editor']['model'],_0x2ea74e=this['editor']['config']['get']('footnotes.multiBlock');_0x263b67['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x263b67['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x263b67['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2ea74e?_0x263b67['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x263b67['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x263b67['addChildCheck'](_0x111503=>{for(const _0x29dacd of _0x111503)if('footnoteDefinition'===_0x29dacd['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x35c1c3}=this,{conversion:_0x5a6a9c,editing:_0xda246e}=_0x35c1c3,{t:t}=_0x35c1c3['locale'];_0x5a6a9c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x16f991,{writer:_0x453f89,consumable:_0x340ce0})=>{const _0x250f50=_0x16f991['getChild'](0x0);if(!_0x250f50||!_0x250f50['is']('element','a'))return null;const _0x4202e6=_0x250f50['getAttribute']('href')||'';if(!_0x4202e6['startsWith']('#'))return null;const _0x1aea54=_0x4202e6['replace'](/^#/,'');if(!_0x1aea54)return null;_0x340ce0['consume'](_0x250f50,{'name':!0x0,'attributes':['href']});for(const {item:_0x54cf4c}of _0xda246e['view']['createRangeIn'](_0x250f50))_0x54cf4c['is']('$textProxy')?_0x340ce0['consume'](_0x54cf4c['textNode'],{'name':!0x0}):_0x54cf4c['is']('element')&&_0x340ce0['consume'](_0x54cf4c,{'name':!0x0});return _0x453f89['createElement']('footnoteRef',{'footnoteId':_0x1aea54});}}),_0x5a6a9c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x31acc3,{writer:_0xecef63})=>D(_0x31acc3,_0xecef63)}),_0x5a6a9c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x12fc64,{writer:_0x7ce311})=>{const _0x4549f2=_0x12fc64['getAttribute']('footnoteCounter');return _0x4f51ec(D(_0x12fc64,_0x7ce311),_0x7ce311,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4549f2)});}});}['_defineDefinitionsConverters'](){const {editor:_0x20d372}=this,{t:t}=_0x20d372['locale'],{conversion:_0x3df5f0}=_0x20d372;_0x3df5f0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3df5f0['for']('upcast')['add'](_0x2953f4=>{_0x2953f4['on']('element:ol',(_0x4609ba,_0x549d0b,_0x2b223c)=>{const _0x4fb21e=_0x549d0b['viewItem'];if(!_0x4fb21e['hasClass']('footnotes-list')||!_0x549d0b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2b223c['consumable']['consume'](_0x4fb21e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x560377,modelCursor:_0x58d752}=_0x2b223c['convertChildren'](_0x549d0b['viewItem'],_0x549d0b['modelCursor']);_0x549d0b['modelRange']=_0x560377,_0x549d0b['modelCursor']=_0x58d752;}),_0x2953f4['on']('element:hr',(_0x47d1cc,_0x3ee4de,_0x3f9c9d)=>{const _0x4fabd2=_0x3ee4de['viewItem'];_0x4fabd2['hasClass']('footnotes-divider')&&_0x3ee4de['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3f9c9d['consumable']['consume'](_0x4fabd2,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3df5f0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c7ce8,{writer:_0x20c5e1})=>v(_0x20c5e1)}),_0x3df5f0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x351336,{writer:_0x336d65})=>{const _0xdf04ee=v(_0x336d65,{'data-footnotes-list-label':t('Footnotes')}),_0x5274c4=_0x4f51ec(_0xdf04ee,_0x336d65,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x336d65['setCustomProperty']('footnotesDefinitions',!0x0,_0x5274c4),_0x5274c4;}});}['_defineDefinitionConverters'](){const {editor:_0x4ee2cb}=this,{conversion:_0x45bc2a,locale:_0x5f31a4}=_0x4ee2cb,_0x30093c=_0x4ee2cb['config']['get']('footnotes.multiBlock');_0x45bc2a['for']('upcast')['add'](_0x9c38e4=>{_0x9c38e4['on']('element:li',(_0x54077c,_0x1d630e,_0x141e66)=>{const _0x139c63=_0x1d630e['viewItem'];if(!_0x139c63['hasClass']('footnote-definition')||!_0x139c63['getAttribute']('id'))return;const _0x335c4f=_0x139c63['parent'];if(!_0x335c4f['is']('element','ol')||!_0x335c4f['hasClass']('footnotes-list'))return;if(!_0x141e66['consumable']['test'](_0x139c63,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1ad572=_0x141e66['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x139c63['getAttribute']('id')});if(!_0x141e66['safeInsert'](_0x1ad572,_0x1d630e['modelCursor']))return;_0x141e66['consumable']['consume'](_0x139c63,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3b89cf=Array['from'](_0x139c63['getChildren']())['find'](_0x21ff35=>_0x21ff35['is']('element')&&_0x21ff35['hasClass']('footnote-content'));for(const _0x25f875 of _0x139c63['getChildren']())_0x25f875['is']('element')&&(_0x141e66['consumable']['consume'](_0x25f875,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x141e66['consumable']['consume'](_0x25f875,{'name':!0x0,'classes':'footnote-content'}));if(_0x3b89cf){if(_0x30093c)_0x141e66['convertChildren'](_0x3b89cf,_0x1ad572);else{const _0x4396b6=_0x141e66['writer']['createElement']('footnoteInlineContent');_0x141e66['writer']['insert'](_0x4396b6,_0x1ad572),_0x141e66['convertChildren'](_0x3b89cf,_0x4396b6);}}_0x141e66['updateConversionResult'](_0x1ad572,_0x1d630e);});}),_0x45bc2a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x551fee,{writer:_0x546dee})=>b(_0x551fee,_0x546dee,_0x5f31a4,{'dataPipeline':!0x0})}),_0x45bc2a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x451636,{writer:_0x4996a3})=>b(_0x451636,_0x4996a3,_0x5f31a4)});}['_defineBogusParagraphConverters'](){const {editor:_0x57d5b6}=this,{conversion:_0x2f0690}=_0x57d5b6;_0x57d5b6['config']['get']('footnotes.multiBlock')?(_0x2f0690['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2f0690['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x57d5b6['model']['document'],'change:data',()=>{!function(_0xe76e08,_0x7e7f8d){const _0x3cb0b2=_0xe76e08['document']['differ'],_0x13ebde=new Set();for(const _0x16508a of _0x3cb0b2['getChanges']()){const _0x58fc3d='attribute'==_0x16508a['type']?_0x16508a['range']['start']['parent']:_0x16508a['position']['parent'];_0x58fc3d['is']('element','footnoteDefinition')&&_0x13ebde['add'](_0x58fc3d);}for(const _0x1e99c3 of _0x13ebde['values']()){const _0x112d85=Array['from'](_0x1e99c3['getChildren']())['filter'](_0x177ec1=>g(_0x177ec1,_0x7e7f8d['mapper']));for(const _0x24b2ac of _0x112d85)_0x7e7f8d['reconvertItem'](_0x24b2ac);}}(_0x57d5b6['model'],_0x57d5b6['editing']);})):(_0x2f0690['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2f0690['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5414dc,{writer:_0xeda5fc})=>{const _0x927780=_0xeda5fc['createContainerElement']('span');return _0xeda5fc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x927780),_0x927780;}}));}['_defineKeyboardHandlers'](){const {editor:_0x99aae6}=this,{editing:_0x3c7bc5,t:t}=_0x99aae6,_0x3c438d=_0x99aae6['model']['document']['selection'];_0x99aae6['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x99aae6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3c7bc5['view']['document'],'enter',(_0x5695fd,_0x34acff)=>{const _0x303188=function(_0x12991a){const _0x3ffcde=_0x12991a['getSelectedElement']();if(_0x3ffcde?.['is']('element','footnoteRef'))return _0x3ffcde;return null;}(_0x3c438d);if(_0x303188){const _0x19be7c=_0x303188['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x19be7c),_0x34acff['preventDefault'](),_0x5695fd['stop']();}},{'context':_0x46fe4d});}['_defineClickHandlers'](){const {editor:_0x5d1218}=this,{editing:_0x4353fd}=_0x5d1218;_0x5d1218['editing']['view']['addObserver'](_0x40d796),_0x5d1218['editing']['view']['addObserver'](_0x184870);let _0x18f56e=!0x1;this['listenTo'](_0x4353fd['view']['document'],'pointerdown',(_0xdb2b74,_0x393c02)=>{const {target:_0x54e4dc}=_0x393c02,_0x595e18=_0x4353fd['view']['document']['selection'];_0x18f56e=!!(_0x54e4dc?.['is']('element','a')&&_0x54e4dc['parent']?.['is']('element','sup')&&_0x54e4dc['parent']['hasClass']('footnote'))&&_0x595e18['getSelectedElement']()===_0x54e4dc['parent'];},{'priority':'high'}),this['listenTo'](_0x4353fd['view']['document'],'click',(_0x38f4f7,_0x4dfd28)=>{const {target:_0x382906}=_0x4dfd28;if(!_0x382906?.['is']('element','a'))return;if(_0x382906['parent']?.['is']('element','sup')&&_0x382906['parent']['hasClass']('footnote')&&!_0x18f56e)return void _0x4dfd28['preventDefault']();let _0x119547=_0x382906['getAttribute']('href');if(!_0x119547?.['startsWith']('#'))return;_0x119547=_0x119547['slice'](0x1);let _0xb1f60=!0x1;(_0x119547['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x119547['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x119547))&&(_0xb1f60=!0x0),_0xb1f60&&(_0x4dfd28['preventDefault'](),_0x38f4f7['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5693dc}={}){return(_0x20377b,{writer:_0x30e95a})=>{if(!p(_0x20377b))return null;if(!_0x5693dc)return _0x30e95a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4cdae3=_0x30e95a['createContainerElement']('p');return _0x30e95a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4cdae3),_0x4cdae3;};}function p(_0x3a0861){const {parent:_0x3ddff5}=_0x3a0861;if(!_0x3ddff5?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3ddff5['childCount'])return!0x1;for(const _0x2635bf of _0x3a0861['getAttributeKeys']())if(!_0x2635bf['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2635bf)return!0x1;return!0x0;}function g(_0x10d633,_0x4815bd){if(!_0x10d633['is']('element','paragraph'))return!0x1;const _0x136e1a=_0x4815bd['toViewElement'](_0x10d633);return!!_0x136e1a&&p(_0x10d633)!==_0x136e1a['is']('element','span');}function J(_0x1eb534){return _0x46fe4d(_0x1eb534)&&_0x1eb534['is']('containerElement')&&!!_0x1eb534['getCustomProperty']('footnotesDefinitions');}function v(_0x51d6b8,_0x2ce11={}){const _0x571fd6=_0x51d6b8['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xb7479=_0x51d6b8['createContainerElement']('ol',{'class':'footnotes-list'},_0x51d6b8['createSlot']());return _0x51d6b8['createContainerElement']('div',{'class':'footnotes',..._0x2ce11},[_0x571fd6,_0xb7479]);}function D(_0x12f603,_0x4c702f){const _0x8abd78=_0x12f603['getAttribute']('footnoteId'),_0x30fc07=_0x12f603['getAttribute']('footnoteCounter'),_0xb367bd=_0x4c702f['createUIElement']('a',{'href':'#'+_0x8abd78},function(_0x17477f){const _0x44ab8b=this['toDomElement'](_0x17477f);return _0x44ab8b['textContent']=_0x30fc07,_0x44ab8b;}),_0x1e3f07=_0x4c702f['createContainerElement']('sup',{'id':'ref-'+_0x8abd78,'class':'footnote'},[_0xb367bd]);return _0x1e3f07['getFillerOffset']=()=>null,_0x1e3f07;}function b(_0x15c327,_0x5161d0,_0x3cd646,{dataPipeline:_0x23b2e3}={}){const {t:t}=_0x3cd646,_0x25ad27=_0x15c327['getAttribute']('footnoteId'),_0x4bb599=_0x5161d0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x25ad27},function(_0x4eaeb5){const _0x329784=this['toDomElement'](_0x4eaeb5);return _0x329784['innerText']='^',_0x329784;}),_0x3d1d87=_0x23b2e3?_0x5161d0['createContainerElement']('div',{'class':'footnote-content'}):_0x31ff1d(_0x5161d0['createEditableElement']('div',{'class':'footnote-content'}),_0x5161d0,{'label':t('Footnote\x20content.')});return _0x5161d0['insert'](_0x5161d0['createPositionAt'](_0x3d1d87,0x0),_0x5161d0['createSlot']()),_0x5161d0['createContainerElement']('li',{'class':'footnote-definition','id':_0x25ad27},[_0x4bb599,_0x3d1d87]);}class e extends _0x3c0d71{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1ef6b2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3a5c8f}=this,{plugins:_0x235714,model:_0x4f2b33}=_0x3a5c8f,_0x8ef416=_0x235714['get'](_0x1ef6b2),_0xca9db9=_0x235714['get'](c);this['listenTo'](_0x8ef416,'outputTransformation',(_0x7708a9,_0x44a26b)=>{const _0x2d1b66=f(_0x4f2b33['createRangeIn'](_0x44a26b['content']));if(!_0x2d1b66['length'])return;const _0xe32b=_0xca9db9['getFootnotes'](),_0xe7fc8f=_0x2d1b66['reduce']((_0x5dabfe,_0x1c9af4)=>{const _0x3705ad=_0xe32b['find'](_0x4ab0d6=>_0x4ab0d6['id']===_0x1c9af4);if(_0x3705ad){const _0x201ac7=_0x3a5c8f['data']['toView'](_0x3705ad['definition'],{'isClipboardPipeline':!0x0}),_0x3cab58=_0x3a5c8f['data']['htmlProcessor']['toData'](_0x201ac7);_0x5dabfe[_0x3705ad['id']]=_0x3cab58;}return _0x5dabfe;},Object['create'](null));_0x44a26b['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xe7fc8f));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0xfbb27f}=this,{model:_0x3fe262,plugins:_0x3cc1ed}=_0xfbb27f,{view:_0x54aca9}=_0xfbb27f['editing'],_0x153672=_0x3cc1ed['get'](_0x1ef6b2),_0x378888=_0x3cc1ed['get'](c);let _0x3a4492=null;this['listenTo'](_0x54aca9['document'],'clipboardInput',(_0x160275,_0x35bbc6)=>{const _0x41c88a=_0x35bbc6['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3a4492=_0x41c88a?JSON['parse'](_0x41c88a):null;}),this['listenTo'](_0x153672,'contentInsertion',(_0x164b54,_0x3e8c89)=>{const _0x873def=_0x3e8c89['sourceEditorId']===this['editor']['id'];_0x873def&&'drop'===_0x3e8c89['method']||_0x3fe262['change'](_0x40b37f=>{let _0x27d7fe=_0x378888['getFootnotesDefinitionsObjectElement']();const _0x5118b6=!!_0x27d7fe&&Array['from'](_0x3fe262['document']['selection']['getSelectedBlocks']())['includes'](_0x27d7fe);if((_0x27d7fe&&!_0x5118b6||!_0x27d7fe&&!_0x3a4492)&&function(_0x5bc3cc,_0x5438f0){const _0x45d023=[];for(const {item:_0x5537a4}of _0x5bc3cc['createRangeIn'](_0x5438f0))_0x5537a4['is']('element','footnotesDefinitions')&&_0x45d023['push'](_0x5537a4);for(const _0x139ead of _0x45d023)_0x5bc3cc['remove'](_0x139ead);}(_0x40b37f,_0x3e8c89['content']),!_0x3a4492)return;const {selection:_0x539627}=_0x3fe262['document'],_0x426f33=_0x539627['getFirstRange']()['root'];_0x27d7fe&&!_0x5118b6||(_0x27d7fe=function(_0x2e8dfe,_0x5566ba){for(const {item:_0x577401}of _0x2e8dfe['createRangeIn'](_0x5566ba))if(_0x577401['is']('element','footnotesDefinitions'))return _0x577401;return null;}(_0x40b37f,_0x3e8c89['content']),_0x27d7fe||=_0x378888['_insertEmptyFootnotesDefinitionsContainer'](_0x40b37f,_0x426f33));const _0x2fd246=Array['from'](_0x539627['getRanges']())['flatMap'](f),_0x16a466=function(_0x5ee6e4,_0x3aa545,_0x1ff7c1){const _0x813dd1=Object['create'](null);for(const {item:_0x4e2098}of _0x5ee6e4['createRangeIn'](_0x3aa545))if(_0x4e2098['is']('element','footnoteRef')){const _0x3238fb=_0x4e2098['getAttribute']('footnoteId');if(!_0x1ff7c1(_0x3238fb))continue;_0x813dd1[_0x3238fb]||(_0x813dd1[_0x3238fb]=_0x20b358()),_0x5ee6e4['setAttribute']('footnoteId',_0x813dd1[_0x3238fb],_0x4e2098);}return _0x813dd1;}(_0x40b37f,_0x3e8c89['content'],_0x4c845d=>{if(!_0x873def)return!0x0;return!!_0x378888['getFootnote'](_0x4c845d)&&!_0x2fd246['includes'](_0x4c845d);});for(const [_0x29ae79,_0x447763]of Object['entries'](_0x3a4492)){const _0x7a86d6=_0x16a466[_0x29ae79]||_0x29ae79,_0x15a26f=_0x40b37f['createElement']('footnoteDefinition',{'footnoteId':_0x7a86d6}),_0x337c1d=_0xfbb27f['data']['htmlProcessor']['toView'](_0x447763),_0x4b1c0b=_0xfbb27f['data']['toModel'](_0x337c1d,_0x15a26f);_0x40b37f['append'](_0x4b1c0b,_0x15a26f),_0x40b37f['insert'](_0x15a26f,_0x27d7fe,'end');}_0x3a4492=null;});});}}function f(_0x5c0a13){const _0x12bed0=new Set();for(const {item:_0x54076a}of _0x5c0a13)_0x54076a['is']('element','footnoteRef')&&_0x12bed0['add'](_0x54076a['getAttribute']('footnoteId'));return Array['from'](_0x12bed0);}class i extends _0x3c0d71{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56b88e}=this,{componentFactory:_0x5b2acb}=_0x56b88e['ui'];_0x5b2acb['add']('insertFootnote',x(_0x56b88e,_0x3d77de)),_0x5b2acb['add']('menuBar:insertFootnote',x(_0x56b88e,_0x86620c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x11ded4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47734d;for(const _0x1f7fbb in _0x11ded4){const _0x5bc9cd=_0x1f7fbb,_0x11e93a=_0x11ded4[_0x5bc9cd];if('footnotesLicenseKeyValid'==_0x11e93a||'footnotesLicenseKeyInvalid'==_0x11e93a||'footnotesLicenseKeyExpired'==_0x11e93a||'footnotesLicenseKeyDomainLimit'==_0x11e93a||'footnotesLicenseKeyNotAllowed'==_0x11e93a||'footnotesLicenseKeyEvaluationLimit'==_0x11e93a||'footnotesLicenseKeyTrialLimit'==_0x11e93a||'footnotesLicenseKeyUsageLimit'==_0x11e93a){delete _0x11ded4[_0x5bc9cd],_0x47734d=_0x11e93a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x47734d&&_0x11ded4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x47734d&&_0x11ded4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x47734d&&_0x11ded4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x47734d&&_0x11ded4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x47734d&&_0x11ded4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x47734d&&_0x11ded4['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x47734d&&_0x11ded4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0xcae362,_0xf41e31){const _0xead800=_0xcae362['commands']['get']('insertFootnote');return _0xffdb10=>{const {t:t}=_0xffdb10,_0x128b72=new _0xf41e31(_0xffdb10),_0x250460=_0x128b72 instanceof _0x86620c;return _0x128b72['bind']('isEnabled')['to'](_0xead800,'isEnabled'),_0x128b72['set']({'label':t(_0x250460?'Footnote':'Insert\x20footnote'),'icon':_0x183d10,'tooltip':!0x0}),_0x128b72['on']('execute',()=>{_0xead800['execute'](),_0xcae362['editing']['view']['focus']();}),_0x128b72;};}class lt extends _0x3c0d71{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x25ead8{['refresh'](){const {editor:_0x128a57}=this,_0x507a9b=_0x128a57['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x507a9b,this['value']=_0x507a9b?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x19497e}){const {editor:_0x5a3581}=this,_0x49aa27=_0x5a3581['plugins']['get'](c),_0x5d8fc2=_0x49aa27['getFootnotesDefinitionsObjectElement']();_0x5d8fc2&&Q['includes'](_0x19497e)&&_0x5a3581['model']['change'](_0x4c522d=>{_0x4c522d['setAttribute']('footnotesListStyle',_0x19497e,_0x5d8fc2),_0x49aa27['_updateFootnotesCounters'](_0x4c522d);});}}class C extends _0x25ead8{['refresh'](){const {editor:_0x5d9282}=this,_0x2d336a=_0x5d9282['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2d336a,this['value']=_0x2d336a?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5f2830}){const {editor:_0x41ab50}=this,_0x5e99a6=_0x41ab50['plugins']['get'](c),_0x196631=_0x5e99a6['getFootnotesDefinitionsObjectElement']();_0x196631&&Number['isInteger'](_0x5f2830)&&_0x41ab50['model']['change'](_0x46eb93=>{_0x46eb93['setAttribute']('footnotesListStart',_0x5f2830,_0x196631),_0x5e99a6['_updateFootnotesCounters'](_0x46eb93);});}}class P extends _0x3c0d71{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5e03fa}=this;_0x5e03fa['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5e03fa['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5e03fa['commands']['add']('footnotesStyle',new S(_0x5e03fa)),_0x5e03fa['commands']['add']('footnotesStart',new C(_0x5e03fa)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0xea331e}=this,{schema:_0x1ed238}=_0xea331e['model'];_0x1ed238['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x819b50}=this,{conversion:_0xacc5e7,model:_0x55360f}=_0x819b50,{schema:_0x5a4372}=_0x55360f;_0xacc5e7['for']('upcast')['add'](_0x1e1f26=>{_0x1e1f26['on']('element:ol',(_0x1eb52a,_0x179bab,_0x32312c)=>{const _0x576dde=_0x179bab['viewItem'],_0x3bf1a8=_0x179bab['modelCursor']?.['parent'];_0x576dde['hasClass']('footnotes-list')&&_0x3bf1a8?.['is']('element','footnotesDefinitions')&&(function(_0x40d594,_0x3b4c94,_0x3c7447,_0x185a09){if(!_0x185a09['checkAttribute'](_0x3b4c94,'footnotesListStart'))return;let _0x2a9e3b=0x1;const _0x5df8eb=_0x3c7447['consumable']['consume'](_0x40d594,{'attributes':'start'});if(_0x5df8eb){const _0x2fbb23=Number['parseInt'](_0x40d594['getAttribute']('start'),0xa);Number['isNaN'](_0x2fbb23)||(_0x2a9e3b=_0x2fbb23);}!_0x5df8eb&&_0x3b4c94['hasAttribute']('footnotesListStart')||_0x3c7447['writer']['setAttribute']('footnotesListStart',_0x2a9e3b,_0x3b4c94);}(_0x576dde,_0x3bf1a8,_0x32312c,_0x5a4372),function(_0x5cd062,_0x50601e,_0x49e561,_0x28982e){if(!_0x28982e['checkAttribute'](_0x50601e,'footnotesListStyle'))return;let _0x2c100b='decimal',_0xb4359f=!0x1;if(_0x49e561['consumable']['consume'](_0x5cd062,{'attributes':'type'})){const _0x11b936={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5cd062['getAttribute']('type')];_0x11b936&&(_0x2c100b=_0x11b936),_0xb4359f=!0x0;}_0x49e561['consumable']['consume'](_0x5cd062,{'styles':'list-style-type'})&&(_0x2c100b=_0x5cd062['getStyle']('list-style-type'),_0xb4359f=!0x0),!_0xb4359f&&_0x50601e['hasAttribute']('footnotesListStyle')||_0x49e561['writer']['setAttribute']('footnotesListStyle',_0x2c100b,_0x50601e);}(_0x576dde,_0x3bf1a8,_0x32312c,_0x5a4372));});}),_0xacc5e7['for']('downcast')['add'](_0x1c4627=>{_0x1c4627['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5a472d,_0x37ec8a,_0x4648d5)=>{if(!_0x4648d5['consumable']['consume'](_0x37ec8a['item'],_0x5a472d['name']))return;const _0x2ca412=M(_0x37ec8a['item'],_0x4648d5['mapper']),{attributeNewValue:_0x1816c8}=_0x37ec8a;null==_0x1816c8||0x1===_0x1816c8?_0x4648d5['writer']['removeAttribute']('start',_0x2ca412):_0x4648d5['writer']['setAttribute']('start',String(_0x1816c8),_0x2ca412);}),_0x1c4627['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x51a322,_0x4718de,_0x4bb958)=>{if(!_0x4bb958['consumable']['consume'](_0x4718de['item'],_0x51a322['name']))return;const _0x25c1b0=M(_0x4718de['item'],_0x4bb958['mapper']),{attributeNewValue:_0x5bc0f6}=_0x4718de;_0x5bc0f6&&'decimal'!==_0x5bc0f6?_0x4bb958['writer']['setStyle']('list-style-type',_0x5bc0f6,_0x25c1b0):_0x4bb958['writer']['removeStyle']('list-style-type',_0x25c1b0);});});}['_definePostfixer'](){const {editor:_0x758397}=this,{model:_0x43bd96}=_0x758397,_0x5e23f6=_0x758397['plugins']['get'](c),_0x69d83a=this['_getDefaultListStyle'](),_0x3d50dd=this['_getDefaultStartIndex']();_0x43bd96['document']['registerPostFixer'](_0x27a0d0=>{const _0x2877e8=_0x43bd96['document']['differ']['getChanges']();let _0x4d4ff9=!0x1;for(const _0x593f53 of _0x2877e8){if('insert'!==_0x593f53['type']||'$text'===_0x593f53['name'])continue;const _0x283262=_0x43bd96['createRangeOn'](_0x593f53['position']['nodeAfter']);for(const _0x104231 of _0x283262['getItems']())_0x104231['is']('element','footnotesDefinitions')&&(!_0x104231['hasAttribute']('footnotesListStart')&&_0x43bd96['schema']['checkAttribute'](_0x104231,'footnotesListStart')&&(_0x27a0d0['setAttribute']('footnotesListStart',_0x3d50dd,_0x104231),_0x4d4ff9=!0x0),!_0x104231['hasAttribute']('footnotesListStyle')&&_0x43bd96['schema']['checkAttribute'](_0x104231,'footnotesListStyle')&&(_0x27a0d0['setAttribute']('footnotesListStyle',_0x69d83a,_0x104231),_0x4d4ff9=!0x0));}return _0x4d4ff9&&_0x5e23f6['_updateFootnotesCounters'](_0x27a0d0),_0x4d4ff9;});}['_defineFormatter'](){const {editor:_0x4e98be}=this;_0x4e98be['plugins']['get'](c)['setFootnoteFormatter'](_0x1904f2=>this['_formatFootnoteListValue'](_0x1904f2));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3b76c0,value:_0x5b1ae5,digits:_0x293298}){const _0x5c6a56=_0x3b76c0['getAttribute']('footnotesListStyle'),_0x3dbd99=_0x3b76c0['getAttribute']('footnotesListStart'),_0x455360=Math['floor'](_0x5b1ae5)+(_0x3dbd99??0x1)-0x1;switch(_0x5c6a56){case'decimal-leading-zero':return function(_0x1ef9d6,_0x2b2dd5){return String(_0x1ef9d6)['padStart'](_0x2b2dd5,'0');}(_0x455360,Math['max'](0x2,_0x293298));case'lower-alpha':case'lower-latin':return N(_0x455360,!0x1);case'upper-alpha':case'upper-latin':return N(_0x455360,!0x0);case'lower-roman':return X(_0x455360,!0x1);case'upper-roman':return X(_0x455360,!0x0);default:return String(_0x455360);}}}function M(_0x4ef657,_0x152342){const _0x255fc5=_0x152342['toViewElement'](_0x4ef657);return Array['from'](_0x255fc5['getChildren']())['find'](_0x542ee7=>_0x542ee7['is']('element','ol')&&_0x542ee7['hasClass']('footnotes-list'));}function N(_0x5e92a7,_0x4b6bcb){let _0x10c5b1='',_0x328b4d=_0x5e92a7;for(;_0x328b4d>0x0;){const _0x184bde=(_0x328b4d-0x1)%0x1a;_0x10c5b1=String['fromCharCode'](0x61+_0x184bde)+_0x10c5b1,_0x328b4d=Math['floor']((_0x328b4d-0x1)/0x1a);}return _0x4b6bcb?_0x10c5b1['toUpperCase']():_0x10c5b1;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x185d52,_0xf147c3){let _0x6ba32b='',_0x4afd81=_0x185d52;for(const {value:_0x1a6293,numeral:_0x192b72}of V)for(;_0x4afd81>=_0x1a6293;)_0x6ba32b+=_0x192b72,_0x4afd81-=_0x1a6293;return _0xf147c3?_0x6ba32b:_0x6ba32b['toLowerCase']();}class H extends _0x4e0417{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x194cae();['focusCycler'];constructor(_0x1a95b7,{styleButtonViews:_0x405a7a,styleGridAriaLabel:_0x2bdfef}){super(_0x1a95b7),(this['focusCycler']=new _0x333af1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x405a7a,_0x2bdfef),[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 _0x1ca338 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1ca338['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3ed0a1=_0x5d2b56=>_0x5d2b56['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ed0a1),this['keystrokes']['set']('arrowleft',_0x3ed0a1),this['keystrokes']['set']('arrowup',_0x3ed0a1),this['keystrokes']['set']('arrowdown',_0x3ed0a1);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4b3131,_0x3ca376){const _0x2d179e=new _0x4e0417(this['locale']);return _0x2d179e['children']=_0x2d179e['createCollection'](),_0x2d179e['children']['addMany'](_0x4b3131),_0x2d179e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3ca376,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2d179e['children']}),_0x2d179e['children']['delegate']('execute')['to'](this),_0x2d179e['focus']=function(){for(const _0x5cbdcd of this['children'])if(_0x5cbdcd instanceof _0x3d77de&&_0x5cbdcd['isOn'])return void _0x5cbdcd['focus']();this['children']['first']['focus']();},_0x2d179e['focusTracker']=new ot(),_0x2d179e['keystrokes']=new rt(),_0x2d179e['render'](),_0x2d179e['keystrokes']['listenTo'](_0x2d179e['element']),this['children']['add'](_0x2d179e),_0x2d179e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x93c1d=this['_createStartIndexPropertyView'](),_0x1f1745=[_0x93c1d],_0x140c43=new st(this['locale'],_0x1f1745);return _0x140c43['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x140c43['buttonView']['bind']('isEnabled')['toMany'](_0x1f1745,'isEnabled',(..._0x513350)=>_0x513350['some'](_0x1adbff=>_0x1adbff)),_0x140c43['buttonView']['on']('change:isEnabled',(_0x2c3f04,_0x187a9f,_0x5539ca)=>{_0x5539ca||(_0x140c43['isCollapsed']=!0x0);}),this['children']['add'](_0x140c43),[_0x93c1d,_0x140c43];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x54ead8=new it(this['locale'],et);return _0x54ead8['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x54ead8['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x54ead8['fieldView']['on']('input',()=>{const _0x5ef8f9=_0x54ead8['fieldView']['element'],_0x3b3586=_0x5ef8f9['valueAsNumber'];Number['isNaN'](_0x3b3586)?_0x54ead8['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5ef8f9['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3b3586}):_0x54ead8['errorText']=t(_0x3b3586<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x54ead8;}}class j extends _0x3c0d71{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x503f80,_0x166e8e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x419f1d}=this,{componentFactory:_0x5284cd}=_0x419f1d['ui'];_0x419f1d['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5284cd['add']('footnotesStyle',function(_0x5621dd){return _0x29c11d=>{const {t:t}=_0x29c11d,_0x4ac8da=_0x5621dd['commands']['get']('footnotesStyle'),_0xef3e1b=_0x1d91f8(_0x29c11d),{buttonView:_0x477216}=_0xef3e1b;return _0xef3e1b['class']='ck-footnotes-styles-dropdown',_0xef3e1b['bind']('isEnabled')['to'](_0x4ac8da,'isEnabled'),_0x477216['set']({'label':t('Footnotes\x20style'),'icon':_0x183d10,'tooltip':!0x0}),_0xef3e1b['once']('change:isOpen',()=>{const _0x539856=function({editor:_0xb23c7b,dropdownView:_0x240cf1}){const {t:t}=_0xb23c7b['locale'],_0x32e335=t('Footnotes\x20definitions\x20styles'),_0x1807f7=function(_0xd68405){const t=_0xd68405['locale']['t'],_0xc66fac=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x351165},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x45f5c3},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2f8963},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5c83a6},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57c65c},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x37aad6}];return _0xc66fac['map'](function(_0x53e18d){const _0x1b453d=_0x53e18d['locale'];return({label:_0x5b2ef4,icon:_0x27bb18,tooltip:_0x52d67a,style:_0x4b8ef5})=>{const _0x350c52=_0x53e18d['commands']['get']('footnotesStyle'),_0x601676=new _0x3d77de(_0x1b453d);return _0x601676['set']({'label':_0x5b2ef4,'icon':_0x27bb18,'tooltip':_0x52d67a}),_0x601676['bind']('isOn')['to'](_0x350c52,'value',_0x465f29=>_0x465f29===_0x4b8ef5),_0x601676['bind']('isEnabled')['to'](_0x350c52,'isEnabled'),_0x601676['on']('execute',()=>{_0x53e18d['execute']('footnotesStyle',{'value':_0x4b8ef5}),_0x53e18d['editing']['view']['focus']();}),_0x601676;};}(_0xd68405));}(_0xb23c7b),_0x3268e5=new H(_0xb23c7b['locale'],{'styleGridAriaLabel':_0x32e335,'styleButtonViews':_0x1807f7});return _0x3268e5['delegate']('execute')['to'](_0x240cf1),_0x3268e5['on']('footnotesListStart',(_0x2a3a2e,_0x47c400)=>{_0xb23c7b['execute']('footnotesStart',{'value':_0x47c400['startIndex']});}),_0x3268e5;}({'editor':_0x5621dd,'dropdownView':_0xef3e1b});_0xef3e1b['panelView']['children']['add'](_0x539856);}),_0xef3e1b;};}(_0x419f1d));}['afterInit'](){const {editor:_0x416ac4}=this,{t:t}=_0x416ac4['locale'],_0x2293dc=_0x416ac4['plugins']['get'](_0x166e8e),{defaultPositions:_0x549153}=_0x4b756c;_0x2293dc['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x416ac4['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4beeb1=>{let _0x28040c=_0x4beeb1['getFirstPosition']()?.['parent'];return _0x28040c?.['is']('$text')&&(_0x28040c=_0x28040c['parent']),_0x28040c?.['is']('element')?_0x28040c['findAncestor'](J):null;},'positions':[_0x549153['southArrowNorth'],_0x549153['southArrowNorthMiddleWest'],_0x549153['southArrowNorthMiddleEast'],_0x549153['southArrowNorthWest'],_0x549153['southArrowNorthEast'],_0x549153['northArrowSouth'],_0x549153['northArrowSouthMiddleWest'],_0x549153['northArrowSouthMiddleEast'],_0x549153['northArrowSouthWest'],_0x549153['northArrowSouthEast'],_0x549153['viewportStickyNorth']]});}}class ft extends _0x3c0d71{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-20251129.0",
3
+ "version": "0.0.0-nightly-20251201.0",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251129.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251129.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251129.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251129.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251129.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251129.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251129.0",
33
- "ckeditor5": "0.0.0-nightly-20251129.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251201.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251201.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251201.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251201.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251201.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251201.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251201.0",
33
+ "ckeditor5": "0.0.0-nightly-20251201.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x304458}from'ckeditor5/src/core.js';import{isWidget as _0x2318e8,toWidget as _0x233f64,toWidgetEditable as _0x187204}from'ckeditor5/src/widget.js';import{uid as _0x2e8b3c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x494ad4,ClickObserver as _0x242148}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x36bf4f}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x15b804}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x304458{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x36bf4f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x80ef4c}=this;_0x80ef4c['config']['define']('footnotes.multiBlock',!0x0),_0x80ef4c['commands']['add']('insertFootnote',new _0x15b804(_0x80ef4c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x417654){const _0x3f53bc=_0x15714b([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x56d0bf=0x47a28506,_0x3f0f44=0x47a5ff7e^_0x56d0bf,_0x905ccb=window[_0x15714b([0x44,0x61,0x74,0x65])][_0x15714b([0x6e,0x6f,0x77])](),_0x3998f0=_0x417654[_0x15714b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49ec3a=new window[(_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa164=>{_0x3998f0[_0x15714b([0x6f,0x6e,0x63,0x65])](_0x15714b([0x72,0x65,0x61,0x64,0x79]),_0x4aa164);}),_0x4022de={[_0x15714b([0x6b,0x74,0x79])]:_0x15714b([0x45,0x43]),[_0x15714b([0x75,0x73,0x65])]:_0x15714b([0x73,0x69,0x67]),[_0x15714b([0x63,0x72,0x76])]:_0x15714b([0x50,0x2d,0x32,0x35,0x36]),[_0x15714b([0x78])]:_0x15714b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x15714b([0x79])]:_0x15714b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x15714b([0x61,0x6c,0x67])]:_0x15714b([0x45,0x53,0x32,0x35,0x36])},_0x527de7=_0x3998f0[_0x15714b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15714b([0x67,0x65,0x74])](_0x15714b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44afd5(){let _0xf7da39,_0x370190=null,_0x3fa889=null;try{if(_0x527de7==_0x15714b([0x47,0x50,0x4c]))return _0x15714b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf7da39=_0x39ce0e(),!_0xf7da39)return _0x15714b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf7da39[_0x15714b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fa889=_0x1d2c5b(_0xf7da39[_0x15714b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf7da39[_0x15714b([0x6a,0x74,0x69])])),await _0xad973f()?_0x1378bc()?_0x5e09d2()?_0x15714b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47c284()?(_0xf7da39[_0x15714b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15714b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x370190=_0x1d70ea(_0x15714b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf7da39[_0x15714b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15714b([0x74,0x72,0x69,0x61,0x6c])&&(_0x370190=_0x1d70ea(_0x15714b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3094c9()):_0x15714b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15714b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15714b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15714b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e09d2(){const _0x5087de=[_0x15714b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15714b([0x74,0x72,0x69,0x61,0x6c])][_0x15714b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf7da39[_0x15714b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x905ccb/0x3e8:0xe10*_0x3f0f44;return _0xf7da39[_0x15714b([0x65,0x78,0x70])]<_0x5087de;}function _0x1378bc(){const _0x13a9c9=_0xf7da39[_0x15714b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13a9c9&&(!!_0x13a9c9[_0x15714b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15714b([0x2a]))||!!_0x13a9c9[_0x15714b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15714b([0x46,0x4f,0x4f])));}function _0x47c284(){const _0x1d6cf9=_0xf7da39[_0x15714b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d6cf9||0x0==_0x1d6cf9[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x384fee}=new URL(window[_0x15714b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d6cf9[_0x15714b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x384fee))return!0x0;const _0x3a88ed=_0x384fee[_0x15714b([0x73,0x70,0x6c,0x69,0x74])](_0x15714b([0x2e]));return _0x1d6cf9[_0x15714b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x225953=>_0x225953[_0x15714b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15714b([0x2a])))[_0x15714b([0x6d,0x61,0x70])](_0x471aac=>_0x471aac[_0x15714b([0x73,0x70,0x6c,0x69,0x74])](_0x15714b([0x2e])))[_0x15714b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5650f8=>_0x5650f8[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a88ed[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15714b([0x6d,0x61,0x70])](_0x31dae8=>Array(_0x3a88ed[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31dae8[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15714b([0x66,0x69,0x6c,0x6c])](_0x31dae8[0x0]===_0x15714b([0x2a])?_0x15714b([0x2a]):'')[_0x15714b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31dae8))[_0x15714b([0x73,0x6f,0x6d,0x65])](_0x83028b=>_0x3a88ed[_0x15714b([0x65,0x76,0x65,0x72,0x79])]((_0x5ce891,_0x477667)=>_0x83028b[_0x477667]===_0x5ce891||_0x83028b[_0x477667]===_0x15714b([0x2a])));}function _0x3094c9(){return _0x370190&&_0x3fa889?new window[(_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44c0eb,_0x114038)=>{_0x370190[_0x15714b([0x74,0x68,0x65,0x6e])](_0x44c0eb,_0x114038),_0x3fa889[_0x15714b([0x74,0x68,0x65,0x6e])](_0x169922=>{_0x169922!=_0x15714b([0x56,0x61,0x6c,0x69,0x64])&&_0x44c0eb(_0x169922);},_0x114038);}):_0x370190||_0x3fa889||_0x15714b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d2c5b(_0x113809,_0x4f6c1a){return new window[(_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x188fe0=>{if(_0x1f552b())return _0x188fe0(_0x15714b([0x56,0x61,0x6c,0x69,0x64]));_0x379c64(),_0x3998f0[_0x15714b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15714b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x573f11=!0x1;const _0x47f5a7=_0x2e8b3c();function _0x8267d4(_0x59e3d5){return!!_0x59e3d5&&(typeof _0x59e3d5===_0x15714b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59e3d5===_0x15714b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59e3d5[_0x15714b([0x74,0x68,0x65,0x6e])]===_0x15714b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59e3d5[_0x15714b([0x63,0x61,0x74,0x63,0x68])]===_0x15714b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a20e8(_0x2e0b7c){_0x5f19f4(_0x2e0b7c)[_0x15714b([0x74,0x68,0x65,0x6e])](_0x485bf8=>{if(!_0x485bf8||_0x485bf8[_0x15714b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15714b([0x6f,0x6b]))return _0x15714b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcdcf11(_0x9fb803(_0x47f5a7+_0x4f6c1a))!=_0x485bf8[_0x15714b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15714b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15714b([0x56,0x61,0x6c,0x69,0x64]);})[_0x15714b([0x74,0x68,0x65,0x6e])](_0x4b324c=>(_0x480695(),_0x4b324c),()=>{const _0x5f3d34=_0xec3391();return null==_0x5f3d34?(_0x480695(),_0x15714b([0x56,0x61,0x6c,0x69,0x64])):_0x15714b(_0x905ccb-_0x5f3d34>(0x63ae0106^_0x56d0bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15714b([0x74,0x68,0x65,0x6e])](_0x188fe0)[_0x15714b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x188fe0(_0x15714b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10cddb=0x47946b86^_0x56d0bf;function _0x480695(){const _0x2aabaf=_0x15714b([0x6c,0x6c,0x63,0x74,0x2d])+_0xcdcf11(_0x9fb803(_0x113809)),_0x5c4fd9=_0x4e7f52(_0xcdcf11(window[_0x15714b([0x4d,0x61,0x74,0x68])][_0x15714b([0x63,0x65,0x69,0x6c])](_0x905ccb/_0x10cddb)));window[_0x15714b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15714b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2aabaf,_0x5c4fd9);}function _0xec3391(){const _0x4fb0fa=_0x15714b([0x6c,0x6c,0x63,0x74,0x2d])+_0xcdcf11(_0x9fb803(_0x113809)),_0x19d2f5=window[_0x15714b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15714b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fb0fa);return _0x19d2f5?window[_0x15714b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e7f52(_0x19d2f5),0x10)*_0x10cddb:null;}function _0x5f19f4(_0x402705){return new window[(_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45ad9b,_0x5d3bf6)=>{_0x402705[_0x15714b([0x74,0x68,0x65,0x6e])](_0x45ad9b,_0x5d3bf6),window[_0x15714b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d3bf6,0x47a351c6^_0x56d0bf);});}}_0x3998f0[_0x15714b([0x6f,0x6e])](_0x15714b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x399147,_0x1dd188)=>{if(_0x1dd188[0x0]!=_0x113809)return _0x188fe0(_0x15714b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1dd188[0x1]={..._0x1dd188[0x1],[_0x15714b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47f5a7};},{[_0x15714b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15714b([0x68,0x69,0x67,0x68])}),_0x3998f0[_0x15714b([0x6f,0x6e])](_0x15714b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x105148=>{_0x8267d4(_0x105148[_0x15714b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x573f11=!0x0,_0x3a20e8(_0x105148[_0x15714b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15714b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15714b([0x6c,0x6f,0x77])}),_0x49ec3a[_0x15714b([0x74,0x68,0x65,0x6e])](()=>{_0x573f11||_0x188fe0(_0x15714b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f552b(){return _0x3998f0[_0x15714b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15714b([0x76,0x69,0x65,0x77])][_0x15714b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15714b([0x61,0x75,0x74,0x6f]);}function _0x379c64(){_0x3998f0[_0x15714b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15714b([0x76,0x69,0x65,0x77])][_0x15714b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15714b([0x61,0x75,0x74,0x6f]);}}function _0x1d70ea(_0x59e336){const _0xebcafc=[new window[(_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe4a73=>setTimeout(_0xfe4a73,0x47abbbca^_0x56d0bf)),_0x49ec3a[_0x15714b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475ec4=>{let _0x569374=0x0;_0x3998f0[_0x15714b([0x6d,0x6f,0x64,0x65,0x6c])][_0x15714b([0x6f,0x6e])](_0x15714b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d89b0,_0x4224cf)=>{_0x4224cf[0x0][_0x15714b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x569374++,_0x569374==(0x47a284fe^_0x56d0bf)&&(_0x475ec4(),_0x4d89b0[_0x15714b([0x6f,0x66,0x66])]());});}))];return window[_0x15714b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15714b([0x72,0x61,0x63,0x65])](_0xebcafc)[_0x15714b([0x74,0x68,0x65,0x6e])](()=>_0x59e336);}async function _0x490d54(){await _0x49ec3a,_0x3998f0[_0x15714b([0x6d,0x6f,0x64,0x65,0x6c])][_0x15714b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22114c,_0x3998f0[_0x15714b([0x6d,0x6f,0x64,0x65,0x6c])][_0x15714b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22114c,_0x3998f0[_0x15714b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15714b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x275813(_0x195d17){const _0x34de54=_0x5c55ed();_0x3998f0[_0x34de54]=_0x15714b([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x195d17,_0x195d17!=_0x15714b([0x56,0x61,0x6c,0x69,0x64])&&_0x490d54();}function _0x5c55ed(){const _0x24d799=window[_0x15714b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15714b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15714b([0x6e,0x6f,0x77])]())[_0x15714b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15714b([0x2e]),'');let _0x111f46=_0x15714b([0x75]);for(let _0x40459b=0x0;_0x40459b<_0x24d799[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40459b+=0x2){let _0x5a989e=window[_0x15714b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24d799[_0x15714b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40459b,_0x40459b+0x2));_0x5a989e>=_0x3f53bc[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a989e-=_0x3f53bc[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x111f46+=_0x3f53bc[_0x5a989e];}return _0x111f46;}function _0x39ce0e(){const _0x4b5fd8=_0x527de7[_0x15714b([0x73,0x70,0x6c,0x69,0x74])](_0x15714b([0x2e]));if(0x3!=_0x4b5fd8[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17a433(_0x4b5fd8[0x1]);function _0x17a433(_0x37e95c){const _0x18af18=_0x340af0(_0x37e95c);return _0x18af18&&_0x12ce33()?_0x18af18:null;function _0x12ce33(){const _0x1f9f40=_0x18af18[_0x15714b([0x6a,0x74,0x69])],_0x104b82=window[_0x15714b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f9f40[_0x15714b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f9f40[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c95b8={..._0x18af18,[_0x15714b([0x6a,0x74,0x69])]:_0x1f9f40[_0x15714b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f9f40[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c95b8[_0x15714b([0x76,0x63])],_0x9fb803(_0x3c95b8)==_0x104b82;}}}async function _0xad973f(){let _0x2eac83=!0x0;try{const _0x3ddb87=_0x527de7[_0x15714b([0x73,0x70,0x6c,0x69,0x74])](_0x15714b([0x2e])),[_0x2741ef,_0x509baa,_0x476dfb]=_0x3ddb87;return _0x37a983(_0x2741ef),await _0x1a4b35(_0x2741ef,_0x509baa,_0x476dfb),_0x2eac83;}catch{return!0x1;}function _0x37a983(_0x59f16e){const _0x42c40d=_0x340af0(_0x59f16e);_0x42c40d&&_0x42c40d[_0x15714b([0x61,0x6c,0x67])]==_0x15714b([0x45,0x53,0x32,0x35,0x36])||(_0x2eac83=!0x1);}async function _0x1a4b35(_0x1920d1,_0x87b96f,_0x203202){const _0x39bd99=window[_0x15714b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15714b([0x66,0x72,0x6f,0x6d])](_0x4b856b(_0x203202),_0x334403=>_0x334403[_0x15714b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe49bc9=new window[(_0x15714b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15714b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1920d1+_0x15714b([0x2e])+_0x87b96f),_0x316446=window[_0x15714b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15714b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x316446)return;const _0x57d965=await _0x316446[_0x15714b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15714b([0x6a,0x77,0x6b]),_0x4022de,{[_0x15714b([0x6e,0x61,0x6d,0x65])]:_0x15714b([0x45,0x43,0x44,0x53,0x41]),[_0x15714b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15714b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15714b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x316446[_0x15714b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15714b([0x6e,0x61,0x6d,0x65])]:_0x15714b([0x45,0x43,0x44,0x53,0x41]),[_0x15714b([0x68,0x61,0x73,0x68])]:{[_0x15714b([0x6e,0x61,0x6d,0x65])]:_0x15714b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57d965,_0x39bd99,_0xe49bc9)||(_0x2eac83=!0x1);}}function _0x340af0(_0x422d43){return _0x422d43[_0x15714b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15714b([0x65,0x79]))?JSON[_0x15714b([0x70,0x61,0x72,0x73,0x65])](_0x4b856b(_0x422d43)):null;}function _0x4b856b(_0x4deb58){return window[_0x15714b([0x61,0x74,0x6f,0x62])](_0x4deb58[_0x15714b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15714b([0x2b]))[_0x15714b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15714b([0x2f])));}function _0x9fb803(_0x3d4c0a){let _0x61c555=0x1505;function _0x34f8c0(_0x1ba0e4){for(let _0x536cbb=0x0;_0x536cbb<_0x1ba0e4[_0x15714b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x536cbb++){const _0x5c0dfb=_0x1ba0e4[_0x15714b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x536cbb);_0x61c555=(_0x61c555<<0x5)+_0x61c555+_0x5c0dfb,_0x61c555&=_0x61c555;}}function _0x5c51c1(_0x3c3644){Array[_0x15714b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c3644)?_0x3c3644[_0x15714b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c51c1):_0x3c3644&&typeof _0x3c3644==_0x15714b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15714b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c3644)[_0x15714b([0x73,0x6f,0x72,0x74])]()[_0x15714b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x176534,_0x4e8ac7])=>{_0x34f8c0(_0x176534),_0x5c51c1(_0x4e8ac7);}):_0x34f8c0(window[_0x15714b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c3644));}return _0x5c51c1(_0x3d4c0a),_0x61c555>>>0x0;}function _0xcdcf11(_0x3cb407){return _0x3cb407[_0x15714b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15714b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15714b([0x30]));}function _0x4e7f52(_0x4416c9){return _0x4416c9[_0x15714b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15714b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15714b([0x6a,0x6f,0x69,0x6e])]('');}function _0x22114c(){}function _0x15714b(_0x354059){return _0x354059['map'](_0x612cba=>String['fromCharCode'](_0x612cba))['join']('');}_0x275813(await _0x44afd5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5468b4){const {plugins:_0x325fe9,editing:_0x57bd04,model:_0x5781f9}=this['editor'],_0x34f401=_0x325fe9['get'](_0x36bf4f)['getFootnote'](_0x5468b4);return!!_0x34f401&&(_0x5781f9['change'](_0x16e416=>{_0x16e416['setSelection'](_0x16e416['createPositionAt'](_0x34f401['definition'],'end'));}),_0x57bd04['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4b05cc){const {plugins:_0x4df871,editing:_0x11d2fb,model:_0x396192}=this['editor'],_0x51d4a3=_0x4df871['get'](_0x36bf4f)['getFootnote'](_0x4b05cc);return!!_0x51d4a3&&(_0x396192['change'](_0x180512=>{_0x180512['setSelection'](_0x51d4a3['reference'],'on');}),_0x11d2fb['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x451e9a}=this['editor']['model'],_0x2fdc16=this['editor']['config']['get']('footnotes.multiBlock');_0x451e9a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x451e9a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x451e9a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2fdc16?_0x451e9a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x451e9a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x451e9a['addChildCheck'](_0x16be51=>{for(const _0x12442a of _0x16be51)if('footnoteDefinition'===_0x12442a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5a0675}=this,{conversion:_0x1b3fa5,editing:_0x16b702}=_0x5a0675,{t:t}=_0x5a0675['locale'];_0x1b3fa5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2202fb,{writer:_0xffebe6,consumable:_0x1711ff})=>{const _0x57fdb1=_0x2202fb['getChild'](0x0);if(!_0x57fdb1||!_0x57fdb1['is']('element','a'))return null;const _0x4a8f7a=_0x57fdb1['getAttribute']('href')||'';if(!_0x4a8f7a['startsWith']('#'))return null;const _0x3e29a2=_0x4a8f7a['replace'](/^#/,'');if(!_0x3e29a2)return null;_0x1711ff['consume'](_0x57fdb1,{'name':!0x0,'attributes':['href']});for(const {item:_0x2c22ac}of _0x16b702['view']['createRangeIn'](_0x57fdb1))_0x2c22ac['is']('$textProxy')?_0x1711ff['consume'](_0x2c22ac['textNode'],{'name':!0x0}):_0x2c22ac['is']('element')&&_0x1711ff['consume'](_0x2c22ac,{'name':!0x0});return _0xffebe6['createElement']('footnoteRef',{'footnoteId':_0x3e29a2});}}),_0x1b3fa5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50dbf3,{writer:_0x9cc999})=>D(_0x50dbf3,_0x9cc999)}),_0x1b3fa5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2a98ec,{writer:_0x1d7ab4})=>{const _0x6f4610=_0x2a98ec['getAttribute']('footnoteCounter');return _0x233f64(D(_0x2a98ec,_0x1d7ab4),_0x1d7ab4,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x6f4610)});}});}['_defineDefinitionsConverters'](){const {editor:_0xcb94e0}=this,{t:t}=_0xcb94e0['locale'],{conversion:_0x2d266d}=_0xcb94e0;_0x2d266d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2d266d['for']('upcast')['add'](_0x350f0a=>{_0x350f0a['on']('element:ol',(_0x18aa6b,_0x5cae4a,_0x2045f2)=>{const _0x3fe952=_0x5cae4a['viewItem'];if(!_0x3fe952['hasClass']('footnotes-list')||!_0x5cae4a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2045f2['consumable']['consume'](_0x3fe952,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3c091a,modelCursor:_0x54ba23}=_0x2045f2['convertChildren'](_0x5cae4a['viewItem'],_0x5cae4a['modelCursor']);_0x5cae4a['modelRange']=_0x3c091a,_0x5cae4a['modelCursor']=_0x54ba23;}),_0x350f0a['on']('element:hr',(_0x398456,_0x3b535b,_0x5147c1)=>{const _0x37b6eb=_0x3b535b['viewItem'];_0x37b6eb['hasClass']('footnotes-divider')&&_0x3b535b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5147c1['consumable']['consume'](_0x37b6eb,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2d266d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x35beb5,{writer:_0x537cb1})=>v(_0x537cb1)}),_0x2d266d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e69bf,{writer:_0x17d254})=>{const _0x30d2e9=v(_0x17d254,{'data-footnotes-list-label':t('Footnotes')}),_0xd165be=_0x233f64(_0x30d2e9,_0x17d254,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x17d254['setCustomProperty']('footnotesDefinitions',!0x0,_0xd165be),_0xd165be;}});}['_defineDefinitionConverters'](){const {editor:_0x377304}=this,{conversion:_0x138b1f,locale:_0x39940b}=_0x377304,_0x104f4=_0x377304['config']['get']('footnotes.multiBlock');_0x138b1f['for']('upcast')['add'](_0x125f4b=>{_0x125f4b['on']('element:li',(_0xe514cb,_0x1408c3,_0x497284)=>{const _0x117ce6=_0x1408c3['viewItem'];if(!_0x117ce6['hasClass']('footnote-definition')||!_0x117ce6['getAttribute']('id'))return;const _0x526898=_0x117ce6['parent'];if(!_0x526898['is']('element','ol')||!_0x526898['hasClass']('footnotes-list'))return;if(!_0x497284['consumable']['test'](_0x117ce6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x26e572=_0x497284['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x117ce6['getAttribute']('id')});if(!_0x497284['safeInsert'](_0x26e572,_0x1408c3['modelCursor']))return;_0x497284['consumable']['consume'](_0x117ce6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x135ec3=Array['from'](_0x117ce6['getChildren']())['find'](_0x250484=>_0x250484['is']('element')&&_0x250484['hasClass']('footnote-content'));for(const _0x2c61f6 of _0x117ce6['getChildren']())_0x2c61f6['is']('element')&&(_0x497284['consumable']['consume'](_0x2c61f6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x497284['consumable']['consume'](_0x2c61f6,{'name':!0x0,'classes':'footnote-content'}));if(_0x135ec3){if(_0x104f4)_0x497284['convertChildren'](_0x135ec3,_0x26e572);else{const _0x65cdde=_0x497284['writer']['createElement']('footnoteInlineContent');_0x497284['writer']['insert'](_0x65cdde,_0x26e572),_0x497284['convertChildren'](_0x135ec3,_0x65cdde);}}_0x497284['updateConversionResult'](_0x26e572,_0x1408c3);});}),_0x138b1f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4a4c0b,{writer:_0x4bf35f})=>b(_0x4a4c0b,_0x4bf35f,_0x39940b,{'dataPipeline':!0x0})}),_0x138b1f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x49de76,{writer:_0x47c8e1})=>b(_0x49de76,_0x47c8e1,_0x39940b)});}['_defineBogusParagraphConverters'](){const {editor:_0x49bc7c}=this,{conversion:_0x321a20}=_0x49bc7c;_0x49bc7c['config']['get']('footnotes.multiBlock')?(_0x321a20['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x321a20['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x49bc7c['model']['document'],'change:data',()=>{!function(_0x9ccbe5,_0x51e4e8){const _0x6a9c6c=_0x9ccbe5['document']['differ'],_0xe176a2=new Set();for(const _0x500951 of _0x6a9c6c['getChanges']()){const _0x23ae45='attribute'==_0x500951['type']?_0x500951['range']['start']['parent']:_0x500951['position']['parent'];_0x23ae45['is']('element','footnoteDefinition')&&_0xe176a2['add'](_0x23ae45);}for(const _0xd79fbe of _0xe176a2['values']()){const _0x2e8f49=Array['from'](_0xd79fbe['getChildren']())['filter'](_0x537da0=>g(_0x537da0,_0x51e4e8['mapper']));for(const _0xc8062c of _0x2e8f49)_0x51e4e8['reconvertItem'](_0xc8062c);}}(_0x49bc7c['model'],_0x49bc7c['editing']);})):(_0x321a20['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x321a20['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5da48a,{writer:_0x1790c8})=>{const _0x1ac3a0=_0x1790c8['createContainerElement']('span');return _0x1790c8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1ac3a0),_0x1ac3a0;}}));}['_defineKeyboardHandlers'](){const {editor:_0xb332d4}=this,{editing:_0x3ee5c2,t:t}=_0xb332d4,_0x1f2642=_0xb332d4['model']['document']['selection'];_0xb332d4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0xb332d4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3ee5c2['view']['document'],'enter',(_0x3d7452,_0xd84044)=>{const _0x5a7927=function(_0x19c55f){const _0x121213=_0x19c55f['getSelectedElement']();if(_0x121213?.['is']('element','footnoteRef'))return _0x121213;return null;}(_0x1f2642);if(_0x5a7927){const _0x3e4020=_0x5a7927['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3e4020),_0xd84044['preventDefault'](),_0x3d7452['stop']();}},{'context':_0x2318e8});}['_defineClickHandlers'](){const {editor:_0x4d07d}=this,{editing:_0x414ebc}=_0x4d07d;_0x4d07d['editing']['view']['addObserver'](_0x494ad4),_0x4d07d['editing']['view']['addObserver'](_0x242148);let _0x27fdcd=!0x1;this['listenTo'](_0x414ebc['view']['document'],'pointerdown',(_0x48fb6e,_0x2007b3)=>{const {target:_0x165002}=_0x2007b3,_0x72ac9f=_0x414ebc['view']['document']['selection'];_0x27fdcd=!!(_0x165002?.['is']('element','a')&&_0x165002['parent']?.['is']('element','sup')&&_0x165002['parent']['hasClass']('footnote'))&&_0x72ac9f['getSelectedElement']()===_0x165002['parent'];},{'priority':'high'}),this['listenTo'](_0x414ebc['view']['document'],'click',(_0x2b613c,_0xead266)=>{const {target:_0x51baeb}=_0xead266;if(!_0x51baeb?.['is']('element','a'))return;if(_0x51baeb['parent']?.['is']('element','sup')&&_0x51baeb['parent']['hasClass']('footnote')&&!_0x27fdcd)return void _0xead266['preventDefault']();let _0x38a7a2=_0x51baeb['getAttribute']('href');if(!_0x38a7a2?.['startsWith']('#'))return;_0x38a7a2=_0x38a7a2['slice'](0x1);let _0x5c2518=!0x1;(_0x38a7a2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x38a7a2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x38a7a2))&&(_0x5c2518=!0x0),_0x5c2518&&(_0xead266['preventDefault'](),_0x2b613c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x16206c}={}){return(_0x531d07,{writer:_0x53f5d0})=>{if(!p(_0x531d07))return null;if(!_0x16206c)return _0x53f5d0['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x33a92a=_0x53f5d0['createContainerElement']('p');return _0x53f5d0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x33a92a),_0x33a92a;};}function p(_0x466196){const {parent:_0x1e2731}=_0x466196;if(!_0x1e2731?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e2731['childCount'])return!0x1;for(const _0x72a251 of _0x466196['getAttributeKeys']())if(!_0x72a251['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x72a251)return!0x1;return!0x0;}function g(_0x4810c4,_0x59470d){if(!_0x4810c4['is']('element','paragraph'))return!0x1;const _0x3809de=_0x59470d['toViewElement'](_0x4810c4);return!!_0x3809de&&p(_0x4810c4)!==_0x3809de['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2458e3){return _0x2318e8(_0x2458e3)&&_0x2458e3['is']('containerElement')&&!!_0x2458e3['getCustomProperty']('footnotesDefinitions');}function v(_0x47273d,_0x20f6bd={}){const _0x39d980=_0x47273d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5dd5fe=_0x47273d['createContainerElement']('ol',{'class':'footnotes-list'},_0x47273d['createSlot']());return _0x47273d['createContainerElement']('div',{'class':'footnotes',..._0x20f6bd},[_0x39d980,_0x5dd5fe]);}function D(_0x45201c,_0x2efe09){const _0x2dfad6=_0x45201c['getAttribute']('footnoteId'),_0x3f4813=_0x45201c['getAttribute']('footnoteCounter'),_0x39b288=_0x2efe09['createUIElement']('a',{'href':'#'+_0x2dfad6},function(_0xcb2031){const _0x3ebea8=this['toDomElement'](_0xcb2031);return _0x3ebea8['textContent']=_0x3f4813,_0x3ebea8;}),_0x2c44a8=_0x2efe09['createContainerElement']('sup',{'id':'ref-'+_0x2dfad6,'class':'footnote'},[_0x39b288]);return _0x2c44a8['getFillerOffset']=()=>null,_0x2c44a8;}function b(_0x267cb7,_0x2b2cec,_0x235a97,{dataPipeline:_0x35869e}={}){const {t:t}=_0x235a97,_0x444281=_0x267cb7['getAttribute']('footnoteId'),_0x1408ed=_0x2b2cec['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x444281},function(_0x35617c){const _0x214d2f=this['toDomElement'](_0x35617c);return _0x214d2f['innerText']='^',_0x214d2f;}),_0x32ea5f=_0x35869e?_0x2b2cec['createContainerElement']('div',{'class':'footnote-content'}):_0x187204(_0x2b2cec['createEditableElement']('div',{'class':'footnote-content'}),_0x2b2cec,{'label':t('Footnote\x20content.')});return _0x2b2cec['insert'](_0x2b2cec['createPositionAt'](_0x32ea5f,0x0),_0x2b2cec['createSlot']()),_0x2b2cec['createContainerElement']('li',{'class':'footnote-definition','id':_0x444281},[_0x1408ed,_0x32ea5f]);}
23
+ import{Plugin as _0x160e2f}from'ckeditor5/src/core.js';import{isWidget as _0x34289c,toWidget as _0x1f1d46,toWidgetEditable as _0x10d691}from'ckeditor5/src/widget.js';import{uid as _0x809e8a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x27bf2f,ClickObserver as _0x250198}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x33a285}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x131fd3}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x160e2f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x33a285];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x205a03}=this;_0x205a03['config']['define']('footnotes.multiBlock',!0x0),_0x205a03['commands']['add']('insertFootnote',new _0x131fd3(_0x205a03)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xf48d4){const _0x15d431=_0x3042d9([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x4593b8=0x47a28506,_0x597cf4=0x47a5ffae^_0x4593b8,_0x537c83=window[_0x3042d9([0x44,0x61,0x74,0x65])][_0x3042d9([0x6e,0x6f,0x77])](),_0x18e6e3=_0xf48d4[_0x3042d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53fed8=new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14bcf0=>{_0x18e6e3[_0x3042d9([0x6f,0x6e,0x63,0x65])](_0x3042d9([0x72,0x65,0x61,0x64,0x79]),_0x14bcf0);}),_0x52b67e={[_0x3042d9([0x6b,0x74,0x79])]:_0x3042d9([0x45,0x43]),[_0x3042d9([0x75,0x73,0x65])]:_0x3042d9([0x73,0x69,0x67]),[_0x3042d9([0x63,0x72,0x76])]:_0x3042d9([0x50,0x2d,0x32,0x35,0x36]),[_0x3042d9([0x78])]:_0x3042d9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3042d9([0x79])]:_0x3042d9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3042d9([0x61,0x6c,0x67])]:_0x3042d9([0x45,0x53,0x32,0x35,0x36])},_0x55a8bb=_0x18e6e3[_0x3042d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3042d9([0x67,0x65,0x74])](_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15218c(){let _0x4daf33,_0x24fe15=null,_0x1a60e5=null;try{if(_0x55a8bb==_0x3042d9([0x47,0x50,0x4c]))return _0x3042d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4daf33=_0x14a559(),!_0x4daf33)return _0x3042d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4daf33[_0x3042d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a60e5=_0x1a479e(_0x4daf33[_0x3042d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4daf33[_0x3042d9([0x6a,0x74,0x69])])),await _0x4ca953()?_0x33e035()?_0xb47bf6()?_0x3042d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ea38f()?(_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3042d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24fe15=_0x2984b4(_0x3042d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3042d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x24fe15=_0x2984b4(_0x3042d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x553f0d()):_0x3042d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3042d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3042d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3042d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb47bf6(){const _0x4e7ee0=[_0x3042d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3042d9([0x74,0x72,0x69,0x61,0x6c])][_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x537c83/0x3e8:0xe10*_0x597cf4;return _0x4daf33[_0x3042d9([0x65,0x78,0x70])]<_0x4e7ee0;}function _0x33e035(){const _0x5ead84=_0x4daf33[_0x3042d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ead84&&(!!_0x5ead84[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3042d9([0x2a]))||!!_0x5ead84[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3042d9([0x46,0x4f,0x4f])));}function _0x5ea38f(){const _0x365c42=_0x4daf33[_0x3042d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365c42||0x0==_0x365c42[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38e814}=new URL(window[_0x3042d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x365c42[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38e814))return!0x0;const _0x47333e=_0x38e814[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e]));return _0x365c42[_0x3042d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x74405e=>_0x74405e[_0x3042d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3042d9([0x2a])))[_0x3042d9([0x6d,0x61,0x70])](_0x3ba425=>_0x3ba425[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e])))[_0x3042d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x446901=>_0x446901[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47333e[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3042d9([0x6d,0x61,0x70])](_0x22f95b=>Array(_0x47333e[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22f95b[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3042d9([0x66,0x69,0x6c,0x6c])](_0x22f95b[0x0]===_0x3042d9([0x2a])?_0x3042d9([0x2a]):'')[_0x3042d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22f95b))[_0x3042d9([0x73,0x6f,0x6d,0x65])](_0x585b6e=>_0x47333e[_0x3042d9([0x65,0x76,0x65,0x72,0x79])]((_0x21d7d2,_0xe743d1)=>_0x585b6e[_0xe743d1]===_0x21d7d2||_0x585b6e[_0xe743d1]===_0x3042d9([0x2a])));}function _0x553f0d(){return _0x24fe15&&_0x1a60e5?new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53ec47,_0x2bc170)=>{_0x24fe15[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x53ec47,_0x2bc170),_0x1a60e5[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x383588=>{_0x383588!=_0x3042d9([0x56,0x61,0x6c,0x69,0x64])&&_0x53ec47(_0x383588);},_0x2bc170);}):_0x24fe15||_0x1a60e5||_0x3042d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a479e(_0x1e0fab,_0x31c14b){return new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58e7fd=>{if(_0x412691())return _0x58e7fd(_0x3042d9([0x56,0x61,0x6c,0x69,0x64]));_0x366c08(),_0x18e6e3[_0x3042d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3042d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5269fe=!0x1;const _0x4b5fb3=_0x809e8a();function _0x27f694(_0x510f2b){return!!_0x510f2b&&(typeof _0x510f2b===_0x3042d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x510f2b===_0x3042d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x510f2b[_0x3042d9([0x74,0x68,0x65,0x6e])]===_0x3042d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x510f2b[_0x3042d9([0x63,0x61,0x74,0x63,0x68])]===_0x3042d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a7749(_0x2fcabb){_0x2b9511(_0x2fcabb)[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x151325=>{if(!_0x151325||_0x151325[_0x3042d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3042d9([0x6f,0x6b]))return _0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x353b18(_0x4163e7(_0x4b5fb3+_0x31c14b))!=_0x151325[_0x3042d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3042d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x18067f=>(_0x1aef67(),_0x18067f),()=>{const _0x3b7aa5=_0x1159a5();return null==_0x3b7aa5?(_0x1aef67(),_0x3042d9([0x56,0x61,0x6c,0x69,0x64])):_0x3042d9(_0x537c83-_0x3b7aa5>(0x63ae0106^_0x4593b8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x58e7fd)[_0x3042d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58e7fd(_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1543b7=0x47946b86^_0x4593b8;function _0x1aef67(){const _0x2769e7=_0x3042d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x353b18(_0x4163e7(_0x1e0fab)),_0x46ef58=_0x5c0fca(_0x353b18(window[_0x3042d9([0x4d,0x61,0x74,0x68])][_0x3042d9([0x63,0x65,0x69,0x6c])](_0x537c83/_0x1543b7)));window[_0x3042d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3042d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2769e7,_0x46ef58);}function _0x1159a5(){const _0x27987c=_0x3042d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x353b18(_0x4163e7(_0x1e0fab)),_0x4644f8=window[_0x3042d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3042d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27987c);return _0x4644f8?window[_0x3042d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0fca(_0x4644f8),0x10)*_0x1543b7:null;}function _0x2b9511(_0x433dfa){return new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e44bb,_0x383304)=>{_0x433dfa[_0x3042d9([0x74,0x68,0x65,0x6e])](_0x4e44bb,_0x383304),window[_0x3042d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x383304,0x47a351c6^_0x4593b8);});}}_0x18e6e3[_0x3042d9([0x6f,0x6e])](_0x3042d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x506a3f,_0x4ade10)=>{if(_0x4ade10[0x0]!=_0x1e0fab)return _0x58e7fd(_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ade10[0x1]={..._0x4ade10[0x1],[_0x3042d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b5fb3};},{[_0x3042d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3042d9([0x68,0x69,0x67,0x68])}),_0x18e6e3[_0x3042d9([0x6f,0x6e])](_0x3042d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xedcd7=>{_0x27f694(_0xedcd7[_0x3042d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5269fe=!0x0,_0x2a7749(_0xedcd7[_0x3042d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3042d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3042d9([0x6c,0x6f,0x77])}),_0x53fed8[_0x3042d9([0x74,0x68,0x65,0x6e])](()=>{_0x5269fe||_0x58e7fd(_0x3042d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x412691(){return _0x18e6e3[_0x3042d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3042d9([0x76,0x69,0x65,0x77])][_0x3042d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3042d9([0x61,0x75,0x74,0x6f]);}function _0x366c08(){_0x18e6e3[_0x3042d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3042d9([0x76,0x69,0x65,0x77])][_0x3042d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3042d9([0x61,0x75,0x74,0x6f]);}}function _0x2984b4(_0x5175f8){const _0x13ed3e=[new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b150=>setTimeout(_0x43b150,0x47abbbca^_0x4593b8)),_0x53fed8[_0x3042d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1015be=>{let _0x48388c=0x0;_0x18e6e3[_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3042d9([0x6f,0x6e])](_0x3042d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2199b6,_0x4a034b)=>{_0x4a034b[0x0][_0x3042d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48388c++,_0x48388c==(0x47a284fe^_0x4593b8)&&(_0x1015be(),_0x2199b6[_0x3042d9([0x6f,0x66,0x66])]());});}))];return window[_0x3042d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3042d9([0x72,0x61,0x63,0x65])](_0x13ed3e)[_0x3042d9([0x74,0x68,0x65,0x6e])](()=>_0x5175f8);}async function _0xd325fc(){await _0x53fed8,_0x18e6e3[_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3042d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x237f9d,_0x18e6e3[_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3042d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x237f9d,_0x18e6e3[_0x3042d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3042d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d6ff3(_0x563755){const _0x5f1656=_0x2c52f8();_0x18e6e3[_0x5f1656]=_0x3042d9([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x563755,_0x563755!=_0x3042d9([0x56,0x61,0x6c,0x69,0x64])&&_0xd325fc();}function _0x2c52f8(){const _0x21b3de=window[_0x3042d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3042d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3042d9([0x6e,0x6f,0x77])]())[_0x3042d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3042d9([0x2e]),'');let _0x3c93b6=_0x3042d9([0x75]);for(let _0x2f1563=0x0;_0x2f1563<_0x21b3de[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1563+=0x2){let _0x558520=window[_0x3042d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21b3de[_0x3042d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f1563,_0x2f1563+0x2));_0x558520>=_0x15d431[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x558520-=_0x15d431[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c93b6+=_0x15d431[_0x558520];}return _0x3c93b6;}function _0x14a559(){const _0x1d67a4=_0x55a8bb[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e]));if(0x3!=_0x1d67a4[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2dfd97(_0x1d67a4[0x1]);function _0x2dfd97(_0x52d863){const _0x587e90=_0x301149(_0x52d863);return _0x587e90&&_0x1b77ea()?_0x587e90:null;function _0x1b77ea(){const _0x35f123=_0x587e90[_0x3042d9([0x6a,0x74,0x69])],_0x464b0b=window[_0x3042d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35f123[_0x3042d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35f123[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bb7a2={..._0x587e90,[_0x3042d9([0x6a,0x74,0x69])]:_0x35f123[_0x3042d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35f123[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bb7a2[_0x3042d9([0x76,0x63])],_0x4163e7(_0x4bb7a2)==_0x464b0b;}}}async function _0x4ca953(){let _0xf89a1a=!0x0;try{const _0x4fcca3=_0x55a8bb[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])](_0x3042d9([0x2e])),[_0x12f011,_0x4f0462,_0x5dfbcc]=_0x4fcca3;return _0x4c83b5(_0x12f011),await _0x24c337(_0x12f011,_0x4f0462,_0x5dfbcc),_0xf89a1a;}catch{return!0x1;}function _0x4c83b5(_0x632e49){const _0x29e1a2=_0x301149(_0x632e49);_0x29e1a2&&_0x29e1a2[_0x3042d9([0x61,0x6c,0x67])]==_0x3042d9([0x45,0x53,0x32,0x35,0x36])||(_0xf89a1a=!0x1);}async function _0x24c337(_0x2302c8,_0xe702c0,_0x4eca56){const _0x1a946c=window[_0x3042d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3042d9([0x66,0x72,0x6f,0x6d])](_0x522f6e(_0x4eca56),_0xb23430=>_0xb23430[_0x3042d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b3ebd=new window[(_0x3042d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3042d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2302c8+_0x3042d9([0x2e])+_0xe702c0),_0x4f8111=window[_0x3042d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3042d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f8111)return;const _0x3e9448=await _0x4f8111[_0x3042d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3042d9([0x6a,0x77,0x6b]),_0x52b67e,{[_0x3042d9([0x6e,0x61,0x6d,0x65])]:_0x3042d9([0x45,0x43,0x44,0x53,0x41]),[_0x3042d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3042d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3042d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f8111[_0x3042d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3042d9([0x6e,0x61,0x6d,0x65])]:_0x3042d9([0x45,0x43,0x44,0x53,0x41]),[_0x3042d9([0x68,0x61,0x73,0x68])]:{[_0x3042d9([0x6e,0x61,0x6d,0x65])]:_0x3042d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e9448,_0x1a946c,_0x1b3ebd)||(_0xf89a1a=!0x1);}}function _0x301149(_0x1d609e){return _0x1d609e[_0x3042d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3042d9([0x65,0x79]))?JSON[_0x3042d9([0x70,0x61,0x72,0x73,0x65])](_0x522f6e(_0x1d609e)):null;}function _0x522f6e(_0xfcfe31){return window[_0x3042d9([0x61,0x74,0x6f,0x62])](_0xfcfe31[_0x3042d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3042d9([0x2b]))[_0x3042d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3042d9([0x2f])));}function _0x4163e7(_0x1093c4){let _0xe0e94f=0x1505;function _0x587fab(_0x502c01){for(let _0x1b0118=0x0;_0x1b0118<_0x502c01[_0x3042d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b0118++){const _0x54a1d5=_0x502c01[_0x3042d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b0118);_0xe0e94f=(_0xe0e94f<<0x5)+_0xe0e94f+_0x54a1d5,_0xe0e94f&=_0xe0e94f;}}function _0x46f387(_0x96d754){Array[_0x3042d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x96d754)?_0x96d754[_0x3042d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46f387):_0x96d754&&typeof _0x96d754==_0x3042d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3042d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x96d754)[_0x3042d9([0x73,0x6f,0x72,0x74])]()[_0x3042d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d8249,_0x5934c8])=>{_0x587fab(_0x1d8249),_0x46f387(_0x5934c8);}):_0x587fab(window[_0x3042d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x96d754));}return _0x46f387(_0x1093c4),_0xe0e94f>>>0x0;}function _0x353b18(_0x2267bc){return _0x2267bc[_0x3042d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3042d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3042d9([0x30]));}function _0x5c0fca(_0x8c04f){return _0x8c04f[_0x3042d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3042d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3042d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x237f9d(){}function _0x3042d9(_0xed197d){return _0xed197d['map'](_0x5b9f71=>String['fromCharCode'](_0x5b9f71))['join']('');}_0x3d6ff3(await _0x15218c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2caff5){const {plugins:_0x3c7eea,editing:_0x42dd57,model:_0x4222c5}=this['editor'],_0x246ec4=_0x3c7eea['get'](_0x33a285)['getFootnote'](_0x2caff5);return!!_0x246ec4&&(_0x4222c5['change'](_0x19c9a3=>{_0x19c9a3['setSelection'](_0x19c9a3['createPositionAt'](_0x246ec4['definition'],'end'));}),_0x42dd57['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5d2f6e){const {plugins:_0x4d602e,editing:_0x27d510,model:_0x2ce37b}=this['editor'],_0x5845fb=_0x4d602e['get'](_0x33a285)['getFootnote'](_0x5d2f6e);return!!_0x5845fb&&(_0x2ce37b['change'](_0x5ced24=>{_0x5ced24['setSelection'](_0x5845fb['reference'],'on');}),_0x27d510['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4b9e0d}=this['editor']['model'],_0x3786fd=this['editor']['config']['get']('footnotes.multiBlock');_0x4b9e0d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4b9e0d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4b9e0d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3786fd?_0x4b9e0d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4b9e0d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4b9e0d['addChildCheck'](_0x22fa41=>{for(const _0x1f98de of _0x22fa41)if('footnoteDefinition'===_0x1f98de['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x48d6d5}=this,{conversion:_0x1aa54b,editing:_0x474fd0}=_0x48d6d5,{t:t}=_0x48d6d5['locale'];_0x1aa54b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x878677,{writer:_0x22bbf3,consumable:_0x3ea0f8})=>{const _0xb7a565=_0x878677['getChild'](0x0);if(!_0xb7a565||!_0xb7a565['is']('element','a'))return null;const _0x4d097a=_0xb7a565['getAttribute']('href')||'';if(!_0x4d097a['startsWith']('#'))return null;const _0x3b83c3=_0x4d097a['replace'](/^#/,'');if(!_0x3b83c3)return null;_0x3ea0f8['consume'](_0xb7a565,{'name':!0x0,'attributes':['href']});for(const {item:_0xb8f2bd}of _0x474fd0['view']['createRangeIn'](_0xb7a565))_0xb8f2bd['is']('$textProxy')?_0x3ea0f8['consume'](_0xb8f2bd['textNode'],{'name':!0x0}):_0xb8f2bd['is']('element')&&_0x3ea0f8['consume'](_0xb8f2bd,{'name':!0x0});return _0x22bbf3['createElement']('footnoteRef',{'footnoteId':_0x3b83c3});}}),_0x1aa54b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x171ff,{writer:_0x39e5c5})=>D(_0x171ff,_0x39e5c5)}),_0x1aa54b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4fb89f,{writer:_0x4ceb9e})=>{const _0x42c0ed=_0x4fb89f['getAttribute']('footnoteCounter');return _0x1f1d46(D(_0x4fb89f,_0x4ceb9e),_0x4ceb9e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x42c0ed)});}});}['_defineDefinitionsConverters'](){const {editor:_0x461263}=this,{t:t}=_0x461263['locale'],{conversion:_0x599b6d}=_0x461263;_0x599b6d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x599b6d['for']('upcast')['add'](_0x359f50=>{_0x359f50['on']('element:ol',(_0x243e58,_0x38d0f7,_0x3cfdc4)=>{const _0x1e556c=_0x38d0f7['viewItem'];if(!_0x1e556c['hasClass']('footnotes-list')||!_0x38d0f7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3cfdc4['consumable']['consume'](_0x1e556c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1b4b57,modelCursor:_0x184465}=_0x3cfdc4['convertChildren'](_0x38d0f7['viewItem'],_0x38d0f7['modelCursor']);_0x38d0f7['modelRange']=_0x1b4b57,_0x38d0f7['modelCursor']=_0x184465;}),_0x359f50['on']('element:hr',(_0x54d075,_0xdcebfa,_0x22d12f)=>{const _0x421224=_0xdcebfa['viewItem'];_0x421224['hasClass']('footnotes-divider')&&_0xdcebfa['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x22d12f['consumable']['consume'](_0x421224,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x599b6d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1204fd,{writer:_0x56ac27})=>v(_0x56ac27)}),_0x599b6d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x15fec8,{writer:_0x11b2dc})=>{const _0x14cc77=v(_0x11b2dc,{'data-footnotes-list-label':t('Footnotes')}),_0x5d6a31=_0x1f1d46(_0x14cc77,_0x11b2dc,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x11b2dc['setCustomProperty']('footnotesDefinitions',!0x0,_0x5d6a31),_0x5d6a31;}});}['_defineDefinitionConverters'](){const {editor:_0x27a60b}=this,{conversion:_0x48b239,locale:_0xe96b1e}=_0x27a60b,_0x1b7a54=_0x27a60b['config']['get']('footnotes.multiBlock');_0x48b239['for']('upcast')['add'](_0x5b5174=>{_0x5b5174['on']('element:li',(_0x8e9bb3,_0x39c194,_0x1e6bf0)=>{const _0x1f7b23=_0x39c194['viewItem'];if(!_0x1f7b23['hasClass']('footnote-definition')||!_0x1f7b23['getAttribute']('id'))return;const _0x16ed57=_0x1f7b23['parent'];if(!_0x16ed57['is']('element','ol')||!_0x16ed57['hasClass']('footnotes-list'))return;if(!_0x1e6bf0['consumable']['test'](_0x1f7b23,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x30e8ad=_0x1e6bf0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1f7b23['getAttribute']('id')});if(!_0x1e6bf0['safeInsert'](_0x30e8ad,_0x39c194['modelCursor']))return;_0x1e6bf0['consumable']['consume'](_0x1f7b23,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0xc90ca3=Array['from'](_0x1f7b23['getChildren']())['find'](_0x4931e3=>_0x4931e3['is']('element')&&_0x4931e3['hasClass']('footnote-content'));for(const _0xfe601a of _0x1f7b23['getChildren']())_0xfe601a['is']('element')&&(_0x1e6bf0['consumable']['consume'](_0xfe601a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1e6bf0['consumable']['consume'](_0xfe601a,{'name':!0x0,'classes':'footnote-content'}));if(_0xc90ca3){if(_0x1b7a54)_0x1e6bf0['convertChildren'](_0xc90ca3,_0x30e8ad);else{const _0x1abce5=_0x1e6bf0['writer']['createElement']('footnoteInlineContent');_0x1e6bf0['writer']['insert'](_0x1abce5,_0x30e8ad),_0x1e6bf0['convertChildren'](_0xc90ca3,_0x1abce5);}}_0x1e6bf0['updateConversionResult'](_0x30e8ad,_0x39c194);});}),_0x48b239['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5370c8,{writer:_0x11506a})=>b(_0x5370c8,_0x11506a,_0xe96b1e,{'dataPipeline':!0x0})}),_0x48b239['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x460d42,{writer:_0x37a79e})=>b(_0x460d42,_0x37a79e,_0xe96b1e)});}['_defineBogusParagraphConverters'](){const {editor:_0x42b6e4}=this,{conversion:_0x85fe5e}=_0x42b6e4;_0x42b6e4['config']['get']('footnotes.multiBlock')?(_0x85fe5e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x85fe5e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x42b6e4['model']['document'],'change:data',()=>{!function(_0xdda8bd,_0x1e0de1){const _0x5a6bc4=_0xdda8bd['document']['differ'],_0x4078db=new Set();for(const _0x1f1ae3 of _0x5a6bc4['getChanges']()){const _0x1e7021='attribute'==_0x1f1ae3['type']?_0x1f1ae3['range']['start']['parent']:_0x1f1ae3['position']['parent'];_0x1e7021['is']('element','footnoteDefinition')&&_0x4078db['add'](_0x1e7021);}for(const _0x524cc2 of _0x4078db['values']()){const _0xa74e58=Array['from'](_0x524cc2['getChildren']())['filter'](_0x48e3a6=>g(_0x48e3a6,_0x1e0de1['mapper']));for(const _0x543606 of _0xa74e58)_0x1e0de1['reconvertItem'](_0x543606);}}(_0x42b6e4['model'],_0x42b6e4['editing']);})):(_0x85fe5e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x85fe5e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4ca951,{writer:_0x29ed5f})=>{const _0x1499a5=_0x29ed5f['createContainerElement']('span');return _0x29ed5f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1499a5),_0x1499a5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x562b6f}=this,{editing:_0x418379,t:t}=_0x562b6f,_0x5a51d1=_0x562b6f['model']['document']['selection'];_0x562b6f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x562b6f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x418379['view']['document'],'enter',(_0x24102a,_0x585aba)=>{const _0x53ce9c=function(_0x1b4e4d){const _0x4cbfbd=_0x1b4e4d['getSelectedElement']();if(_0x4cbfbd?.['is']('element','footnoteRef'))return _0x4cbfbd;return null;}(_0x5a51d1);if(_0x53ce9c){const _0x2027db=_0x53ce9c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2027db),_0x585aba['preventDefault'](),_0x24102a['stop']();}},{'context':_0x34289c});}['_defineClickHandlers'](){const {editor:_0x11e666}=this,{editing:_0x24c2fb}=_0x11e666;_0x11e666['editing']['view']['addObserver'](_0x27bf2f),_0x11e666['editing']['view']['addObserver'](_0x250198);let _0x4a0550=!0x1;this['listenTo'](_0x24c2fb['view']['document'],'pointerdown',(_0x571116,_0x434ba8)=>{const {target:_0x56acf6}=_0x434ba8,_0x308014=_0x24c2fb['view']['document']['selection'];_0x4a0550=!!(_0x56acf6?.['is']('element','a')&&_0x56acf6['parent']?.['is']('element','sup')&&_0x56acf6['parent']['hasClass']('footnote'))&&_0x308014['getSelectedElement']()===_0x56acf6['parent'];},{'priority':'high'}),this['listenTo'](_0x24c2fb['view']['document'],'click',(_0x3ef87c,_0x110371)=>{const {target:_0x878980}=_0x110371;if(!_0x878980?.['is']('element','a'))return;if(_0x878980['parent']?.['is']('element','sup')&&_0x878980['parent']['hasClass']('footnote')&&!_0x4a0550)return void _0x110371['preventDefault']();let _0xad8d20=_0x878980['getAttribute']('href');if(!_0xad8d20?.['startsWith']('#'))return;_0xad8d20=_0xad8d20['slice'](0x1);let _0x300949=!0x1;(_0xad8d20['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xad8d20['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xad8d20))&&(_0x300949=!0x0),_0x300949&&(_0x110371['preventDefault'](),_0x3ef87c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x20ccc6}={}){return(_0x117ff9,{writer:_0xc828b3})=>{if(!p(_0x117ff9))return null;if(!_0x20ccc6)return _0xc828b3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4591e3=_0xc828b3['createContainerElement']('p');return _0xc828b3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4591e3),_0x4591e3;};}function p(_0x59d5e9){const {parent:_0x1102df}=_0x59d5e9;if(!_0x1102df?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1102df['childCount'])return!0x1;for(const _0x5d8844 of _0x59d5e9['getAttributeKeys']())if(!_0x5d8844['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5d8844)return!0x1;return!0x0;}function g(_0x315796,_0x134929){if(!_0x315796['is']('element','paragraph'))return!0x1;const _0x37f427=_0x134929['toViewElement'](_0x315796);return!!_0x37f427&&p(_0x315796)!==_0x37f427['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2bd605){return _0x34289c(_0x2bd605)&&_0x2bd605['is']('containerElement')&&!!_0x2bd605['getCustomProperty']('footnotesDefinitions');}function v(_0x5b597d,_0x52d383={}){const _0x46dcd6=_0x5b597d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x264d4b=_0x5b597d['createContainerElement']('ol',{'class':'footnotes-list'},_0x5b597d['createSlot']());return _0x5b597d['createContainerElement']('div',{'class':'footnotes',..._0x52d383},[_0x46dcd6,_0x264d4b]);}function D(_0x32499b,_0x3645fa){const _0x57ac29=_0x32499b['getAttribute']('footnoteId'),_0x1a97c1=_0x32499b['getAttribute']('footnoteCounter'),_0x197204=_0x3645fa['createUIElement']('a',{'href':'#'+_0x57ac29},function(_0x25a2b0){const _0x366c03=this['toDomElement'](_0x25a2b0);return _0x366c03['textContent']=_0x1a97c1,_0x366c03;}),_0x4383ef=_0x3645fa['createContainerElement']('sup',{'id':'ref-'+_0x57ac29,'class':'footnote'},[_0x197204]);return _0x4383ef['getFillerOffset']=()=>null,_0x4383ef;}function b(_0x1dfd43,_0x4f2455,_0x298a0d,{dataPipeline:_0x1ebee1}={}){const {t:t}=_0x298a0d,_0x1422b5=_0x1dfd43['getAttribute']('footnoteId'),_0x3eb492=_0x4f2455['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1422b5},function(_0x45adfa){const _0x3e228c=this['toDomElement'](_0x45adfa);return _0x3e228c['innerText']='^',_0x3e228c;}),_0x3e0990=_0x1ebee1?_0x4f2455['createContainerElement']('div',{'class':'footnote-content'}):_0x10d691(_0x4f2455['createEditableElement']('div',{'class':'footnote-content'}),_0x4f2455,{'label':t('Footnote\x20content.')});return _0x4f2455['insert'](_0x4f2455['createPositionAt'](_0x3e0990,0x0),_0x4f2455['createSlot']()),_0x4f2455['createContainerElement']('li',{'class':'footnote-definition','id':_0x1422b5},[_0x3eb492,_0x3e0990]);}