@ckeditor/ckeditor5-list-multi-level 48.8.1-alpha.1 → 48.8.1-alpha.2
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/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x25f82c,Plugin as _0xd26acf}from'@ckeditor/ckeditor5-core/dist/index.js';import{Matcher as _0x2fa2ed,ViewUpcastWriter as _0x2b0360}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ListEditing as _0xbd11b1,_isFirstBlockOfListItem as _0x1afc00}from'@ckeditor/ckeditor5-list/dist/index.js';import{first as _0x310b31,createElement as _0x5d0501,uid as _0x44c0bc,FocusTracker as _0x1907e3,KeystrokeHandler as _0x1d1448,global as _0x2896e1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconMultiLevelList as _0x234366}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x20cc9d,ViewCollection as _0x2ec06c,FocusCycler as _0xd5405,addKeyboardHandlingForGrid as _0x209e87,CollapsibleView as _0x13cf4e,LabeledFieldView as _0x28285c,createLabeledInputNumber as _0xc21c81,MenuBarMenuListItemButtonView as _0x53a90b,ButtonView as _0x3de3f7,createDropdown as _0x3432b7,SplitButtonView as _0x396d99}from'@ckeditor/ckeditor5-ui/dist/index.js';class MultiLevelListCommand extends _0x25f82c{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x1ef3e0,_0x33887e,_0x43069b){super(_0x1ef3e0),this['defaultListMarkerStyle']=_0x33887e,this['_listDefinitions']=_0x43069b,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0xbb620b={}){const _0x371fe6=this['editor']['model'],_0x37cc54=_0xbb620b['listMarkerStyle']||this['defaultListMarkerStyle'];_0x371fe6['change'](()=>{const _0x267a73=this['_getListTypeFromListMarkerStyle'](_0x37cc54);if(!_0x267a73)return;const _0x12de75=_0x267a73+'List';this['editor']['execute'](_0x12de75,{'additionalAttributes':{'listMarkerStyle':_0x37cc54}});});}['_getValue'](){const _0x36ad83=_0x310b31(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x36ad83)?_0x36ad83['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x5060e1=this['editor'],_0x4cc347=_0x5060e1['commands']['get']('customNumberedList'),_0x368db7=_0x5060e1['commands']['get']('customBulletedList');return _0x4cc347['isEnabled']||_0x368db7['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x2f598f){const _0x5be108=this['_listDefinitions']['find'](_0x29bf5e=>_0x29bf5e['listMarkerStyle']==_0x2f598f);return _0x5be108?_0x5be108['listType']:null;}}class MultiLevelListEditing extends _0xd26acf{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbd11b1];}constructor(_0x22fd62){super(_0x22fd62);const _0x1a6caf=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x1e9355=>_0x1e9355+'.'}]},..._0x1a6caf];}['init'](){const _0x3ae1c4=this['editor'],_0x510cfd=_0x3ae1c4['model'],_0x22a8be=_0x3ae1c4['editing']['view'],_0x13bba7=_0x3ae1c4['plugins']['get'](_0xbd11b1);_0x3ae1c4['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x3ae1c4,'legal',this['_listDefinitions'])),_0x510cfd['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x510cfd['schema']['addAttributeCheck']((_0x1e028b,_0xc25603)=>{const _0xf42571=_0x1e028b['last'];if('listMarker'==_0xc25603||'listMarkerStyle'==_0xc25603)return!(!_0xf42571['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x47c0eb=>_0x47c0eb['listType']==_0xf42571['getAttribute']('listType')))&&void 0x0;});for(const _0x464167 of this['_listDefinitions'])_0x3ae1c4['conversion']['for']('upcast')['add'](_0x3596b5=>{_0x3596b5['on']('element:'+('customNumbered'==_0x464167['listType']?'ol':'ul'),N(_0x464167,_0x510cfd['schema']),{'priority':'low'});}),_0x13bba7['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0xebd03f,_0x1d5db2,_0x3a9b79){_0x1d5db2==_0x464167['listMarkerStyle']?(_0xebd03f['addClass'](['multi-level-list',_0x464167['className']],_0x3a9b79),_0xebd03f['setStyle']('list-style-type','none',_0x3a9b79)):(_0xebd03f['removeClass'](['multi-level-list',_0x464167['className']],_0x3a9b79),_0xebd03f['removeStyle']('list-style-type',_0x3a9b79));}}),_0x13bba7['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x21458a,_0x45fee6,{dataPipeline:_0x368551}){if(!_0x45fee6['hasAttribute']('listMarker'))return null;if(_0x45fee6['getAttribute']('listType')!=_0x464167['listType']||_0x45fee6['getAttribute']('listMarkerStyle')!=_0x464167['listMarkerStyle'])return null;const _0x44bb52=String(_0x45fee6['getAttribute']('listMarker')),_0x573a82=this['canInjectMarkerIntoElement'](_0x45fee6);return _0x21458a['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x368551&&{'contenteditable':'false','data-multi-level-list-marker':_0x44bb52}},function(_0x2f0611){const _0x238d86=this['toDomElement'](_0x2f0611);return _0x573a82?(_0x238d86['appendChild'](_0x5d0501(_0x2f0611,'span',{},_0x368551?_0x2f0611['createTextNode'](_0x44bb52):[])),_0x238d86['appendChild'](_0x2f0611['createTextNode']('\u00a0'))):_0x368551&&_0x238d86['appendChild'](_0x2f0611['createTextNode'](_0x44bb52)),_0x238d86;});},'canInjectMarkerIntoElement':_0x48ba40=>_0x510cfd['schema']['checkChild'](_0x48ba40,'$text')&&_0x510cfd['schema']['checkChild'](_0x48ba40,'$inlineObject')&&!_0x510cfd['schema']['isLimit'](_0x48ba40)&&_0x48ba40['getAttribute']('listType')==_0x464167['listType']&&_0x48ba40['getAttribute']('listMarkerStyle')==_0x464167['listMarkerStyle']});_0x3ae1c4['conversion']['for']('upcast')['add'](_0x473c80=>{_0x473c80['on']('element:span',function(_0x32d327){return(_0x2503ad,_0x434ea0,{writer:_0xe7e4b0,consumable:_0x137915})=>{const _0x4c39b1=_0x434ea0['modelCursor'],_0x459520=_0x4c39b1['parent'],_0xaf77cf=_0x434ea0['viewItem'];if(_0x137915['consume'](_0xaf77cf,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x4c39b1['isAtStart']&&_0x459520['hasAttribute']('listType')&&_0xaf77cf['childCount']>0x0){const _0x18e3cb=_0x32d327['createRangeIn'](_0xaf77cf);let _0x55360c='';for(const _0x477ff4 of _0x18e3cb['getItems']())_0x477ff4['is']('$textProxy')?(_0x55360c+=_0x477ff4['data']['trim'](),_0x137915['consume'](_0x477ff4['textNode'])):_0x137915['consume'](_0x477ff4,{'name':!0x0});_0xe7e4b0['setAttribute']('listMarker',_0x55360c['trim'](),_0x459520);}};}(_0x22a8be));}),_0x13bba7['on']('postFixer',(_0x3f3d64,{listNodes:_0x1f32d4,writer:_0x309845})=>{const _0x4dc1a5=[];for(const {node:_0x47ec24,previousNodeInList:_0x214e24}of _0x1f32d4){const _0x41f4a2=_0x47ec24['getAttribute']('listType'),_0x549687=_0x47ec24['getAttribute']('listMarkerStyle')||('customNumbered'==_0x41f4a2?'legal':void 0x0),_0x37f955=this['_listDefinitions']['find'](_0x55e7cf=>_0x55e7cf['listType']==_0x41f4a2&&_0x55e7cf['listMarkerStyle']==_0x549687);if('customNumbered'!=_0x41f4a2&&'customBulleted'!=_0x41f4a2&&(_0x47ec24['hasAttribute']('listMarker')&&(_0x309845['removeAttribute']('listMarker',_0x47ec24),_0x3f3d64['return']=!0x0),_0x47ec24['hasAttribute']('listMarkerStyle')&&(_0x309845['removeAttribute']('listMarkerStyle',_0x47ec24),_0x3f3d64['return']=!0x0)),!_0x37f955){'customBulleted'!=_0x41f4a2||_0x549687||(_0x309845['setAttribute']('listType','bulleted',_0x47ec24),_0x3f3d64['return']=!0x0);continue;}_0x47ec24['hasAttribute']('listMarkerStyle')||(_0x309845['setAttribute']('listMarkerStyle',_0x549687,_0x47ec24),_0x3f3d64['return']=!0x0);const _0x2ddc70=_0x47ec24['getAttribute']('listIndent');if(_0x214e24&&_0x214e24['getAttribute']('listItemId')==_0x47ec24['getAttribute']('listItemId'))continue;_0x4dc1a5['length']=_0x2ddc70+0x1,_0x214e24||_0x4dc1a5[_0x2ddc70]?_0x214e24&&_0x214e24['getAttribute']('listType')!=_0x37f955['listType']?_0x4dc1a5[_0x2ddc70]=0x1:_0x4dc1a5[_0x2ddc70]++:_0x4dc1a5[_0x2ddc70]=_0x47ec24['getAttribute']('listStart')||0x1;const _0x55f083=I(_0x2ddc70,_0x37f955,_0x4dc1a5);_0x47ec24['getAttribute']('listMarker')!=_0x55f083&&(_0x309845['setAttribute']('listMarker',_0x55f083,_0x47ec24),_0x3f3d64['return']=!0x0);}}),_0x13bba7['on']('checkElement',(_0x18ddbf,{modelElement:_0x29e9b4,viewElement:_0x15bfc0})=>{const _0x5ab941=_0x29e9b4['getAttribute']('listType');if('customNumbered'!=_0x5ab941&&'customBulleted'!=_0x5ab941)return;if(_0x510cfd['schema']['checkChild'](_0x29e9b4,'$text'))return;const _0x14311e=_0x1afc00(_0x29e9b4);let _0x5f0705=!0x1;const _0x564be8=_0x22a8be['createPositionBefore'](_0x15bfc0)['getWalker']({'direction':'backward'});for(const {item:_0x18e79e}of _0x564be8)if(_0x18e79e['is']('element')){if(_0x3ae1c4['editing']['mapper']['toModelElement'](_0x18e79e))break;if(_0x18e79e['getCustomProperty']('listItemMarker')){_0x5f0705=!0x0;break;}}_0x5f0705!=_0x14311e&&(_0x18ddbf['return']=!0x0,_0x18ddbf['stop']());});const _0x4f5b7e=_0x3ae1c4['editing']['view']['document'];this['listenTo'](_0x4f5b7e,'clipboardOutput',(_0x2c22b9,_0x587b19)=>{const _0x4c8734=new _0x2fa2ed({'name':'span','classes':'multi-level-list__marker'}),_0x1f1287=new _0x2fa2ed({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x55e266=new _0x2b0360(_0x587b19['content']['document']),_0x42f28f=[];for(const _0x2d63b2 of _0x55e266['createRangeIn'](_0x587b19['content'])['getItems']())_0x2d63b2['is']('element')&&_0x4c8734['match'](_0x2d63b2)&&_0x42f28f['push'](_0x2d63b2),_0x2d63b2['is']('element')&&_0x1f1287['match'](_0x2d63b2)&&_0x55e266['removeStyle']('list-style-type',_0x2d63b2);for(const _0xa49da3 of _0x42f28f)_0x55e266['remove'](_0xa49da3);});}['afterInit'](){!async function(_0x54e7e3){const _0x342ac2=_0xd8e9f8([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0x3fc62c=0xf46a94a,_0x46db9f=0xf412372^_0x3fc62c,_0x5b1967=window[_0xd8e9f8([0x44,0x61,0x74,0x65])][_0xd8e9f8([0x6e,0x6f,0x77])](),_0x24030f=_0x54e7e3[_0xd8e9f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x467643=new window[(_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411748=>{_0x24030f[_0xd8e9f8([0x6f,0x6e,0x63,0x65])](_0xd8e9f8([0x72,0x65,0x61,0x64,0x79]),_0x411748);}),_0x182db4={[_0xd8e9f8([0x6b,0x74,0x79])]:_0xd8e9f8([0x45,0x43]),[_0xd8e9f8([0x75,0x73,0x65])]:_0xd8e9f8([0x73,0x69,0x67]),[_0xd8e9f8([0x63,0x72,0x76])]:_0xd8e9f8([0x50,0x2d,0x32,0x35,0x36]),[_0xd8e9f8([0x78])]:_0xd8e9f8([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]),[_0xd8e9f8([0x79])]:_0xd8e9f8([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]),[_0xd8e9f8([0x61,0x6c,0x67])]:_0xd8e9f8([0x45,0x53,0x32,0x35,0x36])},_0x711d67=_0x24030f[_0xd8e9f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd8e9f8([0x67,0x65,0x74])](_0xd8e9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bdce6(){let _0x40cd2,_0x178676=null,_0xc42e19=null;try{if(_0x711d67==_0xd8e9f8([0x47,0x50,0x4c]))return _0xd8e9f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40cd2=_0x5a0ff2(),!_0x40cd2)return _0xd8e9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40cd2[_0xd8e9f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc42e19=_0x2229de(_0x40cd2[_0xd8e9f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40cd2[_0xd8e9f8([0x6a,0x74,0x69])])),await _0x4d118b()?_0x5ea25e()?_0x4698d9()?_0xd8e9f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a191d()?(_0x40cd2[_0xd8e9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd8e9f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x178676=_0x4612ec(_0xd8e9f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x781f()):_0xd8e9f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd8e9f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd8e9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd8e9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4698d9(){const _0x10c51f=[_0xd8e9f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd8e9f8([0x74,0x72,0x69,0x61,0x6c])][_0xd8e9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40cd2[_0xd8e9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b1967/0x3e8:0xe10*_0x46db9f;return _0x40cd2[_0xd8e9f8([0x65,0x78,0x70])]<_0x10c51f;}function _0x5ea25e(){const _0x2f532e=_0x40cd2[_0xd8e9f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f532e&&(!!_0x2f532e[_0xd8e9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8e9f8([0x2a]))||!!_0x2f532e[_0xd8e9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8e9f8([0x4d,0x4c,0x4c])));}function _0x5a191d(){const _0x57969a=_0x40cd2[_0xd8e9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57969a||0x0==_0x57969a[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ef910}=new URL(window[_0xd8e9f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57969a[_0xd8e9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ef910))return!0x0;const _0x2f4b15=_0x5ef910[_0xd8e9f8([0x73,0x70,0x6c,0x69,0x74])](_0xd8e9f8([0x2e]));return _0x57969a[_0xd8e9f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cd17c=>_0x4cd17c[_0xd8e9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8e9f8([0x2a])))[_0xd8e9f8([0x6d,0x61,0x70])](_0x9be57c=>_0x9be57c[_0xd8e9f8([0x73,0x70,0x6c,0x69,0x74])](_0xd8e9f8([0x2e])))[_0xd8e9f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x356884=>_0x356884[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f4b15[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd8e9f8([0x6d,0x61,0x70])](_0x216148=>Array(_0x2f4b15[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x216148[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd8e9f8([0x66,0x69,0x6c,0x6c])](_0x216148[0x0]===_0xd8e9f8([0x2a])?_0xd8e9f8([0x2a]):'')[_0xd8e9f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x216148))[_0xd8e9f8([0x73,0x6f,0x6d,0x65])](_0x1b94b5=>_0x2f4b15[_0xd8e9f8([0x65,0x76,0x65,0x72,0x79])]((_0x59a54f,_0x5a25ec)=>_0x1b94b5[_0x5a25ec]===_0x59a54f||_0x1b94b5[_0x5a25ec]===_0xd8e9f8([0x2a])));}function _0x781f(){return _0x178676&&_0xc42e19?new window[(_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a7527,_0x19d5f4)=>{_0x178676[_0xd8e9f8([0x74,0x68,0x65,0x6e])](_0x3a7527,_0x19d5f4),_0xc42e19[_0xd8e9f8([0x74,0x68,0x65,0x6e])](_0x5d2a76=>{_0x5d2a76!=_0xd8e9f8([0x56,0x61,0x6c,0x69,0x64])&&_0x3a7527(_0x5d2a76);},_0x19d5f4);}):_0x178676||_0xc42e19||_0xd8e9f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2229de(_0x363c1a,_0x56f49b){return new window[(_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5fdabc=>{if(_0x3a39fb())return _0x5fdabc(_0xd8e9f8([0x56,0x61,0x6c,0x69,0x64]));_0x99d6e1(),_0x24030f[_0xd8e9f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd8e9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28fef6=!0x1;const _0x3448ed=_0x44c0bc();function _0xe89d9c(_0x2212fa){return!!_0x2212fa&&(typeof _0x2212fa===_0xd8e9f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2212fa===_0xd8e9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2212fa[_0xd8e9f8([0x74,0x68,0x65,0x6e])]===_0xd8e9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2212fa[_0xd8e9f8([0x63,0x61,0x74,0x63,0x68])]===_0xd8e9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e61af(_0x6d8af2){_0x19e9c2(_0x6d8af2)[_0xd8e9f8([0x74,0x68,0x65,0x6e])](_0x436764=>{if(!_0x436764||_0x436764[_0xd8e9f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd8e9f8([0x6f,0x6b]))return _0xd8e9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31eeb5(_0x2c765e(_0x3448ed+_0x56f49b))!=_0x436764[_0xd8e9f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd8e9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd8e9f8([0x56,0x61,0x6c,0x69,0x64]);})[_0xd8e9f8([0x74,0x68,0x65,0x6e])](_0x4f621d=>(_0x1f3f26(),_0x4f621d),()=>{const _0x22d6e1=_0x3d751d();return null==_0x22d6e1?(_0x1f3f26(),_0xd8e9f8([0x56,0x61,0x6c,0x69,0x64])):_0xd8e9f8(_0x5b1967-_0x22d6e1>(0x2b4a2d4a^_0x3fc62c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd8e9f8([0x74,0x68,0x65,0x6e])](_0x5fdabc)[_0xd8e9f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5fdabc(_0xd8e9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c9edd=0xf7047ca^_0x3fc62c;function _0x1f3f26(){const _0x3560a8=_0xd8e9f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x31eeb5(_0x2c765e(_0x363c1a)),_0x58c5c2=_0x51d97c(_0x31eeb5(window[_0xd8e9f8([0x4d,0x61,0x74,0x68])][_0xd8e9f8([0x63,0x65,0x69,0x6c])](_0x5b1967/_0x3c9edd)));window[_0xd8e9f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd8e9f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3560a8,_0x58c5c2);}function _0x3d751d(){const _0x1bdc3c=_0xd8e9f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x31eeb5(_0x2c765e(_0x363c1a)),_0xa487e7=window[_0xd8e9f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd8e9f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bdc3c);return _0xa487e7?window[_0xd8e9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51d97c(_0xa487e7),0x10)*_0x3c9edd:null;}function _0x19e9c2(_0x8f0bf1){return new window[(_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a2bc1,_0x24837d)=>{_0x8f0bf1[_0xd8e9f8([0x74,0x68,0x65,0x6e])](_0x5a2bc1,_0x24837d),window[_0xd8e9f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24837d,0xf477d8a^_0x3fc62c);});}}_0x24030f[_0xd8e9f8([0x6f,0x6e])](_0xd8e9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3369cd,_0xea5d02)=>{if(_0xea5d02[0x0]!=_0x363c1a)return _0x5fdabc(_0xd8e9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xea5d02[0x1]={..._0xea5d02[0x1],[_0xd8e9f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3448ed};},{[_0xd8e9f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd8e9f8([0x68,0x69,0x67,0x68])}),_0x24030f[_0xd8e9f8([0x6f,0x6e])](_0xd8e9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28ba60=>{_0xe89d9c(_0x28ba60[_0xd8e9f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28fef6=!0x0,_0x2e61af(_0x28ba60[_0xd8e9f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd8e9f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd8e9f8([0x6c,0x6f,0x77])}),_0x467643[_0xd8e9f8([0x74,0x68,0x65,0x6e])](()=>{_0x28fef6||_0x5fdabc(_0xd8e9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a39fb(){return _0x24030f[_0xd8e9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd8e9f8([0x76,0x69,0x65,0x77])][_0xd8e9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd8e9f8([0x61,0x75,0x74,0x6f]);}function _0x99d6e1(){_0x24030f[_0xd8e9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd8e9f8([0x76,0x69,0x65,0x77])][_0xd8e9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd8e9f8([0x61,0x75,0x74,0x6f]);}}function _0x4612ec(_0x2a7532){const _0x17d90b=[new window[(_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf2c78a=>setTimeout(_0xf2c78a,0xf4f9786^_0x3fc62c)),_0x467643[_0xd8e9f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407e98=>{let _0x3a74a5=0x0;_0x24030f[_0xd8e9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0xd8e9f8([0x6f,0x6e])](_0xd8e9f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x377620,_0x2488ba)=>{_0x2488ba[0x0][_0xd8e9f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a74a5++,_0x3a74a5==(0xf46aca2^_0x3fc62c)&&(_0x407e98(),_0x377620[_0xd8e9f8([0x6f,0x66,0x66])]());});}))];return window[_0xd8e9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd8e9f8([0x72,0x61,0x63,0x65])](_0x17d90b)[_0xd8e9f8([0x74,0x68,0x65,0x6e])](()=>_0x2a7532);}async function _0x1cc9c2(){await _0x467643,_0x24030f[_0xd8e9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0xd8e9f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44789c,_0x24030f[_0xd8e9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0xd8e9f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44789c,_0x24030f[_0xd8e9f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd8e9f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x385c6d(_0x5b3831){const _0x8973de=_0x18e9bf();_0x24030f[_0x8973de]=_0xd8e9f8([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b3831,_0x5b3831!=_0xd8e9f8([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc9c2();}function _0x18e9bf(){const _0x183e1a=window[_0xd8e9f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd8e9f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd8e9f8([0x6e,0x6f,0x77])]())[_0xd8e9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd8e9f8([0x2e]),'');let _0x5dc91a=_0xd8e9f8([0x75]);for(let _0x1627b3=0x0;_0x1627b3<_0x183e1a[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1627b3+=0x2){let _0xc56494=window[_0xd8e9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183e1a[_0xd8e9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1627b3,_0x1627b3+0x2));_0xc56494>=_0x342ac2[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc56494-=_0x342ac2[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5dc91a+=_0x342ac2[_0xc56494];}return _0x5dc91a;}function _0x5a0ff2(){const _0xe40208=_0x711d67[_0xd8e9f8([0x73,0x70,0x6c,0x69,0x74])](_0xd8e9f8([0x2e]));if(0x3!=_0xe40208[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9a74ee(_0xe40208[0x1]);function _0x9a74ee(_0x19d3a0){const _0x1a4052=_0x30f973(_0x19d3a0);return _0x1a4052&&_0x5a6f72()?_0x1a4052:null;function _0x5a6f72(){const _0x39a9cf=_0x1a4052[_0xd8e9f8([0x6a,0x74,0x69])],_0x4f1233=window[_0xd8e9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a9cf[_0xd8e9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39a9cf[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24db3c={..._0x1a4052,[_0xd8e9f8([0x6a,0x74,0x69])]:_0x39a9cf[_0xd8e9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39a9cf[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24db3c[_0xd8e9f8([0x76,0x63])],_0x2c765e(_0x24db3c)==_0x4f1233;}}}async function _0x4d118b(){let _0x1747e9=!0x0;try{const _0x3a0ba8=_0x711d67[_0xd8e9f8([0x73,0x70,0x6c,0x69,0x74])](_0xd8e9f8([0x2e])),[_0x58af5c,_0x5f34d6,_0x5607c6]=_0x3a0ba8;return _0x3336da(_0x58af5c),await _0x3a7e90(_0x58af5c,_0x5f34d6,_0x5607c6),_0x1747e9;}catch{return!0x1;}function _0x3336da(_0x227c1b){const _0x284e6a=_0x30f973(_0x227c1b);_0x284e6a&&_0x284e6a[_0xd8e9f8([0x61,0x6c,0x67])]==_0xd8e9f8([0x45,0x53,0x32,0x35,0x36])||(_0x1747e9=!0x1);}async function _0x3a7e90(_0x526c5a,_0x30f535,_0x503244){const _0x58bd8a=window[_0xd8e9f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd8e9f8([0x66,0x72,0x6f,0x6d])](_0x56ec27(_0x503244),_0x48e756=>_0x48e756[_0xd8e9f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcf7aca=new window[(_0xd8e9f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd8e9f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x526c5a+_0xd8e9f8([0x2e])+_0x30f535),_0x538600=window[_0xd8e9f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd8e9f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x538600)return;const _0x5861ae=await _0x538600[_0xd8e9f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd8e9f8([0x6a,0x77,0x6b]),_0x182db4,{[_0xd8e9f8([0x6e,0x61,0x6d,0x65])]:_0xd8e9f8([0x45,0x43,0x44,0x53,0x41]),[_0xd8e9f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd8e9f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd8e9f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x538600[_0xd8e9f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd8e9f8([0x6e,0x61,0x6d,0x65])]:_0xd8e9f8([0x45,0x43,0x44,0x53,0x41]),[_0xd8e9f8([0x68,0x61,0x73,0x68])]:{[_0xd8e9f8([0x6e,0x61,0x6d,0x65])]:_0xd8e9f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5861ae,_0x58bd8a,_0xcf7aca)||(_0x1747e9=!0x1);}}function _0x30f973(_0x2808bc){return _0x2808bc[_0xd8e9f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd8e9f8([0x65,0x79]))?JSON[_0xd8e9f8([0x70,0x61,0x72,0x73,0x65])](_0x56ec27(_0x2808bc)):null;}function _0x56ec27(_0x4b0b7c){return window[_0xd8e9f8([0x61,0x74,0x6f,0x62])](_0x4b0b7c[_0xd8e9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd8e9f8([0x2b]))[_0xd8e9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd8e9f8([0x2f])));}function _0x2c765e(_0x2141a8){let _0x381e56=0x1505;function _0xeef735(_0x2bee4a){for(let _0x523b05=0x0;_0x523b05<_0x2bee4a[_0xd8e9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x523b05++){const _0x384cb8=_0x2bee4a[_0xd8e9f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x523b05);_0x381e56=(_0x381e56<<0x5)+_0x381e56+_0x384cb8,_0x381e56&=_0x381e56;}}function _0x5473d2(_0x26a192){Array[_0xd8e9f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x26a192)?_0x26a192[_0xd8e9f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5473d2):_0x26a192&&typeof _0x26a192==_0xd8e9f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd8e9f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x26a192)[_0xd8e9f8([0x73,0x6f,0x72,0x74])]()[_0xd8e9f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x292065,_0x12bd6b])=>{_0xeef735(_0x292065),_0x5473d2(_0x12bd6b);}):_0xeef735(window[_0xd8e9f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x26a192));}return _0x5473d2(_0x2141a8),_0x381e56>>>0x0;}function _0x31eeb5(_0x25da3){return _0x25da3[_0xd8e9f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd8e9f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd8e9f8([0x30]));}function _0x51d97c(_0x3d4d4a){return _0x3d4d4a[_0xd8e9f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd8e9f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd8e9f8([0x6a,0x6f,0x69,0x6e])]('');}function _0x44789c(){}function _0xd8e9f8(_0x4b6638){return _0x4b6638['map'](_0x293932=>String['fromCharCode'](_0x293932))['join']('');}_0x385c6d(await _0x4bdce6());}(this);}}function I(_0x366c3e,_0x43259f,_0x16369f){let _0x39738d=_0x43259f['listMarkers'][_0x366c3e%_0x43259f['listMarkers']['length']];if(void 0x0===_0x39738d['showMarkerPath']||_0x39738d['showMarkerPath'])return _0x16369f['slice'](0x0,_0x366c3e+0x1)['map']((_0x1c4e9d,_0x726444)=>(_0x39738d=_0x43259f['listMarkers'][_0x726444%_0x43259f['listMarkers']['length']],S(_0x39738d['marker'],_0x1c4e9d)))['join']('');{const _0xb0dc7c=_0x16369f[_0x16369f['length']-0x1];return S(_0x39738d['marker'],_0xb0dc7c);}}function S(_0x1789cd,_0xdb21a3){return'function'==typeof _0x1789cd?_0x1789cd(_0xdb21a3):_0x1789cd;}function N(_0xf46d33,_0x4086a0){return(_0x4ef163,_0x30f6c6,_0x44e391)=>{const _0x153f34=_0x30f6c6['viewItem'];if(_0x30f6c6['modelRange']||Object['assign'](_0x30f6c6,_0x44e391['convertChildren'](_0x30f6c6['viewItem'],_0x30f6c6['modelCursor'])),!_0x44e391['consumable']['test'](_0x153f34,{'classes':_0xf46d33['className']}))return;const _0x1285a9=Array['from'](_0x30f6c6['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x4dae69=>_0x4086a0['checkAttribute'](_0x4dae69,'listItemId'));if(!_0x1285a9['length'])return;_0x44e391['consumable']['consume'](_0x153f34,{'classes':_0xf46d33['className']}),_0x44e391['consumable']['consume'](_0x153f34,{'classes':'multi-level-list'}),_0x44e391['consumable']['consume'](_0x153f34,{'styles':'list-style-type'});const _0xa23f03=_0x1285a9[0x0]['getAttribute']('listIndent');for(const _0x287f69 of _0x1285a9)_0x287f69['getAttribute']('listIndent')==_0xa23f03&&(_0x44e391['writer']['setAttribute']('listType',_0xf46d33['listType'],_0x287f69),_0x44e391['writer']['setAttribute']('listMarkerStyle',_0xf46d33['listMarkerStyle'],_0x287f69));};}function _(_0x48e86f,_0x5b5fc0){const _0x3cd7ee=_0x48e86f['t'],t=_0x48e86f['t'];switch(_0x5b5fc0){case'Start\x20at':return _0x3cd7ee('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x3cd7ee('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x3cd7ee('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x3cd7ee('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x5b5fc0;}}class MultiLevelListView extends _0x20cc9d{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x1907e3();['keystrokes']=new _0x1d1448();['focusables']=new _0x2ec06c();['focusCycler'];constructor(_0x3be8f1,{enabledProperties:_0x6eeaf4,styleButtonViews:_0x2d32ef,styleGridAriaLabel:_0xcb3f52}){super(_0x3be8f1);const _0x3a9267=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0xd5405({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x6eeaf4['styles']?(this['stylesView']=this['_createStylesView'](_0x2d32ef,_0xcb3f52),this['children']['add'](this['stylesView'])):_0x3a9267['push']('ck-multi-level-list-properties_without-styles'),_0x6eeaf4['startIndex']&&(this['_addListPropertyViews'](_0x6eeaf4),_0x3a9267['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x3a9267},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x59601c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x59601c['element']);_0x209e87({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x2896e1['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 _0x354e21=_0x3d3bea=>_0x3d3bea['stopPropagation']();this['keystrokes']['set']('arrowright',_0x354e21),this['keystrokes']['set']('arrowleft',_0x354e21),this['keystrokes']['set']('arrowup',_0x354e21),this['keystrokes']['set']('arrowdown',_0x354e21);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x4b5f65,_0x335d80){const _0x1a6ba7=new _0x20cc9d(this['locale']);return _0x1a6ba7['children']=_0x1a6ba7['createCollection'](),_0x1a6ba7['children']['addMany'](_0x4b5f65),_0x1a6ba7['setTemplate']({'tag':'div','attributes':{'aria-label':_0x335d80,'class':['ck','ck-multi-level-list-styles']},'children':_0x1a6ba7['children']}),_0x1a6ba7['children']['delegate']('execute')['to'](this),_0x1a6ba7['focus']=function(){this['children']['first']['focus']();},_0x1a6ba7['focusTracker']=new _0x1907e3(),_0x1a6ba7['keystrokes']=new _0x1d1448(),_0x1a6ba7['render'](),_0x1a6ba7['keystrokes']['listenTo'](_0x1a6ba7['element']),_0x1a6ba7;}['_addListPropertyViews'](_0x32ab9b){const _0x18503b=[];_0x32ab9b['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x18503b['push'](this['startIndexFieldView'])),_0x32ab9b['styles']?(this['additionalPropertiesCollapsibleView']=new _0x13cf4e(this['locale'],_0x18503b),this['additionalPropertiesCollapsibleView']['set']({'label':_(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x18503b,'isEnabled',(..._0x1cda7d)=>_0x1cda7d['some'](_0x455961=>_0x455961)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x483024,_0x2e7621,_0x429587)=>{_0x429587||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x18503b);}['_createStartIndexField'](){const _0x57f7ba=new _0x28285c(this['locale'],_0xc21c81);return _0x57f7ba['set']({'label':_(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x57f7ba['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x57f7ba['fieldView']['on']('input',()=>{const _0x55ea74=_0x57f7ba['fieldView']['element'],_0x19f776=_0x55ea74['valueAsNumber'];Number['isNaN'](_0x19f776)?_0x57f7ba['errorText']=_(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x55ea74['checkValidity']()?this['fire']('listStart',{'startIndex':_0x19f776}):_0x57f7ba['errorText']=_(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x57f7ba;}}class MultiLevelListUI extends _0xd26acf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1fa1ce=this['editor'];_0x1fa1ce['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x20f5da,parentCommandName:_0x30899e,buttonLabel:_0x3db637,buttonIcon:_0x59511e,styleGridAriaLabel:_0x14c016,styleDefinitions:_0x5b70ae}){const _0x653343=_0x20f5da['commands']['get'](_0x30899e),_0x5cd557=_0x20f5da['config']['get']('list.properties')||{},_0x76d5ed=_0x20f5da['plugins']['has']('ListProperties'),_0x30cdb0=_0x5cd557['startIndex'];if(!_0x76d5ed||!_0x30cdb0)return _0x415809=>{const _0x4e05c7=new _0x3de3f7(_0x415809);return _0x4e05c7['set']({'label':_0x3db637,'icon':_0x59511e,'tooltip':!0x0,'isToggleable':!0x0}),_0x4e05c7['bind']('isOn')['to'](_0x653343,'value',_0x3fa5a3=>!!_0x3fa5a3),_0x4e05c7['on']('execute',()=>{_0x20f5da['execute'](_0x30899e),_0x20f5da['editing']['view']['focus']();}),_0x4e05c7;};return _0x57eb26=>{const _0x36fcce=_0x3432b7(_0x57eb26,_0x396d99),_0x1fa2b8=_0x36fcce['buttonView'];return _0x36fcce['bind']('isEnabled')['to'](_0x653343),_0x36fcce['class']='ck-list-styles-dropdown',_0x1fa2b8['on']('execute',()=>{_0x20f5da['execute'](_0x30899e),_0x20f5da['editing']['view']['focus']();}),_0x1fa2b8['set']({'label':_0x3db637,'icon':_0x59511e,'tooltip':!0x0,'isToggleable':!0x0}),_0x1fa2b8['bind']('isOn')['to'](_0x653343,'value',_0x52254e=>!!_0x52254e),_0x36fcce['once']('change:isOpen',()=>{const _0xd5f067=function({editor:_0x17cc0f,dropdownView:_0x4a88db,styleDefinitions:_0x558b73,styleGridAriaLabel:_0x253068}){const _0x201384=_0x17cc0f['locale'],_0x437523=_0x17cc0f['config']['get']('list.properties'),_0x3e1bc4=null;_0x437523['reversed']=!0x1,_0x558b73['length']||(_0x437523['styles']=!0x1);const _0x2dbb59=new MultiLevelListView(_0x201384,{'styleGridAriaLabel':_0x253068,'enabledProperties':_0x437523,'styleButtonViews':_0x3e1bc4});if(_0x437523['startIndex']){const _0x5ec7ba=_0x17cc0f['commands']['get']('listStart');_0x2dbb59['startIndexFieldView']['bind']('isEnabled')['to'](_0x5ec7ba),_0x2dbb59['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5ec7ba),_0x2dbb59['on']('listStart',(_0x42a3cb,_0x426f01)=>_0x17cc0f['execute']('listStart',_0x426f01));}return _0x2dbb59['delegate']('execute')['to'](_0x4a88db),_0x2dbb59;}({'editor':_0x20f5da,'dropdownView':_0x36fcce,'styleGridAriaLabel':_0x14c016,'styleDefinitions':_0x5b70ae});_0x36fcce['panelView']['children']['add'](_0xd5f067);}),_0x36fcce['on']('execute',()=>{_0x20f5da['editing']['view']['focus']();}),_0x36fcce;};}({'editor':_0x1fa1ce,'parentCommandName':'multiLevelList','buttonLabel':_(_0x1fa1ce['locale'],'Multi-level\x20List'),'buttonIcon':_0x234366,'styleGridAriaLabel':_(_0x1fa1ce['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x1fa1ce['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x1fed52=_0x1fa1ce['commands']['get']('multiLevelList'),_0x56f46e=new _0x53a90b(_0x1fa1ce['locale']);return _0x56f46e['set']({'label':_(_0x1fa1ce['locale'],'Multi-level\x20List'),'icon':_0x234366}),_0x56f46e['bind']('isEnabled')['to'](_0x1fed52),_0x56f46e['bind']('isOn')['to'](_0x1fed52,'value',_0x249afb=>!!_0x249afb),_0x56f46e['on']('execute',()=>{_0x1fa1ce['execute']('multiLevelList'),_0x1fa1ce['editing']['view']['focus']();}),_0x56f46e;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f081e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15f0aa;for(const _0x14d6bd in _0x5f081e){const _0x2a2c75=_0x14d6bd,_0xdaef47=_0x5f081e[_0x2a2c75];if('multiLevelListLicenseKeyValid'==_0xdaef47||'multiLevelListLicenseKeyInvalid'==_0xdaef47||'multiLevelListLicenseKeyExpired'==_0xdaef47||'multiLevelListLicenseKeyDomainLimit'==_0xdaef47||'multiLevelListLicenseKeyNotAllowed'==_0xdaef47||'multiLevelListLicenseKeyEvaluationLimit'==_0xdaef47||'multiLevelListLicenseKeyUsageLimit'==_0xdaef47){delete _0x5f081e[_0x2a2c75],_0x15f0aa=_0xdaef47,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x15f0aa&&_0x5f081e['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x15f0aa&&_0x5f081e['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x15f0aa&&_0x5f081e['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x15f0aa&&_0x5f081e['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x15f0aa&&_0x5f081e['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x15f0aa&&_0x5f081e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class MultiLevelList extends _0xd26acf{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}export{MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListUI};
|
|
23
|
+
import{Command as _0x476497,Plugin as _0x103050}from'@ckeditor/ckeditor5-core/dist/index.js';import{Matcher as _0x42743a,ViewUpcastWriter as _0x4cbf6b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ListEditing as _0xeb5206,_isFirstBlockOfListItem as _0x2d1119}from'@ckeditor/ckeditor5-list/dist/index.js';import{first as _0x575ae7,createElement as _0x36c2c2,uid as _0x4e3e6f,FocusTracker as _0x5cc76e,KeystrokeHandler as _0x2b1fb1,global as _0xa3cedc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconMultiLevelList as _0x59df2c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3049b7,ViewCollection as _0x5113b3,FocusCycler as _0x496134,addKeyboardHandlingForGrid as _0x4a77f9,CollapsibleView as _0x2a670f,LabeledFieldView as _0x128bca,createLabeledInputNumber as _0x49076c,MenuBarMenuListItemButtonView as _0x404926,ButtonView as _0x12b144,createDropdown as _0x3eaa2e,SplitButtonView as _0x272624}from'@ckeditor/ckeditor5-ui/dist/index.js';class MultiLevelListCommand extends _0x476497{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x48302f,_0x5ca9b1,_0x1e79f6){super(_0x48302f),this['defaultListMarkerStyle']=_0x5ca9b1,this['_listDefinitions']=_0x1e79f6,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x33f171={}){const _0x3ba80a=this['editor']['model'],_0x404577=_0x33f171['listMarkerStyle']||this['defaultListMarkerStyle'];_0x3ba80a['change'](()=>{const _0xd7efe=this['_getListTypeFromListMarkerStyle'](_0x404577);if(!_0xd7efe)return;const _0x56646d=_0xd7efe+'List';this['editor']['execute'](_0x56646d,{'additionalAttributes':{'listMarkerStyle':_0x404577}});});}['_getValue'](){const _0x239d09=_0x575ae7(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x239d09)?_0x239d09['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x374005=this['editor'],_0xe0f7e9=_0x374005['commands']['get']('customNumberedList'),_0x3badee=_0x374005['commands']['get']('customBulletedList');return _0xe0f7e9['isEnabled']||_0x3badee['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x33593d){const _0x3cd7a5=this['_listDefinitions']['find'](_0x4469f6=>_0x4469f6['listMarkerStyle']==_0x33593d);return _0x3cd7a5?_0x3cd7a5['listType']:null;}}class MultiLevelListEditing extends _0x103050{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xeb5206];}constructor(_0x30cc82){super(_0x30cc82);const _0x9ea0bd=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x11d98f=>_0x11d98f+'.'}]},..._0x9ea0bd];}['init'](){const _0x238275=this['editor'],_0xd7f772=_0x238275['model'],_0x4884c4=_0x238275['editing']['view'],_0x4f870b=_0x238275['plugins']['get'](_0xeb5206);_0x238275['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x238275,'legal',this['_listDefinitions'])),_0xd7f772['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0xd7f772['schema']['addAttributeCheck']((_0x384ea6,_0x5d2cf0)=>{const _0x442d62=_0x384ea6['last'];if('listMarker'==_0x5d2cf0||'listMarkerStyle'==_0x5d2cf0)return!(!_0x442d62['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x7f4ef8=>_0x7f4ef8['listType']==_0x442d62['getAttribute']('listType')))&&void 0x0;});for(const _0xa6462a of this['_listDefinitions'])_0x238275['conversion']['for']('upcast')['add'](_0x20c224=>{_0x20c224['on']('element:'+('customNumbered'==_0xa6462a['listType']?'ol':'ul'),N(_0xa6462a,_0xd7f772['schema']),{'priority':'low'});}),_0x4f870b['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x4d2c40,_0x1bb3a2,_0x593263){_0x1bb3a2==_0xa6462a['listMarkerStyle']?(_0x4d2c40['addClass'](['multi-level-list',_0xa6462a['className']],_0x593263),_0x4d2c40['setStyle']('list-style-type','none',_0x593263)):(_0x4d2c40['removeClass'](['multi-level-list',_0xa6462a['className']],_0x593263),_0x4d2c40['removeStyle']('list-style-type',_0x593263));}}),_0x4f870b['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x2853d0,_0x39a141,{dataPipeline:_0x5b2a62}){if(!_0x39a141['hasAttribute']('listMarker'))return null;if(_0x39a141['getAttribute']('listType')!=_0xa6462a['listType']||_0x39a141['getAttribute']('listMarkerStyle')!=_0xa6462a['listMarkerStyle'])return null;const _0x30385a=String(_0x39a141['getAttribute']('listMarker')),_0x49caf7=this['canInjectMarkerIntoElement'](_0x39a141);return _0x2853d0['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5b2a62&&{'contenteditable':'false','data-multi-level-list-marker':_0x30385a}},function(_0xaa0405){const _0x280697=this['toDomElement'](_0xaa0405);return _0x49caf7?(_0x280697['appendChild'](_0x36c2c2(_0xaa0405,'span',{},_0x5b2a62?_0xaa0405['createTextNode'](_0x30385a):[])),_0x280697['appendChild'](_0xaa0405['createTextNode']('\u00a0'))):_0x5b2a62&&_0x280697['appendChild'](_0xaa0405['createTextNode'](_0x30385a)),_0x280697;});},'canInjectMarkerIntoElement':_0x25a3ad=>_0xd7f772['schema']['checkChild'](_0x25a3ad,'$text')&&_0xd7f772['schema']['checkChild'](_0x25a3ad,'$inlineObject')&&!_0xd7f772['schema']['isLimit'](_0x25a3ad)&&_0x25a3ad['getAttribute']('listType')==_0xa6462a['listType']&&_0x25a3ad['getAttribute']('listMarkerStyle')==_0xa6462a['listMarkerStyle']});_0x238275['conversion']['for']('upcast')['add'](_0x2e0640=>{_0x2e0640['on']('element:span',function(_0x342652){return(_0x35bd4f,_0xae8e7c,{writer:_0x430b8d,consumable:_0xfaeba5})=>{const _0x1b6d81=_0xae8e7c['modelCursor'],_0x5e4729=_0x1b6d81['parent'],_0x1c4600=_0xae8e7c['viewItem'];if(_0xfaeba5['consume'](_0x1c4600,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x1b6d81['isAtStart']&&_0x5e4729['hasAttribute']('listType')&&_0x1c4600['childCount']>0x0){const _0x1a074b=_0x342652['createRangeIn'](_0x1c4600);let _0x5d8bfe='';for(const _0x39b8f4 of _0x1a074b['getItems']())_0x39b8f4['is']('$textProxy')?(_0x5d8bfe+=_0x39b8f4['data']['trim'](),_0xfaeba5['consume'](_0x39b8f4['textNode'])):_0xfaeba5['consume'](_0x39b8f4,{'name':!0x0});_0x430b8d['setAttribute']('listMarker',_0x5d8bfe['trim'](),_0x5e4729);}};}(_0x4884c4));}),_0x4f870b['on']('postFixer',(_0x3eb4d9,{listNodes:_0x5dcfe2,writer:_0x1b04ca})=>{const _0x519b9f=[];for(const {node:_0x51eb6b,previousNodeInList:_0x4492b4}of _0x5dcfe2){const _0x16fa96=_0x51eb6b['getAttribute']('listType'),_0x2e42c2=_0x51eb6b['getAttribute']('listMarkerStyle')||('customNumbered'==_0x16fa96?'legal':void 0x0),_0x48df16=this['_listDefinitions']['find'](_0x2ffb04=>_0x2ffb04['listType']==_0x16fa96&&_0x2ffb04['listMarkerStyle']==_0x2e42c2);if('customNumbered'!=_0x16fa96&&'customBulleted'!=_0x16fa96&&(_0x51eb6b['hasAttribute']('listMarker')&&(_0x1b04ca['removeAttribute']('listMarker',_0x51eb6b),_0x3eb4d9['return']=!0x0),_0x51eb6b['hasAttribute']('listMarkerStyle')&&(_0x1b04ca['removeAttribute']('listMarkerStyle',_0x51eb6b),_0x3eb4d9['return']=!0x0)),!_0x48df16){'customBulleted'!=_0x16fa96||_0x2e42c2||(_0x1b04ca['setAttribute']('listType','bulleted',_0x51eb6b),_0x3eb4d9['return']=!0x0);continue;}_0x51eb6b['hasAttribute']('listMarkerStyle')||(_0x1b04ca['setAttribute']('listMarkerStyle',_0x2e42c2,_0x51eb6b),_0x3eb4d9['return']=!0x0);const _0x8b790b=_0x51eb6b['getAttribute']('listIndent');if(_0x4492b4&&_0x4492b4['getAttribute']('listItemId')==_0x51eb6b['getAttribute']('listItemId'))continue;_0x519b9f['length']=_0x8b790b+0x1,_0x4492b4||_0x519b9f[_0x8b790b]?_0x4492b4&&_0x4492b4['getAttribute']('listType')!=_0x48df16['listType']?_0x519b9f[_0x8b790b]=0x1:_0x519b9f[_0x8b790b]++:_0x519b9f[_0x8b790b]=_0x51eb6b['getAttribute']('listStart')||0x1;const _0x274d4c=I(_0x8b790b,_0x48df16,_0x519b9f);_0x51eb6b['getAttribute']('listMarker')!=_0x274d4c&&(_0x1b04ca['setAttribute']('listMarker',_0x274d4c,_0x51eb6b),_0x3eb4d9['return']=!0x0);}}),_0x4f870b['on']('checkElement',(_0x3513e6,{modelElement:_0x1b3d0f,viewElement:_0x3f20da})=>{const _0x1f130d=_0x1b3d0f['getAttribute']('listType');if('customNumbered'!=_0x1f130d&&'customBulleted'!=_0x1f130d)return;if(_0xd7f772['schema']['checkChild'](_0x1b3d0f,'$text'))return;const _0x109041=_0x2d1119(_0x1b3d0f);let _0xcc007=!0x1;const _0x2ea25a=_0x4884c4['createPositionBefore'](_0x3f20da)['getWalker']({'direction':'backward'});for(const {item:_0x26e63d}of _0x2ea25a)if(_0x26e63d['is']('element')){if(_0x238275['editing']['mapper']['toModelElement'](_0x26e63d))break;if(_0x26e63d['getCustomProperty']('listItemMarker')){_0xcc007=!0x0;break;}}_0xcc007!=_0x109041&&(_0x3513e6['return']=!0x0,_0x3513e6['stop']());});const _0x2a808e=_0x238275['editing']['view']['document'];this['listenTo'](_0x2a808e,'clipboardOutput',(_0x5134ef,_0x4fb821)=>{const _0x2efc96=new _0x42743a({'name':'span','classes':'multi-level-list__marker'}),_0x24498f=new _0x42743a({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x1f5ee5=new _0x4cbf6b(_0x4fb821['content']['document']),_0x34c6ec=[];for(const _0x688ade of _0x1f5ee5['createRangeIn'](_0x4fb821['content'])['getItems']())_0x688ade['is']('element')&&_0x2efc96['match'](_0x688ade)&&_0x34c6ec['push'](_0x688ade),_0x688ade['is']('element')&&_0x24498f['match'](_0x688ade)&&_0x1f5ee5['removeStyle']('list-style-type',_0x688ade);for(const _0x4d0835 of _0x34c6ec)_0x1f5ee5['remove'](_0x4d0835);});}['afterInit'](){!async function(_0x391158){const _0x353679=_0x57653c([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0x2555e4=0xf46a94a,_0x1be7f3=0xf41231a^_0x2555e4,_0xa832cc=window[_0x57653c([0x44,0x61,0x74,0x65])][_0x57653c([0x6e,0x6f,0x77])](),_0x272e90=_0x391158[_0x57653c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x121dd5=new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12ce0e=>{_0x272e90[_0x57653c([0x6f,0x6e,0x63,0x65])](_0x57653c([0x72,0x65,0x61,0x64,0x79]),_0x12ce0e);}),_0x3aed9c={[_0x57653c([0x6b,0x74,0x79])]:_0x57653c([0x45,0x43]),[_0x57653c([0x75,0x73,0x65])]:_0x57653c([0x73,0x69,0x67]),[_0x57653c([0x63,0x72,0x76])]:_0x57653c([0x50,0x2d,0x32,0x35,0x36]),[_0x57653c([0x78])]:_0x57653c([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]),[_0x57653c([0x79])]:_0x57653c([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]),[_0x57653c([0x61,0x6c,0x67])]:_0x57653c([0x45,0x53,0x32,0x35,0x36])},_0x308e4c=_0x272e90[_0x57653c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57653c([0x67,0x65,0x74])](_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ebc95(){let _0x5148bf,_0x5013b0=null,_0x27ef75=null;try{if(_0x308e4c==_0x57653c([0x47,0x50,0x4c]))return _0x57653c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5148bf=_0x371094(),!_0x5148bf)return _0x57653c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5148bf[_0x57653c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27ef75=_0x3d1dd0(_0x5148bf[_0x57653c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5148bf[_0x57653c([0x6a,0x74,0x69])])),await _0xfd0cce()?_0x1d6766()?_0x163310()?_0x57653c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1901ca()?(_0x5148bf[_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57653c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5013b0=_0x5edb72(_0x57653c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ac984()):_0x57653c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57653c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57653c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57653c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x163310(){const _0x583dde=[_0x57653c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57653c([0x74,0x72,0x69,0x61,0x6c])][_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5148bf[_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa832cc/0x3e8:0xe10*_0x1be7f3;return _0x5148bf[_0x57653c([0x65,0x78,0x70])]<_0x583dde;}function _0x1d6766(){const _0x1d1e7f=_0x5148bf[_0x57653c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d1e7f&&(!!_0x1d1e7f[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57653c([0x2a]))||!!_0x1d1e7f[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57653c([0x4d,0x4c,0x4c])));}function _0x1901ca(){const _0x4a2662=_0x5148bf[_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a2662||0x0==_0x4a2662[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbfedcd}=new URL(window[_0x57653c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a2662[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfedcd))return!0x0;const _0x5f180a=_0xbfedcd[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e]));return _0x4a2662[_0x57653c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ee8fb=>_0x4ee8fb[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57653c([0x2a])))[_0x57653c([0x6d,0x61,0x70])](_0x3cd815=>_0x3cd815[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e])))[_0x57653c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56c2d7=>_0x56c2d7[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f180a[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57653c([0x6d,0x61,0x70])](_0x570e8a=>Array(_0x5f180a[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x570e8a[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57653c([0x66,0x69,0x6c,0x6c])](_0x570e8a[0x0]===_0x57653c([0x2a])?_0x57653c([0x2a]):'')[_0x57653c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x570e8a))[_0x57653c([0x73,0x6f,0x6d,0x65])](_0x4fb217=>_0x5f180a[_0x57653c([0x65,0x76,0x65,0x72,0x79])]((_0x138ca9,_0x4f7014)=>_0x4fb217[_0x4f7014]===_0x138ca9||_0x4fb217[_0x4f7014]===_0x57653c([0x2a])));}function _0x3ac984(){return _0x5013b0&&_0x27ef75?new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6b0105,_0x205f03)=>{_0x5013b0[_0x57653c([0x74,0x68,0x65,0x6e])](_0x6b0105,_0x205f03),_0x27ef75[_0x57653c([0x74,0x68,0x65,0x6e])](_0x26dd47=>{_0x26dd47!=_0x57653c([0x56,0x61,0x6c,0x69,0x64])&&_0x6b0105(_0x26dd47);},_0x205f03);}):_0x5013b0||_0x27ef75||_0x57653c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d1dd0(_0x12cdfc,_0x220829){return new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39950f=>{if(_0x375f25())return _0x39950f(_0x57653c([0x56,0x61,0x6c,0x69,0x64]));_0x3b0f54(),_0x272e90[_0x57653c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57653c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x277eb6=!0x1;const _0x40a495=_0x4e3e6f();function _0x2679e8(_0x3ea1dd){return!!_0x3ea1dd&&(typeof _0x3ea1dd===_0x57653c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ea1dd===_0x57653c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ea1dd[_0x57653c([0x74,0x68,0x65,0x6e])]===_0x57653c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ea1dd[_0x57653c([0x63,0x61,0x74,0x63,0x68])]===_0x57653c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x82b0b(_0x2f6595){_0x239d3a(_0x2f6595)[_0x57653c([0x74,0x68,0x65,0x6e])](_0x2fe1d1=>{if(!_0x2fe1d1||_0x2fe1d1[_0x57653c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57653c([0x6f,0x6b]))return _0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x428bf5(_0x218ac7(_0x40a495+_0x220829))!=_0x2fe1d1[_0x57653c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57653c([0x56,0x61,0x6c,0x69,0x64]);})[_0x57653c([0x74,0x68,0x65,0x6e])](_0x2b1424=>(_0x4fcb3a(),_0x2b1424),()=>{const _0x1a19dc=_0x142400();return null==_0x1a19dc?(_0x4fcb3a(),_0x57653c([0x56,0x61,0x6c,0x69,0x64])):_0x57653c(_0xa832cc-_0x1a19dc>(0x2b4a2d4a^_0x2555e4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57653c([0x74,0x68,0x65,0x6e])](_0x39950f)[_0x57653c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39950f(_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc62598=0xf7047ca^_0x2555e4;function _0x4fcb3a(){const _0x56d010=_0x57653c([0x6c,0x6c,0x63,0x74,0x2d])+_0x428bf5(_0x218ac7(_0x12cdfc)),_0x3ac498=_0x25e63e(_0x428bf5(window[_0x57653c([0x4d,0x61,0x74,0x68])][_0x57653c([0x63,0x65,0x69,0x6c])](_0xa832cc/_0xc62598)));window[_0x57653c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57653c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56d010,_0x3ac498);}function _0x142400(){const _0x2a3085=_0x57653c([0x6c,0x6c,0x63,0x74,0x2d])+_0x428bf5(_0x218ac7(_0x12cdfc)),_0x5d7400=window[_0x57653c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57653c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a3085);return _0x5d7400?window[_0x57653c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25e63e(_0x5d7400),0x10)*_0xc62598:null;}function _0x239d3a(_0x3a4118){return new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5be280,_0x3ca031)=>{_0x3a4118[_0x57653c([0x74,0x68,0x65,0x6e])](_0x5be280,_0x3ca031),window[_0x57653c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ca031,0xf477d8a^_0x2555e4);});}}_0x272e90[_0x57653c([0x6f,0x6e])](_0x57653c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x497a62,_0x5a6605)=>{if(_0x5a6605[0x0]!=_0x12cdfc)return _0x39950f(_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a6605[0x1]={..._0x5a6605[0x1],[_0x57653c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40a495};},{[_0x57653c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57653c([0x68,0x69,0x67,0x68])}),_0x272e90[_0x57653c([0x6f,0x6e])](_0x57653c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39ccdd=>{_0x2679e8(_0x39ccdd[_0x57653c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x277eb6=!0x0,_0x82b0b(_0x39ccdd[_0x57653c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57653c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57653c([0x6c,0x6f,0x77])}),_0x121dd5[_0x57653c([0x74,0x68,0x65,0x6e])](()=>{_0x277eb6||_0x39950f(_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x375f25(){return _0x272e90[_0x57653c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57653c([0x76,0x69,0x65,0x77])][_0x57653c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57653c([0x61,0x75,0x74,0x6f]);}function _0x3b0f54(){_0x272e90[_0x57653c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57653c([0x76,0x69,0x65,0x77])][_0x57653c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57653c([0x61,0x75,0x74,0x6f]);}}function _0x5edb72(_0x4f8570){const _0x479993=[new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59a1ac=>setTimeout(_0x59a1ac,0xf4f9786^_0x2555e4)),_0x121dd5[_0x57653c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9bb9fb=>{let _0x27f16f=0x0;_0x272e90[_0x57653c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57653c([0x6f,0x6e])](_0x57653c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e3376,_0xfe7bbd)=>{_0xfe7bbd[0x0][_0x57653c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27f16f++,_0x27f16f==(0xf46aca2^_0x2555e4)&&(_0x9bb9fb(),_0x1e3376[_0x57653c([0x6f,0x66,0x66])]());});}))];return window[_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57653c([0x72,0x61,0x63,0x65])](_0x479993)[_0x57653c([0x74,0x68,0x65,0x6e])](()=>_0x4f8570);}async function _0x322450(){await _0x121dd5,_0x272e90[_0x57653c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57653c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a7e69,_0x272e90[_0x57653c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57653c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a7e69,_0x272e90[_0x57653c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57653c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8df7b(_0x3e5932){const _0x16632b=_0x308313();_0x272e90[_0x16632b]=_0x57653c([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e5932,_0x3e5932!=_0x57653c([0x56,0x61,0x6c,0x69,0x64])&&_0x322450();}function _0x308313(){const _0x1eab80=window[_0x57653c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57653c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57653c([0x6e,0x6f,0x77])]())[_0x57653c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57653c([0x2e]),'');let _0x3792e5=_0x57653c([0x75]);for(let _0x1018d9=0x0;_0x1018d9<_0x1eab80[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1018d9+=0x2){let _0x185cc1=window[_0x57653c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eab80[_0x57653c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1018d9,_0x1018d9+0x2));_0x185cc1>=_0x353679[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x185cc1-=_0x353679[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3792e5+=_0x353679[_0x185cc1];}return _0x3792e5;}function _0x371094(){const _0x421549=_0x308e4c[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e]));if(0x3!=_0x421549[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55d8ec(_0x421549[0x1]);function _0x55d8ec(_0x14a40e){const _0x40ffb9=_0x219a76(_0x14a40e);return _0x40ffb9&&_0x3429c9()?_0x40ffb9:null;function _0x3429c9(){const _0x266a1d=_0x40ffb9[_0x57653c([0x6a,0x74,0x69])],_0x9afbc6=window[_0x57653c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x266a1d[_0x57653c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x266a1d[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b6663={..._0x40ffb9,[_0x57653c([0x6a,0x74,0x69])]:_0x266a1d[_0x57653c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x266a1d[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b6663[_0x57653c([0x76,0x63])],_0x218ac7(_0x5b6663)==_0x9afbc6;}}}async function _0xfd0cce(){let _0x23ffd6=!0x0;try{const _0x7d3f8d=_0x308e4c[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e])),[_0xa1980f,_0x10893b,_0x91ea9a]=_0x7d3f8d;return _0x599359(_0xa1980f),await _0x58318b(_0xa1980f,_0x10893b,_0x91ea9a),_0x23ffd6;}catch{return!0x1;}function _0x599359(_0x57ef6a){const _0x1aef7f=_0x219a76(_0x57ef6a);_0x1aef7f&&_0x1aef7f[_0x57653c([0x61,0x6c,0x67])]==_0x57653c([0x45,0x53,0x32,0x35,0x36])||(_0x23ffd6=!0x1);}async function _0x58318b(_0x3d1f98,_0x4568d9,_0x1d77c2){const _0x142c85=window[_0x57653c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57653c([0x66,0x72,0x6f,0x6d])](_0x200228(_0x1d77c2),_0x50c173=>_0x50c173[_0x57653c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x512b82=new window[(_0x57653c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57653c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d1f98+_0x57653c([0x2e])+_0x4568d9),_0x12c3c9=window[_0x57653c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57653c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12c3c9)return;const _0x1e9127=await _0x12c3c9[_0x57653c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57653c([0x6a,0x77,0x6b]),_0x3aed9c,{[_0x57653c([0x6e,0x61,0x6d,0x65])]:_0x57653c([0x45,0x43,0x44,0x53,0x41]),[_0x57653c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57653c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57653c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12c3c9[_0x57653c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57653c([0x6e,0x61,0x6d,0x65])]:_0x57653c([0x45,0x43,0x44,0x53,0x41]),[_0x57653c([0x68,0x61,0x73,0x68])]:{[_0x57653c([0x6e,0x61,0x6d,0x65])]:_0x57653c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e9127,_0x142c85,_0x512b82)||(_0x23ffd6=!0x1);}}function _0x219a76(_0x5ac367){return _0x5ac367[_0x57653c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57653c([0x65,0x79]))?JSON[_0x57653c([0x70,0x61,0x72,0x73,0x65])](_0x200228(_0x5ac367)):null;}function _0x200228(_0xf0dd93){return window[_0x57653c([0x61,0x74,0x6f,0x62])](_0xf0dd93[_0x57653c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57653c([0x2b]))[_0x57653c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57653c([0x2f])));}function _0x218ac7(_0x457e4e){let _0x33719c=0x1505;function _0x5aa06c(_0x376d43){for(let _0x53e389=0x0;_0x53e389<_0x376d43[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e389++){const _0x47a60e=_0x376d43[_0x57653c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53e389);_0x33719c=(_0x33719c<<0x5)+_0x33719c+_0x47a60e,_0x33719c&=_0x33719c;}}function _0x1be82c(_0x29a5f1){Array[_0x57653c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29a5f1)?_0x29a5f1[_0x57653c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1be82c):_0x29a5f1&&typeof _0x29a5f1==_0x57653c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57653c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29a5f1)[_0x57653c([0x73,0x6f,0x72,0x74])]()[_0x57653c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x155e8c,_0x3ad5b9])=>{_0x5aa06c(_0x155e8c),_0x1be82c(_0x3ad5b9);}):_0x5aa06c(window[_0x57653c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29a5f1));}return _0x1be82c(_0x457e4e),_0x33719c>>>0x0;}function _0x428bf5(_0x1e5891){return _0x1e5891[_0x57653c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57653c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57653c([0x30]));}function _0x25e63e(_0xd96d9a){return _0xd96d9a[_0x57653c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57653c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57653c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a7e69(){}function _0x57653c(_0x2ada13){return _0x2ada13['map'](_0x422cb4=>String['fromCharCode'](_0x422cb4))['join']('');}_0x8df7b(await _0x4ebc95());}(this);}}function I(_0xde9fa4,_0x35906c,_0x4d6065){let _0x4c0c7a=_0x35906c['listMarkers'][_0xde9fa4%_0x35906c['listMarkers']['length']];if(void 0x0===_0x4c0c7a['showMarkerPath']||_0x4c0c7a['showMarkerPath'])return _0x4d6065['slice'](0x0,_0xde9fa4+0x1)['map']((_0x3af168,_0x22d204)=>(_0x4c0c7a=_0x35906c['listMarkers'][_0x22d204%_0x35906c['listMarkers']['length']],S(_0x4c0c7a['marker'],_0x3af168)))['join']('');{const _0x5c8b5a=_0x4d6065[_0x4d6065['length']-0x1];return S(_0x4c0c7a['marker'],_0x5c8b5a);}}function S(_0x390428,_0x41b761){return'function'==typeof _0x390428?_0x390428(_0x41b761):_0x390428;}function N(_0x52eda5,_0x364a9e){return(_0x1ea0ba,_0x3e4895,_0x1b26f2)=>{const _0x42ed49=_0x3e4895['viewItem'];if(_0x3e4895['modelRange']||Object['assign'](_0x3e4895,_0x1b26f2['convertChildren'](_0x3e4895['viewItem'],_0x3e4895['modelCursor'])),!_0x1b26f2['consumable']['test'](_0x42ed49,{'classes':_0x52eda5['className']}))return;const _0x58d704=Array['from'](_0x3e4895['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x1a98d1=>_0x364a9e['checkAttribute'](_0x1a98d1,'listItemId'));if(!_0x58d704['length'])return;_0x1b26f2['consumable']['consume'](_0x42ed49,{'classes':_0x52eda5['className']}),_0x1b26f2['consumable']['consume'](_0x42ed49,{'classes':'multi-level-list'}),_0x1b26f2['consumable']['consume'](_0x42ed49,{'styles':'list-style-type'});const _0x298e79=_0x58d704[0x0]['getAttribute']('listIndent');for(const _0x290e83 of _0x58d704)_0x290e83['getAttribute']('listIndent')==_0x298e79&&(_0x1b26f2['writer']['setAttribute']('listType',_0x52eda5['listType'],_0x290e83),_0x1b26f2['writer']['setAttribute']('listMarkerStyle',_0x52eda5['listMarkerStyle'],_0x290e83));};}function _(_0x264bcf,_0x20e002){const _0x3837f4=_0x264bcf['t'],t=_0x264bcf['t'];switch(_0x20e002){case'Start\x20at':return _0x3837f4('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x3837f4('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x3837f4('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x3837f4('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x20e002;}}class MultiLevelListView extends _0x3049b7{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x5cc76e();['keystrokes']=new _0x2b1fb1();['focusables']=new _0x5113b3();['focusCycler'];constructor(_0x4c4a70,{enabledProperties:_0x5ec537,styleButtonViews:_0x58b255,styleGridAriaLabel:_0xb21a5e}){super(_0x4c4a70);const _0x3bfde9=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x496134({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5ec537['styles']?(this['stylesView']=this['_createStylesView'](_0x58b255,_0xb21a5e),this['children']['add'](this['stylesView'])):_0x3bfde9['push']('ck-multi-level-list-properties_without-styles'),_0x5ec537['startIndex']&&(this['_addListPropertyViews'](_0x5ec537),_0x3bfde9['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x3bfde9},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x38f6f5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x38f6f5['element']);_0x4a77f9({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0xa3cedc['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 _0x2a8e55=_0x26d80b=>_0x26d80b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2a8e55),this['keystrokes']['set']('arrowleft',_0x2a8e55),this['keystrokes']['set']('arrowup',_0x2a8e55),this['keystrokes']['set']('arrowdown',_0x2a8e55);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x35aa67,_0x169ae1){const _0x185409=new _0x3049b7(this['locale']);return _0x185409['children']=_0x185409['createCollection'](),_0x185409['children']['addMany'](_0x35aa67),_0x185409['setTemplate']({'tag':'div','attributes':{'aria-label':_0x169ae1,'class':['ck','ck-multi-level-list-styles']},'children':_0x185409['children']}),_0x185409['children']['delegate']('execute')['to'](this),_0x185409['focus']=function(){this['children']['first']['focus']();},_0x185409['focusTracker']=new _0x5cc76e(),_0x185409['keystrokes']=new _0x2b1fb1(),_0x185409['render'](),_0x185409['keystrokes']['listenTo'](_0x185409['element']),_0x185409;}['_addListPropertyViews'](_0x247085){const _0x210025=[];_0x247085['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x210025['push'](this['startIndexFieldView'])),_0x247085['styles']?(this['additionalPropertiesCollapsibleView']=new _0x2a670f(this['locale'],_0x210025),this['additionalPropertiesCollapsibleView']['set']({'label':_(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x210025,'isEnabled',(..._0x3a233f)=>_0x3a233f['some'](_0x328573=>_0x328573)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2fce67,_0x4137c1,_0x3006c0)=>{_0x3006c0||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x210025);}['_createStartIndexField'](){const _0x3ae812=new _0x128bca(this['locale'],_0x49076c);return _0x3ae812['set']({'label':_(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x3ae812['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3ae812['fieldView']['on']('input',()=>{const _0x5006eb=_0x3ae812['fieldView']['element'],_0xd1135f=_0x5006eb['valueAsNumber'];Number['isNaN'](_0xd1135f)?_0x3ae812['errorText']=_(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x5006eb['checkValidity']()?this['fire']('listStart',{'startIndex':_0xd1135f}):_0x3ae812['errorText']=_(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x3ae812;}}class MultiLevelListUI extends _0x103050{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x968ee6=this['editor'];_0x968ee6['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x16d770,parentCommandName:_0x386e4e,buttonLabel:_0x3192eb,buttonIcon:_0x1c3b52,styleGridAriaLabel:_0x11bee7,styleDefinitions:_0x39e9ed}){const _0x203583=_0x16d770['commands']['get'](_0x386e4e),_0x5f5b56=_0x16d770['config']['get']('list.properties')||{},_0x2fb2a0=_0x16d770['plugins']['has']('ListProperties'),_0x3611ae=_0x5f5b56['startIndex'];if(!_0x2fb2a0||!_0x3611ae)return _0x585c86=>{const _0x403043=new _0x12b144(_0x585c86);return _0x403043['set']({'label':_0x3192eb,'icon':_0x1c3b52,'tooltip':!0x0,'isToggleable':!0x0}),_0x403043['bind']('isOn')['to'](_0x203583,'value',_0x3f3f07=>!!_0x3f3f07),_0x403043['on']('execute',()=>{_0x16d770['execute'](_0x386e4e),_0x16d770['editing']['view']['focus']();}),_0x403043;};return _0x346c05=>{const _0x342c9f=_0x3eaa2e(_0x346c05,_0x272624),_0x18986b=_0x342c9f['buttonView'];return _0x342c9f['bind']('isEnabled')['to'](_0x203583),_0x342c9f['class']='ck-list-styles-dropdown',_0x18986b['on']('execute',()=>{_0x16d770['execute'](_0x386e4e),_0x16d770['editing']['view']['focus']();}),_0x18986b['set']({'label':_0x3192eb,'icon':_0x1c3b52,'tooltip':!0x0,'isToggleable':!0x0}),_0x18986b['bind']('isOn')['to'](_0x203583,'value',_0x5a680b=>!!_0x5a680b),_0x342c9f['once']('change:isOpen',()=>{const _0x123153=function({editor:_0x2f1d1e,dropdownView:_0x3d0b79,styleDefinitions:_0x4b6f29,styleGridAriaLabel:_0x2e8029}){const _0x19256f=_0x2f1d1e['locale'],_0x1dd7ea=_0x2f1d1e['config']['get']('list.properties'),_0x224607=null;_0x1dd7ea['reversed']=!0x1,_0x4b6f29['length']||(_0x1dd7ea['styles']=!0x1);const _0x372791=new MultiLevelListView(_0x19256f,{'styleGridAriaLabel':_0x2e8029,'enabledProperties':_0x1dd7ea,'styleButtonViews':_0x224607});if(_0x1dd7ea['startIndex']){const _0x15e871=_0x2f1d1e['commands']['get']('listStart');_0x372791['startIndexFieldView']['bind']('isEnabled')['to'](_0x15e871),_0x372791['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x15e871),_0x372791['on']('listStart',(_0x16edb7,_0x49718d)=>_0x2f1d1e['execute']('listStart',_0x49718d));}return _0x372791['delegate']('execute')['to'](_0x3d0b79),_0x372791;}({'editor':_0x16d770,'dropdownView':_0x342c9f,'styleGridAriaLabel':_0x11bee7,'styleDefinitions':_0x39e9ed});_0x342c9f['panelView']['children']['add'](_0x123153);}),_0x342c9f['on']('execute',()=>{_0x16d770['editing']['view']['focus']();}),_0x342c9f;};}({'editor':_0x968ee6,'parentCommandName':'multiLevelList','buttonLabel':_(_0x968ee6['locale'],'Multi-level\x20List'),'buttonIcon':_0x59df2c,'styleGridAriaLabel':_(_0x968ee6['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x968ee6['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x4d032b=_0x968ee6['commands']['get']('multiLevelList'),_0x5615cf=new _0x404926(_0x968ee6['locale']);return _0x5615cf['set']({'label':_(_0x968ee6['locale'],'Multi-level\x20List'),'icon':_0x59df2c}),_0x5615cf['bind']('isEnabled')['to'](_0x4d032b),_0x5615cf['bind']('isOn')['to'](_0x4d032b,'value',_0x55fb72=>!!_0x55fb72),_0x5615cf['on']('execute',()=>{_0x968ee6['execute']('multiLevelList'),_0x968ee6['editing']['view']['focus']();}),_0x5615cf;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x843d62=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a0ddd;for(const _0x21450e in _0x843d62){const _0x281e92=_0x21450e,_0x625e1f=_0x843d62[_0x281e92];if('multiLevelListLicenseKeyValid'==_0x625e1f||'multiLevelListLicenseKeyInvalid'==_0x625e1f||'multiLevelListLicenseKeyExpired'==_0x625e1f||'multiLevelListLicenseKeyDomainLimit'==_0x625e1f||'multiLevelListLicenseKeyNotAllowed'==_0x625e1f||'multiLevelListLicenseKeyEvaluationLimit'==_0x625e1f||'multiLevelListLicenseKeyUsageLimit'==_0x625e1f){delete _0x843d62[_0x281e92],_0x3a0ddd=_0x625e1f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3a0ddd&&_0x843d62['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3a0ddd&&_0x843d62['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3a0ddd&&_0x843d62['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3a0ddd&&_0x843d62['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3a0ddd&&_0x843d62['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3a0ddd&&_0x843d62['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class MultiLevelList extends _0x103050{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}export{MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-list-multi-level",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.2",
|
|
4
4
|
"description": "Multi-level list feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.8.1-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.8.1-alpha.2",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|