@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251109.0 → 0.0.0-nightly-20251111.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.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -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={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},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")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450: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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,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}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},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")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},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:()=>Tt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=181]})(t,e)}function c(){const t=["_getElementKey","20lKEDzt","insert","values","$text","delete","createRangeOn","getChanges","elementName","add","name","328614wbrMkL","6UUylUh","_trackedElements","root","element","461630fPwkit","clear","position","$graveyard","get","27JPvwTY","724155jCwdkn","type","_model","1034848aiVdMp","remove","nodeAfter","attributes","reset","_elementName","set","from","996666OvGXVd","rootName","42986vrbuCV","189DRSmJx","getElementKey","length","getItems","slice","230211yrIFYb","has","push","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(783860===-parseInt(e(197))/1*(parseInt(e(219))/2)+parseInt(e(203))/3+-parseInt(e(208))/4*(parseInt(e(184))/5)+parseInt(e(218))/6*(parseInt(e(198))/7)+parseInt(e(187))/8+-parseInt(e(183))/9*(parseInt(e(223))/10)+parseInt(e(195))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(186)];[r(192)];[r(207)];[r(220)]=new Map;constructor(t,e){const o=r;this[o(186)]=t,this[o(192)]=e[o(215)],this[o(207)]=e[o(199)]}[r(191)](){const t=r;this[t(220)][t(224)]()}[r(214)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(209)===i[e(185)]&&e(211)!==i[e(217)]&&i[e(225)][e(189)]){const t=this[e(186)][e(213)](i[e(225)][e(189)]);for(const o of t[e(201)]()){if(!o.is(e(222),this[e(192)]))continue;const t=this[e(207)](o);n[e(204)](t)||n[e(193)](t,[]),n[e(182)](t)[e(205)](o)}}if(e(188)===i[e(185)]&&i[e(217)]===this[e(192)]){const t=this[e(207)]({getAttribute:t=>i[e(190)][e(182)](t)});o[e(216)](t)}}for(const[t,n]of this[e(220)])e(181)===n[e(221)][e(196)]&&o[e(216)](t);for(const t of o)this[e(220)][e(212)](t);for(const[t,o]of n)this[e(220)][e(193)](t,o[o[e(200)]-1]);const i=new Set;for(const[t,s]of n)o[e(204)](t)&&(i[e(216)](s[0]),s[e(200)]>1?n[e(193)](t,s[e(202)](1)):n[e(212)](t),o[e(212)](t));return{removed:Array[e(194)](o),inserted:Array[e(194)](n[e(210)]())[e(206)](),moved:Array[e(194)](i)}}}const f=d;function u(){const t=["move","1013285VLVBJa","findIndex","map","footnoteRef","_handleMovedFootnoteReference","_handleInsertedFootnoteReference","footnoteDefinition","listenTo","createRangeIn","before","getFootnotesFormatter","registerPostFixer","find","_handleFootnotesDefinitionsObjectChanges","pluginName","201479wJhegJ","footnoteId","length","934004CDKyeG","init","_handleRemoveFootnoteReferenceById","70mzxCto","rootName","3GDTdRw","compareWith","_sortFootnoteDefinitions","createElement","setFootnoteFormatter","add","footnotes.multiBlock","_footnotes","getAttribute","has","getFootnotesDefinitionsObjectElement","_ensureFootnotesReferencesHaveProperOrder","getFootnotes","getFootnote","getChildren","from","enqueueChange","256942upcxCt","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsTracker","getChanges","_handleFootnoteReferencesChanges","isOfficialPlugin","6ZTmRFp","FootnotesTracker","_footnotesDefinitions","footnoteInlineContent","differ","37143sdrvkO","653952DXZGrm","set","4753463BAYeEp","footnoteCounter","min","$graveyard","childCount","insert","setAttribute","push","document","model","config","reference","_insertEmptyFootnotesDefinitionsContainer","editor","high","_updateFootnoteRefCounter","low","footnotesDefinitions","_handleFootnoteDefinitionsChanges","_updateFootnotesCounters","indexOf","splice","createPositionAt","remove","some","reset","singleton","createRangeOn","_handleFootnotesDefinitionsObjectSync","getRootNames","change:data","after","_footnoteRefsTracker","definition","paragraph","append","isEqual","createPositionBefore","unshift","parent","get","_footnoteFormatter","2xxCtMU","end","root","isPremiumPlugin"];return(u=function(){return t})()}function d(t,e){const o=u();return(d=function(t,e){return o[t-=426]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(123527===-parseInt(e(450))/1*(-parseInt(e(430))/2)+-parseInt(e(458))/3*(parseInt(e(453))/4)+parseInt(e(435))/5*(-parseInt(e(482))/6)+parseInt(e(475))/7+-parseInt(e(488))/8+parseInt(e(487))/9*(-parseInt(e(456))/10)+parseInt(e(490))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[f(465)]=[];[f(484)]=null;[f(429)]=null;[f(476)];[f(522)];[f(478)];static get[f(449)](){return f(483)}static get[f(481)](){return!0}static get[f(433)](){return!0}constructor(t){const e=f;super(t),this[e(476)]=new l(this[e(503)][e(499)],{elementName:e(507),getElementKey:()=>e(516)}),this[e(522)]=new l(this[e(503)][e(499)],{elementName:e(438),getElementKey:t=>t[e(466)](e(451))}),this[e(478)]=new l(this[e(503)][e(499)],{elementName:e(441),getElementKey:t=>t[e(466)](e(451))})}[f(454)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(498)][t(446)](e=>{const n=t,i=o[n(498)][n(486)][n(479)]();let s=!1;return this[n(448)](e,i)&&(s=!0),this[n(508)](e,i)&&(s=!0),this[n(480)](e,i)&&(s=!0),this[n(469)](e)&&(s=!0),this[n(518)](e)&&(s=!0),this[n(460)](e)&&(s=!0),s}),this[t(442)](o[t(498)],t(520),()=>{const e=t;o[e(474)]({isUndoable:!1},t=>{this[e(477)](t)})},{priority:t(506)}),this[t(442)](n,t(489),()=>{const e=t;this[e(465)]=[],this[e(476)][e(515)](),this[e(522)][e(515)](),this[e(478)][e(515)]()},{priority:t(504)})}[f(468)](){return this[f(484)]}[f(471)](t){const e=f;return this[e(465)][e(447)](e=>e.id===t)||null}[f(470)](){const t=f;return Array[t(473)](this[t(465)])}[f(445)](){return this[f(429)]}[f(462)](t){this[f(429)]=t}[f(509)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(465)][o(452)];i++)this[o(505)](t,i)&&(n=!0);return n}[f(502)](t,e){const o=f,n=t[o(461)](o(507),{});return t[o(525)](n,e),this[o(484)]=n,n}[f(477)](t){const e=f;if(!this[e(465)][e(452)]||this[e(484)])return;const o=this[e(465)][0][e(501)][e(432)],n=this[e(502)](t,o);for(const o of this[e(465)])o[e(523)][e(427)]||t[e(495)](o[e(523)],n,e(431));this[e(509)](t)}[f(448)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(476)][o(479)](e);if(r[o(452)]&&(this[o(484)]=r[0]),i[o(452)])if(i[o(452)]>1||this[o(484)]&&i[o(514)](t=>t!==this[o(484)])){const e=t[o(461)](o(507),{}),s=[];this[o(484)]&&s[o(497)](this[o(484)]),s[o(497)](...i),t[o(495)](e,s[0],o(444));for(const n of s)t[o(434)](t[o(443)](n),t[o(512)](e,o(431))),t[o(513)](n);this[o(484)]=e,this[o(509)](t),n=!0}else this[o(484)]=i[0];if(s[o(452)]&&o(493)===this[o(484)]?.[o(432)][o(457)]){for(const e of this[o(465)])t[o(513)](e[o(501)]),n=!0;this[o(465)]=[],this[o(484)]=null}return n}[f(508)](t,e){const o=f;let n=!1;const i=this[o(503)][o(500)][o(428)](o(464)),{inserted:s,moved:r}=this[o(478)][o(479)](e);for(const e of[...r,...s]){const s=e[o(466)](o(451)),r=this[o(471)](s);r&&(r[o(523)]=e),h(t,i,e)&&(n=!0)}return n}[f(480)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(522)][o(479)](e);for(const e of i)this[o(455)](t,e)&&(n=!0);for(const e of s)this[o(440)](t,e)&&(n=!0);for(const e of r)this[o(439)](t,e)&&(n=!0);return n}[f(518)](t){const e=f;if(!this[e(484)])return!1;let o=!1;if(this[e(484)][e(494)]!==this[e(465)][e(452)]){const n=[];for(const t of this[e(484)][e(472)]()){const i=t[e(466)](e(451));this[e(471)](i)||(n[e(426)](t),o=!0)}for(const o of n)t[e(513)](o)}const n=new Set,i=[];for(const t of this[e(484)][e(472)]()){const s=t[e(466)](e(451));n[e(467)](s)?(i[e(426)](t),o=!0):n[e(463)](s)}for(const o of i)t[e(513)](o);return this[e(484)][e(494)]||(t[e(513)](this[e(484)]),this[e(484)]=null,o=!0),o}[f(440)](t,e){const o=f;if(this[o(465)][o(447)](t=>t[o(501)]===e))return!1;let n=!1;const i=e[o(466)](o(451)),s=this[o(465)][o(436)](t=>t.id===i);-1!==s&&(t[o(513)](this[o(465)][s][o(501)]),this[o(465)][o(511)](s,1),n=!0);let r=this[o(484)]?function(t,e){const n=o;for(const o of t[n(472)]())if(o[n(466)](n(451))===e)return o;return null}(this[o(484)],i):null;r||(r=t[o(461)](o(441),{footnoteId:i}),this[o(484)]&&(t[o(495)](r,this[o(484)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(499)],this[o(465)],e);this[o(465)][o(511)](c,0,a);let l=c;return-1!==s&&(l=Math[o(492)](c,s)),this[o(509)](t,l)&&(n=!0),n}[f(455)](t,e){const o=f,n=this[o(465)][o(436)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(465)][n];return o(493)!==s[o(523)][o(432)][o(457)]&&(t[o(513)](s[o(523)]),i=!0),this[o(465)][o(511)](n,1),this[o(509)](t,n)&&(i=!0),i}[f(439)](t,e){const o=f,n=e[o(466)](o(451)),i=this[o(465)][o(436)](t=>t.id===n),s=this[o(465)][i];let r=!1;s[o(501)]=e,this[o(465)][o(511)](i,1);const a=m(this[o(503)][o(499)],this[o(465)],e);return this[o(465)][o(511)](a,0,s),this[o(509)](t,Math[o(492)](i,a))&&(r=!0),r}[f(505)](t,e){const o=f;if(!this[o(484)])return!1;const n=this[o(465)][e];let i;return i=this[o(429)]?this[o(429)]({footnote:n,container:this[o(484)],digits:String(this[o(465)][o(452)])[o(452)],value:e+1}):String(e+1),n[o(501)][o(466)](o(491))!=i&&(t[o(496)](o(491),i,n[o(501)]),!0)}[f(460)](t){const e=f;if(!this[e(484)]||this[e(465)][e(452)]<2)return!1;if(function(t,o){const n=e;if(t[n(452)]!==o[n(452)])return!1;for(let e=0;e<t[n(452)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(465)][e(437)](t=>t.id),Array[e(473)](this[e(484)][e(472)]())[e(437)](t=>t[e(466)](e(451)))))return!1;let o=!1;for(let n=0;n<this[e(465)][e(452)];n++){const i=this[e(465)][n],s=t[e(527)](i[e(523)]),r=t[e(512)](this[e(484)],n);s[e(526)](r)||(t[e(434)](t[e(517)](i[e(523)]),r),o=!0)}return o}[f(469)](t){const e=f;if(!this[e(465)][e(452)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(465)][e(452)]-1;i++){const s=this[e(465)][i],r=this[e(465)][i+1],a=o[e(527)](s[e(501)]),c=o[e(527)](r[e(501)]);e(521)===a[e(459)](c)&&(this[e(439)](t,s[e(501)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(494)])return!1;const i=n(e?524:485);return t[n(495)](t[n(461)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(452)])return 0;const i=t[n(527)](o);for(let o=0;o<e[n(452)];o++){const s=e[o],r=t[n(527)](s[n(501)]);if(n(444)===i[n(459)](r))return o}const s=o[n(432)];let r=-1;for(let t=e[n(452)]-1;t>=0;t--)if(e[t][n(501)][n(432)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(498)][n(519)](),c=a[n(510)](s[n(457)]),l=a[c+1];if(l)for(let t=0;t<e[n(452)];t++)if(e[t][n(501)][n(432)][n(457)]===l)return t;return e[n(452)]}function g(){const t=["isBlock","getItems","isEnabled","test","insertObject","33368oKMreG","editor","isObject","1202124XnBvBs","change","string","length","1340624AJASkJ","_getPositionToInsertFootnote","document","getFirstRange","364hNXhwF","createElement","model","footnoteRef","FootnotesEditing","selection","3163968wzOlRf","footnoteId","execute","refresh","_moveSelectionToFootnoteDefinition","checkChild","plugins","insert-footnote-command-executed-with-invalid-id","207274bGrEVU","6476410gpCufT","796794KSBoHV","get","end"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=227]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(690911===parseInt(e(253))/1+parseInt(e(236))/2+-parseInt(e(238))/3+parseInt(e(228))/4+-parseInt(e(237))/5+-parseInt(e(249))/6+-parseInt(e(257))/7*(-parseInt(e(246))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(231)](){const t=w,e=this[t(247)][t(259)][t(255)][t(227)],o=this[t(254)](e);this[t(243)]=!!o}[w(230)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(255)],r=this[e(254)](s);if(!r)return;const a=o[e(234)][e(239)](e(261)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(252)]>0&&!/\s/[o(244)](t)&&!/^\d/[o(244)](t)}(c)?(0,i.logWarning)(e(235)):(n[e(250)](t=>{const o=e,i=t[o(258)](o(260),{footnoteId:c});n[o(245)](i,r,null)}),a[e(232)](c))}[w(254)](t){const e=w,{model:o}=this[e(247)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(242)]())if(n[e(241)](t)||n[e(248)](t))return null;const s=i[e(240)];return n[e(233)](s,e(260))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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 p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(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=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(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])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]: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=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](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:1762646400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=271]})(t,e)}function _(){const t=["listenTo","isOfficialPlugin","application/ckeditor5-footnotes","isPremiumPlugin","requires","getFirstRange","footnoteId","get","2712YXTOge","clipboardInput","flatMap","footnoteRef","stringify","remove","190crMffc","selection","footnoteDefinition","parse","insert","includes","_handleCopyFootnotesDefinitions","toView","258147Qdjyzs","dataTransfer","data","document","7QkuiUL","_defineClipboardIntegration","toModel","getData","method","element","getSelectedBlocks","FootnotesClipboard","append","reduce","49260gKMKbt","add","getFootnote","length","getFootnotesDefinitionsObjectElement","toData","getFootnotes","getAttribute","root","228xCGQgM","content","footnotesDefinitions","462KXjhJH","drop","contentInsertion","entries","sourceEditorId","find","5937YQkRKI","setAttribute","getRanges","editor","createElement","definition","3406568vGrmOd","create","change","htmlProcessor","15244838TPybAO","editing","outputTransformation","11597WjGput","187451ujuPyK","_handlePasteFootnotesDefinitions","end","push","26FqFIJx","8XOhsQb","_insertEmptyFootnotesDefinitionsContainer","init","setData","from","createRangeIn","pluginName"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(678099===parseInt(e(330))/1*(-parseInt(e(336))/2)+-parseInt(e(317))/3*(parseInt(e(271))/4)+parseInt(e(299))/5*(-parseInt(e(311))/6)+-parseInt(e(289))/7*(-parseInt(e(323))/8)+parseInt(e(285))/9*(parseInt(e(277))/10)+parseInt(e(331))/11*(-parseInt(e(308))/12)+parseInt(e(335))/13*(parseInt(e(327))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[S(342)](){return S(296)}static get[S(347)](){return[v,P.ClipboardPipeline]}static get[S(344)](){return!0}static get[S(346)](){return!0}[S(338)](){this[S(290)]()}[S(290)](){const t=S;this[t(283)](),this[t(332)]()}[S(283)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(350)](P.ClipboardPipeline),s=o[t(350)](p);this[t(343)](i,t(329),(o,i)=>{const r=t,a=L(n[r(341)](i[r(309)]));if(!a[r(302)])return;const c=s[r(305)](),l=a[r(298)]((t,o)=>{const n=r,i=c[n(316)](t=>t.id===o);if(i){const o=e[n(287)][n(284)](i[n(322)],{isClipboardPipeline:!0}),s=e[n(287)][n(326)][n(304)](o);t[i.id]=s}return t},Object[r(324)](null));i[r(286)][r(339)](r(345),JSON[r(275)](l))})}[S(332)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(328)],r=n[t(350)](P.ClipboardPipeline),a=n[t(350)](p);let c=null;this[t(343)](s[t(288)],t(272),(e,o)=>{const n=t,i=o[n(286)][n(292)](n(345));c=i?JSON[n(280)](i):null}),this[t(343)](r,t(313),(n,s)=>{const r=t,l=s[r(315)]===this[r(320)].id;l&&r(312)===s[r(293)]||o[r(325)](t=>{const n=r;let f=a[n(303)]();const u=!!f&&Array[n(340)](o[n(288)][n(278)][n(295)]())[n(282)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(341)](e))n.is(o(294),o(310))&&i[o(334)](n);for(const e of i)t[o(276)](e)}(t,s[n(309)]),!c)return;const{selection:d}=o[n(288)],p=d[n(348)]()[n(307)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(341)](e))if(n.is(o(294),o(310)))return n;return null}(t,s[n(309)]),f||=a[n(337)](t,p));const h=Array[n(340)](d[n(319)]())[n(273)](L),m=function(t,e,o){const s=n,r=Object[s(324)](null);for(const{item:n}of t[s(341)](e))if(n.is(s(294),s(274))){const e=n[s(306)](s(349));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(318)](s(349),r[e],n)}return r}(t,s[n(309)],t=>{const e=n;return!l||!!a[e(301)](t)&&!h[e(282)](t)});for(const[o,i]of Object[n(314)](c)){const s=m[o]||o,r=t[n(321)](n(279),{footnoteId:s}),a=e[n(287)][n(326)][n(284)](i),c=e[n(287)][n(291)](a,r);t[n(297)](c,r),t[n(281)](r,f,n(333))}c=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(294),e(274))&&o[e(300)](n[e(306)](e(349)));return Array[e(340)](o)}var O=o(311),V=o(355),N=o(450),R=o.n(N),K=o(774),j=o.n(K),M=o(265),B=o.n(M),z=o(410),U=o.n(z),H=o(238),W=o.n(H),G=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=W();R()(G.A,J);G.A&&G.A.locals&&G.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",q(t,O.ButtonView)),e.add("menuBar:insertFootnote",q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Q;function Q(t,e){var o=Z();return(Q=function(t,e){return o[t-=292]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(832948===-parseInt(e(298))/1*(-parseInt(e(303))/2)+-parseInt(e(302))/3+parseInt(e(305))/4+parseInt(e(301))/5*(-parseInt(e(304))/6)+parseInt(e(292))/7*(-parseInt(e(299))/8)+-parseInt(e(300))/9+parseInt(e(294))/10*(parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Y(293)](){return Y(307)}static get[Y(295)](){return[v,D,X]}static get[Y(297)](){return!0}static get[Y(296)](){return!0}}function Z(){var t=["isOfficialPlugin","103KDqxla","5327816QSjrLa","13272606CYWiQq","8250645NPeXEf","220632rNFqaH","16342BeprMF","6fSTjtq","3827540SiXbgb","66HxEBZN","Footnotes","7jxiMJR","pluginName","4831390nExyEB","requires","isPremiumPlugin"];return(Z=function(){return t})()}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=113]})(t,e)}const et=tt;function ot(){const t=["426000eMTthA","lower-alpha","decimal","upper-latin","1830zjgYHs","2EhXqlY","2331666erUFhY","4912IbFfPd","upper-roman","2494917utpPDR","lower-roman","515842mzuYTd","32752DwWcyz","10RxFAgp","upper-alpha","decimal-leading-zero","lower-latin","5908155ANigfQ","77XYAwvw"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(262347===parseInt(e(119))/1*(-parseInt(e(125))/2)+-parseInt(e(114))/3+-parseInt(e(121))/4*(-parseInt(e(118))/5)+-parseInt(e(120))/6+parseInt(e(113))/7*(parseInt(e(126))/8)+parseInt(e(123))/9*(parseInt(e(127))/10)+parseInt(e(131))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(116),et(129),et(130),et(117),et(115),et(128),et(124),et(122)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=487]})(t,e)}function rt(){const t=["3aMwUxz","isEnabled","13GPdbLO","45978756IUGwXs","footnotesListStyle","9YkDgIV","getAttribute","5978929CnnHJb","716173oxagHn","includes","plugins","198751GACPVZ","execute","174nGHtXt","get","1517806yHgNay","model","4935whiqFx","getFootnotesDefinitionsObjectElement","629984LKpFWx","refresh","setAttribute","value","548oxEivB","_updateFootnotesCounters","change","10PvNEcl"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(775584===-parseInt(e(490))/1+parseInt(e(497))/2*(-parseInt(e(509))/3)+-parseInt(e(505))/4*(parseInt(e(499))/5)+-parseInt(e(495))/6*(parseInt(e(493))/7)+-parseInt(e(501))/8*(parseInt(e(487))/9)+parseInt(e(508))/10*(-parseInt(e(489))/11)+parseInt(e(512))/12*(parseInt(e(511))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(502)](){const t=it,{editor:e}=this,o=e[t(492)][t(496)](p)[t(500)]();this[t(510)]=!!o,this[t(504)]=o?.[t(488)](t(513))??null}[it(494)]({value:t}){const e=it,{editor:o}=this,n=o[e(492)][e(496)](p),i=n[e(500)]();i&&nt[e(491)](t)&&o[e(498)][e(507)](o=>{const s=e;o[s(503)](s(513),t,i),n[s(506)](o)})}}const ct=ft;function lt(){const t=["162995YGKTGT","3384Nvckrj","value","plugins","footnotesListStart","get","20SijPWn","12KqitTq","isInteger","1413313nttdca","260252Rdabky","1542249mTIKRr","isEnabled","_updateFootnotesCounters","10oPzEHt","707bMdnVE","240486xUiifP","execute","change","model","338064jrjGyc","3YQmMEr","getFootnotesDefinitionsObjectElement","refresh","getAttribute","setAttribute"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(170625===parseInt(e(146))/1+parseInt(e(136))/2*(-parseInt(e(121))/3)+-parseInt(e(132))/4*(parseInt(e(126))/5)+parseInt(e(142))/6+-parseInt(e(141))/7*(-parseInt(e(127))/8)+parseInt(e(137))/9*(parseInt(e(140))/10)+-parseInt(e(135))/11*(parseInt(e(133))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(123)](){const t=ct,{editor:e}=this,o=e[t(129)][t(131)](p)[t(122)]();this[t(138)]=!!o,this[t(128)]=o?.[t(124)](t(130))??null}[ct(143)]({value:t}){const e=ct,{editor:o}=this,n=o[e(129)][e(131)](p),i=n[e(122)]();i&&Number[e(134)](t)&&o[e(145)][e(144)](o=>{const s=e;o[s(125)](s(130),t,i),n[s(139)](o)})}}const dt=gt;!function(t){const e=gt,o=t();for(;;)try{if(364058===-parseInt(e(282))/1*(parseInt(e(271))/2)+-parseInt(e(330))/3+parseInt(e(341))/4+-parseInt(e(295))/5*(-parseInt(e(296))/6)+-parseInt(e(319))/7+-parseInt(e(346))/8+-parseInt(e(351))/9*(-parseInt(e(266))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class pt extends t.Plugin{static get[dt(290)](){return dt(263)}static get[dt(316)](){return[v,p]}static get[dt(257)](){return!0}static get[dt(339)](){return!0}[dt(278)](){const t=dt,{editor:e}=this;e[t(350)][t(332)](t(307),t(293)),e[t(350)][t(332)](t(343),1),e[t(262)][t(297)](t(258),new at(e)),e[t(262)][t(297)](t(261),new ut(e)),this[t(287)](),this[t(273)](),this[t(294)](),this[t(349)]()}[dt(287)](){const t=dt,{editor:e}=this,{schema:o}=e[t(331)];o[t(309)](t(313),{allowAttributes:[t(280),t(353)]})}[dt(273)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(289)](t(334))[t(297)](e=>{const o=t;e.on(o(267),(t,e,n)=>{const s=o,r=e[s(260)],a=e[s(311)]?.[s(264)];r[s(272)](s(259))&&a?.is(s(274),s(313))&&(function(t,e,o,n){const i=s;if(!n[i(279)](e,i(353)))return;let r=1;const a=o[i(276)][i(356)](t,{attributes:i(318)});if(a){const e=Number[i(321)](t[i(320)](i(318)),10);Number[i(265)](e)||(r=e)}!a&&e[i(277)](i(353))||o[i(285)][i(270)](i(353),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(279)](e,i(280)))return;let r=i(293),a=!1;if(o[i(276)][i(356)](t,{attributes:i(301)})){const e={1:i(293),a:i(344),A:i(336),i:i(310),I:i(354)}[t[i(320)](i(301))];e&&(r=e),a=!0}o[i(276)][i(356)](t,{styles:i(333)})&&(r=t[i(286)](i(333)),a=!0),!a&&e[i(277)](i(280))||o[i(285)][i(270)](i(280),r,e)}(r,a,n,i))})}),o[t(289)](t(306))[t(297)](e=>{const o=t;e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;null==r||1===r?n[i(285)][i(327)](i(318),s):n[i(285)][i(270)](i(318),String(r),s)}),e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;r&&i(293)!==r?n[i(285)][i(324)](i(333),r,s):n[i(285)][i(288)](i(333),s)})})}[dt(349)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(302)][t(328)](p),i=this[t(317)](),s=this[t(345)]();o[t(283)][t(299)](e=>{const r=t,a=o[r(283)][r(304)][r(340)]();let c=!1;for(const t of a){if(r(325)!==t[r(301)]||r(326)===t[r(269)])continue;const n=o[r(292)](t[r(300)][r(308)]);for(const t of n[r(322)]())t.is(r(274),r(313))&&(!t[r(277)](r(353))&&o[r(312)][r(279)](t,r(353))&&(e[r(270)](r(353),s,t),c=!0),!t[r(277)](r(280))&&o[r(312)][r(279)](t,r(280))&&(e[r(270)](r(280),i,t),c=!0))}return c&&n[r(323)](e),c})}[dt(294)](){const t=dt,{editor:e}=this;e[t(302)][t(328)](p)[t(298)](e=>this[t(357)](e))}[dt(317)](){const t=dt;return this[t(329)][t(350)][t(328)](t(307))}[dt(345)](){const t=dt;return this[t(329)][t(350)][t(328)](t(343))}[dt(357)]({container:t,value:e,digits:o}){const n=dt,i=t[n(320)](n(280)),s=t[n(320)](n(353)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(348):return function(t,e){const o=n;return String(t)[o(284)](e,"0")}(r,Math[n(314)](2,o));case n(344):case n(291):return mt(r,!1);case n(336):case n(342):return mt(r,!0);case n(310):return yt(r,!1);case n(354):return yt(r,!0);default:return String(r)}}}function ht(t,e){const o=dt,n=e[o(352)](t);return Array[o(275)](n[o(315)]())[o(335)](t=>t.is(o(274),"ol")&&t[o(272)](o(259)))}function mt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(347)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(355)]():n}function gt(t,e){const o=bt();return(gt=function(t,e){return o[t-=257]})(t,e)}const wt=[{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 yt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(305)]()}function bt(){const t=["FootnotesPropertiesEditing","parent","isNaN","90SOYHgW","element:ol","attribute:footnotesListStyle:footnotesDefinitions","name","setAttribute","136iTEsxz","hasClass","_defineConverters","element","from","consumable","hasAttribute","init","checkAttribute","footnotesListStyle","item","7283QFegtJ","document","padStart","writer","getStyle","_defineSchema","removeStyle","for","pluginName","lower-latin","createRangeOn","decimal","_defineFormatter","5fHcnGz","38322OtHpOm","add","setFootnoteFormatter","registerPostFixer","position","type","plugins","attribute:footnotesListStart:footnotesDefinitions","differ","toLowerCase","downcast","footnotes.footnotesProperties.defaultListStyle","nodeAfter","extend","lower-roman","modelCursor","schema","footnotesDefinitions","max","getChildren","requires","_getDefaultListStyle","start","4442781BBYPEQ","getAttribute","parseInt","getItems","_updateFootnotesCounters","setStyle","insert","$text","removeAttribute","get","editor","1640832ATEfnN","model","define","list-style-type","upcast","find","upper-alpha","mapper","floor","isPremiumPlugin","getChanges","710156LWlBZG","upper-latin","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","_getDefaultStartIndex","5805888ACBMGH","fromCharCode","decimal-leading-zero","_definePostfixer","config","2582739KiZJSO","toViewElement","footnotesListStart","upper-roman","toUpperCase","consume","_formatFootnoteListValue","isOfficialPlugin","footnotesStyle","footnotes-list","viewItem","footnotesStart","commands"];return(bt=function(){return t})()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();R()(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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["28TJjeoT","isPremiumPlugin","293296eOZktr","810357TANwKS","8270vvwWaV","130848tQenzp","5380596oIlrDx","15FtdNPG","isOfficialPlugin","11hrnhOW","585236zzaXsd","pluginName","2OpTCZr","requires","1791pidsHw","94902zrCyVh","FootnotesProperties"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=246]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(230476===-parseInt(e(252))/1+parseInt(e(262))/2*(parseInt(e(253))/3)+parseInt(e(260))/4*(-parseInt(e(257))/5)+-parseInt(e(248))/6*(-parseInt(e(250))/7)+parseInt(e(255))/8+parseInt(e(247))/9*(parseInt(e(254))/10)+-parseInt(e(259))/11*(-parseInt(e(256))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Tt extends t.Plugin{static get[Ft(261)](){return Ft(249)}static get[Ft(246)](){return[pt,Ct]}static get[Ft(258)](){return!0}static get[Ft(251)](){return!0}}function Pt(){var t=["56cPBMdo","4809238VmxtOU","371724auHQDA","16UNemJc","6kXwjLL","6096700hfJQAW","123507nACPQu","32762fUYKpS","542130MxEWio","584919wisRRR"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=339]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(472806===-parseInt(e(345))/1+parseInt(e(341))/2*(parseInt(e(344))/3)+-parseInt(e(340))/4+-parseInt(e(346))/5+parseInt(e(342))/6*(-parseInt(e(339))/7)+-parseInt(e(348))/8*(-parseInt(e(347))/9)+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},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")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450: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),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,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}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},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")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},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:()=>Tt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=181]})(t,e)}function c(){const t=["_getElementKey","20lKEDzt","insert","values","$text","delete","createRangeOn","getChanges","elementName","add","name","328614wbrMkL","6UUylUh","_trackedElements","root","element","461630fPwkit","clear","position","$graveyard","get","27JPvwTY","724155jCwdkn","type","_model","1034848aiVdMp","remove","nodeAfter","attributes","reset","_elementName","set","from","996666OvGXVd","rootName","42986vrbuCV","189DRSmJx","getElementKey","length","getItems","slice","230211yrIFYb","has","push","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(783860===-parseInt(e(197))/1*(parseInt(e(219))/2)+parseInt(e(203))/3+-parseInt(e(208))/4*(parseInt(e(184))/5)+parseInt(e(218))/6*(parseInt(e(198))/7)+parseInt(e(187))/8+-parseInt(e(183))/9*(parseInt(e(223))/10)+parseInt(e(195))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(186)];[r(192)];[r(207)];[r(220)]=new Map;constructor(t,e){const o=r;this[o(186)]=t,this[o(192)]=e[o(215)],this[o(207)]=e[o(199)]}[r(191)](){const t=r;this[t(220)][t(224)]()}[r(214)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(209)===i[e(185)]&&e(211)!==i[e(217)]&&i[e(225)][e(189)]){const t=this[e(186)][e(213)](i[e(225)][e(189)]);for(const o of t[e(201)]()){if(!o.is(e(222),this[e(192)]))continue;const t=this[e(207)](o);n[e(204)](t)||n[e(193)](t,[]),n[e(182)](t)[e(205)](o)}}if(e(188)===i[e(185)]&&i[e(217)]===this[e(192)]){const t=this[e(207)]({getAttribute:t=>i[e(190)][e(182)](t)});o[e(216)](t)}}for(const[t,n]of this[e(220)])e(181)===n[e(221)][e(196)]&&o[e(216)](t);for(const t of o)this[e(220)][e(212)](t);for(const[t,o]of n)this[e(220)][e(193)](t,o[o[e(200)]-1]);const i=new Set;for(const[t,s]of n)o[e(204)](t)&&(i[e(216)](s[0]),s[e(200)]>1?n[e(193)](t,s[e(202)](1)):n[e(212)](t),o[e(212)](t));return{removed:Array[e(194)](o),inserted:Array[e(194)](n[e(210)]())[e(206)](),moved:Array[e(194)](i)}}}const f=d;function u(){const t=["move","1013285VLVBJa","findIndex","map","footnoteRef","_handleMovedFootnoteReference","_handleInsertedFootnoteReference","footnoteDefinition","listenTo","createRangeIn","before","getFootnotesFormatter","registerPostFixer","find","_handleFootnotesDefinitionsObjectChanges","pluginName","201479wJhegJ","footnoteId","length","934004CDKyeG","init","_handleRemoveFootnoteReferenceById","70mzxCto","rootName","3GDTdRw","compareWith","_sortFootnoteDefinitions","createElement","setFootnoteFormatter","add","footnotes.multiBlock","_footnotes","getAttribute","has","getFootnotesDefinitionsObjectElement","_ensureFootnotesReferencesHaveProperOrder","getFootnotes","getFootnote","getChildren","from","enqueueChange","256942upcxCt","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsTracker","getChanges","_handleFootnoteReferencesChanges","isOfficialPlugin","6ZTmRFp","FootnotesTracker","_footnotesDefinitions","footnoteInlineContent","differ","37143sdrvkO","653952DXZGrm","set","4753463BAYeEp","footnoteCounter","min","$graveyard","childCount","insert","setAttribute","push","document","model","config","reference","_insertEmptyFootnotesDefinitionsContainer","editor","high","_updateFootnoteRefCounter","low","footnotesDefinitions","_handleFootnoteDefinitionsChanges","_updateFootnotesCounters","indexOf","splice","createPositionAt","remove","some","reset","singleton","createRangeOn","_handleFootnotesDefinitionsObjectSync","getRootNames","change:data","after","_footnoteRefsTracker","definition","paragraph","append","isEqual","createPositionBefore","unshift","parent","get","_footnoteFormatter","2xxCtMU","end","root","isPremiumPlugin"];return(u=function(){return t})()}function d(t,e){const o=u();return(d=function(t,e){return o[t-=426]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(123527===-parseInt(e(450))/1*(-parseInt(e(430))/2)+-parseInt(e(458))/3*(parseInt(e(453))/4)+parseInt(e(435))/5*(-parseInt(e(482))/6)+parseInt(e(475))/7+-parseInt(e(488))/8+parseInt(e(487))/9*(-parseInt(e(456))/10)+parseInt(e(490))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[f(465)]=[];[f(484)]=null;[f(429)]=null;[f(476)];[f(522)];[f(478)];static get[f(449)](){return f(483)}static get[f(481)](){return!0}static get[f(433)](){return!0}constructor(t){const e=f;super(t),this[e(476)]=new l(this[e(503)][e(499)],{elementName:e(507),getElementKey:()=>e(516)}),this[e(522)]=new l(this[e(503)][e(499)],{elementName:e(438),getElementKey:t=>t[e(466)](e(451))}),this[e(478)]=new l(this[e(503)][e(499)],{elementName:e(441),getElementKey:t=>t[e(466)](e(451))})}[f(454)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(498)][t(446)](e=>{const n=t,i=o[n(498)][n(486)][n(479)]();let s=!1;return this[n(448)](e,i)&&(s=!0),this[n(508)](e,i)&&(s=!0),this[n(480)](e,i)&&(s=!0),this[n(469)](e)&&(s=!0),this[n(518)](e)&&(s=!0),this[n(460)](e)&&(s=!0),s}),this[t(442)](o[t(498)],t(520),()=>{const e=t;o[e(474)]({isUndoable:!1},t=>{this[e(477)](t)})},{priority:t(506)}),this[t(442)](n,t(489),()=>{const e=t;this[e(465)]=[],this[e(476)][e(515)](),this[e(522)][e(515)](),this[e(478)][e(515)]()},{priority:t(504)})}[f(468)](){return this[f(484)]}[f(471)](t){const e=f;return this[e(465)][e(447)](e=>e.id===t)||null}[f(470)](){const t=f;return Array[t(473)](this[t(465)])}[f(445)](){return this[f(429)]}[f(462)](t){this[f(429)]=t}[f(509)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(465)][o(452)];i++)this[o(505)](t,i)&&(n=!0);return n}[f(502)](t,e){const o=f,n=t[o(461)](o(507),{});return t[o(525)](n,e),this[o(484)]=n,n}[f(477)](t){const e=f;if(!this[e(465)][e(452)]||this[e(484)])return;const o=this[e(465)][0][e(501)][e(432)],n=this[e(502)](t,o);for(const o of this[e(465)])o[e(523)][e(427)]||t[e(495)](o[e(523)],n,e(431));this[e(509)](t)}[f(448)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(476)][o(479)](e);if(r[o(452)]&&(this[o(484)]=r[0]),i[o(452)])if(i[o(452)]>1||this[o(484)]&&i[o(514)](t=>t!==this[o(484)])){const e=t[o(461)](o(507),{}),s=[];this[o(484)]&&s[o(497)](this[o(484)]),s[o(497)](...i),t[o(495)](e,s[0],o(444));for(const n of s)t[o(434)](t[o(443)](n),t[o(512)](e,o(431))),t[o(513)](n);this[o(484)]=e,this[o(509)](t),n=!0}else this[o(484)]=i[0];if(s[o(452)]&&o(493)===this[o(484)]?.[o(432)][o(457)]){for(const e of this[o(465)])t[o(513)](e[o(501)]),n=!0;this[o(465)]=[],this[o(484)]=null}return n}[f(508)](t,e){const o=f;let n=!1;const i=this[o(503)][o(500)][o(428)](o(464)),{inserted:s,moved:r}=this[o(478)][o(479)](e);for(const e of[...r,...s]){const s=e[o(466)](o(451)),r=this[o(471)](s);r&&(r[o(523)]=e),h(t,i,e)&&(n=!0)}return n}[f(480)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(522)][o(479)](e);for(const e of i)this[o(455)](t,e)&&(n=!0);for(const e of s)this[o(440)](t,e)&&(n=!0);for(const e of r)this[o(439)](t,e)&&(n=!0);return n}[f(518)](t){const e=f;if(!this[e(484)])return!1;let o=!1;if(this[e(484)][e(494)]!==this[e(465)][e(452)]){const n=[];for(const t of this[e(484)][e(472)]()){const i=t[e(466)](e(451));this[e(471)](i)||(n[e(426)](t),o=!0)}for(const o of n)t[e(513)](o)}const n=new Set,i=[];for(const t of this[e(484)][e(472)]()){const s=t[e(466)](e(451));n[e(467)](s)?(i[e(426)](t),o=!0):n[e(463)](s)}for(const o of i)t[e(513)](o);return this[e(484)][e(494)]||(t[e(513)](this[e(484)]),this[e(484)]=null,o=!0),o}[f(440)](t,e){const o=f;if(this[o(465)][o(447)](t=>t[o(501)]===e))return!1;let n=!1;const i=e[o(466)](o(451)),s=this[o(465)][o(436)](t=>t.id===i);-1!==s&&(t[o(513)](this[o(465)][s][o(501)]),this[o(465)][o(511)](s,1),n=!0);let r=this[o(484)]?function(t,e){const n=o;for(const o of t[n(472)]())if(o[n(466)](n(451))===e)return o;return null}(this[o(484)],i):null;r||(r=t[o(461)](o(441),{footnoteId:i}),this[o(484)]&&(t[o(495)](r,this[o(484)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(499)],this[o(465)],e);this[o(465)][o(511)](c,0,a);let l=c;return-1!==s&&(l=Math[o(492)](c,s)),this[o(509)](t,l)&&(n=!0),n}[f(455)](t,e){const o=f,n=this[o(465)][o(436)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(465)][n];return o(493)!==s[o(523)][o(432)][o(457)]&&(t[o(513)](s[o(523)]),i=!0),this[o(465)][o(511)](n,1),this[o(509)](t,n)&&(i=!0),i}[f(439)](t,e){const o=f,n=e[o(466)](o(451)),i=this[o(465)][o(436)](t=>t.id===n),s=this[o(465)][i];let r=!1;s[o(501)]=e,this[o(465)][o(511)](i,1);const a=m(this[o(503)][o(499)],this[o(465)],e);return this[o(465)][o(511)](a,0,s),this[o(509)](t,Math[o(492)](i,a))&&(r=!0),r}[f(505)](t,e){const o=f;if(!this[o(484)])return!1;const n=this[o(465)][e];let i;return i=this[o(429)]?this[o(429)]({footnote:n,container:this[o(484)],digits:String(this[o(465)][o(452)])[o(452)],value:e+1}):String(e+1),n[o(501)][o(466)](o(491))!=i&&(t[o(496)](o(491),i,n[o(501)]),!0)}[f(460)](t){const e=f;if(!this[e(484)]||this[e(465)][e(452)]<2)return!1;if(function(t,o){const n=e;if(t[n(452)]!==o[n(452)])return!1;for(let e=0;e<t[n(452)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(465)][e(437)](t=>t.id),Array[e(473)](this[e(484)][e(472)]())[e(437)](t=>t[e(466)](e(451)))))return!1;let o=!1;for(let n=0;n<this[e(465)][e(452)];n++){const i=this[e(465)][n],s=t[e(527)](i[e(523)]),r=t[e(512)](this[e(484)],n);s[e(526)](r)||(t[e(434)](t[e(517)](i[e(523)]),r),o=!0)}return o}[f(469)](t){const e=f;if(!this[e(465)][e(452)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(465)][e(452)]-1;i++){const s=this[e(465)][i],r=this[e(465)][i+1],a=o[e(527)](s[e(501)]),c=o[e(527)](r[e(501)]);e(521)===a[e(459)](c)&&(this[e(439)](t,s[e(501)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(494)])return!1;const i=n(e?524:485);return t[n(495)](t[n(461)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(452)])return 0;const i=t[n(527)](o);for(let o=0;o<e[n(452)];o++){const s=e[o],r=t[n(527)](s[n(501)]);if(n(444)===i[n(459)](r))return o}const s=o[n(432)];let r=-1;for(let t=e[n(452)]-1;t>=0;t--)if(e[t][n(501)][n(432)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(498)][n(519)](),c=a[n(510)](s[n(457)]),l=a[c+1];if(l)for(let t=0;t<e[n(452)];t++)if(e[t][n(501)][n(432)][n(457)]===l)return t;return e[n(452)]}function g(){const t=["isBlock","getItems","isEnabled","test","insertObject","33368oKMreG","editor","isObject","1202124XnBvBs","change","string","length","1340624AJASkJ","_getPositionToInsertFootnote","document","getFirstRange","364hNXhwF","createElement","model","footnoteRef","FootnotesEditing","selection","3163968wzOlRf","footnoteId","execute","refresh","_moveSelectionToFootnoteDefinition","checkChild","plugins","insert-footnote-command-executed-with-invalid-id","207274bGrEVU","6476410gpCufT","796794KSBoHV","get","end"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=227]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(690911===parseInt(e(253))/1+parseInt(e(236))/2+-parseInt(e(238))/3+parseInt(e(228))/4+-parseInt(e(237))/5+-parseInt(e(249))/6+-parseInt(e(257))/7*(-parseInt(e(246))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(231)](){const t=w,e=this[t(247)][t(259)][t(255)][t(227)],o=this[t(254)](e);this[t(243)]=!!o}[w(230)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(255)],r=this[e(254)](s);if(!r)return;const a=o[e(234)][e(239)](e(261)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(252)]>0&&!/\s/[o(244)](t)&&!/^\d/[o(244)](t)}(c)?(0,i.logWarning)(e(235)):(n[e(250)](t=>{const o=e,i=t[o(258)](o(260),{footnoteId:c});n[o(245)](i,r,null)}),a[e(232)](c))}[w(254)](t){const e=w,{model:o}=this[e(247)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(242)]())if(n[e(241)](t)||n[e(248)](t))return null;const s=i[e(240)];return n[e(233)](s,e(260))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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 p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(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=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(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])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]: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=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](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:1762819200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=271]})(t,e)}function _(){const t=["listenTo","isOfficialPlugin","application/ckeditor5-footnotes","isPremiumPlugin","requires","getFirstRange","footnoteId","get","2712YXTOge","clipboardInput","flatMap","footnoteRef","stringify","remove","190crMffc","selection","footnoteDefinition","parse","insert","includes","_handleCopyFootnotesDefinitions","toView","258147Qdjyzs","dataTransfer","data","document","7QkuiUL","_defineClipboardIntegration","toModel","getData","method","element","getSelectedBlocks","FootnotesClipboard","append","reduce","49260gKMKbt","add","getFootnote","length","getFootnotesDefinitionsObjectElement","toData","getFootnotes","getAttribute","root","228xCGQgM","content","footnotesDefinitions","462KXjhJH","drop","contentInsertion","entries","sourceEditorId","find","5937YQkRKI","setAttribute","getRanges","editor","createElement","definition","3406568vGrmOd","create","change","htmlProcessor","15244838TPybAO","editing","outputTransformation","11597WjGput","187451ujuPyK","_handlePasteFootnotesDefinitions","end","push","26FqFIJx","8XOhsQb","_insertEmptyFootnotesDefinitionsContainer","init","setData","from","createRangeIn","pluginName"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(678099===parseInt(e(330))/1*(-parseInt(e(336))/2)+-parseInt(e(317))/3*(parseInt(e(271))/4)+parseInt(e(299))/5*(-parseInt(e(311))/6)+-parseInt(e(289))/7*(-parseInt(e(323))/8)+parseInt(e(285))/9*(parseInt(e(277))/10)+parseInt(e(331))/11*(-parseInt(e(308))/12)+parseInt(e(335))/13*(parseInt(e(327))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[S(342)](){return S(296)}static get[S(347)](){return[v,P.ClipboardPipeline]}static get[S(344)](){return!0}static get[S(346)](){return!0}[S(338)](){this[S(290)]()}[S(290)](){const t=S;this[t(283)](),this[t(332)]()}[S(283)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(350)](P.ClipboardPipeline),s=o[t(350)](p);this[t(343)](i,t(329),(o,i)=>{const r=t,a=L(n[r(341)](i[r(309)]));if(!a[r(302)])return;const c=s[r(305)](),l=a[r(298)]((t,o)=>{const n=r,i=c[n(316)](t=>t.id===o);if(i){const o=e[n(287)][n(284)](i[n(322)],{isClipboardPipeline:!0}),s=e[n(287)][n(326)][n(304)](o);t[i.id]=s}return t},Object[r(324)](null));i[r(286)][r(339)](r(345),JSON[r(275)](l))})}[S(332)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(328)],r=n[t(350)](P.ClipboardPipeline),a=n[t(350)](p);let c=null;this[t(343)](s[t(288)],t(272),(e,o)=>{const n=t,i=o[n(286)][n(292)](n(345));c=i?JSON[n(280)](i):null}),this[t(343)](r,t(313),(n,s)=>{const r=t,l=s[r(315)]===this[r(320)].id;l&&r(312)===s[r(293)]||o[r(325)](t=>{const n=r;let f=a[n(303)]();const u=!!f&&Array[n(340)](o[n(288)][n(278)][n(295)]())[n(282)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(341)](e))n.is(o(294),o(310))&&i[o(334)](n);for(const e of i)t[o(276)](e)}(t,s[n(309)]),!c)return;const{selection:d}=o[n(288)],p=d[n(348)]()[n(307)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(341)](e))if(n.is(o(294),o(310)))return n;return null}(t,s[n(309)]),f||=a[n(337)](t,p));const h=Array[n(340)](d[n(319)]())[n(273)](L),m=function(t,e,o){const s=n,r=Object[s(324)](null);for(const{item:n}of t[s(341)](e))if(n.is(s(294),s(274))){const e=n[s(306)](s(349));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(318)](s(349),r[e],n)}return r}(t,s[n(309)],t=>{const e=n;return!l||!!a[e(301)](t)&&!h[e(282)](t)});for(const[o,i]of Object[n(314)](c)){const s=m[o]||o,r=t[n(321)](n(279),{footnoteId:s}),a=e[n(287)][n(326)][n(284)](i),c=e[n(287)][n(291)](a,r);t[n(297)](c,r),t[n(281)](r,f,n(333))}c=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(294),e(274))&&o[e(300)](n[e(306)](e(349)));return Array[e(340)](o)}var O=o(311),V=o(355),N=o(450),R=o.n(N),K=o(774),j=o.n(K),M=o(265),B=o.n(M),z=o(410),U=o.n(z),H=o(238),W=o.n(H),G=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=W();R()(G.A,J);G.A&&G.A.locals&&G.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",q(t,O.ButtonView)),e.add("menuBar:insertFootnote",q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Q;function Q(t,e){var o=Z();return(Q=function(t,e){return o[t-=292]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(832948===-parseInt(e(298))/1*(-parseInt(e(303))/2)+-parseInt(e(302))/3+parseInt(e(305))/4+parseInt(e(301))/5*(-parseInt(e(304))/6)+parseInt(e(292))/7*(-parseInt(e(299))/8)+-parseInt(e(300))/9+parseInt(e(294))/10*(parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Y(293)](){return Y(307)}static get[Y(295)](){return[v,D,X]}static get[Y(297)](){return!0}static get[Y(296)](){return!0}}function Z(){var t=["isOfficialPlugin","103KDqxla","5327816QSjrLa","13272606CYWiQq","8250645NPeXEf","220632rNFqaH","16342BeprMF","6fSTjtq","3827540SiXbgb","66HxEBZN","Footnotes","7jxiMJR","pluginName","4831390nExyEB","requires","isPremiumPlugin"];return(Z=function(){return t})()}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=113]})(t,e)}const et=tt;function ot(){const t=["426000eMTthA","lower-alpha","decimal","upper-latin","1830zjgYHs","2EhXqlY","2331666erUFhY","4912IbFfPd","upper-roman","2494917utpPDR","lower-roman","515842mzuYTd","32752DwWcyz","10RxFAgp","upper-alpha","decimal-leading-zero","lower-latin","5908155ANigfQ","77XYAwvw"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(262347===parseInt(e(119))/1*(-parseInt(e(125))/2)+-parseInt(e(114))/3+-parseInt(e(121))/4*(-parseInt(e(118))/5)+-parseInt(e(120))/6+parseInt(e(113))/7*(parseInt(e(126))/8)+parseInt(e(123))/9*(parseInt(e(127))/10)+parseInt(e(131))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(116),et(129),et(130),et(117),et(115),et(128),et(124),et(122)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=487]})(t,e)}function rt(){const t=["3aMwUxz","isEnabled","13GPdbLO","45978756IUGwXs","footnotesListStyle","9YkDgIV","getAttribute","5978929CnnHJb","716173oxagHn","includes","plugins","198751GACPVZ","execute","174nGHtXt","get","1517806yHgNay","model","4935whiqFx","getFootnotesDefinitionsObjectElement","629984LKpFWx","refresh","setAttribute","value","548oxEivB","_updateFootnotesCounters","change","10PvNEcl"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(775584===-parseInt(e(490))/1+parseInt(e(497))/2*(-parseInt(e(509))/3)+-parseInt(e(505))/4*(parseInt(e(499))/5)+-parseInt(e(495))/6*(parseInt(e(493))/7)+-parseInt(e(501))/8*(parseInt(e(487))/9)+parseInt(e(508))/10*(-parseInt(e(489))/11)+parseInt(e(512))/12*(parseInt(e(511))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(502)](){const t=it,{editor:e}=this,o=e[t(492)][t(496)](p)[t(500)]();this[t(510)]=!!o,this[t(504)]=o?.[t(488)](t(513))??null}[it(494)]({value:t}){const e=it,{editor:o}=this,n=o[e(492)][e(496)](p),i=n[e(500)]();i&&nt[e(491)](t)&&o[e(498)][e(507)](o=>{const s=e;o[s(503)](s(513),t,i),n[s(506)](o)})}}const ct=ft;function lt(){const t=["162995YGKTGT","3384Nvckrj","value","plugins","footnotesListStart","get","20SijPWn","12KqitTq","isInteger","1413313nttdca","260252Rdabky","1542249mTIKRr","isEnabled","_updateFootnotesCounters","10oPzEHt","707bMdnVE","240486xUiifP","execute","change","model","338064jrjGyc","3YQmMEr","getFootnotesDefinitionsObjectElement","refresh","getAttribute","setAttribute"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(170625===parseInt(e(146))/1+parseInt(e(136))/2*(-parseInt(e(121))/3)+-parseInt(e(132))/4*(parseInt(e(126))/5)+parseInt(e(142))/6+-parseInt(e(141))/7*(-parseInt(e(127))/8)+parseInt(e(137))/9*(parseInt(e(140))/10)+-parseInt(e(135))/11*(parseInt(e(133))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(123)](){const t=ct,{editor:e}=this,o=e[t(129)][t(131)](p)[t(122)]();this[t(138)]=!!o,this[t(128)]=o?.[t(124)](t(130))??null}[ct(143)]({value:t}){const e=ct,{editor:o}=this,n=o[e(129)][e(131)](p),i=n[e(122)]();i&&Number[e(134)](t)&&o[e(145)][e(144)](o=>{const s=e;o[s(125)](s(130),t,i),n[s(139)](o)})}}const dt=gt;!function(t){const e=gt,o=t();for(;;)try{if(364058===-parseInt(e(282))/1*(parseInt(e(271))/2)+-parseInt(e(330))/3+parseInt(e(341))/4+-parseInt(e(295))/5*(-parseInt(e(296))/6)+-parseInt(e(319))/7+-parseInt(e(346))/8+-parseInt(e(351))/9*(-parseInt(e(266))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class pt extends t.Plugin{static get[dt(290)](){return dt(263)}static get[dt(316)](){return[v,p]}static get[dt(257)](){return!0}static get[dt(339)](){return!0}[dt(278)](){const t=dt,{editor:e}=this;e[t(350)][t(332)](t(307),t(293)),e[t(350)][t(332)](t(343),1),e[t(262)][t(297)](t(258),new at(e)),e[t(262)][t(297)](t(261),new ut(e)),this[t(287)](),this[t(273)](),this[t(294)](),this[t(349)]()}[dt(287)](){const t=dt,{editor:e}=this,{schema:o}=e[t(331)];o[t(309)](t(313),{allowAttributes:[t(280),t(353)]})}[dt(273)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(289)](t(334))[t(297)](e=>{const o=t;e.on(o(267),(t,e,n)=>{const s=o,r=e[s(260)],a=e[s(311)]?.[s(264)];r[s(272)](s(259))&&a?.is(s(274),s(313))&&(function(t,e,o,n){const i=s;if(!n[i(279)](e,i(353)))return;let r=1;const a=o[i(276)][i(356)](t,{attributes:i(318)});if(a){const e=Number[i(321)](t[i(320)](i(318)),10);Number[i(265)](e)||(r=e)}!a&&e[i(277)](i(353))||o[i(285)][i(270)](i(353),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(279)](e,i(280)))return;let r=i(293),a=!1;if(o[i(276)][i(356)](t,{attributes:i(301)})){const e={1:i(293),a:i(344),A:i(336),i:i(310),I:i(354)}[t[i(320)](i(301))];e&&(r=e),a=!0}o[i(276)][i(356)](t,{styles:i(333)})&&(r=t[i(286)](i(333)),a=!0),!a&&e[i(277)](i(280))||o[i(285)][i(270)](i(280),r,e)}(r,a,n,i))})}),o[t(289)](t(306))[t(297)](e=>{const o=t;e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;null==r||1===r?n[i(285)][i(327)](i(318),s):n[i(285)][i(270)](i(318),String(r),s)}),e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;r&&i(293)!==r?n[i(285)][i(324)](i(333),r,s):n[i(285)][i(288)](i(333),s)})})}[dt(349)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(302)][t(328)](p),i=this[t(317)](),s=this[t(345)]();o[t(283)][t(299)](e=>{const r=t,a=o[r(283)][r(304)][r(340)]();let c=!1;for(const t of a){if(r(325)!==t[r(301)]||r(326)===t[r(269)])continue;const n=o[r(292)](t[r(300)][r(308)]);for(const t of n[r(322)]())t.is(r(274),r(313))&&(!t[r(277)](r(353))&&o[r(312)][r(279)](t,r(353))&&(e[r(270)](r(353),s,t),c=!0),!t[r(277)](r(280))&&o[r(312)][r(279)](t,r(280))&&(e[r(270)](r(280),i,t),c=!0))}return c&&n[r(323)](e),c})}[dt(294)](){const t=dt,{editor:e}=this;e[t(302)][t(328)](p)[t(298)](e=>this[t(357)](e))}[dt(317)](){const t=dt;return this[t(329)][t(350)][t(328)](t(307))}[dt(345)](){const t=dt;return this[t(329)][t(350)][t(328)](t(343))}[dt(357)]({container:t,value:e,digits:o}){const n=dt,i=t[n(320)](n(280)),s=t[n(320)](n(353)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(348):return function(t,e){const o=n;return String(t)[o(284)](e,"0")}(r,Math[n(314)](2,o));case n(344):case n(291):return mt(r,!1);case n(336):case n(342):return mt(r,!0);case n(310):return yt(r,!1);case n(354):return yt(r,!0);default:return String(r)}}}function ht(t,e){const o=dt,n=e[o(352)](t);return Array[o(275)](n[o(315)]())[o(335)](t=>t.is(o(274),"ol")&&t[o(272)](o(259)))}function mt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(347)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(355)]():n}function gt(t,e){const o=bt();return(gt=function(t,e){return o[t-=257]})(t,e)}const wt=[{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 yt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(305)]()}function bt(){const t=["FootnotesPropertiesEditing","parent","isNaN","90SOYHgW","element:ol","attribute:footnotesListStyle:footnotesDefinitions","name","setAttribute","136iTEsxz","hasClass","_defineConverters","element","from","consumable","hasAttribute","init","checkAttribute","footnotesListStyle","item","7283QFegtJ","document","padStart","writer","getStyle","_defineSchema","removeStyle","for","pluginName","lower-latin","createRangeOn","decimal","_defineFormatter","5fHcnGz","38322OtHpOm","add","setFootnoteFormatter","registerPostFixer","position","type","plugins","attribute:footnotesListStart:footnotesDefinitions","differ","toLowerCase","downcast","footnotes.footnotesProperties.defaultListStyle","nodeAfter","extend","lower-roman","modelCursor","schema","footnotesDefinitions","max","getChildren","requires","_getDefaultListStyle","start","4442781BBYPEQ","getAttribute","parseInt","getItems","_updateFootnotesCounters","setStyle","insert","$text","removeAttribute","get","editor","1640832ATEfnN","model","define","list-style-type","upcast","find","upper-alpha","mapper","floor","isPremiumPlugin","getChanges","710156LWlBZG","upper-latin","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","_getDefaultStartIndex","5805888ACBMGH","fromCharCode","decimal-leading-zero","_definePostfixer","config","2582739KiZJSO","toViewElement","footnotesListStart","upper-roman","toUpperCase","consume","_formatFootnoteListValue","isOfficialPlugin","footnotesStyle","footnotes-list","viewItem","footnotesStart","commands"];return(bt=function(){return t})()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();R()(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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["28TJjeoT","isPremiumPlugin","293296eOZktr","810357TANwKS","8270vvwWaV","130848tQenzp","5380596oIlrDx","15FtdNPG","isOfficialPlugin","11hrnhOW","585236zzaXsd","pluginName","2OpTCZr","requires","1791pidsHw","94902zrCyVh","FootnotesProperties"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=246]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(230476===-parseInt(e(252))/1+parseInt(e(262))/2*(parseInt(e(253))/3)+parseInt(e(260))/4*(-parseInt(e(257))/5)+-parseInt(e(248))/6*(-parseInt(e(250))/7)+parseInt(e(255))/8+parseInt(e(247))/9*(parseInt(e(254))/10)+-parseInt(e(259))/11*(-parseInt(e(256))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Tt extends t.Plugin{static get[Ft(261)](){return Ft(249)}static get[Ft(246)](){return[pt,Ct]}static get[Ft(258)](){return!0}static get[Ft(251)](){return!0}}function Pt(){var t=["56cPBMdo","4809238VmxtOU","371724auHQDA","16UNemJc","6kXwjLL","6096700hfJQAW","123507nACPQu","32762fUYKpS","542130MxEWio","584919wisRRR"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=339]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(472806===-parseInt(e(345))/1+parseInt(e(341))/2*(parseInt(e(344))/3)+-parseInt(e(340))/4+-parseInt(e(346))/5+parseInt(e(342))/6*(-parseInt(e(339))/7)+-parseInt(e(348))/8*(-parseInt(e(347))/9)+parseInt(e(343))/10)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 _0x3a69c0,Command as _0x3c9d68}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x184d76,isWidget as _0x140092,toWidgetEditable as _0x4a6bd6,WidgetToolbarRepository as _0x7042da}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x12cb3d,logWarning as _0x3bd3aa,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x2b0401,ClickObserver as _0x3a16b0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x498c2d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5d985f,ButtonView as _0x17cf26,View as _0x55642b,ViewCollection as _0x39f746,FocusCycler as _0xd5ec18,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x3ad32f,BalloonPanelView as _0x47d690,createDropdown as _0x1051bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x30e662,IconListStyleDecimal as _0x18a73e,IconListStyleDecimalLeadingZero as _0x230045,IconListStyleLowerRoman as _0xf0f772,IconListStyleUpperRoman as _0x5e3558,IconListStyleLowerLatin as _0x57a28e,IconListStyleUpperLatin as _0x821817}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1ff9c3,_0x3a2f3d){this['_model']=_0x1ff9c3,this['_elementName']=_0x3a2f3d['elementName'],this['_getElementKey']=_0x3a2f3d['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3fcbda){const _0x1a0ca1=new Set(),_0x230554=new Map();for(const _0xa399fe of _0x3fcbda){if('insert'===_0xa399fe['type']&&'$text'!==_0xa399fe['name']&&_0xa399fe['position']['nodeAfter']){const _0x4183d3=this['_model']['createRangeOn'](_0xa399fe['position']['nodeAfter']);for(const _0x7dac5f of _0x4183d3['getItems']()){if(!_0x7dac5f['is']('element',this['_elementName']))continue;const _0xb71f4c=this['_getElementKey'](_0x7dac5f);_0x230554['has'](_0xb71f4c)||_0x230554['set'](_0xb71f4c,[]),_0x230554['get'](_0xb71f4c)['push'](_0x7dac5f);}}if('remove'===_0xa399fe['type']&&_0xa399fe['name']===this['_elementName']){const _0x49d7d8=this['_getElementKey']({'getAttribute':_0x3c5c0a=>_0xa399fe['attributes']['get'](_0x3c5c0a)});_0x1a0ca1['add'](_0x49d7d8);}}for(const [_0x37bc28,_0x29dfad]of this['_trackedElements'])'$graveyard'===_0x29dfad['root']['rootName']&&_0x1a0ca1['add'](_0x37bc28);for(const _0x844041 of _0x1a0ca1)this['_trackedElements']['delete'](_0x844041);for(const [_0xfc8e37,_0x22b525]of _0x230554)this['_trackedElements']['set'](_0xfc8e37,_0x22b525[_0x22b525['length']-0x1]);const _0x21e60e=new Set();for(const [_0x5958c5,_0x5144c9]of _0x230554)_0x1a0ca1['has'](_0x5958c5)&&(_0x21e60e['add'](_0x5144c9[0x0]),_0x5144c9['length']>0x1?_0x230554['set'](_0x5958c5,_0x5144c9['slice'](0x1)):_0x230554['delete'](_0x5958c5),_0x1a0ca1['delete'](_0x5958c5));return{'removed':Array['from'](_0x1a0ca1),'inserted':Array['from'](_0x230554['values']())['flat'](),'moved':Array['from'](_0x21e60e)};}}class c extends _0x3a69c0{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a0b54){super(_0x4a0b54),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1b519a=>_0x1b519a['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x295394=>_0x295394['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4f13a6}=this,{model:_0x44f28d,data:_0x56dcc5}=_0x4f13a6;_0x44f28d['document']['registerPostFixer'](_0x362769=>{const _0x18fcac=_0x44f28d['document']['differ']['getChanges']();let _0x49be0b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x362769,_0x18fcac)&&(_0x49be0b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x362769,_0x18fcac)&&(_0x49be0b=!0x0),this['_handleFootnoteReferencesChanges'](_0x362769,_0x18fcac)&&(_0x49be0b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x362769)&&(_0x49be0b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x362769)&&(_0x49be0b=!0x0),this['_sortFootnoteDefinitions'](_0x362769)&&(_0x49be0b=!0x0),_0x49be0b;}),this['listenTo'](_0x44f28d['document'],'change:data',()=>{_0x44f28d['enqueueChange']({'isUndoable':!0x1},_0x8673b5=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x8673b5);});},{'priority':'low'}),this['listenTo'](_0x56dcc5,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xd1f0d){return this['_footnotes']['find'](_0x2ab7c9=>_0x2ab7c9['id']===_0xd1f0d)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4abb3d){this['_footnoteFormatter']=_0x4abb3d;}['_updateFootnotesCounters'](_0x297a23,_0x30484c=0x0){let _0x35cd6e=!0x1;for(let _0xeaecd0=_0x30484c;_0xeaecd0<this['_footnotes']['length'];_0xeaecd0++)this['_updateFootnoteRefCounter'](_0x297a23,_0xeaecd0)&&(_0x35cd6e=!0x0);return _0x35cd6e;}['_insertEmptyFootnotesDefinitionsContainer'](_0x50f785,_0x26bc87){const _0x3b720f=_0x50f785['createElement']('footnotesDefinitions',{});return _0x50f785['append'](_0x3b720f,_0x26bc87),this['_footnotesDefinitions']=_0x3b720f,_0x3b720f;}['_ensureFootnotesDefinitionsContainerExists'](_0x29fd33){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x258bc3=this['_footnotes'][0x0]['reference']['root'],_0x335e07=this['_insertEmptyFootnotesDefinitionsContainer'](_0x29fd33,_0x258bc3);for(const _0x400e8f of this['_footnotes'])_0x400e8f['definition']['parent']||_0x29fd33['insert'](_0x400e8f['definition'],_0x335e07,'end');this['_updateFootnotesCounters'](_0x29fd33);}['_handleFootnotesDefinitionsObjectChanges'](_0x52ac2a,_0x188396){let _0x4b91a9=!0x1;const {inserted:_0x99c81c,removed:_0x34f10f,moved:_0x1279ed}=this['_footnoteDefsContainerTracker']['getChanges'](_0x188396);if(_0x1279ed['length']&&(this['_footnotesDefinitions']=_0x1279ed[0x0]),_0x99c81c['length']){if(_0x99c81c['length']>0x1||this['_footnotesDefinitions']&&_0x99c81c['some'](_0x50da15=>_0x50da15!==this['_footnotesDefinitions'])){const _0x194f92=_0x52ac2a['createElement']('footnotesDefinitions',{}),_0x718abb=[];this['_footnotesDefinitions']&&_0x718abb['push'](this['_footnotesDefinitions']),_0x718abb['push'](..._0x99c81c),_0x52ac2a['insert'](_0x194f92,_0x718abb[0x0],'before');for(const _0x2d8367 of _0x718abb)_0x52ac2a['move'](_0x52ac2a['createRangeIn'](_0x2d8367),_0x52ac2a['createPositionAt'](_0x194f92,'end')),_0x52ac2a['remove'](_0x2d8367);this['_footnotesDefinitions']=_0x194f92,this['_updateFootnotesCounters'](_0x52ac2a),_0x4b91a9=!0x0;}else this['_footnotesDefinitions']=_0x99c81c[0x0];}if(_0x34f10f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x42a0d7 of this['_footnotes'])_0x52ac2a['remove'](_0x42a0d7['reference']),_0x4b91a9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4b91a9;}['_handleFootnoteDefinitionsChanges'](_0x156c3d,_0x24b66f){let _0x360a41=!0x1;const _0x47293c=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5a60cf,moved:_0x3ff522}=this['_footnoteDefsTracker']['getChanges'](_0x24b66f);for(const _0x4e861f of[..._0x3ff522,..._0x5a60cf]){const _0x301e0f=_0x4e861f['getAttribute']('footnoteId'),_0x25a413=this['getFootnote'](_0x301e0f);_0x25a413&&(_0x25a413['definition']=_0x4e861f),_(_0x156c3d,_0x47293c,_0x4e861f)&&(_0x360a41=!0x0);}return _0x360a41;}['_handleFootnoteReferencesChanges'](_0x1c6e08,_0x1f1592){let _0x44fe38=!0x1;const {removed:_0x845735,inserted:_0x5b1351,moved:_0x49e2ef}=this['_footnoteRefsTracker']['getChanges'](_0x1f1592);for(const _0x5bbb3e of _0x845735)this['_handleRemoveFootnoteReferenceById'](_0x1c6e08,_0x5bbb3e)&&(_0x44fe38=!0x0);for(const _0x1a22fc of _0x5b1351)this['_handleInsertedFootnoteReference'](_0x1c6e08,_0x1a22fc)&&(_0x44fe38=!0x0);for(const _0x309495 of _0x49e2ef)this['_handleMovedFootnoteReference'](_0x1c6e08,_0x309495)&&(_0x44fe38=!0x0);return _0x44fe38;}['_handleFootnotesDefinitionsObjectSync'](_0xfafb64){if(!this['_footnotesDefinitions'])return!0x1;let _0x31cd79=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x1bc038=[];for(const _0x48fdeb of this['_footnotesDefinitions']['getChildren']()){const _0x476cb6=_0x48fdeb['getAttribute']('footnoteId');this['getFootnote'](_0x476cb6)||(_0x1bc038['unshift'](_0x48fdeb),_0x31cd79=!0x0);}for(const _0x2ab2e6 of _0x1bc038)_0xfafb64['remove'](_0x2ab2e6);}const _0x52ed65=new Set(),_0xeea8db=[];for(const _0x21f67e of this['_footnotesDefinitions']['getChildren']()){const _0x2b5f00=_0x21f67e['getAttribute']('footnoteId');_0x52ed65['has'](_0x2b5f00)?(_0xeea8db['unshift'](_0x21f67e),_0x31cd79=!0x0):_0x52ed65['add'](_0x2b5f00);}for(const _0x3de98d of _0xeea8db)_0xfafb64['remove'](_0x3de98d);return this['_footnotesDefinitions']['childCount']||(_0xfafb64['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x31cd79=!0x0),_0x31cd79;}['_handleInsertedFootnoteReference'](_0x565f56,_0x325c4b){if(this['_footnotes']['find'](_0x89e536=>_0x89e536['reference']===_0x325c4b))return!0x1;let _0x5d85ea=!0x1;const _0x45519f=_0x325c4b['getAttribute']('footnoteId'),_0x18882d=this['_footnotes']['findIndex'](_0x313bc7=>_0x313bc7['id']===_0x45519f);-0x1!==_0x18882d&&(_0x565f56['remove'](this['_footnotes'][_0x18882d]['reference']),this['_footnotes']['splice'](_0x18882d,0x1),_0x5d85ea=!0x0);let _0x39ee0a=this['_footnotesDefinitions']?function(_0x4772db,_0x34a25e){for(const _0x510f79 of _0x4772db['getChildren']())if(_0x510f79['getAttribute']('footnoteId')===_0x34a25e)return _0x510f79;return null;}(this['_footnotesDefinitions'],_0x45519f):null;_0x39ee0a||(_0x39ee0a=_0x565f56['createElement']('footnoteDefinition',{'footnoteId':_0x45519f}),this['_footnotesDefinitions']&&(_0x565f56['insert'](_0x39ee0a,this['_footnotesDefinitions'],'end'),_0x5d85ea=!0x0));const _0x4b7b08={'id':_0x45519f,'reference':_0x325c4b,'definition':_0x39ee0a},_0x2cfe9a=I(this['editor']['model'],this['_footnotes'],_0x325c4b);this['_footnotes']['splice'](_0x2cfe9a,0x0,_0x4b7b08);let _0x40aea4=_0x2cfe9a;return-0x1!==_0x18882d&&(_0x40aea4=Math['min'](_0x2cfe9a,_0x18882d)),this['_updateFootnotesCounters'](_0x565f56,_0x40aea4)&&(_0x5d85ea=!0x0),_0x5d85ea;}['_handleRemoveFootnoteReferenceById'](_0x234470,_0x4afebc){const _0x315e30=this['_footnotes']['findIndex'](_0x12a856=>_0x12a856['id']===_0x4afebc);if(-0x1===_0x315e30)return!0x1;let _0x341c74=!0x1;const _0x5fd98a=this['_footnotes'][_0x315e30];return'$graveyard'!==_0x5fd98a['definition']['root']['rootName']&&(_0x234470['remove'](_0x5fd98a['definition']),_0x341c74=!0x0),this['_footnotes']['splice'](_0x315e30,0x1),this['_updateFootnotesCounters'](_0x234470,_0x315e30)&&(_0x341c74=!0x0),_0x341c74;}['_handleMovedFootnoteReference'](_0xd16dd1,_0x48d29f){const _0x21126d=_0x48d29f['getAttribute']('footnoteId'),_0x2e3ea7=this['_footnotes']['findIndex'](_0x5c7f1a=>_0x5c7f1a['id']===_0x21126d),_0xfa51ca=this['_footnotes'][_0x2e3ea7];let _0xa0ccef=!0x1;_0xfa51ca['reference']=_0x48d29f,this['_footnotes']['splice'](_0x2e3ea7,0x1);const _0xf481d5=I(this['editor']['model'],this['_footnotes'],_0x48d29f);return this['_footnotes']['splice'](_0xf481d5,0x0,_0xfa51ca),this['_updateFootnotesCounters'](_0xd16dd1,Math['min'](_0x2e3ea7,_0xf481d5))&&(_0xa0ccef=!0x0),_0xa0ccef;}['_updateFootnoteRefCounter'](_0x20fac3,_0x17cf95){if(!this['_footnotesDefinitions'])return!0x1;const _0x4720ac=this['_footnotes'][_0x17cf95];let _0x5a9fd7;return _0x5a9fd7=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x4720ac,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x17cf95+0x1}):String(_0x17cf95+0x1),_0x4720ac['reference']['getAttribute']('footnoteCounter')!=_0x5a9fd7&&(_0x20fac3['setAttribute']('footnoteCounter',_0x5a9fd7,_0x4720ac['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2c6f8b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x27bcbc,_0x1a5eb9){if(_0x27bcbc['length']!==_0x1a5eb9['length'])return!0x1;for(let _0x2a1585=0x0;_0x2a1585<_0x27bcbc['length'];_0x2a1585++)if(_0x27bcbc[_0x2a1585]!==_0x1a5eb9[_0x2a1585])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4bce98=>_0x4bce98['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x2628f9=>_0x2628f9['getAttribute']('footnoteId'))))return!0x1;let _0x252c5d=!0x1;for(let _0x500ae4=0x0;_0x500ae4<this['_footnotes']['length'];_0x500ae4++){const _0xfa4901=this['_footnotes'][_0x500ae4],_0x1417e2=_0x2c6f8b['createPositionBefore'](_0xfa4901['definition']),_0x3b08e8=_0x2c6f8b['createPositionAt'](this['_footnotesDefinitions'],_0x500ae4);_0x1417e2['isEqual'](_0x3b08e8)||(_0x2c6f8b['move'](_0x2c6f8b['createRangeOn'](_0xfa4901['definition']),_0x3b08e8),_0x252c5d=!0x0);}return _0x252c5d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x25213d){if(!this['_footnotes']['length'])return!0x1;const {model:_0x52dd22}=this['editor'];let _0x1a5610=!0x1;for(let _0x4d625f=0x0;_0x4d625f<this['_footnotes']['length']-0x1;_0x4d625f++){const _0x579880=this['_footnotes'][_0x4d625f],_0x572e19=this['_footnotes'][_0x4d625f+0x1],_0x27cf84=_0x52dd22['createPositionBefore'](_0x579880['reference']),_0x1e201f=_0x52dd22['createPositionBefore'](_0x572e19['reference']);'after'===_0x27cf84['compareWith'](_0x1e201f)&&(this['_handleMovedFootnoteReference'](_0x25213d,_0x579880['reference']),_0x4d625f=-0x1,_0x1a5610=!0x0);}return _0x1a5610;}}function _(_0x37849c,_0x5da968,_0x36cd8b){if(_0x36cd8b['childCount'])return!0x1;const _0x2d2ebe=_0x5da968?'paragraph':'footnoteInlineContent';return _0x37849c['insert'](_0x37849c['createElement'](_0x2d2ebe),_0x36cd8b),!0x0;}function I(_0x178611,_0x4400b8,_0x9232b6){if(0x0===_0x4400b8['length'])return 0x0;const _0x7c01b5=_0x178611['createPositionBefore'](_0x9232b6);for(let _0x32e334=0x0;_0x32e334<_0x4400b8['length'];_0x32e334++){const _0x3ff0f3=_0x4400b8[_0x32e334],_0x515b0a=_0x178611['createPositionBefore'](_0x3ff0f3['reference']);if('before'===_0x7c01b5['compareWith'](_0x515b0a))return _0x32e334;}const _0x418fc2=_0x9232b6['root'];let _0x25d0fe=-0x1;for(let _0x3ec4ef=_0x4400b8['length']-0x1;_0x3ec4ef>=0x0;_0x3ec4ef--)if(_0x4400b8[_0x3ec4ef]['reference']['root']===_0x418fc2){_0x25d0fe=_0x3ec4ef;break;}if(-0x1!==_0x25d0fe)return _0x25d0fe+0x1;const _0x39cde4=_0x178611['document']['getRootNames'](),_0x11c1f4=_0x39cde4['indexOf'](_0x418fc2['rootName']),_0x4638ba=_0x39cde4[_0x11c1f4+0x1];if(_0x4638ba){for(let _0x362994=0x0;_0x362994<_0x4400b8['length'];_0x362994++)if(_0x4400b8[_0x362994]['reference']['root']['rootName']===_0x4638ba)return _0x362994;}return _0x4400b8['length'];}class m extends _0x3c9d68{['refresh'](){const _0x57f7d4=this['editor']['model']['document']['selection'],_0x6c497c=this['_getPositionToInsertFootnote'](_0x57f7d4);this['isEnabled']=!!_0x6c497c;}['execute'](_0x271b4b){const {editor:_0x54a3c6}=this,{model:_0x6af2cc}=_0x54a3c6,{selection:_0x422357}=_0x6af2cc['document'],_0x46e66c=this['_getPositionToInsertFootnote'](_0x422357);if(!_0x46e66c)return;const _0x4a6020=_0x54a3c6['plugins']['get']('FootnotesEditing'),_0x4bcf02=_0x271b4b?.['footnoteId']??_0x12cb3d();!function(_0x21bd82){return'string'==typeof _0x21bd82&&_0x21bd82['length']>0x0&&!/\s/['test'](_0x21bd82)&&!/^\d/['test'](_0x21bd82);}(_0x4bcf02)?_0x3bd3aa('insert-footnote-command-executed-with-invalid-id'):(_0x6af2cc['change'](_0x3a0502=>{const _0x10f176=_0x3a0502['createElement']('footnoteRef',{'footnoteId':_0x4bcf02});_0x6af2cc['insertObject'](_0x10f176,_0x46e66c,null);}),_0x4a6020['_moveSelectionToFootnoteDefinition'](_0x4bcf02));}['_getPositionToInsertFootnote'](_0x459bb5){const {model:_0x1b2de8}=this['editor'],{schema:_0x255fca}=_0x1b2de8,_0x35ae37=_0x459bb5['getFirstRange']();for(const _0x4cf06b of _0x35ae37['getItems']())if(_0x255fca['isBlock'](_0x4cf06b)||_0x255fca['isObject'](_0x4cf06b))return null;const _0x90f506=_0x35ae37['end'];return _0x255fca['checkChild'](_0x90f506,'footnoteRef')?_0x90f506:null;}}class r extends _0x3a69c0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1cd9b8}=this;_0x1cd9b8['config']['define']('footnotes.multiBlock',!0x0),_0x1cd9b8['commands']['add']('insertFootnote',new m(_0x1cd9b8)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3c9eb7){const _0x48d99f=_0x1c3251([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]),_0x411c55=0x47a28506,_0x18a15a=0x47a5fd9e^_0x411c55,_0x1d8753=window[_0x1c3251([0x44,0x61,0x74,0x65])][_0x1c3251([0x6e,0x6f,0x77])](),_0x5b1ce7=_0x3c9eb7[_0x1c3251([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5db068=new window[(_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x156345=>{_0x5b1ce7[_0x1c3251([0x6f,0x6e,0x63,0x65])](_0x1c3251([0x72,0x65,0x61,0x64,0x79]),_0x156345);}),_0xc543cd={[_0x1c3251([0x6b,0x74,0x79])]:_0x1c3251([0x45,0x43]),[_0x1c3251([0x75,0x73,0x65])]:_0x1c3251([0x73,0x69,0x67]),[_0x1c3251([0x63,0x72,0x76])]:_0x1c3251([0x50,0x2d,0x32,0x35,0x36]),[_0x1c3251([0x78])]:_0x1c3251([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]),[_0x1c3251([0x79])]:_0x1c3251([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]),[_0x1c3251([0x61,0x6c,0x67])]:_0x1c3251([0x45,0x53,0x32,0x35,0x36])},_0x27d056=_0x5b1ce7[_0x1c3251([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c3251([0x67,0x65,0x74])](_0x1c3251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f7d00(){let _0x4558ca,_0x3440b=null,_0x5dfbb4=null;try{if(_0x27d056==_0x1c3251([0x47,0x50,0x4c]))return _0x1c3251([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4558ca=_0x480692(),!_0x4558ca)return _0x1c3251([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4558ca[_0x1c3251([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5dfbb4=_0x184afc(_0x4558ca[_0x1c3251([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4558ca[_0x1c3251([0x6a,0x74,0x69])])),await _0x239233()?_0x1f51d4()?_0x124271()?_0x1c3251([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35e1f8()?(_0x4558ca[_0x1c3251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c3251([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3440b=_0x2c1f39(_0x1c3251([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4558ca[_0x1c3251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c3251([0x74,0x72,0x69,0x61,0x6c])&&(_0x3440b=_0x2c1f39(_0x1c3251([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fb9e5()):_0x1c3251([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c3251([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c3251([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c3251([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x124271(){const _0x106c87=[_0x1c3251([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c3251([0x74,0x72,0x69,0x61,0x6c])][_0x1c3251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4558ca[_0x1c3251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d8753/0x3e8:0xe10*_0x18a15a;return _0x4558ca[_0x1c3251([0x65,0x78,0x70])]<_0x106c87;}function _0x1f51d4(){const _0x4c20ca=_0x4558ca[_0x1c3251([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c20ca&&(!!_0x4c20ca[_0x1c3251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3251([0x2a]))||!!_0x4c20ca[_0x1c3251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3251([0x46,0x4f,0x4f])));}function _0x35e1f8(){const _0x36ae93=_0x4558ca[_0x1c3251([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36ae93||0x0==_0x36ae93[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5eadb8}=new URL(window[_0x1c3251([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x36ae93[_0x1c3251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eadb8))return!0x0;const _0x5a69b9=_0x5eadb8[_0x1c3251([0x73,0x70,0x6c,0x69,0x74])](_0x1c3251([0x2e]));return _0x36ae93[_0x1c3251([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22a8ed=>_0x22a8ed[_0x1c3251([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3251([0x2a])))[_0x1c3251([0x6d,0x61,0x70])](_0x1dd18e=>_0x1dd18e[_0x1c3251([0x73,0x70,0x6c,0x69,0x74])](_0x1c3251([0x2e])))[_0x1c3251([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47fdbc=>_0x47fdbc[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a69b9[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c3251([0x6d,0x61,0x70])](_0x3368b1=>Array(_0x5a69b9[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3368b1[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c3251([0x66,0x69,0x6c,0x6c])](_0x3368b1[0x0]===_0x1c3251([0x2a])?_0x1c3251([0x2a]):'')[_0x1c3251([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3368b1))[_0x1c3251([0x73,0x6f,0x6d,0x65])](_0x52797f=>_0x5a69b9[_0x1c3251([0x65,0x76,0x65,0x72,0x79])]((_0x4535e1,_0x330976)=>_0x52797f[_0x330976]===_0x4535e1||_0x52797f[_0x330976]===_0x1c3251([0x2a])));}function _0x2fb9e5(){return _0x3440b&&_0x5dfbb4?new window[(_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c1adf,_0x5bc5a6)=>{_0x3440b[_0x1c3251([0x74,0x68,0x65,0x6e])](_0x1c1adf,_0x5bc5a6),_0x5dfbb4[_0x1c3251([0x74,0x68,0x65,0x6e])](_0x553056=>{_0x553056!=_0x1c3251([0x56,0x61,0x6c,0x69,0x64])&&_0x1c1adf(_0x553056);},_0x5bc5a6);}):_0x3440b||_0x5dfbb4||_0x1c3251([0x56,0x61,0x6c,0x69,0x64]);}}function _0x184afc(_0x24f0c8,_0x6071d){return new window[(_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xab0566=>{if(_0x2cd4d6())return _0xab0566(_0x1c3251([0x56,0x61,0x6c,0x69,0x64]));_0x55cee7(),_0x5b1ce7[_0x1c3251([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c3251([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc58614=!0x1;const _0x572e49=_0x12cb3d();function _0x11f0a9(_0x43cc7b){return!!_0x43cc7b&&(typeof _0x43cc7b===_0x1c3251([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43cc7b===_0x1c3251([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43cc7b[_0x1c3251([0x74,0x68,0x65,0x6e])]===_0x1c3251([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43cc7b[_0x1c3251([0x63,0x61,0x74,0x63,0x68])]===_0x1c3251([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d7116(_0x1406a0){_0x3ca191(_0x1406a0)[_0x1c3251([0x74,0x68,0x65,0x6e])](_0x443cc4=>{if(!_0x443cc4||_0x443cc4[_0x1c3251([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c3251([0x6f,0x6b]))return _0x1c3251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46d82a(_0x34e2d6(_0x572e49+_0x6071d))!=_0x443cc4[_0x1c3251([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c3251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c3251([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c3251([0x74,0x68,0x65,0x6e])](_0xd12be1=>(_0x3cde46(),_0xd12be1),()=>{const _0x460dc8=_0x10d740();return null==_0x460dc8?(_0x3cde46(),_0x1c3251([0x56,0x61,0x6c,0x69,0x64])):_0x1c3251(_0x1d8753-_0x460dc8>(0x63ae0106^_0x411c55)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c3251([0x74,0x68,0x65,0x6e])](_0xab0566)[_0x1c3251([0x63,0x61,0x74,0x63,0x68])](()=>{_0xab0566(_0x1c3251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33805b=0x47946b86^_0x411c55;function _0x3cde46(){const _0x51e443=_0x1c3251([0x6c,0x6c,0x63,0x74,0x2d])+_0x46d82a(_0x34e2d6(_0x24f0c8)),_0x30f710=_0x1d322e(_0x46d82a(window[_0x1c3251([0x4d,0x61,0x74,0x68])][_0x1c3251([0x63,0x65,0x69,0x6c])](_0x1d8753/_0x33805b)));window[_0x1c3251([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c3251([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51e443,_0x30f710);}function _0x10d740(){const _0x1d0e4c=_0x1c3251([0x6c,0x6c,0x63,0x74,0x2d])+_0x46d82a(_0x34e2d6(_0x24f0c8)),_0x54e568=window[_0x1c3251([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c3251([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0e4c);return _0x54e568?window[_0x1c3251([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d322e(_0x54e568),0x10)*_0x33805b:null;}function _0x3ca191(_0x4a6139){return new window[(_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b9873,_0x3e3d7e)=>{_0x4a6139[_0x1c3251([0x74,0x68,0x65,0x6e])](_0x3b9873,_0x3e3d7e),window[_0x1c3251([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e3d7e,0x47a351c6^_0x411c55);});}}_0x5b1ce7[_0x1c3251([0x6f,0x6e])](_0x1c3251([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f94bd,_0x1b80cc)=>{if(_0x1b80cc[0x0]!=_0x24f0c8)return _0xab0566(_0x1c3251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b80cc[0x1]={..._0x1b80cc[0x1],[_0x1c3251([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x572e49};},{[_0x1c3251([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c3251([0x68,0x69,0x67,0x68])}),_0x5b1ce7[_0x1c3251([0x6f,0x6e])](_0x1c3251([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcb647e=>{_0x11f0a9(_0xcb647e[_0x1c3251([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc58614=!0x0,_0x2d7116(_0xcb647e[_0x1c3251([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c3251([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c3251([0x6c,0x6f,0x77])}),_0x5db068[_0x1c3251([0x74,0x68,0x65,0x6e])](()=>{_0xc58614||_0xab0566(_0x1c3251([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cd4d6(){return _0x5b1ce7[_0x1c3251([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c3251([0x76,0x69,0x65,0x77])][_0x1c3251([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c3251([0x61,0x75,0x74,0x6f]);}function _0x55cee7(){_0x5b1ce7[_0x1c3251([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c3251([0x76,0x69,0x65,0x77])][_0x1c3251([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c3251([0x61,0x75,0x74,0x6f]);}}function _0x2c1f39(_0x232ad1){const _0x1aa8d0=[new window[(_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1028e0=>setTimeout(_0x1028e0,0x47abbbca^_0x411c55)),_0x5db068[_0x1c3251([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d43dd=>{let _0x3a70fb=0x0;_0x5b1ce7[_0x1c3251([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3251([0x6f,0x6e])](_0x1c3251([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e4150,_0x119803)=>{_0x119803[0x0][_0x1c3251([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a70fb++,_0x3a70fb==(0x47a284fe^_0x411c55)&&(_0x1d43dd(),_0x1e4150[_0x1c3251([0x6f,0x66,0x66])]());});}))];return window[_0x1c3251([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c3251([0x72,0x61,0x63,0x65])](_0x1aa8d0)[_0x1c3251([0x74,0x68,0x65,0x6e])](()=>_0x232ad1);}async function _0x5eab1d(){await _0x5db068,_0x5b1ce7[_0x1c3251([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3251([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2025b1,_0x5b1ce7[_0x1c3251([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3251([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2025b1,_0x5b1ce7[_0x1c3251([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c3251([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4abbd2(_0x2807f3){const _0x1baf55=_0x135195();_0x5b1ce7[_0x1baf55]=_0x1c3251([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2807f3,_0x2807f3!=_0x1c3251([0x56,0x61,0x6c,0x69,0x64])&&_0x5eab1d();}function _0x135195(){const _0x20fbfb=window[_0x1c3251([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c3251([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c3251([0x6e,0x6f,0x77])]())[_0x1c3251([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c3251([0x2e]),'');let _0xe72096=_0x1c3251([0x75]);for(let _0x24fce4=0x0;_0x24fce4<_0x20fbfb[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24fce4+=0x2){let _0xa31bc8=window[_0x1c3251([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fbfb[_0x1c3251([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24fce4,_0x24fce4+0x2));_0xa31bc8>=_0x48d99f[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa31bc8-=_0x48d99f[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe72096+=_0x48d99f[_0xa31bc8];}return _0xe72096;}function _0x480692(){const _0x307871=_0x27d056[_0x1c3251([0x73,0x70,0x6c,0x69,0x74])](_0x1c3251([0x2e]));if(0x3!=_0x307871[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58b316(_0x307871[0x1]);function _0x58b316(_0x4160ec){const _0x39998d=_0x592687(_0x4160ec);return _0x39998d&&_0x2a2256()?_0x39998d:null;function _0x2a2256(){const _0x33396e=_0x39998d[_0x1c3251([0x6a,0x74,0x69])],_0x3b45a6=window[_0x1c3251([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33396e[_0x1c3251([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33396e[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c6e7c={..._0x39998d,[_0x1c3251([0x6a,0x74,0x69])]:_0x33396e[_0x1c3251([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33396e[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c6e7c[_0x1c3251([0x76,0x63])],_0x34e2d6(_0x4c6e7c)==_0x3b45a6;}}}async function _0x239233(){let _0x874607=!0x0;try{const _0x83172e=_0x27d056[_0x1c3251([0x73,0x70,0x6c,0x69,0x74])](_0x1c3251([0x2e])),[_0x4df428,_0x363b0f,_0x292b97]=_0x83172e;return _0x33deb1(_0x4df428),await _0x488141(_0x4df428,_0x363b0f,_0x292b97),_0x874607;}catch{return!0x1;}function _0x33deb1(_0x25a481){const _0x4f5a2d=_0x592687(_0x25a481);_0x4f5a2d&&_0x4f5a2d[_0x1c3251([0x61,0x6c,0x67])]==_0x1c3251([0x45,0x53,0x32,0x35,0x36])||(_0x874607=!0x1);}async function _0x488141(_0x2954e0,_0x1339b0,_0x190ceb){const _0x2243c0=window[_0x1c3251([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c3251([0x66,0x72,0x6f,0x6d])](_0x18959c(_0x190ceb),_0x7144b6=>_0x7144b6[_0x1c3251([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe3afc9=new window[(_0x1c3251([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c3251([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2954e0+_0x1c3251([0x2e])+_0x1339b0),_0x344a71=window[_0x1c3251([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c3251([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x344a71)return;const _0xbbf568=await _0x344a71[_0x1c3251([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c3251([0x6a,0x77,0x6b]),_0xc543cd,{[_0x1c3251([0x6e,0x61,0x6d,0x65])]:_0x1c3251([0x45,0x43,0x44,0x53,0x41]),[_0x1c3251([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c3251([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c3251([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x344a71[_0x1c3251([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c3251([0x6e,0x61,0x6d,0x65])]:_0x1c3251([0x45,0x43,0x44,0x53,0x41]),[_0x1c3251([0x68,0x61,0x73,0x68])]:{[_0x1c3251([0x6e,0x61,0x6d,0x65])]:_0x1c3251([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbbf568,_0x2243c0,_0xe3afc9)||(_0x874607=!0x1);}}function _0x592687(_0x503752){return _0x503752[_0x1c3251([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c3251([0x65,0x79]))?JSON[_0x1c3251([0x70,0x61,0x72,0x73,0x65])](_0x18959c(_0x503752)):null;}function _0x18959c(_0x369db5){return window[_0x1c3251([0x61,0x74,0x6f,0x62])](_0x369db5[_0x1c3251([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c3251([0x2b]))[_0x1c3251([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c3251([0x2f])));}function _0x34e2d6(_0x9958e6){let _0x348e7a=0x1505;function _0x21524e(_0x258079){for(let _0x20e459=0x0;_0x20e459<_0x258079[_0x1c3251([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20e459++){const _0x3e0864=_0x258079[_0x1c3251([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20e459);_0x348e7a=(_0x348e7a<<0x5)+_0x348e7a+_0x3e0864,_0x348e7a&=_0x348e7a;}}function _0x830fd6(_0xa3515a){Array[_0x1c3251([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa3515a)?_0xa3515a[_0x1c3251([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x830fd6):_0xa3515a&&typeof _0xa3515a==_0x1c3251([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c3251([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa3515a)[_0x1c3251([0x73,0x6f,0x72,0x74])]()[_0x1c3251([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1acfbe,_0x4a001b])=>{_0x21524e(_0x1acfbe),_0x830fd6(_0x4a001b);}):_0x21524e(window[_0x1c3251([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa3515a));}return _0x830fd6(_0x9958e6),_0x348e7a>>>0x0;}function _0x46d82a(_0x37b5fb){return _0x37b5fb[_0x1c3251([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c3251([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c3251([0x30]));}function _0x1d322e(_0x78ca72){return _0x78ca72[_0x1c3251([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c3251([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c3251([0x6a,0x6f,0x69,0x6e])]('');}function _0x2025b1(){}function _0x1c3251(_0x526bc6){return _0x526bc6['map'](_0x24e23c=>String['fromCharCode'](_0x24e23c))['join']('');}_0x4abbd2(await _0x3f7d00());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b636e){const {plugins:_0x265670,editing:_0x1ccc08,model:_0x58ee16}=this['editor'],_0x3ab2a9=_0x265670['get'](c)['getFootnote'](_0x4b636e);return!!_0x3ab2a9&&(_0x58ee16['change'](_0x240e0c=>{_0x240e0c['setSelection'](_0x240e0c['createPositionAt'](_0x3ab2a9['definition'],'end'));}),_0x1ccc08['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1ca2d7){const {plugins:_0xe85f5e,editing:_0x290e8e,model:_0x57991c}=this['editor'],_0x179f30=_0xe85f5e['get'](c)['getFootnote'](_0x1ca2d7);return!!_0x179f30&&(_0x57991c['change'](_0x66a393=>{_0x66a393['setSelection'](_0x179f30['reference'],'on');}),_0x290e8e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3452c9}=this['editor']['model'],_0x145c65=this['editor']['config']['get']('footnotes.multiBlock');_0x3452c9['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3452c9['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3452c9['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x145c65?_0x3452c9['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3452c9['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3452c9['addChildCheck'](_0x152077=>{for(const _0x33cf0f of _0x152077)if('footnoteDefinition'===_0x33cf0f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4ee595}=this,{conversion:_0x2c055f,editing:_0x3f7c0a}=_0x4ee595,{t:t}=_0x4ee595['locale'];_0x2c055f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x9a0fb7,{writer:_0x5ea4ff,consumable:_0x390453})=>{const _0x2ba448=_0x9a0fb7['getChild'](0x0);if(!_0x2ba448||!_0x2ba448['is']('element','a'))return null;const _0x265509=_0x2ba448['getAttribute']('href')||'';if(!_0x265509['startsWith']('#'))return null;const _0x2944b7=_0x265509['replace'](/^#/,'');if(!_0x2944b7)return null;_0x390453['consume'](_0x2ba448,{'name':!0x0,'attributes':['href']});for(const {item:_0x15abe4}of _0x3f7c0a['view']['createRangeIn'](_0x2ba448))_0x15abe4['is']('$textProxy')?_0x390453['consume'](_0x15abe4['textNode'],{'name':!0x0}):_0x15abe4['is']('element')&&_0x390453['consume'](_0x15abe4,{'name':!0x0});return _0x5ea4ff['createElement']('footnoteRef',{'footnoteId':_0x2944b7});}}),_0x2c055f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4e0e1e,{writer:_0x2c79be})=>D(_0x4e0e1e,_0x2c79be)}),_0x2c055f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x355d13,{writer:_0x142f81})=>{const _0x5b30f=_0x355d13['getAttribute']('footnoteCounter');return _0x184d76(D(_0x355d13,_0x142f81),_0x142f81,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5b30f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x173827}=this,{t:t}=_0x173827['locale'],{conversion:_0x55fa03}=_0x173827;_0x55fa03['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x55fa03['for']('upcast')['add'](_0x30ec12=>{_0x30ec12['on']('element:ol',(_0x38ea11,_0xfcd9be,_0x4c5139)=>{const _0x46e52f=_0xfcd9be['viewItem'];if(!_0x46e52f['hasClass']('footnotes-list')||!_0xfcd9be['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4c5139['consumable']['consume'](_0x46e52f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xdd8614,modelCursor:_0xe6cc11}=_0x4c5139['convertChildren'](_0xfcd9be['viewItem'],_0xfcd9be['modelCursor']);_0xfcd9be['modelRange']=_0xdd8614,_0xfcd9be['modelCursor']=_0xe6cc11;}),_0x30ec12['on']('element:hr',(_0x58283d,_0x2055e5,_0x2c4d5c)=>{const _0x262645=_0x2055e5['viewItem'];_0x262645['hasClass']('footnotes-divider')&&_0x2055e5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2c4d5c['consumable']['consume'](_0x262645,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x55fa03['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e3a70,{writer:_0x5ccf15})=>v(_0x5ccf15)}),_0x55fa03['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x708c82,{writer:_0x429e20})=>{const _0x1f1348=v(_0x429e20,{'data-footnotes-list-label':t('Footnotes')}),_0x5ac96a=_0x184d76(_0x1f1348,_0x429e20,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x429e20['setCustomProperty']('footnotesDefinitions',!0x0,_0x5ac96a),_0x5ac96a;}});}['_defineDefinitionConverters'](){const {editor:_0x47ae97}=this,{conversion:_0x309395,locale:_0x4b7068}=_0x47ae97,_0x240927=_0x47ae97['config']['get']('footnotes.multiBlock');_0x309395['for']('upcast')['add'](_0x43e67b=>{_0x43e67b['on']('element:li',(_0x184113,_0x275d37,_0x1d65a7)=>{const _0x5afe83=_0x275d37['viewItem'];if(!_0x5afe83['hasClass']('footnote-definition')||!_0x5afe83['getAttribute']('id'))return;const _0x28c46e=_0x5afe83['parent'];if(!_0x28c46e['is']('element','ol')||!_0x28c46e['hasClass']('footnotes-list'))return;if(!_0x1d65a7['consumable']['test'](_0x5afe83,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5ddd44=_0x1d65a7['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5afe83['getAttribute']('id')});if(!_0x1d65a7['safeInsert'](_0x5ddd44,_0x275d37['modelCursor']))return;_0x1d65a7['consumable']['consume'](_0x5afe83,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5518cd=Array['from'](_0x5afe83['getChildren']())['find'](_0x209cdc=>_0x209cdc['is']('element')&&_0x209cdc['hasClass']('footnote-content'));for(const _0x2b6ee6 of _0x5afe83['getChildren']())_0x2b6ee6['is']('element')&&(_0x1d65a7['consumable']['consume'](_0x2b6ee6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1d65a7['consumable']['consume'](_0x2b6ee6,{'name':!0x0,'classes':'footnote-content'}));if(_0x5518cd){if(_0x240927)_0x1d65a7['convertChildren'](_0x5518cd,_0x5ddd44);else{const _0x4a5524=_0x1d65a7['writer']['createElement']('footnoteInlineContent');_0x1d65a7['writer']['insert'](_0x4a5524,_0x5ddd44),_0x1d65a7['convertChildren'](_0x5518cd,_0x4a5524);}}_0x1d65a7['updateConversionResult'](_0x5ddd44,_0x275d37);});}),_0x309395['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4b6761,{writer:_0x150030})=>b(_0x4b6761,_0x150030,_0x4b7068,{'dataPipeline':!0x0})}),_0x309395['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5c04d5,{writer:_0x462b2})=>b(_0x5c04d5,_0x462b2,_0x4b7068)});}['_defineBogusParagraphConverters'](){const {editor:_0x501b5a}=this,{conversion:_0x543521}=_0x501b5a;_0x501b5a['config']['get']('footnotes.multiBlock')?(_0x543521['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x543521['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x501b5a['model']['document'],'change:data',()=>{!function(_0x1d4c31,_0x45d162){const _0x2a643a=_0x1d4c31['document']['differ'],_0x35869a=new Set();for(const _0x25674d of _0x2a643a['getChanges']()){const _0x74bda3='attribute'==_0x25674d['type']?_0x25674d['range']['start']['parent']:_0x25674d['position']['parent'];_0x74bda3['is']('element','footnoteDefinition')&&_0x35869a['add'](_0x74bda3);}for(const _0x126af2 of _0x35869a['values']()){const _0x3baa82=Array['from'](_0x126af2['getChildren']())['filter'](_0x4bde33=>g(_0x4bde33,_0x45d162['mapper']));for(const _0x10e145 of _0x3baa82)_0x45d162['reconvertItem'](_0x10e145);}}(_0x501b5a['model'],_0x501b5a['editing']);})):(_0x543521['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x543521['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3720c7,{writer:_0xb83907})=>{const _0x55339f=_0xb83907['createContainerElement']('span');return _0xb83907['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55339f),_0x55339f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x41b9f5}=this,{editing:_0x1d4d0c,t:t}=_0x41b9f5,_0x89b8a3=_0x41b9f5['model']['document']['selection'];_0x41b9f5['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x41b9f5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1d4d0c['view']['document'],'enter',(_0x3c5b04,_0x40d48a)=>{const _0xb66a49=function(_0x29d17c){const _0x10f829=_0x29d17c['getSelectedElement']();if(_0x10f829?.['is']('element','footnoteRef'))return _0x10f829;return null;}(_0x89b8a3);if(_0xb66a49){const _0x8f441d=_0xb66a49['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x8f441d),_0x40d48a['preventDefault'](),_0x3c5b04['stop']();}},{'context':_0x140092});}['_defineClickHandlers'](){const {editor:_0xc94128}=this,{editing:_0x52a69e}=_0xc94128;_0xc94128['editing']['view']['addObserver'](_0x2b0401),_0xc94128['editing']['view']['addObserver'](_0x3a16b0);let _0x59935f=!0x1;this['listenTo'](_0x52a69e['view']['document'],'pointerdown',(_0x4d50c1,_0xffc1e1)=>{const {target:_0x24ebf1}=_0xffc1e1,_0x39115e=_0x52a69e['view']['document']['selection'];_0x59935f=!!(_0x24ebf1?.['is']('element','a')&&_0x24ebf1['parent']?.['is']('element','sup')&&_0x24ebf1['parent']['hasClass']('footnote'))&&_0x39115e['getSelectedElement']()===_0x24ebf1['parent'];},{'priority':'high'}),this['listenTo'](_0x52a69e['view']['document'],'click',(_0xc86cbc,_0x457bfa)=>{const {target:_0x4e65ea}=_0x457bfa;if(!_0x4e65ea?.['is']('element','a'))return;if(_0x4e65ea['parent']?.['is']('element','sup')&&_0x4e65ea['parent']['hasClass']('footnote')&&!_0x59935f)return void _0x457bfa['preventDefault']();let _0x350218=_0x4e65ea['getAttribute']('href');if(!_0x350218?.['startsWith']('#'))return;_0x350218=_0x350218['slice'](0x1);let _0x1752f6=!0x1;(_0x350218['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x350218['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x350218))&&(_0x1752f6=!0x0),_0x1752f6&&(_0x457bfa['preventDefault'](),_0xc86cbc['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1d4f52}={}){return(_0x6967dc,{writer:_0x4cfec3})=>{if(!p(_0x6967dc))return null;if(!_0x1d4f52)return _0x4cfec3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1bd9a1=_0x4cfec3['createContainerElement']('p');return _0x4cfec3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1bd9a1),_0x1bd9a1;};}function p(_0x2f4d2b){const {parent:_0x5a0144}=_0x2f4d2b;if(!_0x5a0144?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5a0144['childCount'])return!0x1;for(const _0x7d3bc4 of _0x2f4d2b['getAttributeKeys']())if(!_0x7d3bc4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x7d3bc4)return!0x1;return!0x0;}function g(_0x2fa99a,_0x317404){if(!_0x2fa99a['is']('element','paragraph'))return!0x1;const _0x98c4a9=_0x317404['toViewElement'](_0x2fa99a);return!!_0x98c4a9&&p(_0x2fa99a)!==_0x98c4a9['is']('element','span');}function J(_0xa579f2){return _0x140092(_0xa579f2)&&_0xa579f2['is']('containerElement')&&!!_0xa579f2['getCustomProperty']('footnotesDefinitions');}function v(_0x17f5b1,_0x458f5d={}){const _0x5ea72c=_0x17f5b1['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xaeec36=_0x17f5b1['createContainerElement']('ol',{'class':'footnotes-list'},_0x17f5b1['createSlot']());return _0x17f5b1['createContainerElement']('div',{'class':'footnotes',..._0x458f5d},[_0x5ea72c,_0xaeec36]);}function D(_0x4390b,_0xa89b58){const _0x131511=_0x4390b['getAttribute']('footnoteId'),_0x16703b=_0x4390b['getAttribute']('footnoteCounter'),_0x2b2ec1=_0xa89b58['createUIElement']('a',{'href':'#'+_0x131511},function(_0x2f588c){const _0x4280fe=this['toDomElement'](_0x2f588c);return _0x4280fe['textContent']=_0x16703b,_0x4280fe;}),_0x36a40c=_0xa89b58['createContainerElement']('sup',{'id':'ref-'+_0x131511,'class':'footnote'},[_0x2b2ec1]);return _0x36a40c['getFillerOffset']=()=>null,_0x36a40c;}function b(_0x15c42a,_0x114f15,_0x571c3e,{dataPipeline:_0x3f7612}={}){const {t:t}=_0x571c3e,_0x587396=_0x15c42a['getAttribute']('footnoteId'),_0xbc4447=_0x114f15['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x587396},function(_0x4f5fe3){const _0x110c30=this['toDomElement'](_0x4f5fe3);return _0x110c30['innerText']='^',_0x110c30;}),_0x2de74a=_0x3f7612?_0x114f15['createContainerElement']('div',{'class':'footnote-content'}):_0x4a6bd6(_0x114f15['createEditableElement']('div',{'class':'footnote-content'}),_0x114f15,{'label':t('Footnote\x20content.')});return _0x114f15['insert'](_0x114f15['createPositionAt'](_0x2de74a,0x0),_0x114f15['createSlot']()),_0x114f15['createContainerElement']('li',{'class':'footnote-definition','id':_0x587396},[_0xbc4447,_0x2de74a]);}class e extends _0x3a69c0{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x498c2d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2f555c}=this,{plugins:_0x582c2d,model:_0x2995fb}=_0x2f555c,_0x143318=_0x582c2d['get'](_0x498c2d),_0x2a5b9f=_0x582c2d['get'](c);this['listenTo'](_0x143318,'outputTransformation',(_0x588744,_0x5cd9f9)=>{const _0x393b7c=f(_0x2995fb['createRangeIn'](_0x5cd9f9['content']));if(!_0x393b7c['length'])return;const _0x3263e4=_0x2a5b9f['getFootnotes'](),_0x1ce0eb=_0x393b7c['reduce']((_0x41fc2e,_0x447772)=>{const _0x48f984=_0x3263e4['find'](_0x4708e7=>_0x4708e7['id']===_0x447772);if(_0x48f984){const _0x3b8640=_0x2f555c['data']['toView'](_0x48f984['definition'],{'isClipboardPipeline':!0x0}),_0x59e547=_0x2f555c['data']['htmlProcessor']['toData'](_0x3b8640);_0x41fc2e[_0x48f984['id']]=_0x59e547;}return _0x41fc2e;},Object['create'](null));_0x5cd9f9['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1ce0eb));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4c0445}=this,{model:_0x107c3d,plugins:_0x2a7ae0}=_0x4c0445,{view:_0x5c38f0}=_0x4c0445['editing'],_0x5c24d3=_0x2a7ae0['get'](_0x498c2d),_0x5eecc0=_0x2a7ae0['get'](c);let _0x2b3091=null;this['listenTo'](_0x5c38f0['document'],'clipboardInput',(_0x15adf0,_0x506ecd)=>{const _0x3ac53f=_0x506ecd['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2b3091=_0x3ac53f?JSON['parse'](_0x3ac53f):null;}),this['listenTo'](_0x5c24d3,'contentInsertion',(_0xc0ff02,_0x32db7f)=>{const _0x48b9fb=_0x32db7f['sourceEditorId']===this['editor']['id'];_0x48b9fb&&'drop'===_0x32db7f['method']||_0x107c3d['change'](_0x121834=>{let _0x23d4a6=_0x5eecc0['getFootnotesDefinitionsObjectElement']();const _0x52fec7=!!_0x23d4a6&&Array['from'](_0x107c3d['document']['selection']['getSelectedBlocks']())['includes'](_0x23d4a6);if((_0x23d4a6&&!_0x52fec7||!_0x23d4a6&&!_0x2b3091)&&function(_0x3c0aaa,_0x2c5168){const _0x2c3c70=[];for(const {item:_0x21cc7e}of _0x3c0aaa['createRangeIn'](_0x2c5168))_0x21cc7e['is']('element','footnotesDefinitions')&&_0x2c3c70['push'](_0x21cc7e);for(const _0x9732fd of _0x2c3c70)_0x3c0aaa['remove'](_0x9732fd);}(_0x121834,_0x32db7f['content']),!_0x2b3091)return;const {selection:_0x5bba9a}=_0x107c3d['document'],_0x50314b=_0x5bba9a['getFirstRange']()['root'];_0x23d4a6&&!_0x52fec7||(_0x23d4a6=function(_0x1544ef,_0x2572fe){for(const {item:_0x4f8607}of _0x1544ef['createRangeIn'](_0x2572fe))if(_0x4f8607['is']('element','footnotesDefinitions'))return _0x4f8607;return null;}(_0x121834,_0x32db7f['content']),_0x23d4a6||=_0x5eecc0['_insertEmptyFootnotesDefinitionsContainer'](_0x121834,_0x50314b));const _0x4301d2=Array['from'](_0x5bba9a['getRanges']())['flatMap'](f),_0x2f2e6c=function(_0x23b05d,_0x382d46,_0x101b2e){const _0x35a06d=Object['create'](null);for(const {item:_0x1061b4}of _0x23b05d['createRangeIn'](_0x382d46))if(_0x1061b4['is']('element','footnoteRef')){const _0x4aec07=_0x1061b4['getAttribute']('footnoteId');if(!_0x101b2e(_0x4aec07))continue;_0x35a06d[_0x4aec07]||(_0x35a06d[_0x4aec07]=_0x12cb3d()),_0x23b05d['setAttribute']('footnoteId',_0x35a06d[_0x4aec07],_0x1061b4);}return _0x35a06d;}(_0x121834,_0x32db7f['content'],_0x330020=>{if(!_0x48b9fb)return!0x0;return!!_0x5eecc0['getFootnote'](_0x330020)&&!_0x4301d2['includes'](_0x330020);});for(const [_0x23d6b8,_0x1485be]of Object['entries'](_0x2b3091)){const _0x370f1d=_0x2f2e6c[_0x23d6b8]||_0x23d6b8,_0x1c38df=_0x121834['createElement']('footnoteDefinition',{'footnoteId':_0x370f1d}),_0x4c31cd=_0x4c0445['data']['htmlProcessor']['toView'](_0x1485be),_0x522268=_0x4c0445['data']['toModel'](_0x4c31cd,_0x1c38df);_0x121834['append'](_0x522268,_0x1c38df),_0x121834['insert'](_0x1c38df,_0x23d4a6,'end');}_0x2b3091=null;});});}}function f(_0x81a0b5){const _0x441674=new Set();for(const {item:_0x5a8bcf}of _0x81a0b5)_0x5a8bcf['is']('element','footnoteRef')&&_0x441674['add'](_0x5a8bcf['getAttribute']('footnoteId'));return Array['from'](_0x441674);}class i extends _0x3a69c0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x145489}=this,{componentFactory:_0x4053d0}=_0x145489['ui'];_0x4053d0['add']('insertFootnote',x(_0x145489,_0x17cf26)),_0x4053d0['add']('menuBar:insertFootnote',x(_0x145489,_0x5d985f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18544a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x566576;for(const _0x16a649 in _0x18544a){const _0x3600d4=_0x16a649,_0x54943d=_0x18544a[_0x3600d4];if('footnotesLicenseKeyValid'==_0x54943d||'footnotesLicenseKeyInvalid'==_0x54943d||'footnotesLicenseKeyExpired'==_0x54943d||'footnotesLicenseKeyDomainLimit'==_0x54943d||'footnotesLicenseKeyNotAllowed'==_0x54943d||'footnotesLicenseKeyEvaluationLimit'==_0x54943d||'footnotesLicenseKeyTrialLimit'==_0x54943d||'footnotesLicenseKeyUsageLimit'==_0x54943d){delete _0x18544a[_0x3600d4],_0x566576=_0x54943d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x566576&&_0x18544a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x566576&&_0x18544a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x566576&&_0x18544a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x566576&&_0x18544a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x566576&&_0x18544a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x566576&&_0x18544a['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x566576&&_0x18544a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x1b9f12,_0x43b841){const _0x3f3831=_0x1b9f12['commands']['get']('insertFootnote');return _0x12380c=>{const {t:t}=_0x12380c,_0x128340=new _0x43b841(_0x12380c),_0xd1bbb5=_0x128340 instanceof _0x5d985f;return _0x128340['bind']('isEnabled')['to'](_0x3f3831,'isEnabled'),_0x128340['set']({'label':t(_0xd1bbb5?'Footnote':'Insert\x20footnote'),'icon':_0x30e662,'tooltip':!0x0}),_0x128340['on']('execute',()=>{_0x3f3831['execute'](),_0x1b9f12['editing']['view']['focus']();}),_0x128340;};}class lt extends _0x3a69c0{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 _0x3c9d68{['refresh'](){const {editor:_0x338a56}=this,_0x145107=_0x338a56['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x145107,this['value']=_0x145107?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x132352}){const {editor:_0x49ff6c}=this,_0x132e2f=_0x49ff6c['plugins']['get'](c),_0x1d662e=_0x132e2f['getFootnotesDefinitionsObjectElement']();_0x1d662e&&Q['includes'](_0x132352)&&_0x49ff6c['model']['change'](_0x5daa27=>{_0x5daa27['setAttribute']('footnotesListStyle',_0x132352,_0x1d662e),_0x132e2f['_updateFootnotesCounters'](_0x5daa27);});}}class C extends _0x3c9d68{['refresh'](){const {editor:_0xa5848b}=this,_0x22f2fe=_0xa5848b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x22f2fe,this['value']=_0x22f2fe?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x558bed}){const {editor:_0x41b662}=this,_0x219788=_0x41b662['plugins']['get'](c),_0x70e13e=_0x219788['getFootnotesDefinitionsObjectElement']();_0x70e13e&&Number['isInteger'](_0x558bed)&&_0x41b662['model']['change'](_0x80cd75=>{_0x80cd75['setAttribute']('footnotesListStart',_0x558bed,_0x70e13e),_0x219788['_updateFootnotesCounters'](_0x80cd75);});}}class P extends _0x3a69c0{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x87e22b}=this;_0x87e22b['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x87e22b['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x87e22b['commands']['add']('footnotesStyle',new S(_0x87e22b)),_0x87e22b['commands']['add']('footnotesStart',new C(_0x87e22b)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x22e86d}=this,{schema:_0x3ce679}=_0x22e86d['model'];_0x3ce679['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x52b54f}=this,{conversion:_0x30d3fb,model:_0x45541e}=_0x52b54f,{schema:_0x382737}=_0x45541e;_0x30d3fb['for']('upcast')['add'](_0x25efcb=>{_0x25efcb['on']('element:ol',(_0x5b3047,_0x1486df,_0x41034b)=>{const _0x3d2c96=_0x1486df['viewItem'],_0x1ef4ba=_0x1486df['modelCursor']?.['parent'];_0x3d2c96['hasClass']('footnotes-list')&&_0x1ef4ba?.['is']('element','footnotesDefinitions')&&(function(_0x2e46fa,_0x40e54e,_0x33665b,_0x30a058){if(!_0x30a058['checkAttribute'](_0x40e54e,'footnotesListStart'))return;let _0x3db6c8=0x1;const _0xecedd8=_0x33665b['consumable']['consume'](_0x2e46fa,{'attributes':'start'});if(_0xecedd8){const _0x35d7d5=Number['parseInt'](_0x2e46fa['getAttribute']('start'),0xa);Number['isNaN'](_0x35d7d5)||(_0x3db6c8=_0x35d7d5);}!_0xecedd8&&_0x40e54e['hasAttribute']('footnotesListStart')||_0x33665b['writer']['setAttribute']('footnotesListStart',_0x3db6c8,_0x40e54e);}(_0x3d2c96,_0x1ef4ba,_0x41034b,_0x382737),function(_0x4ddb2d,_0x2077cb,_0x3ffb09,_0x2fd789){if(!_0x2fd789['checkAttribute'](_0x2077cb,'footnotesListStyle'))return;let _0x622dbb='decimal',_0x427b69=!0x1;if(_0x3ffb09['consumable']['consume'](_0x4ddb2d,{'attributes':'type'})){const _0x1c0246={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4ddb2d['getAttribute']('type')];_0x1c0246&&(_0x622dbb=_0x1c0246),_0x427b69=!0x0;}_0x3ffb09['consumable']['consume'](_0x4ddb2d,{'styles':'list-style-type'})&&(_0x622dbb=_0x4ddb2d['getStyle']('list-style-type'),_0x427b69=!0x0),!_0x427b69&&_0x2077cb['hasAttribute']('footnotesListStyle')||_0x3ffb09['writer']['setAttribute']('footnotesListStyle',_0x622dbb,_0x2077cb);}(_0x3d2c96,_0x1ef4ba,_0x41034b,_0x382737));});}),_0x30d3fb['for']('downcast')['add'](_0x55a420=>{_0x55a420['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x56a8d0,_0x38e312,_0x4b87b7)=>{if(!_0x4b87b7['consumable']['consume'](_0x38e312['item'],_0x56a8d0['name']))return;const _0x5d96dd=M(_0x38e312['item'],_0x4b87b7['mapper']),{attributeNewValue:_0x215d13}=_0x38e312;null==_0x215d13||0x1===_0x215d13?_0x4b87b7['writer']['removeAttribute']('start',_0x5d96dd):_0x4b87b7['writer']['setAttribute']('start',String(_0x215d13),_0x5d96dd);}),_0x55a420['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x4134c9,_0x85c684,_0x23cdb5)=>{if(!_0x23cdb5['consumable']['consume'](_0x85c684['item'],_0x4134c9['name']))return;const _0x42f87c=M(_0x85c684['item'],_0x23cdb5['mapper']),{attributeNewValue:_0x3fd80b}=_0x85c684;_0x3fd80b&&'decimal'!==_0x3fd80b?_0x23cdb5['writer']['setStyle']('list-style-type',_0x3fd80b,_0x42f87c):_0x23cdb5['writer']['removeStyle']('list-style-type',_0x42f87c);});});}['_definePostfixer'](){const {editor:_0x4c8aa6}=this,{model:_0x54b12b}=_0x4c8aa6,_0x3c67e9=_0x4c8aa6['plugins']['get'](c),_0x4ac8ac=this['_getDefaultListStyle'](),_0x2a7b28=this['_getDefaultStartIndex']();_0x54b12b['document']['registerPostFixer'](_0x35f5ab=>{const _0x2a5859=_0x54b12b['document']['differ']['getChanges']();let _0x4de4ee=!0x1;for(const _0x53b143 of _0x2a5859){if('insert'!==_0x53b143['type']||'$text'===_0x53b143['name'])continue;const _0x1cac38=_0x54b12b['createRangeOn'](_0x53b143['position']['nodeAfter']);for(const _0x5c4502 of _0x1cac38['getItems']())_0x5c4502['is']('element','footnotesDefinitions')&&(!_0x5c4502['hasAttribute']('footnotesListStart')&&_0x54b12b['schema']['checkAttribute'](_0x5c4502,'footnotesListStart')&&(_0x35f5ab['setAttribute']('footnotesListStart',_0x2a7b28,_0x5c4502),_0x4de4ee=!0x0),!_0x5c4502['hasAttribute']('footnotesListStyle')&&_0x54b12b['schema']['checkAttribute'](_0x5c4502,'footnotesListStyle')&&(_0x35f5ab['setAttribute']('footnotesListStyle',_0x4ac8ac,_0x5c4502),_0x4de4ee=!0x0));}return _0x4de4ee&&_0x3c67e9['_updateFootnotesCounters'](_0x35f5ab),_0x4de4ee;});}['_defineFormatter'](){const {editor:_0x465faa}=this;_0x465faa['plugins']['get'](c)['setFootnoteFormatter'](_0x5105fa=>this['_formatFootnoteListValue'](_0x5105fa));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x36beeb,value:_0x3f5bdc,digits:_0xca2f29}){const _0xaf6fc9=_0x36beeb['getAttribute']('footnotesListStyle'),_0x729ae5=_0x36beeb['getAttribute']('footnotesListStart'),_0x4c01ad=Math['floor'](_0x3f5bdc)+(_0x729ae5??0x1)-0x1;switch(_0xaf6fc9){case'decimal-leading-zero':return function(_0x5cc018,_0x2c81fb){return String(_0x5cc018)['padStart'](_0x2c81fb,'0');}(_0x4c01ad,Math['max'](0x2,_0xca2f29));case'lower-alpha':case'lower-latin':return N(_0x4c01ad,!0x1);case'upper-alpha':case'upper-latin':return N(_0x4c01ad,!0x0);case'lower-roman':return X(_0x4c01ad,!0x1);case'upper-roman':return X(_0x4c01ad,!0x0);default:return String(_0x4c01ad);}}}function M(_0x2f5fab,_0x585c3a){const _0x15b78f=_0x585c3a['toViewElement'](_0x2f5fab);return Array['from'](_0x15b78f['getChildren']())['find'](_0x4bb47e=>_0x4bb47e['is']('element','ol')&&_0x4bb47e['hasClass']('footnotes-list'));}function N(_0x416f9a,_0x99419f){let _0x5404f7='',_0x11046d=_0x416f9a;for(;_0x11046d>0x0;){const _0x23156b=(_0x11046d-0x1)%0x1a;_0x5404f7=String['fromCharCode'](0x61+_0x23156b)+_0x5404f7,_0x11046d=Math['floor']((_0x11046d-0x1)/0x1a);}return _0x99419f?_0x5404f7['toUpperCase']():_0x5404f7;}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(_0x334f1f,_0x296f8a){let _0x12e486='',_0xc3b776=_0x334f1f;for(const {value:_0x37c436,numeral:_0x11de8d}of V)for(;_0xc3b776>=_0x37c436;)_0x12e486+=_0x11de8d,_0xc3b776-=_0x37c436;return _0x296f8a?_0x12e486:_0x12e486['toLowerCase']();}class H extends _0x55642b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x39f746();['focusCycler'];constructor(_0x46213c,{styleButtonViews:_0x12e731,styleGridAriaLabel:_0x146464}){super(_0x46213c),(this['focusCycler']=new _0xd5ec18({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x12e731,_0x146464),[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 _0x926cfe of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x926cfe['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 _0x4e81a9=_0x462a79=>_0x462a79['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e81a9),this['keystrokes']['set']('arrowleft',_0x4e81a9),this['keystrokes']['set']('arrowup',_0x4e81a9),this['keystrokes']['set']('arrowdown',_0x4e81a9);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x401869,_0x1bfa41){const _0x11a83f=new _0x55642b(this['locale']);return _0x11a83f['children']=_0x11a83f['createCollection'](),_0x11a83f['children']['addMany'](_0x401869),_0x11a83f['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1bfa41,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x11a83f['children']}),_0x11a83f['children']['delegate']('execute')['to'](this),_0x11a83f['focus']=function(){for(const _0x44f171 of this['children'])if(_0x44f171 instanceof _0x17cf26&&_0x44f171['isOn'])return void _0x44f171['focus']();this['children']['first']['focus']();},_0x11a83f['focusTracker']=new ot(),_0x11a83f['keystrokes']=new rt(),_0x11a83f['render'](),_0x11a83f['keystrokes']['listenTo'](_0x11a83f['element']),this['children']['add'](_0x11a83f),_0x11a83f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3e7d8f=this['_createStartIndexPropertyView'](),_0x215f17=[_0x3e7d8f],_0x3d85ab=new st(this['locale'],_0x215f17);return _0x3d85ab['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3d85ab['buttonView']['bind']('isEnabled')['toMany'](_0x215f17,'isEnabled',(..._0x1ecbd3)=>_0x1ecbd3['some'](_0x576ebc=>_0x576ebc)),_0x3d85ab['buttonView']['on']('change:isEnabled',(_0x46028b,_0x20f122,_0x1a5899)=>{_0x1a5899||(_0x3d85ab['isCollapsed']=!0x0);}),this['children']['add'](_0x3d85ab),[_0x3e7d8f,_0x3d85ab];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x6c3073=new it(this['locale'],et);return _0x6c3073['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x6c3073['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x6c3073['fieldView']['on']('input',()=>{const _0x391448=_0x6c3073['fieldView']['element'],_0x5ca4cf=_0x391448['valueAsNumber'];Number['isNaN'](_0x5ca4cf)?_0x6c3073['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x391448['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5ca4cf}):_0x6c3073['errorText']=t(_0x5ca4cf<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x6c3073;}}class j extends _0x3a69c0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3ad32f,_0x7042da];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4edfba}=this,{componentFactory:_0x226039}=_0x4edfba['ui'];_0x4edfba['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x226039['add']('footnotesStyle',function(_0x4479c2){return _0x227be3=>{const {t:t}=_0x227be3,_0x264857=_0x4479c2['commands']['get']('footnotesStyle'),_0x36308c=_0x1051bd(_0x227be3),{buttonView:_0x1754f1}=_0x36308c;return _0x36308c['class']='ck-footnotes-styles-dropdown',_0x36308c['bind']('isEnabled')['to'](_0x264857,'isEnabled'),_0x1754f1['set']({'label':t('Footnotes\x20style'),'icon':_0x30e662,'tooltip':!0x0}),_0x36308c['once']('change:isOpen',()=>{const _0x3dfda9=function({editor:_0x3312ef,dropdownView:_0x540b42}){const {t:t}=_0x3312ef['locale'],_0x2abdaf=t('Footnotes\x20definitions\x20styles'),_0x23dff4=function(_0x9fa048){const t=_0x9fa048['locale']['t'],_0x490337=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x18a73e},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x230045},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xf0f772},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5e3558},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57a28e},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x821817}];return _0x490337['map'](function(_0x16e594){const _0x270464=_0x16e594['locale'];return({label:_0x30f087,icon:_0x1e3285,tooltip:_0x22c7d0,style:_0x2da1c3})=>{const _0x4e7c90=_0x16e594['commands']['get']('footnotesStyle'),_0x401d79=new _0x17cf26(_0x270464);return _0x401d79['set']({'label':_0x30f087,'icon':_0x1e3285,'tooltip':_0x22c7d0}),_0x401d79['bind']('isOn')['to'](_0x4e7c90,'value',_0x10c901=>_0x10c901===_0x2da1c3),_0x401d79['bind']('isEnabled')['to'](_0x4e7c90,'isEnabled'),_0x401d79['on']('execute',()=>{_0x16e594['execute']('footnotesStyle',{'value':_0x2da1c3}),_0x16e594['editing']['view']['focus']();}),_0x401d79;};}(_0x9fa048));}(_0x3312ef),_0x1c17fe=new H(_0x3312ef['locale'],{'styleGridAriaLabel':_0x2abdaf,'styleButtonViews':_0x23dff4});return _0x1c17fe['delegate']('execute')['to'](_0x540b42),_0x1c17fe['on']('footnotesListStart',(_0x441b85,_0x34172a)=>{_0x3312ef['execute']('footnotesStart',{'value':_0x34172a['startIndex']});}),_0x1c17fe;}({'editor':_0x4479c2,'dropdownView':_0x36308c});_0x36308c['panelView']['children']['add'](_0x3dfda9);}),_0x36308c;};}(_0x4edfba));}['afterInit'](){const {editor:_0x204a0d}=this,{t:t}=_0x204a0d['locale'],_0x3f416a=_0x204a0d['plugins']['get'](_0x7042da),{defaultPositions:_0x197da1}=_0x47d690;_0x3f416a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x204a0d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5cb67f=>{let _0x17f1a4=_0x5cb67f['getFirstPosition']()?.['parent'];return _0x17f1a4?.['is']('$text')&&(_0x17f1a4=_0x17f1a4['parent']),_0x17f1a4?.['is']('element')?_0x17f1a4['findAncestor'](J):null;},'positions':[_0x197da1['southArrowNorth'],_0x197da1['southArrowNorthMiddleWest'],_0x197da1['southArrowNorthMiddleEast'],_0x197da1['southArrowNorthWest'],_0x197da1['southArrowNorthEast'],_0x197da1['northArrowSouth'],_0x197da1['northArrowSouthMiddleWest'],_0x197da1['northArrowSouthMiddleEast'],_0x197da1['northArrowSouthWest'],_0x197da1['northArrowSouthEast'],_0x197da1['viewportStickyNorth']]});}}class ft extends _0x3a69c0{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x20f0a6,Command as _0x4f9055}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2b13a3,isWidget as _0x389fa7,toWidgetEditable as _0x453c87,WidgetToolbarRepository as _0x58e462}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x32279b,logWarning as _0x40108b,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4f33be,ClickObserver as _0x40039d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5272ee}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4f0da7,ButtonView as _0x201b7c,View as _0x7298ae,ViewCollection as _0x102e68,FocusCycler as _0x31654c,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x33257c,BalloonPanelView as _0x1ac470,createDropdown as _0x1bac19}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3fecdf,IconListStyleDecimal as _0x477b15,IconListStyleDecimalLeadingZero as _0x2e36a0,IconListStyleLowerRoman as _0x30c2f7,IconListStyleUpperRoman as _0x235fc1,IconListStyleLowerLatin as _0x2ff3a7,IconListStyleUpperLatin as _0x25c909}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x39569f,_0x303771){this['_model']=_0x39569f,this['_elementName']=_0x303771['elementName'],this['_getElementKey']=_0x303771['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1b03f9){const _0x53b8a6=new Set(),_0x498dc8=new Map();for(const _0x19637a of _0x1b03f9){if('insert'===_0x19637a['type']&&'$text'!==_0x19637a['name']&&_0x19637a['position']['nodeAfter']){const _0x322ebf=this['_model']['createRangeOn'](_0x19637a['position']['nodeAfter']);for(const _0x3db74c of _0x322ebf['getItems']()){if(!_0x3db74c['is']('element',this['_elementName']))continue;const _0xa669f1=this['_getElementKey'](_0x3db74c);_0x498dc8['has'](_0xa669f1)||_0x498dc8['set'](_0xa669f1,[]),_0x498dc8['get'](_0xa669f1)['push'](_0x3db74c);}}if('remove'===_0x19637a['type']&&_0x19637a['name']===this['_elementName']){const _0x1ce39a=this['_getElementKey']({'getAttribute':_0x1ecac6=>_0x19637a['attributes']['get'](_0x1ecac6)});_0x53b8a6['add'](_0x1ce39a);}}for(const [_0x2c260a,_0x29d39e]of this['_trackedElements'])'$graveyard'===_0x29d39e['root']['rootName']&&_0x53b8a6['add'](_0x2c260a);for(const _0x1e22b6 of _0x53b8a6)this['_trackedElements']['delete'](_0x1e22b6);for(const [_0x27eeb4,_0x59f9b5]of _0x498dc8)this['_trackedElements']['set'](_0x27eeb4,_0x59f9b5[_0x59f9b5['length']-0x1]);const _0x573f52=new Set();for(const [_0xf22e6e,_0x5d521c]of _0x498dc8)_0x53b8a6['has'](_0xf22e6e)&&(_0x573f52['add'](_0x5d521c[0x0]),_0x5d521c['length']>0x1?_0x498dc8['set'](_0xf22e6e,_0x5d521c['slice'](0x1)):_0x498dc8['delete'](_0xf22e6e),_0x53b8a6['delete'](_0xf22e6e));return{'removed':Array['from'](_0x53b8a6),'inserted':Array['from'](_0x498dc8['values']())['flat'](),'moved':Array['from'](_0x573f52)};}}class c extends _0x20f0a6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ac3da){super(_0x5ac3da),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2cdb32=>_0x2cdb32['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x124f87=>_0x124f87['getAttribute']('footnoteId')});}['init'](){const {editor:_0x262047}=this,{model:_0x26e7c1,data:_0x3a6411}=_0x262047;_0x26e7c1['document']['registerPostFixer'](_0x7c2b39=>{const _0xba3146=_0x26e7c1['document']['differ']['getChanges']();let _0x4ad4b6=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x7c2b39,_0xba3146)&&(_0x4ad4b6=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x7c2b39,_0xba3146)&&(_0x4ad4b6=!0x0),this['_handleFootnoteReferencesChanges'](_0x7c2b39,_0xba3146)&&(_0x4ad4b6=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x7c2b39)&&(_0x4ad4b6=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x7c2b39)&&(_0x4ad4b6=!0x0),this['_sortFootnoteDefinitions'](_0x7c2b39)&&(_0x4ad4b6=!0x0),_0x4ad4b6;}),this['listenTo'](_0x26e7c1['document'],'change:data',()=>{_0x26e7c1['enqueueChange']({'isUndoable':!0x1},_0x16ba2e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x16ba2e);});},{'priority':'low'}),this['listenTo'](_0x3a6411,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xfb7882){return this['_footnotes']['find'](_0x695daf=>_0x695daf['id']===_0xfb7882)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4b3041){this['_footnoteFormatter']=_0x4b3041;}['_updateFootnotesCounters'](_0x1d0854,_0x34ee80=0x0){let _0x1929e8=!0x1;for(let _0x27b741=_0x34ee80;_0x27b741<this['_footnotes']['length'];_0x27b741++)this['_updateFootnoteRefCounter'](_0x1d0854,_0x27b741)&&(_0x1929e8=!0x0);return _0x1929e8;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3d47f2,_0x4b69eb){const _0x1e6196=_0x3d47f2['createElement']('footnotesDefinitions',{});return _0x3d47f2['append'](_0x1e6196,_0x4b69eb),this['_footnotesDefinitions']=_0x1e6196,_0x1e6196;}['_ensureFootnotesDefinitionsContainerExists'](_0x176d6f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x50fa5b=this['_footnotes'][0x0]['reference']['root'],_0x56340d=this['_insertEmptyFootnotesDefinitionsContainer'](_0x176d6f,_0x50fa5b);for(const _0xe1f8a3 of this['_footnotes'])_0xe1f8a3['definition']['parent']||_0x176d6f['insert'](_0xe1f8a3['definition'],_0x56340d,'end');this['_updateFootnotesCounters'](_0x176d6f);}['_handleFootnotesDefinitionsObjectChanges'](_0x3133a4,_0x3527e9){let _0x40858b=!0x1;const {inserted:_0x2be8f9,removed:_0x248d15,moved:_0x134017}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3527e9);if(_0x134017['length']&&(this['_footnotesDefinitions']=_0x134017[0x0]),_0x2be8f9['length']){if(_0x2be8f9['length']>0x1||this['_footnotesDefinitions']&&_0x2be8f9['some'](_0xeb1335=>_0xeb1335!==this['_footnotesDefinitions'])){const _0x282f21=_0x3133a4['createElement']('footnotesDefinitions',{}),_0x34554b=[];this['_footnotesDefinitions']&&_0x34554b['push'](this['_footnotesDefinitions']),_0x34554b['push'](..._0x2be8f9),_0x3133a4['insert'](_0x282f21,_0x34554b[0x0],'before');for(const _0x173815 of _0x34554b)_0x3133a4['move'](_0x3133a4['createRangeIn'](_0x173815),_0x3133a4['createPositionAt'](_0x282f21,'end')),_0x3133a4['remove'](_0x173815);this['_footnotesDefinitions']=_0x282f21,this['_updateFootnotesCounters'](_0x3133a4),_0x40858b=!0x0;}else this['_footnotesDefinitions']=_0x2be8f9[0x0];}if(_0x248d15['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2954be of this['_footnotes'])_0x3133a4['remove'](_0x2954be['reference']),_0x40858b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x40858b;}['_handleFootnoteDefinitionsChanges'](_0xc5fbf1,_0x4b18e5){let _0x25296b=!0x1;const _0x3d8e03=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x47fe80,moved:_0x418ad0}=this['_footnoteDefsTracker']['getChanges'](_0x4b18e5);for(const _0x412b2d of[..._0x418ad0,..._0x47fe80]){const _0xd62b7e=_0x412b2d['getAttribute']('footnoteId'),_0x1fa65c=this['getFootnote'](_0xd62b7e);_0x1fa65c&&(_0x1fa65c['definition']=_0x412b2d),_(_0xc5fbf1,_0x3d8e03,_0x412b2d)&&(_0x25296b=!0x0);}return _0x25296b;}['_handleFootnoteReferencesChanges'](_0x50333a,_0x563299){let _0x403f00=!0x1;const {removed:_0x182ac5,inserted:_0x42f7b9,moved:_0x56424e}=this['_footnoteRefsTracker']['getChanges'](_0x563299);for(const _0x4a91ad of _0x182ac5)this['_handleRemoveFootnoteReferenceById'](_0x50333a,_0x4a91ad)&&(_0x403f00=!0x0);for(const _0xa03c0f of _0x42f7b9)this['_handleInsertedFootnoteReference'](_0x50333a,_0xa03c0f)&&(_0x403f00=!0x0);for(const _0x1eafc3 of _0x56424e)this['_handleMovedFootnoteReference'](_0x50333a,_0x1eafc3)&&(_0x403f00=!0x0);return _0x403f00;}['_handleFootnotesDefinitionsObjectSync'](_0x70c9bb){if(!this['_footnotesDefinitions'])return!0x1;let _0x413af3=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x397f71=[];for(const _0x5b3a16 of this['_footnotesDefinitions']['getChildren']()){const _0x4fc2c9=_0x5b3a16['getAttribute']('footnoteId');this['getFootnote'](_0x4fc2c9)||(_0x397f71['unshift'](_0x5b3a16),_0x413af3=!0x0);}for(const _0x2d71a6 of _0x397f71)_0x70c9bb['remove'](_0x2d71a6);}const _0x2d3640=new Set(),_0x530097=[];for(const _0x5643da of this['_footnotesDefinitions']['getChildren']()){const _0x42aa7e=_0x5643da['getAttribute']('footnoteId');_0x2d3640['has'](_0x42aa7e)?(_0x530097['unshift'](_0x5643da),_0x413af3=!0x0):_0x2d3640['add'](_0x42aa7e);}for(const _0x574d4a of _0x530097)_0x70c9bb['remove'](_0x574d4a);return this['_footnotesDefinitions']['childCount']||(_0x70c9bb['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x413af3=!0x0),_0x413af3;}['_handleInsertedFootnoteReference'](_0x516077,_0x35cb30){if(this['_footnotes']['find'](_0x45c9ee=>_0x45c9ee['reference']===_0x35cb30))return!0x1;let _0x5a4f98=!0x1;const _0x3ddaac=_0x35cb30['getAttribute']('footnoteId'),_0x23d5ac=this['_footnotes']['findIndex'](_0x1a43d9=>_0x1a43d9['id']===_0x3ddaac);-0x1!==_0x23d5ac&&(_0x516077['remove'](this['_footnotes'][_0x23d5ac]['reference']),this['_footnotes']['splice'](_0x23d5ac,0x1),_0x5a4f98=!0x0);let _0x381709=this['_footnotesDefinitions']?function(_0xf15bb6,_0x421234){for(const _0x4f3dd8 of _0xf15bb6['getChildren']())if(_0x4f3dd8['getAttribute']('footnoteId')===_0x421234)return _0x4f3dd8;return null;}(this['_footnotesDefinitions'],_0x3ddaac):null;_0x381709||(_0x381709=_0x516077['createElement']('footnoteDefinition',{'footnoteId':_0x3ddaac}),this['_footnotesDefinitions']&&(_0x516077['insert'](_0x381709,this['_footnotesDefinitions'],'end'),_0x5a4f98=!0x0));const _0x5c938d={'id':_0x3ddaac,'reference':_0x35cb30,'definition':_0x381709},_0x49132f=I(this['editor']['model'],this['_footnotes'],_0x35cb30);this['_footnotes']['splice'](_0x49132f,0x0,_0x5c938d);let _0x382e3e=_0x49132f;return-0x1!==_0x23d5ac&&(_0x382e3e=Math['min'](_0x49132f,_0x23d5ac)),this['_updateFootnotesCounters'](_0x516077,_0x382e3e)&&(_0x5a4f98=!0x0),_0x5a4f98;}['_handleRemoveFootnoteReferenceById'](_0xcbcad0,_0xeb66bc){const _0x7703e0=this['_footnotes']['findIndex'](_0x1f0f2d=>_0x1f0f2d['id']===_0xeb66bc);if(-0x1===_0x7703e0)return!0x1;let _0x4850f3=!0x1;const _0x15fb47=this['_footnotes'][_0x7703e0];return'$graveyard'!==_0x15fb47['definition']['root']['rootName']&&(_0xcbcad0['remove'](_0x15fb47['definition']),_0x4850f3=!0x0),this['_footnotes']['splice'](_0x7703e0,0x1),this['_updateFootnotesCounters'](_0xcbcad0,_0x7703e0)&&(_0x4850f3=!0x0),_0x4850f3;}['_handleMovedFootnoteReference'](_0x254b2c,_0x4e31e3){const _0x63355b=_0x4e31e3['getAttribute']('footnoteId'),_0x1beb61=this['_footnotes']['findIndex'](_0x3dad79=>_0x3dad79['id']===_0x63355b),_0x566f23=this['_footnotes'][_0x1beb61];let _0x53a292=!0x1;_0x566f23['reference']=_0x4e31e3,this['_footnotes']['splice'](_0x1beb61,0x1);const _0x1e5108=I(this['editor']['model'],this['_footnotes'],_0x4e31e3);return this['_footnotes']['splice'](_0x1e5108,0x0,_0x566f23),this['_updateFootnotesCounters'](_0x254b2c,Math['min'](_0x1beb61,_0x1e5108))&&(_0x53a292=!0x0),_0x53a292;}['_updateFootnoteRefCounter'](_0x256814,_0xed95af){if(!this['_footnotesDefinitions'])return!0x1;const _0x177311=this['_footnotes'][_0xed95af];let _0x1b4773;return _0x1b4773=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x177311,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xed95af+0x1}):String(_0xed95af+0x1),_0x177311['reference']['getAttribute']('footnoteCounter')!=_0x1b4773&&(_0x256814['setAttribute']('footnoteCounter',_0x1b4773,_0x177311['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5c020d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1d7548,_0x30477b){if(_0x1d7548['length']!==_0x30477b['length'])return!0x1;for(let _0x1ad613=0x0;_0x1ad613<_0x1d7548['length'];_0x1ad613++)if(_0x1d7548[_0x1ad613]!==_0x30477b[_0x1ad613])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3f44bf=>_0x3f44bf['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x18a231=>_0x18a231['getAttribute']('footnoteId'))))return!0x1;let _0x23944e=!0x1;for(let _0x5e47a7=0x0;_0x5e47a7<this['_footnotes']['length'];_0x5e47a7++){const _0x492a6e=this['_footnotes'][_0x5e47a7],_0x4e83ca=_0x5c020d['createPositionBefore'](_0x492a6e['definition']),_0x526ad4=_0x5c020d['createPositionAt'](this['_footnotesDefinitions'],_0x5e47a7);_0x4e83ca['isEqual'](_0x526ad4)||(_0x5c020d['move'](_0x5c020d['createRangeOn'](_0x492a6e['definition']),_0x526ad4),_0x23944e=!0x0);}return _0x23944e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x44473f){if(!this['_footnotes']['length'])return!0x1;const {model:_0x56ef9e}=this['editor'];let _0x1bcf91=!0x1;for(let _0xf5bb1b=0x0;_0xf5bb1b<this['_footnotes']['length']-0x1;_0xf5bb1b++){const _0xb35f06=this['_footnotes'][_0xf5bb1b],_0x341989=this['_footnotes'][_0xf5bb1b+0x1],_0x201470=_0x56ef9e['createPositionBefore'](_0xb35f06['reference']),_0x1977c2=_0x56ef9e['createPositionBefore'](_0x341989['reference']);'after'===_0x201470['compareWith'](_0x1977c2)&&(this['_handleMovedFootnoteReference'](_0x44473f,_0xb35f06['reference']),_0xf5bb1b=-0x1,_0x1bcf91=!0x0);}return _0x1bcf91;}}function _(_0x5635e1,_0x5bb163,_0x433790){if(_0x433790['childCount'])return!0x1;const _0x3f0969=_0x5bb163?'paragraph':'footnoteInlineContent';return _0x5635e1['insert'](_0x5635e1['createElement'](_0x3f0969),_0x433790),!0x0;}function I(_0x21a64e,_0x14efeb,_0xf77354){if(0x0===_0x14efeb['length'])return 0x0;const _0x267923=_0x21a64e['createPositionBefore'](_0xf77354);for(let _0x5ca8a6=0x0;_0x5ca8a6<_0x14efeb['length'];_0x5ca8a6++){const _0x1db676=_0x14efeb[_0x5ca8a6],_0xc7c6c7=_0x21a64e['createPositionBefore'](_0x1db676['reference']);if('before'===_0x267923['compareWith'](_0xc7c6c7))return _0x5ca8a6;}const _0x1f2924=_0xf77354['root'];let _0x52a2fe=-0x1;for(let _0x43a244=_0x14efeb['length']-0x1;_0x43a244>=0x0;_0x43a244--)if(_0x14efeb[_0x43a244]['reference']['root']===_0x1f2924){_0x52a2fe=_0x43a244;break;}if(-0x1!==_0x52a2fe)return _0x52a2fe+0x1;const _0x3fad5e=_0x21a64e['document']['getRootNames'](),_0x2af5c0=_0x3fad5e['indexOf'](_0x1f2924['rootName']),_0x330f76=_0x3fad5e[_0x2af5c0+0x1];if(_0x330f76){for(let _0x4e52b0=0x0;_0x4e52b0<_0x14efeb['length'];_0x4e52b0++)if(_0x14efeb[_0x4e52b0]['reference']['root']['rootName']===_0x330f76)return _0x4e52b0;}return _0x14efeb['length'];}class m extends _0x4f9055{['refresh'](){const _0x4274f8=this['editor']['model']['document']['selection'],_0x14945d=this['_getPositionToInsertFootnote'](_0x4274f8);this['isEnabled']=!!_0x14945d;}['execute'](_0xd76a56){const {editor:_0x7987ab}=this,{model:_0x46cec9}=_0x7987ab,{selection:_0x46764a}=_0x46cec9['document'],_0x21d741=this['_getPositionToInsertFootnote'](_0x46764a);if(!_0x21d741)return;const _0x5dfc7e=_0x7987ab['plugins']['get']('FootnotesEditing'),_0x4df7fe=_0xd76a56?.['footnoteId']??_0x32279b();!function(_0x40dfb5){return'string'==typeof _0x40dfb5&&_0x40dfb5['length']>0x0&&!/\s/['test'](_0x40dfb5)&&!/^\d/['test'](_0x40dfb5);}(_0x4df7fe)?_0x40108b('insert-footnote-command-executed-with-invalid-id'):(_0x46cec9['change'](_0x228d36=>{const _0x256003=_0x228d36['createElement']('footnoteRef',{'footnoteId':_0x4df7fe});_0x46cec9['insertObject'](_0x256003,_0x21d741,null);}),_0x5dfc7e['_moveSelectionToFootnoteDefinition'](_0x4df7fe));}['_getPositionToInsertFootnote'](_0x4f066a){const {model:_0x957b46}=this['editor'],{schema:_0x142a74}=_0x957b46,_0xab419f=_0x4f066a['getFirstRange']();for(const _0x3516f7 of _0xab419f['getItems']())if(_0x142a74['isBlock'](_0x3516f7)||_0x142a74['isObject'](_0x3516f7))return null;const _0x153ff3=_0xab419f['end'];return _0x142a74['checkChild'](_0x153ff3,'footnoteRef')?_0x153ff3:null;}}class r extends _0x20f0a6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x496716}=this;_0x496716['config']['define']('footnotes.multiBlock',!0x0),_0x496716['commands']['add']('insertFootnote',new m(_0x496716)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x252131){const _0x52ea65=_0x3cea51([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]),_0x3ce2ce=0x47a28506,_0x5b282a=0x47a5fdce^_0x3ce2ce,_0x3dd3c1=window[_0x3cea51([0x44,0x61,0x74,0x65])][_0x3cea51([0x6e,0x6f,0x77])](),_0x11ed43=_0x252131[_0x3cea51([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c9404=new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccdeb=>{_0x11ed43[_0x3cea51([0x6f,0x6e,0x63,0x65])](_0x3cea51([0x72,0x65,0x61,0x64,0x79]),_0x2ccdeb);}),_0xc9a113={[_0x3cea51([0x6b,0x74,0x79])]:_0x3cea51([0x45,0x43]),[_0x3cea51([0x75,0x73,0x65])]:_0x3cea51([0x73,0x69,0x67]),[_0x3cea51([0x63,0x72,0x76])]:_0x3cea51([0x50,0x2d,0x32,0x35,0x36]),[_0x3cea51([0x78])]:_0x3cea51([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]),[_0x3cea51([0x79])]:_0x3cea51([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]),[_0x3cea51([0x61,0x6c,0x67])]:_0x3cea51([0x45,0x53,0x32,0x35,0x36])},_0x430953=_0x11ed43[_0x3cea51([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cea51([0x67,0x65,0x74])](_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f8e2e(){let _0x3dba9b,_0x204466=null,_0x408adb=null;try{if(_0x430953==_0x3cea51([0x47,0x50,0x4c]))return _0x3cea51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dba9b=_0x50eaae(),!_0x3dba9b)return _0x3cea51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dba9b[_0x3cea51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x408adb=_0x31c658(_0x3dba9b[_0x3cea51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dba9b[_0x3cea51([0x6a,0x74,0x69])])),await _0x39dcd5()?_0x3a7f3a()?_0x180007()?_0x3cea51([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4494c9()?(_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cea51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x204466=_0x31a0c3(_0x3cea51([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cea51([0x74,0x72,0x69,0x61,0x6c])&&(_0x204466=_0x31a0c3(_0x3cea51([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4761df()):_0x3cea51([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cea51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cea51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3cea51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x180007(){const _0x3a3923=[_0x3cea51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cea51([0x74,0x72,0x69,0x61,0x6c])][_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dd3c1/0x3e8:0xe10*_0x5b282a;return _0x3dba9b[_0x3cea51([0x65,0x78,0x70])]<_0x3a3923;}function _0x3a7f3a(){const _0x393274=_0x3dba9b[_0x3cea51([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x393274&&(!!_0x393274[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cea51([0x2a]))||!!_0x393274[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cea51([0x46,0x4f,0x4f])));}function _0x4494c9(){const _0x2ef3ae=_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ef3ae||0x0==_0x2ef3ae[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1547d4}=new URL(window[_0x3cea51([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ef3ae[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1547d4))return!0x0;const _0x361797=_0x1547d4[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e]));return _0x2ef3ae[_0x3cea51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57c78a=>_0x57c78a[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cea51([0x2a])))[_0x3cea51([0x6d,0x61,0x70])](_0xadeaa3=>_0xadeaa3[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e])))[_0x3cea51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39797b=>_0x39797b[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x361797[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cea51([0x6d,0x61,0x70])](_0x2caa2f=>Array(_0x361797[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2caa2f[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cea51([0x66,0x69,0x6c,0x6c])](_0x2caa2f[0x0]===_0x3cea51([0x2a])?_0x3cea51([0x2a]):'')[_0x3cea51([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2caa2f))[_0x3cea51([0x73,0x6f,0x6d,0x65])](_0x1210a0=>_0x361797[_0x3cea51([0x65,0x76,0x65,0x72,0x79])]((_0x3c4d10,_0x27d030)=>_0x1210a0[_0x27d030]===_0x3c4d10||_0x1210a0[_0x27d030]===_0x3cea51([0x2a])));}function _0x4761df(){return _0x204466&&_0x408adb?new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30d65a,_0xc9763e)=>{_0x204466[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x30d65a,_0xc9763e),_0x408adb[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x589e67=>{_0x589e67!=_0x3cea51([0x56,0x61,0x6c,0x69,0x64])&&_0x30d65a(_0x589e67);},_0xc9763e);}):_0x204466||_0x408adb||_0x3cea51([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31c658(_0x45dfa9,_0x3035f7){return new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ad46e=>{if(_0x36447e())return _0x4ad46e(_0x3cea51([0x56,0x61,0x6c,0x69,0x64]));_0x10b011(),_0x11ed43[_0x3cea51([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cea51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42932f=!0x1;const _0x539b76=_0x32279b();function _0x2294b6(_0x3443e1){return!!_0x3443e1&&(typeof _0x3443e1===_0x3cea51([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3443e1===_0x3cea51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3443e1[_0x3cea51([0x74,0x68,0x65,0x6e])]===_0x3cea51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3443e1[_0x3cea51([0x63,0x61,0x74,0x63,0x68])]===_0x3cea51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cae75(_0x27f43c){_0x5e364f(_0x27f43c)[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x2c1616=>{if(!_0x2c1616||_0x2c1616[_0x3cea51([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cea51([0x6f,0x6b]))return _0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6f2203(_0x259e07(_0x539b76+_0x3035f7))!=_0x2c1616[_0x3cea51([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cea51([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x59f7fc=>(_0x4f1ced(),_0x59f7fc),()=>{const _0x119c64=_0x4527ec();return null==_0x119c64?(_0x4f1ced(),_0x3cea51([0x56,0x61,0x6c,0x69,0x64])):_0x3cea51(_0x3dd3c1-_0x119c64>(0x63ae0106^_0x3ce2ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x4ad46e)[_0x3cea51([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ad46e(_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32e2ac=0x47946b86^_0x3ce2ce;function _0x4f1ced(){const _0x310636=_0x3cea51([0x6c,0x6c,0x63,0x74,0x2d])+_0x6f2203(_0x259e07(_0x45dfa9)),_0xb30fe1=_0x1e3c43(_0x6f2203(window[_0x3cea51([0x4d,0x61,0x74,0x68])][_0x3cea51([0x63,0x65,0x69,0x6c])](_0x3dd3c1/_0x32e2ac)));window[_0x3cea51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cea51([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310636,_0xb30fe1);}function _0x4527ec(){const _0x7a075a=_0x3cea51([0x6c,0x6c,0x63,0x74,0x2d])+_0x6f2203(_0x259e07(_0x45dfa9)),_0x287835=window[_0x3cea51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cea51([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7a075a);return _0x287835?window[_0x3cea51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e3c43(_0x287835),0x10)*_0x32e2ac:null;}function _0x5e364f(_0x3f8f29){return new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fbe5f,_0x2771c0)=>{_0x3f8f29[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x3fbe5f,_0x2771c0),window[_0x3cea51([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2771c0,0x47a351c6^_0x3ce2ce);});}}_0x11ed43[_0x3cea51([0x6f,0x6e])](_0x3cea51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bfb95,_0x4afeca)=>{if(_0x4afeca[0x0]!=_0x45dfa9)return _0x4ad46e(_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4afeca[0x1]={..._0x4afeca[0x1],[_0x3cea51([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x539b76};},{[_0x3cea51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cea51([0x68,0x69,0x67,0x68])}),_0x11ed43[_0x3cea51([0x6f,0x6e])](_0x3cea51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26011f=>{_0x2294b6(_0x26011f[_0x3cea51([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42932f=!0x0,_0x1cae75(_0x26011f[_0x3cea51([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cea51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cea51([0x6c,0x6f,0x77])}),_0x4c9404[_0x3cea51([0x74,0x68,0x65,0x6e])](()=>{_0x42932f||_0x4ad46e(_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36447e(){return _0x11ed43[_0x3cea51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cea51([0x76,0x69,0x65,0x77])][_0x3cea51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cea51([0x61,0x75,0x74,0x6f]);}function _0x10b011(){_0x11ed43[_0x3cea51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cea51([0x76,0x69,0x65,0x77])][_0x3cea51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cea51([0x61,0x75,0x74,0x6f]);}}function _0x31a0c3(_0x3f35f3){const _0x28bba6=[new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355541=>setTimeout(_0x355541,0x47abbbca^_0x3ce2ce)),_0x4c9404[_0x3cea51([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e03c2=>{let _0x18f179=0x0;_0x11ed43[_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cea51([0x6f,0x6e])](_0x3cea51([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x575ee9,_0x535a53)=>{_0x535a53[0x0][_0x3cea51([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18f179++,_0x18f179==(0x47a284fe^_0x3ce2ce)&&(_0x1e03c2(),_0x575ee9[_0x3cea51([0x6f,0x66,0x66])]());});}))];return window[_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cea51([0x72,0x61,0x63,0x65])](_0x28bba6)[_0x3cea51([0x74,0x68,0x65,0x6e])](()=>_0x3f35f3);}async function _0x1926c6(){await _0x4c9404,_0x11ed43[_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cea51([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d629a,_0x11ed43[_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cea51([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d629a,_0x11ed43[_0x3cea51([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18d0b8(_0x2f3cad){const _0x4a8a0b=_0x533e80();_0x11ed43[_0x4a8a0b]=_0x3cea51([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f3cad,_0x2f3cad!=_0x3cea51([0x56,0x61,0x6c,0x69,0x64])&&_0x1926c6();}function _0x533e80(){const _0xb60fd6=window[_0x3cea51([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cea51([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cea51([0x6e,0x6f,0x77])]())[_0x3cea51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cea51([0x2e]),'');let _0x43bedf=_0x3cea51([0x75]);for(let _0x35435b=0x0;_0x35435b<_0xb60fd6[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35435b+=0x2){let _0x1b9625=window[_0x3cea51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb60fd6[_0x3cea51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35435b,_0x35435b+0x2));_0x1b9625>=_0x52ea65[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b9625-=_0x52ea65[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43bedf+=_0x52ea65[_0x1b9625];}return _0x43bedf;}function _0x50eaae(){const _0x15af23=_0x430953[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e]));if(0x3!=_0x15af23[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41b384(_0x15af23[0x1]);function _0x41b384(_0x22213a){const _0xad6e2e=_0x4dc61b(_0x22213a);return _0xad6e2e&&_0x3ac01d()?_0xad6e2e:null;function _0x3ac01d(){const _0x1bfa9b=_0xad6e2e[_0x3cea51([0x6a,0x74,0x69])],_0x200f9d=window[_0x3cea51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bfa9b[_0x3cea51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bfa9b[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb8beb2={..._0xad6e2e,[_0x3cea51([0x6a,0x74,0x69])]:_0x1bfa9b[_0x3cea51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bfa9b[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb8beb2[_0x3cea51([0x76,0x63])],_0x259e07(_0xb8beb2)==_0x200f9d;}}}async function _0x39dcd5(){let _0x1d9530=!0x0;try{const _0x342cf0=_0x430953[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e])),[_0x20e2ae,_0x4e6682,_0x2ffb98]=_0x342cf0;return _0x144635(_0x20e2ae),await _0x17b614(_0x20e2ae,_0x4e6682,_0x2ffb98),_0x1d9530;}catch{return!0x1;}function _0x144635(_0x4ed1a0){const _0x5246ff=_0x4dc61b(_0x4ed1a0);_0x5246ff&&_0x5246ff[_0x3cea51([0x61,0x6c,0x67])]==_0x3cea51([0x45,0x53,0x32,0x35,0x36])||(_0x1d9530=!0x1);}async function _0x17b614(_0x4494b0,_0x56ea0e,_0x5c4170){const _0x2421d0=window[_0x3cea51([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cea51([0x66,0x72,0x6f,0x6d])](_0x3a1e76(_0x5c4170),_0x4ea7e3=>_0x4ea7e3[_0x3cea51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x429496=new window[(_0x3cea51([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cea51([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4494b0+_0x3cea51([0x2e])+_0x56ea0e),_0x112c0f=window[_0x3cea51([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cea51([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x112c0f)return;const _0xfb23ea=await _0x112c0f[_0x3cea51([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cea51([0x6a,0x77,0x6b]),_0xc9a113,{[_0x3cea51([0x6e,0x61,0x6d,0x65])]:_0x3cea51([0x45,0x43,0x44,0x53,0x41]),[_0x3cea51([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cea51([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cea51([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x112c0f[_0x3cea51([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cea51([0x6e,0x61,0x6d,0x65])]:_0x3cea51([0x45,0x43,0x44,0x53,0x41]),[_0x3cea51([0x68,0x61,0x73,0x68])]:{[_0x3cea51([0x6e,0x61,0x6d,0x65])]:_0x3cea51([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfb23ea,_0x2421d0,_0x429496)||(_0x1d9530=!0x1);}}function _0x4dc61b(_0x435b4b){return _0x435b4b[_0x3cea51([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cea51([0x65,0x79]))?JSON[_0x3cea51([0x70,0x61,0x72,0x73,0x65])](_0x3a1e76(_0x435b4b)):null;}function _0x3a1e76(_0x50e204){return window[_0x3cea51([0x61,0x74,0x6f,0x62])](_0x50e204[_0x3cea51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cea51([0x2b]))[_0x3cea51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cea51([0x2f])));}function _0x259e07(_0x4bb3ff){let _0x437d48=0x1505;function _0x52d097(_0x273ce4){for(let _0x1eed7a=0x0;_0x1eed7a<_0x273ce4[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eed7a++){const _0x4f55a0=_0x273ce4[_0x3cea51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1eed7a);_0x437d48=(_0x437d48<<0x5)+_0x437d48+_0x4f55a0,_0x437d48&=_0x437d48;}}function _0x18ec6b(_0xad4189){Array[_0x3cea51([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xad4189)?_0xad4189[_0x3cea51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18ec6b):_0xad4189&&typeof _0xad4189==_0x3cea51([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cea51([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xad4189)[_0x3cea51([0x73,0x6f,0x72,0x74])]()[_0x3cea51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x598392,_0x2b14ad])=>{_0x52d097(_0x598392),_0x18ec6b(_0x2b14ad);}):_0x52d097(window[_0x3cea51([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xad4189));}return _0x18ec6b(_0x4bb3ff),_0x437d48>>>0x0;}function _0x6f2203(_0x22ab65){return _0x22ab65[_0x3cea51([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cea51([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cea51([0x30]));}function _0x1e3c43(_0x3aab00){return _0x3aab00[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cea51([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cea51([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d629a(){}function _0x3cea51(_0x19c7a5){return _0x19c7a5['map'](_0x52394b=>String['fromCharCode'](_0x52394b))['join']('');}_0x18d0b8(await _0x3f8e2e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x59521a){const {plugins:_0xcfb0b1,editing:_0x3ac83e,model:_0x5bd888}=this['editor'],_0xb5664b=_0xcfb0b1['get'](c)['getFootnote'](_0x59521a);return!!_0xb5664b&&(_0x5bd888['change'](_0x1eb647=>{_0x1eb647['setSelection'](_0x1eb647['createPositionAt'](_0xb5664b['definition'],'end'));}),_0x3ac83e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c274d){const {plugins:_0x4d4726,editing:_0x5117d8,model:_0x5da0a2}=this['editor'],_0x1dbab5=_0x4d4726['get'](c)['getFootnote'](_0x3c274d);return!!_0x1dbab5&&(_0x5da0a2['change'](_0x3b870c=>{_0x3b870c['setSelection'](_0x1dbab5['reference'],'on');}),_0x5117d8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x14b5c1}=this['editor']['model'],_0x1a9a5a=this['editor']['config']['get']('footnotes.multiBlock');_0x14b5c1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x14b5c1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x14b5c1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1a9a5a?_0x14b5c1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x14b5c1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x14b5c1['addChildCheck'](_0x25ce94=>{for(const _0x52eece of _0x25ce94)if('footnoteDefinition'===_0x52eece['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2819f9}=this,{conversion:_0x35a1c5,editing:_0x4fd5a6}=_0x2819f9,{t:t}=_0x2819f9['locale'];_0x35a1c5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x53a59a,{writer:_0x2ffafb,consumable:_0x1a258b})=>{const _0x4adfa3=_0x53a59a['getChild'](0x0);if(!_0x4adfa3||!_0x4adfa3['is']('element','a'))return null;const _0x3670fb=_0x4adfa3['getAttribute']('href')||'';if(!_0x3670fb['startsWith']('#'))return null;const _0x3bba91=_0x3670fb['replace'](/^#/,'');if(!_0x3bba91)return null;_0x1a258b['consume'](_0x4adfa3,{'name':!0x0,'attributes':['href']});for(const {item:_0x10c407}of _0x4fd5a6['view']['createRangeIn'](_0x4adfa3))_0x10c407['is']('$textProxy')?_0x1a258b['consume'](_0x10c407['textNode'],{'name':!0x0}):_0x10c407['is']('element')&&_0x1a258b['consume'](_0x10c407,{'name':!0x0});return _0x2ffafb['createElement']('footnoteRef',{'footnoteId':_0x3bba91});}}),_0x35a1c5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x13493c,{writer:_0x37f303})=>D(_0x13493c,_0x37f303)}),_0x35a1c5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x22140a,{writer:_0x200395})=>{const _0x598eab=_0x22140a['getAttribute']('footnoteCounter');return _0x2b13a3(D(_0x22140a,_0x200395),_0x200395,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x598eab)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2a28ad}=this,{t:t}=_0x2a28ad['locale'],{conversion:_0x2f72d6}=_0x2a28ad;_0x2f72d6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2f72d6['for']('upcast')['add'](_0x29cb15=>{_0x29cb15['on']('element:ol',(_0x5df306,_0x2e6287,_0x2a685f)=>{const _0x557de6=_0x2e6287['viewItem'];if(!_0x557de6['hasClass']('footnotes-list')||!_0x2e6287['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2a685f['consumable']['consume'](_0x557de6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5b08c6,modelCursor:_0xf236c9}=_0x2a685f['convertChildren'](_0x2e6287['viewItem'],_0x2e6287['modelCursor']);_0x2e6287['modelRange']=_0x5b08c6,_0x2e6287['modelCursor']=_0xf236c9;}),_0x29cb15['on']('element:hr',(_0x5030c1,_0x1924a0,_0x3957cb)=>{const _0x4e0c04=_0x1924a0['viewItem'];_0x4e0c04['hasClass']('footnotes-divider')&&_0x1924a0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3957cb['consumable']['consume'](_0x4e0c04,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2f72d6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x152a72,{writer:_0xa773e2})=>v(_0xa773e2)}),_0x2f72d6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xcb603,{writer:_0x3be9e1})=>{const _0x4f1dec=v(_0x3be9e1,{'data-footnotes-list-label':t('Footnotes')}),_0x6d939a=_0x2b13a3(_0x4f1dec,_0x3be9e1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3be9e1['setCustomProperty']('footnotesDefinitions',!0x0,_0x6d939a),_0x6d939a;}});}['_defineDefinitionConverters'](){const {editor:_0x1758e9}=this,{conversion:_0x52fc58,locale:_0x143767}=_0x1758e9,_0xbacd64=_0x1758e9['config']['get']('footnotes.multiBlock');_0x52fc58['for']('upcast')['add'](_0x291976=>{_0x291976['on']('element:li',(_0x40f008,_0xaad15c,_0x1a1c90)=>{const _0x12ed83=_0xaad15c['viewItem'];if(!_0x12ed83['hasClass']('footnote-definition')||!_0x12ed83['getAttribute']('id'))return;const _0x43c856=_0x12ed83['parent'];if(!_0x43c856['is']('element','ol')||!_0x43c856['hasClass']('footnotes-list'))return;if(!_0x1a1c90['consumable']['test'](_0x12ed83,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x154449=_0x1a1c90['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x12ed83['getAttribute']('id')});if(!_0x1a1c90['safeInsert'](_0x154449,_0xaad15c['modelCursor']))return;_0x1a1c90['consumable']['consume'](_0x12ed83,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5dd0c2=Array['from'](_0x12ed83['getChildren']())['find'](_0x1aa0e3=>_0x1aa0e3['is']('element')&&_0x1aa0e3['hasClass']('footnote-content'));for(const _0x18647c of _0x12ed83['getChildren']())_0x18647c['is']('element')&&(_0x1a1c90['consumable']['consume'](_0x18647c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1a1c90['consumable']['consume'](_0x18647c,{'name':!0x0,'classes':'footnote-content'}));if(_0x5dd0c2){if(_0xbacd64)_0x1a1c90['convertChildren'](_0x5dd0c2,_0x154449);else{const _0x3eb453=_0x1a1c90['writer']['createElement']('footnoteInlineContent');_0x1a1c90['writer']['insert'](_0x3eb453,_0x154449),_0x1a1c90['convertChildren'](_0x5dd0c2,_0x3eb453);}}_0x1a1c90['updateConversionResult'](_0x154449,_0xaad15c);});}),_0x52fc58['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46412b,{writer:_0x34aa7f})=>b(_0x46412b,_0x34aa7f,_0x143767,{'dataPipeline':!0x0})}),_0x52fc58['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4cf61b,{writer:_0x222bdb})=>b(_0x4cf61b,_0x222bdb,_0x143767)});}['_defineBogusParagraphConverters'](){const {editor:_0x6d823b}=this,{conversion:_0x4074f3}=_0x6d823b;_0x6d823b['config']['get']('footnotes.multiBlock')?(_0x4074f3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4074f3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x6d823b['model']['document'],'change:data',()=>{!function(_0x42185d,_0x4cc8a6){const _0x3c087a=_0x42185d['document']['differ'],_0x1dfa90=new Set();for(const _0x10e0ef of _0x3c087a['getChanges']()){const _0x1ee15e='attribute'==_0x10e0ef['type']?_0x10e0ef['range']['start']['parent']:_0x10e0ef['position']['parent'];_0x1ee15e['is']('element','footnoteDefinition')&&_0x1dfa90['add'](_0x1ee15e);}for(const _0x390e43 of _0x1dfa90['values']()){const _0x4cc8c8=Array['from'](_0x390e43['getChildren']())['filter'](_0x599b70=>g(_0x599b70,_0x4cc8a6['mapper']));for(const _0x497a51 of _0x4cc8c8)_0x4cc8a6['reconvertItem'](_0x497a51);}}(_0x6d823b['model'],_0x6d823b['editing']);})):(_0x4074f3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4074f3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2c92a0,{writer:_0xc0eed0})=>{const _0x27ec09=_0xc0eed0['createContainerElement']('span');return _0xc0eed0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27ec09),_0x27ec09;}}));}['_defineKeyboardHandlers'](){const {editor:_0x54017e}=this,{editing:_0x4b23db,t:t}=_0x54017e,_0x3ad9b0=_0x54017e['model']['document']['selection'];_0x54017e['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x54017e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4b23db['view']['document'],'enter',(_0x3c5845,_0x1e96f0)=>{const _0x455802=function(_0xe353e0){const _0x17674f=_0xe353e0['getSelectedElement']();if(_0x17674f?.['is']('element','footnoteRef'))return _0x17674f;return null;}(_0x3ad9b0);if(_0x455802){const _0x4f95c8=_0x455802['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4f95c8),_0x1e96f0['preventDefault'](),_0x3c5845['stop']();}},{'context':_0x389fa7});}['_defineClickHandlers'](){const {editor:_0x2337b6}=this,{editing:_0xed522f}=_0x2337b6;_0x2337b6['editing']['view']['addObserver'](_0x4f33be),_0x2337b6['editing']['view']['addObserver'](_0x40039d);let _0x54bea7=!0x1;this['listenTo'](_0xed522f['view']['document'],'pointerdown',(_0x324421,_0x30662)=>{const {target:_0x23d42f}=_0x30662,_0xf5e2c7=_0xed522f['view']['document']['selection'];_0x54bea7=!!(_0x23d42f?.['is']('element','a')&&_0x23d42f['parent']?.['is']('element','sup')&&_0x23d42f['parent']['hasClass']('footnote'))&&_0xf5e2c7['getSelectedElement']()===_0x23d42f['parent'];},{'priority':'high'}),this['listenTo'](_0xed522f['view']['document'],'click',(_0x4f50ef,_0x1fd6ad)=>{const {target:_0x5c221e}=_0x1fd6ad;if(!_0x5c221e?.['is']('element','a'))return;if(_0x5c221e['parent']?.['is']('element','sup')&&_0x5c221e['parent']['hasClass']('footnote')&&!_0x54bea7)return void _0x1fd6ad['preventDefault']();let _0x2cb546=_0x5c221e['getAttribute']('href');if(!_0x2cb546?.['startsWith']('#'))return;_0x2cb546=_0x2cb546['slice'](0x1);let _0x365548=!0x1;(_0x2cb546['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2cb546['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2cb546))&&(_0x365548=!0x0),_0x365548&&(_0x1fd6ad['preventDefault'](),_0x4f50ef['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4a8bf0}={}){return(_0x264e1c,{writer:_0x492750})=>{if(!p(_0x264e1c))return null;if(!_0x4a8bf0)return _0x492750['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x48e75e=_0x492750['createContainerElement']('p');return _0x492750['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x48e75e),_0x48e75e;};}function p(_0x502a34){const {parent:_0x30f2bd}=_0x502a34;if(!_0x30f2bd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x30f2bd['childCount'])return!0x1;for(const _0x3ac5be of _0x502a34['getAttributeKeys']())if(!_0x3ac5be['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3ac5be)return!0x1;return!0x0;}function g(_0x55142e,_0x902cf1){if(!_0x55142e['is']('element','paragraph'))return!0x1;const _0x54fa9c=_0x902cf1['toViewElement'](_0x55142e);return!!_0x54fa9c&&p(_0x55142e)!==_0x54fa9c['is']('element','span');}function J(_0x5ac0f8){return _0x389fa7(_0x5ac0f8)&&_0x5ac0f8['is']('containerElement')&&!!_0x5ac0f8['getCustomProperty']('footnotesDefinitions');}function v(_0x476366,_0x2a959a={}){const _0x3da909=_0x476366['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x53dc4a=_0x476366['createContainerElement']('ol',{'class':'footnotes-list'},_0x476366['createSlot']());return _0x476366['createContainerElement']('div',{'class':'footnotes',..._0x2a959a},[_0x3da909,_0x53dc4a]);}function D(_0x3a539b,_0xa7545){const _0x20f61f=_0x3a539b['getAttribute']('footnoteId'),_0x4be7d6=_0x3a539b['getAttribute']('footnoteCounter'),_0x5e19de=_0xa7545['createUIElement']('a',{'href':'#'+_0x20f61f},function(_0x5927fb){const _0x31a627=this['toDomElement'](_0x5927fb);return _0x31a627['textContent']=_0x4be7d6,_0x31a627;}),_0x11a979=_0xa7545['createContainerElement']('sup',{'id':'ref-'+_0x20f61f,'class':'footnote'},[_0x5e19de]);return _0x11a979['getFillerOffset']=()=>null,_0x11a979;}function b(_0x47b63d,_0x1f99fe,_0x4cc640,{dataPipeline:_0x2a1018}={}){const {t:t}=_0x4cc640,_0x4c87dd=_0x47b63d['getAttribute']('footnoteId'),_0x485f3c=_0x1f99fe['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4c87dd},function(_0x3941ff){const _0x125af4=this['toDomElement'](_0x3941ff);return _0x125af4['innerText']='^',_0x125af4;}),_0x49d839=_0x2a1018?_0x1f99fe['createContainerElement']('div',{'class':'footnote-content'}):_0x453c87(_0x1f99fe['createEditableElement']('div',{'class':'footnote-content'}),_0x1f99fe,{'label':t('Footnote\x20content.')});return _0x1f99fe['insert'](_0x1f99fe['createPositionAt'](_0x49d839,0x0),_0x1f99fe['createSlot']()),_0x1f99fe['createContainerElement']('li',{'class':'footnote-definition','id':_0x4c87dd},[_0x485f3c,_0x49d839]);}class e extends _0x20f0a6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5272ee];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3dc994}=this,{plugins:_0x786e8e,model:_0x6fced9}=_0x3dc994,_0x336dd2=_0x786e8e['get'](_0x5272ee),_0x5c38a6=_0x786e8e['get'](c);this['listenTo'](_0x336dd2,'outputTransformation',(_0x335a69,_0x3acc73)=>{const _0x1cce04=f(_0x6fced9['createRangeIn'](_0x3acc73['content']));if(!_0x1cce04['length'])return;const _0xee384b=_0x5c38a6['getFootnotes'](),_0x666736=_0x1cce04['reduce']((_0x3e2c70,_0x4a6723)=>{const _0x2c6922=_0xee384b['find'](_0x55d8d6=>_0x55d8d6['id']===_0x4a6723);if(_0x2c6922){const _0x31b890=_0x3dc994['data']['toView'](_0x2c6922['definition'],{'isClipboardPipeline':!0x0}),_0x740891=_0x3dc994['data']['htmlProcessor']['toData'](_0x31b890);_0x3e2c70[_0x2c6922['id']]=_0x740891;}return _0x3e2c70;},Object['create'](null));_0x3acc73['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x666736));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1f68d1}=this,{model:_0x56e6ae,plugins:_0x564724}=_0x1f68d1,{view:_0xd0ca59}=_0x1f68d1['editing'],_0x4d4fa7=_0x564724['get'](_0x5272ee),_0x494886=_0x564724['get'](c);let _0x476033=null;this['listenTo'](_0xd0ca59['document'],'clipboardInput',(_0x13c696,_0x9caeb2)=>{const _0x470f59=_0x9caeb2['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x476033=_0x470f59?JSON['parse'](_0x470f59):null;}),this['listenTo'](_0x4d4fa7,'contentInsertion',(_0x1ffee9,_0x54f898)=>{const _0x5323c2=_0x54f898['sourceEditorId']===this['editor']['id'];_0x5323c2&&'drop'===_0x54f898['method']||_0x56e6ae['change'](_0x300fcf=>{let _0x5f37b6=_0x494886['getFootnotesDefinitionsObjectElement']();const _0x4fc8d0=!!_0x5f37b6&&Array['from'](_0x56e6ae['document']['selection']['getSelectedBlocks']())['includes'](_0x5f37b6);if((_0x5f37b6&&!_0x4fc8d0||!_0x5f37b6&&!_0x476033)&&function(_0x4c7f40,_0x418ebe){const _0x1f0971=[];for(const {item:_0x39e157}of _0x4c7f40['createRangeIn'](_0x418ebe))_0x39e157['is']('element','footnotesDefinitions')&&_0x1f0971['push'](_0x39e157);for(const _0xd1293b of _0x1f0971)_0x4c7f40['remove'](_0xd1293b);}(_0x300fcf,_0x54f898['content']),!_0x476033)return;const {selection:_0x597122}=_0x56e6ae['document'],_0x108c7b=_0x597122['getFirstRange']()['root'];_0x5f37b6&&!_0x4fc8d0||(_0x5f37b6=function(_0x22f69d,_0x17a2d7){for(const {item:_0x55a15c}of _0x22f69d['createRangeIn'](_0x17a2d7))if(_0x55a15c['is']('element','footnotesDefinitions'))return _0x55a15c;return null;}(_0x300fcf,_0x54f898['content']),_0x5f37b6||=_0x494886['_insertEmptyFootnotesDefinitionsContainer'](_0x300fcf,_0x108c7b));const _0x2d9827=Array['from'](_0x597122['getRanges']())['flatMap'](f),_0x1bd864=function(_0x2d3a44,_0x4ef68b,_0x30f618){const _0x50567c=Object['create'](null);for(const {item:_0x1aafe2}of _0x2d3a44['createRangeIn'](_0x4ef68b))if(_0x1aafe2['is']('element','footnoteRef')){const _0x48b3dc=_0x1aafe2['getAttribute']('footnoteId');if(!_0x30f618(_0x48b3dc))continue;_0x50567c[_0x48b3dc]||(_0x50567c[_0x48b3dc]=_0x32279b()),_0x2d3a44['setAttribute']('footnoteId',_0x50567c[_0x48b3dc],_0x1aafe2);}return _0x50567c;}(_0x300fcf,_0x54f898['content'],_0x3c585c=>{if(!_0x5323c2)return!0x0;return!!_0x494886['getFootnote'](_0x3c585c)&&!_0x2d9827['includes'](_0x3c585c);});for(const [_0x221c3f,_0x482936]of Object['entries'](_0x476033)){const _0x3138b2=_0x1bd864[_0x221c3f]||_0x221c3f,_0x16713a=_0x300fcf['createElement']('footnoteDefinition',{'footnoteId':_0x3138b2}),_0x495159=_0x1f68d1['data']['htmlProcessor']['toView'](_0x482936),_0x1dddfb=_0x1f68d1['data']['toModel'](_0x495159,_0x16713a);_0x300fcf['append'](_0x1dddfb,_0x16713a),_0x300fcf['insert'](_0x16713a,_0x5f37b6,'end');}_0x476033=null;});});}}function f(_0xaac28f){const _0x573192=new Set();for(const {item:_0x5f0e67}of _0xaac28f)_0x5f0e67['is']('element','footnoteRef')&&_0x573192['add'](_0x5f0e67['getAttribute']('footnoteId'));return Array['from'](_0x573192);}class i extends _0x20f0a6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x538b81}=this,{componentFactory:_0xcd3c2d}=_0x538b81['ui'];_0xcd3c2d['add']('insertFootnote',x(_0x538b81,_0x201b7c)),_0xcd3c2d['add']('menuBar:insertFootnote',x(_0x538b81,_0x4f0da7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xacb48b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x574e3f;for(const _0x1aca10 in _0xacb48b){const _0x3a4323=_0x1aca10,_0x418fa4=_0xacb48b[_0x3a4323];if('footnotesLicenseKeyValid'==_0x418fa4||'footnotesLicenseKeyInvalid'==_0x418fa4||'footnotesLicenseKeyExpired'==_0x418fa4||'footnotesLicenseKeyDomainLimit'==_0x418fa4||'footnotesLicenseKeyNotAllowed'==_0x418fa4||'footnotesLicenseKeyEvaluationLimit'==_0x418fa4||'footnotesLicenseKeyTrialLimit'==_0x418fa4||'footnotesLicenseKeyUsageLimit'==_0x418fa4){delete _0xacb48b[_0x3a4323],_0x574e3f=_0x418fa4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x574e3f&&_0xacb48b['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x574e3f&&_0xacb48b['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x574e3f&&_0xacb48b['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x1013c2,_0x2d45ab){const _0x1d4202=_0x1013c2['commands']['get']('insertFootnote');return _0x54f865=>{const {t:t}=_0x54f865,_0x4c5274=new _0x2d45ab(_0x54f865),_0x464fb0=_0x4c5274 instanceof _0x4f0da7;return _0x4c5274['bind']('isEnabled')['to'](_0x1d4202,'isEnabled'),_0x4c5274['set']({'label':t(_0x464fb0?'Footnote':'Insert\x20footnote'),'icon':_0x3fecdf,'tooltip':!0x0}),_0x4c5274['on']('execute',()=>{_0x1d4202['execute'](),_0x1013c2['editing']['view']['focus']();}),_0x4c5274;};}class lt extends _0x20f0a6{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 _0x4f9055{['refresh'](){const {editor:_0x574ca8}=this,_0x3bdde6=_0x574ca8['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3bdde6,this['value']=_0x3bdde6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1b680e}){const {editor:_0x4dc819}=this,_0x5ec9c8=_0x4dc819['plugins']['get'](c),_0x1252d5=_0x5ec9c8['getFootnotesDefinitionsObjectElement']();_0x1252d5&&Q['includes'](_0x1b680e)&&_0x4dc819['model']['change'](_0x28fab7=>{_0x28fab7['setAttribute']('footnotesListStyle',_0x1b680e,_0x1252d5),_0x5ec9c8['_updateFootnotesCounters'](_0x28fab7);});}}class C extends _0x4f9055{['refresh'](){const {editor:_0x56531f}=this,_0x2fd3ec=_0x56531f['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2fd3ec,this['value']=_0x2fd3ec?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x13037a}){const {editor:_0x86e8f1}=this,_0x39a2c0=_0x86e8f1['plugins']['get'](c),_0x241443=_0x39a2c0['getFootnotesDefinitionsObjectElement']();_0x241443&&Number['isInteger'](_0x13037a)&&_0x86e8f1['model']['change'](_0x20851e=>{_0x20851e['setAttribute']('footnotesListStart',_0x13037a,_0x241443),_0x39a2c0['_updateFootnotesCounters'](_0x20851e);});}}class P extends _0x20f0a6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48a913}=this;_0x48a913['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x48a913['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x48a913['commands']['add']('footnotesStyle',new S(_0x48a913)),_0x48a913['commands']['add']('footnotesStart',new C(_0x48a913)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x18a588}=this,{schema:_0x93b19a}=_0x18a588['model'];_0x93b19a['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3a5ebe}=this,{conversion:_0x30be9e,model:_0x34f409}=_0x3a5ebe,{schema:_0x4f256f}=_0x34f409;_0x30be9e['for']('upcast')['add'](_0x33b318=>{_0x33b318['on']('element:ol',(_0x2e84bf,_0xc73048,_0x1db369)=>{const _0xa1a63f=_0xc73048['viewItem'],_0x5198fa=_0xc73048['modelCursor']?.['parent'];_0xa1a63f['hasClass']('footnotes-list')&&_0x5198fa?.['is']('element','footnotesDefinitions')&&(function(_0x465c88,_0x3a2691,_0x489c18,_0xdab3eb){if(!_0xdab3eb['checkAttribute'](_0x3a2691,'footnotesListStart'))return;let _0x3648a3=0x1;const _0x3793b4=_0x489c18['consumable']['consume'](_0x465c88,{'attributes':'start'});if(_0x3793b4){const _0x394013=Number['parseInt'](_0x465c88['getAttribute']('start'),0xa);Number['isNaN'](_0x394013)||(_0x3648a3=_0x394013);}!_0x3793b4&&_0x3a2691['hasAttribute']('footnotesListStart')||_0x489c18['writer']['setAttribute']('footnotesListStart',_0x3648a3,_0x3a2691);}(_0xa1a63f,_0x5198fa,_0x1db369,_0x4f256f),function(_0xb9f3d6,_0xace756,_0x3cf944,_0x3effed){if(!_0x3effed['checkAttribute'](_0xace756,'footnotesListStyle'))return;let _0x415a02='decimal',_0x25fcca=!0x1;if(_0x3cf944['consumable']['consume'](_0xb9f3d6,{'attributes':'type'})){const _0x229abf={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xb9f3d6['getAttribute']('type')];_0x229abf&&(_0x415a02=_0x229abf),_0x25fcca=!0x0;}_0x3cf944['consumable']['consume'](_0xb9f3d6,{'styles':'list-style-type'})&&(_0x415a02=_0xb9f3d6['getStyle']('list-style-type'),_0x25fcca=!0x0),!_0x25fcca&&_0xace756['hasAttribute']('footnotesListStyle')||_0x3cf944['writer']['setAttribute']('footnotesListStyle',_0x415a02,_0xace756);}(_0xa1a63f,_0x5198fa,_0x1db369,_0x4f256f));});}),_0x30be9e['for']('downcast')['add'](_0x53c16a=>{_0x53c16a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1f1a48,_0x3aa19b,_0xffebc5)=>{if(!_0xffebc5['consumable']['consume'](_0x3aa19b['item'],_0x1f1a48['name']))return;const _0x53b0e0=M(_0x3aa19b['item'],_0xffebc5['mapper']),{attributeNewValue:_0x5ce468}=_0x3aa19b;null==_0x5ce468||0x1===_0x5ce468?_0xffebc5['writer']['removeAttribute']('start',_0x53b0e0):_0xffebc5['writer']['setAttribute']('start',String(_0x5ce468),_0x53b0e0);}),_0x53c16a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x4c7726,_0x52e768,_0x3eb514)=>{if(!_0x3eb514['consumable']['consume'](_0x52e768['item'],_0x4c7726['name']))return;const _0x528f1c=M(_0x52e768['item'],_0x3eb514['mapper']),{attributeNewValue:_0x425a42}=_0x52e768;_0x425a42&&'decimal'!==_0x425a42?_0x3eb514['writer']['setStyle']('list-style-type',_0x425a42,_0x528f1c):_0x3eb514['writer']['removeStyle']('list-style-type',_0x528f1c);});});}['_definePostfixer'](){const {editor:_0x16c309}=this,{model:_0xed661c}=_0x16c309,_0x37d9c6=_0x16c309['plugins']['get'](c),_0x19a277=this['_getDefaultListStyle'](),_0x159f9d=this['_getDefaultStartIndex']();_0xed661c['document']['registerPostFixer'](_0x110b6c=>{const _0x3a0d6d=_0xed661c['document']['differ']['getChanges']();let _0x5c8d88=!0x1;for(const _0x1448ba of _0x3a0d6d){if('insert'!==_0x1448ba['type']||'$text'===_0x1448ba['name'])continue;const _0x6a67af=_0xed661c['createRangeOn'](_0x1448ba['position']['nodeAfter']);for(const _0x24f1e0 of _0x6a67af['getItems']())_0x24f1e0['is']('element','footnotesDefinitions')&&(!_0x24f1e0['hasAttribute']('footnotesListStart')&&_0xed661c['schema']['checkAttribute'](_0x24f1e0,'footnotesListStart')&&(_0x110b6c['setAttribute']('footnotesListStart',_0x159f9d,_0x24f1e0),_0x5c8d88=!0x0),!_0x24f1e0['hasAttribute']('footnotesListStyle')&&_0xed661c['schema']['checkAttribute'](_0x24f1e0,'footnotesListStyle')&&(_0x110b6c['setAttribute']('footnotesListStyle',_0x19a277,_0x24f1e0),_0x5c8d88=!0x0));}return _0x5c8d88&&_0x37d9c6['_updateFootnotesCounters'](_0x110b6c),_0x5c8d88;});}['_defineFormatter'](){const {editor:_0x5269df}=this;_0x5269df['plugins']['get'](c)['setFootnoteFormatter'](_0x3e9cd7=>this['_formatFootnoteListValue'](_0x3e9cd7));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x188176,value:_0x29293a,digits:_0x3ef975}){const _0x402026=_0x188176['getAttribute']('footnotesListStyle'),_0x22deb0=_0x188176['getAttribute']('footnotesListStart'),_0x1ad9a9=Math['floor'](_0x29293a)+(_0x22deb0??0x1)-0x1;switch(_0x402026){case'decimal-leading-zero':return function(_0x4a11da,_0x53a255){return String(_0x4a11da)['padStart'](_0x53a255,'0');}(_0x1ad9a9,Math['max'](0x2,_0x3ef975));case'lower-alpha':case'lower-latin':return N(_0x1ad9a9,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1ad9a9,!0x0);case'lower-roman':return X(_0x1ad9a9,!0x1);case'upper-roman':return X(_0x1ad9a9,!0x0);default:return String(_0x1ad9a9);}}}function M(_0xdd6ce9,_0x3130e3){const _0x493a6f=_0x3130e3['toViewElement'](_0xdd6ce9);return Array['from'](_0x493a6f['getChildren']())['find'](_0x577902=>_0x577902['is']('element','ol')&&_0x577902['hasClass']('footnotes-list'));}function N(_0xeac7d8,_0x2aebd0){let _0x1eb0d9='',_0x4f71df=_0xeac7d8;for(;_0x4f71df>0x0;){const _0xb22219=(_0x4f71df-0x1)%0x1a;_0x1eb0d9=String['fromCharCode'](0x61+_0xb22219)+_0x1eb0d9,_0x4f71df=Math['floor']((_0x4f71df-0x1)/0x1a);}return _0x2aebd0?_0x1eb0d9['toUpperCase']():_0x1eb0d9;}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(_0x234ec1,_0x3b275b){let _0x1e05f4='',_0xf24473=_0x234ec1;for(const {value:_0x37a39a,numeral:_0x595d47}of V)for(;_0xf24473>=_0x37a39a;)_0x1e05f4+=_0x595d47,_0xf24473-=_0x37a39a;return _0x3b275b?_0x1e05f4:_0x1e05f4['toLowerCase']();}class H extends _0x7298ae{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x102e68();['focusCycler'];constructor(_0x2759d0,{styleButtonViews:_0x57c7c7,styleGridAriaLabel:_0x509fd5}){super(_0x2759d0),(this['focusCycler']=new _0x31654c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x57c7c7,_0x509fd5),[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 _0x22f9e2 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x22f9e2['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 _0x3ebc3d=_0x8278c0=>_0x8278c0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ebc3d),this['keystrokes']['set']('arrowleft',_0x3ebc3d),this['keystrokes']['set']('arrowup',_0x3ebc3d),this['keystrokes']['set']('arrowdown',_0x3ebc3d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x59e9ad,_0x839579){const _0x27d7a5=new _0x7298ae(this['locale']);return _0x27d7a5['children']=_0x27d7a5['createCollection'](),_0x27d7a5['children']['addMany'](_0x59e9ad),_0x27d7a5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x839579,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x27d7a5['children']}),_0x27d7a5['children']['delegate']('execute')['to'](this),_0x27d7a5['focus']=function(){for(const _0x2b7a9c of this['children'])if(_0x2b7a9c instanceof _0x201b7c&&_0x2b7a9c['isOn'])return void _0x2b7a9c['focus']();this['children']['first']['focus']();},_0x27d7a5['focusTracker']=new ot(),_0x27d7a5['keystrokes']=new rt(),_0x27d7a5['render'](),_0x27d7a5['keystrokes']['listenTo'](_0x27d7a5['element']),this['children']['add'](_0x27d7a5),_0x27d7a5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x31931a=this['_createStartIndexPropertyView'](),_0x300af3=[_0x31931a],_0x5b614d=new st(this['locale'],_0x300af3);return _0x5b614d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5b614d['buttonView']['bind']('isEnabled')['toMany'](_0x300af3,'isEnabled',(..._0x1e7c12)=>_0x1e7c12['some'](_0x4c4e69=>_0x4c4e69)),_0x5b614d['buttonView']['on']('change:isEnabled',(_0x411bb1,_0x3eb738,_0x3136a0)=>{_0x3136a0||(_0x5b614d['isCollapsed']=!0x0);}),this['children']['add'](_0x5b614d),[_0x31931a,_0x5b614d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x592dbe=new it(this['locale'],et);return _0x592dbe['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x592dbe['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x592dbe['fieldView']['on']('input',()=>{const _0x5675ff=_0x592dbe['fieldView']['element'],_0x2916dc=_0x5675ff['valueAsNumber'];Number['isNaN'](_0x2916dc)?_0x592dbe['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5675ff['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2916dc}):_0x592dbe['errorText']=t(_0x2916dc<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x592dbe;}}class j extends _0x20f0a6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x33257c,_0x58e462];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39a8c2}=this,{componentFactory:_0x4f0384}=_0x39a8c2['ui'];_0x39a8c2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4f0384['add']('footnotesStyle',function(_0x29d824){return _0x14a2a4=>{const {t:t}=_0x14a2a4,_0x5d76f7=_0x29d824['commands']['get']('footnotesStyle'),_0x8b1278=_0x1bac19(_0x14a2a4),{buttonView:_0x184d59}=_0x8b1278;return _0x8b1278['class']='ck-footnotes-styles-dropdown',_0x8b1278['bind']('isEnabled')['to'](_0x5d76f7,'isEnabled'),_0x184d59['set']({'label':t('Footnotes\x20style'),'icon':_0x3fecdf,'tooltip':!0x0}),_0x8b1278['once']('change:isOpen',()=>{const _0x426645=function({editor:_0x286776,dropdownView:_0x2eef68}){const {t:t}=_0x286776['locale'],_0x4dcd1f=t('Footnotes\x20definitions\x20styles'),_0x2b6540=function(_0x52a28a){const t=_0x52a28a['locale']['t'],_0x19c2ec=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x477b15},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2e36a0},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x30c2f7},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x235fc1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2ff3a7},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x25c909}];return _0x19c2ec['map'](function(_0x989034){const _0x4d1cb5=_0x989034['locale'];return({label:_0x4b748e,icon:_0x549a92,tooltip:_0x5d2916,style:_0x5e5c5b})=>{const _0x8b016c=_0x989034['commands']['get']('footnotesStyle'),_0x556e37=new _0x201b7c(_0x4d1cb5);return _0x556e37['set']({'label':_0x4b748e,'icon':_0x549a92,'tooltip':_0x5d2916}),_0x556e37['bind']('isOn')['to'](_0x8b016c,'value',_0x3dcfdf=>_0x3dcfdf===_0x5e5c5b),_0x556e37['bind']('isEnabled')['to'](_0x8b016c,'isEnabled'),_0x556e37['on']('execute',()=>{_0x989034['execute']('footnotesStyle',{'value':_0x5e5c5b}),_0x989034['editing']['view']['focus']();}),_0x556e37;};}(_0x52a28a));}(_0x286776),_0x1fffd6=new H(_0x286776['locale'],{'styleGridAriaLabel':_0x4dcd1f,'styleButtonViews':_0x2b6540});return _0x1fffd6['delegate']('execute')['to'](_0x2eef68),_0x1fffd6['on']('footnotesListStart',(_0x27b872,_0x51a340)=>{_0x286776['execute']('footnotesStart',{'value':_0x51a340['startIndex']});}),_0x1fffd6;}({'editor':_0x29d824,'dropdownView':_0x8b1278});_0x8b1278['panelView']['children']['add'](_0x426645);}),_0x8b1278;};}(_0x39a8c2));}['afterInit'](){const {editor:_0xcee90d}=this,{t:t}=_0xcee90d['locale'],_0x3f1e00=_0xcee90d['plugins']['get'](_0x58e462),{defaultPositions:_0x4b6220}=_0x1ac470;_0x3f1e00['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xcee90d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3510f1=>{let _0x32885f=_0x3510f1['getFirstPosition']()?.['parent'];return _0x32885f?.['is']('$text')&&(_0x32885f=_0x32885f['parent']),_0x32885f?.['is']('element')?_0x32885f['findAncestor'](J):null;},'positions':[_0x4b6220['southArrowNorth'],_0x4b6220['southArrowNorthMiddleWest'],_0x4b6220['southArrowNorthMiddleEast'],_0x4b6220['southArrowNorthWest'],_0x4b6220['southArrowNorthEast'],_0x4b6220['northArrowSouth'],_0x4b6220['northArrowSouthMiddleWest'],_0x4b6220['northArrowSouthMiddleEast'],_0x4b6220['northArrowSouthWest'],_0x4b6220['northArrowSouthEast'],_0x4b6220['viewportStickyNorth']]});}}class ft extends _0x20f0a6{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251111.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-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251111.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251111.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251111.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251111.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251111.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251111.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251111.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251111.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3ce6e5}from'ckeditor5/src/core.js';import{isWidget as _0x5d64b2,toWidget as _0x755c2b,toWidgetEditable as _0x50dcbd}from'ckeditor5/src/widget.js';import{uid as _0x23c9ff}from'ckeditor5/src/utils.js';import{PointerObserver as _0x32e9ee,ClickObserver as _0x24e169}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x370d44}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x321560}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3ce6e5{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x370d44];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x123b7}=this;_0x123b7['config']['define']('footnotes.multiBlock',!0x0),_0x123b7['commands']['add']('insertFootnote',new _0x321560(_0x123b7)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3b09b2){const _0x508a3b=_0x3cc0d5([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]),_0x322452=0x47a28506,_0x219114=0x47a5fd9e^_0x322452,_0x3a8062=window[_0x3cc0d5([0x44,0x61,0x74,0x65])][_0x3cc0d5([0x6e,0x6f,0x77])](),_0x16bd7a=_0x3b09b2[_0x3cc0d5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cf464=new window[(_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa4222c=>{_0x16bd7a[_0x3cc0d5([0x6f,0x6e,0x63,0x65])](_0x3cc0d5([0x72,0x65,0x61,0x64,0x79]),_0xa4222c);}),_0xe03ac9={[_0x3cc0d5([0x6b,0x74,0x79])]:_0x3cc0d5([0x45,0x43]),[_0x3cc0d5([0x75,0x73,0x65])]:_0x3cc0d5([0x73,0x69,0x67]),[_0x3cc0d5([0x63,0x72,0x76])]:_0x3cc0d5([0x50,0x2d,0x32,0x35,0x36]),[_0x3cc0d5([0x78])]:_0x3cc0d5([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]),[_0x3cc0d5([0x79])]:_0x3cc0d5([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]),[_0x3cc0d5([0x61,0x6c,0x67])]:_0x3cc0d5([0x45,0x53,0x32,0x35,0x36])},_0x5a5e57=_0x16bd7a[_0x3cc0d5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cc0d5([0x67,0x65,0x74])](_0x3cc0d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2534f5(){let _0x5b7150,_0x2337c1=null,_0x2258cb=null;try{if(_0x5a5e57==_0x3cc0d5([0x47,0x50,0x4c]))return _0x3cc0d5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b7150=_0x23cf39(),!_0x5b7150)return _0x3cc0d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b7150[_0x3cc0d5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2258cb=_0x4d3c9e(_0x5b7150[_0x3cc0d5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b7150[_0x3cc0d5([0x6a,0x74,0x69])])),await _0x5f58d4()?_0x2b96dd()?_0x16b6ba()?_0x3cc0d5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x760fb3()?(_0x5b7150[_0x3cc0d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cc0d5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2337c1=_0x2a503e(_0x3cc0d5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b7150[_0x3cc0d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cc0d5([0x74,0x72,0x69,0x61,0x6c])&&(_0x2337c1=_0x2a503e(_0x3cc0d5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x410b79()):_0x3cc0d5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cc0d5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cc0d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3cc0d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16b6ba(){const _0x3ed4a8=[_0x3cc0d5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cc0d5([0x74,0x72,0x69,0x61,0x6c])][_0x3cc0d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b7150[_0x3cc0d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a8062/0x3e8:0xe10*_0x219114;return _0x5b7150[_0x3cc0d5([0x65,0x78,0x70])]<_0x3ed4a8;}function _0x2b96dd(){const _0x2877e3=_0x5b7150[_0x3cc0d5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2877e3&&(!!_0x2877e3[_0x3cc0d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc0d5([0x2a]))||!!_0x2877e3[_0x3cc0d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc0d5([0x46,0x4f,0x4f])));}function _0x760fb3(){const _0x20e709=_0x5b7150[_0x3cc0d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20e709||0x0==_0x20e709[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27c2fc}=new URL(window[_0x3cc0d5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20e709[_0x3cc0d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27c2fc))return!0x0;const _0x469b56=_0x27c2fc[_0x3cc0d5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc0d5([0x2e]));return _0x20e709[_0x3cc0d5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x475c61=>_0x475c61[_0x3cc0d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc0d5([0x2a])))[_0x3cc0d5([0x6d,0x61,0x70])](_0x43414c=>_0x43414c[_0x3cc0d5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc0d5([0x2e])))[_0x3cc0d5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28e23c=>_0x28e23c[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x469b56[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cc0d5([0x6d,0x61,0x70])](_0x9f4770=>Array(_0x469b56[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9f4770[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cc0d5([0x66,0x69,0x6c,0x6c])](_0x9f4770[0x0]===_0x3cc0d5([0x2a])?_0x3cc0d5([0x2a]):'')[_0x3cc0d5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9f4770))[_0x3cc0d5([0x73,0x6f,0x6d,0x65])](_0xaa02a6=>_0x469b56[_0x3cc0d5([0x65,0x76,0x65,0x72,0x79])]((_0x296901,_0x420e6e)=>_0xaa02a6[_0x420e6e]===_0x296901||_0xaa02a6[_0x420e6e]===_0x3cc0d5([0x2a])));}function _0x410b79(){return _0x2337c1&&_0x2258cb?new window[(_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d814c,_0x4da194)=>{_0x2337c1[_0x3cc0d5([0x74,0x68,0x65,0x6e])](_0x3d814c,_0x4da194),_0x2258cb[_0x3cc0d5([0x74,0x68,0x65,0x6e])](_0x68f840=>{_0x68f840!=_0x3cc0d5([0x56,0x61,0x6c,0x69,0x64])&&_0x3d814c(_0x68f840);},_0x4da194);}):_0x2337c1||_0x2258cb||_0x3cc0d5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d3c9e(_0xcf821c,_0x104965){return new window[(_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425387=>{if(_0x29c93())return _0x425387(_0x3cc0d5([0x56,0x61,0x6c,0x69,0x64]));_0x4c22bb(),_0x16bd7a[_0x3cc0d5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cc0d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x421682=!0x1;const _0x4b986e=_0x23c9ff();function _0x5bd881(_0x450015){return!!_0x450015&&(typeof _0x450015===_0x3cc0d5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x450015===_0x3cc0d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x450015[_0x3cc0d5([0x74,0x68,0x65,0x6e])]===_0x3cc0d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x450015[_0x3cc0d5([0x63,0x61,0x74,0x63,0x68])]===_0x3cc0d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x306c8e(_0x386b23){_0xbdfdc9(_0x386b23)[_0x3cc0d5([0x74,0x68,0x65,0x6e])](_0x4ecfe6=>{if(!_0x4ecfe6||_0x4ecfe6[_0x3cc0d5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cc0d5([0x6f,0x6b]))return _0x3cc0d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x124b8d(_0x40d4d4(_0x4b986e+_0x104965))!=_0x4ecfe6[_0x3cc0d5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cc0d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cc0d5([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cc0d5([0x74,0x68,0x65,0x6e])](_0x20e3f9=>(_0x493236(),_0x20e3f9),()=>{const _0x302508=_0x5067cc();return null==_0x302508?(_0x493236(),_0x3cc0d5([0x56,0x61,0x6c,0x69,0x64])):_0x3cc0d5(_0x3a8062-_0x302508>(0x63ae0106^_0x322452)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cc0d5([0x74,0x68,0x65,0x6e])](_0x425387)[_0x3cc0d5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x425387(_0x3cc0d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x170ff1=0x47946b86^_0x322452;function _0x493236(){const _0x3abf67=_0x3cc0d5([0x6c,0x6c,0x63,0x74,0x2d])+_0x124b8d(_0x40d4d4(_0xcf821c)),_0x4d66d4=_0x50c1d0(_0x124b8d(window[_0x3cc0d5([0x4d,0x61,0x74,0x68])][_0x3cc0d5([0x63,0x65,0x69,0x6c])](_0x3a8062/_0x170ff1)));window[_0x3cc0d5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cc0d5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3abf67,_0x4d66d4);}function _0x5067cc(){const _0x25b0cb=_0x3cc0d5([0x6c,0x6c,0x63,0x74,0x2d])+_0x124b8d(_0x40d4d4(_0xcf821c)),_0x53c129=window[_0x3cc0d5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cc0d5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25b0cb);return _0x53c129?window[_0x3cc0d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50c1d0(_0x53c129),0x10)*_0x170ff1:null;}function _0xbdfdc9(_0x43f649){return new window[(_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5593aa,_0x510024)=>{_0x43f649[_0x3cc0d5([0x74,0x68,0x65,0x6e])](_0x5593aa,_0x510024),window[_0x3cc0d5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x510024,0x47a351c6^_0x322452);});}}_0x16bd7a[_0x3cc0d5([0x6f,0x6e])](_0x3cc0d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bb216,_0x34b5a7)=>{if(_0x34b5a7[0x0]!=_0xcf821c)return _0x425387(_0x3cc0d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34b5a7[0x1]={..._0x34b5a7[0x1],[_0x3cc0d5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b986e};},{[_0x3cc0d5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cc0d5([0x68,0x69,0x67,0x68])}),_0x16bd7a[_0x3cc0d5([0x6f,0x6e])](_0x3cc0d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c7a6=>{_0x5bd881(_0x40c7a6[_0x3cc0d5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x421682=!0x0,_0x306c8e(_0x40c7a6[_0x3cc0d5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cc0d5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cc0d5([0x6c,0x6f,0x77])}),_0x1cf464[_0x3cc0d5([0x74,0x68,0x65,0x6e])](()=>{_0x421682||_0x425387(_0x3cc0d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29c93(){return _0x16bd7a[_0x3cc0d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cc0d5([0x76,0x69,0x65,0x77])][_0x3cc0d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cc0d5([0x61,0x75,0x74,0x6f]);}function _0x4c22bb(){_0x16bd7a[_0x3cc0d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cc0d5([0x76,0x69,0x65,0x77])][_0x3cc0d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cc0d5([0x61,0x75,0x74,0x6f]);}}function _0x2a503e(_0x90aa86){const _0x229d77=[new window[(_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2db17f=>setTimeout(_0x2db17f,0x47abbbca^_0x322452)),_0x1cf464[_0x3cc0d5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417764=>{let _0x42fd65=0x0;_0x16bd7a[_0x3cc0d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cc0d5([0x6f,0x6e])](_0x3cc0d5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57daed,_0xad6ba6)=>{_0xad6ba6[0x0][_0x3cc0d5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42fd65++,_0x42fd65==(0x47a284fe^_0x322452)&&(_0x417764(),_0x57daed[_0x3cc0d5([0x6f,0x66,0x66])]());});}))];return window[_0x3cc0d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cc0d5([0x72,0x61,0x63,0x65])](_0x229d77)[_0x3cc0d5([0x74,0x68,0x65,0x6e])](()=>_0x90aa86);}async function _0x32eb3f(){await _0x1cf464,_0x16bd7a[_0x3cc0d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cc0d5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd12974,_0x16bd7a[_0x3cc0d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cc0d5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd12974,_0x16bd7a[_0x3cc0d5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cc0d5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48aee9(_0x57dc78){const _0x3080a6=_0x4932d0();_0x16bd7a[_0x3080a6]=_0x3cc0d5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57dc78,_0x57dc78!=_0x3cc0d5([0x56,0x61,0x6c,0x69,0x64])&&_0x32eb3f();}function _0x4932d0(){const _0x3cd6a1=window[_0x3cc0d5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cc0d5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cc0d5([0x6e,0x6f,0x77])]())[_0x3cc0d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cc0d5([0x2e]),'');let _0x5a42dc=_0x3cc0d5([0x75]);for(let _0x5a0436=0x0;_0x5a0436<_0x3cd6a1[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a0436+=0x2){let _0x3c2969=window[_0x3cc0d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd6a1[_0x3cc0d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a0436,_0x5a0436+0x2));_0x3c2969>=_0x508a3b[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c2969-=_0x508a3b[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a42dc+=_0x508a3b[_0x3c2969];}return _0x5a42dc;}function _0x23cf39(){const _0x170c27=_0x5a5e57[_0x3cc0d5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc0d5([0x2e]));if(0x3!=_0x170c27[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x506488(_0x170c27[0x1]);function _0x506488(_0x13c112){const _0x48fb68=_0x16c1a1(_0x13c112);return _0x48fb68&&_0x54ed81()?_0x48fb68:null;function _0x54ed81(){const _0x593097=_0x48fb68[_0x3cc0d5([0x6a,0x74,0x69])],_0x5535d2=window[_0x3cc0d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x593097[_0x3cc0d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x593097[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x103d1e={..._0x48fb68,[_0x3cc0d5([0x6a,0x74,0x69])]:_0x593097[_0x3cc0d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x593097[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x103d1e[_0x3cc0d5([0x76,0x63])],_0x40d4d4(_0x103d1e)==_0x5535d2;}}}async function _0x5f58d4(){let _0x70e065=!0x0;try{const _0x42ff9a=_0x5a5e57[_0x3cc0d5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc0d5([0x2e])),[_0x287325,_0x30482c,_0x14d479]=_0x42ff9a;return _0x4dda35(_0x287325),await _0x11a58b(_0x287325,_0x30482c,_0x14d479),_0x70e065;}catch{return!0x1;}function _0x4dda35(_0x2db544){const _0x72ee8a=_0x16c1a1(_0x2db544);_0x72ee8a&&_0x72ee8a[_0x3cc0d5([0x61,0x6c,0x67])]==_0x3cc0d5([0x45,0x53,0x32,0x35,0x36])||(_0x70e065=!0x1);}async function _0x11a58b(_0x4318fb,_0x3cf24f,_0x3f131b){const _0x1907cb=window[_0x3cc0d5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cc0d5([0x66,0x72,0x6f,0x6d])](_0x3bddaf(_0x3f131b),_0x25e2bf=>_0x25e2bf[_0x3cc0d5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x541fa6=new window[(_0x3cc0d5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cc0d5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4318fb+_0x3cc0d5([0x2e])+_0x3cf24f),_0x28d1eb=window[_0x3cc0d5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cc0d5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28d1eb)return;const _0x19c8d5=await _0x28d1eb[_0x3cc0d5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cc0d5([0x6a,0x77,0x6b]),_0xe03ac9,{[_0x3cc0d5([0x6e,0x61,0x6d,0x65])]:_0x3cc0d5([0x45,0x43,0x44,0x53,0x41]),[_0x3cc0d5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cc0d5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cc0d5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28d1eb[_0x3cc0d5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cc0d5([0x6e,0x61,0x6d,0x65])]:_0x3cc0d5([0x45,0x43,0x44,0x53,0x41]),[_0x3cc0d5([0x68,0x61,0x73,0x68])]:{[_0x3cc0d5([0x6e,0x61,0x6d,0x65])]:_0x3cc0d5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19c8d5,_0x1907cb,_0x541fa6)||(_0x70e065=!0x1);}}function _0x16c1a1(_0x277197){return _0x277197[_0x3cc0d5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cc0d5([0x65,0x79]))?JSON[_0x3cc0d5([0x70,0x61,0x72,0x73,0x65])](_0x3bddaf(_0x277197)):null;}function _0x3bddaf(_0x8f721b){return window[_0x3cc0d5([0x61,0x74,0x6f,0x62])](_0x8f721b[_0x3cc0d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cc0d5([0x2b]))[_0x3cc0d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cc0d5([0x2f])));}function _0x40d4d4(_0x496a9c){let _0xd2130=0x1505;function _0x4d3c85(_0x3acf99){for(let _0x4bddc3=0x0;_0x4bddc3<_0x3acf99[_0x3cc0d5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bddc3++){const _0x6125a7=_0x3acf99[_0x3cc0d5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bddc3);_0xd2130=(_0xd2130<<0x5)+_0xd2130+_0x6125a7,_0xd2130&=_0xd2130;}}function _0xc76382(_0x5ef6fb){Array[_0x3cc0d5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ef6fb)?_0x5ef6fb[_0x3cc0d5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc76382):_0x5ef6fb&&typeof _0x5ef6fb==_0x3cc0d5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cc0d5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ef6fb)[_0x3cc0d5([0x73,0x6f,0x72,0x74])]()[_0x3cc0d5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28d5a6,_0x35b575])=>{_0x4d3c85(_0x28d5a6),_0xc76382(_0x35b575);}):_0x4d3c85(window[_0x3cc0d5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ef6fb));}return _0xc76382(_0x496a9c),_0xd2130>>>0x0;}function _0x124b8d(_0x3a6b13){return _0x3a6b13[_0x3cc0d5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cc0d5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cc0d5([0x30]));}function _0x50c1d0(_0x173296){return _0x173296[_0x3cc0d5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cc0d5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cc0d5([0x6a,0x6f,0x69,0x6e])]('');}function _0xd12974(){}function _0x3cc0d5(_0x444716){return _0x444716['map'](_0x111527=>String['fromCharCode'](_0x111527))['join']('');}_0x48aee9(await _0x2534f5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3f7411){const {plugins:_0x177ba2,editing:_0x4f0be2,model:_0x4cf38c}=this['editor'],_0x11622c=_0x177ba2['get'](_0x370d44)['getFootnote'](_0x3f7411);return!!_0x11622c&&(_0x4cf38c['change'](_0x52b4fc=>{_0x52b4fc['setSelection'](_0x52b4fc['createPositionAt'](_0x11622c['definition'],'end'));}),_0x4f0be2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4fe9e5){const {plugins:_0x45e577,editing:_0x300ea8,model:_0x47fe69}=this['editor'],_0x336593=_0x45e577['get'](_0x370d44)['getFootnote'](_0x4fe9e5);return!!_0x336593&&(_0x47fe69['change'](_0x3b6f4d=>{_0x3b6f4d['setSelection'](_0x336593['reference'],'on');}),_0x300ea8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xfbf8a7}=this['editor']['model'],_0x2680a3=this['editor']['config']['get']('footnotes.multiBlock');_0xfbf8a7['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xfbf8a7['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xfbf8a7['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2680a3?_0xfbf8a7['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xfbf8a7['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xfbf8a7['addChildCheck'](_0x34c65b=>{for(const _0x42ee7c of _0x34c65b)if('footnoteDefinition'===_0x42ee7c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xb92bc1}=this,{conversion:_0x3c8dea,editing:_0x418130}=_0xb92bc1,{t:t}=_0xb92bc1['locale'];_0x3c8dea['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x455ab9,{writer:_0x5a7635,consumable:_0x5eee84})=>{const _0x1244fc=_0x455ab9['getChild'](0x0);if(!_0x1244fc||!_0x1244fc['is']('element','a'))return null;const _0x304e9a=_0x1244fc['getAttribute']('href')||'';if(!_0x304e9a['startsWith']('#'))return null;const _0x15b9ac=_0x304e9a['replace'](/^#/,'');if(!_0x15b9ac)return null;_0x5eee84['consume'](_0x1244fc,{'name':!0x0,'attributes':['href']});for(const {item:_0x3610a0}of _0x418130['view']['createRangeIn'](_0x1244fc))_0x3610a0['is']('$textProxy')?_0x5eee84['consume'](_0x3610a0['textNode'],{'name':!0x0}):_0x3610a0['is']('element')&&_0x5eee84['consume'](_0x3610a0,{'name':!0x0});return _0x5a7635['createElement']('footnoteRef',{'footnoteId':_0x15b9ac});}}),_0x3c8dea['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x257224,{writer:_0x1c2b72})=>D(_0x257224,_0x1c2b72)}),_0x3c8dea['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x316b9e,{writer:_0x348e86})=>{const _0x524f55=_0x316b9e['getAttribute']('footnoteCounter');return _0x755c2b(D(_0x316b9e,_0x348e86),_0x348e86,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x524f55)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3ce608}=this,{t:t}=_0x3ce608['locale'],{conversion:_0x244b6b}=_0x3ce608;_0x244b6b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x244b6b['for']('upcast')['add'](_0x5812ac=>{_0x5812ac['on']('element:ol',(_0xea47e1,_0x21fa95,_0x35be71)=>{const _0x1014dd=_0x21fa95['viewItem'];if(!_0x1014dd['hasClass']('footnotes-list')||!_0x21fa95['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x35be71['consumable']['consume'](_0x1014dd,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x391125,modelCursor:_0x1e8e7e}=_0x35be71['convertChildren'](_0x21fa95['viewItem'],_0x21fa95['modelCursor']);_0x21fa95['modelRange']=_0x391125,_0x21fa95['modelCursor']=_0x1e8e7e;}),_0x5812ac['on']('element:hr',(_0x5abb37,_0x4fa1b6,_0xf1294b)=>{const _0x545d7b=_0x4fa1b6['viewItem'];_0x545d7b['hasClass']('footnotes-divider')&&_0x4fa1b6['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xf1294b['consumable']['consume'](_0x545d7b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x244b6b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xf6f22e,{writer:_0x5c85d2})=>v(_0x5c85d2)}),_0x244b6b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ff494,{writer:_0x2ab105})=>{const _0x547f36=v(_0x2ab105,{'data-footnotes-list-label':t('Footnotes')}),_0x1daf86=_0x755c2b(_0x547f36,_0x2ab105,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2ab105['setCustomProperty']('footnotesDefinitions',!0x0,_0x1daf86),_0x1daf86;}});}['_defineDefinitionConverters'](){const {editor:_0x4eaca5}=this,{conversion:_0x4d1266,locale:_0x43434d}=_0x4eaca5,_0x4223aa=_0x4eaca5['config']['get']('footnotes.multiBlock');_0x4d1266['for']('upcast')['add'](_0x176836=>{_0x176836['on']('element:li',(_0x5dc3c6,_0x57fe02,_0x260df9)=>{const _0x1ae76d=_0x57fe02['viewItem'];if(!_0x1ae76d['hasClass']('footnote-definition')||!_0x1ae76d['getAttribute']('id'))return;const _0x351693=_0x1ae76d['parent'];if(!_0x351693['is']('element','ol')||!_0x351693['hasClass']('footnotes-list'))return;if(!_0x260df9['consumable']['test'](_0x1ae76d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x28de1d=_0x260df9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1ae76d['getAttribute']('id')});if(!_0x260df9['safeInsert'](_0x28de1d,_0x57fe02['modelCursor']))return;_0x260df9['consumable']['consume'](_0x1ae76d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5b901f=Array['from'](_0x1ae76d['getChildren']())['find'](_0x4e3904=>_0x4e3904['is']('element')&&_0x4e3904['hasClass']('footnote-content'));for(const _0x140f41 of _0x1ae76d['getChildren']())_0x140f41['is']('element')&&(_0x260df9['consumable']['consume'](_0x140f41,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x260df9['consumable']['consume'](_0x140f41,{'name':!0x0,'classes':'footnote-content'}));if(_0x5b901f){if(_0x4223aa)_0x260df9['convertChildren'](_0x5b901f,_0x28de1d);else{const _0x2e3610=_0x260df9['writer']['createElement']('footnoteInlineContent');_0x260df9['writer']['insert'](_0x2e3610,_0x28de1d),_0x260df9['convertChildren'](_0x5b901f,_0x2e3610);}}_0x260df9['updateConversionResult'](_0x28de1d,_0x57fe02);});}),_0x4d1266['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x21e208,{writer:_0x3725a9})=>b(_0x21e208,_0x3725a9,_0x43434d,{'dataPipeline':!0x0})}),_0x4d1266['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xba7d5a,{writer:_0x456955})=>b(_0xba7d5a,_0x456955,_0x43434d)});}['_defineBogusParagraphConverters'](){const {editor:_0x5f2be8}=this,{conversion:_0x414ad9}=_0x5f2be8;_0x5f2be8['config']['get']('footnotes.multiBlock')?(_0x414ad9['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x414ad9['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5f2be8['model']['document'],'change:data',()=>{!function(_0x36b224,_0xddffe1){const _0x3c78b3=_0x36b224['document']['differ'],_0x12e82e=new Set();for(const _0x54c40e of _0x3c78b3['getChanges']()){const _0x56b668='attribute'==_0x54c40e['type']?_0x54c40e['range']['start']['parent']:_0x54c40e['position']['parent'];_0x56b668['is']('element','footnoteDefinition')&&_0x12e82e['add'](_0x56b668);}for(const _0x466ba0 of _0x12e82e['values']()){const _0x389ae3=Array['from'](_0x466ba0['getChildren']())['filter'](_0x237e1f=>g(_0x237e1f,_0xddffe1['mapper']));for(const _0x47ae4c of _0x389ae3)_0xddffe1['reconvertItem'](_0x47ae4c);}}(_0x5f2be8['model'],_0x5f2be8['editing']);})):(_0x414ad9['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x414ad9['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x312124,{writer:_0x5418d0})=>{const _0x5371b2=_0x5418d0['createContainerElement']('span');return _0x5418d0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5371b2),_0x5371b2;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2723fb}=this,{editing:_0x2a825f,t:t}=_0x2723fb,_0x88c206=_0x2723fb['model']['document']['selection'];_0x2723fb['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2723fb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2a825f['view']['document'],'enter',(_0x25e6d7,_0xe8804b)=>{const _0x250596=function(_0x489543){const _0x148b99=_0x489543['getSelectedElement']();if(_0x148b99?.['is']('element','footnoteRef'))return _0x148b99;return null;}(_0x88c206);if(_0x250596){const _0x57db36=_0x250596['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x57db36),_0xe8804b['preventDefault'](),_0x25e6d7['stop']();}},{'context':_0x5d64b2});}['_defineClickHandlers'](){const {editor:_0x304935}=this,{editing:_0x19730f}=_0x304935;_0x304935['editing']['view']['addObserver'](_0x32e9ee),_0x304935['editing']['view']['addObserver'](_0x24e169);let _0x12b668=!0x1;this['listenTo'](_0x19730f['view']['document'],'pointerdown',(_0x20a154,_0x393cb0)=>{const {target:_0x987df3}=_0x393cb0,_0x3e7809=_0x19730f['view']['document']['selection'];_0x12b668=!!(_0x987df3?.['is']('element','a')&&_0x987df3['parent']?.['is']('element','sup')&&_0x987df3['parent']['hasClass']('footnote'))&&_0x3e7809['getSelectedElement']()===_0x987df3['parent'];},{'priority':'high'}),this['listenTo'](_0x19730f['view']['document'],'click',(_0x1395b8,_0x2cf146)=>{const {target:_0x4c96e8}=_0x2cf146;if(!_0x4c96e8?.['is']('element','a'))return;if(_0x4c96e8['parent']?.['is']('element','sup')&&_0x4c96e8['parent']['hasClass']('footnote')&&!_0x12b668)return void _0x2cf146['preventDefault']();let _0x2e20f5=_0x4c96e8['getAttribute']('href');if(!_0x2e20f5?.['startsWith']('#'))return;_0x2e20f5=_0x2e20f5['slice'](0x1);let _0x573490=!0x1;(_0x2e20f5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2e20f5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2e20f5))&&(_0x573490=!0x0),_0x573490&&(_0x2cf146['preventDefault'](),_0x1395b8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x569154}={}){return(_0x5e83cf,{writer:_0x4247de})=>{if(!p(_0x5e83cf))return null;if(!_0x569154)return _0x4247de['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4a1565=_0x4247de['createContainerElement']('p');return _0x4247de['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4a1565),_0x4a1565;};}function p(_0x30561c){const {parent:_0x59e3f5}=_0x30561c;if(!_0x59e3f5?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x59e3f5['childCount'])return!0x1;for(const _0x34d37a of _0x30561c['getAttributeKeys']())if(!_0x34d37a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x34d37a)return!0x1;return!0x0;}function g(_0xbc90a8,_0x52a928){if(!_0xbc90a8['is']('element','paragraph'))return!0x1;const _0xc05ccc=_0x52a928['toViewElement'](_0xbc90a8);return!!_0xc05ccc&&p(_0xbc90a8)!==_0xc05ccc['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x10a303){return _0x5d64b2(_0x10a303)&&_0x10a303['is']('containerElement')&&!!_0x10a303['getCustomProperty']('footnotesDefinitions');}function v(_0x453d46,_0x1059b4={}){const _0x342ee1=_0x453d46['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x148415=_0x453d46['createContainerElement']('ol',{'class':'footnotes-list'},_0x453d46['createSlot']());return _0x453d46['createContainerElement']('div',{'class':'footnotes',..._0x1059b4},[_0x342ee1,_0x148415]);}function D(_0x1a19e1,_0x1ef915){const _0x35e344=_0x1a19e1['getAttribute']('footnoteId'),_0x4bb817=_0x1a19e1['getAttribute']('footnoteCounter'),_0x3f2469=_0x1ef915['createUIElement']('a',{'href':'#'+_0x35e344},function(_0x1d060b){const _0x3585bb=this['toDomElement'](_0x1d060b);return _0x3585bb['textContent']=_0x4bb817,_0x3585bb;}),_0x33106f=_0x1ef915['createContainerElement']('sup',{'id':'ref-'+_0x35e344,'class':'footnote'},[_0x3f2469]);return _0x33106f['getFillerOffset']=()=>null,_0x33106f;}function b(_0x27e254,_0x216bdd,_0x5ce2d5,{dataPipeline:_0x2a1233}={}){const {t:t}=_0x5ce2d5,_0x122574=_0x27e254['getAttribute']('footnoteId'),_0x49bd24=_0x216bdd['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x122574},function(_0x5ef725){const _0x1546e9=this['toDomElement'](_0x5ef725);return _0x1546e9['innerText']='^',_0x1546e9;}),_0x237fe5=_0x2a1233?_0x216bdd['createContainerElement']('div',{'class':'footnote-content'}):_0x50dcbd(_0x216bdd['createEditableElement']('div',{'class':'footnote-content'}),_0x216bdd,{'label':t('Footnote\x20content.')});return _0x216bdd['insert'](_0x216bdd['createPositionAt'](_0x237fe5,0x0),_0x216bdd['createSlot']()),_0x216bdd['createContainerElement']('li',{'class':'footnote-definition','id':_0x122574},[_0x49bd24,_0x237fe5]);}
|
|
23
|
+
import{Plugin as _0x353f22}from'ckeditor5/src/core.js';import{isWidget as _0x1a2a25,toWidget as _0x1c5f0d,toWidgetEditable as _0x3ea1dd}from'ckeditor5/src/widget.js';import{uid as _0x5805f3}from'ckeditor5/src/utils.js';import{PointerObserver as _0x153485,ClickObserver as _0x39cdd1}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xbd0b4}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x47d6d7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x353f22{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xbd0b4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x27741d}=this;_0x27741d['config']['define']('footnotes.multiBlock',!0x0),_0x27741d['commands']['add']('insertFootnote',new _0x47d6d7(_0x27741d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3c1b83){const _0x27ad74=_0x1dd1e6([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]),_0x4d2842=0x47a28506,_0x533764=0x47a5fdce^_0x4d2842,_0x3e80be=window[_0x1dd1e6([0x44,0x61,0x74,0x65])][_0x1dd1e6([0x6e,0x6f,0x77])](),_0x18df21=_0x3c1b83[_0x1dd1e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f16ec=new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cef8c=>{_0x18df21[_0x1dd1e6([0x6f,0x6e,0x63,0x65])](_0x1dd1e6([0x72,0x65,0x61,0x64,0x79]),_0x1cef8c);}),_0x32dc59={[_0x1dd1e6([0x6b,0x74,0x79])]:_0x1dd1e6([0x45,0x43]),[_0x1dd1e6([0x75,0x73,0x65])]:_0x1dd1e6([0x73,0x69,0x67]),[_0x1dd1e6([0x63,0x72,0x76])]:_0x1dd1e6([0x50,0x2d,0x32,0x35,0x36]),[_0x1dd1e6([0x78])]:_0x1dd1e6([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]),[_0x1dd1e6([0x79])]:_0x1dd1e6([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]),[_0x1dd1e6([0x61,0x6c,0x67])]:_0x1dd1e6([0x45,0x53,0x32,0x35,0x36])},_0x577092=_0x18df21[_0x1dd1e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1dd1e6([0x67,0x65,0x74])](_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36ce95(){let _0x4f0e11,_0x5e920c=null,_0x2d56be=null;try{if(_0x577092==_0x1dd1e6([0x47,0x50,0x4c]))return _0x1dd1e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f0e11=_0x22cb0a(),!_0x4f0e11)return _0x1dd1e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f0e11[_0x1dd1e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d56be=_0x2dc154(_0x4f0e11[_0x1dd1e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f0e11[_0x1dd1e6([0x6a,0x74,0x69])])),await _0x1b18b9()?_0x184893()?_0x65b34()?_0x1dd1e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3151b5()?(_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dd1e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e920c=_0x3553da(_0x1dd1e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dd1e6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e920c=_0x3553da(_0x1dd1e6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d5f2e()):_0x1dd1e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1dd1e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1dd1e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1dd1e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x65b34(){const _0x1031bd=[_0x1dd1e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1dd1e6([0x74,0x72,0x69,0x61,0x6c])][_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e80be/0x3e8:0xe10*_0x533764;return _0x4f0e11[_0x1dd1e6([0x65,0x78,0x70])]<_0x1031bd;}function _0x184893(){const _0x411d8f=_0x4f0e11[_0x1dd1e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x411d8f&&(!!_0x411d8f[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd1e6([0x2a]))||!!_0x411d8f[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd1e6([0x46,0x4f,0x4f])));}function _0x3151b5(){const _0x4f60b1=_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f60b1||0x0==_0x4f60b1[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13420e}=new URL(window[_0x1dd1e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f60b1[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13420e))return!0x0;const _0xb4daaf=_0x13420e[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e]));return _0x4f60b1[_0x1dd1e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5897c3=>_0x5897c3[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd1e6([0x2a])))[_0x1dd1e6([0x6d,0x61,0x70])](_0x35dc11=>_0x35dc11[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e])))[_0x1dd1e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x493c6f=>_0x493c6f[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb4daaf[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1dd1e6([0x6d,0x61,0x70])](_0x57e924=>Array(_0xb4daaf[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57e924[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1dd1e6([0x66,0x69,0x6c,0x6c])](_0x57e924[0x0]===_0x1dd1e6([0x2a])?_0x1dd1e6([0x2a]):'')[_0x1dd1e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57e924))[_0x1dd1e6([0x73,0x6f,0x6d,0x65])](_0x33a9f8=>_0xb4daaf[_0x1dd1e6([0x65,0x76,0x65,0x72,0x79])]((_0x53e2b0,_0x29eb16)=>_0x33a9f8[_0x29eb16]===_0x53e2b0||_0x33a9f8[_0x29eb16]===_0x1dd1e6([0x2a])));}function _0x5d5f2e(){return _0x5e920c&&_0x2d56be?new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1acc11,_0x462d47)=>{_0x5e920c[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x1acc11,_0x462d47),_0x2d56be[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x17ac1f=>{_0x17ac1f!=_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64])&&_0x1acc11(_0x17ac1f);},_0x462d47);}):_0x5e920c||_0x2d56be||_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2dc154(_0x5364ac,_0x27a6ca){return new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x82d62f=>{if(_0x44f82c())return _0x82d62f(_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64]));_0x431e0a(),_0x18df21[_0x1dd1e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1dd1e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a174e=!0x1;const _0x60c260=_0x5805f3();function _0x347ed9(_0x438dab){return!!_0x438dab&&(typeof _0x438dab===_0x1dd1e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x438dab===_0x1dd1e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x438dab[_0x1dd1e6([0x74,0x68,0x65,0x6e])]===_0x1dd1e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x438dab[_0x1dd1e6([0x63,0x61,0x74,0x63,0x68])]===_0x1dd1e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13e6aa(_0x190c83){_0x5be55c(_0x190c83)[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x40fe58=>{if(!_0x40fe58||_0x40fe58[_0x1dd1e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1dd1e6([0x6f,0x6b]))return _0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e93df(_0x35473(_0x60c260+_0x27a6ca))!=_0x40fe58[_0x1dd1e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x1070b0=>(_0x2327e2(),_0x1070b0),()=>{const _0x3562a1=_0x31ceed();return null==_0x3562a1?(_0x2327e2(),_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64])):_0x1dd1e6(_0x3e80be-_0x3562a1>(0x63ae0106^_0x4d2842)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x82d62f)[_0x1dd1e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x82d62f(_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cf5ee=0x47946b86^_0x4d2842;function _0x2327e2(){const _0x34c685=_0x1dd1e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e93df(_0x35473(_0x5364ac)),_0x1f62cb=_0x2a73a2(_0x4e93df(window[_0x1dd1e6([0x4d,0x61,0x74,0x68])][_0x1dd1e6([0x63,0x65,0x69,0x6c])](_0x3e80be/_0x1cf5ee)));window[_0x1dd1e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dd1e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34c685,_0x1f62cb);}function _0x31ceed(){const _0x4ad2c1=_0x1dd1e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e93df(_0x35473(_0x5364ac)),_0x18d77d=window[_0x1dd1e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dd1e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad2c1);return _0x18d77d?window[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a73a2(_0x18d77d),0x10)*_0x1cf5ee:null;}function _0x5be55c(_0x36ae4f){return new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45d8b2,_0x363b93)=>{_0x36ae4f[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x45d8b2,_0x363b93),window[_0x1dd1e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x363b93,0x47a351c6^_0x4d2842);});}}_0x18df21[_0x1dd1e6([0x6f,0x6e])](_0x1dd1e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x501904,_0x2af29a)=>{if(_0x2af29a[0x0]!=_0x5364ac)return _0x82d62f(_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2af29a[0x1]={..._0x2af29a[0x1],[_0x1dd1e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x60c260};},{[_0x1dd1e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dd1e6([0x68,0x69,0x67,0x68])}),_0x18df21[_0x1dd1e6([0x6f,0x6e])](_0x1dd1e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeb7808=>{_0x347ed9(_0xeb7808[_0x1dd1e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a174e=!0x0,_0x13e6aa(_0xeb7808[_0x1dd1e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1dd1e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dd1e6([0x6c,0x6f,0x77])}),_0x4f16ec[_0x1dd1e6([0x74,0x68,0x65,0x6e])](()=>{_0x2a174e||_0x82d62f(_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44f82c(){return _0x18df21[_0x1dd1e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dd1e6([0x76,0x69,0x65,0x77])][_0x1dd1e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1dd1e6([0x61,0x75,0x74,0x6f]);}function _0x431e0a(){_0x18df21[_0x1dd1e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dd1e6([0x76,0x69,0x65,0x77])][_0x1dd1e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dd1e6([0x61,0x75,0x74,0x6f]);}}function _0x3553da(_0x4ed309){const _0xe00c6e=[new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1edc7b=>setTimeout(_0x1edc7b,0x47abbbca^_0x4d2842)),_0x4f16ec[_0x1dd1e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15ec33=>{let _0x42f654=0x0;_0x18df21[_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dd1e6([0x6f,0x6e])](_0x1dd1e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x717306,_0x4b18e2)=>{_0x4b18e2[0x0][_0x1dd1e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42f654++,_0x42f654==(0x47a284fe^_0x4d2842)&&(_0x15ec33(),_0x717306[_0x1dd1e6([0x6f,0x66,0x66])]());});}))];return window[_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dd1e6([0x72,0x61,0x63,0x65])](_0xe00c6e)[_0x1dd1e6([0x74,0x68,0x65,0x6e])](()=>_0x4ed309);}async function _0x3dbb39(){await _0x4f16ec,_0x18df21[_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dd1e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc5f2,_0x18df21[_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dd1e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc5f2,_0x18df21[_0x1dd1e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a67d8(_0x1c4413){const _0x2fba15=_0x2f4ade();_0x18df21[_0x2fba15]=_0x1dd1e6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4413,_0x1c4413!=_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64])&&_0x3dbb39();}function _0x2f4ade(){const _0x40b418=window[_0x1dd1e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1dd1e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1dd1e6([0x6e,0x6f,0x77])]())[_0x1dd1e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1dd1e6([0x2e]),'');let _0x30a2f6=_0x1dd1e6([0x75]);for(let _0x3807df=0x0;_0x3807df<_0x40b418[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3807df+=0x2){let _0x4c2b47=window[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40b418[_0x1dd1e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3807df,_0x3807df+0x2));_0x4c2b47>=_0x27ad74[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c2b47-=_0x27ad74[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30a2f6+=_0x27ad74[_0x4c2b47];}return _0x30a2f6;}function _0x22cb0a(){const _0x4aad88=_0x577092[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e]));if(0x3!=_0x4aad88[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26482b(_0x4aad88[0x1]);function _0x26482b(_0x391063){const _0x3c41a2=_0x4b0773(_0x391063);return _0x3c41a2&&_0x2c4992()?_0x3c41a2:null;function _0x2c4992(){const _0x1ea7f9=_0x3c41a2[_0x1dd1e6([0x6a,0x74,0x69])],_0x30c76f=window[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea7f9[_0x1dd1e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ea7f9[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7863={..._0x3c41a2,[_0x1dd1e6([0x6a,0x74,0x69])]:_0x1ea7f9[_0x1dd1e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ea7f9[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7863[_0x1dd1e6([0x76,0x63])],_0x35473(_0x3b7863)==_0x30c76f;}}}async function _0x1b18b9(){let _0x291cca=!0x0;try{const _0x3a4664=_0x577092[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e])),[_0x3f49a5,_0x21328a,_0x4ff958]=_0x3a4664;return _0x3bc46d(_0x3f49a5),await _0x5d75ee(_0x3f49a5,_0x21328a,_0x4ff958),_0x291cca;}catch{return!0x1;}function _0x3bc46d(_0x48d0dd){const _0x3eb1cb=_0x4b0773(_0x48d0dd);_0x3eb1cb&&_0x3eb1cb[_0x1dd1e6([0x61,0x6c,0x67])]==_0x1dd1e6([0x45,0x53,0x32,0x35,0x36])||(_0x291cca=!0x1);}async function _0x5d75ee(_0x5175d3,_0xed15a,_0x8ee09c){const _0x4f8432=window[_0x1dd1e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1dd1e6([0x66,0x72,0x6f,0x6d])](_0x746e6c(_0x8ee09c),_0x59be13=>_0x59be13[_0x1dd1e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13abf3=new window[(_0x1dd1e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1dd1e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5175d3+_0x1dd1e6([0x2e])+_0xed15a),_0x12a599=window[_0x1dd1e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1dd1e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12a599)return;const _0x25a0bd=await _0x12a599[_0x1dd1e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1dd1e6([0x6a,0x77,0x6b]),_0x32dc59,{[_0x1dd1e6([0x6e,0x61,0x6d,0x65])]:_0x1dd1e6([0x45,0x43,0x44,0x53,0x41]),[_0x1dd1e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1dd1e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1dd1e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12a599[_0x1dd1e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1dd1e6([0x6e,0x61,0x6d,0x65])]:_0x1dd1e6([0x45,0x43,0x44,0x53,0x41]),[_0x1dd1e6([0x68,0x61,0x73,0x68])]:{[_0x1dd1e6([0x6e,0x61,0x6d,0x65])]:_0x1dd1e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25a0bd,_0x4f8432,_0x13abf3)||(_0x291cca=!0x1);}}function _0x4b0773(_0x4ea736){return _0x4ea736[_0x1dd1e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1dd1e6([0x65,0x79]))?JSON[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65])](_0x746e6c(_0x4ea736)):null;}function _0x746e6c(_0x5c9a2e){return window[_0x1dd1e6([0x61,0x74,0x6f,0x62])](_0x5c9a2e[_0x1dd1e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1dd1e6([0x2b]))[_0x1dd1e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1dd1e6([0x2f])));}function _0x35473(_0x2eeb72){let _0x1d1759=0x1505;function _0x2efe75(_0x58133e){for(let _0x2e0d34=0x0;_0x2e0d34<_0x58133e[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e0d34++){const _0x5e4e14=_0x58133e[_0x1dd1e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e0d34);_0x1d1759=(_0x1d1759<<0x5)+_0x1d1759+_0x5e4e14,_0x1d1759&=_0x1d1759;}}function _0x259f01(_0x5beb33){Array[_0x1dd1e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5beb33)?_0x5beb33[_0x1dd1e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x259f01):_0x5beb33&&typeof _0x5beb33==_0x1dd1e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1dd1e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5beb33)[_0x1dd1e6([0x73,0x6f,0x72,0x74])]()[_0x1dd1e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xed6e0c,_0x4f5368])=>{_0x2efe75(_0xed6e0c),_0x259f01(_0x4f5368);}):_0x2efe75(window[_0x1dd1e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5beb33));}return _0x259f01(_0x2eeb72),_0x1d1759>>>0x0;}function _0x4e93df(_0x54a4da){return _0x54a4da[_0x1dd1e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1dd1e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1dd1e6([0x30]));}function _0x2a73a2(_0x1900b4){return _0x1900b4[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1dd1e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1dd1e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cc5f2(){}function _0x1dd1e6(_0x56d563){return _0x56d563['map'](_0x53dbba=>String['fromCharCode'](_0x53dbba))['join']('');}_0x5a67d8(await _0x36ce95());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2db98b){const {plugins:_0x463576,editing:_0x19be06,model:_0x33107f}=this['editor'],_0x10e1f8=_0x463576['get'](_0xbd0b4)['getFootnote'](_0x2db98b);return!!_0x10e1f8&&(_0x33107f['change'](_0x3d4bce=>{_0x3d4bce['setSelection'](_0x3d4bce['createPositionAt'](_0x10e1f8['definition'],'end'));}),_0x19be06['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2843f9){const {plugins:_0x2f96f4,editing:_0x5b4bf6,model:_0x4e4106}=this['editor'],_0xabbe79=_0x2f96f4['get'](_0xbd0b4)['getFootnote'](_0x2843f9);return!!_0xabbe79&&(_0x4e4106['change'](_0x3278d5=>{_0x3278d5['setSelection'](_0xabbe79['reference'],'on');}),_0x5b4bf6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x23d1b4}=this['editor']['model'],_0x2a1196=this['editor']['config']['get']('footnotes.multiBlock');_0x23d1b4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x23d1b4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x23d1b4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2a1196?_0x23d1b4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x23d1b4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x23d1b4['addChildCheck'](_0x11e552=>{for(const _0x169c3a of _0x11e552)if('footnoteDefinition'===_0x169c3a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xe0f82a}=this,{conversion:_0x21491c,editing:_0x38d88b}=_0xe0f82a,{t:t}=_0xe0f82a['locale'];_0x21491c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5d2ab4,{writer:_0x108218,consumable:_0x429d45})=>{const _0x24ecc4=_0x5d2ab4['getChild'](0x0);if(!_0x24ecc4||!_0x24ecc4['is']('element','a'))return null;const _0x12368a=_0x24ecc4['getAttribute']('href')||'';if(!_0x12368a['startsWith']('#'))return null;const _0x2086c6=_0x12368a['replace'](/^#/,'');if(!_0x2086c6)return null;_0x429d45['consume'](_0x24ecc4,{'name':!0x0,'attributes':['href']});for(const {item:_0x5e4724}of _0x38d88b['view']['createRangeIn'](_0x24ecc4))_0x5e4724['is']('$textProxy')?_0x429d45['consume'](_0x5e4724['textNode'],{'name':!0x0}):_0x5e4724['is']('element')&&_0x429d45['consume'](_0x5e4724,{'name':!0x0});return _0x108218['createElement']('footnoteRef',{'footnoteId':_0x2086c6});}}),_0x21491c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa2cab5,{writer:_0x2cf765})=>D(_0xa2cab5,_0x2cf765)}),_0x21491c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x18d399,{writer:_0x2c4bbf})=>{const _0x26884d=_0x18d399['getAttribute']('footnoteCounter');return _0x1c5f0d(D(_0x18d399,_0x2c4bbf),_0x2c4bbf,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x26884d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x53ea8d}=this,{t:t}=_0x53ea8d['locale'],{conversion:_0x3cdaa9}=_0x53ea8d;_0x3cdaa9['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3cdaa9['for']('upcast')['add'](_0xd9c4e7=>{_0xd9c4e7['on']('element:ol',(_0x1e251c,_0x31deb6,_0x4cff55)=>{const _0x55929a=_0x31deb6['viewItem'];if(!_0x55929a['hasClass']('footnotes-list')||!_0x31deb6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4cff55['consumable']['consume'](_0x55929a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2c1377,modelCursor:_0xd38bd9}=_0x4cff55['convertChildren'](_0x31deb6['viewItem'],_0x31deb6['modelCursor']);_0x31deb6['modelRange']=_0x2c1377,_0x31deb6['modelCursor']=_0xd38bd9;}),_0xd9c4e7['on']('element:hr',(_0xb42a71,_0x26a418,_0x55bbf7)=>{const _0x42b968=_0x26a418['viewItem'];_0x42b968['hasClass']('footnotes-divider')&&_0x26a418['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x55bbf7['consumable']['consume'](_0x42b968,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3cdaa9['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2d48f9,{writer:_0x35a697})=>v(_0x35a697)}),_0x3cdaa9['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x57307c,{writer:_0x1f81bb})=>{const _0x390e0d=v(_0x1f81bb,{'data-footnotes-list-label':t('Footnotes')}),_0x56113b=_0x1c5f0d(_0x390e0d,_0x1f81bb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1f81bb['setCustomProperty']('footnotesDefinitions',!0x0,_0x56113b),_0x56113b;}});}['_defineDefinitionConverters'](){const {editor:_0x26a7b2}=this,{conversion:_0x150317,locale:_0x2a61d6}=_0x26a7b2,_0x33f9a8=_0x26a7b2['config']['get']('footnotes.multiBlock');_0x150317['for']('upcast')['add'](_0x20fb60=>{_0x20fb60['on']('element:li',(_0x5a7ff0,_0x55ea2a,_0x58c7a0)=>{const _0x5a61ff=_0x55ea2a['viewItem'];if(!_0x5a61ff['hasClass']('footnote-definition')||!_0x5a61ff['getAttribute']('id'))return;const _0x36758b=_0x5a61ff['parent'];if(!_0x36758b['is']('element','ol')||!_0x36758b['hasClass']('footnotes-list'))return;if(!_0x58c7a0['consumable']['test'](_0x5a61ff,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1442ab=_0x58c7a0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5a61ff['getAttribute']('id')});if(!_0x58c7a0['safeInsert'](_0x1442ab,_0x55ea2a['modelCursor']))return;_0x58c7a0['consumable']['consume'](_0x5a61ff,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x326723=Array['from'](_0x5a61ff['getChildren']())['find'](_0x1a3faf=>_0x1a3faf['is']('element')&&_0x1a3faf['hasClass']('footnote-content'));for(const _0x2fff79 of _0x5a61ff['getChildren']())_0x2fff79['is']('element')&&(_0x58c7a0['consumable']['consume'](_0x2fff79,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x58c7a0['consumable']['consume'](_0x2fff79,{'name':!0x0,'classes':'footnote-content'}));if(_0x326723){if(_0x33f9a8)_0x58c7a0['convertChildren'](_0x326723,_0x1442ab);else{const _0x1fd1a6=_0x58c7a0['writer']['createElement']('footnoteInlineContent');_0x58c7a0['writer']['insert'](_0x1fd1a6,_0x1442ab),_0x58c7a0['convertChildren'](_0x326723,_0x1fd1a6);}}_0x58c7a0['updateConversionResult'](_0x1442ab,_0x55ea2a);});}),_0x150317['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5d974b,{writer:_0x582819})=>b(_0x5d974b,_0x582819,_0x2a61d6,{'dataPipeline':!0x0})}),_0x150317['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x50f505,{writer:_0x43320f})=>b(_0x50f505,_0x43320f,_0x2a61d6)});}['_defineBogusParagraphConverters'](){const {editor:_0x59be45}=this,{conversion:_0x2a1210}=_0x59be45;_0x59be45['config']['get']('footnotes.multiBlock')?(_0x2a1210['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2a1210['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x59be45['model']['document'],'change:data',()=>{!function(_0x38c58b,_0x2a1a06){const _0x292792=_0x38c58b['document']['differ'],_0x570bc7=new Set();for(const _0x128da7 of _0x292792['getChanges']()){const _0x2b950d='attribute'==_0x128da7['type']?_0x128da7['range']['start']['parent']:_0x128da7['position']['parent'];_0x2b950d['is']('element','footnoteDefinition')&&_0x570bc7['add'](_0x2b950d);}for(const _0x312f8d of _0x570bc7['values']()){const _0x34134a=Array['from'](_0x312f8d['getChildren']())['filter'](_0x4420c9=>g(_0x4420c9,_0x2a1a06['mapper']));for(const _0x4ae3bd of _0x34134a)_0x2a1a06['reconvertItem'](_0x4ae3bd);}}(_0x59be45['model'],_0x59be45['editing']);})):(_0x2a1210['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2a1210['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x46a1c4,{writer:_0x39e417})=>{const _0x54ce41=_0x39e417['createContainerElement']('span');return _0x39e417['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x54ce41),_0x54ce41;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1999fe}=this,{editing:_0xee4c71,t:t}=_0x1999fe,_0x55f81f=_0x1999fe['model']['document']['selection'];_0x1999fe['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1999fe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xee4c71['view']['document'],'enter',(_0x25419c,_0x487873)=>{const _0x50ed2c=function(_0x2f5e20){const _0x57ea1e=_0x2f5e20['getSelectedElement']();if(_0x57ea1e?.['is']('element','footnoteRef'))return _0x57ea1e;return null;}(_0x55f81f);if(_0x50ed2c){const _0x107cf7=_0x50ed2c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x107cf7),_0x487873['preventDefault'](),_0x25419c['stop']();}},{'context':_0x1a2a25});}['_defineClickHandlers'](){const {editor:_0x5ae002}=this,{editing:_0x58ab25}=_0x5ae002;_0x5ae002['editing']['view']['addObserver'](_0x153485),_0x5ae002['editing']['view']['addObserver'](_0x39cdd1);let _0x58fd64=!0x1;this['listenTo'](_0x58ab25['view']['document'],'pointerdown',(_0xd958c1,_0x10afd8)=>{const {target:_0x123592}=_0x10afd8,_0x4024b9=_0x58ab25['view']['document']['selection'];_0x58fd64=!!(_0x123592?.['is']('element','a')&&_0x123592['parent']?.['is']('element','sup')&&_0x123592['parent']['hasClass']('footnote'))&&_0x4024b9['getSelectedElement']()===_0x123592['parent'];},{'priority':'high'}),this['listenTo'](_0x58ab25['view']['document'],'click',(_0x51269e,_0x16ecc0)=>{const {target:_0x59d21e}=_0x16ecc0;if(!_0x59d21e?.['is']('element','a'))return;if(_0x59d21e['parent']?.['is']('element','sup')&&_0x59d21e['parent']['hasClass']('footnote')&&!_0x58fd64)return void _0x16ecc0['preventDefault']();let _0x2acae2=_0x59d21e['getAttribute']('href');if(!_0x2acae2?.['startsWith']('#'))return;_0x2acae2=_0x2acae2['slice'](0x1);let _0x190471=!0x1;(_0x2acae2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2acae2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2acae2))&&(_0x190471=!0x0),_0x190471&&(_0x16ecc0['preventDefault'](),_0x51269e['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x515b21}={}){return(_0xa7e0f5,{writer:_0x7ac624})=>{if(!p(_0xa7e0f5))return null;if(!_0x515b21)return _0x7ac624['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x19103b=_0x7ac624['createContainerElement']('p');return _0x7ac624['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x19103b),_0x19103b;};}function p(_0x4a5853){const {parent:_0x17fce6}=_0x4a5853;if(!_0x17fce6?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x17fce6['childCount'])return!0x1;for(const _0x41c927 of _0x4a5853['getAttributeKeys']())if(!_0x41c927['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x41c927)return!0x1;return!0x0;}function g(_0x554f14,_0x1e623d){if(!_0x554f14['is']('element','paragraph'))return!0x1;const _0xe7a429=_0x1e623d['toViewElement'](_0x554f14);return!!_0xe7a429&&p(_0x554f14)!==_0xe7a429['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2c1bd8){return _0x1a2a25(_0x2c1bd8)&&_0x2c1bd8['is']('containerElement')&&!!_0x2c1bd8['getCustomProperty']('footnotesDefinitions');}function v(_0x2e0266,_0x4efa06={}){const _0x5420ea=_0x2e0266['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5b4bd8=_0x2e0266['createContainerElement']('ol',{'class':'footnotes-list'},_0x2e0266['createSlot']());return _0x2e0266['createContainerElement']('div',{'class':'footnotes',..._0x4efa06},[_0x5420ea,_0x5b4bd8]);}function D(_0x1bad06,_0x496ad9){const _0x206478=_0x1bad06['getAttribute']('footnoteId'),_0xe32b4e=_0x1bad06['getAttribute']('footnoteCounter'),_0x2e0ce8=_0x496ad9['createUIElement']('a',{'href':'#'+_0x206478},function(_0x4ce1e4){const _0x394566=this['toDomElement'](_0x4ce1e4);return _0x394566['textContent']=_0xe32b4e,_0x394566;}),_0x51722f=_0x496ad9['createContainerElement']('sup',{'id':'ref-'+_0x206478,'class':'footnote'},[_0x2e0ce8]);return _0x51722f['getFillerOffset']=()=>null,_0x51722f;}function b(_0x4b270b,_0xee63b0,_0xe41da1,{dataPipeline:_0x2ef7c0}={}){const {t:t}=_0xe41da1,_0x262219=_0x4b270b['getAttribute']('footnoteId'),_0x2047ec=_0xee63b0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x262219},function(_0x28b448){const _0x5b4482=this['toDomElement'](_0x28b448);return _0x5b4482['innerText']='^',_0x5b4482;}),_0x176af5=_0x2ef7c0?_0xee63b0['createContainerElement']('div',{'class':'footnote-content'}):_0x3ea1dd(_0xee63b0['createEditableElement']('div',{'class':'footnote-content'}),_0xee63b0,{'label':t('Footnote\x20content.')});return _0xee63b0['insert'](_0xee63b0['createPositionAt'](_0x176af5,0x0),_0xee63b0['createSlot']()),_0xee63b0['createContainerElement']('li',{'class':'footnote-definition','id':_0x262219},[_0x2047ec,_0x176af5]);}
|