@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251126.0 → 0.0.0-nightly-20251127.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:1764115200;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:1764201600;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 _0x37b90d,Command as _0xfeb387}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5824a6,isWidget as _0x1cd262,toWidgetEditable as _0x527473,WidgetToolbarRepository as _0x5ca3bb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x54531e,logWarning as _0x5bc1b5,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2054e9,ClickObserver as _0x2dbafd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4dc13b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3e4e4e,ButtonView as _0x5a43ab,View as _0x4d31d2,ViewCollection as _0x504104,FocusCycler as _0x1a59c1,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x3816a8,BalloonPanelView as _0x10e947,createDropdown as _0x50f76b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1762e1,IconListStyleDecimal as _0x3d5ef6,IconListStyleDecimalLeadingZero as _0x5d2bbe,IconListStyleLowerRoman as _0x201c28,IconListStyleUpperRoman as _0x5334de,IconListStyleLowerLatin as _0x23c411,IconListStyleUpperLatin as _0x1b0082}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4240cb,_0x43484c){this['_model']=_0x4240cb,this['_elementName']=_0x43484c['elementName'],this['_getElementKey']=_0x43484c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3a7cbd){const _0x54b1db=new Set(),_0x540320=new Map();for(const _0x4138c3 of _0x3a7cbd){if('insert'===_0x4138c3['type']&&'$text'!==_0x4138c3['name']&&_0x4138c3['position']['nodeAfter']){const _0x5ece0f=this['_model']['createRangeOn'](_0x4138c3['position']['nodeAfter']);for(const _0xec2513 of _0x5ece0f['getItems']()){if(!_0xec2513['is']('element',this['_elementName']))continue;const _0xad85e3=this['_getElementKey'](_0xec2513);_0x540320['has'](_0xad85e3)||_0x540320['set'](_0xad85e3,[]),_0x540320['get'](_0xad85e3)['push'](_0xec2513);}}if('remove'===_0x4138c3['type']&&_0x4138c3['name']===this['_elementName']){const _0x8d064f=this['_getElementKey']({'getAttribute':_0x5aa1dd=>_0x4138c3['attributes']['get'](_0x5aa1dd)});_0x54b1db['add'](_0x8d064f);}}for(const [_0x28b25f,_0x4e2366]of this['_trackedElements'])'$graveyard'===_0x4e2366['root']['rootName']&&_0x54b1db['add'](_0x28b25f);for(const _0x395889 of _0x54b1db)this['_trackedElements']['delete'](_0x395889);for(const [_0x5bfbfe,_0x1c063e]of _0x540320)this['_trackedElements']['set'](_0x5bfbfe,_0x1c063e[_0x1c063e['length']-0x1]);const _0x2aa29e=new Set();for(const [_0x7cf8b9,_0x114af8]of _0x540320)_0x54b1db['has'](_0x7cf8b9)&&(_0x2aa29e['add'](_0x114af8[0x0]),_0x114af8['length']>0x1?_0x540320['set'](_0x7cf8b9,_0x114af8['slice'](0x1)):_0x540320['delete'](_0x7cf8b9),_0x54b1db['delete'](_0x7cf8b9));return{'removed':Array['from'](_0x54b1db),'inserted':Array['from'](_0x540320['values']())['flat'](),'moved':Array['from'](_0x2aa29e)};}}class c extends _0x37b90d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9f5dfb){super(_0x9f5dfb),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3da51a=>_0x3da51a['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x41b02a=>_0x41b02a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x530d2d}=this,{model:_0x1f9db7,data:_0x3e67cb}=_0x530d2d;_0x1f9db7['document']['registerPostFixer'](_0x9695ee=>{const _0xa9e705=_0x1f9db7['document']['differ']['getChanges']();let _0x2594ab=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x9695ee,_0xa9e705)&&(_0x2594ab=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x9695ee,_0xa9e705)&&(_0x2594ab=!0x0),this['_handleFootnoteReferencesChanges'](_0x9695ee,_0xa9e705)&&(_0x2594ab=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x9695ee)&&(_0x2594ab=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x9695ee)&&(_0x2594ab=!0x0),this['_sortFootnoteDefinitions'](_0x9695ee)&&(_0x2594ab=!0x0),_0x2594ab;}),this['listenTo'](_0x1f9db7['document'],'change:data',()=>{_0x1f9db7['enqueueChange']({'isUndoable':!0x1},_0x495e39=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x495e39);});},{'priority':'low'}),this['listenTo'](_0x3e67cb,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x1a309c){return this['_footnotes']['find'](_0x3ae92d=>_0x3ae92d['id']===_0x1a309c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x198c29){this['_footnoteFormatter']=_0x198c29;}['_updateFootnotesCounters'](_0x4c1e63,_0x345e46=0x0){let _0x4d91ff=!0x1;for(let _0x2410a1=_0x345e46;_0x2410a1<this['_footnotes']['length'];_0x2410a1++)this['_updateFootnoteRefCounter'](_0x4c1e63,_0x2410a1)&&(_0x4d91ff=!0x0);return _0x4d91ff;}['_insertEmptyFootnotesDefinitionsContainer'](_0xb8c021,_0x405ed4){const _0x5b005e=_0xb8c021['createElement']('footnotesDefinitions',{});return _0xb8c021['append'](_0x5b005e,_0x405ed4),this['_footnotesDefinitions']=_0x5b005e,_0x5b005e;}['_ensureFootnotesDefinitionsContainerExists'](_0x5171ad){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4499fc=this['_footnotes'][0x0]['reference']['root'],_0x1ec86a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5171ad,_0x4499fc);for(const _0x4f7181 of this['_footnotes'])_0x4f7181['definition']['parent']||_0x5171ad['insert'](_0x4f7181['definition'],_0x1ec86a,'end');this['_updateFootnotesCounters'](_0x5171ad);}['_handleFootnotesDefinitionsObjectChanges'](_0x1efd21,_0x20cca5){let _0x43d1c7=!0x1;const {inserted:_0x13b570,removed:_0x40938f,moved:_0x402f12}=this['_footnoteDefsContainerTracker']['getChanges'](_0x20cca5);if(_0x402f12['length']&&(this['_footnotesDefinitions']=_0x402f12[0x0]),_0x13b570['length']){if(_0x13b570['length']>0x1||this['_footnotesDefinitions']&&_0x13b570['some'](_0x34ab1e=>_0x34ab1e!==this['_footnotesDefinitions'])){const _0x5b9c87=_0x1efd21['createElement']('footnotesDefinitions',{}),_0x575abc=[];this['_footnotesDefinitions']&&_0x575abc['push'](this['_footnotesDefinitions']),_0x575abc['push'](..._0x13b570),_0x1efd21['insert'](_0x5b9c87,_0x575abc[0x0],'before');for(const _0x24c746 of _0x575abc)_0x1efd21['move'](_0x1efd21['createRangeIn'](_0x24c746),_0x1efd21['createPositionAt'](_0x5b9c87,'end')),_0x1efd21['remove'](_0x24c746);this['_footnotesDefinitions']=_0x5b9c87,this['_updateFootnotesCounters'](_0x1efd21),_0x43d1c7=!0x0;}else this['_footnotesDefinitions']=_0x13b570[0x0];}if(_0x40938f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2ba42a of this['_footnotes'])_0x1efd21['remove'](_0x2ba42a['reference']),_0x43d1c7=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x43d1c7;}['_handleFootnoteDefinitionsChanges'](_0x68c6c6,_0x32c0eb){let _0x174c6e=!0x1;const _0x2a87c8=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4dc2e8,moved:_0x3c3ea4}=this['_footnoteDefsTracker']['getChanges'](_0x32c0eb);for(const _0x32e5fd of[..._0x3c3ea4,..._0x4dc2e8]){const _0x593e67=_0x32e5fd['getAttribute']('footnoteId'),_0x3b5309=this['getFootnote'](_0x593e67);_0x3b5309&&(_0x3b5309['definition']=_0x32e5fd),_(_0x68c6c6,_0x2a87c8,_0x32e5fd)&&(_0x174c6e=!0x0);}return _0x174c6e;}['_handleFootnoteReferencesChanges'](_0x51537c,_0x4e7c41){let _0x3304c8=!0x1;const {removed:_0x42e20c,inserted:_0x456138,moved:_0x4494fa}=this['_footnoteRefsTracker']['getChanges'](_0x4e7c41);for(const _0x259fb4 of _0x42e20c)this['_handleRemoveFootnoteReferenceById'](_0x51537c,_0x259fb4)&&(_0x3304c8=!0x0);for(const _0x3d1c0b of _0x456138)this['_handleInsertedFootnoteReference'](_0x51537c,_0x3d1c0b)&&(_0x3304c8=!0x0);for(const _0x3b2dde of _0x4494fa)this['_handleMovedFootnoteReference'](_0x51537c,_0x3b2dde)&&(_0x3304c8=!0x0);return _0x3304c8;}['_handleFootnotesDefinitionsObjectSync'](_0x27e420){if(!this['_footnotesDefinitions'])return!0x1;let _0x26b753=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5d8671=[];for(const _0x7b562f of this['_footnotesDefinitions']['getChildren']()){const _0x9ed0f3=_0x7b562f['getAttribute']('footnoteId');this['getFootnote'](_0x9ed0f3)||(_0x5d8671['unshift'](_0x7b562f),_0x26b753=!0x0);}for(const _0x1d6562 of _0x5d8671)_0x27e420['remove'](_0x1d6562);}const _0x33a11a=new Set(),_0x195a94=[];for(const _0xa5ee5 of this['_footnotesDefinitions']['getChildren']()){const _0x248342=_0xa5ee5['getAttribute']('footnoteId');_0x33a11a['has'](_0x248342)?(_0x195a94['unshift'](_0xa5ee5),_0x26b753=!0x0):_0x33a11a['add'](_0x248342);}for(const _0x5b322d of _0x195a94)_0x27e420['remove'](_0x5b322d);return this['_footnotesDefinitions']['childCount']||(_0x27e420['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x26b753=!0x0),_0x26b753;}['_handleInsertedFootnoteReference'](_0xa2f18a,_0x4a5c87){if(this['_footnotes']['find'](_0x407d63=>_0x407d63['reference']===_0x4a5c87))return!0x1;let _0x5872a8=!0x1;const _0x1109fb=_0x4a5c87['getAttribute']('footnoteId'),_0x38ceb5=this['_footnotes']['findIndex'](_0x41bb5d=>_0x41bb5d['id']===_0x1109fb);-0x1!==_0x38ceb5&&(_0xa2f18a['remove'](this['_footnotes'][_0x38ceb5]['reference']),this['_footnotes']['splice'](_0x38ceb5,0x1),_0x5872a8=!0x0);let _0x301060=this['_footnotesDefinitions']?function(_0x3c979b,_0x2fedad){for(const _0x5dc437 of _0x3c979b['getChildren']())if(_0x5dc437['getAttribute']('footnoteId')===_0x2fedad)return _0x5dc437;return null;}(this['_footnotesDefinitions'],_0x1109fb):null;_0x301060||(_0x301060=_0xa2f18a['createElement']('footnoteDefinition',{'footnoteId':_0x1109fb}),this['_footnotesDefinitions']&&(_0xa2f18a['insert'](_0x301060,this['_footnotesDefinitions'],'end'),_0x5872a8=!0x0));const _0x50cadc={'id':_0x1109fb,'reference':_0x4a5c87,'definition':_0x301060},_0x475454=I(this['editor']['model'],this['_footnotes'],_0x4a5c87);this['_footnotes']['splice'](_0x475454,0x0,_0x50cadc);let _0x390403=_0x475454;return-0x1!==_0x38ceb5&&(_0x390403=Math['min'](_0x475454,_0x38ceb5)),this['_updateFootnotesCounters'](_0xa2f18a,_0x390403)&&(_0x5872a8=!0x0),_0x5872a8;}['_handleRemoveFootnoteReferenceById'](_0x425518,_0x331382){const _0x8f08cd=this['_footnotes']['findIndex'](_0x6ef726=>_0x6ef726['id']===_0x331382);if(-0x1===_0x8f08cd)return!0x1;let _0x49d24e=!0x1;const _0x98eb00=this['_footnotes'][_0x8f08cd];return'$graveyard'!==_0x98eb00['definition']['root']['rootName']&&(_0x425518['remove'](_0x98eb00['definition']),_0x49d24e=!0x0),this['_footnotes']['splice'](_0x8f08cd,0x1),this['_updateFootnotesCounters'](_0x425518,_0x8f08cd)&&(_0x49d24e=!0x0),_0x49d24e;}['_handleMovedFootnoteReference'](_0x1fc567,_0x48ff66){const _0x1b6d92=_0x48ff66['getAttribute']('footnoteId'),_0x43e33e=this['_footnotes']['findIndex'](_0xcdc72f=>_0xcdc72f['id']===_0x1b6d92),_0xe7fe6a=this['_footnotes'][_0x43e33e];let _0x16487f=!0x1;_0xe7fe6a['reference']=_0x48ff66,this['_footnotes']['splice'](_0x43e33e,0x1);const _0x160c95=I(this['editor']['model'],this['_footnotes'],_0x48ff66);return this['_footnotes']['splice'](_0x160c95,0x0,_0xe7fe6a),this['_updateFootnotesCounters'](_0x1fc567,Math['min'](_0x43e33e,_0x160c95))&&(_0x16487f=!0x0),_0x16487f;}['_updateFootnoteRefCounter'](_0x5787cb,_0x423e67){if(!this['_footnotesDefinitions'])return!0x1;const _0x101c68=this['_footnotes'][_0x423e67];let _0x2d2311;return _0x2d2311=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x101c68,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x423e67+0x1}):String(_0x423e67+0x1),_0x101c68['reference']['getAttribute']('footnoteCounter')!=_0x2d2311&&(_0x5787cb['setAttribute']('footnoteCounter',_0x2d2311,_0x101c68['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x73bc33){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1d09de,_0x4c8a69){if(_0x1d09de['length']!==_0x4c8a69['length'])return!0x1;for(let _0x43ee02=0x0;_0x43ee02<_0x1d09de['length'];_0x43ee02++)if(_0x1d09de[_0x43ee02]!==_0x4c8a69[_0x43ee02])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2cf113=>_0x2cf113['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4de2d5=>_0x4de2d5['getAttribute']('footnoteId'))))return!0x1;let _0x1baba1=!0x1;for(let _0x2c48aa=0x0;_0x2c48aa<this['_footnotes']['length'];_0x2c48aa++){const _0x35da3f=this['_footnotes'][_0x2c48aa],_0x2f1c31=_0x73bc33['createPositionBefore'](_0x35da3f['definition']),_0x363035=_0x73bc33['createPositionAt'](this['_footnotesDefinitions'],_0x2c48aa);_0x2f1c31['isEqual'](_0x363035)||(_0x73bc33['move'](_0x73bc33['createRangeOn'](_0x35da3f['definition']),_0x363035),_0x1baba1=!0x0);}return _0x1baba1;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4eb132){if(!this['_footnotes']['length'])return!0x1;const {model:_0x14c42e}=this['editor'];let _0x40f17a=!0x1;for(let _0x4da264=0x0;_0x4da264<this['_footnotes']['length']-0x1;_0x4da264++){const _0x4ac377=this['_footnotes'][_0x4da264],_0x3dd756=this['_footnotes'][_0x4da264+0x1],_0x5bbecd=_0x14c42e['createPositionBefore'](_0x4ac377['reference']),_0x27d8bb=_0x14c42e['createPositionBefore'](_0x3dd756['reference']);'after'===_0x5bbecd['compareWith'](_0x27d8bb)&&(this['_handleMovedFootnoteReference'](_0x4eb132,_0x4ac377['reference']),_0x4da264=-0x1,_0x40f17a=!0x0);}return _0x40f17a;}}function _(_0x4800d4,_0x42d861,_0x319c34){if(_0x319c34['childCount'])return!0x1;const _0x3dbada=_0x42d861?'paragraph':'footnoteInlineContent';return _0x4800d4['insert'](_0x4800d4['createElement'](_0x3dbada),_0x319c34),!0x0;}function I(_0x3a8232,_0x191eec,_0x52c169){if(0x0===_0x191eec['length'])return 0x0;const _0x26c92a=_0x3a8232['createPositionBefore'](_0x52c169);for(let _0x3a9391=0x0;_0x3a9391<_0x191eec['length'];_0x3a9391++){const _0xeb07ad=_0x191eec[_0x3a9391],_0x16edbc=_0x3a8232['createPositionBefore'](_0xeb07ad['reference']);if('before'===_0x26c92a['compareWith'](_0x16edbc))return _0x3a9391;}const _0x3bcc3d=_0x52c169['root'];let _0x129ec2=-0x1;for(let _0x62f650=_0x191eec['length']-0x1;_0x62f650>=0x0;_0x62f650--)if(_0x191eec[_0x62f650]['reference']['root']===_0x3bcc3d){_0x129ec2=_0x62f650;break;}if(-0x1!==_0x129ec2)return _0x129ec2+0x1;const _0x4f2703=_0x3a8232['document']['getRootNames'](),_0x2756f2=_0x4f2703['indexOf'](_0x3bcc3d['rootName']),_0x37064c=_0x4f2703[_0x2756f2+0x1];if(_0x37064c){for(let _0x48e592=0x0;_0x48e592<_0x191eec['length'];_0x48e592++)if(_0x191eec[_0x48e592]['reference']['root']['rootName']===_0x37064c)return _0x48e592;}return _0x191eec['length'];}class m extends _0xfeb387{['refresh'](){const _0x571564=this['editor']['model']['document']['selection'],_0x7e196=this['_getPositionToInsertFootnote'](_0x571564);this['isEnabled']=!!_0x7e196;}['execute'](_0x1f9f92){const {editor:_0x217d26}=this,{model:_0xb19e41}=_0x217d26,{selection:_0x35af5b}=_0xb19e41['document'],_0x34261f=this['_getPositionToInsertFootnote'](_0x35af5b);if(!_0x34261f)return;const _0x388106=_0x217d26['plugins']['get']('FootnotesEditing'),_0x290d35=_0x1f9f92?.['footnoteId']??_0x54531e();!function(_0x1fcb74){return'string'==typeof _0x1fcb74&&_0x1fcb74['length']>0x0&&!/\s/['test'](_0x1fcb74)&&!/^\d/['test'](_0x1fcb74);}(_0x290d35)?_0x5bc1b5('insert-footnote-command-executed-with-invalid-id'):(_0xb19e41['change'](_0x36c868=>{const _0x5d5f89=_0x36c868['createElement']('footnoteRef',{'footnoteId':_0x290d35});_0xb19e41['insertObject'](_0x5d5f89,_0x34261f,null);}),_0x388106['_moveSelectionToFootnoteDefinition'](_0x290d35));}['_getPositionToInsertFootnote'](_0x247253){const {model:_0xdf046c}=this['editor'],{schema:_0x5c4279}=_0xdf046c,_0x16b52d=_0x247253['getFirstRange']();for(const _0x321a14 of _0x16b52d['getItems']())if(_0x5c4279['isBlock'](_0x321a14)||_0x5c4279['isObject'](_0x321a14))return null;const _0x5a2c54=_0x16b52d['end'];return _0x5c4279['checkChild'](_0x5a2c54,'footnoteRef')?_0x5a2c54:null;}}class r extends _0x37b90d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd9cb11}=this;_0xd9cb11['config']['define']('footnotes.multiBlock',!0x0),_0xd9cb11['commands']['add']('insertFootnote',new m(_0xd9cb11)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x49e5d2){const _0x4ae7ef=_0x32338d([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]),_0xb761e5=0x47a28506,_0x20af59=0x47a5ff36^_0xb761e5,_0x3e021c=window[_0x32338d([0x44,0x61,0x74,0x65])][_0x32338d([0x6e,0x6f,0x77])](),_0x3d4094=_0x49e5d2[_0x32338d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x167104=new window[(_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7ebb17=>{_0x3d4094[_0x32338d([0x6f,0x6e,0x63,0x65])](_0x32338d([0x72,0x65,0x61,0x64,0x79]),_0x7ebb17);}),_0x5438a7={[_0x32338d([0x6b,0x74,0x79])]:_0x32338d([0x45,0x43]),[_0x32338d([0x75,0x73,0x65])]:_0x32338d([0x73,0x69,0x67]),[_0x32338d([0x63,0x72,0x76])]:_0x32338d([0x50,0x2d,0x32,0x35,0x36]),[_0x32338d([0x78])]:_0x32338d([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]),[_0x32338d([0x79])]:_0x32338d([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]),[_0x32338d([0x61,0x6c,0x67])]:_0x32338d([0x45,0x53,0x32,0x35,0x36])},_0x4fcd3f=_0x3d4094[_0x32338d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32338d([0x67,0x65,0x74])](_0x32338d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b20df(){let _0x1cb868,_0x2b327f=null,_0x325777=null;try{if(_0x4fcd3f==_0x32338d([0x47,0x50,0x4c]))return _0x32338d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb868=_0x30d2dc(),!_0x1cb868)return _0x32338d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb868[_0x32338d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x325777=_0x26db84(_0x1cb868[_0x32338d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb868[_0x32338d([0x6a,0x74,0x69])])),await _0xdfff7d()?_0x7b3060()?_0x3fb6b9()?_0x32338d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24294a()?(_0x1cb868[_0x32338d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32338d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b327f=_0x1359b5(_0x32338d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cb868[_0x32338d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32338d([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b327f=_0x1359b5(_0x32338d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xfa70ca()):_0x32338d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32338d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32338d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32338d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fb6b9(){const _0xa9fc57=[_0x32338d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32338d([0x74,0x72,0x69,0x61,0x6c])][_0x32338d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb868[_0x32338d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e021c/0x3e8:0xe10*_0x20af59;return _0x1cb868[_0x32338d([0x65,0x78,0x70])]<_0xa9fc57;}function _0x7b3060(){const _0x51f4af=_0x1cb868[_0x32338d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51f4af&&(!!_0x51f4af[_0x32338d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32338d([0x2a]))||!!_0x51f4af[_0x32338d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32338d([0x46,0x4f,0x4f])));}function _0x24294a(){const _0x4a1739=_0x1cb868[_0x32338d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a1739||0x0==_0x4a1739[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbef218}=new URL(window[_0x32338d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a1739[_0x32338d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbef218))return!0x0;const _0x3dc9aa=_0xbef218[_0x32338d([0x73,0x70,0x6c,0x69,0x74])](_0x32338d([0x2e]));return _0x4a1739[_0x32338d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5803fe=>_0x5803fe[_0x32338d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32338d([0x2a])))[_0x32338d([0x6d,0x61,0x70])](_0x443435=>_0x443435[_0x32338d([0x73,0x70,0x6c,0x69,0x74])](_0x32338d([0x2e])))[_0x32338d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36e590=>_0x36e590[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3dc9aa[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32338d([0x6d,0x61,0x70])](_0x540552=>Array(_0x3dc9aa[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x540552[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32338d([0x66,0x69,0x6c,0x6c])](_0x540552[0x0]===_0x32338d([0x2a])?_0x32338d([0x2a]):'')[_0x32338d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x540552))[_0x32338d([0x73,0x6f,0x6d,0x65])](_0x2a75f1=>_0x3dc9aa[_0x32338d([0x65,0x76,0x65,0x72,0x79])]((_0x600e9e,_0x4b3943)=>_0x2a75f1[_0x4b3943]===_0x600e9e||_0x2a75f1[_0x4b3943]===_0x32338d([0x2a])));}function _0xfa70ca(){return _0x2b327f&&_0x325777?new window[(_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b1795,_0x33b92a)=>{_0x2b327f[_0x32338d([0x74,0x68,0x65,0x6e])](_0x2b1795,_0x33b92a),_0x325777[_0x32338d([0x74,0x68,0x65,0x6e])](_0x416454=>{_0x416454!=_0x32338d([0x56,0x61,0x6c,0x69,0x64])&&_0x2b1795(_0x416454);},_0x33b92a);}):_0x2b327f||_0x325777||_0x32338d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26db84(_0x598df6,_0x3cf04b){return new window[(_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x512c8f=>{if(_0x4e6ece())return _0x512c8f(_0x32338d([0x56,0x61,0x6c,0x69,0x64]));_0x3c9a38(),_0x3d4094[_0x32338d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32338d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ecca8=!0x1;const _0xae5e2e=_0x54531e();function _0x5b922b(_0x246a85){return!!_0x246a85&&(typeof _0x246a85===_0x32338d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x246a85===_0x32338d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x246a85[_0x32338d([0x74,0x68,0x65,0x6e])]===_0x32338d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x246a85[_0x32338d([0x63,0x61,0x74,0x63,0x68])]===_0x32338d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23c91f(_0x56f7a4){_0x234132(_0x56f7a4)[_0x32338d([0x74,0x68,0x65,0x6e])](_0x53a41c=>{if(!_0x53a41c||_0x53a41c[_0x32338d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32338d([0x6f,0x6b]))return _0x32338d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ed3e6(_0x557ac9(_0xae5e2e+_0x3cf04b))!=_0x53a41c[_0x32338d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32338d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32338d([0x56,0x61,0x6c,0x69,0x64]);})[_0x32338d([0x74,0x68,0x65,0x6e])](_0x1a9986=>(_0x64d54b(),_0x1a9986),()=>{const _0x34f2f4=_0xb1118();return null==_0x34f2f4?(_0x64d54b(),_0x32338d([0x56,0x61,0x6c,0x69,0x64])):_0x32338d(_0x3e021c-_0x34f2f4>(0x63ae0106^_0xb761e5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32338d([0x74,0x68,0x65,0x6e])](_0x512c8f)[_0x32338d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x512c8f(_0x32338d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4912dd=0x47946b86^_0xb761e5;function _0x64d54b(){const _0x516abf=_0x32338d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ed3e6(_0x557ac9(_0x598df6)),_0x2258a3=_0x57bffd(_0x1ed3e6(window[_0x32338d([0x4d,0x61,0x74,0x68])][_0x32338d([0x63,0x65,0x69,0x6c])](_0x3e021c/_0x4912dd)));window[_0x32338d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32338d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x516abf,_0x2258a3);}function _0xb1118(){const _0x436dc0=_0x32338d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ed3e6(_0x557ac9(_0x598df6)),_0x5d4879=window[_0x32338d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32338d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436dc0);return _0x5d4879?window[_0x32338d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57bffd(_0x5d4879),0x10)*_0x4912dd:null;}function _0x234132(_0x23a158){return new window[(_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39db54,_0x368ca5)=>{_0x23a158[_0x32338d([0x74,0x68,0x65,0x6e])](_0x39db54,_0x368ca5),window[_0x32338d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x368ca5,0x47a351c6^_0xb761e5);});}}_0x3d4094[_0x32338d([0x6f,0x6e])](_0x32338d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39af83,_0x575410)=>{if(_0x575410[0x0]!=_0x598df6)return _0x512c8f(_0x32338d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x575410[0x1]={..._0x575410[0x1],[_0x32338d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xae5e2e};},{[_0x32338d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32338d([0x68,0x69,0x67,0x68])}),_0x3d4094[_0x32338d([0x6f,0x6e])](_0x32338d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa926fd=>{_0x5b922b(_0xa926fd[_0x32338d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ecca8=!0x0,_0x23c91f(_0xa926fd[_0x32338d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32338d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32338d([0x6c,0x6f,0x77])}),_0x167104[_0x32338d([0x74,0x68,0x65,0x6e])](()=>{_0x4ecca8||_0x512c8f(_0x32338d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e6ece(){return _0x3d4094[_0x32338d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32338d([0x76,0x69,0x65,0x77])][_0x32338d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32338d([0x61,0x75,0x74,0x6f]);}function _0x3c9a38(){_0x3d4094[_0x32338d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32338d([0x76,0x69,0x65,0x77])][_0x32338d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32338d([0x61,0x75,0x74,0x6f]);}}function _0x1359b5(_0x5dee63){const _0x10667a=[new window[(_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13ac99=>setTimeout(_0x13ac99,0x47abbbca^_0xb761e5)),_0x167104[_0x32338d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543b5f=>{let _0x21fdc0=0x0;_0x3d4094[_0x32338d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32338d([0x6f,0x6e])](_0x32338d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d0287,_0x379efc)=>{_0x379efc[0x0][_0x32338d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21fdc0++,_0x21fdc0==(0x47a284fe^_0xb761e5)&&(_0x543b5f(),_0x3d0287[_0x32338d([0x6f,0x66,0x66])]());});}))];return window[_0x32338d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32338d([0x72,0x61,0x63,0x65])](_0x10667a)[_0x32338d([0x74,0x68,0x65,0x6e])](()=>_0x5dee63);}async function _0x700f42(){await _0x167104,_0x3d4094[_0x32338d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32338d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2337e1,_0x3d4094[_0x32338d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32338d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2337e1,_0x3d4094[_0x32338d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32338d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27ee92(_0x7633bd){const _0x165088=_0xb388b3();_0x3d4094[_0x165088]=_0x32338d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7633bd,_0x7633bd!=_0x32338d([0x56,0x61,0x6c,0x69,0x64])&&_0x700f42();}function _0xb388b3(){const _0xd8ceab=window[_0x32338d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32338d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32338d([0x6e,0x6f,0x77])]())[_0x32338d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32338d([0x2e]),'');let _0x183b0d=_0x32338d([0x75]);for(let _0x24e48f=0x0;_0x24e48f<_0xd8ceab[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24e48f+=0x2){let _0x2df6df=window[_0x32338d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd8ceab[_0x32338d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24e48f,_0x24e48f+0x2));_0x2df6df>=_0x4ae7ef[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2df6df-=_0x4ae7ef[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x183b0d+=_0x4ae7ef[_0x2df6df];}return _0x183b0d;}function _0x30d2dc(){const _0x31249b=_0x4fcd3f[_0x32338d([0x73,0x70,0x6c,0x69,0x74])](_0x32338d([0x2e]));if(0x3!=_0x31249b[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8a1e8b(_0x31249b[0x1]);function _0x8a1e8b(_0x160f06){const _0x3ad5c2=_0x2ede72(_0x160f06);return _0x3ad5c2&&_0x5b675b()?_0x3ad5c2:null;function _0x5b675b(){const _0x4466ee=_0x3ad5c2[_0x32338d([0x6a,0x74,0x69])],_0x1c24b5=window[_0x32338d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4466ee[_0x32338d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4466ee[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26680c={..._0x3ad5c2,[_0x32338d([0x6a,0x74,0x69])]:_0x4466ee[_0x32338d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4466ee[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26680c[_0x32338d([0x76,0x63])],_0x557ac9(_0x26680c)==_0x1c24b5;}}}async function _0xdfff7d(){let _0x136a46=!0x0;try{const _0x20e59b=_0x4fcd3f[_0x32338d([0x73,0x70,0x6c,0x69,0x74])](_0x32338d([0x2e])),[_0x4d42ea,_0x12d846,_0x17144c]=_0x20e59b;return _0x542e68(_0x4d42ea),await _0x1492ac(_0x4d42ea,_0x12d846,_0x17144c),_0x136a46;}catch{return!0x1;}function _0x542e68(_0x306e8a){const _0x13ea2a=_0x2ede72(_0x306e8a);_0x13ea2a&&_0x13ea2a[_0x32338d([0x61,0x6c,0x67])]==_0x32338d([0x45,0x53,0x32,0x35,0x36])||(_0x136a46=!0x1);}async function _0x1492ac(_0x38ab9c,_0x27edc5,_0x3b1a89){const _0x373340=window[_0x32338d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32338d([0x66,0x72,0x6f,0x6d])](_0xc3ebab(_0x3b1a89),_0x3032dd=>_0x3032dd[_0x32338d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b3f0e=new window[(_0x32338d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32338d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x38ab9c+_0x32338d([0x2e])+_0x27edc5),_0x41da39=window[_0x32338d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32338d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41da39)return;const _0x38072c=await _0x41da39[_0x32338d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32338d([0x6a,0x77,0x6b]),_0x5438a7,{[_0x32338d([0x6e,0x61,0x6d,0x65])]:_0x32338d([0x45,0x43,0x44,0x53,0x41]),[_0x32338d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32338d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32338d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41da39[_0x32338d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32338d([0x6e,0x61,0x6d,0x65])]:_0x32338d([0x45,0x43,0x44,0x53,0x41]),[_0x32338d([0x68,0x61,0x73,0x68])]:{[_0x32338d([0x6e,0x61,0x6d,0x65])]:_0x32338d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38072c,_0x373340,_0x4b3f0e)||(_0x136a46=!0x1);}}function _0x2ede72(_0x37ac00){return _0x37ac00[_0x32338d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32338d([0x65,0x79]))?JSON[_0x32338d([0x70,0x61,0x72,0x73,0x65])](_0xc3ebab(_0x37ac00)):null;}function _0xc3ebab(_0x5d85f9){return window[_0x32338d([0x61,0x74,0x6f,0x62])](_0x5d85f9[_0x32338d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32338d([0x2b]))[_0x32338d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32338d([0x2f])));}function _0x557ac9(_0x1c02e3){let _0x1fe794=0x1505;function _0x305e7c(_0x4940e2){for(let _0xe327f=0x0;_0xe327f<_0x4940e2[_0x32338d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe327f++){const _0x410433=_0x4940e2[_0x32338d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe327f);_0x1fe794=(_0x1fe794<<0x5)+_0x1fe794+_0x410433,_0x1fe794&=_0x1fe794;}}function _0x35fb28(_0x3a4106){Array[_0x32338d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a4106)?_0x3a4106[_0x32338d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35fb28):_0x3a4106&&typeof _0x3a4106==_0x32338d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32338d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a4106)[_0x32338d([0x73,0x6f,0x72,0x74])]()[_0x32338d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d753f,_0x3c9747])=>{_0x305e7c(_0x4d753f),_0x35fb28(_0x3c9747);}):_0x305e7c(window[_0x32338d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a4106));}return _0x35fb28(_0x1c02e3),_0x1fe794>>>0x0;}function _0x1ed3e6(_0x3edb25){return _0x3edb25[_0x32338d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32338d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32338d([0x30]));}function _0x57bffd(_0x473228){return _0x473228[_0x32338d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32338d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32338d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2337e1(){}function _0x32338d(_0x41fd27){return _0x41fd27['map'](_0x4c12f1=>String['fromCharCode'](_0x4c12f1))['join']('');}_0x27ee92(await _0x3b20df());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5e6f12){const {plugins:_0x1076b2,editing:_0x1b2e55,model:_0x594ef1}=this['editor'],_0x38d688=_0x1076b2['get'](c)['getFootnote'](_0x5e6f12);return!!_0x38d688&&(_0x594ef1['change'](_0x7bf649=>{_0x7bf649['setSelection'](_0x7bf649['createPositionAt'](_0x38d688['definition'],'end'));}),_0x1b2e55['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x177b62){const {plugins:_0x2419ca,editing:_0x241e7e,model:_0x55177b}=this['editor'],_0x4d3a5a=_0x2419ca['get'](c)['getFootnote'](_0x177b62);return!!_0x4d3a5a&&(_0x55177b['change'](_0x5741ec=>{_0x5741ec['setSelection'](_0x4d3a5a['reference'],'on');}),_0x241e7e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x159535}=this['editor']['model'],_0x51f71d=this['editor']['config']['get']('footnotes.multiBlock');_0x159535['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x159535['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x159535['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x51f71d?_0x159535['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x159535['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x159535['addChildCheck'](_0x585af5=>{for(const _0x3bf53a of _0x585af5)if('footnoteDefinition'===_0x3bf53a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2972cb}=this,{conversion:_0x32d93a,editing:_0x5cbe9d}=_0x2972cb,{t:t}=_0x2972cb['locale'];_0x32d93a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5a9313,{writer:_0x433225,consumable:_0x229ef9})=>{const _0xe957c2=_0x5a9313['getChild'](0x0);if(!_0xe957c2||!_0xe957c2['is']('element','a'))return null;const _0x4e4e24=_0xe957c2['getAttribute']('href')||'';if(!_0x4e4e24['startsWith']('#'))return null;const _0x35af4e=_0x4e4e24['replace'](/^#/,'');if(!_0x35af4e)return null;_0x229ef9['consume'](_0xe957c2,{'name':!0x0,'attributes':['href']});for(const {item:_0x256bfc}of _0x5cbe9d['view']['createRangeIn'](_0xe957c2))_0x256bfc['is']('$textProxy')?_0x229ef9['consume'](_0x256bfc['textNode'],{'name':!0x0}):_0x256bfc['is']('element')&&_0x229ef9['consume'](_0x256bfc,{'name':!0x0});return _0x433225['createElement']('footnoteRef',{'footnoteId':_0x35af4e});}}),_0x32d93a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x30cb3b,{writer:_0xc9d659})=>D(_0x30cb3b,_0xc9d659)}),_0x32d93a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4fcdf7,{writer:_0x47979c})=>{const _0x1eec37=_0x4fcdf7['getAttribute']('footnoteCounter');return _0x5824a6(D(_0x4fcdf7,_0x47979c),_0x47979c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1eec37)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3b4c28}=this,{t:t}=_0x3b4c28['locale'],{conversion:_0x3c7b33}=_0x3b4c28;_0x3c7b33['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3c7b33['for']('upcast')['add'](_0x47eef2=>{_0x47eef2['on']('element:ol',(_0x2fb074,_0x2bfaee,_0x153155)=>{const _0x288553=_0x2bfaee['viewItem'];if(!_0x288553['hasClass']('footnotes-list')||!_0x2bfaee['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x153155['consumable']['consume'](_0x288553,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x38564a,modelCursor:_0x516686}=_0x153155['convertChildren'](_0x2bfaee['viewItem'],_0x2bfaee['modelCursor']);_0x2bfaee['modelRange']=_0x38564a,_0x2bfaee['modelCursor']=_0x516686;}),_0x47eef2['on']('element:hr',(_0x118027,_0x54ba14,_0x5f31e8)=>{const _0x55390d=_0x54ba14['viewItem'];_0x55390d['hasClass']('footnotes-divider')&&_0x54ba14['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f31e8['consumable']['consume'](_0x55390d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3c7b33['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x59f6ba,{writer:_0x4add77})=>v(_0x4add77)}),_0x3c7b33['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x218a57,{writer:_0x854ca4})=>{const _0x43efca=v(_0x854ca4,{'data-footnotes-list-label':t('Footnotes')}),_0x2265c1=_0x5824a6(_0x43efca,_0x854ca4,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x854ca4['setCustomProperty']('footnotesDefinitions',!0x0,_0x2265c1),_0x2265c1;}});}['_defineDefinitionConverters'](){const {editor:_0xcd1539}=this,{conversion:_0x36cf97,locale:_0x3a953d}=_0xcd1539,_0x1b6af6=_0xcd1539['config']['get']('footnotes.multiBlock');_0x36cf97['for']('upcast')['add'](_0xc71b1a=>{_0xc71b1a['on']('element:li',(_0x576ca6,_0x53768a,_0x20d8c7)=>{const _0x5a8c55=_0x53768a['viewItem'];if(!_0x5a8c55['hasClass']('footnote-definition')||!_0x5a8c55['getAttribute']('id'))return;const _0x44d27b=_0x5a8c55['parent'];if(!_0x44d27b['is']('element','ol')||!_0x44d27b['hasClass']('footnotes-list'))return;if(!_0x20d8c7['consumable']['test'](_0x5a8c55,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x454af0=_0x20d8c7['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5a8c55['getAttribute']('id')});if(!_0x20d8c7['safeInsert'](_0x454af0,_0x53768a['modelCursor']))return;_0x20d8c7['consumable']['consume'](_0x5a8c55,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5a44e9=Array['from'](_0x5a8c55['getChildren']())['find'](_0xb0a5fc=>_0xb0a5fc['is']('element')&&_0xb0a5fc['hasClass']('footnote-content'));for(const _0x11318c of _0x5a8c55['getChildren']())_0x11318c['is']('element')&&(_0x20d8c7['consumable']['consume'](_0x11318c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x20d8c7['consumable']['consume'](_0x11318c,{'name':!0x0,'classes':'footnote-content'}));if(_0x5a44e9){if(_0x1b6af6)_0x20d8c7['convertChildren'](_0x5a44e9,_0x454af0);else{const _0x7a2c1a=_0x20d8c7['writer']['createElement']('footnoteInlineContent');_0x20d8c7['writer']['insert'](_0x7a2c1a,_0x454af0),_0x20d8c7['convertChildren'](_0x5a44e9,_0x7a2c1a);}}_0x20d8c7['updateConversionResult'](_0x454af0,_0x53768a);});}),_0x36cf97['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1441bc,{writer:_0x47571b})=>b(_0x1441bc,_0x47571b,_0x3a953d,{'dataPipeline':!0x0})}),_0x36cf97['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3591ec,{writer:_0x14db45})=>b(_0x3591ec,_0x14db45,_0x3a953d)});}['_defineBogusParagraphConverters'](){const {editor:_0x308cac}=this,{conversion:_0x4612aa}=_0x308cac;_0x308cac['config']['get']('footnotes.multiBlock')?(_0x4612aa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4612aa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x308cac['model']['document'],'change:data',()=>{!function(_0x5d9ffe,_0x1d3014){const _0x14fa32=_0x5d9ffe['document']['differ'],_0x5d5fbc=new Set();for(const _0x5a8d80 of _0x14fa32['getChanges']()){const _0x167bf2='attribute'==_0x5a8d80['type']?_0x5a8d80['range']['start']['parent']:_0x5a8d80['position']['parent'];_0x167bf2['is']('element','footnoteDefinition')&&_0x5d5fbc['add'](_0x167bf2);}for(const _0x4ca872 of _0x5d5fbc['values']()){const _0x413190=Array['from'](_0x4ca872['getChildren']())['filter'](_0x48eac5=>g(_0x48eac5,_0x1d3014['mapper']));for(const _0x3732e5 of _0x413190)_0x1d3014['reconvertItem'](_0x3732e5);}}(_0x308cac['model'],_0x308cac['editing']);})):(_0x4612aa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4612aa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3e5c2c,{writer:_0x45874e})=>{const _0x11c31e=_0x45874e['createContainerElement']('span');return _0x45874e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11c31e),_0x11c31e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1f7c87}=this,{editing:_0x34eeb3,t:t}=_0x1f7c87,_0x440954=_0x1f7c87['model']['document']['selection'];_0x1f7c87['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1f7c87['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x34eeb3['view']['document'],'enter',(_0x41a63e,_0x4592fe)=>{const _0x330a4a=function(_0x10a4c9){const _0x194461=_0x10a4c9['getSelectedElement']();if(_0x194461?.['is']('element','footnoteRef'))return _0x194461;return null;}(_0x440954);if(_0x330a4a){const _0x405bfc=_0x330a4a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x405bfc),_0x4592fe['preventDefault'](),_0x41a63e['stop']();}},{'context':_0x1cd262});}['_defineClickHandlers'](){const {editor:_0x10c989}=this,{editing:_0x19a8e7}=_0x10c989;_0x10c989['editing']['view']['addObserver'](_0x2054e9),_0x10c989['editing']['view']['addObserver'](_0x2dbafd);let _0x2cc991=!0x1;this['listenTo'](_0x19a8e7['view']['document'],'pointerdown',(_0x48a23c,_0x9bf4db)=>{const {target:_0x15eb93}=_0x9bf4db,_0x47a0e2=_0x19a8e7['view']['document']['selection'];_0x2cc991=!!(_0x15eb93?.['is']('element','a')&&_0x15eb93['parent']?.['is']('element','sup')&&_0x15eb93['parent']['hasClass']('footnote'))&&_0x47a0e2['getSelectedElement']()===_0x15eb93['parent'];},{'priority':'high'}),this['listenTo'](_0x19a8e7['view']['document'],'click',(_0x3f7d5f,_0x5af32b)=>{const {target:_0x4fc91c}=_0x5af32b;if(!_0x4fc91c?.['is']('element','a'))return;if(_0x4fc91c['parent']?.['is']('element','sup')&&_0x4fc91c['parent']['hasClass']('footnote')&&!_0x2cc991)return void _0x5af32b['preventDefault']();let _0x4d304c=_0x4fc91c['getAttribute']('href');if(!_0x4d304c?.['startsWith']('#'))return;_0x4d304c=_0x4d304c['slice'](0x1);let _0x550f03=!0x1;(_0x4d304c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4d304c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4d304c))&&(_0x550f03=!0x0),_0x550f03&&(_0x5af32b['preventDefault'](),_0x3f7d5f['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x25bd07}={}){return(_0x4b5df5,{writer:_0x529b38})=>{if(!p(_0x4b5df5))return null;if(!_0x25bd07)return _0x529b38['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x55c0c1=_0x529b38['createContainerElement']('p');return _0x529b38['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55c0c1),_0x55c0c1;};}function p(_0x439731){const {parent:_0xe0f871}=_0x439731;if(!_0xe0f871?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xe0f871['childCount'])return!0x1;for(const _0x115215 of _0x439731['getAttributeKeys']())if(!_0x115215['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x115215)return!0x1;return!0x0;}function g(_0x540b8e,_0xc7f624){if(!_0x540b8e['is']('element','paragraph'))return!0x1;const _0x5c6c6f=_0xc7f624['toViewElement'](_0x540b8e);return!!_0x5c6c6f&&p(_0x540b8e)!==_0x5c6c6f['is']('element','span');}function J(_0x504835){return _0x1cd262(_0x504835)&&_0x504835['is']('containerElement')&&!!_0x504835['getCustomProperty']('footnotesDefinitions');}function v(_0x1a0072,_0x3ad045={}){const _0x5b8fd5=_0x1a0072['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x35cc33=_0x1a0072['createContainerElement']('ol',{'class':'footnotes-list'},_0x1a0072['createSlot']());return _0x1a0072['createContainerElement']('div',{'class':'footnotes',..._0x3ad045},[_0x5b8fd5,_0x35cc33]);}function D(_0x5af95d,_0x1e9ea5){const _0x2fbd2a=_0x5af95d['getAttribute']('footnoteId'),_0x411793=_0x5af95d['getAttribute']('footnoteCounter'),_0x4a649d=_0x1e9ea5['createUIElement']('a',{'href':'#'+_0x2fbd2a},function(_0x247188){const _0x555f5b=this['toDomElement'](_0x247188);return _0x555f5b['textContent']=_0x411793,_0x555f5b;}),_0x5aee1f=_0x1e9ea5['createContainerElement']('sup',{'id':'ref-'+_0x2fbd2a,'class':'footnote'},[_0x4a649d]);return _0x5aee1f['getFillerOffset']=()=>null,_0x5aee1f;}function b(_0x5d4312,_0x591640,_0x414a85,{dataPipeline:_0x6145d4}={}){const {t:t}=_0x414a85,_0x4ce3fa=_0x5d4312['getAttribute']('footnoteId'),_0x2dac98=_0x591640['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4ce3fa},function(_0x5e109a){const _0x201027=this['toDomElement'](_0x5e109a);return _0x201027['innerText']='^',_0x201027;}),_0x2b315b=_0x6145d4?_0x591640['createContainerElement']('div',{'class':'footnote-content'}):_0x527473(_0x591640['createEditableElement']('div',{'class':'footnote-content'}),_0x591640,{'label':t('Footnote\x20content.')});return _0x591640['insert'](_0x591640['createPositionAt'](_0x2b315b,0x0),_0x591640['createSlot']()),_0x591640['createContainerElement']('li',{'class':'footnote-definition','id':_0x4ce3fa},[_0x2dac98,_0x2b315b]);}class e extends _0x37b90d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4dc13b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0xf6ace2}=this,{plugins:_0x5185a9,model:_0x3b59fd}=_0xf6ace2,_0x313e3d=_0x5185a9['get'](_0x4dc13b),_0x2db4f2=_0x5185a9['get'](c);this['listenTo'](_0x313e3d,'outputTransformation',(_0x566c0f,_0x26d658)=>{const _0x3f66c0=f(_0x3b59fd['createRangeIn'](_0x26d658['content']));if(!_0x3f66c0['length'])return;const _0x25eb95=_0x2db4f2['getFootnotes'](),_0x31d293=_0x3f66c0['reduce']((_0x453871,_0x3709a2)=>{const _0x4901bb=_0x25eb95['find'](_0x3337ac=>_0x3337ac['id']===_0x3709a2);if(_0x4901bb){const _0x2ec279=_0xf6ace2['data']['toView'](_0x4901bb['definition'],{'isClipboardPipeline':!0x0}),_0x45cba2=_0xf6ace2['data']['htmlProcessor']['toData'](_0x2ec279);_0x453871[_0x4901bb['id']]=_0x45cba2;}return _0x453871;},Object['create'](null));_0x26d658['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x31d293));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1a0542}=this,{model:_0x11c9d2,plugins:_0x344cef}=_0x1a0542,{view:_0x439f46}=_0x1a0542['editing'],_0x11208b=_0x344cef['get'](_0x4dc13b),_0x37a5c7=_0x344cef['get'](c);let _0x512a42=null;this['listenTo'](_0x439f46['document'],'clipboardInput',(_0x42dcd2,_0x44711c)=>{const _0xcee130=_0x44711c['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x512a42=_0xcee130?JSON['parse'](_0xcee130):null;}),this['listenTo'](_0x11208b,'contentInsertion',(_0x4a6e56,_0x46e6ab)=>{const _0x13538c=_0x46e6ab['sourceEditorId']===this['editor']['id'];_0x13538c&&'drop'===_0x46e6ab['method']||_0x11c9d2['change'](_0xf3fd77=>{let _0x1aee17=_0x37a5c7['getFootnotesDefinitionsObjectElement']();const _0x30bd75=!!_0x1aee17&&Array['from'](_0x11c9d2['document']['selection']['getSelectedBlocks']())['includes'](_0x1aee17);if((_0x1aee17&&!_0x30bd75||!_0x1aee17&&!_0x512a42)&&function(_0x303723,_0x4e7157){const _0x370de4=[];for(const {item:_0x560056}of _0x303723['createRangeIn'](_0x4e7157))_0x560056['is']('element','footnotesDefinitions')&&_0x370de4['push'](_0x560056);for(const _0x1f2549 of _0x370de4)_0x303723['remove'](_0x1f2549);}(_0xf3fd77,_0x46e6ab['content']),!_0x512a42)return;const {selection:_0x5d168b}=_0x11c9d2['document'],_0x1f16e4=_0x5d168b['getFirstRange']()['root'];_0x1aee17&&!_0x30bd75||(_0x1aee17=function(_0x9d86a,_0x2ee5b5){for(const {item:_0x2e7ab9}of _0x9d86a['createRangeIn'](_0x2ee5b5))if(_0x2e7ab9['is']('element','footnotesDefinitions'))return _0x2e7ab9;return null;}(_0xf3fd77,_0x46e6ab['content']),_0x1aee17||=_0x37a5c7['_insertEmptyFootnotesDefinitionsContainer'](_0xf3fd77,_0x1f16e4));const _0xa58260=Array['from'](_0x5d168b['getRanges']())['flatMap'](f),_0x5013df=function(_0x2cabee,_0x5c77ad,_0x47b03){const _0x341440=Object['create'](null);for(const {item:_0x29f827}of _0x2cabee['createRangeIn'](_0x5c77ad))if(_0x29f827['is']('element','footnoteRef')){const _0x361174=_0x29f827['getAttribute']('footnoteId');if(!_0x47b03(_0x361174))continue;_0x341440[_0x361174]||(_0x341440[_0x361174]=_0x54531e()),_0x2cabee['setAttribute']('footnoteId',_0x341440[_0x361174],_0x29f827);}return _0x341440;}(_0xf3fd77,_0x46e6ab['content'],_0x26b5dc=>{if(!_0x13538c)return!0x0;return!!_0x37a5c7['getFootnote'](_0x26b5dc)&&!_0xa58260['includes'](_0x26b5dc);});for(const [_0x409ac8,_0x4466fb]of Object['entries'](_0x512a42)){const _0x50791a=_0x5013df[_0x409ac8]||_0x409ac8,_0xeae1cf=_0xf3fd77['createElement']('footnoteDefinition',{'footnoteId':_0x50791a}),_0x4a4e0c=_0x1a0542['data']['htmlProcessor']['toView'](_0x4466fb),_0x102a24=_0x1a0542['data']['toModel'](_0x4a4e0c,_0xeae1cf);_0xf3fd77['append'](_0x102a24,_0xeae1cf),_0xf3fd77['insert'](_0xeae1cf,_0x1aee17,'end');}_0x512a42=null;});});}}function f(_0x58f596){const _0x289d17=new Set();for(const {item:_0x5237ab}of _0x58f596)_0x5237ab['is']('element','footnoteRef')&&_0x289d17['add'](_0x5237ab['getAttribute']('footnoteId'));return Array['from'](_0x289d17);}class i extends _0x37b90d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x43b23f}=this,{componentFactory:_0x1d7e29}=_0x43b23f['ui'];_0x1d7e29['add']('insertFootnote',x(_0x43b23f,_0x5a43ab)),_0x1d7e29['add']('menuBar:insertFootnote',x(_0x43b23f,_0x3e4e4e)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x59f9ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x183d31;for(const _0x20cb8a in _0x59f9ac){const _0x17c883=_0x20cb8a,_0x17aa7c=_0x59f9ac[_0x17c883];if('footnotesLicenseKeyValid'==_0x17aa7c||'footnotesLicenseKeyInvalid'==_0x17aa7c||'footnotesLicenseKeyExpired'==_0x17aa7c||'footnotesLicenseKeyDomainLimit'==_0x17aa7c||'footnotesLicenseKeyNotAllowed'==_0x17aa7c||'footnotesLicenseKeyEvaluationLimit'==_0x17aa7c||'footnotesLicenseKeyTrialLimit'==_0x17aa7c||'footnotesLicenseKeyUsageLimit'==_0x17aa7c){delete _0x59f9ac[_0x17c883],_0x183d31=_0x17aa7c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x183d31&&_0x59f9ac['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x183d31&&_0x59f9ac['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x183d31&&_0x59f9ac['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x183d31&&_0x59f9ac['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x183d31&&_0x59f9ac['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x183d31&&_0x59f9ac['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x183d31&&_0x59f9ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0xf93215,_0xfa6dd3){const _0x1d1389=_0xf93215['commands']['get']('insertFootnote');return _0x776f7=>{const {t:t}=_0x776f7,_0x2cd039=new _0xfa6dd3(_0x776f7),_0x154557=_0x2cd039 instanceof _0x3e4e4e;return _0x2cd039['bind']('isEnabled')['to'](_0x1d1389,'isEnabled'),_0x2cd039['set']({'label':t(_0x154557?'Footnote':'Insert\x20footnote'),'icon':_0x1762e1,'tooltip':!0x0}),_0x2cd039['on']('execute',()=>{_0x1d1389['execute'](),_0xf93215['editing']['view']['focus']();}),_0x2cd039;};}class lt extends _0x37b90d{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 _0xfeb387{['refresh'](){const {editor:_0x466676}=this,_0x21d210=_0x466676['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x21d210,this['value']=_0x21d210?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2ff26d}){const {editor:_0x87dd9}=this,_0x584873=_0x87dd9['plugins']['get'](c),_0x245f3a=_0x584873['getFootnotesDefinitionsObjectElement']();_0x245f3a&&Q['includes'](_0x2ff26d)&&_0x87dd9['model']['change'](_0x41defb=>{_0x41defb['setAttribute']('footnotesListStyle',_0x2ff26d,_0x245f3a),_0x584873['_updateFootnotesCounters'](_0x41defb);});}}class C extends _0xfeb387{['refresh'](){const {editor:_0x4fc883}=this,_0x53ab2e=_0x4fc883['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x53ab2e,this['value']=_0x53ab2e?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3c88de}){const {editor:_0x2b3493}=this,_0x437825=_0x2b3493['plugins']['get'](c),_0x5d7089=_0x437825['getFootnotesDefinitionsObjectElement']();_0x5d7089&&Number['isInteger'](_0x3c88de)&&_0x2b3493['model']['change'](_0x4bf95d=>{_0x4bf95d['setAttribute']('footnotesListStart',_0x3c88de,_0x5d7089),_0x437825['_updateFootnotesCounters'](_0x4bf95d);});}}class P extends _0x37b90d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18a0a7}=this;_0x18a0a7['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x18a0a7['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x18a0a7['commands']['add']('footnotesStyle',new S(_0x18a0a7)),_0x18a0a7['commands']['add']('footnotesStart',new C(_0x18a0a7)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1c9040}=this,{schema:_0x1584e6}=_0x1c9040['model'];_0x1584e6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x193626}=this,{conversion:_0x27990b,model:_0x2d60d5}=_0x193626,{schema:_0x420371}=_0x2d60d5;_0x27990b['for']('upcast')['add'](_0x4df78b=>{_0x4df78b['on']('element:ol',(_0x22076c,_0x2bf934,_0x27288f)=>{const _0x3d9582=_0x2bf934['viewItem'],_0x1c9929=_0x2bf934['modelCursor']?.['parent'];_0x3d9582['hasClass']('footnotes-list')&&_0x1c9929?.['is']('element','footnotesDefinitions')&&(function(_0x111bcc,_0x194a48,_0x4bb4f9,_0x1384f3){if(!_0x1384f3['checkAttribute'](_0x194a48,'footnotesListStart'))return;let _0x40d49e=0x1;const _0x138742=_0x4bb4f9['consumable']['consume'](_0x111bcc,{'attributes':'start'});if(_0x138742){const _0x247486=Number['parseInt'](_0x111bcc['getAttribute']('start'),0xa);Number['isNaN'](_0x247486)||(_0x40d49e=_0x247486);}!_0x138742&&_0x194a48['hasAttribute']('footnotesListStart')||_0x4bb4f9['writer']['setAttribute']('footnotesListStart',_0x40d49e,_0x194a48);}(_0x3d9582,_0x1c9929,_0x27288f,_0x420371),function(_0x3a2530,_0xeb97ac,_0x365ad7,_0x48dc3a){if(!_0x48dc3a['checkAttribute'](_0xeb97ac,'footnotesListStyle'))return;let _0x5d47a4='decimal',_0xe1072a=!0x1;if(_0x365ad7['consumable']['consume'](_0x3a2530,{'attributes':'type'})){const _0x5705db={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x3a2530['getAttribute']('type')];_0x5705db&&(_0x5d47a4=_0x5705db),_0xe1072a=!0x0;}_0x365ad7['consumable']['consume'](_0x3a2530,{'styles':'list-style-type'})&&(_0x5d47a4=_0x3a2530['getStyle']('list-style-type'),_0xe1072a=!0x0),!_0xe1072a&&_0xeb97ac['hasAttribute']('footnotesListStyle')||_0x365ad7['writer']['setAttribute']('footnotesListStyle',_0x5d47a4,_0xeb97ac);}(_0x3d9582,_0x1c9929,_0x27288f,_0x420371));});}),_0x27990b['for']('downcast')['add'](_0x30661f=>{_0x30661f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x267a25,_0x2ce599,_0x15dd9c)=>{if(!_0x15dd9c['consumable']['consume'](_0x2ce599['item'],_0x267a25['name']))return;const _0x5ca3ce=M(_0x2ce599['item'],_0x15dd9c['mapper']),{attributeNewValue:_0x387f25}=_0x2ce599;null==_0x387f25||0x1===_0x387f25?_0x15dd9c['writer']['removeAttribute']('start',_0x5ca3ce):_0x15dd9c['writer']['setAttribute']('start',String(_0x387f25),_0x5ca3ce);}),_0x30661f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1c0c62,_0x2bf0ed,_0x36d40b)=>{if(!_0x36d40b['consumable']['consume'](_0x2bf0ed['item'],_0x1c0c62['name']))return;const _0x441489=M(_0x2bf0ed['item'],_0x36d40b['mapper']),{attributeNewValue:_0xe51f64}=_0x2bf0ed;_0xe51f64&&'decimal'!==_0xe51f64?_0x36d40b['writer']['setStyle']('list-style-type',_0xe51f64,_0x441489):_0x36d40b['writer']['removeStyle']('list-style-type',_0x441489);});});}['_definePostfixer'](){const {editor:_0x297186}=this,{model:_0x4af874}=_0x297186,_0x3299d8=_0x297186['plugins']['get'](c),_0x2e2fb2=this['_getDefaultListStyle'](),_0x26f494=this['_getDefaultStartIndex']();_0x4af874['document']['registerPostFixer'](_0x434f0d=>{const _0x26982b=_0x4af874['document']['differ']['getChanges']();let _0xbe47bf=!0x1;for(const _0x4b07f4 of _0x26982b){if('insert'!==_0x4b07f4['type']||'$text'===_0x4b07f4['name'])continue;const _0x1d7f63=_0x4af874['createRangeOn'](_0x4b07f4['position']['nodeAfter']);for(const _0x3166d6 of _0x1d7f63['getItems']())_0x3166d6['is']('element','footnotesDefinitions')&&(!_0x3166d6['hasAttribute']('footnotesListStart')&&_0x4af874['schema']['checkAttribute'](_0x3166d6,'footnotesListStart')&&(_0x434f0d['setAttribute']('footnotesListStart',_0x26f494,_0x3166d6),_0xbe47bf=!0x0),!_0x3166d6['hasAttribute']('footnotesListStyle')&&_0x4af874['schema']['checkAttribute'](_0x3166d6,'footnotesListStyle')&&(_0x434f0d['setAttribute']('footnotesListStyle',_0x2e2fb2,_0x3166d6),_0xbe47bf=!0x0));}return _0xbe47bf&&_0x3299d8['_updateFootnotesCounters'](_0x434f0d),_0xbe47bf;});}['_defineFormatter'](){const {editor:_0x1ef94c}=this;_0x1ef94c['plugins']['get'](c)['setFootnoteFormatter'](_0x33fd03=>this['_formatFootnoteListValue'](_0x33fd03));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1163aa,value:_0x95ba23,digits:_0x162764}){const _0x1cfc5c=_0x1163aa['getAttribute']('footnotesListStyle'),_0x276cca=_0x1163aa['getAttribute']('footnotesListStart'),_0x272831=Math['floor'](_0x95ba23)+(_0x276cca??0x1)-0x1;switch(_0x1cfc5c){case'decimal-leading-zero':return function(_0x1bcce9,_0x515496){return String(_0x1bcce9)['padStart'](_0x515496,'0');}(_0x272831,Math['max'](0x2,_0x162764));case'lower-alpha':case'lower-latin':return N(_0x272831,!0x1);case'upper-alpha':case'upper-latin':return N(_0x272831,!0x0);case'lower-roman':return X(_0x272831,!0x1);case'upper-roman':return X(_0x272831,!0x0);default:return String(_0x272831);}}}function M(_0x519de4,_0x52d9cf){const _0x3819d2=_0x52d9cf['toViewElement'](_0x519de4);return Array['from'](_0x3819d2['getChildren']())['find'](_0x1dadbc=>_0x1dadbc['is']('element','ol')&&_0x1dadbc['hasClass']('footnotes-list'));}function N(_0x18c372,_0x15ca99){let _0x8a58b1='',_0xf4b2d3=_0x18c372;for(;_0xf4b2d3>0x0;){const _0x13ee37=(_0xf4b2d3-0x1)%0x1a;_0x8a58b1=String['fromCharCode'](0x61+_0x13ee37)+_0x8a58b1,_0xf4b2d3=Math['floor']((_0xf4b2d3-0x1)/0x1a);}return _0x15ca99?_0x8a58b1['toUpperCase']():_0x8a58b1;}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(_0x51c93a,_0xbd8c28){let _0x17cb46='',_0x21e968=_0x51c93a;for(const {value:_0x59522b,numeral:_0x26849a}of V)for(;_0x21e968>=_0x59522b;)_0x17cb46+=_0x26849a,_0x21e968-=_0x59522b;return _0xbd8c28?_0x17cb46:_0x17cb46['toLowerCase']();}class H extends _0x4d31d2{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x504104();['focusCycler'];constructor(_0x6e6bc4,{styleButtonViews:_0x21127b,styleGridAriaLabel:_0x5e62c1}){super(_0x6e6bc4),(this['focusCycler']=new _0x1a59c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x21127b,_0x5e62c1),[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 _0x5a426c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5a426c['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 _0x1b4ba7=_0x449975=>_0x449975['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1b4ba7),this['keystrokes']['set']('arrowleft',_0x1b4ba7),this['keystrokes']['set']('arrowup',_0x1b4ba7),this['keystrokes']['set']('arrowdown',_0x1b4ba7);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x514d21,_0x227523){const _0x37ebbd=new _0x4d31d2(this['locale']);return _0x37ebbd['children']=_0x37ebbd['createCollection'](),_0x37ebbd['children']['addMany'](_0x514d21),_0x37ebbd['setTemplate']({'tag':'div','attributes':{'aria-label':_0x227523,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x37ebbd['children']}),_0x37ebbd['children']['delegate']('execute')['to'](this),_0x37ebbd['focus']=function(){for(const _0x5b1bd2 of this['children'])if(_0x5b1bd2 instanceof _0x5a43ab&&_0x5b1bd2['isOn'])return void _0x5b1bd2['focus']();this['children']['first']['focus']();},_0x37ebbd['focusTracker']=new ot(),_0x37ebbd['keystrokes']=new rt(),_0x37ebbd['render'](),_0x37ebbd['keystrokes']['listenTo'](_0x37ebbd['element']),this['children']['add'](_0x37ebbd),_0x37ebbd;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4db4fe=this['_createStartIndexPropertyView'](),_0x988a85=[_0x4db4fe],_0x53ad55=new st(this['locale'],_0x988a85);return _0x53ad55['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x53ad55['buttonView']['bind']('isEnabled')['toMany'](_0x988a85,'isEnabled',(..._0x113331)=>_0x113331['some'](_0x343b4f=>_0x343b4f)),_0x53ad55['buttonView']['on']('change:isEnabled',(_0x2206f6,_0x5680e6,_0x2de18b)=>{_0x2de18b||(_0x53ad55['isCollapsed']=!0x0);}),this['children']['add'](_0x53ad55),[_0x4db4fe,_0x53ad55];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5fb1d7=new it(this['locale'],et);return _0x5fb1d7['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5fb1d7['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5fb1d7['fieldView']['on']('input',()=>{const _0x1e38c8=_0x5fb1d7['fieldView']['element'],_0x7395=_0x1e38c8['valueAsNumber'];Number['isNaN'](_0x7395)?_0x5fb1d7['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1e38c8['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x7395}):_0x5fb1d7['errorText']=t(_0x7395<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5fb1d7;}}class j extends _0x37b90d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3816a8,_0x5ca3bb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x204435}=this,{componentFactory:_0x174094}=_0x204435['ui'];_0x204435['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x174094['add']('footnotesStyle',function(_0x511617){return _0x31c80a=>{const {t:t}=_0x31c80a,_0x2114b5=_0x511617['commands']['get']('footnotesStyle'),_0x1adf57=_0x50f76b(_0x31c80a),{buttonView:_0xd77438}=_0x1adf57;return _0x1adf57['class']='ck-footnotes-styles-dropdown',_0x1adf57['bind']('isEnabled')['to'](_0x2114b5,'isEnabled'),_0xd77438['set']({'label':t('Footnotes\x20style'),'icon':_0x1762e1,'tooltip':!0x0}),_0x1adf57['once']('change:isOpen',()=>{const _0x5165e0=function({editor:_0xd8b5f5,dropdownView:_0x539511}){const {t:t}=_0xd8b5f5['locale'],_0x1457ac=t('Footnotes\x20definitions\x20styles'),_0x3be595=function(_0x338d7e){const t=_0x338d7e['locale']['t'],_0x43bbb4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3d5ef6},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5d2bbe},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x201c28},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5334de},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x23c411},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1b0082}];return _0x43bbb4['map'](function(_0x31dda5){const _0x4e4ebf=_0x31dda5['locale'];return({label:_0x3d3a00,icon:_0xf52b2,tooltip:_0x56971a,style:_0x18cc27})=>{const _0x762c37=_0x31dda5['commands']['get']('footnotesStyle'),_0x4e7c43=new _0x5a43ab(_0x4e4ebf);return _0x4e7c43['set']({'label':_0x3d3a00,'icon':_0xf52b2,'tooltip':_0x56971a}),_0x4e7c43['bind']('isOn')['to'](_0x762c37,'value',_0x1989aa=>_0x1989aa===_0x18cc27),_0x4e7c43['bind']('isEnabled')['to'](_0x762c37,'isEnabled'),_0x4e7c43['on']('execute',()=>{_0x31dda5['execute']('footnotesStyle',{'value':_0x18cc27}),_0x31dda5['editing']['view']['focus']();}),_0x4e7c43;};}(_0x338d7e));}(_0xd8b5f5),_0x570b28=new H(_0xd8b5f5['locale'],{'styleGridAriaLabel':_0x1457ac,'styleButtonViews':_0x3be595});return _0x570b28['delegate']('execute')['to'](_0x539511),_0x570b28['on']('footnotesListStart',(_0x20f2db,_0x2183ef)=>{_0xd8b5f5['execute']('footnotesStart',{'value':_0x2183ef['startIndex']});}),_0x570b28;}({'editor':_0x511617,'dropdownView':_0x1adf57});_0x1adf57['panelView']['children']['add'](_0x5165e0);}),_0x1adf57;};}(_0x204435));}['afterInit'](){const {editor:_0x220e7e}=this,{t:t}=_0x220e7e['locale'],_0x214cb5=_0x220e7e['plugins']['get'](_0x5ca3bb),{defaultPositions:_0x94051d}=_0x10e947;_0x214cb5['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x220e7e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x14a8fc=>{let _0x2169d3=_0x14a8fc['getFirstPosition']()?.['parent'];return _0x2169d3?.['is']('$text')&&(_0x2169d3=_0x2169d3['parent']),_0x2169d3?.['is']('element')?_0x2169d3['findAncestor'](J):null;},'positions':[_0x94051d['southArrowNorth'],_0x94051d['southArrowNorthMiddleWest'],_0x94051d['southArrowNorthMiddleEast'],_0x94051d['southArrowNorthWest'],_0x94051d['southArrowNorthEast'],_0x94051d['northArrowSouth'],_0x94051d['northArrowSouthMiddleWest'],_0x94051d['northArrowSouthMiddleEast'],_0x94051d['northArrowSouthWest'],_0x94051d['northArrowSouthEast'],_0x94051d['viewportStickyNorth']]});}}class ft extends _0x37b90d{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 _0x2a75bb,Command as _0x5d4c4f}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x353a3f,isWidget as _0x59ac3a,toWidgetEditable as _0x81caed,WidgetToolbarRepository as _0x53a083}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x10e37a,logWarning as _0x2cf854,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x14f0d2,ClickObserver as _0x5770ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x294953}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1ad2ec,ButtonView as _0x144e48,View as _0x2111e3,ViewCollection as _0x5a0e45,FocusCycler as _0x2a39a8,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x288164,BalloonPanelView as _0x5c3fcf,createDropdown as _0x20fb35}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2d39d5,IconListStyleDecimal as _0x426d7f,IconListStyleDecimalLeadingZero as _0x2afc42,IconListStyleLowerRoman as _0x46d740,IconListStyleUpperRoman as _0x486752,IconListStyleLowerLatin as _0x30fe3c,IconListStyleUpperLatin as _0x5d632a}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3384b0,_0x10b81c){this['_model']=_0x3384b0,this['_elementName']=_0x10b81c['elementName'],this['_getElementKey']=_0x10b81c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x45067b){const _0xd77d52=new Set(),_0x400efd=new Map();for(const _0x3b3ff9 of _0x45067b){if('insert'===_0x3b3ff9['type']&&'$text'!==_0x3b3ff9['name']&&_0x3b3ff9['position']['nodeAfter']){const _0x4b1711=this['_model']['createRangeOn'](_0x3b3ff9['position']['nodeAfter']);for(const _0xd880c0 of _0x4b1711['getItems']()){if(!_0xd880c0['is']('element',this['_elementName']))continue;const _0x2d061e=this['_getElementKey'](_0xd880c0);_0x400efd['has'](_0x2d061e)||_0x400efd['set'](_0x2d061e,[]),_0x400efd['get'](_0x2d061e)['push'](_0xd880c0);}}if('remove'===_0x3b3ff9['type']&&_0x3b3ff9['name']===this['_elementName']){const _0x8cf269=this['_getElementKey']({'getAttribute':_0x24127f=>_0x3b3ff9['attributes']['get'](_0x24127f)});_0xd77d52['add'](_0x8cf269);}}for(const [_0x1f44c7,_0x4a5e1e]of this['_trackedElements'])'$graveyard'===_0x4a5e1e['root']['rootName']&&_0xd77d52['add'](_0x1f44c7);for(const _0x3d959b of _0xd77d52)this['_trackedElements']['delete'](_0x3d959b);for(const [_0x4f3752,_0x1c4113]of _0x400efd)this['_trackedElements']['set'](_0x4f3752,_0x1c4113[_0x1c4113['length']-0x1]);const _0xf4d374=new Set();for(const [_0x1320e3,_0x10e470]of _0x400efd)_0xd77d52['has'](_0x1320e3)&&(_0xf4d374['add'](_0x10e470[0x0]),_0x10e470['length']>0x1?_0x400efd['set'](_0x1320e3,_0x10e470['slice'](0x1)):_0x400efd['delete'](_0x1320e3),_0xd77d52['delete'](_0x1320e3));return{'removed':Array['from'](_0xd77d52),'inserted':Array['from'](_0x400efd['values']())['flat'](),'moved':Array['from'](_0xf4d374)};}}class c extends _0x2a75bb{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d76eb){super(_0x1d76eb),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x58ec9b=>_0x58ec9b['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1ef5d7=>_0x1ef5d7['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5581a4}=this,{model:_0x5e47fb,data:_0x5a7878}=_0x5581a4;_0x5e47fb['document']['registerPostFixer'](_0x3483c6=>{const _0x7a0533=_0x5e47fb['document']['differ']['getChanges']();let _0x657335=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3483c6,_0x7a0533)&&(_0x657335=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3483c6,_0x7a0533)&&(_0x657335=!0x0),this['_handleFootnoteReferencesChanges'](_0x3483c6,_0x7a0533)&&(_0x657335=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3483c6)&&(_0x657335=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3483c6)&&(_0x657335=!0x0),this['_sortFootnoteDefinitions'](_0x3483c6)&&(_0x657335=!0x0),_0x657335;}),this['listenTo'](_0x5e47fb['document'],'change:data',()=>{_0x5e47fb['enqueueChange']({'isUndoable':!0x1},_0x1d9f7d=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1d9f7d);});},{'priority':'low'}),this['listenTo'](_0x5a7878,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x34f12d){return this['_footnotes']['find'](_0x80da22=>_0x80da22['id']===_0x34f12d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1d3ec8){this['_footnoteFormatter']=_0x1d3ec8;}['_updateFootnotesCounters'](_0x260ef0,_0x181f7d=0x0){let _0x1db281=!0x1;for(let _0x27bbf7=_0x181f7d;_0x27bbf7<this['_footnotes']['length'];_0x27bbf7++)this['_updateFootnoteRefCounter'](_0x260ef0,_0x27bbf7)&&(_0x1db281=!0x0);return _0x1db281;}['_insertEmptyFootnotesDefinitionsContainer'](_0x59cc7c,_0x546a55){const _0x1d8ab0=_0x59cc7c['createElement']('footnotesDefinitions',{});return _0x59cc7c['append'](_0x1d8ab0,_0x546a55),this['_footnotesDefinitions']=_0x1d8ab0,_0x1d8ab0;}['_ensureFootnotesDefinitionsContainerExists'](_0x15a284){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x464e27=this['_footnotes'][0x0]['reference']['root'],_0x3f4598=this['_insertEmptyFootnotesDefinitionsContainer'](_0x15a284,_0x464e27);for(const _0x498dce of this['_footnotes'])_0x498dce['definition']['parent']||_0x15a284['insert'](_0x498dce['definition'],_0x3f4598,'end');this['_updateFootnotesCounters'](_0x15a284);}['_handleFootnotesDefinitionsObjectChanges'](_0x2f48c7,_0x3b2740){let _0x492f72=!0x1;const {inserted:_0x546635,removed:_0x575aca,moved:_0x27820a}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3b2740);if(_0x27820a['length']&&(this['_footnotesDefinitions']=_0x27820a[0x0]),_0x546635['length']){if(_0x546635['length']>0x1||this['_footnotesDefinitions']&&_0x546635['some'](_0xdd84c8=>_0xdd84c8!==this['_footnotesDefinitions'])){const _0x22181e=_0x2f48c7['createElement']('footnotesDefinitions',{}),_0x7c59ec=[];this['_footnotesDefinitions']&&_0x7c59ec['push'](this['_footnotesDefinitions']),_0x7c59ec['push'](..._0x546635),_0x2f48c7['insert'](_0x22181e,_0x7c59ec[0x0],'before');for(const _0x44a0a8 of _0x7c59ec)_0x2f48c7['move'](_0x2f48c7['createRangeIn'](_0x44a0a8),_0x2f48c7['createPositionAt'](_0x22181e,'end')),_0x2f48c7['remove'](_0x44a0a8);this['_footnotesDefinitions']=_0x22181e,this['_updateFootnotesCounters'](_0x2f48c7),_0x492f72=!0x0;}else this['_footnotesDefinitions']=_0x546635[0x0];}if(_0x575aca['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x84e7ef of this['_footnotes'])_0x2f48c7['remove'](_0x84e7ef['reference']),_0x492f72=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x492f72;}['_handleFootnoteDefinitionsChanges'](_0x4fd942,_0x3cde4b){let _0x296de5=!0x1;const _0x230a10=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3aa4b9,moved:_0x156c88}=this['_footnoteDefsTracker']['getChanges'](_0x3cde4b);for(const _0x3ac8f0 of[..._0x156c88,..._0x3aa4b9]){const _0x47706e=_0x3ac8f0['getAttribute']('footnoteId'),_0x3a7fe7=this['getFootnote'](_0x47706e);_0x3a7fe7&&(_0x3a7fe7['definition']=_0x3ac8f0),_(_0x4fd942,_0x230a10,_0x3ac8f0)&&(_0x296de5=!0x0);}return _0x296de5;}['_handleFootnoteReferencesChanges'](_0x29fcd4,_0x992e57){let _0x352985=!0x1;const {removed:_0xea8cb4,inserted:_0x332c00,moved:_0x1ed1c3}=this['_footnoteRefsTracker']['getChanges'](_0x992e57);for(const _0x315674 of _0xea8cb4)this['_handleRemoveFootnoteReferenceById'](_0x29fcd4,_0x315674)&&(_0x352985=!0x0);for(const _0xafcf42 of _0x332c00)this['_handleInsertedFootnoteReference'](_0x29fcd4,_0xafcf42)&&(_0x352985=!0x0);for(const _0x23e66d of _0x1ed1c3)this['_handleMovedFootnoteReference'](_0x29fcd4,_0x23e66d)&&(_0x352985=!0x0);return _0x352985;}['_handleFootnotesDefinitionsObjectSync'](_0x1108e0){if(!this['_footnotesDefinitions'])return!0x1;let _0x2ee79d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x9e2068=[];for(const _0x1fd78e of this['_footnotesDefinitions']['getChildren']()){const _0x2a368e=_0x1fd78e['getAttribute']('footnoteId');this['getFootnote'](_0x2a368e)||(_0x9e2068['unshift'](_0x1fd78e),_0x2ee79d=!0x0);}for(const _0x208d29 of _0x9e2068)_0x1108e0['remove'](_0x208d29);}const _0x47fe46=new Set(),_0x248372=[];for(const _0x9c207e of this['_footnotesDefinitions']['getChildren']()){const _0x5ba22d=_0x9c207e['getAttribute']('footnoteId');_0x47fe46['has'](_0x5ba22d)?(_0x248372['unshift'](_0x9c207e),_0x2ee79d=!0x0):_0x47fe46['add'](_0x5ba22d);}for(const _0x10d293 of _0x248372)_0x1108e0['remove'](_0x10d293);return this['_footnotesDefinitions']['childCount']||(_0x1108e0['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2ee79d=!0x0),_0x2ee79d;}['_handleInsertedFootnoteReference'](_0x399a3e,_0xe0aec4){if(this['_footnotes']['find'](_0x5f08b2=>_0x5f08b2['reference']===_0xe0aec4))return!0x1;let _0x1fca44=!0x1;const _0x269e16=_0xe0aec4['getAttribute']('footnoteId'),_0x2295b4=this['_footnotes']['findIndex'](_0x828b50=>_0x828b50['id']===_0x269e16);-0x1!==_0x2295b4&&(_0x399a3e['remove'](this['_footnotes'][_0x2295b4]['reference']),this['_footnotes']['splice'](_0x2295b4,0x1),_0x1fca44=!0x0);let _0x51b02c=this['_footnotesDefinitions']?function(_0x45bffc,_0x3eade6){for(const _0x4ab334 of _0x45bffc['getChildren']())if(_0x4ab334['getAttribute']('footnoteId')===_0x3eade6)return _0x4ab334;return null;}(this['_footnotesDefinitions'],_0x269e16):null;_0x51b02c||(_0x51b02c=_0x399a3e['createElement']('footnoteDefinition',{'footnoteId':_0x269e16}),this['_footnotesDefinitions']&&(_0x399a3e['insert'](_0x51b02c,this['_footnotesDefinitions'],'end'),_0x1fca44=!0x0));const _0x1a9dbb={'id':_0x269e16,'reference':_0xe0aec4,'definition':_0x51b02c},_0x20c313=I(this['editor']['model'],this['_footnotes'],_0xe0aec4);this['_footnotes']['splice'](_0x20c313,0x0,_0x1a9dbb);let _0x2cd385=_0x20c313;return-0x1!==_0x2295b4&&(_0x2cd385=Math['min'](_0x20c313,_0x2295b4)),this['_updateFootnotesCounters'](_0x399a3e,_0x2cd385)&&(_0x1fca44=!0x0),_0x1fca44;}['_handleRemoveFootnoteReferenceById'](_0x4b499c,_0x333062){const _0x2ce173=this['_footnotes']['findIndex'](_0x49ddb0=>_0x49ddb0['id']===_0x333062);if(-0x1===_0x2ce173)return!0x1;let _0x136a41=!0x1;const _0x57c643=this['_footnotes'][_0x2ce173];return'$graveyard'!==_0x57c643['definition']['root']['rootName']&&(_0x4b499c['remove'](_0x57c643['definition']),_0x136a41=!0x0),this['_footnotes']['splice'](_0x2ce173,0x1),this['_updateFootnotesCounters'](_0x4b499c,_0x2ce173)&&(_0x136a41=!0x0),_0x136a41;}['_handleMovedFootnoteReference'](_0x12f584,_0xc71066){const _0x975c30=_0xc71066['getAttribute']('footnoteId'),_0x3e46e7=this['_footnotes']['findIndex'](_0x541bd8=>_0x541bd8['id']===_0x975c30),_0x45c871=this['_footnotes'][_0x3e46e7];let _0x1c7fbe=!0x1;_0x45c871['reference']=_0xc71066,this['_footnotes']['splice'](_0x3e46e7,0x1);const _0x19a6ea=I(this['editor']['model'],this['_footnotes'],_0xc71066);return this['_footnotes']['splice'](_0x19a6ea,0x0,_0x45c871),this['_updateFootnotesCounters'](_0x12f584,Math['min'](_0x3e46e7,_0x19a6ea))&&(_0x1c7fbe=!0x0),_0x1c7fbe;}['_updateFootnoteRefCounter'](_0x5c4b19,_0x47219f){if(!this['_footnotesDefinitions'])return!0x1;const _0xe8f117=this['_footnotes'][_0x47219f];let _0x1bb0d4;return _0x1bb0d4=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xe8f117,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x47219f+0x1}):String(_0x47219f+0x1),_0xe8f117['reference']['getAttribute']('footnoteCounter')!=_0x1bb0d4&&(_0x5c4b19['setAttribute']('footnoteCounter',_0x1bb0d4,_0xe8f117['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4d7659){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x29311d,_0x47aaf0){if(_0x29311d['length']!==_0x47aaf0['length'])return!0x1;for(let _0x3df912=0x0;_0x3df912<_0x29311d['length'];_0x3df912++)if(_0x29311d[_0x3df912]!==_0x47aaf0[_0x3df912])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4bdce3=>_0x4bdce3['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x808cb8=>_0x808cb8['getAttribute']('footnoteId'))))return!0x1;let _0x5d0e48=!0x1;for(let _0x15ff62=0x0;_0x15ff62<this['_footnotes']['length'];_0x15ff62++){const _0x38a7c0=this['_footnotes'][_0x15ff62],_0x2ae83d=_0x4d7659['createPositionBefore'](_0x38a7c0['definition']),_0x5c8d7b=_0x4d7659['createPositionAt'](this['_footnotesDefinitions'],_0x15ff62);_0x2ae83d['isEqual'](_0x5c8d7b)||(_0x4d7659['move'](_0x4d7659['createRangeOn'](_0x38a7c0['definition']),_0x5c8d7b),_0x5d0e48=!0x0);}return _0x5d0e48;}['_ensureFootnotesReferencesHaveProperOrder'](_0x33f5f7){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1ed191}=this['editor'];let _0x47b937=!0x1;for(let _0x4757a9=0x0;_0x4757a9<this['_footnotes']['length']-0x1;_0x4757a9++){const _0x35ecec=this['_footnotes'][_0x4757a9],_0x1797f0=this['_footnotes'][_0x4757a9+0x1],_0x95c4bd=_0x1ed191['createPositionBefore'](_0x35ecec['reference']),_0x4be91f=_0x1ed191['createPositionBefore'](_0x1797f0['reference']);'after'===_0x95c4bd['compareWith'](_0x4be91f)&&(this['_handleMovedFootnoteReference'](_0x33f5f7,_0x35ecec['reference']),_0x4757a9=-0x1,_0x47b937=!0x0);}return _0x47b937;}}function _(_0x2310e7,_0x1db90f,_0x39fdaf){if(_0x39fdaf['childCount'])return!0x1;const _0x19d727=_0x1db90f?'paragraph':'footnoteInlineContent';return _0x2310e7['insert'](_0x2310e7['createElement'](_0x19d727),_0x39fdaf),!0x0;}function I(_0xf83037,_0x27528f,_0x3fc3da){if(0x0===_0x27528f['length'])return 0x0;const _0x27f295=_0xf83037['createPositionBefore'](_0x3fc3da);for(let _0x46edfd=0x0;_0x46edfd<_0x27528f['length'];_0x46edfd++){const _0x27fd00=_0x27528f[_0x46edfd],_0x1dcc65=_0xf83037['createPositionBefore'](_0x27fd00['reference']);if('before'===_0x27f295['compareWith'](_0x1dcc65))return _0x46edfd;}const _0x3c7b40=_0x3fc3da['root'];let _0xb30e4c=-0x1;for(let _0x13bcc5=_0x27528f['length']-0x1;_0x13bcc5>=0x0;_0x13bcc5--)if(_0x27528f[_0x13bcc5]['reference']['root']===_0x3c7b40){_0xb30e4c=_0x13bcc5;break;}if(-0x1!==_0xb30e4c)return _0xb30e4c+0x1;const _0x38d1cc=_0xf83037['document']['getRootNames'](),_0x162ebc=_0x38d1cc['indexOf'](_0x3c7b40['rootName']),_0x935f03=_0x38d1cc[_0x162ebc+0x1];if(_0x935f03){for(let _0x2f55f9=0x0;_0x2f55f9<_0x27528f['length'];_0x2f55f9++)if(_0x27528f[_0x2f55f9]['reference']['root']['rootName']===_0x935f03)return _0x2f55f9;}return _0x27528f['length'];}class m extends _0x5d4c4f{['refresh'](){const _0x503b69=this['editor']['model']['document']['selection'],_0x40ed83=this['_getPositionToInsertFootnote'](_0x503b69);this['isEnabled']=!!_0x40ed83;}['execute'](_0x326148){const {editor:_0x10f12f}=this,{model:_0x1eacfa}=_0x10f12f,{selection:_0xb996ba}=_0x1eacfa['document'],_0x2f584a=this['_getPositionToInsertFootnote'](_0xb996ba);if(!_0x2f584a)return;const _0x4c1e83=_0x10f12f['plugins']['get']('FootnotesEditing'),_0x364cea=_0x326148?.['footnoteId']??_0x10e37a();!function(_0x428343){return'string'==typeof _0x428343&&_0x428343['length']>0x0&&!/\s/['test'](_0x428343)&&!/^\d/['test'](_0x428343);}(_0x364cea)?_0x2cf854('insert-footnote-command-executed-with-invalid-id'):(_0x1eacfa['change'](_0xfa465a=>{const _0x43be9d=_0xfa465a['createElement']('footnoteRef',{'footnoteId':_0x364cea});_0x1eacfa['insertObject'](_0x43be9d,_0x2f584a,null);}),_0x4c1e83['_moveSelectionToFootnoteDefinition'](_0x364cea));}['_getPositionToInsertFootnote'](_0x5e0830){const {model:_0x3f100f}=this['editor'],{schema:_0x451f05}=_0x3f100f,_0x7f54a=_0x5e0830['getFirstRange']();for(const _0x3ad9c6 of _0x7f54a['getItems']())if(_0x451f05['isBlock'](_0x3ad9c6)||_0x451f05['isObject'](_0x3ad9c6))return null;const _0x471321=_0x7f54a['end'];return _0x451f05['checkChild'](_0x471321,'footnoteRef')?_0x471321:null;}}class r extends _0x2a75bb{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1646eb}=this;_0x1646eb['config']['define']('footnotes.multiBlock',!0x0),_0x1646eb['commands']['add']('insertFootnote',new m(_0x1646eb)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x12bc40){const _0x12c977=_0x2cccf4([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]),_0x3ca4b6=0x47a28506,_0x35b4a6=0x47a5ff4e^_0x3ca4b6,_0x1da522=window[_0x2cccf4([0x44,0x61,0x74,0x65])][_0x2cccf4([0x6e,0x6f,0x77])](),_0x365149=_0x12bc40[_0x2cccf4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28d5c9=new window[(_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a6135=>{_0x365149[_0x2cccf4([0x6f,0x6e,0x63,0x65])](_0x2cccf4([0x72,0x65,0x61,0x64,0x79]),_0x4a6135);}),_0x1f78fe={[_0x2cccf4([0x6b,0x74,0x79])]:_0x2cccf4([0x45,0x43]),[_0x2cccf4([0x75,0x73,0x65])]:_0x2cccf4([0x73,0x69,0x67]),[_0x2cccf4([0x63,0x72,0x76])]:_0x2cccf4([0x50,0x2d,0x32,0x35,0x36]),[_0x2cccf4([0x78])]:_0x2cccf4([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]),[_0x2cccf4([0x79])]:_0x2cccf4([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]),[_0x2cccf4([0x61,0x6c,0x67])]:_0x2cccf4([0x45,0x53,0x32,0x35,0x36])},_0x5a584b=_0x365149[_0x2cccf4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cccf4([0x67,0x65,0x74])](_0x2cccf4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52e129(){let _0x2f1ab9,_0x19b393=null,_0x587a69=null;try{if(_0x5a584b==_0x2cccf4([0x47,0x50,0x4c]))return _0x2cccf4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f1ab9=_0x2d37bb(),!_0x2f1ab9)return _0x2cccf4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f1ab9[_0x2cccf4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x587a69=_0x51038b(_0x2f1ab9[_0x2cccf4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f1ab9[_0x2cccf4([0x6a,0x74,0x69])])),await _0x13ad48()?_0x546eae()?_0x8b661b()?_0x2cccf4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56813b()?(_0x2f1ab9[_0x2cccf4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cccf4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19b393=_0x1acd42(_0x2cccf4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f1ab9[_0x2cccf4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cccf4([0x74,0x72,0x69,0x61,0x6c])&&(_0x19b393=_0x1acd42(_0x2cccf4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x511e01()):_0x2cccf4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cccf4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cccf4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cccf4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8b661b(){const _0x2df186=[_0x2cccf4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cccf4([0x74,0x72,0x69,0x61,0x6c])][_0x2cccf4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1ab9[_0x2cccf4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1da522/0x3e8:0xe10*_0x35b4a6;return _0x2f1ab9[_0x2cccf4([0x65,0x78,0x70])]<_0x2df186;}function _0x546eae(){const _0x35ff33=_0x2f1ab9[_0x2cccf4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35ff33&&(!!_0x35ff33[_0x2cccf4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cccf4([0x2a]))||!!_0x35ff33[_0x2cccf4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cccf4([0x46,0x4f,0x4f])));}function _0x56813b(){const _0xe79378=_0x2f1ab9[_0x2cccf4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe79378||0x0==_0xe79378[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11e9a6}=new URL(window[_0x2cccf4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe79378[_0x2cccf4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11e9a6))return!0x0;const _0x3c5591=_0x11e9a6[_0x2cccf4([0x73,0x70,0x6c,0x69,0x74])](_0x2cccf4([0x2e]));return _0xe79378[_0x2cccf4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19852b=>_0x19852b[_0x2cccf4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cccf4([0x2a])))[_0x2cccf4([0x6d,0x61,0x70])](_0x5589bf=>_0x5589bf[_0x2cccf4([0x73,0x70,0x6c,0x69,0x74])](_0x2cccf4([0x2e])))[_0x2cccf4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e0192=>_0x4e0192[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c5591[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cccf4([0x6d,0x61,0x70])](_0xdc9ea8=>Array(_0x3c5591[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xdc9ea8[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cccf4([0x66,0x69,0x6c,0x6c])](_0xdc9ea8[0x0]===_0x2cccf4([0x2a])?_0x2cccf4([0x2a]):'')[_0x2cccf4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xdc9ea8))[_0x2cccf4([0x73,0x6f,0x6d,0x65])](_0x408ecf=>_0x3c5591[_0x2cccf4([0x65,0x76,0x65,0x72,0x79])]((_0x5a38c5,_0x44737f)=>_0x408ecf[_0x44737f]===_0x5a38c5||_0x408ecf[_0x44737f]===_0x2cccf4([0x2a])));}function _0x511e01(){return _0x19b393&&_0x587a69?new window[(_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59afc3,_0x2678d1)=>{_0x19b393[_0x2cccf4([0x74,0x68,0x65,0x6e])](_0x59afc3,_0x2678d1),_0x587a69[_0x2cccf4([0x74,0x68,0x65,0x6e])](_0x106e09=>{_0x106e09!=_0x2cccf4([0x56,0x61,0x6c,0x69,0x64])&&_0x59afc3(_0x106e09);},_0x2678d1);}):_0x19b393||_0x587a69||_0x2cccf4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51038b(_0x30a02e,_0x117929){return new window[(_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15aa4a=>{if(_0x4762e8())return _0x15aa4a(_0x2cccf4([0x56,0x61,0x6c,0x69,0x64]));_0x1f4e14(),_0x365149[_0x2cccf4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cccf4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x360649=!0x1;const _0x5af89c=_0x10e37a();function _0x6939e7(_0x254bec){return!!_0x254bec&&(typeof _0x254bec===_0x2cccf4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x254bec===_0x2cccf4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x254bec[_0x2cccf4([0x74,0x68,0x65,0x6e])]===_0x2cccf4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x254bec[_0x2cccf4([0x63,0x61,0x74,0x63,0x68])]===_0x2cccf4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50361b(_0x2fd8ed){_0x3fd508(_0x2fd8ed)[_0x2cccf4([0x74,0x68,0x65,0x6e])](_0x47e517=>{if(!_0x47e517||_0x47e517[_0x2cccf4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cccf4([0x6f,0x6b]))return _0x2cccf4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc9b69c(_0x1ce12a(_0x5af89c+_0x117929))!=_0x47e517[_0x2cccf4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cccf4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cccf4([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cccf4([0x74,0x68,0x65,0x6e])](_0x3b99de=>(_0x28ca70(),_0x3b99de),()=>{const _0x5249f5=_0xdc1c74();return null==_0x5249f5?(_0x28ca70(),_0x2cccf4([0x56,0x61,0x6c,0x69,0x64])):_0x2cccf4(_0x1da522-_0x5249f5>(0x63ae0106^_0x3ca4b6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cccf4([0x74,0x68,0x65,0x6e])](_0x15aa4a)[_0x2cccf4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15aa4a(_0x2cccf4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35b23c=0x47946b86^_0x3ca4b6;function _0x28ca70(){const _0x3cbf8c=_0x2cccf4([0x6c,0x6c,0x63,0x74,0x2d])+_0xc9b69c(_0x1ce12a(_0x30a02e)),_0x3c6267=_0x501de5(_0xc9b69c(window[_0x2cccf4([0x4d,0x61,0x74,0x68])][_0x2cccf4([0x63,0x65,0x69,0x6c])](_0x1da522/_0x35b23c)));window[_0x2cccf4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cccf4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cbf8c,_0x3c6267);}function _0xdc1c74(){const _0x1ba207=_0x2cccf4([0x6c,0x6c,0x63,0x74,0x2d])+_0xc9b69c(_0x1ce12a(_0x30a02e)),_0x25e67b=window[_0x2cccf4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cccf4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ba207);return _0x25e67b?window[_0x2cccf4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x501de5(_0x25e67b),0x10)*_0x35b23c:null;}function _0x3fd508(_0x1ecd5c){return new window[(_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26fc28,_0x179cab)=>{_0x1ecd5c[_0x2cccf4([0x74,0x68,0x65,0x6e])](_0x26fc28,_0x179cab),window[_0x2cccf4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x179cab,0x47a351c6^_0x3ca4b6);});}}_0x365149[_0x2cccf4([0x6f,0x6e])](_0x2cccf4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3df759,_0x1a0bab)=>{if(_0x1a0bab[0x0]!=_0x30a02e)return _0x15aa4a(_0x2cccf4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a0bab[0x1]={..._0x1a0bab[0x1],[_0x2cccf4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5af89c};},{[_0x2cccf4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cccf4([0x68,0x69,0x67,0x68])}),_0x365149[_0x2cccf4([0x6f,0x6e])](_0x2cccf4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2930e9=>{_0x6939e7(_0x2930e9[_0x2cccf4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x360649=!0x0,_0x50361b(_0x2930e9[_0x2cccf4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cccf4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cccf4([0x6c,0x6f,0x77])}),_0x28d5c9[_0x2cccf4([0x74,0x68,0x65,0x6e])](()=>{_0x360649||_0x15aa4a(_0x2cccf4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4762e8(){return _0x365149[_0x2cccf4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cccf4([0x76,0x69,0x65,0x77])][_0x2cccf4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cccf4([0x61,0x75,0x74,0x6f]);}function _0x1f4e14(){_0x365149[_0x2cccf4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cccf4([0x76,0x69,0x65,0x77])][_0x2cccf4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cccf4([0x61,0x75,0x74,0x6f]);}}function _0x1acd42(_0x521948){const _0x48972a=[new window[(_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19dd8c=>setTimeout(_0x19dd8c,0x47abbbca^_0x3ca4b6)),_0x28d5c9[_0x2cccf4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4957e3=>{let _0xa7586=0x0;_0x365149[_0x2cccf4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cccf4([0x6f,0x6e])](_0x2cccf4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x553f0a,_0x34d40e)=>{_0x34d40e[0x0][_0x2cccf4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa7586++,_0xa7586==(0x47a284fe^_0x3ca4b6)&&(_0x4957e3(),_0x553f0a[_0x2cccf4([0x6f,0x66,0x66])]());});}))];return window[_0x2cccf4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cccf4([0x72,0x61,0x63,0x65])](_0x48972a)[_0x2cccf4([0x74,0x68,0x65,0x6e])](()=>_0x521948);}async function _0x11e087(){await _0x28d5c9,_0x365149[_0x2cccf4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cccf4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3632e6,_0x365149[_0x2cccf4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cccf4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3632e6,_0x365149[_0x2cccf4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cccf4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43d466(_0x30debe){const _0x403dda=_0x50c52c();_0x365149[_0x403dda]=_0x2cccf4([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30debe,_0x30debe!=_0x2cccf4([0x56,0x61,0x6c,0x69,0x64])&&_0x11e087();}function _0x50c52c(){const _0x3135cb=window[_0x2cccf4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cccf4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cccf4([0x6e,0x6f,0x77])]())[_0x2cccf4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cccf4([0x2e]),'');let _0x4347b9=_0x2cccf4([0x75]);for(let _0x4f28ac=0x0;_0x4f28ac<_0x3135cb[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f28ac+=0x2){let _0x3a78c2=window[_0x2cccf4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3135cb[_0x2cccf4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f28ac,_0x4f28ac+0x2));_0x3a78c2>=_0x12c977[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a78c2-=_0x12c977[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4347b9+=_0x12c977[_0x3a78c2];}return _0x4347b9;}function _0x2d37bb(){const _0x50bc99=_0x5a584b[_0x2cccf4([0x73,0x70,0x6c,0x69,0x74])](_0x2cccf4([0x2e]));if(0x3!=_0x50bc99[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x131824(_0x50bc99[0x1]);function _0x131824(_0x166cdc){const _0x3d924e=_0x20146d(_0x166cdc);return _0x3d924e&&_0x2230c5()?_0x3d924e:null;function _0x2230c5(){const _0x23e8b2=_0x3d924e[_0x2cccf4([0x6a,0x74,0x69])],_0x45e842=window[_0x2cccf4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23e8b2[_0x2cccf4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23e8b2[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7294c4={..._0x3d924e,[_0x2cccf4([0x6a,0x74,0x69])]:_0x23e8b2[_0x2cccf4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23e8b2[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7294c4[_0x2cccf4([0x76,0x63])],_0x1ce12a(_0x7294c4)==_0x45e842;}}}async function _0x13ad48(){let _0x51833e=!0x0;try{const _0x3b3fa8=_0x5a584b[_0x2cccf4([0x73,0x70,0x6c,0x69,0x74])](_0x2cccf4([0x2e])),[_0x53168c,_0x5cac90,_0x5e3ed2]=_0x3b3fa8;return _0x1b67c8(_0x53168c),await _0xcec334(_0x53168c,_0x5cac90,_0x5e3ed2),_0x51833e;}catch{return!0x1;}function _0x1b67c8(_0x3fcfbe){const _0x314382=_0x20146d(_0x3fcfbe);_0x314382&&_0x314382[_0x2cccf4([0x61,0x6c,0x67])]==_0x2cccf4([0x45,0x53,0x32,0x35,0x36])||(_0x51833e=!0x1);}async function _0xcec334(_0x1f946c,_0x31c27c,_0x45f2b0){const _0x35d499=window[_0x2cccf4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cccf4([0x66,0x72,0x6f,0x6d])](_0x39ea98(_0x45f2b0),_0x574b66=>_0x574b66[_0x2cccf4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31a4b5=new window[(_0x2cccf4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cccf4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f946c+_0x2cccf4([0x2e])+_0x31c27c),_0x361634=window[_0x2cccf4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cccf4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x361634)return;const _0x50e67b=await _0x361634[_0x2cccf4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cccf4([0x6a,0x77,0x6b]),_0x1f78fe,{[_0x2cccf4([0x6e,0x61,0x6d,0x65])]:_0x2cccf4([0x45,0x43,0x44,0x53,0x41]),[_0x2cccf4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cccf4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cccf4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x361634[_0x2cccf4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cccf4([0x6e,0x61,0x6d,0x65])]:_0x2cccf4([0x45,0x43,0x44,0x53,0x41]),[_0x2cccf4([0x68,0x61,0x73,0x68])]:{[_0x2cccf4([0x6e,0x61,0x6d,0x65])]:_0x2cccf4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50e67b,_0x35d499,_0x31a4b5)||(_0x51833e=!0x1);}}function _0x20146d(_0x2e3b88){return _0x2e3b88[_0x2cccf4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cccf4([0x65,0x79]))?JSON[_0x2cccf4([0x70,0x61,0x72,0x73,0x65])](_0x39ea98(_0x2e3b88)):null;}function _0x39ea98(_0x2ff46f){return window[_0x2cccf4([0x61,0x74,0x6f,0x62])](_0x2ff46f[_0x2cccf4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cccf4([0x2b]))[_0x2cccf4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cccf4([0x2f])));}function _0x1ce12a(_0x5908cb){let _0xec2203=0x1505;function _0x5b985a(_0x3adfc3){for(let _0x1b7d6f=0x0;_0x1b7d6f<_0x3adfc3[_0x2cccf4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b7d6f++){const _0x2a68ea=_0x3adfc3[_0x2cccf4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b7d6f);_0xec2203=(_0xec2203<<0x5)+_0xec2203+_0x2a68ea,_0xec2203&=_0xec2203;}}function _0x221033(_0x2b4b19){Array[_0x2cccf4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b4b19)?_0x2b4b19[_0x2cccf4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x221033):_0x2b4b19&&typeof _0x2b4b19==_0x2cccf4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cccf4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b4b19)[_0x2cccf4([0x73,0x6f,0x72,0x74])]()[_0x2cccf4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x339270,_0x555054])=>{_0x5b985a(_0x339270),_0x221033(_0x555054);}):_0x5b985a(window[_0x2cccf4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b4b19));}return _0x221033(_0x5908cb),_0xec2203>>>0x0;}function _0xc9b69c(_0x46c781){return _0x46c781[_0x2cccf4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cccf4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cccf4([0x30]));}function _0x501de5(_0x27a0b6){return _0x27a0b6[_0x2cccf4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cccf4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cccf4([0x6a,0x6f,0x69,0x6e])]('');}function _0x3632e6(){}function _0x2cccf4(_0x3e35e6){return _0x3e35e6['map'](_0x26765c=>String['fromCharCode'](_0x26765c))['join']('');}_0x43d466(await _0x52e129());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5929b0){const {plugins:_0x14f548,editing:_0x8ead1f,model:_0x108c6f}=this['editor'],_0x21e457=_0x14f548['get'](c)['getFootnote'](_0x5929b0);return!!_0x21e457&&(_0x108c6f['change'](_0x60aef7=>{_0x60aef7['setSelection'](_0x60aef7['createPositionAt'](_0x21e457['definition'],'end'));}),_0x8ead1f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4f2d58){const {plugins:_0x1395f1,editing:_0x3702eb,model:_0x5bbd5f}=this['editor'],_0xc68920=_0x1395f1['get'](c)['getFootnote'](_0x4f2d58);return!!_0xc68920&&(_0x5bbd5f['change'](_0x23bdc3=>{_0x23bdc3['setSelection'](_0xc68920['reference'],'on');}),_0x3702eb['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3768e4}=this['editor']['model'],_0x23a7b2=this['editor']['config']['get']('footnotes.multiBlock');_0x3768e4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3768e4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3768e4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x23a7b2?_0x3768e4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3768e4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3768e4['addChildCheck'](_0x145503=>{for(const _0x484813 of _0x145503)if('footnoteDefinition'===_0x484813['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x589eaa}=this,{conversion:_0x566955,editing:_0x531f50}=_0x589eaa,{t:t}=_0x589eaa['locale'];_0x566955['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x151a28,{writer:_0x45c8a9,consumable:_0xd97e2e})=>{const _0x35ef38=_0x151a28['getChild'](0x0);if(!_0x35ef38||!_0x35ef38['is']('element','a'))return null;const _0xd2aec6=_0x35ef38['getAttribute']('href')||'';if(!_0xd2aec6['startsWith']('#'))return null;const _0x455c7f=_0xd2aec6['replace'](/^#/,'');if(!_0x455c7f)return null;_0xd97e2e['consume'](_0x35ef38,{'name':!0x0,'attributes':['href']});for(const {item:_0x2cd71e}of _0x531f50['view']['createRangeIn'](_0x35ef38))_0x2cd71e['is']('$textProxy')?_0xd97e2e['consume'](_0x2cd71e['textNode'],{'name':!0x0}):_0x2cd71e['is']('element')&&_0xd97e2e['consume'](_0x2cd71e,{'name':!0x0});return _0x45c8a9['createElement']('footnoteRef',{'footnoteId':_0x455c7f});}}),_0x566955['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x405a3b,{writer:_0x4f9484})=>D(_0x405a3b,_0x4f9484)}),_0x566955['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x133b05,{writer:_0x3f7784})=>{const _0x4f0518=_0x133b05['getAttribute']('footnoteCounter');return _0x353a3f(D(_0x133b05,_0x3f7784),_0x3f7784,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4f0518)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4f81cf}=this,{t:t}=_0x4f81cf['locale'],{conversion:_0x2e7fe0}=_0x4f81cf;_0x2e7fe0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2e7fe0['for']('upcast')['add'](_0x2984fe=>{_0x2984fe['on']('element:ol',(_0x61c59f,_0x474208,_0x4189c9)=>{const _0x4cf5db=_0x474208['viewItem'];if(!_0x4cf5db['hasClass']('footnotes-list')||!_0x474208['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4189c9['consumable']['consume'](_0x4cf5db,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x27029b,modelCursor:_0x1b360c}=_0x4189c9['convertChildren'](_0x474208['viewItem'],_0x474208['modelCursor']);_0x474208['modelRange']=_0x27029b,_0x474208['modelCursor']=_0x1b360c;}),_0x2984fe['on']('element:hr',(_0x171850,_0x35e383,_0xa06c31)=>{const _0x28711=_0x35e383['viewItem'];_0x28711['hasClass']('footnotes-divider')&&_0x35e383['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xa06c31['consumable']['consume'](_0x28711,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2e7fe0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x43dae2,{writer:_0x38f416})=>v(_0x38f416)}),_0x2e7fe0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4fe47d,{writer:_0x31923f})=>{const _0x1b4ec1=v(_0x31923f,{'data-footnotes-list-label':t('Footnotes')}),_0x4ce7c6=_0x353a3f(_0x1b4ec1,_0x31923f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x31923f['setCustomProperty']('footnotesDefinitions',!0x0,_0x4ce7c6),_0x4ce7c6;}});}['_defineDefinitionConverters'](){const {editor:_0x318503}=this,{conversion:_0x190e8b,locale:_0x35e2ce}=_0x318503,_0x2bdbae=_0x318503['config']['get']('footnotes.multiBlock');_0x190e8b['for']('upcast')['add'](_0xe109bc=>{_0xe109bc['on']('element:li',(_0x1a0078,_0x1af309,_0x5597ef)=>{const _0x15608f=_0x1af309['viewItem'];if(!_0x15608f['hasClass']('footnote-definition')||!_0x15608f['getAttribute']('id'))return;const _0x45a1b1=_0x15608f['parent'];if(!_0x45a1b1['is']('element','ol')||!_0x45a1b1['hasClass']('footnotes-list'))return;if(!_0x5597ef['consumable']['test'](_0x15608f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x28afd6=_0x5597ef['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x15608f['getAttribute']('id')});if(!_0x5597ef['safeInsert'](_0x28afd6,_0x1af309['modelCursor']))return;_0x5597ef['consumable']['consume'](_0x15608f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x18e196=Array['from'](_0x15608f['getChildren']())['find'](_0x3518ad=>_0x3518ad['is']('element')&&_0x3518ad['hasClass']('footnote-content'));for(const _0x3540a0 of _0x15608f['getChildren']())_0x3540a0['is']('element')&&(_0x5597ef['consumable']['consume'](_0x3540a0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5597ef['consumable']['consume'](_0x3540a0,{'name':!0x0,'classes':'footnote-content'}));if(_0x18e196){if(_0x2bdbae)_0x5597ef['convertChildren'](_0x18e196,_0x28afd6);else{const _0x538843=_0x5597ef['writer']['createElement']('footnoteInlineContent');_0x5597ef['writer']['insert'](_0x538843,_0x28afd6),_0x5597ef['convertChildren'](_0x18e196,_0x538843);}}_0x5597ef['updateConversionResult'](_0x28afd6,_0x1af309);});}),_0x190e8b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x47c7ed,{writer:_0x27c3fe})=>b(_0x47c7ed,_0x27c3fe,_0x35e2ce,{'dataPipeline':!0x0})}),_0x190e8b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4b6bfa,{writer:_0x508941})=>b(_0x4b6bfa,_0x508941,_0x35e2ce)});}['_defineBogusParagraphConverters'](){const {editor:_0x441dce}=this,{conversion:_0x21f4a7}=_0x441dce;_0x441dce['config']['get']('footnotes.multiBlock')?(_0x21f4a7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x21f4a7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x441dce['model']['document'],'change:data',()=>{!function(_0x9ea30f,_0x59bad1){const _0x31849c=_0x9ea30f['document']['differ'],_0x46c5ac=new Set();for(const _0x19714d of _0x31849c['getChanges']()){const _0x479daf='attribute'==_0x19714d['type']?_0x19714d['range']['start']['parent']:_0x19714d['position']['parent'];_0x479daf['is']('element','footnoteDefinition')&&_0x46c5ac['add'](_0x479daf);}for(const _0x20090b of _0x46c5ac['values']()){const _0x332f5e=Array['from'](_0x20090b['getChildren']())['filter'](_0x4abac4=>g(_0x4abac4,_0x59bad1['mapper']));for(const _0x20a76c of _0x332f5e)_0x59bad1['reconvertItem'](_0x20a76c);}}(_0x441dce['model'],_0x441dce['editing']);})):(_0x21f4a7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x21f4a7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2d1fa2,{writer:_0x1d0841})=>{const _0x370a79=_0x1d0841['createContainerElement']('span');return _0x1d0841['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x370a79),_0x370a79;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2fe9ed}=this,{editing:_0xc6e27b,t:t}=_0x2fe9ed,_0x4051cf=_0x2fe9ed['model']['document']['selection'];_0x2fe9ed['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2fe9ed['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xc6e27b['view']['document'],'enter',(_0x3ecc43,_0x22f6fa)=>{const _0x5ca9e2=function(_0x234767){const _0x1193c9=_0x234767['getSelectedElement']();if(_0x1193c9?.['is']('element','footnoteRef'))return _0x1193c9;return null;}(_0x4051cf);if(_0x5ca9e2){const _0x5419d5=_0x5ca9e2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5419d5),_0x22f6fa['preventDefault'](),_0x3ecc43['stop']();}},{'context':_0x59ac3a});}['_defineClickHandlers'](){const {editor:_0x26e653}=this,{editing:_0x5a215f}=_0x26e653;_0x26e653['editing']['view']['addObserver'](_0x14f0d2),_0x26e653['editing']['view']['addObserver'](_0x5770ff);let _0x5197fc=!0x1;this['listenTo'](_0x5a215f['view']['document'],'pointerdown',(_0x2b87b0,_0x875bb6)=>{const {target:_0x44ace8}=_0x875bb6,_0x460d9d=_0x5a215f['view']['document']['selection'];_0x5197fc=!!(_0x44ace8?.['is']('element','a')&&_0x44ace8['parent']?.['is']('element','sup')&&_0x44ace8['parent']['hasClass']('footnote'))&&_0x460d9d['getSelectedElement']()===_0x44ace8['parent'];},{'priority':'high'}),this['listenTo'](_0x5a215f['view']['document'],'click',(_0x225494,_0x63f621)=>{const {target:_0x939d7d}=_0x63f621;if(!_0x939d7d?.['is']('element','a'))return;if(_0x939d7d['parent']?.['is']('element','sup')&&_0x939d7d['parent']['hasClass']('footnote')&&!_0x5197fc)return void _0x63f621['preventDefault']();let _0x1ab21c=_0x939d7d['getAttribute']('href');if(!_0x1ab21c?.['startsWith']('#'))return;_0x1ab21c=_0x1ab21c['slice'](0x1);let _0x5f0deb=!0x1;(_0x1ab21c['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1ab21c['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1ab21c))&&(_0x5f0deb=!0x0),_0x5f0deb&&(_0x63f621['preventDefault'](),_0x225494['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x51049f}={}){return(_0x1f0128,{writer:_0x5b85e5})=>{if(!p(_0x1f0128))return null;if(!_0x51049f)return _0x5b85e5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x11390a=_0x5b85e5['createContainerElement']('p');return _0x5b85e5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11390a),_0x11390a;};}function p(_0x29d019){const {parent:_0x3dbf7b}=_0x29d019;if(!_0x3dbf7b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3dbf7b['childCount'])return!0x1;for(const _0x1b4290 of _0x29d019['getAttributeKeys']())if(!_0x1b4290['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1b4290)return!0x1;return!0x0;}function g(_0x43f0a0,_0x2be9d9){if(!_0x43f0a0['is']('element','paragraph'))return!0x1;const _0x51aca4=_0x2be9d9['toViewElement'](_0x43f0a0);return!!_0x51aca4&&p(_0x43f0a0)!==_0x51aca4['is']('element','span');}function J(_0x14101f){return _0x59ac3a(_0x14101f)&&_0x14101f['is']('containerElement')&&!!_0x14101f['getCustomProperty']('footnotesDefinitions');}function v(_0x2f7726,_0x57fc3f={}){const _0xbe021e=_0x2f7726['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2d572a=_0x2f7726['createContainerElement']('ol',{'class':'footnotes-list'},_0x2f7726['createSlot']());return _0x2f7726['createContainerElement']('div',{'class':'footnotes',..._0x57fc3f},[_0xbe021e,_0x2d572a]);}function D(_0x4d11b,_0x49e3fa){const _0x7d48d0=_0x4d11b['getAttribute']('footnoteId'),_0x1ddf1f=_0x4d11b['getAttribute']('footnoteCounter'),_0x1bb0e5=_0x49e3fa['createUIElement']('a',{'href':'#'+_0x7d48d0},function(_0x5e62ab){const _0x3d9c10=this['toDomElement'](_0x5e62ab);return _0x3d9c10['textContent']=_0x1ddf1f,_0x3d9c10;}),_0x8c9536=_0x49e3fa['createContainerElement']('sup',{'id':'ref-'+_0x7d48d0,'class':'footnote'},[_0x1bb0e5]);return _0x8c9536['getFillerOffset']=()=>null,_0x8c9536;}function b(_0x453ba3,_0x122867,_0xbccc58,{dataPipeline:_0x24373c}={}){const {t:t}=_0xbccc58,_0x10b6e9=_0x453ba3['getAttribute']('footnoteId'),_0x543030=_0x122867['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x10b6e9},function(_0x3d1e73){const _0x3557c6=this['toDomElement'](_0x3d1e73);return _0x3557c6['innerText']='^',_0x3557c6;}),_0x365ee8=_0x24373c?_0x122867['createContainerElement']('div',{'class':'footnote-content'}):_0x81caed(_0x122867['createEditableElement']('div',{'class':'footnote-content'}),_0x122867,{'label':t('Footnote\x20content.')});return _0x122867['insert'](_0x122867['createPositionAt'](_0x365ee8,0x0),_0x122867['createSlot']()),_0x122867['createContainerElement']('li',{'class':'footnote-definition','id':_0x10b6e9},[_0x543030,_0x365ee8]);}class e extends _0x2a75bb{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x294953];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x467585}=this,{plugins:_0x401106,model:_0x10b242}=_0x467585,_0x1f4270=_0x401106['get'](_0x294953),_0x598c09=_0x401106['get'](c);this['listenTo'](_0x1f4270,'outputTransformation',(_0x5f3dbd,_0x3535e1)=>{const _0x5805a6=f(_0x10b242['createRangeIn'](_0x3535e1['content']));if(!_0x5805a6['length'])return;const _0x2d0eb3=_0x598c09['getFootnotes'](),_0x5b6e33=_0x5805a6['reduce']((_0x37d491,_0x5ac919)=>{const _0x525490=_0x2d0eb3['find'](_0x7d869a=>_0x7d869a['id']===_0x5ac919);if(_0x525490){const _0xa1af68=_0x467585['data']['toView'](_0x525490['definition'],{'isClipboardPipeline':!0x0}),_0x45d27f=_0x467585['data']['htmlProcessor']['toData'](_0xa1af68);_0x37d491[_0x525490['id']]=_0x45d27f;}return _0x37d491;},Object['create'](null));_0x3535e1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5b6e33));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x38e780}=this,{model:_0x35495c,plugins:_0x3e1ed1}=_0x38e780,{view:_0x25ed84}=_0x38e780['editing'],_0x2cf174=_0x3e1ed1['get'](_0x294953),_0x37e3a5=_0x3e1ed1['get'](c);let _0xd9a9c9=null;this['listenTo'](_0x25ed84['document'],'clipboardInput',(_0x4ecbbd,_0xd4984)=>{const _0x238a5e=_0xd4984['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xd9a9c9=_0x238a5e?JSON['parse'](_0x238a5e):null;}),this['listenTo'](_0x2cf174,'contentInsertion',(_0x44c741,_0x47bbc4)=>{const _0x34b1e7=_0x47bbc4['sourceEditorId']===this['editor']['id'];_0x34b1e7&&'drop'===_0x47bbc4['method']||_0x35495c['change'](_0x38d87d=>{let _0x575f70=_0x37e3a5['getFootnotesDefinitionsObjectElement']();const _0x297fb0=!!_0x575f70&&Array['from'](_0x35495c['document']['selection']['getSelectedBlocks']())['includes'](_0x575f70);if((_0x575f70&&!_0x297fb0||!_0x575f70&&!_0xd9a9c9)&&function(_0x3f397b,_0x24709f){const _0x14b37c=[];for(const {item:_0x4d0c0b}of _0x3f397b['createRangeIn'](_0x24709f))_0x4d0c0b['is']('element','footnotesDefinitions')&&_0x14b37c['push'](_0x4d0c0b);for(const _0x3f5d8b of _0x14b37c)_0x3f397b['remove'](_0x3f5d8b);}(_0x38d87d,_0x47bbc4['content']),!_0xd9a9c9)return;const {selection:_0x4b4dfe}=_0x35495c['document'],_0x28e256=_0x4b4dfe['getFirstRange']()['root'];_0x575f70&&!_0x297fb0||(_0x575f70=function(_0x2039db,_0xc90310){for(const {item:_0x2cb3be}of _0x2039db['createRangeIn'](_0xc90310))if(_0x2cb3be['is']('element','footnotesDefinitions'))return _0x2cb3be;return null;}(_0x38d87d,_0x47bbc4['content']),_0x575f70||=_0x37e3a5['_insertEmptyFootnotesDefinitionsContainer'](_0x38d87d,_0x28e256));const _0x1e5ca6=Array['from'](_0x4b4dfe['getRanges']())['flatMap'](f),_0x48fede=function(_0x2e9112,_0x23da88,_0x1c08c8){const _0x21ba3a=Object['create'](null);for(const {item:_0x5e0a63}of _0x2e9112['createRangeIn'](_0x23da88))if(_0x5e0a63['is']('element','footnoteRef')){const _0x1198d8=_0x5e0a63['getAttribute']('footnoteId');if(!_0x1c08c8(_0x1198d8))continue;_0x21ba3a[_0x1198d8]||(_0x21ba3a[_0x1198d8]=_0x10e37a()),_0x2e9112['setAttribute']('footnoteId',_0x21ba3a[_0x1198d8],_0x5e0a63);}return _0x21ba3a;}(_0x38d87d,_0x47bbc4['content'],_0x41246e=>{if(!_0x34b1e7)return!0x0;return!!_0x37e3a5['getFootnote'](_0x41246e)&&!_0x1e5ca6['includes'](_0x41246e);});for(const [_0x1c351b,_0xbbc1b]of Object['entries'](_0xd9a9c9)){const _0x549f21=_0x48fede[_0x1c351b]||_0x1c351b,_0x4c2c69=_0x38d87d['createElement']('footnoteDefinition',{'footnoteId':_0x549f21}),_0x3463d9=_0x38e780['data']['htmlProcessor']['toView'](_0xbbc1b),_0x1aac3a=_0x38e780['data']['toModel'](_0x3463d9,_0x4c2c69);_0x38d87d['append'](_0x1aac3a,_0x4c2c69),_0x38d87d['insert'](_0x4c2c69,_0x575f70,'end');}_0xd9a9c9=null;});});}}function f(_0x28acca){const _0x2cd699=new Set();for(const {item:_0xdf075f}of _0x28acca)_0xdf075f['is']('element','footnoteRef')&&_0x2cd699['add'](_0xdf075f['getAttribute']('footnoteId'));return Array['from'](_0x2cd699);}class i extends _0x2a75bb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50621c}=this,{componentFactory:_0x3c4fe7}=_0x50621c['ui'];_0x3c4fe7['add']('insertFootnote',x(_0x50621c,_0x144e48)),_0x3c4fe7['add']('menuBar:insertFootnote',x(_0x50621c,_0x1ad2ec)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x152136=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a64ff;for(const _0x3a231a in _0x152136){const _0x49d513=_0x3a231a,_0x3f5bb1=_0x152136[_0x49d513];if('footnotesLicenseKeyValid'==_0x3f5bb1||'footnotesLicenseKeyInvalid'==_0x3f5bb1||'footnotesLicenseKeyExpired'==_0x3f5bb1||'footnotesLicenseKeyDomainLimit'==_0x3f5bb1||'footnotesLicenseKeyNotAllowed'==_0x3f5bb1||'footnotesLicenseKeyEvaluationLimit'==_0x3f5bb1||'footnotesLicenseKeyTrialLimit'==_0x3f5bb1||'footnotesLicenseKeyUsageLimit'==_0x3f5bb1){delete _0x152136[_0x49d513],_0x5a64ff=_0x3f5bb1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5a64ff&&_0x152136['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5a64ff&&_0x152136['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5a64ff&&_0x152136['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5a64ff&&_0x152136['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5a64ff&&_0x152136['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5a64ff&&_0x152136['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5a64ff&&_0x152136['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x27441b,_0x33631d){const _0x395f03=_0x27441b['commands']['get']('insertFootnote');return _0x419cf2=>{const {t:t}=_0x419cf2,_0x41a7c8=new _0x33631d(_0x419cf2),_0x222dce=_0x41a7c8 instanceof _0x1ad2ec;return _0x41a7c8['bind']('isEnabled')['to'](_0x395f03,'isEnabled'),_0x41a7c8['set']({'label':t(_0x222dce?'Footnote':'Insert\x20footnote'),'icon':_0x2d39d5,'tooltip':!0x0}),_0x41a7c8['on']('execute',()=>{_0x395f03['execute'](),_0x27441b['editing']['view']['focus']();}),_0x41a7c8;};}class lt extends _0x2a75bb{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 _0x5d4c4f{['refresh'](){const {editor:_0x457ca7}=this,_0x13bfad=_0x457ca7['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13bfad,this['value']=_0x13bfad?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2e8928}){const {editor:_0x3f4c87}=this,_0x14ec38=_0x3f4c87['plugins']['get'](c),_0x57b062=_0x14ec38['getFootnotesDefinitionsObjectElement']();_0x57b062&&Q['includes'](_0x2e8928)&&_0x3f4c87['model']['change'](_0x1504cf=>{_0x1504cf['setAttribute']('footnotesListStyle',_0x2e8928,_0x57b062),_0x14ec38['_updateFootnotesCounters'](_0x1504cf);});}}class C extends _0x5d4c4f{['refresh'](){const {editor:_0x2b1c0c}=this,_0x502eea=_0x2b1c0c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x502eea,this['value']=_0x502eea?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2263c6}){const {editor:_0x1e8799}=this,_0x3e0c43=_0x1e8799['plugins']['get'](c),_0xc623e5=_0x3e0c43['getFootnotesDefinitionsObjectElement']();_0xc623e5&&Number['isInteger'](_0x2263c6)&&_0x1e8799['model']['change'](_0x1b47fb=>{_0x1b47fb['setAttribute']('footnotesListStart',_0x2263c6,_0xc623e5),_0x3e0c43['_updateFootnotesCounters'](_0x1b47fb);});}}class P extends _0x2a75bb{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd175a5}=this;_0xd175a5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xd175a5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xd175a5['commands']['add']('footnotesStyle',new S(_0xd175a5)),_0xd175a5['commands']['add']('footnotesStart',new C(_0xd175a5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2328b8}=this,{schema:_0x508647}=_0x2328b8['model'];_0x508647['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xf55f8f}=this,{conversion:_0x1c0a13,model:_0x13fe47}=_0xf55f8f,{schema:_0x35d39c}=_0x13fe47;_0x1c0a13['for']('upcast')['add'](_0x415579=>{_0x415579['on']('element:ol',(_0x590589,_0x5d17b4,_0x35b691)=>{const _0x4a77e0=_0x5d17b4['viewItem'],_0x296324=_0x5d17b4['modelCursor']?.['parent'];_0x4a77e0['hasClass']('footnotes-list')&&_0x296324?.['is']('element','footnotesDefinitions')&&(function(_0x3d6ee6,_0x22f631,_0x7ba947,_0x105a06){if(!_0x105a06['checkAttribute'](_0x22f631,'footnotesListStart'))return;let _0x2a2ffb=0x1;const _0x493e5a=_0x7ba947['consumable']['consume'](_0x3d6ee6,{'attributes':'start'});if(_0x493e5a){const _0x2c49bd=Number['parseInt'](_0x3d6ee6['getAttribute']('start'),0xa);Number['isNaN'](_0x2c49bd)||(_0x2a2ffb=_0x2c49bd);}!_0x493e5a&&_0x22f631['hasAttribute']('footnotesListStart')||_0x7ba947['writer']['setAttribute']('footnotesListStart',_0x2a2ffb,_0x22f631);}(_0x4a77e0,_0x296324,_0x35b691,_0x35d39c),function(_0x47dbdb,_0x1b367a,_0x53b666,_0x5a73e8){if(!_0x5a73e8['checkAttribute'](_0x1b367a,'footnotesListStyle'))return;let _0x186396='decimal',_0x32b518=!0x1;if(_0x53b666['consumable']['consume'](_0x47dbdb,{'attributes':'type'})){const _0x49ba66={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x47dbdb['getAttribute']('type')];_0x49ba66&&(_0x186396=_0x49ba66),_0x32b518=!0x0;}_0x53b666['consumable']['consume'](_0x47dbdb,{'styles':'list-style-type'})&&(_0x186396=_0x47dbdb['getStyle']('list-style-type'),_0x32b518=!0x0),!_0x32b518&&_0x1b367a['hasAttribute']('footnotesListStyle')||_0x53b666['writer']['setAttribute']('footnotesListStyle',_0x186396,_0x1b367a);}(_0x4a77e0,_0x296324,_0x35b691,_0x35d39c));});}),_0x1c0a13['for']('downcast')['add'](_0x5f1549=>{_0x5f1549['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x3b4d39,_0x28e8a4,_0x53c05a)=>{if(!_0x53c05a['consumable']['consume'](_0x28e8a4['item'],_0x3b4d39['name']))return;const _0x52b064=M(_0x28e8a4['item'],_0x53c05a['mapper']),{attributeNewValue:_0x499cd8}=_0x28e8a4;null==_0x499cd8||0x1===_0x499cd8?_0x53c05a['writer']['removeAttribute']('start',_0x52b064):_0x53c05a['writer']['setAttribute']('start',String(_0x499cd8),_0x52b064);}),_0x5f1549['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x43b97f,_0x179d3a,_0xd30be8)=>{if(!_0xd30be8['consumable']['consume'](_0x179d3a['item'],_0x43b97f['name']))return;const _0x1b75a3=M(_0x179d3a['item'],_0xd30be8['mapper']),{attributeNewValue:_0x38545a}=_0x179d3a;_0x38545a&&'decimal'!==_0x38545a?_0xd30be8['writer']['setStyle']('list-style-type',_0x38545a,_0x1b75a3):_0xd30be8['writer']['removeStyle']('list-style-type',_0x1b75a3);});});}['_definePostfixer'](){const {editor:_0x5cf2f9}=this,{model:_0x38412d}=_0x5cf2f9,_0x30d214=_0x5cf2f9['plugins']['get'](c),_0x449821=this['_getDefaultListStyle'](),_0x4a0685=this['_getDefaultStartIndex']();_0x38412d['document']['registerPostFixer'](_0x103461=>{const _0x44024b=_0x38412d['document']['differ']['getChanges']();let _0x77c482=!0x1;for(const _0x55d286 of _0x44024b){if('insert'!==_0x55d286['type']||'$text'===_0x55d286['name'])continue;const _0x32a47e=_0x38412d['createRangeOn'](_0x55d286['position']['nodeAfter']);for(const _0x277338 of _0x32a47e['getItems']())_0x277338['is']('element','footnotesDefinitions')&&(!_0x277338['hasAttribute']('footnotesListStart')&&_0x38412d['schema']['checkAttribute'](_0x277338,'footnotesListStart')&&(_0x103461['setAttribute']('footnotesListStart',_0x4a0685,_0x277338),_0x77c482=!0x0),!_0x277338['hasAttribute']('footnotesListStyle')&&_0x38412d['schema']['checkAttribute'](_0x277338,'footnotesListStyle')&&(_0x103461['setAttribute']('footnotesListStyle',_0x449821,_0x277338),_0x77c482=!0x0));}return _0x77c482&&_0x30d214['_updateFootnotesCounters'](_0x103461),_0x77c482;});}['_defineFormatter'](){const {editor:_0x261acb}=this;_0x261acb['plugins']['get'](c)['setFootnoteFormatter'](_0xac4392=>this['_formatFootnoteListValue'](_0xac4392));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x279f44,value:_0x437668,digits:_0x533e7e}){const _0x47dc44=_0x279f44['getAttribute']('footnotesListStyle'),_0x36a8ef=_0x279f44['getAttribute']('footnotesListStart'),_0x1fce30=Math['floor'](_0x437668)+(_0x36a8ef??0x1)-0x1;switch(_0x47dc44){case'decimal-leading-zero':return function(_0x396389,_0x218fff){return String(_0x396389)['padStart'](_0x218fff,'0');}(_0x1fce30,Math['max'](0x2,_0x533e7e));case'lower-alpha':case'lower-latin':return N(_0x1fce30,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1fce30,!0x0);case'lower-roman':return X(_0x1fce30,!0x1);case'upper-roman':return X(_0x1fce30,!0x0);default:return String(_0x1fce30);}}}function M(_0x51b178,_0x41dc9d){const _0x3be7d1=_0x41dc9d['toViewElement'](_0x51b178);return Array['from'](_0x3be7d1['getChildren']())['find'](_0x4cb6b6=>_0x4cb6b6['is']('element','ol')&&_0x4cb6b6['hasClass']('footnotes-list'));}function N(_0x18e449,_0x485eda){let _0x10367e='',_0x39bf27=_0x18e449;for(;_0x39bf27>0x0;){const _0x39df14=(_0x39bf27-0x1)%0x1a;_0x10367e=String['fromCharCode'](0x61+_0x39df14)+_0x10367e,_0x39bf27=Math['floor']((_0x39bf27-0x1)/0x1a);}return _0x485eda?_0x10367e['toUpperCase']():_0x10367e;}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(_0x348214,_0x5ade3b){let _0x572887='',_0x7e1cca=_0x348214;for(const {value:_0x5a4dff,numeral:_0x4a8d1c}of V)for(;_0x7e1cca>=_0x5a4dff;)_0x572887+=_0x4a8d1c,_0x7e1cca-=_0x5a4dff;return _0x5ade3b?_0x572887:_0x572887['toLowerCase']();}class H extends _0x2111e3{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5a0e45();['focusCycler'];constructor(_0x1ce46a,{styleButtonViews:_0x4a12ef,styleGridAriaLabel:_0x222c00}){super(_0x1ce46a),(this['focusCycler']=new _0x2a39a8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4a12ef,_0x222c00),[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 _0x1716a1 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1716a1['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 _0x5d2fb5=_0x5e6f20=>_0x5e6f20['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5d2fb5),this['keystrokes']['set']('arrowleft',_0x5d2fb5),this['keystrokes']['set']('arrowup',_0x5d2fb5),this['keystrokes']['set']('arrowdown',_0x5d2fb5);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x112cab,_0x2c2f6c){const _0x4d0929=new _0x2111e3(this['locale']);return _0x4d0929['children']=_0x4d0929['createCollection'](),_0x4d0929['children']['addMany'](_0x112cab),_0x4d0929['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2c2f6c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4d0929['children']}),_0x4d0929['children']['delegate']('execute')['to'](this),_0x4d0929['focus']=function(){for(const _0x215334 of this['children'])if(_0x215334 instanceof _0x144e48&&_0x215334['isOn'])return void _0x215334['focus']();this['children']['first']['focus']();},_0x4d0929['focusTracker']=new ot(),_0x4d0929['keystrokes']=new rt(),_0x4d0929['render'](),_0x4d0929['keystrokes']['listenTo'](_0x4d0929['element']),this['children']['add'](_0x4d0929),_0x4d0929;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x15b779=this['_createStartIndexPropertyView'](),_0x1824a6=[_0x15b779],_0x5d1ceb=new st(this['locale'],_0x1824a6);return _0x5d1ceb['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5d1ceb['buttonView']['bind']('isEnabled')['toMany'](_0x1824a6,'isEnabled',(..._0x47eceb)=>_0x47eceb['some'](_0x2b472e=>_0x2b472e)),_0x5d1ceb['buttonView']['on']('change:isEnabled',(_0x1a48ad,_0x1b8214,_0x12c017)=>{_0x12c017||(_0x5d1ceb['isCollapsed']=!0x0);}),this['children']['add'](_0x5d1ceb),[_0x15b779,_0x5d1ceb];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5368f4=new it(this['locale'],et);return _0x5368f4['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5368f4['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5368f4['fieldView']['on']('input',()=>{const _0x5577cf=_0x5368f4['fieldView']['element'],_0x11b21e=_0x5577cf['valueAsNumber'];Number['isNaN'](_0x11b21e)?_0x5368f4['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5577cf['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x11b21e}):_0x5368f4['errorText']=t(_0x11b21e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5368f4;}}class j extends _0x2a75bb{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x288164,_0x53a083];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x111969}=this,{componentFactory:_0x1e8bc8}=_0x111969['ui'];_0x111969['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1e8bc8['add']('footnotesStyle',function(_0x47462c){return _0x47c20d=>{const {t:t}=_0x47c20d,_0x246913=_0x47462c['commands']['get']('footnotesStyle'),_0x486c62=_0x20fb35(_0x47c20d),{buttonView:_0x42143d}=_0x486c62;return _0x486c62['class']='ck-footnotes-styles-dropdown',_0x486c62['bind']('isEnabled')['to'](_0x246913,'isEnabled'),_0x42143d['set']({'label':t('Footnotes\x20style'),'icon':_0x2d39d5,'tooltip':!0x0}),_0x486c62['once']('change:isOpen',()=>{const _0x18c8f5=function({editor:_0x4ec104,dropdownView:_0x5c2a1c}){const {t:t}=_0x4ec104['locale'],_0x1a239f=t('Footnotes\x20definitions\x20styles'),_0x6b86c1=function(_0x358578){const t=_0x358578['locale']['t'],_0x4b2ece=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x426d7f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2afc42},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x46d740},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x486752},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x30fe3c},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5d632a}];return _0x4b2ece['map'](function(_0x5962d5){const _0x4cfd23=_0x5962d5['locale'];return({label:_0x1542cc,icon:_0x15f2b2,tooltip:_0x19f38f,style:_0x34f0db})=>{const _0x478b7c=_0x5962d5['commands']['get']('footnotesStyle'),_0x1ef38d=new _0x144e48(_0x4cfd23);return _0x1ef38d['set']({'label':_0x1542cc,'icon':_0x15f2b2,'tooltip':_0x19f38f}),_0x1ef38d['bind']('isOn')['to'](_0x478b7c,'value',_0x3b7b14=>_0x3b7b14===_0x34f0db),_0x1ef38d['bind']('isEnabled')['to'](_0x478b7c,'isEnabled'),_0x1ef38d['on']('execute',()=>{_0x5962d5['execute']('footnotesStyle',{'value':_0x34f0db}),_0x5962d5['editing']['view']['focus']();}),_0x1ef38d;};}(_0x358578));}(_0x4ec104),_0x1ac769=new H(_0x4ec104['locale'],{'styleGridAriaLabel':_0x1a239f,'styleButtonViews':_0x6b86c1});return _0x1ac769['delegate']('execute')['to'](_0x5c2a1c),_0x1ac769['on']('footnotesListStart',(_0x104d6f,_0x2fa0f6)=>{_0x4ec104['execute']('footnotesStart',{'value':_0x2fa0f6['startIndex']});}),_0x1ac769;}({'editor':_0x47462c,'dropdownView':_0x486c62});_0x486c62['panelView']['children']['add'](_0x18c8f5);}),_0x486c62;};}(_0x111969));}['afterInit'](){const {editor:_0x2e3c7c}=this,{t:t}=_0x2e3c7c['locale'],_0x42eb13=_0x2e3c7c['plugins']['get'](_0x53a083),{defaultPositions:_0x506511}=_0x5c3fcf;_0x42eb13['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2e3c7c['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xef054e=>{let _0x3e6cfb=_0xef054e['getFirstPosition']()?.['parent'];return _0x3e6cfb?.['is']('$text')&&(_0x3e6cfb=_0x3e6cfb['parent']),_0x3e6cfb?.['is']('element')?_0x3e6cfb['findAncestor'](J):null;},'positions':[_0x506511['southArrowNorth'],_0x506511['southArrowNorthMiddleWest'],_0x506511['southArrowNorthMiddleEast'],_0x506511['southArrowNorthWest'],_0x506511['southArrowNorthEast'],_0x506511['northArrowSouth'],_0x506511['northArrowSouthMiddleWest'],_0x506511['northArrowSouthMiddleEast'],_0x506511['northArrowSouthWest'],_0x506511['northArrowSouthEast'],_0x506511['viewportStickyNorth']]});}}class ft extends _0x2a75bb{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-20251126.0",
3
+ "version": "0.0.0-nightly-20251127.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-20251126.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251126.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251126.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251126.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251126.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251126.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251126.0",
33
- "ckeditor5": "0.0.0-nightly-20251126.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251127.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251127.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251127.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251127.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251127.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251127.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251127.0",
33
+ "ckeditor5": "0.0.0-nightly-20251127.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 _0x590a77}from'ckeditor5/src/core.js';import{isWidget as _0x5e36c2,toWidget as _0x2a8ac9,toWidgetEditable as _0x3533e1}from'ckeditor5/src/widget.js';import{uid as _0x3c78c1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x190236,ClickObserver as _0x107b2}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x4ac229}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2f656e}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x590a77{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x4ac229];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x430e84}=this;_0x430e84['config']['define']('footnotes.multiBlock',!0x0),_0x430e84['commands']['add']('insertFootnote',new _0x2f656e(_0x430e84)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5a62b2){const _0x37bd4=_0x3434ed([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]),_0x3cc146=0x47a28506,_0x2d19d8=0x47a5ff36^_0x3cc146,_0x27e11b=window[_0x3434ed([0x44,0x61,0x74,0x65])][_0x3434ed([0x6e,0x6f,0x77])](),_0xa455f7=_0x5a62b2[_0x3434ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x398106=new window[(_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12dcb2=>{_0xa455f7[_0x3434ed([0x6f,0x6e,0x63,0x65])](_0x3434ed([0x72,0x65,0x61,0x64,0x79]),_0x12dcb2);}),_0x2e98c7={[_0x3434ed([0x6b,0x74,0x79])]:_0x3434ed([0x45,0x43]),[_0x3434ed([0x75,0x73,0x65])]:_0x3434ed([0x73,0x69,0x67]),[_0x3434ed([0x63,0x72,0x76])]:_0x3434ed([0x50,0x2d,0x32,0x35,0x36]),[_0x3434ed([0x78])]:_0x3434ed([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]),[_0x3434ed([0x79])]:_0x3434ed([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]),[_0x3434ed([0x61,0x6c,0x67])]:_0x3434ed([0x45,0x53,0x32,0x35,0x36])},_0x36616c=_0xa455f7[_0x3434ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3434ed([0x67,0x65,0x74])](_0x3434ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x345db5(){let _0xc3e597,_0x3556fd=null,_0x264135=null;try{if(_0x36616c==_0x3434ed([0x47,0x50,0x4c]))return _0x3434ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc3e597=_0xe75795(),!_0xc3e597)return _0x3434ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc3e597[_0x3434ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x264135=_0x108915(_0xc3e597[_0x3434ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc3e597[_0x3434ed([0x6a,0x74,0x69])])),await _0x21d58e()?_0x84ca48()?_0x16e621()?_0x3434ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11fc87()?(_0xc3e597[_0x3434ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3434ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3556fd=_0x27da35(_0x3434ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc3e597[_0x3434ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3434ed([0x74,0x72,0x69,0x61,0x6c])&&(_0x3556fd=_0x27da35(_0x3434ed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14a4a6()):_0x3434ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3434ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3434ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3434ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16e621(){const _0x3a3d47=[_0x3434ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3434ed([0x74,0x72,0x69,0x61,0x6c])][_0x3434ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc3e597[_0x3434ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27e11b/0x3e8:0xe10*_0x2d19d8;return _0xc3e597[_0x3434ed([0x65,0x78,0x70])]<_0x3a3d47;}function _0x84ca48(){const _0x26935c=_0xc3e597[_0x3434ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26935c&&(!!_0x26935c[_0x3434ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434ed([0x2a]))||!!_0x26935c[_0x3434ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434ed([0x46,0x4f,0x4f])));}function _0x11fc87(){const _0x33212d=_0xc3e597[_0x3434ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33212d||0x0==_0x33212d[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x443533}=new URL(window[_0x3434ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33212d[_0x3434ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443533))return!0x0;const _0x5db5e9=_0x443533[_0x3434ed([0x73,0x70,0x6c,0x69,0x74])](_0x3434ed([0x2e]));return _0x33212d[_0x3434ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14036c=>_0x14036c[_0x3434ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3434ed([0x2a])))[_0x3434ed([0x6d,0x61,0x70])](_0x483c03=>_0x483c03[_0x3434ed([0x73,0x70,0x6c,0x69,0x74])](_0x3434ed([0x2e])))[_0x3434ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a4289=>_0x3a4289[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5db5e9[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3434ed([0x6d,0x61,0x70])](_0x1ee3c3=>Array(_0x5db5e9[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ee3c3[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3434ed([0x66,0x69,0x6c,0x6c])](_0x1ee3c3[0x0]===_0x3434ed([0x2a])?_0x3434ed([0x2a]):'')[_0x3434ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ee3c3))[_0x3434ed([0x73,0x6f,0x6d,0x65])](_0x4f35a2=>_0x5db5e9[_0x3434ed([0x65,0x76,0x65,0x72,0x79])]((_0x188a6a,_0x5524ea)=>_0x4f35a2[_0x5524ea]===_0x188a6a||_0x4f35a2[_0x5524ea]===_0x3434ed([0x2a])));}function _0x14a4a6(){return _0x3556fd&&_0x264135?new window[(_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6d8292,_0x3c0114)=>{_0x3556fd[_0x3434ed([0x74,0x68,0x65,0x6e])](_0x6d8292,_0x3c0114),_0x264135[_0x3434ed([0x74,0x68,0x65,0x6e])](_0x236683=>{_0x236683!=_0x3434ed([0x56,0x61,0x6c,0x69,0x64])&&_0x6d8292(_0x236683);},_0x3c0114);}):_0x3556fd||_0x264135||_0x3434ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x108915(_0x2698af,_0x36f936){return new window[(_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53c62c=>{if(_0x19b607())return _0x53c62c(_0x3434ed([0x56,0x61,0x6c,0x69,0x64]));_0x1ec85a(),_0xa455f7[_0x3434ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3434ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f008f=!0x1;const _0x3d2ec3=_0x3c78c1();function _0x23486d(_0x242cf8){return!!_0x242cf8&&(typeof _0x242cf8===_0x3434ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x242cf8===_0x3434ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x242cf8[_0x3434ed([0x74,0x68,0x65,0x6e])]===_0x3434ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x242cf8[_0x3434ed([0x63,0x61,0x74,0x63,0x68])]===_0x3434ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fa200(_0x4f8222){_0x7a013a(_0x4f8222)[_0x3434ed([0x74,0x68,0x65,0x6e])](_0x4a5e82=>{if(!_0x4a5e82||_0x4a5e82[_0x3434ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3434ed([0x6f,0x6b]))return _0x3434ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4870d2(_0x13765c(_0x3d2ec3+_0x36f936))!=_0x4a5e82[_0x3434ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3434ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3434ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x3434ed([0x74,0x68,0x65,0x6e])](_0x344c2f=>(_0x19b270(),_0x344c2f),()=>{const _0x403807=_0x1634c4();return null==_0x403807?(_0x19b270(),_0x3434ed([0x56,0x61,0x6c,0x69,0x64])):_0x3434ed(_0x27e11b-_0x403807>(0x63ae0106^_0x3cc146)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3434ed([0x74,0x68,0x65,0x6e])](_0x53c62c)[_0x3434ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53c62c(_0x3434ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x134962=0x47946b86^_0x3cc146;function _0x19b270(){const _0x178406=_0x3434ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x4870d2(_0x13765c(_0x2698af)),_0x2a9d34=_0x3e1b0e(_0x4870d2(window[_0x3434ed([0x4d,0x61,0x74,0x68])][_0x3434ed([0x63,0x65,0x69,0x6c])](_0x27e11b/_0x134962)));window[_0x3434ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3434ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x178406,_0x2a9d34);}function _0x1634c4(){const _0x61eb2=_0x3434ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x4870d2(_0x13765c(_0x2698af)),_0x2673b4=window[_0x3434ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3434ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x61eb2);return _0x2673b4?window[_0x3434ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1b0e(_0x2673b4),0x10)*_0x134962:null;}function _0x7a013a(_0x105213){return new window[(_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x987f71,_0x451f3f)=>{_0x105213[_0x3434ed([0x74,0x68,0x65,0x6e])](_0x987f71,_0x451f3f),window[_0x3434ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x451f3f,0x47a351c6^_0x3cc146);});}}_0xa455f7[_0x3434ed([0x6f,0x6e])](_0x3434ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51bda2,_0x5db303)=>{if(_0x5db303[0x0]!=_0x2698af)return _0x53c62c(_0x3434ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5db303[0x1]={..._0x5db303[0x1],[_0x3434ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d2ec3};},{[_0x3434ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3434ed([0x68,0x69,0x67,0x68])}),_0xa455f7[_0x3434ed([0x6f,0x6e])](_0x3434ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbd7eb6=>{_0x23486d(_0xbd7eb6[_0x3434ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f008f=!0x0,_0x4fa200(_0xbd7eb6[_0x3434ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3434ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3434ed([0x6c,0x6f,0x77])}),_0x398106[_0x3434ed([0x74,0x68,0x65,0x6e])](()=>{_0x3f008f||_0x53c62c(_0x3434ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19b607(){return _0xa455f7[_0x3434ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3434ed([0x76,0x69,0x65,0x77])][_0x3434ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3434ed([0x61,0x75,0x74,0x6f]);}function _0x1ec85a(){_0xa455f7[_0x3434ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3434ed([0x76,0x69,0x65,0x77])][_0x3434ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3434ed([0x61,0x75,0x74,0x6f]);}}function _0x27da35(_0x366dfa){const _0x49d3f0=[new window[(_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35f39a=>setTimeout(_0x35f39a,0x47abbbca^_0x3cc146)),_0x398106[_0x3434ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ecd2f=>{let _0xed8f6e=0x0;_0xa455f7[_0x3434ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x3434ed([0x6f,0x6e])](_0x3434ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x335a21,_0x5a88a9)=>{_0x5a88a9[0x0][_0x3434ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xed8f6e++,_0xed8f6e==(0x47a284fe^_0x3cc146)&&(_0x3ecd2f(),_0x335a21[_0x3434ed([0x6f,0x66,0x66])]());});}))];return window[_0x3434ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3434ed([0x72,0x61,0x63,0x65])](_0x49d3f0)[_0x3434ed([0x74,0x68,0x65,0x6e])](()=>_0x366dfa);}async function _0xb9d03b(){await _0x398106,_0xa455f7[_0x3434ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x3434ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2f82,_0xa455f7[_0x3434ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x3434ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2f82,_0xa455f7[_0x3434ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3434ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4188f6(_0x247a79){const _0x57a445=_0x3455db();_0xa455f7[_0x57a445]=_0x3434ed([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x247a79,_0x247a79!=_0x3434ed([0x56,0x61,0x6c,0x69,0x64])&&_0xb9d03b();}function _0x3455db(){const _0x8c8670=window[_0x3434ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3434ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3434ed([0x6e,0x6f,0x77])]())[_0x3434ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3434ed([0x2e]),'');let _0x6fce30=_0x3434ed([0x75]);for(let _0x4bdc28=0x0;_0x4bdc28<_0x8c8670[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bdc28+=0x2){let _0xd1f258=window[_0x3434ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c8670[_0x3434ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bdc28,_0x4bdc28+0x2));_0xd1f258>=_0x37bd4[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd1f258-=_0x37bd4[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6fce30+=_0x37bd4[_0xd1f258];}return _0x6fce30;}function _0xe75795(){const _0x13ee12=_0x36616c[_0x3434ed([0x73,0x70,0x6c,0x69,0x74])](_0x3434ed([0x2e]));if(0x3!=_0x13ee12[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x510c9b(_0x13ee12[0x1]);function _0x510c9b(_0x2057eb){const _0x2a6736=_0x291d6a(_0x2057eb);return _0x2a6736&&_0x34e823()?_0x2a6736:null;function _0x34e823(){const _0xc9a924=_0x2a6736[_0x3434ed([0x6a,0x74,0x69])],_0x17d5b6=window[_0x3434ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc9a924[_0x3434ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc9a924[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50dba7={..._0x2a6736,[_0x3434ed([0x6a,0x74,0x69])]:_0xc9a924[_0x3434ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc9a924[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50dba7[_0x3434ed([0x76,0x63])],_0x13765c(_0x50dba7)==_0x17d5b6;}}}async function _0x21d58e(){let _0x40c0bc=!0x0;try{const _0x4dc1e3=_0x36616c[_0x3434ed([0x73,0x70,0x6c,0x69,0x74])](_0x3434ed([0x2e])),[_0x1bf15c,_0x45bcc2,_0x1d5e5e]=_0x4dc1e3;return _0x1c3121(_0x1bf15c),await _0x4bcca3(_0x1bf15c,_0x45bcc2,_0x1d5e5e),_0x40c0bc;}catch{return!0x1;}function _0x1c3121(_0x2fa4fe){const _0x23acb3=_0x291d6a(_0x2fa4fe);_0x23acb3&&_0x23acb3[_0x3434ed([0x61,0x6c,0x67])]==_0x3434ed([0x45,0x53,0x32,0x35,0x36])||(_0x40c0bc=!0x1);}async function _0x4bcca3(_0x4d62b4,_0x29f097,_0x15a826){const _0x25100f=window[_0x3434ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3434ed([0x66,0x72,0x6f,0x6d])](_0x451bfb(_0x15a826),_0x568ea2=>_0x568ea2[_0x3434ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x553a16=new window[(_0x3434ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3434ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d62b4+_0x3434ed([0x2e])+_0x29f097),_0xf4eb4c=window[_0x3434ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3434ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf4eb4c)return;const _0x4d9dad=await _0xf4eb4c[_0x3434ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3434ed([0x6a,0x77,0x6b]),_0x2e98c7,{[_0x3434ed([0x6e,0x61,0x6d,0x65])]:_0x3434ed([0x45,0x43,0x44,0x53,0x41]),[_0x3434ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3434ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3434ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf4eb4c[_0x3434ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3434ed([0x6e,0x61,0x6d,0x65])]:_0x3434ed([0x45,0x43,0x44,0x53,0x41]),[_0x3434ed([0x68,0x61,0x73,0x68])]:{[_0x3434ed([0x6e,0x61,0x6d,0x65])]:_0x3434ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d9dad,_0x25100f,_0x553a16)||(_0x40c0bc=!0x1);}}function _0x291d6a(_0x539133){return _0x539133[_0x3434ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3434ed([0x65,0x79]))?JSON[_0x3434ed([0x70,0x61,0x72,0x73,0x65])](_0x451bfb(_0x539133)):null;}function _0x451bfb(_0x24a14a){return window[_0x3434ed([0x61,0x74,0x6f,0x62])](_0x24a14a[_0x3434ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3434ed([0x2b]))[_0x3434ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3434ed([0x2f])));}function _0x13765c(_0x3f2b2d){let _0x2ced17=0x1505;function _0x4ee613(_0xc18ef4){for(let _0x57d474=0x0;_0x57d474<_0xc18ef4[_0x3434ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57d474++){const _0x430402=_0xc18ef4[_0x3434ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57d474);_0x2ced17=(_0x2ced17<<0x5)+_0x2ced17+_0x430402,_0x2ced17&=_0x2ced17;}}function _0x20dc04(_0x5b532c){Array[_0x3434ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b532c)?_0x5b532c[_0x3434ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20dc04):_0x5b532c&&typeof _0x5b532c==_0x3434ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3434ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b532c)[_0x3434ed([0x73,0x6f,0x72,0x74])]()[_0x3434ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24ab40,_0x4a4abc])=>{_0x4ee613(_0x24ab40),_0x20dc04(_0x4a4abc);}):_0x4ee613(window[_0x3434ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b532c));}return _0x20dc04(_0x3f2b2d),_0x2ced17>>>0x0;}function _0x4870d2(_0x2cfad3){return _0x2cfad3[_0x3434ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3434ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3434ed([0x30]));}function _0x3e1b0e(_0x5b0727){return _0x5b0727[_0x3434ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3434ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3434ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f2f82(){}function _0x3434ed(_0xcc24f9){return _0xcc24f9['map'](_0x21c6a7=>String['fromCharCode'](_0x21c6a7))['join']('');}_0x4188f6(await _0x345db5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3147b6){const {plugins:_0x3dced2,editing:_0xb54875,model:_0x18375f}=this['editor'],_0x13f453=_0x3dced2['get'](_0x4ac229)['getFootnote'](_0x3147b6);return!!_0x13f453&&(_0x18375f['change'](_0xe73556=>{_0xe73556['setSelection'](_0xe73556['createPositionAt'](_0x13f453['definition'],'end'));}),_0xb54875['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xcf22b4){const {plugins:_0x131562,editing:_0x5576ab,model:_0x282915}=this['editor'],_0x8afacc=_0x131562['get'](_0x4ac229)['getFootnote'](_0xcf22b4);return!!_0x8afacc&&(_0x282915['change'](_0x3879c9=>{_0x3879c9['setSelection'](_0x8afacc['reference'],'on');}),_0x5576ab['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4e7952}=this['editor']['model'],_0x4dacde=this['editor']['config']['get']('footnotes.multiBlock');_0x4e7952['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4e7952['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4e7952['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4dacde?_0x4e7952['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4e7952['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4e7952['addChildCheck'](_0x50e26c=>{for(const _0x24d5f9 of _0x50e26c)if('footnoteDefinition'===_0x24d5f9['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x40af29}=this,{conversion:_0x306f4a,editing:_0x4c4c38}=_0x40af29,{t:t}=_0x40af29['locale'];_0x306f4a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x98ec7f,{writer:_0x403be7,consumable:_0x3de51b})=>{const _0x349110=_0x98ec7f['getChild'](0x0);if(!_0x349110||!_0x349110['is']('element','a'))return null;const _0x2bb3a0=_0x349110['getAttribute']('href')||'';if(!_0x2bb3a0['startsWith']('#'))return null;const _0x52e220=_0x2bb3a0['replace'](/^#/,'');if(!_0x52e220)return null;_0x3de51b['consume'](_0x349110,{'name':!0x0,'attributes':['href']});for(const {item:_0x4a16d1}of _0x4c4c38['view']['createRangeIn'](_0x349110))_0x4a16d1['is']('$textProxy')?_0x3de51b['consume'](_0x4a16d1['textNode'],{'name':!0x0}):_0x4a16d1['is']('element')&&_0x3de51b['consume'](_0x4a16d1,{'name':!0x0});return _0x403be7['createElement']('footnoteRef',{'footnoteId':_0x52e220});}}),_0x306f4a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x539f99,{writer:_0x4368e4})=>D(_0x539f99,_0x4368e4)}),_0x306f4a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x23f197,{writer:_0x3f625f})=>{const _0x2d53ed=_0x23f197['getAttribute']('footnoteCounter');return _0x2a8ac9(D(_0x23f197,_0x3f625f),_0x3f625f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2d53ed)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4f9cee}=this,{t:t}=_0x4f9cee['locale'],{conversion:_0x2b077f}=_0x4f9cee;_0x2b077f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2b077f['for']('upcast')['add'](_0x4d838d=>{_0x4d838d['on']('element:ol',(_0x55b084,_0x58dd14,_0x2ffe84)=>{const _0x3f01ce=_0x58dd14['viewItem'];if(!_0x3f01ce['hasClass']('footnotes-list')||!_0x58dd14['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2ffe84['consumable']['consume'](_0x3f01ce,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x598fdd,modelCursor:_0x17a951}=_0x2ffe84['convertChildren'](_0x58dd14['viewItem'],_0x58dd14['modelCursor']);_0x58dd14['modelRange']=_0x598fdd,_0x58dd14['modelCursor']=_0x17a951;}),_0x4d838d['on']('element:hr',(_0x1b1c96,_0x477c19,_0x4e6f94)=>{const _0x524162=_0x477c19['viewItem'];_0x524162['hasClass']('footnotes-divider')&&_0x477c19['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4e6f94['consumable']['consume'](_0x524162,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2b077f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5aa629,{writer:_0x27e6af})=>v(_0x27e6af)}),_0x2b077f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1bb0ac,{writer:_0x1445c2})=>{const _0xe510c9=v(_0x1445c2,{'data-footnotes-list-label':t('Footnotes')}),_0x238109=_0x2a8ac9(_0xe510c9,_0x1445c2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1445c2['setCustomProperty']('footnotesDefinitions',!0x0,_0x238109),_0x238109;}});}['_defineDefinitionConverters'](){const {editor:_0x5711c7}=this,{conversion:_0x48cde9,locale:_0x456e2e}=_0x5711c7,_0x5e84dd=_0x5711c7['config']['get']('footnotes.multiBlock');_0x48cde9['for']('upcast')['add'](_0x134f21=>{_0x134f21['on']('element:li',(_0x351ba3,_0xab6b99,_0xe6569b)=>{const _0x8fb996=_0xab6b99['viewItem'];if(!_0x8fb996['hasClass']('footnote-definition')||!_0x8fb996['getAttribute']('id'))return;const _0xd3599b=_0x8fb996['parent'];if(!_0xd3599b['is']('element','ol')||!_0xd3599b['hasClass']('footnotes-list'))return;if(!_0xe6569b['consumable']['test'](_0x8fb996,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3014f5=_0xe6569b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x8fb996['getAttribute']('id')});if(!_0xe6569b['safeInsert'](_0x3014f5,_0xab6b99['modelCursor']))return;_0xe6569b['consumable']['consume'](_0x8fb996,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x9d0071=Array['from'](_0x8fb996['getChildren']())['find'](_0x498a39=>_0x498a39['is']('element')&&_0x498a39['hasClass']('footnote-content'));for(const _0x48383c of _0x8fb996['getChildren']())_0x48383c['is']('element')&&(_0xe6569b['consumable']['consume'](_0x48383c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xe6569b['consumable']['consume'](_0x48383c,{'name':!0x0,'classes':'footnote-content'}));if(_0x9d0071){if(_0x5e84dd)_0xe6569b['convertChildren'](_0x9d0071,_0x3014f5);else{const _0x5bc101=_0xe6569b['writer']['createElement']('footnoteInlineContent');_0xe6569b['writer']['insert'](_0x5bc101,_0x3014f5),_0xe6569b['convertChildren'](_0x9d0071,_0x5bc101);}}_0xe6569b['updateConversionResult'](_0x3014f5,_0xab6b99);});}),_0x48cde9['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x565e3a,{writer:_0x11ab5f})=>b(_0x565e3a,_0x11ab5f,_0x456e2e,{'dataPipeline':!0x0})}),_0x48cde9['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d3ca7,{writer:_0x4abe03})=>b(_0x4d3ca7,_0x4abe03,_0x456e2e)});}['_defineBogusParagraphConverters'](){const {editor:_0x3dc377}=this,{conversion:_0x12361c}=_0x3dc377;_0x3dc377['config']['get']('footnotes.multiBlock')?(_0x12361c['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x12361c['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3dc377['model']['document'],'change:data',()=>{!function(_0x5b0025,_0xb27d60){const _0x33f5e7=_0x5b0025['document']['differ'],_0xae2d6a=new Set();for(const _0x2bf68 of _0x33f5e7['getChanges']()){const _0x51bbaa='attribute'==_0x2bf68['type']?_0x2bf68['range']['start']['parent']:_0x2bf68['position']['parent'];_0x51bbaa['is']('element','footnoteDefinition')&&_0xae2d6a['add'](_0x51bbaa);}for(const _0x18d290 of _0xae2d6a['values']()){const _0x252797=Array['from'](_0x18d290['getChildren']())['filter'](_0x55b30f=>g(_0x55b30f,_0xb27d60['mapper']));for(const _0x31ef86 of _0x252797)_0xb27d60['reconvertItem'](_0x31ef86);}}(_0x3dc377['model'],_0x3dc377['editing']);})):(_0x12361c['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x12361c['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x10eeee,{writer:_0x2b2641})=>{const _0x239756=_0x2b2641['createContainerElement']('span');return _0x2b2641['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x239756),_0x239756;}}));}['_defineKeyboardHandlers'](){const {editor:_0x55a0eb}=this,{editing:_0x1c42ae,t:t}=_0x55a0eb,_0x5524ed=_0x55a0eb['model']['document']['selection'];_0x55a0eb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x55a0eb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1c42ae['view']['document'],'enter',(_0x39cb1a,_0x1b81c1)=>{const _0x1b052d=function(_0x26dfd2){const _0x21b44e=_0x26dfd2['getSelectedElement']();if(_0x21b44e?.['is']('element','footnoteRef'))return _0x21b44e;return null;}(_0x5524ed);if(_0x1b052d){const _0x3358b2=_0x1b052d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3358b2),_0x1b81c1['preventDefault'](),_0x39cb1a['stop']();}},{'context':_0x5e36c2});}['_defineClickHandlers'](){const {editor:_0x4bd226}=this,{editing:_0x1225b3}=_0x4bd226;_0x4bd226['editing']['view']['addObserver'](_0x190236),_0x4bd226['editing']['view']['addObserver'](_0x107b2);let _0x37442b=!0x1;this['listenTo'](_0x1225b3['view']['document'],'pointerdown',(_0x36de72,_0x2e52a1)=>{const {target:_0x231558}=_0x2e52a1,_0x184523=_0x1225b3['view']['document']['selection'];_0x37442b=!!(_0x231558?.['is']('element','a')&&_0x231558['parent']?.['is']('element','sup')&&_0x231558['parent']['hasClass']('footnote'))&&_0x184523['getSelectedElement']()===_0x231558['parent'];},{'priority':'high'}),this['listenTo'](_0x1225b3['view']['document'],'click',(_0x505c5c,_0xd504d2)=>{const {target:_0x4abea1}=_0xd504d2;if(!_0x4abea1?.['is']('element','a'))return;if(_0x4abea1['parent']?.['is']('element','sup')&&_0x4abea1['parent']['hasClass']('footnote')&&!_0x37442b)return void _0xd504d2['preventDefault']();let _0x117e5b=_0x4abea1['getAttribute']('href');if(!_0x117e5b?.['startsWith']('#'))return;_0x117e5b=_0x117e5b['slice'](0x1);let _0x112120=!0x1;(_0x117e5b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x117e5b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x117e5b))&&(_0x112120=!0x0),_0x112120&&(_0xd504d2['preventDefault'](),_0x505c5c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x31aa02}={}){return(_0x11c864,{writer:_0x38f0a6})=>{if(!p(_0x11c864))return null;if(!_0x31aa02)return _0x38f0a6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x597462=_0x38f0a6['createContainerElement']('p');return _0x38f0a6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x597462),_0x597462;};}function p(_0x57d3c8){const {parent:_0x48a382}=_0x57d3c8;if(!_0x48a382?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x48a382['childCount'])return!0x1;for(const _0x53348e of _0x57d3c8['getAttributeKeys']())if(!_0x53348e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x53348e)return!0x1;return!0x0;}function g(_0x5d5731,_0x2bd64f){if(!_0x5d5731['is']('element','paragraph'))return!0x1;const _0x2dc830=_0x2bd64f['toViewElement'](_0x5d5731);return!!_0x2dc830&&p(_0x5d5731)!==_0x2dc830['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4856da){return _0x5e36c2(_0x4856da)&&_0x4856da['is']('containerElement')&&!!_0x4856da['getCustomProperty']('footnotesDefinitions');}function v(_0x5205f7,_0x5643eb={}){const _0x43cede=_0x5205f7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3a9292=_0x5205f7['createContainerElement']('ol',{'class':'footnotes-list'},_0x5205f7['createSlot']());return _0x5205f7['createContainerElement']('div',{'class':'footnotes',..._0x5643eb},[_0x43cede,_0x3a9292]);}function D(_0xd9ada2,_0xe01201){const _0x5933bd=_0xd9ada2['getAttribute']('footnoteId'),_0x9a2eed=_0xd9ada2['getAttribute']('footnoteCounter'),_0x6258ff=_0xe01201['createUIElement']('a',{'href':'#'+_0x5933bd},function(_0x5eb735){const _0x36d493=this['toDomElement'](_0x5eb735);return _0x36d493['textContent']=_0x9a2eed,_0x36d493;}),_0x4371d=_0xe01201['createContainerElement']('sup',{'id':'ref-'+_0x5933bd,'class':'footnote'},[_0x6258ff]);return _0x4371d['getFillerOffset']=()=>null,_0x4371d;}function b(_0x5b49c4,_0x588c9f,_0x47280d,{dataPipeline:_0x1c8681}={}){const {t:t}=_0x47280d,_0x2e30c7=_0x5b49c4['getAttribute']('footnoteId'),_0xba4156=_0x588c9f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2e30c7},function(_0x31f0a2){const _0x1520c0=this['toDomElement'](_0x31f0a2);return _0x1520c0['innerText']='^',_0x1520c0;}),_0x3ecb68=_0x1c8681?_0x588c9f['createContainerElement']('div',{'class':'footnote-content'}):_0x3533e1(_0x588c9f['createEditableElement']('div',{'class':'footnote-content'}),_0x588c9f,{'label':t('Footnote\x20content.')});return _0x588c9f['insert'](_0x588c9f['createPositionAt'](_0x3ecb68,0x0),_0x588c9f['createSlot']()),_0x588c9f['createContainerElement']('li',{'class':'footnote-definition','id':_0x2e30c7},[_0xba4156,_0x3ecb68]);}
23
+ import{Plugin as _0x1cc16c}from'ckeditor5/src/core.js';import{isWidget as _0x2f321f,toWidget as _0x1cc65a,toWidgetEditable as _0x41fca0}from'ckeditor5/src/widget.js';import{uid as _0x4dac05}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4bb29e,ClickObserver as _0x208f48}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x44dbe9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x22334e}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1cc16c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x44dbe9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3cbeaa}=this;_0x3cbeaa['config']['define']('footnotes.multiBlock',!0x0),_0x3cbeaa['commands']['add']('insertFootnote',new _0x22334e(_0x3cbeaa)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4986f5){const _0x5c75ba=_0x3d3ea2([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]),_0x16602f=0x47a28506,_0x327c73=0x47a5ff4e^_0x16602f,_0x41f35e=window[_0x3d3ea2([0x44,0x61,0x74,0x65])][_0x3d3ea2([0x6e,0x6f,0x77])](),_0x584795=_0x4986f5[_0x3d3ea2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x203536=new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x129f9c=>{_0x584795[_0x3d3ea2([0x6f,0x6e,0x63,0x65])](_0x3d3ea2([0x72,0x65,0x61,0x64,0x79]),_0x129f9c);}),_0x3b2244={[_0x3d3ea2([0x6b,0x74,0x79])]:_0x3d3ea2([0x45,0x43]),[_0x3d3ea2([0x75,0x73,0x65])]:_0x3d3ea2([0x73,0x69,0x67]),[_0x3d3ea2([0x63,0x72,0x76])]:_0x3d3ea2([0x50,0x2d,0x32,0x35,0x36]),[_0x3d3ea2([0x78])]:_0x3d3ea2([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]),[_0x3d3ea2([0x79])]:_0x3d3ea2([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]),[_0x3d3ea2([0x61,0x6c,0x67])]:_0x3d3ea2([0x45,0x53,0x32,0x35,0x36])},_0x40fa4b=_0x584795[_0x3d3ea2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d3ea2([0x67,0x65,0x74])](_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2915db(){let _0x26d663,_0x3dcc06=null,_0x13e5ea=null;try{if(_0x40fa4b==_0x3d3ea2([0x47,0x50,0x4c]))return _0x3d3ea2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26d663=_0x17857b(),!_0x26d663)return _0x3d3ea2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26d663[_0x3d3ea2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13e5ea=_0x3e33f8(_0x26d663[_0x3d3ea2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26d663[_0x3d3ea2([0x6a,0x74,0x69])])),await _0x4ab2fe()?_0x2d6dc4()?_0x1cc2d3()?_0x3d3ea2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32705b()?(_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3ea2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3dcc06=_0x353918(_0x3d3ea2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3ea2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3dcc06=_0x353918(_0x3d3ea2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17685b()):_0x3d3ea2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3ea2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d3ea2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d3ea2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cc2d3(){const _0x20397e=[_0x3d3ea2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d3ea2([0x74,0x72,0x69,0x61,0x6c])][_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41f35e/0x3e8:0xe10*_0x327c73;return _0x26d663[_0x3d3ea2([0x65,0x78,0x70])]<_0x20397e;}function _0x2d6dc4(){const _0x2b4411=_0x26d663[_0x3d3ea2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b4411&&(!!_0x2b4411[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3ea2([0x2a]))||!!_0x2b4411[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3ea2([0x46,0x4f,0x4f])));}function _0x32705b(){const _0x3be545=_0x26d663[_0x3d3ea2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3be545||0x0==_0x3be545[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb20236}=new URL(window[_0x3d3ea2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3be545[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb20236))return!0x0;const _0x443a64=_0xb20236[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e]));return _0x3be545[_0x3d3ea2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bc961=>_0x5bc961[_0x3d3ea2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3ea2([0x2a])))[_0x3d3ea2([0x6d,0x61,0x70])](_0x4c3856=>_0x4c3856[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e])))[_0x3d3ea2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26383a=>_0x26383a[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x443a64[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3ea2([0x6d,0x61,0x70])](_0x41de5e=>Array(_0x443a64[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x41de5e[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3ea2([0x66,0x69,0x6c,0x6c])](_0x41de5e[0x0]===_0x3d3ea2([0x2a])?_0x3d3ea2([0x2a]):'')[_0x3d3ea2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x41de5e))[_0x3d3ea2([0x73,0x6f,0x6d,0x65])](_0x1353f7=>_0x443a64[_0x3d3ea2([0x65,0x76,0x65,0x72,0x79])]((_0x37053a,_0x277f1d)=>_0x1353f7[_0x277f1d]===_0x37053a||_0x1353f7[_0x277f1d]===_0x3d3ea2([0x2a])));}function _0x17685b(){return _0x3dcc06&&_0x13e5ea?new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x461b3f,_0x3864d4)=>{_0x3dcc06[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x461b3f,_0x3864d4),_0x13e5ea[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x5888ba=>{_0x5888ba!=_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64])&&_0x461b3f(_0x5888ba);},_0x3864d4);}):_0x3dcc06||_0x13e5ea||_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e33f8(_0x4c8fdd,_0x2f13bd){return new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca74b=>{if(_0xb619e3())return _0x1ca74b(_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64]));_0x232b24(),_0x584795[_0x3d3ea2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d3ea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x352248=!0x1;const _0x304249=_0x4dac05();function _0x1cceae(_0x2bbf34){return!!_0x2bbf34&&(typeof _0x2bbf34===_0x3d3ea2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bbf34===_0x3d3ea2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bbf34[_0x3d3ea2([0x74,0x68,0x65,0x6e])]===_0x3d3ea2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bbf34[_0x3d3ea2([0x63,0x61,0x74,0x63,0x68])]===_0x3d3ea2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45c0dc(_0x4060a2){_0x4f1bf5(_0x4060a2)[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x4d6366=>{if(!_0x4d6366||_0x4d6366[_0x3d3ea2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d3ea2([0x6f,0x6b]))return _0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2801d8(_0x39c0bb(_0x304249+_0x2f13bd))!=_0x4d6366[_0x3d3ea2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x1874e3=>(_0xe115e1(),_0x1874e3),()=>{const _0x26d7cb=_0x3636e3();return null==_0x26d7cb?(_0xe115e1(),_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64])):_0x3d3ea2(_0x41f35e-_0x26d7cb>(0x63ae0106^_0x16602f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x1ca74b)[_0x3d3ea2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ca74b(_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c245d=0x47946b86^_0x16602f;function _0xe115e1(){const _0x535f1e=_0x3d3ea2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2801d8(_0x39c0bb(_0x4c8fdd)),_0x41abaf=_0x14750e(_0x2801d8(window[_0x3d3ea2([0x4d,0x61,0x74,0x68])][_0x3d3ea2([0x63,0x65,0x69,0x6c])](_0x41f35e/_0x3c245d)));window[_0x3d3ea2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3ea2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x535f1e,_0x41abaf);}function _0x3636e3(){const _0x26a51e=_0x3d3ea2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2801d8(_0x39c0bb(_0x4c8fdd)),_0x3e6323=window[_0x3d3ea2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3ea2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26a51e);return _0x3e6323?window[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14750e(_0x3e6323),0x10)*_0x3c245d:null;}function _0x4f1bf5(_0x525f38){return new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fd47b,_0xb7257b)=>{_0x525f38[_0x3d3ea2([0x74,0x68,0x65,0x6e])](_0x3fd47b,_0xb7257b),window[_0x3d3ea2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb7257b,0x47a351c6^_0x16602f);});}}_0x584795[_0x3d3ea2([0x6f,0x6e])](_0x3d3ea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bf9dc,_0x437a45)=>{if(_0x437a45[0x0]!=_0x4c8fdd)return _0x1ca74b(_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x437a45[0x1]={..._0x437a45[0x1],[_0x3d3ea2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x304249};},{[_0x3d3ea2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3ea2([0x68,0x69,0x67,0x68])}),_0x584795[_0x3d3ea2([0x6f,0x6e])](_0x3d3ea2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b414a=>{_0x1cceae(_0x1b414a[_0x3d3ea2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x352248=!0x0,_0x45c0dc(_0x1b414a[_0x3d3ea2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d3ea2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3ea2([0x6c,0x6f,0x77])}),_0x203536[_0x3d3ea2([0x74,0x68,0x65,0x6e])](()=>{_0x352248||_0x1ca74b(_0x3d3ea2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb619e3(){return _0x584795[_0x3d3ea2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3ea2([0x76,0x69,0x65,0x77])][_0x3d3ea2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d3ea2([0x61,0x75,0x74,0x6f]);}function _0x232b24(){_0x584795[_0x3d3ea2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3ea2([0x76,0x69,0x65,0x77])][_0x3d3ea2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3ea2([0x61,0x75,0x74,0x6f]);}}function _0x353918(_0x28bc04){const _0x5d1031=[new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0c95e=>setTimeout(_0xa0c95e,0x47abbbca^_0x16602f)),_0x203536[_0x3d3ea2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a9baf=>{let _0x524359=0x0;_0x584795[_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3ea2([0x6f,0x6e])](_0x3d3ea2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1de35a,_0x5dc9ff)=>{_0x5dc9ff[0x0][_0x3d3ea2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x524359++,_0x524359==(0x47a284fe^_0x16602f)&&(_0x1a9baf(),_0x1de35a[_0x3d3ea2([0x6f,0x66,0x66])]());});}))];return window[_0x3d3ea2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3ea2([0x72,0x61,0x63,0x65])](_0x5d1031)[_0x3d3ea2([0x74,0x68,0x65,0x6e])](()=>_0x28bc04);}async function _0x53b7a4(){await _0x203536,_0x584795[_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3ea2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x586a5b,_0x584795[_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3ea2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x586a5b,_0x584795[_0x3d3ea2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d3ea2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15aa31(_0x584181){const _0x43938a=_0xe52af5();_0x584795[_0x43938a]=_0x3d3ea2([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x584181,_0x584181!=_0x3d3ea2([0x56,0x61,0x6c,0x69,0x64])&&_0x53b7a4();}function _0xe52af5(){const _0x2fb699=window[_0x3d3ea2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d3ea2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d3ea2([0x6e,0x6f,0x77])]())[_0x3d3ea2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d3ea2([0x2e]),'');let _0xbbeaa7=_0x3d3ea2([0x75]);for(let _0xa0b471=0x0;_0xa0b471<_0x2fb699[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa0b471+=0x2){let _0x3fff9b=window[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb699[_0x3d3ea2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa0b471,_0xa0b471+0x2));_0x3fff9b>=_0x5c75ba[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fff9b-=_0x5c75ba[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbbeaa7+=_0x5c75ba[_0x3fff9b];}return _0xbbeaa7;}function _0x17857b(){const _0x27ae10=_0x40fa4b[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e]));if(0x3!=_0x27ae10[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x265edb(_0x27ae10[0x1]);function _0x265edb(_0x514f2e){const _0x3dd72d=_0x45782e(_0x514f2e);return _0x3dd72d&&_0x3aa996()?_0x3dd72d:null;function _0x3aa996(){const _0x24dc1e=_0x3dd72d[_0x3d3ea2([0x6a,0x74,0x69])],_0x110a63=window[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24dc1e[_0x3d3ea2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24dc1e[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd31ced={..._0x3dd72d,[_0x3d3ea2([0x6a,0x74,0x69])]:_0x24dc1e[_0x3d3ea2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24dc1e[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd31ced[_0x3d3ea2([0x76,0x63])],_0x39c0bb(_0xd31ced)==_0x110a63;}}}async function _0x4ab2fe(){let _0x1ac1ae=!0x0;try{const _0x4dc70d=_0x40fa4b[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])](_0x3d3ea2([0x2e])),[_0x2451e5,_0x2b94ab,_0x4979df]=_0x4dc70d;return _0x3a48ac(_0x2451e5),await _0x37c58f(_0x2451e5,_0x2b94ab,_0x4979df),_0x1ac1ae;}catch{return!0x1;}function _0x3a48ac(_0x7aa957){const _0x27ce41=_0x45782e(_0x7aa957);_0x27ce41&&_0x27ce41[_0x3d3ea2([0x61,0x6c,0x67])]==_0x3d3ea2([0x45,0x53,0x32,0x35,0x36])||(_0x1ac1ae=!0x1);}async function _0x37c58f(_0x2d5e13,_0xbef811,_0x4c1a66){const _0x535c1b=window[_0x3d3ea2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d3ea2([0x66,0x72,0x6f,0x6d])](_0x172ca9(_0x4c1a66),_0x4a3db2=>_0x4a3db2[_0x3d3ea2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x233ae3=new window[(_0x3d3ea2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d3ea2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d5e13+_0x3d3ea2([0x2e])+_0xbef811),_0x57ac77=window[_0x3d3ea2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d3ea2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57ac77)return;const _0x583056=await _0x57ac77[_0x3d3ea2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d3ea2([0x6a,0x77,0x6b]),_0x3b2244,{[_0x3d3ea2([0x6e,0x61,0x6d,0x65])]:_0x3d3ea2([0x45,0x43,0x44,0x53,0x41]),[_0x3d3ea2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d3ea2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d3ea2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57ac77[_0x3d3ea2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d3ea2([0x6e,0x61,0x6d,0x65])]:_0x3d3ea2([0x45,0x43,0x44,0x53,0x41]),[_0x3d3ea2([0x68,0x61,0x73,0x68])]:{[_0x3d3ea2([0x6e,0x61,0x6d,0x65])]:_0x3d3ea2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x583056,_0x535c1b,_0x233ae3)||(_0x1ac1ae=!0x1);}}function _0x45782e(_0x2d96aa){return _0x2d96aa[_0x3d3ea2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d3ea2([0x65,0x79]))?JSON[_0x3d3ea2([0x70,0x61,0x72,0x73,0x65])](_0x172ca9(_0x2d96aa)):null;}function _0x172ca9(_0x31c474){return window[_0x3d3ea2([0x61,0x74,0x6f,0x62])](_0x31c474[_0x3d3ea2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d3ea2([0x2b]))[_0x3d3ea2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d3ea2([0x2f])));}function _0x39c0bb(_0x506028){let _0x296e3f=0x1505;function _0x368dc8(_0xacb296){for(let _0x2881f7=0x0;_0x2881f7<_0xacb296[_0x3d3ea2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2881f7++){const _0x1acbe6=_0xacb296[_0x3d3ea2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2881f7);_0x296e3f=(_0x296e3f<<0x5)+_0x296e3f+_0x1acbe6,_0x296e3f&=_0x296e3f;}}function _0x541fc5(_0xae7c26){Array[_0x3d3ea2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xae7c26)?_0xae7c26[_0x3d3ea2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x541fc5):_0xae7c26&&typeof _0xae7c26==_0x3d3ea2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d3ea2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xae7c26)[_0x3d3ea2([0x73,0x6f,0x72,0x74])]()[_0x3d3ea2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59173c,_0x1e7c6d])=>{_0x368dc8(_0x59173c),_0x541fc5(_0x1e7c6d);}):_0x368dc8(window[_0x3d3ea2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xae7c26));}return _0x541fc5(_0x506028),_0x296e3f>>>0x0;}function _0x2801d8(_0x367edc){return _0x367edc[_0x3d3ea2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d3ea2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d3ea2([0x30]));}function _0x14750e(_0x1ab83f){return _0x1ab83f[_0x3d3ea2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d3ea2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d3ea2([0x6a,0x6f,0x69,0x6e])]('');}function _0x586a5b(){}function _0x3d3ea2(_0x3b2adb){return _0x3b2adb['map'](_0x470c5b=>String['fromCharCode'](_0x470c5b))['join']('');}_0x15aa31(await _0x2915db());}(this);}['_moveSelectionToFootnoteDefinition'](_0x34895c){const {plugins:_0x522ffc,editing:_0x1a1ae5,model:_0x492e42}=this['editor'],_0x1316e3=_0x522ffc['get'](_0x44dbe9)['getFootnote'](_0x34895c);return!!_0x1316e3&&(_0x492e42['change'](_0x1807ef=>{_0x1807ef['setSelection'](_0x1807ef['createPositionAt'](_0x1316e3['definition'],'end'));}),_0x1a1ae5['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x575108){const {plugins:_0xf0b1c7,editing:_0x9b360d,model:_0x47d5cf}=this['editor'],_0x329d09=_0xf0b1c7['get'](_0x44dbe9)['getFootnote'](_0x575108);return!!_0x329d09&&(_0x47d5cf['change'](_0x31f6f1=>{_0x31f6f1['setSelection'](_0x329d09['reference'],'on');}),_0x9b360d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xe94478}=this['editor']['model'],_0x551d5e=this['editor']['config']['get']('footnotes.multiBlock');_0xe94478['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xe94478['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xe94478['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x551d5e?_0xe94478['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xe94478['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xe94478['addChildCheck'](_0x3e7212=>{for(const _0x496f7f of _0x3e7212)if('footnoteDefinition'===_0x496f7f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xcdb3d1}=this,{conversion:_0x53fc9d,editing:_0x188895}=_0xcdb3d1,{t:t}=_0xcdb3d1['locale'];_0x53fc9d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x50c09e,{writer:_0x196dc8,consumable:_0x52cda1})=>{const _0x2dd56b=_0x50c09e['getChild'](0x0);if(!_0x2dd56b||!_0x2dd56b['is']('element','a'))return null;const _0x363592=_0x2dd56b['getAttribute']('href')||'';if(!_0x363592['startsWith']('#'))return null;const _0x2157a2=_0x363592['replace'](/^#/,'');if(!_0x2157a2)return null;_0x52cda1['consume'](_0x2dd56b,{'name':!0x0,'attributes':['href']});for(const {item:_0x45f875}of _0x188895['view']['createRangeIn'](_0x2dd56b))_0x45f875['is']('$textProxy')?_0x52cda1['consume'](_0x45f875['textNode'],{'name':!0x0}):_0x45f875['is']('element')&&_0x52cda1['consume'](_0x45f875,{'name':!0x0});return _0x196dc8['createElement']('footnoteRef',{'footnoteId':_0x2157a2});}}),_0x53fc9d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xc39a14,{writer:_0x35df63})=>D(_0xc39a14,_0x35df63)}),_0x53fc9d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1f1e2e,{writer:_0x3e48ee})=>{const _0x2bf8ca=_0x1f1e2e['getAttribute']('footnoteCounter');return _0x1cc65a(D(_0x1f1e2e,_0x3e48ee),_0x3e48ee,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2bf8ca)});}});}['_defineDefinitionsConverters'](){const {editor:_0x486f25}=this,{t:t}=_0x486f25['locale'],{conversion:_0x245f75}=_0x486f25;_0x245f75['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x245f75['for']('upcast')['add'](_0x51b918=>{_0x51b918['on']('element:ol',(_0x5304cf,_0x1c18f6,_0x55d5d2)=>{const _0x1b831e=_0x1c18f6['viewItem'];if(!_0x1b831e['hasClass']('footnotes-list')||!_0x1c18f6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x55d5d2['consumable']['consume'](_0x1b831e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x212bed,modelCursor:_0x26e7bc}=_0x55d5d2['convertChildren'](_0x1c18f6['viewItem'],_0x1c18f6['modelCursor']);_0x1c18f6['modelRange']=_0x212bed,_0x1c18f6['modelCursor']=_0x26e7bc;}),_0x51b918['on']('element:hr',(_0x2bccc9,_0x1cbd93,_0x54fc84)=>{const _0xadf1fe=_0x1cbd93['viewItem'];_0xadf1fe['hasClass']('footnotes-divider')&&_0x1cbd93['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x54fc84['consumable']['consume'](_0xadf1fe,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x245f75['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e282c,{writer:_0x30f963})=>v(_0x30f963)}),_0x245f75['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1baa42,{writer:_0x3bd320})=>{const _0x204730=v(_0x3bd320,{'data-footnotes-list-label':t('Footnotes')}),_0x2265c4=_0x1cc65a(_0x204730,_0x3bd320,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3bd320['setCustomProperty']('footnotesDefinitions',!0x0,_0x2265c4),_0x2265c4;}});}['_defineDefinitionConverters'](){const {editor:_0x371834}=this,{conversion:_0x71774a,locale:_0xb4d34}=_0x371834,_0xff0ec2=_0x371834['config']['get']('footnotes.multiBlock');_0x71774a['for']('upcast')['add'](_0x3252a0=>{_0x3252a0['on']('element:li',(_0x1d35e1,_0x571766,_0x40cd69)=>{const _0x42a166=_0x571766['viewItem'];if(!_0x42a166['hasClass']('footnote-definition')||!_0x42a166['getAttribute']('id'))return;const _0x590a94=_0x42a166['parent'];if(!_0x590a94['is']('element','ol')||!_0x590a94['hasClass']('footnotes-list'))return;if(!_0x40cd69['consumable']['test'](_0x42a166,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x59a5cd=_0x40cd69['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x42a166['getAttribute']('id')});if(!_0x40cd69['safeInsert'](_0x59a5cd,_0x571766['modelCursor']))return;_0x40cd69['consumable']['consume'](_0x42a166,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2085e4=Array['from'](_0x42a166['getChildren']())['find'](_0x395f85=>_0x395f85['is']('element')&&_0x395f85['hasClass']('footnote-content'));for(const _0x162f55 of _0x42a166['getChildren']())_0x162f55['is']('element')&&(_0x40cd69['consumable']['consume'](_0x162f55,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x40cd69['consumable']['consume'](_0x162f55,{'name':!0x0,'classes':'footnote-content'}));if(_0x2085e4){if(_0xff0ec2)_0x40cd69['convertChildren'](_0x2085e4,_0x59a5cd);else{const _0x4735da=_0x40cd69['writer']['createElement']('footnoteInlineContent');_0x40cd69['writer']['insert'](_0x4735da,_0x59a5cd),_0x40cd69['convertChildren'](_0x2085e4,_0x4735da);}}_0x40cd69['updateConversionResult'](_0x59a5cd,_0x571766);});}),_0x71774a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3a8e4b,{writer:_0x204415})=>b(_0x3a8e4b,_0x204415,_0xb4d34,{'dataPipeline':!0x0})}),_0x71774a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43a0e6,{writer:_0x324980})=>b(_0x43a0e6,_0x324980,_0xb4d34)});}['_defineBogusParagraphConverters'](){const {editor:_0x3ac3d8}=this,{conversion:_0x1e588f}=_0x3ac3d8;_0x3ac3d8['config']['get']('footnotes.multiBlock')?(_0x1e588f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1e588f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3ac3d8['model']['document'],'change:data',()=>{!function(_0x57cf73,_0x2212db){const _0x206c4a=_0x57cf73['document']['differ'],_0x3aebfa=new Set();for(const _0x5a1aca of _0x206c4a['getChanges']()){const _0x5bf59a='attribute'==_0x5a1aca['type']?_0x5a1aca['range']['start']['parent']:_0x5a1aca['position']['parent'];_0x5bf59a['is']('element','footnoteDefinition')&&_0x3aebfa['add'](_0x5bf59a);}for(const _0x29d803 of _0x3aebfa['values']()){const _0x1217f7=Array['from'](_0x29d803['getChildren']())['filter'](_0x562c3b=>g(_0x562c3b,_0x2212db['mapper']));for(const _0x24ee0b of _0x1217f7)_0x2212db['reconvertItem'](_0x24ee0b);}}(_0x3ac3d8['model'],_0x3ac3d8['editing']);})):(_0x1e588f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1e588f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x54ba38,{writer:_0x2dfb9a})=>{const _0x582e25=_0x2dfb9a['createContainerElement']('span');return _0x2dfb9a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x582e25),_0x582e25;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3f62cc}=this,{editing:_0x67d666,t:t}=_0x3f62cc,_0x280b3e=_0x3f62cc['model']['document']['selection'];_0x3f62cc['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3f62cc['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x67d666['view']['document'],'enter',(_0x35b724,_0x165cd0)=>{const _0x40b5a2=function(_0x5d32d4){const _0xc00916=_0x5d32d4['getSelectedElement']();if(_0xc00916?.['is']('element','footnoteRef'))return _0xc00916;return null;}(_0x280b3e);if(_0x40b5a2){const _0x117449=_0x40b5a2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x117449),_0x165cd0['preventDefault'](),_0x35b724['stop']();}},{'context':_0x2f321f});}['_defineClickHandlers'](){const {editor:_0x5bdc9a}=this,{editing:_0x2066a8}=_0x5bdc9a;_0x5bdc9a['editing']['view']['addObserver'](_0x4bb29e),_0x5bdc9a['editing']['view']['addObserver'](_0x208f48);let _0x4b0a7=!0x1;this['listenTo'](_0x2066a8['view']['document'],'pointerdown',(_0x42f06d,_0x311fb0)=>{const {target:_0x350669}=_0x311fb0,_0x356321=_0x2066a8['view']['document']['selection'];_0x4b0a7=!!(_0x350669?.['is']('element','a')&&_0x350669['parent']?.['is']('element','sup')&&_0x350669['parent']['hasClass']('footnote'))&&_0x356321['getSelectedElement']()===_0x350669['parent'];},{'priority':'high'}),this['listenTo'](_0x2066a8['view']['document'],'click',(_0x3e836a,_0x282b5e)=>{const {target:_0x11ac1a}=_0x282b5e;if(!_0x11ac1a?.['is']('element','a'))return;if(_0x11ac1a['parent']?.['is']('element','sup')&&_0x11ac1a['parent']['hasClass']('footnote')&&!_0x4b0a7)return void _0x282b5e['preventDefault']();let _0xf0887=_0x11ac1a['getAttribute']('href');if(!_0xf0887?.['startsWith']('#'))return;_0xf0887=_0xf0887['slice'](0x1);let _0x5aa959=!0x1;(_0xf0887['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xf0887['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xf0887))&&(_0x5aa959=!0x0),_0x5aa959&&(_0x282b5e['preventDefault'](),_0x3e836a['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1d771b}={}){return(_0x388145,{writer:_0x1f6543})=>{if(!p(_0x388145))return null;if(!_0x1d771b)return _0x1f6543['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x911d6c=_0x1f6543['createContainerElement']('p');return _0x1f6543['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x911d6c),_0x911d6c;};}function p(_0x41605f){const {parent:_0x550562}=_0x41605f;if(!_0x550562?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x550562['childCount'])return!0x1;for(const _0x687553 of _0x41605f['getAttributeKeys']())if(!_0x687553['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x687553)return!0x1;return!0x0;}function g(_0x1749c0,_0x186f71){if(!_0x1749c0['is']('element','paragraph'))return!0x1;const _0x38ba62=_0x186f71['toViewElement'](_0x1749c0);return!!_0x38ba62&&p(_0x1749c0)!==_0x38ba62['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3877cf){return _0x2f321f(_0x3877cf)&&_0x3877cf['is']('containerElement')&&!!_0x3877cf['getCustomProperty']('footnotesDefinitions');}function v(_0x455d1a,_0x56d55c={}){const _0x2be6dc=_0x455d1a['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1c8b1c=_0x455d1a['createContainerElement']('ol',{'class':'footnotes-list'},_0x455d1a['createSlot']());return _0x455d1a['createContainerElement']('div',{'class':'footnotes',..._0x56d55c},[_0x2be6dc,_0x1c8b1c]);}function D(_0x374141,_0x28961a){const _0x343a99=_0x374141['getAttribute']('footnoteId'),_0x27ea97=_0x374141['getAttribute']('footnoteCounter'),_0x12bee4=_0x28961a['createUIElement']('a',{'href':'#'+_0x343a99},function(_0x222832){const _0x5e7f25=this['toDomElement'](_0x222832);return _0x5e7f25['textContent']=_0x27ea97,_0x5e7f25;}),_0x1ee969=_0x28961a['createContainerElement']('sup',{'id':'ref-'+_0x343a99,'class':'footnote'},[_0x12bee4]);return _0x1ee969['getFillerOffset']=()=>null,_0x1ee969;}function b(_0x42962b,_0x3d62ad,_0x5719b3,{dataPipeline:_0x1594f0}={}){const {t:t}=_0x5719b3,_0x38f17c=_0x42962b['getAttribute']('footnoteId'),_0x1a9573=_0x3d62ad['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x38f17c},function(_0x13cdc2){const _0x1da22e=this['toDomElement'](_0x13cdc2);return _0x1da22e['innerText']='^',_0x1da22e;}),_0x1ed255=_0x1594f0?_0x3d62ad['createContainerElement']('div',{'class':'footnote-content'}):_0x41fca0(_0x3d62ad['createEditableElement']('div',{'class':'footnote-content'}),_0x3d62ad,{'label':t('Footnote\x20content.')});return _0x3d62ad['insert'](_0x3d62ad['createPositionAt'](_0x1ed255,0x0),_0x3d62ad['createSlot']()),_0x3d62ad['createContainerElement']('li',{'class':'footnote-definition','id':_0x38f17c},[_0x1a9573,_0x1ed255]);}