@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251216.0 → 0.0.0-nightly-20251217.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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=l();return(a=function(t,e){return o[t-=493]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(662425===-parseInt(e(535))/1*(parseInt(e(511))/2)+parseInt(e(502))/3*(-parseInt(e(521))/4)+parseInt(e(526))/5*(-parseInt(e(524))/6)+parseInt(e(532))/7*(parseInt(e(493))/8)+-parseInt(e(497))/9+-parseInt(e(498))/10+parseInt(e(534))/11*(parseInt(e(536))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(538)];[r(513)];[r(515)];[r(503)]=new Map;constructor(t,e){const o=r;this[o(538)]=t,this[o(513)]=e[o(520)],this[o(515)]=e[o(528)]}[r(516)](){const t=r;this[t(503)][t(495)]()}[r(518)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(527)===i[e(505)]&&e(510)!==i[e(507)]&&i[e(499)][e(519)]){const t=this[e(538)][e(494)](i[e(499)][e(519)]);for(const o of t[e(514)]()){if(!o.is(e(512),this[e(513)]))continue;const t=this[e(515)](o);n[e(533)](t)||n[e(500)](t,[]),n[e(506)](t)[e(508)](o)}}if(e(509)===i[e(505)]&&i[e(507)]===this[e(513)]){const t=this[e(515)]({getAttribute:t=>i[e(531)][e(506)](t)});o[e(529)](t)}}for(const[t,n]of this[e(503)])e(517)===n[e(530)][e(501)]&&o[e(529)](t);for(const t of o)this[e(503)][e(525)](t);for(const[t,o]of n)this[e(503)][e(500)](t,o[o[e(522)]-1]);const i=new Set;for(const[t,s]of n)o[e(533)](t)&&(i[e(529)](s[0]),s[e(522)]>1?n[e(500)](t,s[e(537)](1)):n[e(525)](t),o[e(525)](t));return{removed:Array[e(523)](o),inserted:Array[e(523)](n[e(504)]())[e(496)](),moved:Array[e(523)](i)}}}function l(){const t=["$text","892916WJVfoS","element","_elementName","getItems","_getElementKey","reset","$graveyard","getChanges","nodeAfter","elementName","51176xfymWp","length","from","36YaVvYa","delete","376280deKChI","insert","getElementKey","add","root","attributes","9079oUoTBa","has","858dgToUb","1LwPVVQ","338448hBGlji","slice","_model","472buCWOR","createRangeOn","clear","flat","3940227ddGqyO","1118910kuRwNe","position","set","rootName","39GMXkkx","_trackedElements","values","type","get","name","push","remove"];return(l=function(){return t})()}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=202]})(t,e)}function d(){const t=["document","unshift","map","compareWith","set","move","createRangeOn","_footnoteRefsTracker","6565473kpJmdh","enqueueChange","remove","pluginName","after","_footnotesDefinitions","definition","_handleFootnotesDefinitionsObjectChanges","_footnotes","_handleRemoveFootnoteReferenceById","change:data","createPositionBefore","42IRbjFA","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","224zlWlwX","footnoteId","find","setFootnoteFormatter","getFootnote","paragraph","$graveyard","_insertEmptyFootnotesDefinitionsContainer","getFootnotesFormatter","listenTo","parent","isEqual","_handleFootnoteDefinitionsChanges","getAttribute","_footnoteDefsTracker","min","low","_ensureFootnotesDefinitionsContainerExists","9503703zvpQCA","insert","getRootNames","reset","_updateFootnotesCounters","createElement","registerPostFixer","some","_handleMovedFootnoteReference","footnoteRef","singleton","editor","1158112pKlheD","_footnoteFormatter","config","footnoteInlineContent","footnoteDefinition","splice","length","getChanges","getFootnotes","_footnoteDefsContainerTracker","isOfficialPlugin","_handleFootnoteReferencesChanges","createRangeIn","push","createPositionAt","12spXyUu","footnoteCounter","getChildren","from","before","differ","_handleInsertedFootnoteReference","indexOf","setAttribute","FootnotesTracker","init","get","_updateFootnoteRefCounter","10cQVUNT","497885PXtskZ","footnotes.multiBlock","high","has","end","footnotesDefinitions","136272VDhQMg","_sortFootnoteDefinitions","add","model","_ensureFootnotesReferencesHaveProperOrder","append","childCount","reference","rootName","getFootnotesDefinitionsObjectElement","140188zQDcMI","root","499983axEJwM","findIndex"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(582005===parseInt(e(241))/1+-parseInt(e(239))/2*(-parseInt(e(263))/3)+-parseInt(e(296))/4+-parseInt(e(223))/5*(parseInt(e(209))/6)+-parseInt(e(266))/7*(parseInt(e(229))/8)+-parseInt(e(251))/9*(parseInt(e(222))/10)+parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(259)]=[];[f(256)]=null;[f(297)]=null;[f(203)];[f(250)];[f(280)];static get[f(254)](){return f(218)}static get[f(204)](){return!0}static get[f(265)](){return!0}constructor(t){const e=f;super(t),this[e(203)]=new c(this[e(295)][e(232)],{elementName:e(228),getElementKey:()=>e(294)}),this[e(250)]=new c(this[e(295)][e(232)],{elementName:e(293),getElementKey:t=>t[e(279)](e(267))}),this[e(280)]=new c(this[e(295)][e(232)],{elementName:e(300),getElementKey:t=>t[e(279)](e(267))})}[f(219)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(290)](e=>{const n=t,i=o[n(243)][n(214)][n(303)]();let s=!1;return this[n(258)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(205)](e,i)&&(s=!0),this[n(233)](e)&&(s=!0),this[n(264)](e)&&(s=!0),this[n(230)](e)&&(s=!0),s}),this[t(275)](o[t(243)],t(261),()=>{const e=t;o[e(252)]({isUndoable:!1},t=>{this[e(283)](t)})},{priority:t(282)}),this[t(275)](n,t(247),()=>{const e=t;this[e(259)]=[],this[e(203)][e(287)](),this[e(250)][e(287)](),this[e(280)][e(287)]()},{priority:t(225)})}[f(238)](){return this[f(256)]}[f(270)](t){const e=f;return this[e(259)][e(268)](e=>e.id===t)||null}[f(202)](){const t=f;return Array[t(212)](this[t(259)])}[f(274)](){return this[f(297)]}[f(269)](t){this[f(297)]=t}[f(288)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(259)][o(302)];i++)this[o(221)](t,i)&&(n=!0);return n}[f(273)](t,e){const o=f,n=t[o(289)](o(228),{});return t[o(234)](n,e),this[o(256)]=n,n}[f(283)](t){const e=f;if(!this[e(259)][e(302)]||this[e(256)])return;const o=this[e(259)][0][e(236)][e(240)],n=this[e(273)](t,o);for(const o of this[e(259)])o[e(257)][e(276)]||t[e(285)](o[e(257)],n,e(227));this[e(288)](t)}[f(258)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(203)][o(303)](e);if(r[o(302)]&&(this[o(256)]=r[0]),i[o(302)])if(i[o(302)]>1||this[o(256)]&&i[o(291)](t=>t!==this[o(256)])){const e=t[o(289)](o(228),{}),s=[];this[o(256)]&&s[o(207)](this[o(256)]),s[o(207)](...i),t[o(285)](e,s[0],o(213));for(const n of s)t[o(248)](t[o(206)](n),t[o(208)](e,o(227))),t[o(253)](n);this[o(256)]=e,this[o(288)](t),n=!0}else this[o(256)]=i[0];if(s[o(302)]&&o(272)===this[o(256)]?.[o(240)][o(237)]){for(const e of this[o(259)])t[o(253)](e[o(236)]),n=!0;this[o(259)]=[],this[o(256)]=null}return n}[f(278)](t,e){const o=f;let n=!1;const i=this[o(295)][o(298)][o(220)](o(224)),{inserted:s,moved:r}=this[o(280)][o(303)](e);for(const e of[...r,...s]){const s=e[o(279)](o(267)),r=this[o(270)](s);r&&(r[o(257)]=e),p(t,i,e)&&(n=!0)}return n}[f(205)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(250)][o(303)](e);for(const e of i)this[o(260)](t,e)&&(n=!0);for(const e of s)this[o(215)](t,e)&&(n=!0);for(const e of r)this[o(292)](t,e)&&(n=!0);return n}[f(264)](t){const e=f;if(!this[e(256)])return!1;let o=!1;if(this[e(256)][e(235)]!==this[e(259)][e(302)]){const n=[];for(const t of this[e(256)][e(211)]()){const i=t[e(279)](e(267));this[e(270)](i)||(n[e(244)](t),o=!0)}for(const o of n)t[e(253)](o)}const n=new Set,i=[];for(const t of this[e(256)][e(211)]()){const s=t[e(279)](e(267));n[e(226)](s)?(i[e(244)](t),o=!0):n[e(231)](s)}for(const o of i)t[e(253)](o);return this[e(256)][e(235)]||(t[e(253)](this[e(256)]),this[e(256)]=null,o=!0),o}[f(215)](t,e){const o=f;if(this[o(259)][o(268)](t=>t[o(236)]===e))return!1;let n=!1;const i=e[o(279)](o(267)),s=this[o(259)][o(242)](t=>t.id===i);-1!==s&&(t[o(253)](this[o(259)][s][o(236)]),this[o(259)][o(301)](s,1),n=!0);let r=this[o(256)]?function(t,e){const n=o;for(const o of t[n(211)]())if(o[n(279)](n(267))===e)return o;return null}(this[o(256)],i):null;r||(r=t[o(289)](o(300),{footnoteId:i}),this[o(256)]&&(t[o(285)](r,this[o(256)],o(227)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(295)][o(232)],this[o(259)],e);this[o(259)][o(301)](c,0,a);let l=c;return-1!==s&&(l=Math[o(281)](c,s)),this[o(288)](t,l)&&(n=!0),n}[f(260)](t,e){const o=f,n=this[o(259)][o(242)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(259)][n];return o(272)!==s[o(257)][o(240)][o(237)]&&(t[o(253)](s[o(257)]),i=!0),this[o(259)][o(301)](n,1),this[o(288)](t,n)&&(i=!0),i}[f(292)](t,e){const o=f,n=e[o(279)](o(267)),i=this[o(259)][o(242)](t=>t.id===n),s=this[o(259)][i];let r=!1;s[o(236)]=e,this[o(259)][o(301)](i,1);const a=m(this[o(295)][o(232)],this[o(259)],e);return this[o(259)][o(301)](a,0,s),this[o(288)](t,Math[o(281)](i,a))&&(r=!0),r}[f(221)](t,e){const o=f;if(!this[o(256)])return!1;const n=this[o(259)][e];let i;return i=this[o(297)]?this[o(297)]({footnote:n,container:this[o(256)],digits:String(this[o(259)][o(302)])[o(302)],value:e+1}):String(e+1),n[o(236)][o(279)](o(210))!=i&&(t[o(217)](o(210),i,n[o(236)]),!0)}[f(230)](t){const e=f;if(!this[e(256)]||this[e(259)][e(302)]<2)return!1;if(function(t,o){const n=e;if(t[n(302)]!==o[n(302)])return!1;for(let e=0;e<t[n(302)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(259)][e(245)](t=>t.id),Array[e(212)](this[e(256)][e(211)]())[e(245)](t=>t[e(279)](e(267)))))return!1;let o=!1;for(let n=0;n<this[e(259)][e(302)];n++){const i=this[e(259)][n],s=t[e(262)](i[e(257)]),r=t[e(208)](this[e(256)],n);s[e(277)](r)||(t[e(248)](t[e(249)](i[e(257)]),r),o=!0)}return o}[f(233)](t){const e=f;if(!this[e(259)][e(302)])return!1;const{model:o}=this[e(295)];let n=!1;for(let i=0;i<this[e(259)][e(302)]-1;i++){const s=this[e(259)][i],r=this[e(259)][i+1],a=o[e(262)](s[e(236)]),c=o[e(262)](r[e(236)]);e(255)===a[e(246)](c)&&(this[e(292)](t,s[e(236)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(235)])return!1;const i=n(e?271:299);return t[n(285)](t[n(289)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(302)])return 0;const i=t[n(262)](o);for(let o=0;o<e[n(302)];o++){const s=e[o],r=t[n(262)](s[n(236)]);if(n(213)===i[n(246)](r))return o}const s=o[n(240)];let r=-1;for(let t=e[n(302)]-1;t>=0;t--)if(e[t][n(236)][n(240)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(286)](),c=a[n(216)](s[n(237)]),l=a[c+1];if(l)for(let t=0;t<e[n(302)];t++)if(e[t][n(236)][n(240)][n(237)]===l)return t;return e[n(302)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=278]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(720381===parseInt(e(293))/1+-parseInt(e(309))/2+parseInt(e(302))/3+parseInt(e(297))/4*(-parseInt(e(308))/5)+-parseInt(e(289))/6+-parseInt(e(279))/7+parseInt(e(280))/8*(parseInt(e(291))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(313)](){const t=w,e=this[t(296)][t(298)][t(284)][t(307)],o=this[t(287)](e);this[t(294)]=!!o}[w(305)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(284)],r=this[e(287)](s);if(!r)return;const a=o[e(306)][e(285)](e(286)),c=t?.[e(282)]??(0,i.uid)();!function(t){const o=e;return o(310)==typeof t&&t[o(283)]>0&&!/\s/[o(299)](t)&&!/^\d/[o(299)](t)}(c)?(0,i.logWarning)(e(288)):(n[e(278)](t=>{const o=e,i=t[o(292)](o(300),{footnoteId:c});n[o(290)](i,r,null)}),a[e(311)](c))}[w(287)](t){const e=w,{model:o}=this[e(296)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(304)]())if(n[e(295)](t)||n[e(303)](t))return null;const s=i[e(301)];return n[e(281)](s,e(300))?s:null}}function b(){const t=["4cwiguG","model","test","footnoteRef","end","750606OciCQp","isObject","getItems","execute","plugins","selection","2143885SLATiB","2733176OaDAZv","string","_moveSelectionToFootnoteDefinition","getFirstRange","refresh","change","5446833umSEnQ","64dCKjux","checkChild","footnoteId","length","document","get","FootnotesEditing","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","4545486PpGdBC","insertObject","3438945GIjkZe","createElement","744404vCScxC","isEnabled","isBlock","editor"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(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])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765843200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=206]})(t,e)}function _(){const t=["add","footnoteInlineContent","setAttribute","listenTo","change","getRanges","selection","append","create","_handleCopyFootnotesDefinitions","1113ehBDGo","toModel","htmlProcessor","drop","footnoteId","footnoteRef","outputTransformation","remove","toData","editing","isOfficialPlugin","push","getSelectedBlocks","dataTransfer","length","869620ptlAXk","config","from","createRangeIn","footnoteDefinition","getFootnote","includes","getData","stringify","contentInsertion","method","application/ckeditor5-footnotes","document","FootnotesClipboard","insert","351593ePLtGU","footnotes.multiBlock","definition","end","element","get","getFootnotes","footnotesDefinitions","data","toView","setData","6DZzaZM","clipboardInput","getAttribute","_insertEmptyFootnotesDefinitionsContainer","pluginName","isPremiumPlugin","editor","parse","getFirstRange","1284800wEdJdS","reduce","entries","requires","sourceEditorId","10420047vJtNyV","569317mRjcds","_handlePasteFootnotesDefinitions","2338WCUPxO","root","content","getFootnotesDefinitionsObjectElement","1250165YoKZuz","find","flatMap","createElement","init","_defineClipboardIntegration"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(325850===-parseInt(e(233))/1+-parseInt(e(261))/2*(parseInt(e(281))/3)+-parseInt(e(218))/4+parseInt(e(265))/5+parseInt(e(244))/6*(parseInt(e(259))/7)+-parseInt(e(253))/8+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[P(248)](){return P(231)}static get[P(256)](){return[v,T.ClipboardPipeline]}static get[P(213)](){return!0}static get[P(249)](){return!0}[P(269)](){this[P(270)]()}[P(270)](){const t=P;this[t(280)](),this[t(260)]()}[P(280)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(238)](T.ClipboardPipeline),s=o[t(238)](h);this[t(274)](i,t(209),(o,i)=>{const r=t,a=L(n[r(221)](i[r(263)]));if(!a[r(217)])return;const c=s[r(239)](),l=a[r(254)]((t,o)=>{const n=r,i=c[n(266)](t=>t.id===o);if(i){const o=e[n(241)][n(242)](i[n(235)],{isClipboardPipeline:!0}),s=e[n(241)][n(283)][n(211)](o);t[i.id]=s}return t},Object[r(279)](null));i[r(216)][r(243)](r(229),JSON[r(226)](l))})}[P(260)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(212)],r=n[t(238)](T.ClipboardPipeline),a=n[t(238)](h),c=e[t(219)][t(238)](t(234));let l=null;this[t(274)](s[t(230)],t(245),(e,o)=>{const n=t,i=o[n(216)][n(225)](n(229));l=i?JSON[n(251)](i):null}),this[t(274)](r,t(227),(n,s)=>{const r=t,f=s[r(257)]===this[r(250)].id;f&&r(206)===s[r(228)]||o[r(275)](t=>{const n=r;let u=a[n(264)]();const d=!!u&&Array[n(220)](o[n(230)][n(277)][n(215)]())[n(224)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(221)](e))n.is(o(237),o(240))&&i[o(214)](n);for(const e of i)t[o(210)](e)}(t,s[n(263)]),!l)return;const{selection:h}=o[n(230)],p=h[n(252)]()[n(262)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(221)](e))if(n.is(o(237),o(240)))return n;return null}(t,s[n(263)]),u||=a[n(247)](t,p));const m=Array[n(220)](h[n(276)]())[n(267)](L),g=function(t,e,o){const s=n,r=Object[s(279)](null);for(const{item:n}of t[s(221)](e))if(n.is(s(237),s(208))){const e=n[s(246)](s(207));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(273)](s(207),r[e],n)}return r}(t,s[n(263)],t=>{const e=n;return!f||!!a[e(223)](t)&&!m[e(224)](t)});for(const[o,i]of Object[n(255)](l)){const s=g[o]||o,r=t[n(268)](n(222),{footnoteId:s}),a=e[n(241)][n(283)][n(242)](i);let l;if(c)l=e[n(241)][n(282)](a,r);else{l=t[n(268)](n(272));const o=e[n(241)][n(282)](a,l);t[n(232)](o,l)}t[n(278)](l,r),t[n(232)](r,u,n(236))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(237),e(208))&&o[e(271)](n[e(246)](e(207)));return Array[e(220)](o)}var V=o(311),R=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),U=o.n(W),z=o(741),H=o.n(z),Z=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=H();O()(Z.A,G);Z.A&&Z.A.locals&&Z.A.locals;class X 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",J(t,V.ButtonView)),e.add("menuBar:insertFootnote",J(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var q=Q;function Q(t,e){var o=Y();return(Q=function(t,e){return o[t-=485]})(t,e)}function Y(){var t=["3626022ipxQhs","4xxREhY","requires","123148rfDMfv","6307235RfRkiC","1407032ZgMEcX","Footnotes","1488369oFfrWZ","isOfficialPlugin","pluginName","isPremiumPlugin","4193959SITarF","4347152oMQbbF"];return(Y=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(873078===-parseInt(e(497))/1+-parseInt(e(495))/2*(-parseInt(e(488))/3)+-parseInt(e(493))/4+parseInt(e(485))/5+parseInt(e(494))/6+-parseInt(e(492))/7+-parseInt(e(486))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[q(490)](){return q(487)}static get[q(496)](){return[v,D,X]}static get[q(489)](){return!0}static get[q(491)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=277]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(517225===-parseInt(e(291))/1*(-parseInt(e(278))/2)+parseInt(e(292))/3+-parseInt(e(283))/4*(-parseInt(e(287))/5)+parseInt(e(285))/6+-parseInt(e(293))/7+parseInt(e(290))/8+-parseInt(e(280))/9*(parseInt(e(284))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(279),tt(288),tt(286),tt(282),tt(281),tt(289),tt(294),tt(277)];function nt(){const t=["2974164cRtntC","366002uZyixR","lower-roman","upper-roman","6542JzejoZ","decimal","4952754PSUECf","lower-alpha","upper-latin","647156fgBfze","40HRzpXJ","821862ZYEGvw","lower-latin","20eFEGTK","decimal-leading-zero","upper-alpha","85144BSDvBX","301IrStfO"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=at();return(st=function(t,e){return o[t-=114]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(567008===-parseInt(e(137))/1*(-parseInt(e(132))/2)+-parseInt(e(130))/3*(parseInt(e(119))/4)+-parseInt(e(129))/5+-parseInt(e(114))/6+parseInt(e(117))/7+-parseInt(e(136))/8+parseInt(e(118))/9*(parseInt(e(135))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(122)](){const t=it,{editor:e}=this,o=e[t(115)][t(128)](h)[t(120)]();this[t(134)]=!!o,this[t(116)]=o?.[t(125)](t(131))??null}[it(124)]({value:t}){const e=it,{editor:o}=this,n=o[e(115)][e(128)](h),i=n[e(120)]();i&&ot[e(126)](t)&&o[e(123)][e(121)](o=>{const s=e;o[s(133)](s(131),t,i),n[s(127)](o)})}}function at(){const t=["get","4683255kxyyIH","96yYTuTW","footnotesListStyle","5626EjgWTV","setAttribute","isEnabled","178490UmKoMS","2943312VRvGPE","167gplWem","6555858FrcTWo","plugins","value","7216188Zgzlok","1017XPvliG","69172YcTpJR","getFootnotesDefinitionsObjectElement","change","refresh","model","execute","getAttribute","includes","_updateFootnotesCounters"];return(at=function(){return t})()}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=302]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(365879===-parseInt(e(308))/1+-parseInt(e(303))/2+-parseInt(e(311))/3+parseInt(e(307))/4*(parseInt(e(314))/5)+-parseInt(e(322))/6+-parseInt(e(302))/7+parseInt(e(304))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(318)](){const t=lt,{editor:e}=this,o=e[t(309)][t(310)](h)[t(319)]();this[t(321)]=!!o,this[t(320)]=o?.[t(305)](t(313))??null}[lt(315)]({value:t}){const e=lt,{editor:o}=this,n=o[e(309)][e(310)](h),i=n[e(319)]();i&&Number[e(323)](t)&&o[e(306)][e(316)](o=>{const s=e;o[s(317)](s(313),t,i),n[s(312)](o)})}}function ut(){const t=["_updateFootnotesCounters","footnotesListStart","1075455IwjRWn","execute","change","setAttribute","refresh","getFootnotesDefinitionsObjectElement","value","isEnabled","4374162tNNKhM","isInteger","1558326PhcgCB","63214HAEodE","11019024umZezZ","getAttribute","model","4lHtjmZ","70055bXoMVU","plugins","get","519849qFWmAL"];return(ut=function(){return t})()}const dt=wt;function ht(){const t=["registerPostFixer","name","4020YldAlW","start","padStart","schema","footnotes-list","getItems","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","5286kalbHP","viewItem","upper-latin","for","decimal-leading-zero","element","removeAttribute","document","consumable","lower-alpha","hasAttribute","footnotesStyle","mapper","setFootnoteFormatter","footnotesListStyle","_defineConverters","floor","footnotesStart","setStyle","toViewElement","lower-roman","12398dAELkw","_defineFormatter","add","getStyle","getAttribute","setAttribute","pluginName","max","6498729XpDbdA","init","getChildren","12964584jhnYny","type","element:ol","toLowerCase","upper-roman","position","requires","831369bnLREn","2916640AiVVpJ","upcast","get","find","writer","createRangeOn","_formatFootnoteListValue","config","_defineSchema","differ","$text","commands","footnotes.footnotesProperties.defaultStartIndex","hasClass","footnotesListStart","isNaN","item","attribute:footnotesListStyle:footnotesDefinitions","toUpperCase","insert","parent","40hQVJWw","_updateFootnotesCounters","modelCursor","isPremiumPlugin","FootnotesPropertiesEditing","isOfficialPlugin","extend","fromCharCode","_definePostfixer","lower-latin","3268762RDKHem","define","plugins","nodeAfter","footnotesDefinitions","model","upper-alpha","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","list-style-type","decimal","editor","getChanges","removeStyle","parseInt","checkAttribute","consume","from","downcast"];return(ht=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(861211===parseInt(e(383))/1*(-parseInt(e(343))/2)+-parseInt(e(361))/3+parseInt(e(362))/4+parseInt(e(314))/5*(-parseInt(e(322))/6)+parseInt(e(393))/7+parseInt(e(354))/8+-parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class pt extends t.Plugin{static get[dt(349)](){return dt(387)}static get[dt(360)](){return[v,h]}static get[dt(388)](){return!0}static get[dt(386)](){return!0}[dt(352)](){const t=dt,{editor:e}=this;e[t(369)][t(394)](t(301),t(303)),e[t(369)][t(394)](t(374),1),e[t(373)][t(345)](t(333),new rt(e)),e[t(373)][t(345)](t(339),new ft(e)),this[t(370)](),this[t(337)](),this[t(344)](),this[t(391)]()}[dt(370)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(389)](t(397),{allowAttributes:[t(336),t(376)]})}[dt(337)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(325)](t(363))[t(345)](e=>{const o=t;e.on(o(356),(t,e,n)=>{const s=o,r=e[s(323)],a=e[s(385)]?.[s(382)];r[s(375)](s(318))&&a?.is(s(327),s(397))&&(function(t,e,o,n){const i=s;if(!n[i(308)](e,i(376)))return;let r=1;const a=o[i(330)][i(309)](t,{attributes:i(315)});if(a){const e=Number[i(307)](t[i(347)](i(315)),10);Number[i(377)](e)||(r=e)}!a&&e[i(332)](i(376))||o[i(366)][i(348)](i(376),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(308)](e,i(336)))return;let r=i(303),a=!1;if(o[i(330)][i(309)](t,{attributes:i(355)})){const e={1:i(303),a:i(331),A:i(399),i:i(342),I:i(358)}[t[i(347)](i(355))];e&&(r=e),a=!0}o[i(330)][i(309)](t,{styles:i(302)})&&(r=function(t){const e=i;switch(t){case e(331):return e(392);case e(399):return e(324);default:return t}}(t[i(346)](i(302))),a=!0),!a&&e[i(332)](i(336))||o[i(366)][i(348)](i(336),r,e)}(r,a,n,i))})}),o[t(325)](t(311))[t(345)](e=>{const o=t;e.on(o(321),(t,e,n)=>{const i=o;if(!n[i(330)][i(309)](e[i(378)],t[i(313)]))return;const s=mt(e[i(378)],n[i(334)]),{attributeNewValue:r}=e;null==r||1===r?n[i(366)][i(328)](i(315),s):n[i(366)][i(348)](i(315),String(r),s)}),e.on(o(379),(t,e,n)=>{const i=o;if(!n[i(330)][i(309)](e[i(378)],t[i(313)]))return;const s=mt(e[i(378)],n[i(334)]),{attributeNewValue:r}=e;r&&i(303)!==r?n[i(366)][i(340)](i(302),r,s):n[i(366)][i(306)](i(302),s)})})}[dt(391)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(395)][t(364)](h),i=this[t(300)](),s=this[t(320)]();o[t(329)][t(312)](e=>{const r=t,a=o[r(329)][r(371)][r(305)]();let c=!1;for(const t of a){if(r(381)!==t[r(355)]||r(372)===t[r(313)])continue;const n=o[r(367)](t[r(359)][r(396)]);for(const t of n[r(319)]())t.is(r(327),r(397))&&(!t[r(332)](r(376))&&o[r(317)][r(308)](t,r(376))&&(e[r(348)](r(376),s,t),c=!0),!t[r(332)](r(336))&&o[r(317)][r(308)](t,r(336))&&(e[r(348)](r(336),i,t),c=!0))}return c&&n[r(384)](e),c})}[dt(344)](){const t=dt,{editor:e}=this;e[t(395)][t(364)](h)[t(335)](e=>this[t(368)](e))}[dt(300)](){const t=dt;return this[t(304)][t(369)][t(364)](t(301))}[dt(320)](){const t=dt;return this[t(304)][t(369)][t(364)](t(374))}[dt(368)]({container:t,value:e,digits:o}){const n=dt,i=t[n(347)](n(336)),s=t[n(347)](n(376)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(326):return function(t,e){const o=n;return String(t)[o(316)](e,"0")}(r,Math[n(350)](2,o));case n(331):case n(392):return gt(r,!1);case n(399):case n(324):return gt(r,!0);case n(342):return bt(r,!1);case n(358):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(341)](t);return Array[o(310)](n[o(353)]())[o(365)](t=>t.is(o(327),"ol")&&t[o(375)](o(318)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(390)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(380)]():n}function wt(t,e){const o=ht();return(wt=function(t,e){return o[t-=300]})(t,e)}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=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(357)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=489]})(t,e)}function Et(){var t=["418056cbpWUV","579QdWlIh","4qRyZld","isPremiumPlugin","45918YdqNEz","478fhTZNK","1706892jaiiIv","4600635rAOlNh","928nipIVY","14NrsFCT","1227259ziSiTs","requires","9172780cPyLyH","FootnotesProperties","pluginName","isOfficialPlugin"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(555733===parseInt(e(504))/1+-parseInt(e(493))/2*(-parseInt(e(489))/3)+parseInt(e(490))/4*(parseInt(e(495))/5)+parseInt(e(494))/6*(parseInt(e(497))/7)+parseInt(e(496))/8*(-parseInt(e(492))/9)+-parseInt(e(500))/10+parseInt(e(498))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(502)](){return Ft(501)}static get[Ft(499)](){return[pt,Ct]}static get[Ft(503)](){return!0}static get[Ft(491)](){return!0}}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=326]})(t,e)}function Pt(){var t=["1273491eCVNXB","4uxFQHv","48314ZYUSJF","1254765DBIUQH","45lmUIGT","2795832VslrXr","33YxppWG","122GAkUaA","1171784VhxgPE","6379LPnvcz","2338810zcoTWt"];return(Pt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(398471===parseInt(e(330))/1*(-parseInt(e(328))/2)+parseInt(e(332))/3*(-parseInt(e(333))/4)+parseInt(e(335))/5+-parseInt(e(326))/6+-parseInt(e(334))/7+-parseInt(e(329))/8*(-parseInt(e(336))/9)+-parseInt(e(331))/10*(-parseInt(e(327))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=l();return(a=function(t,e){return o[t-=493]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(662425===-parseInt(e(535))/1*(parseInt(e(511))/2)+parseInt(e(502))/3*(-parseInt(e(521))/4)+parseInt(e(526))/5*(-parseInt(e(524))/6)+parseInt(e(532))/7*(parseInt(e(493))/8)+-parseInt(e(497))/9+-parseInt(e(498))/10+parseInt(e(534))/11*(parseInt(e(536))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(538)];[r(513)];[r(515)];[r(503)]=new Map;constructor(t,e){const o=r;this[o(538)]=t,this[o(513)]=e[o(520)],this[o(515)]=e[o(528)]}[r(516)](){const t=r;this[t(503)][t(495)]()}[r(518)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(527)===i[e(505)]&&e(510)!==i[e(507)]&&i[e(499)][e(519)]){const t=this[e(538)][e(494)](i[e(499)][e(519)]);for(const o of t[e(514)]()){if(!o.is(e(512),this[e(513)]))continue;const t=this[e(515)](o);n[e(533)](t)||n[e(500)](t,[]),n[e(506)](t)[e(508)](o)}}if(e(509)===i[e(505)]&&i[e(507)]===this[e(513)]){const t=this[e(515)]({getAttribute:t=>i[e(531)][e(506)](t)});o[e(529)](t)}}for(const[t,n]of this[e(503)])e(517)===n[e(530)][e(501)]&&o[e(529)](t);for(const t of o)this[e(503)][e(525)](t);for(const[t,o]of n)this[e(503)][e(500)](t,o[o[e(522)]-1]);const i=new Set;for(const[t,s]of n)o[e(533)](t)&&(i[e(529)](s[0]),s[e(522)]>1?n[e(500)](t,s[e(537)](1)):n[e(525)](t),o[e(525)](t));return{removed:Array[e(523)](o),inserted:Array[e(523)](n[e(504)]())[e(496)](),moved:Array[e(523)](i)}}}function l(){const t=["$text","892916WJVfoS","element","_elementName","getItems","_getElementKey","reset","$graveyard","getChanges","nodeAfter","elementName","51176xfymWp","length","from","36YaVvYa","delete","376280deKChI","insert","getElementKey","add","root","attributes","9079oUoTBa","has","858dgToUb","1LwPVVQ","338448hBGlji","slice","_model","472buCWOR","createRangeOn","clear","flat","3940227ddGqyO","1118910kuRwNe","position","set","rootName","39GMXkkx","_trackedElements","values","type","get","name","push","remove"];return(l=function(){return t})()}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=202]})(t,e)}function d(){const t=["document","unshift","map","compareWith","set","move","createRangeOn","_footnoteRefsTracker","6565473kpJmdh","enqueueChange","remove","pluginName","after","_footnotesDefinitions","definition","_handleFootnotesDefinitionsObjectChanges","_footnotes","_handleRemoveFootnoteReferenceById","change:data","createPositionBefore","42IRbjFA","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","224zlWlwX","footnoteId","find","setFootnoteFormatter","getFootnote","paragraph","$graveyard","_insertEmptyFootnotesDefinitionsContainer","getFootnotesFormatter","listenTo","parent","isEqual","_handleFootnoteDefinitionsChanges","getAttribute","_footnoteDefsTracker","min","low","_ensureFootnotesDefinitionsContainerExists","9503703zvpQCA","insert","getRootNames","reset","_updateFootnotesCounters","createElement","registerPostFixer","some","_handleMovedFootnoteReference","footnoteRef","singleton","editor","1158112pKlheD","_footnoteFormatter","config","footnoteInlineContent","footnoteDefinition","splice","length","getChanges","getFootnotes","_footnoteDefsContainerTracker","isOfficialPlugin","_handleFootnoteReferencesChanges","createRangeIn","push","createPositionAt","12spXyUu","footnoteCounter","getChildren","from","before","differ","_handleInsertedFootnoteReference","indexOf","setAttribute","FootnotesTracker","init","get","_updateFootnoteRefCounter","10cQVUNT","497885PXtskZ","footnotes.multiBlock","high","has","end","footnotesDefinitions","136272VDhQMg","_sortFootnoteDefinitions","add","model","_ensureFootnotesReferencesHaveProperOrder","append","childCount","reference","rootName","getFootnotesDefinitionsObjectElement","140188zQDcMI","root","499983axEJwM","findIndex"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(582005===parseInt(e(241))/1+-parseInt(e(239))/2*(-parseInt(e(263))/3)+-parseInt(e(296))/4+-parseInt(e(223))/5*(parseInt(e(209))/6)+-parseInt(e(266))/7*(parseInt(e(229))/8)+-parseInt(e(251))/9*(parseInt(e(222))/10)+parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(259)]=[];[f(256)]=null;[f(297)]=null;[f(203)];[f(250)];[f(280)];static get[f(254)](){return f(218)}static get[f(204)](){return!0}static get[f(265)](){return!0}constructor(t){const e=f;super(t),this[e(203)]=new c(this[e(295)][e(232)],{elementName:e(228),getElementKey:()=>e(294)}),this[e(250)]=new c(this[e(295)][e(232)],{elementName:e(293),getElementKey:t=>t[e(279)](e(267))}),this[e(280)]=new c(this[e(295)][e(232)],{elementName:e(300),getElementKey:t=>t[e(279)](e(267))})}[f(219)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(290)](e=>{const n=t,i=o[n(243)][n(214)][n(303)]();let s=!1;return this[n(258)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(205)](e,i)&&(s=!0),this[n(233)](e)&&(s=!0),this[n(264)](e)&&(s=!0),this[n(230)](e)&&(s=!0),s}),this[t(275)](o[t(243)],t(261),()=>{const e=t;o[e(252)]({isUndoable:!1},t=>{this[e(283)](t)})},{priority:t(282)}),this[t(275)](n,t(247),()=>{const e=t;this[e(259)]=[],this[e(203)][e(287)](),this[e(250)][e(287)](),this[e(280)][e(287)]()},{priority:t(225)})}[f(238)](){return this[f(256)]}[f(270)](t){const e=f;return this[e(259)][e(268)](e=>e.id===t)||null}[f(202)](){const t=f;return Array[t(212)](this[t(259)])}[f(274)](){return this[f(297)]}[f(269)](t){this[f(297)]=t}[f(288)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(259)][o(302)];i++)this[o(221)](t,i)&&(n=!0);return n}[f(273)](t,e){const o=f,n=t[o(289)](o(228),{});return t[o(234)](n,e),this[o(256)]=n,n}[f(283)](t){const e=f;if(!this[e(259)][e(302)]||this[e(256)])return;const o=this[e(259)][0][e(236)][e(240)],n=this[e(273)](t,o);for(const o of this[e(259)])o[e(257)][e(276)]||t[e(285)](o[e(257)],n,e(227));this[e(288)](t)}[f(258)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(203)][o(303)](e);if(r[o(302)]&&(this[o(256)]=r[0]),i[o(302)])if(i[o(302)]>1||this[o(256)]&&i[o(291)](t=>t!==this[o(256)])){const e=t[o(289)](o(228),{}),s=[];this[o(256)]&&s[o(207)](this[o(256)]),s[o(207)](...i),t[o(285)](e,s[0],o(213));for(const n of s)t[o(248)](t[o(206)](n),t[o(208)](e,o(227))),t[o(253)](n);this[o(256)]=e,this[o(288)](t),n=!0}else this[o(256)]=i[0];if(s[o(302)]&&o(272)===this[o(256)]?.[o(240)][o(237)]){for(const e of this[o(259)])t[o(253)](e[o(236)]),n=!0;this[o(259)]=[],this[o(256)]=null}return n}[f(278)](t,e){const o=f;let n=!1;const i=this[o(295)][o(298)][o(220)](o(224)),{inserted:s,moved:r}=this[o(280)][o(303)](e);for(const e of[...r,...s]){const s=e[o(279)](o(267)),r=this[o(270)](s);r&&(r[o(257)]=e),p(t,i,e)&&(n=!0)}return n}[f(205)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(250)][o(303)](e);for(const e of i)this[o(260)](t,e)&&(n=!0);for(const e of s)this[o(215)](t,e)&&(n=!0);for(const e of r)this[o(292)](t,e)&&(n=!0);return n}[f(264)](t){const e=f;if(!this[e(256)])return!1;let o=!1;if(this[e(256)][e(235)]!==this[e(259)][e(302)]){const n=[];for(const t of this[e(256)][e(211)]()){const i=t[e(279)](e(267));this[e(270)](i)||(n[e(244)](t),o=!0)}for(const o of n)t[e(253)](o)}const n=new Set,i=[];for(const t of this[e(256)][e(211)]()){const s=t[e(279)](e(267));n[e(226)](s)?(i[e(244)](t),o=!0):n[e(231)](s)}for(const o of i)t[e(253)](o);return this[e(256)][e(235)]||(t[e(253)](this[e(256)]),this[e(256)]=null,o=!0),o}[f(215)](t,e){const o=f;if(this[o(259)][o(268)](t=>t[o(236)]===e))return!1;let n=!1;const i=e[o(279)](o(267)),s=this[o(259)][o(242)](t=>t.id===i);-1!==s&&(t[o(253)](this[o(259)][s][o(236)]),this[o(259)][o(301)](s,1),n=!0);let r=this[o(256)]?function(t,e){const n=o;for(const o of t[n(211)]())if(o[n(279)](n(267))===e)return o;return null}(this[o(256)],i):null;r||(r=t[o(289)](o(300),{footnoteId:i}),this[o(256)]&&(t[o(285)](r,this[o(256)],o(227)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(295)][o(232)],this[o(259)],e);this[o(259)][o(301)](c,0,a);let l=c;return-1!==s&&(l=Math[o(281)](c,s)),this[o(288)](t,l)&&(n=!0),n}[f(260)](t,e){const o=f,n=this[o(259)][o(242)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(259)][n];return o(272)!==s[o(257)][o(240)][o(237)]&&(t[o(253)](s[o(257)]),i=!0),this[o(259)][o(301)](n,1),this[o(288)](t,n)&&(i=!0),i}[f(292)](t,e){const o=f,n=e[o(279)](o(267)),i=this[o(259)][o(242)](t=>t.id===n),s=this[o(259)][i];let r=!1;s[o(236)]=e,this[o(259)][o(301)](i,1);const a=m(this[o(295)][o(232)],this[o(259)],e);return this[o(259)][o(301)](a,0,s),this[o(288)](t,Math[o(281)](i,a))&&(r=!0),r}[f(221)](t,e){const o=f;if(!this[o(256)])return!1;const n=this[o(259)][e];let i;return i=this[o(297)]?this[o(297)]({footnote:n,container:this[o(256)],digits:String(this[o(259)][o(302)])[o(302)],value:e+1}):String(e+1),n[o(236)][o(279)](o(210))!=i&&(t[o(217)](o(210),i,n[o(236)]),!0)}[f(230)](t){const e=f;if(!this[e(256)]||this[e(259)][e(302)]<2)return!1;if(function(t,o){const n=e;if(t[n(302)]!==o[n(302)])return!1;for(let e=0;e<t[n(302)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(259)][e(245)](t=>t.id),Array[e(212)](this[e(256)][e(211)]())[e(245)](t=>t[e(279)](e(267)))))return!1;let o=!1;for(let n=0;n<this[e(259)][e(302)];n++){const i=this[e(259)][n],s=t[e(262)](i[e(257)]),r=t[e(208)](this[e(256)],n);s[e(277)](r)||(t[e(248)](t[e(249)](i[e(257)]),r),o=!0)}return o}[f(233)](t){const e=f;if(!this[e(259)][e(302)])return!1;const{model:o}=this[e(295)];let n=!1;for(let i=0;i<this[e(259)][e(302)]-1;i++){const s=this[e(259)][i],r=this[e(259)][i+1],a=o[e(262)](s[e(236)]),c=o[e(262)](r[e(236)]);e(255)===a[e(246)](c)&&(this[e(292)](t,s[e(236)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(235)])return!1;const i=n(e?271:299);return t[n(285)](t[n(289)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(302)])return 0;const i=t[n(262)](o);for(let o=0;o<e[n(302)];o++){const s=e[o],r=t[n(262)](s[n(236)]);if(n(213)===i[n(246)](r))return o}const s=o[n(240)];let r=-1;for(let t=e[n(302)]-1;t>=0;t--)if(e[t][n(236)][n(240)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(286)](),c=a[n(216)](s[n(237)]),l=a[c+1];if(l)for(let t=0;t<e[n(302)];t++)if(e[t][n(236)][n(240)][n(237)]===l)return t;return e[n(302)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=278]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(720381===parseInt(e(293))/1+-parseInt(e(309))/2+parseInt(e(302))/3+parseInt(e(297))/4*(-parseInt(e(308))/5)+-parseInt(e(289))/6+-parseInt(e(279))/7+parseInt(e(280))/8*(parseInt(e(291))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(313)](){const t=w,e=this[t(296)][t(298)][t(284)][t(307)],o=this[t(287)](e);this[t(294)]=!!o}[w(305)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(284)],r=this[e(287)](s);if(!r)return;const a=o[e(306)][e(285)](e(286)),c=t?.[e(282)]??(0,i.uid)();!function(t){const o=e;return o(310)==typeof t&&t[o(283)]>0&&!/\s/[o(299)](t)&&!/^\d/[o(299)](t)}(c)?(0,i.logWarning)(e(288)):(n[e(278)](t=>{const o=e,i=t[o(292)](o(300),{footnoteId:c});n[o(290)](i,r,null)}),a[e(311)](c))}[w(287)](t){const e=w,{model:o}=this[e(296)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(304)]())if(n[e(295)](t)||n[e(303)](t))return null;const s=i[e(301)];return n[e(281)](s,e(300))?s:null}}function b(){const t=["4cwiguG","model","test","footnoteRef","end","750606OciCQp","isObject","getItems","execute","plugins","selection","2143885SLATiB","2733176OaDAZv","string","_moveSelectionToFootnoteDefinition","getFirstRange","refresh","change","5446833umSEnQ","64dCKjux","checkChild","footnoteId","length","document","get","FootnotesEditing","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","4545486PpGdBC","insertObject","3438945GIjkZe","createElement","744404vCScxC","isEnabled","isBlock","editor"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(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])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765929600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=206]})(t,e)}function _(){const t=["add","footnoteInlineContent","setAttribute","listenTo","change","getRanges","selection","append","create","_handleCopyFootnotesDefinitions","1113ehBDGo","toModel","htmlProcessor","drop","footnoteId","footnoteRef","outputTransformation","remove","toData","editing","isOfficialPlugin","push","getSelectedBlocks","dataTransfer","length","869620ptlAXk","config","from","createRangeIn","footnoteDefinition","getFootnote","includes","getData","stringify","contentInsertion","method","application/ckeditor5-footnotes","document","FootnotesClipboard","insert","351593ePLtGU","footnotes.multiBlock","definition","end","element","get","getFootnotes","footnotesDefinitions","data","toView","setData","6DZzaZM","clipboardInput","getAttribute","_insertEmptyFootnotesDefinitionsContainer","pluginName","isPremiumPlugin","editor","parse","getFirstRange","1284800wEdJdS","reduce","entries","requires","sourceEditorId","10420047vJtNyV","569317mRjcds","_handlePasteFootnotesDefinitions","2338WCUPxO","root","content","getFootnotesDefinitionsObjectElement","1250165YoKZuz","find","flatMap","createElement","init","_defineClipboardIntegration"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(325850===-parseInt(e(233))/1+-parseInt(e(261))/2*(parseInt(e(281))/3)+-parseInt(e(218))/4+parseInt(e(265))/5+parseInt(e(244))/6*(parseInt(e(259))/7)+-parseInt(e(253))/8+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[P(248)](){return P(231)}static get[P(256)](){return[v,T.ClipboardPipeline]}static get[P(213)](){return!0}static get[P(249)](){return!0}[P(269)](){this[P(270)]()}[P(270)](){const t=P;this[t(280)](),this[t(260)]()}[P(280)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(238)](T.ClipboardPipeline),s=o[t(238)](h);this[t(274)](i,t(209),(o,i)=>{const r=t,a=L(n[r(221)](i[r(263)]));if(!a[r(217)])return;const c=s[r(239)](),l=a[r(254)]((t,o)=>{const n=r,i=c[n(266)](t=>t.id===o);if(i){const o=e[n(241)][n(242)](i[n(235)],{isClipboardPipeline:!0}),s=e[n(241)][n(283)][n(211)](o);t[i.id]=s}return t},Object[r(279)](null));i[r(216)][r(243)](r(229),JSON[r(226)](l))})}[P(260)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(212)],r=n[t(238)](T.ClipboardPipeline),a=n[t(238)](h),c=e[t(219)][t(238)](t(234));let l=null;this[t(274)](s[t(230)],t(245),(e,o)=>{const n=t,i=o[n(216)][n(225)](n(229));l=i?JSON[n(251)](i):null}),this[t(274)](r,t(227),(n,s)=>{const r=t,f=s[r(257)]===this[r(250)].id;f&&r(206)===s[r(228)]||o[r(275)](t=>{const n=r;let u=a[n(264)]();const d=!!u&&Array[n(220)](o[n(230)][n(277)][n(215)]())[n(224)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(221)](e))n.is(o(237),o(240))&&i[o(214)](n);for(const e of i)t[o(210)](e)}(t,s[n(263)]),!l)return;const{selection:h}=o[n(230)],p=h[n(252)]()[n(262)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(221)](e))if(n.is(o(237),o(240)))return n;return null}(t,s[n(263)]),u||=a[n(247)](t,p));const m=Array[n(220)](h[n(276)]())[n(267)](L),g=function(t,e,o){const s=n,r=Object[s(279)](null);for(const{item:n}of t[s(221)](e))if(n.is(s(237),s(208))){const e=n[s(246)](s(207));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(273)](s(207),r[e],n)}return r}(t,s[n(263)],t=>{const e=n;return!f||!!a[e(223)](t)&&!m[e(224)](t)});for(const[o,i]of Object[n(255)](l)){const s=g[o]||o,r=t[n(268)](n(222),{footnoteId:s}),a=e[n(241)][n(283)][n(242)](i);let l;if(c)l=e[n(241)][n(282)](a,r);else{l=t[n(268)](n(272));const o=e[n(241)][n(282)](a,l);t[n(232)](o,l)}t[n(278)](l,r),t[n(232)](r,u,n(236))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(237),e(208))&&o[e(271)](n[e(246)](e(207)));return Array[e(220)](o)}var V=o(311),R=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),U=o.n(W),z=o(741),H=o.n(z),Z=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=H();O()(Z.A,G);Z.A&&Z.A.locals&&Z.A.locals;class X 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",J(t,V.ButtonView)),e.add("menuBar:insertFootnote",J(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var q=Q;function Q(t,e){var o=Y();return(Q=function(t,e){return o[t-=485]})(t,e)}function Y(){var t=["3626022ipxQhs","4xxREhY","requires","123148rfDMfv","6307235RfRkiC","1407032ZgMEcX","Footnotes","1488369oFfrWZ","isOfficialPlugin","pluginName","isPremiumPlugin","4193959SITarF","4347152oMQbbF"];return(Y=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(873078===-parseInt(e(497))/1+-parseInt(e(495))/2*(-parseInt(e(488))/3)+-parseInt(e(493))/4+parseInt(e(485))/5+parseInt(e(494))/6+-parseInt(e(492))/7+-parseInt(e(486))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[q(490)](){return q(487)}static get[q(496)](){return[v,D,X]}static get[q(489)](){return!0}static get[q(491)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=277]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(517225===-parseInt(e(291))/1*(-parseInt(e(278))/2)+parseInt(e(292))/3+-parseInt(e(283))/4*(-parseInt(e(287))/5)+parseInt(e(285))/6+-parseInt(e(293))/7+parseInt(e(290))/8+-parseInt(e(280))/9*(parseInt(e(284))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(279),tt(288),tt(286),tt(282),tt(281),tt(289),tt(294),tt(277)];function nt(){const t=["2974164cRtntC","366002uZyixR","lower-roman","upper-roman","6542JzejoZ","decimal","4952754PSUECf","lower-alpha","upper-latin","647156fgBfze","40HRzpXJ","821862ZYEGvw","lower-latin","20eFEGTK","decimal-leading-zero","upper-alpha","85144BSDvBX","301IrStfO"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=at();return(st=function(t,e){return o[t-=114]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(567008===-parseInt(e(137))/1*(-parseInt(e(132))/2)+-parseInt(e(130))/3*(parseInt(e(119))/4)+-parseInt(e(129))/5+-parseInt(e(114))/6+parseInt(e(117))/7+-parseInt(e(136))/8+parseInt(e(118))/9*(parseInt(e(135))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(122)](){const t=it,{editor:e}=this,o=e[t(115)][t(128)](h)[t(120)]();this[t(134)]=!!o,this[t(116)]=o?.[t(125)](t(131))??null}[it(124)]({value:t}){const e=it,{editor:o}=this,n=o[e(115)][e(128)](h),i=n[e(120)]();i&&ot[e(126)](t)&&o[e(123)][e(121)](o=>{const s=e;o[s(133)](s(131),t,i),n[s(127)](o)})}}function at(){const t=["get","4683255kxyyIH","96yYTuTW","footnotesListStyle","5626EjgWTV","setAttribute","isEnabled","178490UmKoMS","2943312VRvGPE","167gplWem","6555858FrcTWo","plugins","value","7216188Zgzlok","1017XPvliG","69172YcTpJR","getFootnotesDefinitionsObjectElement","change","refresh","model","execute","getAttribute","includes","_updateFootnotesCounters"];return(at=function(){return t})()}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=302]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(365879===-parseInt(e(308))/1+-parseInt(e(303))/2+-parseInt(e(311))/3+parseInt(e(307))/4*(parseInt(e(314))/5)+-parseInt(e(322))/6+-parseInt(e(302))/7+parseInt(e(304))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(318)](){const t=lt,{editor:e}=this,o=e[t(309)][t(310)](h)[t(319)]();this[t(321)]=!!o,this[t(320)]=o?.[t(305)](t(313))??null}[lt(315)]({value:t}){const e=lt,{editor:o}=this,n=o[e(309)][e(310)](h),i=n[e(319)]();i&&Number[e(323)](t)&&o[e(306)][e(316)](o=>{const s=e;o[s(317)](s(313),t,i),n[s(312)](o)})}}function ut(){const t=["_updateFootnotesCounters","footnotesListStart","1075455IwjRWn","execute","change","setAttribute","refresh","getFootnotesDefinitionsObjectElement","value","isEnabled","4374162tNNKhM","isInteger","1558326PhcgCB","63214HAEodE","11019024umZezZ","getAttribute","model","4lHtjmZ","70055bXoMVU","plugins","get","519849qFWmAL"];return(ut=function(){return t})()}const dt=wt;function ht(){const t=["registerPostFixer","name","4020YldAlW","start","padStart","schema","footnotes-list","getItems","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","5286kalbHP","viewItem","upper-latin","for","decimal-leading-zero","element","removeAttribute","document","consumable","lower-alpha","hasAttribute","footnotesStyle","mapper","setFootnoteFormatter","footnotesListStyle","_defineConverters","floor","footnotesStart","setStyle","toViewElement","lower-roman","12398dAELkw","_defineFormatter","add","getStyle","getAttribute","setAttribute","pluginName","max","6498729XpDbdA","init","getChildren","12964584jhnYny","type","element:ol","toLowerCase","upper-roman","position","requires","831369bnLREn","2916640AiVVpJ","upcast","get","find","writer","createRangeOn","_formatFootnoteListValue","config","_defineSchema","differ","$text","commands","footnotes.footnotesProperties.defaultStartIndex","hasClass","footnotesListStart","isNaN","item","attribute:footnotesListStyle:footnotesDefinitions","toUpperCase","insert","parent","40hQVJWw","_updateFootnotesCounters","modelCursor","isPremiumPlugin","FootnotesPropertiesEditing","isOfficialPlugin","extend","fromCharCode","_definePostfixer","lower-latin","3268762RDKHem","define","plugins","nodeAfter","footnotesDefinitions","model","upper-alpha","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","list-style-type","decimal","editor","getChanges","removeStyle","parseInt","checkAttribute","consume","from","downcast"];return(ht=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(861211===parseInt(e(383))/1*(-parseInt(e(343))/2)+-parseInt(e(361))/3+parseInt(e(362))/4+parseInt(e(314))/5*(-parseInt(e(322))/6)+parseInt(e(393))/7+parseInt(e(354))/8+-parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class pt extends t.Plugin{static get[dt(349)](){return dt(387)}static get[dt(360)](){return[v,h]}static get[dt(388)](){return!0}static get[dt(386)](){return!0}[dt(352)](){const t=dt,{editor:e}=this;e[t(369)][t(394)](t(301),t(303)),e[t(369)][t(394)](t(374),1),e[t(373)][t(345)](t(333),new rt(e)),e[t(373)][t(345)](t(339),new ft(e)),this[t(370)](),this[t(337)](),this[t(344)](),this[t(391)]()}[dt(370)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(389)](t(397),{allowAttributes:[t(336),t(376)]})}[dt(337)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(325)](t(363))[t(345)](e=>{const o=t;e.on(o(356),(t,e,n)=>{const s=o,r=e[s(323)],a=e[s(385)]?.[s(382)];r[s(375)](s(318))&&a?.is(s(327),s(397))&&(function(t,e,o,n){const i=s;if(!n[i(308)](e,i(376)))return;let r=1;const a=o[i(330)][i(309)](t,{attributes:i(315)});if(a){const e=Number[i(307)](t[i(347)](i(315)),10);Number[i(377)](e)||(r=e)}!a&&e[i(332)](i(376))||o[i(366)][i(348)](i(376),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(308)](e,i(336)))return;let r=i(303),a=!1;if(o[i(330)][i(309)](t,{attributes:i(355)})){const e={1:i(303),a:i(331),A:i(399),i:i(342),I:i(358)}[t[i(347)](i(355))];e&&(r=e),a=!0}o[i(330)][i(309)](t,{styles:i(302)})&&(r=function(t){const e=i;switch(t){case e(331):return e(392);case e(399):return e(324);default:return t}}(t[i(346)](i(302))),a=!0),!a&&e[i(332)](i(336))||o[i(366)][i(348)](i(336),r,e)}(r,a,n,i))})}),o[t(325)](t(311))[t(345)](e=>{const o=t;e.on(o(321),(t,e,n)=>{const i=o;if(!n[i(330)][i(309)](e[i(378)],t[i(313)]))return;const s=mt(e[i(378)],n[i(334)]),{attributeNewValue:r}=e;null==r||1===r?n[i(366)][i(328)](i(315),s):n[i(366)][i(348)](i(315),String(r),s)}),e.on(o(379),(t,e,n)=>{const i=o;if(!n[i(330)][i(309)](e[i(378)],t[i(313)]))return;const s=mt(e[i(378)],n[i(334)]),{attributeNewValue:r}=e;r&&i(303)!==r?n[i(366)][i(340)](i(302),r,s):n[i(366)][i(306)](i(302),s)})})}[dt(391)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(395)][t(364)](h),i=this[t(300)](),s=this[t(320)]();o[t(329)][t(312)](e=>{const r=t,a=o[r(329)][r(371)][r(305)]();let c=!1;for(const t of a){if(r(381)!==t[r(355)]||r(372)===t[r(313)])continue;const n=o[r(367)](t[r(359)][r(396)]);for(const t of n[r(319)]())t.is(r(327),r(397))&&(!t[r(332)](r(376))&&o[r(317)][r(308)](t,r(376))&&(e[r(348)](r(376),s,t),c=!0),!t[r(332)](r(336))&&o[r(317)][r(308)](t,r(336))&&(e[r(348)](r(336),i,t),c=!0))}return c&&n[r(384)](e),c})}[dt(344)](){const t=dt,{editor:e}=this;e[t(395)][t(364)](h)[t(335)](e=>this[t(368)](e))}[dt(300)](){const t=dt;return this[t(304)][t(369)][t(364)](t(301))}[dt(320)](){const t=dt;return this[t(304)][t(369)][t(364)](t(374))}[dt(368)]({container:t,value:e,digits:o}){const n=dt,i=t[n(347)](n(336)),s=t[n(347)](n(376)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(326):return function(t,e){const o=n;return String(t)[o(316)](e,"0")}(r,Math[n(350)](2,o));case n(331):case n(392):return gt(r,!1);case n(399):case n(324):return gt(r,!0);case n(342):return bt(r,!1);case n(358):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(341)](t);return Array[o(310)](n[o(353)]())[o(365)](t=>t.is(o(327),"ol")&&t[o(375)](o(318)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(390)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(380)]():n}function wt(t,e){const o=ht();return(wt=function(t,e){return o[t-=300]})(t,e)}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=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(357)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=489]})(t,e)}function Et(){var t=["418056cbpWUV","579QdWlIh","4qRyZld","isPremiumPlugin","45918YdqNEz","478fhTZNK","1706892jaiiIv","4600635rAOlNh","928nipIVY","14NrsFCT","1227259ziSiTs","requires","9172780cPyLyH","FootnotesProperties","pluginName","isOfficialPlugin"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(555733===parseInt(e(504))/1+-parseInt(e(493))/2*(-parseInt(e(489))/3)+parseInt(e(490))/4*(parseInt(e(495))/5)+parseInt(e(494))/6*(parseInt(e(497))/7)+parseInt(e(496))/8*(-parseInt(e(492))/9)+-parseInt(e(500))/10+parseInt(e(498))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(502)](){return Ft(501)}static get[Ft(499)](){return[pt,Ct]}static get[Ft(503)](){return!0}static get[Ft(491)](){return!0}}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=326]})(t,e)}function Pt(){var t=["1273491eCVNXB","4uxFQHv","48314ZYUSJF","1254765DBIUQH","45lmUIGT","2795832VslrXr","33YxppWG","122GAkUaA","1171784VhxgPE","6379LPnvcz","2338810zcoTWt"];return(Pt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(398471===parseInt(e(330))/1*(-parseInt(e(328))/2)+parseInt(e(332))/3*(-parseInt(e(333))/4)+parseInt(e(335))/5+-parseInt(e(326))/6+-parseInt(e(334))/7+-parseInt(e(329))/8*(-parseInt(e(336))/9)+-parseInt(e(331))/10*(-parseInt(e(327))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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 _0x4869ba,Command as _0xd04106}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x9750cb,isWidget as _0x16962e,toWidgetEditable as _0x5d97bd,WidgetToolbarRepository as _0x410dcc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1eee8b,logWarning as _0x73ade,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5065df,ClickObserver as _0x12cb76}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x484ee2}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4ab967,ButtonView as _0x5b6f34,View as _0x1ef24d,ViewCollection as _0x55a643,FocusCycler as _0x5dc5a1,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x416435,BalloonPanelView as _0x33f037,createDropdown as _0x51cc92}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1f86e7,IconListStyleDecimal as _0x5e5881,IconListStyleDecimalLeadingZero as _0x31d9e2,IconListStyleLowerRoman as _0x546a74,IconListStyleUpperRoman as _0x1614ec,IconListStyleLowerLatin as _0x5bb2c1,IconListStyleUpperLatin as _0x44027f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4b423e,_0x2ba55c){this['_model']=_0x4b423e,this['_elementName']=_0x2ba55c['elementName'],this['_getElementKey']=_0x2ba55c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xb6ac5f){const _0x3858c0=new Set(),_0x382e07=new Map();for(const _0x21ed26 of _0xb6ac5f){if('insert'===_0x21ed26['type']&&'$text'!==_0x21ed26['name']&&_0x21ed26['position']['nodeAfter']){const _0x2b459e=this['_model']['createRangeOn'](_0x21ed26['position']['nodeAfter']);for(const _0x36caae of _0x2b459e['getItems']()){if(!_0x36caae['is']('element',this['_elementName']))continue;const _0x3132ff=this['_getElementKey'](_0x36caae);_0x382e07['has'](_0x3132ff)||_0x382e07['set'](_0x3132ff,[]),_0x382e07['get'](_0x3132ff)['push'](_0x36caae);}}if('remove'===_0x21ed26['type']&&_0x21ed26['name']===this['_elementName']){const _0x4af4ba=this['_getElementKey']({'getAttribute':_0x512749=>_0x21ed26['attributes']['get'](_0x512749)});_0x3858c0['add'](_0x4af4ba);}}for(const [_0x49b7aa,_0x537e4a]of this['_trackedElements'])'$graveyard'===_0x537e4a['root']['rootName']&&_0x3858c0['add'](_0x49b7aa);for(const _0x5e88f4 of _0x3858c0)this['_trackedElements']['delete'](_0x5e88f4);for(const [_0xc353c9,_0x561670]of _0x382e07)this['_trackedElements']['set'](_0xc353c9,_0x561670[_0x561670['length']-0x1]);const _0x16a659=new Set();for(const [_0x182abd,_0x135b21]of _0x382e07)_0x3858c0['has'](_0x182abd)&&(_0x16a659['add'](_0x135b21[0x0]),_0x135b21['length']>0x1?_0x382e07['set'](_0x182abd,_0x135b21['slice'](0x1)):_0x382e07['delete'](_0x182abd),_0x3858c0['delete'](_0x182abd));return{'removed':Array['from'](_0x3858c0),'inserted':Array['from'](_0x382e07['values']())['flat'](),'moved':Array['from'](_0x16a659)};}}class f extends _0x4869ba{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb3ac4f){super(_0xb3ac4f),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x349d68=>_0x349d68['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x2b58a8=>_0x2b58a8['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3eebfe}=this,{model:_0x6d7614,data:_0x20a344}=_0x3eebfe;_0x6d7614['document']['registerPostFixer'](_0xc9e41a=>{const _0xd0db9f=_0x6d7614['document']['differ']['getChanges']();let _0x858ede=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xc9e41a,_0xd0db9f)&&(_0x858ede=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xc9e41a,_0xd0db9f)&&(_0x858ede=!0x0),this['_handleFootnoteReferencesChanges'](_0xc9e41a,_0xd0db9f)&&(_0x858ede=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xc9e41a)&&(_0x858ede=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xc9e41a)&&(_0x858ede=!0x0),this['_sortFootnoteDefinitions'](_0xc9e41a)&&(_0x858ede=!0x0),_0x858ede;}),this['listenTo'](_0x6d7614['document'],'change:data',()=>{_0x6d7614['enqueueChange']({'isUndoable':!0x1},_0x18981f=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x18981f);});},{'priority':'low'}),this['listenTo'](_0x20a344,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x41852d){return this['_footnotes']['find'](_0x4af2bc=>_0x4af2bc['id']===_0x41852d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x34acf7){this['_footnoteFormatter']=_0x34acf7;}['_updateFootnotesCounters'](_0x55495d,_0x52ca66=0x0){let _0x200233=!0x1;for(let _0x1ea048=_0x52ca66;_0x1ea048<this['_footnotes']['length'];_0x1ea048++)this['_updateFootnoteRefCounter'](_0x55495d,_0x1ea048)&&(_0x200233=!0x0);return _0x200233;}['_insertEmptyFootnotesDefinitionsContainer'](_0x462d27,_0x37d029){const _0x21fa4d=_0x462d27['createElement']('footnotesDefinitions',{});return _0x462d27['append'](_0x21fa4d,_0x37d029),this['_footnotesDefinitions']=_0x21fa4d,_0x21fa4d;}['_ensureFootnotesDefinitionsContainerExists'](_0x254705){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x439cdd=this['_footnotes'][0x0]['reference']['root'],_0x11bc5a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x254705,_0x439cdd);for(const _0x10e73b of this['_footnotes'])_0x10e73b['definition']['parent']||_0x254705['insert'](_0x10e73b['definition'],_0x11bc5a,'end');this['_updateFootnotesCounters'](_0x254705);}['_handleFootnotesDefinitionsObjectChanges'](_0x3b8f21,_0x458a29){let _0x4ba325=!0x1;const {inserted:_0x535cc2,removed:_0x166149,moved:_0x5e7181}=this['_footnoteDefsContainerTracker']['getChanges'](_0x458a29);if(_0x5e7181['length']&&(this['_footnotesDefinitions']=_0x5e7181[0x0]),_0x535cc2['length']){if(_0x535cc2['length']>0x1||this['_footnotesDefinitions']&&_0x535cc2['some'](_0x41988d=>_0x41988d!==this['_footnotesDefinitions'])){const _0x32a98c=_0x3b8f21['createElement']('footnotesDefinitions',{}),_0x45ded0=[];this['_footnotesDefinitions']&&_0x45ded0['push'](this['_footnotesDefinitions']),_0x45ded0['push'](..._0x535cc2),_0x3b8f21['insert'](_0x32a98c,_0x45ded0[0x0],'before');for(const _0x40096e of _0x45ded0)_0x3b8f21['move'](_0x3b8f21['createRangeIn'](_0x40096e),_0x3b8f21['createPositionAt'](_0x32a98c,'end')),_0x3b8f21['remove'](_0x40096e);this['_footnotesDefinitions']=_0x32a98c,this['_updateFootnotesCounters'](_0x3b8f21),_0x4ba325=!0x0;}else this['_footnotesDefinitions']=_0x535cc2[0x0];}if(_0x166149['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x27b92c of this['_footnotes'])_0x3b8f21['remove'](_0x27b92c['reference']),_0x4ba325=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4ba325;}['_handleFootnoteDefinitionsChanges'](_0xc3a69d,_0xe50344){let _0x19ed14=!0x1;const _0x5b40cb=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x7d4e9d,moved:_0x298b90}=this['_footnoteDefsTracker']['getChanges'](_0xe50344);for(const _0x487912 of[..._0x298b90,..._0x7d4e9d]){const _0x2a21e0=_0x487912['getAttribute']('footnoteId'),_0x2f54e4=this['getFootnote'](_0x2a21e0);_0x2f54e4&&(_0x2f54e4['definition']=_0x487912),_(_0xc3a69d,_0x5b40cb,_0x487912)&&(_0x19ed14=!0x0);}return _0x19ed14;}['_handleFootnoteReferencesChanges'](_0x405b10,_0x5e4e65){let _0x57274a=!0x1;const {removed:_0x3d765c,inserted:_0x46a144,moved:_0x8575f8}=this['_footnoteRefsTracker']['getChanges'](_0x5e4e65);for(const _0x3c5f85 of _0x3d765c)this['_handleRemoveFootnoteReferenceById'](_0x405b10,_0x3c5f85)&&(_0x57274a=!0x0);for(const _0x23a72a of _0x46a144)this['_handleInsertedFootnoteReference'](_0x405b10,_0x23a72a)&&(_0x57274a=!0x0);for(const _0x207ec2 of _0x8575f8)this['_handleMovedFootnoteReference'](_0x405b10,_0x207ec2)&&(_0x57274a=!0x0);return _0x57274a;}['_handleFootnotesDefinitionsObjectSync'](_0x28ab54){if(!this['_footnotesDefinitions'])return!0x1;let _0x3fc3f2=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x336879=[];for(const _0x1e4f8c of this['_footnotesDefinitions']['getChildren']()){const _0x16dc8b=_0x1e4f8c['getAttribute']('footnoteId');this['getFootnote'](_0x16dc8b)||(_0x336879['unshift'](_0x1e4f8c),_0x3fc3f2=!0x0);}for(const _0x10eca8 of _0x336879)_0x28ab54['remove'](_0x10eca8);}const _0x4e10c2=new Set(),_0x2e92d1=[];for(const _0x31bb11 of this['_footnotesDefinitions']['getChildren']()){const _0x5368a7=_0x31bb11['getAttribute']('footnoteId');_0x4e10c2['has'](_0x5368a7)?(_0x2e92d1['unshift'](_0x31bb11),_0x3fc3f2=!0x0):_0x4e10c2['add'](_0x5368a7);}for(const _0x1e275a of _0x2e92d1)_0x28ab54['remove'](_0x1e275a);return this['_footnotesDefinitions']['childCount']||(_0x28ab54['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3fc3f2=!0x0),_0x3fc3f2;}['_handleInsertedFootnoteReference'](_0x15c462,_0x4a4d95){if(this['_footnotes']['find'](_0x31b00f=>_0x31b00f['reference']===_0x4a4d95))return!0x1;let _0x303369=!0x1;const _0x8efccb=_0x4a4d95['getAttribute']('footnoteId'),_0x3b7c91=this['_footnotes']['findIndex'](_0x5068a9=>_0x5068a9['id']===_0x8efccb);-0x1!==_0x3b7c91&&(_0x15c462['remove'](this['_footnotes'][_0x3b7c91]['reference']),this['_footnotes']['splice'](_0x3b7c91,0x1),_0x303369=!0x0);let _0x5c9369=this['_footnotesDefinitions']?function(_0x344ce0,_0x3f1e1c){for(const _0x39a0a1 of _0x344ce0['getChildren']())if(_0x39a0a1['getAttribute']('footnoteId')===_0x3f1e1c)return _0x39a0a1;return null;}(this['_footnotesDefinitions'],_0x8efccb):null;_0x5c9369||(_0x5c9369=_0x15c462['createElement']('footnoteDefinition',{'footnoteId':_0x8efccb}),this['_footnotesDefinitions']&&(_0x15c462['insert'](_0x5c9369,this['_footnotesDefinitions'],'end'),_0x303369=!0x0));const _0x11788a={'id':_0x8efccb,'reference':_0x4a4d95,'definition':_0x5c9369},_0x1c3629=I(this['editor']['model'],this['_footnotes'],_0x4a4d95);this['_footnotes']['splice'](_0x1c3629,0x0,_0x11788a);let _0x28b690=_0x1c3629;return-0x1!==_0x3b7c91&&(_0x28b690=Math['min'](_0x1c3629,_0x3b7c91)),this['_updateFootnotesCounters'](_0x15c462,_0x28b690)&&(_0x303369=!0x0),_0x303369;}['_handleRemoveFootnoteReferenceById'](_0x2ebeff,_0x3388de){const _0x103ae2=this['_footnotes']['findIndex'](_0x45dda9=>_0x45dda9['id']===_0x3388de);if(-0x1===_0x103ae2)return!0x1;let _0x4aebe0=!0x1;const _0x275ca5=this['_footnotes'][_0x103ae2];return'$graveyard'!==_0x275ca5['definition']['root']['rootName']&&(_0x2ebeff['remove'](_0x275ca5['definition']),_0x4aebe0=!0x0),this['_footnotes']['splice'](_0x103ae2,0x1),this['_updateFootnotesCounters'](_0x2ebeff,_0x103ae2)&&(_0x4aebe0=!0x0),_0x4aebe0;}['_handleMovedFootnoteReference'](_0x85b178,_0x3b2567){const _0x3a8eab=_0x3b2567['getAttribute']('footnoteId'),_0x55df9d=this['_footnotes']['findIndex'](_0x4386cd=>_0x4386cd['id']===_0x3a8eab),_0x4c6fa4=this['_footnotes'][_0x55df9d];let _0x120466=!0x1;_0x4c6fa4['reference']=_0x3b2567,this['_footnotes']['splice'](_0x55df9d,0x1);const _0x3e2801=I(this['editor']['model'],this['_footnotes'],_0x3b2567);return this['_footnotes']['splice'](_0x3e2801,0x0,_0x4c6fa4),this['_updateFootnotesCounters'](_0x85b178,Math['min'](_0x55df9d,_0x3e2801))&&(_0x120466=!0x0),_0x120466;}['_updateFootnoteRefCounter'](_0x2c3c88,_0x1b222a){if(!this['_footnotesDefinitions'])return!0x1;const _0x1b1613=this['_footnotes'][_0x1b222a];let _0x2709cf;return _0x2709cf=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1b1613,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1b222a+0x1}):String(_0x1b222a+0x1),_0x1b1613['reference']['getAttribute']('footnoteCounter')!=_0x2709cf&&(_0x2c3c88['setAttribute']('footnoteCounter',_0x2709cf,_0x1b1613['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x423a70){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1f3f63,_0x2c2681){if(_0x1f3f63['length']!==_0x2c2681['length'])return!0x1;for(let _0x39a93a=0x0;_0x39a93a<_0x1f3f63['length'];_0x39a93a++)if(_0x1f3f63[_0x39a93a]!==_0x2c2681[_0x39a93a])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x28c682=>_0x28c682['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x46a15b=>_0x46a15b['getAttribute']('footnoteId'))))return!0x1;let _0x2afc3e=!0x1;for(let _0x4a5317=0x0;_0x4a5317<this['_footnotes']['length'];_0x4a5317++){const _0x11c2f0=this['_footnotes'][_0x4a5317],_0x33fdf5=_0x423a70['createPositionBefore'](_0x11c2f0['definition']),_0x41e20f=_0x423a70['createPositionAt'](this['_footnotesDefinitions'],_0x4a5317);_0x33fdf5['isEqual'](_0x41e20f)||(_0x423a70['move'](_0x423a70['createRangeOn'](_0x11c2f0['definition']),_0x41e20f),_0x2afc3e=!0x0);}return _0x2afc3e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2647a6){if(!this['_footnotes']['length'])return!0x1;const {model:_0x15be54}=this['editor'];let _0x2acbf2=!0x1;for(let _0x2bad50=0x0;_0x2bad50<this['_footnotes']['length']-0x1;_0x2bad50++){const _0x1a60a1=this['_footnotes'][_0x2bad50],_0x59e2c0=this['_footnotes'][_0x2bad50+0x1],_0x4e2de9=_0x15be54['createPositionBefore'](_0x1a60a1['reference']),_0x372801=_0x15be54['createPositionBefore'](_0x59e2c0['reference']);'after'===_0x4e2de9['compareWith'](_0x372801)&&(this['_handleMovedFootnoteReference'](_0x2647a6,_0x1a60a1['reference']),_0x2bad50=-0x1,_0x2acbf2=!0x0);}return _0x2acbf2;}}function _(_0x11d1ca,_0x4bf43a,_0x365242){if(_0x365242['childCount'])return!0x1;const _0x4ffc29=_0x4bf43a?'paragraph':'footnoteInlineContent';return _0x11d1ca['insert'](_0x11d1ca['createElement'](_0x4ffc29),_0x365242),!0x0;}function I(_0x1e25aa,_0x140196,_0x4042ea){if(0x0===_0x140196['length'])return 0x0;const _0x13f25f=_0x1e25aa['createPositionBefore'](_0x4042ea);for(let _0x3f42b8=0x0;_0x3f42b8<_0x140196['length'];_0x3f42b8++){const _0xe08f73=_0x140196[_0x3f42b8],_0x1cd277=_0x1e25aa['createPositionBefore'](_0xe08f73['reference']);if('before'===_0x13f25f['compareWith'](_0x1cd277))return _0x3f42b8;}const _0x2555f1=_0x4042ea['root'];let _0x4884ee=-0x1;for(let _0x682462=_0x140196['length']-0x1;_0x682462>=0x0;_0x682462--)if(_0x140196[_0x682462]['reference']['root']===_0x2555f1){_0x4884ee=_0x682462;break;}if(-0x1!==_0x4884ee)return _0x4884ee+0x1;const _0x238604=_0x1e25aa['document']['getRootNames'](),_0xbb5d7e=_0x238604['indexOf'](_0x2555f1['rootName']),_0x200d74=_0x238604[_0xbb5d7e+0x1];if(_0x200d74){for(let _0x225788=0x0;_0x225788<_0x140196['length'];_0x225788++)if(_0x140196[_0x225788]['reference']['root']['rootName']===_0x200d74)return _0x225788;}return _0x140196['length'];}class m extends _0xd04106{['refresh'](){const _0xd9ff80=this['editor']['model']['document']['selection'],_0x1c22f0=this['_getPositionToInsertFootnote'](_0xd9ff80);this['isEnabled']=!!_0x1c22f0;}['execute'](_0x2e52fa){const {editor:_0x8d8603}=this,{model:_0x1b0422}=_0x8d8603,{selection:_0x257dc6}=_0x1b0422['document'],_0x227671=this['_getPositionToInsertFootnote'](_0x257dc6);if(!_0x227671)return;const _0x391164=_0x8d8603['plugins']['get']('FootnotesEditing'),_0x549d46=_0x2e52fa?.['footnoteId']??_0x1eee8b();!function(_0x21f1f0){return'string'==typeof _0x21f1f0&&_0x21f1f0['length']>0x0&&!/\s/['test'](_0x21f1f0)&&!/^\d/['test'](_0x21f1f0);}(_0x549d46)?_0x73ade('insert-footnote-command-executed-with-invalid-id'):(_0x1b0422['change'](_0x41a134=>{const _0xcfe5ab=_0x41a134['createElement']('footnoteRef',{'footnoteId':_0x549d46});_0x1b0422['insertObject'](_0xcfe5ab,_0x227671,null);}),_0x391164['_moveSelectionToFootnoteDefinition'](_0x549d46));}['_getPositionToInsertFootnote'](_0x4d0431){const {model:_0x2bb686}=this['editor'],{schema:_0x4c06f9}=_0x2bb686,_0x4cc5f8=_0x4d0431['getFirstRange']();for(const _0x408c36 of _0x4cc5f8['getItems']())if(_0x4c06f9['isBlock'](_0x408c36)||_0x4c06f9['isObject'](_0x408c36))return null;const _0x35dc72=_0x4cc5f8['end'];return _0x4c06f9['checkChild'](_0x35dc72,'footnoteRef')?_0x35dc72:null;}}class r extends _0x4869ba{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x451b6d}=this;_0x451b6d['config']['define']('footnotes.multiBlock',!0x0),_0x451b6d['commands']['add']('insertFootnote',new m(_0x451b6d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3bc3bd){const _0x2c683d=_0x12d1d7([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]),_0x435131=0x47a28506,_0x17bbed=0x47a5f916^_0x435131,_0x2680d5=window[_0x12d1d7([0x44,0x61,0x74,0x65])][_0x12d1d7([0x6e,0x6f,0x77])](),_0x13cdbd=_0x3bc3bd[_0x12d1d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a26b3=new window[(_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdf8795=>{_0x13cdbd[_0x12d1d7([0x6f,0x6e,0x63,0x65])](_0x12d1d7([0x72,0x65,0x61,0x64,0x79]),_0xdf8795);}),_0x2c2de6={[_0x12d1d7([0x6b,0x74,0x79])]:_0x12d1d7([0x45,0x43]),[_0x12d1d7([0x75,0x73,0x65])]:_0x12d1d7([0x73,0x69,0x67]),[_0x12d1d7([0x63,0x72,0x76])]:_0x12d1d7([0x50,0x2d,0x32,0x35,0x36]),[_0x12d1d7([0x78])]:_0x12d1d7([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]),[_0x12d1d7([0x79])]:_0x12d1d7([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]),[_0x12d1d7([0x61,0x6c,0x67])]:_0x12d1d7([0x45,0x53,0x32,0x35,0x36])},_0x39c3b9=_0x13cdbd[_0x12d1d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12d1d7([0x67,0x65,0x74])](_0x12d1d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19c6ae(){let _0x8b7494,_0x5b2463=null,_0x5c28fe=null;try{if(_0x39c3b9==_0x12d1d7([0x47,0x50,0x4c]))return _0x12d1d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8b7494=_0x49893d(),!_0x8b7494)return _0x12d1d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8b7494[_0x12d1d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c28fe=_0x16bda3(_0x8b7494[_0x12d1d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8b7494[_0x12d1d7([0x6a,0x74,0x69])])),await _0x23009a()?_0x14c71e()?_0x227ec3()?_0x12d1d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xee752f()?(_0x8b7494[_0x12d1d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d1d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b2463=_0x23d852(_0x12d1d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8b7494[_0x12d1d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d1d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b2463=_0x23d852(_0x12d1d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36f38b()):_0x12d1d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12d1d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12d1d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x12d1d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x227ec3(){const _0x45b88d=[_0x12d1d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12d1d7([0x74,0x72,0x69,0x61,0x6c])][_0x12d1d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8b7494[_0x12d1d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2680d5/0x3e8:0xe10*_0x17bbed;return _0x8b7494[_0x12d1d7([0x65,0x78,0x70])]<_0x45b88d;}function _0x14c71e(){const _0x15572c=_0x8b7494[_0x12d1d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15572c&&(!!_0x15572c[_0x12d1d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d1d7([0x2a]))||!!_0x15572c[_0x12d1d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d1d7([0x46,0x4f,0x4f])));}function _0xee752f(){const _0x3aa2aa=_0x8b7494[_0x12d1d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3aa2aa||0x0==_0x3aa2aa[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x502629}=new URL(window[_0x12d1d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3aa2aa[_0x12d1d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x502629))return!0x0;const _0x4c170b=_0x502629[_0x12d1d7([0x73,0x70,0x6c,0x69,0x74])](_0x12d1d7([0x2e]));return _0x3aa2aa[_0x12d1d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29b3af=>_0x29b3af[_0x12d1d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d1d7([0x2a])))[_0x12d1d7([0x6d,0x61,0x70])](_0x25c750=>_0x25c750[_0x12d1d7([0x73,0x70,0x6c,0x69,0x74])](_0x12d1d7([0x2e])))[_0x12d1d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27839f=>_0x27839f[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c170b[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12d1d7([0x6d,0x61,0x70])](_0x40ccf4=>Array(_0x4c170b[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40ccf4[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12d1d7([0x66,0x69,0x6c,0x6c])](_0x40ccf4[0x0]===_0x12d1d7([0x2a])?_0x12d1d7([0x2a]):'')[_0x12d1d7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40ccf4))[_0x12d1d7([0x73,0x6f,0x6d,0x65])](_0x5b8cf2=>_0x4c170b[_0x12d1d7([0x65,0x76,0x65,0x72,0x79])]((_0xae35be,_0xb3fedc)=>_0x5b8cf2[_0xb3fedc]===_0xae35be||_0x5b8cf2[_0xb3fedc]===_0x12d1d7([0x2a])));}function _0x36f38b(){return _0x5b2463&&_0x5c28fe?new window[(_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52fb36,_0x49719d)=>{_0x5b2463[_0x12d1d7([0x74,0x68,0x65,0x6e])](_0x52fb36,_0x49719d),_0x5c28fe[_0x12d1d7([0x74,0x68,0x65,0x6e])](_0x527a0f=>{_0x527a0f!=_0x12d1d7([0x56,0x61,0x6c,0x69,0x64])&&_0x52fb36(_0x527a0f);},_0x49719d);}):_0x5b2463||_0x5c28fe||_0x12d1d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16bda3(_0x428f61,_0x1c439b){return new window[(_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb94d6=>{if(_0x4e098a())return _0xcb94d6(_0x12d1d7([0x56,0x61,0x6c,0x69,0x64]));_0x23d70a(),_0x13cdbd[_0x12d1d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12d1d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4856de=!0x1;const _0xf92ce2=_0x1eee8b();function _0x50cef7(_0x158ced){return!!_0x158ced&&(typeof _0x158ced===_0x12d1d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x158ced===_0x12d1d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x158ced[_0x12d1d7([0x74,0x68,0x65,0x6e])]===_0x12d1d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x158ced[_0x12d1d7([0x63,0x61,0x74,0x63,0x68])]===_0x12d1d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46cc1d(_0xa3af0d){_0x3803c0(_0xa3af0d)[_0x12d1d7([0x74,0x68,0x65,0x6e])](_0x325eb3=>{if(!_0x325eb3||_0x325eb3[_0x12d1d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12d1d7([0x6f,0x6b]))return _0x12d1d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a1333(_0x2beca6(_0xf92ce2+_0x1c439b))!=_0x325eb3[_0x12d1d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12d1d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12d1d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x12d1d7([0x74,0x68,0x65,0x6e])](_0xaf75b5=>(_0xe9ceda(),_0xaf75b5),()=>{const _0x15e5ee=_0x123e55();return null==_0x15e5ee?(_0xe9ceda(),_0x12d1d7([0x56,0x61,0x6c,0x69,0x64])):_0x12d1d7(_0x2680d5-_0x15e5ee>(0x63ae0106^_0x435131)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12d1d7([0x74,0x68,0x65,0x6e])](_0xcb94d6)[_0x12d1d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcb94d6(_0x12d1d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e376c=0x47946b86^_0x435131;function _0xe9ceda(){const _0x19bd73=_0x12d1d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a1333(_0x2beca6(_0x428f61)),_0x45d4ba=_0x2880ca(_0x4a1333(window[_0x12d1d7([0x4d,0x61,0x74,0x68])][_0x12d1d7([0x63,0x65,0x69,0x6c])](_0x2680d5/_0x4e376c)));window[_0x12d1d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d1d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19bd73,_0x45d4ba);}function _0x123e55(){const _0x519598=_0x12d1d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a1333(_0x2beca6(_0x428f61)),_0x2cf03e=window[_0x12d1d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d1d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x519598);return _0x2cf03e?window[_0x12d1d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2880ca(_0x2cf03e),0x10)*_0x4e376c:null;}function _0x3803c0(_0x5533d0){return new window[(_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4ae8,_0x5064fb)=>{_0x5533d0[_0x12d1d7([0x74,0x68,0x65,0x6e])](_0x5b4ae8,_0x5064fb),window[_0x12d1d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5064fb,0x47a351c6^_0x435131);});}}_0x13cdbd[_0x12d1d7([0x6f,0x6e])](_0x12d1d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x576117,_0x48d990)=>{if(_0x48d990[0x0]!=_0x428f61)return _0xcb94d6(_0x12d1d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48d990[0x1]={..._0x48d990[0x1],[_0x12d1d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf92ce2};},{[_0x12d1d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d1d7([0x68,0x69,0x67,0x68])}),_0x13cdbd[_0x12d1d7([0x6f,0x6e])](_0x12d1d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b64e2=>{_0x50cef7(_0x1b64e2[_0x12d1d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4856de=!0x0,_0x46cc1d(_0x1b64e2[_0x12d1d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12d1d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d1d7([0x6c,0x6f,0x77])}),_0x1a26b3[_0x12d1d7([0x74,0x68,0x65,0x6e])](()=>{_0x4856de||_0xcb94d6(_0x12d1d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e098a(){return _0x13cdbd[_0x12d1d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d1d7([0x76,0x69,0x65,0x77])][_0x12d1d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12d1d7([0x61,0x75,0x74,0x6f]);}function _0x23d70a(){_0x13cdbd[_0x12d1d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d1d7([0x76,0x69,0x65,0x77])][_0x12d1d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12d1d7([0x61,0x75,0x74,0x6f]);}}function _0x23d852(_0x7955cc){const _0x5c32e4=[new window[(_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xee2490=>setTimeout(_0xee2490,0x47abbbca^_0x435131)),_0x1a26b3[_0x12d1d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38a723=>{let _0x419dc8=0x0;_0x13cdbd[_0x12d1d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d1d7([0x6f,0x6e])](_0x12d1d7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a6147,_0x34fc06)=>{_0x34fc06[0x0][_0x12d1d7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x419dc8++,_0x419dc8==(0x47a284fe^_0x435131)&&(_0x38a723(),_0x3a6147[_0x12d1d7([0x6f,0x66,0x66])]());});}))];return window[_0x12d1d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12d1d7([0x72,0x61,0x63,0x65])](_0x5c32e4)[_0x12d1d7([0x74,0x68,0x65,0x6e])](()=>_0x7955cc);}async function _0x3df2a2(){await _0x1a26b3,_0x13cdbd[_0x12d1d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d1d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33f3a6,_0x13cdbd[_0x12d1d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d1d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33f3a6,_0x13cdbd[_0x12d1d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12d1d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d9581(_0x2c767d){const _0x37e292=_0x23914a();_0x13cdbd[_0x37e292]=_0x12d1d7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c767d,_0x2c767d!=_0x12d1d7([0x56,0x61,0x6c,0x69,0x64])&&_0x3df2a2();}function _0x23914a(){const _0xe9a4ff=window[_0x12d1d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12d1d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12d1d7([0x6e,0x6f,0x77])]())[_0x12d1d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12d1d7([0x2e]),'');let _0x132692=_0x12d1d7([0x75]);for(let _0x128d1c=0x0;_0x128d1c<_0xe9a4ff[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x128d1c+=0x2){let _0x19af8e=window[_0x12d1d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe9a4ff[_0x12d1d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x128d1c,_0x128d1c+0x2));_0x19af8e>=_0x2c683d[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19af8e-=_0x2c683d[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x132692+=_0x2c683d[_0x19af8e];}return _0x132692;}function _0x49893d(){const _0x8c8451=_0x39c3b9[_0x12d1d7([0x73,0x70,0x6c,0x69,0x74])](_0x12d1d7([0x2e]));if(0x3!=_0x8c8451[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7b713c(_0x8c8451[0x1]);function _0x7b713c(_0x8e2286){const _0x4a2e94=_0x2208e3(_0x8e2286);return _0x4a2e94&&_0x52bbc9()?_0x4a2e94:null;function _0x52bbc9(){const _0x28dc96=_0x4a2e94[_0x12d1d7([0x6a,0x74,0x69])],_0x4ab297=window[_0x12d1d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28dc96[_0x12d1d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28dc96[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42ffc2={..._0x4a2e94,[_0x12d1d7([0x6a,0x74,0x69])]:_0x28dc96[_0x12d1d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28dc96[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42ffc2[_0x12d1d7([0x76,0x63])],_0x2beca6(_0x42ffc2)==_0x4ab297;}}}async function _0x23009a(){let _0x40d943=!0x0;try{const _0x568a5e=_0x39c3b9[_0x12d1d7([0x73,0x70,0x6c,0x69,0x74])](_0x12d1d7([0x2e])),[_0x2cd424,_0x4285c7,_0x1e059e]=_0x568a5e;return _0x1327d2(_0x2cd424),await _0x108697(_0x2cd424,_0x4285c7,_0x1e059e),_0x40d943;}catch{return!0x1;}function _0x1327d2(_0x23d203){const _0x2069e5=_0x2208e3(_0x23d203);_0x2069e5&&_0x2069e5[_0x12d1d7([0x61,0x6c,0x67])]==_0x12d1d7([0x45,0x53,0x32,0x35,0x36])||(_0x40d943=!0x1);}async function _0x108697(_0x440283,_0x11bf79,_0x1e2a22){const _0x50ac71=window[_0x12d1d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12d1d7([0x66,0x72,0x6f,0x6d])](_0x390cd4(_0x1e2a22),_0x6755e9=>_0x6755e9[_0x12d1d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x343471=new window[(_0x12d1d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12d1d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x440283+_0x12d1d7([0x2e])+_0x11bf79),_0x1d291d=window[_0x12d1d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12d1d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d291d)return;const _0x5a4215=await _0x1d291d[_0x12d1d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12d1d7([0x6a,0x77,0x6b]),_0x2c2de6,{[_0x12d1d7([0x6e,0x61,0x6d,0x65])]:_0x12d1d7([0x45,0x43,0x44,0x53,0x41]),[_0x12d1d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12d1d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12d1d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d291d[_0x12d1d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12d1d7([0x6e,0x61,0x6d,0x65])]:_0x12d1d7([0x45,0x43,0x44,0x53,0x41]),[_0x12d1d7([0x68,0x61,0x73,0x68])]:{[_0x12d1d7([0x6e,0x61,0x6d,0x65])]:_0x12d1d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a4215,_0x50ac71,_0x343471)||(_0x40d943=!0x1);}}function _0x2208e3(_0x4c3342){return _0x4c3342[_0x12d1d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12d1d7([0x65,0x79]))?JSON[_0x12d1d7([0x70,0x61,0x72,0x73,0x65])](_0x390cd4(_0x4c3342)):null;}function _0x390cd4(_0x1194c3){return window[_0x12d1d7([0x61,0x74,0x6f,0x62])](_0x1194c3[_0x12d1d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12d1d7([0x2b]))[_0x12d1d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12d1d7([0x2f])));}function _0x2beca6(_0xe8828){let _0x2f137d=0x1505;function _0x14a9a9(_0xf54962){for(let _0x7f93c7=0x0;_0x7f93c7<_0xf54962[_0x12d1d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7f93c7++){const _0x27d27c=_0xf54962[_0x12d1d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7f93c7);_0x2f137d=(_0x2f137d<<0x5)+_0x2f137d+_0x27d27c,_0x2f137d&=_0x2f137d;}}function _0xcb94c4(_0x57cb21){Array[_0x12d1d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57cb21)?_0x57cb21[_0x12d1d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xcb94c4):_0x57cb21&&typeof _0x57cb21==_0x12d1d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12d1d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57cb21)[_0x12d1d7([0x73,0x6f,0x72,0x74])]()[_0x12d1d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c1442,_0x43409d])=>{_0x14a9a9(_0x2c1442),_0xcb94c4(_0x43409d);}):_0x14a9a9(window[_0x12d1d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57cb21));}return _0xcb94c4(_0xe8828),_0x2f137d>>>0x0;}function _0x4a1333(_0x511bfe){return _0x511bfe[_0x12d1d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12d1d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12d1d7([0x30]));}function _0x2880ca(_0x546ebf){return _0x546ebf[_0x12d1d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12d1d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12d1d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x33f3a6(){}function _0x12d1d7(_0x39dd76){return _0x39dd76['map'](_0x5f4ace=>String['fromCharCode'](_0x5f4ace))['join']('');}_0x1d9581(await _0x19c6ae());}(this);}['_moveSelectionToFootnoteDefinition'](_0x147805){const {plugins:_0x3b8c4b,editing:_0x30fc08,model:_0x3529b1}=this['editor'],_0x4b5e08=_0x3b8c4b['get'](f)['getFootnote'](_0x147805);return!!_0x4b5e08&&(_0x3529b1['change'](_0x3509fd=>{_0x3509fd['setSelection'](_0x3509fd['createPositionAt'](_0x4b5e08['definition'],'end'));}),_0x30fc08['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3fdc04){const {plugins:_0x29c34b,editing:_0x4deae6,model:_0x2fc4fe}=this['editor'],_0x1ff266=_0x29c34b['get'](f)['getFootnote'](_0x3fdc04);return!!_0x1ff266&&(_0x2fc4fe['change'](_0x5661f2=>{_0x5661f2['setSelection'](_0x1ff266['reference'],'on');}),_0x4deae6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x24dd68}=this['editor']['model'],_0x3c4d0f=this['editor']['config']['get']('footnotes.multiBlock');_0x24dd68['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x24dd68['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x24dd68['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3c4d0f?_0x24dd68['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x24dd68['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x24dd68['addChildCheck'](_0x3862e3=>{for(const _0x3bc161 of _0x3862e3)if('footnoteDefinition'===_0x3bc161['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2930c2}=this,{conversion:_0x4e8af6,editing:_0x45e5ca}=_0x2930c2,{t:t}=_0x2930c2['locale'];_0x4e8af6['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x193647,{writer:_0x27ef4e,consumable:_0x5a3116})=>{const _0x1f485d=_0x193647['getChild'](0x0);if(!_0x1f485d||!_0x1f485d['is']('element','a'))return null;const _0x4f19cf=_0x1f485d['getAttribute']('href')||'';if(!_0x4f19cf['startsWith']('#'))return null;const _0xbe39c3=_0x4f19cf['replace'](/^#/,'');if(!_0xbe39c3)return null;_0x5a3116['consume'](_0x1f485d,{'name':!0x0,'attributes':['href']});for(const {item:_0x459d8a}of _0x45e5ca['view']['createRangeIn'](_0x1f485d))_0x459d8a['is']('$textProxy')?_0x5a3116['consume'](_0x459d8a['textNode'],{'name':!0x0}):_0x459d8a['is']('element')&&_0x5a3116['consume'](_0x459d8a,{'name':!0x0});return _0x27ef4e['createElement']('footnoteRef',{'footnoteId':_0xbe39c3});}}),_0x4e8af6['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3a82ca,{writer:_0x5b9b0a})=>D(_0x3a82ca,_0x5b9b0a)}),_0x4e8af6['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x52e02f,{writer:_0x52908f})=>{const _0x569b2a=_0x52e02f['getAttribute']('footnoteCounter');return _0x9750cb(D(_0x52e02f,_0x52908f),_0x52908f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x569b2a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x42f958}=this,{t:t}=_0x42f958['locale'],{conversion:_0x37c1f7}=_0x42f958;_0x37c1f7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x37c1f7['for']('upcast')['add'](_0x736bc=>{_0x736bc['on']('element:ol',(_0x2f1532,_0x2538fb,_0x52d972)=>{const _0x30f28a=_0x2538fb['viewItem'];if(!_0x30f28a['hasClass']('footnotes-list')||!_0x2538fb['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x52d972['consumable']['consume'](_0x30f28a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x21ced8,modelCursor:_0x30f0c3}=_0x52d972['convertChildren'](_0x2538fb['viewItem'],_0x2538fb['modelCursor']);_0x2538fb['modelRange']=_0x21ced8,_0x2538fb['modelCursor']=_0x30f0c3;}),_0x736bc['on']('element:hr',(_0x2e57c6,_0x45d604,_0x2c7249)=>{const _0x15d268=_0x45d604['viewItem'];_0x15d268['hasClass']('footnotes-divider')&&_0x45d604['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2c7249['consumable']['consume'](_0x15d268,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x37c1f7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x347cbd,{writer:_0x34de48})=>v(_0x34de48)}),_0x37c1f7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2a3350,{writer:_0x3dc28d})=>{const _0x285fa7=v(_0x3dc28d,{'data-footnotes-list-label':t('Footnotes')}),_0x4d4c1d=_0x9750cb(_0x285fa7,_0x3dc28d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3dc28d['setCustomProperty']('footnotesDefinitions',!0x0,_0x4d4c1d),_0x4d4c1d;}});}['_defineDefinitionConverters'](){const {editor:_0x396b6e}=this,{conversion:_0x122c6b,locale:_0x3db3e8}=_0x396b6e,_0x2013fb=_0x396b6e['config']['get']('footnotes.multiBlock');_0x122c6b['for']('upcast')['add'](_0x35304c=>{_0x35304c['on']('element:li',(_0x305093,_0x3c6065,_0x3bcaf6)=>{const _0x2a192c=_0x3c6065['viewItem'];if(!_0x2a192c['hasClass']('footnote-definition')||!_0x2a192c['getAttribute']('id'))return;const _0x349840=_0x2a192c['parent'];if(!_0x349840['is']('element','ol')||!_0x349840['hasClass']('footnotes-list'))return;if(!_0x3bcaf6['consumable']['test'](_0x2a192c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1691c7=_0x3bcaf6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2a192c['getAttribute']('id')});if(!_0x3bcaf6['safeInsert'](_0x1691c7,_0x3c6065['modelCursor']))return;_0x3bcaf6['consumable']['consume'](_0x2a192c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3cade2=Array['from'](_0x2a192c['getChildren']())['find'](_0xd00c39=>_0xd00c39['is']('element')&&_0xd00c39['hasClass']('footnote-content'));for(const _0x2e8e48 of _0x2a192c['getChildren']())_0x2e8e48['is']('element')&&(_0x3bcaf6['consumable']['consume'](_0x2e8e48,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3bcaf6['consumable']['consume'](_0x2e8e48,{'name':!0x0,'classes':'footnote-content'}));if(_0x3cade2){if(_0x2013fb)_0x3bcaf6['convertChildren'](_0x3cade2,_0x1691c7);else{const _0x234e38=_0x3bcaf6['writer']['createElement']('footnoteInlineContent');_0x3bcaf6['writer']['insert'](_0x234e38,_0x1691c7),_0x3bcaf6['convertChildren'](_0x3cade2,_0x234e38);}}_0x3bcaf6['updateConversionResult'](_0x1691c7,_0x3c6065);});}),_0x122c6b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x392e19,{writer:_0x733bc1})=>b(_0x392e19,_0x733bc1,_0x3db3e8,{'dataPipeline':!0x0})}),_0x122c6b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x6fa381,{writer:_0x5e1457})=>b(_0x6fa381,_0x5e1457,_0x3db3e8)});}['_defineBogusParagraphConverters'](){const {editor:_0x11fb0c}=this,{conversion:_0x3039bb}=_0x11fb0c;_0x11fb0c['config']['get']('footnotes.multiBlock')?(_0x3039bb['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3039bb['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x11fb0c['model']['document'],'change:data',()=>{!function(_0x455c4d,_0x24b6cf){const _0xa1dd4d=_0x455c4d['document']['differ'],_0x1986fa=new Set();for(const _0x2995ae of _0xa1dd4d['getChanges']()){const _0x18fdca='attribute'==_0x2995ae['type']?_0x2995ae['range']['start']['parent']:_0x2995ae['position']['parent'];_0x18fdca['is']('element','footnoteDefinition')&&_0x1986fa['add'](_0x18fdca);}for(const _0x1e6931 of _0x1986fa['values']()){const _0x2cab29=Array['from'](_0x1e6931['getChildren']())['filter'](_0x3ead8e=>g(_0x3ead8e,_0x24b6cf['mapper']));for(const _0x94c66b of _0x2cab29)_0x24b6cf['reconvertItem'](_0x94c66b);}}(_0x11fb0c['model'],_0x11fb0c['editing']);})):(_0x3039bb['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3039bb['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x14ed81,{writer:_0xdd63fe})=>{const _0x27204a=_0xdd63fe['createContainerElement']('span');return _0xdd63fe['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27204a),_0x27204a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3ac12c}=this,{editing:_0x1ea3f7,t:t}=_0x3ac12c,_0x43a908=_0x3ac12c['model']['document']['selection'];_0x3ac12c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3ac12c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1ea3f7['view']['document'],'enter',(_0x439cae,_0x316f9d)=>{const _0x14c054=function(_0x4fb5e2){const _0x387634=_0x4fb5e2['getSelectedElement']();if(_0x387634?.['is']('element','footnoteRef'))return _0x387634;return null;}(_0x43a908);if(_0x14c054){const _0x1c8c30=_0x14c054['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1c8c30),_0x316f9d['preventDefault'](),_0x439cae['stop']();}},{'context':_0x16962e});}['_defineClickHandlers'](){const {editor:_0x51df34}=this,{editing:_0x2a0ccd}=_0x51df34;_0x51df34['editing']['view']['addObserver'](_0x5065df),_0x51df34['editing']['view']['addObserver'](_0x12cb76);let _0x374c59=!0x1;this['listenTo'](_0x2a0ccd['view']['document'],'pointerdown',(_0x1649d4,_0x19386c)=>{const {target:_0x523104}=_0x19386c,_0x9319f0=_0x2a0ccd['view']['document']['selection'];_0x374c59=!!(_0x523104?.['is']('element','a')&&_0x523104['parent']?.['is']('element','sup')&&_0x523104['parent']['hasClass']('footnote'))&&_0x9319f0['getSelectedElement']()===_0x523104['parent'];},{'priority':'high'}),this['listenTo'](_0x2a0ccd['view']['document'],'click',(_0x5cf67e,_0x486aee)=>{const {target:_0x2f6ff8}=_0x486aee;if(!_0x2f6ff8?.['is']('element','a'))return;if(_0x2f6ff8['parent']?.['is']('element','sup')&&_0x2f6ff8['parent']['hasClass']('footnote')&&!_0x374c59)return void _0x486aee['preventDefault']();let _0x33a7c3=_0x2f6ff8['getAttribute']('href');if(!_0x33a7c3?.['startsWith']('#'))return;_0x33a7c3=_0x33a7c3['slice'](0x1);let _0x44ab16=!0x1;(_0x33a7c3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x33a7c3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x33a7c3))&&(_0x44ab16=!0x0),_0x44ab16&&(_0x486aee['preventDefault'](),_0x5cf67e['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5d304e}={}){return(_0x155163,{writer:_0x3ab745})=>{if(!p(_0x155163))return null;if(!_0x5d304e)return _0x3ab745['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x361202=_0x3ab745['createContainerElement']('p');return _0x3ab745['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x361202),_0x361202;};}function p(_0x35530c){const {parent:_0x552a01}=_0x35530c;if(!_0x552a01?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x552a01['childCount'])return!0x1;for(const _0x38c2a2 of _0x35530c['getAttributeKeys']())if(!_0x38c2a2['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x38c2a2)return!0x1;return!0x0;}function g(_0x163e81,_0x40b88e){if(!_0x163e81['is']('element','paragraph'))return!0x1;const _0xe94a67=_0x40b88e['toViewElement'](_0x163e81);return!!_0xe94a67&&p(_0x163e81)!==_0xe94a67['is']('element','span');}function J(_0x358215){return _0x16962e(_0x358215)&&_0x358215['is']('containerElement')&&!!_0x358215['getCustomProperty']('footnotesDefinitions');}function v(_0x2dbc24,_0x3b706f={}){const _0x232c60=_0x2dbc24['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x49de6e=_0x2dbc24['createContainerElement']('ol',{'class':'footnotes-list'},_0x2dbc24['createSlot']());return _0x2dbc24['createContainerElement']('div',{'class':'footnotes',..._0x3b706f},[_0x232c60,_0x49de6e]);}function D(_0x415526,_0x196220){const _0x328d1d=_0x415526['getAttribute']('footnoteId'),_0x5a08b1=_0x415526['getAttribute']('footnoteCounter'),_0x421b04=_0x196220['createUIElement']('a',{'href':'#'+_0x328d1d},function(_0x424a60){const _0x2761ab=this['toDomElement'](_0x424a60);return _0x2761ab['textContent']=_0x5a08b1,_0x2761ab;}),_0x217ff9=_0x196220['createContainerElement']('sup',{'id':'ref-'+_0x328d1d,'class':'footnote'},[_0x421b04]);return _0x217ff9['getFillerOffset']=()=>null,_0x217ff9;}function b(_0x3dfbcd,_0xcbe3f4,_0x50a729,{dataPipeline:_0x5dc8f0}={}){const {t:t}=_0x50a729,_0x143daf=_0x3dfbcd['getAttribute']('footnoteId'),_0x29f021=_0xcbe3f4['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x143daf},function(_0x468156){const _0x4ee234=this['toDomElement'](_0x468156);return _0x4ee234['innerText']='^',_0x4ee234;}),_0x377b5a=_0x5dc8f0?_0xcbe3f4['createContainerElement']('div',{'class':'footnote-content'}):_0x5d97bd(_0xcbe3f4['createEditableElement']('div',{'class':'footnote-content'}),_0xcbe3f4,{'label':t('Footnote\x20content.')});return _0xcbe3f4['insert'](_0xcbe3f4['createPositionAt'](_0x377b5a,0x0),_0xcbe3f4['createSlot']()),_0xcbe3f4['createContainerElement']('li',{'class':'footnote-definition','id':_0x143daf},[_0x29f021,_0x377b5a]);}class e extends _0x4869ba{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x484ee2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x1b37b8}=this,{plugins:_0x3b71d7,model:_0x288311}=_0x1b37b8,_0x38f9e9=_0x3b71d7['get'](_0x484ee2),_0xbda1d=_0x3b71d7['get'](f);this['listenTo'](_0x38f9e9,'outputTransformation',(_0x2abd13,_0x543e13)=>{const _0xbab883=c(_0x288311['createRangeIn'](_0x543e13['content']));if(!_0xbab883['length'])return;const _0x130de1=_0xbda1d['getFootnotes'](),_0x164c5b=_0xbab883['reduce']((_0xbc880e,_0x4e7648)=>{const _0x2a790c=_0x130de1['find'](_0x847f81=>_0x847f81['id']===_0x4e7648);if(_0x2a790c){const _0x200252=_0x1b37b8['data']['toView'](_0x2a790c['definition'],{'isClipboardPipeline':!0x0}),_0x3a8f81=_0x1b37b8['data']['htmlProcessor']['toData'](_0x200252);_0xbc880e[_0x2a790c['id']]=_0x3a8f81;}return _0xbc880e;},Object['create'](null));_0x543e13['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x164c5b));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4939fd}=this,{model:_0x424451,plugins:_0x846fd6}=_0x4939fd,{view:_0x460282}=_0x4939fd['editing'],_0x3df2ef=_0x846fd6['get'](_0x484ee2),_0x4e8666=_0x846fd6['get'](f),_0x507d8e=_0x4939fd['config']['get']('footnotes.multiBlock');let _0x238284=null;this['listenTo'](_0x460282['document'],'clipboardInput',(_0x224c30,_0x20f5be)=>{const _0xbfdb0b=_0x20f5be['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x238284=_0xbfdb0b?JSON['parse'](_0xbfdb0b):null;}),this['listenTo'](_0x3df2ef,'contentInsertion',(_0x454d73,_0x41e8a7)=>{const _0x2a0c7a=_0x41e8a7['sourceEditorId']===this['editor']['id'];_0x2a0c7a&&'drop'===_0x41e8a7['method']||_0x424451['change'](_0x290cb5=>{let _0xd765a8=_0x4e8666['getFootnotesDefinitionsObjectElement']();const _0x563700=!!_0xd765a8&&Array['from'](_0x424451['document']['selection']['getSelectedBlocks']())['includes'](_0xd765a8);if((_0xd765a8&&!_0x563700||!_0xd765a8&&!_0x238284)&&function(_0x5ea782,_0x423911){const _0x1cbc64=[];for(const {item:_0x319cf9}of _0x5ea782['createRangeIn'](_0x423911))_0x319cf9['is']('element','footnotesDefinitions')&&_0x1cbc64['push'](_0x319cf9);for(const _0x50db75 of _0x1cbc64)_0x5ea782['remove'](_0x50db75);}(_0x290cb5,_0x41e8a7['content']),!_0x238284)return;const {selection:_0xcc2a0a}=_0x424451['document'],_0x5474c3=_0xcc2a0a['getFirstRange']()['root'];_0xd765a8&&!_0x563700||(_0xd765a8=function(_0x1d46ac,_0x4bc573){for(const {item:_0x573010}of _0x1d46ac['createRangeIn'](_0x4bc573))if(_0x573010['is']('element','footnotesDefinitions'))return _0x573010;return null;}(_0x290cb5,_0x41e8a7['content']),_0xd765a8||=_0x4e8666['_insertEmptyFootnotesDefinitionsContainer'](_0x290cb5,_0x5474c3));const _0x329007=Array['from'](_0xcc2a0a['getRanges']())['flatMap'](c),_0x247a61=function(_0x53171a,_0xf3c710,_0x138e08){const _0x2520f2=Object['create'](null);for(const {item:_0x5ae95c}of _0x53171a['createRangeIn'](_0xf3c710))if(_0x5ae95c['is']('element','footnoteRef')){const _0x18b362=_0x5ae95c['getAttribute']('footnoteId');if(!_0x138e08(_0x18b362))continue;_0x2520f2[_0x18b362]||(_0x2520f2[_0x18b362]=_0x1eee8b()),_0x53171a['setAttribute']('footnoteId',_0x2520f2[_0x18b362],_0x5ae95c);}return _0x2520f2;}(_0x290cb5,_0x41e8a7['content'],_0x426781=>{if(!_0x2a0c7a)return!0x0;return!!_0x4e8666['getFootnote'](_0x426781)&&!_0x329007['includes'](_0x426781);});for(const [_0x2a1992,_0x30f474]of Object['entries'](_0x238284)){const _0x34892c=_0x247a61[_0x2a1992]||_0x2a1992,_0xd7af59=_0x290cb5['createElement']('footnoteDefinition',{'footnoteId':_0x34892c}),_0x47f8d4=_0x4939fd['data']['htmlProcessor']['toView'](_0x30f474);let _0x5526a5;if(_0x507d8e)_0x5526a5=_0x4939fd['data']['toModel'](_0x47f8d4,_0xd7af59);else{_0x5526a5=_0x290cb5['createElement']('footnoteInlineContent');const _0x341eea=_0x4939fd['data']['toModel'](_0x47f8d4,_0x5526a5);_0x290cb5['insert'](_0x341eea,_0x5526a5);}_0x290cb5['append'](_0x5526a5,_0xd7af59),_0x290cb5['insert'](_0xd7af59,_0xd765a8,'end');}_0x238284=null;});});}}function c(_0x4a7c9c){const _0x1a83ad=new Set();for(const {item:_0x444bc7}of _0x4a7c9c)_0x444bc7['is']('element','footnoteRef')&&_0x1a83ad['add'](_0x444bc7['getAttribute']('footnoteId'));return Array['from'](_0x1a83ad);}class i extends _0x4869ba{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22e97c}=this,{componentFactory:_0x248107}=_0x22e97c['ui'];_0x248107['add']('insertFootnote',x(_0x22e97c,_0x5b6f34)),_0x248107['add']('menuBar:insertFootnote',x(_0x22e97c,_0x4ab967)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x564b6f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x334f41;for(const _0x107c8e in _0x564b6f){const _0x7c5387=_0x107c8e,_0x587c14=_0x564b6f[_0x7c5387];if('footnotesLicenseKeyValid'==_0x587c14||'footnotesLicenseKeyInvalid'==_0x587c14||'footnotesLicenseKeyExpired'==_0x587c14||'footnotesLicenseKeyDomainLimit'==_0x587c14||'footnotesLicenseKeyNotAllowed'==_0x587c14||'footnotesLicenseKeyEvaluationLimit'==_0x587c14||'footnotesLicenseKeyTrialLimit'==_0x587c14||'footnotesLicenseKeyUsageLimit'==_0x587c14){delete _0x564b6f[_0x7c5387],_0x334f41=_0x587c14,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x334f41&&_0x564b6f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x334f41&&_0x564b6f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x334f41&&_0x564b6f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x334f41&&_0x564b6f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x334f41&&_0x564b6f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x334f41&&_0x564b6f['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x334f41&&_0x564b6f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x26ac92,_0x58873b){const _0x106907=_0x26ac92['commands']['get']('insertFootnote');return _0x4736c9=>{const {t:t}=_0x4736c9,_0x591914=new _0x58873b(_0x4736c9),_0x5e4f67=_0x591914 instanceof _0x4ab967;return _0x591914['bind']('isEnabled')['to'](_0x106907,'isEnabled'),_0x591914['set']({'label':t(_0x5e4f67?'Footnote':'Insert\x20footnote'),'icon':_0x1f86e7,'tooltip':!0x0}),_0x591914['on']('execute',()=>{_0x106907['execute'](),_0x26ac92['editing']['view']['focus']();}),_0x591914;};}class lt extends _0x4869ba{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 _0xd04106{['refresh'](){const {editor:_0x2a7e63}=this,_0x203d34=_0x2a7e63['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x203d34,this['value']=_0x203d34?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x31b549}){const {editor:_0xb145b8}=this,_0x3c04b8=_0xb145b8['plugins']['get'](f),_0x483736=_0x3c04b8['getFootnotesDefinitionsObjectElement']();_0x483736&&Q['includes'](_0x31b549)&&_0xb145b8['model']['change'](_0xdc9bff=>{_0xdc9bff['setAttribute']('footnotesListStyle',_0x31b549,_0x483736),_0x3c04b8['_updateFootnotesCounters'](_0xdc9bff);});}}class C extends _0xd04106{['refresh'](){const {editor:_0x2a5f1a}=this,_0xfc80ea=_0x2a5f1a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xfc80ea,this['value']=_0xfc80ea?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2d4fe1}){const {editor:_0x5564ec}=this,_0x2b5586=_0x5564ec['plugins']['get'](f),_0x59e529=_0x2b5586['getFootnotesDefinitionsObjectElement']();_0x59e529&&Number['isInteger'](_0x2d4fe1)&&_0x5564ec['model']['change'](_0xff019=>{_0xff019['setAttribute']('footnotesListStart',_0x2d4fe1,_0x59e529),_0x2b5586['_updateFootnotesCounters'](_0xff019);});}}class P extends _0x4869ba{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb38d47}=this;_0xb38d47['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xb38d47['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xb38d47['commands']['add']('footnotesStyle',new S(_0xb38d47)),_0xb38d47['commands']['add']('footnotesStart',new C(_0xb38d47)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x206bc3}=this,{schema:_0x4adcf2}=_0x206bc3['model'];_0x4adcf2['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1ce0d0}=this,{conversion:_0x445b8c,model:_0x723a26}=_0x1ce0d0,{schema:_0x2cce45}=_0x723a26;_0x445b8c['for']('upcast')['add'](_0x4d4368=>{_0x4d4368['on']('element:ol',(_0x4bc739,_0x3ecff7,_0xb5ce4)=>{const _0x339d2e=_0x3ecff7['viewItem'],_0x1e42e9=_0x3ecff7['modelCursor']?.['parent'];_0x339d2e['hasClass']('footnotes-list')&&_0x1e42e9?.['is']('element','footnotesDefinitions')&&(function(_0x2591ae,_0x514846,_0x2e7bf3,_0x2fd771){if(!_0x2fd771['checkAttribute'](_0x514846,'footnotesListStart'))return;let _0x3fdf1e=0x1;const _0x402e55=_0x2e7bf3['consumable']['consume'](_0x2591ae,{'attributes':'start'});if(_0x402e55){const _0x8e320c=Number['parseInt'](_0x2591ae['getAttribute']('start'),0xa);Number['isNaN'](_0x8e320c)||(_0x3fdf1e=_0x8e320c);}!_0x402e55&&_0x514846['hasAttribute']('footnotesListStart')||_0x2e7bf3['writer']['setAttribute']('footnotesListStart',_0x3fdf1e,_0x514846);}(_0x339d2e,_0x1e42e9,_0xb5ce4,_0x2cce45),function(_0x2ace09,_0x416a2d,_0x416e1d,_0x19d0c8){if(!_0x19d0c8['checkAttribute'](_0x416a2d,'footnotesListStyle'))return;let _0x568c2c='decimal',_0x134713=!0x1;if(_0x416e1d['consumable']['consume'](_0x2ace09,{'attributes':'type'})){const _0x1b586a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2ace09['getAttribute']('type')];_0x1b586a&&(_0x568c2c=_0x1b586a),_0x134713=!0x0;}_0x416e1d['consumable']['consume'](_0x2ace09,{'styles':'list-style-type'})&&(_0x568c2c=function(_0x7e08fc){switch(_0x7e08fc){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x7e08fc;}}(_0x2ace09['getStyle']('list-style-type')),_0x134713=!0x0),!_0x134713&&_0x416a2d['hasAttribute']('footnotesListStyle')||_0x416e1d['writer']['setAttribute']('footnotesListStyle',_0x568c2c,_0x416a2d);}(_0x339d2e,_0x1e42e9,_0xb5ce4,_0x2cce45));});}),_0x445b8c['for']('downcast')['add'](_0x4d9141=>{_0x4d9141['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x189e70,_0x4c7c4f,_0x361b23)=>{if(!_0x361b23['consumable']['consume'](_0x4c7c4f['item'],_0x189e70['name']))return;const _0x5b01dc=M(_0x4c7c4f['item'],_0x361b23['mapper']),{attributeNewValue:_0x23cc29}=_0x4c7c4f;null==_0x23cc29||0x1===_0x23cc29?_0x361b23['writer']['removeAttribute']('start',_0x5b01dc):_0x361b23['writer']['setAttribute']('start',String(_0x23cc29),_0x5b01dc);}),_0x4d9141['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2ff8dd,_0x149535,_0x2b7a06)=>{if(!_0x2b7a06['consumable']['consume'](_0x149535['item'],_0x2ff8dd['name']))return;const _0x498dcc=M(_0x149535['item'],_0x2b7a06['mapper']),{attributeNewValue:_0x3e1088}=_0x149535;_0x3e1088&&'decimal'!==_0x3e1088?_0x2b7a06['writer']['setStyle']('list-style-type',_0x3e1088,_0x498dcc):_0x2b7a06['writer']['removeStyle']('list-style-type',_0x498dcc);});});}['_definePostfixer'](){const {editor:_0x5ae73f}=this,{model:_0x3238f7}=_0x5ae73f,_0x28fd0b=_0x5ae73f['plugins']['get'](f),_0x381621=this['_getDefaultListStyle'](),_0x11f23d=this['_getDefaultStartIndex']();_0x3238f7['document']['registerPostFixer'](_0x82d984=>{const _0x447a39=_0x3238f7['document']['differ']['getChanges']();let _0x4a201e=!0x1;for(const _0x4c1874 of _0x447a39){if('insert'!==_0x4c1874['type']||'$text'===_0x4c1874['name'])continue;const _0x21de3c=_0x3238f7['createRangeOn'](_0x4c1874['position']['nodeAfter']);for(const _0xafb51e of _0x21de3c['getItems']())_0xafb51e['is']('element','footnotesDefinitions')&&(!_0xafb51e['hasAttribute']('footnotesListStart')&&_0x3238f7['schema']['checkAttribute'](_0xafb51e,'footnotesListStart')&&(_0x82d984['setAttribute']('footnotesListStart',_0x11f23d,_0xafb51e),_0x4a201e=!0x0),!_0xafb51e['hasAttribute']('footnotesListStyle')&&_0x3238f7['schema']['checkAttribute'](_0xafb51e,'footnotesListStyle')&&(_0x82d984['setAttribute']('footnotesListStyle',_0x381621,_0xafb51e),_0x4a201e=!0x0));}return _0x4a201e&&_0x28fd0b['_updateFootnotesCounters'](_0x82d984),_0x4a201e;});}['_defineFormatter'](){const {editor:_0x8a9dcd}=this;_0x8a9dcd['plugins']['get'](f)['setFootnoteFormatter'](_0x2001cf=>this['_formatFootnoteListValue'](_0x2001cf));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xa90c3,value:_0x5aead9,digits:_0x2f7880}){const _0x1560e4=_0xa90c3['getAttribute']('footnotesListStyle'),_0x5c70c2=_0xa90c3['getAttribute']('footnotesListStart'),_0x6eb15f=Math['floor'](_0x5aead9)+(_0x5c70c2??0x1)-0x1;switch(_0x1560e4){case'decimal-leading-zero':return function(_0x5b4af2,_0x3c03ae){return String(_0x5b4af2)['padStart'](_0x3c03ae,'0');}(_0x6eb15f,Math['max'](0x2,_0x2f7880));case'lower-alpha':case'lower-latin':return N(_0x6eb15f,!0x1);case'upper-alpha':case'upper-latin':return N(_0x6eb15f,!0x0);case'lower-roman':return X(_0x6eb15f,!0x1);case'upper-roman':return X(_0x6eb15f,!0x0);default:return String(_0x6eb15f);}}}function M(_0x9ee8fc,_0x2f0321){const _0x315bc8=_0x2f0321['toViewElement'](_0x9ee8fc);return Array['from'](_0x315bc8['getChildren']())['find'](_0x50a41d=>_0x50a41d['is']('element','ol')&&_0x50a41d['hasClass']('footnotes-list'));}function N(_0x4c060c,_0x38bd8e){let _0x37faeb='',_0x2030d0=_0x4c060c;for(;_0x2030d0>0x0;){const _0x5bc950=(_0x2030d0-0x1)%0x1a;_0x37faeb=String['fromCharCode'](0x61+_0x5bc950)+_0x37faeb,_0x2030d0=Math['floor']((_0x2030d0-0x1)/0x1a);}return _0x38bd8e?_0x37faeb['toUpperCase']():_0x37faeb;}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(_0x44a889,_0x36cdd0){let _0x1043be='',_0x17cb32=_0x44a889;for(const {value:_0x368a11,numeral:_0x4a6a09}of V)for(;_0x17cb32>=_0x368a11;)_0x1043be+=_0x4a6a09,_0x17cb32-=_0x368a11;return _0x36cdd0?_0x1043be:_0x1043be['toLowerCase']();}class H extends _0x1ef24d{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x55a643();['focusCycler'];constructor(_0x427cf1,{styleButtonViews:_0x3425c6,styleGridAriaLabel:_0x2d0a71}){super(_0x427cf1),(this['focusCycler']=new _0x5dc5a1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3425c6,_0x2d0a71),[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 _0x37e576 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x37e576['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 _0x3b8f7f=_0x5e8d5b=>_0x5e8d5b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3b8f7f),this['keystrokes']['set']('arrowleft',_0x3b8f7f),this['keystrokes']['set']('arrowup',_0x3b8f7f),this['keystrokes']['set']('arrowdown',_0x3b8f7f);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5d3bcb,_0x595129){const _0x514c6e=new _0x1ef24d(this['locale']);return _0x514c6e['children']=_0x514c6e['createCollection'](),_0x514c6e['children']['addMany'](_0x5d3bcb),_0x514c6e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x595129,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x514c6e['children']}),_0x514c6e['children']['delegate']('execute')['to'](this),_0x514c6e['focus']=function(){for(const _0x4c90f3 of this['children'])if(_0x4c90f3 instanceof _0x5b6f34&&_0x4c90f3['isOn'])return void _0x4c90f3['focus']();this['children']['first']['focus']();},_0x514c6e['focusTracker']=new ot(),_0x514c6e['keystrokes']=new rt(),_0x514c6e['render'](),_0x514c6e['keystrokes']['listenTo'](_0x514c6e['element']),this['children']['add'](_0x514c6e),_0x514c6e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3e5be9=this['_createStartIndexPropertyView'](),_0x1bfc66=[_0x3e5be9],_0x37ae14=new st(this['locale'],_0x1bfc66);return _0x37ae14['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x37ae14['buttonView']['bind']('isEnabled')['toMany'](_0x1bfc66,'isEnabled',(..._0xf6d232)=>_0xf6d232['some'](_0x54d78f=>_0x54d78f)),_0x37ae14['buttonView']['on']('change:isEnabled',(_0x292dbf,_0x4efa67,_0x44ea84)=>{_0x44ea84||(_0x37ae14['isCollapsed']=!0x0);}),this['children']['add'](_0x37ae14),[_0x3e5be9,_0x37ae14];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x730d5e=new it(this['locale'],et);return _0x730d5e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x730d5e['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x730d5e['fieldView']['on']('input',()=>{const _0x431107=_0x730d5e['fieldView']['element'],_0x26b2b4=_0x431107['valueAsNumber'];Number['isNaN'](_0x26b2b4)?_0x730d5e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x431107['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x26b2b4}):_0x730d5e['errorText']=t(_0x26b2b4<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x730d5e;}}class j extends _0x4869ba{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x416435,_0x410dcc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b99c4}=this,{componentFactory:_0x2020ce}=_0x1b99c4['ui'];_0x1b99c4['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2020ce['add']('footnotesStyle',function(_0x1e4894){return _0x1fbae0=>{const {t:t}=_0x1fbae0,_0x2bc03d=_0x1e4894['commands']['get']('footnotesStyle'),_0x5ae6bf=_0x51cc92(_0x1fbae0),{buttonView:_0xf75484}=_0x5ae6bf;return _0x5ae6bf['class']='ck-footnotes-styles-dropdown',_0x5ae6bf['bind']('isEnabled')['to'](_0x2bc03d,'isEnabled'),_0xf75484['set']({'label':t('Footnotes\x20style'),'icon':_0x1f86e7,'tooltip':!0x0}),_0x5ae6bf['once']('change:isOpen',()=>{const _0x31d2ec=function({editor:_0x3d3ae5,dropdownView:_0x74d5f4}){const {t:t}=_0x3d3ae5['locale'],_0x249398=t('Footnotes\x20definitions\x20styles'),_0x45e2bb=function(_0x40a44c){const t=_0x40a44c['locale']['t'],_0x3c0eed=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5e5881},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x31d9e2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x546a74},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1614ec},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5bb2c1},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x44027f}];return _0x3c0eed['map'](function(_0x46bc29){const _0xb700c3=_0x46bc29['locale'];return({label:_0x4656f0,icon:_0x266984,tooltip:_0x14ebb0,style:_0x98713e})=>{const _0x39e5c4=_0x46bc29['commands']['get']('footnotesStyle'),_0x4b36a4=new _0x5b6f34(_0xb700c3);return _0x4b36a4['set']({'label':_0x4656f0,'icon':_0x266984,'tooltip':_0x14ebb0}),_0x4b36a4['bind']('isOn')['to'](_0x39e5c4,'value',_0x428545=>_0x428545===_0x98713e),_0x4b36a4['bind']('isEnabled')['to'](_0x39e5c4,'isEnabled'),_0x4b36a4['on']('execute',()=>{_0x46bc29['execute']('footnotesStyle',{'value':_0x98713e}),_0x46bc29['editing']['view']['focus']();}),_0x4b36a4;};}(_0x40a44c));}(_0x3d3ae5),_0x192236=new H(_0x3d3ae5['locale'],{'styleGridAriaLabel':_0x249398,'styleButtonViews':_0x45e2bb}),_0x18ad82=_0x3d3ae5['commands']['get']('footnotesStart');return _0x192236['startIndexFieldView']['bind']('isEnabled')['to'](_0x18ad82),_0x192236['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x18ad82),_0x192236['on']('footnotesListStart',(_0x20d085,_0xeaa5f)=>{_0x3d3ae5['execute']('footnotesStart',{'value':_0xeaa5f['startIndex']});}),_0x192236['delegate']('execute')['to'](_0x74d5f4),_0x192236;}({'editor':_0x1e4894,'dropdownView':_0x5ae6bf});_0x5ae6bf['panelView']['children']['add'](_0x31d2ec);}),_0x5ae6bf;};}(_0x1b99c4));}['afterInit'](){const {editor:_0x501ce7}=this,{t:t}=_0x501ce7['locale'],_0x4b49f=_0x501ce7['plugins']['get'](_0x410dcc),{defaultPositions:_0x5d90fd}=_0x33f037;_0x4b49f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x501ce7['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc55702=>{let _0x24ee7d=_0xc55702['getFirstPosition']()?.['parent'];return _0x24ee7d?.['is']('$text')&&(_0x24ee7d=_0x24ee7d['parent']),_0x24ee7d?.['is']('element')?_0x24ee7d['findAncestor'](J):null;},'positions':[_0x5d90fd['southArrowNorth'],_0x5d90fd['southArrowNorthMiddleWest'],_0x5d90fd['southArrowNorthMiddleEast'],_0x5d90fd['southArrowNorthWest'],_0x5d90fd['southArrowNorthEast'],_0x5d90fd['northArrowSouth'],_0x5d90fd['northArrowSouthMiddleWest'],_0x5d90fd['northArrowSouthMiddleEast'],_0x5d90fd['northArrowSouthWest'],_0x5d90fd['northArrowSouthEast'],_0x5d90fd['viewportStickyNorth']]});}}class ft extends _0x4869ba{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,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x9a6199,Command as _0x2eec5a}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x198556,isWidget as _0x37cf41,toWidgetEditable as _0x267342,WidgetToolbarRepository as _0x11e246}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x15c27a,logWarning as _0x51279b,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x515be9,ClickObserver as _0xd45394}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5d4038}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x7290a3,ButtonView as _0x277236,View as _0x313716,ViewCollection as _0xdad254,FocusCycler as _0xa994eb,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x40c76c,BalloonPanelView as _0x3c9c0c,createDropdown as _0x18dd8a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x266f85,IconListStyleDecimal as _0x152354,IconListStyleDecimalLeadingZero as _0x2129dd,IconListStyleLowerRoman as _0x4f7d43,IconListStyleUpperRoman as _0x223cef,IconListStyleLowerLatin as _0x3117b5,IconListStyleUpperLatin as _0x24565b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x41c157,_0x1c8cb1){this['_model']=_0x41c157,this['_elementName']=_0x1c8cb1['elementName'],this['_getElementKey']=_0x1c8cb1['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x27fc84){const _0x3b79a8=new Set(),_0x1b49a7=new Map();for(const _0x53a255 of _0x27fc84){if('insert'===_0x53a255['type']&&'$text'!==_0x53a255['name']&&_0x53a255['position']['nodeAfter']){const _0x303b68=this['_model']['createRangeOn'](_0x53a255['position']['nodeAfter']);for(const _0x43bb4f of _0x303b68['getItems']()){if(!_0x43bb4f['is']('element',this['_elementName']))continue;const _0x96bff3=this['_getElementKey'](_0x43bb4f);_0x1b49a7['has'](_0x96bff3)||_0x1b49a7['set'](_0x96bff3,[]),_0x1b49a7['get'](_0x96bff3)['push'](_0x43bb4f);}}if('remove'===_0x53a255['type']&&_0x53a255['name']===this['_elementName']){const _0x24c18d=this['_getElementKey']({'getAttribute':_0x361718=>_0x53a255['attributes']['get'](_0x361718)});_0x3b79a8['add'](_0x24c18d);}}for(const [_0x493755,_0x3de460]of this['_trackedElements'])'$graveyard'===_0x3de460['root']['rootName']&&_0x3b79a8['add'](_0x493755);for(const _0x54c943 of _0x3b79a8)this['_trackedElements']['delete'](_0x54c943);for(const [_0x1e5f40,_0x2f65e9]of _0x1b49a7)this['_trackedElements']['set'](_0x1e5f40,_0x2f65e9[_0x2f65e9['length']-0x1]);const _0x1dee75=new Set();for(const [_0xe2c14a,_0x53115d]of _0x1b49a7)_0x3b79a8['has'](_0xe2c14a)&&(_0x1dee75['add'](_0x53115d[0x0]),_0x53115d['length']>0x1?_0x1b49a7['set'](_0xe2c14a,_0x53115d['slice'](0x1)):_0x1b49a7['delete'](_0xe2c14a),_0x3b79a8['delete'](_0xe2c14a));return{'removed':Array['from'](_0x3b79a8),'inserted':Array['from'](_0x1b49a7['values']())['flat'](),'moved':Array['from'](_0x1dee75)};}}class f extends _0x9a6199{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a29f4){super(_0x3a29f4),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5f2dc0=>_0x5f2dc0['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4ce3c0=>_0x4ce3c0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4d69c2}=this,{model:_0x191883,data:_0x319c52}=_0x4d69c2;_0x191883['document']['registerPostFixer'](_0x2a4402=>{const _0x1a23fb=_0x191883['document']['differ']['getChanges']();let _0x3f69bd=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2a4402,_0x1a23fb)&&(_0x3f69bd=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2a4402,_0x1a23fb)&&(_0x3f69bd=!0x0),this['_handleFootnoteReferencesChanges'](_0x2a4402,_0x1a23fb)&&(_0x3f69bd=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2a4402)&&(_0x3f69bd=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2a4402)&&(_0x3f69bd=!0x0),this['_sortFootnoteDefinitions'](_0x2a4402)&&(_0x3f69bd=!0x0),_0x3f69bd;}),this['listenTo'](_0x191883['document'],'change:data',()=>{_0x191883['enqueueChange']({'isUndoable':!0x1},_0x21831c=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x21831c);});},{'priority':'low'}),this['listenTo'](_0x319c52,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4ac9ac){return this['_footnotes']['find'](_0x10ec47=>_0x10ec47['id']===_0x4ac9ac)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1cda6d){this['_footnoteFormatter']=_0x1cda6d;}['_updateFootnotesCounters'](_0x6c6a17,_0x5d0366=0x0){let _0x47032e=!0x1;for(let _0xbe330c=_0x5d0366;_0xbe330c<this['_footnotes']['length'];_0xbe330c++)this['_updateFootnoteRefCounter'](_0x6c6a17,_0xbe330c)&&(_0x47032e=!0x0);return _0x47032e;}['_insertEmptyFootnotesDefinitionsContainer'](_0x455f7a,_0x1e6eca){const _0x534afb=_0x455f7a['createElement']('footnotesDefinitions',{});return _0x455f7a['append'](_0x534afb,_0x1e6eca),this['_footnotesDefinitions']=_0x534afb,_0x534afb;}['_ensureFootnotesDefinitionsContainerExists'](_0x34f96f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x1795c6=this['_footnotes'][0x0]['reference']['root'],_0x4e76ef=this['_insertEmptyFootnotesDefinitionsContainer'](_0x34f96f,_0x1795c6);for(const _0x5ec280 of this['_footnotes'])_0x5ec280['definition']['parent']||_0x34f96f['insert'](_0x5ec280['definition'],_0x4e76ef,'end');this['_updateFootnotesCounters'](_0x34f96f);}['_handleFootnotesDefinitionsObjectChanges'](_0x322a65,_0xdd6967){let _0x54d544=!0x1;const {inserted:_0x11aaef,removed:_0x1f46c0,moved:_0x378353}=this['_footnoteDefsContainerTracker']['getChanges'](_0xdd6967);if(_0x378353['length']&&(this['_footnotesDefinitions']=_0x378353[0x0]),_0x11aaef['length']){if(_0x11aaef['length']>0x1||this['_footnotesDefinitions']&&_0x11aaef['some'](_0x5b9047=>_0x5b9047!==this['_footnotesDefinitions'])){const _0xb394c5=_0x322a65['createElement']('footnotesDefinitions',{}),_0x94aab2=[];this['_footnotesDefinitions']&&_0x94aab2['push'](this['_footnotesDefinitions']),_0x94aab2['push'](..._0x11aaef),_0x322a65['insert'](_0xb394c5,_0x94aab2[0x0],'before');for(const _0x3d39cd of _0x94aab2)_0x322a65['move'](_0x322a65['createRangeIn'](_0x3d39cd),_0x322a65['createPositionAt'](_0xb394c5,'end')),_0x322a65['remove'](_0x3d39cd);this['_footnotesDefinitions']=_0xb394c5,this['_updateFootnotesCounters'](_0x322a65),_0x54d544=!0x0;}else this['_footnotesDefinitions']=_0x11aaef[0x0];}if(_0x1f46c0['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x8cbc0d of this['_footnotes'])_0x322a65['remove'](_0x8cbc0d['reference']),_0x54d544=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x54d544;}['_handleFootnoteDefinitionsChanges'](_0x235c30,_0xd578c1){let _0x5bb893=!0x1;const _0x2a002a=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x16d138,moved:_0x27917b}=this['_footnoteDefsTracker']['getChanges'](_0xd578c1);for(const _0x513800 of[..._0x27917b,..._0x16d138]){const _0x17539a=_0x513800['getAttribute']('footnoteId'),_0x4b1b35=this['getFootnote'](_0x17539a);_0x4b1b35&&(_0x4b1b35['definition']=_0x513800),_(_0x235c30,_0x2a002a,_0x513800)&&(_0x5bb893=!0x0);}return _0x5bb893;}['_handleFootnoteReferencesChanges'](_0x1e0c0b,_0x3f7e07){let _0x3349b4=!0x1;const {removed:_0x3f1d75,inserted:_0x2fdccf,moved:_0x15a7f8}=this['_footnoteRefsTracker']['getChanges'](_0x3f7e07);for(const _0x1b5873 of _0x3f1d75)this['_handleRemoveFootnoteReferenceById'](_0x1e0c0b,_0x1b5873)&&(_0x3349b4=!0x0);for(const _0x3de5a8 of _0x2fdccf)this['_handleInsertedFootnoteReference'](_0x1e0c0b,_0x3de5a8)&&(_0x3349b4=!0x0);for(const _0x2e2b4c of _0x15a7f8)this['_handleMovedFootnoteReference'](_0x1e0c0b,_0x2e2b4c)&&(_0x3349b4=!0x0);return _0x3349b4;}['_handleFootnotesDefinitionsObjectSync'](_0x98666c){if(!this['_footnotesDefinitions'])return!0x1;let _0x4e884f=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4f17b2=[];for(const _0x492265 of this['_footnotesDefinitions']['getChildren']()){const _0x4c2968=_0x492265['getAttribute']('footnoteId');this['getFootnote'](_0x4c2968)||(_0x4f17b2['unshift'](_0x492265),_0x4e884f=!0x0);}for(const _0x38e678 of _0x4f17b2)_0x98666c['remove'](_0x38e678);}const _0x491d07=new Set(),_0x163fcd=[];for(const _0x8c8eea of this['_footnotesDefinitions']['getChildren']()){const _0xbc0d6e=_0x8c8eea['getAttribute']('footnoteId');_0x491d07['has'](_0xbc0d6e)?(_0x163fcd['unshift'](_0x8c8eea),_0x4e884f=!0x0):_0x491d07['add'](_0xbc0d6e);}for(const _0x3bd896 of _0x163fcd)_0x98666c['remove'](_0x3bd896);return this['_footnotesDefinitions']['childCount']||(_0x98666c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4e884f=!0x0),_0x4e884f;}['_handleInsertedFootnoteReference'](_0x5e3c51,_0x215702){if(this['_footnotes']['find'](_0x34b5db=>_0x34b5db['reference']===_0x215702))return!0x1;let _0x43ddb6=!0x1;const _0x25b5d6=_0x215702['getAttribute']('footnoteId'),_0x34cc32=this['_footnotes']['findIndex'](_0x5bd7ea=>_0x5bd7ea['id']===_0x25b5d6);-0x1!==_0x34cc32&&(_0x5e3c51['remove'](this['_footnotes'][_0x34cc32]['reference']),this['_footnotes']['splice'](_0x34cc32,0x1),_0x43ddb6=!0x0);let _0x2ac8a9=this['_footnotesDefinitions']?function(_0x1eb8e5,_0x3381be){for(const _0xe0381c of _0x1eb8e5['getChildren']())if(_0xe0381c['getAttribute']('footnoteId')===_0x3381be)return _0xe0381c;return null;}(this['_footnotesDefinitions'],_0x25b5d6):null;_0x2ac8a9||(_0x2ac8a9=_0x5e3c51['createElement']('footnoteDefinition',{'footnoteId':_0x25b5d6}),this['_footnotesDefinitions']&&(_0x5e3c51['insert'](_0x2ac8a9,this['_footnotesDefinitions'],'end'),_0x43ddb6=!0x0));const _0x228b4a={'id':_0x25b5d6,'reference':_0x215702,'definition':_0x2ac8a9},_0xec121=I(this['editor']['model'],this['_footnotes'],_0x215702);this['_footnotes']['splice'](_0xec121,0x0,_0x228b4a);let _0x695096=_0xec121;return-0x1!==_0x34cc32&&(_0x695096=Math['min'](_0xec121,_0x34cc32)),this['_updateFootnotesCounters'](_0x5e3c51,_0x695096)&&(_0x43ddb6=!0x0),_0x43ddb6;}['_handleRemoveFootnoteReferenceById'](_0x5c22dd,_0x41afd1){const _0x516f4a=this['_footnotes']['findIndex'](_0x123613=>_0x123613['id']===_0x41afd1);if(-0x1===_0x516f4a)return!0x1;let _0x58e235=!0x1;const _0x527e46=this['_footnotes'][_0x516f4a];return'$graveyard'!==_0x527e46['definition']['root']['rootName']&&(_0x5c22dd['remove'](_0x527e46['definition']),_0x58e235=!0x0),this['_footnotes']['splice'](_0x516f4a,0x1),this['_updateFootnotesCounters'](_0x5c22dd,_0x516f4a)&&(_0x58e235=!0x0),_0x58e235;}['_handleMovedFootnoteReference'](_0x352f67,_0x35c1e){const _0x2f40f7=_0x35c1e['getAttribute']('footnoteId'),_0x51ba3b=this['_footnotes']['findIndex'](_0x3dd6ac=>_0x3dd6ac['id']===_0x2f40f7),_0x4f844a=this['_footnotes'][_0x51ba3b];let _0x48a511=!0x1;_0x4f844a['reference']=_0x35c1e,this['_footnotes']['splice'](_0x51ba3b,0x1);const _0x4578b3=I(this['editor']['model'],this['_footnotes'],_0x35c1e);return this['_footnotes']['splice'](_0x4578b3,0x0,_0x4f844a),this['_updateFootnotesCounters'](_0x352f67,Math['min'](_0x51ba3b,_0x4578b3))&&(_0x48a511=!0x0),_0x48a511;}['_updateFootnoteRefCounter'](_0x977c08,_0x5ede1d){if(!this['_footnotesDefinitions'])return!0x1;const _0x7be478=this['_footnotes'][_0x5ede1d];let _0x463800;return _0x463800=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x7be478,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x5ede1d+0x1}):String(_0x5ede1d+0x1),_0x7be478['reference']['getAttribute']('footnoteCounter')!=_0x463800&&(_0x977c08['setAttribute']('footnoteCounter',_0x463800,_0x7be478['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x21e345){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x433452,_0x10486b){if(_0x433452['length']!==_0x10486b['length'])return!0x1;for(let _0x165673=0x0;_0x165673<_0x433452['length'];_0x165673++)if(_0x433452[_0x165673]!==_0x10486b[_0x165673])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5d82a6=>_0x5d82a6['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3f2e3f=>_0x3f2e3f['getAttribute']('footnoteId'))))return!0x1;let _0x5f3908=!0x1;for(let _0x1f551a=0x0;_0x1f551a<this['_footnotes']['length'];_0x1f551a++){const _0x417123=this['_footnotes'][_0x1f551a],_0x2eed7c=_0x21e345['createPositionBefore'](_0x417123['definition']),_0x5176f1=_0x21e345['createPositionAt'](this['_footnotesDefinitions'],_0x1f551a);_0x2eed7c['isEqual'](_0x5176f1)||(_0x21e345['move'](_0x21e345['createRangeOn'](_0x417123['definition']),_0x5176f1),_0x5f3908=!0x0);}return _0x5f3908;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1454b5){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1b54ab}=this['editor'];let _0x173b22=!0x1;for(let _0x22cd3e=0x0;_0x22cd3e<this['_footnotes']['length']-0x1;_0x22cd3e++){const _0x2f069a=this['_footnotes'][_0x22cd3e],_0x54beb3=this['_footnotes'][_0x22cd3e+0x1],_0x70648d=_0x1b54ab['createPositionBefore'](_0x2f069a['reference']),_0x4d64e7=_0x1b54ab['createPositionBefore'](_0x54beb3['reference']);'after'===_0x70648d['compareWith'](_0x4d64e7)&&(this['_handleMovedFootnoteReference'](_0x1454b5,_0x2f069a['reference']),_0x22cd3e=-0x1,_0x173b22=!0x0);}return _0x173b22;}}function _(_0x5491b0,_0x3d2c8d,_0x4d9136){if(_0x4d9136['childCount'])return!0x1;const _0x42b834=_0x3d2c8d?'paragraph':'footnoteInlineContent';return _0x5491b0['insert'](_0x5491b0['createElement'](_0x42b834),_0x4d9136),!0x0;}function I(_0x290c27,_0x336eee,_0x36d8aa){if(0x0===_0x336eee['length'])return 0x0;const _0x123b3c=_0x290c27['createPositionBefore'](_0x36d8aa);for(let _0x424e87=0x0;_0x424e87<_0x336eee['length'];_0x424e87++){const _0x57d915=_0x336eee[_0x424e87],_0x431cfd=_0x290c27['createPositionBefore'](_0x57d915['reference']);if('before'===_0x123b3c['compareWith'](_0x431cfd))return _0x424e87;}const _0x53b977=_0x36d8aa['root'];let _0x502e0c=-0x1;for(let _0x3b5ce8=_0x336eee['length']-0x1;_0x3b5ce8>=0x0;_0x3b5ce8--)if(_0x336eee[_0x3b5ce8]['reference']['root']===_0x53b977){_0x502e0c=_0x3b5ce8;break;}if(-0x1!==_0x502e0c)return _0x502e0c+0x1;const _0x5d65f3=_0x290c27['document']['getRootNames'](),_0x1a1513=_0x5d65f3['indexOf'](_0x53b977['rootName']),_0x2dfa27=_0x5d65f3[_0x1a1513+0x1];if(_0x2dfa27){for(let _0x1f8ae8=0x0;_0x1f8ae8<_0x336eee['length'];_0x1f8ae8++)if(_0x336eee[_0x1f8ae8]['reference']['root']['rootName']===_0x2dfa27)return _0x1f8ae8;}return _0x336eee['length'];}class m extends _0x2eec5a{['refresh'](){const _0x193258=this['editor']['model']['document']['selection'],_0x1b67a9=this['_getPositionToInsertFootnote'](_0x193258);this['isEnabled']=!!_0x1b67a9;}['execute'](_0x29b6a8){const {editor:_0x2b516a}=this,{model:_0x5b5547}=_0x2b516a,{selection:_0x43daf6}=_0x5b5547['document'],_0x2395ac=this['_getPositionToInsertFootnote'](_0x43daf6);if(!_0x2395ac)return;const _0x2a5a43=_0x2b516a['plugins']['get']('FootnotesEditing'),_0x32c676=_0x29b6a8?.['footnoteId']??_0x15c27a();!function(_0x4a8f0a){return'string'==typeof _0x4a8f0a&&_0x4a8f0a['length']>0x0&&!/\s/['test'](_0x4a8f0a)&&!/^\d/['test'](_0x4a8f0a);}(_0x32c676)?_0x51279b('insert-footnote-command-executed-with-invalid-id'):(_0x5b5547['change'](_0x1f4a74=>{const _0x31f721=_0x1f4a74['createElement']('footnoteRef',{'footnoteId':_0x32c676});_0x5b5547['insertObject'](_0x31f721,_0x2395ac,null);}),_0x2a5a43['_moveSelectionToFootnoteDefinition'](_0x32c676));}['_getPositionToInsertFootnote'](_0x402cc4){const {model:_0x3d94ec}=this['editor'],{schema:_0x57785a}=_0x3d94ec,_0x4bc107=_0x402cc4['getFirstRange']();for(const _0x4935fc of _0x4bc107['getItems']())if(_0x57785a['isBlock'](_0x4935fc)||_0x57785a['isObject'](_0x4935fc))return null;const _0x4861b0=_0x4bc107['end'];return _0x57785a['checkChild'](_0x4861b0,'footnoteRef')?_0x4861b0:null;}}class r extends _0x9a6199{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x345348}=this;_0x345348['config']['define']('footnotes.multiBlock',!0x0),_0x345348['commands']['add']('insertFootnote',new m(_0x345348)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1bc117){const _0x4b97cc=_0x3853fb([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]),_0x1b7d47=0x47a28506,_0x5b5cf5=0x47a5f92e^_0x1b7d47,_0xa6ec87=window[_0x3853fb([0x44,0x61,0x74,0x65])][_0x3853fb([0x6e,0x6f,0x77])](),_0xda64d4=_0x1bc117[_0x3853fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e4bee=new window[(_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c5ce=>{_0xda64d4[_0x3853fb([0x6f,0x6e,0x63,0x65])](_0x3853fb([0x72,0x65,0x61,0x64,0x79]),_0x45c5ce);}),_0x416389={[_0x3853fb([0x6b,0x74,0x79])]:_0x3853fb([0x45,0x43]),[_0x3853fb([0x75,0x73,0x65])]:_0x3853fb([0x73,0x69,0x67]),[_0x3853fb([0x63,0x72,0x76])]:_0x3853fb([0x50,0x2d,0x32,0x35,0x36]),[_0x3853fb([0x78])]:_0x3853fb([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]),[_0x3853fb([0x79])]:_0x3853fb([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]),[_0x3853fb([0x61,0x6c,0x67])]:_0x3853fb([0x45,0x53,0x32,0x35,0x36])},_0x46f29d=_0xda64d4[_0x3853fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3853fb([0x67,0x65,0x74])](_0x3853fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x372c16(){let _0x9645de,_0x10dcfa=null,_0x1a0c25=null;try{if(_0x46f29d==_0x3853fb([0x47,0x50,0x4c]))return _0x3853fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9645de=_0x42c94d(),!_0x9645de)return _0x3853fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9645de[_0x3853fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a0c25=_0x16ee7c(_0x9645de[_0x3853fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9645de[_0x3853fb([0x6a,0x74,0x69])])),await _0x579c6a()?_0x360e3d()?_0x3cc773()?_0x3853fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b692b()?(_0x9645de[_0x3853fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3853fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10dcfa=_0x30f997(_0x3853fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9645de[_0x3853fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3853fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x10dcfa=_0x30f997(_0x3853fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x259b01()):_0x3853fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3853fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3853fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3853fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cc773(){const _0x522647=[_0x3853fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3853fb([0x74,0x72,0x69,0x61,0x6c])][_0x3853fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9645de[_0x3853fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa6ec87/0x3e8:0xe10*_0x5b5cf5;return _0x9645de[_0x3853fb([0x65,0x78,0x70])]<_0x522647;}function _0x360e3d(){const _0x394294=_0x9645de[_0x3853fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x394294&&(!!_0x394294[_0x3853fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3853fb([0x2a]))||!!_0x394294[_0x3853fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3853fb([0x46,0x4f,0x4f])));}function _0x2b692b(){const _0x521653=_0x9645de[_0x3853fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x521653||0x0==_0x521653[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2158df}=new URL(window[_0x3853fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x521653[_0x3853fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2158df))return!0x0;const _0x2c32dc=_0x2158df[_0x3853fb([0x73,0x70,0x6c,0x69,0x74])](_0x3853fb([0x2e]));return _0x521653[_0x3853fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1215f7=>_0x1215f7[_0x3853fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3853fb([0x2a])))[_0x3853fb([0x6d,0x61,0x70])](_0x55c8ad=>_0x55c8ad[_0x3853fb([0x73,0x70,0x6c,0x69,0x74])](_0x3853fb([0x2e])))[_0x3853fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x257234=>_0x257234[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c32dc[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3853fb([0x6d,0x61,0x70])](_0x30d071=>Array(_0x2c32dc[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30d071[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3853fb([0x66,0x69,0x6c,0x6c])](_0x30d071[0x0]===_0x3853fb([0x2a])?_0x3853fb([0x2a]):'')[_0x3853fb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30d071))[_0x3853fb([0x73,0x6f,0x6d,0x65])](_0x3e2960=>_0x2c32dc[_0x3853fb([0x65,0x76,0x65,0x72,0x79])]((_0x3d0025,_0x29e377)=>_0x3e2960[_0x29e377]===_0x3d0025||_0x3e2960[_0x29e377]===_0x3853fb([0x2a])));}function _0x259b01(){return _0x10dcfa&&_0x1a0c25?new window[(_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47501d,_0x190e07)=>{_0x10dcfa[_0x3853fb([0x74,0x68,0x65,0x6e])](_0x47501d,_0x190e07),_0x1a0c25[_0x3853fb([0x74,0x68,0x65,0x6e])](_0x36f401=>{_0x36f401!=_0x3853fb([0x56,0x61,0x6c,0x69,0x64])&&_0x47501d(_0x36f401);},_0x190e07);}):_0x10dcfa||_0x1a0c25||_0x3853fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16ee7c(_0x463113,_0x46a134){return new window[(_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267a5c=>{if(_0x2e550c())return _0x267a5c(_0x3853fb([0x56,0x61,0x6c,0x69,0x64]));_0x3e1ff1(),_0xda64d4[_0x3853fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3853fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2de808=!0x1;const _0x47ee16=_0x15c27a();function _0x1d2a70(_0x25a9ac){return!!_0x25a9ac&&(typeof _0x25a9ac===_0x3853fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25a9ac===_0x3853fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25a9ac[_0x3853fb([0x74,0x68,0x65,0x6e])]===_0x3853fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25a9ac[_0x3853fb([0x63,0x61,0x74,0x63,0x68])]===_0x3853fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41c100(_0x1be808){_0x312304(_0x1be808)[_0x3853fb([0x74,0x68,0x65,0x6e])](_0x448c6b=>{if(!_0x448c6b||_0x448c6b[_0x3853fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3853fb([0x6f,0x6b]))return _0x3853fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x244148(_0x238b7f(_0x47ee16+_0x46a134))!=_0x448c6b[_0x3853fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3853fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3853fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x3853fb([0x74,0x68,0x65,0x6e])](_0x30bb6b=>(_0x4d3751(),_0x30bb6b),()=>{const _0x8c347e=_0x4f7ffa();return null==_0x8c347e?(_0x4d3751(),_0x3853fb([0x56,0x61,0x6c,0x69,0x64])):_0x3853fb(_0xa6ec87-_0x8c347e>(0x63ae0106^_0x1b7d47)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3853fb([0x74,0x68,0x65,0x6e])](_0x267a5c)[_0x3853fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x267a5c(_0x3853fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ec3b7=0x47946b86^_0x1b7d47;function _0x4d3751(){const _0x3c673e=_0x3853fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x244148(_0x238b7f(_0x463113)),_0x591c98=_0x14cb35(_0x244148(window[_0x3853fb([0x4d,0x61,0x74,0x68])][_0x3853fb([0x63,0x65,0x69,0x6c])](_0xa6ec87/_0x3ec3b7)));window[_0x3853fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3853fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c673e,_0x591c98);}function _0x4f7ffa(){const _0x38ceeb=_0x3853fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x244148(_0x238b7f(_0x463113)),_0x44daef=window[_0x3853fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3853fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38ceeb);return _0x44daef?window[_0x3853fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14cb35(_0x44daef),0x10)*_0x3ec3b7:null;}function _0x312304(_0x5624f6){return new window[(_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x243ff3,_0x174ed5)=>{_0x5624f6[_0x3853fb([0x74,0x68,0x65,0x6e])](_0x243ff3,_0x174ed5),window[_0x3853fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x174ed5,0x47a351c6^_0x1b7d47);});}}_0xda64d4[_0x3853fb([0x6f,0x6e])](_0x3853fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f0642,_0x57705a)=>{if(_0x57705a[0x0]!=_0x463113)return _0x267a5c(_0x3853fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57705a[0x1]={..._0x57705a[0x1],[_0x3853fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47ee16};},{[_0x3853fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3853fb([0x68,0x69,0x67,0x68])}),_0xda64d4[_0x3853fb([0x6f,0x6e])](_0x3853fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x315cc3=>{_0x1d2a70(_0x315cc3[_0x3853fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2de808=!0x0,_0x41c100(_0x315cc3[_0x3853fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3853fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3853fb([0x6c,0x6f,0x77])}),_0x3e4bee[_0x3853fb([0x74,0x68,0x65,0x6e])](()=>{_0x2de808||_0x267a5c(_0x3853fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e550c(){return _0xda64d4[_0x3853fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3853fb([0x76,0x69,0x65,0x77])][_0x3853fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3853fb([0x61,0x75,0x74,0x6f]);}function _0x3e1ff1(){_0xda64d4[_0x3853fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3853fb([0x76,0x69,0x65,0x77])][_0x3853fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3853fb([0x61,0x75,0x74,0x6f]);}}function _0x30f997(_0x2ba6f4){const _0x50b42f=[new window[(_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7eb115=>setTimeout(_0x7eb115,0x47abbbca^_0x1b7d47)),_0x3e4bee[_0x3853fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218199=>{let _0x591380=0x0;_0xda64d4[_0x3853fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3853fb([0x6f,0x6e])](_0x3853fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1935e,_0x3ceb0b)=>{_0x3ceb0b[0x0][_0x3853fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x591380++,_0x591380==(0x47a284fe^_0x1b7d47)&&(_0x218199(),_0x1935e[_0x3853fb([0x6f,0x66,0x66])]());});}))];return window[_0x3853fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3853fb([0x72,0x61,0x63,0x65])](_0x50b42f)[_0x3853fb([0x74,0x68,0x65,0x6e])](()=>_0x2ba6f4);}async function _0x320aab(){await _0x3e4bee,_0xda64d4[_0x3853fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3853fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c2385,_0xda64d4[_0x3853fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x3853fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c2385,_0xda64d4[_0x3853fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3853fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a88f9(_0x3e3b4d){const _0x25e20=_0xc52d4d();_0xda64d4[_0x25e20]=_0x3853fb([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e3b4d,_0x3e3b4d!=_0x3853fb([0x56,0x61,0x6c,0x69,0x64])&&_0x320aab();}function _0xc52d4d(){const _0x5dc9c4=window[_0x3853fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3853fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3853fb([0x6e,0x6f,0x77])]())[_0x3853fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3853fb([0x2e]),'');let _0x419614=_0x3853fb([0x75]);for(let _0x2883e9=0x0;_0x2883e9<_0x5dc9c4[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2883e9+=0x2){let _0x2271c9=window[_0x3853fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc9c4[_0x3853fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2883e9,_0x2883e9+0x2));_0x2271c9>=_0x4b97cc[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2271c9-=_0x4b97cc[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x419614+=_0x4b97cc[_0x2271c9];}return _0x419614;}function _0x42c94d(){const _0x4a86ec=_0x46f29d[_0x3853fb([0x73,0x70,0x6c,0x69,0x74])](_0x3853fb([0x2e]));if(0x3!=_0x4a86ec[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5114e0(_0x4a86ec[0x1]);function _0x5114e0(_0x3dfcbc){const _0x103922=_0x291376(_0x3dfcbc);return _0x103922&&_0x4bd4b4()?_0x103922:null;function _0x4bd4b4(){const _0x49141b=_0x103922[_0x3853fb([0x6a,0x74,0x69])],_0x2715e1=window[_0x3853fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49141b[_0x3853fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49141b[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x280262={..._0x103922,[_0x3853fb([0x6a,0x74,0x69])]:_0x49141b[_0x3853fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49141b[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x280262[_0x3853fb([0x76,0x63])],_0x238b7f(_0x280262)==_0x2715e1;}}}async function _0x579c6a(){let _0x169b6d=!0x0;try{const _0x183958=_0x46f29d[_0x3853fb([0x73,0x70,0x6c,0x69,0x74])](_0x3853fb([0x2e])),[_0x1e384e,_0x315ead,_0x1467e6]=_0x183958;return _0x56b066(_0x1e384e),await _0x3a5c8b(_0x1e384e,_0x315ead,_0x1467e6),_0x169b6d;}catch{return!0x1;}function _0x56b066(_0x584331){const _0x5b4d8c=_0x291376(_0x584331);_0x5b4d8c&&_0x5b4d8c[_0x3853fb([0x61,0x6c,0x67])]==_0x3853fb([0x45,0x53,0x32,0x35,0x36])||(_0x169b6d=!0x1);}async function _0x3a5c8b(_0x52d2c2,_0x46849d,_0x5affeb){const _0xe6a703=window[_0x3853fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3853fb([0x66,0x72,0x6f,0x6d])](_0x34b0a6(_0x5affeb),_0xb3c74a=>_0xb3c74a[_0x3853fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a1fbf=new window[(_0x3853fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3853fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52d2c2+_0x3853fb([0x2e])+_0x46849d),_0x4702ec=window[_0x3853fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3853fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4702ec)return;const _0x344f48=await _0x4702ec[_0x3853fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3853fb([0x6a,0x77,0x6b]),_0x416389,{[_0x3853fb([0x6e,0x61,0x6d,0x65])]:_0x3853fb([0x45,0x43,0x44,0x53,0x41]),[_0x3853fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3853fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3853fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4702ec[_0x3853fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3853fb([0x6e,0x61,0x6d,0x65])]:_0x3853fb([0x45,0x43,0x44,0x53,0x41]),[_0x3853fb([0x68,0x61,0x73,0x68])]:{[_0x3853fb([0x6e,0x61,0x6d,0x65])]:_0x3853fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x344f48,_0xe6a703,_0x1a1fbf)||(_0x169b6d=!0x1);}}function _0x291376(_0x314b6e){return _0x314b6e[_0x3853fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3853fb([0x65,0x79]))?JSON[_0x3853fb([0x70,0x61,0x72,0x73,0x65])](_0x34b0a6(_0x314b6e)):null;}function _0x34b0a6(_0x48cf4d){return window[_0x3853fb([0x61,0x74,0x6f,0x62])](_0x48cf4d[_0x3853fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3853fb([0x2b]))[_0x3853fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3853fb([0x2f])));}function _0x238b7f(_0x99a4f5){let _0xf52e96=0x1505;function _0x4e06ee(_0x19c2a3){for(let _0x88774c=0x0;_0x88774c<_0x19c2a3[_0x3853fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x88774c++){const _0x36ed23=_0x19c2a3[_0x3853fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x88774c);_0xf52e96=(_0xf52e96<<0x5)+_0xf52e96+_0x36ed23,_0xf52e96&=_0xf52e96;}}function _0x4e8ae9(_0xc6d778){Array[_0x3853fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc6d778)?_0xc6d778[_0x3853fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e8ae9):_0xc6d778&&typeof _0xc6d778==_0x3853fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3853fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc6d778)[_0x3853fb([0x73,0x6f,0x72,0x74])]()[_0x3853fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4970ee,_0x5dcfd6])=>{_0x4e06ee(_0x4970ee),_0x4e8ae9(_0x5dcfd6);}):_0x4e06ee(window[_0x3853fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc6d778));}return _0x4e8ae9(_0x99a4f5),_0xf52e96>>>0x0;}function _0x244148(_0x38c1aa){return _0x38c1aa[_0x3853fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3853fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3853fb([0x30]));}function _0x14cb35(_0x4e7a22){return _0x4e7a22[_0x3853fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3853fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3853fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c2385(){}function _0x3853fb(_0x7599e){return _0x7599e['map'](_0xdc9234=>String['fromCharCode'](_0xdc9234))['join']('');}_0x4a88f9(await _0x372c16());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3156e1){const {plugins:_0x45c78d,editing:_0x506a0e,model:_0x47d17c}=this['editor'],_0x19ab57=_0x45c78d['get'](f)['getFootnote'](_0x3156e1);return!!_0x19ab57&&(_0x47d17c['change'](_0x38bc9e=>{_0x38bc9e['setSelection'](_0x38bc9e['createPositionAt'](_0x19ab57['definition'],'end'));}),_0x506a0e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1d6aad){const {plugins:_0x35903b,editing:_0x5a2e90,model:_0x5769a4}=this['editor'],_0x5be842=_0x35903b['get'](f)['getFootnote'](_0x1d6aad);return!!_0x5be842&&(_0x5769a4['change'](_0x4a0846=>{_0x4a0846['setSelection'](_0x5be842['reference'],'on');}),_0x5a2e90['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1db953}=this['editor']['model'],_0x58573e=this['editor']['config']['get']('footnotes.multiBlock');_0x1db953['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1db953['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1db953['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x58573e?_0x1db953['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1db953['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1db953['addChildCheck'](_0x331c3a=>{for(const _0x1d7e07 of _0x331c3a)if('footnoteDefinition'===_0x1d7e07['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x49c6c8}=this,{conversion:_0x3a0b2a,editing:_0x208caf}=_0x49c6c8,{t:t}=_0x49c6c8['locale'];_0x3a0b2a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x26cd66,{writer:_0x1c232f,consumable:_0x59a347})=>{const _0x1ef8b4=_0x26cd66['getChild'](0x0);if(!_0x1ef8b4||!_0x1ef8b4['is']('element','a'))return null;const _0x5bfaa2=_0x1ef8b4['getAttribute']('href')||'';if(!_0x5bfaa2['startsWith']('#'))return null;const _0x4a5df5=_0x5bfaa2['replace'](/^#/,'');if(!_0x4a5df5)return null;_0x59a347['consume'](_0x1ef8b4,{'name':!0x0,'attributes':['href']});for(const {item:_0x443d7e}of _0x208caf['view']['createRangeIn'](_0x1ef8b4))_0x443d7e['is']('$textProxy')?_0x59a347['consume'](_0x443d7e['textNode'],{'name':!0x0}):_0x443d7e['is']('element')&&_0x59a347['consume'](_0x443d7e,{'name':!0x0});return _0x1c232f['createElement']('footnoteRef',{'footnoteId':_0x4a5df5});}}),_0x3a0b2a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3454c8,{writer:_0x12302c})=>D(_0x3454c8,_0x12302c)}),_0x3a0b2a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x32954a,{writer:_0x35eae3})=>{const _0x1a7cf9=_0x32954a['getAttribute']('footnoteCounter');return _0x198556(D(_0x32954a,_0x35eae3),_0x35eae3,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1a7cf9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x42e559}=this,{t:t}=_0x42e559['locale'],{conversion:_0x3e84e3}=_0x42e559;_0x3e84e3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3e84e3['for']('upcast')['add'](_0x598dc2=>{_0x598dc2['on']('element:ol',(_0x32334f,_0x19d925,_0x450a0e)=>{const _0x379229=_0x19d925['viewItem'];if(!_0x379229['hasClass']('footnotes-list')||!_0x19d925['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x450a0e['consumable']['consume'](_0x379229,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5d6b54,modelCursor:_0x24390d}=_0x450a0e['convertChildren'](_0x19d925['viewItem'],_0x19d925['modelCursor']);_0x19d925['modelRange']=_0x5d6b54,_0x19d925['modelCursor']=_0x24390d;}),_0x598dc2['on']('element:hr',(_0x84284c,_0x264446,_0x5ed5b7)=>{const _0x36d353=_0x264446['viewItem'];_0x36d353['hasClass']('footnotes-divider')&&_0x264446['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5ed5b7['consumable']['consume'](_0x36d353,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3e84e3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1080d2,{writer:_0x4bfc4b})=>v(_0x4bfc4b)}),_0x3e84e3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c2463,{writer:_0x6276d0})=>{const _0xe092f3=v(_0x6276d0,{'data-footnotes-list-label':t('Footnotes')}),_0x582692=_0x198556(_0xe092f3,_0x6276d0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x6276d0['setCustomProperty']('footnotesDefinitions',!0x0,_0x582692),_0x582692;}});}['_defineDefinitionConverters'](){const {editor:_0x597f48}=this,{conversion:_0x3448d5,locale:_0x1bf3a3}=_0x597f48,_0x5ad80e=_0x597f48['config']['get']('footnotes.multiBlock');_0x3448d5['for']('upcast')['add'](_0x2114cf=>{_0x2114cf['on']('element:li',(_0x2e1789,_0x3ca6ad,_0xe77ba6)=>{const _0x36f01e=_0x3ca6ad['viewItem'];if(!_0x36f01e['hasClass']('footnote-definition')||!_0x36f01e['getAttribute']('id'))return;const _0x19da8a=_0x36f01e['parent'];if(!_0x19da8a['is']('element','ol')||!_0x19da8a['hasClass']('footnotes-list'))return;if(!_0xe77ba6['consumable']['test'](_0x36f01e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5c43a2=_0xe77ba6['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x36f01e['getAttribute']('id')});if(!_0xe77ba6['safeInsert'](_0x5c43a2,_0x3ca6ad['modelCursor']))return;_0xe77ba6['consumable']['consume'](_0x36f01e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5abca7=Array['from'](_0x36f01e['getChildren']())['find'](_0x304598=>_0x304598['is']('element')&&_0x304598['hasClass']('footnote-content'));for(const _0x253b4a of _0x36f01e['getChildren']())_0x253b4a['is']('element')&&(_0xe77ba6['consumable']['consume'](_0x253b4a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xe77ba6['consumable']['consume'](_0x253b4a,{'name':!0x0,'classes':'footnote-content'}));if(_0x5abca7){if(_0x5ad80e)_0xe77ba6['convertChildren'](_0x5abca7,_0x5c43a2);else{const _0x17b7d7=_0xe77ba6['writer']['createElement']('footnoteInlineContent');_0xe77ba6['writer']['insert'](_0x17b7d7,_0x5c43a2),_0xe77ba6['convertChildren'](_0x5abca7,_0x17b7d7);}}_0xe77ba6['updateConversionResult'](_0x5c43a2,_0x3ca6ad);});}),_0x3448d5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e2082,{writer:_0x538b11})=>b(_0x2e2082,_0x538b11,_0x1bf3a3,{'dataPipeline':!0x0})}),_0x3448d5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2ed6b6,{writer:_0x5d5e0d})=>b(_0x2ed6b6,_0x5d5e0d,_0x1bf3a3)});}['_defineBogusParagraphConverters'](){const {editor:_0x376a9a}=this,{conversion:_0x2571b9}=_0x376a9a;_0x376a9a['config']['get']('footnotes.multiBlock')?(_0x2571b9['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2571b9['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x376a9a['model']['document'],'change:data',()=>{!function(_0x178307,_0x4d075e){const _0x55c8a0=_0x178307['document']['differ'],_0x1ce56f=new Set();for(const _0x23e32f of _0x55c8a0['getChanges']()){const _0x4bb8e1='attribute'==_0x23e32f['type']?_0x23e32f['range']['start']['parent']:_0x23e32f['position']['parent'];_0x4bb8e1['is']('element','footnoteDefinition')&&_0x1ce56f['add'](_0x4bb8e1);}for(const _0x399e82 of _0x1ce56f['values']()){const _0x1f4cba=Array['from'](_0x399e82['getChildren']())['filter'](_0x1cc450=>g(_0x1cc450,_0x4d075e['mapper']));for(const _0x44f5d8 of _0x1f4cba)_0x4d075e['reconvertItem'](_0x44f5d8);}}(_0x376a9a['model'],_0x376a9a['editing']);})):(_0x2571b9['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2571b9['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x158699,{writer:_0x4c1fde})=>{const _0x293664=_0x4c1fde['createContainerElement']('span');return _0x4c1fde['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x293664),_0x293664;}}));}['_defineKeyboardHandlers'](){const {editor:_0x23e17c}=this,{editing:_0x39c384,t:t}=_0x23e17c,_0x494d39=_0x23e17c['model']['document']['selection'];_0x23e17c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x23e17c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x39c384['view']['document'],'enter',(_0x2d6b08,_0x3b891b)=>{const _0x35efe2=function(_0x1c75a2){const _0x2e71d8=_0x1c75a2['getSelectedElement']();if(_0x2e71d8?.['is']('element','footnoteRef'))return _0x2e71d8;return null;}(_0x494d39);if(_0x35efe2){const _0x53e3da=_0x35efe2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x53e3da),_0x3b891b['preventDefault'](),_0x2d6b08['stop']();}},{'context':_0x37cf41});}['_defineClickHandlers'](){const {editor:_0x3f4717}=this,{editing:_0x52cb9e}=_0x3f4717;_0x3f4717['editing']['view']['addObserver'](_0x515be9),_0x3f4717['editing']['view']['addObserver'](_0xd45394);let _0xd40fe8=!0x1;this['listenTo'](_0x52cb9e['view']['document'],'pointerdown',(_0x4a026b,_0x1fa60e)=>{const {target:_0x237511}=_0x1fa60e,_0x1a3af6=_0x52cb9e['view']['document']['selection'];_0xd40fe8=!!(_0x237511?.['is']('element','a')&&_0x237511['parent']?.['is']('element','sup')&&_0x237511['parent']['hasClass']('footnote'))&&_0x1a3af6['getSelectedElement']()===_0x237511['parent'];},{'priority':'high'}),this['listenTo'](_0x52cb9e['view']['document'],'click',(_0x518ee7,_0x49fcf0)=>{const {target:_0x475764}=_0x49fcf0;if(!_0x475764?.['is']('element','a'))return;if(_0x475764['parent']?.['is']('element','sup')&&_0x475764['parent']['hasClass']('footnote')&&!_0xd40fe8)return void _0x49fcf0['preventDefault']();let _0x17ba0f=_0x475764['getAttribute']('href');if(!_0x17ba0f?.['startsWith']('#'))return;_0x17ba0f=_0x17ba0f['slice'](0x1);let _0x241a08=!0x1;(_0x17ba0f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x17ba0f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x17ba0f))&&(_0x241a08=!0x0),_0x241a08&&(_0x49fcf0['preventDefault'](),_0x518ee7['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4b6423}={}){return(_0x2791a4,{writer:_0x5c3ca0})=>{if(!p(_0x2791a4))return null;if(!_0x4b6423)return _0x5c3ca0['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x29c104=_0x5c3ca0['createContainerElement']('p');return _0x5c3ca0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29c104),_0x29c104;};}function p(_0x5336e8){const {parent:_0x37ce45}=_0x5336e8;if(!_0x37ce45?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x37ce45['childCount'])return!0x1;for(const _0x43eea1 of _0x5336e8['getAttributeKeys']())if(!_0x43eea1['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x43eea1)return!0x1;return!0x0;}function g(_0x269d9a,_0x282711){if(!_0x269d9a['is']('element','paragraph'))return!0x1;const _0x59e205=_0x282711['toViewElement'](_0x269d9a);return!!_0x59e205&&p(_0x269d9a)!==_0x59e205['is']('element','span');}function J(_0x590263){return _0x37cf41(_0x590263)&&_0x590263['is']('containerElement')&&!!_0x590263['getCustomProperty']('footnotesDefinitions');}function v(_0x59b04d,_0x489c06={}){const _0x42a513=_0x59b04d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x143791=_0x59b04d['createContainerElement']('ol',{'class':'footnotes-list'},_0x59b04d['createSlot']());return _0x59b04d['createContainerElement']('div',{'class':'footnotes',..._0x489c06},[_0x42a513,_0x143791]);}function D(_0x45000e,_0x33ea14){const _0x51bd65=_0x45000e['getAttribute']('footnoteId'),_0x5dfd13=_0x45000e['getAttribute']('footnoteCounter'),_0x3f1ebc=_0x33ea14['createUIElement']('a',{'href':'#'+_0x51bd65},function(_0x37b370){const _0xb47ba5=this['toDomElement'](_0x37b370);return _0xb47ba5['textContent']=_0x5dfd13,_0xb47ba5;}),_0x58a9b3=_0x33ea14['createContainerElement']('sup',{'id':'ref-'+_0x51bd65,'class':'footnote'},[_0x3f1ebc]);return _0x58a9b3['getFillerOffset']=()=>null,_0x58a9b3;}function b(_0x52f712,_0x10f5ac,_0xaa61ba,{dataPipeline:_0x2abdc7}={}){const {t:t}=_0xaa61ba,_0x116048=_0x52f712['getAttribute']('footnoteId'),_0x3fbef3=_0x10f5ac['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x116048},function(_0x1d04cf){const _0x307714=this['toDomElement'](_0x1d04cf);return _0x307714['innerText']='^',_0x307714;}),_0x5dbba3=_0x2abdc7?_0x10f5ac['createContainerElement']('div',{'class':'footnote-content'}):_0x267342(_0x10f5ac['createEditableElement']('div',{'class':'footnote-content'}),_0x10f5ac,{'label':t('Footnote\x20content.')});return _0x10f5ac['insert'](_0x10f5ac['createPositionAt'](_0x5dbba3,0x0),_0x10f5ac['createSlot']()),_0x10f5ac['createContainerElement']('li',{'class':'footnote-definition','id':_0x116048},[_0x3fbef3,_0x5dbba3]);}class e extends _0x9a6199{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5d4038];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5f195e}=this,{plugins:_0x114b96,model:_0x13d7e8}=_0x5f195e,_0xbec6d1=_0x114b96['get'](_0x5d4038),_0x30fb8e=_0x114b96['get'](f);this['listenTo'](_0xbec6d1,'outputTransformation',(_0xe518ca,_0x23d716)=>{const _0xaa835=c(_0x13d7e8['createRangeIn'](_0x23d716['content']));if(!_0xaa835['length'])return;const _0x46a308=_0x30fb8e['getFootnotes'](),_0x82ab72=_0xaa835['reduce']((_0x1c8733,_0x181576)=>{const _0x57ebee=_0x46a308['find'](_0x41161=>_0x41161['id']===_0x181576);if(_0x57ebee){const _0x515539=_0x5f195e['data']['toView'](_0x57ebee['definition'],{'isClipboardPipeline':!0x0}),_0x1dedda=_0x5f195e['data']['htmlProcessor']['toData'](_0x515539);_0x1c8733[_0x57ebee['id']]=_0x1dedda;}return _0x1c8733;},Object['create'](null));_0x23d716['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x82ab72));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5ad4e4}=this,{model:_0xa96109,plugins:_0x1da213}=_0x5ad4e4,{view:_0x4bd291}=_0x5ad4e4['editing'],_0x500e5c=_0x1da213['get'](_0x5d4038),_0x52b45c=_0x1da213['get'](f),_0x29ef0d=_0x5ad4e4['config']['get']('footnotes.multiBlock');let _0x283a27=null;this['listenTo'](_0x4bd291['document'],'clipboardInput',(_0x3211e6,_0x2cdcbb)=>{const _0x1a32ee=_0x2cdcbb['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x283a27=_0x1a32ee?JSON['parse'](_0x1a32ee):null;}),this['listenTo'](_0x500e5c,'contentInsertion',(_0x23ab3b,_0x18cc5b)=>{const _0x41c56e=_0x18cc5b['sourceEditorId']===this['editor']['id'];_0x41c56e&&'drop'===_0x18cc5b['method']||_0xa96109['change'](_0x45b26c=>{let _0x2f7bd3=_0x52b45c['getFootnotesDefinitionsObjectElement']();const _0x195565=!!_0x2f7bd3&&Array['from'](_0xa96109['document']['selection']['getSelectedBlocks']())['includes'](_0x2f7bd3);if((_0x2f7bd3&&!_0x195565||!_0x2f7bd3&&!_0x283a27)&&function(_0x34f21a,_0x134706){const _0x10fd5f=[];for(const {item:_0x4eb025}of _0x34f21a['createRangeIn'](_0x134706))_0x4eb025['is']('element','footnotesDefinitions')&&_0x10fd5f['push'](_0x4eb025);for(const _0x429f13 of _0x10fd5f)_0x34f21a['remove'](_0x429f13);}(_0x45b26c,_0x18cc5b['content']),!_0x283a27)return;const {selection:_0x44acea}=_0xa96109['document'],_0x59c993=_0x44acea['getFirstRange']()['root'];_0x2f7bd3&&!_0x195565||(_0x2f7bd3=function(_0x50565f,_0x4605a1){for(const {item:_0x25e222}of _0x50565f['createRangeIn'](_0x4605a1))if(_0x25e222['is']('element','footnotesDefinitions'))return _0x25e222;return null;}(_0x45b26c,_0x18cc5b['content']),_0x2f7bd3||=_0x52b45c['_insertEmptyFootnotesDefinitionsContainer'](_0x45b26c,_0x59c993));const _0x1a3a62=Array['from'](_0x44acea['getRanges']())['flatMap'](c),_0x45a811=function(_0xb96c3a,_0x278780,_0xb66705){const _0x898d3c=Object['create'](null);for(const {item:_0x362ed2}of _0xb96c3a['createRangeIn'](_0x278780))if(_0x362ed2['is']('element','footnoteRef')){const _0x40ba1a=_0x362ed2['getAttribute']('footnoteId');if(!_0xb66705(_0x40ba1a))continue;_0x898d3c[_0x40ba1a]||(_0x898d3c[_0x40ba1a]=_0x15c27a()),_0xb96c3a['setAttribute']('footnoteId',_0x898d3c[_0x40ba1a],_0x362ed2);}return _0x898d3c;}(_0x45b26c,_0x18cc5b['content'],_0x22d694=>{if(!_0x41c56e)return!0x0;return!!_0x52b45c['getFootnote'](_0x22d694)&&!_0x1a3a62['includes'](_0x22d694);});for(const [_0x526d8e,_0x21ab22]of Object['entries'](_0x283a27)){const _0x37073c=_0x45a811[_0x526d8e]||_0x526d8e,_0x3ab12d=_0x45b26c['createElement']('footnoteDefinition',{'footnoteId':_0x37073c}),_0x89a38e=_0x5ad4e4['data']['htmlProcessor']['toView'](_0x21ab22);let _0x235fc4;if(_0x29ef0d)_0x235fc4=_0x5ad4e4['data']['toModel'](_0x89a38e,_0x3ab12d);else{_0x235fc4=_0x45b26c['createElement']('footnoteInlineContent');const _0x2b348b=_0x5ad4e4['data']['toModel'](_0x89a38e,_0x235fc4);_0x45b26c['insert'](_0x2b348b,_0x235fc4);}_0x45b26c['append'](_0x235fc4,_0x3ab12d),_0x45b26c['insert'](_0x3ab12d,_0x2f7bd3,'end');}_0x283a27=null;});});}}function c(_0x2e7699){const _0xb6c2cd=new Set();for(const {item:_0x462157}of _0x2e7699)_0x462157['is']('element','footnoteRef')&&_0xb6c2cd['add'](_0x462157['getAttribute']('footnoteId'));return Array['from'](_0xb6c2cd);}class i extends _0x9a6199{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xc4dd49}=this,{componentFactory:_0x988cad}=_0xc4dd49['ui'];_0x988cad['add']('insertFootnote',x(_0xc4dd49,_0x277236)),_0x988cad['add']('menuBar:insertFootnote',x(_0xc4dd49,_0x7290a3)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6001f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ea5d0;for(const _0x1c71e6 in _0x6001f6){const _0x32fbc7=_0x1c71e6,_0x12acb1=_0x6001f6[_0x32fbc7];if('footnotesLicenseKeyValid'==_0x12acb1||'footnotesLicenseKeyInvalid'==_0x12acb1||'footnotesLicenseKeyExpired'==_0x12acb1||'footnotesLicenseKeyDomainLimit'==_0x12acb1||'footnotesLicenseKeyNotAllowed'==_0x12acb1||'footnotesLicenseKeyEvaluationLimit'==_0x12acb1||'footnotesLicenseKeyTrialLimit'==_0x12acb1||'footnotesLicenseKeyUsageLimit'==_0x12acb1){delete _0x6001f6[_0x32fbc7],_0x4ea5d0=_0x12acb1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x4ea5d0&&_0x6001f6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x544378,_0x2cc7ce){const _0x1bd880=_0x544378['commands']['get']('insertFootnote');return _0x30198c=>{const {t:t}=_0x30198c,_0x3dc277=new _0x2cc7ce(_0x30198c),_0x38bad0=_0x3dc277 instanceof _0x7290a3;return _0x3dc277['bind']('isEnabled')['to'](_0x1bd880,'isEnabled'),_0x3dc277['set']({'label':t(_0x38bad0?'Footnote':'Insert\x20footnote'),'icon':_0x266f85,'tooltip':!0x0}),_0x3dc277['on']('execute',()=>{_0x1bd880['execute'](),_0x544378['editing']['view']['focus']();}),_0x3dc277;};}class lt extends _0x9a6199{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 _0x2eec5a{['refresh'](){const {editor:_0x4d47eb}=this,_0x2e1681=_0x4d47eb['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2e1681,this['value']=_0x2e1681?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5b3995}){const {editor:_0x432ae4}=this,_0x35eb66=_0x432ae4['plugins']['get'](f),_0x13ba9a=_0x35eb66['getFootnotesDefinitionsObjectElement']();_0x13ba9a&&Q['includes'](_0x5b3995)&&_0x432ae4['model']['change'](_0x4328e1=>{_0x4328e1['setAttribute']('footnotesListStyle',_0x5b3995,_0x13ba9a),_0x35eb66['_updateFootnotesCounters'](_0x4328e1);});}}class C extends _0x2eec5a{['refresh'](){const {editor:_0xb8e749}=this,_0x2afc21=_0xb8e749['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2afc21,this['value']=_0x2afc21?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x369d5c}){const {editor:_0x477867}=this,_0x12936d=_0x477867['plugins']['get'](f),_0x48186d=_0x12936d['getFootnotesDefinitionsObjectElement']();_0x48186d&&Number['isInteger'](_0x369d5c)&&_0x477867['model']['change'](_0x28392e=>{_0x28392e['setAttribute']('footnotesListStart',_0x369d5c,_0x48186d),_0x12936d['_updateFootnotesCounters'](_0x28392e);});}}class P extends _0x9a6199{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b6d41}=this;_0x1b6d41['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1b6d41['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1b6d41['commands']['add']('footnotesStyle',new S(_0x1b6d41)),_0x1b6d41['commands']['add']('footnotesStart',new C(_0x1b6d41)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3ed0ce}=this,{schema:_0x2822d6}=_0x3ed0ce['model'];_0x2822d6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5e2bee}=this,{conversion:_0x8dd253,model:_0x220771}=_0x5e2bee,{schema:_0x1547d4}=_0x220771;_0x8dd253['for']('upcast')['add'](_0x391ef4=>{_0x391ef4['on']('element:ol',(_0x483e4c,_0x5f243e,_0x1e9a59)=>{const _0xd1893b=_0x5f243e['viewItem'],_0x4a8926=_0x5f243e['modelCursor']?.['parent'];_0xd1893b['hasClass']('footnotes-list')&&_0x4a8926?.['is']('element','footnotesDefinitions')&&(function(_0x5344a1,_0x32f3c3,_0x298368,_0x5d05b4){if(!_0x5d05b4['checkAttribute'](_0x32f3c3,'footnotesListStart'))return;let _0x282794=0x1;const _0x3528cb=_0x298368['consumable']['consume'](_0x5344a1,{'attributes':'start'});if(_0x3528cb){const _0x457f9f=Number['parseInt'](_0x5344a1['getAttribute']('start'),0xa);Number['isNaN'](_0x457f9f)||(_0x282794=_0x457f9f);}!_0x3528cb&&_0x32f3c3['hasAttribute']('footnotesListStart')||_0x298368['writer']['setAttribute']('footnotesListStart',_0x282794,_0x32f3c3);}(_0xd1893b,_0x4a8926,_0x1e9a59,_0x1547d4),function(_0x33116b,_0x253f93,_0x229e9b,_0x2cf4b1){if(!_0x2cf4b1['checkAttribute'](_0x253f93,'footnotesListStyle'))return;let _0x29adce='decimal',_0x499e86=!0x1;if(_0x229e9b['consumable']['consume'](_0x33116b,{'attributes':'type'})){const _0x28bb46={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x33116b['getAttribute']('type')];_0x28bb46&&(_0x29adce=_0x28bb46),_0x499e86=!0x0;}_0x229e9b['consumable']['consume'](_0x33116b,{'styles':'list-style-type'})&&(_0x29adce=function(_0x33cbac){switch(_0x33cbac){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x33cbac;}}(_0x33116b['getStyle']('list-style-type')),_0x499e86=!0x0),!_0x499e86&&_0x253f93['hasAttribute']('footnotesListStyle')||_0x229e9b['writer']['setAttribute']('footnotesListStyle',_0x29adce,_0x253f93);}(_0xd1893b,_0x4a8926,_0x1e9a59,_0x1547d4));});}),_0x8dd253['for']('downcast')['add'](_0x368527=>{_0x368527['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x4407e1,_0x42f8fa,_0x16b6ea)=>{if(!_0x16b6ea['consumable']['consume'](_0x42f8fa['item'],_0x4407e1['name']))return;const _0xc3448f=M(_0x42f8fa['item'],_0x16b6ea['mapper']),{attributeNewValue:_0x41e9a6}=_0x42f8fa;null==_0x41e9a6||0x1===_0x41e9a6?_0x16b6ea['writer']['removeAttribute']('start',_0xc3448f):_0x16b6ea['writer']['setAttribute']('start',String(_0x41e9a6),_0xc3448f);}),_0x368527['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x386e21,_0x221b2f,_0x4d4068)=>{if(!_0x4d4068['consumable']['consume'](_0x221b2f['item'],_0x386e21['name']))return;const _0x4fdd9a=M(_0x221b2f['item'],_0x4d4068['mapper']),{attributeNewValue:_0x48b9fc}=_0x221b2f;_0x48b9fc&&'decimal'!==_0x48b9fc?_0x4d4068['writer']['setStyle']('list-style-type',_0x48b9fc,_0x4fdd9a):_0x4d4068['writer']['removeStyle']('list-style-type',_0x4fdd9a);});});}['_definePostfixer'](){const {editor:_0x899b89}=this,{model:_0x1e4f64}=_0x899b89,_0x3aa341=_0x899b89['plugins']['get'](f),_0x3a331f=this['_getDefaultListStyle'](),_0x235379=this['_getDefaultStartIndex']();_0x1e4f64['document']['registerPostFixer'](_0x344002=>{const _0x2dbc8b=_0x1e4f64['document']['differ']['getChanges']();let _0x290e80=!0x1;for(const _0x3ec710 of _0x2dbc8b){if('insert'!==_0x3ec710['type']||'$text'===_0x3ec710['name'])continue;const _0x2dde96=_0x1e4f64['createRangeOn'](_0x3ec710['position']['nodeAfter']);for(const _0x1cc0a2 of _0x2dde96['getItems']())_0x1cc0a2['is']('element','footnotesDefinitions')&&(!_0x1cc0a2['hasAttribute']('footnotesListStart')&&_0x1e4f64['schema']['checkAttribute'](_0x1cc0a2,'footnotesListStart')&&(_0x344002['setAttribute']('footnotesListStart',_0x235379,_0x1cc0a2),_0x290e80=!0x0),!_0x1cc0a2['hasAttribute']('footnotesListStyle')&&_0x1e4f64['schema']['checkAttribute'](_0x1cc0a2,'footnotesListStyle')&&(_0x344002['setAttribute']('footnotesListStyle',_0x3a331f,_0x1cc0a2),_0x290e80=!0x0));}return _0x290e80&&_0x3aa341['_updateFootnotesCounters'](_0x344002),_0x290e80;});}['_defineFormatter'](){const {editor:_0x599c41}=this;_0x599c41['plugins']['get'](f)['setFootnoteFormatter'](_0x56ee20=>this['_formatFootnoteListValue'](_0x56ee20));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x55f28a,value:_0x14e463,digits:_0x28c4fd}){const _0x1cfba3=_0x55f28a['getAttribute']('footnotesListStyle'),_0x5b0026=_0x55f28a['getAttribute']('footnotesListStart'),_0x17d586=Math['floor'](_0x14e463)+(_0x5b0026??0x1)-0x1;switch(_0x1cfba3){case'decimal-leading-zero':return function(_0x43f134,_0x10b3b0){return String(_0x43f134)['padStart'](_0x10b3b0,'0');}(_0x17d586,Math['max'](0x2,_0x28c4fd));case'lower-alpha':case'lower-latin':return N(_0x17d586,!0x1);case'upper-alpha':case'upper-latin':return N(_0x17d586,!0x0);case'lower-roman':return X(_0x17d586,!0x1);case'upper-roman':return X(_0x17d586,!0x0);default:return String(_0x17d586);}}}function M(_0x15321f,_0x566ea1){const _0x59e66d=_0x566ea1['toViewElement'](_0x15321f);return Array['from'](_0x59e66d['getChildren']())['find'](_0x2e1104=>_0x2e1104['is']('element','ol')&&_0x2e1104['hasClass']('footnotes-list'));}function N(_0x3440d4,_0x542b04){let _0x485ef8='',_0x464a8f=_0x3440d4;for(;_0x464a8f>0x0;){const _0x25f74c=(_0x464a8f-0x1)%0x1a;_0x485ef8=String['fromCharCode'](0x61+_0x25f74c)+_0x485ef8,_0x464a8f=Math['floor']((_0x464a8f-0x1)/0x1a);}return _0x542b04?_0x485ef8['toUpperCase']():_0x485ef8;}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(_0x58d8ef,_0x21885a){let _0x4ad9b0='',_0x2d47a4=_0x58d8ef;for(const {value:_0x13ff46,numeral:_0xb19c80}of V)for(;_0x2d47a4>=_0x13ff46;)_0x4ad9b0+=_0xb19c80,_0x2d47a4-=_0x13ff46;return _0x21885a?_0x4ad9b0:_0x4ad9b0['toLowerCase']();}class H extends _0x313716{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0xdad254();['focusCycler'];constructor(_0x429e9a,{styleButtonViews:_0x179be8,styleGridAriaLabel:_0x570306}){super(_0x429e9a),(this['focusCycler']=new _0xa994eb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x179be8,_0x570306),[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 _0x324504 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x324504['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 _0x1a1056=_0x41c5b6=>_0x41c5b6['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1a1056),this['keystrokes']['set']('arrowleft',_0x1a1056),this['keystrokes']['set']('arrowup',_0x1a1056),this['keystrokes']['set']('arrowdown',_0x1a1056);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3743c2,_0x5576d7){const _0x43b5bf=new _0x313716(this['locale']);return _0x43b5bf['children']=_0x43b5bf['createCollection'](),_0x43b5bf['children']['addMany'](_0x3743c2),_0x43b5bf['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5576d7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x43b5bf['children']}),_0x43b5bf['children']['delegate']('execute')['to'](this),_0x43b5bf['focus']=function(){for(const _0x205ebc of this['children'])if(_0x205ebc instanceof _0x277236&&_0x205ebc['isOn'])return void _0x205ebc['focus']();this['children']['first']['focus']();},_0x43b5bf['focusTracker']=new ot(),_0x43b5bf['keystrokes']=new rt(),_0x43b5bf['render'](),_0x43b5bf['keystrokes']['listenTo'](_0x43b5bf['element']),this['children']['add'](_0x43b5bf),_0x43b5bf;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xf0657d=this['_createStartIndexPropertyView'](),_0x313032=[_0xf0657d],_0x4a26b8=new st(this['locale'],_0x313032);return _0x4a26b8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4a26b8['buttonView']['bind']('isEnabled')['toMany'](_0x313032,'isEnabled',(..._0x1256ba)=>_0x1256ba['some'](_0x486771=>_0x486771)),_0x4a26b8['buttonView']['on']('change:isEnabled',(_0xcc83d7,_0x271a94,_0x3335ab)=>{_0x3335ab||(_0x4a26b8['isCollapsed']=!0x0);}),this['children']['add'](_0x4a26b8),[_0xf0657d,_0x4a26b8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x22150b=new it(this['locale'],et);return _0x22150b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x22150b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x22150b['fieldView']['on']('input',()=>{const _0x4a73e4=_0x22150b['fieldView']['element'],_0x26b6f1=_0x4a73e4['valueAsNumber'];Number['isNaN'](_0x26b6f1)?_0x22150b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4a73e4['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x26b6f1}):_0x22150b['errorText']=t(_0x26b6f1<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x22150b;}}class j extends _0x9a6199{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x40c76c,_0x11e246];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16300f}=this,{componentFactory:_0x73c819}=_0x16300f['ui'];_0x16300f['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x73c819['add']('footnotesStyle',function(_0x3e20b4){return _0x2e6583=>{const {t:t}=_0x2e6583,_0x23d17a=_0x3e20b4['commands']['get']('footnotesStyle'),_0x54b371=_0x18dd8a(_0x2e6583),{buttonView:_0x3be0e2}=_0x54b371;return _0x54b371['class']='ck-footnotes-styles-dropdown',_0x54b371['bind']('isEnabled')['to'](_0x23d17a,'isEnabled'),_0x3be0e2['set']({'label':t('Footnotes\x20style'),'icon':_0x266f85,'tooltip':!0x0}),_0x54b371['once']('change:isOpen',()=>{const _0x27b769=function({editor:_0x56b528,dropdownView:_0x2abb0c}){const {t:t}=_0x56b528['locale'],_0x548ed5=t('Footnotes\x20definitions\x20styles'),_0x41bbcc=function(_0x3ce388){const t=_0x3ce388['locale']['t'],_0x157f20=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x152354},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2129dd},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4f7d43},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x223cef},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3117b5},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x24565b}];return _0x157f20['map'](function(_0x1f0af8){const _0x5ca191=_0x1f0af8['locale'];return({label:_0xbb1613,icon:_0x411546,tooltip:_0x456fd0,style:_0x37d21f})=>{const _0x1751d3=_0x1f0af8['commands']['get']('footnotesStyle'),_0x2188d0=new _0x277236(_0x5ca191);return _0x2188d0['set']({'label':_0xbb1613,'icon':_0x411546,'tooltip':_0x456fd0}),_0x2188d0['bind']('isOn')['to'](_0x1751d3,'value',_0x283122=>_0x283122===_0x37d21f),_0x2188d0['bind']('isEnabled')['to'](_0x1751d3,'isEnabled'),_0x2188d0['on']('execute',()=>{_0x1f0af8['execute']('footnotesStyle',{'value':_0x37d21f}),_0x1f0af8['editing']['view']['focus']();}),_0x2188d0;};}(_0x3ce388));}(_0x56b528),_0x56bca7=new H(_0x56b528['locale'],{'styleGridAriaLabel':_0x548ed5,'styleButtonViews':_0x41bbcc}),_0x3835e0=_0x56b528['commands']['get']('footnotesStart');return _0x56bca7['startIndexFieldView']['bind']('isEnabled')['to'](_0x3835e0),_0x56bca7['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3835e0),_0x56bca7['on']('footnotesListStart',(_0x5e94aa,_0x4bc203)=>{_0x56b528['execute']('footnotesStart',{'value':_0x4bc203['startIndex']});}),_0x56bca7['delegate']('execute')['to'](_0x2abb0c),_0x56bca7;}({'editor':_0x3e20b4,'dropdownView':_0x54b371});_0x54b371['panelView']['children']['add'](_0x27b769);}),_0x54b371;};}(_0x16300f));}['afterInit'](){const {editor:_0x373f40}=this,{t:t}=_0x373f40['locale'],_0x4001cb=_0x373f40['plugins']['get'](_0x11e246),{defaultPositions:_0x16e4fb}=_0x3c9c0c;_0x4001cb['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x373f40['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x531a5f=>{let _0x4e7dbf=_0x531a5f['getFirstPosition']()?.['parent'];return _0x4e7dbf?.['is']('$text')&&(_0x4e7dbf=_0x4e7dbf['parent']),_0x4e7dbf?.['is']('element')?_0x4e7dbf['findAncestor'](J):null;},'positions':[_0x16e4fb['southArrowNorth'],_0x16e4fb['southArrowNorthMiddleWest'],_0x16e4fb['southArrowNorthMiddleEast'],_0x16e4fb['southArrowNorthWest'],_0x16e4fb['southArrowNorthEast'],_0x16e4fb['northArrowSouth'],_0x16e4fb['northArrowSouthMiddleWest'],_0x16e4fb['northArrowSouthMiddleEast'],_0x16e4fb['northArrowSouthWest'],_0x16e4fb['northArrowSouthEast'],_0x16e4fb['viewportStickyNorth']]});}}class ft extends _0x9a6199{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,f 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-20251216.0",
3
+ "version": "0.0.0-nightly-20251217.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-20251216.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251216.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251216.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251216.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251216.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251216.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251216.0",
33
- "ckeditor5": "0.0.0-nightly-20251216.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251217.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251217.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251217.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251217.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251217.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251217.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251217.0",
33
+ "ckeditor5": "0.0.0-nightly-20251217.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 _0x1f344f}from'ckeditor5/src/core.js';import{isWidget as _0x5c9129,toWidget as _0x5aa439,toWidgetEditable as _0x3e2a90}from'ckeditor5/src/widget.js';import{uid as _0x54ee1f}from'ckeditor5/src/utils.js';import{PointerObserver as _0x6e41c8,ClickObserver as _0x3a1dd9}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x439586}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x47a51d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1f344f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x439586];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x14ba04}=this;_0x14ba04['config']['define']('footnotes.multiBlock',!0x0),_0x14ba04['commands']['add']('insertFootnote',new _0x47a51d(_0x14ba04)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4d61a7){const _0x311c84=_0x227f57([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]),_0x496d64=0x47a28506,_0x3c558d=0x47a5f916^_0x496d64,_0x3cbae0=window[_0x227f57([0x44,0x61,0x74,0x65])][_0x227f57([0x6e,0x6f,0x77])](),_0x267605=_0x4d61a7[_0x227f57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ac830=new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d51c1=>{_0x267605[_0x227f57([0x6f,0x6e,0x63,0x65])](_0x227f57([0x72,0x65,0x61,0x64,0x79]),_0x2d51c1);}),_0x4f4125={[_0x227f57([0x6b,0x74,0x79])]:_0x227f57([0x45,0x43]),[_0x227f57([0x75,0x73,0x65])]:_0x227f57([0x73,0x69,0x67]),[_0x227f57([0x63,0x72,0x76])]:_0x227f57([0x50,0x2d,0x32,0x35,0x36]),[_0x227f57([0x78])]:_0x227f57([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]),[_0x227f57([0x79])]:_0x227f57([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]),[_0x227f57([0x61,0x6c,0x67])]:_0x227f57([0x45,0x53,0x32,0x35,0x36])},_0x3813c6=_0x267605[_0x227f57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x227f57([0x67,0x65,0x74])](_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3eab23(){let _0x45ab3f,_0x1f51aa=null,_0x5ce4b7=null;try{if(_0x3813c6==_0x227f57([0x47,0x50,0x4c]))return _0x227f57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45ab3f=_0xe00a4e(),!_0x45ab3f)return _0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45ab3f[_0x227f57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ce4b7=_0x3f8e0b(_0x45ab3f[_0x227f57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45ab3f[_0x227f57([0x6a,0x74,0x69])])),await _0x488367()?_0x5a9e36()?_0x5380b8()?_0x227f57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d56ae()?(_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x227f57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f51aa=_0x136f3e(_0x227f57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x227f57([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f51aa=_0x136f3e(_0x227f57([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x477196()):_0x227f57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x227f57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x227f57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5380b8(){const _0x2c938c=[_0x227f57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x227f57([0x74,0x72,0x69,0x61,0x6c])][_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cbae0/0x3e8:0xe10*_0x3c558d;return _0x45ab3f[_0x227f57([0x65,0x78,0x70])]<_0x2c938c;}function _0x5a9e36(){const _0xfb9409=_0x45ab3f[_0x227f57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfb9409&&(!!_0xfb9409[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x2a]))||!!_0xfb9409[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x46,0x4f,0x4f])));}function _0x1d56ae(){const _0x359286=_0x45ab3f[_0x227f57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x359286||0x0==_0x359286[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c7ddf}=new URL(window[_0x227f57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x359286[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7ddf))return!0x0;const _0x460de9=_0x4c7ddf[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e]));return _0x359286[_0x227f57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9f3463=>_0x9f3463[_0x227f57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f57([0x2a])))[_0x227f57([0x6d,0x61,0x70])](_0x2e04b0=>_0x2e04b0[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e])))[_0x227f57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41d62f=>_0x41d62f[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x460de9[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x227f57([0x6d,0x61,0x70])](_0xbf19fd=>Array(_0x460de9[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbf19fd[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x227f57([0x66,0x69,0x6c,0x6c])](_0xbf19fd[0x0]===_0x227f57([0x2a])?_0x227f57([0x2a]):'')[_0x227f57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbf19fd))[_0x227f57([0x73,0x6f,0x6d,0x65])](_0x2ce355=>_0x460de9[_0x227f57([0x65,0x76,0x65,0x72,0x79])]((_0x2d946e,_0x5224ae)=>_0x2ce355[_0x5224ae]===_0x2d946e||_0x2ce355[_0x5224ae]===_0x227f57([0x2a])));}function _0x477196(){return _0x1f51aa&&_0x5ce4b7?new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35f3e6,_0x4beabd)=>{_0x1f51aa[_0x227f57([0x74,0x68,0x65,0x6e])](_0x35f3e6,_0x4beabd),_0x5ce4b7[_0x227f57([0x74,0x68,0x65,0x6e])](_0x2a047f=>{_0x2a047f!=_0x227f57([0x56,0x61,0x6c,0x69,0x64])&&_0x35f3e6(_0x2a047f);},_0x4beabd);}):_0x1f51aa||_0x5ce4b7||_0x227f57([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f8e0b(_0x191b38,_0x1e70a9){return new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd340=>{if(_0x556f25())return _0x1cd340(_0x227f57([0x56,0x61,0x6c,0x69,0x64]));_0x48f9d6(),_0x267605[_0x227f57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40d24a=!0x1;const _0x29e03d=_0x54ee1f();function _0x5324b5(_0x21a47b){return!!_0x21a47b&&(typeof _0x21a47b===_0x227f57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a47b===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a47b[_0x227f57([0x74,0x68,0x65,0x6e])]===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a47b[_0x227f57([0x63,0x61,0x74,0x63,0x68])]===_0x227f57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bf957(_0x9344d8){_0x4b7d51(_0x9344d8)[_0x227f57([0x74,0x68,0x65,0x6e])](_0x355279=>{if(!_0x355279||_0x355279[_0x227f57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x227f57([0x6f,0x6b]))return _0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x416cb2(_0x1b6bdc(_0x29e03d+_0x1e70a9))!=_0x355279[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x227f57([0x56,0x61,0x6c,0x69,0x64]);})[_0x227f57([0x74,0x68,0x65,0x6e])](_0x1a789c=>(_0x252e00(),_0x1a789c),()=>{const _0x32626=_0x557afd();return null==_0x32626?(_0x252e00(),_0x227f57([0x56,0x61,0x6c,0x69,0x64])):_0x227f57(_0x3cbae0-_0x32626>(0x63ae0106^_0x496d64)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x227f57([0x74,0x68,0x65,0x6e])](_0x1cd340)[_0x227f57([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x380f4c=0x47946b86^_0x496d64;function _0x252e00(){const _0x2910d7=_0x227f57([0x6c,0x6c,0x63,0x74,0x2d])+_0x416cb2(_0x1b6bdc(_0x191b38)),_0x5abb6e=_0x49f000(_0x416cb2(window[_0x227f57([0x4d,0x61,0x74,0x68])][_0x227f57([0x63,0x65,0x69,0x6c])](_0x3cbae0/_0x380f4c)));window[_0x227f57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x227f57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2910d7,_0x5abb6e);}function _0x557afd(){const _0x1d0734=_0x227f57([0x6c,0x6c,0x63,0x74,0x2d])+_0x416cb2(_0x1b6bdc(_0x191b38)),_0x50566a=window[_0x227f57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x227f57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0734);return _0x50566a?window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f000(_0x50566a),0x10)*_0x380f4c:null;}function _0x4b7d51(_0x1e9263){return new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4212f5,_0x2abcf4)=>{_0x1e9263[_0x227f57([0x74,0x68,0x65,0x6e])](_0x4212f5,_0x2abcf4),window[_0x227f57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2abcf4,0x47a351c6^_0x496d64);});}}_0x267605[_0x227f57([0x6f,0x6e])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21abf4,_0x526dd9)=>{if(_0x526dd9[0x0]!=_0x191b38)return _0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x526dd9[0x1]={..._0x526dd9[0x1],[_0x227f57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29e03d};},{[_0x227f57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x227f57([0x68,0x69,0x67,0x68])}),_0x267605[_0x227f57([0x6f,0x6e])](_0x227f57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6c670b=>{_0x5324b5(_0x6c670b[_0x227f57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40d24a=!0x0,_0x1bf957(_0x6c670b[_0x227f57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x227f57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x227f57([0x6c,0x6f,0x77])}),_0x3ac830[_0x227f57([0x74,0x68,0x65,0x6e])](()=>{_0x40d24a||_0x1cd340(_0x227f57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x556f25(){return _0x267605[_0x227f57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x227f57([0x76,0x69,0x65,0x77])][_0x227f57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x227f57([0x61,0x75,0x74,0x6f]);}function _0x48f9d6(){_0x267605[_0x227f57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x227f57([0x76,0x69,0x65,0x77])][_0x227f57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x227f57([0x61,0x75,0x74,0x6f]);}}function _0x136f3e(_0x355683){const _0x5edead=[new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x365de7=>setTimeout(_0x365de7,0x47abbbca^_0x496d64)),_0x3ac830[_0x227f57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504ab5=>{let _0x57d4da=0x0;_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x6f,0x6e])](_0x227f57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258947,_0x1d6af2)=>{_0x1d6af2[0x0][_0x227f57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57d4da++,_0x57d4da==(0x47a284fe^_0x496d64)&&(_0x504ab5(),_0x258947[_0x227f57([0x6f,0x66,0x66])]());});}))];return window[_0x227f57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x227f57([0x72,0x61,0x63,0x65])](_0x5edead)[_0x227f57([0x74,0x68,0x65,0x6e])](()=>_0x355683);}async function _0x23c1a5(){await _0x3ac830,_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca3e8,_0x267605[_0x227f57([0x6d,0x6f,0x64,0x65,0x6c])][_0x227f57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ca3e8,_0x267605[_0x227f57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x227f57([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37475f(_0x4e6dcc){const _0x4682b9=_0x142de9();_0x267605[_0x4682b9]=_0x227f57([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6dcc,_0x4e6dcc!=_0x227f57([0x56,0x61,0x6c,0x69,0x64])&&_0x23c1a5();}function _0x142de9(){const _0x22079d=window[_0x227f57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x227f57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x227f57([0x6e,0x6f,0x77])]())[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x227f57([0x2e]),'');let _0x312ae0=_0x227f57([0x75]);for(let _0x2e7fbb=0x0;_0x2e7fbb<_0x22079d[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7fbb+=0x2){let _0x3e4888=window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22079d[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7fbb,_0x2e7fbb+0x2));_0x3e4888>=_0x311c84[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e4888-=_0x311c84[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x312ae0+=_0x311c84[_0x3e4888];}return _0x312ae0;}function _0xe00a4e(){const _0x410f42=_0x3813c6[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e]));if(0x3!=_0x410f42[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a2863(_0x410f42[0x1]);function _0x2a2863(_0x26f1b5){const _0x2494bd=_0xccc5c1(_0x26f1b5);return _0x2494bd&&_0x410628()?_0x2494bd:null;function _0x410628(){const _0x3049f0=_0x2494bd[_0x227f57([0x6a,0x74,0x69])],_0x5e55e1=window[_0x227f57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3049f0[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3049f0[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2df955={..._0x2494bd,[_0x227f57([0x6a,0x74,0x69])]:_0x3049f0[_0x227f57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3049f0[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2df955[_0x227f57([0x76,0x63])],_0x1b6bdc(_0x2df955)==_0x5e55e1;}}}async function _0x488367(){let _0x3a79a8=!0x0;try{const _0x5965f3=_0x3813c6[_0x227f57([0x73,0x70,0x6c,0x69,0x74])](_0x227f57([0x2e])),[_0x1e8c9d,_0x319bef,_0x1f3776]=_0x5965f3;return _0x4e187f(_0x1e8c9d),await _0x8f9ac7(_0x1e8c9d,_0x319bef,_0x1f3776),_0x3a79a8;}catch{return!0x1;}function _0x4e187f(_0x3acc6b){const _0x1d161d=_0xccc5c1(_0x3acc6b);_0x1d161d&&_0x1d161d[_0x227f57([0x61,0x6c,0x67])]==_0x227f57([0x45,0x53,0x32,0x35,0x36])||(_0x3a79a8=!0x1);}async function _0x8f9ac7(_0x170662,_0xa94b5e,_0x319e2a){const _0x4fd845=window[_0x227f57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x227f57([0x66,0x72,0x6f,0x6d])](_0x3dc519(_0x319e2a),_0x27cc09=>_0x27cc09[_0x227f57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39f84b=new window[(_0x227f57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x227f57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x170662+_0x227f57([0x2e])+_0xa94b5e),_0x16ff4d=window[_0x227f57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x227f57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16ff4d)return;const _0x149a54=await _0x16ff4d[_0x227f57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x227f57([0x6a,0x77,0x6b]),_0x4f4125,{[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x45,0x43,0x44,0x53,0x41]),[_0x227f57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x227f57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16ff4d[_0x227f57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x45,0x43,0x44,0x53,0x41]),[_0x227f57([0x68,0x61,0x73,0x68])]:{[_0x227f57([0x6e,0x61,0x6d,0x65])]:_0x227f57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x149a54,_0x4fd845,_0x39f84b)||(_0x3a79a8=!0x1);}}function _0xccc5c1(_0x3e16ed){return _0x3e16ed[_0x227f57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x227f57([0x65,0x79]))?JSON[_0x227f57([0x70,0x61,0x72,0x73,0x65])](_0x3dc519(_0x3e16ed)):null;}function _0x3dc519(_0x166343){return window[_0x227f57([0x61,0x74,0x6f,0x62])](_0x166343[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x227f57([0x2b]))[_0x227f57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x227f57([0x2f])));}function _0x1b6bdc(_0x4e9f23){let _0x32ae05=0x1505;function _0x4815a1(_0x2420c8){for(let _0x3e2eb5=0x0;_0x3e2eb5<_0x2420c8[_0x227f57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e2eb5++){const _0x3cc65d=_0x2420c8[_0x227f57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e2eb5);_0x32ae05=(_0x32ae05<<0x5)+_0x32ae05+_0x3cc65d,_0x32ae05&=_0x32ae05;}}function _0x327ee7(_0x4b85bf){Array[_0x227f57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b85bf)?_0x4b85bf[_0x227f57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x327ee7):_0x4b85bf&&typeof _0x4b85bf==_0x227f57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x227f57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b85bf)[_0x227f57([0x73,0x6f,0x72,0x74])]()[_0x227f57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x352d28,_0x3201f0])=>{_0x4815a1(_0x352d28),_0x327ee7(_0x3201f0);}):_0x4815a1(window[_0x227f57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b85bf));}return _0x327ee7(_0x4e9f23),_0x32ae05>>>0x0;}function _0x416cb2(_0x2d4cad){return _0x2d4cad[_0x227f57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x227f57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x227f57([0x30]));}function _0x49f000(_0x3f3cfa){return _0x3f3cfa[_0x227f57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x227f57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x227f57([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ca3e8(){}function _0x227f57(_0xdec157){return _0xdec157['map'](_0x4dd10c=>String['fromCharCode'](_0x4dd10c))['join']('');}_0x37475f(await _0x3eab23());}(this);}['_moveSelectionToFootnoteDefinition'](_0x43cf25){const {plugins:_0x38164b,editing:_0x5a760f,model:_0x57274d}=this['editor'],_0x266794=_0x38164b['get'](_0x439586)['getFootnote'](_0x43cf25);return!!_0x266794&&(_0x57274d['change'](_0x2be186=>{_0x2be186['setSelection'](_0x2be186['createPositionAt'](_0x266794['definition'],'end'));}),_0x5a760f['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd49544){const {plugins:_0x1b3c97,editing:_0x437cfd,model:_0x27b912}=this['editor'],_0x2b4423=_0x1b3c97['get'](_0x439586)['getFootnote'](_0xd49544);return!!_0x2b4423&&(_0x27b912['change'](_0x5edd0d=>{_0x5edd0d['setSelection'](_0x2b4423['reference'],'on');}),_0x437cfd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2c6b65}=this['editor']['model'],_0x5832a5=this['editor']['config']['get']('footnotes.multiBlock');_0x2c6b65['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2c6b65['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2c6b65['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5832a5?_0x2c6b65['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2c6b65['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2c6b65['addChildCheck'](_0x231e82=>{for(const _0x4c922f of _0x231e82)if('footnoteDefinition'===_0x4c922f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x22d733}=this,{conversion:_0x326df9,editing:_0xfd0743}=_0x22d733,{t:t}=_0x22d733['locale'];_0x326df9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x231a4e,{writer:_0x129532,consumable:_0x557fa5})=>{const _0x328f93=_0x231a4e['getChild'](0x0);if(!_0x328f93||!_0x328f93['is']('element','a'))return null;const _0x4332f4=_0x328f93['getAttribute']('href')||'';if(!_0x4332f4['startsWith']('#'))return null;const _0xa87f13=_0x4332f4['replace'](/^#/,'');if(!_0xa87f13)return null;_0x557fa5['consume'](_0x328f93,{'name':!0x0,'attributes':['href']});for(const {item:_0x505d32}of _0xfd0743['view']['createRangeIn'](_0x328f93))_0x505d32['is']('$textProxy')?_0x557fa5['consume'](_0x505d32['textNode'],{'name':!0x0}):_0x505d32['is']('element')&&_0x557fa5['consume'](_0x505d32,{'name':!0x0});return _0x129532['createElement']('footnoteRef',{'footnoteId':_0xa87f13});}}),_0x326df9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x591ad2,{writer:_0x54d9fc})=>D(_0x591ad2,_0x54d9fc)}),_0x326df9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3081fe,{writer:_0x47253c})=>{const _0x3e44c3=_0x3081fe['getAttribute']('footnoteCounter');return _0x5aa439(D(_0x3081fe,_0x47253c),_0x47253c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3e44c3)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2a9a69}=this,{t:t}=_0x2a9a69['locale'],{conversion:_0x2821b0}=_0x2a9a69;_0x2821b0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2821b0['for']('upcast')['add'](_0x27c656=>{_0x27c656['on']('element:ol',(_0x2421c3,_0x63466e,_0x30b58e)=>{const _0x1e796a=_0x63466e['viewItem'];if(!_0x1e796a['hasClass']('footnotes-list')||!_0x63466e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x30b58e['consumable']['consume'](_0x1e796a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x31ccb4,modelCursor:_0x55511d}=_0x30b58e['convertChildren'](_0x63466e['viewItem'],_0x63466e['modelCursor']);_0x63466e['modelRange']=_0x31ccb4,_0x63466e['modelCursor']=_0x55511d;}),_0x27c656['on']('element:hr',(_0x1b12a2,_0xb018aa,_0x46f15b)=>{const _0x2edd9d=_0xb018aa['viewItem'];_0x2edd9d['hasClass']('footnotes-divider')&&_0xb018aa['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x46f15b['consumable']['consume'](_0x2edd9d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2821b0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1bc66f,{writer:_0x2427f6})=>v(_0x2427f6)}),_0x2821b0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x949012,{writer:_0x506ac0})=>{const _0x3312eb=v(_0x506ac0,{'data-footnotes-list-label':t('Footnotes')}),_0x5d843d=_0x5aa439(_0x3312eb,_0x506ac0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x506ac0['setCustomProperty']('footnotesDefinitions',!0x0,_0x5d843d),_0x5d843d;}});}['_defineDefinitionConverters'](){const {editor:_0x1c633f}=this,{conversion:_0x1e445e,locale:_0x2837f4}=_0x1c633f,_0x5d56e6=_0x1c633f['config']['get']('footnotes.multiBlock');_0x1e445e['for']('upcast')['add'](_0x5970b3=>{_0x5970b3['on']('element:li',(_0x2e04ef,_0x3dcc00,_0x39507d)=>{const _0xcf1289=_0x3dcc00['viewItem'];if(!_0xcf1289['hasClass']('footnote-definition')||!_0xcf1289['getAttribute']('id'))return;const _0x28453c=_0xcf1289['parent'];if(!_0x28453c['is']('element','ol')||!_0x28453c['hasClass']('footnotes-list'))return;if(!_0x39507d['consumable']['test'](_0xcf1289,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xc27cea=_0x39507d['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcf1289['getAttribute']('id')});if(!_0x39507d['safeInsert'](_0xc27cea,_0x3dcc00['modelCursor']))return;_0x39507d['consumable']['consume'](_0xcf1289,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3adda0=Array['from'](_0xcf1289['getChildren']())['find'](_0x421b00=>_0x421b00['is']('element')&&_0x421b00['hasClass']('footnote-content'));for(const _0x4655bd of _0xcf1289['getChildren']())_0x4655bd['is']('element')&&(_0x39507d['consumable']['consume'](_0x4655bd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x39507d['consumable']['consume'](_0x4655bd,{'name':!0x0,'classes':'footnote-content'}));if(_0x3adda0){if(_0x5d56e6)_0x39507d['convertChildren'](_0x3adda0,_0xc27cea);else{const _0x37828b=_0x39507d['writer']['createElement']('footnoteInlineContent');_0x39507d['writer']['insert'](_0x37828b,_0xc27cea),_0x39507d['convertChildren'](_0x3adda0,_0x37828b);}}_0x39507d['updateConversionResult'](_0xc27cea,_0x3dcc00);});}),_0x1e445e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46a906,{writer:_0x5874e4})=>b(_0x46a906,_0x5874e4,_0x2837f4,{'dataPipeline':!0x0})}),_0x1e445e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ec636,{writer:_0x34fafd})=>b(_0x4ec636,_0x34fafd,_0x2837f4)});}['_defineBogusParagraphConverters'](){const {editor:_0x9a0d6b}=this,{conversion:_0x27ba45}=_0x9a0d6b;_0x9a0d6b['config']['get']('footnotes.multiBlock')?(_0x27ba45['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x27ba45['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x9a0d6b['model']['document'],'change:data',()=>{!function(_0x449492,_0x35b00){const _0x2cf125=_0x449492['document']['differ'],_0x4934ee=new Set();for(const _0x4d3181 of _0x2cf125['getChanges']()){const _0x3b0479='attribute'==_0x4d3181['type']?_0x4d3181['range']['start']['parent']:_0x4d3181['position']['parent'];_0x3b0479['is']('element','footnoteDefinition')&&_0x4934ee['add'](_0x3b0479);}for(const _0x2078f7 of _0x4934ee['values']()){const _0x33907a=Array['from'](_0x2078f7['getChildren']())['filter'](_0x2ddc9d=>g(_0x2ddc9d,_0x35b00['mapper']));for(const _0x5ec992 of _0x33907a)_0x35b00['reconvertItem'](_0x5ec992);}}(_0x9a0d6b['model'],_0x9a0d6b['editing']);})):(_0x27ba45['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x27ba45['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b0c07,{writer:_0x54e863})=>{const _0xb0d025=_0x54e863['createContainerElement']('span');return _0x54e863['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb0d025),_0xb0d025;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2782cd}=this,{editing:_0x237625,t:t}=_0x2782cd,_0x535a31=_0x2782cd['model']['document']['selection'];_0x2782cd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2782cd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x237625['view']['document'],'enter',(_0x444fd6,_0x256252)=>{const _0x1a74d7=function(_0x41ead2){const _0x1f35bb=_0x41ead2['getSelectedElement']();if(_0x1f35bb?.['is']('element','footnoteRef'))return _0x1f35bb;return null;}(_0x535a31);if(_0x1a74d7){const _0x17ed49=_0x1a74d7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17ed49),_0x256252['preventDefault'](),_0x444fd6['stop']();}},{'context':_0x5c9129});}['_defineClickHandlers'](){const {editor:_0x2c17c6}=this,{editing:_0x14b3be}=_0x2c17c6;_0x2c17c6['editing']['view']['addObserver'](_0x6e41c8),_0x2c17c6['editing']['view']['addObserver'](_0x3a1dd9);let _0x22a679=!0x1;this['listenTo'](_0x14b3be['view']['document'],'pointerdown',(_0x500bc2,_0x10073e)=>{const {target:_0x2155b3}=_0x10073e,_0x2c6596=_0x14b3be['view']['document']['selection'];_0x22a679=!!(_0x2155b3?.['is']('element','a')&&_0x2155b3['parent']?.['is']('element','sup')&&_0x2155b3['parent']['hasClass']('footnote'))&&_0x2c6596['getSelectedElement']()===_0x2155b3['parent'];},{'priority':'high'}),this['listenTo'](_0x14b3be['view']['document'],'click',(_0x26870c,_0x4d275d)=>{const {target:_0x43ed20}=_0x4d275d;if(!_0x43ed20?.['is']('element','a'))return;if(_0x43ed20['parent']?.['is']('element','sup')&&_0x43ed20['parent']['hasClass']('footnote')&&!_0x22a679)return void _0x4d275d['preventDefault']();let _0x558624=_0x43ed20['getAttribute']('href');if(!_0x558624?.['startsWith']('#'))return;_0x558624=_0x558624['slice'](0x1);let _0x53b065=!0x1;(_0x558624['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x558624['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x558624))&&(_0x53b065=!0x0),_0x53b065&&(_0x4d275d['preventDefault'](),_0x26870c['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x88e92c}={}){return(_0x3d12e1,{writer:_0xc06afb})=>{if(!p(_0x3d12e1))return null;if(!_0x88e92c)return _0xc06afb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4ab0ed=_0xc06afb['createContainerElement']('p');return _0xc06afb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4ab0ed),_0x4ab0ed;};}function p(_0xc2e9cf){const {parent:_0x10e661}=_0xc2e9cf;if(!_0x10e661?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x10e661['childCount'])return!0x1;for(const _0x39dabf of _0xc2e9cf['getAttributeKeys']())if(!_0x39dabf['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x39dabf)return!0x1;return!0x0;}function g(_0x415427,_0x13a75e){if(!_0x415427['is']('element','paragraph'))return!0x1;const _0x127dfa=_0x13a75e['toViewElement'](_0x415427);return!!_0x127dfa&&p(_0x415427)!==_0x127dfa['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1a4fa0){return _0x5c9129(_0x1a4fa0)&&_0x1a4fa0['is']('containerElement')&&!!_0x1a4fa0['getCustomProperty']('footnotesDefinitions');}function v(_0x489f0b,_0x3756d1={}){const _0x42de63=_0x489f0b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4d79aa=_0x489f0b['createContainerElement']('ol',{'class':'footnotes-list'},_0x489f0b['createSlot']());return _0x489f0b['createContainerElement']('div',{'class':'footnotes',..._0x3756d1},[_0x42de63,_0x4d79aa]);}function D(_0xd567c3,_0x5b0463){const _0x26e4aa=_0xd567c3['getAttribute']('footnoteId'),_0x5d9bf1=_0xd567c3['getAttribute']('footnoteCounter'),_0x4ac609=_0x5b0463['createUIElement']('a',{'href':'#'+_0x26e4aa},function(_0x1dfe73){const _0x21cc9f=this['toDomElement'](_0x1dfe73);return _0x21cc9f['textContent']=_0x5d9bf1,_0x21cc9f;}),_0x59709d=_0x5b0463['createContainerElement']('sup',{'id':'ref-'+_0x26e4aa,'class':'footnote'},[_0x4ac609]);return _0x59709d['getFillerOffset']=()=>null,_0x59709d;}function b(_0x21978b,_0x5b9c73,_0x46f9de,{dataPipeline:_0x3dae6e}={}){const {t:t}=_0x46f9de,_0x37fe06=_0x21978b['getAttribute']('footnoteId'),_0x31ba32=_0x5b9c73['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x37fe06},function(_0x219fe2){const _0x41957e=this['toDomElement'](_0x219fe2);return _0x41957e['innerText']='^',_0x41957e;}),_0x4b355f=_0x3dae6e?_0x5b9c73['createContainerElement']('div',{'class':'footnote-content'}):_0x3e2a90(_0x5b9c73['createEditableElement']('div',{'class':'footnote-content'}),_0x5b9c73,{'label':t('Footnote\x20content.')});return _0x5b9c73['insert'](_0x5b9c73['createPositionAt'](_0x4b355f,0x0),_0x5b9c73['createSlot']()),_0x5b9c73['createContainerElement']('li',{'class':'footnote-definition','id':_0x37fe06},[_0x31ba32,_0x4b355f]);}
23
+ import{Plugin as _0x45188e}from'ckeditor5/src/core.js';import{isWidget as _0x1584e5,toWidget as _0xbb7b,toWidgetEditable as _0x5b1148}from'ckeditor5/src/widget.js';import{uid as _0x432d86}from'ckeditor5/src/utils.js';import{PointerObserver as _0xdd4942,ClickObserver as _0x1b3d36}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x131dd8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x8009e2}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x45188e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x131dd8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5eb9bd}=this;_0x5eb9bd['config']['define']('footnotes.multiBlock',!0x0),_0x5eb9bd['commands']['add']('insertFootnote',new _0x8009e2(_0x5eb9bd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x141370){const _0x29384b=_0x45a558([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]),_0x404c18=0x47a28506,_0x15f63e=0x47a5f92e^_0x404c18,_0xc8230=window[_0x45a558([0x44,0x61,0x74,0x65])][_0x45a558([0x6e,0x6f,0x77])](),_0x4599d6=_0x141370[_0x45a558([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x28fb44=new window[(_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51e510=>{_0x4599d6[_0x45a558([0x6f,0x6e,0x63,0x65])](_0x45a558([0x72,0x65,0x61,0x64,0x79]),_0x51e510);}),_0x30f343={[_0x45a558([0x6b,0x74,0x79])]:_0x45a558([0x45,0x43]),[_0x45a558([0x75,0x73,0x65])]:_0x45a558([0x73,0x69,0x67]),[_0x45a558([0x63,0x72,0x76])]:_0x45a558([0x50,0x2d,0x32,0x35,0x36]),[_0x45a558([0x78])]:_0x45a558([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]),[_0x45a558([0x79])]:_0x45a558([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]),[_0x45a558([0x61,0x6c,0x67])]:_0x45a558([0x45,0x53,0x32,0x35,0x36])},_0x5b942b=_0x4599d6[_0x45a558([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45a558([0x67,0x65,0x74])](_0x45a558([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4639ef(){let _0x127415,_0x11d5d6=null,_0x1d9de9=null;try{if(_0x5b942b==_0x45a558([0x47,0x50,0x4c]))return _0x45a558([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x127415=_0x7f63d1(),!_0x127415)return _0x45a558([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x127415[_0x45a558([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d9de9=_0x2b4508(_0x127415[_0x45a558([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x127415[_0x45a558([0x6a,0x74,0x69])])),await _0x177735()?_0x146a45()?_0x393cf8()?_0x45a558([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1682e6()?(_0x127415[_0x45a558([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45a558([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11d5d6=_0x131821(_0x45a558([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x127415[_0x45a558([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45a558([0x74,0x72,0x69,0x61,0x6c])&&(_0x11d5d6=_0x131821(_0x45a558([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c9ece()):_0x45a558([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45a558([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45a558([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45a558([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x393cf8(){const _0x57afc9=[_0x45a558([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45a558([0x74,0x72,0x69,0x61,0x6c])][_0x45a558([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127415[_0x45a558([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc8230/0x3e8:0xe10*_0x15f63e;return _0x127415[_0x45a558([0x65,0x78,0x70])]<_0x57afc9;}function _0x146a45(){const _0x2b5c4f=_0x127415[_0x45a558([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b5c4f&&(!!_0x2b5c4f[_0x45a558([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a558([0x2a]))||!!_0x2b5c4f[_0x45a558([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a558([0x46,0x4f,0x4f])));}function _0x1682e6(){const _0x52128b=_0x127415[_0x45a558([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x52128b||0x0==_0x52128b[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d840f}=new URL(window[_0x45a558([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x52128b[_0x45a558([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d840f))return!0x0;const _0x2b0932=_0x1d840f[_0x45a558([0x73,0x70,0x6c,0x69,0x74])](_0x45a558([0x2e]));return _0x52128b[_0x45a558([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2aded4=>_0x2aded4[_0x45a558([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a558([0x2a])))[_0x45a558([0x6d,0x61,0x70])](_0x31e309=>_0x31e309[_0x45a558([0x73,0x70,0x6c,0x69,0x74])](_0x45a558([0x2e])))[_0x45a558([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x126223=>_0x126223[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b0932[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45a558([0x6d,0x61,0x70])](_0x5979dc=>Array(_0x2b0932[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5979dc[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45a558([0x66,0x69,0x6c,0x6c])](_0x5979dc[0x0]===_0x45a558([0x2a])?_0x45a558([0x2a]):'')[_0x45a558([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5979dc))[_0x45a558([0x73,0x6f,0x6d,0x65])](_0x4a5677=>_0x2b0932[_0x45a558([0x65,0x76,0x65,0x72,0x79])]((_0x28e4fb,_0x5220dd)=>_0x4a5677[_0x5220dd]===_0x28e4fb||_0x4a5677[_0x5220dd]===_0x45a558([0x2a])));}function _0x2c9ece(){return _0x11d5d6&&_0x1d9de9?new window[(_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25c929,_0x2c92e2)=>{_0x11d5d6[_0x45a558([0x74,0x68,0x65,0x6e])](_0x25c929,_0x2c92e2),_0x1d9de9[_0x45a558([0x74,0x68,0x65,0x6e])](_0x254122=>{_0x254122!=_0x45a558([0x56,0x61,0x6c,0x69,0x64])&&_0x25c929(_0x254122);},_0x2c92e2);}):_0x11d5d6||_0x1d9de9||_0x45a558([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b4508(_0x3f6176,_0x275a95){return new window[(_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xffd810=>{if(_0x5062c1())return _0xffd810(_0x45a558([0x56,0x61,0x6c,0x69,0x64]));_0x41d5c9(),_0x4599d6[_0x45a558([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45a558([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2073da=!0x1;const _0xcb3411=_0x432d86();function _0x36b00d(_0x1e71c9){return!!_0x1e71c9&&(typeof _0x1e71c9===_0x45a558([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e71c9===_0x45a558([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e71c9[_0x45a558([0x74,0x68,0x65,0x6e])]===_0x45a558([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e71c9[_0x45a558([0x63,0x61,0x74,0x63,0x68])]===_0x45a558([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x36b95c(_0x32f7af){_0x541564(_0x32f7af)[_0x45a558([0x74,0x68,0x65,0x6e])](_0x1e8413=>{if(!_0x1e8413||_0x1e8413[_0x45a558([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45a558([0x6f,0x6b]))return _0x45a558([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x392b61(_0x1208c6(_0xcb3411+_0x275a95))!=_0x1e8413[_0x45a558([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45a558([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45a558([0x56,0x61,0x6c,0x69,0x64]);})[_0x45a558([0x74,0x68,0x65,0x6e])](_0xd5756=>(_0x158344(),_0xd5756),()=>{const _0x367810=_0x495fe7();return null==_0x367810?(_0x158344(),_0x45a558([0x56,0x61,0x6c,0x69,0x64])):_0x45a558(_0xc8230-_0x367810>(0x63ae0106^_0x404c18)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45a558([0x74,0x68,0x65,0x6e])](_0xffd810)[_0x45a558([0x63,0x61,0x74,0x63,0x68])](()=>{_0xffd810(_0x45a558([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59eb6e=0x47946b86^_0x404c18;function _0x158344(){const _0x1063a1=_0x45a558([0x6c,0x6c,0x63,0x74,0x2d])+_0x392b61(_0x1208c6(_0x3f6176)),_0x480d9e=_0x1692bf(_0x392b61(window[_0x45a558([0x4d,0x61,0x74,0x68])][_0x45a558([0x63,0x65,0x69,0x6c])](_0xc8230/_0x59eb6e)));window[_0x45a558([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45a558([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1063a1,_0x480d9e);}function _0x495fe7(){const _0x4c67d7=_0x45a558([0x6c,0x6c,0x63,0x74,0x2d])+_0x392b61(_0x1208c6(_0x3f6176)),_0x275c4b=window[_0x45a558([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45a558([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c67d7);return _0x275c4b?window[_0x45a558([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1692bf(_0x275c4b),0x10)*_0x59eb6e:null;}function _0x541564(_0x1ceaa5){return new window[(_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e79db,_0x577513)=>{_0x1ceaa5[_0x45a558([0x74,0x68,0x65,0x6e])](_0x2e79db,_0x577513),window[_0x45a558([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x577513,0x47a351c6^_0x404c18);});}}_0x4599d6[_0x45a558([0x6f,0x6e])](_0x45a558([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x91ebb0,_0x31246f)=>{if(_0x31246f[0x0]!=_0x3f6176)return _0xffd810(_0x45a558([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31246f[0x1]={..._0x31246f[0x1],[_0x45a558([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xcb3411};},{[_0x45a558([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45a558([0x68,0x69,0x67,0x68])}),_0x4599d6[_0x45a558([0x6f,0x6e])](_0x45a558([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bd047=>{_0x36b00d(_0x3bd047[_0x45a558([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2073da=!0x0,_0x36b95c(_0x3bd047[_0x45a558([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45a558([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45a558([0x6c,0x6f,0x77])}),_0x28fb44[_0x45a558([0x74,0x68,0x65,0x6e])](()=>{_0x2073da||_0xffd810(_0x45a558([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5062c1(){return _0x4599d6[_0x45a558([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45a558([0x76,0x69,0x65,0x77])][_0x45a558([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45a558([0x61,0x75,0x74,0x6f]);}function _0x41d5c9(){_0x4599d6[_0x45a558([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45a558([0x76,0x69,0x65,0x77])][_0x45a558([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45a558([0x61,0x75,0x74,0x6f]);}}function _0x131821(_0x42f639){const _0x1a5b8d=[new window[(_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7704=>setTimeout(_0x4b7704,0x47abbbca^_0x404c18)),_0x28fb44[_0x45a558([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17088d=>{let _0x40264d=0x0;_0x4599d6[_0x45a558([0x6d,0x6f,0x64,0x65,0x6c])][_0x45a558([0x6f,0x6e])](_0x45a558([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x190ea9,_0x377307)=>{_0x377307[0x0][_0x45a558([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40264d++,_0x40264d==(0x47a284fe^_0x404c18)&&(_0x17088d(),_0x190ea9[_0x45a558([0x6f,0x66,0x66])]());});}))];return window[_0x45a558([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45a558([0x72,0x61,0x63,0x65])](_0x1a5b8d)[_0x45a558([0x74,0x68,0x65,0x6e])](()=>_0x42f639);}async function _0x99e313(){await _0x28fb44,_0x4599d6[_0x45a558([0x6d,0x6f,0x64,0x65,0x6c])][_0x45a558([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x134b7e,_0x4599d6[_0x45a558([0x6d,0x6f,0x64,0x65,0x6c])][_0x45a558([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x134b7e,_0x4599d6[_0x45a558([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45a558([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb0ed9b(_0x461ce3){const _0x56d6f7=_0x597fc7();_0x4599d6[_0x56d6f7]=_0x45a558([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x461ce3,_0x461ce3!=_0x45a558([0x56,0x61,0x6c,0x69,0x64])&&_0x99e313();}function _0x597fc7(){const _0x26c957=window[_0x45a558([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45a558([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45a558([0x6e,0x6f,0x77])]())[_0x45a558([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45a558([0x2e]),'');let _0xd5867b=_0x45a558([0x75]);for(let _0x4310b5=0x0;_0x4310b5<_0x26c957[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4310b5+=0x2){let _0x1d59dc=window[_0x45a558([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26c957[_0x45a558([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4310b5,_0x4310b5+0x2));_0x1d59dc>=_0x29384b[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d59dc-=_0x29384b[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd5867b+=_0x29384b[_0x1d59dc];}return _0xd5867b;}function _0x7f63d1(){const _0x5e9a35=_0x5b942b[_0x45a558([0x73,0x70,0x6c,0x69,0x74])](_0x45a558([0x2e]));if(0x3!=_0x5e9a35[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x498ad4(_0x5e9a35[0x1]);function _0x498ad4(_0x20a0c5){const _0x149505=_0x438df4(_0x20a0c5);return _0x149505&&_0x4aa2f8()?_0x149505:null;function _0x4aa2f8(){const _0x1096c0=_0x149505[_0x45a558([0x6a,0x74,0x69])],_0x32dbf1=window[_0x45a558([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1096c0[_0x45a558([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1096c0[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x383ea4={..._0x149505,[_0x45a558([0x6a,0x74,0x69])]:_0x1096c0[_0x45a558([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1096c0[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x383ea4[_0x45a558([0x76,0x63])],_0x1208c6(_0x383ea4)==_0x32dbf1;}}}async function _0x177735(){let _0x47f608=!0x0;try{const _0xa2a35d=_0x5b942b[_0x45a558([0x73,0x70,0x6c,0x69,0x74])](_0x45a558([0x2e])),[_0x4310d4,_0x41766d,_0x3f195f]=_0xa2a35d;return _0x4726b7(_0x4310d4),await _0x250b5e(_0x4310d4,_0x41766d,_0x3f195f),_0x47f608;}catch{return!0x1;}function _0x4726b7(_0x3aecac){const _0x3e48de=_0x438df4(_0x3aecac);_0x3e48de&&_0x3e48de[_0x45a558([0x61,0x6c,0x67])]==_0x45a558([0x45,0x53,0x32,0x35,0x36])||(_0x47f608=!0x1);}async function _0x250b5e(_0x41e511,_0x609283,_0x61be47){const _0x1c130f=window[_0x45a558([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45a558([0x66,0x72,0x6f,0x6d])](_0x38c79e(_0x61be47),_0x3c78c7=>_0x3c78c7[_0x45a558([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43728d=new window[(_0x45a558([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45a558([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41e511+_0x45a558([0x2e])+_0x609283),_0x2aafcb=window[_0x45a558([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45a558([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2aafcb)return;const _0x52a654=await _0x2aafcb[_0x45a558([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45a558([0x6a,0x77,0x6b]),_0x30f343,{[_0x45a558([0x6e,0x61,0x6d,0x65])]:_0x45a558([0x45,0x43,0x44,0x53,0x41]),[_0x45a558([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45a558([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45a558([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2aafcb[_0x45a558([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45a558([0x6e,0x61,0x6d,0x65])]:_0x45a558([0x45,0x43,0x44,0x53,0x41]),[_0x45a558([0x68,0x61,0x73,0x68])]:{[_0x45a558([0x6e,0x61,0x6d,0x65])]:_0x45a558([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52a654,_0x1c130f,_0x43728d)||(_0x47f608=!0x1);}}function _0x438df4(_0x437219){return _0x437219[_0x45a558([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45a558([0x65,0x79]))?JSON[_0x45a558([0x70,0x61,0x72,0x73,0x65])](_0x38c79e(_0x437219)):null;}function _0x38c79e(_0x159ba3){return window[_0x45a558([0x61,0x74,0x6f,0x62])](_0x159ba3[_0x45a558([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45a558([0x2b]))[_0x45a558([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45a558([0x2f])));}function _0x1208c6(_0x4422cb){let _0xac705c=0x1505;function _0x3ff5d0(_0x45efb4){for(let _0x5388ce=0x0;_0x5388ce<_0x45efb4[_0x45a558([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5388ce++){const _0x2920f7=_0x45efb4[_0x45a558([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5388ce);_0xac705c=(_0xac705c<<0x5)+_0xac705c+_0x2920f7,_0xac705c&=_0xac705c;}}function _0x220d04(_0x191c2a){Array[_0x45a558([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x191c2a)?_0x191c2a[_0x45a558([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x220d04):_0x191c2a&&typeof _0x191c2a==_0x45a558([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45a558([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x191c2a)[_0x45a558([0x73,0x6f,0x72,0x74])]()[_0x45a558([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30b113,_0x4597f1])=>{_0x3ff5d0(_0x30b113),_0x220d04(_0x4597f1);}):_0x3ff5d0(window[_0x45a558([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x191c2a));}return _0x220d04(_0x4422cb),_0xac705c>>>0x0;}function _0x392b61(_0x172db9){return _0x172db9[_0x45a558([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45a558([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45a558([0x30]));}function _0x1692bf(_0x366fd0){return _0x366fd0[_0x45a558([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45a558([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45a558([0x6a,0x6f,0x69,0x6e])]('');}function _0x134b7e(){}function _0x45a558(_0xdd7b83){return _0xdd7b83['map'](_0x1c2dab=>String['fromCharCode'](_0x1c2dab))['join']('');}_0xb0ed9b(await _0x4639ef());}(this);}['_moveSelectionToFootnoteDefinition'](_0x514d48){const {plugins:_0x294d5d,editing:_0x5b6aa5,model:_0x3b1d83}=this['editor'],_0x429276=_0x294d5d['get'](_0x131dd8)['getFootnote'](_0x514d48);return!!_0x429276&&(_0x3b1d83['change'](_0x1aadb9=>{_0x1aadb9['setSelection'](_0x1aadb9['createPositionAt'](_0x429276['definition'],'end'));}),_0x5b6aa5['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd1c567){const {plugins:_0x17de9b,editing:_0xb124a8,model:_0x41434a}=this['editor'],_0x3868e9=_0x17de9b['get'](_0x131dd8)['getFootnote'](_0xd1c567);return!!_0x3868e9&&(_0x41434a['change'](_0x4c5635=>{_0x4c5635['setSelection'](_0x3868e9['reference'],'on');}),_0xb124a8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x41ea62}=this['editor']['model'],_0x2f7388=this['editor']['config']['get']('footnotes.multiBlock');_0x41ea62['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x41ea62['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x41ea62['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2f7388?_0x41ea62['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x41ea62['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x41ea62['addChildCheck'](_0x34255d=>{for(const _0xb1d750 of _0x34255d)if('footnoteDefinition'===_0xb1d750['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x59b28b}=this,{conversion:_0x20f65d,editing:_0x34fd97}=_0x59b28b,{t:t}=_0x59b28b['locale'];_0x20f65d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x257910,{writer:_0x2fdc44,consumable:_0x391238})=>{const _0x1f5dfa=_0x257910['getChild'](0x0);if(!_0x1f5dfa||!_0x1f5dfa['is']('element','a'))return null;const _0x3894c3=_0x1f5dfa['getAttribute']('href')||'';if(!_0x3894c3['startsWith']('#'))return null;const _0xbbf3e=_0x3894c3['replace'](/^#/,'');if(!_0xbbf3e)return null;_0x391238['consume'](_0x1f5dfa,{'name':!0x0,'attributes':['href']});for(const {item:_0x4d6ad2}of _0x34fd97['view']['createRangeIn'](_0x1f5dfa))_0x4d6ad2['is']('$textProxy')?_0x391238['consume'](_0x4d6ad2['textNode'],{'name':!0x0}):_0x4d6ad2['is']('element')&&_0x391238['consume'](_0x4d6ad2,{'name':!0x0});return _0x2fdc44['createElement']('footnoteRef',{'footnoteId':_0xbbf3e});}}),_0x20f65d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2bfe56,{writer:_0x3c02ea})=>D(_0x2bfe56,_0x3c02ea)}),_0x20f65d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25946b,{writer:_0x5b969e})=>{const _0xede677=_0x25946b['getAttribute']('footnoteCounter');return _0xbb7b(D(_0x25946b,_0x5b969e),_0x5b969e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xede677)});}});}['_defineDefinitionsConverters'](){const {editor:_0x6d301c}=this,{t:t}=_0x6d301c['locale'],{conversion:_0x1e7c1a}=_0x6d301c;_0x1e7c1a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1e7c1a['for']('upcast')['add'](_0x21169b=>{_0x21169b['on']('element:ol',(_0x4a9796,_0x1c91bd,_0x3e8dd7)=>{const _0x4d9011=_0x1c91bd['viewItem'];if(!_0x4d9011['hasClass']('footnotes-list')||!_0x1c91bd['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3e8dd7['consumable']['consume'](_0x4d9011,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3b705f,modelCursor:_0x3a07a5}=_0x3e8dd7['convertChildren'](_0x1c91bd['viewItem'],_0x1c91bd['modelCursor']);_0x1c91bd['modelRange']=_0x3b705f,_0x1c91bd['modelCursor']=_0x3a07a5;}),_0x21169b['on']('element:hr',(_0x45d480,_0x5d8071,_0x2782f6)=>{const _0x288187=_0x5d8071['viewItem'];_0x288187['hasClass']('footnotes-divider')&&_0x5d8071['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2782f6['consumable']['consume'](_0x288187,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1e7c1a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x6d7994,{writer:_0x166550})=>v(_0x166550)}),_0x1e7c1a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38e4d2,{writer:_0x1947a7})=>{const _0x58cbbb=v(_0x1947a7,{'data-footnotes-list-label':t('Footnotes')}),_0x3eceed=_0xbb7b(_0x58cbbb,_0x1947a7,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1947a7['setCustomProperty']('footnotesDefinitions',!0x0,_0x3eceed),_0x3eceed;}});}['_defineDefinitionConverters'](){const {editor:_0x253b2b}=this,{conversion:_0x24e820,locale:_0x3ffb62}=_0x253b2b,_0x3c7583=_0x253b2b['config']['get']('footnotes.multiBlock');_0x24e820['for']('upcast')['add'](_0x1b9a70=>{_0x1b9a70['on']('element:li',(_0x404ed1,_0x3443a7,_0x327fbb)=>{const _0x45740a=_0x3443a7['viewItem'];if(!_0x45740a['hasClass']('footnote-definition')||!_0x45740a['getAttribute']('id'))return;const _0x197f66=_0x45740a['parent'];if(!_0x197f66['is']('element','ol')||!_0x197f66['hasClass']('footnotes-list'))return;if(!_0x327fbb['consumable']['test'](_0x45740a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2365f4=_0x327fbb['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x45740a['getAttribute']('id')});if(!_0x327fbb['safeInsert'](_0x2365f4,_0x3443a7['modelCursor']))return;_0x327fbb['consumable']['consume'](_0x45740a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x12fae6=Array['from'](_0x45740a['getChildren']())['find'](_0x2a2fae=>_0x2a2fae['is']('element')&&_0x2a2fae['hasClass']('footnote-content'));for(const _0x58d745 of _0x45740a['getChildren']())_0x58d745['is']('element')&&(_0x327fbb['consumable']['consume'](_0x58d745,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x327fbb['consumable']['consume'](_0x58d745,{'name':!0x0,'classes':'footnote-content'}));if(_0x12fae6){if(_0x3c7583)_0x327fbb['convertChildren'](_0x12fae6,_0x2365f4);else{const _0x53ecce=_0x327fbb['writer']['createElement']('footnoteInlineContent');_0x327fbb['writer']['insert'](_0x53ecce,_0x2365f4),_0x327fbb['convertChildren'](_0x12fae6,_0x53ecce);}}_0x327fbb['updateConversionResult'](_0x2365f4,_0x3443a7);});}),_0x24e820['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d940f,{writer:_0x586a26})=>b(_0x2d940f,_0x586a26,_0x3ffb62,{'dataPipeline':!0x0})}),_0x24e820['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x225d98,{writer:_0x462904})=>b(_0x225d98,_0x462904,_0x3ffb62)});}['_defineBogusParagraphConverters'](){const {editor:_0x2d1984}=this,{conversion:_0x4fcc4f}=_0x2d1984;_0x2d1984['config']['get']('footnotes.multiBlock')?(_0x4fcc4f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4fcc4f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2d1984['model']['document'],'change:data',()=>{!function(_0x1146f2,_0x5c44af){const _0x2d1f8c=_0x1146f2['document']['differ'],_0x1539fc=new Set();for(const _0x54e929 of _0x2d1f8c['getChanges']()){const _0x29ecac='attribute'==_0x54e929['type']?_0x54e929['range']['start']['parent']:_0x54e929['position']['parent'];_0x29ecac['is']('element','footnoteDefinition')&&_0x1539fc['add'](_0x29ecac);}for(const _0x470da4 of _0x1539fc['values']()){const _0x1e59e5=Array['from'](_0x470da4['getChildren']())['filter'](_0x57a617=>g(_0x57a617,_0x5c44af['mapper']));for(const _0x13fe96 of _0x1e59e5)_0x5c44af['reconvertItem'](_0x13fe96);}}(_0x2d1984['model'],_0x2d1984['editing']);})):(_0x4fcc4f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4fcc4f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5989db,{writer:_0x1e16bd})=>{const _0x310d74=_0x1e16bd['createContainerElement']('span');return _0x1e16bd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x310d74),_0x310d74;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3e00ea}=this,{editing:_0x169d1e,t:t}=_0x3e00ea,_0x2df9d7=_0x3e00ea['model']['document']['selection'];_0x3e00ea['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3e00ea['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x169d1e['view']['document'],'enter',(_0xe9c214,_0x342e5d)=>{const _0x2d3681=function(_0x21dcec){const _0x202bf2=_0x21dcec['getSelectedElement']();if(_0x202bf2?.['is']('element','footnoteRef'))return _0x202bf2;return null;}(_0x2df9d7);if(_0x2d3681){const _0x24fe92=_0x2d3681['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x24fe92),_0x342e5d['preventDefault'](),_0xe9c214['stop']();}},{'context':_0x1584e5});}['_defineClickHandlers'](){const {editor:_0xa4e70b}=this,{editing:_0x78c9d1}=_0xa4e70b;_0xa4e70b['editing']['view']['addObserver'](_0xdd4942),_0xa4e70b['editing']['view']['addObserver'](_0x1b3d36);let _0x20398a=!0x1;this['listenTo'](_0x78c9d1['view']['document'],'pointerdown',(_0x41f261,_0x450f44)=>{const {target:_0x4a16e4}=_0x450f44,_0x40a68c=_0x78c9d1['view']['document']['selection'];_0x20398a=!!(_0x4a16e4?.['is']('element','a')&&_0x4a16e4['parent']?.['is']('element','sup')&&_0x4a16e4['parent']['hasClass']('footnote'))&&_0x40a68c['getSelectedElement']()===_0x4a16e4['parent'];},{'priority':'high'}),this['listenTo'](_0x78c9d1['view']['document'],'click',(_0x1a3c22,_0x30a7ef)=>{const {target:_0x38b6fb}=_0x30a7ef;if(!_0x38b6fb?.['is']('element','a'))return;if(_0x38b6fb['parent']?.['is']('element','sup')&&_0x38b6fb['parent']['hasClass']('footnote')&&!_0x20398a)return void _0x30a7ef['preventDefault']();let _0x5bf084=_0x38b6fb['getAttribute']('href');if(!_0x5bf084?.['startsWith']('#'))return;_0x5bf084=_0x5bf084['slice'](0x1);let _0x17e904=!0x1;(_0x5bf084['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5bf084['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5bf084))&&(_0x17e904=!0x0),_0x17e904&&(_0x30a7ef['preventDefault'](),_0x1a3c22['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xe7d800}={}){return(_0x5103c9,{writer:_0x4d2f94})=>{if(!p(_0x5103c9))return null;if(!_0xe7d800)return _0x4d2f94['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x587ff4=_0x4d2f94['createContainerElement']('p');return _0x4d2f94['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x587ff4),_0x587ff4;};}function p(_0x1dd390){const {parent:_0x329d20}=_0x1dd390;if(!_0x329d20?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x329d20['childCount'])return!0x1;for(const _0x1899bb of _0x1dd390['getAttributeKeys']())if(!_0x1899bb['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1899bb)return!0x1;return!0x0;}function g(_0x3a1a7e,_0x4eb388){if(!_0x3a1a7e['is']('element','paragraph'))return!0x1;const _0x572095=_0x4eb388['toViewElement'](_0x3a1a7e);return!!_0x572095&&p(_0x3a1a7e)!==_0x572095['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x341b9c){return _0x1584e5(_0x341b9c)&&_0x341b9c['is']('containerElement')&&!!_0x341b9c['getCustomProperty']('footnotesDefinitions');}function v(_0x4c458f,_0x12610b={}){const _0x23bba6=_0x4c458f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x11df36=_0x4c458f['createContainerElement']('ol',{'class':'footnotes-list'},_0x4c458f['createSlot']());return _0x4c458f['createContainerElement']('div',{'class':'footnotes',..._0x12610b},[_0x23bba6,_0x11df36]);}function D(_0x10c8cd,_0x182894){const _0x59819a=_0x10c8cd['getAttribute']('footnoteId'),_0x306e77=_0x10c8cd['getAttribute']('footnoteCounter'),_0x1d70f6=_0x182894['createUIElement']('a',{'href':'#'+_0x59819a},function(_0x3fe945){const _0x2a1fba=this['toDomElement'](_0x3fe945);return _0x2a1fba['textContent']=_0x306e77,_0x2a1fba;}),_0x4035eb=_0x182894['createContainerElement']('sup',{'id':'ref-'+_0x59819a,'class':'footnote'},[_0x1d70f6]);return _0x4035eb['getFillerOffset']=()=>null,_0x4035eb;}function b(_0x37ceb4,_0x5c5e14,_0x5ad746,{dataPipeline:_0x40498d}={}){const {t:t}=_0x5ad746,_0x81f756=_0x37ceb4['getAttribute']('footnoteId'),_0x333610=_0x5c5e14['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x81f756},function(_0x2f2563){const _0x5db2c4=this['toDomElement'](_0x2f2563);return _0x5db2c4['innerText']='^',_0x5db2c4;}),_0x40a7cf=_0x40498d?_0x5c5e14['createContainerElement']('div',{'class':'footnote-content'}):_0x5b1148(_0x5c5e14['createEditableElement']('div',{'class':'footnote-content'}),_0x5c5e14,{'label':t('Footnote\x20content.')});return _0x5c5e14['insert'](_0x5c5e14['createPositionAt'](_0x40a7cf,0x0),_0x5c5e14['createSlot']()),_0x5c5e14['createContainerElement']('li',{'class':'footnote-definition','id':_0x81f756},[_0x333610,_0x40a7cf]);}