@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251110.0 → 0.0.0-nightly-20251112.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
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:1762732800;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:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>q,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:1762905600;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})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=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[P(342)](){return P(296)}static get[P(347)](){return[v,T.ClipboardPipeline]}static get[P(344)](){return!0}static get[P(346)](){return!0}[P(338)](){this[P(290)]()}[P(290)](){const t=P;this[t(283)](),this[t(332)]()}[P(283)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(350)](T.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))})}[P(332)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(328)],r=n[t(350)](T.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=P,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),R=o(355),V=o(450),N=o.n(V),K=o(774),M=o.n(K),j=o(265),B=o.n(j),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=M(),J.insertStyleElement=W();N()(G.A,J);G.A&&G.A.locals&&G.A.locals;class q 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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=292]})(t,e)}!function(t){for(var e=Y,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[X(293)](){return X(307)}static get[X(295)](){return[v,D,q]}static get[X(297)](){return!0}static get[X(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-=362]})(t,e)}function rt(){const t=["911410dfPIiC","includes","539aszURr","117QgvNTH","refresh","isEnabled","change","10002632DXKQyA","19714JFSnCq","68212AaDBCh","get","model","_updateFootnotesCounters","plugins","footnotesListStyle","setAttribute","getAttribute","665766JZfPcG","894528NdXMNR","1968965KRYobz","execute","value","267SSmHSU","getFootnotesDefinitionsObjectElement","21PSQgMB","76BnQRnq"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(988445===-parseInt(e(380))/1*(-parseInt(e(363))/2)+-parseInt(e(377))/3*(-parseInt(e(364))/4)+-parseInt(e(374))/5+-parseInt(e(372))/6*(-parseInt(e(379))/7)+parseInt(e(362))/8+-parseInt(e(384))/9*(-parseInt(e(381))/10)+parseInt(e(383))/11*(-parseInt(e(373))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(385)](){const t=it,{editor:e}=this,o=e[t(368)][t(365)](p)[t(378)]();this[t(386)]=!!o,this[t(376)]=o?.[t(371)](t(369))??null}[it(375)]({value:t}){const e=it,{editor:o}=this,n=o[e(368)][e(365)](p),i=n[e(378)]();i&&nt[e(382)](t)&&o[e(366)][e(387)](o=>{const s=e;o[s(370)](s(369),t,i),n[s(367)](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=M(),kt.insertStyleElement=W();N()(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:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new 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 St 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 Tt(){var t=["56cPBMdo","4809238VmxtOU","371724auHQDA","16UNemJc","6kXwjLL","6096700hfJQAW","123507nACPQu","32762fUYKpS","542130MxEWio","584919wisRRR"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=339]})(t,e)}!function(t){for(var e=Pt,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())}}(Tt)})(),(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 _0x4b5eea,Command as _0x2f457c}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x54bafd,isWidget as _0x6f5d1c,toWidgetEditable as _0x3cf00e,WidgetToolbarRepository as _0x285fa4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3b77b8,logWarning as _0x232303,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1b398e,ClickObserver as _0x519466}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3f5710}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2cf05b,ButtonView as _0x5f440f,View as _0x2595d4,ViewCollection as _0x43eaee,FocusCycler as _0x3d2665,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x5def56,BalloonPanelView as _0x3861d5,createDropdown as _0x4df95b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xf8efeb,IconListStyleDecimal as _0x14bdc1,IconListStyleDecimalLeadingZero as _0x476c0d,IconListStyleLowerRoman as _0x321568,IconListStyleUpperRoman as _0x5af648,IconListStyleLowerLatin as _0x4486ab,IconListStyleUpperLatin as _0x584d98}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x26fc67,_0x2229db){this['_model']=_0x26fc67,this['_elementName']=_0x2229db['elementName'],this['_getElementKey']=_0x2229db['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5d0c98){const _0x1e0d43=new Set(),_0x805500=new Map();for(const _0x5e375c of _0x5d0c98){if('insert'===_0x5e375c['type']&&'$text'!==_0x5e375c['name']&&_0x5e375c['position']['nodeAfter']){const _0x2084cf=this['_model']['createRangeOn'](_0x5e375c['position']['nodeAfter']);for(const _0x4f7fe3 of _0x2084cf['getItems']()){if(!_0x4f7fe3['is']('element',this['_elementName']))continue;const _0x6c0c91=this['_getElementKey'](_0x4f7fe3);_0x805500['has'](_0x6c0c91)||_0x805500['set'](_0x6c0c91,[]),_0x805500['get'](_0x6c0c91)['push'](_0x4f7fe3);}}if('remove'===_0x5e375c['type']&&_0x5e375c['name']===this['_elementName']){const _0x4836c8=this['_getElementKey']({'getAttribute':_0x4e3d66=>_0x5e375c['attributes']['get'](_0x4e3d66)});_0x1e0d43['add'](_0x4836c8);}}for(const [_0x281c4b,_0x580953]of this['_trackedElements'])'$graveyard'===_0x580953['root']['rootName']&&_0x1e0d43['add'](_0x281c4b);for(const _0x469269 of _0x1e0d43)this['_trackedElements']['delete'](_0x469269);for(const [_0x58bcad,_0x3d0bca]of _0x805500)this['_trackedElements']['set'](_0x58bcad,_0x3d0bca[_0x3d0bca['length']-0x1]);const _0x21d0d2=new Set();for(const [_0x4ec94f,_0x24088d]of _0x805500)_0x1e0d43['has'](_0x4ec94f)&&(_0x21d0d2['add'](_0x24088d[0x0]),_0x24088d['length']>0x1?_0x805500['set'](_0x4ec94f,_0x24088d['slice'](0x1)):_0x805500['delete'](_0x4ec94f),_0x1e0d43['delete'](_0x4ec94f));return{'removed':Array['from'](_0x1e0d43),'inserted':Array['from'](_0x805500['values']())['flat'](),'moved':Array['from'](_0x21d0d2)};}}class c extends _0x4b5eea{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cafe7){super(_0x3cafe7),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x46e62f=>_0x46e62f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3fffe9=>_0x3fffe9['getAttribute']('footnoteId')});}['init'](){const {editor:_0xa2e4f3}=this,{model:_0x3f5d14,data:_0x5a936b}=_0xa2e4f3;_0x3f5d14['document']['registerPostFixer'](_0x190940=>{const _0x5e0c4c=_0x3f5d14['document']['differ']['getChanges']();let _0x12ca7a=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x190940,_0x5e0c4c)&&(_0x12ca7a=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x190940,_0x5e0c4c)&&(_0x12ca7a=!0x0),this['_handleFootnoteReferencesChanges'](_0x190940,_0x5e0c4c)&&(_0x12ca7a=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x190940)&&(_0x12ca7a=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x190940)&&(_0x12ca7a=!0x0),this['_sortFootnoteDefinitions'](_0x190940)&&(_0x12ca7a=!0x0),_0x12ca7a;}),this['listenTo'](_0x3f5d14['document'],'change:data',()=>{_0x3f5d14['enqueueChange']({'isUndoable':!0x1},_0x4088ff=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x4088ff);});},{'priority':'low'}),this['listenTo'](_0x5a936b,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2607fc){return this['_footnotes']['find'](_0x2b5f81=>_0x2b5f81['id']===_0x2607fc)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x162eed){this['_footnoteFormatter']=_0x162eed;}['_updateFootnotesCounters'](_0x46abed,_0x5dcf53=0x0){let _0x249d09=!0x1;for(let _0x29e008=_0x5dcf53;_0x29e008<this['_footnotes']['length'];_0x29e008++)this['_updateFootnoteRefCounter'](_0x46abed,_0x29e008)&&(_0x249d09=!0x0);return _0x249d09;}['_insertEmptyFootnotesDefinitionsContainer'](_0x1d469f,_0x5b3376){const _0x3db618=_0x1d469f['createElement']('footnotesDefinitions',{});return _0x1d469f['append'](_0x3db618,_0x5b3376),this['_footnotesDefinitions']=_0x3db618,_0x3db618;}['_ensureFootnotesDefinitionsContainerExists'](_0x14b645){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x335d40=this['_footnotes'][0x0]['reference']['root'],_0x59d223=this['_insertEmptyFootnotesDefinitionsContainer'](_0x14b645,_0x335d40);for(const _0x4feb3c of this['_footnotes'])_0x4feb3c['definition']['parent']||_0x14b645['insert'](_0x4feb3c['definition'],_0x59d223,'end');this['_updateFootnotesCounters'](_0x14b645);}['_handleFootnotesDefinitionsObjectChanges'](_0x19287c,_0x2767a4){let _0x4aa281=!0x1;const {inserted:_0x48a387,removed:_0x3f795e,moved:_0x3d7077}=this['_footnoteDefsContainerTracker']['getChanges'](_0x2767a4);if(_0x3d7077['length']&&(this['_footnotesDefinitions']=_0x3d7077[0x0]),_0x48a387['length']){if(_0x48a387['length']>0x1||this['_footnotesDefinitions']&&_0x48a387['some'](_0x506ffc=>_0x506ffc!==this['_footnotesDefinitions'])){const _0x275f88=_0x19287c['createElement']('footnotesDefinitions',{}),_0x21f5f7=[];this['_footnotesDefinitions']&&_0x21f5f7['push'](this['_footnotesDefinitions']),_0x21f5f7['push'](..._0x48a387),_0x19287c['insert'](_0x275f88,_0x21f5f7[0x0],'before');for(const _0x5cd25a of _0x21f5f7)_0x19287c['move'](_0x19287c['createRangeIn'](_0x5cd25a),_0x19287c['createPositionAt'](_0x275f88,'end')),_0x19287c['remove'](_0x5cd25a);this['_footnotesDefinitions']=_0x275f88,this['_updateFootnotesCounters'](_0x19287c),_0x4aa281=!0x0;}else this['_footnotesDefinitions']=_0x48a387[0x0];}if(_0x3f795e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3a4f29 of this['_footnotes'])_0x19287c['remove'](_0x3a4f29['reference']),_0x4aa281=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4aa281;}['_handleFootnoteDefinitionsChanges'](_0xe7535c,_0x448c20){let _0x350150=!0x1;const _0x642f7f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x2ec612,moved:_0x3c1821}=this['_footnoteDefsTracker']['getChanges'](_0x448c20);for(const _0x1c7750 of[..._0x3c1821,..._0x2ec612]){const _0x6fc688=_0x1c7750['getAttribute']('footnoteId'),_0x5ca0db=this['getFootnote'](_0x6fc688);_0x5ca0db&&(_0x5ca0db['definition']=_0x1c7750),_(_0xe7535c,_0x642f7f,_0x1c7750)&&(_0x350150=!0x0);}return _0x350150;}['_handleFootnoteReferencesChanges'](_0x49e7e9,_0x437d0e){let _0x20f331=!0x1;const {removed:_0x2a9885,inserted:_0xa145e6,moved:_0xb0cd12}=this['_footnoteRefsTracker']['getChanges'](_0x437d0e);for(const _0x15c826 of _0x2a9885)this['_handleRemoveFootnoteReferenceById'](_0x49e7e9,_0x15c826)&&(_0x20f331=!0x0);for(const _0x2bba1d of _0xa145e6)this['_handleInsertedFootnoteReference'](_0x49e7e9,_0x2bba1d)&&(_0x20f331=!0x0);for(const _0x18e403 of _0xb0cd12)this['_handleMovedFootnoteReference'](_0x49e7e9,_0x18e403)&&(_0x20f331=!0x0);return _0x20f331;}['_handleFootnotesDefinitionsObjectSync'](_0x5155c0){if(!this['_footnotesDefinitions'])return!0x1;let _0x54ee76=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x13c6ef=[];for(const _0x272e0c of this['_footnotesDefinitions']['getChildren']()){const _0x343abc=_0x272e0c['getAttribute']('footnoteId');this['getFootnote'](_0x343abc)||(_0x13c6ef['unshift'](_0x272e0c),_0x54ee76=!0x0);}for(const _0x37eb3c of _0x13c6ef)_0x5155c0['remove'](_0x37eb3c);}const _0x2cb8b3=new Set(),_0x13959f=[];for(const _0x3a7e22 of this['_footnotesDefinitions']['getChildren']()){const _0x142a0c=_0x3a7e22['getAttribute']('footnoteId');_0x2cb8b3['has'](_0x142a0c)?(_0x13959f['unshift'](_0x3a7e22),_0x54ee76=!0x0):_0x2cb8b3['add'](_0x142a0c);}for(const _0x15c823 of _0x13959f)_0x5155c0['remove'](_0x15c823);return this['_footnotesDefinitions']['childCount']||(_0x5155c0['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x54ee76=!0x0),_0x54ee76;}['_handleInsertedFootnoteReference'](_0x1962a5,_0x49827e){if(this['_footnotes']['find'](_0x3b6228=>_0x3b6228['reference']===_0x49827e))return!0x1;let _0x5bd323=!0x1;const _0xd367d3=_0x49827e['getAttribute']('footnoteId'),_0x476ce6=this['_footnotes']['findIndex'](_0xbfe6d3=>_0xbfe6d3['id']===_0xd367d3);-0x1!==_0x476ce6&&(_0x1962a5['remove'](this['_footnotes'][_0x476ce6]['reference']),this['_footnotes']['splice'](_0x476ce6,0x1),_0x5bd323=!0x0);let _0xd779d2=this['_footnotesDefinitions']?function(_0x337712,_0x32236c){for(const _0x3ca426 of _0x337712['getChildren']())if(_0x3ca426['getAttribute']('footnoteId')===_0x32236c)return _0x3ca426;return null;}(this['_footnotesDefinitions'],_0xd367d3):null;_0xd779d2||(_0xd779d2=_0x1962a5['createElement']('footnoteDefinition',{'footnoteId':_0xd367d3}),this['_footnotesDefinitions']&&(_0x1962a5['insert'](_0xd779d2,this['_footnotesDefinitions'],'end'),_0x5bd323=!0x0));const _0x40cc95={'id':_0xd367d3,'reference':_0x49827e,'definition':_0xd779d2},_0xd6124f=I(this['editor']['model'],this['_footnotes'],_0x49827e);this['_footnotes']['splice'](_0xd6124f,0x0,_0x40cc95);let _0x4e6abf=_0xd6124f;return-0x1!==_0x476ce6&&(_0x4e6abf=Math['min'](_0xd6124f,_0x476ce6)),this['_updateFootnotesCounters'](_0x1962a5,_0x4e6abf)&&(_0x5bd323=!0x0),_0x5bd323;}['_handleRemoveFootnoteReferenceById'](_0x6da81a,_0x568882){const _0x305148=this['_footnotes']['findIndex'](_0x3af593=>_0x3af593['id']===_0x568882);if(-0x1===_0x305148)return!0x1;let _0xc24ef2=!0x1;const _0x2cdbf1=this['_footnotes'][_0x305148];return'$graveyard'!==_0x2cdbf1['definition']['root']['rootName']&&(_0x6da81a['remove'](_0x2cdbf1['definition']),_0xc24ef2=!0x0),this['_footnotes']['splice'](_0x305148,0x1),this['_updateFootnotesCounters'](_0x6da81a,_0x305148)&&(_0xc24ef2=!0x0),_0xc24ef2;}['_handleMovedFootnoteReference'](_0x1ca244,_0x59c18b){const _0x570623=_0x59c18b['getAttribute']('footnoteId'),_0x1d0acf=this['_footnotes']['findIndex'](_0x523b94=>_0x523b94['id']===_0x570623),_0x276c69=this['_footnotes'][_0x1d0acf];let _0x5c319b=!0x1;_0x276c69['reference']=_0x59c18b,this['_footnotes']['splice'](_0x1d0acf,0x1);const _0xfba8bd=I(this['editor']['model'],this['_footnotes'],_0x59c18b);return this['_footnotes']['splice'](_0xfba8bd,0x0,_0x276c69),this['_updateFootnotesCounters'](_0x1ca244,Math['min'](_0x1d0acf,_0xfba8bd))&&(_0x5c319b=!0x0),_0x5c319b;}['_updateFootnoteRefCounter'](_0x41c3bf,_0xb807ba){if(!this['_footnotesDefinitions'])return!0x1;const _0x145897=this['_footnotes'][_0xb807ba];let _0x2947af;return _0x2947af=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x145897,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xb807ba+0x1}):String(_0xb807ba+0x1),_0x145897['reference']['getAttribute']('footnoteCounter')!=_0x2947af&&(_0x41c3bf['setAttribute']('footnoteCounter',_0x2947af,_0x145897['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x57a01a){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3568de,_0x1589d6){if(_0x3568de['length']!==_0x1589d6['length'])return!0x1;for(let _0x689327=0x0;_0x689327<_0x3568de['length'];_0x689327++)if(_0x3568de[_0x689327]!==_0x1589d6[_0x689327])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x325e3d=>_0x325e3d['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4c6356=>_0x4c6356['getAttribute']('footnoteId'))))return!0x1;let _0x1eaf53=!0x1;for(let _0x1b73cf=0x0;_0x1b73cf<this['_footnotes']['length'];_0x1b73cf++){const _0x46d205=this['_footnotes'][_0x1b73cf],_0x2124bd=_0x57a01a['createPositionBefore'](_0x46d205['definition']),_0x162efd=_0x57a01a['createPositionAt'](this['_footnotesDefinitions'],_0x1b73cf);_0x2124bd['isEqual'](_0x162efd)||(_0x57a01a['move'](_0x57a01a['createRangeOn'](_0x46d205['definition']),_0x162efd),_0x1eaf53=!0x0);}return _0x1eaf53;}['_ensureFootnotesReferencesHaveProperOrder'](_0x47042a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x263329}=this['editor'];let _0x2499e9=!0x1;for(let _0x193a0b=0x0;_0x193a0b<this['_footnotes']['length']-0x1;_0x193a0b++){const _0x39df22=this['_footnotes'][_0x193a0b],_0x55b1b2=this['_footnotes'][_0x193a0b+0x1],_0x5c5e80=_0x263329['createPositionBefore'](_0x39df22['reference']),_0x533656=_0x263329['createPositionBefore'](_0x55b1b2['reference']);'after'===_0x5c5e80['compareWith'](_0x533656)&&(this['_handleMovedFootnoteReference'](_0x47042a,_0x39df22['reference']),_0x193a0b=-0x1,_0x2499e9=!0x0);}return _0x2499e9;}}function _(_0x48db9f,_0xff3541,_0x1b1c76){if(_0x1b1c76['childCount'])return!0x1;const _0x255bdd=_0xff3541?'paragraph':'footnoteInlineContent';return _0x48db9f['insert'](_0x48db9f['createElement'](_0x255bdd),_0x1b1c76),!0x0;}function I(_0x1cd5b5,_0x31b5c5,_0x509046){if(0x0===_0x31b5c5['length'])return 0x0;const _0x1640ca=_0x1cd5b5['createPositionBefore'](_0x509046);for(let _0x25c72c=0x0;_0x25c72c<_0x31b5c5['length'];_0x25c72c++){const _0x14be32=_0x31b5c5[_0x25c72c],_0x5186f8=_0x1cd5b5['createPositionBefore'](_0x14be32['reference']);if('before'===_0x1640ca['compareWith'](_0x5186f8))return _0x25c72c;}const _0x396d9f=_0x509046['root'];let _0xfe0fb9=-0x1;for(let _0x1aef2f=_0x31b5c5['length']-0x1;_0x1aef2f>=0x0;_0x1aef2f--)if(_0x31b5c5[_0x1aef2f]['reference']['root']===_0x396d9f){_0xfe0fb9=_0x1aef2f;break;}if(-0x1!==_0xfe0fb9)return _0xfe0fb9+0x1;const _0x26a0df=_0x1cd5b5['document']['getRootNames'](),_0x20acd7=_0x26a0df['indexOf'](_0x396d9f['rootName']),_0x3dc5fd=_0x26a0df[_0x20acd7+0x1];if(_0x3dc5fd){for(let _0x1c26d2=0x0;_0x1c26d2<_0x31b5c5['length'];_0x1c26d2++)if(_0x31b5c5[_0x1c26d2]['reference']['root']['rootName']===_0x3dc5fd)return _0x1c26d2;}return _0x31b5c5['length'];}class m extends _0x2f457c{['refresh'](){const _0x2a971c=this['editor']['model']['document']['selection'],_0x149b5e=this['_getPositionToInsertFootnote'](_0x2a971c);this['isEnabled']=!!_0x149b5e;}['execute'](_0x257f4b){const {editor:_0x2471ac}=this,{model:_0x1a89da}=_0x2471ac,{selection:_0x292ff0}=_0x1a89da['document'],_0x472ded=this['_getPositionToInsertFootnote'](_0x292ff0);if(!_0x472ded)return;const _0x24d993=_0x2471ac['plugins']['get']('FootnotesEditing'),_0x5e5aaa=_0x257f4b?.['footnoteId']??_0x3b77b8();!function(_0x2fc406){return'string'==typeof _0x2fc406&&_0x2fc406['length']>0x0&&!/\s/['test'](_0x2fc406)&&!/^\d/['test'](_0x2fc406);}(_0x5e5aaa)?_0x232303('insert-footnote-command-executed-with-invalid-id'):(_0x1a89da['change'](_0x10d8dc=>{const _0x7a71c5=_0x10d8dc['createElement']('footnoteRef',{'footnoteId':_0x5e5aaa});_0x1a89da['insertObject'](_0x7a71c5,_0x472ded,null);}),_0x24d993['_moveSelectionToFootnoteDefinition'](_0x5e5aaa));}['_getPositionToInsertFootnote'](_0x217427){const {model:_0x27a9a6}=this['editor'],{schema:_0x5163cd}=_0x27a9a6,_0x26a82b=_0x217427['getFirstRange']();for(const _0x983d2e of _0x26a82b['getItems']())if(_0x5163cd['isBlock'](_0x983d2e)||_0x5163cd['isObject'](_0x983d2e))return null;const _0x1858ef=_0x26a82b['end'];return _0x5163cd['checkChild'](_0x1858ef,'footnoteRef')?_0x1858ef:null;}}class r extends _0x4b5eea{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x182698}=this;_0x182698['config']['define']('footnotes.multiBlock',!0x0),_0x182698['commands']['add']('insertFootnote',new m(_0x182698)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x452041){const _0x4f79f8=_0x35779f([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]),_0x738139=0x47a28506,_0x1a2f54=0x47a5fdb6^_0x738139,_0x3ec775=window[_0x35779f([0x44,0x61,0x74,0x65])][_0x35779f([0x6e,0x6f,0x77])](),_0x1c8e6e=_0x452041[_0x35779f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x392c5b=new window[(_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x247656=>{_0x1c8e6e[_0x35779f([0x6f,0x6e,0x63,0x65])](_0x35779f([0x72,0x65,0x61,0x64,0x79]),_0x247656);}),_0x50eb12={[_0x35779f([0x6b,0x74,0x79])]:_0x35779f([0x45,0x43]),[_0x35779f([0x75,0x73,0x65])]:_0x35779f([0x73,0x69,0x67]),[_0x35779f([0x63,0x72,0x76])]:_0x35779f([0x50,0x2d,0x32,0x35,0x36]),[_0x35779f([0x78])]:_0x35779f([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]),[_0x35779f([0x79])]:_0x35779f([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]),[_0x35779f([0x61,0x6c,0x67])]:_0x35779f([0x45,0x53,0x32,0x35,0x36])},_0xb0f325=_0x1c8e6e[_0x35779f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35779f([0x67,0x65,0x74])](_0x35779f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24b1c7(){let _0x22c3b1,_0xc8f5eb=null,_0x373d48=null;try{if(_0xb0f325==_0x35779f([0x47,0x50,0x4c]))return _0x35779f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22c3b1=_0x4f7abf(),!_0x22c3b1)return _0x35779f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22c3b1[_0x35779f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x373d48=_0x1fcfc2(_0x22c3b1[_0x35779f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22c3b1[_0x35779f([0x6a,0x74,0x69])])),await _0x3a07aa()?_0x546a15()?_0x5278be()?_0x35779f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d0257()?(_0x22c3b1[_0x35779f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35779f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc8f5eb=_0x120380(_0x35779f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22c3b1[_0x35779f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35779f([0x74,0x72,0x69,0x61,0x6c])&&(_0xc8f5eb=_0x120380(_0x35779f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x381951()):_0x35779f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35779f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35779f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35779f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5278be(){const _0x660827=[_0x35779f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35779f([0x74,0x72,0x69,0x61,0x6c])][_0x35779f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c3b1[_0x35779f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ec775/0x3e8:0xe10*_0x1a2f54;return _0x22c3b1[_0x35779f([0x65,0x78,0x70])]<_0x660827;}function _0x546a15(){const _0x28bb84=_0x22c3b1[_0x35779f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28bb84&&(!!_0x28bb84[_0x35779f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35779f([0x2a]))||!!_0x28bb84[_0x35779f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35779f([0x46,0x4f,0x4f])));}function _0x5d0257(){const _0x208ab0=_0x22c3b1[_0x35779f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x208ab0||0x0==_0x208ab0[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x495969}=new URL(window[_0x35779f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x208ab0[_0x35779f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495969))return!0x0;const _0x1580db=_0x495969[_0x35779f([0x73,0x70,0x6c,0x69,0x74])](_0x35779f([0x2e]));return _0x208ab0[_0x35779f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b1bfc=>_0x2b1bfc[_0x35779f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35779f([0x2a])))[_0x35779f([0x6d,0x61,0x70])](_0x45bf68=>_0x45bf68[_0x35779f([0x73,0x70,0x6c,0x69,0x74])](_0x35779f([0x2e])))[_0x35779f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x487253=>_0x487253[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1580db[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35779f([0x6d,0x61,0x70])](_0xea7982=>Array(_0x1580db[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xea7982[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35779f([0x66,0x69,0x6c,0x6c])](_0xea7982[0x0]===_0x35779f([0x2a])?_0x35779f([0x2a]):'')[_0x35779f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xea7982))[_0x35779f([0x73,0x6f,0x6d,0x65])](_0x3d5dda=>_0x1580db[_0x35779f([0x65,0x76,0x65,0x72,0x79])]((_0x553865,_0x3ce040)=>_0x3d5dda[_0x3ce040]===_0x553865||_0x3d5dda[_0x3ce040]===_0x35779f([0x2a])));}function _0x381951(){return _0xc8f5eb&&_0x373d48?new window[(_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41fb60,_0x2cecdd)=>{_0xc8f5eb[_0x35779f([0x74,0x68,0x65,0x6e])](_0x41fb60,_0x2cecdd),_0x373d48[_0x35779f([0x74,0x68,0x65,0x6e])](_0x4b8175=>{_0x4b8175!=_0x35779f([0x56,0x61,0x6c,0x69,0x64])&&_0x41fb60(_0x4b8175);},_0x2cecdd);}):_0xc8f5eb||_0x373d48||_0x35779f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fcfc2(_0x28afae,_0x35eb03){return new window[(_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bc7e3=>{if(_0x4c45a3())return _0x1bc7e3(_0x35779f([0x56,0x61,0x6c,0x69,0x64]));_0x1a831c(),_0x1c8e6e[_0x35779f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35779f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x432e7d=!0x1;const _0x21e33b=_0x3b77b8();function _0x1e6f5f(_0x240f95){return!!_0x240f95&&(typeof _0x240f95===_0x35779f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x240f95===_0x35779f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x240f95[_0x35779f([0x74,0x68,0x65,0x6e])]===_0x35779f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x240f95[_0x35779f([0x63,0x61,0x74,0x63,0x68])]===_0x35779f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c074c(_0x4ae551){_0x2d0dbc(_0x4ae551)[_0x35779f([0x74,0x68,0x65,0x6e])](_0x2bb1fa=>{if(!_0x2bb1fa||_0x2bb1fa[_0x35779f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35779f([0x6f,0x6b]))return _0x35779f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48bff3(_0x70ab67(_0x21e33b+_0x35eb03))!=_0x2bb1fa[_0x35779f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35779f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35779f([0x56,0x61,0x6c,0x69,0x64]);})[_0x35779f([0x74,0x68,0x65,0x6e])](_0x4dc7b8=>(_0x2191f3(),_0x4dc7b8),()=>{const _0x4f1329=_0x11fc42();return null==_0x4f1329?(_0x2191f3(),_0x35779f([0x56,0x61,0x6c,0x69,0x64])):_0x35779f(_0x3ec775-_0x4f1329>(0x63ae0106^_0x738139)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35779f([0x74,0x68,0x65,0x6e])](_0x1bc7e3)[_0x35779f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bc7e3(_0x35779f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27ecec=0x47946b86^_0x738139;function _0x2191f3(){const _0x40e1dc=_0x35779f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48bff3(_0x70ab67(_0x28afae)),_0x361ea8=_0x3d7d43(_0x48bff3(window[_0x35779f([0x4d,0x61,0x74,0x68])][_0x35779f([0x63,0x65,0x69,0x6c])](_0x3ec775/_0x27ecec)));window[_0x35779f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35779f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40e1dc,_0x361ea8);}function _0x11fc42(){const _0x470a22=_0x35779f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48bff3(_0x70ab67(_0x28afae)),_0x323f37=window[_0x35779f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35779f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x470a22);return _0x323f37?window[_0x35779f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d7d43(_0x323f37),0x10)*_0x27ecec:null;}function _0x2d0dbc(_0x15303d){return new window[(_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x182296,_0x3e91bc)=>{_0x15303d[_0x35779f([0x74,0x68,0x65,0x6e])](_0x182296,_0x3e91bc),window[_0x35779f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e91bc,0x47a351c6^_0x738139);});}}_0x1c8e6e[_0x35779f([0x6f,0x6e])](_0x35779f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x572d07,_0x303acb)=>{if(_0x303acb[0x0]!=_0x28afae)return _0x1bc7e3(_0x35779f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x303acb[0x1]={..._0x303acb[0x1],[_0x35779f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21e33b};},{[_0x35779f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35779f([0x68,0x69,0x67,0x68])}),_0x1c8e6e[_0x35779f([0x6f,0x6e])](_0x35779f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x383455=>{_0x1e6f5f(_0x383455[_0x35779f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x432e7d=!0x0,_0x3c074c(_0x383455[_0x35779f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35779f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35779f([0x6c,0x6f,0x77])}),_0x392c5b[_0x35779f([0x74,0x68,0x65,0x6e])](()=>{_0x432e7d||_0x1bc7e3(_0x35779f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c45a3(){return _0x1c8e6e[_0x35779f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35779f([0x76,0x69,0x65,0x77])][_0x35779f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35779f([0x61,0x75,0x74,0x6f]);}function _0x1a831c(){_0x1c8e6e[_0x35779f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35779f([0x76,0x69,0x65,0x77])][_0x35779f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35779f([0x61,0x75,0x74,0x6f]);}}function _0x120380(_0x3bf26f){const _0x46850e=[new window[(_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310606=>setTimeout(_0x310606,0x47abbbca^_0x738139)),_0x392c5b[_0x35779f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x268490=>{let _0x355676=0x0;_0x1c8e6e[_0x35779f([0x6d,0x6f,0x64,0x65,0x6c])][_0x35779f([0x6f,0x6e])](_0x35779f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2db115,_0x55daf0)=>{_0x55daf0[0x0][_0x35779f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x355676++,_0x355676==(0x47a284fe^_0x738139)&&(_0x268490(),_0x2db115[_0x35779f([0x6f,0x66,0x66])]());});}))];return window[_0x35779f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35779f([0x72,0x61,0x63,0x65])](_0x46850e)[_0x35779f([0x74,0x68,0x65,0x6e])](()=>_0x3bf26f);}async function _0x461a96(){await _0x392c5b,_0x1c8e6e[_0x35779f([0x6d,0x6f,0x64,0x65,0x6c])][_0x35779f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3219bf,_0x1c8e6e[_0x35779f([0x6d,0x6f,0x64,0x65,0x6c])][_0x35779f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3219bf,_0x1c8e6e[_0x35779f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35779f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12ac62(_0xaa714c){const _0x37f870=_0x15228b();_0x1c8e6e[_0x37f870]=_0x35779f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xaa714c,_0xaa714c!=_0x35779f([0x56,0x61,0x6c,0x69,0x64])&&_0x461a96();}function _0x15228b(){const _0x2d3f63=window[_0x35779f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35779f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35779f([0x6e,0x6f,0x77])]())[_0x35779f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35779f([0x2e]),'');let _0x219464=_0x35779f([0x75]);for(let _0x5d8c3e=0x0;_0x5d8c3e<_0x2d3f63[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d8c3e+=0x2){let _0x1c75b1=window[_0x35779f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d3f63[_0x35779f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d8c3e,_0x5d8c3e+0x2));_0x1c75b1>=_0x4f79f8[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c75b1-=_0x4f79f8[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x219464+=_0x4f79f8[_0x1c75b1];}return _0x219464;}function _0x4f7abf(){const _0x5aba66=_0xb0f325[_0x35779f([0x73,0x70,0x6c,0x69,0x74])](_0x35779f([0x2e]));if(0x3!=_0x5aba66[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f023d(_0x5aba66[0x1]);function _0x1f023d(_0x112424){const _0x207f8f=_0x373128(_0x112424);return _0x207f8f&&_0x47e3e6()?_0x207f8f:null;function _0x47e3e6(){const _0x597796=_0x207f8f[_0x35779f([0x6a,0x74,0x69])],_0x49cf66=window[_0x35779f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x597796[_0x35779f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x597796[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56bafd={..._0x207f8f,[_0x35779f([0x6a,0x74,0x69])]:_0x597796[_0x35779f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x597796[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56bafd[_0x35779f([0x76,0x63])],_0x70ab67(_0x56bafd)==_0x49cf66;}}}async function _0x3a07aa(){let _0x3282a2=!0x0;try{const _0x54f4fe=_0xb0f325[_0x35779f([0x73,0x70,0x6c,0x69,0x74])](_0x35779f([0x2e])),[_0x432188,_0x41d0fd,_0x241f66]=_0x54f4fe;return _0x575cb5(_0x432188),await _0x33fd03(_0x432188,_0x41d0fd,_0x241f66),_0x3282a2;}catch{return!0x1;}function _0x575cb5(_0xf33a20){const _0xc72c13=_0x373128(_0xf33a20);_0xc72c13&&_0xc72c13[_0x35779f([0x61,0x6c,0x67])]==_0x35779f([0x45,0x53,0x32,0x35,0x36])||(_0x3282a2=!0x1);}async function _0x33fd03(_0x27cfa2,_0x3def78,_0x2316e7){const _0x41106c=window[_0x35779f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35779f([0x66,0x72,0x6f,0x6d])](_0x352ea1(_0x2316e7),_0x11ce94=>_0x11ce94[_0x35779f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x154a9a=new window[(_0x35779f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35779f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27cfa2+_0x35779f([0x2e])+_0x3def78),_0x5a7ec4=window[_0x35779f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35779f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a7ec4)return;const _0x1d928c=await _0x5a7ec4[_0x35779f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35779f([0x6a,0x77,0x6b]),_0x50eb12,{[_0x35779f([0x6e,0x61,0x6d,0x65])]:_0x35779f([0x45,0x43,0x44,0x53,0x41]),[_0x35779f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35779f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35779f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a7ec4[_0x35779f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35779f([0x6e,0x61,0x6d,0x65])]:_0x35779f([0x45,0x43,0x44,0x53,0x41]),[_0x35779f([0x68,0x61,0x73,0x68])]:{[_0x35779f([0x6e,0x61,0x6d,0x65])]:_0x35779f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d928c,_0x41106c,_0x154a9a)||(_0x3282a2=!0x1);}}function _0x373128(_0x5eb73a){return _0x5eb73a[_0x35779f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35779f([0x65,0x79]))?JSON[_0x35779f([0x70,0x61,0x72,0x73,0x65])](_0x352ea1(_0x5eb73a)):null;}function _0x352ea1(_0x23bfc9){return window[_0x35779f([0x61,0x74,0x6f,0x62])](_0x23bfc9[_0x35779f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35779f([0x2b]))[_0x35779f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35779f([0x2f])));}function _0x70ab67(_0x31c636){let _0x52d305=0x1505;function _0x73b758(_0x159dee){for(let _0x4e2ea5=0x0;_0x4e2ea5<_0x159dee[_0x35779f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e2ea5++){const _0x1b6669=_0x159dee[_0x35779f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e2ea5);_0x52d305=(_0x52d305<<0x5)+_0x52d305+_0x1b6669,_0x52d305&=_0x52d305;}}function _0x285c00(_0x157170){Array[_0x35779f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x157170)?_0x157170[_0x35779f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x285c00):_0x157170&&typeof _0x157170==_0x35779f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35779f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x157170)[_0x35779f([0x73,0x6f,0x72,0x74])]()[_0x35779f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x540ee5,_0x1ebe3a])=>{_0x73b758(_0x540ee5),_0x285c00(_0x1ebe3a);}):_0x73b758(window[_0x35779f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x157170));}return _0x285c00(_0x31c636),_0x52d305>>>0x0;}function _0x48bff3(_0x1ed80c){return _0x1ed80c[_0x35779f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35779f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35779f([0x30]));}function _0x3d7d43(_0x1709f1){return _0x1709f1[_0x35779f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35779f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35779f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3219bf(){}function _0x35779f(_0x3d518d){return _0x3d518d['map'](_0x4521d1=>String['fromCharCode'](_0x4521d1))['join']('');}_0x12ac62(await _0x24b1c7());}(this);}['_moveSelectionToFootnoteDefinition'](_0x10fa2b){const {plugins:_0x56cc06,editing:_0x50129b,model:_0x18e121}=this['editor'],_0x1e8be9=_0x56cc06['get'](c)['getFootnote'](_0x10fa2b);return!!_0x1e8be9&&(_0x18e121['change'](_0x4858a1=>{_0x4858a1['setSelection'](_0x4858a1['createPositionAt'](_0x1e8be9['definition'],'end'));}),_0x50129b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x48b99c){const {plugins:_0x33afdb,editing:_0x35c90d,model:_0x5d6b05}=this['editor'],_0xb8b973=_0x33afdb['get'](c)['getFootnote'](_0x48b99c);return!!_0xb8b973&&(_0x5d6b05['change'](_0x12a828=>{_0x12a828['setSelection'](_0xb8b973['reference'],'on');}),_0x35c90d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x10d97c}=this['editor']['model'],_0x26acb2=this['editor']['config']['get']('footnotes.multiBlock');_0x10d97c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x10d97c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x10d97c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x26acb2?_0x10d97c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x10d97c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x10d97c['addChildCheck'](_0x2d7d1d=>{for(const _0x55f329 of _0x2d7d1d)if('footnoteDefinition'===_0x55f329['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x3bf86b}=this,{conversion:_0x35efd9,editing:_0x3ccf01}=_0x3bf86b,{t:t}=_0x3bf86b['locale'];_0x35efd9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3f2714,{writer:_0x1a793f,consumable:_0x23a918})=>{const _0x2fe5cd=_0x3f2714['getChild'](0x0);if(!_0x2fe5cd||!_0x2fe5cd['is']('element','a'))return null;const _0x5b738d=_0x2fe5cd['getAttribute']('href')||'';if(!_0x5b738d['startsWith']('#'))return null;const _0x4955b3=_0x5b738d['replace'](/^#/,'');if(!_0x4955b3)return null;_0x23a918['consume'](_0x2fe5cd,{'name':!0x0,'attributes':['href']});for(const {item:_0xbb0c6a}of _0x3ccf01['view']['createRangeIn'](_0x2fe5cd))_0xbb0c6a['is']('$textProxy')?_0x23a918['consume'](_0xbb0c6a['textNode'],{'name':!0x0}):_0xbb0c6a['is']('element')&&_0x23a918['consume'](_0xbb0c6a,{'name':!0x0});return _0x1a793f['createElement']('footnoteRef',{'footnoteId':_0x4955b3});}}),_0x35efd9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x21f642,{writer:_0xe243b1})=>D(_0x21f642,_0xe243b1)}),_0x35efd9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3912b9,{writer:_0x11c613})=>{const _0x1c9f5f=_0x3912b9['getAttribute']('footnoteCounter');return _0x54bafd(D(_0x3912b9,_0x11c613),_0x11c613,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1c9f5f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x554788}=this,{t:t}=_0x554788['locale'],{conversion:_0x235ce0}=_0x554788;_0x235ce0['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x235ce0['for']('upcast')['add'](_0x3d3645=>{_0x3d3645['on']('element:ol',(_0x32fc23,_0x36b350,_0x1ac6f3)=>{const _0x524a53=_0x36b350['viewItem'];if(!_0x524a53['hasClass']('footnotes-list')||!_0x36b350['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1ac6f3['consumable']['consume'](_0x524a53,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55039c,modelCursor:_0x460093}=_0x1ac6f3['convertChildren'](_0x36b350['viewItem'],_0x36b350['modelCursor']);_0x36b350['modelRange']=_0x55039c,_0x36b350['modelCursor']=_0x460093;}),_0x3d3645['on']('element:hr',(_0x1d4d89,_0x107a0e,_0x289f53)=>{const _0x128e04=_0x107a0e['viewItem'];_0x128e04['hasClass']('footnotes-divider')&&_0x107a0e['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x289f53['consumable']['consume'](_0x128e04,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x235ce0['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x19de3c,{writer:_0x326305})=>v(_0x326305)}),_0x235ce0['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x360706,{writer:_0x1003a5})=>{const _0x165e49=v(_0x1003a5,{'data-footnotes-list-label':t('Footnotes')}),_0x555e0c=_0x54bafd(_0x165e49,_0x1003a5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1003a5['setCustomProperty']('footnotesDefinitions',!0x0,_0x555e0c),_0x555e0c;}});}['_defineDefinitionConverters'](){const {editor:_0x162919}=this,{conversion:_0x57fe4d,locale:_0xdbe927}=_0x162919,_0x575821=_0x162919['config']['get']('footnotes.multiBlock');_0x57fe4d['for']('upcast')['add'](_0x2ae0f3=>{_0x2ae0f3['on']('element:li',(_0xf1ccad,_0x1ac1a2,_0x2b2a7a)=>{const _0x44ec49=_0x1ac1a2['viewItem'];if(!_0x44ec49['hasClass']('footnote-definition')||!_0x44ec49['getAttribute']('id'))return;const _0x54ff94=_0x44ec49['parent'];if(!_0x54ff94['is']('element','ol')||!_0x54ff94['hasClass']('footnotes-list'))return;if(!_0x2b2a7a['consumable']['test'](_0x44ec49,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2275a4=_0x2b2a7a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x44ec49['getAttribute']('id')});if(!_0x2b2a7a['safeInsert'](_0x2275a4,_0x1ac1a2['modelCursor']))return;_0x2b2a7a['consumable']['consume'](_0x44ec49,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x48e8e7=Array['from'](_0x44ec49['getChildren']())['find'](_0xf1ae13=>_0xf1ae13['is']('element')&&_0xf1ae13['hasClass']('footnote-content'));for(const _0x31967d of _0x44ec49['getChildren']())_0x31967d['is']('element')&&(_0x2b2a7a['consumable']['consume'](_0x31967d,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2b2a7a['consumable']['consume'](_0x31967d,{'name':!0x0,'classes':'footnote-content'}));if(_0x48e8e7){if(_0x575821)_0x2b2a7a['convertChildren'](_0x48e8e7,_0x2275a4);else{const _0x2d522e=_0x2b2a7a['writer']['createElement']('footnoteInlineContent');_0x2b2a7a['writer']['insert'](_0x2d522e,_0x2275a4),_0x2b2a7a['convertChildren'](_0x48e8e7,_0x2d522e);}}_0x2b2a7a['updateConversionResult'](_0x2275a4,_0x1ac1a2);});}),_0x57fe4d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4fa3c7,{writer:_0x3e6fc1})=>b(_0x4fa3c7,_0x3e6fc1,_0xdbe927,{'dataPipeline':!0x0})}),_0x57fe4d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43ca10,{writer:_0xf6f52f})=>b(_0x43ca10,_0xf6f52f,_0xdbe927)});}['_defineBogusParagraphConverters'](){const {editor:_0x1f9c7b}=this,{conversion:_0x36e287}=_0x1f9c7b;_0x1f9c7b['config']['get']('footnotes.multiBlock')?(_0x36e287['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x36e287['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1f9c7b['model']['document'],'change:data',()=>{!function(_0x3ff171,_0x33f75f){const _0x310fad=_0x3ff171['document']['differ'],_0x42d2a1=new Set();for(const _0x1e21bf of _0x310fad['getChanges']()){const _0x3ec0e3='attribute'==_0x1e21bf['type']?_0x1e21bf['range']['start']['parent']:_0x1e21bf['position']['parent'];_0x3ec0e3['is']('element','footnoteDefinition')&&_0x42d2a1['add'](_0x3ec0e3);}for(const _0x5cb410 of _0x42d2a1['values']()){const _0xbf58b8=Array['from'](_0x5cb410['getChildren']())['filter'](_0x2509ce=>g(_0x2509ce,_0x33f75f['mapper']));for(const _0xb8e5bd of _0xbf58b8)_0x33f75f['reconvertItem'](_0xb8e5bd);}}(_0x1f9c7b['model'],_0x1f9c7b['editing']);})):(_0x36e287['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x36e287['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x375ed1,{writer:_0x116a28})=>{const _0x144d96=_0x116a28['createContainerElement']('span');return _0x116a28['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x144d96),_0x144d96;}}));}['_defineKeyboardHandlers'](){const {editor:_0x305b24}=this,{editing:_0x425c7f,t:t}=_0x305b24,_0x325115=_0x305b24['model']['document']['selection'];_0x305b24['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x305b24['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x425c7f['view']['document'],'enter',(_0x5c22a3,_0x2f556d)=>{const _0x440940=function(_0x42c792){const _0x17cf0f=_0x42c792['getSelectedElement']();if(_0x17cf0f?.['is']('element','footnoteRef'))return _0x17cf0f;return null;}(_0x325115);if(_0x440940){const _0x7612b4=_0x440940['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x7612b4),_0x2f556d['preventDefault'](),_0x5c22a3['stop']();}},{'context':_0x6f5d1c});}['_defineClickHandlers'](){const {editor:_0x586d71}=this,{editing:_0x14afc0}=_0x586d71;_0x586d71['editing']['view']['addObserver'](_0x1b398e),_0x586d71['editing']['view']['addObserver'](_0x519466);let _0x451d39=!0x1;this['listenTo'](_0x14afc0['view']['document'],'pointerdown',(_0x316cca,_0x196e91)=>{const {target:_0x157cbb}=_0x196e91,_0x10f8a0=_0x14afc0['view']['document']['selection'];_0x451d39=!!(_0x157cbb?.['is']('element','a')&&_0x157cbb['parent']?.['is']('element','sup')&&_0x157cbb['parent']['hasClass']('footnote'))&&_0x10f8a0['getSelectedElement']()===_0x157cbb['parent'];},{'priority':'high'}),this['listenTo'](_0x14afc0['view']['document'],'click',(_0x2f3cf8,_0x59b16f)=>{const {target:_0xd78747}=_0x59b16f;if(!_0xd78747?.['is']('element','a'))return;if(_0xd78747['parent']?.['is']('element','sup')&&_0xd78747['parent']['hasClass']('footnote')&&!_0x451d39)return void _0x59b16f['preventDefault']();let _0x5d3a04=_0xd78747['getAttribute']('href');if(!_0x5d3a04?.['startsWith']('#'))return;_0x5d3a04=_0x5d3a04['slice'](0x1);let _0x2e1098=!0x1;(_0x5d3a04['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5d3a04['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5d3a04))&&(_0x2e1098=!0x0),_0x2e1098&&(_0x59b16f['preventDefault'](),_0x2f3cf8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x283155}={}){return(_0x7423d3,{writer:_0x23be24})=>{if(!p(_0x7423d3))return null;if(!_0x283155)return _0x23be24['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x420648=_0x23be24['createContainerElement']('p');return _0x23be24['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x420648),_0x420648;};}function p(_0x18bbba){const {parent:_0x59a1f3}=_0x18bbba;if(!_0x59a1f3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x59a1f3['childCount'])return!0x1;for(const _0x54c07a of _0x18bbba['getAttributeKeys']())if(!_0x54c07a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x54c07a)return!0x1;return!0x0;}function g(_0x45daf4,_0x488f4b){if(!_0x45daf4['is']('element','paragraph'))return!0x1;const _0x1a627=_0x488f4b['toViewElement'](_0x45daf4);return!!_0x1a627&&p(_0x45daf4)!==_0x1a627['is']('element','span');}function J(_0x2cffb6){return _0x6f5d1c(_0x2cffb6)&&_0x2cffb6['is']('containerElement')&&!!_0x2cffb6['getCustomProperty']('footnotesDefinitions');}function v(_0x27e2e7,_0x9322b8={}){const _0x2c4e91=_0x27e2e7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x15e1cb=_0x27e2e7['createContainerElement']('ol',{'class':'footnotes-list'},_0x27e2e7['createSlot']());return _0x27e2e7['createContainerElement']('div',{'class':'footnotes',..._0x9322b8},[_0x2c4e91,_0x15e1cb]);}function D(_0x45628d,_0x4b7b75){const _0x5a0192=_0x45628d['getAttribute']('footnoteId'),_0x5ad37b=_0x45628d['getAttribute']('footnoteCounter'),_0x5c6698=_0x4b7b75['createUIElement']('a',{'href':'#'+_0x5a0192},function(_0xc8f17e){const _0x457435=this['toDomElement'](_0xc8f17e);return _0x457435['textContent']=_0x5ad37b,_0x457435;}),_0x27efac=_0x4b7b75['createContainerElement']('sup',{'id':'ref-'+_0x5a0192,'class':'footnote'},[_0x5c6698]);return _0x27efac['getFillerOffset']=()=>null,_0x27efac;}function b(_0xb68cc0,_0x26a252,_0x4f51ca,{dataPipeline:_0x121a4e}={}){const {t:t}=_0x4f51ca,_0x2f67e3=_0xb68cc0['getAttribute']('footnoteId'),_0x582444=_0x26a252['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2f67e3},function(_0x414589){const _0x1b0c6c=this['toDomElement'](_0x414589);return _0x1b0c6c['innerText']='^',_0x1b0c6c;}),_0x1a0583=_0x121a4e?_0x26a252['createContainerElement']('div',{'class':'footnote-content'}):_0x3cf00e(_0x26a252['createEditableElement']('div',{'class':'footnote-content'}),_0x26a252,{'label':t('Footnote\x20content.')});return _0x26a252['insert'](_0x26a252['createPositionAt'](_0x1a0583,0x0),_0x26a252['createSlot']()),_0x26a252['createContainerElement']('li',{'class':'footnote-definition','id':_0x2f67e3},[_0x582444,_0x1a0583]);}class e extends _0x4b5eea{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3f5710];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4d34bd}=this,{plugins:_0x5b66f3,model:_0x188a43}=_0x4d34bd,_0x1090cd=_0x5b66f3['get'](_0x3f5710),_0x5738cd=_0x5b66f3['get'](c);this['listenTo'](_0x1090cd,'outputTransformation',(_0xc45513,_0x1d3e94)=>{const _0x223a09=f(_0x188a43['createRangeIn'](_0x1d3e94['content']));if(!_0x223a09['length'])return;const _0x418406=_0x5738cd['getFootnotes'](),_0x39b869=_0x223a09['reduce']((_0x4d5b40,_0x58392a)=>{const _0x4204c9=_0x418406['find'](_0xcd02d4=>_0xcd02d4['id']===_0x58392a);if(_0x4204c9){const _0x1e76cc=_0x4d34bd['data']['toView'](_0x4204c9['definition'],{'isClipboardPipeline':!0x0}),_0x1d3fea=_0x4d34bd['data']['htmlProcessor']['toData'](_0x1e76cc);_0x4d5b40[_0x4204c9['id']]=_0x1d3fea;}return _0x4d5b40;},Object['create'](null));_0x1d3e94['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x39b869));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x283053}=this,{model:_0x519ac5,plugins:_0x105738}=_0x283053,{view:_0x2bab0c}=_0x283053['editing'],_0x23919f=_0x105738['get'](_0x3f5710),_0x35ab1c=_0x105738['get'](c);let _0x379632=null;this['listenTo'](_0x2bab0c['document'],'clipboardInput',(_0x316e64,_0x4fe1f4)=>{const _0x2866f1=_0x4fe1f4['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x379632=_0x2866f1?JSON['parse'](_0x2866f1):null;}),this['listenTo'](_0x23919f,'contentInsertion',(_0xdd4373,_0x39166b)=>{const _0x543750=_0x39166b['sourceEditorId']===this['editor']['id'];_0x543750&&'drop'===_0x39166b['method']||_0x519ac5['change'](_0x3166b6=>{let _0x69098=_0x35ab1c['getFootnotesDefinitionsObjectElement']();const _0x11f2c5=!!_0x69098&&Array['from'](_0x519ac5['document']['selection']['getSelectedBlocks']())['includes'](_0x69098);if((_0x69098&&!_0x11f2c5||!_0x69098&&!_0x379632)&&function(_0x282573,_0x47bf42){const _0x4a9cc2=[];for(const {item:_0x5920dc}of _0x282573['createRangeIn'](_0x47bf42))_0x5920dc['is']('element','footnotesDefinitions')&&_0x4a9cc2['push'](_0x5920dc);for(const _0x241546 of _0x4a9cc2)_0x282573['remove'](_0x241546);}(_0x3166b6,_0x39166b['content']),!_0x379632)return;const {selection:_0x3c4367}=_0x519ac5['document'],_0x514548=_0x3c4367['getFirstRange']()['root'];_0x69098&&!_0x11f2c5||(_0x69098=function(_0x3ee715,_0xde85d){for(const {item:_0x3cedfe}of _0x3ee715['createRangeIn'](_0xde85d))if(_0x3cedfe['is']('element','footnotesDefinitions'))return _0x3cedfe;return null;}(_0x3166b6,_0x39166b['content']),_0x69098||=_0x35ab1c['_insertEmptyFootnotesDefinitionsContainer'](_0x3166b6,_0x514548));const _0x38cb15=Array['from'](_0x3c4367['getRanges']())['flatMap'](f),_0x114d2d=function(_0x5df185,_0x32dde7,_0x54963d){const _0xa5469c=Object['create'](null);for(const {item:_0x38dbd7}of _0x5df185['createRangeIn'](_0x32dde7))if(_0x38dbd7['is']('element','footnoteRef')){const _0x10a420=_0x38dbd7['getAttribute']('footnoteId');if(!_0x54963d(_0x10a420))continue;_0xa5469c[_0x10a420]||(_0xa5469c[_0x10a420]=_0x3b77b8()),_0x5df185['setAttribute']('footnoteId',_0xa5469c[_0x10a420],_0x38dbd7);}return _0xa5469c;}(_0x3166b6,_0x39166b['content'],_0x1dc70b=>{if(!_0x543750)return!0x0;return!!_0x35ab1c['getFootnote'](_0x1dc70b)&&!_0x38cb15['includes'](_0x1dc70b);});for(const [_0x313deb,_0x2f1ab3]of Object['entries'](_0x379632)){const _0xca747=_0x114d2d[_0x313deb]||_0x313deb,_0x5b7c96=_0x3166b6['createElement']('footnoteDefinition',{'footnoteId':_0xca747}),_0x4eb8e9=_0x283053['data']['htmlProcessor']['toView'](_0x2f1ab3),_0x1c16c3=_0x283053['data']['toModel'](_0x4eb8e9,_0x5b7c96);_0x3166b6['append'](_0x1c16c3,_0x5b7c96),_0x3166b6['insert'](_0x5b7c96,_0x69098,'end');}_0x379632=null;});});}}function f(_0x5a9d7e){const _0x3947f8=new Set();for(const {item:_0x3c4972}of _0x5a9d7e)_0x3c4972['is']('element','footnoteRef')&&_0x3947f8['add'](_0x3c4972['getAttribute']('footnoteId'));return Array['from'](_0x3947f8);}class i extends _0x4b5eea{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1eba4}=this,{componentFactory:_0x4b4f93}=_0x1eba4['ui'];_0x4b4f93['add']('insertFootnote',x(_0x1eba4,_0x5f440f)),_0x4b4f93['add']('menuBar:insertFootnote',x(_0x1eba4,_0x2cf05b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a7a63=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5be2e4;for(const _0x378e2f in _0x4a7a63){const _0x20c0b8=_0x378e2f,_0x55965e=_0x4a7a63[_0x20c0b8];if('footnotesLicenseKeyValid'==_0x55965e||'footnotesLicenseKeyInvalid'==_0x55965e||'footnotesLicenseKeyExpired'==_0x55965e||'footnotesLicenseKeyDomainLimit'==_0x55965e||'footnotesLicenseKeyNotAllowed'==_0x55965e||'footnotesLicenseKeyEvaluationLimit'==_0x55965e||'footnotesLicenseKeyTrialLimit'==_0x55965e||'footnotesLicenseKeyUsageLimit'==_0x55965e){delete _0x4a7a63[_0x20c0b8],_0x5be2e4=_0x55965e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5be2e4&&_0x4a7a63['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x55f270,_0x3a3870){const _0x5edf3a=_0x55f270['commands']['get']('insertFootnote');return _0x4c0a94=>{const {t:t}=_0x4c0a94,_0x681545=new _0x3a3870(_0x4c0a94),_0x447a1f=_0x681545 instanceof _0x2cf05b;return _0x681545['bind']('isEnabled')['to'](_0x5edf3a,'isEnabled'),_0x681545['set']({'label':t(_0x447a1f?'Footnote':'Insert\x20footnote'),'icon':_0xf8efeb,'tooltip':!0x0}),_0x681545['on']('execute',()=>{_0x5edf3a['execute'](),_0x55f270['editing']['view']['focus']();}),_0x681545;};}class lt extends _0x4b5eea{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 _0x2f457c{['refresh'](){const {editor:_0xeeafc5}=this,_0x39b9e7=_0xeeafc5['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x39b9e7,this['value']=_0x39b9e7?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4b1dd6}){const {editor:_0x434e97}=this,_0x2fbaea=_0x434e97['plugins']['get'](c),_0x1730f8=_0x2fbaea['getFootnotesDefinitionsObjectElement']();_0x1730f8&&Q['includes'](_0x4b1dd6)&&_0x434e97['model']['change'](_0x2839e9=>{_0x2839e9['setAttribute']('footnotesListStyle',_0x4b1dd6,_0x1730f8),_0x2fbaea['_updateFootnotesCounters'](_0x2839e9);});}}class C extends _0x2f457c{['refresh'](){const {editor:_0x428a44}=this,_0x4255bd=_0x428a44['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4255bd,this['value']=_0x4255bd?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x641427}){const {editor:_0x5ace46}=this,_0x2794ba=_0x5ace46['plugins']['get'](c),_0x59e0ab=_0x2794ba['getFootnotesDefinitionsObjectElement']();_0x59e0ab&&Number['isInteger'](_0x641427)&&_0x5ace46['model']['change'](_0x17536c=>{_0x17536c['setAttribute']('footnotesListStart',_0x641427,_0x59e0ab),_0x2794ba['_updateFootnotesCounters'](_0x17536c);});}}class P extends _0x4b5eea{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x42a446}=this;_0x42a446['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x42a446['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x42a446['commands']['add']('footnotesStyle',new S(_0x42a446)),_0x42a446['commands']['add']('footnotesStart',new C(_0x42a446)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4c557b}=this,{schema:_0x198997}=_0x4c557b['model'];_0x198997['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x539963}=this,{conversion:_0x2204ea,model:_0x4a2c38}=_0x539963,{schema:_0x5a170c}=_0x4a2c38;_0x2204ea['for']('upcast')['add'](_0x24847c=>{_0x24847c['on']('element:ol',(_0x2dc8c4,_0x2d88da,_0x48ece5)=>{const _0xb5263e=_0x2d88da['viewItem'],_0x5a4fe8=_0x2d88da['modelCursor']?.['parent'];_0xb5263e['hasClass']('footnotes-list')&&_0x5a4fe8?.['is']('element','footnotesDefinitions')&&(function(_0x30856f,_0x5992e1,_0x7ad4ce,_0x9a3bcc){if(!_0x9a3bcc['checkAttribute'](_0x5992e1,'footnotesListStart'))return;let _0x234931=0x1;const _0x31ec76=_0x7ad4ce['consumable']['consume'](_0x30856f,{'attributes':'start'});if(_0x31ec76){const _0x32b06c=Number['parseInt'](_0x30856f['getAttribute']('start'),0xa);Number['isNaN'](_0x32b06c)||(_0x234931=_0x32b06c);}!_0x31ec76&&_0x5992e1['hasAttribute']('footnotesListStart')||_0x7ad4ce['writer']['setAttribute']('footnotesListStart',_0x234931,_0x5992e1);}(_0xb5263e,_0x5a4fe8,_0x48ece5,_0x5a170c),function(_0x4ebcad,_0x31a16e,_0x36cb42,_0xb4ebf3){if(!_0xb4ebf3['checkAttribute'](_0x31a16e,'footnotesListStyle'))return;let _0x2a7296='decimal',_0x5a3a1d=!0x1;if(_0x36cb42['consumable']['consume'](_0x4ebcad,{'attributes':'type'})){const _0x23347d={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4ebcad['getAttribute']('type')];_0x23347d&&(_0x2a7296=_0x23347d),_0x5a3a1d=!0x0;}_0x36cb42['consumable']['consume'](_0x4ebcad,{'styles':'list-style-type'})&&(_0x2a7296=_0x4ebcad['getStyle']('list-style-type'),_0x5a3a1d=!0x0),!_0x5a3a1d&&_0x31a16e['hasAttribute']('footnotesListStyle')||_0x36cb42['writer']['setAttribute']('footnotesListStyle',_0x2a7296,_0x31a16e);}(_0xb5263e,_0x5a4fe8,_0x48ece5,_0x5a170c));});}),_0x2204ea['for']('downcast')['add'](_0x40b1f3=>{_0x40b1f3['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x264c7a,_0x1aa0e3,_0xd269a7)=>{if(!_0xd269a7['consumable']['consume'](_0x1aa0e3['item'],_0x264c7a['name']))return;const _0x440d19=M(_0x1aa0e3['item'],_0xd269a7['mapper']),{attributeNewValue:_0xa1a0b4}=_0x1aa0e3;null==_0xa1a0b4||0x1===_0xa1a0b4?_0xd269a7['writer']['removeAttribute']('start',_0x440d19):_0xd269a7['writer']['setAttribute']('start',String(_0xa1a0b4),_0x440d19);}),_0x40b1f3['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2daacf,_0x5aae7a,_0x3c115f)=>{if(!_0x3c115f['consumable']['consume'](_0x5aae7a['item'],_0x2daacf['name']))return;const _0x98026d=M(_0x5aae7a['item'],_0x3c115f['mapper']),{attributeNewValue:_0x196933}=_0x5aae7a;_0x196933&&'decimal'!==_0x196933?_0x3c115f['writer']['setStyle']('list-style-type',_0x196933,_0x98026d):_0x3c115f['writer']['removeStyle']('list-style-type',_0x98026d);});});}['_definePostfixer'](){const {editor:_0x29187a}=this,{model:_0x23fa95}=_0x29187a,_0xfe258a=_0x29187a['plugins']['get'](c),_0x501ed3=this['_getDefaultListStyle'](),_0x5e3ddc=this['_getDefaultStartIndex']();_0x23fa95['document']['registerPostFixer'](_0x20ef64=>{const _0x3c99db=_0x23fa95['document']['differ']['getChanges']();let _0x2f1590=!0x1;for(const _0x31daa6 of _0x3c99db){if('insert'!==_0x31daa6['type']||'$text'===_0x31daa6['name'])continue;const _0x530c14=_0x23fa95['createRangeOn'](_0x31daa6['position']['nodeAfter']);for(const _0x1afd26 of _0x530c14['getItems']())_0x1afd26['is']('element','footnotesDefinitions')&&(!_0x1afd26['hasAttribute']('footnotesListStart')&&_0x23fa95['schema']['checkAttribute'](_0x1afd26,'footnotesListStart')&&(_0x20ef64['setAttribute']('footnotesListStart',_0x5e3ddc,_0x1afd26),_0x2f1590=!0x0),!_0x1afd26['hasAttribute']('footnotesListStyle')&&_0x23fa95['schema']['checkAttribute'](_0x1afd26,'footnotesListStyle')&&(_0x20ef64['setAttribute']('footnotesListStyle',_0x501ed3,_0x1afd26),_0x2f1590=!0x0));}return _0x2f1590&&_0xfe258a['_updateFootnotesCounters'](_0x20ef64),_0x2f1590;});}['_defineFormatter'](){const {editor:_0x3dafbd}=this;_0x3dafbd['plugins']['get'](c)['setFootnoteFormatter'](_0xcf4922=>this['_formatFootnoteListValue'](_0xcf4922));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0xa40b32,value:_0x101085,digits:_0x122392}){const _0x9a8132=_0xa40b32['getAttribute']('footnotesListStyle'),_0x44c35f=_0xa40b32['getAttribute']('footnotesListStart'),_0x20457b=Math['floor'](_0x101085)+(_0x44c35f??0x1)-0x1;switch(_0x9a8132){case'decimal-leading-zero':return function(_0x168e32,_0x936652){return String(_0x168e32)['padStart'](_0x936652,'0');}(_0x20457b,Math['max'](0x2,_0x122392));case'lower-alpha':case'lower-latin':return N(_0x20457b,!0x1);case'upper-alpha':case'upper-latin':return N(_0x20457b,!0x0);case'lower-roman':return X(_0x20457b,!0x1);case'upper-roman':return X(_0x20457b,!0x0);default:return String(_0x20457b);}}}function M(_0x299674,_0x5cb865){const _0x104f39=_0x5cb865['toViewElement'](_0x299674);return Array['from'](_0x104f39['getChildren']())['find'](_0x306a54=>_0x306a54['is']('element','ol')&&_0x306a54['hasClass']('footnotes-list'));}function N(_0x8e7b05,_0x3f1107){let _0x289250='',_0x40b36c=_0x8e7b05;for(;_0x40b36c>0x0;){const _0x14ec5d=(_0x40b36c-0x1)%0x1a;_0x289250=String['fromCharCode'](0x61+_0x14ec5d)+_0x289250,_0x40b36c=Math['floor']((_0x40b36c-0x1)/0x1a);}return _0x3f1107?_0x289250['toUpperCase']():_0x289250;}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(_0x172e06,_0x2bb42d){let _0x3ffb9d='',_0xbc8ad8=_0x172e06;for(const {value:_0x1092a0,numeral:_0x84f296}of V)for(;_0xbc8ad8>=_0x1092a0;)_0x3ffb9d+=_0x84f296,_0xbc8ad8-=_0x1092a0;return _0x2bb42d?_0x3ffb9d:_0x3ffb9d['toLowerCase']();}class H extends _0x2595d4{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x43eaee();['focusCycler'];constructor(_0x336c7d,{styleButtonViews:_0x530967,styleGridAriaLabel:_0x5b8d86}){super(_0x336c7d),(this['focusCycler']=new _0x3d2665({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x530967,_0x5b8d86),[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 _0x1a7f66 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1a7f66['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 _0x44530a=_0x429ff1=>_0x429ff1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x44530a),this['keystrokes']['set']('arrowleft',_0x44530a),this['keystrokes']['set']('arrowup',_0x44530a),this['keystrokes']['set']('arrowdown',_0x44530a);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x56390a,_0x34da1c){const _0x4c6f03=new _0x2595d4(this['locale']);return _0x4c6f03['children']=_0x4c6f03['createCollection'](),_0x4c6f03['children']['addMany'](_0x56390a),_0x4c6f03['setTemplate']({'tag':'div','attributes':{'aria-label':_0x34da1c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4c6f03['children']}),_0x4c6f03['children']['delegate']('execute')['to'](this),_0x4c6f03['focus']=function(){for(const _0x4e86c2 of this['children'])if(_0x4e86c2 instanceof _0x5f440f&&_0x4e86c2['isOn'])return void _0x4e86c2['focus']();this['children']['first']['focus']();},_0x4c6f03['focusTracker']=new ot(),_0x4c6f03['keystrokes']=new rt(),_0x4c6f03['render'](),_0x4c6f03['keystrokes']['listenTo'](_0x4c6f03['element']),this['children']['add'](_0x4c6f03),_0x4c6f03;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x211fcf=this['_createStartIndexPropertyView'](),_0xb2d9f3=[_0x211fcf],_0x1c5563=new st(this['locale'],_0xb2d9f3);return _0x1c5563['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1c5563['buttonView']['bind']('isEnabled')['toMany'](_0xb2d9f3,'isEnabled',(..._0x10ee1e)=>_0x10ee1e['some'](_0x40cb5a=>_0x40cb5a)),_0x1c5563['buttonView']['on']('change:isEnabled',(_0x2fe50c,_0xdd98ac,_0x32ba06)=>{_0x32ba06||(_0x1c5563['isCollapsed']=!0x0);}),this['children']['add'](_0x1c5563),[_0x211fcf,_0x1c5563];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x52aa58=new it(this['locale'],et);return _0x52aa58['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x52aa58['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x52aa58['fieldView']['on']('input',()=>{const _0x2d2dc8=_0x52aa58['fieldView']['element'],_0x2dfec7=_0x2d2dc8['valueAsNumber'];Number['isNaN'](_0x2dfec7)?_0x52aa58['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2d2dc8['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2dfec7}):_0x52aa58['errorText']=t(_0x2dfec7<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x52aa58;}}class j extends _0x4b5eea{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5def56,_0x285fa4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ef738}=this,{componentFactory:_0x515b1c}=_0x4ef738['ui'];_0x4ef738['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x515b1c['add']('footnotesStyle',function(_0x3f5712){return _0x5c8b0e=>{const {t:t}=_0x5c8b0e,_0x922bf1=_0x3f5712['commands']['get']('footnotesStyle'),_0x14ba40=_0x4df95b(_0x5c8b0e),{buttonView:_0xc4c20c}=_0x14ba40;return _0x14ba40['class']='ck-footnotes-styles-dropdown',_0x14ba40['bind']('isEnabled')['to'](_0x922bf1,'isEnabled'),_0xc4c20c['set']({'label':t('Footnotes\x20style'),'icon':_0xf8efeb,'tooltip':!0x0}),_0x14ba40['once']('change:isOpen',()=>{const _0x2b632c=function({editor:_0x58f776,dropdownView:_0x1f1d7b}){const {t:t}=_0x58f776['locale'],_0x81defb=t('Footnotes\x20definitions\x20styles'),_0x47780e=function(_0x3d0fb7){const t=_0x3d0fb7['locale']['t'],_0x10d2d2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x14bdc1},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x476c0d},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x321568},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5af648},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4486ab},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x584d98}];return _0x10d2d2['map'](function(_0x2b1aa2){const _0x15971c=_0x2b1aa2['locale'];return({label:_0x3e306e,icon:_0x382363,tooltip:_0x5a9fae,style:_0x248190})=>{const _0x3dc81b=_0x2b1aa2['commands']['get']('footnotesStyle'),_0x4d10f6=new _0x5f440f(_0x15971c);return _0x4d10f6['set']({'label':_0x3e306e,'icon':_0x382363,'tooltip':_0x5a9fae}),_0x4d10f6['bind']('isOn')['to'](_0x3dc81b,'value',_0x2d03cd=>_0x2d03cd===_0x248190),_0x4d10f6['bind']('isEnabled')['to'](_0x3dc81b,'isEnabled'),_0x4d10f6['on']('execute',()=>{_0x2b1aa2['execute']('footnotesStyle',{'value':_0x248190}),_0x2b1aa2['editing']['view']['focus']();}),_0x4d10f6;};}(_0x3d0fb7));}(_0x58f776),_0x1f77b6=new H(_0x58f776['locale'],{'styleGridAriaLabel':_0x81defb,'styleButtonViews':_0x47780e});return _0x1f77b6['delegate']('execute')['to'](_0x1f1d7b),_0x1f77b6['on']('footnotesListStart',(_0x1184e9,_0x34a01f)=>{_0x58f776['execute']('footnotesStart',{'value':_0x34a01f['startIndex']});}),_0x1f77b6;}({'editor':_0x3f5712,'dropdownView':_0x14ba40});_0x14ba40['panelView']['children']['add'](_0x2b632c);}),_0x14ba40;};}(_0x4ef738));}['afterInit'](){const {editor:_0x537857}=this,{t:t}=_0x537857['locale'],_0x2483d8=_0x537857['plugins']['get'](_0x285fa4),{defaultPositions:_0x39812d}=_0x3861d5;_0x2483d8['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x537857['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x30b6eb=>{let _0x351543=_0x30b6eb['getFirstPosition']()?.['parent'];return _0x351543?.['is']('$text')&&(_0x351543=_0x351543['parent']),_0x351543?.['is']('element')?_0x351543['findAncestor'](J):null;},'positions':[_0x39812d['southArrowNorth'],_0x39812d['southArrowNorthMiddleWest'],_0x39812d['southArrowNorthMiddleEast'],_0x39812d['southArrowNorthWest'],_0x39812d['southArrowNorthEast'],_0x39812d['northArrowSouth'],_0x39812d['northArrowSouthMiddleWest'],_0x39812d['northArrowSouthMiddleEast'],_0x39812d['northArrowSouthWest'],_0x39812d['northArrowSouthEast'],_0x39812d['viewportStickyNorth']]});}}class ft extends _0x4b5eea{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 _0x2a51d8,Command as _0x411d4d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x245c1f,isWidget as _0x3af48b,toWidgetEditable as _0x5c8e2a,WidgetToolbarRepository as _0x27b646}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xe0a509,logWarning as _0x506cb7,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x8b1fec,ClickObserver as _0x469245}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2c4716}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3a0a17,ButtonView as _0xa6576c,View as _0x39320c,ViewCollection as _0x2fea4c,FocusCycler as _0x1bb71a,addKeyboardHandlingForGrid as _0x391a9c,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x5f4adf,BalloonPanelView as _0x204d6f,createDropdown as _0x3c9576}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2307de,IconListStyleDecimal as _0x3399b5,IconListStyleDecimalLeadingZero as _0x7ab591,IconListStyleLowerRoman as _0x112b16,IconListStyleUpperRoman as _0x2119d1,IconListStyleLowerLatin as _0x5c1242,IconListStyleUpperLatin as _0x2c5a45}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x23ec8d,_0x32a9ab){this['_model']=_0x23ec8d,this['_elementName']=_0x32a9ab['elementName'],this['_getElementKey']=_0x32a9ab['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xe58bec){const _0x1bd01d=new Set(),_0x7eb27a=new Map();for(const _0x3f9776 of _0xe58bec){if('insert'===_0x3f9776['type']&&'$text'!==_0x3f9776['name']&&_0x3f9776['position']['nodeAfter']){const _0x290d44=this['_model']['createRangeOn'](_0x3f9776['position']['nodeAfter']);for(const _0x1eabdb of _0x290d44['getItems']()){if(!_0x1eabdb['is']('element',this['_elementName']))continue;const _0x100165=this['_getElementKey'](_0x1eabdb);_0x7eb27a['has'](_0x100165)||_0x7eb27a['set'](_0x100165,[]),_0x7eb27a['get'](_0x100165)['push'](_0x1eabdb);}}if('remove'===_0x3f9776['type']&&_0x3f9776['name']===this['_elementName']){const _0x52b351=this['_getElementKey']({'getAttribute':_0x403352=>_0x3f9776['attributes']['get'](_0x403352)});_0x1bd01d['add'](_0x52b351);}}for(const [_0x493ded,_0x4ee1cb]of this['_trackedElements'])'$graveyard'===_0x4ee1cb['root']['rootName']&&_0x1bd01d['add'](_0x493ded);for(const _0x420357 of _0x1bd01d)this['_trackedElements']['delete'](_0x420357);for(const [_0x7c1d7f,_0x11bc17]of _0x7eb27a)this['_trackedElements']['set'](_0x7c1d7f,_0x11bc17[_0x11bc17['length']-0x1]);const _0x537256=new Set();for(const [_0x32da18,_0x2ef00c]of _0x7eb27a)_0x1bd01d['has'](_0x32da18)&&(_0x537256['add'](_0x2ef00c[0x0]),_0x2ef00c['length']>0x1?_0x7eb27a['set'](_0x32da18,_0x2ef00c['slice'](0x1)):_0x7eb27a['delete'](_0x32da18),_0x1bd01d['delete'](_0x32da18));return{'removed':Array['from'](_0x1bd01d),'inserted':Array['from'](_0x7eb27a['values']())['flat'](),'moved':Array['from'](_0x537256)};}}class c extends _0x2a51d8{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42b05a){super(_0x42b05a),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x581a1e=>_0x581a1e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x258a1b=>_0x258a1b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x47d17a}=this,{model:_0x1040fe,data:_0xdb443d}=_0x47d17a;_0x1040fe['document']['registerPostFixer'](_0x12f591=>{const _0x104682=_0x1040fe['document']['differ']['getChanges']();let _0x559b53=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x12f591,_0x104682)&&(_0x559b53=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x12f591,_0x104682)&&(_0x559b53=!0x0),this['_handleFootnoteReferencesChanges'](_0x12f591,_0x104682)&&(_0x559b53=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x12f591)&&(_0x559b53=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x12f591)&&(_0x559b53=!0x0),this['_sortFootnoteDefinitions'](_0x12f591)&&(_0x559b53=!0x0),_0x559b53;}),this['listenTo'](_0x1040fe['document'],'change:data',()=>{_0x1040fe['enqueueChange']({'isUndoable':!0x1},_0x586955=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x586955);});},{'priority':'low'}),this['listenTo'](_0xdb443d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2cd394){return this['_footnotes']['find'](_0x32efb0=>_0x32efb0['id']===_0x2cd394)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x332eeb){this['_footnoteFormatter']=_0x332eeb;}['_updateFootnotesCounters'](_0x3856a4,_0x544ef5=0x0){let _0x42b337=!0x1;for(let _0x5be584=_0x544ef5;_0x5be584<this['_footnotes']['length'];_0x5be584++)this['_updateFootnoteRefCounter'](_0x3856a4,_0x5be584)&&(_0x42b337=!0x0);return _0x42b337;}['_insertEmptyFootnotesDefinitionsContainer'](_0x569d24,_0x3eea5d){const _0xf757f2=_0x569d24['createElement']('footnotesDefinitions',{});return _0x569d24['append'](_0xf757f2,_0x3eea5d),this['_footnotesDefinitions']=_0xf757f2,_0xf757f2;}['_ensureFootnotesDefinitionsContainerExists'](_0x33929e){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x106400=this['_footnotes'][0x0]['reference']['root'],_0x42589b=this['_insertEmptyFootnotesDefinitionsContainer'](_0x33929e,_0x106400);for(const _0x29e59a of this['_footnotes'])_0x29e59a['definition']['parent']||_0x33929e['insert'](_0x29e59a['definition'],_0x42589b,'end');this['_updateFootnotesCounters'](_0x33929e);}['_handleFootnotesDefinitionsObjectChanges'](_0x6851a9,_0x34bb6c){let _0x41ef1c=!0x1;const {inserted:_0x44a133,removed:_0x5aba2a,moved:_0x140fc3}=this['_footnoteDefsContainerTracker']['getChanges'](_0x34bb6c);if(_0x140fc3['length']&&(this['_footnotesDefinitions']=_0x140fc3[0x0]),_0x44a133['length']){if(_0x44a133['length']>0x1||this['_footnotesDefinitions']&&_0x44a133['some'](_0x5a18f1=>_0x5a18f1!==this['_footnotesDefinitions'])){const _0x2492f2=_0x6851a9['createElement']('footnotesDefinitions',{}),_0x520ea6=[];this['_footnotesDefinitions']&&_0x520ea6['push'](this['_footnotesDefinitions']),_0x520ea6['push'](..._0x44a133),_0x6851a9['insert'](_0x2492f2,_0x520ea6[0x0],'before');for(const _0x5d035f of _0x520ea6)_0x6851a9['move'](_0x6851a9['createRangeIn'](_0x5d035f),_0x6851a9['createPositionAt'](_0x2492f2,'end')),_0x6851a9['remove'](_0x5d035f);this['_footnotesDefinitions']=_0x2492f2,this['_updateFootnotesCounters'](_0x6851a9),_0x41ef1c=!0x0;}else this['_footnotesDefinitions']=_0x44a133[0x0];}if(_0x5aba2a['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2d88a0 of this['_footnotes'])_0x6851a9['remove'](_0x2d88a0['reference']),_0x41ef1c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x41ef1c;}['_handleFootnoteDefinitionsChanges'](_0x55966c,_0x54236f){let _0x1acb33=!0x1;const _0x52c000=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xd17f28,moved:_0x4f64b2}=this['_footnoteDefsTracker']['getChanges'](_0x54236f);for(const _0x1179b7 of[..._0x4f64b2,..._0xd17f28]){const _0x2461f9=_0x1179b7['getAttribute']('footnoteId'),_0x330a53=this['getFootnote'](_0x2461f9);_0x330a53&&(_0x330a53['definition']=_0x1179b7),_(_0x55966c,_0x52c000,_0x1179b7)&&(_0x1acb33=!0x0);}return _0x1acb33;}['_handleFootnoteReferencesChanges'](_0x1d2c02,_0x37bc70){let _0xe91461=!0x1;const {removed:_0x64b273,inserted:_0x33ee2a,moved:_0x2615d3}=this['_footnoteRefsTracker']['getChanges'](_0x37bc70);for(const _0xc8ddb0 of _0x64b273)this['_handleRemoveFootnoteReferenceById'](_0x1d2c02,_0xc8ddb0)&&(_0xe91461=!0x0);for(const _0x36142e of _0x33ee2a)this['_handleInsertedFootnoteReference'](_0x1d2c02,_0x36142e)&&(_0xe91461=!0x0);for(const _0x51f4a5 of _0x2615d3)this['_handleMovedFootnoteReference'](_0x1d2c02,_0x51f4a5)&&(_0xe91461=!0x0);return _0xe91461;}['_handleFootnotesDefinitionsObjectSync'](_0x508279){if(!this['_footnotesDefinitions'])return!0x1;let _0x4fbfa2=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x42a5a8=[];for(const _0x50d4ae of this['_footnotesDefinitions']['getChildren']()){const _0x8dfee7=_0x50d4ae['getAttribute']('footnoteId');this['getFootnote'](_0x8dfee7)||(_0x42a5a8['unshift'](_0x50d4ae),_0x4fbfa2=!0x0);}for(const _0x5ef582 of _0x42a5a8)_0x508279['remove'](_0x5ef582);}const _0x5d9f92=new Set(),_0x25bfe7=[];for(const _0x4e7ad1 of this['_footnotesDefinitions']['getChildren']()){const _0xa55c8b=_0x4e7ad1['getAttribute']('footnoteId');_0x5d9f92['has'](_0xa55c8b)?(_0x25bfe7['unshift'](_0x4e7ad1),_0x4fbfa2=!0x0):_0x5d9f92['add'](_0xa55c8b);}for(const _0x4a519d of _0x25bfe7)_0x508279['remove'](_0x4a519d);return this['_footnotesDefinitions']['childCount']||(_0x508279['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4fbfa2=!0x0),_0x4fbfa2;}['_handleInsertedFootnoteReference'](_0x259232,_0x49fb9b){if(this['_footnotes']['find'](_0x5df74c=>_0x5df74c['reference']===_0x49fb9b))return!0x1;let _0xd90641=!0x1;const _0x14d2fa=_0x49fb9b['getAttribute']('footnoteId'),_0x1d4a4c=this['_footnotes']['findIndex'](_0x42b4ba=>_0x42b4ba['id']===_0x14d2fa);-0x1!==_0x1d4a4c&&(_0x259232['remove'](this['_footnotes'][_0x1d4a4c]['reference']),this['_footnotes']['splice'](_0x1d4a4c,0x1),_0xd90641=!0x0);let _0x4a759d=this['_footnotesDefinitions']?function(_0xf33790,_0x3766f5){for(const _0x3ba649 of _0xf33790['getChildren']())if(_0x3ba649['getAttribute']('footnoteId')===_0x3766f5)return _0x3ba649;return null;}(this['_footnotesDefinitions'],_0x14d2fa):null;_0x4a759d||(_0x4a759d=_0x259232['createElement']('footnoteDefinition',{'footnoteId':_0x14d2fa}),this['_footnotesDefinitions']&&(_0x259232['insert'](_0x4a759d,this['_footnotesDefinitions'],'end'),_0xd90641=!0x0));const _0x8708a0={'id':_0x14d2fa,'reference':_0x49fb9b,'definition':_0x4a759d},_0x28f259=I(this['editor']['model'],this['_footnotes'],_0x49fb9b);this['_footnotes']['splice'](_0x28f259,0x0,_0x8708a0);let _0x123f6d=_0x28f259;return-0x1!==_0x1d4a4c&&(_0x123f6d=Math['min'](_0x28f259,_0x1d4a4c)),this['_updateFootnotesCounters'](_0x259232,_0x123f6d)&&(_0xd90641=!0x0),_0xd90641;}['_handleRemoveFootnoteReferenceById'](_0x2ae4d7,_0x707703){const _0x1231d8=this['_footnotes']['findIndex'](_0x52e4a3=>_0x52e4a3['id']===_0x707703);if(-0x1===_0x1231d8)return!0x1;let _0x6402b2=!0x1;const _0x15dae6=this['_footnotes'][_0x1231d8];return'$graveyard'!==_0x15dae6['definition']['root']['rootName']&&(_0x2ae4d7['remove'](_0x15dae6['definition']),_0x6402b2=!0x0),this['_footnotes']['splice'](_0x1231d8,0x1),this['_updateFootnotesCounters'](_0x2ae4d7,_0x1231d8)&&(_0x6402b2=!0x0),_0x6402b2;}['_handleMovedFootnoteReference'](_0x3dc185,_0x46b02f){const _0x3da29a=_0x46b02f['getAttribute']('footnoteId'),_0x5ade23=this['_footnotes']['findIndex'](_0xa84065=>_0xa84065['id']===_0x3da29a),_0x24997e=this['_footnotes'][_0x5ade23];let _0x31b398=!0x1;_0x24997e['reference']=_0x46b02f,this['_footnotes']['splice'](_0x5ade23,0x1);const _0x3bcef5=I(this['editor']['model'],this['_footnotes'],_0x46b02f);return this['_footnotes']['splice'](_0x3bcef5,0x0,_0x24997e),this['_updateFootnotesCounters'](_0x3dc185,Math['min'](_0x5ade23,_0x3bcef5))&&(_0x31b398=!0x0),_0x31b398;}['_updateFootnoteRefCounter'](_0x374f4a,_0x4e8f64){if(!this['_footnotesDefinitions'])return!0x1;const _0x30262b=this['_footnotes'][_0x4e8f64];let _0x5f4285;return _0x5f4285=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x30262b,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4e8f64+0x1}):String(_0x4e8f64+0x1),_0x30262b['reference']['getAttribute']('footnoteCounter')!=_0x5f4285&&(_0x374f4a['setAttribute']('footnoteCounter',_0x5f4285,_0x30262b['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2ff03d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2c0e63,_0x31f9d9){if(_0x2c0e63['length']!==_0x31f9d9['length'])return!0x1;for(let _0x20873f=0x0;_0x20873f<_0x2c0e63['length'];_0x20873f++)if(_0x2c0e63[_0x20873f]!==_0x31f9d9[_0x20873f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x392e5a=>_0x392e5a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x754d4c=>_0x754d4c['getAttribute']('footnoteId'))))return!0x1;let _0x3ee8f7=!0x1;for(let _0x34d196=0x0;_0x34d196<this['_footnotes']['length'];_0x34d196++){const _0x1ee689=this['_footnotes'][_0x34d196],_0x24c289=_0x2ff03d['createPositionBefore'](_0x1ee689['definition']),_0x4a4f56=_0x2ff03d['createPositionAt'](this['_footnotesDefinitions'],_0x34d196);_0x24c289['isEqual'](_0x4a4f56)||(_0x2ff03d['move'](_0x2ff03d['createRangeOn'](_0x1ee689['definition']),_0x4a4f56),_0x3ee8f7=!0x0);}return _0x3ee8f7;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2a17b5){if(!this['_footnotes']['length'])return!0x1;const {model:_0xdeea55}=this['editor'];let _0x43d723=!0x1;for(let _0x4aed04=0x0;_0x4aed04<this['_footnotes']['length']-0x1;_0x4aed04++){const _0x4b4d3b=this['_footnotes'][_0x4aed04],_0x3bb197=this['_footnotes'][_0x4aed04+0x1],_0xdf4275=_0xdeea55['createPositionBefore'](_0x4b4d3b['reference']),_0x134e43=_0xdeea55['createPositionBefore'](_0x3bb197['reference']);'after'===_0xdf4275['compareWith'](_0x134e43)&&(this['_handleMovedFootnoteReference'](_0x2a17b5,_0x4b4d3b['reference']),_0x4aed04=-0x1,_0x43d723=!0x0);}return _0x43d723;}}function _(_0xd317d7,_0x2c8816,_0x3d190a){if(_0x3d190a['childCount'])return!0x1;const _0x437e2a=_0x2c8816?'paragraph':'footnoteInlineContent';return _0xd317d7['insert'](_0xd317d7['createElement'](_0x437e2a),_0x3d190a),!0x0;}function I(_0x5dbb18,_0x35f8e7,_0x28a043){if(0x0===_0x35f8e7['length'])return 0x0;const _0x14cf03=_0x5dbb18['createPositionBefore'](_0x28a043);for(let _0x231f54=0x0;_0x231f54<_0x35f8e7['length'];_0x231f54++){const _0x1e7bcb=_0x35f8e7[_0x231f54],_0x256926=_0x5dbb18['createPositionBefore'](_0x1e7bcb['reference']);if('before'===_0x14cf03['compareWith'](_0x256926))return _0x231f54;}const _0x4f04d3=_0x28a043['root'];let _0x88ec31=-0x1;for(let _0x4f1de4=_0x35f8e7['length']-0x1;_0x4f1de4>=0x0;_0x4f1de4--)if(_0x35f8e7[_0x4f1de4]['reference']['root']===_0x4f04d3){_0x88ec31=_0x4f1de4;break;}if(-0x1!==_0x88ec31)return _0x88ec31+0x1;const _0x56a149=_0x5dbb18['document']['getRootNames'](),_0x4c9cab=_0x56a149['indexOf'](_0x4f04d3['rootName']),_0x5d5339=_0x56a149[_0x4c9cab+0x1];if(_0x5d5339){for(let _0x515fd9=0x0;_0x515fd9<_0x35f8e7['length'];_0x515fd9++)if(_0x35f8e7[_0x515fd9]['reference']['root']['rootName']===_0x5d5339)return _0x515fd9;}return _0x35f8e7['length'];}class m extends _0x411d4d{['refresh'](){const _0x3af7c6=this['editor']['model']['document']['selection'],_0x2e6456=this['_getPositionToInsertFootnote'](_0x3af7c6);this['isEnabled']=!!_0x2e6456;}['execute'](_0x268dcc){const {editor:_0x554e34}=this,{model:_0x46c436}=_0x554e34,{selection:_0x4f9230}=_0x46c436['document'],_0x32b096=this['_getPositionToInsertFootnote'](_0x4f9230);if(!_0x32b096)return;const _0x12944f=_0x554e34['plugins']['get']('FootnotesEditing'),_0x33be0a=_0x268dcc?.['footnoteId']??_0xe0a509();!function(_0x541507){return'string'==typeof _0x541507&&_0x541507['length']>0x0&&!/\s/['test'](_0x541507)&&!/^\d/['test'](_0x541507);}(_0x33be0a)?_0x506cb7('insert-footnote-command-executed-with-invalid-id'):(_0x46c436['change'](_0x3a9946=>{const _0x269577=_0x3a9946['createElement']('footnoteRef',{'footnoteId':_0x33be0a});_0x46c436['insertObject'](_0x269577,_0x32b096,null);}),_0x12944f['_moveSelectionToFootnoteDefinition'](_0x33be0a));}['_getPositionToInsertFootnote'](_0x1e7b89){const {model:_0x167821}=this['editor'],{schema:_0x54777f}=_0x167821,_0x5b540d=_0x1e7b89['getFirstRange']();for(const _0x465ffe of _0x5b540d['getItems']())if(_0x54777f['isBlock'](_0x465ffe)||_0x54777f['isObject'](_0x465ffe))return null;const _0x147d7e=_0x5b540d['end'];return _0x54777f['checkChild'](_0x147d7e,'footnoteRef')?_0x147d7e:null;}}class r extends _0x2a51d8{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x405086}=this;_0x405086['config']['define']('footnotes.multiBlock',!0x0),_0x405086['commands']['add']('insertFootnote',new m(_0x405086)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3beb61){const _0x3cd2c4=_0xe7607c([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]),_0x210f3e=0x47a28506,_0x5a281e=0x47a5fde6^_0x210f3e,_0x3a161f=window[_0xe7607c([0x44,0x61,0x74,0x65])][_0xe7607c([0x6e,0x6f,0x77])](),_0x3c72e2=_0x3beb61[_0xe7607c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31e3f1=new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a3491=>{_0x3c72e2[_0xe7607c([0x6f,0x6e,0x63,0x65])](_0xe7607c([0x72,0x65,0x61,0x64,0x79]),_0x4a3491);}),_0x351600={[_0xe7607c([0x6b,0x74,0x79])]:_0xe7607c([0x45,0x43]),[_0xe7607c([0x75,0x73,0x65])]:_0xe7607c([0x73,0x69,0x67]),[_0xe7607c([0x63,0x72,0x76])]:_0xe7607c([0x50,0x2d,0x32,0x35,0x36]),[_0xe7607c([0x78])]:_0xe7607c([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]),[_0xe7607c([0x79])]:_0xe7607c([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]),[_0xe7607c([0x61,0x6c,0x67])]:_0xe7607c([0x45,0x53,0x32,0x35,0x36])},_0x4402a0=_0x3c72e2[_0xe7607c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe7607c([0x67,0x65,0x74])](_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xba72bc(){let _0x2709dd,_0x2ddb6d=null,_0x230035=null;try{if(_0x4402a0==_0xe7607c([0x47,0x50,0x4c]))return _0xe7607c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2709dd=_0x832f9b(),!_0x2709dd)return _0xe7607c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2709dd[_0xe7607c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x230035=_0x32d182(_0x2709dd[_0xe7607c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2709dd[_0xe7607c([0x6a,0x74,0x69])])),await _0x4c33fd()?_0x2dd8ef()?_0x87b7e7()?_0xe7607c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36db36()?(_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe7607c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ddb6d=_0xa89568(_0xe7607c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe7607c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ddb6d=_0xa89568(_0xe7607c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a2320()):_0xe7607c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe7607c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe7607c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe7607c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x87b7e7(){const _0x1a0330=[_0xe7607c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe7607c([0x74,0x72,0x69,0x61,0x6c])][_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a161f/0x3e8:0xe10*_0x5a281e;return _0x2709dd[_0xe7607c([0x65,0x78,0x70])]<_0x1a0330;}function _0x2dd8ef(){const _0x377887=_0x2709dd[_0xe7607c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x377887&&(!!_0x377887[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7607c([0x2a]))||!!_0x377887[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7607c([0x46,0x4f,0x4f])));}function _0x36db36(){const _0x54fc1c=_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54fc1c||0x0==_0x54fc1c[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4db336}=new URL(window[_0xe7607c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54fc1c[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db336))return!0x0;const _0x17e877=_0x4db336[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e]));return _0x54fc1c[_0xe7607c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x433119=>_0x433119[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7607c([0x2a])))[_0xe7607c([0x6d,0x61,0x70])](_0x2341bc=>_0x2341bc[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e])))[_0xe7607c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18686f=>_0x18686f[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17e877[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe7607c([0x6d,0x61,0x70])](_0x22ad99=>Array(_0x17e877[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22ad99[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe7607c([0x66,0x69,0x6c,0x6c])](_0x22ad99[0x0]===_0xe7607c([0x2a])?_0xe7607c([0x2a]):'')[_0xe7607c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22ad99))[_0xe7607c([0x73,0x6f,0x6d,0x65])](_0x13eb0f=>_0x17e877[_0xe7607c([0x65,0x76,0x65,0x72,0x79])]((_0xcda5e1,_0xccf4f0)=>_0x13eb0f[_0xccf4f0]===_0xcda5e1||_0x13eb0f[_0xccf4f0]===_0xe7607c([0x2a])));}function _0x2a2320(){return _0x2ddb6d&&_0x230035?new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43ef9a,_0x1ba86b)=>{_0x2ddb6d[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x43ef9a,_0x1ba86b),_0x230035[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x113a76=>{_0x113a76!=_0xe7607c([0x56,0x61,0x6c,0x69,0x64])&&_0x43ef9a(_0x113a76);},_0x1ba86b);}):_0x2ddb6d||_0x230035||_0xe7607c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32d182(_0x5ec3da,_0x35f970){return new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4916b1=>{if(_0x5b6189())return _0x4916b1(_0xe7607c([0x56,0x61,0x6c,0x69,0x64]));_0x547438(),_0x3c72e2[_0xe7607c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe7607c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b0e24=!0x1;const _0xea03e4=_0xe0a509();function _0x3f462f(_0x30d9d0){return!!_0x30d9d0&&(typeof _0x30d9d0===_0xe7607c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30d9d0===_0xe7607c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30d9d0[_0xe7607c([0x74,0x68,0x65,0x6e])]===_0xe7607c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30d9d0[_0xe7607c([0x63,0x61,0x74,0x63,0x68])]===_0xe7607c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x258014(_0x3c3b89){_0x33483c(_0x3c3b89)[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x436e1b=>{if(!_0x436e1b||_0x436e1b[_0xe7607c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe7607c([0x6f,0x6b]))return _0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f3c5c(_0xccf0f1(_0xea03e4+_0x35f970))!=_0x436e1b[_0xe7607c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe7607c([0x56,0x61,0x6c,0x69,0x64]);})[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x4322ae=>(_0x127a92(),_0x4322ae),()=>{const _0xfa152a=_0x584941();return null==_0xfa152a?(_0x127a92(),_0xe7607c([0x56,0x61,0x6c,0x69,0x64])):_0xe7607c(_0x3a161f-_0xfa152a>(0x63ae0106^_0x210f3e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x4916b1)[_0xe7607c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4916b1(_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c9897=0x47946b86^_0x210f3e;function _0x127a92(){const _0x54b52f=_0xe7607c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f3c5c(_0xccf0f1(_0x5ec3da)),_0xaaaed1=_0x4e5d28(_0x3f3c5c(window[_0xe7607c([0x4d,0x61,0x74,0x68])][_0xe7607c([0x63,0x65,0x69,0x6c])](_0x3a161f/_0x1c9897)));window[_0xe7607c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe7607c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54b52f,_0xaaaed1);}function _0x584941(){const _0x3fca32=_0xe7607c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f3c5c(_0xccf0f1(_0x5ec3da)),_0x48907c=window[_0xe7607c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe7607c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fca32);return _0x48907c?window[_0xe7607c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e5d28(_0x48907c),0x10)*_0x1c9897:null;}function _0x33483c(_0x3fbfd3){return new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9a6bb3,_0x43afa4)=>{_0x3fbfd3[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x9a6bb3,_0x43afa4),window[_0xe7607c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43afa4,0x47a351c6^_0x210f3e);});}}_0x3c72e2[_0xe7607c([0x6f,0x6e])](_0xe7607c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4abfec,_0x6b43dd)=>{if(_0x6b43dd[0x0]!=_0x5ec3da)return _0x4916b1(_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6b43dd[0x1]={..._0x6b43dd[0x1],[_0xe7607c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xea03e4};},{[_0xe7607c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe7607c([0x68,0x69,0x67,0x68])}),_0x3c72e2[_0xe7607c([0x6f,0x6e])](_0xe7607c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d950a=>{_0x3f462f(_0x1d950a[_0xe7607c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b0e24=!0x0,_0x258014(_0x1d950a[_0xe7607c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe7607c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe7607c([0x6c,0x6f,0x77])}),_0x31e3f1[_0xe7607c([0x74,0x68,0x65,0x6e])](()=>{_0x4b0e24||_0x4916b1(_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b6189(){return _0x3c72e2[_0xe7607c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe7607c([0x76,0x69,0x65,0x77])][_0xe7607c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe7607c([0x61,0x75,0x74,0x6f]);}function _0x547438(){_0x3c72e2[_0xe7607c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe7607c([0x76,0x69,0x65,0x77])][_0xe7607c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe7607c([0x61,0x75,0x74,0x6f]);}}function _0xa89568(_0x5502d2){const _0x591efa=[new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267b61=>setTimeout(_0x267b61,0x47abbbca^_0x210f3e)),_0x31e3f1[_0xe7607c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cc208=>{let _0xb7e99a=0x0;_0x3c72e2[_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c])][_0xe7607c([0x6f,0x6e])](_0xe7607c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58de1e,_0x146c2d)=>{_0x146c2d[0x0][_0xe7607c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb7e99a++,_0xb7e99a==(0x47a284fe^_0x210f3e)&&(_0x1cc208(),_0x58de1e[_0xe7607c([0x6f,0x66,0x66])]());});}))];return window[_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe7607c([0x72,0x61,0x63,0x65])](_0x591efa)[_0xe7607c([0x74,0x68,0x65,0x6e])](()=>_0x5502d2);}async function _0x2a6010(){await _0x31e3f1,_0x3c72e2[_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c])][_0xe7607c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x221a90,_0x3c72e2[_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c])][_0xe7607c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x221a90,_0x3c72e2[_0xe7607c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54d52b(_0x1cf7de){const _0xa1f6d7=_0x5e3ac6();_0x3c72e2[_0xa1f6d7]=_0xe7607c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf7de,_0x1cf7de!=_0xe7607c([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6010();}function _0x5e3ac6(){const _0x29de58=window[_0xe7607c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe7607c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe7607c([0x6e,0x6f,0x77])]())[_0xe7607c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe7607c([0x2e]),'');let _0x1b0133=_0xe7607c([0x75]);for(let _0x1a7b11=0x0;_0x1a7b11<_0x29de58[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a7b11+=0x2){let _0x52bee3=window[_0xe7607c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29de58[_0xe7607c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a7b11,_0x1a7b11+0x2));_0x52bee3>=_0x3cd2c4[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52bee3-=_0x3cd2c4[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b0133+=_0x3cd2c4[_0x52bee3];}return _0x1b0133;}function _0x832f9b(){const _0x572bc5=_0x4402a0[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e]));if(0x3!=_0x572bc5[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x248ee2(_0x572bc5[0x1]);function _0x248ee2(_0x345598){const _0x2f93a7=_0x151af2(_0x345598);return _0x2f93a7&&_0x48d2dd()?_0x2f93a7:null;function _0x48d2dd(){const _0x561ca2=_0x2f93a7[_0xe7607c([0x6a,0x74,0x69])],_0x150709=window[_0xe7607c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x561ca2[_0xe7607c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x561ca2[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37273b={..._0x2f93a7,[_0xe7607c([0x6a,0x74,0x69])]:_0x561ca2[_0xe7607c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x561ca2[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37273b[_0xe7607c([0x76,0x63])],_0xccf0f1(_0x37273b)==_0x150709;}}}async function _0x4c33fd(){let _0x3c57fe=!0x0;try{const _0x2e67f2=_0x4402a0[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e])),[_0x5e79ed,_0x45db1c,_0x2966c7]=_0x2e67f2;return _0x21e735(_0x5e79ed),await _0x4961aa(_0x5e79ed,_0x45db1c,_0x2966c7),_0x3c57fe;}catch{return!0x1;}function _0x21e735(_0x14c99f){const _0x22dffd=_0x151af2(_0x14c99f);_0x22dffd&&_0x22dffd[_0xe7607c([0x61,0x6c,0x67])]==_0xe7607c([0x45,0x53,0x32,0x35,0x36])||(_0x3c57fe=!0x1);}async function _0x4961aa(_0x1ec6a0,_0x408633,_0x13b210){const _0x368ae1=window[_0xe7607c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe7607c([0x66,0x72,0x6f,0x6d])](_0x32ecba(_0x13b210),_0x59a0e4=>_0x59a0e4[_0xe7607c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f787c=new window[(_0xe7607c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe7607c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ec6a0+_0xe7607c([0x2e])+_0x408633),_0x48b1d3=window[_0xe7607c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe7607c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b1d3)return;const _0x37795a=await _0x48b1d3[_0xe7607c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe7607c([0x6a,0x77,0x6b]),_0x351600,{[_0xe7607c([0x6e,0x61,0x6d,0x65])]:_0xe7607c([0x45,0x43,0x44,0x53,0x41]),[_0xe7607c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe7607c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe7607c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b1d3[_0xe7607c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe7607c([0x6e,0x61,0x6d,0x65])]:_0xe7607c([0x45,0x43,0x44,0x53,0x41]),[_0xe7607c([0x68,0x61,0x73,0x68])]:{[_0xe7607c([0x6e,0x61,0x6d,0x65])]:_0xe7607c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37795a,_0x368ae1,_0x2f787c)||(_0x3c57fe=!0x1);}}function _0x151af2(_0x25e82b){return _0x25e82b[_0xe7607c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe7607c([0x65,0x79]))?JSON[_0xe7607c([0x70,0x61,0x72,0x73,0x65])](_0x32ecba(_0x25e82b)):null;}function _0x32ecba(_0x4628da){return window[_0xe7607c([0x61,0x74,0x6f,0x62])](_0x4628da[_0xe7607c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe7607c([0x2b]))[_0xe7607c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe7607c([0x2f])));}function _0xccf0f1(_0x2b4285){let _0x3ab516=0x1505;function _0x442a67(_0x2cb961){for(let _0x3a7a38=0x0;_0x3a7a38<_0x2cb961[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a7a38++){const _0x804487=_0x2cb961[_0xe7607c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a7a38);_0x3ab516=(_0x3ab516<<0x5)+_0x3ab516+_0x804487,_0x3ab516&=_0x3ab516;}}function _0x3857ba(_0x949d6a){Array[_0xe7607c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x949d6a)?_0x949d6a[_0xe7607c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3857ba):_0x949d6a&&typeof _0x949d6a==_0xe7607c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe7607c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x949d6a)[_0xe7607c([0x73,0x6f,0x72,0x74])]()[_0xe7607c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1bf649,_0x964b12])=>{_0x442a67(_0x1bf649),_0x3857ba(_0x964b12);}):_0x442a67(window[_0xe7607c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x949d6a));}return _0x3857ba(_0x2b4285),_0x3ab516>>>0x0;}function _0x3f3c5c(_0x26d619){return _0x26d619[_0xe7607c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe7607c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe7607c([0x30]));}function _0x4e5d28(_0x496a68){return _0x496a68[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe7607c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe7607c([0x6a,0x6f,0x69,0x6e])]('');}function _0x221a90(){}function _0xe7607c(_0x679d61){return _0x679d61['map'](_0x36e71d=>String['fromCharCode'](_0x36e71d))['join']('');}_0x54d52b(await _0xba72bc());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b5386){const {plugins:_0xf2122e,editing:_0x41ce4,model:_0x1ffcef}=this['editor'],_0x2c75d5=_0xf2122e['get'](c)['getFootnote'](_0x4b5386);return!!_0x2c75d5&&(_0x1ffcef['change'](_0x5c5bec=>{_0x5c5bec['setSelection'](_0x5c5bec['createPositionAt'](_0x2c75d5['definition'],'end'));}),_0x41ce4['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x32e66f){const {plugins:_0x5b8e93,editing:_0x1ba40d,model:_0x315e32}=this['editor'],_0x3cb5b4=_0x5b8e93['get'](c)['getFootnote'](_0x32e66f);return!!_0x3cb5b4&&(_0x315e32['change'](_0x5b991c=>{_0x5b991c['setSelection'](_0x3cb5b4['reference'],'on');}),_0x1ba40d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xf9f433}=this['editor']['model'],_0x549cca=this['editor']['config']['get']('footnotes.multiBlock');_0xf9f433['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xf9f433['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xf9f433['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x549cca?_0xf9f433['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xf9f433['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xf9f433['addChildCheck'](_0x43f355=>{for(const _0x367f8e of _0x43f355)if('footnoteDefinition'===_0x367f8e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2231d5}=this,{conversion:_0x4c0a7c,editing:_0x4c0a44}=_0x2231d5,{t:t}=_0x2231d5['locale'];_0x4c0a7c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2f40a2,{writer:_0x2f2e6a,consumable:_0x1d7b14})=>{const _0x2d30ce=_0x2f40a2['getChild'](0x0);if(!_0x2d30ce||!_0x2d30ce['is']('element','a'))return null;const _0xb1876a=_0x2d30ce['getAttribute']('href')||'';if(!_0xb1876a['startsWith']('#'))return null;const _0x30152c=_0xb1876a['replace'](/^#/,'');if(!_0x30152c)return null;_0x1d7b14['consume'](_0x2d30ce,{'name':!0x0,'attributes':['href']});for(const {item:_0x476336}of _0x4c0a44['view']['createRangeIn'](_0x2d30ce))_0x476336['is']('$textProxy')?_0x1d7b14['consume'](_0x476336['textNode'],{'name':!0x0}):_0x476336['is']('element')&&_0x1d7b14['consume'](_0x476336,{'name':!0x0});return _0x2f2e6a['createElement']('footnoteRef',{'footnoteId':_0x30152c});}}),_0x4c0a7c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x57de02,{writer:_0x5b174d})=>D(_0x57de02,_0x5b174d)}),_0x4c0a7c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2c3d85,{writer:_0x6040e7})=>{const _0xc1ea50=_0x2c3d85['getAttribute']('footnoteCounter');return _0x245c1f(D(_0x2c3d85,_0x6040e7),_0x6040e7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xc1ea50)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2be388}=this,{t:t}=_0x2be388['locale'],{conversion:_0xd07d28}=_0x2be388;_0xd07d28['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xd07d28['for']('upcast')['add'](_0x40ceea=>{_0x40ceea['on']('element:ol',(_0x49d40a,_0xc644ba,_0x1c8425)=>{const _0x341ac8=_0xc644ba['viewItem'];if(!_0x341ac8['hasClass']('footnotes-list')||!_0xc644ba['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1c8425['consumable']['consume'](_0x341ac8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xde7c86,modelCursor:_0x1ad1a5}=_0x1c8425['convertChildren'](_0xc644ba['viewItem'],_0xc644ba['modelCursor']);_0xc644ba['modelRange']=_0xde7c86,_0xc644ba['modelCursor']=_0x1ad1a5;}),_0x40ceea['on']('element:hr',(_0x421481,_0x46702d,_0xf001a2)=>{const _0x5a9707=_0x46702d['viewItem'];_0x5a9707['hasClass']('footnotes-divider')&&_0x46702d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xf001a2['consumable']['consume'](_0x5a9707,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xd07d28['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x549101,{writer:_0x37f309})=>v(_0x37f309)}),_0xd07d28['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x15c580,{writer:_0x531622})=>{const _0x344099=v(_0x531622,{'data-footnotes-list-label':t('Footnotes')}),_0x13ae90=_0x245c1f(_0x344099,_0x531622,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x531622['setCustomProperty']('footnotesDefinitions',!0x0,_0x13ae90),_0x13ae90;}});}['_defineDefinitionConverters'](){const {editor:_0xdf2c11}=this,{conversion:_0x3e000c,locale:_0x149a68}=_0xdf2c11,_0x3b7c55=_0xdf2c11['config']['get']('footnotes.multiBlock');_0x3e000c['for']('upcast')['add'](_0x543a3e=>{_0x543a3e['on']('element:li',(_0x52659,_0x464892,_0x345e7e)=>{const _0x3822e8=_0x464892['viewItem'];if(!_0x3822e8['hasClass']('footnote-definition')||!_0x3822e8['getAttribute']('id'))return;const _0x4f6c1f=_0x3822e8['parent'];if(!_0x4f6c1f['is']('element','ol')||!_0x4f6c1f['hasClass']('footnotes-list'))return;if(!_0x345e7e['consumable']['test'](_0x3822e8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x52e51c=_0x345e7e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3822e8['getAttribute']('id')});if(!_0x345e7e['safeInsert'](_0x52e51c,_0x464892['modelCursor']))return;_0x345e7e['consumable']['consume'](_0x3822e8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x797a75=Array['from'](_0x3822e8['getChildren']())['find'](_0x11b712=>_0x11b712['is']('element')&&_0x11b712['hasClass']('footnote-content'));for(const _0x126c0a of _0x3822e8['getChildren']())_0x126c0a['is']('element')&&(_0x345e7e['consumable']['consume'](_0x126c0a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x345e7e['consumable']['consume'](_0x126c0a,{'name':!0x0,'classes':'footnote-content'}));if(_0x797a75){if(_0x3b7c55)_0x345e7e['convertChildren'](_0x797a75,_0x52e51c);else{const _0x4a78c9=_0x345e7e['writer']['createElement']('footnoteInlineContent');_0x345e7e['writer']['insert'](_0x4a78c9,_0x52e51c),_0x345e7e['convertChildren'](_0x797a75,_0x4a78c9);}}_0x345e7e['updateConversionResult'](_0x52e51c,_0x464892);});}),_0x3e000c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ea47c,{writer:_0x2e1614})=>b(_0x3ea47c,_0x2e1614,_0x149a68,{'dataPipeline':!0x0})}),_0x3e000c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x30e69d,{writer:_0x255578})=>b(_0x30e69d,_0x255578,_0x149a68)});}['_defineBogusParagraphConverters'](){const {editor:_0x487a31}=this,{conversion:_0x284f41}=_0x487a31;_0x487a31['config']['get']('footnotes.multiBlock')?(_0x284f41['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x284f41['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x487a31['model']['document'],'change:data',()=>{!function(_0x5bb25b,_0x3b9688){const _0x5bc3d9=_0x5bb25b['document']['differ'],_0x1d981d=new Set();for(const _0x40b609 of _0x5bc3d9['getChanges']()){const _0x56a4b6='attribute'==_0x40b609['type']?_0x40b609['range']['start']['parent']:_0x40b609['position']['parent'];_0x56a4b6['is']('element','footnoteDefinition')&&_0x1d981d['add'](_0x56a4b6);}for(const _0x27d77e of _0x1d981d['values']()){const _0x344cd8=Array['from'](_0x27d77e['getChildren']())['filter'](_0x44cb9f=>g(_0x44cb9f,_0x3b9688['mapper']));for(const _0x4e3570 of _0x344cd8)_0x3b9688['reconvertItem'](_0x4e3570);}}(_0x487a31['model'],_0x487a31['editing']);})):(_0x284f41['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x284f41['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3c55dd,{writer:_0x582b5d})=>{const _0x436467=_0x582b5d['createContainerElement']('span');return _0x582b5d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x436467),_0x436467;}}));}['_defineKeyboardHandlers'](){const {editor:_0x558d52}=this,{editing:_0x5321df,t:t}=_0x558d52,_0x1e28e5=_0x558d52['model']['document']['selection'];_0x558d52['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x558d52['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5321df['view']['document'],'enter',(_0x37923e,_0x2359f2)=>{const _0x252e43=function(_0x518e57){const _0x72f8c3=_0x518e57['getSelectedElement']();if(_0x72f8c3?.['is']('element','footnoteRef'))return _0x72f8c3;return null;}(_0x1e28e5);if(_0x252e43){const _0x459358=_0x252e43['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x459358),_0x2359f2['preventDefault'](),_0x37923e['stop']();}},{'context':_0x3af48b});}['_defineClickHandlers'](){const {editor:_0x31f81f}=this,{editing:_0x1d7457}=_0x31f81f;_0x31f81f['editing']['view']['addObserver'](_0x8b1fec),_0x31f81f['editing']['view']['addObserver'](_0x469245);let _0x8796a6=!0x1;this['listenTo'](_0x1d7457['view']['document'],'pointerdown',(_0x13a8b2,_0x3362b1)=>{const {target:_0x30ae85}=_0x3362b1,_0x435c1e=_0x1d7457['view']['document']['selection'];_0x8796a6=!!(_0x30ae85?.['is']('element','a')&&_0x30ae85['parent']?.['is']('element','sup')&&_0x30ae85['parent']['hasClass']('footnote'))&&_0x435c1e['getSelectedElement']()===_0x30ae85['parent'];},{'priority':'high'}),this['listenTo'](_0x1d7457['view']['document'],'click',(_0xf769e,_0x2688ec)=>{const {target:_0x292732}=_0x2688ec;if(!_0x292732?.['is']('element','a'))return;if(_0x292732['parent']?.['is']('element','sup')&&_0x292732['parent']['hasClass']('footnote')&&!_0x8796a6)return void _0x2688ec['preventDefault']();let _0x560a4f=_0x292732['getAttribute']('href');if(!_0x560a4f?.['startsWith']('#'))return;_0x560a4f=_0x560a4f['slice'](0x1);let _0xc915ad=!0x1;(_0x560a4f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x560a4f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x560a4f))&&(_0xc915ad=!0x0),_0xc915ad&&(_0x2688ec['preventDefault'](),_0xf769e['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1224c3}={}){return(_0x1cb44c,{writer:_0x1c6aeb})=>{if(!p(_0x1cb44c))return null;if(!_0x1224c3)return _0x1c6aeb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x20553c=_0x1c6aeb['createContainerElement']('p');return _0x1c6aeb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x20553c),_0x20553c;};}function p(_0x399221){const {parent:_0x470015}=_0x399221;if(!_0x470015?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x470015['childCount'])return!0x1;for(const _0x58b337 of _0x399221['getAttributeKeys']())if(!_0x58b337['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x58b337)return!0x1;return!0x0;}function g(_0x27f094,_0x2f93c2){if(!_0x27f094['is']('element','paragraph'))return!0x1;const _0x18af91=_0x2f93c2['toViewElement'](_0x27f094);return!!_0x18af91&&p(_0x27f094)!==_0x18af91['is']('element','span');}function J(_0x3d8fe7){return _0x3af48b(_0x3d8fe7)&&_0x3d8fe7['is']('containerElement')&&!!_0x3d8fe7['getCustomProperty']('footnotesDefinitions');}function v(_0x34d66f,_0x482199={}){const _0x32168d=_0x34d66f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2c7728=_0x34d66f['createContainerElement']('ol',{'class':'footnotes-list'},_0x34d66f['createSlot']());return _0x34d66f['createContainerElement']('div',{'class':'footnotes',..._0x482199},[_0x32168d,_0x2c7728]);}function D(_0xf8ae97,_0x412d12){const _0x239312=_0xf8ae97['getAttribute']('footnoteId'),_0x415aac=_0xf8ae97['getAttribute']('footnoteCounter'),_0x3de501=_0x412d12['createUIElement']('a',{'href':'#'+_0x239312},function(_0x6e1ac){const _0x4595e4=this['toDomElement'](_0x6e1ac);return _0x4595e4['textContent']=_0x415aac,_0x4595e4;}),_0x3034f7=_0x412d12['createContainerElement']('sup',{'id':'ref-'+_0x239312,'class':'footnote'},[_0x3de501]);return _0x3034f7['getFillerOffset']=()=>null,_0x3034f7;}function b(_0x4fe958,_0x166dcb,_0x4bb159,{dataPipeline:_0x13600e}={}){const {t:t}=_0x4bb159,_0x23821a=_0x4fe958['getAttribute']('footnoteId'),_0x342933=_0x166dcb['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x23821a},function(_0x4d5347){const _0x42026b=this['toDomElement'](_0x4d5347);return _0x42026b['innerText']='^',_0x42026b;}),_0x442286=_0x13600e?_0x166dcb['createContainerElement']('div',{'class':'footnote-content'}):_0x5c8e2a(_0x166dcb['createEditableElement']('div',{'class':'footnote-content'}),_0x166dcb,{'label':t('Footnote\x20content.')});return _0x166dcb['insert'](_0x166dcb['createPositionAt'](_0x442286,0x0),_0x166dcb['createSlot']()),_0x166dcb['createContainerElement']('li',{'class':'footnote-definition','id':_0x23821a},[_0x342933,_0x442286]);}class e extends _0x2a51d8{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2c4716];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3201d2}=this,{plugins:_0xe225a1,model:_0x2640d2}=_0x3201d2,_0x578d20=_0xe225a1['get'](_0x2c4716),_0x4052dd=_0xe225a1['get'](c);this['listenTo'](_0x578d20,'outputTransformation',(_0x452154,_0x462f5f)=>{const _0x508801=f(_0x2640d2['createRangeIn'](_0x462f5f['content']));if(!_0x508801['length'])return;const _0x332d5d=_0x4052dd['getFootnotes'](),_0x39058d=_0x508801['reduce']((_0xb5592c,_0x60f1a3)=>{const _0x578276=_0x332d5d['find'](_0xb88d6c=>_0xb88d6c['id']===_0x60f1a3);if(_0x578276){const _0x1ea8ec=_0x3201d2['data']['toView'](_0x578276['definition'],{'isClipboardPipeline':!0x0}),_0x2ae822=_0x3201d2['data']['htmlProcessor']['toData'](_0x1ea8ec);_0xb5592c[_0x578276['id']]=_0x2ae822;}return _0xb5592c;},Object['create'](null));_0x462f5f['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x39058d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x253610}=this,{model:_0x5e727e,plugins:_0x59a0a8}=_0x253610,{view:_0x32fac9}=_0x253610['editing'],_0x3b7c15=_0x59a0a8['get'](_0x2c4716),_0x513c80=_0x59a0a8['get'](c);let _0x4e915a=null;this['listenTo'](_0x32fac9['document'],'clipboardInput',(_0xa274a4,_0x20dd1f)=>{const _0x3422ef=_0x20dd1f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4e915a=_0x3422ef?JSON['parse'](_0x3422ef):null;}),this['listenTo'](_0x3b7c15,'contentInsertion',(_0x126d8f,_0x338003)=>{const _0x3cdfde=_0x338003['sourceEditorId']===this['editor']['id'];_0x3cdfde&&'drop'===_0x338003['method']||_0x5e727e['change'](_0x103759=>{let _0x4fa70e=_0x513c80['getFootnotesDefinitionsObjectElement']();const _0x25986c=!!_0x4fa70e&&Array['from'](_0x5e727e['document']['selection']['getSelectedBlocks']())['includes'](_0x4fa70e);if((_0x4fa70e&&!_0x25986c||!_0x4fa70e&&!_0x4e915a)&&function(_0x2bcdcc,_0x234a00){const _0x299077=[];for(const {item:_0x3313bf}of _0x2bcdcc['createRangeIn'](_0x234a00))_0x3313bf['is']('element','footnotesDefinitions')&&_0x299077['push'](_0x3313bf);for(const _0x406f1b of _0x299077)_0x2bcdcc['remove'](_0x406f1b);}(_0x103759,_0x338003['content']),!_0x4e915a)return;const {selection:_0x4dad51}=_0x5e727e['document'],_0x5c9fcc=_0x4dad51['getFirstRange']()['root'];_0x4fa70e&&!_0x25986c||(_0x4fa70e=function(_0x1e4918,_0x70f9a1){for(const {item:_0x1eff21}of _0x1e4918['createRangeIn'](_0x70f9a1))if(_0x1eff21['is']('element','footnotesDefinitions'))return _0x1eff21;return null;}(_0x103759,_0x338003['content']),_0x4fa70e||=_0x513c80['_insertEmptyFootnotesDefinitionsContainer'](_0x103759,_0x5c9fcc));const _0x266d55=Array['from'](_0x4dad51['getRanges']())['flatMap'](f),_0x1c9e2a=function(_0x19b8c,_0x27c7d2,_0xe0a544){const _0x2356b8=Object['create'](null);for(const {item:_0x58828d}of _0x19b8c['createRangeIn'](_0x27c7d2))if(_0x58828d['is']('element','footnoteRef')){const _0x2aca03=_0x58828d['getAttribute']('footnoteId');if(!_0xe0a544(_0x2aca03))continue;_0x2356b8[_0x2aca03]||(_0x2356b8[_0x2aca03]=_0xe0a509()),_0x19b8c['setAttribute']('footnoteId',_0x2356b8[_0x2aca03],_0x58828d);}return _0x2356b8;}(_0x103759,_0x338003['content'],_0x1fac10=>{if(!_0x3cdfde)return!0x0;return!!_0x513c80['getFootnote'](_0x1fac10)&&!_0x266d55['includes'](_0x1fac10);});for(const [_0x291c1c,_0x50b085]of Object['entries'](_0x4e915a)){const _0x534927=_0x1c9e2a[_0x291c1c]||_0x291c1c,_0x485d57=_0x103759['createElement']('footnoteDefinition',{'footnoteId':_0x534927}),_0x28585e=_0x253610['data']['htmlProcessor']['toView'](_0x50b085),_0x7aa7f4=_0x253610['data']['toModel'](_0x28585e,_0x485d57);_0x103759['append'](_0x7aa7f4,_0x485d57),_0x103759['insert'](_0x485d57,_0x4fa70e,'end');}_0x4e915a=null;});});}}function f(_0x497d22){const _0xd95ea2=new Set();for(const {item:_0x6905c0}of _0x497d22)_0x6905c0['is']('element','footnoteRef')&&_0xd95ea2['add'](_0x6905c0['getAttribute']('footnoteId'));return Array['from'](_0xd95ea2);}class i extends _0x2a51d8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd51cd6}=this,{componentFactory:_0x11b836}=_0xd51cd6['ui'];_0x11b836['add']('insertFootnote',x(_0xd51cd6,_0xa6576c)),_0x11b836['add']('menuBar:insertFootnote',x(_0xd51cd6,_0x3a0a17)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18fedd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40fd5c;for(const _0x400458 in _0x18fedd){const _0x582b16=_0x400458,_0x3d4258=_0x18fedd[_0x582b16];if('footnotesLicenseKeyValid'==_0x3d4258||'footnotesLicenseKeyInvalid'==_0x3d4258||'footnotesLicenseKeyExpired'==_0x3d4258||'footnotesLicenseKeyDomainLimit'==_0x3d4258||'footnotesLicenseKeyNotAllowed'==_0x3d4258||'footnotesLicenseKeyEvaluationLimit'==_0x3d4258||'footnotesLicenseKeyTrialLimit'==_0x3d4258||'footnotesLicenseKeyUsageLimit'==_0x3d4258){delete _0x18fedd[_0x582b16],_0x40fd5c=_0x3d4258,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x40fd5c&&_0x18fedd['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x40fd5c&&_0x18fedd['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x40fd5c&&_0x18fedd['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x433fe3,_0x319cfc){const _0x3ec620=_0x433fe3['commands']['get']('insertFootnote');return _0x348b82=>{const {t:t}=_0x348b82,_0x2f1a21=new _0x319cfc(_0x348b82),_0xe4edf5=_0x2f1a21 instanceof _0x3a0a17;return _0x2f1a21['bind']('isEnabled')['to'](_0x3ec620,'isEnabled'),_0x2f1a21['set']({'label':t(_0xe4edf5?'Footnote':'Insert\x20footnote'),'icon':_0x2307de,'tooltip':!0x0}),_0x2f1a21['on']('execute',()=>{_0x3ec620['execute'](),_0x433fe3['editing']['view']['focus']();}),_0x2f1a21;};}class lt extends _0x2a51d8{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const nt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x411d4d{['refresh'](){const {editor:_0x37b170}=this,_0x3e51ee=_0x37b170['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3e51ee,this['value']=_0x3e51ee?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2b560c}){const {editor:_0x330dcd}=this,_0x3997b7=_0x330dcd['plugins']['get'](c),_0x3f0261=_0x3997b7['getFootnotesDefinitionsObjectElement']();_0x3f0261&&nt['includes'](_0x2b560c)&&_0x330dcd['model']['change'](_0x114384=>{_0x114384['setAttribute']('footnotesListStyle',_0x2b560c,_0x3f0261),_0x3997b7['_updateFootnotesCounters'](_0x114384);});}}class C extends _0x411d4d{['refresh'](){const {editor:_0x31ea13}=this,_0x5eceb5=_0x31ea13['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5eceb5,this['value']=_0x5eceb5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5c1993}){const {editor:_0x35779a}=this,_0x207712=_0x35779a['plugins']['get'](c),_0x28fb23=_0x207712['getFootnotesDefinitionsObjectElement']();_0x28fb23&&Number['isInteger'](_0x5c1993)&&_0x35779a['model']['change'](_0x204b0e=>{_0x204b0e['setAttribute']('footnotesListStart',_0x5c1993,_0x28fb23),_0x207712['_updateFootnotesCounters'](_0x204b0e);});}}class P extends _0x2a51d8{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x382f1d}=this;_0x382f1d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x382f1d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x382f1d['commands']['add']('footnotesStyle',new S(_0x382f1d)),_0x382f1d['commands']['add']('footnotesStart',new C(_0x382f1d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x469654}=this,{schema:_0x59e281}=_0x469654['model'];_0x59e281['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xfa2414}=this,{conversion:_0x1c13fa,model:_0x183dba}=_0xfa2414,{schema:_0x376894}=_0x183dba;_0x1c13fa['for']('upcast')['add'](_0x3e0e14=>{_0x3e0e14['on']('element:ol',(_0x174b80,_0x837187,_0x1774eb)=>{const _0x51c724=_0x837187['viewItem'],_0x20cf4a=_0x837187['modelCursor']?.['parent'];_0x51c724['hasClass']('footnotes-list')&&_0x20cf4a?.['is']('element','footnotesDefinitions')&&(function(_0x193c4a,_0xab534d,_0x570eef,_0x349ef6){if(!_0x349ef6['checkAttribute'](_0xab534d,'footnotesListStart'))return;let _0x31738e=0x1;const _0x2de31e=_0x570eef['consumable']['consume'](_0x193c4a,{'attributes':'start'});if(_0x2de31e){const _0x4dfd60=Number['parseInt'](_0x193c4a['getAttribute']('start'),0xa);Number['isNaN'](_0x4dfd60)||(_0x31738e=_0x4dfd60);}!_0x2de31e&&_0xab534d['hasAttribute']('footnotesListStart')||_0x570eef['writer']['setAttribute']('footnotesListStart',_0x31738e,_0xab534d);}(_0x51c724,_0x20cf4a,_0x1774eb,_0x376894),function(_0x295918,_0x58a669,_0x539c57,_0x121e4b){if(!_0x121e4b['checkAttribute'](_0x58a669,'footnotesListStyle'))return;let _0x216fe9='decimal',_0x24c434=!0x1;if(_0x539c57['consumable']['consume'](_0x295918,{'attributes':'type'})){const _0x4474b3={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x295918['getAttribute']('type')];_0x4474b3&&(_0x216fe9=_0x4474b3),_0x24c434=!0x0;}_0x539c57['consumable']['consume'](_0x295918,{'styles':'list-style-type'})&&(_0x216fe9=_0x295918['getStyle']('list-style-type'),_0x24c434=!0x0),!_0x24c434&&_0x58a669['hasAttribute']('footnotesListStyle')||_0x539c57['writer']['setAttribute']('footnotesListStyle',_0x216fe9,_0x58a669);}(_0x51c724,_0x20cf4a,_0x1774eb,_0x376894));});}),_0x1c13fa['for']('downcast')['add'](_0x4bc1bb=>{_0x4bc1bb['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x12e8a1,_0x184c07,_0x4a5e7f)=>{if(!_0x4a5e7f['consumable']['consume'](_0x184c07['item'],_0x12e8a1['name']))return;const _0x3e98eb=M(_0x184c07['item'],_0x4a5e7f['mapper']),{attributeNewValue:_0x2a95eb}=_0x184c07;null==_0x2a95eb||0x1===_0x2a95eb?_0x4a5e7f['writer']['removeAttribute']('start',_0x3e98eb):_0x4a5e7f['writer']['setAttribute']('start',String(_0x2a95eb),_0x3e98eb);}),_0x4bc1bb['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x5663a0,_0x592626,_0x128339)=>{if(!_0x128339['consumable']['consume'](_0x592626['item'],_0x5663a0['name']))return;const _0x234045=M(_0x592626['item'],_0x128339['mapper']),{attributeNewValue:_0x1b1e92}=_0x592626;_0x1b1e92&&'decimal'!==_0x1b1e92?_0x128339['writer']['setStyle']('list-style-type',_0x1b1e92,_0x234045):_0x128339['writer']['removeStyle']('list-style-type',_0x234045);});});}['_definePostfixer'](){const {editor:_0x195a23}=this,{model:_0xdb5929}=_0x195a23,_0x2b4c56=_0x195a23['plugins']['get'](c),_0xca9602=this['_getDefaultListStyle'](),_0x539444=this['_getDefaultStartIndex']();_0xdb5929['document']['registerPostFixer'](_0x299d9d=>{const _0x1d632c=_0xdb5929['document']['differ']['getChanges']();let _0x29992d=!0x1;for(const _0x4ab56b of _0x1d632c){if('insert'!==_0x4ab56b['type']||'$text'===_0x4ab56b['name'])continue;const _0x297a6b=_0xdb5929['createRangeOn'](_0x4ab56b['position']['nodeAfter']);for(const _0x4ad53c of _0x297a6b['getItems']())_0x4ad53c['is']('element','footnotesDefinitions')&&(!_0x4ad53c['hasAttribute']('footnotesListStart')&&_0xdb5929['schema']['checkAttribute'](_0x4ad53c,'footnotesListStart')&&(_0x299d9d['setAttribute']('footnotesListStart',_0x539444,_0x4ad53c),_0x29992d=!0x0),!_0x4ad53c['hasAttribute']('footnotesListStyle')&&_0xdb5929['schema']['checkAttribute'](_0x4ad53c,'footnotesListStyle')&&(_0x299d9d['setAttribute']('footnotesListStyle',_0xca9602,_0x4ad53c),_0x29992d=!0x0));}return _0x29992d&&_0x2b4c56['_updateFootnotesCounters'](_0x299d9d),_0x29992d;});}['_defineFormatter'](){const {editor:_0xad41e6}=this;_0xad41e6['plugins']['get'](c)['setFootnoteFormatter'](_0x3b9908=>this['_formatFootnoteListValue'](_0x3b9908));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x79033f,value:_0x2da166,digits:_0x5cd42d}){const _0x5b205f=_0x79033f['getAttribute']('footnotesListStyle'),_0x41b125=_0x79033f['getAttribute']('footnotesListStart'),_0xa95363=Math['floor'](_0x2da166)+(_0x41b125??0x1)-0x1;switch(_0x5b205f){case'decimal-leading-zero':return function(_0x562384,_0x185d74){return String(_0x562384)['padStart'](_0x185d74,'0');}(_0xa95363,Math['max'](0x2,_0x5cd42d));case'lower-alpha':case'lower-latin':return N(_0xa95363,!0x1);case'upper-alpha':case'upper-latin':return N(_0xa95363,!0x0);case'lower-roman':return X(_0xa95363,!0x1);case'upper-roman':return X(_0xa95363,!0x0);default:return String(_0xa95363);}}}function M(_0x1a648f,_0x1b0f8e){const _0x417916=_0x1b0f8e['toViewElement'](_0x1a648f);return Array['from'](_0x417916['getChildren']())['find'](_0x4c220b=>_0x4c220b['is']('element','ol')&&_0x4c220b['hasClass']('footnotes-list'));}function N(_0x2f9dec,_0x365442){let _0x4c1e35='',_0x1b71bf=_0x2f9dec;for(;_0x1b71bf>0x0;){const _0x4c7a90=(_0x1b71bf-0x1)%0x1a;_0x4c1e35=String['fromCharCode'](0x61+_0x4c7a90)+_0x4c1e35,_0x1b71bf=Math['floor']((_0x1b71bf-0x1)/0x1a);}return _0x365442?_0x4c1e35['toUpperCase']():_0x4c1e35;}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(_0x5f2ad6,_0x1f2d25){let _0x32c2dd='',_0x506eae=_0x5f2ad6;for(const {value:_0x52fdb8,numeral:_0x269fc0}of V)for(;_0x506eae>=_0x52fdb8;)_0x32c2dd+=_0x269fc0,_0x506eae-=_0x52fdb8;return _0x1f2d25?_0x32c2dd:_0x32c2dd['toLowerCase']();}class H extends _0x39320c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x2fea4c();['focusCycler'];constructor(_0x184744,{styleButtonViews:_0xd6a019,styleGridAriaLabel:_0x8dfe29}){super(_0x184744),(this['focusCycler']=new _0x1bb71a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xd6a019,_0x8dfe29),[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 _0x1d9c4c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1d9c4c['element']);_0x391a9c({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x367f65=_0x39a731=>_0x39a731['stopPropagation']();this['keystrokes']['set']('arrowright',_0x367f65),this['keystrokes']['set']('arrowleft',_0x367f65),this['keystrokes']['set']('arrowup',_0x367f65),this['keystrokes']['set']('arrowdown',_0x367f65);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5cd443,_0x87b5c1){const _0x270d92=new _0x39320c(this['locale']);return _0x270d92['children']=_0x270d92['createCollection'](),_0x270d92['children']['addMany'](_0x5cd443),_0x270d92['setTemplate']({'tag':'div','attributes':{'aria-label':_0x87b5c1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x270d92['children']}),_0x270d92['children']['delegate']('execute')['to'](this),_0x270d92['focus']=function(){for(const _0x38699a of this['children'])if(_0x38699a instanceof _0xa6576c&&_0x38699a['isOn'])return void _0x38699a['focus']();this['children']['first']['focus']();},_0x270d92['focusTracker']=new et(),_0x270d92['keystrokes']=new ot(),_0x270d92['render'](),_0x270d92['keystrokes']['listenTo'](_0x270d92['element']),this['children']['add'](_0x270d92),_0x270d92;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xd20416=this['_createStartIndexPropertyView'](),_0x360c50=[_0xd20416],_0x5e6e45=new tt(this['locale'],_0x360c50);return _0x5e6e45['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5e6e45['buttonView']['bind']('isEnabled')['toMany'](_0x360c50,'isEnabled',(..._0x468ee2)=>_0x468ee2['some'](_0x5b6ad8=>_0x5b6ad8)),_0x5e6e45['buttonView']['on']('change:isEnabled',(_0xa04639,_0x35cd2b,_0x157777)=>{_0x157777||(_0x5e6e45['isCollapsed']=!0x0);}),this['children']['add'](_0x5e6e45),[_0xd20416,_0x5e6e45];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x168d54=new st(this['locale'],it);return _0x168d54['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x168d54['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x168d54['fieldView']['on']('input',()=>{const _0x4c832c=_0x168d54['fieldView']['element'],_0x265528=_0x4c832c['valueAsNumber'];Number['isNaN'](_0x265528)?_0x168d54['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4c832c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x265528}):_0x168d54['errorText']=t(_0x265528<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x168d54;}}class j extends _0x2a51d8{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5f4adf,_0x27b646];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b99d2}=this,{componentFactory:_0x15b546}=_0x4b99d2['ui'];_0x4b99d2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x15b546['add']('footnotesStyle',function(_0xd63c28){return _0x2fafec=>{const {t:t}=_0x2fafec,_0x509475=_0xd63c28['commands']['get']('footnotesStyle'),_0x27f1bb=_0x3c9576(_0x2fafec),{buttonView:_0x4ee822}=_0x27f1bb;return _0x27f1bb['class']='ck-footnotes-styles-dropdown',_0x27f1bb['bind']('isEnabled')['to'](_0x509475,'isEnabled'),_0x4ee822['set']({'label':t('Footnotes\x20style'),'icon':_0x2307de,'tooltip':!0x0}),_0x27f1bb['once']('change:isOpen',()=>{const _0x50e698=function({editor:_0x40ed06,dropdownView:_0x2f05f1}){const {t:t}=_0x40ed06['locale'],_0x5054e2=t('Footnotes\x20definitions\x20styles'),_0x5c9dcf=function(_0x4dc232){const t=_0x4dc232['locale']['t'],_0x207008=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3399b5},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x7ab591},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x112b16},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2119d1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5c1242},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2c5a45}];return _0x207008['map'](function(_0x8f889a){const _0x43fd5d=_0x8f889a['locale'];return({label:_0x536099,icon:_0x136fc9,tooltip:_0x2243c6,style:_0x259568})=>{const _0x122e2e=_0x8f889a['commands']['get']('footnotesStyle'),_0x3839d6=new _0xa6576c(_0x43fd5d);return _0x3839d6['set']({'label':_0x536099,'icon':_0x136fc9,'tooltip':_0x2243c6}),_0x3839d6['bind']('isOn')['to'](_0x122e2e,'value',_0xea0159=>_0xea0159===_0x259568),_0x3839d6['bind']('isEnabled')['to'](_0x122e2e,'isEnabled'),_0x3839d6['on']('execute',()=>{_0x8f889a['execute']('footnotesStyle',{'value':_0x259568}),_0x8f889a['editing']['view']['focus']();}),_0x3839d6;};}(_0x4dc232));}(_0x40ed06),_0x1565c6=new H(_0x40ed06['locale'],{'styleGridAriaLabel':_0x5054e2,'styleButtonViews':_0x5c9dcf});return _0x1565c6['delegate']('execute')['to'](_0x2f05f1),_0x1565c6['on']('footnotesListStart',(_0x5e6d2f,_0x2ae9e7)=>{_0x40ed06['execute']('footnotesStart',{'value':_0x2ae9e7['startIndex']});}),_0x1565c6;}({'editor':_0xd63c28,'dropdownView':_0x27f1bb});_0x27f1bb['panelView']['children']['add'](_0x50e698);}),_0x27f1bb;};}(_0x4b99d2));}['afterInit'](){const {editor:_0x2227f5}=this,{t:t}=_0x2227f5['locale'],_0x31db6d=_0x2227f5['plugins']['get'](_0x27b646),{defaultPositions:_0x2b8517}=_0x204d6f;_0x31db6d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2227f5['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x55bcfb=>{let _0x4f747f=_0x55bcfb['getFirstPosition']()?.['parent'];return _0x4f747f?.['is']('$text')&&(_0x4f747f=_0x4f747f['parent']),_0x4f747f?.['is']('element')?_0x4f747f['findAncestor'](J):null;},'positions':[_0x2b8517['southArrowNorth'],_0x2b8517['southArrowNorthMiddleWest'],_0x2b8517['southArrowNorthMiddleEast'],_0x2b8517['southArrowNorthWest'],_0x2b8517['southArrowNorthEast'],_0x2b8517['northArrowSouth'],_0x2b8517['northArrowSouthMiddleWest'],_0x2b8517['northArrowSouthMiddleEast'],_0x2b8517['northArrowSouthWest'],_0x2b8517['northArrowSouthEast'],_0x2b8517['viewportStickyNorth']]});}}class ft extends _0x2a51d8{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-20251112.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-20251112.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251112.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251112.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251112.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251112.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251112.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251112.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251112.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 _0x106153}from'ckeditor5/src/core.js';import{isWidget as _0x159d36,toWidget as _0x29b06e,toWidgetEditable as _0xee2371}from'ckeditor5/src/widget.js';import{uid as _0xdeb94c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x5bcf5a,ClickObserver as _0x1e80a4}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x33dfa5}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2a13c2}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x106153{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x33dfa5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x213835}=this;_0x213835['config']['define']('footnotes.multiBlock',!0x0),_0x213835['commands']['add']('insertFootnote',new _0x2a13c2(_0x213835)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1bea6b){const _0x20cf01=_0x2cbcdd([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]),_0x80169=0x47a28506,_0x4ab0b6=0x47a5fdb6^_0x80169,_0x471980=window[_0x2cbcdd([0x44,0x61,0x74,0x65])][_0x2cbcdd([0x6e,0x6f,0x77])](),_0x412ff9=_0x1bea6b[_0x2cbcdd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36868e=new window[(_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18ed5e=>{_0x412ff9[_0x2cbcdd([0x6f,0x6e,0x63,0x65])](_0x2cbcdd([0x72,0x65,0x61,0x64,0x79]),_0x18ed5e);}),_0x469fb6={[_0x2cbcdd([0x6b,0x74,0x79])]:_0x2cbcdd([0x45,0x43]),[_0x2cbcdd([0x75,0x73,0x65])]:_0x2cbcdd([0x73,0x69,0x67]),[_0x2cbcdd([0x63,0x72,0x76])]:_0x2cbcdd([0x50,0x2d,0x32,0x35,0x36]),[_0x2cbcdd([0x78])]:_0x2cbcdd([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]),[_0x2cbcdd([0x79])]:_0x2cbcdd([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]),[_0x2cbcdd([0x61,0x6c,0x67])]:_0x2cbcdd([0x45,0x53,0x32,0x35,0x36])},_0x2afdb2=_0x412ff9[_0x2cbcdd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cbcdd([0x67,0x65,0x74])](_0x2cbcdd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52ef88(){let _0x33fb12,_0x3dceb=null,_0x2e3292=null;try{if(_0x2afdb2==_0x2cbcdd([0x47,0x50,0x4c]))return _0x2cbcdd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33fb12=_0x3f3f2d(),!_0x33fb12)return _0x2cbcdd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33fb12[_0x2cbcdd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e3292=_0x507012(_0x33fb12[_0x2cbcdd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33fb12[_0x2cbcdd([0x6a,0x74,0x69])])),await _0x1510ef()?_0x3d0e24()?_0x5696c8()?_0x2cbcdd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35d9fd()?(_0x33fb12[_0x2cbcdd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cbcdd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3dceb=_0x55859b(_0x2cbcdd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33fb12[_0x2cbcdd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cbcdd([0x74,0x72,0x69,0x61,0x6c])&&(_0x3dceb=_0x55859b(_0x2cbcdd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xad5385()):_0x2cbcdd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cbcdd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cbcdd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cbcdd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5696c8(){const _0x4aba67=[_0x2cbcdd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cbcdd([0x74,0x72,0x69,0x61,0x6c])][_0x2cbcdd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33fb12[_0x2cbcdd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x471980/0x3e8:0xe10*_0x4ab0b6;return _0x33fb12[_0x2cbcdd([0x65,0x78,0x70])]<_0x4aba67;}function _0x3d0e24(){const _0x265e84=_0x33fb12[_0x2cbcdd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x265e84&&(!!_0x265e84[_0x2cbcdd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbcdd([0x2a]))||!!_0x265e84[_0x2cbcdd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbcdd([0x46,0x4f,0x4f])));}function _0x35d9fd(){const _0x3e68bf=_0x33fb12[_0x2cbcdd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e68bf||0x0==_0x3e68bf[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1176ec}=new URL(window[_0x2cbcdd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e68bf[_0x2cbcdd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1176ec))return!0x0;const _0x26db8b=_0x1176ec[_0x2cbcdd([0x73,0x70,0x6c,0x69,0x74])](_0x2cbcdd([0x2e]));return _0x3e68bf[_0x2cbcdd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13c861=>_0x13c861[_0x2cbcdd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbcdd([0x2a])))[_0x2cbcdd([0x6d,0x61,0x70])](_0x22cfc6=>_0x22cfc6[_0x2cbcdd([0x73,0x70,0x6c,0x69,0x74])](_0x2cbcdd([0x2e])))[_0x2cbcdd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f8bcb=>_0x2f8bcb[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26db8b[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cbcdd([0x6d,0x61,0x70])](_0x6f1d68=>Array(_0x26db8b[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6f1d68[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cbcdd([0x66,0x69,0x6c,0x6c])](_0x6f1d68[0x0]===_0x2cbcdd([0x2a])?_0x2cbcdd([0x2a]):'')[_0x2cbcdd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6f1d68))[_0x2cbcdd([0x73,0x6f,0x6d,0x65])](_0x264a15=>_0x26db8b[_0x2cbcdd([0x65,0x76,0x65,0x72,0x79])]((_0x175388,_0x53a74b)=>_0x264a15[_0x53a74b]===_0x175388||_0x264a15[_0x53a74b]===_0x2cbcdd([0x2a])));}function _0xad5385(){return _0x3dceb&&_0x2e3292?new window[(_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ff7b,_0x3aa228)=>{_0x3dceb[_0x2cbcdd([0x74,0x68,0x65,0x6e])](_0x26ff7b,_0x3aa228),_0x2e3292[_0x2cbcdd([0x74,0x68,0x65,0x6e])](_0x18cbf3=>{_0x18cbf3!=_0x2cbcdd([0x56,0x61,0x6c,0x69,0x64])&&_0x26ff7b(_0x18cbf3);},_0x3aa228);}):_0x3dceb||_0x2e3292||_0x2cbcdd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x507012(_0x4f46b4,_0x1a6a2e){return new window[(_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32046d=>{if(_0x2f5de7())return _0x32046d(_0x2cbcdd([0x56,0x61,0x6c,0x69,0x64]));_0x163225(),_0x412ff9[_0x2cbcdd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cbcdd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29243f=!0x1;const _0x12a4e5=_0xdeb94c();function _0x1f74f4(_0x3b7908){return!!_0x3b7908&&(typeof _0x3b7908===_0x2cbcdd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3b7908===_0x2cbcdd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3b7908[_0x2cbcdd([0x74,0x68,0x65,0x6e])]===_0x2cbcdd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3b7908[_0x2cbcdd([0x63,0x61,0x74,0x63,0x68])]===_0x2cbcdd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa103ba(_0x5537aa){_0x5344a6(_0x5537aa)[_0x2cbcdd([0x74,0x68,0x65,0x6e])](_0x1f2c67=>{if(!_0x1f2c67||_0x1f2c67[_0x2cbcdd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cbcdd([0x6f,0x6b]))return _0x2cbcdd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52479d(_0x4dfa19(_0x12a4e5+_0x1a6a2e))!=_0x1f2c67[_0x2cbcdd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cbcdd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cbcdd([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cbcdd([0x74,0x68,0x65,0x6e])](_0x907571=>(_0x3c25f5(),_0x907571),()=>{const _0x7e04fe=_0x4f5228();return null==_0x7e04fe?(_0x3c25f5(),_0x2cbcdd([0x56,0x61,0x6c,0x69,0x64])):_0x2cbcdd(_0x471980-_0x7e04fe>(0x63ae0106^_0x80169)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cbcdd([0x74,0x68,0x65,0x6e])](_0x32046d)[_0x2cbcdd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32046d(_0x2cbcdd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5554b9=0x47946b86^_0x80169;function _0x3c25f5(){const _0x36bc40=_0x2cbcdd([0x6c,0x6c,0x63,0x74,0x2d])+_0x52479d(_0x4dfa19(_0x4f46b4)),_0x19f394=_0x24bb66(_0x52479d(window[_0x2cbcdd([0x4d,0x61,0x74,0x68])][_0x2cbcdd([0x63,0x65,0x69,0x6c])](_0x471980/_0x5554b9)));window[_0x2cbcdd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cbcdd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36bc40,_0x19f394);}function _0x4f5228(){const _0x360244=_0x2cbcdd([0x6c,0x6c,0x63,0x74,0x2d])+_0x52479d(_0x4dfa19(_0x4f46b4)),_0x391468=window[_0x2cbcdd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cbcdd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x360244);return _0x391468?window[_0x2cbcdd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24bb66(_0x391468),0x10)*_0x5554b9:null;}function _0x5344a6(_0x3264a6){return new window[(_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x513d5f,_0x3a23f2)=>{_0x3264a6[_0x2cbcdd([0x74,0x68,0x65,0x6e])](_0x513d5f,_0x3a23f2),window[_0x2cbcdd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a23f2,0x47a351c6^_0x80169);});}}_0x412ff9[_0x2cbcdd([0x6f,0x6e])](_0x2cbcdd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x580efc,_0x4a5dd8)=>{if(_0x4a5dd8[0x0]!=_0x4f46b4)return _0x32046d(_0x2cbcdd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a5dd8[0x1]={..._0x4a5dd8[0x1],[_0x2cbcdd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12a4e5};},{[_0x2cbcdd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cbcdd([0x68,0x69,0x67,0x68])}),_0x412ff9[_0x2cbcdd([0x6f,0x6e])](_0x2cbcdd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16800a=>{_0x1f74f4(_0x16800a[_0x2cbcdd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29243f=!0x0,_0xa103ba(_0x16800a[_0x2cbcdd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cbcdd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cbcdd([0x6c,0x6f,0x77])}),_0x36868e[_0x2cbcdd([0x74,0x68,0x65,0x6e])](()=>{_0x29243f||_0x32046d(_0x2cbcdd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f5de7(){return _0x412ff9[_0x2cbcdd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cbcdd([0x76,0x69,0x65,0x77])][_0x2cbcdd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cbcdd([0x61,0x75,0x74,0x6f]);}function _0x163225(){_0x412ff9[_0x2cbcdd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cbcdd([0x76,0x69,0x65,0x77])][_0x2cbcdd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cbcdd([0x61,0x75,0x74,0x6f]);}}function _0x55859b(_0x3e1fa9){const _0x5d1cd1=[new window[(_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba021=>setTimeout(_0x2ba021,0x47abbbca^_0x80169)),_0x36868e[_0x2cbcdd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x112bae=>{let _0x442215=0x0;_0x412ff9[_0x2cbcdd([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cbcdd([0x6f,0x6e])](_0x2cbcdd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d3ca0,_0x488e22)=>{_0x488e22[0x0][_0x2cbcdd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x442215++,_0x442215==(0x47a284fe^_0x80169)&&(_0x112bae(),_0x3d3ca0[_0x2cbcdd([0x6f,0x66,0x66])]());});}))];return window[_0x2cbcdd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cbcdd([0x72,0x61,0x63,0x65])](_0x5d1cd1)[_0x2cbcdd([0x74,0x68,0x65,0x6e])](()=>_0x3e1fa9);}async function _0x4c53a7(){await _0x36868e,_0x412ff9[_0x2cbcdd([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cbcdd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42bad8,_0x412ff9[_0x2cbcdd([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cbcdd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42bad8,_0x412ff9[_0x2cbcdd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cbcdd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4500b0(_0xebd4a0){const _0x309401=_0x12995a();_0x412ff9[_0x309401]=_0x2cbcdd([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xebd4a0,_0xebd4a0!=_0x2cbcdd([0x56,0x61,0x6c,0x69,0x64])&&_0x4c53a7();}function _0x12995a(){const _0x1b0ed1=window[_0x2cbcdd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cbcdd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cbcdd([0x6e,0x6f,0x77])]())[_0x2cbcdd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cbcdd([0x2e]),'');let _0x28f096=_0x2cbcdd([0x75]);for(let _0x554cce=0x0;_0x554cce<_0x1b0ed1[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x554cce+=0x2){let _0x2f36f0=window[_0x2cbcdd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b0ed1[_0x2cbcdd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x554cce,_0x554cce+0x2));_0x2f36f0>=_0x20cf01[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f36f0-=_0x20cf01[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28f096+=_0x20cf01[_0x2f36f0];}return _0x28f096;}function _0x3f3f2d(){const _0x15ac53=_0x2afdb2[_0x2cbcdd([0x73,0x70,0x6c,0x69,0x74])](_0x2cbcdd([0x2e]));if(0x3!=_0x15ac53[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22ad57(_0x15ac53[0x1]);function _0x22ad57(_0x4a891a){const _0x403591=_0x2a7747(_0x4a891a);return _0x403591&&_0x112776()?_0x403591:null;function _0x112776(){const _0xa8d938=_0x403591[_0x2cbcdd([0x6a,0x74,0x69])],_0x483d7f=window[_0x2cbcdd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa8d938[_0x2cbcdd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa8d938[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35c0b7={..._0x403591,[_0x2cbcdd([0x6a,0x74,0x69])]:_0xa8d938[_0x2cbcdd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa8d938[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35c0b7[_0x2cbcdd([0x76,0x63])],_0x4dfa19(_0x35c0b7)==_0x483d7f;}}}async function _0x1510ef(){let _0xf68639=!0x0;try{const _0x5cf6a0=_0x2afdb2[_0x2cbcdd([0x73,0x70,0x6c,0x69,0x74])](_0x2cbcdd([0x2e])),[_0x28a4f5,_0x1ed2f9,_0x134c72]=_0x5cf6a0;return _0x3a61e4(_0x28a4f5),await _0x3578dc(_0x28a4f5,_0x1ed2f9,_0x134c72),_0xf68639;}catch{return!0x1;}function _0x3a61e4(_0x27c271){const _0x5afaa2=_0x2a7747(_0x27c271);_0x5afaa2&&_0x5afaa2[_0x2cbcdd([0x61,0x6c,0x67])]==_0x2cbcdd([0x45,0x53,0x32,0x35,0x36])||(_0xf68639=!0x1);}async function _0x3578dc(_0x9d9101,_0xbd391,_0x45e583){const _0x38d898=window[_0x2cbcdd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cbcdd([0x66,0x72,0x6f,0x6d])](_0x5dff9c(_0x45e583),_0x1364bb=>_0x1364bb[_0x2cbcdd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb3760b=new window[(_0x2cbcdd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cbcdd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9d9101+_0x2cbcdd([0x2e])+_0xbd391),_0x1711e7=window[_0x2cbcdd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cbcdd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1711e7)return;const _0x50c8d0=await _0x1711e7[_0x2cbcdd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cbcdd([0x6a,0x77,0x6b]),_0x469fb6,{[_0x2cbcdd([0x6e,0x61,0x6d,0x65])]:_0x2cbcdd([0x45,0x43,0x44,0x53,0x41]),[_0x2cbcdd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cbcdd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cbcdd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1711e7[_0x2cbcdd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cbcdd([0x6e,0x61,0x6d,0x65])]:_0x2cbcdd([0x45,0x43,0x44,0x53,0x41]),[_0x2cbcdd([0x68,0x61,0x73,0x68])]:{[_0x2cbcdd([0x6e,0x61,0x6d,0x65])]:_0x2cbcdd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50c8d0,_0x38d898,_0xb3760b)||(_0xf68639=!0x1);}}function _0x2a7747(_0x5efeed){return _0x5efeed[_0x2cbcdd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cbcdd([0x65,0x79]))?JSON[_0x2cbcdd([0x70,0x61,0x72,0x73,0x65])](_0x5dff9c(_0x5efeed)):null;}function _0x5dff9c(_0xb59006){return window[_0x2cbcdd([0x61,0x74,0x6f,0x62])](_0xb59006[_0x2cbcdd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cbcdd([0x2b]))[_0x2cbcdd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cbcdd([0x2f])));}function _0x4dfa19(_0x3068fa){let _0x201072=0x1505;function _0x2a9550(_0x532957){for(let _0x31226d=0x0;_0x31226d<_0x532957[_0x2cbcdd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31226d++){const _0x119539=_0x532957[_0x2cbcdd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31226d);_0x201072=(_0x201072<<0x5)+_0x201072+_0x119539,_0x201072&=_0x201072;}}function _0x47913b(_0x3fc8a4){Array[_0x2cbcdd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fc8a4)?_0x3fc8a4[_0x2cbcdd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47913b):_0x3fc8a4&&typeof _0x3fc8a4==_0x2cbcdd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cbcdd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fc8a4)[_0x2cbcdd([0x73,0x6f,0x72,0x74])]()[_0x2cbcdd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5eafba,_0x17579c])=>{_0x2a9550(_0x5eafba),_0x47913b(_0x17579c);}):_0x2a9550(window[_0x2cbcdd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fc8a4));}return _0x47913b(_0x3068fa),_0x201072>>>0x0;}function _0x52479d(_0x4ef5e0){return _0x4ef5e0[_0x2cbcdd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cbcdd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cbcdd([0x30]));}function _0x24bb66(_0x50f426){return _0x50f426[_0x2cbcdd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cbcdd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cbcdd([0x6a,0x6f,0x69,0x6e])]('');}function _0x42bad8(){}function _0x2cbcdd(_0x30ae14){return _0x30ae14['map'](_0x5e64f6=>String['fromCharCode'](_0x5e64f6))['join']('');}_0x4500b0(await _0x52ef88());}(this);}['_moveSelectionToFootnoteDefinition'](_0x574ffb){const {plugins:_0x2292c8,editing:_0x4c9c0e,model:_0x13b7c0}=this['editor'],_0x5e6a47=_0x2292c8['get'](_0x33dfa5)['getFootnote'](_0x574ffb);return!!_0x5e6a47&&(_0x13b7c0['change'](_0x5e3485=>{_0x5e3485['setSelection'](_0x5e3485['createPositionAt'](_0x5e6a47['definition'],'end'));}),_0x4c9c0e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x39b72f){const {plugins:_0x4e51e5,editing:_0x581753,model:_0x210ecb}=this['editor'],_0xceff4f=_0x4e51e5['get'](_0x33dfa5)['getFootnote'](_0x39b72f);return!!_0xceff4f&&(_0x210ecb['change'](_0x2507d7=>{_0x2507d7['setSelection'](_0xceff4f['reference'],'on');}),_0x581753['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x58b7d3}=this['editor']['model'],_0x21ff61=this['editor']['config']['get']('footnotes.multiBlock');_0x58b7d3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x58b7d3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x58b7d3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x21ff61?_0x58b7d3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x58b7d3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x58b7d3['addChildCheck'](_0x12bd89=>{for(const _0x11ae8e of _0x12bd89)if('footnoteDefinition'===_0x11ae8e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xcf33dd}=this,{conversion:_0x4571c6,editing:_0x3780d}=_0xcf33dd,{t:t}=_0xcf33dd['locale'];_0x4571c6['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5eb1e5,{writer:_0x52d92b,consumable:_0x499169})=>{const _0x486f27=_0x5eb1e5['getChild'](0x0);if(!_0x486f27||!_0x486f27['is']('element','a'))return null;const _0x1ff38b=_0x486f27['getAttribute']('href')||'';if(!_0x1ff38b['startsWith']('#'))return null;const _0x8c2b3c=_0x1ff38b['replace'](/^#/,'');if(!_0x8c2b3c)return null;_0x499169['consume'](_0x486f27,{'name':!0x0,'attributes':['href']});for(const {item:_0x472832}of _0x3780d['view']['createRangeIn'](_0x486f27))_0x472832['is']('$textProxy')?_0x499169['consume'](_0x472832['textNode'],{'name':!0x0}):_0x472832['is']('element')&&_0x499169['consume'](_0x472832,{'name':!0x0});return _0x52d92b['createElement']('footnoteRef',{'footnoteId':_0x8c2b3c});}}),_0x4571c6['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4fc132,{writer:_0x46bcd9})=>D(_0x4fc132,_0x46bcd9)}),_0x4571c6['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x119466,{writer:_0x4e714d})=>{const _0x56c10a=_0x119466['getAttribute']('footnoteCounter');return _0x29b06e(D(_0x119466,_0x4e714d),_0x4e714d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x56c10a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x25b3ff}=this,{t:t}=_0x25b3ff['locale'],{conversion:_0x5b9b1e}=_0x25b3ff;_0x5b9b1e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5b9b1e['for']('upcast')['add'](_0x2a15b0=>{_0x2a15b0['on']('element:ol',(_0x3cae70,_0x3da482,_0x175f82)=>{const _0x426735=_0x3da482['viewItem'];if(!_0x426735['hasClass']('footnotes-list')||!_0x3da482['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x175f82['consumable']['consume'](_0x426735,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5252d5,modelCursor:_0x180706}=_0x175f82['convertChildren'](_0x3da482['viewItem'],_0x3da482['modelCursor']);_0x3da482['modelRange']=_0x5252d5,_0x3da482['modelCursor']=_0x180706;}),_0x2a15b0['on']('element:hr',(_0x3645ed,_0x2e84ce,_0x55bba9)=>{const _0x246d81=_0x2e84ce['viewItem'];_0x246d81['hasClass']('footnotes-divider')&&_0x2e84ce['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x55bba9['consumable']['consume'](_0x246d81,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5b9b1e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1bd632,{writer:_0x1617e5})=>v(_0x1617e5)}),_0x5b9b1e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x443945,{writer:_0x415d1c})=>{const _0x225c5c=v(_0x415d1c,{'data-footnotes-list-label':t('Footnotes')}),_0x2e931f=_0x29b06e(_0x225c5c,_0x415d1c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x415d1c['setCustomProperty']('footnotesDefinitions',!0x0,_0x2e931f),_0x2e931f;}});}['_defineDefinitionConverters'](){const {editor:_0x56bf65}=this,{conversion:_0x58da81,locale:_0x30b14a}=_0x56bf65,_0x58ad09=_0x56bf65['config']['get']('footnotes.multiBlock');_0x58da81['for']('upcast')['add'](_0x5b25bb=>{_0x5b25bb['on']('element:li',(_0x695fbc,_0x513b62,_0x21c787)=>{const _0x2caf85=_0x513b62['viewItem'];if(!_0x2caf85['hasClass']('footnote-definition')||!_0x2caf85['getAttribute']('id'))return;const _0x428094=_0x2caf85['parent'];if(!_0x428094['is']('element','ol')||!_0x428094['hasClass']('footnotes-list'))return;if(!_0x21c787['consumable']['test'](_0x2caf85,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3c84eb=_0x21c787['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2caf85['getAttribute']('id')});if(!_0x21c787['safeInsert'](_0x3c84eb,_0x513b62['modelCursor']))return;_0x21c787['consumable']['consume'](_0x2caf85,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4b1e53=Array['from'](_0x2caf85['getChildren']())['find'](_0x250634=>_0x250634['is']('element')&&_0x250634['hasClass']('footnote-content'));for(const _0x18ba55 of _0x2caf85['getChildren']())_0x18ba55['is']('element')&&(_0x21c787['consumable']['consume'](_0x18ba55,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x21c787['consumable']['consume'](_0x18ba55,{'name':!0x0,'classes':'footnote-content'}));if(_0x4b1e53){if(_0x58ad09)_0x21c787['convertChildren'](_0x4b1e53,_0x3c84eb);else{const _0x2d0023=_0x21c787['writer']['createElement']('footnoteInlineContent');_0x21c787['writer']['insert'](_0x2d0023,_0x3c84eb),_0x21c787['convertChildren'](_0x4b1e53,_0x2d0023);}}_0x21c787['updateConversionResult'](_0x3c84eb,_0x513b62);});}),_0x58da81['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5c7ba6,{writer:_0x10e5be})=>b(_0x5c7ba6,_0x10e5be,_0x30b14a,{'dataPipeline':!0x0})}),_0x58da81['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x39dce3,{writer:_0x3158d0})=>b(_0x39dce3,_0x3158d0,_0x30b14a)});}['_defineBogusParagraphConverters'](){const {editor:_0x51028f}=this,{conversion:_0xed3c7e}=_0x51028f;_0x51028f['config']['get']('footnotes.multiBlock')?(_0xed3c7e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0xed3c7e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x51028f['model']['document'],'change:data',()=>{!function(_0x5b9fa2,_0x4956b4){const _0x4d72da=_0x5b9fa2['document']['differ'],_0x4a755a=new Set();for(const _0x15ee37 of _0x4d72da['getChanges']()){const _0x5a9cf6='attribute'==_0x15ee37['type']?_0x15ee37['range']['start']['parent']:_0x15ee37['position']['parent'];_0x5a9cf6['is']('element','footnoteDefinition')&&_0x4a755a['add'](_0x5a9cf6);}for(const _0xda509c of _0x4a755a['values']()){const _0x31d808=Array['from'](_0xda509c['getChildren']())['filter'](_0x561a58=>g(_0x561a58,_0x4956b4['mapper']));for(const _0x7c6a69 of _0x31d808)_0x4956b4['reconvertItem'](_0x7c6a69);}}(_0x51028f['model'],_0x51028f['editing']);})):(_0xed3c7e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0xed3c7e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x41ed2a,{writer:_0x2913ce})=>{const _0x1b7809=_0x2913ce['createContainerElement']('span');return _0x2913ce['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1b7809),_0x1b7809;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4f7f21}=this,{editing:_0x545eef,t:t}=_0x4f7f21,_0x53f185=_0x4f7f21['model']['document']['selection'];_0x4f7f21['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4f7f21['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x545eef['view']['document'],'enter',(_0x708c6b,_0x420c6c)=>{const _0x4b8469=function(_0x3a0b8a){const _0x468010=_0x3a0b8a['getSelectedElement']();if(_0x468010?.['is']('element','footnoteRef'))return _0x468010;return null;}(_0x53f185);if(_0x4b8469){const _0x154059=_0x4b8469['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x154059),_0x420c6c['preventDefault'](),_0x708c6b['stop']();}},{'context':_0x159d36});}['_defineClickHandlers'](){const {editor:_0x4ffffd}=this,{editing:_0x15cea1}=_0x4ffffd;_0x4ffffd['editing']['view']['addObserver'](_0x5bcf5a),_0x4ffffd['editing']['view']['addObserver'](_0x1e80a4);let _0x27ef3d=!0x1;this['listenTo'](_0x15cea1['view']['document'],'pointerdown',(_0x2f232c,_0x4879e8)=>{const {target:_0x3965ff}=_0x4879e8,_0x148246=_0x15cea1['view']['document']['selection'];_0x27ef3d=!!(_0x3965ff?.['is']('element','a')&&_0x3965ff['parent']?.['is']('element','sup')&&_0x3965ff['parent']['hasClass']('footnote'))&&_0x148246['getSelectedElement']()===_0x3965ff['parent'];},{'priority':'high'}),this['listenTo'](_0x15cea1['view']['document'],'click',(_0x33c89f,_0x8a79fe)=>{const {target:_0x10fc53}=_0x8a79fe;if(!_0x10fc53?.['is']('element','a'))return;if(_0x10fc53['parent']?.['is']('element','sup')&&_0x10fc53['parent']['hasClass']('footnote')&&!_0x27ef3d)return void _0x8a79fe['preventDefault']();let _0x22ca28=_0x10fc53['getAttribute']('href');if(!_0x22ca28?.['startsWith']('#'))return;_0x22ca28=_0x22ca28['slice'](0x1);let _0xce87d9=!0x1;(_0x22ca28['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x22ca28['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x22ca28))&&(_0xce87d9=!0x0),_0xce87d9&&(_0x8a79fe['preventDefault'](),_0x33c89f['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x18b744}={}){return(_0x4ba5da,{writer:_0x25cde5})=>{if(!p(_0x4ba5da))return null;if(!_0x18b744)return _0x25cde5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xf33717=_0x25cde5['createContainerElement']('p');return _0x25cde5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xf33717),_0xf33717;};}function p(_0x55fb80){const {parent:_0x22af92}=_0x55fb80;if(!_0x22af92?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x22af92['childCount'])return!0x1;for(const _0x5e49a0 of _0x55fb80['getAttributeKeys']())if(!_0x5e49a0['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5e49a0)return!0x1;return!0x0;}function g(_0x2a0bb6,_0x5bd46){if(!_0x2a0bb6['is']('element','paragraph'))return!0x1;const _0x4463c8=_0x5bd46['toViewElement'](_0x2a0bb6);return!!_0x4463c8&&p(_0x2a0bb6)!==_0x4463c8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x53561c){return _0x159d36(_0x53561c)&&_0x53561c['is']('containerElement')&&!!_0x53561c['getCustomProperty']('footnotesDefinitions');}function v(_0x424d94,_0x24e358={}){const _0x1ea6a9=_0x424d94['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4d8aa9=_0x424d94['createContainerElement']('ol',{'class':'footnotes-list'},_0x424d94['createSlot']());return _0x424d94['createContainerElement']('div',{'class':'footnotes',..._0x24e358},[_0x1ea6a9,_0x4d8aa9]);}function D(_0x24bfbd,_0x43d225){const _0x4a6b85=_0x24bfbd['getAttribute']('footnoteId'),_0x1bf747=_0x24bfbd['getAttribute']('footnoteCounter'),_0x200104=_0x43d225['createUIElement']('a',{'href':'#'+_0x4a6b85},function(_0x3a833e){const _0x25c787=this['toDomElement'](_0x3a833e);return _0x25c787['textContent']=_0x1bf747,_0x25c787;}),_0x533ead=_0x43d225['createContainerElement']('sup',{'id':'ref-'+_0x4a6b85,'class':'footnote'},[_0x200104]);return _0x533ead['getFillerOffset']=()=>null,_0x533ead;}function b(_0x3e8849,_0x549252,_0x13f43c,{dataPipeline:_0x48e103}={}){const {t:t}=_0x13f43c,_0x4010b6=_0x3e8849['getAttribute']('footnoteId'),_0x46cf75=_0x549252['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4010b6},function(_0x2cbef8){const _0x40f2a1=this['toDomElement'](_0x2cbef8);return _0x40f2a1['innerText']='^',_0x40f2a1;}),_0x359456=_0x48e103?_0x549252['createContainerElement']('div',{'class':'footnote-content'}):_0xee2371(_0x549252['createEditableElement']('div',{'class':'footnote-content'}),_0x549252,{'label':t('Footnote\x20content.')});return _0x549252['insert'](_0x549252['createPositionAt'](_0x359456,0x0),_0x549252['createSlot']()),_0x549252['createContainerElement']('li',{'class':'footnote-definition','id':_0x4010b6},[_0x46cf75,_0x359456]);}
|
|
23
|
+
import{Plugin as _0x4e1c2c}from'ckeditor5/src/core.js';import{isWidget as _0x4dc540,toWidget as _0x4c0ea2,toWidgetEditable as _0x2933e}from'ckeditor5/src/widget.js';import{uid as _0x43869c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x10af40,ClickObserver as _0x3432d7}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x50bbaf}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x45277a}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e1c2c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x50bbaf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x164244}=this;_0x164244['config']['define']('footnotes.multiBlock',!0x0),_0x164244['commands']['add']('insertFootnote',new _0x45277a(_0x164244)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x46d676){const _0x19c76b=_0x1c298f([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]),_0x2eaf5f=0x47a28506,_0x405dc1=0x47a5fde6^_0x2eaf5f,_0x1d0643=window[_0x1c298f([0x44,0x61,0x74,0x65])][_0x1c298f([0x6e,0x6f,0x77])](),_0x104e29=_0x46d676[_0x1c298f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1848d6=new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50044d=>{_0x104e29[_0x1c298f([0x6f,0x6e,0x63,0x65])](_0x1c298f([0x72,0x65,0x61,0x64,0x79]),_0x50044d);}),_0x50ffb2={[_0x1c298f([0x6b,0x74,0x79])]:_0x1c298f([0x45,0x43]),[_0x1c298f([0x75,0x73,0x65])]:_0x1c298f([0x73,0x69,0x67]),[_0x1c298f([0x63,0x72,0x76])]:_0x1c298f([0x50,0x2d,0x32,0x35,0x36]),[_0x1c298f([0x78])]:_0x1c298f([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]),[_0x1c298f([0x79])]:_0x1c298f([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]),[_0x1c298f([0x61,0x6c,0x67])]:_0x1c298f([0x45,0x53,0x32,0x35,0x36])},_0x55eb44=_0x104e29[_0x1c298f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c298f([0x67,0x65,0x74])](_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bf60e(){let _0x2aa3f2,_0x408984=null,_0x5e7676=null;try{if(_0x55eb44==_0x1c298f([0x47,0x50,0x4c]))return _0x1c298f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2aa3f2=_0x384d6a(),!_0x2aa3f2)return _0x1c298f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2aa3f2[_0x1c298f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e7676=_0x5431bb(_0x2aa3f2[_0x1c298f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2aa3f2[_0x1c298f([0x6a,0x74,0x69])])),await _0x92fbe7()?_0x3dca75()?_0x85ce1d()?_0x1c298f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a4e0a()?(_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c298f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x408984=_0x52a699(_0x1c298f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c298f([0x74,0x72,0x69,0x61,0x6c])&&(_0x408984=_0x52a699(_0x1c298f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdbe6e8()):_0x1c298f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c298f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c298f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c298f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x85ce1d(){const _0x3ff958=[_0x1c298f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c298f([0x74,0x72,0x69,0x61,0x6c])][_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d0643/0x3e8:0xe10*_0x405dc1;return _0x2aa3f2[_0x1c298f([0x65,0x78,0x70])]<_0x3ff958;}function _0x3dca75(){const _0x532313=_0x2aa3f2[_0x1c298f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x532313&&(!!_0x532313[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c298f([0x2a]))||!!_0x532313[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c298f([0x46,0x4f,0x4f])));}function _0x5a4e0a(){const _0x4d8a31=_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d8a31||0x0==_0x4d8a31[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18a748}=new URL(window[_0x1c298f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d8a31[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a748))return!0x0;const _0xbca458=_0x18a748[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e]));return _0x4d8a31[_0x1c298f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b5aa1=>_0x5b5aa1[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c298f([0x2a])))[_0x1c298f([0x6d,0x61,0x70])](_0x11f541=>_0x11f541[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e])))[_0x1c298f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37f883=>_0x37f883[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xbca458[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c298f([0x6d,0x61,0x70])](_0x23cc28=>Array(_0xbca458[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23cc28[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c298f([0x66,0x69,0x6c,0x6c])](_0x23cc28[0x0]===_0x1c298f([0x2a])?_0x1c298f([0x2a]):'')[_0x1c298f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23cc28))[_0x1c298f([0x73,0x6f,0x6d,0x65])](_0x81972=>_0xbca458[_0x1c298f([0x65,0x76,0x65,0x72,0x79])]((_0x298606,_0x1b0a91)=>_0x81972[_0x1b0a91]===_0x298606||_0x81972[_0x1b0a91]===_0x1c298f([0x2a])));}function _0xdbe6e8(){return _0x408984&&_0x5e7676?new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30a3b6,_0xae676f)=>{_0x408984[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x30a3b6,_0xae676f),_0x5e7676[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x4fc1fa=>{_0x4fc1fa!=_0x1c298f([0x56,0x61,0x6c,0x69,0x64])&&_0x30a3b6(_0x4fc1fa);},_0xae676f);}):_0x408984||_0x5e7676||_0x1c298f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5431bb(_0x5bb637,_0x3e7641){return new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbe0182=>{if(_0x4355e0())return _0xbe0182(_0x1c298f([0x56,0x61,0x6c,0x69,0x64]));_0x3daf02(),_0x104e29[_0x1c298f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c298f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e31a5=!0x1;const _0x5d3b63=_0x43869c();function _0x533cfe(_0x506415){return!!_0x506415&&(typeof _0x506415===_0x1c298f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x506415===_0x1c298f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x506415[_0x1c298f([0x74,0x68,0x65,0x6e])]===_0x1c298f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x506415[_0x1c298f([0x63,0x61,0x74,0x63,0x68])]===_0x1c298f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18e78e(_0x7199c3){_0x5e9787(_0x7199c3)[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x3a10f3=>{if(!_0x3a10f3||_0x3a10f3[_0x1c298f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c298f([0x6f,0x6b]))return _0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46ea5d(_0x3eb41e(_0x5d3b63+_0x3e7641))!=_0x3a10f3[_0x1c298f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c298f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x3013e8=>(_0x219ffb(),_0x3013e8),()=>{const _0x5ab713=_0x3de8ad();return null==_0x5ab713?(_0x219ffb(),_0x1c298f([0x56,0x61,0x6c,0x69,0x64])):_0x1c298f(_0x1d0643-_0x5ab713>(0x63ae0106^_0x2eaf5f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c298f([0x74,0x68,0x65,0x6e])](_0xbe0182)[_0x1c298f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbe0182(_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48832a=0x47946b86^_0x2eaf5f;function _0x219ffb(){const _0x42d227=_0x1c298f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ea5d(_0x3eb41e(_0x5bb637)),_0x35b755=_0x4ee0dc(_0x46ea5d(window[_0x1c298f([0x4d,0x61,0x74,0x68])][_0x1c298f([0x63,0x65,0x69,0x6c])](_0x1d0643/_0x48832a)));window[_0x1c298f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c298f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42d227,_0x35b755);}function _0x3de8ad(){const _0x219d6b=_0x1c298f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ea5d(_0x3eb41e(_0x5bb637)),_0x5b5241=window[_0x1c298f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c298f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x219d6b);return _0x5b5241?window[_0x1c298f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ee0dc(_0x5b5241),0x10)*_0x48832a:null;}function _0x5e9787(_0x5bb746){return new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x433ed1,_0x1fb470)=>{_0x5bb746[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x433ed1,_0x1fb470),window[_0x1c298f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fb470,0x47a351c6^_0x2eaf5f);});}}_0x104e29[_0x1c298f([0x6f,0x6e])](_0x1c298f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ec715,_0x553ead)=>{if(_0x553ead[0x0]!=_0x5bb637)return _0xbe0182(_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x553ead[0x1]={..._0x553ead[0x1],[_0x1c298f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d3b63};},{[_0x1c298f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c298f([0x68,0x69,0x67,0x68])}),_0x104e29[_0x1c298f([0x6f,0x6e])](_0x1c298f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa63ef2=>{_0x533cfe(_0xa63ef2[_0x1c298f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e31a5=!0x0,_0x18e78e(_0xa63ef2[_0x1c298f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c298f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c298f([0x6c,0x6f,0x77])}),_0x1848d6[_0x1c298f([0x74,0x68,0x65,0x6e])](()=>{_0x2e31a5||_0xbe0182(_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4355e0(){return _0x104e29[_0x1c298f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c298f([0x76,0x69,0x65,0x77])][_0x1c298f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c298f([0x61,0x75,0x74,0x6f]);}function _0x3daf02(){_0x104e29[_0x1c298f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c298f([0x76,0x69,0x65,0x77])][_0x1c298f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c298f([0x61,0x75,0x74,0x6f]);}}function _0x52a699(_0x4c261a){const _0x32ceeb=[new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1481bf=>setTimeout(_0x1481bf,0x47abbbca^_0x2eaf5f)),_0x1848d6[_0x1c298f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f367=>{let _0x2e2274=0x0;_0x104e29[_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c298f([0x6f,0x6e])](_0x1c298f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23ffa9,_0xc1de3d)=>{_0xc1de3d[0x0][_0x1c298f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e2274++,_0x2e2274==(0x47a284fe^_0x2eaf5f)&&(_0x49f367(),_0x23ffa9[_0x1c298f([0x6f,0x66,0x66])]());});}))];return window[_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c298f([0x72,0x61,0x63,0x65])](_0x32ceeb)[_0x1c298f([0x74,0x68,0x65,0x6e])](()=>_0x4c261a);}async function _0x268e4c(){await _0x1848d6,_0x104e29[_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c298f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e3b9a,_0x104e29[_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c298f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e3b9a,_0x104e29[_0x1c298f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41eda9(_0x45de74){const _0x10ae63=_0x787e30();_0x104e29[_0x10ae63]=_0x1c298f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45de74,_0x45de74!=_0x1c298f([0x56,0x61,0x6c,0x69,0x64])&&_0x268e4c();}function _0x787e30(){const _0x538f0a=window[_0x1c298f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c298f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c298f([0x6e,0x6f,0x77])]())[_0x1c298f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c298f([0x2e]),'');let _0x3c779f=_0x1c298f([0x75]);for(let _0x212ab6=0x0;_0x212ab6<_0x538f0a[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x212ab6+=0x2){let _0x36cc55=window[_0x1c298f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x538f0a[_0x1c298f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212ab6,_0x212ab6+0x2));_0x36cc55>=_0x19c76b[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36cc55-=_0x19c76b[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c779f+=_0x19c76b[_0x36cc55];}return _0x3c779f;}function _0x384d6a(){const _0x447721=_0x55eb44[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e]));if(0x3!=_0x447721[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x202f05(_0x447721[0x1]);function _0x202f05(_0x111df9){const _0x5d685a=_0x1a13d8(_0x111df9);return _0x5d685a&&_0x33a6cf()?_0x5d685a:null;function _0x33a6cf(){const _0x151459=_0x5d685a[_0x1c298f([0x6a,0x74,0x69])],_0xf8381d=window[_0x1c298f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151459[_0x1c298f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x151459[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d8dfa={..._0x5d685a,[_0x1c298f([0x6a,0x74,0x69])]:_0x151459[_0x1c298f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x151459[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d8dfa[_0x1c298f([0x76,0x63])],_0x3eb41e(_0x4d8dfa)==_0xf8381d;}}}async function _0x92fbe7(){let _0x49bc6f=!0x0;try{const _0xb5546f=_0x55eb44[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e])),[_0x29d037,_0x563a5e,_0x1ec4cb]=_0xb5546f;return _0x20661b(_0x29d037),await _0x4e740b(_0x29d037,_0x563a5e,_0x1ec4cb),_0x49bc6f;}catch{return!0x1;}function _0x20661b(_0x1ad6a8){const _0x1388db=_0x1a13d8(_0x1ad6a8);_0x1388db&&_0x1388db[_0x1c298f([0x61,0x6c,0x67])]==_0x1c298f([0x45,0x53,0x32,0x35,0x36])||(_0x49bc6f=!0x1);}async function _0x4e740b(_0x4a307e,_0x25812c,_0x359f70){const _0x2fbf5d=window[_0x1c298f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c298f([0x66,0x72,0x6f,0x6d])](_0x477e04(_0x359f70),_0x2e6cf4=>_0x2e6cf4[_0x1c298f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f56de=new window[(_0x1c298f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c298f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a307e+_0x1c298f([0x2e])+_0x25812c),_0x1efb0e=window[_0x1c298f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c298f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1efb0e)return;const _0x2fa62a=await _0x1efb0e[_0x1c298f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c298f([0x6a,0x77,0x6b]),_0x50ffb2,{[_0x1c298f([0x6e,0x61,0x6d,0x65])]:_0x1c298f([0x45,0x43,0x44,0x53,0x41]),[_0x1c298f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c298f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c298f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1efb0e[_0x1c298f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c298f([0x6e,0x61,0x6d,0x65])]:_0x1c298f([0x45,0x43,0x44,0x53,0x41]),[_0x1c298f([0x68,0x61,0x73,0x68])]:{[_0x1c298f([0x6e,0x61,0x6d,0x65])]:_0x1c298f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fa62a,_0x2fbf5d,_0x2f56de)||(_0x49bc6f=!0x1);}}function _0x1a13d8(_0x1afee1){return _0x1afee1[_0x1c298f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c298f([0x65,0x79]))?JSON[_0x1c298f([0x70,0x61,0x72,0x73,0x65])](_0x477e04(_0x1afee1)):null;}function _0x477e04(_0x4b8ea5){return window[_0x1c298f([0x61,0x74,0x6f,0x62])](_0x4b8ea5[_0x1c298f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c298f([0x2b]))[_0x1c298f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c298f([0x2f])));}function _0x3eb41e(_0x43aa45){let _0x27b828=0x1505;function _0x3375c9(_0x4d5fa1){for(let _0x1ebf9e=0x0;_0x1ebf9e<_0x4d5fa1[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ebf9e++){const _0x76735b=_0x4d5fa1[_0x1c298f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ebf9e);_0x27b828=(_0x27b828<<0x5)+_0x27b828+_0x76735b,_0x27b828&=_0x27b828;}}function _0x1a9dce(_0x17af24){Array[_0x1c298f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17af24)?_0x17af24[_0x1c298f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a9dce):_0x17af24&&typeof _0x17af24==_0x1c298f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c298f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17af24)[_0x1c298f([0x73,0x6f,0x72,0x74])]()[_0x1c298f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2be1be,_0x1b079e])=>{_0x3375c9(_0x2be1be),_0x1a9dce(_0x1b079e);}):_0x3375c9(window[_0x1c298f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17af24));}return _0x1a9dce(_0x43aa45),_0x27b828>>>0x0;}function _0x46ea5d(_0xfd4f4){return _0xfd4f4[_0x1c298f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c298f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c298f([0x30]));}function _0x4ee0dc(_0x13738a){return _0x13738a[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c298f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c298f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e3b9a(){}function _0x1c298f(_0x23ce31){return _0x23ce31['map'](_0x31526e=>String['fromCharCode'](_0x31526e))['join']('');}_0x41eda9(await _0x3bf60e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x30bf89){const {plugins:_0x5b4e90,editing:_0x5483b2,model:_0x617089}=this['editor'],_0xa22771=_0x5b4e90['get'](_0x50bbaf)['getFootnote'](_0x30bf89);return!!_0xa22771&&(_0x617089['change'](_0x34ac27=>{_0x34ac27['setSelection'](_0x34ac27['createPositionAt'](_0xa22771['definition'],'end'));}),_0x5483b2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5f3393){const {plugins:_0x59a86f,editing:_0x5334a1,model:_0x4d3755}=this['editor'],_0x2988b7=_0x59a86f['get'](_0x50bbaf)['getFootnote'](_0x5f3393);return!!_0x2988b7&&(_0x4d3755['change'](_0x117c3b=>{_0x117c3b['setSelection'](_0x2988b7['reference'],'on');}),_0x5334a1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x61ebe1}=this['editor']['model'],_0x5b41a3=this['editor']['config']['get']('footnotes.multiBlock');_0x61ebe1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x61ebe1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x61ebe1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5b41a3?_0x61ebe1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x61ebe1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x61ebe1['addChildCheck'](_0x34817c=>{for(const _0xe7c1b2 of _0x34817c)if('footnoteDefinition'===_0xe7c1b2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x59a883}=this,{conversion:_0xb54ad2,editing:_0x25b7f6}=_0x59a883,{t:t}=_0x59a883['locale'];_0xb54ad2['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2d52ca,{writer:_0x4aabcc,consumable:_0x4045e0})=>{const _0x352d47=_0x2d52ca['getChild'](0x0);if(!_0x352d47||!_0x352d47['is']('element','a'))return null;const _0x156139=_0x352d47['getAttribute']('href')||'';if(!_0x156139['startsWith']('#'))return null;const _0x39af22=_0x156139['replace'](/^#/,'');if(!_0x39af22)return null;_0x4045e0['consume'](_0x352d47,{'name':!0x0,'attributes':['href']});for(const {item:_0x59ab92}of _0x25b7f6['view']['createRangeIn'](_0x352d47))_0x59ab92['is']('$textProxy')?_0x4045e0['consume'](_0x59ab92['textNode'],{'name':!0x0}):_0x59ab92['is']('element')&&_0x4045e0['consume'](_0x59ab92,{'name':!0x0});return _0x4aabcc['createElement']('footnoteRef',{'footnoteId':_0x39af22});}}),_0xb54ad2['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x26542b,{writer:_0x2d9d95})=>D(_0x26542b,_0x2d9d95)}),_0xb54ad2['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x29b918,{writer:_0x5dac13})=>{const _0x50c238=_0x29b918['getAttribute']('footnoteCounter');return _0x4c0ea2(D(_0x29b918,_0x5dac13),_0x5dac13,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x50c238)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5c7154}=this,{t:t}=_0x5c7154['locale'],{conversion:_0x59f67a}=_0x5c7154;_0x59f67a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x59f67a['for']('upcast')['add'](_0x1a397a=>{_0x1a397a['on']('element:ol',(_0x15a2eb,_0xd48d4b,_0x1ec50a)=>{const _0x3bc9e9=_0xd48d4b['viewItem'];if(!_0x3bc9e9['hasClass']('footnotes-list')||!_0xd48d4b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1ec50a['consumable']['consume'](_0x3bc9e9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4e1b56,modelCursor:_0x1e7b5b}=_0x1ec50a['convertChildren'](_0xd48d4b['viewItem'],_0xd48d4b['modelCursor']);_0xd48d4b['modelRange']=_0x4e1b56,_0xd48d4b['modelCursor']=_0x1e7b5b;}),_0x1a397a['on']('element:hr',(_0x2be827,_0x1f5ba5,_0x358112)=>{const _0x511685=_0x1f5ba5['viewItem'];_0x511685['hasClass']('footnotes-divider')&&_0x1f5ba5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x358112['consumable']['consume'](_0x511685,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x59f67a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4b8872,{writer:_0x575ca9})=>v(_0x575ca9)}),_0x59f67a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2e9b39,{writer:_0x57a3b7})=>{const _0xa92be7=v(_0x57a3b7,{'data-footnotes-list-label':t('Footnotes')}),_0x29aff4=_0x4c0ea2(_0xa92be7,_0x57a3b7,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x57a3b7['setCustomProperty']('footnotesDefinitions',!0x0,_0x29aff4),_0x29aff4;}});}['_defineDefinitionConverters'](){const {editor:_0x3b5f2c}=this,{conversion:_0x5a60ee,locale:_0x288d50}=_0x3b5f2c,_0x32dae4=_0x3b5f2c['config']['get']('footnotes.multiBlock');_0x5a60ee['for']('upcast')['add'](_0x221936=>{_0x221936['on']('element:li',(_0x17ac65,_0x22ef98,_0x19addd)=>{const _0x1b4a36=_0x22ef98['viewItem'];if(!_0x1b4a36['hasClass']('footnote-definition')||!_0x1b4a36['getAttribute']('id'))return;const _0x14c03e=_0x1b4a36['parent'];if(!_0x14c03e['is']('element','ol')||!_0x14c03e['hasClass']('footnotes-list'))return;if(!_0x19addd['consumable']['test'](_0x1b4a36,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x10b0c0=_0x19addd['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1b4a36['getAttribute']('id')});if(!_0x19addd['safeInsert'](_0x10b0c0,_0x22ef98['modelCursor']))return;_0x19addd['consumable']['consume'](_0x1b4a36,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x20b51b=Array['from'](_0x1b4a36['getChildren']())['find'](_0x391f89=>_0x391f89['is']('element')&&_0x391f89['hasClass']('footnote-content'));for(const _0x54ce53 of _0x1b4a36['getChildren']())_0x54ce53['is']('element')&&(_0x19addd['consumable']['consume'](_0x54ce53,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x19addd['consumable']['consume'](_0x54ce53,{'name':!0x0,'classes':'footnote-content'}));if(_0x20b51b){if(_0x32dae4)_0x19addd['convertChildren'](_0x20b51b,_0x10b0c0);else{const _0x5c85bc=_0x19addd['writer']['createElement']('footnoteInlineContent');_0x19addd['writer']['insert'](_0x5c85bc,_0x10b0c0),_0x19addd['convertChildren'](_0x20b51b,_0x5c85bc);}}_0x19addd['updateConversionResult'](_0x10b0c0,_0x22ef98);});}),_0x5a60ee['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x28f0fa,{writer:_0x5063ec})=>b(_0x28f0fa,_0x5063ec,_0x288d50,{'dataPipeline':!0x0})}),_0x5a60ee['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xf02299,{writer:_0x38fd5a})=>b(_0xf02299,_0x38fd5a,_0x288d50)});}['_defineBogusParagraphConverters'](){const {editor:_0x32944f}=this,{conversion:_0x318552}=_0x32944f;_0x32944f['config']['get']('footnotes.multiBlock')?(_0x318552['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x318552['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x32944f['model']['document'],'change:data',()=>{!function(_0x45860a,_0x2d2437){const _0x50a15a=_0x45860a['document']['differ'],_0x310ce4=new Set();for(const _0x351c10 of _0x50a15a['getChanges']()){const _0x255f69='attribute'==_0x351c10['type']?_0x351c10['range']['start']['parent']:_0x351c10['position']['parent'];_0x255f69['is']('element','footnoteDefinition')&&_0x310ce4['add'](_0x255f69);}for(const _0x41b465 of _0x310ce4['values']()){const _0x388616=Array['from'](_0x41b465['getChildren']())['filter'](_0x5c8a5b=>g(_0x5c8a5b,_0x2d2437['mapper']));for(const _0x4e1f47 of _0x388616)_0x2d2437['reconvertItem'](_0x4e1f47);}}(_0x32944f['model'],_0x32944f['editing']);})):(_0x318552['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x318552['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xdb2794,{writer:_0x530f08})=>{const _0x28863a=_0x530f08['createContainerElement']('span');return _0x530f08['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x28863a),_0x28863a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4bc369}=this,{editing:_0x545ab5,t:t}=_0x4bc369,_0x13c941=_0x4bc369['model']['document']['selection'];_0x4bc369['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4bc369['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x545ab5['view']['document'],'enter',(_0x489405,_0x2e9ba8)=>{const _0x318758=function(_0x3856e0){const _0x102b64=_0x3856e0['getSelectedElement']();if(_0x102b64?.['is']('element','footnoteRef'))return _0x102b64;return null;}(_0x13c941);if(_0x318758){const _0xfaea29=_0x318758['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xfaea29),_0x2e9ba8['preventDefault'](),_0x489405['stop']();}},{'context':_0x4dc540});}['_defineClickHandlers'](){const {editor:_0x425c9c}=this,{editing:_0x1d882c}=_0x425c9c;_0x425c9c['editing']['view']['addObserver'](_0x10af40),_0x425c9c['editing']['view']['addObserver'](_0x3432d7);let _0x4db546=!0x1;this['listenTo'](_0x1d882c['view']['document'],'pointerdown',(_0x2fab29,_0x4dc278)=>{const {target:_0x4fe7e9}=_0x4dc278,_0x140539=_0x1d882c['view']['document']['selection'];_0x4db546=!!(_0x4fe7e9?.['is']('element','a')&&_0x4fe7e9['parent']?.['is']('element','sup')&&_0x4fe7e9['parent']['hasClass']('footnote'))&&_0x140539['getSelectedElement']()===_0x4fe7e9['parent'];},{'priority':'high'}),this['listenTo'](_0x1d882c['view']['document'],'click',(_0x2e4ce4,_0xb1c4f7)=>{const {target:_0x27ad84}=_0xb1c4f7;if(!_0x27ad84?.['is']('element','a'))return;if(_0x27ad84['parent']?.['is']('element','sup')&&_0x27ad84['parent']['hasClass']('footnote')&&!_0x4db546)return void _0xb1c4f7['preventDefault']();let _0x1aa9a8=_0x27ad84['getAttribute']('href');if(!_0x1aa9a8?.['startsWith']('#'))return;_0x1aa9a8=_0x1aa9a8['slice'](0x1);let _0x4bb48f=!0x1;(_0x1aa9a8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1aa9a8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1aa9a8))&&(_0x4bb48f=!0x0),_0x4bb48f&&(_0xb1c4f7['preventDefault'](),_0x2e4ce4['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1cdd62}={}){return(_0x3e91a6,{writer:_0x549cd2})=>{if(!p(_0x3e91a6))return null;if(!_0x1cdd62)return _0x549cd2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3ca8cb=_0x549cd2['createContainerElement']('p');return _0x549cd2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3ca8cb),_0x3ca8cb;};}function p(_0xf84457){const {parent:_0x1b714d}=_0xf84457;if(!_0x1b714d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1b714d['childCount'])return!0x1;for(const _0x190e2e of _0xf84457['getAttributeKeys']())if(!_0x190e2e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x190e2e)return!0x1;return!0x0;}function g(_0x13bc05,_0x3825b1){if(!_0x13bc05['is']('element','paragraph'))return!0x1;const _0x47506b=_0x3825b1['toViewElement'](_0x13bc05);return!!_0x47506b&&p(_0x13bc05)!==_0x47506b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x38624c){return _0x4dc540(_0x38624c)&&_0x38624c['is']('containerElement')&&!!_0x38624c['getCustomProperty']('footnotesDefinitions');}function v(_0x4ba5a4,_0x47b2ae={}){const _0x357c1e=_0x4ba5a4['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x463491=_0x4ba5a4['createContainerElement']('ol',{'class':'footnotes-list'},_0x4ba5a4['createSlot']());return _0x4ba5a4['createContainerElement']('div',{'class':'footnotes',..._0x47b2ae},[_0x357c1e,_0x463491]);}function D(_0x592ce2,_0x8f2d00){const _0x1aca3e=_0x592ce2['getAttribute']('footnoteId'),_0x11689e=_0x592ce2['getAttribute']('footnoteCounter'),_0x4a6a75=_0x8f2d00['createUIElement']('a',{'href':'#'+_0x1aca3e},function(_0x1a4b37){const _0x78fd25=this['toDomElement'](_0x1a4b37);return _0x78fd25['textContent']=_0x11689e,_0x78fd25;}),_0x1f7936=_0x8f2d00['createContainerElement']('sup',{'id':'ref-'+_0x1aca3e,'class':'footnote'},[_0x4a6a75]);return _0x1f7936['getFillerOffset']=()=>null,_0x1f7936;}function b(_0x4b65cf,_0x40a023,_0x3fe521,{dataPipeline:_0x551204}={}){const {t:t}=_0x3fe521,_0x515721=_0x4b65cf['getAttribute']('footnoteId'),_0xadd6a0=_0x40a023['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x515721},function(_0x23ad4a){const _0x5ee119=this['toDomElement'](_0x23ad4a);return _0x5ee119['innerText']='^',_0x5ee119;}),_0x37a90c=_0x551204?_0x40a023['createContainerElement']('div',{'class':'footnote-content'}):_0x2933e(_0x40a023['createEditableElement']('div',{'class':'footnote-content'}),_0x40a023,{'label':t('Footnote\x20content.')});return _0x40a023['insert'](_0x40a023['createPositionAt'](_0x37a90c,0x0),_0x40a023['createSlot']()),_0x40a023['createContainerElement']('li',{'class':'footnote-definition','id':_0x515721},[_0xadd6a0,_0x37a90c]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c5680=_0x13cf;(function(_0x3f19f9,_0x278ba){const _0x3f6c0e=_0x13cf,_0x5bfefe=_0x3f19f9();while(!![]){try{const _0x471431=-parseInt(_0x3f6c0e(0x17c))/0x1*(-parseInt(_0x3f6c0e(0x16b))/0x2)+-parseInt(_0x3f6c0e(0x179))/0x3*(-parseInt(_0x3f6c0e(0x16c))/0x4)+-parseInt(_0x3f6c0e(0x176))/0x5+-parseInt(_0x3f6c0e(0x174))/0x6*(-parseInt(_0x3f6c0e(0x17b))/0x7)+parseInt(_0x3f6c0e(0x16a))/0x8+-parseInt(_0x3f6c0e(0x180))/0x9*(-parseInt(_0x3f6c0e(0x17d))/0xa)+parseInt(_0x3f6c0e(0x17f))/0xb*(-parseInt(_0x3f6c0e(0x175))/0xc);if(_0x471431===_0x278ba)break;else _0x5bfefe['push'](_0x5bfefe['shift']());}catch(_0x29cbc8){_0x5bfefe['push'](_0x5bfefe['shift']());}}}(_0x4595,0xf151d));function _0x13cf(_0xca1f8,_0x56ac79){const _0x459502=_0x4595();return _0x13cf=function(_0x13cf81,_0x441c10){_0x13cf81=_0x13cf81-0x16a;let _0x4e19ae=_0x459502[_0x13cf81];return _0x4e19ae;},_0x13cf(_0xca1f8,_0x56ac79);}function _0x4595(){const _0x2d2518=['911410dfPIiC','includes','539aszURr','117QgvNTH','refresh','isEnabled','change','10002632DXKQyA','19714JFSnCq','68212AaDBCh','get','model','_updateFootnotesCounters','plugins','footnotesListStyle','setAttribute','getAttribute','665766JZfPcG','894528NdXMNR','1968965KRYobz','execute','value','267SSmHSU','getFootnotesDefinitionsObjectElement','21PSQgMB','76BnQRnq'];_0x4595=function(){return _0x2d2518;};return _0x4595();}import{Command as _0x582a16}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x73d664}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3b7526}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x582a16{[_0x2c5680(0x181)](){const _0x22849c=_0x2c5680,{editor:_0x3dbe8f}=this,_0x2dbba4=_0x3dbe8f[_0x22849c(0x170)][_0x22849c(0x16d)](_0x3b7526)[_0x22849c(0x17a)]();this[_0x22849c(0x182)]=!!_0x2dbba4,this[_0x22849c(0x178)]=_0x2dbba4?.[_0x22849c(0x173)](_0x22849c(0x171))??null;}[_0x2c5680(0x177)]({value:_0x590b9a}){const _0x4f6b34=_0x2c5680,{editor:_0x1fb5eb}=this,_0x800146=_0x1fb5eb[_0x4f6b34(0x170)][_0x4f6b34(0x16d)](_0x3b7526),_0x30eb8a=_0x800146[_0x4f6b34(0x17a)]();_0x30eb8a&&_0x73d664[_0x4f6b34(0x17e)](_0x590b9a)&&_0x1fb5eb[_0x4f6b34(0x16e)][_0x4f6b34(0x183)](_0x4a6db3=>{const _0xa3e8c3=_0x4f6b34;_0x4a6db3[_0xa3e8c3(0x172)](_0xa3e8c3(0x171),_0x590b9a,_0x30eb8a),_0x800146[_0xa3e8c3(0x16f)](_0x4a6db3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3ac3c2,View as _0x176e98,ViewCollection as _0x672447,FocusCycler as _0x51317e,addKeyboardHandlingForGrid as _0x2149a8,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it}from'ckeditor5/src/ui.js';import{FocusTracker as et,KeystrokeHandler as ot,global as rt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x176e98{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x672447();['focusCycler'];constructor(_0x204b6d,{styleButtonViews:_0x2887b4,styleGridAriaLabel:_0x106adb}){super(_0x204b6d),(this['focusCycler']=new _0x51317e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2887b4,_0x106adb),[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 _0x306151 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x306151['element']);_0x2149a8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x261784=_0x28f4c0=>_0x28f4c0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x261784),this['keystrokes']['set']('arrowleft',_0x261784),this['keystrokes']['set']('arrowup',_0x261784),this['keystrokes']['set']('arrowdown',_0x261784);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5245ce,_0xaff354){const _0x1aa5a6=new _0x176e98(this['locale']);return _0x1aa5a6['children']=_0x1aa5a6['createCollection'](),_0x1aa5a6['children']['addMany'](_0x5245ce),_0x1aa5a6['setTemplate']({'tag':'div','attributes':{'aria-label':_0xaff354,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1aa5a6['children']}),_0x1aa5a6['children']['delegate']('execute')['to'](this),_0x1aa5a6['focus']=function(){for(const _0x4ef11f of this['children'])if(_0x4ef11f instanceof _0x3ac3c2&&_0x4ef11f['isOn'])return void _0x4ef11f['focus']();this['children']['first']['focus']();},_0x1aa5a6['focusTracker']=new et(),_0x1aa5a6['keystrokes']=new ot(),_0x1aa5a6['render'](),_0x1aa5a6['keystrokes']['listenTo'](_0x1aa5a6['element']),this['children']['add'](_0x1aa5a6),_0x1aa5a6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x491e4a=this['_createStartIndexPropertyView'](),_0x1b4886=[_0x491e4a],_0x12571c=new tt(this['locale'],_0x1b4886);return _0x12571c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x12571c['buttonView']['bind']('isEnabled')['toMany'](_0x1b4886,'isEnabled',(..._0x1687c9)=>_0x1687c9['some'](_0x380164=>_0x380164)),_0x12571c['buttonView']['on']('change:isEnabled',(_0x2c3a0f,_0x14b584,_0x25eb04)=>{_0x25eb04||(_0x12571c['isCollapsed']=!0x0);}),this['children']['add'](_0x12571c),[_0x491e4a,_0x12571c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x54bb28=new st(this['locale'],it);return _0x54bb28['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x54bb28['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x54bb28['fieldView']['on']('input',()=>{const _0x38a11c=_0x54bb28['fieldView']['element'],_0x3f77af=_0x38a11c['valueAsNumber'];Number['isNaN'](_0x3f77af)?_0x54bb28['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x38a11c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3f77af}):_0x54bb28['errorText']=t(_0x3f77af<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x54bb28;}}
|