PageSourceSearch

https://static.ranker.com/_next/static/chunks/43c93402.56681be201ce8885.js

js ranker.com collected 2026-09-24 08:25:56 UTC 38,051 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{65081:(t,e,i)=>{i.d(e,{aV:()=>tn});var r=i(73916),n=i(45223),s=i(48023),l=i(6280),o=i(7220),a=i(19800),u=i(82878),d=i(52745),m=i(65032);/**
2 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4 */class c{_startElement;_referenceIndent;_isForward;_includeSelf;_sameAttributes;_sameIndent;_lowerIndent;_higherIndent;constructor(t,e){this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward="forward"==e.direction,this._includeSelf=!!e.includeSelf,this._sameAttributes=(0,l.qo)(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(t,e){let i=new this(t,e)[Symbol.iterator]();return(0,l.Ps)(i)}*[Symbol.iterator](){let t=[];for(let{node:e}of new f(this._getStartNode(),this._isForward?"forward":"backward")){let i=e.getAttribute("listIndent");if(i<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=i}else if(i>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){t.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){t.length&&(yield*t,t.length=0);break}continue}if(this._sameAttributes.some(t=>e.getAttribute(t)!==this._startElement.getAttribute(t)))break}t.length&&(yield*t,t.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}class f{_node;_isForward;_previousNodesByIndent=[];_previous=null;_previousNodeIndent=null;constructor(t,e="forward"){this._node=t,this._isForward="forward"===e}[Symbol.iterator](){return this}next(){if(!h(this._node))return{done:!0,value:void 0};let t=this._node.getAttribute("listIndent"),e=null;if(this._previous){let i=this._previousNodeIndent;t>i?this._previousNodesByIndent[i]=this._previous:t<i?(e=this._previousNodesByIndent[t]||null,this._previousNodesByIndent.length=t):e=this._previous}let i={node:this._node,previous:this._previous,previousNodeInList:e};return this._previous=this._node,this._previousNodeIndent=t,this._node=this._isForward?this._node.nextSibling:this._node.previousSibling,{value:i,done:!1}}}class g{_listHead;constructor(t){this._listHead=t}[Symbol.iterator](){return new f(this._listHead)}}class p{/* istanbul ignore next: static function definition -- @preserve */static next(){return(0,l.hQ)()}}function h(t){return!!t&&t.is("element")&&t.hasAttribute("listItemId")}function b(t,e={}){return[...I(t,{...e,direction:"backward"}),...I(t,{...e,direction:"forward"})]}function I(t,e={}){let i="forward"==e.direction,r=Array.from(new c(t,{...e,includeSelf:i,sameIndent:!0,sameAttributes:"listItemId"}));return i?r:r.reverse()}function A(t,e){let i=new c(t,{sameIndent:!0,sameAttributes:"listType",...e}),r=new c(t,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...e});return[...Array.from(i).reverse(),...r]}function y(t){return!c.first(t,{sameIndent:!0,sameAttributes:"listItemId"})}function w(t){return!c.first(t,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function k(t,e={}){t=(0,l.qo)(t);let i=!1!==e.withNested,r=new Set;for(let e of t)for(let t of b(e,{higherIndent:i}))r.add(t);return x(r)}function _(t,e){let i=I(t,{direction:"forward"}),r=p.next();for(let t of i)e.setAttribute("listItemId",r,t);return i}function S(t,e,i){let r={};for(let[t,i]of e.getAttributes())t.startsWith("list")&&(r[t]=i);let n=I(t,{direction:"forward"});for(let t of n)i.setAttributes(r,t);return n}function v(t,e,{expand:i,indentBy:r=1}={}){t=(0,l.qo)(t);let n=i?k(t):t;for(let t of n){let i=t.getAttribute("listIndent")+r;i<0?E(t,e):e.setAttribute("listIndent",i,t)}return n}function E(t,e){for(let i of t=(0,l.qo)(t))i.is("element","listItem")&&e.rename(i,"paragraph");for(let i of t)for(let t of i.getAttributeKeys())t.startsWith("list")&&e.removeAttribute(t,i);return t}function F(t){if(!t.length)return!1;let e=t[0].getAttribute("listItemId");return!!e&&!t.some(t=>t.getAttribute("listItemId")!=e)}function x(t){return Array.from(t).filter(t=>"$graveyard"!==t.root.rootName).sort((t,e)=>t.index-e.index)}function L(t){let e=t.document.selection.getSelectedElement();return e&&t.schema.isObject(e)&&t.schema.isBlock(e)?e:null}function P(t,e){return e.checkChild(t.parent,"listItem")&&e.checkChild(t,"$text")&&!e.isObject(t)}class T extends r.mY{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){let t=this.editor.model,e=C(t.document.selection);t.change(t=>{let i=[];for(let r of(F(e)&&!y(e[0])?("forward"==this._direction&&i.push(...v(e,t)),i.push(..._(e[0],t))):"forward"==this._direction?i.push(...v(e,t,{expand:!0})):i.push(...function(t,e){let i=k(t=(0,l.qo)(t)),r=new Set,n=Math.min(...i.map(t=>t.getAttribute("listIndent"))),s=new Map;for(let t of i)s.set(t,c.first(t,{lowerIndent:!0}));for(let t of i){if(r.has(t))continue;r.add(t);let i=t.getAttribute("listIndent")-1;if(i<0){E(t,e);continue}if(t.getAttribute("listIndent")==n){var o;let i=I(o=s.get(t),{direction:"forward"}).pop().index>t.index?S(t,o,e):[];for(let t of i)r.add(t);if(i.length)continue}e.setAttribute("listIndent",i,t)}return x(r)}(e,t)),i)){if(!r.hasAttribute("listType"))continue;let e=c.first(r,{sameIndent:!0});e&&t.setAttribute("listType",e.getAttribute("listType"),r)}this._fireAfterExecute(i)})}_fireAfterExecute(t){this.fire("afterExecute",x(new Set(t)))}_checkEnabled(){let t=C(this.editor.model.document.selection),e=t[0];if(!e)return!1;if("backward"==this._direction||F(t)&&!y(t[0]))return!0;e=(t=k(t))[0];let i=c.first(e,{sameIndent:!0});return!!i&&i.getAttribute("listType")==e.getAttribute("listType")}}function C(t){let e=Array.from(t.getSelectedBlocks()),i=e.findIndex(t=>!h(t));return -1!=i&&(e.length=i),e}class B extends r.mY{type;_listWalkerOptions;constructor(t,e,i={}){super(t),this.type=e,this._listWalkerOptions=i.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){let e=this.editor.model,i=e.document,r=L(e),n=Array.from(i.selection.getSelectedBlocks()).filter(t=>
4e.schema.checkAttribute(t,"listType")||P(t,e.schema)),s=void 0!==t.forceValue?!t.forceValue:this.value;e.change(l=>{if(s){let t=n[n.length-1],e=I(t,{direction:"forward"}),i=[];e.length>1&&i.push(..._(e[1],l)),i.push(...E(n,l)),i.push(...function(t,e){let i=[],r=Number.POSITIVE_INFINITY;for(let{node:n}of new f(t.nextSibling)){let t=n.getAttribute("listIndent");if(0==t)break;t<r&&(r=t);let s=t-r;e.setAttribute("listIndent",s,n),i.push(n)}return i}(t,l)),this._fireAfterExecute(i)}else if((r||i.selection.isCollapsed)&&h(n[0])){let e=A(r||n[0],this._listWalkerOptions);for(let i of e)l.setAttributes({...t.additionalAttributes,listType:this.type},i);this._fireAfterExecute(e)}else{let i=[];for(let r of n)if(r.hasAttribute("listType"))for(let e of k(r,{withNested:!1}))e.getAttribute("listType")!=this.type&&(l.setAttributes({...t.additionalAttributes,listType:this.type},e),i.push(e));else!r.is("element","listItem")&&P(r,e.schema)&&l.rename(r,"listItem"),l.setAttributes({...t.additionalAttributes,listIndent:0,listItemId:p.next(),listType:this.type},r),i.push(r);this._fireAfterExecute(i)}})}_fireAfterExecute(t){this.fire("afterExecute",x(new Set(t)))}_getValue(){let t=Array.from(this.editor.model.document.selection.getSelectedBlocks());if(!t.length)return!1;for(let e of t)if(e.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){let t=this.editor.model,e=t.schema,i=Array.from(t.document.selection.getSelectedBlocks());if(!i.length)return!1;if(this.value)return!0;for(let t of i)if(e.checkAttribute(t,"listType")||P(t,e))return!0;return!1}}class N extends r.mY{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){let e=this.editor.model,i=e.document.selection,r=[];e.change(n=>{let{firstElement:s,lastElement:l}=this._getMergeSubjectElements(i,t),o=s.getAttribute("listIndent")||0,a=l.getAttribute("listIndent"),u=l.getAttribute("listItemId");if(o!=a){let t=Array.from(new c(l,{direction:"forward",higherIndent:!0}));r.push(...v([l,...t],n,{indentBy:o-a,expand:o<a}))}if(t){let t=i;i.isCollapsed&&(t=n.createSelection(n.createRange(n.createPositionAt(s,"end"),n.createPositionAt(l,0)))),e.deleteContent(t,{doNotResetEntireContent:i.isCollapsed});let o=t.getLastPosition().parent,a=o.nextSibling;r.push(o),a&&a!==l&&a.getAttribute("listItemId")==u&&r.push(...S(a,o,n))}else r.push(...S(l,s,n));this._fireAfterExecute(r)})}_fireAfterExecute(t){this.fire("afterExecute",x(new Set(t)))}_checkEnabled(){let t=this.editor.model,e=t.document.selection,i=L(t);if(e.isCollapsed||i){let t=i||e.getFirstPosition().parent;if(!h(t))return!1;let r="backward"==this._direction?t.previousSibling:t.nextSibling;if(!r||F([t,r]))return!1}else{let t=e.getLastPosition(),i=e.getFirstPosition();if(t.parent===i.parent||!h(t.parent))return!1}return!0}_getMergeSubjectElements(t,e){let i,r;let n=L(this.editor.model);if(t.isCollapsed||n){let s=n||t.getFirstPosition().parent,l=y(s);"backward"==this._direction?(r=s,i=l&&!e?c.first(s,{sameIndent:!0,lowerIndent:!0}):s.previousSibling):(i=s,r=s.nextSibling)}else i=t.getFirstPosition().parent,r=t.getLastPosition().parent;return{firstElement:i,lastElement:r}}}class O extends r.mY{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(t=>{let e=_(this._getStartBlock(),t);this._fireAfterExecute(e)})}_fireAfterExecute(t){this.fire("afterExecute",x(new Set(t)))}_checkEnabled(){let t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&h(e)&&!y(e)}_getStartBlock(){let t=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?t:t.nextSibling}}class M extends r.Sy{static get pluginName(){return"ListItemBoldIntegration"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){let t=this.editor,e=t.plugins.get("ListFormatting"),i=t.plugins.get(Z);t.plugins.has("BoldEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.registerFormatAttribute("bold","listItemBold"),i.registerDowncastStrategy({scope:"item",attributeName:"listItemBold",setAttributeOnDowncast(t,e,i,r){e&&(t.addClass("ck-list-marker-bold",i),l.OB.isSafari&&!(r&&r.dataPipeline)&&t.setStyle("--ck-content-list-marker-dummy-bold","0",i))}}))}afterInit(){let t=this.editor,e=t.model;t.plugins.has("BoldEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.schema.extend("$listItem",{allowAttributes:"listItemBold"}),e.schema.setAttributeProperties("listItemBold",{isFormatting:!0}),e.schema.addAttributeCheck(t=>{if(!t.last.getAttribute("listItemId"))return!1},"listItemBold"),t.conversion.for("upcast").attributeToAttribute({model:"listItemBold",view:{name:"li",classes:"ck-list-marker-bold"}}))}}class $ extends r.Sy{static get pluginName(){return"ListItemItalicIntegration"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){let t=this.editor,e=t.plugins.get("ListFormatting"),i=t.plugins.get(Z);t.plugins.has("ItalicEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.registerFormatAttribute("italic","listItemItalic"),i.registerDowncastStrategy({scope:"item",attributeName:"listItemItalic",setAttributeOnDowncast(t,e,i,r){e&&(t.addClass("ck-list-marker-italic",i),l.OB.isSafari&&!(r&&r.dataPipeline)&&t.setStyle("--ck-content-list-marker-dummy-italic","0",i))}}))}afterInit(){let t=this.editor,e=t.model;t.plugins.has("ItalicEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.schema.extend("$listItem",{allowAttributes:"listItemItalic"}),e.schema.setAttributeProperties("listItemItalic",{isFormatting:!0}),e.schema.addAttributeCheck(t=>{if(!t.last.getAttribute("listItemId"))return!1},"listItemItalic"),t.conversion.for("upcast").attributeToAttribute({model:"listItemItalic",view:{name:"li",classes:"ck-list-marker-italic"}}))}}class D extends r.Sy{static get pluginName(){return"ListItemFontSizeIntegration"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){let t=this.editor,e=t.plugins.get("ListFormatting"),i=t.plugins.get(Z);if(!t.plugins.has("FontSizeEditing")||!this.editor.config.get("list.enableListItemMarkerFormatting"))return;let r=(0,o.jD)(t.config.get("fontSize.options"));e.registerFormatAttribute("fontSize","listItemFontSize"),i.registerDowncastStrategy({scope:"item",attributeName:"listItemFontSize",setAttributeOnDowncast(t,e,i,n){if(e){let s=r.find(t=>t.model==e);s&&s.view&&"string"!=typeof s.view?s.view.styles?(t.addClass("ck-list-marker-font-size",i),t.setStyle("--ck-content-list-marker-font-size",s.view.styles["font-size"],i)):s.view.classes&&(t.addClass(`ck-list-marker-font-size-${e}`,i),l.OB.isSafari&&!(n&&n.dataPipeline)&&t.setStyle("--ck-content-list-marker-dummy-font-size","0",i)):(t.addClass("ck-list-marker-font-size",i),t.setStyle("--ck-content-list-marker-font-size",e,i))}}})}afterInit(){let t=this.editor,e=t.model;if(t.plugins.has("FontSizeEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting"))for(let i of(e.schema.extend("$listItem",{allowAttributes:"listItemFontSize"}),e.schema.setAttributeProperties("listItemFontSize",{isFormatting:!0}),e.schema.addAttributeCheck(t=>{if(!t.last.getAttribute("listItemId"))return!1},"listItemFontSize"),t.conversion.for("upcast").elementToAttribute({model:{key:"listItemFontSize",value:t=>t.getStyle("--ck-content-list-marker-font-size")},view:{name:"li",classes:"ck-list-marker-font-size",styles:{"--ck-content-list-marker-font-size":/.*/}}}),(0,o.jD)(t.config.get("fontSize.options"))))i.model&&i.view&&t.conversion.for("upcast").elementToAttribute({model:{key:"listItemFontSize",value:i.model},view:{name:"li",classes:`ck-list-marker-font-size-${i.model}`}})}}class z extends r.Sy{static get pluginName(){return"ListItemFontColorIntegration"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){let t=this.editor,e=t.plugins.get("ListFormatting"),i=t.plugins.get(Z);t.plugins.has("FontColorEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.registerFormatAttribute("fontColor","listItemFontColor"),i.registerDowncastStrategy({scope:"item",attributeName:"listItemFontColor",setAttributeOnDowncast(t,e,i){e&&(t.addClass("ck-list-marker-color",i),t.setStyle("--ck-content-list-marker-color",e,i))}}))}afterInit(){let t=this.editor,e=t.model;t.plugins.has("FontColorEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.schema.extend("$listItem",{allowAttributes:"listItemFontColor"}),e.schema.setAttributeProperties("listItemFontColor",{isFormatting:!0}),e.schema.addAttributeCheck(t=>{if(!t.last.getAttribute("listItemId"))return!1},"listItemFontColor"),t.conversion.for("upcast").attributeToAttribute({model:{key:"listItemFontColor",value:t=>t.getStyle("--ck-content-list-marker-color")},view:{name:"li",classes:"ck-list-marker-color",styles:{"--ck-content-list-marker-color":/.*/}}}))}}class R extends r.Sy{static get pluginName(){return"ListItemFontFamilyIntegration"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){let t=this.editor,e=t.plugins.get("ListFormatting"),i=t.plugins.get(Z);t.plugins.has("FontFamilyEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.registerFormatAttribute("fontFamily","listItemFontFamily"),i.registerDowncastStrategy({scope:"item",attributeName:"listItemFontFamily",setAttributeOnDowncast(t,e,i){e&&(t.addClass("ck-list-marker-font-family",
4i),t.setStyle("--ck-content-list-marker-font-family",e,i))}}))}afterInit(){let t=this.editor,e=t.model;t.plugins.has("FontFamilyEditing")&&this.editor.config.get("list.enableListItemMarkerFormatting")&&(e.schema.extend("$listItem",{allowAttributes:"listItemFontFamily"}),e.schema.setAttributeProperties("listItemFontFamily",{isFormatting:!0}),e.schema.addAttributeCheck(t=>{if(!t.last.getAttribute("listItemId"))return!1},"listItemFontFamily"),t.conversion.for("upcast").attributeToAttribute({model:{key:"listItemFontFamily",value:t=>t.getStyle("--ck-content-list-marker-font-family")},view:{name:"li",classes:"ck-list-marker-font-family",styles:{"--ck-content-list-marker-font-family":/.*/}}}))}}class j extends r.Sy{_loadedFormatting={};static get pluginName(){return"ListFormatting"}static get isOfficialPlugin(){return!0}static get requires(){return[M,$,D,z,R]}constructor(t){super(t),t.config.define("list.enableListItemMarkerFormatting",!0)}afterInit(){this.editor.config.get("list.enableListItemMarkerFormatting")&&this._registerPostfixerForListItemFormatting()}_registerPostfixerForListItemFormatting(){let t=this.editor.model;t.document.registerPostFixer(e=>{let i=t.document.differ.getChanges(),r=new Set,n=!1;for(let t of i)if("attribute"===t.type)("listItemId"==t.attributeKey||"listType"==t.attributeKey||this._isInlineOrSelectionFormatting(t.attributeKey)||Object.values(this._loadedFormatting).includes(t.attributeKey))&&(h(t.range.start.nodeAfter)?r.add(t.range.start.nodeAfter):h(t.range.start.parent)&&r.add(t.range.start.parent));else if(h(t.position.nodeAfter)&&r.add(t.position.nodeAfter),h(t.position.nodeBefore)&&r.add(t.position.nodeBefore),h(t.position.parent)&&r.add(t.position.parent),"insert"==t.type&&"$text"!=t.name)for(let i of e.createRangeIn(t.position.nodeAfter).getItems())h(i)&&r.add(i);for(let i of r){var s;for(let[r,l]of Object.entries((s=Object.keys(this._loadedFormatting),y(i)?V(t,i,s):V(t,b(i)[0],s)))){let t=this._loadedFormatting[r];l&&function(t,e,i,r){let n=b(e),s=!1;for(let e of n)e.hasAttribute(i)&&e.getAttribute(i)===r||(t.setAttribute(i,r,e),s=!0);return s}(e,i,t,l)?n=!0:!l&&function(t,e,i){let r=b(e),n=!1;for(let e of r)e.hasAttribute(i)&&(t.removeAttribute(i,e),n=!0);return n}(e,i,t)&&(n=!0)}}return n})}registerFormatAttribute(t,e){this._loadedFormatting[t]=e}_isInlineOrSelectionFormatting(t){return t.replace(/^selection:/,"") in this._loadedFormatting}}function V(t,e,i){if(!["numbered","bulleted","customNumbered","customBulleted"].includes(e.getAttribute("listType"))||t.schema.isLimit(e))return Object.fromEntries(i.map(t=>[t]));if(e.isEmpty)return Object.fromEntries(i.map(t=>[t,e.getAttribute(`selection:${t}`)]));let r=new Set(i),n={},s=t.createRangeIn(e).getWalker({ignoreElementEnd:!0});for(let{item:e}of s){for(let i of r)if(t.schema.checkAttribute(e,i)){let t=e.getAttribute(i);void 0===t?(r.delete(i),n[i]=void 0):void 0===n[i]?n[i]=t:n[i]!==t&&(r.delete(i),n[i]=void 0)}else i in n||(n[i]=void 0);if(!r.size)break;t.schema.isLimit(e)&&s.jumpTo(t.createPositionAfter(e))}return n}class W extends r.Sy{static get pluginName(){return"ListUtils"}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(t){return function(t){t=(0,l.qo)(t);let e=new Set;for(let i of t)for(let t of A(i))e.add(t);return x(e)}(t)}isFirstBlockOfListItem(t){return y(t)}isListItemBlock(t){return h(t)}expandListBlocksToCompleteItems(t,e={}){return k(t,e)}isNumberedListType(t){var e;return"numbered"==(e=t)||"customNumbered"==e}}function q(t){return t.is("element","li")}function K(t){return"numbered"==t||"customNumbered"==t?"ol":"ul"}function Y(t,e){return`list-${t}-${e}`}function H(t,e,i){let r=t.nodeBefore;if(h(r)){let t=r;for(let{node:n}of new f(t,"backward"))if(t=n,i.has(t)||(i.add(t),e.has(r)))return;e.add(t)}else{let i=t.nodeAfter;h(i)&&e.add(i)}}function G(t,e,i,{dataPipeline:r}={}){let n=function(t,e){let i=e.filter(t=>!1===t.consume).map(t=>t.attributeName);return(e,r)=>{let n=[];for(let r of t)e.hasAttribute(r)&&!i.includes(r)&&n.push(`attribute:${r}`);return!!n.every(t=>!1!==r.test(e,t))&&(n.forEach(t=>r.consume(e,t)),!0)}}(t,e);return(s,l,o)=>
4{let{writer:a,mapper:u,consumable:d}=o,m=l.item;if(!t.includes(l.attributeKey)||!n(m,d))return;let f={...o.options,dataPipeline:r},g=function(t,e,i,r){let n=i.createRangeOn(t),s=e.toViewRange(n).getTrimmed().getWalker();for(let{item:t}of s)if(t.is("element")&&t.getCustomProperty("listItemMarker"))s.jumpTo(r.createPositionAfter(t));else if(t.is("element")&&!t.getCustomProperty("listItemWrapper"))return t}(m,u,i,a);U(g,a,u),function(t,e){let i=t.parent;for(;i.is("attributeElement")&&["ul","ol","li"].includes(i.name);){let r=i.parent;e.unwrap(e.createRangeOn(t),i),i=r}}(g,a);let p=function(t,e,i,r,{dataPipeline:n}){let s=r.createRangeOn(e);if(!y(t))return s;for(let l of i){if("itemMarker"!=l.scope)continue;let i=l.createElement(r,t,{dataPipeline:n});if(!i||(r.setCustomProperty("listItemMarker",!0,i),l.canInjectMarkerIntoElement&&l.canInjectMarkerIntoElement(t)?r.insert(r.createPositionAt(e,0),i):(r.insert(s.start,i),s=r.createRange(r.createPositionBefore(i),r.createPositionAfter(e))),!l.createWrapperElement||!l.canWrapElement))continue;let o=l.createWrapperElement(r,t,{dataPipeline:n});r.setCustomProperty("listItemWrapper",!0,o),l.canWrapElement(t)?s=r.wrap(s,o):(s=r.wrap(r.createRangeOn(i),o),s=r.createRange(s.start,r.createPositionAfter(e)))}return s}(m,g,e,a,f);!function(t,e,i,r,n){if(!t.hasAttribute("listIndent"))return;let s=t.getAttribute("listIndent"),l=t;for(let t=s;t>=0;t--){var o,a;let s=(o=t,a=l.getAttribute("listItemId"),r.createAttributeElement("li",null,{priority:(2*o+1)/100-100,id:a})),u=function(t,e,i,r=Y(i,e)){return t.createAttributeElement(K(i),null,{priority:2*e/100-100,id:r})}(r,t,l.getAttribute("listType"));for(let t of i)("list"==t.scope||"item"==t.scope)&&l.hasAttribute(t.attributeName)&&t.setAttributeOnDowncast(r,l.getAttribute(t.attributeName),"list"==t.scope?u:s,n,l);if(e=r.wrap(e,s),e=r.wrap(e,u),0==t||!(l=c.first(l,{lowerIndent:!0})))break}}(m,p,e,a,f)}}function Q(t,{dataPipeline:e}={}){return(i,{writer:r})=>{if(!J(i,t))return null;if(!e)return r.createContainerElement("span",{class:"ck-list-bogus-paragraph"});let n=r.createContainerElement("p");return r.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function U(t,e,i){for(;t.parent.is("attributeElement")&&t.parent.getCustomProperty("listItemWrapper");)e.unwrap(e.createRangeOn(t),t.parent);let r=[];for(let i of(n(e.createPositionBefore(t).getWalker({direction:"backward"})),n(e.createRangeIn(t).getWalker()),r))e.remove(i);function n(t){for(let{item:e}of t){if(e.is("element")&&i.toModelElement(e))break;e.is("element")&&e.getCustomProperty("listItemMarker")&&r.push(e)}}}function J(t,e,i=b(t)){if(!h(t))return!1;for(let i of t.getAttributeKeys())if(!i.startsWith("selection:")&&"htmlEmptyBlock"!=i&&!e.includes(i))return!1;return i.length<2}let X=["listType","listIndent","listItemId"];class Z extends r.Sy{_downcastStrategies=[];static get pluginName(){return"ListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[s.Ce,n.HG,W,a._l,j]}constructor(t){super(t),t.config.define("list.multiBlock",!0)}init(){let t=this.editor,e=t.model,i=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new l.Bb("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});for(let t of(e.schema.register("$listItem",{allowAttributes:X}),i?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"}),X))e.schema.setAttributeProperties(t,{copyOnReplace:!0});t.commands.add("numberedList",new B(t,"numbered")),t.commands.add("bulletedList",new B(t,"bulleted")),t.commands.add("customNumberedList",new B(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new B(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new T(t,"forward")),t.commands.add("outdentList",new T(t,"backward")),t.commands.add("splitListItemBefore",new O(t,"before")),t.commands.add("splitListItemAfter",new O(t,"after")),i&&(t.commands.add("mergeListItemBackward",new N(t,"backward")),t.commands.add("mergeListItemForward",new N(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration(),this._setupListItemIdConversionStrategy()}afterInit(){let t=this.editor.commands,e=t.get("indent"),i=t.get("outdent");e&&e.registerChildCommand(t.get("indentList"),{priority:"high"}),i&&i.registerChildCommand(t.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...X,...this._downcastStrategies.map(t=>t.attributeName)]}_setupDeleteIntegration(){let t=this.editor,e=t.commands.get("mergeListItemBackward"),i=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",(r,n)=>{let s=t.model.document.selection;L(t.model)||t.model.change(()=>{let l=s.getFirstPosition();if(s.isCollapsed&&"backward"==n.direction){if(!l.isAtStart)return;let i=l.parent;if(!h(i))return;if(c.first(i,{sameAttributes:"listType",sameIndent:!0})||0!==i.getAttribute("listIndent")){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:tt(t.model,"backward")})}else w(i)||t.execute("splitListItemAfter"),t.execute("outdentList");n.preventDefault(),r.stop()}else{if(s.isCollapsed&&!s.getLastPosition().isAtEnd||!i||!i.isEnabled)return;i.execute({shouldMergeOnBlocksContentLevel:tt(t.model,"forward")}),n.preventDefault(),r.stop()}})},{context:"li"})}_setupEnterIntegration(){let t=this.editor,e=t.model,i=t.commands,r=i.get("enter");this.listenTo(t.editing.view.document,"enter",(i,r)=>{let n=e.document,s=n.selection.getFirstPosition().parent;if(n.selection.isCollapsed&&h(s)&&s.isEmpty&&!r.isSoft){let e=y(s),n=w(s);e&&n?(t.execute("outdentList"),r.preventDefault(),i.stop()):e&&!n?(t.execute("splitListItemAfter"),r.preventDefault(),i.stop()):n&&(t.execute("splitListItemBefore"),r.preventDefault(),i.stop())}},{context:"li"}),this.listenTo(r,"afterExecute",()=>{let e=i.get("splitListItemBefore");e.refresh(),e.isEnabled&&2===b(t.model.document.selection.getLastPosition().parent).length&&e.execute()})}_setupTabIntegration(){let t=this.editor;this.listenTo(t.editing.view.document,"tab",(e,i)=>{let r=i.shiftKey?"outdentList":"indentList";this.editor.commands.get(r).isEnabled&&(t.execute(r),i.stopPropagation(),i.preventDefault(),e.stop())},{context:"li"})}_setupConversion(){var t,e;
4let i=this.editor,r=i.model,n=this.getListAttributeNames(),s=i.config.get("list.multiBlock"),l=s?"paragraph":"listItem";i.conversion.for("upcast").elementToElement({view:"li",model:(t,{writer:e})=>e.createElement(l,{listType:""})}).elementToElement({view:"p",model:(t,{writer:e})=>t.parent&&t.parent.is("element","li")?e.createElement(l,{listType:""}):null,converterPriority:"high"}).add(t=>{t.on("element:li",(t,e,i)=>{let{writer:r,schema:n}=i;if(!e.modelRange)return;let s=Array.from(e.modelRange.getItems({shallow:!0})).filter(t=>n.checkAttribute(t,"listItemId"));if(!s.length)return;let l=e.viewItem.getAttribute("data-list-item-id")||p.next();i.consumable.consume(e.viewItem,{attributes:"data-list-item-id"});let o=function(t){let e=0,i=t.parent;for(;i;){if(q(i))e++;else{let t=i.previousSibling;t&&q(t)&&e++}i=i.parent}return e}(e.viewItem),a=e.viewItem.parent&&e.viewItem.parent.is("element","ol")?"numbered":"bulleted",u=s[0].getAttribute("listType");u&&(a=u);let d={listItemId:l,listIndent:o,listType:a};for(let t of s)t.hasAttribute("listItemId")||r.setAttributes(d,t);s.length>1&&s[1].getAttribute("listItemId")!=d.listItemId&&i.keepEmptyElement(s[0])})}),s||i.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),i.conversion.for("editingDowncast").elementToElement({model:l,view:Q(n),converterPriority:"high"}).add(t=>{var e;t.on("attribute",G(n,this._downcastStrategies,r)),t.on("remove",(e=r.schema,(t,i,r)=>{let{writer:n,mapper:s}=r,l=t.name.split(":")[1];if(!e.checkAttribute(l,"listItemId"))return;let o=s.toViewPosition(i.position),a=i.position.getShiftedBy(i.length),u=s.toViewPosition(a,{isPhantom:!0}),d=n.createRange(o,u).getTrimmed().end.nodeBefore;/* istanbul ignore next -- @preserve */d&&U(d,n,s)}))}),i.conversion.for("dataDowncast").elementToElement({model:l,view:Q(n,{dataPipeline:!0}),converterPriority:"high"}).add(t=>{t.on("attribute",G(n,this._downcastStrategies,r,{dataPipeline:!0}))});let o=(t=this._downcastStrategies,e=i.editing.view,(i,r)=>{if(r.modelPosition.offset>0)return;let n=r.modelPosition.parent;if(!h(n)||!t.some(t=>"itemMarker"==t.scope&&t.canInjectMarkerIntoElement&&t.canInjectMarkerIntoElement(n)))return;let s=r.mapper.toViewElement(n),l=e.createRangeIn(s),o=l.getWalker(),a=l.start;for(let{item:t}of o){if(t.is("element")&&r.mapper.toModelElement(t)||t.is("$textProxy"))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&(a=e.createPositionAfter(t),o.skip(({previousPosition:t})=>!t.isEqual(a)))}r.viewPosition=a});i.editing.mapper.on("modelToViewPosition",o),i.data.mapper.on("modelToViewPosition",o),this.listenTo(r.document,"change:data",function(t,e,i,r){return()=>{let s=t.document.differ.getChanges(),l=[],o=new Set,a=new Set,u=new Set;for(let t of s)if("insert"==t.type&&"$text"!=t.name)H(t.position,o,u),t.attributes.has("listItemId")?a.add(t.position.nodeAfter):H(t.position.getShiftedBy(t.length),o,u);else if("remove"==t.type&&t.attributes.has("listItemId"))H(t.position,o,u);else if("attribute"==t.type){let e=t.range.start.nodeAfter;i.includes(t.attributeKey)?(H(t.range.start,o,u),null===t.attributeNewValue?(H(t.range.start.getShiftedBy(1),o,u),n(e)&&l.push(e)):a.add(e)):h(e)&&n(e)&&l.push(e)}for(let t of o.values())l.push(...function(t,s){let l=[],o=new Set,a=[];for(let{node:u,previous:d}of new f(t)){if(o.has(u))continue;let t=u.getAttribute("listIndent");d&&t<d.getAttribute("listIndent")&&(a.length=t+1),a[t]={modelAttributes:Object.fromEntries(Array.from(u.getAttributes()).filter(([t])=>i.includes(t))),modelElement:u};let m=I(u,{direction:"forward"});for(let t of m)o.add(t),n(t,m)?l.push(t):function(t,i,n){if(n.has(t))return!1;let s=e.mapper.toViewElement(t),l=i.length-1;for(let t=s.parent;!t.is("editableElement");t=t.parent){var o;let e=q(t),n=(o=t).is("element","ol")||o.is("element","ul");if(!n&&!e)continue;let s=`checkAttributes:${e?"item":"list"}`;if(r.fire(s,{viewElement:t,modelAttributes:i[l].modelAttributes,modelReferenceElement:i[l].modelElement}))break;if(n&&--l<0)return!1}return!0}(t,a,s)&&l.push(t)}return l}(t,a));for(let t of new Set(l))e.reconvertItem(t)};function n(t,n){let s=e.mapper.toViewElement(t);if(!s)return!1;if(function(t){for(t=t.parent;t.is("attributeElement")&&["ol","ul","li"].includes(t.name);)t=t.parent;return!!t.getCustomProperty("$structureSlotParent")&&!e.mapper.toModelElement(t)}(s)||r.fire("checkElement",{modelElement:t,viewElement:s}))return!0;
4if(!t.is("element","paragraph")&&!t.is("element","listItem"))return!1;let l=J(t,i,n);return!!(l&&s.is("element","p"))||!!(!l&&s.is("element","span"))}}(r,i.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",(t,{viewElement:e,modelAttributes:i})=>{e.id!=i.listItemId&&(t.return=!0,t.stop())}),this.on("checkAttributes:list",(t,{viewElement:e,modelAttributes:i})=>{(e.name!=K(i.listType)||e.id!=Y(i.listType,i.listIndent))&&(t.return=!0,t.stop())})}_setupModelPostFixing(){let t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer(i=>(function(t,e,i,r){let n=t.document.differ.getChanges(),s=new Set,l=new Set,o=r.editor.config.get("list.multiBlock"),a=!1;for(let r of n){if("insert"==r.type&&"$text"!=r.name){let n=r.position.nodeAfter;if(!t.schema.checkAttribute(n,"listItemId"))for(let t of Array.from(n.getAttributeKeys()))i.includes(t)&&(e.removeAttribute(t,n),a=!0);for(let{item:e,previousPosition:i}of(H(r.position,l,s),r.attributes.has("listItemId")||H(r.position.getShiftedBy(r.length),l,s),t.createRangeIn(n)))h(e)&&H(i,l,s)}else"remove"==r.type?H(r.position,l,s):"attribute"==r.type&&i.includes(r.attributeKey)&&
4(H(r.range.start,l,s),null===r.attributeNewValue&&H(r.range.start.getShiftedBy(1),l,s));if(!o&&"attribute"==r.type&&X.includes(r.attributeKey)){let t=r.range.start.nodeAfter;null===r.attributeNewValue&&t&&t.is("element","listItem")?(e.rename(t,"paragraph"),a=!0):null===r.attributeOldValue&&t&&t.is("element")&&"listItem"!=t.name&&(e.rename(t,"listItem"),a=!0)}}let u=new Set;for(let t of l.values())a=r.fire("postFixer",{listNodes:new g(t),listHead:t,writer:e,seenIds:u})||a;return a})(t,i,e,this)),this.on("postFixer",(t,{listNodes:e,writer:i})=>{t.return=function(t,e){let i=0,r=-1,n=null,s=!1;for(let{node:l}of t){let t=l.getAttribute("listIndent");if(t>i){let o;null===n?(n=t-i,o=i):(n>t&&(n=t),o=t-n),o>r+1&&(o=r+1),e.setAttribute("listIndent",o,l),s=!0,r=o}else n=null,i=t+1,r=t}return s}(e,i)||t.return},{priority:"high"}),this.on("postFixer",(t,{listNodes:e,writer:i,seenIds:r})=>{t.return=function(t,e,i){let r=new Set,n=!1;for(let{node:s}of t){if(r.has(s))continue;let t=s.getAttribute("listType"),l=s.getAttribute("listItemId");if(e.has(l)&&(l=p.next()),e.add(l),s.is("element","listItem")){s.getAttribute("listItemId")!=l&&(i.setAttribute("listItemId",l,s),n=!0);continue}for(let e of I(s,{direction:"forward"}))r.add(e),e.getAttribute("listType")!=t&&(l=p.next(),t=e.getAttribute("listType")),e.getAttribute("listItemId")!=l&&(i.setAttribute("listItemId",l,e),n=!0)}return n}(e,r,i)||t.return},{priority:"high"})}_setupClipboardIntegration(){let t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",(e,[i,r])=>{let n;let s=i.is("documentFragment")?Array.from(i.getChildren()):[i];if(!s.length)return;let l=(r?t.createSelection(r):t.document.selection).getFirstPosition();if(h(l.parent))n=l.parent;else{if(!(h(l.nodeBefore)&&h(l.nodeAfter)))return;n=l.nodeBefore}t.change(t=>{let e=n.getAttribute("listType"),i=Math.max(n.getAttribute("listIndent")-(s[0].getAttribute("listIndent")||0),0);for(let r of s){let s=h(r);n.is("element","listItem")&&r.is("element","paragraph")&&t.rename(r,"listItem"),t.setAttributes({listIndent:(s?r.getAttribute("listIndent"):0)+i,listItemId:s?r.getAttribute("listItemId"):p.next(),listType:e},r)}})},{priority:"high"}),this.listenTo(e,"outputTransformation",(e,i)=>{t.change(t=>{let e=Array.from(i.content.getChildren()),r=e[e.length-1];if(e.length>1&&r.is("element")&&r.isEmpty&&e.slice(0,-1).every(h)&&t.remove(r),"copy"==i.method||"cut"==i.method){let e=Array.from(i.content.getChildren());F(e)&&E(e,t)}})})}_setupAccessibilityIntegration(){let t=this.editor,e=t.t;t.accessibility.addKeystrokeInfoGroup({id:"list",label:e("Keystrokes that can be used in a list"),keystrokes:[{label:e("Increase list item indent"),keystroke:"Tab"},{label:e("Decrease list item indent"),keystroke:"Shift+Tab"}]})}_setupListItemIdConversionStrategy(){this.registerDowncastStrategy({scope:"item",attributeName:"listItemId",setAttributeOnDowncast(t,e,i,r){r&&(r.skipListItemIds||r.isClipboardPipeline)||t.setAttribute("data-list-item-id",e,i)}})}}function tt(t,e){let i=t.document.selection;if(!i.isCollapsed)return!L(t);if("forward"===e)return!0;let r=i.getFirstPosition().parent,n=r.previousSibling;return!t.schema.isObject(n)&&(!!n.isEmpty||F([r,n]))}
4function te(t,e,i,r){t.ui.componentFactory.add(e,()=>{let n=ti(u.r5,t,e,i,r);return n.set({tooltip:!0,isToggleable:!0}),n}),t.ui.componentFactory.add(`menuBar:${e}`,()=>{let n=ti(u.DE,t,e,i,r);return n.set({role:"menuitemcheckbox",isToggleable:!0}),n})}function ti(t,e,i,r,n){let s=e.commands.get(i),l=new t(e.locale);return l.set({label:r,icon:n}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),l.on("execute",()=>{e.execute(i),e.editing.view.focus()}),l}class tr extends r.Sy{static get pluginName(){return"ListUI"}static get isOfficialPlugin(){return!0}init(){let t=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||te(this.editor,"numberedList",t("Numbered List"),d.OAr),this.editor.ui.componentFactory.has("bulletedList")||te(this.editor,"bulletedList",t("Bulleted List"),d.FBP)}}class tn extends r.Sy{static get requires(){return[Z,tr]}static get pluginName(){return"List"}static get isOfficialPlugin(){return!0}}r.mY;/**
5 * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7 */let ts={},tl={},to={};for(let{listStyle:t,typeAttribute:e,listType:i}of[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}])ts[t]=i,tl[t]=e,e&&(to[e]=t);r.mY,r.mY,u.NE;function ta(t,e){let i=[],r=t.parent,n=r.getAttribute("listIndent");for(let s of[...new m.z0Q({ignoreElementEnd:!1,startPosition:t,shallow:!0,direction:e})].filter(t=>t.item.is("element")).map(t=>t.item)){if(!s.is("element","listItem")||s.getAttribute("listIndent")<n)break;if(!(s.getAttribute("listIndent")>n)){if(s.getAttribute("listType")!==r.getAttribute("listType")||s.getAttribute("listStyle")!==r.getAttribute("listStyle")||s.getAttribute("listReversed")!==r.getAttribute("listReversed")||s.getAttribute("listStart")!==r.getAttribute("listStart"))break;"backward"===e?i.unshift(s):i.push(s)}}return i}r.mY,r.mY,r.mY}}]);
8//# sourceMappingURL=43c93402.56681be201ce8885.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.