@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251025.0 → 0.0.0-nightly-20251027.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
|
-
*/(()=>{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-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.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 .footnote>a{pointer-events:none}.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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},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],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},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:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>lt,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>f,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["slice","position","$text","createRangeOn","4KeNqeS","1644237bGbxvX","136835dzzCTf","76770ISARHK","delete","_elementName","has","set","add","_trackedElements","86VNvBzn","$graveyard","rootName","from","flat","_model","elementName","values","root","837910rzOMfB","16FYIrDV","push","_getElementKey","nodeAfter","638890ZYqqxo","remove","getElementKey","insert","clear","127005hQrMxF","length","get","name","element","reset","8973omYMSw","getItems","attributes","type","getChanges"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=499]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(131818===parseInt(e(534))/1+parseInt(e(515))/2*(parseInt(e(540))/3)+parseInt(e(505))/4*(-parseInt(e(507))/5)+-parseInt(e(508))/6+-parseInt(e(529))/7*(parseInt(e(525))/8)+parseInt(e(506))/9+-parseInt(e(524))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(520)];[c(510)];[c(527)];[c(514)]=new Map;constructor(t,e){const o=c;this[o(520)]=t,this[o(510)]=e[o(521)],this[o(527)]=e[o(531)]}[c(539)](){const t=c;this[t(514)][t(533)]()}[c(500)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(532)===i[e(499)]&&e(503)!==i[e(537)]&&i[e(502)][e(528)]){const t=this[e(520)][e(504)](i[e(502)][e(528)]);for(const o of t[e(541)]()){if(!o.is(e(538),this[e(510)]))continue;const t=this[e(527)](o);n[e(511)](t)||n[e(512)](t,[]),n[e(536)](t)[e(526)](o)}}if(e(530)===i[e(499)]&&i[e(537)]===this[e(510)]){const t=this[e(527)]({getAttribute:t=>i[e(542)][e(536)](t)});o[e(513)](t)}}for(const[t,n]of this[e(514)])e(516)===n[e(523)][e(517)]&&o[e(513)](t);for(const t of o)this[e(514)][e(509)](t);for(const[t,o]of n)this[e(514)][e(512)](t,o[o[e(535)]-1]);const i=new Set;for(const[t,s]of n)o[e(511)](t)&&(i[e(513)](s[0]),s[e(535)]>1?n[e(512)](t,s[e(501)](1)):n[e(509)](t),o[e(509)](t));return{removed:Array[e(518)](o),inserted:Array[e(518)](n[e(522)]())[e(519)](),moved:Array[e(518)](i)}}}const u=h;!function(t){const e=h,o=t();for(;;)try{if(547688===-parseInt(e(489))/1+-parseInt(e(455))/2*(parseInt(e(518))/3)+parseInt(e(550))/4+-parseInt(e(546))/5+-parseInt(e(516))/6*(parseInt(e(523))/7)+-parseInt(e(515))/8+parseInt(e(460))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class f extends t.Plugin{[u(472)]=[];[u(453)]=null;[u(490)]=null;[u(519)];[u(463)];[u(476)];static get[u(480)](){return u(464)}static get[u(478)](){return!0}static get[u(543)](){return!0}constructor(t){const e=u;super(t),this[e(519)]=new l(this[e(503)][e(545)],{elementName:e(529),getElementKey:()=>e(551)}),this[e(463)]=new l(this[e(503)][e(545)],{elementName:e(513),getElementKey:t=>t[e(533)](e(531))}),this[e(476)]=new l(this[e(503)][e(545)],{elementName:e(496),getElementKey:t=>t[e(533)](e(531))})}[u(466)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(507)][t(456)](e=>{const n=t,i=o[n(507)][n(544)][n(526)]();let s=!1;return this[n(459)](e,i)&&(s=!0),this[n(499)](e,i)&&(s=!0),this[n(528)](e,i)&&(s=!0),this[n(452)](e)&&(s=!0),this[n(488)](e)&&(s=!0),this[n(502)](e)&&(s=!0),s}),this[t(541)](o[t(507)],t(521),()=>{const e=t;o[e(508)]({isUndoable:!1},t=>{this[e(498)](t)})},{priority:t(534)}),this[t(541)](n,t(458),()=>{const e=t;this[e(472)]=[],this[e(519)][e(549)](),this[e(463)][e(549)](),this[e(476)][e(549)]()},{priority:t(525)})}[u(494)](){return this[u(453)]}[u(473)](t){const e=u;return this[e(472)][e(486)](e=>e.id===t)||null}[u(506)](){const t=u;return Array[t(485)](this[t(472)])}[u(512)](){return this[u(490)]}[u(461)](t){this[u(490)]=t}[u(501)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(472)][o(475)];i++)this[o(522)](t,i)&&(n=!0);return n}[u(495)](t,e){const o=u,n=t[o(491)](o(529),{});return t[o(493)](n,e),this[o(453)]=n,n}[u(498)](t){const e=u;if(!this[e(472)][e(475)]||this[e(453)])return;const o=this[e(472)][0][e(471)][e(504)],n=this[e(495)](t,o);for(const o of this[e(472)])o[e(548)][e(524)]||t[e(477)](o[e(548)],n,e(532));this[e(501)](t)}[u(459)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(519)][o(526)](e);if(r[o(475)]&&(this[o(453)]=r[0]),i[o(475)])if(i[o(475)]>1||this[o(453)]&&i[o(481)](t=>t!==this[o(453)])){const e=t[o(491)](o(529),{}),s=[];this[o(453)]&&s[o(539)](this[o(453)]),s[o(539)](...i),t[o(477)](e,s[0],o(536));for(const n of s)t[o(520)](t[o(487)](n),t[o(467)](e,o(532))),t[o(469)](n);this[o(453)]=e,this[o(501)](t),n=!0}else this[o(453)]=i[0];if(s[o(475)]&&o(535)===this[o(453)]?.[o(504)][o(497)]){for(const e of this[o(472)])t[o(469)](e[o(471)]),n=!0;this[o(472)]=[],this[o(453)]=null}return n}[u(499)](t,e){const o=u;let n=!1;const i=this[o(503)][o(474)][o(468)](o(517)),{inserted:s,moved:r}=this[o(476)][o(526)](e);for(const e of[...r,...s]){const s=e[o(533)](o(531)),r=this[o(473)](s);r&&(r[o(548)]=e),p(t,i,e)&&(n=!0)}return n}[u(528)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(526)](e);for(const e of i)this[o(482)](t,e)&&(n=!0);for(const e of s)this[o(462)](t,e)&&(n=!0);for(const e of r)this[o(538)](t,e)&&(n=!0);return n}[u(488)](t){const e=u;if(!this[e(453)])return!1;let o=!1;if(this[e(453)][e(552)]!==this[e(472)][e(475)]){const n=[];for(const t of this[e(453)][e(537)]()){const i=t[e(533)](e(531));this[e(473)](i)||(n[e(505)](t),o=!0)}for(const o of n)t[e(469)](o)}const n=new Set,i=[];for(const t of this[e(453)][e(537)]()){const s=t[e(533)](e(531));n[e(540)](s)?(i[e(505)](t),o=!0):n[e(527)](s)}for(const o of i)t[e(469)](o);return this[e(453)][e(552)]||(t[e(469)](this[e(453)]),this[e(453)]=null,o=!0),o}[u(462)](t,e){const o=u;if(this[o(472)][o(486)](t=>t[o(471)]===e))return!1;let n=!1;const i=e[o(533)](o(531)),s=this[o(473)](i);s&&(t[o(469)](s[o(471)]),this[o(472)]=this[o(472)][o(470)](t=>t.id!==i),n=!0);let r=this[o(453)]?function(t,e){const n=o;for(const o of t[n(537)]())if(o[n(533)](n(531))===e)return o;return null}(this[o(453)],i):null;r||(r=t[o(491)](o(496),{footnoteId:i}),this[o(453)]&&(t[o(477)](r,this[o(453)],o(532)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](c,0,a),this[o(501)](t,c)&&(n=!0),n}[u(482)](t,e){const o=u,n=this[o(472)][o(530)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(472)][n];return o(535)!==s[o(548)][o(504)][o(497)]&&(t[o(469)](s[o(548)]),i=!0),this[o(472)][o(492)](n,1),this[o(501)](t,n)&&(i=!0),i}[u(538)](t,e){const o=u,n=e[o(533)](o(531)),i=this[o(472)][o(530)](t=>t.id===n),s=this[o(472)][i];let r=!1;s[o(471)]=e,this[o(472)][o(492)](i,1);const a=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](a,0,s),this[o(501)](t,Math[o(479)](i,a))&&(r=!0),r}[u(522)](t,e){const o=u;if(!this[o(453)])return!1;const n=this[o(472)][e];let i;return i=this[o(490)]?this[o(490)]({footnote:n,container:this[o(453)],digits:String(this[o(472)][o(475)])[o(475)],value:e+1}):String(e+1),n[o(471)][o(533)](o(465))!=i&&(t[o(500)](o(465),i,n[o(471)]),!0)}[u(502)](t){const e=u;if(!this[e(453)]||this[e(472)][e(475)]<2)return!1;if(function(t,o){const n=e;if(t[n(475)]!==o[n(475)])return!1;for(let e=0;e<t[n(475)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(472)][e(457)](t=>t.id),Array[e(485)](this[e(453)][e(537)]())[e(457)](t=>t[e(533)](e(531)))))return!1;let o=!1;for(let n=0;n<this[e(472)][e(475)];n++){const i=this[e(472)][n],s=t[e(514)](i[e(548)]),r=t[e(467)](this[e(453)],n);s[e(483)](r)||(t[e(520)](t[e(547)](i[e(548)]),r),o=!0)}return o}[u(452)](t){const e=u;if(!this[e(472)][e(475)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(472)][e(475)]-1;i++){const s=this[e(472)][i],r=this[e(472)][i+1],a=o[e(514)](s[e(471)]),c=o[e(514)](r[e(471)]);e(511)===a[e(510)](c)&&(this[e(538)](t,s[e(471)]),i=-1,n=!0)}return n}}function d(){const t=["_updateFootnoteRefCounter","35QDXruL","parent","high","getChanges","add","_handleFootnoteReferencesChanges","footnotesDefinitions","findIndex","footnoteId","end","getAttribute","low","$graveyard","before","getChildren","_handleMovedFootnoteReference","push","has","listenTo","paragraph","isPremiumPlugin","differ","model","4896810BuTONK","createRangeOn","definition","reset","256612VqErwu","singleton","childCount","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","getRootNames","8LfViiX","registerPostFixer","map","set","_handleFootnotesDefinitionsObjectChanges","43116516rAtLZr","setFootnoteFormatter","_handleInsertedFootnoteReference","_footnoteRefsTracker","FootnotesTracker","footnoteCounter","init","createPositionAt","get","remove","filter","reference","_footnotes","getFootnote","config","length","_footnoteDefsTracker","insert","isOfficialPlugin","min","pluginName","some","_handleRemoveFootnoteReferenceById","isEqual","indexOf","from","find","createRangeIn","_handleFootnotesDefinitionsObjectSync","668235gwddYT","_footnoteFormatter","createElement","splice","append","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","setAttribute","_updateFootnotesCounters","_sortFootnoteDefinitions","editor","root","unshift","getFootnotes","document","enqueueChange","footnoteInlineContent","compareWith","after","getFootnotesFormatter","footnoteRef","createPositionBefore","8402024LGILhX","869394brJBKN","footnotes.multiBlock","663633TcTRYd","_footnoteDefsContainerTracker","move","change:data"];return(d=function(){return t})()}function h(t,e){const o=d();return(h=function(t,e){return o[t-=452]})(t,e)}function p(t,e,o){const n=u;if(o[n(552)])return!1;const i=n(e?542:509);return t[n(477)](t[n(491)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(475)])return 0;const i=t[n(514)](o);for(let o=0;o<e[n(475)];o++){const s=e[o],r=t[n(514)](s[n(471)]);if(n(536)===i[n(510)](r))return o}const s=o[n(504)];let r=-1;for(let t=e[n(475)]-1;t>=0;t--)if(e[t][n(471)][n(504)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(507)][n(454)](),c=a[n(484)](s[n(497)]),l=a[c+1];if(l)for(let t=0;t<e[n(475)];t++)if(e[t][n(471)][n(504)][n(497)]===l)return t;return e[n(475)]}const g=y;function w(){const t=["get","length","1097459RtaPqv","execute","isBlock","getItems","_moveSelectionToFootnoteDefinition","916428GSnaOg","5257350phPlGV","4761774TgddVo","footnoteRef","refresh","document","createElement","_getPositionToInsertFootnote","selection","change","isEnabled","2367236FRkhcP","FootnotesEditing","editor","checkChild","49PmXAxl","test","model","plugins","3XFVZrh","footnoteId","1158284nQHLoA","insert-footnote-command-executed-with-invalid-id","getFirstRange","isObject","string","insertObject","9461160OjumyN","end"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=225]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(609243===-parseInt(e(234))/1+parseInt(e(260))/2*(-parseInt(e(258))/3)+parseInt(e(250))/4+parseInt(e(240))/5+-parseInt(e(239))/6*(parseInt(e(254))/7)+parseInt(e(230))/8+parseInt(e(241))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(243)](){const t=g,e=this[t(252)][t(256)][t(244)][t(247)],o=this[t(246)](e);this[t(249)]=!!o}[g(235)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(244)],r=this[e(246)](s);if(!r)return;const a=o[e(257)][e(232)](e(251)),c=t?.[e(259)]??(0,i.uid)();!function(t){const o=e;return o(228)==typeof t&&t[o(233)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(225)):(n[e(248)](t=>{const o=e,i=t[o(245)](o(242),{footnoteId:c});n[o(229)](i,r,null)}),a[e(238)](c))}[g(246)](t){const e=g,{model:o}=this[e(252)],{schema:n}=o,i=t[e(226)]();for(const t of i[e(237)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(231)];return n[e(253)](s,e(242))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1761350400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),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","sup")||!i.hasClass("footnote"))&&s.getSelectedElement()===i},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e,n=o.getChild(0).getAttribute("href");this._moveSelectionToFootnoteDefinition(n.slice(1)),t.stop(),e.preventDefault()},{priority:"high",context:t=>t.is("element","sup")&&t.hasClass("footnote")&&o}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e;if(!o.is("element","a"))return;let n=o.getAttribute("href");if(!n?.startsWith("#"))return;n=n.slice(1);let i=!1;(n.startsWith("ref-")&&this._moveSelectionToFootnoteReference(n.slice(4))||this._moveSelectionToFootnoteDefinition(n))&&(i=!0),i&&(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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function _(){const t=["insert","pluginName","parse","getFootnotesDefinitionsObjectElement","data","29205539pitjsi","_insertEmptyFootnotesDefinitionsContainer","toModel","toData","createRangeIn","requires","47838BoNFWK","dataTransfer","getFirstRange","drop","sourceEditorId","element","create","footnoteDefinition","2884021Wjxbgy","2327144amMNCR","append","getFootnotes","_handlePasteFootnotesDefinitions","toView","add","end","method","find","1tnizwg","get","document","422892okTCOx","editing","footnoteId","isOfficialPlugin","8KDxfNc","footnotesDefinitions","getData","application/ckeditor5-footnotes","70oFrLiM","setAttribute","createElement","getAttribute","_defineClipboardIntegration","clipboardInput","isPremiumPlugin","reduce","getFootnote","listenTo","1456695FxdILa","root","stringify","init","_handleCopyFootnotesDefinitions","from","definition","content","htmlProcessor","footnoteRef","setData","change","290zLrAaq","push","359004KJMEHZ","editor","outputTransformation","contentInsertion","FootnotesClipboard","entries","remove","length","selection"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=342]})(t,e)}const A=D;!function(t){const e=D,o=t();for(;;)try{if(634314===-parseInt(e(378))/1*(parseInt(e(369))/2)+parseInt(e(413))/3+parseInt(e(381))/4+parseInt(e(411))/5*(parseInt(e(360))/6)+-parseInt(e(368))/7*(parseInt(e(385))/8)+parseInt(e(399))/9*(-parseInt(e(389))/10)+parseInt(e(354))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[A(350)](){return A(344)}static get[A(359)](){return[v,S.ClipboardPipeline]}static get[A(384)](){return!0}static get[A(395)](){return!0}[A(402)](){this[A(393)]()}[A(393)](){const t=A;this[t(403)](),this[t(372)]()}[A(403)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(379)](S.ClipboardPipeline),s=o[t(379)](f);this[t(398)](i,t(342),(o,i)=>{const r=t,a=function(t,e){const o=D,n=new Set;for(const{item:i}of t[o(358)](e))i.is(o(365),o(408))&&n[o(374)](i[o(392)](o(383)));return Array[o(404)](n)}(n,i[r(406)]);if(!a[r(347)])return;const c=s[r(371)](),l=a[r(396)]((t,o)=>{const n=r,i=c[n(377)](t=>t.id===o);if(i){const o=e[n(353)][n(373)](i[n(405)],{isClipboardPipeline:!0}),s=e[n(353)][n(407)][n(357)](o);t[i.id]=s}return t},Object[r(366)](null));i[r(361)][r(409)](r(388),JSON[r(401)](l))})}[A(372)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(382)],r=n[t(379)](S.ClipboardPipeline),a=n[t(379)](f);let c=null;this[t(398)](s[t(380)],t(394),(e,o)=>{const n=t,i=o[n(361)][n(387)](n(388));c=i?JSON[n(351)](i):null}),this[t(398)](r,t(343),(n,s)=>{const r=t;if(!c)return;const l=s[r(364)]===this[r(414)].id;l&&r(363)===s[r(376)]||o[r(410)](t=>{const n=r;!function(t,e){const o=D,n=[];for(const{item:i}of t[o(358)](e))i.is(o(365),o(386))&&n[o(412)](i);for(const e of n)t[o(346)](e)}(t,s[n(406)]);let u=a[n(352)]();if(!u){const e=o[n(380)][n(348)][n(362)]()[n(400)];u=a[n(355)](t,e)}const f=function(t,e,o){const s=n,r=Object[s(366)](null);for(const{item:n}of t[s(358)](e))if(n.is(s(365),s(408))){const e=n[s(392)](s(383));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(390)](s(383),r[e],n)}return r}(t,s[n(406)],t=>!l||null!==a[n(397)](t));for(const[o,i]of Object[n(345)](c)){const s=f[o]||o,r=t[n(391)](n(367),{footnoteId:s}),a=e[n(353)][n(407)][n(373)](i),c=e[n(353)][n(356)](a,r);t[n(370)](c,r),t[n(349)](r,u,n(375))}c=null})})}}var T=o(311),V=o(355),O=o(450),N=o.n(O),R=o(774),K=o.n(R),M=o(265),j=o.n(M),B=o(410),z=o.n(B),W=o(238),q=o.n(W),H=o(14),U={attributes:{"data-cke":!0}};U.setAttributes=z(),U.insert=j().bind(null,"head"),U.domAPI=K(),U.insertStyleElement=q();N()(H.A,U);H.A&&H.A.locals&&H.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",G(t,T.ButtonView)),e.add("menuBar:insertFootnote",G(t,T.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 G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof T.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=J();return(Q=function(t,e){return o[t-=347]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(355746===-parseInt(e(360))/1+-parseInt(e(347))/2*(parseInt(e(358))/3)+parseInt(e(348))/4*(-parseInt(e(349))/5)+parseInt(e(353))/6+-parseInt(e(357))/7+-parseInt(e(354))/8+parseInt(e(350))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class $ extends t.Plugin{static get[Y(356)](){return Y(359)}static get[Y(355)](){return[v,L,X]}static get[Y(352)](){return!0}static get[Y(351)](){return!0}}function J(){var t=["4tGcFpd","2814390QVkIYj","22996035AmhBut","isPremiumPlugin","isOfficialPlugin","423306kAusXJ","2579704IEufpj","requires","pluginName","3621443VSMUph","6gJfrAm","Footnotes","300106zAskQU","567124HAGenM"];return(J=function(){return t})()}function Z(){const t=["lower-roman","4782022kqgpiH","9199992CxjPxh","lower-latin","decimal-leading-zero","6254692HRccHh","202716mCkZvn","decimal","lower-alpha","3579000kYyoyx","2wTolsw","upper-roman","392902qfohOo","upper-latin","11193952CutpCz","upper-alpha"];return(Z=function(){return t})()}const tt=et;function et(t,e){const o=Z();return(et=function(t,e){return o[t-=306]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(936457===-parseInt(e(315))/1+parseInt(e(313))/2*(-parseInt(e(309))/3)+parseInt(e(308))/4+-parseInt(e(312))/5+-parseInt(e(321))/6+parseInt(e(320))/7+parseInt(e(317))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);const ot=[tt(310),tt(307),tt(306),tt(316),tt(311),tt(318),tt(319),tt(314)];function nt(){const t=["includes","getAttribute","4582370GpFWRN","refresh","isEnabled","3eXpmFY","_updateFootnotesCounters","value","1515150mhYIzU","plugins","1270352gyUwQc","35055180VTfbEP","change","7MSwbHB","model","493366sXuwFc","footnotesListStyle","execute","get","getFootnotesDefinitionsObjectElement","6200616lhEOOw","setAttribute","14208432xZiaFR"];return(nt=function(){return t})()}function it(t,e){const o=nt();return(it=function(t,e){return o[t-=449]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(928532===parseInt(e(457))/1+-parseInt(e(462))/2*(parseInt(e(452))/3)+-parseInt(e(467))/4+-parseInt(e(449))/5+parseInt(e(455))/6+-parseInt(e(460))/7*(parseInt(e(469))/8)+parseInt(e(458))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);class rt extends t.Command{[st(450)](){const t=st,{editor:e}=this,o=e[t(456)][t(465)](f)[t(466)]();this[t(451)]=!!o,this[t(454)]=o?.[t(471)](t(463))??null}[st(464)]({value:t}){const e=st,{editor:o}=this,n=o[e(456)][e(465)](f),i=n[e(466)]();i&&ot[e(470)](t)&&o[e(461)][e(459)](o=>{const s=e;o[s(468)](s(463),t,i),n[s(453)](o)})}}const at=ct;function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=459]})(t,e)}!function(t){const e=ct,o=t();for(;;)try{if(971353===parseInt(e(466))/1*(parseInt(e(476))/2)+-parseInt(e(481))/3*(-parseInt(e(483))/4)+parseInt(e(479))/5+parseInt(e(470))/6+parseInt(e(463))/7*(parseInt(e(461))/8)+parseInt(e(459))/9*(-parseInt(e(465))/10)+-parseInt(e(462))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class lt extends t.Command{[at(469)](){const t=at,{editor:e}=this,o=e[t(467)][t(460)](f)[t(473)]();this[t(468)]=!!o,this[t(475)]=o?.[t(471)](t(477))??null}[at(478)]({value:t}){const e=at,{editor:o}=this,n=o[e(467)][e(460)](f),i=n[e(473)]();i&&Number[e(482)](t)&&o[e(474)][e(480)](o=>{const s=e;o[s(464)](s(477),t,i),n[s(472)](o)})}}function ut(){const t=["10924422LnTavK","getAttribute","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","model","value","158yTfDOp","footnotesListStart","execute","5051620pkamkV","change","3oxXFzE","isInteger","1878944geywqn","109593rlBqgY","get","3890448tQUWcE","39134293QebjwF","7udltav","setAttribute","50CuTkPm","10162pPTMnp","plugins","isEnabled","refresh"];return(ut=function(){return t})()}const ft=ht;function dt(){const t=["from","footnotes-list","createRangeOn","4954833xbIhsM","footnotesListStyle","toUpperCase","parent","position","list-style-type","start","getAttribute","upcast","upper-alpha","registerPostFixer","item","footnotesListStart","toViewElement","differ","define","1617729VENLcl","decimal","pluginName","editor","padStart","getStyle","find","type","_definePostfixer","attribute:footnotesListStyle:footnotesDefinitions","2547153BmCOjF","mapper","setStyle","footnotesStart","5KqPGzG","config","name","_getDefaultListStyle","setFootnoteFormatter","getChildren","isNaN","fromCharCode","lower-latin","nodeAfter","element","requires","lower-alpha","FootnotesPropertiesEditing","get","modelCursor","consumable","max","isPremiumPlugin","schema","init","commands","viewItem","hasClass","attribute:footnotesListStart:footnotesDefinitions","6261200mvYOhb","removeAttribute","footnotesDefinitions","413082AqONyN","consume","parseInt","removeStyle","downcast","floor","checkAttribute","extend","_defineConverters","152782ZgKheJ","$text","plugins","isOfficialPlugin","getItems","decimal-leading-zero","for","setAttribute","footnotesStyle","_updateFootnotesCounters","25710058czEFlp","insert","24WIBezK","upper-roman","_defineFormatter","element:ol","add","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","lower-roman","model","_getDefaultStartIndex","13lxzTYc","footnotes.footnotesProperties.defaultListStyle","document","_formatFootnoteListValue","upper-latin","10BDPrRe","toLowerCase","getChanges","_defineSchema","writer"];return(dt=function(){return t})()}function ht(t,e){const o=dt();return(ht=function(t,e){return o[t-=219]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(790391===-parseInt(e(313))/1*(parseInt(e(291))/2)+parseInt(e(240))/3+-parseInt(e(279))/4+parseInt(e(254))/5*(-parseInt(e(282))/6)+-parseInt(e(250))/7*(-parseInt(e(303))/8)+-parseInt(e(224))/9+parseInt(e(318))/10*(parseInt(e(301))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class pt extends t.Plugin{static get[ft(242)](){return ft(267)}static get[ft(265)](){return[v,f]}static get[ft(294)](){return!0}static get[ft(272)](){return!0}[ft(274)](){const t=ft,{editor:e}=this;e[t(255)][t(239)](t(314),t(241)),e[t(255)][t(239)](t(308),1),e[t(275)][t(307)](t(299),new rt(e)),e[t(275)][t(307)](t(253),new lt(e)),this[t(219)](),this[t(290)](),this[t(305)](),this[t(248)]()}[ft(219)](){const t=ft,{editor:e}=this,{schema:o}=e[t(311)];o[t(289)](t(281),{allowAttributes:[t(225),t(236)]})}[ft(290)](){const t=ft,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(297)](t(232))[t(307)](e=>{const o=t;e.on(o(306),(t,e,n)=>{const s=o,r=e[s(276)],a=e[s(269)]?.[s(227)];r[s(277)](s(222))&&a?.is(s(264),s(281))&&(function(t,e,o,n){const i=s;if(!n[i(288)](e,i(236)))return;let r=1;const a=o[i(270)][i(283)](t,{attributes:i(230)});if(a){const e=Number[i(284)](t[i(231)](i(230)),10);Number[i(260)](e)||(r=e)}!a&&e[i(309)](i(236))||o[i(220)][i(298)](i(236),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(288)](e,i(225)))return;let r=i(241),a=!1;if(o[i(270)][i(283)](t,{attributes:i(247)})){const e={1:i(241),a:i(266),A:i(233),i:i(310),I:i(304)}[t[i(231)](i(247))];e&&(r=e),a=!0}o[i(270)][i(283)](t,{styles:i(229)})&&(r=t[i(245)](i(229)),a=!0),!a&&e[i(309)](i(225))||o[i(220)][i(298)](i(225),r,e)}(r,a,n,i))})}),o[t(297)](t(286))[t(307)](e=>{const o=t;e.on(o(278),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;null==r||1===r?n[i(220)][i(280)](i(230),s):n[i(220)][i(298)](i(230),String(r),s)}),e.on(o(249),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;r&&i(241)!==r?n[i(220)][i(252)](i(229),r,s):n[i(220)][i(285)](i(229),s)})})}[ft(248)](){const t=ft,{editor:e}=this,{model:o}=e,n=e[t(293)][t(268)](f),i=this[t(257)](),s=this[t(312)]();o[t(315)][t(234)](e=>{const r=t,a=o[r(315)][r(238)][r(320)]();let c=!1;for(const t of a){if(r(302)!==t[r(247)]||r(292)===t[r(256)])continue;const n=o[r(223)](t[r(228)][r(263)]);for(const t of n[r(295)]())t.is(r(264),r(281))&&(!t[r(309)](r(236))&&o[r(273)][r(288)](t,r(236))&&(e[r(298)](r(236),s,t),c=!0),!t[r(309)](r(225))&&o[r(273)][r(288)](t,r(225))&&(e[r(298)](r(225),i,t),c=!0))}return c&&n[r(300)](e),c})}[ft(305)](){const t=ft,{editor:e}=this;e[t(293)][t(268)](f)[t(258)](e=>this[t(316)](e))}[ft(257)](){const t=ft;return this[t(243)][t(255)][t(268)](t(314))}[ft(312)](){const t=ft;return this[t(243)][t(255)][t(268)](t(308))}[ft(316)]({container:t,value:e,digits:o}){const n=ft,i=t[n(231)](n(225)),s=t[n(231)](n(236)),r=Math[n(287)](e)+(s??1)-1;switch(i){case n(296):return function(t,e){const o=n;return String(t)[o(244)](e,"0")}(r,Math[n(271)](2,o));case n(266):case n(262):return gt(r,!1);case n(233):case n(317):return gt(r,!0);case n(310):return yt(r,!1);case n(304):return yt(r,!0);default:return String(r)}}}function mt(t,e){const o=ft,n=e[o(237)](t);return Array[o(221)](n[o(259)]())[o(246)](t=>t.is(o(264),"ol")&&t[o(277)](o(222)))}function gt(t,e){const o=ft;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(261)](97+t)+n,i=Math[o(287)]((i-1)/26)}return e?n[o(226)]():n}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=ft;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(319)]()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new T.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,T.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 T.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 T.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 T.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 T.LabeledFieldView(this.locale,T.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,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("Footnotes start index must be greater than 0.")}),e}}var vt=o(945),It={attributes:{"data-cke":!0}};It.setAttributes=z(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=q();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.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,T.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 T.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 bt(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}=T.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 Ct=Ft;function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=286]})(t,e)}!function(t){for(var e=Ft,o=t();;)try{if(608564===parseInt(e(290))/1+-parseInt(e(293))/2*(-parseInt(e(297))/3)+parseInt(e(294))/4*(parseInt(e(302))/5)+-parseInt(e(288))/6*(parseInt(e(299))/7)+-parseInt(e(287))/8*(parseInt(e(289))/9)+parseInt(e(291))/10*(-parseInt(e(292))/11)+parseInt(e(300))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class xt extends t.Plugin{static get[Ct(296)](){return Ct(286)}static get[Ct(301)](){return[pt,kt]}static get[Ct(295)](){return!0}static get[Ct(298)](){return!0}}function Et(){var t=["10uDmKVv","FootnotesProperties","2408oFyKwD","266568QVFOqW","27414SSRQHC","1093176JeuDsj","3530CEBBrC","440srjyfK","2ZVFvxG","517744DzoauY","isOfficialPlugin","pluginName","993723KxMVlU","isPremiumPlugin","35FCWCaP","940572VWrDnM","requires"];return(Et=function(){return t})()}function Pt(){var t=["6720826xMocfs","1868022arfLHj","1Aqxhdx","916ytpWSR","10NIFbFX","1525134qQRWOD","11HdDbNP","2931JvzDtA","7827112UmLBCc","37172810wRswSO","1492230fcPZVs"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=353]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(534972===parseInt(e(358))/1*(-parseInt(e(361))/2)+parseInt(e(363))/3*(parseInt(e(359))/4)+parseInt(e(360))/5*(-parseInt(e(355))/6)+-parseInt(e(356))/7+-parseInt(e(353))/8+-parseInt(e(357))/9+-parseInt(e(354))/10*(-parseInt(e(362))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
4
|
+
*/(()=>{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-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.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 .footnote>a{pointer-events:none}.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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},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],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},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:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>lt,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>f,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["slice","position","$text","createRangeOn","4KeNqeS","1644237bGbxvX","136835dzzCTf","76770ISARHK","delete","_elementName","has","set","add","_trackedElements","86VNvBzn","$graveyard","rootName","from","flat","_model","elementName","values","root","837910rzOMfB","16FYIrDV","push","_getElementKey","nodeAfter","638890ZYqqxo","remove","getElementKey","insert","clear","127005hQrMxF","length","get","name","element","reset","8973omYMSw","getItems","attributes","type","getChanges"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=499]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(131818===parseInt(e(534))/1+parseInt(e(515))/2*(parseInt(e(540))/3)+parseInt(e(505))/4*(-parseInt(e(507))/5)+-parseInt(e(508))/6+-parseInt(e(529))/7*(parseInt(e(525))/8)+parseInt(e(506))/9+-parseInt(e(524))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(520)];[c(510)];[c(527)];[c(514)]=new Map;constructor(t,e){const o=c;this[o(520)]=t,this[o(510)]=e[o(521)],this[o(527)]=e[o(531)]}[c(539)](){const t=c;this[t(514)][t(533)]()}[c(500)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(532)===i[e(499)]&&e(503)!==i[e(537)]&&i[e(502)][e(528)]){const t=this[e(520)][e(504)](i[e(502)][e(528)]);for(const o of t[e(541)]()){if(!o.is(e(538),this[e(510)]))continue;const t=this[e(527)](o);n[e(511)](t)||n[e(512)](t,[]),n[e(536)](t)[e(526)](o)}}if(e(530)===i[e(499)]&&i[e(537)]===this[e(510)]){const t=this[e(527)]({getAttribute:t=>i[e(542)][e(536)](t)});o[e(513)](t)}}for(const[t,n]of this[e(514)])e(516)===n[e(523)][e(517)]&&o[e(513)](t);for(const t of o)this[e(514)][e(509)](t);for(const[t,o]of n)this[e(514)][e(512)](t,o[o[e(535)]-1]);const i=new Set;for(const[t,s]of n)o[e(511)](t)&&(i[e(513)](s[0]),s[e(535)]>1?n[e(512)](t,s[e(501)](1)):n[e(509)](t),o[e(509)](t));return{removed:Array[e(518)](o),inserted:Array[e(518)](n[e(522)]())[e(519)](),moved:Array[e(518)](i)}}}const u=h;!function(t){const e=h,o=t();for(;;)try{if(547688===-parseInt(e(489))/1+-parseInt(e(455))/2*(parseInt(e(518))/3)+parseInt(e(550))/4+-parseInt(e(546))/5+-parseInt(e(516))/6*(parseInt(e(523))/7)+-parseInt(e(515))/8+parseInt(e(460))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class f extends t.Plugin{[u(472)]=[];[u(453)]=null;[u(490)]=null;[u(519)];[u(463)];[u(476)];static get[u(480)](){return u(464)}static get[u(478)](){return!0}static get[u(543)](){return!0}constructor(t){const e=u;super(t),this[e(519)]=new l(this[e(503)][e(545)],{elementName:e(529),getElementKey:()=>e(551)}),this[e(463)]=new l(this[e(503)][e(545)],{elementName:e(513),getElementKey:t=>t[e(533)](e(531))}),this[e(476)]=new l(this[e(503)][e(545)],{elementName:e(496),getElementKey:t=>t[e(533)](e(531))})}[u(466)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(507)][t(456)](e=>{const n=t,i=o[n(507)][n(544)][n(526)]();let s=!1;return this[n(459)](e,i)&&(s=!0),this[n(499)](e,i)&&(s=!0),this[n(528)](e,i)&&(s=!0),this[n(452)](e)&&(s=!0),this[n(488)](e)&&(s=!0),this[n(502)](e)&&(s=!0),s}),this[t(541)](o[t(507)],t(521),()=>{const e=t;o[e(508)]({isUndoable:!1},t=>{this[e(498)](t)})},{priority:t(534)}),this[t(541)](n,t(458),()=>{const e=t;this[e(472)]=[],this[e(519)][e(549)](),this[e(463)][e(549)](),this[e(476)][e(549)]()},{priority:t(525)})}[u(494)](){return this[u(453)]}[u(473)](t){const e=u;return this[e(472)][e(486)](e=>e.id===t)||null}[u(506)](){const t=u;return Array[t(485)](this[t(472)])}[u(512)](){return this[u(490)]}[u(461)](t){this[u(490)]=t}[u(501)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(472)][o(475)];i++)this[o(522)](t,i)&&(n=!0);return n}[u(495)](t,e){const o=u,n=t[o(491)](o(529),{});return t[o(493)](n,e),this[o(453)]=n,n}[u(498)](t){const e=u;if(!this[e(472)][e(475)]||this[e(453)])return;const o=this[e(472)][0][e(471)][e(504)],n=this[e(495)](t,o);for(const o of this[e(472)])o[e(548)][e(524)]||t[e(477)](o[e(548)],n,e(532));this[e(501)](t)}[u(459)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(519)][o(526)](e);if(r[o(475)]&&(this[o(453)]=r[0]),i[o(475)])if(i[o(475)]>1||this[o(453)]&&i[o(481)](t=>t!==this[o(453)])){const e=t[o(491)](o(529),{}),s=[];this[o(453)]&&s[o(539)](this[o(453)]),s[o(539)](...i),t[o(477)](e,s[0],o(536));for(const n of s)t[o(520)](t[o(487)](n),t[o(467)](e,o(532))),t[o(469)](n);this[o(453)]=e,this[o(501)](t),n=!0}else this[o(453)]=i[0];if(s[o(475)]&&o(535)===this[o(453)]?.[o(504)][o(497)]){for(const e of this[o(472)])t[o(469)](e[o(471)]),n=!0;this[o(472)]=[],this[o(453)]=null}return n}[u(499)](t,e){const o=u;let n=!1;const i=this[o(503)][o(474)][o(468)](o(517)),{inserted:s,moved:r}=this[o(476)][o(526)](e);for(const e of[...r,...s]){const s=e[o(533)](o(531)),r=this[o(473)](s);r&&(r[o(548)]=e),p(t,i,e)&&(n=!0)}return n}[u(528)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(463)][o(526)](e);for(const e of i)this[o(482)](t,e)&&(n=!0);for(const e of s)this[o(462)](t,e)&&(n=!0);for(const e of r)this[o(538)](t,e)&&(n=!0);return n}[u(488)](t){const e=u;if(!this[e(453)])return!1;let o=!1;if(this[e(453)][e(552)]!==this[e(472)][e(475)]){const n=[];for(const t of this[e(453)][e(537)]()){const i=t[e(533)](e(531));this[e(473)](i)||(n[e(505)](t),o=!0)}for(const o of n)t[e(469)](o)}const n=new Set,i=[];for(const t of this[e(453)][e(537)]()){const s=t[e(533)](e(531));n[e(540)](s)?(i[e(505)](t),o=!0):n[e(527)](s)}for(const o of i)t[e(469)](o);return this[e(453)][e(552)]||(t[e(469)](this[e(453)]),this[e(453)]=null,o=!0),o}[u(462)](t,e){const o=u;if(this[o(472)][o(486)](t=>t[o(471)]===e))return!1;let n=!1;const i=e[o(533)](o(531)),s=this[o(473)](i);s&&(t[o(469)](s[o(471)]),this[o(472)]=this[o(472)][o(470)](t=>t.id!==i),n=!0);let r=this[o(453)]?function(t,e){const n=o;for(const o of t[n(537)]())if(o[n(533)](n(531))===e)return o;return null}(this[o(453)],i):null;r||(r=t[o(491)](o(496),{footnoteId:i}),this[o(453)]&&(t[o(477)](r,this[o(453)],o(532)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](c,0,a),this[o(501)](t,c)&&(n=!0),n}[u(482)](t,e){const o=u,n=this[o(472)][o(530)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(472)][n];return o(535)!==s[o(548)][o(504)][o(497)]&&(t[o(469)](s[o(548)]),i=!0),this[o(472)][o(492)](n,1),this[o(501)](t,n)&&(i=!0),i}[u(538)](t,e){const o=u,n=e[o(533)](o(531)),i=this[o(472)][o(530)](t=>t.id===n),s=this[o(472)][i];let r=!1;s[o(471)]=e,this[o(472)][o(492)](i,1);const a=m(this[o(503)][o(545)],this[o(472)],e);return this[o(472)][o(492)](a,0,s),this[o(501)](t,Math[o(479)](i,a))&&(r=!0),r}[u(522)](t,e){const o=u;if(!this[o(453)])return!1;const n=this[o(472)][e];let i;return i=this[o(490)]?this[o(490)]({footnote:n,container:this[o(453)],digits:String(this[o(472)][o(475)])[o(475)],value:e+1}):String(e+1),n[o(471)][o(533)](o(465))!=i&&(t[o(500)](o(465),i,n[o(471)]),!0)}[u(502)](t){const e=u;if(!this[e(453)]||this[e(472)][e(475)]<2)return!1;if(function(t,o){const n=e;if(t[n(475)]!==o[n(475)])return!1;for(let e=0;e<t[n(475)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(472)][e(457)](t=>t.id),Array[e(485)](this[e(453)][e(537)]())[e(457)](t=>t[e(533)](e(531)))))return!1;let o=!1;for(let n=0;n<this[e(472)][e(475)];n++){const i=this[e(472)][n],s=t[e(514)](i[e(548)]),r=t[e(467)](this[e(453)],n);s[e(483)](r)||(t[e(520)](t[e(547)](i[e(548)]),r),o=!0)}return o}[u(452)](t){const e=u;if(!this[e(472)][e(475)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(472)][e(475)]-1;i++){const s=this[e(472)][i],r=this[e(472)][i+1],a=o[e(514)](s[e(471)]),c=o[e(514)](r[e(471)]);e(511)===a[e(510)](c)&&(this[e(538)](t,s[e(471)]),i=-1,n=!0)}return n}}function d(){const t=["_updateFootnoteRefCounter","35QDXruL","parent","high","getChanges","add","_handleFootnoteReferencesChanges","footnotesDefinitions","findIndex","footnoteId","end","getAttribute","low","$graveyard","before","getChildren","_handleMovedFootnoteReference","push","has","listenTo","paragraph","isPremiumPlugin","differ","model","4896810BuTONK","createRangeOn","definition","reset","256612VqErwu","singleton","childCount","_ensureFootnotesReferencesHaveProperOrder","_footnotesDefinitions","getRootNames","8LfViiX","registerPostFixer","map","set","_handleFootnotesDefinitionsObjectChanges","43116516rAtLZr","setFootnoteFormatter","_handleInsertedFootnoteReference","_footnoteRefsTracker","FootnotesTracker","footnoteCounter","init","createPositionAt","get","remove","filter","reference","_footnotes","getFootnote","config","length","_footnoteDefsTracker","insert","isOfficialPlugin","min","pluginName","some","_handleRemoveFootnoteReferenceById","isEqual","indexOf","from","find","createRangeIn","_handleFootnotesDefinitionsObjectSync","668235gwddYT","_footnoteFormatter","createElement","splice","append","getFootnotesDefinitionsObjectElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","_ensureFootnotesDefinitionsContainerExists","_handleFootnoteDefinitionsChanges","setAttribute","_updateFootnotesCounters","_sortFootnoteDefinitions","editor","root","unshift","getFootnotes","document","enqueueChange","footnoteInlineContent","compareWith","after","getFootnotesFormatter","footnoteRef","createPositionBefore","8402024LGILhX","869394brJBKN","footnotes.multiBlock","663633TcTRYd","_footnoteDefsContainerTracker","move","change:data"];return(d=function(){return t})()}function h(t,e){const o=d();return(h=function(t,e){return o[t-=452]})(t,e)}function p(t,e,o){const n=u;if(o[n(552)])return!1;const i=n(e?542:509);return t[n(477)](t[n(491)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(475)])return 0;const i=t[n(514)](o);for(let o=0;o<e[n(475)];o++){const s=e[o],r=t[n(514)](s[n(471)]);if(n(536)===i[n(510)](r))return o}const s=o[n(504)];let r=-1;for(let t=e[n(475)]-1;t>=0;t--)if(e[t][n(471)][n(504)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(507)][n(454)](),c=a[n(484)](s[n(497)]),l=a[c+1];if(l)for(let t=0;t<e[n(475)];t++)if(e[t][n(471)][n(504)][n(497)]===l)return t;return e[n(475)]}const g=y;function w(){const t=["get","length","1097459RtaPqv","execute","isBlock","getItems","_moveSelectionToFootnoteDefinition","916428GSnaOg","5257350phPlGV","4761774TgddVo","footnoteRef","refresh","document","createElement","_getPositionToInsertFootnote","selection","change","isEnabled","2367236FRkhcP","FootnotesEditing","editor","checkChild","49PmXAxl","test","model","plugins","3XFVZrh","footnoteId","1158284nQHLoA","insert-footnote-command-executed-with-invalid-id","getFirstRange","isObject","string","insertObject","9461160OjumyN","end"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=225]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(609243===-parseInt(e(234))/1+parseInt(e(260))/2*(-parseInt(e(258))/3)+parseInt(e(250))/4+parseInt(e(240))/5+-parseInt(e(239))/6*(parseInt(e(254))/7)+parseInt(e(230))/8+parseInt(e(241))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(243)](){const t=g,e=this[t(252)][t(256)][t(244)][t(247)],o=this[t(246)](e);this[t(249)]=!!o}[g(235)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(244)],r=this[e(246)](s);if(!r)return;const a=o[e(257)][e(232)](e(251)),c=t?.[e(259)]??(0,i.uid)();!function(t){const o=e;return o(228)==typeof t&&t[o(233)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(225)):(n[e(248)](t=>{const o=e,i=t[o(245)](o(242),{footnoteId:c});n[o(229)](i,r,null)}),a[e(238)](c))}[g(246)](t){const e=g,{model:o}=this[e(252)],{schema:n}=o,i=t[e(226)]();for(const t of i[e(237)]())if(n[e(236)](t)||n[e(227)](t))return null;const s=i[e(231)];return n[e(253)](s,e(242))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1761523200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),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","sup")||!i.hasClass("footnote"))&&s.getSelectedElement()===i},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e,n=o.getChild(0).getAttribute("href");this._moveSelectionToFootnoteDefinition(n.slice(1)),t.stop(),e.preventDefault()},{priority:"high",context:t=>t.is("element","sup")&&t.hasClass("footnote")&&o}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:o}=e;if(!o.is("element","a"))return;let n=o.getAttribute("href");if(!n?.startsWith("#"))return;n=n.slice(1);let i=!1;(n.startsWith("ref-")&&this._moveSelectionToFootnoteReference(n.slice(4))||this._moveSelectionToFootnoteDefinition(n))&&(i=!0),i&&(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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function _(){const t=["insert","pluginName","parse","getFootnotesDefinitionsObjectElement","data","29205539pitjsi","_insertEmptyFootnotesDefinitionsContainer","toModel","toData","createRangeIn","requires","47838BoNFWK","dataTransfer","getFirstRange","drop","sourceEditorId","element","create","footnoteDefinition","2884021Wjxbgy","2327144amMNCR","append","getFootnotes","_handlePasteFootnotesDefinitions","toView","add","end","method","find","1tnizwg","get","document","422892okTCOx","editing","footnoteId","isOfficialPlugin","8KDxfNc","footnotesDefinitions","getData","application/ckeditor5-footnotes","70oFrLiM","setAttribute","createElement","getAttribute","_defineClipboardIntegration","clipboardInput","isPremiumPlugin","reduce","getFootnote","listenTo","1456695FxdILa","root","stringify","init","_handleCopyFootnotesDefinitions","from","definition","content","htmlProcessor","footnoteRef","setData","change","290zLrAaq","push","359004KJMEHZ","editor","outputTransformation","contentInsertion","FootnotesClipboard","entries","remove","length","selection"];return(_=function(){return t})()}function D(t,e){const o=_();return(D=function(t,e){return o[t-=342]})(t,e)}const A=D;!function(t){const e=D,o=t();for(;;)try{if(634314===-parseInt(e(378))/1*(parseInt(e(369))/2)+parseInt(e(413))/3+parseInt(e(381))/4+parseInt(e(411))/5*(parseInt(e(360))/6)+-parseInt(e(368))/7*(parseInt(e(385))/8)+parseInt(e(399))/9*(-parseInt(e(389))/10)+parseInt(e(354))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class L extends t.Plugin{static get[A(350)](){return A(344)}static get[A(359)](){return[v,S.ClipboardPipeline]}static get[A(384)](){return!0}static get[A(395)](){return!0}[A(402)](){this[A(393)]()}[A(393)](){const t=A;this[t(403)](),this[t(372)]()}[A(403)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(379)](S.ClipboardPipeline),s=o[t(379)](f);this[t(398)](i,t(342),(o,i)=>{const r=t,a=function(t,e){const o=D,n=new Set;for(const{item:i}of t[o(358)](e))i.is(o(365),o(408))&&n[o(374)](i[o(392)](o(383)));return Array[o(404)](n)}(n,i[r(406)]);if(!a[r(347)])return;const c=s[r(371)](),l=a[r(396)]((t,o)=>{const n=r,i=c[n(377)](t=>t.id===o);if(i){const o=e[n(353)][n(373)](i[n(405)],{isClipboardPipeline:!0}),s=e[n(353)][n(407)][n(357)](o);t[i.id]=s}return t},Object[r(366)](null));i[r(361)][r(409)](r(388),JSON[r(401)](l))})}[A(372)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(382)],r=n[t(379)](S.ClipboardPipeline),a=n[t(379)](f);let c=null;this[t(398)](s[t(380)],t(394),(e,o)=>{const n=t,i=o[n(361)][n(387)](n(388));c=i?JSON[n(351)](i):null}),this[t(398)](r,t(343),(n,s)=>{const r=t;if(!c)return;const l=s[r(364)]===this[r(414)].id;l&&r(363)===s[r(376)]||o[r(410)](t=>{const n=r;!function(t,e){const o=D,n=[];for(const{item:i}of t[o(358)](e))i.is(o(365),o(386))&&n[o(412)](i);for(const e of n)t[o(346)](e)}(t,s[n(406)]);let u=a[n(352)]();if(!u){const e=o[n(380)][n(348)][n(362)]()[n(400)];u=a[n(355)](t,e)}const f=function(t,e,o){const s=n,r=Object[s(366)](null);for(const{item:n}of t[s(358)](e))if(n.is(s(365),s(408))){const e=n[s(392)](s(383));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(390)](s(383),r[e],n)}return r}(t,s[n(406)],t=>!l||null!==a[n(397)](t));for(const[o,i]of Object[n(345)](c)){const s=f[o]||o,r=t[n(391)](n(367),{footnoteId:s}),a=e[n(353)][n(407)][n(373)](i),c=e[n(353)][n(356)](a,r);t[n(370)](c,r),t[n(349)](r,u,n(375))}c=null})})}}var T=o(311),V=o(355),O=o(450),N=o.n(O),R=o(774),K=o.n(R),M=o(265),j=o.n(M),B=o(410),z=o.n(B),W=o(238),q=o.n(W),H=o(14),U={attributes:{"data-cke":!0}};U.setAttributes=z(),U.insert=j().bind(null,"head"),U.domAPI=K(),U.insertStyleElement=q();N()(H.A,U);H.A&&H.A.locals&&H.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",G(t,T.ButtonView)),e.add("menuBar:insertFootnote",G(t,T.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 G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof T.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=J();return(Q=function(t,e){return o[t-=347]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(355746===-parseInt(e(360))/1+-parseInt(e(347))/2*(parseInt(e(358))/3)+parseInt(e(348))/4*(-parseInt(e(349))/5)+parseInt(e(353))/6+-parseInt(e(357))/7+-parseInt(e(354))/8+parseInt(e(350))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class $ extends t.Plugin{static get[Y(356)](){return Y(359)}static get[Y(355)](){return[v,L,X]}static get[Y(352)](){return!0}static get[Y(351)](){return!0}}function J(){var t=["4tGcFpd","2814390QVkIYj","22996035AmhBut","isPremiumPlugin","isOfficialPlugin","423306kAusXJ","2579704IEufpj","requires","pluginName","3621443VSMUph","6gJfrAm","Footnotes","300106zAskQU","567124HAGenM"];return(J=function(){return t})()}function Z(){const t=["lower-roman","4782022kqgpiH","9199992CxjPxh","lower-latin","decimal-leading-zero","6254692HRccHh","202716mCkZvn","decimal","lower-alpha","3579000kYyoyx","2wTolsw","upper-roman","392902qfohOo","upper-latin","11193952CutpCz","upper-alpha"];return(Z=function(){return t})()}const tt=et;function et(t,e){const o=Z();return(et=function(t,e){return o[t-=306]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(936457===-parseInt(e(315))/1+parseInt(e(313))/2*(-parseInt(e(309))/3)+parseInt(e(308))/4+-parseInt(e(312))/5+-parseInt(e(321))/6+parseInt(e(320))/7+parseInt(e(317))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);const ot=[tt(310),tt(307),tt(306),tt(316),tt(311),tt(318),tt(319),tt(314)];function nt(){const t=["includes","getAttribute","4582370GpFWRN","refresh","isEnabled","3eXpmFY","_updateFootnotesCounters","value","1515150mhYIzU","plugins","1270352gyUwQc","35055180VTfbEP","change","7MSwbHB","model","493366sXuwFc","footnotesListStyle","execute","get","getFootnotesDefinitionsObjectElement","6200616lhEOOw","setAttribute","14208432xZiaFR"];return(nt=function(){return t})()}function it(t,e){const o=nt();return(it=function(t,e){return o[t-=449]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(928532===parseInt(e(457))/1+-parseInt(e(462))/2*(parseInt(e(452))/3)+-parseInt(e(467))/4+-parseInt(e(449))/5+parseInt(e(455))/6+-parseInt(e(460))/7*(parseInt(e(469))/8)+parseInt(e(458))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);class rt extends t.Command{[st(450)](){const t=st,{editor:e}=this,o=e[t(456)][t(465)](f)[t(466)]();this[t(451)]=!!o,this[t(454)]=o?.[t(471)](t(463))??null}[st(464)]({value:t}){const e=st,{editor:o}=this,n=o[e(456)][e(465)](f),i=n[e(466)]();i&&ot[e(470)](t)&&o[e(461)][e(459)](o=>{const s=e;o[s(468)](s(463),t,i),n[s(453)](o)})}}const at=ct;function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=459]})(t,e)}!function(t){const e=ct,o=t();for(;;)try{if(971353===parseInt(e(466))/1*(parseInt(e(476))/2)+-parseInt(e(481))/3*(-parseInt(e(483))/4)+parseInt(e(479))/5+parseInt(e(470))/6+parseInt(e(463))/7*(parseInt(e(461))/8)+parseInt(e(459))/9*(-parseInt(e(465))/10)+-parseInt(e(462))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class lt extends t.Command{[at(469)](){const t=at,{editor:e}=this,o=e[t(467)][t(460)](f)[t(473)]();this[t(468)]=!!o,this[t(475)]=o?.[t(471)](t(477))??null}[at(478)]({value:t}){const e=at,{editor:o}=this,n=o[e(467)][e(460)](f),i=n[e(473)]();i&&Number[e(482)](t)&&o[e(474)][e(480)](o=>{const s=e;o[s(464)](s(477),t,i),n[s(472)](o)})}}function ut(){const t=["10924422LnTavK","getAttribute","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","model","value","158yTfDOp","footnotesListStart","execute","5051620pkamkV","change","3oxXFzE","isInteger","1878944geywqn","109593rlBqgY","get","3890448tQUWcE","39134293QebjwF","7udltav","setAttribute","50CuTkPm","10162pPTMnp","plugins","isEnabled","refresh"];return(ut=function(){return t})()}const ft=ht;function dt(){const t=["from","footnotes-list","createRangeOn","4954833xbIhsM","footnotesListStyle","toUpperCase","parent","position","list-style-type","start","getAttribute","upcast","upper-alpha","registerPostFixer","item","footnotesListStart","toViewElement","differ","define","1617729VENLcl","decimal","pluginName","editor","padStart","getStyle","find","type","_definePostfixer","attribute:footnotesListStyle:footnotesDefinitions","2547153BmCOjF","mapper","setStyle","footnotesStart","5KqPGzG","config","name","_getDefaultListStyle","setFootnoteFormatter","getChildren","isNaN","fromCharCode","lower-latin","nodeAfter","element","requires","lower-alpha","FootnotesPropertiesEditing","get","modelCursor","consumable","max","isPremiumPlugin","schema","init","commands","viewItem","hasClass","attribute:footnotesListStart:footnotesDefinitions","6261200mvYOhb","removeAttribute","footnotesDefinitions","413082AqONyN","consume","parseInt","removeStyle","downcast","floor","checkAttribute","extend","_defineConverters","152782ZgKheJ","$text","plugins","isOfficialPlugin","getItems","decimal-leading-zero","for","setAttribute","footnotesStyle","_updateFootnotesCounters","25710058czEFlp","insert","24WIBezK","upper-roman","_defineFormatter","element:ol","add","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","lower-roman","model","_getDefaultStartIndex","13lxzTYc","footnotes.footnotesProperties.defaultListStyle","document","_formatFootnoteListValue","upper-latin","10BDPrRe","toLowerCase","getChanges","_defineSchema","writer"];return(dt=function(){return t})()}function ht(t,e){const o=dt();return(ht=function(t,e){return o[t-=219]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(790391===-parseInt(e(313))/1*(parseInt(e(291))/2)+parseInt(e(240))/3+-parseInt(e(279))/4+parseInt(e(254))/5*(-parseInt(e(282))/6)+-parseInt(e(250))/7*(-parseInt(e(303))/8)+-parseInt(e(224))/9+parseInt(e(318))/10*(parseInt(e(301))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class pt extends t.Plugin{static get[ft(242)](){return ft(267)}static get[ft(265)](){return[v,f]}static get[ft(294)](){return!0}static get[ft(272)](){return!0}[ft(274)](){const t=ft,{editor:e}=this;e[t(255)][t(239)](t(314),t(241)),e[t(255)][t(239)](t(308),1),e[t(275)][t(307)](t(299),new rt(e)),e[t(275)][t(307)](t(253),new lt(e)),this[t(219)](),this[t(290)](),this[t(305)](),this[t(248)]()}[ft(219)](){const t=ft,{editor:e}=this,{schema:o}=e[t(311)];o[t(289)](t(281),{allowAttributes:[t(225),t(236)]})}[ft(290)](){const t=ft,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(297)](t(232))[t(307)](e=>{const o=t;e.on(o(306),(t,e,n)=>{const s=o,r=e[s(276)],a=e[s(269)]?.[s(227)];r[s(277)](s(222))&&a?.is(s(264),s(281))&&(function(t,e,o,n){const i=s;if(!n[i(288)](e,i(236)))return;let r=1;const a=o[i(270)][i(283)](t,{attributes:i(230)});if(a){const e=Number[i(284)](t[i(231)](i(230)),10);Number[i(260)](e)||(r=e)}!a&&e[i(309)](i(236))||o[i(220)][i(298)](i(236),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(288)](e,i(225)))return;let r=i(241),a=!1;if(o[i(270)][i(283)](t,{attributes:i(247)})){const e={1:i(241),a:i(266),A:i(233),i:i(310),I:i(304)}[t[i(231)](i(247))];e&&(r=e),a=!0}o[i(270)][i(283)](t,{styles:i(229)})&&(r=t[i(245)](i(229)),a=!0),!a&&e[i(309)](i(225))||o[i(220)][i(298)](i(225),r,e)}(r,a,n,i))})}),o[t(297)](t(286))[t(307)](e=>{const o=t;e.on(o(278),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;null==r||1===r?n[i(220)][i(280)](i(230),s):n[i(220)][i(298)](i(230),String(r),s)}),e.on(o(249),(t,e,n)=>{const i=o;if(!n[i(270)][i(283)](e[i(235)],t[i(256)]))return;const s=mt(e[i(235)],n[i(251)]),{attributeNewValue:r}=e;r&&i(241)!==r?n[i(220)][i(252)](i(229),r,s):n[i(220)][i(285)](i(229),s)})})}[ft(248)](){const t=ft,{editor:e}=this,{model:o}=e,n=e[t(293)][t(268)](f),i=this[t(257)](),s=this[t(312)]();o[t(315)][t(234)](e=>{const r=t,a=o[r(315)][r(238)][r(320)]();let c=!1;for(const t of a){if(r(302)!==t[r(247)]||r(292)===t[r(256)])continue;const n=o[r(223)](t[r(228)][r(263)]);for(const t of n[r(295)]())t.is(r(264),r(281))&&(!t[r(309)](r(236))&&o[r(273)][r(288)](t,r(236))&&(e[r(298)](r(236),s,t),c=!0),!t[r(309)](r(225))&&o[r(273)][r(288)](t,r(225))&&(e[r(298)](r(225),i,t),c=!0))}return c&&n[r(300)](e),c})}[ft(305)](){const t=ft,{editor:e}=this;e[t(293)][t(268)](f)[t(258)](e=>this[t(316)](e))}[ft(257)](){const t=ft;return this[t(243)][t(255)][t(268)](t(314))}[ft(312)](){const t=ft;return this[t(243)][t(255)][t(268)](t(308))}[ft(316)]({container:t,value:e,digits:o}){const n=ft,i=t[n(231)](n(225)),s=t[n(231)](n(236)),r=Math[n(287)](e)+(s??1)-1;switch(i){case n(296):return function(t,e){const o=n;return String(t)[o(244)](e,"0")}(r,Math[n(271)](2,o));case n(266):case n(262):return gt(r,!1);case n(233):case n(317):return gt(r,!0);case n(310):return yt(r,!1);case n(304):return yt(r,!0);default:return String(r)}}}function mt(t,e){const o=ft,n=e[o(237)](t);return Array[o(221)](n[o(259)]())[o(246)](t=>t.is(o(264),"ol")&&t[o(277)](o(222)))}function gt(t,e){const o=ft;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(261)](97+t)+n,i=Math[o(287)]((i-1)/26)}return e?n[o(226)]():n}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=ft;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(319)]()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new T.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,T.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 T.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 T.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 T.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 T.LabeledFieldView(this.locale,T.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,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("Footnotes start index must be greater than 0.")}),e}}var vt=o(945),It={attributes:{"data-cke":!0}};It.setAttributes=z(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=q();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.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,T.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 T.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 bt(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}=T.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 Ct=Ft;function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=286]})(t,e)}!function(t){for(var e=Ft,o=t();;)try{if(608564===parseInt(e(290))/1+-parseInt(e(293))/2*(-parseInt(e(297))/3)+parseInt(e(294))/4*(parseInt(e(302))/5)+-parseInt(e(288))/6*(parseInt(e(299))/7)+-parseInt(e(287))/8*(parseInt(e(289))/9)+parseInt(e(291))/10*(-parseInt(e(292))/11)+parseInt(e(300))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class xt extends t.Plugin{static get[Ct(296)](){return Ct(286)}static get[Ct(301)](){return[pt,kt]}static get[Ct(295)](){return!0}static get[Ct(298)](){return!0}}function Et(){var t=["10uDmKVv","FootnotesProperties","2408oFyKwD","266568QVFOqW","27414SSRQHC","1093176JeuDsj","3530CEBBrC","440srjyfK","2ZVFvxG","517744DzoauY","isOfficialPlugin","pluginName","993723KxMVlU","isPremiumPlugin","35FCWCaP","940572VWrDnM","requires"];return(Et=function(){return t})()}function Pt(){var t=["6720826xMocfs","1868022arfLHj","1Aqxhdx","916ytpWSR","10NIFbFX","1525134qQRWOD","11HdDbNP","2931JvzDtA","7827112UmLBCc","37172810wRswSO","1492230fcPZVs"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=353]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(534972===parseInt(e(358))/1*(-parseInt(e(361))/2)+parseInt(e(363))/3*(parseInt(e(359))/4)+parseInt(e(360))/5*(-parseInt(e(355))/6)+-parseInt(e(356))/7+-parseInt(e(353))/8+-parseInt(e(357))/9+-parseInt(e(354))/10*(-parseInt(e(362))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x159ee2,Command as _0xdfca9b}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3e60ed,isWidget as _0x59857d,toWidgetEditable as _0x2837be,WidgetToolbarRepository as _0x5056f8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x3d9da6,logWarning as _0x5a8c29,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5eccae,ClickObserver as _0x117457}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xe7051a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x36cf87,ButtonView as _0x1e890f,View as _0x4ac842,ViewCollection as _0x43f46e,FocusCycler as _0x1bea9e,addKeyboardHandlingForGrid as _0x534e1f,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x55aa71,BalloonPanelView as _0x4f6eb3,createDropdown as _0x29e202}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xa6776d,IconListStyleDecimal as _0x420b8a,IconListStyleDecimalLeadingZero as _0x46a556,IconListStyleLowerRoman as _0x2f1382,IconListStyleUpperRoman as _0x435546,IconListStyleLowerLatin as _0x2237d3,IconListStyleUpperLatin as _0x5c1e20}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4484cc,_0x3c0222){this['_model']=_0x4484cc,this['_elementName']=_0x3c0222['elementName'],this['_getElementKey']=_0x3c0222['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x278b38){const _0x49fc8f=new Set(),_0x2338e0=new Map();for(const _0x43e8c8 of _0x278b38){if('insert'===_0x43e8c8['type']&&'$text'!==_0x43e8c8['name']&&_0x43e8c8['position']['nodeAfter']){const _0x1d1808=this['_model']['createRangeOn'](_0x43e8c8['position']['nodeAfter']);for(const _0x135b4a of _0x1d1808['getItems']()){if(!_0x135b4a['is']('element',this['_elementName']))continue;const _0x1471fc=this['_getElementKey'](_0x135b4a);_0x2338e0['has'](_0x1471fc)||_0x2338e0['set'](_0x1471fc,[]),_0x2338e0['get'](_0x1471fc)['push'](_0x135b4a);}}if('remove'===_0x43e8c8['type']&&_0x43e8c8['name']===this['_elementName']){const _0x538645=this['_getElementKey']({'getAttribute':_0x4dbdb3=>_0x43e8c8['attributes']['get'](_0x4dbdb3)});_0x49fc8f['add'](_0x538645);}}for(const [_0x48281f,_0x9517b7]of this['_trackedElements'])'$graveyard'===_0x9517b7['root']['rootName']&&_0x49fc8f['add'](_0x48281f);for(const _0x4cfac1 of _0x49fc8f)this['_trackedElements']['delete'](_0x4cfac1);for(const [_0x1325d7,_0x3b0b58]of _0x2338e0)this['_trackedElements']['set'](_0x1325d7,_0x3b0b58[_0x3b0b58['length']-0x1]);const _0x472689=new Set();for(const [_0x5b7541,_0x38377e]of _0x2338e0)_0x49fc8f['has'](_0x5b7541)&&(_0x472689['add'](_0x38377e[0x0]),_0x38377e['length']>0x1?_0x2338e0['set'](_0x5b7541,_0x38377e['slice'](0x1)):_0x2338e0['delete'](_0x5b7541),_0x49fc8f['delete'](_0x5b7541));return{'removed':Array['from'](_0x49fc8f),'inserted':Array['from'](_0x2338e0['values']())['flat'](),'moved':Array['from'](_0x472689)};}}class c extends _0x159ee2{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfa2bb9){super(_0xfa2bb9),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x20cd76=>_0x20cd76['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x441559=>_0x441559['getAttribute']('footnoteId')});}['init'](){const {editor:_0x36be0d}=this,{model:_0xef7068,data:_0x26ec78}=_0x36be0d;_0xef7068['document']['registerPostFixer'](_0x1e0448=>{const _0x544f52=_0xef7068['document']['differ']['getChanges']();let _0x3449af=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x1e0448,_0x544f52)&&(_0x3449af=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x1e0448,_0x544f52)&&(_0x3449af=!0x0),this['_handleFootnoteReferencesChanges'](_0x1e0448,_0x544f52)&&(_0x3449af=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x1e0448)&&(_0x3449af=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x1e0448)&&(_0x3449af=!0x0),this['_sortFootnoteDefinitions'](_0x1e0448)&&(_0x3449af=!0x0),_0x3449af;}),this['listenTo'](_0xef7068['document'],'change:data',()=>{_0xef7068['enqueueChange']({'isUndoable':!0x1},_0x12873e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x12873e);});},{'priority':'low'}),this['listenTo'](_0x26ec78,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x27cbde){return this['_footnotes']['find'](_0xeac235=>_0xeac235['id']===_0x27cbde)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x251277){this['_footnoteFormatter']=_0x251277;}['_updateFootnotesCounters'](_0x9743a9,_0x3819b6=0x0){let _0x4561fb=!0x1;for(let _0x253e88=_0x3819b6;_0x253e88<this['_footnotes']['length'];_0x253e88++)this['_updateFootnoteRefCounter'](_0x9743a9,_0x253e88)&&(_0x4561fb=!0x0);return _0x4561fb;}['_insertEmptyFootnotesDefinitionsContainer'](_0x32189e,_0x5db217){const _0x152fb8=_0x32189e['createElement']('footnotesDefinitions',{});return _0x32189e['append'](_0x152fb8,_0x5db217),this['_footnotesDefinitions']=_0x152fb8,_0x152fb8;}['_ensureFootnotesDefinitionsContainerExists'](_0x10a642){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2e1a4c=this['_footnotes'][0x0]['reference']['root'],_0x42c29e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x10a642,_0x2e1a4c);for(const _0x44261e of this['_footnotes'])_0x44261e['definition']['parent']||_0x10a642['insert'](_0x44261e['definition'],_0x42c29e,'end');this['_updateFootnotesCounters'](_0x10a642);}['_handleFootnotesDefinitionsObjectChanges'](_0x5d5208,_0x6fdc03){let _0x2980f5=!0x1;const {inserted:_0x2a12a4,removed:_0x497997,moved:_0x988ff7}=this['_footnoteDefsContainerTracker']['getChanges'](_0x6fdc03);if(_0x988ff7['length']&&(this['_footnotesDefinitions']=_0x988ff7[0x0]),_0x2a12a4['length']){if(_0x2a12a4['length']>0x1||this['_footnotesDefinitions']&&_0x2a12a4['some'](_0xf9dffe=>_0xf9dffe!==this['_footnotesDefinitions'])){const _0x54578a=_0x5d5208['createElement']('footnotesDefinitions',{}),_0x5af8aa=[];this['_footnotesDefinitions']&&_0x5af8aa['push'](this['_footnotesDefinitions']),_0x5af8aa['push'](..._0x2a12a4),_0x5d5208['insert'](_0x54578a,_0x5af8aa[0x0],'before');for(const _0xc40f1d of _0x5af8aa)_0x5d5208['move'](_0x5d5208['createRangeIn'](_0xc40f1d),_0x5d5208['createPositionAt'](_0x54578a,'end')),_0x5d5208['remove'](_0xc40f1d);this['_footnotesDefinitions']=_0x54578a,this['_updateFootnotesCounters'](_0x5d5208),_0x2980f5=!0x0;}else this['_footnotesDefinitions']=_0x2a12a4[0x0];}if(_0x497997['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x5ab413 of this['_footnotes'])_0x5d5208['remove'](_0x5ab413['reference']),_0x2980f5=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2980f5;}['_handleFootnoteDefinitionsChanges'](_0x2ba7a5,_0x3bcc00){let _0x2fd659=!0x1;const _0x1ce515=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x301003,moved:_0x126d3e}=this['_footnoteDefsTracker']['getChanges'](_0x3bcc00);for(const _0x21fd6c of[..._0x126d3e,..._0x301003]){const _0xfa838a=_0x21fd6c['getAttribute']('footnoteId'),_0x46ace2=this['getFootnote'](_0xfa838a);_0x46ace2&&(_0x46ace2['definition']=_0x21fd6c),_(_0x2ba7a5,_0x1ce515,_0x21fd6c)&&(_0x2fd659=!0x0);}return _0x2fd659;}['_handleFootnoteReferencesChanges'](_0xc332fd,_0x3a3667){let _0x449cf2=!0x1;const {removed:_0x3bcd17,inserted:_0x25bda7,moved:_0x5d2ee9}=this['_footnoteRefsTracker']['getChanges'](_0x3a3667);for(const _0x1749b2 of _0x3bcd17)this['_handleRemoveFootnoteReferenceById'](_0xc332fd,_0x1749b2)&&(_0x449cf2=!0x0);for(const _0x22bb30 of _0x25bda7)this['_handleInsertedFootnoteReference'](_0xc332fd,_0x22bb30)&&(_0x449cf2=!0x0);for(const _0x976b4a of _0x5d2ee9)this['_handleMovedFootnoteReference'](_0xc332fd,_0x976b4a)&&(_0x449cf2=!0x0);return _0x449cf2;}['_handleFootnotesDefinitionsObjectSync'](_0x5e4309){if(!this['_footnotesDefinitions'])return!0x1;let _0x170e5b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x9645af=[];for(const _0x2a115a of this['_footnotesDefinitions']['getChildren']()){const _0xdf7cb2=_0x2a115a['getAttribute']('footnoteId');this['getFootnote'](_0xdf7cb2)||(_0x9645af['unshift'](_0x2a115a),_0x170e5b=!0x0);}for(const _0x1209e1 of _0x9645af)_0x5e4309['remove'](_0x1209e1);}const _0x5df128=new Set(),_0x68b757=[];for(const _0x34b31b of this['_footnotesDefinitions']['getChildren']()){const _0x13b626=_0x34b31b['getAttribute']('footnoteId');_0x5df128['has'](_0x13b626)?(_0x68b757['unshift'](_0x34b31b),_0x170e5b=!0x0):_0x5df128['add'](_0x13b626);}for(const _0x26192c of _0x68b757)_0x5e4309['remove'](_0x26192c);return this['_footnotesDefinitions']['childCount']||(_0x5e4309['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x170e5b=!0x0),_0x170e5b;}['_handleInsertedFootnoteReference'](_0x37c4d4,_0xe61469){if(this['_footnotes']['find'](_0x216c14=>_0x216c14['reference']===_0xe61469))return!0x1;let _0x2b8065=!0x1;const _0x195d01=_0xe61469['getAttribute']('footnoteId'),_0x3baf43=this['getFootnote'](_0x195d01);_0x3baf43&&(_0x37c4d4['remove'](_0x3baf43['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x35e5ea=>_0x35e5ea['id']!==_0x195d01),_0x2b8065=!0x0);let _0x46f56d=this['_footnotesDefinitions']?function(_0x2d04b4,_0x5ac024){for(const _0x237158 of _0x2d04b4['getChildren']())if(_0x237158['getAttribute']('footnoteId')===_0x5ac024)return _0x237158;return null;}(this['_footnotesDefinitions'],_0x195d01):null;_0x46f56d||(_0x46f56d=_0x37c4d4['createElement']('footnoteDefinition',{'footnoteId':_0x195d01}),this['_footnotesDefinitions']&&(_0x37c4d4['insert'](_0x46f56d,this['_footnotesDefinitions'],'end'),_0x2b8065=!0x0));const _0x201859={'id':_0x195d01,'reference':_0xe61469,'definition':_0x46f56d},_0x5534c2=I(this['editor']['model'],this['_footnotes'],_0xe61469);return this['_footnotes']['splice'](_0x5534c2,0x0,_0x201859),this['_updateFootnotesCounters'](_0x37c4d4,_0x5534c2)&&(_0x2b8065=!0x0),_0x2b8065;}['_handleRemoveFootnoteReferenceById'](_0x3bc2be,_0x1489f2){const _0x532cee=this['_footnotes']['findIndex'](_0x46ae6d=>_0x46ae6d['id']===_0x1489f2);if(-0x1===_0x532cee)return!0x1;let _0x16e507=!0x1;const _0x5384bb=this['_footnotes'][_0x532cee];return'$graveyard'!==_0x5384bb['definition']['root']['rootName']&&(_0x3bc2be['remove'](_0x5384bb['definition']),_0x16e507=!0x0),this['_footnotes']['splice'](_0x532cee,0x1),this['_updateFootnotesCounters'](_0x3bc2be,_0x532cee)&&(_0x16e507=!0x0),_0x16e507;}['_handleMovedFootnoteReference'](_0x390b6e,_0x3dba16){const _0x43d0fe=_0x3dba16['getAttribute']('footnoteId'),_0x24b3a3=this['_footnotes']['findIndex'](_0x3f28be=>_0x3f28be['id']===_0x43d0fe),_0x3b0d84=this['_footnotes'][_0x24b3a3];let _0x4aee9c=!0x1;_0x3b0d84['reference']=_0x3dba16,this['_footnotes']['splice'](_0x24b3a3,0x1);const _0x5c46ea=I(this['editor']['model'],this['_footnotes'],_0x3dba16);return this['_footnotes']['splice'](_0x5c46ea,0x0,_0x3b0d84),this['_updateFootnotesCounters'](_0x390b6e,Math['min'](_0x24b3a3,_0x5c46ea))&&(_0x4aee9c=!0x0),_0x4aee9c;}['_updateFootnoteRefCounter'](_0x13ce14,_0x4119c2){if(!this['_footnotesDefinitions'])return!0x1;const _0xfe0f=this['_footnotes'][_0x4119c2];let _0x2676b7;return _0x2676b7=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0xfe0f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4119c2+0x1}):String(_0x4119c2+0x1),_0xfe0f['reference']['getAttribute']('footnoteCounter')!=_0x2676b7&&(_0x13ce14['setAttribute']('footnoteCounter',_0x2676b7,_0xfe0f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x75760b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x4d5750,_0x540365){if(_0x4d5750['length']!==_0x540365['length'])return!0x1;for(let _0x39af9d=0x0;_0x39af9d<_0x4d5750['length'];_0x39af9d++)if(_0x4d5750[_0x39af9d]!==_0x540365[_0x39af9d])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5bf319=>_0x5bf319['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x507497=>_0x507497['getAttribute']('footnoteId'))))return!0x1;let _0x39a323=!0x1;for(let _0x3145d1=0x0;_0x3145d1<this['_footnotes']['length'];_0x3145d1++){const _0x546b1=this['_footnotes'][_0x3145d1],_0x14e018=_0x75760b['createPositionBefore'](_0x546b1['definition']),_0x3da732=_0x75760b['createPositionAt'](this['_footnotesDefinitions'],_0x3145d1);_0x14e018['isEqual'](_0x3da732)||(_0x75760b['move'](_0x75760b['createRangeOn'](_0x546b1['definition']),_0x3da732),_0x39a323=!0x0);}return _0x39a323;}['_ensureFootnotesReferencesHaveProperOrder'](_0xb466a3){if(!this['_footnotes']['length'])return!0x1;const {model:_0x30b487}=this['editor'];let _0x139b3a=!0x1;for(let _0x577b84=0x0;_0x577b84<this['_footnotes']['length']-0x1;_0x577b84++){const _0x245983=this['_footnotes'][_0x577b84],_0x193c10=this['_footnotes'][_0x577b84+0x1],_0x49be08=_0x30b487['createPositionBefore'](_0x245983['reference']),_0x40af7c=_0x30b487['createPositionBefore'](_0x193c10['reference']);'after'===_0x49be08['compareWith'](_0x40af7c)&&(this['_handleMovedFootnoteReference'](_0xb466a3,_0x245983['reference']),_0x577b84=-0x1,_0x139b3a=!0x0);}return _0x139b3a;}}function _(_0x1805db,_0x4adbc3,_0x22859c){if(_0x22859c['childCount'])return!0x1;const _0x4bf88f=_0x4adbc3?'paragraph':'footnoteInlineContent';return _0x1805db['insert'](_0x1805db['createElement'](_0x4bf88f),_0x22859c),!0x0;}function I(_0x14dd8b,_0xea72ea,_0x697ee7){if(0x0===_0xea72ea['length'])return 0x0;const _0x49f797=_0x14dd8b['createPositionBefore'](_0x697ee7);for(let _0x3f17cf=0x0;_0x3f17cf<_0xea72ea['length'];_0x3f17cf++){const _0x3d8582=_0xea72ea[_0x3f17cf],_0x4be44a=_0x14dd8b['createPositionBefore'](_0x3d8582['reference']);if('before'===_0x49f797['compareWith'](_0x4be44a))return _0x3f17cf;}const _0x53e5d0=_0x697ee7['root'];let _0x4682f9=-0x1;for(let _0x3f226f=_0xea72ea['length']-0x1;_0x3f226f>=0x0;_0x3f226f--)if(_0xea72ea[_0x3f226f]['reference']['root']===_0x53e5d0){_0x4682f9=_0x3f226f;break;}if(-0x1!==_0x4682f9)return _0x4682f9+0x1;const _0x2374f3=_0x14dd8b['document']['getRootNames'](),_0x237e96=_0x2374f3['indexOf'](_0x53e5d0['rootName']),_0x3637b6=_0x2374f3[_0x237e96+0x1];if(_0x3637b6){for(let _0x4cbf60=0x0;_0x4cbf60<_0xea72ea['length'];_0x4cbf60++)if(_0xea72ea[_0x4cbf60]['reference']['root']['rootName']===_0x3637b6)return _0x4cbf60;}return _0xea72ea['length'];}class w extends _0xdfca9b{['refresh'](){const _0x1b62d1=this['editor']['model']['document']['selection'],_0x52a8d4=this['_getPositionToInsertFootnote'](_0x1b62d1);this['isEnabled']=!!_0x52a8d4;}['execute'](_0x46775b){const {editor:_0x51f1ed}=this,{model:_0x58419a}=_0x51f1ed,{selection:_0x24e4f5}=_0x58419a['document'],_0x23defa=this['_getPositionToInsertFootnote'](_0x24e4f5);if(!_0x23defa)return;const _0x26b17a=_0x51f1ed['plugins']['get']('FootnotesEditing'),_0x264022=_0x46775b?.['footnoteId']??_0x3d9da6();!function(_0x3ae19b){return'string'==typeof _0x3ae19b&&_0x3ae19b['length']>0x0&&!/\s/['test'](_0x3ae19b)&&!/^\d/['test'](_0x3ae19b);}(_0x264022)?_0x5a8c29('insert-footnote-command-executed-with-invalid-id'):(_0x58419a['change'](_0x1c0098=>{const _0x1587ba=_0x1c0098['createElement']('footnoteRef',{'footnoteId':_0x264022});_0x58419a['insertObject'](_0x1587ba,_0x23defa,null);}),_0x26b17a['_moveSelectionToFootnoteDefinition'](_0x264022));}['_getPositionToInsertFootnote'](_0x18eb43){const {model:_0x10b97c}=this['editor'],{schema:_0x3c4936}=_0x10b97c,_0x51455e=_0x18eb43['getFirstRange']();for(const _0x5d9cfa of _0x51455e['getItems']())if(_0x3c4936['isBlock'](_0x5d9cfa)||_0x3c4936['isObject'](_0x5d9cfa))return null;const _0x2ca35e=_0x51455e['end'];return _0x3c4936['checkChild'](_0x2ca35e,'footnoteRef')?_0x2ca35e:null;}}class r extends _0x159ee2{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3120f4}=this;_0x3120f4['config']['define']('footnotes.multiBlock',!0x0),_0x3120f4['commands']['add']('insertFootnote',new w(_0x3120f4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x280890){const _0x457031=_0x3c214e([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]),_0x13bcfa=0x47a28506,_0x1c7460=0x47a5f236^_0x13bcfa,_0x771845=window[_0x3c214e([0x44,0x61,0x74,0x65])][_0x3c214e([0x6e,0x6f,0x77])](),_0x24e49d=_0x280890[_0x3c214e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5379b0=new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5cc5=>{_0x24e49d[_0x3c214e([0x6f,0x6e,0x63,0x65])](_0x3c214e([0x72,0x65,0x61,0x64,0x79]),_0x4f5cc5);}),_0x5474f6={[_0x3c214e([0x6b,0x74,0x79])]:_0x3c214e([0x45,0x43]),[_0x3c214e([0x75,0x73,0x65])]:_0x3c214e([0x73,0x69,0x67]),[_0x3c214e([0x63,0x72,0x76])]:_0x3c214e([0x50,0x2d,0x32,0x35,0x36]),[_0x3c214e([0x78])]:_0x3c214e([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]),[_0x3c214e([0x79])]:_0x3c214e([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]),[_0x3c214e([0x61,0x6c,0x67])]:_0x3c214e([0x45,0x53,0x32,0x35,0x36])},_0x593217=_0x24e49d[_0x3c214e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c214e([0x67,0x65,0x74])](_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc4da0d(){let _0x4c2b5c,_0x50b41f=null,_0x1e4ce0=null;try{if(_0x593217==_0x3c214e([0x47,0x50,0x4c]))return _0x3c214e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c2b5c=_0x1c1e10(),!_0x4c2b5c)return _0x3c214e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c2b5c[_0x3c214e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4ce0=_0x5bd743(_0x4c2b5c[_0x3c214e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c2b5c[_0x3c214e([0x6a,0x74,0x69])])),await _0x30526b()?_0x5ab7c0()?_0x1f5a15()?_0x3c214e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ef88e()?(_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c214e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b41f=_0x5e0886(_0x3c214e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c214e([0x74,0x72,0x69,0x61,0x6c])&&(_0x50b41f=_0x5e0886(_0x3c214e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x352931()):_0x3c214e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c214e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c214e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c214e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f5a15(){const _0x36af62=[_0x3c214e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c214e([0x74,0x72,0x69,0x61,0x6c])][_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x771845/0x3e8:0xe10*_0x1c7460;return _0x4c2b5c[_0x3c214e([0x65,0x78,0x70])]<_0x36af62;}function _0x5ab7c0(){const _0x53e2c6=_0x4c2b5c[_0x3c214e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53e2c6&&(!!_0x53e2c6[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c214e([0x2a]))||!!_0x53e2c6[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c214e([0x46,0x4f,0x4f])));}function _0x2ef88e(){const _0x5165f5=_0x4c2b5c[_0x3c214e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5165f5||0x0==_0x5165f5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cc440}=new URL(window[_0x3c214e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5165f5[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cc440))return!0x0;const _0x2df46c=_0x2cc440[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e]));return _0x5165f5[_0x3c214e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54c3dd=>_0x54c3dd[_0x3c214e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c214e([0x2a])))[_0x3c214e([0x6d,0x61,0x70])](_0x2e637e=>_0x2e637e[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e])))[_0x3c214e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x459808=>_0x459808[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2df46c[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c214e([0x6d,0x61,0x70])](_0x53d87b=>Array(_0x2df46c[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53d87b[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c214e([0x66,0x69,0x6c,0x6c])](_0x53d87b[0x0]===_0x3c214e([0x2a])?_0x3c214e([0x2a]):'')[_0x3c214e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53d87b))[_0x3c214e([0x73,0x6f,0x6d,0x65])](_0x43c795=>_0x2df46c[_0x3c214e([0x65,0x76,0x65,0x72,0x79])]((_0x17a511,_0xc909a6)=>_0x43c795[_0xc909a6]===_0x17a511||_0x43c795[_0xc909a6]===_0x3c214e([0x2a])));}function _0x352931(){return _0x50b41f&&_0x1e4ce0?new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eb546,_0x500aaa)=>{_0x50b41f[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x1eb546,_0x500aaa),_0x1e4ce0[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x201cac=>{_0x201cac!=_0x3c214e([0x56,0x61,0x6c,0x69,0x64])&&_0x1eb546(_0x201cac);},_0x500aaa);}):_0x50b41f||_0x1e4ce0||_0x3c214e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5bd743(_0x33578b,_0x1fd32a){return new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23220c=>{if(_0x5ee2b2())return _0x23220c(_0x3c214e([0x56,0x61,0x6c,0x69,0x64]));_0x1055a7(),_0x24e49d[_0x3c214e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c214e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c7392=!0x1;const _0x4bfbfb=_0x3d9da6();function _0xdb9400(_0x1e5100){return!!_0x1e5100&&(typeof _0x1e5100===_0x3c214e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e5100===_0x3c214e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e5100[_0x3c214e([0x74,0x68,0x65,0x6e])]===_0x3c214e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e5100[_0x3c214e([0x63,0x61,0x74,0x63,0x68])]===_0x3c214e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bbdc6(_0x2496fc){_0x310cf5(_0x2496fc)[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x208f69=>{if(!_0x208f69||_0x208f69[_0x3c214e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c214e([0x6f,0x6b]))return _0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a734e(_0x1a6b2c(_0x4bfbfb+_0x1fd32a))!=_0x208f69[_0x3c214e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c214e([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x36ad04=>(_0x5a2326(),_0x36ad04),()=>{const _0x5a4a5c=_0x263b64();return null==_0x5a4a5c?(_0x5a2326(),_0x3c214e([0x56,0x61,0x6c,0x69,0x64])):_0x3c214e(_0x771845-_0x5a4a5c>(0x63ae0106^_0x13bcfa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x23220c)[_0x3c214e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23220c(_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fb7b9=0x47946b86^_0x13bcfa;function _0x5a2326(){const _0xc448f7=_0x3c214e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a734e(_0x1a6b2c(_0x33578b)),_0x4ef198=_0x51ddf9(_0x3a734e(window[_0x3c214e([0x4d,0x61,0x74,0x68])][_0x3c214e([0x63,0x65,0x69,0x6c])](_0x771845/_0x4fb7b9)));window[_0x3c214e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c214e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc448f7,_0x4ef198);}function _0x263b64(){const _0x275553=_0x3c214e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a734e(_0x1a6b2c(_0x33578b)),_0x299c3f=window[_0x3c214e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c214e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x275553);return _0x299c3f?window[_0x3c214e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ddf9(_0x299c3f),0x10)*_0x4fb7b9:null;}function _0x310cf5(_0x48fcba){return new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ca6e,_0x4e6fda)=>{_0x48fcba[_0x3c214e([0x74,0x68,0x65,0x6e])](_0x26ca6e,_0x4e6fda),window[_0x3c214e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6fda,0x47a351c6^_0x13bcfa);});}}_0x24e49d[_0x3c214e([0x6f,0x6e])](_0x3c214e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b21dd,_0x20bf5e)=>{if(_0x20bf5e[0x0]!=_0x33578b)return _0x23220c(_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20bf5e[0x1]={..._0x20bf5e[0x1],[_0x3c214e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bfbfb};},{[_0x3c214e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c214e([0x68,0x69,0x67,0x68])}),_0x24e49d[_0x3c214e([0x6f,0x6e])](_0x3c214e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc828fb=>{_0xdb9400(_0xc828fb[_0x3c214e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c7392=!0x0,_0x5bbdc6(_0xc828fb[_0x3c214e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c214e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c214e([0x6c,0x6f,0x77])}),_0x5379b0[_0x3c214e([0x74,0x68,0x65,0x6e])](()=>{_0x5c7392||_0x23220c(_0x3c214e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ee2b2(){return _0x24e49d[_0x3c214e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c214e([0x76,0x69,0x65,0x77])][_0x3c214e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c214e([0x61,0x75,0x74,0x6f]);}function _0x1055a7(){_0x24e49d[_0x3c214e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c214e([0x76,0x69,0x65,0x77])][_0x3c214e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c214e([0x61,0x75,0x74,0x6f]);}}function _0x5e0886(_0x217f6c){const _0x51cd76=[new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3eb05c=>setTimeout(_0x3eb05c,0x47abbbca^_0x13bcfa)),_0x5379b0[_0x3c214e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dbec2=>{let _0x8c681=0x0;_0x24e49d[_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c214e([0x6f,0x6e])](_0x3c214e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x137783,_0x46b1fd)=>{_0x46b1fd[0x0][_0x3c214e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c681++,_0x8c681==(0x47a284fe^_0x13bcfa)&&(_0x2dbec2(),_0x137783[_0x3c214e([0x6f,0x66,0x66])]());});}))];return window[_0x3c214e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c214e([0x72,0x61,0x63,0x65])](_0x51cd76)[_0x3c214e([0x74,0x68,0x65,0x6e])](()=>_0x217f6c);}async function _0x39b721(){await _0x5379b0,_0x24e49d[_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c214e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2722c7,_0x24e49d[_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c214e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2722c7,_0x24e49d[_0x3c214e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c214e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b7638(_0x281fec){const _0xc87f6b=_0x26f2ab();_0x24e49d[_0xc87f6b]=_0x3c214e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x281fec,_0x281fec!=_0x3c214e([0x56,0x61,0x6c,0x69,0x64])&&_0x39b721();}function _0x26f2ab(){const _0x2c64c5=window[_0x3c214e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c214e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c214e([0x6e,0x6f,0x77])]())[_0x3c214e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c214e([0x2e]),'');let _0xe9a378=_0x3c214e([0x75]);for(let _0x168ec2=0x0;_0x168ec2<_0x2c64c5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x168ec2+=0x2){let _0x553a62=window[_0x3c214e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c64c5[_0x3c214e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x168ec2,_0x168ec2+0x2));_0x553a62>=_0x457031[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x553a62-=_0x457031[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe9a378+=_0x457031[_0x553a62];}return _0xe9a378;}function _0x1c1e10(){const _0x2ca2a5=_0x593217[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e]));if(0x3!=_0x2ca2a5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13f9ba(_0x2ca2a5[0x1]);function _0x13f9ba(_0x41085c){const _0x160b7d=_0x2ec09d(_0x41085c);return _0x160b7d&&_0x719917()?_0x160b7d:null;function _0x719917(){const _0x787bb5=_0x160b7d[_0x3c214e([0x6a,0x74,0x69])],_0x5985e5=window[_0x3c214e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x787bb5[_0x3c214e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x787bb5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d12ed={..._0x160b7d,[_0x3c214e([0x6a,0x74,0x69])]:_0x787bb5[_0x3c214e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x787bb5[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d12ed[_0x3c214e([0x76,0x63])],_0x1a6b2c(_0x1d12ed)==_0x5985e5;}}}async function _0x30526b(){let _0x2b3169=!0x0;try{const _0x3eb202=_0x593217[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])](_0x3c214e([0x2e])),[_0x1f60da,_0x59adc3,_0x3bd722]=_0x3eb202;return _0x28eb7d(_0x1f60da),await _0x4830e1(_0x1f60da,_0x59adc3,_0x3bd722),_0x2b3169;}catch{return!0x1;}function _0x28eb7d(_0x44aa10){const _0x2746d2=_0x2ec09d(_0x44aa10);_0x2746d2&&_0x2746d2[_0x3c214e([0x61,0x6c,0x67])]==_0x3c214e([0x45,0x53,0x32,0x35,0x36])||(_0x2b3169=!0x1);}async function _0x4830e1(_0x169723,_0x5166ce,_0x7c2f3){const _0x3273eb=window[_0x3c214e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c214e([0x66,0x72,0x6f,0x6d])](_0x4a2586(_0x7c2f3),_0x153483=>_0x153483[_0x3c214e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50ddb9=new window[(_0x3c214e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c214e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x169723+_0x3c214e([0x2e])+_0x5166ce),_0x225648=window[_0x3c214e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c214e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x225648)return;const _0x2ebce3=await _0x225648[_0x3c214e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c214e([0x6a,0x77,0x6b]),_0x5474f6,{[_0x3c214e([0x6e,0x61,0x6d,0x65])]:_0x3c214e([0x45,0x43,0x44,0x53,0x41]),[_0x3c214e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c214e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c214e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x225648[_0x3c214e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c214e([0x6e,0x61,0x6d,0x65])]:_0x3c214e([0x45,0x43,0x44,0x53,0x41]),[_0x3c214e([0x68,0x61,0x73,0x68])]:{[_0x3c214e([0x6e,0x61,0x6d,0x65])]:_0x3c214e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ebce3,_0x3273eb,_0x50ddb9)||(_0x2b3169=!0x1);}}function _0x2ec09d(_0x55320a){return _0x55320a[_0x3c214e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c214e([0x65,0x79]))?JSON[_0x3c214e([0x70,0x61,0x72,0x73,0x65])](_0x4a2586(_0x55320a)):null;}function _0x4a2586(_0x4fd9c1){return window[_0x3c214e([0x61,0x74,0x6f,0x62])](_0x4fd9c1[_0x3c214e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c214e([0x2b]))[_0x3c214e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c214e([0x2f])));}function _0x1a6b2c(_0x257bed){let _0x26a02e=0x1505;function _0x22828f(_0x2da697){for(let _0x485341=0x0;_0x485341<_0x2da697[_0x3c214e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485341++){const _0x48674f=_0x2da697[_0x3c214e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x485341);_0x26a02e=(_0x26a02e<<0x5)+_0x26a02e+_0x48674f,_0x26a02e&=_0x26a02e;}}function _0x2c9615(_0x5ce73b){Array[_0x3c214e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ce73b)?_0x5ce73b[_0x3c214e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c9615):_0x5ce73b&&typeof _0x5ce73b==_0x3c214e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c214e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ce73b)[_0x3c214e([0x73,0x6f,0x72,0x74])]()[_0x3c214e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x707db7,_0x4432d5])=>{_0x22828f(_0x707db7),_0x2c9615(_0x4432d5);}):_0x22828f(window[_0x3c214e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ce73b));}return _0x2c9615(_0x257bed),_0x26a02e>>>0x0;}function _0x3a734e(_0x1f2839){return _0x1f2839[_0x3c214e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c214e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c214e([0x30]));}function _0x51ddf9(_0x2b8f2a){return _0x2b8f2a[_0x3c214e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c214e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c214e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2722c7(){}function _0x3c214e(_0x3e9562){return _0x3e9562['map'](_0x35e4df=>String['fromCharCode'](_0x35e4df))['join']('');}_0x2b7638(await _0xc4da0d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5b718d){const {plugins:_0x3e1715,editing:_0x21fd11,model:_0x5107fe}=this['editor'],_0x91e443=_0x3e1715['get'](c)['getFootnote'](_0x5b718d);return!!_0x91e443&&(_0x5107fe['change'](_0x3b5793=>{_0x3b5793['setSelection'](_0x3b5793['createPositionAt'](_0x91e443['definition'],'end'));}),_0x21fd11['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2441e8){const {plugins:_0x6bdaab,editing:_0x908761,model:_0x3f7936}=this['editor'],_0x12f463=_0x6bdaab['get'](c)['getFootnote'](_0x2441e8);return!!_0x12f463&&(_0x3f7936['change'](_0x2ccf71=>{_0x2ccf71['setSelection'](_0x12f463['reference'],'on');}),_0x908761['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4632b8}=this['editor']['model'],_0x246b1f=this['editor']['config']['get']('footnotes.multiBlock');_0x4632b8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4632b8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4632b8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x246b1f?_0x4632b8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4632b8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4632b8['addChildCheck'](_0xeb5c1d=>{for(const _0x3bb7d4 of _0xeb5c1d)if('footnoteDefinition'===_0x3bb7d4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x17aa7f}=this,{conversion:_0x373956,editing:_0x100be0}=_0x17aa7f,{t:t}=_0x17aa7f['locale'];_0x373956['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1bd684,{writer:_0x2a1e9f,consumable:_0x34c3b5})=>{const _0x3b7799=_0x1bd684['getChild'](0x0);if(!_0x3b7799||!_0x3b7799['is']('element','a'))return null;const _0x3ffd06=_0x3b7799['getAttribute']('href')||'';if(!_0x3ffd06['startsWith']('#'))return null;const _0x153306=_0x3ffd06['replace'](/^#/,'');if(!_0x153306)return null;_0x34c3b5['consume'](_0x3b7799,{'name':!0x0,'attributes':['href']});for(const {item:_0x3fb551}of _0x100be0['view']['createRangeIn'](_0x3b7799))_0x3fb551['is']('$textProxy')?_0x34c3b5['consume'](_0x3fb551['textNode'],{'name':!0x0}):_0x3fb551['is']('element')&&_0x34c3b5['consume'](_0x3fb551,{'name':!0x0});return _0x2a1e9f['createElement']('footnoteRef',{'footnoteId':_0x153306});}}),_0x373956['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50d496,{writer:_0x41785c})=>D(_0x50d496,_0x41785c)}),_0x373956['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4204ac,{writer:_0x1da044})=>{const _0x115ec1=_0x4204ac['getAttribute']('footnoteCounter');return _0x3e60ed(D(_0x4204ac,_0x1da044),_0x1da044,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x115ec1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9b8b3b}=this,{t:t}=_0x9b8b3b['locale'],{conversion:_0x445dac}=_0x9b8b3b;_0x445dac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x445dac['for']('upcast')['add'](_0x18f0d3=>{_0x18f0d3['on']('element:ol',(_0x39c75c,_0x188987,_0x251921)=>{const _0xf325d2=_0x188987['viewItem'];if(!_0xf325d2['hasClass']('footnotes-list')||!_0x188987['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x251921['consumable']['consume'](_0xf325d2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xadf1e0,modelCursor:_0x323cfe}=_0x251921['convertChildren'](_0x188987['viewItem'],_0x188987['modelCursor']);_0x188987['modelRange']=_0xadf1e0,_0x188987['modelCursor']=_0x323cfe;}),_0x18f0d3['on']('element:hr',(_0x307321,_0xb8dc57,_0x480710)=>{const _0x1ecde5=_0xb8dc57['viewItem'];_0x1ecde5['hasClass']('footnotes-divider')&&_0xb8dc57['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x480710['consumable']['consume'](_0x1ecde5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x445dac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xb1081e,{writer:_0x959c71})=>g(_0x959c71)}),_0x445dac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x364cc7,{writer:_0x218366})=>{const _0x3a5aa7=g(_0x218366,{'data-footnotes-list-label':t('Footnotes')}),_0xae7d5f=_0x3e60ed(_0x3a5aa7,_0x218366,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x218366['setCustomProperty']('footnotesDefinitions',!0x0,_0xae7d5f),_0xae7d5f;}});}['_defineDefinitionConverters'](){const {editor:_0x306467}=this,{conversion:_0x4f2d94,locale:_0x8617d}=_0x306467,_0x1ae9ef=_0x306467['config']['get']('footnotes.multiBlock');_0x4f2d94['for']('upcast')['add'](_0x58f8e9=>{_0x58f8e9['on']('element:li',(_0x57eb31,_0x1294f1,_0x2a0b8e)=>{const _0x44db1a=_0x1294f1['viewItem'];if(!_0x44db1a['hasClass']('footnote-definition')||!_0x44db1a['getAttribute']('id'))return;const _0x2397da=_0x44db1a['parent'];if(!_0x2397da['is']('element','ol')||!_0x2397da['hasClass']('footnotes-list'))return;if(!_0x2a0b8e['consumable']['test'](_0x44db1a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x517961=_0x2a0b8e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x44db1a['getAttribute']('id')});if(!_0x2a0b8e['safeInsert'](_0x517961,_0x1294f1['modelCursor']))return;_0x2a0b8e['consumable']['consume'](_0x44db1a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1d18b6=Array['from'](_0x44db1a['getChildren']())['find'](_0x498744=>_0x498744['is']('element')&&_0x498744['hasClass']('footnote-content'));for(const _0x396983 of _0x44db1a['getChildren']())_0x396983['is']('element')&&(_0x2a0b8e['consumable']['consume'](_0x396983,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2a0b8e['consumable']['consume'](_0x396983,{'name':!0x0,'classes':'footnote-content'}));if(_0x1d18b6){if(_0x1ae9ef)_0x2a0b8e['convertChildren'](_0x1d18b6,_0x517961);else{const _0x3352da=_0x2a0b8e['writer']['createElement']('footnoteInlineContent');_0x2a0b8e['writer']['insert'](_0x3352da,_0x517961),_0x2a0b8e['convertChildren'](_0x1d18b6,_0x3352da);}}_0x2a0b8e['updateConversionResult'](_0x517961,_0x1294f1);});}),_0x4f2d94['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x22a9dd,{writer:_0xa3ec9a})=>v(_0x22a9dd,_0xa3ec9a,_0x8617d,{'dataPipeline':!0x0})}),_0x4f2d94['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xb6dad9,{writer:_0x8d744d})=>v(_0xb6dad9,_0x8d744d,_0x8617d)});}['_defineBogusParagraphConverters'](){const {editor:_0x22c213}=this,{conversion:_0x3d77f8}=_0x22c213;_0x22c213['config']['get']('footnotes.multiBlock')?(_0x3d77f8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x3d77f8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x22c213['model']['document'],'change:data',()=>{!function(_0x110ff2,_0x55c8cc){const _0x4dc809=_0x110ff2['document']['differ'],_0x57c575=new Set();for(const _0x5df991 of _0x4dc809['getChanges']()){const _0x3ce696='attribute'==_0x5df991['type']?_0x5df991['range']['start']['parent']:_0x5df991['position']['parent'];_0x3ce696['is']('element','footnoteDefinition')&&_0x57c575['add'](_0x3ce696);}for(const _0x416279 of _0x57c575['values']()){const _0x4e5c0f=Array['from'](_0x416279['getChildren']())['filter'](_0x5dbd03=>p(_0x5dbd03,_0x55c8cc['mapper']));for(const _0x4c70c3 of _0x4e5c0f)_0x55c8cc['reconvertItem'](_0x4c70c3);}}(_0x22c213['model'],_0x22c213['editing']);})):(_0x3d77f8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x3d77f8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5b06d1,{writer:_0x497334})=>{const _0xe72fd2=_0x497334['createContainerElement']('span');return _0x497334['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xe72fd2),_0xe72fd2;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5871fe}=this,{editing:_0x39a05c,t:t}=_0x5871fe,_0x393220=_0x5871fe['model']['document']['selection'];_0x5871fe['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5871fe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x39a05c['view']['document'],'enter',(_0x2623b2,_0x5d3027)=>{const _0x140989=function(_0x3d8377){const _0x1b7699=_0x3d8377['getSelectedElement']();if(_0x1b7699?.['is']('element','footnoteRef'))return _0x1b7699;return null;}(_0x393220);if(_0x140989){const _0x10518f=_0x140989['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x10518f),_0x5d3027['preventDefault'](),_0x2623b2['stop']();}},{'context':_0x59857d});}['_defineClickHandlers'](){const {editor:_0x355af7}=this,{editing:_0x69f2b}=_0x355af7;_0x355af7['editing']['view']['addObserver'](_0x5eccae),_0x355af7['editing']['view']['addObserver'](_0x117457);let _0x393db7=!0x1;this['listenTo'](_0x69f2b['view']['document'],'pointerdown',(_0xd5644a,_0x42bedc)=>{const {target:_0x983c41}=_0x42bedc,_0xd0e9fa=_0x69f2b['view']['document']['selection'];_0x393db7=!(!_0x983c41['is']('element','sup')||!_0x983c41['hasClass']('footnote'))&&_0xd0e9fa['getSelectedElement']()===_0x983c41;},{'priority':'high'}),this['listenTo'](_0x69f2b['view']['document'],'click',(_0x15ba9d,_0x57af5f)=>{const {target:_0x5e03d1}=_0x57af5f,_0x14aaed=_0x5e03d1['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x14aaed['slice'](0x1)),_0x15ba9d['stop'](),_0x57af5f['preventDefault']();},{'priority':'high','context':_0x38b6f5=>_0x38b6f5['is']('element','sup')&&_0x38b6f5['hasClass']('footnote')&&_0x393db7}),this['listenTo'](_0x69f2b['view']['document'],'click',(_0x41e38a,_0x451ccc)=>{const {target:_0x114c81}=_0x451ccc;if(!_0x114c81['is']('element','a'))return;let _0x4ce58b=_0x114c81['getAttribute']('href');if(!_0x4ce58b?.['startsWith']('#'))return;_0x4ce58b=_0x4ce58b['slice'](0x1);let _0x54740b=!0x1;(_0x4ce58b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4ce58b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4ce58b))&&(_0x54740b=!0x0),_0x54740b&&(_0x451ccc['preventDefault'](),_0x41e38a['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x1a5037}={}){return(_0x365aed,{writer:_0xf1f79a})=>{if(!h(_0x365aed))return null;if(!_0x1a5037)return _0xf1f79a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4a89c5=_0xf1f79a['createContainerElement']('p');return _0xf1f79a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4a89c5),_0x4a89c5;};}function h(_0x86a625){const {parent:_0x433916}=_0x86a625;if(!_0x433916?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x433916['childCount'])return!0x1;for(const _0xe01ec4 of _0x86a625['getAttributeKeys']())if(!_0xe01ec4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xe01ec4)return!0x1;return!0x0;}function p(_0x137fbb,_0x31c145){if(!_0x137fbb['is']('element','paragraph'))return!0x1;const _0xe108fb=_0x31c145['toViewElement'](_0x137fbb);return!!_0xe108fb&&h(_0x137fbb)!==_0xe108fb['is']('element','span');}function J(_0x20ecfd){return _0x59857d(_0x20ecfd)&&_0x20ecfd['is']('containerElement')&&!!_0x20ecfd['getCustomProperty']('footnotesDefinitions');}function g(_0x13a865,_0x27a40f={}){const _0x2d6502=_0x13a865['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2fb3dc=_0x13a865['createContainerElement']('ol',{'class':'footnotes-list'},_0x13a865['createSlot']());return _0x13a865['createContainerElement']('div',{'class':'footnotes',..._0x27a40f},[_0x2d6502,_0x2fb3dc]);}function D(_0x247bc9,_0x5defed){const _0x3f680e=_0x247bc9['getAttribute']('footnoteId'),_0x37df4f=_0x247bc9['getAttribute']('footnoteCounter'),_0x2faf3d=_0x5defed['createUIElement']('a',{'href':'#'+_0x3f680e},function(_0x46cbf4){const _0x3dc1a1=this['toDomElement'](_0x46cbf4);return _0x3dc1a1['textContent']=_0x37df4f,_0x3dc1a1;}),_0x514b08=_0x5defed['createContainerElement']('sup',{'id':'ref-'+_0x3f680e,'class':'footnote'},[_0x2faf3d]);return _0x514b08['getFillerOffset']=()=>null,_0x514b08;}function v(_0x4dcfad,_0x570305,_0x49feef,{dataPipeline:_0x779851}={}){const {t:t}=_0x49feef,_0x21a8d2=_0x4dcfad['getAttribute']('footnoteId'),_0x5ba4dd=_0x570305['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x21a8d2},function(_0x4189f0){const _0x16c6a9=this['toDomElement'](_0x4189f0);return _0x16c6a9['innerText']='^',_0x16c6a9;}),_0x5f1620=_0x779851?_0x570305['createContainerElement']('div',{'class':'footnote-content'}):_0x2837be(_0x570305['createEditableElement']('div',{'class':'footnote-content'}),_0x570305,{'label':t('Footnote\x20content.')});return _0x570305['insert'](_0x570305['createPositionAt'](_0x5f1620,0x0),_0x570305['createSlot']()),_0x570305['createContainerElement']('li',{'class':'footnote-definition','id':_0x21a8d2},[_0x5ba4dd,_0x5f1620]);}class e extends _0x159ee2{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xe7051a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x246abe}=this,{plugins:_0x459924,model:_0x22ecca}=_0x246abe,_0x30448d=_0x459924['get'](_0xe7051a),_0x53c88c=_0x459924['get'](c);this['listenTo'](_0x30448d,'outputTransformation',(_0x4c1795,_0x342b8f)=>{const _0x2c7338=function(_0x4e14a8,_0x39b97d){const _0x2986b6=new Set();for(const {item:_0x467225}of _0x4e14a8['createRangeIn'](_0x39b97d))_0x467225['is']('element','footnoteRef')&&_0x2986b6['add'](_0x467225['getAttribute']('footnoteId'));return Array['from'](_0x2986b6);}(_0x22ecca,_0x342b8f['content']);if(!_0x2c7338['length'])return;const _0x108b2e=_0x53c88c['getFootnotes'](),_0x459f99=_0x2c7338['reduce']((_0x25dd3e,_0x30f988)=>{const _0x9846fd=_0x108b2e['find'](_0x272c01=>_0x272c01['id']===_0x30f988);if(_0x9846fd){const _0xdcfdb6=_0x246abe['data']['toView'](_0x9846fd['definition'],{'isClipboardPipeline':!0x0}),_0x4b2df7=_0x246abe['data']['htmlProcessor']['toData'](_0xdcfdb6);_0x25dd3e[_0x9846fd['id']]=_0x4b2df7;}return _0x25dd3e;},Object['create'](null));_0x342b8f['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x459f99));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x14347e}=this,{model:_0x2f3f45,plugins:_0x3d1066}=_0x14347e,{view:_0x2767b4}=_0x14347e['editing'],_0x34a615=_0x3d1066['get'](_0xe7051a),_0x524e9e=_0x3d1066['get'](c);let _0x51d6d1=null;this['listenTo'](_0x2767b4['document'],'clipboardInput',(_0x5e57a8,_0x14f5c9)=>{const _0x10406f=_0x14f5c9['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x51d6d1=_0x10406f?JSON['parse'](_0x10406f):null;}),this['listenTo'](_0x34a615,'contentInsertion',(_0x472ea9,_0x597993)=>{if(!_0x51d6d1)return;const _0x566d3b=_0x597993['sourceEditorId']===this['editor']['id'];_0x566d3b&&'drop'===_0x597993['method']||_0x2f3f45['change'](_0x31615c=>{!function(_0x1d290b,_0x72da75){const _0x557ef1=[];for(const {item:_0x3c9b14}of _0x1d290b['createRangeIn'](_0x72da75))_0x3c9b14['is']('element','footnotesDefinitions')&&_0x557ef1['push'](_0x3c9b14);for(const _0x581522 of _0x557ef1)_0x1d290b['remove'](_0x581522);}(_0x31615c,_0x597993['content']);let _0x229265=_0x524e9e['getFootnotesDefinitionsObjectElement']();if(!_0x229265){const _0x1be428=_0x2f3f45['document']['selection']['getFirstRange']()['root'];_0x229265=_0x524e9e['_insertEmptyFootnotesDefinitionsContainer'](_0x31615c,_0x1be428);}const _0x14b758=function(_0x485d3b,_0x44e4cd,_0x33d0d1){const _0x29ee7b=Object['create'](null);for(const {item:_0xdf9c24}of _0x485d3b['createRangeIn'](_0x44e4cd))if(_0xdf9c24['is']('element','footnoteRef')){const _0xc111=_0xdf9c24['getAttribute']('footnoteId');if(!_0x33d0d1(_0xc111))continue;_0x29ee7b[_0xc111]||(_0x29ee7b[_0xc111]=_0x3d9da6()),_0x485d3b['setAttribute']('footnoteId',_0x29ee7b[_0xc111],_0xdf9c24);}return _0x29ee7b;}(_0x31615c,_0x597993['content'],_0x108134=>!_0x566d3b||null!==_0x524e9e['getFootnote'](_0x108134));for(const [_0x58db02,_0x5572cc]of Object['entries'](_0x51d6d1)){const _0x2576f7=_0x14b758[_0x58db02]||_0x58db02,_0x371fd1=_0x31615c['createElement']('footnoteDefinition',{'footnoteId':_0x2576f7}),_0x56cf0f=_0x14347e['data']['htmlProcessor']['toView'](_0x5572cc),_0x1ec90a=_0x14347e['data']['toModel'](_0x56cf0f,_0x371fd1);_0x31615c['append'](_0x1ec90a,_0x371fd1),_0x31615c['insert'](_0x371fd1,_0x229265,'end');}_0x51d6d1=null;});});}}class i extends _0x159ee2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3feb68}=this,{componentFactory:_0x35e8b5}=_0x3feb68['ui'];_0x35e8b5['add']('insertFootnote',x(_0x3feb68,_0x1e890f)),_0x35e8b5['add']('menuBar:insertFootnote',x(_0x3feb68,_0x36cf87)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58bb84=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37b752;for(const _0x41703b in _0x58bb84){const _0x8d7d3b=_0x41703b,_0x72511c=_0x58bb84[_0x8d7d3b];if('footnotesLicenseKeyValid'==_0x72511c||'footnotesLicenseKeyInvalid'==_0x72511c||'footnotesLicenseKeyExpired'==_0x72511c||'footnotesLicenseKeyDomainLimit'==_0x72511c||'footnotesLicenseKeyNotAllowed'==_0x72511c||'footnotesLicenseKeyEvaluationLimit'==_0x72511c||'footnotesLicenseKeyTrialLimit'==_0x72511c||'footnotesLicenseKeyUsageLimit'==_0x72511c){delete _0x58bb84[_0x8d7d3b],_0x37b752=_0x72511c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x37b752&&_0x58bb84['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x37b752&&_0x58bb84['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x37b752&&_0x58bb84['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x37b752&&_0x58bb84['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x298fab,_0xcc071e){const _0x39d311=_0x298fab['commands']['get']('insertFootnote');return _0x58a8bd=>{const {t:t}=_0x58a8bd,_0x2f362f=new _0xcc071e(_0x58a8bd),_0x212fdb=_0x2f362f instanceof _0x36cf87;return _0x2f362f['bind']('isEnabled')['to'](_0x39d311,'isEnabled'),_0x2f362f['set']({'label':t(_0x212fdb?'Footnote':'Insert\x20footnote'),'icon':_0xa6776d,'tooltip':!0x0}),_0x2f362f['on']('execute',()=>{_0x39d311['execute'](),_0x298fab['editing']['view']['focus']();}),_0x2f362f;};}class nt extends _0x159ee2{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 _0xdfca9b{['refresh'](){const {editor:_0x4f0538}=this,_0x49853f=_0x4f0538['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x49853f,this['value']=_0x49853f?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x507ee0}){const {editor:_0x300b5d}=this,_0x51a5c6=_0x300b5d['plugins']['get'](c),_0x5ccf7c=_0x51a5c6['getFootnotesDefinitionsObjectElement']();_0x5ccf7c&&Q['includes'](_0x507ee0)&&_0x300b5d['model']['change'](_0x1d6470=>{_0x1d6470['setAttribute']('footnotesListStyle',_0x507ee0,_0x5ccf7c),_0x51a5c6['_updateFootnotesCounters'](_0x1d6470);});}}class b extends _0xdfca9b{['refresh'](){const {editor:_0xec298b}=this,_0x44ab60=_0xec298b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x44ab60,this['value']=_0x44ab60?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1eed3f}){const {editor:_0x55ee6b}=this,_0x22b808=_0x55ee6b['plugins']['get'](c),_0x5b6507=_0x22b808['getFootnotesDefinitionsObjectElement']();_0x5b6507&&Number['isInteger'](_0x1eed3f)&&_0x55ee6b['model']['change'](_0x199537=>{_0x199537['setAttribute']('footnotesListStart',_0x1eed3f,_0x5b6507),_0x22b808['_updateFootnotesCounters'](_0x199537);});}}class P extends _0x159ee2{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4adfd5}=this;_0x4adfd5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4adfd5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4adfd5['commands']['add']('footnotesStyle',new S(_0x4adfd5)),_0x4adfd5['commands']['add']('footnotesStart',new b(_0x4adfd5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x54a14f}=this,{schema:_0x32eddb}=_0x54a14f['model'];_0x32eddb['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3c840c}=this,{conversion:_0x1534f4,model:_0x4a1a96}=_0x3c840c,{schema:_0x40597a}=_0x4a1a96;_0x1534f4['for']('upcast')['add'](_0x57e398=>{_0x57e398['on']('element:ol',(_0x15c66a,_0x5a3475,_0x350ac0)=>{const _0x544e11=_0x5a3475['viewItem'],_0x395f15=_0x5a3475['modelCursor']?.['parent'];_0x544e11['hasClass']('footnotes-list')&&_0x395f15?.['is']('element','footnotesDefinitions')&&(function(_0x459205,_0x29cfd7,_0x32dcac,_0x1488d6){if(!_0x1488d6['checkAttribute'](_0x29cfd7,'footnotesListStart'))return;let _0x470b32=0x1;const _0x309d4d=_0x32dcac['consumable']['consume'](_0x459205,{'attributes':'start'});if(_0x309d4d){const _0x407394=Number['parseInt'](_0x459205['getAttribute']('start'),0xa);Number['isNaN'](_0x407394)||(_0x470b32=_0x407394);}!_0x309d4d&&_0x29cfd7['hasAttribute']('footnotesListStart')||_0x32dcac['writer']['setAttribute']('footnotesListStart',_0x470b32,_0x29cfd7);}(_0x544e11,_0x395f15,_0x350ac0,_0x40597a),function(_0xf85cfa,_0x58285b,_0x4da006,_0x43f304){if(!_0x43f304['checkAttribute'](_0x58285b,'footnotesListStyle'))return;let _0x43e3c2='decimal',_0x28e0f5=!0x1;if(_0x4da006['consumable']['consume'](_0xf85cfa,{'attributes':'type'})){const _0x510ac0={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xf85cfa['getAttribute']('type')];_0x510ac0&&(_0x43e3c2=_0x510ac0),_0x28e0f5=!0x0;}_0x4da006['consumable']['consume'](_0xf85cfa,{'styles':'list-style-type'})&&(_0x43e3c2=_0xf85cfa['getStyle']('list-style-type'),_0x28e0f5=!0x0),!_0x28e0f5&&_0x58285b['hasAttribute']('footnotesListStyle')||_0x4da006['writer']['setAttribute']('footnotesListStyle',_0x43e3c2,_0x58285b);}(_0x544e11,_0x395f15,_0x350ac0,_0x40597a));});}),_0x1534f4['for']('downcast')['add'](_0x45be0a=>{_0x45be0a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x212a93,_0x329045,_0xbb1f71)=>{if(!_0xbb1f71['consumable']['consume'](_0x329045['item'],_0x212a93['name']))return;const _0x28ba98=C(_0x329045['item'],_0xbb1f71['mapper']),{attributeNewValue:_0xb6f552}=_0x329045;null==_0xb6f552||0x1===_0xb6f552?_0xbb1f71['writer']['removeAttribute']('start',_0x28ba98):_0xbb1f71['writer']['setAttribute']('start',String(_0xb6f552),_0x28ba98);}),_0x45be0a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x57eac1,_0x481ca3,_0x4db4ac)=>{if(!_0x4db4ac['consumable']['consume'](_0x481ca3['item'],_0x57eac1['name']))return;const _0x33b692=C(_0x481ca3['item'],_0x4db4ac['mapper']),{attributeNewValue:_0x145c65}=_0x481ca3;_0x145c65&&'decimal'!==_0x145c65?_0x4db4ac['writer']['setStyle']('list-style-type',_0x145c65,_0x33b692):_0x4db4ac['writer']['removeStyle']('list-style-type',_0x33b692);});});}['_definePostfixer'](){const {editor:_0xe42bf5}=this,{model:_0x3b13e7}=_0xe42bf5,_0x2ebca1=_0xe42bf5['plugins']['get'](c),_0x247dd6=this['_getDefaultListStyle'](),_0x1e0318=this['_getDefaultStartIndex']();_0x3b13e7['document']['registerPostFixer'](_0x44e35a=>{const _0x102b26=_0x3b13e7['document']['differ']['getChanges']();let _0x57bbda=!0x1;for(const _0x13935e of _0x102b26){if('insert'!==_0x13935e['type']||'$text'===_0x13935e['name'])continue;const _0x3fa2bd=_0x3b13e7['createRangeOn'](_0x13935e['position']['nodeAfter']);for(const _0x82c6f5 of _0x3fa2bd['getItems']())_0x82c6f5['is']('element','footnotesDefinitions')&&(!_0x82c6f5['hasAttribute']('footnotesListStart')&&_0x3b13e7['schema']['checkAttribute'](_0x82c6f5,'footnotesListStart')&&(_0x44e35a['setAttribute']('footnotesListStart',_0x1e0318,_0x82c6f5),_0x57bbda=!0x0),!_0x82c6f5['hasAttribute']('footnotesListStyle')&&_0x3b13e7['schema']['checkAttribute'](_0x82c6f5,'footnotesListStyle')&&(_0x44e35a['setAttribute']('footnotesListStyle',_0x247dd6,_0x82c6f5),_0x57bbda=!0x0));}return _0x57bbda&&_0x2ebca1['_updateFootnotesCounters'](_0x44e35a),_0x57bbda;});}['_defineFormatter'](){const {editor:_0x476e51}=this;_0x476e51['plugins']['get'](c)['setFootnoteFormatter'](_0x2dd02e=>this['_formatFootnoteListValue'](_0x2dd02e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3de880,value:_0x3f5b2c,digits:_0x2d040c}){const _0x446fc=_0x3de880['getAttribute']('footnotesListStyle'),_0x3a0822=_0x3de880['getAttribute']('footnotesListStart'),_0x4c19f3=Math['floor'](_0x3f5b2c)+(_0x3a0822??0x1)-0x1;switch(_0x446fc){case'decimal-leading-zero':return function(_0x417a0a,_0x11670c){return String(_0x417a0a)['padStart'](_0x11670c,'0');}(_0x4c19f3,Math['max'](0x2,_0x2d040c));case'lower-alpha':case'lower-latin':return M(_0x4c19f3,!0x1);case'upper-alpha':case'upper-latin':return M(_0x4c19f3,!0x0);case'lower-roman':return V(_0x4c19f3,!0x1);case'upper-roman':return V(_0x4c19f3,!0x0);default:return String(_0x4c19f3);}}}function C(_0x5eb9ed,_0x1955f5){const _0x3350a6=_0x1955f5['toViewElement'](_0x5eb9ed);return Array['from'](_0x3350a6['getChildren']())['find'](_0x52b8e9=>_0x52b8e9['is']('element','ol')&&_0x52b8e9['hasClass']('footnotes-list'));}function M(_0x3457af,_0x4dc580){let _0x266b9f='',_0x2cee3b=_0x3457af;for(;_0x2cee3b>0x0;){const _0xa11726=(_0x2cee3b-0x1)%0x1a;_0x266b9f=String['fromCharCode'](0x61+_0xa11726)+_0x266b9f,_0x2cee3b=Math['floor']((_0x2cee3b-0x1)/0x1a);}return _0x4dc580?_0x266b9f['toUpperCase']():_0x266b9f;}const N=[{'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 V(_0x44c872,_0x2a9fd7){let _0x4206fa='',_0x5abb4a=_0x44c872;for(const {value:_0x55248d,numeral:_0x20ef3c}of N)for(;_0x5abb4a>=_0x55248d;)_0x4206fa+=_0x20ef3c,_0x5abb4a-=_0x55248d;return _0x2a9fd7?_0x4206fa:_0x4206fa['toLowerCase']();}class H extends _0x4ac842{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x43f46e();['focusCycler'];constructor(_0x49a333,{styleButtonViews:_0x2b4325,styleGridAriaLabel:_0x159ca0}){super(_0x49a333),(this['focusCycler']=new _0x1bea9e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2b4325,_0x159ca0),[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 _0xf2839f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0xf2839f['element']);_0x534e1f({'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 _0x2dfd9b=_0x21fcc8=>_0x21fcc8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2dfd9b),this['keystrokes']['set']('arrowleft',_0x2dfd9b),this['keystrokes']['set']('arrowup',_0x2dfd9b),this['keystrokes']['set']('arrowdown',_0x2dfd9b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xc737ec,_0x43e8bc){const _0x38ff4b=new _0x4ac842(this['locale']);return _0x38ff4b['children']=_0x38ff4b['createCollection'](),_0x38ff4b['children']['addMany'](_0xc737ec),_0x38ff4b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x43e8bc,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x38ff4b['children']}),_0x38ff4b['children']['delegate']('execute')['to'](this),_0x38ff4b['focus']=function(){for(const _0x49d07d of this['children'])if(_0x49d07d instanceof _0x1e890f&&_0x49d07d['isOn'])return void _0x49d07d['focus']();this['children']['first']['focus']();},_0x38ff4b['focusTracker']=new et(),_0x38ff4b['keystrokes']=new ot(),_0x38ff4b['render'](),_0x38ff4b['keystrokes']['listenTo'](_0x38ff4b['element']),this['children']['add'](_0x38ff4b),_0x38ff4b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x29327a=this['_createStartIndexPropertyView'](),_0x59d478=[_0x29327a],_0x217a57=new tt(this['locale'],_0x59d478);return _0x217a57['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x217a57['buttonView']['bind']('isEnabled')['toMany'](_0x59d478,'isEnabled',(..._0x485c2f)=>_0x485c2f['some'](_0x216814=>_0x216814)),_0x217a57['buttonView']['on']('change:isEnabled',(_0x5393f9,_0x24aae1,_0x3205fa)=>{_0x3205fa||(_0x217a57['isCollapsed']=!0x0);}),this['children']['add'](_0x217a57),[_0x29327a,_0x217a57];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x18085d=new st(this['locale'],it);return _0x18085d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x18085d['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x18085d['fieldView']['on']('input',()=>{const _0x2ac430=_0x18085d['fieldView']['element'],_0x3b5643=_0x2ac430['valueAsNumber'];Number['isNaN'](_0x3b5643)?_0x18085d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x2ac430['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3b5643}):_0x18085d['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x18085d;}}class j extends _0x159ee2{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x55aa71,_0x5056f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2285f5}=this,{componentFactory:_0x507d2b}=_0x2285f5['ui'];_0x2285f5['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x507d2b['add']('footnotesStyle',function(_0x35b096){return _0x27faa7=>{const {t:t}=_0x27faa7,_0x5ea2ac=_0x35b096['commands']['get']('footnotesStyle'),_0x1ba44b=_0x29e202(_0x27faa7),{buttonView:_0x53854d}=_0x1ba44b;return _0x1ba44b['class']='ck-footnotes-styles-dropdown',_0x1ba44b['bind']('isEnabled')['to'](_0x5ea2ac,'isEnabled'),_0x53854d['set']({'label':t('Footnotes\x20style'),'icon':_0xa6776d,'tooltip':!0x0}),_0x1ba44b['once']('change:isOpen',()=>{const _0x216a1e=function({editor:_0x420ade,dropdownView:_0x556884}){const {t:t}=_0x420ade['locale'],_0x4472d3=t('Footnotes\x20definitions\x20styles'),_0x5397e3=function(_0x55e566){const t=_0x55e566['locale']['t'],_0x23edf9=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x420b8a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x46a556},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2f1382},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x435546},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2237d3},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5c1e20}];return _0x23edf9['map'](function(_0x31279f){const _0x1a9330=_0x31279f['locale'];return({label:_0x390455,icon:_0x461daf,tooltip:_0xdfacbd,style:_0x44af7d})=>{const _0x38c73d=_0x31279f['commands']['get']('footnotesStyle'),_0x319877=new _0x1e890f(_0x1a9330);return _0x319877['set']({'label':_0x390455,'icon':_0x461daf,'tooltip':_0xdfacbd}),_0x319877['bind']('isOn')['to'](_0x38c73d,'value',_0x3b2bc1=>_0x3b2bc1===_0x44af7d),_0x319877['bind']('isEnabled')['to'](_0x38c73d,'isEnabled'),_0x319877['on']('execute',()=>{_0x31279f['execute']('footnotesStyle',{'value':_0x44af7d}),_0x31279f['editing']['view']['focus']();}),_0x319877;};}(_0x55e566));}(_0x420ade),_0x3fa183=new H(_0x420ade['locale'],{'styleGridAriaLabel':_0x4472d3,'styleButtonViews':_0x5397e3});return _0x3fa183['delegate']('execute')['to'](_0x556884),_0x3fa183['on']('footnotesListStart',(_0x5b2b5c,_0x19bcc6)=>{_0x420ade['execute']('footnotesStart',{'value':_0x19bcc6['startIndex']});}),_0x3fa183;}({'editor':_0x35b096,'dropdownView':_0x1ba44b});_0x1ba44b['panelView']['children']['add'](_0x216a1e);}),_0x1ba44b;};}(_0x2285f5));}['afterInit'](){const {editor:_0x566076}=this,{t:t}=_0x566076['locale'],_0x1676dd=_0x566076['plugins']['get'](_0x5056f8),{defaultPositions:_0x24435f}=_0x4f6eb3;_0x1676dd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x566076['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x5d3a3b=>{let _0x3851dd=_0x5d3a3b['getFirstPosition']()?.['parent'];return _0x3851dd?.['is']('$text')&&(_0x3851dd=_0x3851dd['parent']),_0x3851dd?.['is']('element')?_0x3851dd['findAncestor'](J):null;},'positions':[_0x24435f['southArrowNorth'],_0x24435f['southArrowNorthMiddleWest'],_0x24435f['southArrowNorthMiddleEast'],_0x24435f['southArrowNorthWest'],_0x24435f['southArrowNorthEast'],_0x24435f['northArrowSouth'],_0x24435f['northArrowSouthMiddleWest'],_0x24435f['northArrowSouthMiddleEast'],_0x24435f['northArrowSouthWest'],_0x24435f['northArrowSouthEast'],_0x24435f['viewportStickyNorth']]});}}class lt extends _0x159ee2{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x7f6a27,Command as _0x1849a9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x41f154,isWidget as _0x40e19a,toWidgetEditable as _0x4da06a,WidgetToolbarRepository as _0x850f85}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x124e5b,logWarning as _0xa045ad,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xe15985,ClickObserver as _0x14ca82}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2cf428}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3de1ec,ButtonView as _0x285e75,View as _0x1c8606,ViewCollection as _0x573d1f,FocusCycler as _0x59a5b9,addKeyboardHandlingForGrid as _0x48ec16,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x16c286,BalloonPanelView as _0x5e807c,createDropdown as _0x45bc8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2a043f,IconListStyleDecimal as _0x4a05ec,IconListStyleDecimalLeadingZero as _0x401dfc,IconListStyleLowerRoman as _0x3bdc31,IconListStyleUpperRoman as _0x5491ae,IconListStyleLowerLatin as _0x57ead2,IconListStyleUpperLatin as _0x57e61b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2e9efb,_0xffa8dc){this['_model']=_0x2e9efb,this['_elementName']=_0xffa8dc['elementName'],this['_getElementKey']=_0xffa8dc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2abec4){const _0x2cfb91=new Set(),_0x557eb6=new Map();for(const _0x3e96f1 of _0x2abec4){if('insert'===_0x3e96f1['type']&&'$text'!==_0x3e96f1['name']&&_0x3e96f1['position']['nodeAfter']){const _0x292fe9=this['_model']['createRangeOn'](_0x3e96f1['position']['nodeAfter']);for(const _0xe4b28f of _0x292fe9['getItems']()){if(!_0xe4b28f['is']('element',this['_elementName']))continue;const _0x388957=this['_getElementKey'](_0xe4b28f);_0x557eb6['has'](_0x388957)||_0x557eb6['set'](_0x388957,[]),_0x557eb6['get'](_0x388957)['push'](_0xe4b28f);}}if('remove'===_0x3e96f1['type']&&_0x3e96f1['name']===this['_elementName']){const _0x26db27=this['_getElementKey']({'getAttribute':_0xa579e4=>_0x3e96f1['attributes']['get'](_0xa579e4)});_0x2cfb91['add'](_0x26db27);}}for(const [_0x5d9693,_0x239c57]of this['_trackedElements'])'$graveyard'===_0x239c57['root']['rootName']&&_0x2cfb91['add'](_0x5d9693);for(const _0x11a971 of _0x2cfb91)this['_trackedElements']['delete'](_0x11a971);for(const [_0x36fb93,_0x463857]of _0x557eb6)this['_trackedElements']['set'](_0x36fb93,_0x463857[_0x463857['length']-0x1]);const _0xc2c6a8=new Set();for(const [_0x2bb343,_0x57351e]of _0x557eb6)_0x2cfb91['has'](_0x2bb343)&&(_0xc2c6a8['add'](_0x57351e[0x0]),_0x57351e['length']>0x1?_0x557eb6['set'](_0x2bb343,_0x57351e['slice'](0x1)):_0x557eb6['delete'](_0x2bb343),_0x2cfb91['delete'](_0x2bb343));return{'removed':Array['from'](_0x2cfb91),'inserted':Array['from'](_0x557eb6['values']())['flat'](),'moved':Array['from'](_0xc2c6a8)};}}class c extends _0x7f6a27{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1adc6){super(_0xd1adc6),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x438acf=>_0x438acf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x57cb1d=>_0x57cb1d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x48593e}=this,{model:_0x3d9440,data:_0x7b8f47}=_0x48593e;_0x3d9440['document']['registerPostFixer'](_0x508ed6=>{const _0x3397dd=_0x3d9440['document']['differ']['getChanges']();let _0x588d99=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_handleFootnoteReferencesChanges'](_0x508ed6,_0x3397dd)&&(_0x588d99=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x508ed6)&&(_0x588d99=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x508ed6)&&(_0x588d99=!0x0),this['_sortFootnoteDefinitions'](_0x508ed6)&&(_0x588d99=!0x0),_0x588d99;}),this['listenTo'](_0x3d9440['document'],'change:data',()=>{_0x3d9440['enqueueChange']({'isUndoable':!0x1},_0x30f937=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x30f937);});},{'priority':'low'}),this['listenTo'](_0x7b8f47,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5988c7){return this['_footnotes']['find'](_0x4c9743=>_0x4c9743['id']===_0x5988c7)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5eee85){this['_footnoteFormatter']=_0x5eee85;}['_updateFootnotesCounters'](_0x4febee,_0x209cdf=0x0){let _0x20db5f=!0x1;for(let _0x380932=_0x209cdf;_0x380932<this['_footnotes']['length'];_0x380932++)this['_updateFootnoteRefCounter'](_0x4febee,_0x380932)&&(_0x20db5f=!0x0);return _0x20db5f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x10c1bc,_0x400229){const _0x3651bd=_0x10c1bc['createElement']('footnotesDefinitions',{});return _0x10c1bc['append'](_0x3651bd,_0x400229),this['_footnotesDefinitions']=_0x3651bd,_0x3651bd;}['_ensureFootnotesDefinitionsContainerExists'](_0x3b7566){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a6e6d=this['_footnotes'][0x0]['reference']['root'],_0x47d45e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3b7566,_0x4a6e6d);for(const _0x1ae7a0 of this['_footnotes'])_0x1ae7a0['definition']['parent']||_0x3b7566['insert'](_0x1ae7a0['definition'],_0x47d45e,'end');this['_updateFootnotesCounters'](_0x3b7566);}['_handleFootnotesDefinitionsObjectChanges'](_0x115213,_0x374945){let _0x367078=!0x1;const {inserted:_0x45409b,removed:_0x1e269b,moved:_0x434482}=this['_footnoteDefsContainerTracker']['getChanges'](_0x374945);if(_0x434482['length']&&(this['_footnotesDefinitions']=_0x434482[0x0]),_0x45409b['length']){if(_0x45409b['length']>0x1||this['_footnotesDefinitions']&&_0x45409b['some'](_0x9775a0=>_0x9775a0!==this['_footnotesDefinitions'])){const _0xa1439b=_0x115213['createElement']('footnotesDefinitions',{}),_0x72d6e7=[];this['_footnotesDefinitions']&&_0x72d6e7['push'](this['_footnotesDefinitions']),_0x72d6e7['push'](..._0x45409b),_0x115213['insert'](_0xa1439b,_0x72d6e7[0x0],'before');for(const _0x1fa73d of _0x72d6e7)_0x115213['move'](_0x115213['createRangeIn'](_0x1fa73d),_0x115213['createPositionAt'](_0xa1439b,'end')),_0x115213['remove'](_0x1fa73d);this['_footnotesDefinitions']=_0xa1439b,this['_updateFootnotesCounters'](_0x115213),_0x367078=!0x0;}else this['_footnotesDefinitions']=_0x45409b[0x0];}if(_0x1e269b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1701ee of this['_footnotes'])_0x115213['remove'](_0x1701ee['reference']),_0x367078=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x367078;}['_handleFootnoteDefinitionsChanges'](_0x315d75,_0xe3c096){let _0x3a976d=!0x1;const _0x300425=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x190bd4,moved:_0xfa596c}=this['_footnoteDefsTracker']['getChanges'](_0xe3c096);for(const _0x35b223 of[..._0xfa596c,..._0x190bd4]){const _0x3b1c0d=_0x35b223['getAttribute']('footnoteId'),_0x14f148=this['getFootnote'](_0x3b1c0d);_0x14f148&&(_0x14f148['definition']=_0x35b223),_(_0x315d75,_0x300425,_0x35b223)&&(_0x3a976d=!0x0);}return _0x3a976d;}['_handleFootnoteReferencesChanges'](_0x35b3ed,_0x11c2d0){let _0x481d3c=!0x1;const {removed:_0x213813,inserted:_0x8cf6bd,moved:_0x43b464}=this['_footnoteRefsTracker']['getChanges'](_0x11c2d0);for(const _0x441b27 of _0x213813)this['_handleRemoveFootnoteReferenceById'](_0x35b3ed,_0x441b27)&&(_0x481d3c=!0x0);for(const _0x889807 of _0x8cf6bd)this['_handleInsertedFootnoteReference'](_0x35b3ed,_0x889807)&&(_0x481d3c=!0x0);for(const _0x48d102 of _0x43b464)this['_handleMovedFootnoteReference'](_0x35b3ed,_0x48d102)&&(_0x481d3c=!0x0);return _0x481d3c;}['_handleFootnotesDefinitionsObjectSync'](_0x53f392){if(!this['_footnotesDefinitions'])return!0x1;let _0x4d4b3e=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3e6871=[];for(const _0x87981 of this['_footnotesDefinitions']['getChildren']()){const _0x37230a=_0x87981['getAttribute']('footnoteId');this['getFootnote'](_0x37230a)||(_0x3e6871['unshift'](_0x87981),_0x4d4b3e=!0x0);}for(const _0x23c637 of _0x3e6871)_0x53f392['remove'](_0x23c637);}const _0x5081b3=new Set(),_0x303096=[];for(const _0x53d776 of this['_footnotesDefinitions']['getChildren']()){const _0x3603e1=_0x53d776['getAttribute']('footnoteId');_0x5081b3['has'](_0x3603e1)?(_0x303096['unshift'](_0x53d776),_0x4d4b3e=!0x0):_0x5081b3['add'](_0x3603e1);}for(const _0x58134f of _0x303096)_0x53f392['remove'](_0x58134f);return this['_footnotesDefinitions']['childCount']||(_0x53f392['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4d4b3e=!0x0),_0x4d4b3e;}['_handleInsertedFootnoteReference'](_0x510f52,_0xf471dc){if(this['_footnotes']['find'](_0x300c4a=>_0x300c4a['reference']===_0xf471dc))return!0x1;let _0xb2c320=!0x1;const _0x222044=_0xf471dc['getAttribute']('footnoteId'),_0x15c7c3=this['getFootnote'](_0x222044);_0x15c7c3&&(_0x510f52['remove'](_0x15c7c3['reference']),this['_footnotes']=this['_footnotes']['filter'](_0x20cd93=>_0x20cd93['id']!==_0x222044),_0xb2c320=!0x0);let _0x4d75ca=this['_footnotesDefinitions']?function(_0x3aa081,_0x387e13){for(const _0x3cd280 of _0x3aa081['getChildren']())if(_0x3cd280['getAttribute']('footnoteId')===_0x387e13)return _0x3cd280;return null;}(this['_footnotesDefinitions'],_0x222044):null;_0x4d75ca||(_0x4d75ca=_0x510f52['createElement']('footnoteDefinition',{'footnoteId':_0x222044}),this['_footnotesDefinitions']&&(_0x510f52['insert'](_0x4d75ca,this['_footnotesDefinitions'],'end'),_0xb2c320=!0x0));const _0x30c62c={'id':_0x222044,'reference':_0xf471dc,'definition':_0x4d75ca},_0x1219ac=I(this['editor']['model'],this['_footnotes'],_0xf471dc);return this['_footnotes']['splice'](_0x1219ac,0x0,_0x30c62c),this['_updateFootnotesCounters'](_0x510f52,_0x1219ac)&&(_0xb2c320=!0x0),_0xb2c320;}['_handleRemoveFootnoteReferenceById'](_0x2f4895,_0x22de45){const _0x12bacc=this['_footnotes']['findIndex'](_0x1d362c=>_0x1d362c['id']===_0x22de45);if(-0x1===_0x12bacc)return!0x1;let _0x2d4a2e=!0x1;const _0x522d97=this['_footnotes'][_0x12bacc];return'$graveyard'!==_0x522d97['definition']['root']['rootName']&&(_0x2f4895['remove'](_0x522d97['definition']),_0x2d4a2e=!0x0),this['_footnotes']['splice'](_0x12bacc,0x1),this['_updateFootnotesCounters'](_0x2f4895,_0x12bacc)&&(_0x2d4a2e=!0x0),_0x2d4a2e;}['_handleMovedFootnoteReference'](_0x364e24,_0x19b8d0){const _0x33b958=_0x19b8d0['getAttribute']('footnoteId'),_0x3248c8=this['_footnotes']['findIndex'](_0xba884e=>_0xba884e['id']===_0x33b958),_0xe57829=this['_footnotes'][_0x3248c8];let _0x4eefa0=!0x1;_0xe57829['reference']=_0x19b8d0,this['_footnotes']['splice'](_0x3248c8,0x1);const _0x4113f6=I(this['editor']['model'],this['_footnotes'],_0x19b8d0);return this['_footnotes']['splice'](_0x4113f6,0x0,_0xe57829),this['_updateFootnotesCounters'](_0x364e24,Math['min'](_0x3248c8,_0x4113f6))&&(_0x4eefa0=!0x0),_0x4eefa0;}['_updateFootnoteRefCounter'](_0x1f443c,_0x1593cb){if(!this['_footnotesDefinitions'])return!0x1;const _0x964d89=this['_footnotes'][_0x1593cb];let _0x11ad63;return _0x11ad63=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x964d89,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1593cb+0x1}):String(_0x1593cb+0x1),_0x964d89['reference']['getAttribute']('footnoteCounter')!=_0x11ad63&&(_0x1f443c['setAttribute']('footnoteCounter',_0x11ad63,_0x964d89['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x46fdb4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x343037,_0x3997f7){if(_0x343037['length']!==_0x3997f7['length'])return!0x1;for(let _0x446333=0x0;_0x446333<_0x343037['length'];_0x446333++)if(_0x343037[_0x446333]!==_0x3997f7[_0x446333])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x55fb46=>_0x55fb46['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x56ad12=>_0x56ad12['getAttribute']('footnoteId'))))return!0x1;let _0x238997=!0x1;for(let _0x5507c5=0x0;_0x5507c5<this['_footnotes']['length'];_0x5507c5++){const _0xe517c0=this['_footnotes'][_0x5507c5],_0x48c463=_0x46fdb4['createPositionBefore'](_0xe517c0['definition']),_0x2df215=_0x46fdb4['createPositionAt'](this['_footnotesDefinitions'],_0x5507c5);_0x48c463['isEqual'](_0x2df215)||(_0x46fdb4['move'](_0x46fdb4['createRangeOn'](_0xe517c0['definition']),_0x2df215),_0x238997=!0x0);}return _0x238997;}['_ensureFootnotesReferencesHaveProperOrder'](_0xe9be52){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1056a4}=this['editor'];let _0x4ee147=!0x1;for(let _0x31af11=0x0;_0x31af11<this['_footnotes']['length']-0x1;_0x31af11++){const _0x370ad0=this['_footnotes'][_0x31af11],_0x2ff717=this['_footnotes'][_0x31af11+0x1],_0x274711=_0x1056a4['createPositionBefore'](_0x370ad0['reference']),_0x5846ec=_0x1056a4['createPositionBefore'](_0x2ff717['reference']);'after'===_0x274711['compareWith'](_0x5846ec)&&(this['_handleMovedFootnoteReference'](_0xe9be52,_0x370ad0['reference']),_0x31af11=-0x1,_0x4ee147=!0x0);}return _0x4ee147;}}function _(_0x34fbb0,_0x5eaa09,_0x227666){if(_0x227666['childCount'])return!0x1;const _0x311e9d=_0x5eaa09?'paragraph':'footnoteInlineContent';return _0x34fbb0['insert'](_0x34fbb0['createElement'](_0x311e9d),_0x227666),!0x0;}function I(_0x1e2ede,_0x34167e,_0x372996){if(0x0===_0x34167e['length'])return 0x0;const _0x31ac73=_0x1e2ede['createPositionBefore'](_0x372996);for(let _0x41cefc=0x0;_0x41cefc<_0x34167e['length'];_0x41cefc++){const _0x5914db=_0x34167e[_0x41cefc],_0x3cd6f9=_0x1e2ede['createPositionBefore'](_0x5914db['reference']);if('before'===_0x31ac73['compareWith'](_0x3cd6f9))return _0x41cefc;}const _0x2dece0=_0x372996['root'];let _0x54585d=-0x1;for(let _0x147ce4=_0x34167e['length']-0x1;_0x147ce4>=0x0;_0x147ce4--)if(_0x34167e[_0x147ce4]['reference']['root']===_0x2dece0){_0x54585d=_0x147ce4;break;}if(-0x1!==_0x54585d)return _0x54585d+0x1;const _0x5ee3ce=_0x1e2ede['document']['getRootNames'](),_0x211c31=_0x5ee3ce['indexOf'](_0x2dece0['rootName']),_0xb7adff=_0x5ee3ce[_0x211c31+0x1];if(_0xb7adff){for(let _0x2f1893=0x0;_0x2f1893<_0x34167e['length'];_0x2f1893++)if(_0x34167e[_0x2f1893]['reference']['root']['rootName']===_0xb7adff)return _0x2f1893;}return _0x34167e['length'];}class w extends _0x1849a9{['refresh'](){const _0x10d0ae=this['editor']['model']['document']['selection'],_0x353eb8=this['_getPositionToInsertFootnote'](_0x10d0ae);this['isEnabled']=!!_0x353eb8;}['execute'](_0x46d892){const {editor:_0xe47a4}=this,{model:_0x39486f}=_0xe47a4,{selection:_0x56d3ce}=_0x39486f['document'],_0x36157f=this['_getPositionToInsertFootnote'](_0x56d3ce);if(!_0x36157f)return;const _0xe903c5=_0xe47a4['plugins']['get']('FootnotesEditing'),_0x15af50=_0x46d892?.['footnoteId']??_0x124e5b();!function(_0x4f4215){return'string'==typeof _0x4f4215&&_0x4f4215['length']>0x0&&!/\s/['test'](_0x4f4215)&&!/^\d/['test'](_0x4f4215);}(_0x15af50)?_0xa045ad('insert-footnote-command-executed-with-invalid-id'):(_0x39486f['change'](_0x829327=>{const _0x18b5fc=_0x829327['createElement']('footnoteRef',{'footnoteId':_0x15af50});_0x39486f['insertObject'](_0x18b5fc,_0x36157f,null);}),_0xe903c5['_moveSelectionToFootnoteDefinition'](_0x15af50));}['_getPositionToInsertFootnote'](_0x8450ca){const {model:_0x394624}=this['editor'],{schema:_0x35fc95}=_0x394624,_0x4028ac=_0x8450ca['getFirstRange']();for(const _0x36d657 of _0x4028ac['getItems']())if(_0x35fc95['isBlock'](_0x36d657)||_0x35fc95['isObject'](_0x36d657))return null;const _0x2c89ec=_0x4028ac['end'];return _0x35fc95['checkChild'](_0x2c89ec,'footnoteRef')?_0x2c89ec:null;}}class r extends _0x7f6a27{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a328f}=this;_0x5a328f['config']['define']('footnotes.multiBlock',!0x0),_0x5a328f['commands']['add']('insertFootnote',new w(_0x5a328f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4512cf){const _0x1762e5=_0xe188b7([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]),_0xefc616=0x47a28506,_0x3eb671=0x47a5f266^_0xefc616,_0x5407a9=window[_0xe188b7([0x44,0x61,0x74,0x65])][_0xe188b7([0x6e,0x6f,0x77])](),_0x1d8612=_0x4512cf[_0xe188b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4676e3=new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b83b7=>{_0x1d8612[_0xe188b7([0x6f,0x6e,0x63,0x65])](_0xe188b7([0x72,0x65,0x61,0x64,0x79]),_0x1b83b7);}),_0x1a7c12={[_0xe188b7([0x6b,0x74,0x79])]:_0xe188b7([0x45,0x43]),[_0xe188b7([0x75,0x73,0x65])]:_0xe188b7([0x73,0x69,0x67]),[_0xe188b7([0x63,0x72,0x76])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36]),[_0xe188b7([0x78])]:_0xe188b7([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]),[_0xe188b7([0x79])]:_0xe188b7([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]),[_0xe188b7([0x61,0x6c,0x67])]:_0xe188b7([0x45,0x53,0x32,0x35,0x36])},_0x36fd7d=_0x1d8612[_0xe188b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe188b7([0x67,0x65,0x74])](_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4633a2(){let _0x32f4ee,_0x16dc69=null,_0x5b3c2b=null;try{if(_0x36fd7d==_0xe188b7([0x47,0x50,0x4c]))return _0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32f4ee=_0x1b16c1(),!_0x32f4ee)return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b3c2b=_0x1994b4(_0x32f4ee[_0xe188b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32f4ee[_0xe188b7([0x6a,0x74,0x69])])),await _0x4515e0()?_0x3c43d()?_0x117f1f()?_0xe188b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a1b43()?(_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe188b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x16dc69=_0x1475ac(_0xe188b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2838e7()):_0xe188b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe188b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x117f1f(){const _0x49405c=[_0xe188b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe188b7([0x74,0x72,0x69,0x61,0x6c])][_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5407a9/0x3e8:0xe10*_0x3eb671;return _0x32f4ee[_0xe188b7([0x65,0x78,0x70])]<_0x49405c;}function _0x3c43d(){const _0x43fd1b=_0x32f4ee[_0xe188b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x43fd1b&&(!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a]))||!!_0x43fd1b[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x46,0x4f,0x4f])));}function _0x3a1b43(){const _0x4463b0=_0x32f4ee[_0xe188b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4463b0||0x0==_0x4463b0[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf588a7}=new URL(window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4463b0[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf588a7))return!0x0;const _0x400235=_0xf588a7[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));return _0x4463b0[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x470356=>_0x470356[_0xe188b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe188b7([0x2a])))[_0xe188b7([0x6d,0x61,0x70])](_0x4be1de=>_0x4be1de[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])))[_0xe188b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182c8e=>_0x182c8e[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x6d,0x61,0x70])](_0x2a4a97=>Array(_0x400235[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a4a97[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe188b7([0x66,0x69,0x6c,0x6c])](_0x2a4a97[0x0]===_0xe188b7([0x2a])?_0xe188b7([0x2a]):'')[_0xe188b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a4a97))[_0xe188b7([0x73,0x6f,0x6d,0x65])](_0x5208e3=>_0x400235[_0xe188b7([0x65,0x76,0x65,0x72,0x79])]((_0x151654,_0x431f03)=>_0x5208e3[_0x431f03]===_0x151654||_0x5208e3[_0x431f03]===_0xe188b7([0x2a])));}function _0x2838e7(){return _0x16dc69&&_0x5b3c2b?new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x137a96,_0x2062a8)=>{_0x16dc69[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x137a96,_0x2062a8),_0x5b3c2b[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x5eaa70=>{_0x5eaa70!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x137a96(_0x5eaa70);},_0x2062a8);}):_0x16dc69||_0x5b3c2b||_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1994b4(_0x4d8b72,_0x83407f){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d92d=>{if(_0x47785c())return _0x55d92d(_0xe188b7([0x56,0x61,0x6c,0x69,0x64]));_0x5d6f2d(),_0x1d8612[_0xe188b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xea9ab8=!0x1;const _0x5385d2=_0x124e5b();function _0x2a06c2(_0xe755b7){return!!_0xe755b7&&(typeof _0xe755b7===_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe755b7===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe755b7[_0xe188b7([0x74,0x68,0x65,0x6e])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe755b7[_0xe188b7([0x63,0x61,0x74,0x63,0x68])]===_0xe188b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x255d83(_0x54916d){_0x41fa68(_0x54916d)[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x343516=>{if(!_0x343516||_0x343516[_0xe188b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe188b7([0x6f,0x6b]))return _0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x522700(_0x2313a9(_0x5385d2+_0x83407f))!=_0x343516[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe188b7([0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0xca3e9f=>(_0x542bd8(),_0xca3e9f),()=>{const _0x4a2700=_0x11eac3();return null==_0x4a2700?(_0x542bd8(),_0xe188b7([0x56,0x61,0x6c,0x69,0x64])):_0xe188b7(_0x5407a9-_0x4a2700>(0x63ae0106^_0xefc616)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x55d92d)[_0xe188b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24a98a=0x47946b86^_0xefc616;function _0x542bd8(){const _0x41e8c1=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x19e850=_0x2babea(_0x522700(window[_0xe188b7([0x4d,0x61,0x74,0x68])][_0xe188b7([0x63,0x65,0x69,0x6c])](_0x5407a9/_0x24a98a)));window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41e8c1,_0x19e850);}function _0x11eac3(){const _0x28aeea=_0xe188b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x522700(_0x2313a9(_0x4d8b72)),_0x51aa44=window[_0xe188b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe188b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28aeea);return _0x51aa44?window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2babea(_0x51aa44),0x10)*_0x24a98a:null;}function _0x41fa68(_0x1cb25e){return new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38741d,_0x2fd407)=>{_0x1cb25e[_0xe188b7([0x74,0x68,0x65,0x6e])](_0x38741d,_0x2fd407),window[_0xe188b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fd407,0x47a351c6^_0xefc616);});}}_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53a7c5,_0x245462)=>{if(_0x245462[0x0]!=_0x4d8b72)return _0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x245462[0x1]={..._0x245462[0x1],[_0xe188b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5385d2};},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x68,0x69,0x67,0x68])}),_0x1d8612[_0xe188b7([0x6f,0x6e])](_0xe188b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x409d9a=>{_0x2a06c2(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xea9ab8=!0x0,_0x255d83(_0x409d9a[_0xe188b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe188b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe188b7([0x6c,0x6f,0x77])}),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>{_0xea9ab8||_0x55d92d(_0xe188b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47785c(){return _0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe188b7([0x61,0x75,0x74,0x6f]);}function _0x5d6f2d(){_0x1d8612[_0xe188b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe188b7([0x76,0x69,0x65,0x77])][_0xe188b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe188b7([0x61,0x75,0x74,0x6f]);}}function _0x1475ac(_0x504e12){const _0x22e5ad=[new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325955=>setTimeout(_0x325955,0x47abbbca^_0xefc616)),_0x4676e3[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb670=>{let _0x3fda7a=0x0;_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x6f,0x6e])](_0xe188b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x274227,_0x2bd07e)=>{_0x2bd07e[0x0][_0xe188b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fda7a++,_0x3fda7a==(0x47a284fe^_0xefc616)&&(_0x5eb670(),_0x274227[_0xe188b7([0x6f,0x66,0x66])]());});}))];return window[_0xe188b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe188b7([0x72,0x61,0x63,0x65])](_0x22e5ad)[_0xe188b7([0x74,0x68,0x65,0x6e])](()=>_0x504e12);}async function _0x17ac5e(){await _0x4676e3,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xe188b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x559c6b,_0x1d8612[_0xe188b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe188b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429dd3(_0x6f4039){const _0x4e9364=_0x4d80bb();_0x1d8612[_0x4e9364]=_0xe188b7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f4039,_0x6f4039!=_0xe188b7([0x56,0x61,0x6c,0x69,0x64])&&_0x17ac5e();}function _0x4d80bb(){const _0x445557=window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe188b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe188b7([0x6e,0x6f,0x77])]())[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe188b7([0x2e]),'');let _0x2694b7=_0xe188b7([0x75]);for(let _0x5778b7=0x0;_0x5778b7<_0x445557[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5778b7+=0x2){let _0x45fd95=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x445557[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5778b7,_0x5778b7+0x2));_0x45fd95>=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45fd95-=_0x1762e5[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2694b7+=_0x1762e5[_0x45fd95];}return _0x2694b7;}function _0x1b16c1(){const _0x5449ae=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e]));if(0x3!=_0x5449ae[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28aef8(_0x5449ae[0x1]);function _0x28aef8(_0x9def7c){const _0x5ef6b8=_0x204473(_0x9def7c);return _0x5ef6b8&&_0x16a2f2()?_0x5ef6b8:null;function _0x16a2f2(){const _0x326ea6=_0x5ef6b8[_0xe188b7([0x6a,0x74,0x69])],_0x48b5bc=window[_0xe188b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52d088={..._0x5ef6b8,[_0xe188b7([0x6a,0x74,0x69])]:_0x326ea6[_0xe188b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x326ea6[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52d088[_0xe188b7([0x76,0x63])],_0x2313a9(_0x52d088)==_0x48b5bc;}}}async function _0x4515e0(){let _0x31b1d7=!0x0;try{const _0x4a836d=_0x36fd7d[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])](_0xe188b7([0x2e])),[_0x5d6c75,_0x221545,_0x3c5d4d]=_0x4a836d;return _0x245787(_0x5d6c75),await _0x22a9f0(_0x5d6c75,_0x221545,_0x3c5d4d),_0x31b1d7;}catch{return!0x1;}function _0x245787(_0x587839){const _0x316d95=_0x204473(_0x587839);_0x316d95&&_0x316d95[_0xe188b7([0x61,0x6c,0x67])]==_0xe188b7([0x45,0x53,0x32,0x35,0x36])||(_0x31b1d7=!0x1);}async function _0x22a9f0(_0x5c6355,_0x562096,_0x16ef9d){const _0x322286=window[_0xe188b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe188b7([0x66,0x72,0x6f,0x6d])](_0x5a6dcd(_0x16ef9d),_0x38d4ef=>_0x38d4ef[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456ff3=new window[(_0xe188b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe188b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c6355+_0xe188b7([0x2e])+_0x562096),_0x5be8d5=window[_0xe188b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe188b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5be8d5)return;const _0x4087ce=await _0x5be8d5[_0xe188b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe188b7([0x6a,0x77,0x6b]),_0x1a7c12,{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe188b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5be8d5[_0xe188b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x45,0x43,0x44,0x53,0x41]),[_0xe188b7([0x68,0x61,0x73,0x68])]:{[_0xe188b7([0x6e,0x61,0x6d,0x65])]:_0xe188b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4087ce,_0x322286,_0x456ff3)||(_0x31b1d7=!0x1);}}function _0x204473(_0x401b18){return _0x401b18[_0xe188b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe188b7([0x65,0x79]))?JSON[_0xe188b7([0x70,0x61,0x72,0x73,0x65])](_0x5a6dcd(_0x401b18)):null;}function _0x5a6dcd(_0x521a30){return window[_0xe188b7([0x61,0x74,0x6f,0x62])](_0x521a30[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe188b7([0x2b]))[_0xe188b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe188b7([0x2f])));}function _0x2313a9(_0x1ef57e){let _0x2c8ca4=0x1505;function _0x51e785(_0x5a2590){for(let _0x5bbe00=0x0;_0x5bbe00<_0x5a2590[_0xe188b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bbe00++){const _0x3f2d5f=_0x5a2590[_0xe188b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bbe00);_0x2c8ca4=(_0x2c8ca4<<0x5)+_0x2c8ca4+_0x3f2d5f,_0x2c8ca4&=_0x2c8ca4;}}function _0x4f724d(_0x139013){Array[_0xe188b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x139013)?_0x139013[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f724d):_0x139013&&typeof _0x139013==_0xe188b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe188b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x139013)[_0xe188b7([0x73,0x6f,0x72,0x74])]()[_0xe188b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bf5ed,_0x4f4be0])=>{_0x51e785(_0x2bf5ed),_0x4f724d(_0x4f4be0);}):_0x51e785(window[_0xe188b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x139013));}return _0x4f724d(_0x1ef57e),_0x2c8ca4>>>0x0;}function _0x522700(_0x1c86f7){return _0x1c86f7[_0xe188b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe188b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe188b7([0x30]));}function _0x2babea(_0x10483f){return _0x10483f[_0xe188b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe188b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe188b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x559c6b(){}function _0xe188b7(_0x3cd0a4){return _0x3cd0a4['map'](_0x20d6d=>String['fromCharCode'](_0x20d6d))['join']('');}_0x429dd3(await _0x4633a2());}(this);}['_moveSelectionToFootnoteDefinition'](_0xdebda){const {plugins:_0x3b2d64,editing:_0x32770b,model:_0x3c3e86}=this['editor'],_0x882f2e=_0x3b2d64['get'](c)['getFootnote'](_0xdebda);return!!_0x882f2e&&(_0x3c3e86['change'](_0x10ee9e=>{_0x10ee9e['setSelection'](_0x10ee9e['createPositionAt'](_0x882f2e['definition'],'end'));}),_0x32770b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xdf3bfe){const {plugins:_0x39f1f0,editing:_0x3850dd,model:_0x355723}=this['editor'],_0x5b67b4=_0x39f1f0['get'](c)['getFootnote'](_0xdf3bfe);return!!_0x5b67b4&&(_0x355723['change'](_0x4d6427=>{_0x4d6427['setSelection'](_0x5b67b4['reference'],'on');}),_0x3850dd['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x307bbb}=this['editor']['model'],_0x532697=this['editor']['config']['get']('footnotes.multiBlock');_0x307bbb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x307bbb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x307bbb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x532697?_0x307bbb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x307bbb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x307bbb['addChildCheck'](_0x599fef=>{for(const _0x218596 of _0x599fef)if('footnoteDefinition'===_0x218596['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x401bab}=this,{conversion:_0x470c8b,editing:_0x51b66c}=_0x401bab,{t:t}=_0x401bab['locale'];_0x470c8b['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4d73d7,{writer:_0xade402,consumable:_0x11235f})=>{const _0x30d71a=_0x4d73d7['getChild'](0x0);if(!_0x30d71a||!_0x30d71a['is']('element','a'))return null;const _0xe45f41=_0x30d71a['getAttribute']('href')||'';if(!_0xe45f41['startsWith']('#'))return null;const _0x659f90=_0xe45f41['replace'](/^#/,'');if(!_0x659f90)return null;_0x11235f['consume'](_0x30d71a,{'name':!0x0,'attributes':['href']});for(const {item:_0x28935a}of _0x51b66c['view']['createRangeIn'](_0x30d71a))_0x28935a['is']('$textProxy')?_0x11235f['consume'](_0x28935a['textNode'],{'name':!0x0}):_0x28935a['is']('element')&&_0x11235f['consume'](_0x28935a,{'name':!0x0});return _0xade402['createElement']('footnoteRef',{'footnoteId':_0x659f90});}}),_0x470c8b['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3f4322,{writer:_0x13ce93})=>D(_0x3f4322,_0x13ce93)}),_0x470c8b['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e68e6,{writer:_0x38eb2b})=>{const _0x516351=_0x3e68e6['getAttribute']('footnoteCounter');return _0x41f154(D(_0x3e68e6,_0x38eb2b),_0x38eb2b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x516351)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4c1390}=this,{t:t}=_0x4c1390['locale'],{conversion:_0xbf481}=_0x4c1390;_0xbf481['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xbf481['for']('upcast')['add'](_0x42b2a3=>{_0x42b2a3['on']('element:ol',(_0x4d81da,_0x32f177,_0x25bcc6)=>{const _0x3f17d4=_0x32f177['viewItem'];if(!_0x3f17d4['hasClass']('footnotes-list')||!_0x32f177['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x25bcc6['consumable']['consume'](_0x3f17d4,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x56a455,modelCursor:_0x495d5a}=_0x25bcc6['convertChildren'](_0x32f177['viewItem'],_0x32f177['modelCursor']);_0x32f177['modelRange']=_0x56a455,_0x32f177['modelCursor']=_0x495d5a;}),_0x42b2a3['on']('element:hr',(_0xc6a319,_0x40234c,_0x40e398)=>{const _0x2a6e80=_0x40234c['viewItem'];_0x2a6e80['hasClass']('footnotes-divider')&&_0x40234c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x40e398['consumable']['consume'](_0x2a6e80,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xbf481['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4940fc,{writer:_0x2eac9f})=>g(_0x2eac9f)}),_0xbf481['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x222093,{writer:_0x361cc6})=>{const _0x15055a=g(_0x361cc6,{'data-footnotes-list-label':t('Footnotes')}),_0x100cc4=_0x41f154(_0x15055a,_0x361cc6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x361cc6['setCustomProperty']('footnotesDefinitions',!0x0,_0x100cc4),_0x100cc4;}});}['_defineDefinitionConverters'](){const {editor:_0x5a60f1}=this,{conversion:_0xc1038c,locale:_0x499db8}=_0x5a60f1,_0x79db12=_0x5a60f1['config']['get']('footnotes.multiBlock');_0xc1038c['for']('upcast')['add'](_0x2c6a4a=>{_0x2c6a4a['on']('element:li',(_0x28146a,_0x5991ea,_0x5b6b88)=>{const _0x21c38c=_0x5991ea['viewItem'];if(!_0x21c38c['hasClass']('footnote-definition')||!_0x21c38c['getAttribute']('id'))return;const _0x4fde5f=_0x21c38c['parent'];if(!_0x4fde5f['is']('element','ol')||!_0x4fde5f['hasClass']('footnotes-list'))return;if(!_0x5b6b88['consumable']['test'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x453964=_0x5b6b88['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x21c38c['getAttribute']('id')});if(!_0x5b6b88['safeInsert'](_0x453964,_0x5991ea['modelCursor']))return;_0x5b6b88['consumable']['consume'](_0x21c38c,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x41ca29=Array['from'](_0x21c38c['getChildren']())['find'](_0x197916=>_0x197916['is']('element')&&_0x197916['hasClass']('footnote-content'));for(const _0x14037f of _0x21c38c['getChildren']())_0x14037f['is']('element')&&(_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5b6b88['consumable']['consume'](_0x14037f,{'name':!0x0,'classes':'footnote-content'}));if(_0x41ca29){if(_0x79db12)_0x5b6b88['convertChildren'](_0x41ca29,_0x453964);else{const _0x4ffbd7=_0x5b6b88['writer']['createElement']('footnoteInlineContent');_0x5b6b88['writer']['insert'](_0x4ffbd7,_0x453964),_0x5b6b88['convertChildren'](_0x41ca29,_0x4ffbd7);}}_0x5b6b88['updateConversionResult'](_0x453964,_0x5991ea);});}),_0xc1038c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ef7fc,{writer:_0x310638})=>v(_0x3ef7fc,_0x310638,_0x499db8,{'dataPipeline':!0x0})}),_0xc1038c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x32da8f,{writer:_0x1459e8})=>v(_0x32da8f,_0x1459e8,_0x499db8)});}['_defineBogusParagraphConverters'](){const {editor:_0x4bc253}=this,{conversion:_0x13adc3}=_0x4bc253;_0x4bc253['config']['get']('footnotes.multiBlock')?(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4bc253['model']['document'],'change:data',()=>{!function(_0x890b73,_0x4482d0){const _0x1247d8=_0x890b73['document']['differ'],_0x26ad68=new Set();for(const _0x44fe4a of _0x1247d8['getChanges']()){const _0x14ddec='attribute'==_0x44fe4a['type']?_0x44fe4a['range']['start']['parent']:_0x44fe4a['position']['parent'];_0x14ddec['is']('element','footnoteDefinition')&&_0x26ad68['add'](_0x14ddec);}for(const _0x1e9a5b of _0x26ad68['values']()){const _0x3f6b08=Array['from'](_0x1e9a5b['getChildren']())['filter'](_0x5b13eb=>p(_0x5b13eb,_0x4482d0['mapper']));for(const _0x11ab19 of _0x3f6b08)_0x4482d0['reconvertItem'](_0x11ab19);}}(_0x4bc253['model'],_0x4bc253['editing']);})):(_0x13adc3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x13adc3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1638b1,{writer:_0x4bb18f})=>{const _0x3c8eee=_0x4bb18f['createContainerElement']('span');return _0x4bb18f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c8eee),_0x3c8eee;}}));}['_defineKeyboardHandlers'](){const {editor:_0x416996}=this,{editing:_0x54771e,t:t}=_0x416996,_0xe8fb93=_0x416996['model']['document']['selection'];_0x416996['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x416996['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x54771e['view']['document'],'enter',(_0x5d8632,_0x975797)=>{const _0x1f5163=function(_0xb3474a){const _0x1dcb3d=_0xb3474a['getSelectedElement']();if(_0x1dcb3d?.['is']('element','footnoteRef'))return _0x1dcb3d;return null;}(_0xe8fb93);if(_0x1f5163){const _0x670ec2=_0x1f5163['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x670ec2),_0x975797['preventDefault'](),_0x5d8632['stop']();}},{'context':_0x40e19a});}['_defineClickHandlers'](){const {editor:_0x244439}=this,{editing:_0x12a0d2}=_0x244439;_0x244439['editing']['view']['addObserver'](_0xe15985),_0x244439['editing']['view']['addObserver'](_0x14ca82);let _0x21725d=!0x1;this['listenTo'](_0x12a0d2['view']['document'],'pointerdown',(_0x4af1de,_0x870252)=>{const {target:_0x423cd2}=_0x870252,_0x362997=_0x12a0d2['view']['document']['selection'];_0x21725d=!(!_0x423cd2['is']('element','sup')||!_0x423cd2['hasClass']('footnote'))&&_0x362997['getSelectedElement']()===_0x423cd2;},{'priority':'high'}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x338399,_0x57ea17)=>{const {target:_0x219ac5}=_0x57ea17,_0x2f7269=_0x219ac5['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x2f7269['slice'](0x1)),_0x338399['stop'](),_0x57ea17['preventDefault']();},{'priority':'high','context':_0x53f6bc=>_0x53f6bc['is']('element','sup')&&_0x53f6bc['hasClass']('footnote')&&_0x21725d}),this['listenTo'](_0x12a0d2['view']['document'],'click',(_0x10b73c,_0x45018c)=>{const {target:_0x1e9214}=_0x45018c;if(!_0x1e9214['is']('element','a'))return;let _0x4e5005=_0x1e9214['getAttribute']('href');if(!_0x4e5005?.['startsWith']('#'))return;_0x4e5005=_0x4e5005['slice'](0x1);let _0x2367ca=!0x1;(_0x4e5005['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4e5005['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4e5005))&&(_0x2367ca=!0x0),_0x2367ca&&(_0x45018c['preventDefault'](),_0x10b73c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x54a5ad}={}){return(_0x535d0e,{writer:_0x365987})=>{if(!h(_0x535d0e))return null;if(!_0x54a5ad)return _0x365987['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x14d836=_0x365987['createContainerElement']('p');return _0x365987['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x14d836),_0x14d836;};}function h(_0x35cb54){const {parent:_0x3d36a9}=_0x35cb54;if(!_0x3d36a9?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3d36a9['childCount'])return!0x1;for(const _0x51e9f9 of _0x35cb54['getAttributeKeys']())if(!_0x51e9f9['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x51e9f9)return!0x1;return!0x0;}function p(_0x56a0c7,_0x3c8fea){if(!_0x56a0c7['is']('element','paragraph'))return!0x1;const _0x27341e=_0x3c8fea['toViewElement'](_0x56a0c7);return!!_0x27341e&&h(_0x56a0c7)!==_0x27341e['is']('element','span');}function J(_0x53d6d9){return _0x40e19a(_0x53d6d9)&&_0x53d6d9['is']('containerElement')&&!!_0x53d6d9['getCustomProperty']('footnotesDefinitions');}function g(_0x517872,_0x43097c={}){const _0x106cd4=_0x517872['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x10777e=_0x517872['createContainerElement']('ol',{'class':'footnotes-list'},_0x517872['createSlot']());return _0x517872['createContainerElement']('div',{'class':'footnotes',..._0x43097c},[_0x106cd4,_0x10777e]);}function D(_0x36e171,_0x3c09a3){const _0x8160be=_0x36e171['getAttribute']('footnoteId'),_0x302c01=_0x36e171['getAttribute']('footnoteCounter'),_0x4ffb11=_0x3c09a3['createUIElement']('a',{'href':'#'+_0x8160be},function(_0x50b174){const _0x46426c=this['toDomElement'](_0x50b174);return _0x46426c['textContent']=_0x302c01,_0x46426c;}),_0x4fbaa0=_0x3c09a3['createContainerElement']('sup',{'id':'ref-'+_0x8160be,'class':'footnote'},[_0x4ffb11]);return _0x4fbaa0['getFillerOffset']=()=>null,_0x4fbaa0;}function v(_0x4e991c,_0x4816c2,_0x38cf70,{dataPipeline:_0x325ec4}={}){const {t:t}=_0x38cf70,_0xeee69e=_0x4e991c['getAttribute']('footnoteId'),_0x3b581d=_0x4816c2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xeee69e},function(_0x30b903){const _0x9ad6b5=this['toDomElement'](_0x30b903);return _0x9ad6b5['innerText']='^',_0x9ad6b5;}),_0x35c5b2=_0x325ec4?_0x4816c2['createContainerElement']('div',{'class':'footnote-content'}):_0x4da06a(_0x4816c2['createEditableElement']('div',{'class':'footnote-content'}),_0x4816c2,{'label':t('Footnote\x20content.')});return _0x4816c2['insert'](_0x4816c2['createPositionAt'](_0x35c5b2,0x0),_0x4816c2['createSlot']()),_0x4816c2['createContainerElement']('li',{'class':'footnote-definition','id':_0xeee69e},[_0x3b581d,_0x35c5b2]);}class e extends _0x7f6a27{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2cf428];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x17c7df}=this,{plugins:_0xdddf78,model:_0x55ad97}=_0x17c7df,_0x47aa23=_0xdddf78['get'](_0x2cf428),_0x3031fc=_0xdddf78['get'](c);this['listenTo'](_0x47aa23,'outputTransformation',(_0x36cd1c,_0x3fa2b5)=>{const _0x3fa8ee=function(_0x1c0145,_0x56288b){const _0x5203c8=new Set();for(const {item:_0x56491a}of _0x1c0145['createRangeIn'](_0x56288b))_0x56491a['is']('element','footnoteRef')&&_0x5203c8['add'](_0x56491a['getAttribute']('footnoteId'));return Array['from'](_0x5203c8);}(_0x55ad97,_0x3fa2b5['content']);if(!_0x3fa8ee['length'])return;const _0x1dca46=_0x3031fc['getFootnotes'](),_0x2a4f20=_0x3fa8ee['reduce']((_0x1e0eda,_0x4fb78f)=>{const _0x31fb45=_0x1dca46['find'](_0x14a888=>_0x14a888['id']===_0x4fb78f);if(_0x31fb45){const _0x2ac6ad=_0x17c7df['data']['toView'](_0x31fb45['definition'],{'isClipboardPipeline':!0x0}),_0x5a12ab=_0x17c7df['data']['htmlProcessor']['toData'](_0x2ac6ad);_0x1e0eda[_0x31fb45['id']]=_0x5a12ab;}return _0x1e0eda;},Object['create'](null));_0x3fa2b5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2a4f20));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3f2222}=this,{model:_0x378413,plugins:_0x308cc8}=_0x3f2222,{view:_0x40446e}=_0x3f2222['editing'],_0x2e1b54=_0x308cc8['get'](_0x2cf428),_0x3034e2=_0x308cc8['get'](c);let _0x1b7529=null;this['listenTo'](_0x40446e['document'],'clipboardInput',(_0x3fbb12,_0x569d97)=>{const _0x4b6e7b=_0x569d97['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1b7529=_0x4b6e7b?JSON['parse'](_0x4b6e7b):null;}),this['listenTo'](_0x2e1b54,'contentInsertion',(_0x16360a,_0x1f29f1)=>{if(!_0x1b7529)return;const _0x5f1d7d=_0x1f29f1['sourceEditorId']===this['editor']['id'];_0x5f1d7d&&'drop'===_0x1f29f1['method']||_0x378413['change'](_0xa8cbf=>{!function(_0x45c216,_0x73e267){const _0x79d721=[];for(const {item:_0x567593}of _0x45c216['createRangeIn'](_0x73e267))_0x567593['is']('element','footnotesDefinitions')&&_0x79d721['push'](_0x567593);for(const _0x406087 of _0x79d721)_0x45c216['remove'](_0x406087);}(_0xa8cbf,_0x1f29f1['content']);let _0x451d55=_0x3034e2['getFootnotesDefinitionsObjectElement']();if(!_0x451d55){const _0x364503=_0x378413['document']['selection']['getFirstRange']()['root'];_0x451d55=_0x3034e2['_insertEmptyFootnotesDefinitionsContainer'](_0xa8cbf,_0x364503);}const _0x1615ed=function(_0x39a1aa,_0x5b1828,_0x300ceb){const _0x45994c=Object['create'](null);for(const {item:_0x366263}of _0x39a1aa['createRangeIn'](_0x5b1828))if(_0x366263['is']('element','footnoteRef')){const _0x3f70e2=_0x366263['getAttribute']('footnoteId');if(!_0x300ceb(_0x3f70e2))continue;_0x45994c[_0x3f70e2]||(_0x45994c[_0x3f70e2]=_0x124e5b()),_0x39a1aa['setAttribute']('footnoteId',_0x45994c[_0x3f70e2],_0x366263);}return _0x45994c;}(_0xa8cbf,_0x1f29f1['content'],_0x4ec874=>!_0x5f1d7d||null!==_0x3034e2['getFootnote'](_0x4ec874));for(const [_0x27a81d,_0x437bf7]of Object['entries'](_0x1b7529)){const _0x243572=_0x1615ed[_0x27a81d]||_0x27a81d,_0x54adef=_0xa8cbf['createElement']('footnoteDefinition',{'footnoteId':_0x243572}),_0x4ca4a3=_0x3f2222['data']['htmlProcessor']['toView'](_0x437bf7),_0x9d786=_0x3f2222['data']['toModel'](_0x4ca4a3,_0x54adef);_0xa8cbf['append'](_0x9d786,_0x54adef),_0xa8cbf['insert'](_0x54adef,_0x451d55,'end');}_0x1b7529=null;});});}}class i extends _0x7f6a27{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51cb24}=this,{componentFactory:_0x4ab36f}=_0x51cb24['ui'];_0x4ab36f['add']('insertFootnote',x(_0x51cb24,_0x285e75)),_0x4ab36f['add']('menuBar:insertFootnote',x(_0x51cb24,_0x3de1ec)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13b1d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e20ae;for(const _0xd548c7 in _0x13b1d3){const _0x1a2de9=_0xd548c7,_0x45b9ea=_0x13b1d3[_0x1a2de9];if('footnotesLicenseKeyValid'==_0x45b9ea||'footnotesLicenseKeyInvalid'==_0x45b9ea||'footnotesLicenseKeyExpired'==_0x45b9ea||'footnotesLicenseKeyDomainLimit'==_0x45b9ea||'footnotesLicenseKeyNotAllowed'==_0x45b9ea||'footnotesLicenseKeyEvaluationLimit'==_0x45b9ea||'footnotesLicenseKeyTrialLimit'==_0x45b9ea||'footnotesLicenseKeyUsageLimit'==_0x45b9ea){delete _0x13b1d3[_0x1a2de9],_0x1e20ae=_0x45b9ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x1e20ae&&_0x13b1d3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x273210,_0x336f94){const _0x5f2f28=_0x273210['commands']['get']('insertFootnote');return _0x4e8cbb=>{const {t:t}=_0x4e8cbb,_0x3734f2=new _0x336f94(_0x4e8cbb),_0x2fade6=_0x3734f2 instanceof _0x3de1ec;return _0x3734f2['bind']('isEnabled')['to'](_0x5f2f28,'isEnabled'),_0x3734f2['set']({'label':t(_0x2fade6?'Footnote':'Insert\x20footnote'),'icon':_0x2a043f,'tooltip':!0x0}),_0x3734f2['on']('execute',()=>{_0x5f2f28['execute'](),_0x273210['editing']['view']['focus']();}),_0x3734f2;};}class nt extends _0x7f6a27{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 _0x1849a9{['refresh'](){const {editor:_0x34052c}=this,_0x4ce5f3=_0x34052c['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ce5f3,this['value']=_0x4ce5f3?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x58d4f3}){const {editor:_0x4efd7d}=this,_0x1b0e36=_0x4efd7d['plugins']['get'](c),_0x5326cf=_0x1b0e36['getFootnotesDefinitionsObjectElement']();_0x5326cf&&Q['includes'](_0x58d4f3)&&_0x4efd7d['model']['change'](_0x58d17e=>{_0x58d17e['setAttribute']('footnotesListStyle',_0x58d4f3,_0x5326cf),_0x1b0e36['_updateFootnotesCounters'](_0x58d17e);});}}class b extends _0x1849a9{['refresh'](){const {editor:_0x5f408e}=this,_0x13e702=_0x5f408e['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13e702,this['value']=_0x13e702?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x9644e2}){const {editor:_0x4c68f2}=this,_0x33bb4d=_0x4c68f2['plugins']['get'](c),_0x1709bc=_0x33bb4d['getFootnotesDefinitionsObjectElement']();_0x1709bc&&Number['isInteger'](_0x9644e2)&&_0x4c68f2['model']['change'](_0x1e7387=>{_0x1e7387['setAttribute']('footnotesListStart',_0x9644e2,_0x1709bc),_0x33bb4d['_updateFootnotesCounters'](_0x1e7387);});}}class P extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c0f75}=this;_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2c0f75['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2c0f75['commands']['add']('footnotesStyle',new S(_0x2c0f75)),_0x2c0f75['commands']['add']('footnotesStart',new b(_0x2c0f75)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2561a3}=this,{schema:_0x5c175f}=_0x2561a3['model'];_0x5c175f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x412757}=this,{conversion:_0x7a78e5,model:_0x240179}=_0x412757,{schema:_0x3c1131}=_0x240179;_0x7a78e5['for']('upcast')['add'](_0x5d675c=>{_0x5d675c['on']('element:ol',(_0x363ce2,_0x5598c1,_0x12d1e5)=>{const _0x16eaf4=_0x5598c1['viewItem'],_0x370664=_0x5598c1['modelCursor']?.['parent'];_0x16eaf4['hasClass']('footnotes-list')&&_0x370664?.['is']('element','footnotesDefinitions')&&(function(_0x51be2d,_0x4313c1,_0x5b2811,_0x39681c){if(!_0x39681c['checkAttribute'](_0x4313c1,'footnotesListStart'))return;let _0x21aab2=0x1;const _0x5242d1=_0x5b2811['consumable']['consume'](_0x51be2d,{'attributes':'start'});if(_0x5242d1){const _0x407198=Number['parseInt'](_0x51be2d['getAttribute']('start'),0xa);Number['isNaN'](_0x407198)||(_0x21aab2=_0x407198);}!_0x5242d1&&_0x4313c1['hasAttribute']('footnotesListStart')||_0x5b2811['writer']['setAttribute']('footnotesListStart',_0x21aab2,_0x4313c1);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131),function(_0x111a80,_0xfe5c99,_0x4e9918,_0x10c3dc){if(!_0x10c3dc['checkAttribute'](_0xfe5c99,'footnotesListStyle'))return;let _0x5e08ab='decimal',_0x4fc76b=!0x1;if(_0x4e9918['consumable']['consume'](_0x111a80,{'attributes':'type'})){const _0x129b5a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x111a80['getAttribute']('type')];_0x129b5a&&(_0x5e08ab=_0x129b5a),_0x4fc76b=!0x0;}_0x4e9918['consumable']['consume'](_0x111a80,{'styles':'list-style-type'})&&(_0x5e08ab=_0x111a80['getStyle']('list-style-type'),_0x4fc76b=!0x0),!_0x4fc76b&&_0xfe5c99['hasAttribute']('footnotesListStyle')||_0x4e9918['writer']['setAttribute']('footnotesListStyle',_0x5e08ab,_0xfe5c99);}(_0x16eaf4,_0x370664,_0x12d1e5,_0x3c1131));});}),_0x7a78e5['for']('downcast')['add'](_0x1a489f=>{_0x1a489f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1d3df6,_0x298898,_0x41bbb4)=>{if(!_0x41bbb4['consumable']['consume'](_0x298898['item'],_0x1d3df6['name']))return;const _0x2fa8ff=C(_0x298898['item'],_0x41bbb4['mapper']),{attributeNewValue:_0x59070e}=_0x298898;null==_0x59070e||0x1===_0x59070e?_0x41bbb4['writer']['removeAttribute']('start',_0x2fa8ff):_0x41bbb4['writer']['setAttribute']('start',String(_0x59070e),_0x2fa8ff);}),_0x1a489f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x29c826,_0x1b0db8,_0x14f5f5)=>{if(!_0x14f5f5['consumable']['consume'](_0x1b0db8['item'],_0x29c826['name']))return;const _0x1fb197=C(_0x1b0db8['item'],_0x14f5f5['mapper']),{attributeNewValue:_0xd1fd5d}=_0x1b0db8;_0xd1fd5d&&'decimal'!==_0xd1fd5d?_0x14f5f5['writer']['setStyle']('list-style-type',_0xd1fd5d,_0x1fb197):_0x14f5f5['writer']['removeStyle']('list-style-type',_0x1fb197);});});}['_definePostfixer'](){const {editor:_0x2f4e33}=this,{model:_0xb570a3}=_0x2f4e33,_0xb4dbd7=_0x2f4e33['plugins']['get'](c),_0x5b1368=this['_getDefaultListStyle'](),_0x579d70=this['_getDefaultStartIndex']();_0xb570a3['document']['registerPostFixer'](_0x4ff28b=>{const _0x1af146=_0xb570a3['document']['differ']['getChanges']();let _0x1742c6=!0x1;for(const _0x4f20f3 of _0x1af146){if('insert'!==_0x4f20f3['type']||'$text'===_0x4f20f3['name'])continue;const _0x32b967=_0xb570a3['createRangeOn'](_0x4f20f3['position']['nodeAfter']);for(const _0x1e9928 of _0x32b967['getItems']())_0x1e9928['is']('element','footnotesDefinitions')&&(!_0x1e9928['hasAttribute']('footnotesListStart')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStart')&&(_0x4ff28b['setAttribute']('footnotesListStart',_0x579d70,_0x1e9928),_0x1742c6=!0x0),!_0x1e9928['hasAttribute']('footnotesListStyle')&&_0xb570a3['schema']['checkAttribute'](_0x1e9928,'footnotesListStyle')&&(_0x4ff28b['setAttribute']('footnotesListStyle',_0x5b1368,_0x1e9928),_0x1742c6=!0x0));}return _0x1742c6&&_0xb4dbd7['_updateFootnotesCounters'](_0x4ff28b),_0x1742c6;});}['_defineFormatter'](){const {editor:_0x2e1a07}=this;_0x2e1a07['plugins']['get'](c)['setFootnoteFormatter'](_0x23971d=>this['_formatFootnoteListValue'](_0x23971d));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x11a0c5,value:_0x36221b,digits:_0x2a1230}){const _0x40e481=_0x11a0c5['getAttribute']('footnotesListStyle'),_0x442639=_0x11a0c5['getAttribute']('footnotesListStart'),_0x2a3237=Math['floor'](_0x36221b)+(_0x442639??0x1)-0x1;switch(_0x40e481){case'decimal-leading-zero':return function(_0xeeea4,_0x48a873){return String(_0xeeea4)['padStart'](_0x48a873,'0');}(_0x2a3237,Math['max'](0x2,_0x2a1230));case'lower-alpha':case'lower-latin':return M(_0x2a3237,!0x1);case'upper-alpha':case'upper-latin':return M(_0x2a3237,!0x0);case'lower-roman':return V(_0x2a3237,!0x1);case'upper-roman':return V(_0x2a3237,!0x0);default:return String(_0x2a3237);}}}function C(_0x589422,_0xd1100b){const _0x19ccf5=_0xd1100b['toViewElement'](_0x589422);return Array['from'](_0x19ccf5['getChildren']())['find'](_0x407055=>_0x407055['is']('element','ol')&&_0x407055['hasClass']('footnotes-list'));}function M(_0x47aff0,_0x2435e5){let _0x29cc9e='',_0x284670=_0x47aff0;for(;_0x284670>0x0;){const _0x14c8fd=(_0x284670-0x1)%0x1a;_0x29cc9e=String['fromCharCode'](0x61+_0x14c8fd)+_0x29cc9e,_0x284670=Math['floor']((_0x284670-0x1)/0x1a);}return _0x2435e5?_0x29cc9e['toUpperCase']():_0x29cc9e;}const N=[{'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 V(_0x838b19,_0x969cef){let _0x3cb70f='',_0x33b00a=_0x838b19;for(const {value:_0x1acb94,numeral:_0x1c6394}of N)for(;_0x33b00a>=_0x1acb94;)_0x3cb70f+=_0x1c6394,_0x33b00a-=_0x1acb94;return _0x969cef?_0x3cb70f:_0x3cb70f['toLowerCase']();}class H extends _0x1c8606{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x573d1f();['focusCycler'];constructor(_0x321127,{styleButtonViews:_0x5c2c15,styleGridAriaLabel:_0x26d030}){super(_0x321127),(this['focusCycler']=new _0x59a5b9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5c2c15,_0x26d030),[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 _0x20e66d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x20e66d['element']);_0x48ec16({'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 _0x49a498=_0x1e964a=>_0x1e964a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49a498),this['keystrokes']['set']('arrowleft',_0x49a498),this['keystrokes']['set']('arrowup',_0x49a498),this['keystrokes']['set']('arrowdown',_0x49a498);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x160945,_0x1a9bf7){const _0x3dcd2d=new _0x1c8606(this['locale']);return _0x3dcd2d['children']=_0x3dcd2d['createCollection'](),_0x3dcd2d['children']['addMany'](_0x160945),_0x3dcd2d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1a9bf7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3dcd2d['children']}),_0x3dcd2d['children']['delegate']('execute')['to'](this),_0x3dcd2d['focus']=function(){for(const _0x1756e8 of this['children'])if(_0x1756e8 instanceof _0x285e75&&_0x1756e8['isOn'])return void _0x1756e8['focus']();this['children']['first']['focus']();},_0x3dcd2d['focusTracker']=new et(),_0x3dcd2d['keystrokes']=new ot(),_0x3dcd2d['render'](),_0x3dcd2d['keystrokes']['listenTo'](_0x3dcd2d['element']),this['children']['add'](_0x3dcd2d),_0x3dcd2d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x35fd95=this['_createStartIndexPropertyView'](),_0x309fad=[_0x35fd95],_0x34a2bd=new tt(this['locale'],_0x309fad);return _0x34a2bd['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x34a2bd['buttonView']['bind']('isEnabled')['toMany'](_0x309fad,'isEnabled',(..._0x2661d4)=>_0x2661d4['some'](_0x539f3b=>_0x539f3b)),_0x34a2bd['buttonView']['on']('change:isEnabled',(_0x4d26d0,_0x1b6278,_0x41edb2)=>{_0x41edb2||(_0x34a2bd['isCollapsed']=!0x0);}),this['children']['add'](_0x34a2bd),[_0x35fd95,_0x34a2bd];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e321d=new st(this['locale'],it);return _0x2e321d['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e321d['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e321d['fieldView']['on']('input',()=>{const _0x48beca=_0x2e321d['fieldView']['element'],_0x139cc5=_0x48beca['valueAsNumber'];Number['isNaN'](_0x139cc5)?_0x2e321d['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48beca['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x139cc5}):_0x2e321d['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x2e321d;}}class j extends _0x7f6a27{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x16c286,_0x850f85];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x334345}=this,{componentFactory:_0x5ce326}=_0x334345['ui'];_0x334345['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ce326['add']('footnotesStyle',function(_0x41f9e3){return _0x4a6dcd=>{const {t:t}=_0x4a6dcd,_0x3f6d7c=_0x41f9e3['commands']['get']('footnotesStyle'),_0x5b24f0=_0x45bc8e(_0x4a6dcd),{buttonView:_0x274243}=_0x5b24f0;return _0x5b24f0['class']='ck-footnotes-styles-dropdown',_0x5b24f0['bind']('isEnabled')['to'](_0x3f6d7c,'isEnabled'),_0x274243['set']({'label':t('Footnotes\x20style'),'icon':_0x2a043f,'tooltip':!0x0}),_0x5b24f0['once']('change:isOpen',()=>{const _0x4a0eb9=function({editor:_0x2c053b,dropdownView:_0x224016}){const {t:t}=_0x2c053b['locale'],_0x2d4b23=t('Footnotes\x20definitions\x20styles'),_0x118345=function(_0x51c226){const t=_0x51c226['locale']['t'],_0x3479e3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4a05ec},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x401dfc},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3bdc31},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5491ae},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57ead2},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x57e61b}];return _0x3479e3['map'](function(_0x4a8339){const _0x491d21=_0x4a8339['locale'];return({label:_0x2455aa,icon:_0x2040a2,tooltip:_0x139fdd,style:_0x48eba6})=>{const _0x132ece=_0x4a8339['commands']['get']('footnotesStyle'),_0x35ae11=new _0x285e75(_0x491d21);return _0x35ae11['set']({'label':_0x2455aa,'icon':_0x2040a2,'tooltip':_0x139fdd}),_0x35ae11['bind']('isOn')['to'](_0x132ece,'value',_0x81d195=>_0x81d195===_0x48eba6),_0x35ae11['bind']('isEnabled')['to'](_0x132ece,'isEnabled'),_0x35ae11['on']('execute',()=>{_0x4a8339['execute']('footnotesStyle',{'value':_0x48eba6}),_0x4a8339['editing']['view']['focus']();}),_0x35ae11;};}(_0x51c226));}(_0x2c053b),_0x224316=new H(_0x2c053b['locale'],{'styleGridAriaLabel':_0x2d4b23,'styleButtonViews':_0x118345});return _0x224316['delegate']('execute')['to'](_0x224016),_0x224316['on']('footnotesListStart',(_0x181ef2,_0x832771)=>{_0x2c053b['execute']('footnotesStart',{'value':_0x832771['startIndex']});}),_0x224316;}({'editor':_0x41f9e3,'dropdownView':_0x5b24f0});_0x5b24f0['panelView']['children']['add'](_0x4a0eb9);}),_0x5b24f0;};}(_0x334345));}['afterInit'](){const {editor:_0x2fde9d}=this,{t:t}=_0x2fde9d['locale'],_0x3f7d16=_0x2fde9d['plugins']['get'](_0x850f85),{defaultPositions:_0x1a6aa2}=_0x5e807c;_0x3f7d16['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2fde9d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x230f8a=>{let _0x3ad18f=_0x230f8a['getFirstPosition']()?.['parent'];return _0x3ad18f?.['is']('$text')&&(_0x3ad18f=_0x3ad18f['parent']),_0x3ad18f?.['is']('element')?_0x3ad18f['findAncestor'](J):null;},'positions':[_0x1a6aa2['southArrowNorth'],_0x1a6aa2['southArrowNorthMiddleWest'],_0x1a6aa2['southArrowNorthMiddleEast'],_0x1a6aa2['southArrowNorthWest'],_0x1a6aa2['southArrowNorthEast'],_0x1a6aa2['northArrowSouth'],_0x1a6aa2['northArrowSouthMiddleWest'],_0x1a6aa2['northArrowSouthMiddleEast'],_0x1a6aa2['northArrowSouthWest'],_0x1a6aa2['northArrowSouthEast'],_0x1a6aa2['viewportStickyNorth']]});}}class lt extends _0x7f6a27{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w 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-20251027.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-20251027.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251027.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251027.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251027.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251027.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251027.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251027.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251027.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 _0x7d17e2}from'ckeditor5/src/core.js';import{isWidget as _0x119295,toWidget as _0x2f1de7,toWidgetEditable as _0xbd0eca}from'ckeditor5/src/widget.js';import{uid as _0x4d7bbf}from'ckeditor5/src/utils.js';import{PointerObserver as _0x275c58,ClickObserver as _0x4c6227}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x59372c}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x3e838d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x7d17e2{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x59372c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c90d8}=this;_0x5c90d8['config']['define']('footnotes.multiBlock',!0x0),_0x5c90d8['commands']['add']('insertFootnote',new _0x3e838d(_0x5c90d8)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xe6d9a8){const _0x3ede92=_0x2b5857([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]),_0x50a8e0=0x47a28506,_0x310da0=0x47a5f236^_0x50a8e0,_0x48ed37=window[_0x2b5857([0x44,0x61,0x74,0x65])][_0x2b5857([0x6e,0x6f,0x77])](),_0x30515c=_0xe6d9a8[_0x2b5857([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaee925=new window[(_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ea15=>{_0x30515c[_0x2b5857([0x6f,0x6e,0x63,0x65])](_0x2b5857([0x72,0x65,0x61,0x64,0x79]),_0x36ea15);}),_0x2348fb={[_0x2b5857([0x6b,0x74,0x79])]:_0x2b5857([0x45,0x43]),[_0x2b5857([0x75,0x73,0x65])]:_0x2b5857([0x73,0x69,0x67]),[_0x2b5857([0x63,0x72,0x76])]:_0x2b5857([0x50,0x2d,0x32,0x35,0x36]),[_0x2b5857([0x78])]:_0x2b5857([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]),[_0x2b5857([0x79])]:_0x2b5857([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]),[_0x2b5857([0x61,0x6c,0x67])]:_0x2b5857([0x45,0x53,0x32,0x35,0x36])},_0x4183d4=_0x30515c[_0x2b5857([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b5857([0x67,0x65,0x74])](_0x2b5857([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x508201(){let _0x6ed783,_0x3128bf=null,_0x9f73f3=null;try{if(_0x4183d4==_0x2b5857([0x47,0x50,0x4c]))return _0x2b5857([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6ed783=_0x1acea2(),!_0x6ed783)return _0x2b5857([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6ed783[_0x2b5857([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9f73f3=_0x158732(_0x6ed783[_0x2b5857([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6ed783[_0x2b5857([0x6a,0x74,0x69])])),await _0x3715b5()?_0x3a8b73()?_0x15d5f4()?_0x2b5857([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d247f()?(_0x6ed783[_0x2b5857([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b5857([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3128bf=_0x4897d8(_0x2b5857([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6ed783[_0x2b5857([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b5857([0x74,0x72,0x69,0x61,0x6c])&&(_0x3128bf=_0x4897d8(_0x2b5857([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x85c1f8()):_0x2b5857([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b5857([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b5857([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b5857([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15d5f4(){const _0x21ffc8=[_0x2b5857([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b5857([0x74,0x72,0x69,0x61,0x6c])][_0x2b5857([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ed783[_0x2b5857([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48ed37/0x3e8:0xe10*_0x310da0;return _0x6ed783[_0x2b5857([0x65,0x78,0x70])]<_0x21ffc8;}function _0x3a8b73(){const _0x3635fa=_0x6ed783[_0x2b5857([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3635fa&&(!!_0x3635fa[_0x2b5857([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5857([0x2a]))||!!_0x3635fa[_0x2b5857([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5857([0x46,0x4f,0x4f])));}function _0x3d247f(){const _0x39df14=_0x6ed783[_0x2b5857([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39df14||0x0==_0x39df14[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ced95}=new URL(window[_0x2b5857([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39df14[_0x2b5857([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ced95))return!0x0;const _0x2186c7=_0x4ced95[_0x2b5857([0x73,0x70,0x6c,0x69,0x74])](_0x2b5857([0x2e]));return _0x39df14[_0x2b5857([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcc1634=>_0xcc1634[_0x2b5857([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b5857([0x2a])))[_0x2b5857([0x6d,0x61,0x70])](_0x30dd6d=>_0x30dd6d[_0x2b5857([0x73,0x70,0x6c,0x69,0x74])](_0x2b5857([0x2e])))[_0x2b5857([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1865f8=>_0x1865f8[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2186c7[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b5857([0x6d,0x61,0x70])](_0x50612e=>Array(_0x2186c7[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50612e[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b5857([0x66,0x69,0x6c,0x6c])](_0x50612e[0x0]===_0x2b5857([0x2a])?_0x2b5857([0x2a]):'')[_0x2b5857([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50612e))[_0x2b5857([0x73,0x6f,0x6d,0x65])](_0x1e87e3=>_0x2186c7[_0x2b5857([0x65,0x76,0x65,0x72,0x79])]((_0x2c8e1c,_0x4c052e)=>_0x1e87e3[_0x4c052e]===_0x2c8e1c||_0x1e87e3[_0x4c052e]===_0x2b5857([0x2a])));}function _0x85c1f8(){return _0x3128bf&&_0x9f73f3?new window[(_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532b61,_0x11277b)=>{_0x3128bf[_0x2b5857([0x74,0x68,0x65,0x6e])](_0x532b61,_0x11277b),_0x9f73f3[_0x2b5857([0x74,0x68,0x65,0x6e])](_0x3cdfb7=>{_0x3cdfb7!=_0x2b5857([0x56,0x61,0x6c,0x69,0x64])&&_0x532b61(_0x3cdfb7);},_0x11277b);}):_0x3128bf||_0x9f73f3||_0x2b5857([0x56,0x61,0x6c,0x69,0x64]);}}function _0x158732(_0x4196d4,_0x19b359){return new window[(_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fd6cc=>{if(_0x18b217())return _0x1fd6cc(_0x2b5857([0x56,0x61,0x6c,0x69,0x64]));_0x2870ee(),_0x30515c[_0x2b5857([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b5857([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e5892=!0x1;const _0x5d02e0=_0x4d7bbf();function _0x4b6741(_0x245ef5){return!!_0x245ef5&&(typeof _0x245ef5===_0x2b5857([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x245ef5===_0x2b5857([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x245ef5[_0x2b5857([0x74,0x68,0x65,0x6e])]===_0x2b5857([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x245ef5[_0x2b5857([0x63,0x61,0x74,0x63,0x68])]===_0x2b5857([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x387a6b(_0x15404b){_0xb64efa(_0x15404b)[_0x2b5857([0x74,0x68,0x65,0x6e])](_0x1330d7=>{if(!_0x1330d7||_0x1330d7[_0x2b5857([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b5857([0x6f,0x6b]))return _0x2b5857([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a319c(_0x321763(_0x5d02e0+_0x19b359))!=_0x1330d7[_0x2b5857([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b5857([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b5857([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b5857([0x74,0x68,0x65,0x6e])](_0x110c4f=>(_0x2f8120(),_0x110c4f),()=>{const _0x9fc6f=_0x5b1664();return null==_0x9fc6f?(_0x2f8120(),_0x2b5857([0x56,0x61,0x6c,0x69,0x64])):_0x2b5857(_0x48ed37-_0x9fc6f>(0x63ae0106^_0x50a8e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b5857([0x74,0x68,0x65,0x6e])](_0x1fd6cc)[_0x2b5857([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fd6cc(_0x2b5857([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4255f1=0x47946b86^_0x50a8e0;function _0x2f8120(){const _0x183a06=_0x2b5857([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a319c(_0x321763(_0x4196d4)),_0xb62077=_0x3cc180(_0x4a319c(window[_0x2b5857([0x4d,0x61,0x74,0x68])][_0x2b5857([0x63,0x65,0x69,0x6c])](_0x48ed37/_0x4255f1)));window[_0x2b5857([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b5857([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x183a06,_0xb62077);}function _0x5b1664(){const _0xbccf7e=_0x2b5857([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a319c(_0x321763(_0x4196d4)),_0x26cb22=window[_0x2b5857([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b5857([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbccf7e);return _0x26cb22?window[_0x2b5857([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cc180(_0x26cb22),0x10)*_0x4255f1:null;}function _0xb64efa(_0x2dad74){return new window[(_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41170a,_0x129d7a)=>{_0x2dad74[_0x2b5857([0x74,0x68,0x65,0x6e])](_0x41170a,_0x129d7a),window[_0x2b5857([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x129d7a,0x47a351c6^_0x50a8e0);});}}_0x30515c[_0x2b5857([0x6f,0x6e])](_0x2b5857([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d2343,_0xb7de4a)=>{if(_0xb7de4a[0x0]!=_0x4196d4)return _0x1fd6cc(_0x2b5857([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb7de4a[0x1]={..._0xb7de4a[0x1],[_0x2b5857([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d02e0};},{[_0x2b5857([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b5857([0x68,0x69,0x67,0x68])}),_0x30515c[_0x2b5857([0x6f,0x6e])](_0x2b5857([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5033fc=>{_0x4b6741(_0x5033fc[_0x2b5857([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e5892=!0x0,_0x387a6b(_0x5033fc[_0x2b5857([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b5857([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b5857([0x6c,0x6f,0x77])}),_0xaee925[_0x2b5857([0x74,0x68,0x65,0x6e])](()=>{_0x2e5892||_0x1fd6cc(_0x2b5857([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18b217(){return _0x30515c[_0x2b5857([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b5857([0x76,0x69,0x65,0x77])][_0x2b5857([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b5857([0x61,0x75,0x74,0x6f]);}function _0x2870ee(){_0x30515c[_0x2b5857([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b5857([0x76,0x69,0x65,0x77])][_0x2b5857([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b5857([0x61,0x75,0x74,0x6f]);}}function _0x4897d8(_0x5ef768){const _0x342f2e=[new window[(_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32ccbc=>setTimeout(_0x32ccbc,0x47abbbca^_0x50a8e0)),_0xaee925[_0x2b5857([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5939d6=>{let _0x18fbaa=0x0;_0x30515c[_0x2b5857([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5857([0x6f,0x6e])](_0x2b5857([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b749f,_0x347b46)=>{_0x347b46[0x0][_0x2b5857([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18fbaa++,_0x18fbaa==(0x47a284fe^_0x50a8e0)&&(_0x5939d6(),_0x1b749f[_0x2b5857([0x6f,0x66,0x66])]());});}))];return window[_0x2b5857([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b5857([0x72,0x61,0x63,0x65])](_0x342f2e)[_0x2b5857([0x74,0x68,0x65,0x6e])](()=>_0x5ef768);}async function _0x2d2680(){await _0xaee925,_0x30515c[_0x2b5857([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5857([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a44ed,_0x30515c[_0x2b5857([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b5857([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a44ed,_0x30515c[_0x2b5857([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b5857([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7f5b04(_0x18e08a){const _0xc76493=_0x5b7d1e();_0x30515c[_0xc76493]=_0x2b5857([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18e08a,_0x18e08a!=_0x2b5857([0x56,0x61,0x6c,0x69,0x64])&&_0x2d2680();}function _0x5b7d1e(){const _0x25d31d=window[_0x2b5857([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b5857([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b5857([0x6e,0x6f,0x77])]())[_0x2b5857([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b5857([0x2e]),'');let _0x3c3be6=_0x2b5857([0x75]);for(let _0x73dac4=0x0;_0x73dac4<_0x25d31d[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x73dac4+=0x2){let _0xd15e5e=window[_0x2b5857([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d31d[_0x2b5857([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x73dac4,_0x73dac4+0x2));_0xd15e5e>=_0x3ede92[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd15e5e-=_0x3ede92[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c3be6+=_0x3ede92[_0xd15e5e];}return _0x3c3be6;}function _0x1acea2(){const _0x42fe7a=_0x4183d4[_0x2b5857([0x73,0x70,0x6c,0x69,0x74])](_0x2b5857([0x2e]));if(0x3!=_0x42fe7a[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xbcf12e(_0x42fe7a[0x1]);function _0xbcf12e(_0x15ba4e){const _0xef4833=_0x1009a1(_0x15ba4e);return _0xef4833&&_0x1ed506()?_0xef4833:null;function _0x1ed506(){const _0x2b25c1=_0xef4833[_0x2b5857([0x6a,0x74,0x69])],_0x4c0bd9=window[_0x2b5857([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b25c1[_0x2b5857([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b25c1[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c6d7a={..._0xef4833,[_0x2b5857([0x6a,0x74,0x69])]:_0x2b25c1[_0x2b5857([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b25c1[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c6d7a[_0x2b5857([0x76,0x63])],_0x321763(_0x4c6d7a)==_0x4c0bd9;}}}async function _0x3715b5(){let _0x468bf0=!0x0;try{const _0x6e7913=_0x4183d4[_0x2b5857([0x73,0x70,0x6c,0x69,0x74])](_0x2b5857([0x2e])),[_0x4f6095,_0x4abc49,_0x36c2ad]=_0x6e7913;return _0x1e68b9(_0x4f6095),await _0x2accb4(_0x4f6095,_0x4abc49,_0x36c2ad),_0x468bf0;}catch{return!0x1;}function _0x1e68b9(_0x23432b){const _0x51a5ea=_0x1009a1(_0x23432b);_0x51a5ea&&_0x51a5ea[_0x2b5857([0x61,0x6c,0x67])]==_0x2b5857([0x45,0x53,0x32,0x35,0x36])||(_0x468bf0=!0x1);}async function _0x2accb4(_0x47e348,_0x189a50,_0x2c55ac){const _0x10ae64=window[_0x2b5857([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b5857([0x66,0x72,0x6f,0x6d])](_0xdf1b67(_0x2c55ac),_0x521f46=>_0x521f46[_0x2b5857([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1af412=new window[(_0x2b5857([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b5857([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47e348+_0x2b5857([0x2e])+_0x189a50),_0x483b18=window[_0x2b5857([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b5857([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x483b18)return;const _0x2327d3=await _0x483b18[_0x2b5857([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b5857([0x6a,0x77,0x6b]),_0x2348fb,{[_0x2b5857([0x6e,0x61,0x6d,0x65])]:_0x2b5857([0x45,0x43,0x44,0x53,0x41]),[_0x2b5857([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b5857([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b5857([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x483b18[_0x2b5857([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b5857([0x6e,0x61,0x6d,0x65])]:_0x2b5857([0x45,0x43,0x44,0x53,0x41]),[_0x2b5857([0x68,0x61,0x73,0x68])]:{[_0x2b5857([0x6e,0x61,0x6d,0x65])]:_0x2b5857([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2327d3,_0x10ae64,_0x1af412)||(_0x468bf0=!0x1);}}function _0x1009a1(_0x142973){return _0x142973[_0x2b5857([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b5857([0x65,0x79]))?JSON[_0x2b5857([0x70,0x61,0x72,0x73,0x65])](_0xdf1b67(_0x142973)):null;}function _0xdf1b67(_0x404827){return window[_0x2b5857([0x61,0x74,0x6f,0x62])](_0x404827[_0x2b5857([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b5857([0x2b]))[_0x2b5857([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b5857([0x2f])));}function _0x321763(_0x4f026a){let _0x423159=0x1505;function _0x3c3cbe(_0x1c9988){for(let _0x8de4c0=0x0;_0x8de4c0<_0x1c9988[_0x2b5857([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8de4c0++){const _0x269ebf=_0x1c9988[_0x2b5857([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8de4c0);_0x423159=(_0x423159<<0x5)+_0x423159+_0x269ebf,_0x423159&=_0x423159;}}function _0x5822a5(_0x281426){Array[_0x2b5857([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x281426)?_0x281426[_0x2b5857([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5822a5):_0x281426&&typeof _0x281426==_0x2b5857([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b5857([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x281426)[_0x2b5857([0x73,0x6f,0x72,0x74])]()[_0x2b5857([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x507dc3,_0x1047ce])=>{_0x3c3cbe(_0x507dc3),_0x5822a5(_0x1047ce);}):_0x3c3cbe(window[_0x2b5857([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x281426));}return _0x5822a5(_0x4f026a),_0x423159>>>0x0;}function _0x4a319c(_0x92913e){return _0x92913e[_0x2b5857([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b5857([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b5857([0x30]));}function _0x3cc180(_0x3fe1f4){return _0x3fe1f4[_0x2b5857([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b5857([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b5857([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a44ed(){}function _0x2b5857(_0xd498f3){return _0xd498f3['map'](_0x536c1f=>String['fromCharCode'](_0x536c1f))['join']('');}_0x7f5b04(await _0x508201());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1518be){const {plugins:_0x5f12e2,editing:_0x579266,model:_0x3efed2}=this['editor'],_0x15800f=_0x5f12e2['get'](_0x59372c)['getFootnote'](_0x1518be);return!!_0x15800f&&(_0x3efed2['change'](_0x118de2=>{_0x118de2['setSelection'](_0x118de2['createPositionAt'](_0x15800f['definition'],'end'));}),_0x579266['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x38bd8b){const {plugins:_0x13eef8,editing:_0x2a521d,model:_0x36cbba}=this['editor'],_0x4dae8f=_0x13eef8['get'](_0x59372c)['getFootnote'](_0x38bd8b);return!!_0x4dae8f&&(_0x36cbba['change'](_0x44a30a=>{_0x44a30a['setSelection'](_0x4dae8f['reference'],'on');}),_0x2a521d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xdfbbee}=this['editor']['model'],_0x213686=this['editor']['config']['get']('footnotes.multiBlock');_0xdfbbee['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xdfbbee['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xdfbbee['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x213686?_0xdfbbee['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xdfbbee['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xdfbbee['addChildCheck'](_0x19f676=>{for(const _0x3719c4 of _0x19f676)if('footnoteDefinition'===_0x3719c4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2dbc8d}=this,{conversion:_0x7eb837,editing:_0x1cea8f}=_0x2dbc8d,{t:t}=_0x2dbc8d['locale'];_0x7eb837['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x52e769,{writer:_0x36baff,consumable:_0x8c47f5})=>{const _0x415595=_0x52e769['getChild'](0x0);if(!_0x415595||!_0x415595['is']('element','a'))return null;const _0x5daf97=_0x415595['getAttribute']('href')||'';if(!_0x5daf97['startsWith']('#'))return null;const _0x4e6e83=_0x5daf97['replace'](/^#/,'');if(!_0x4e6e83)return null;_0x8c47f5['consume'](_0x415595,{'name':!0x0,'attributes':['href']});for(const {item:_0x57472c}of _0x1cea8f['view']['createRangeIn'](_0x415595))_0x57472c['is']('$textProxy')?_0x8c47f5['consume'](_0x57472c['textNode'],{'name':!0x0}):_0x57472c['is']('element')&&_0x8c47f5['consume'](_0x57472c,{'name':!0x0});return _0x36baff['createElement']('footnoteRef',{'footnoteId':_0x4e6e83});}}),_0x7eb837['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3b84ba,{writer:_0x175df3})=>D(_0x3b84ba,_0x175df3)}),_0x7eb837['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x140071,{writer:_0x56d2ba})=>{const _0x1c7861=_0x140071['getAttribute']('footnoteCounter');return _0x2f1de7(D(_0x140071,_0x56d2ba),_0x56d2ba,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1c7861)});}});}['_defineDefinitionsConverters'](){const {editor:_0x200221}=this,{t:t}=_0x200221['locale'],{conversion:_0x26c2ab}=_0x200221;_0x26c2ab['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x26c2ab['for']('upcast')['add'](_0x888c45=>{_0x888c45['on']('element:ol',(_0x543a21,_0x1b1b6d,_0x1e8011)=>{const _0x170738=_0x1b1b6d['viewItem'];if(!_0x170738['hasClass']('footnotes-list')||!_0x1b1b6d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1e8011['consumable']['consume'](_0x170738,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x58f457,modelCursor:_0x2b749b}=_0x1e8011['convertChildren'](_0x1b1b6d['viewItem'],_0x1b1b6d['modelCursor']);_0x1b1b6d['modelRange']=_0x58f457,_0x1b1b6d['modelCursor']=_0x2b749b;}),_0x888c45['on']('element:hr',(_0x281e4f,_0x4fb066,_0x269779)=>{const _0x5c011d=_0x4fb066['viewItem'];_0x5c011d['hasClass']('footnotes-divider')&&_0x4fb066['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x269779['consumable']['consume'](_0x5c011d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x26c2ab['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2fa141,{writer:_0x4bdc25})=>g(_0x4bdc25)}),_0x26c2ab['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5096fb,{writer:_0x276f1f})=>{const _0x436379=g(_0x276f1f,{'data-footnotes-list-label':t('Footnotes')}),_0x403631=_0x2f1de7(_0x436379,_0x276f1f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x276f1f['setCustomProperty']('footnotesDefinitions',!0x0,_0x403631),_0x403631;}});}['_defineDefinitionConverters'](){const {editor:_0x4cf8dc}=this,{conversion:_0x163fcc,locale:_0x3f3e90}=_0x4cf8dc,_0x463caf=_0x4cf8dc['config']['get']('footnotes.multiBlock');_0x163fcc['for']('upcast')['add'](_0x188386=>{_0x188386['on']('element:li',(_0x56fb7f,_0x3b924f,_0x1e92dd)=>{const _0x57ef40=_0x3b924f['viewItem'];if(!_0x57ef40['hasClass']('footnote-definition')||!_0x57ef40['getAttribute']('id'))return;const _0x589966=_0x57ef40['parent'];if(!_0x589966['is']('element','ol')||!_0x589966['hasClass']('footnotes-list'))return;if(!_0x1e92dd['consumable']['test'](_0x57ef40,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3721f2=_0x1e92dd['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x57ef40['getAttribute']('id')});if(!_0x1e92dd['safeInsert'](_0x3721f2,_0x3b924f['modelCursor']))return;_0x1e92dd['consumable']['consume'](_0x57ef40,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x56ff02=Array['from'](_0x57ef40['getChildren']())['find'](_0x1a62e6=>_0x1a62e6['is']('element')&&_0x1a62e6['hasClass']('footnote-content'));for(const _0x2ba5f8 of _0x57ef40['getChildren']())_0x2ba5f8['is']('element')&&(_0x1e92dd['consumable']['consume'](_0x2ba5f8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1e92dd['consumable']['consume'](_0x2ba5f8,{'name':!0x0,'classes':'footnote-content'}));if(_0x56ff02){if(_0x463caf)_0x1e92dd['convertChildren'](_0x56ff02,_0x3721f2);else{const _0x51d82b=_0x1e92dd['writer']['createElement']('footnoteInlineContent');_0x1e92dd['writer']['insert'](_0x51d82b,_0x3721f2),_0x1e92dd['convertChildren'](_0x56ff02,_0x51d82b);}}_0x1e92dd['updateConversionResult'](_0x3721f2,_0x3b924f);});}),_0x163fcc['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46547c,{writer:_0x297c45})=>v(_0x46547c,_0x297c45,_0x3f3e90,{'dataPipeline':!0x0})}),_0x163fcc['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5d50d2,{writer:_0x15b856})=>v(_0x5d50d2,_0x15b856,_0x3f3e90)});}['_defineBogusParagraphConverters'](){const {editor:_0x52ae90}=this,{conversion:_0x1ef147}=_0x52ae90;_0x52ae90['config']['get']('footnotes.multiBlock')?(_0x1ef147['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x1ef147['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x52ae90['model']['document'],'change:data',()=>{!function(_0x489438,_0x3906c9){const _0x1dc5e8=_0x489438['document']['differ'],_0x3ae05a=new Set();for(const _0xf4ab8a of _0x1dc5e8['getChanges']()){const _0x4493c6='attribute'==_0xf4ab8a['type']?_0xf4ab8a['range']['start']['parent']:_0xf4ab8a['position']['parent'];_0x4493c6['is']('element','footnoteDefinition')&&_0x3ae05a['add'](_0x4493c6);}for(const _0x129909 of _0x3ae05a['values']()){const _0x225420=Array['from'](_0x129909['getChildren']())['filter'](_0x228a8b=>p(_0x228a8b,_0x3906c9['mapper']));for(const _0x34654b of _0x225420)_0x3906c9['reconvertItem'](_0x34654b);}}(_0x52ae90['model'],_0x52ae90['editing']);})):(_0x1ef147['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x1ef147['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2701f2,{writer:_0x1a9977})=>{const _0x69ea=_0x1a9977['createContainerElement']('span');return _0x1a9977['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x69ea),_0x69ea;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3727cd}=this,{editing:_0x11586e,t:t}=_0x3727cd,_0x247e7a=_0x3727cd['model']['document']['selection'];_0x3727cd['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x3727cd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x11586e['view']['document'],'enter',(_0x4cc9d4,_0x52c328)=>{const _0x420a95=function(_0x300d04){const _0x7c25fb=_0x300d04['getSelectedElement']();if(_0x7c25fb?.['is']('element','footnoteRef'))return _0x7c25fb;return null;}(_0x247e7a);if(_0x420a95){const _0x1dedc6=_0x420a95['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1dedc6),_0x52c328['preventDefault'](),_0x4cc9d4['stop']();}},{'context':_0x119295});}['_defineClickHandlers'](){const {editor:_0x5a89d4}=this,{editing:_0x38f9cd}=_0x5a89d4;_0x5a89d4['editing']['view']['addObserver'](_0x275c58),_0x5a89d4['editing']['view']['addObserver'](_0x4c6227);let _0x5263a4=!0x1;this['listenTo'](_0x38f9cd['view']['document'],'pointerdown',(_0x5062fc,_0xd49194)=>{const {target:_0x362c28}=_0xd49194,_0x44859f=_0x38f9cd['view']['document']['selection'];_0x5263a4=!(!_0x362c28['is']('element','sup')||!_0x362c28['hasClass']('footnote'))&&_0x44859f['getSelectedElement']()===_0x362c28;},{'priority':'high'}),this['listenTo'](_0x38f9cd['view']['document'],'click',(_0x528f5a,_0x242a4e)=>{const {target:_0x1b51ec}=_0x242a4e,_0x9b743e=_0x1b51ec['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x9b743e['slice'](0x1)),_0x528f5a['stop'](),_0x242a4e['preventDefault']();},{'priority':'high','context':_0x5dc820=>_0x5dc820['is']('element','sup')&&_0x5dc820['hasClass']('footnote')&&_0x5263a4}),this['listenTo'](_0x38f9cd['view']['document'],'click',(_0x20067e,_0x47af75)=>{const {target:_0x95f260}=_0x47af75;if(!_0x95f260['is']('element','a'))return;let _0x20c598=_0x95f260['getAttribute']('href');if(!_0x20c598?.['startsWith']('#'))return;_0x20c598=_0x20c598['slice'](0x1);let _0x395d1b=!0x1;(_0x20c598['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x20c598['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x20c598))&&(_0x395d1b=!0x0),_0x395d1b&&(_0x47af75['preventDefault'](),_0x20067e['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x2bea9a}={}){return(_0x266832,{writer:_0x4819d5})=>{if(!h(_0x266832))return null;if(!_0x2bea9a)return _0x4819d5['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1a245d=_0x4819d5['createContainerElement']('p');return _0x4819d5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1a245d),_0x1a245d;};}function h(_0x39faf6){const {parent:_0x20bb7f}=_0x39faf6;if(!_0x20bb7f?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x20bb7f['childCount'])return!0x1;for(const _0xdb8643 of _0x39faf6['getAttributeKeys']())if(!_0xdb8643['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xdb8643)return!0x1;return!0x0;}function p(_0xc0553b,_0x1c6b68){if(!_0xc0553b['is']('element','paragraph'))return!0x1;const _0x4c5141=_0x1c6b68['toViewElement'](_0xc0553b);return!!_0x4c5141&&h(_0xc0553b)!==_0x4c5141['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1cf964){return _0x119295(_0x1cf964)&&_0x1cf964['is']('containerElement')&&!!_0x1cf964['getCustomProperty']('footnotesDefinitions');}function g(_0x4429cb,_0x490cef={}){const _0x1e2d54=_0x4429cb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x69433f=_0x4429cb['createContainerElement']('ol',{'class':'footnotes-list'},_0x4429cb['createSlot']());return _0x4429cb['createContainerElement']('div',{'class':'footnotes',..._0x490cef},[_0x1e2d54,_0x69433f]);}function D(_0x34a44d,_0x233453){const _0x255edb=_0x34a44d['getAttribute']('footnoteId'),_0x16ddd6=_0x34a44d['getAttribute']('footnoteCounter'),_0x989095=_0x233453['createUIElement']('a',{'href':'#'+_0x255edb},function(_0x46b230){const _0x22138e=this['toDomElement'](_0x46b230);return _0x22138e['textContent']=_0x16ddd6,_0x22138e;}),_0x17b3eb=_0x233453['createContainerElement']('sup',{'id':'ref-'+_0x255edb,'class':'footnote'},[_0x989095]);return _0x17b3eb['getFillerOffset']=()=>null,_0x17b3eb;}function v(_0x66b677,_0x2713cd,_0x1e727f,{dataPipeline:_0x11c235}={}){const {t:t}=_0x1e727f,_0x5b1701=_0x66b677['getAttribute']('footnoteId'),_0x1a4788=_0x2713cd['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5b1701},function(_0x108714){const _0x5885ec=this['toDomElement'](_0x108714);return _0x5885ec['innerText']='^',_0x5885ec;}),_0x47ab53=_0x11c235?_0x2713cd['createContainerElement']('div',{'class':'footnote-content'}):_0xbd0eca(_0x2713cd['createEditableElement']('div',{'class':'footnote-content'}),_0x2713cd,{'label':t('Footnote\x20content.')});return _0x2713cd['insert'](_0x2713cd['createPositionAt'](_0x47ab53,0x0),_0x2713cd['createSlot']()),_0x2713cd['createContainerElement']('li',{'class':'footnote-definition','id':_0x5b1701},[_0x1a4788,_0x47ab53]);}
|
|
23
|
+
import{Plugin as _0x56ac54}from'ckeditor5/src/core.js';import{isWidget as _0x3e139b,toWidget as _0x4e823f,toWidgetEditable as _0x217a51}from'ckeditor5/src/widget.js';import{uid as _0x4ff677}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3751dc,ClickObserver as _0x371439}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x22b8f2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1aa36b}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x56ac54{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x22b8f2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x12b193}=this;_0x12b193['config']['define']('footnotes.multiBlock',!0x0),_0x12b193['commands']['add']('insertFootnote',new _0x1aa36b(_0x12b193)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x537214){const _0x334bc5=_0x3adfe8([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]),_0x35bd68=0x47a28506,_0x45dca6=0x47a5f266^_0x35bd68,_0x4d16d4=window[_0x3adfe8([0x44,0x61,0x74,0x65])][_0x3adfe8([0x6e,0x6f,0x77])](),_0x41cb0e=_0x537214[_0x3adfe8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54edb9=new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b10c=>{_0x41cb0e[_0x3adfe8([0x6f,0x6e,0x63,0x65])](_0x3adfe8([0x72,0x65,0x61,0x64,0x79]),_0x16b10c);}),_0x262d61={[_0x3adfe8([0x6b,0x74,0x79])]:_0x3adfe8([0x45,0x43]),[_0x3adfe8([0x75,0x73,0x65])]:_0x3adfe8([0x73,0x69,0x67]),[_0x3adfe8([0x63,0x72,0x76])]:_0x3adfe8([0x50,0x2d,0x32,0x35,0x36]),[_0x3adfe8([0x78])]:_0x3adfe8([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]),[_0x3adfe8([0x79])]:_0x3adfe8([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]),[_0x3adfe8([0x61,0x6c,0x67])]:_0x3adfe8([0x45,0x53,0x32,0x35,0x36])},_0x50d160=_0x41cb0e[_0x3adfe8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3adfe8([0x67,0x65,0x74])](_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xabe689(){let _0x47676d,_0x194dee=null,_0x1e7e69=null;try{if(_0x50d160==_0x3adfe8([0x47,0x50,0x4c]))return _0x3adfe8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47676d=_0x16f7e1(),!_0x47676d)return _0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47676d[_0x3adfe8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e7e69=_0x4a3fb0(_0x47676d[_0x3adfe8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47676d[_0x3adfe8([0x6a,0x74,0x69])])),await _0x580c62()?_0x4bc44b()?_0x1a903b()?_0x3adfe8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfb497()?(_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adfe8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x194dee=_0x1fdae0(_0x3adfe8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3adfe8([0x74,0x72,0x69,0x61,0x6c])&&(_0x194dee=_0x1fdae0(_0x3adfe8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5801cf()):_0x3adfe8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3adfe8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3adfe8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a903b(){const _0x492d75=[_0x3adfe8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3adfe8([0x74,0x72,0x69,0x61,0x6c])][_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d16d4/0x3e8:0xe10*_0x45dca6;return _0x47676d[_0x3adfe8([0x65,0x78,0x70])]<_0x492d75;}function _0x4bc44b(){const _0x90f914=_0x47676d[_0x3adfe8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90f914&&(!!_0x90f914[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x2a]))||!!_0x90f914[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x46,0x4f,0x4f])));}function _0xfb497(){const _0xf4dc45=_0x47676d[_0x3adfe8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf4dc45||0x0==_0xf4dc45[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x449cfe}=new URL(window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf4dc45[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449cfe))return!0x0;const _0x369e01=_0x449cfe[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e]));return _0xf4dc45[_0x3adfe8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f98d4=>_0x4f98d4[_0x3adfe8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3adfe8([0x2a])))[_0x3adfe8([0x6d,0x61,0x70])](_0x23f611=>_0x23f611[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e])))[_0x3adfe8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56e941=>_0x56e941[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x369e01[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adfe8([0x6d,0x61,0x70])](_0x497351=>Array(_0x369e01[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x497351[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3adfe8([0x66,0x69,0x6c,0x6c])](_0x497351[0x0]===_0x3adfe8([0x2a])?_0x3adfe8([0x2a]):'')[_0x3adfe8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x497351))[_0x3adfe8([0x73,0x6f,0x6d,0x65])](_0x5e80d5=>_0x369e01[_0x3adfe8([0x65,0x76,0x65,0x72,0x79])]((_0x21d259,_0x5c1caa)=>_0x5e80d5[_0x5c1caa]===_0x21d259||_0x5e80d5[_0x5c1caa]===_0x3adfe8([0x2a])));}function _0x5801cf(){return _0x194dee&&_0x1e7e69?new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43de78,_0x64350f)=>{_0x194dee[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x43de78,_0x64350f),_0x1e7e69[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x237bc7=>{_0x237bc7!=_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])&&_0x43de78(_0x237bc7);},_0x64350f);}):_0x194dee||_0x1e7e69||_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a3fb0(_0x453e05,_0x1a5b94){return new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107a93=>{if(_0x573685())return _0x107a93(_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]));_0x35bcc9(),_0x41cb0e[_0x3adfe8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bceea=!0x1;const _0x496133=_0x4ff677();function _0x2f91fc(_0x1054ec){return!!_0x1054ec&&(typeof _0x1054ec===_0x3adfe8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1054ec===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1054ec[_0x3adfe8([0x74,0x68,0x65,0x6e])]===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1054ec[_0x3adfe8([0x63,0x61,0x74,0x63,0x68])]===_0x3adfe8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37b110(_0x44009a){_0x4d221c(_0x44009a)[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0xff21fc=>{if(!_0xff21fc||_0xff21fc[_0x3adfe8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3adfe8([0x6f,0x6b]))return _0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x163ed5(_0x1b40a4(_0x496133+_0x1a5b94))!=_0xff21fc[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3adfe8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x45fd19=>(_0x5346e0(),_0x45fd19),()=>{const _0x1deded=_0x274862();return null==_0x1deded?(_0x5346e0(),_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])):_0x3adfe8(_0x4d16d4-_0x1deded>(0x63ae0106^_0x35bd68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x107a93)[_0x3adfe8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d65d4=0x47946b86^_0x35bd68;function _0x5346e0(){const _0x2a8cbe=_0x3adfe8([0x6c,0x6c,0x63,0x74,0x2d])+_0x163ed5(_0x1b40a4(_0x453e05)),_0x3a47f5=_0x2cda0f(_0x163ed5(window[_0x3adfe8([0x4d,0x61,0x74,0x68])][_0x3adfe8([0x63,0x65,0x69,0x6c])](_0x4d16d4/_0x1d65d4)));window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adfe8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a8cbe,_0x3a47f5);}function _0x274862(){const _0x2cad5e=_0x3adfe8([0x6c,0x6c,0x63,0x74,0x2d])+_0x163ed5(_0x1b40a4(_0x453e05)),_0x394abc=window[_0x3adfe8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3adfe8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cad5e);return _0x394abc?window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cda0f(_0x394abc),0x10)*_0x1d65d4:null;}function _0x4d221c(_0x2fbb96){return new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b1648,_0x4f82e3)=>{_0x2fbb96[_0x3adfe8([0x74,0x68,0x65,0x6e])](_0x1b1648,_0x4f82e3),window[_0x3adfe8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f82e3,0x47a351c6^_0x35bd68);});}}_0x41cb0e[_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ff027,_0xe0fe96)=>{if(_0xe0fe96[0x0]!=_0x453e05)return _0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe0fe96[0x1]={..._0xe0fe96[0x1],[_0x3adfe8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x496133};},{[_0x3adfe8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adfe8([0x68,0x69,0x67,0x68])}),_0x41cb0e[_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x360c97=>{_0x2f91fc(_0x360c97[_0x3adfe8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bceea=!0x0,_0x37b110(_0x360c97[_0x3adfe8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3adfe8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3adfe8([0x6c,0x6f,0x77])}),_0x54edb9[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>{_0x4bceea||_0x107a93(_0x3adfe8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573685(){return _0x41cb0e[_0x3adfe8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adfe8([0x76,0x69,0x65,0x77])][_0x3adfe8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3adfe8([0x61,0x75,0x74,0x6f]);}function _0x35bcc9(){_0x41cb0e[_0x3adfe8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3adfe8([0x76,0x69,0x65,0x77])][_0x3adfe8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3adfe8([0x61,0x75,0x74,0x6f]);}}function _0x1fdae0(_0x1d319e){const _0x12642b=[new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc2760=>setTimeout(_0xcc2760,0x47abbbca^_0x35bd68)),_0x54edb9[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x444a0b=>{let _0x2d7a1c=0x0;_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x6f,0x6e])](_0x3adfe8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x325881,_0x18e28a)=>{_0x18e28a[0x0][_0x3adfe8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d7a1c++,_0x2d7a1c==(0x47a284fe^_0x35bd68)&&(_0x444a0b(),_0x325881[_0x3adfe8([0x6f,0x66,0x66])]());});}))];return window[_0x3adfe8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3adfe8([0x72,0x61,0x63,0x65])](_0x12642b)[_0x3adfe8([0x74,0x68,0x65,0x6e])](()=>_0x1d319e);}async function _0x320ac9(){await _0x54edb9,_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3340,_0x41cb0e[_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3adfe8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c3340,_0x41cb0e[_0x3adfe8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3adfe8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x438e49(_0x2fcb2e){const _0x4f87c2=_0x472926();_0x41cb0e[_0x4f87c2]=_0x3adfe8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fcb2e,_0x2fcb2e!=_0x3adfe8([0x56,0x61,0x6c,0x69,0x64])&&_0x320ac9();}function _0x472926(){const _0x397a05=window[_0x3adfe8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3adfe8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3adfe8([0x6e,0x6f,0x77])]())[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3adfe8([0x2e]),'');let _0x300ca5=_0x3adfe8([0x75]);for(let _0x518db4=0x0;_0x518db4<_0x397a05[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x518db4+=0x2){let _0x330f20=window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397a05[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x518db4,_0x518db4+0x2));_0x330f20>=_0x334bc5[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x330f20-=_0x334bc5[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x300ca5+=_0x334bc5[_0x330f20];}return _0x300ca5;}function _0x16f7e1(){const _0x55e54c=_0x50d160[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e]));if(0x3!=_0x55e54c[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x478599(_0x55e54c[0x1]);function _0x478599(_0x4cb845){const _0x362a8e=_0x2b4f27(_0x4cb845);return _0x362a8e&&_0x3892c9()?_0x362a8e:null;function _0x3892c9(){const _0x31a331=_0x362a8e[_0x3adfe8([0x6a,0x74,0x69])],_0x5d0ef8=window[_0x3adfe8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31a331[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31a331[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fa8ad={..._0x362a8e,[_0x3adfe8([0x6a,0x74,0x69])]:_0x31a331[_0x3adfe8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31a331[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fa8ad[_0x3adfe8([0x76,0x63])],_0x1b40a4(_0x1fa8ad)==_0x5d0ef8;}}}async function _0x580c62(){let _0x28621a=!0x0;try{const _0x8e3e2b=_0x50d160[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])](_0x3adfe8([0x2e])),[_0x4a1026,_0x2bee38,_0x2fc068]=_0x8e3e2b;return _0x31d983(_0x4a1026),await _0xe194cc(_0x4a1026,_0x2bee38,_0x2fc068),_0x28621a;}catch{return!0x1;}function _0x31d983(_0x1babf7){const _0x21cf80=_0x2b4f27(_0x1babf7);_0x21cf80&&_0x21cf80[_0x3adfe8([0x61,0x6c,0x67])]==_0x3adfe8([0x45,0x53,0x32,0x35,0x36])||(_0x28621a=!0x1);}async function _0xe194cc(_0x16b48a,_0x54aa97,_0x50e14f){const _0x19ab7d=window[_0x3adfe8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3adfe8([0x66,0x72,0x6f,0x6d])](_0x173959(_0x50e14f),_0x757b3b=>_0x757b3b[_0x3adfe8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x571dba=new window[(_0x3adfe8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3adfe8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16b48a+_0x3adfe8([0x2e])+_0x54aa97),_0x139a51=window[_0x3adfe8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3adfe8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x139a51)return;const _0x40ff06=await _0x139a51[_0x3adfe8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3adfe8([0x6a,0x77,0x6b]),_0x262d61,{[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x45,0x43,0x44,0x53,0x41]),[_0x3adfe8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3adfe8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x139a51[_0x3adfe8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x45,0x43,0x44,0x53,0x41]),[_0x3adfe8([0x68,0x61,0x73,0x68])]:{[_0x3adfe8([0x6e,0x61,0x6d,0x65])]:_0x3adfe8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ff06,_0x19ab7d,_0x571dba)||(_0x28621a=!0x1);}}function _0x2b4f27(_0x546406){return _0x546406[_0x3adfe8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3adfe8([0x65,0x79]))?JSON[_0x3adfe8([0x70,0x61,0x72,0x73,0x65])](_0x173959(_0x546406)):null;}function _0x173959(_0x347cd2){return window[_0x3adfe8([0x61,0x74,0x6f,0x62])](_0x347cd2[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3adfe8([0x2b]))[_0x3adfe8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3adfe8([0x2f])));}function _0x1b40a4(_0xaf3ba0){let _0x5aa83=0x1505;function _0x2f5dc9(_0x3e37f2){for(let _0xc842cc=0x0;_0xc842cc<_0x3e37f2[_0x3adfe8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc842cc++){const _0x3b9ae4=_0x3e37f2[_0x3adfe8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc842cc);_0x5aa83=(_0x5aa83<<0x5)+_0x5aa83+_0x3b9ae4,_0x5aa83&=_0x5aa83;}}function _0xd1ea0f(_0x9b40d7){Array[_0x3adfe8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b40d7)?_0x9b40d7[_0x3adfe8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd1ea0f):_0x9b40d7&&typeof _0x9b40d7==_0x3adfe8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3adfe8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b40d7)[_0x3adfe8([0x73,0x6f,0x72,0x74])]()[_0x3adfe8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x125358,_0x4032d])=>{_0x2f5dc9(_0x125358),_0xd1ea0f(_0x4032d);}):_0x2f5dc9(window[_0x3adfe8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b40d7));}return _0xd1ea0f(_0xaf3ba0),_0x5aa83>>>0x0;}function _0x163ed5(_0x2c7fbb){return _0x2c7fbb[_0x3adfe8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3adfe8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3adfe8([0x30]));}function _0x2cda0f(_0x18aeb5){return _0x18aeb5[_0x3adfe8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3adfe8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3adfe8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7c3340(){}function _0x3adfe8(_0x272048){return _0x272048['map'](_0x423e9f=>String['fromCharCode'](_0x423e9f))['join']('');}_0x438e49(await _0xabe689());}(this);}['_moveSelectionToFootnoteDefinition'](_0x39c3a3){const {plugins:_0x3f7b37,editing:_0x2231f3,model:_0x4610ce}=this['editor'],_0x98fe4e=_0x3f7b37['get'](_0x22b8f2)['getFootnote'](_0x39c3a3);return!!_0x98fe4e&&(_0x4610ce['change'](_0x42da27=>{_0x42da27['setSelection'](_0x42da27['createPositionAt'](_0x98fe4e['definition'],'end'));}),_0x2231f3['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x13f045){const {plugins:_0x58a615,editing:_0x166c66,model:_0x37f62e}=this['editor'],_0x497a82=_0x58a615['get'](_0x22b8f2)['getFootnote'](_0x13f045);return!!_0x497a82&&(_0x37f62e['change'](_0x7782a7=>{_0x7782a7['setSelection'](_0x497a82['reference'],'on');}),_0x166c66['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x140b46}=this['editor']['model'],_0x26e2f6=this['editor']['config']['get']('footnotes.multiBlock');_0x140b46['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x140b46['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x140b46['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x26e2f6?_0x140b46['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x140b46['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x140b46['addChildCheck'](_0x5ba99c=>{for(const _0x4a1fef of _0x5ba99c)if('footnoteDefinition'===_0x4a1fef['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5e36e5}=this,{conversion:_0xd1e4a7,editing:_0x414cbc}=_0x5e36e5,{t:t}=_0x5e36e5['locale'];_0xd1e4a7['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3c93b3,{writer:_0x4ebdee,consumable:_0x10e538})=>{const _0x38b7e6=_0x3c93b3['getChild'](0x0);if(!_0x38b7e6||!_0x38b7e6['is']('element','a'))return null;const _0x9221c9=_0x38b7e6['getAttribute']('href')||'';if(!_0x9221c9['startsWith']('#'))return null;const _0x2ebb64=_0x9221c9['replace'](/^#/,'');if(!_0x2ebb64)return null;_0x10e538['consume'](_0x38b7e6,{'name':!0x0,'attributes':['href']});for(const {item:_0x299726}of _0x414cbc['view']['createRangeIn'](_0x38b7e6))_0x299726['is']('$textProxy')?_0x10e538['consume'](_0x299726['textNode'],{'name':!0x0}):_0x299726['is']('element')&&_0x10e538['consume'](_0x299726,{'name':!0x0});return _0x4ebdee['createElement']('footnoteRef',{'footnoteId':_0x2ebb64});}}),_0xd1e4a7['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x497bfb,{writer:_0x16e110})=>D(_0x497bfb,_0x16e110)}),_0xd1e4a7['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x300f08,{writer:_0x15f7cc})=>{const _0x24ebe9=_0x300f08['getAttribute']('footnoteCounter');return _0x4e823f(D(_0x300f08,_0x15f7cc),_0x15f7cc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x24ebe9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5019c9}=this,{t:t}=_0x5019c9['locale'],{conversion:_0x2b1e5b}=_0x5019c9;_0x2b1e5b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2b1e5b['for']('upcast')['add'](_0x4f191e=>{_0x4f191e['on']('element:ol',(_0x1c8aff,_0x52ae63,_0x1d8680)=>{const _0x41d809=_0x52ae63['viewItem'];if(!_0x41d809['hasClass']('footnotes-list')||!_0x52ae63['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1d8680['consumable']['consume'](_0x41d809,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5b20d6,modelCursor:_0x412371}=_0x1d8680['convertChildren'](_0x52ae63['viewItem'],_0x52ae63['modelCursor']);_0x52ae63['modelRange']=_0x5b20d6,_0x52ae63['modelCursor']=_0x412371;}),_0x4f191e['on']('element:hr',(_0x5381a1,_0x138acc,_0x3fbd2e)=>{const _0x2039a5=_0x138acc['viewItem'];_0x2039a5['hasClass']('footnotes-divider')&&_0x138acc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3fbd2e['consumable']['consume'](_0x2039a5,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2b1e5b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x342687,{writer:_0x8b3f7c})=>g(_0x8b3f7c)}),_0x2b1e5b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x39764d,{writer:_0x177291})=>{const _0x1d84b4=g(_0x177291,{'data-footnotes-list-label':t('Footnotes')}),_0x40d1e1=_0x4e823f(_0x1d84b4,_0x177291,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x177291['setCustomProperty']('footnotesDefinitions',!0x0,_0x40d1e1),_0x40d1e1;}});}['_defineDefinitionConverters'](){const {editor:_0x197326}=this,{conversion:_0x28c5fd,locale:_0x4449de}=_0x197326,_0x4ca8a9=_0x197326['config']['get']('footnotes.multiBlock');_0x28c5fd['for']('upcast')['add'](_0x1cbee5=>{_0x1cbee5['on']('element:li',(_0x2e345d,_0x2e88d4,_0x20b44b)=>{const _0x54e140=_0x2e88d4['viewItem'];if(!_0x54e140['hasClass']('footnote-definition')||!_0x54e140['getAttribute']('id'))return;const _0x55aabc=_0x54e140['parent'];if(!_0x55aabc['is']('element','ol')||!_0x55aabc['hasClass']('footnotes-list'))return;if(!_0x20b44b['consumable']['test'](_0x54e140,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x6ce5da=_0x20b44b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x54e140['getAttribute']('id')});if(!_0x20b44b['safeInsert'](_0x6ce5da,_0x2e88d4['modelCursor']))return;_0x20b44b['consumable']['consume'](_0x54e140,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1ec1f0=Array['from'](_0x54e140['getChildren']())['find'](_0x1b3700=>_0x1b3700['is']('element')&&_0x1b3700['hasClass']('footnote-content'));for(const _0x584f83 of _0x54e140['getChildren']())_0x584f83['is']('element')&&(_0x20b44b['consumable']['consume'](_0x584f83,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x20b44b['consumable']['consume'](_0x584f83,{'name':!0x0,'classes':'footnote-content'}));if(_0x1ec1f0){if(_0x4ca8a9)_0x20b44b['convertChildren'](_0x1ec1f0,_0x6ce5da);else{const _0x2b0786=_0x20b44b['writer']['createElement']('footnoteInlineContent');_0x20b44b['writer']['insert'](_0x2b0786,_0x6ce5da),_0x20b44b['convertChildren'](_0x1ec1f0,_0x2b0786);}}_0x20b44b['updateConversionResult'](_0x6ce5da,_0x2e88d4);});}),_0x28c5fd['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x20b5cd,{writer:_0x9fc4f7})=>v(_0x20b5cd,_0x9fc4f7,_0x4449de,{'dataPipeline':!0x0})}),_0x28c5fd['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x42db95,{writer:_0xd12790})=>v(_0x42db95,_0xd12790,_0x4449de)});}['_defineBogusParagraphConverters'](){const {editor:_0x3cfc60}=this,{conversion:_0x89b509}=_0x3cfc60;_0x3cfc60['config']['get']('footnotes.multiBlock')?(_0x89b509['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x89b509['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3cfc60['model']['document'],'change:data',()=>{!function(_0x182649,_0x2847a9){const _0x4d0ec5=_0x182649['document']['differ'],_0x421cd6=new Set();for(const _0x5c0ba9 of _0x4d0ec5['getChanges']()){const _0x564e9e='attribute'==_0x5c0ba9['type']?_0x5c0ba9['range']['start']['parent']:_0x5c0ba9['position']['parent'];_0x564e9e['is']('element','footnoteDefinition')&&_0x421cd6['add'](_0x564e9e);}for(const _0x46bf83 of _0x421cd6['values']()){const _0x12f06d=Array['from'](_0x46bf83['getChildren']())['filter'](_0x2ed3ab=>p(_0x2ed3ab,_0x2847a9['mapper']));for(const _0x2e0090 of _0x12f06d)_0x2847a9['reconvertItem'](_0x2e0090);}}(_0x3cfc60['model'],_0x3cfc60['editing']);})):(_0x89b509['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x89b509['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1d9c6e,{writer:_0x20ce57})=>{const _0x4e1d53=_0x20ce57['createContainerElement']('span');return _0x20ce57['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e1d53),_0x4e1d53;}}));}['_defineKeyboardHandlers'](){const {editor:_0xdabf32}=this,{editing:_0x321d04,t:t}=_0xdabf32,_0x5374e5=_0xdabf32['model']['document']['selection'];_0xdabf32['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0xdabf32['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x321d04['view']['document'],'enter',(_0x22bae1,_0x5a8ec8)=>{const _0x345d65=function(_0x91cb8f){const _0x5143f4=_0x91cb8f['getSelectedElement']();if(_0x5143f4?.['is']('element','footnoteRef'))return _0x5143f4;return null;}(_0x5374e5);if(_0x345d65){const _0x135836=_0x345d65['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x135836),_0x5a8ec8['preventDefault'](),_0x22bae1['stop']();}},{'context':_0x3e139b});}['_defineClickHandlers'](){const {editor:_0x35b78}=this,{editing:_0x564c99}=_0x35b78;_0x35b78['editing']['view']['addObserver'](_0x3751dc),_0x35b78['editing']['view']['addObserver'](_0x371439);let _0x193c0c=!0x1;this['listenTo'](_0x564c99['view']['document'],'pointerdown',(_0x379e5a,_0x53e0c6)=>{const {target:_0x31de1a}=_0x53e0c6,_0x5763c1=_0x564c99['view']['document']['selection'];_0x193c0c=!(!_0x31de1a['is']('element','sup')||!_0x31de1a['hasClass']('footnote'))&&_0x5763c1['getSelectedElement']()===_0x31de1a;},{'priority':'high'}),this['listenTo'](_0x564c99['view']['document'],'click',(_0xcb978d,_0x448dba)=>{const {target:_0x53935f}=_0x448dba,_0x3e6f05=_0x53935f['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x3e6f05['slice'](0x1)),_0xcb978d['stop'](),_0x448dba['preventDefault']();},{'priority':'high','context':_0x5b0620=>_0x5b0620['is']('element','sup')&&_0x5b0620['hasClass']('footnote')&&_0x193c0c}),this['listenTo'](_0x564c99['view']['document'],'click',(_0x52b19c,_0x361fec)=>{const {target:_0x45d59b}=_0x361fec;if(!_0x45d59b['is']('element','a'))return;let _0x25df90=_0x45d59b['getAttribute']('href');if(!_0x25df90?.['startsWith']('#'))return;_0x25df90=_0x25df90['slice'](0x1);let _0x17329c=!0x1;(_0x25df90['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x25df90['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x25df90))&&(_0x17329c=!0x0),_0x17329c&&(_0x361fec['preventDefault'](),_0x52b19c['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x334cbc}={}){return(_0x4edf76,{writer:_0x103350})=>{if(!h(_0x4edf76))return null;if(!_0x334cbc)return _0x103350['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x23f1d4=_0x103350['createContainerElement']('p');return _0x103350['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23f1d4),_0x23f1d4;};}function h(_0x41e7e5){const {parent:_0x4770bd}=_0x41e7e5;if(!_0x4770bd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4770bd['childCount'])return!0x1;for(const _0x53b280 of _0x41e7e5['getAttributeKeys']())if(!_0x53b280['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x53b280)return!0x1;return!0x0;}function p(_0x3967f3,_0xab2d60){if(!_0x3967f3['is']('element','paragraph'))return!0x1;const _0x98c9a9=_0xab2d60['toViewElement'](_0x3967f3);return!!_0x98c9a9&&h(_0x3967f3)!==_0x98c9a9['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3ebd49){return _0x3e139b(_0x3ebd49)&&_0x3ebd49['is']('containerElement')&&!!_0x3ebd49['getCustomProperty']('footnotesDefinitions');}function g(_0x28d9dd,_0x256609={}){const _0x518f28=_0x28d9dd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x56dd5e=_0x28d9dd['createContainerElement']('ol',{'class':'footnotes-list'},_0x28d9dd['createSlot']());return _0x28d9dd['createContainerElement']('div',{'class':'footnotes',..._0x256609},[_0x518f28,_0x56dd5e]);}function D(_0x2a6669,_0x38a1ff){const _0x123030=_0x2a6669['getAttribute']('footnoteId'),_0x32e135=_0x2a6669['getAttribute']('footnoteCounter'),_0x29252b=_0x38a1ff['createUIElement']('a',{'href':'#'+_0x123030},function(_0x328d94){const _0x27fa57=this['toDomElement'](_0x328d94);return _0x27fa57['textContent']=_0x32e135,_0x27fa57;}),_0x5cd8ee=_0x38a1ff['createContainerElement']('sup',{'id':'ref-'+_0x123030,'class':'footnote'},[_0x29252b]);return _0x5cd8ee['getFillerOffset']=()=>null,_0x5cd8ee;}function v(_0x498133,_0x1e0b83,_0x44f264,{dataPipeline:_0x50ed22}={}){const {t:t}=_0x44f264,_0x5d4260=_0x498133['getAttribute']('footnoteId'),_0x10c8f3=_0x1e0b83['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5d4260},function(_0x3cdb1e){const _0x108ef8=this['toDomElement'](_0x3cdb1e);return _0x108ef8['innerText']='^',_0x108ef8;}),_0x2423f4=_0x50ed22?_0x1e0b83['createContainerElement']('div',{'class':'footnote-content'}):_0x217a51(_0x1e0b83['createEditableElement']('div',{'class':'footnote-content'}),_0x1e0b83,{'label':t('Footnote\x20content.')});return _0x1e0b83['insert'](_0x1e0b83['createPositionAt'](_0x2423f4,0x0),_0x1e0b83['createSlot']()),_0x1e0b83['createContainerElement']('li',{'class':'footnote-definition','id':_0x5d4260},[_0x10c8f3,_0x2423f4]);}
|