Notes/libraries/ckeditor/ckeditor.js

27 lines
4.2 MiB
JavaScript
Raw Normal View History

!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help","Advanced options":"Advanced options","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",All:"All","Almost equal to":"Almost equal to",Angle:"Angle","Approximately equal to":"Approximately equal to",Aquamarine:"Aquamarine",Arrows:"Arrows","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","back with leftwards arrow above":"back with leftwards arrow above",Background:"Background","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Big:"Big","Bitcoin sign":"Bitcoin sign",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image",Category:"Category","Cedi sign":"Cedi sign","Cell properties":"Cell properties","Cent sign":"Cent sign","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code","Code block":"Code block","Colon sign":"Colon sign",Color:"Color","Color picker":"Color picker",Column:"Column","Contains as member":"Contains as member","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Copyright sign":"Copyright sign","Create link":"Create link","Cruzeiro sign":"Cruzeiro sign",Currency:"Currency","Currency sign":"Currency sign",Custom:"Custom","Custom image size":"Custom image size",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent",Default:"Default","Degree sign":"Degree sign","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc","Division sign":"Division sign","Document colors":"Document colors","Dollar sign":"Dollar sign","Dong sign":"Dong sign",Dotted:"Dotted",Double:"Double","Double dagger":"Double dagger","Double exclamation mark":"Double exclamation mark","Double low-9 quotation mark":"Double low-9 quotation mark","Double question mark":"Double question mark",Downloadable:"Downloadable","downwards arrow to bar":"downwards arrow to bar","downwards dashed arrow":"downwards dashed arrow","downwards double arrow":"downwards double arrow","downwards simple arrow":"downwards simple arrow","Drachma sign":"Drachma sign","Drag to move":"Drag to move","Dropdown menu":"Dropdown menu","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Element of":"Element of","Em dash":"Em dash","Empty set":"Empty set","En dash":"En dash","end with leftwards arrow above":"end with leftwards arrow above","Ente
/*!
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2017-12-02 10:37:12 -05:00
* For licensing, see LICENSE.md.
*/
2025-01-07 17:07:08 +02:00
function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CKEditor=e():t.CKEditor=e()}(self,(()=>(()=>{var t={9246:(t,e,n)=>{const i=n(6931),r={};for(const t of Object.keys(i))r[i[t]]=t;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(const t of Object.keys(o)){if(!("channels"in o[t]))throw new Error("missing channels property: "+t);if(!("labels"in o[t]))throw new Error("missing channel labels property: "+t);if(o[t].labels.length!==o[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=o[t];delete o[t].channels,delete o[t].labels,Object.defineProperty(o[t],"channels",{value:e}),Object.defineProperty(o[t],"labels",{value:n})}o.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,i=t[2]/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=o-r;let s,c;o===r?s=0:e===o?s=(n-i)/a:n===o?s=2+(i-e)/a:i===o&&(s=4+(e-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const l=(r+o)/2;return c=o===r?0:l<=.5?a/(o+r):a/(2-o-r),[s,100*c,100*l]},o.rgb.hsv=function(t){let e,n,i,r,o;const a=t[0]/255,s=t[1]/255,c=t[2]/255,l=Math.max(a,s,c),u=l-Math.min(a,s,c),h=function(t){return(l-t)/6/u+.5};return 0===u?(r=0,o=0):(o=u/l,e=h(a),n=h(s),i=h(c),a===l?r=i-n:s===l?r=1/3+e-i:c===l&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*l]},o.rgb.hwb=function(t){const e=t[0],n=t[1];let i=t[2];const r=o.rgb.hsl(t)[0],a=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[r,100*a,100*i]},o.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,i=t[2]/255,r=Math.min(1-e,1-n,1-i);return[100*((1-e-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*r]},o.rgb.keyword=function(t){const e=r[t];if(e)return e;let n,o=1/0;for(const e of Object.keys(i)){const r=i[e],c=(s=r,((a=t)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);c<o&&(o=c,n=e)}var a,s;return n},o.keyword.rgb=function(t){return i[t]},o.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*e+.3576*n+.1805*i),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},o.rgb.lab=function(t){const e=o.rgb.xyz(t);let n=e[0],i=e[1],r=e[2];n/=95.047,i/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*i-16,500*(n-i),200*(i-r)]},o.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,i=t[2]/100;let r,o,a;if(0===n)return a=255*i,[a,a,a];r=i<.5?i*(1+n):i+n-i*n;const s=2*i-r,c=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(r-s)*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s,c[t]=255*a;return c},o.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,i=t[2]/100,r=n;const o=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,r*=o<=1?o:2-o;return[e,100*(0===i?2*r/(o+r):2*n/(i+n)),100*((i+n)/2)]},o.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let i=t[2]/100;const r=Math.floor(e)%6,o=e-Math.floor(e),a=255*i*(1-n),s=255*i*(1-n*o),c=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,c,a];case 1:return[s,i,a];case 2:return[a,i,c];case 3:return[a,s,i];case 4:return[c,a,i];case 5:return[i,a,s]}},o.hsv.hsl=function(t){const e=t[0],n=t[1]/100,i=t[2]/100,r=Math.max(i,.01);let o,a;a=(2-n)*i;const s=(2-n)*r;return o=n*r,o/=s<=1?s:2-s,o=o||0,a/=2,[e,100*o,100*a]},o.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,i=t[2]/100;const r=n+i;let o;r>1&&(n/=r,i/=r);const a=Math.floor(6*e),s=1-i;o=6*e-a,1&a&&(o=1-o);const c=n+o*(s-n);let l,u,h;switch(a){default:case 6:case 0:l=s,u=c,h=n;bre
/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
function Nu(t){return(Nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ru(t,e){return(Ru=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fu(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function ju(t,e,n){return(ju=Fu()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&Ru(r,n.prototype),r}).apply(null,arguments)}function $u(t){return zu(t)||Vu(t)||Hu(t)||Uu()}function zu(t){if(Array.isArray(t))return qu(t)}function Vu(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Hu(t,e){if(t){if("string"==typeof t)return qu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qu(t,e):void 0}}function qu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Uu(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}bu.prototype={areaStart:Wl,areaEnd:Wl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Cu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:_u(this,this._t0,yu(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,_u(this,yu(this,n=vu(this,t,e)),n);break;default:_u(this,this._t0,n=vu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Au.prototype=Object.create(Cu.prototype)).point=function(t,e){Cu.prototype.point.call(this,e,t)},xu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}},Su.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=Du(t),r=Du(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Bu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._conte
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
function Ud(t){return null==t}function Gd(t){return"object"==typeof t&&null!==t}function Wd(t){return Array.isArray(t)?t:Ud(t)?[]:[t]}function Kd(t,e){var n,i,r,o;if(e)for(n=0,i=(o=Object.keys(e)).length;n<i;n+=1)t[r=o[n]]=e[r];return t}function Yd(t,e){var n,i="";for(n=0;n<e;n+=1)i+=t;return i}function Xd(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}var Zd={isNothing:Ud,isObject:Gd,toArray:Wd,repeat:Yd,isNegativeZero:Xd,extend:Kd};function Qd(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),i+" "+n):i}function Jd(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Qd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Jd.prototype=Object.create(Error.prototype),Jd.prototype.constructor=Jd,Jd.prototype.toString=function(t){return this.name+": "+Qd(this,t)};var tf=Jd;function ef(t,e,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-e>s&&(e=i-s+(o=" ... ").length),n-i>s&&(n=i+s-(a=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+a,pos:i-e+o.length}}function nf(t,e){return Zd.repeat(" ",e-t.length)+t}function rf(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,i=/\r?\n|\r|\0/g,r=[0],o=[],a=-1;n=i.exec(t.buffer);)o.push(n.index),r.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,c,l="",u=Math.min(t.line+e.linesAfter,o.length).toString().length,h=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(a-s<0);s++)c=ef(t.buffer,r[a-s],o[a-s],t.position-(r[a]-r[a-s]),h),l=Zd.repeat(" ",e.indent)+nf((t.line-s+1).toString(),u)+" | "+c.str+"\n"+l;for(c=ef(t.buffer,r[a],o[a],t.position,h),l+=Zd.repeat(" ",e.indent)+nf((t.line+1).toString(),u)+" | "+c.str+"\n",l+=Zd.repeat("-",e.indent+u+3+c.pos)+"^\n",s=1;s<=e.linesAfter&&!(a+s>=o.length);s++)c=ef(t.buffer,r[a+s],o[a+s],t.position-(r[a]-r[a+s]),h),l+=Zd.repeat(" ",e.indent)+nf((t.line+s+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")}var of=rf,af=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sf=["scalar","sequence","mapping"];function cf(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function lf(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===af.indexOf(e))throw new tf('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=cf(e.styleAliases||null),-1===sf.indexOf(this.kind))throw new tf('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var uf=lf;function hf(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}function df(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}function ff(t){return this.extend(t)}ff.prototype.extend=function(t){var e=[],n=[];if(t instanceof uf)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new tf("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })")
/*! Check if previously processed */
if(h.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");const e=`mermaid-${a.next()}`;s=t.innerHTML,s=i(kb.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=kb.detectInit(s);r&&h.debug("Detected early reinit: ",r);try{mH.render(e,s,((i,r)=>{t.innerHTML=i,void 0!==n&&n(e),r&&r(t)}),t)}catch(t){wH(t,c,MH.parseError)}}if(c.length>0)throw c[0]},vH=async(...t)=>{h.debug(`Loading ${t.length} external diagrams`);const e=(await Promise.allSettled(t.map((async({id:t,detector:e,loader:n})=>{const{diagram:i}=await n();kk(t,i,e)})))).filter((t=>"rejected"===t.status));if(e.length>0){h.error(`Failed to load ${e.length} external diagrams`);for(const t of e)h.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},yH=async function(t,e,n){const r=mH.getConfig();let o;if(t&&(MH.sequenceConfig=t),h.debug((n?"":"No ")+"Callback function found"),void 0===e)o=document.querySelectorAll(".mermaid");else if("string"==typeof e)o=document.querySelectorAll(e);else if(e instanceof HTMLElement)o=[e];else{if(!(e instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");o=e}h.debug(`Found ${o.length} diagrams`),void 0!==(null==t?void 0:t.startOnLoad)&&(h.debug("Start On Load: "+(null==t?void 0:t.startOnLoad)),mH.updateSiteConfig({startOnLoad:null==t?void 0:t.startOnLoad}));const a=new kb.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const c=[];for(const t of Array.from(o)){
/*! Check if previously processed */
if(h.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");const e=`mermaid-${a.next()}`;s=t.innerHTML,s=i(kb.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=kb.detectInit(s);r&&h.debug("Detected early reinit: ",r);try{await mH.renderAsync(e,s,((i,r)=>{t.innerHTML=i,void 0!==n&&n(e),r&&r(t)}),t)}catch(t){wH(t,c,MH.parseError)}}if(c.length>0)throw c[0]},_H=function(t){mH.initialize(t)},CH=async(t,{lazyLoad:e=!0}={})=>{e?Cp(...t):await vH(...t)},AH=function(){if(MH.startOnLoad){const{startOnLoad:t}=mH.getConfig();t&&MH.init().catch((t=>h.error("Mermaid failed to initialize",t)))}};"undefined"!=typeof document&&
/*!
* Wait for document loaded before starting the execution
*/
window.addEventListener("load",AH,!1);const xH=function(t){MH.parseError=t},EH=t=>mH.parse(t,MH.parseError),TH=[];let SH=!1;const DH=async()=>{if(!SH){for(SH=!0;TH.length>0;){const t=TH.shift();if(t)try{await t()}catch(t){h.error("Error executing queue",t)}}SH=!1}},IH=t=>new Promise(((e,n)=>{const i=()=>new Promise(((i,r)=>{mH.parseAsync(t,MH.parseError).then((t=>{i(t),e(t)}),(t=>{h.error("Error parsing",t),r(t),n(t)}))}));TH.push(i),DH().catch(n)})),BH=(t,e,n,i)=>new Promise(((r,o)=>{const a=()=>new Promise(((a,s)=>{mH.renderAsync(t,e,n,i).then((t=>{a(t),r(t)}),(t=>{h.error("Error parsing",t),s(t),o(t)}))}));TH.push(a),DH().catch(o)})),MH={startOnLoad:!0,diagrams:{},mermaidAPI:mH,parse:EH,parseAsync:IH,render:mH.render,renderAsync:BH,init:bH,initThrowsErrors:kH,initThrowsErrorsAsync:yH,registerExternalDiagrams:CH,initialize:_H,parseError:void 0,contentLoaded:AH,setParseErrorHandler:xH},PH=(t,e,n)=>{const{parentById:i}=n,r=new Set;let o=t;for(;o;){if(r.add(o),o===e)return o;o=i[o]}for(o=e;o;){if(r.has(o))return o;o=i[o]}return"root"};function LH(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var OH={};!function(t){var e;e=function(){return function(){function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof LH&&LH;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return r(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof LH&&LH,a=0;a<i.length;a++)r(i[a]);return r}return t}()({1:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.defaultLayoutOptions,o=void 0===i?{}:i,s=n.algorithms,c=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,l=n.workerFactory,u=n.workerUrl;if(r(this,t),this.defaultLayoutOptions=o,this.initialized=!1,void 0===u&&void 0===l)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var h=l;void 0!==u&&void 0===l&&(h=function(t){return new Worker(t)});var d=h(u);if("function"!=typeof d.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new a(d),this.worker.postMessage({cmd:"register",algorithms:c}).then((function(t){return e.initialized=!0})).catch(console.err)}return i(t,[{key:"layout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,i=void 0===n?this.defaultLayoutOptions:n,r=e.logging,o=void 0!==r&&r,a=e.measureExecutionTime,s=void 0!==a&&a;return t?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:i,options:{logging:o,measureExecutionTime:s}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),t}();n.default=o;var a=function(){function t(e){var n=this;if(r(this,t),void 0===e)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout((function(){n.receive(n,t)}),0)}}return i(t,[{key:"postMessage",value:function(t){var e=this.id||0;thi
/*!
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
Licensed under The MIT License (http://opensource.org/licenses/MIT)
*/
var Ir=0,Br=1,Mr=2,Pr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Ir,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Pr.prototype={fulfill:function(t){return Lr(this,Br,"fulfillValue",t)},reject:function(t){return Lr(this,Mr,"rejectReason",t)},then:function(t,e){var n=this,i=new Pr;return n.onFulfilled.push(Rr(t,i,"fulfill")),n.onRejected.push(Rr(e,i,"reject")),Or(n),i.proxy}};var Lr=function(t,e,n,i){return t.state===Ir&&(t.state=e,t[n]=i,Or(t)),t},Or=function(t){t.state===Br?Nr(t,"onFulfilled",t.fulfillValue):t.state===Mr&&Nr(t,"onRejected",t.rejectReason)},Nr=function(t,e,n){if(0!==t[e].length){var i=t[e];t[e]=[];var r=function(){for(var t=0;t<i.length;t++)i[t](n)};"function"==typeof setImmediate?setImmediate(r):setTimeout(r,0)}},Rr=function(t,e,n){return function(i){if("function"!=typeof t)e[n].call(e,i);else{var r;try{r=t(i)}catch(t){return void e.reject(t)}Fr(e,r)}}},Fr=function e(n,i){if(n!==i&&n.proxy!==i){var r;if("object"===t(i)&&null!==i||"function"==typeof i)try{r=i.then}catch(t){return void n.reject(t)}if("function"!=typeof r)n.fulfill(i);else{var o=!1;try{r.call(i,(function(t){o||(o=!0,t===i?n.reject(new TypeError("circular thenable chain")):e(n,t))}),(function(t){o||(o=!0,n.reject(t))}))}catch(t){o||n.reject(t)}}}else n.reject(new TypeError("cannot resolve promise with itself"))};Pr.all=function(t){return new Pr((function(e,n){for(var i=new Array(t.length),r=0,o=function(n,o){i[n]=o,++r===t.length&&e(i)},a=0;a<t.length;a++)!function(e){var i=t[e];null!=i&&null!=i.then?i.then((function(t){o(e,t)}),(function(t){n(t)})):o(e,i)}(a)}))},Pr.resolve=function(t){return new Pr((function(e,n){e(t)}))},Pr.reject=function(t){return new Pr((function(e,n){n(t)}))};var jr="undefined"!=typeof Promise?Promise:Pr,$r=function(t,e,n){var i=I(t),r=!i,o=this._private=Q({duration:1e3},e,n);if(o.target=t,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&v(o.complete)&&o.completes.push(o.complete),r){var a=t.position();o.startPosition=o.startPosition||{x:a.x,y:a.y},o.startStyle=o.startStyle||t.cy().style().getAnimationStartStyle(t,o.style)}if(i){var s=t.pan();o.startPan={x:s.x,y:s.y},o.startZoom=t.zoom()}this.length=1,this[0]=this},zr=$r.prototype;Q(zr,{instanceString:function(){return"animation"},hook:function(){var t=this._private;if(!t.hooked){var e=t.target._private.animation;(t.queue?e.queue:e.current).push(this),T(t.target)&&t.target.cy().addToAnimationPool(t.target),t.hooked=!0}return this},play:function(){var t=this._private;return 1===t.progress&&(t.progress=0),t.playing=!0,t.started=!1,t.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var t=this._private;return t.applying=!0,t.started=!1,t.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var t=this._private;return t.playing=!1,t.started=!1,this},stop:function(){var t=this._private;return t.playing=!1,t.started=!1,t.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(t){var e=this._private;return void 0===t?e.progress*e.duration:this.progress(t/e.duration)},progress:function(t){var e=this._private,n=e.playing;return void 0===t?e.progress:(n&&this.pause(),e.progress=t,e.started=!1,n&&this.play(),this)},completed:function(){return 1===this._private.progress},reverse:function(){var t=this._private,e=t.playing;e&&this.pause(),t.progress=1-t.progress,t.started=!1;var n=function(e,n){var i=t[e];null!=i&&(t[e]=t[n],t[n]=i)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),t.style)for(var i=0;i<t.style.length;i++){var r=t.style[i],o=r.name,a=t.startStyle[o];t.startStyle[o]=r,t.style[i]=a}return e&&this.play(),this},promise:function(t){var e,n=this._private;return e="frame"===t?n.frames:n.completes,new jr((funct
/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function vl(t,e,n,i){var r=4,o=.001,a=1e-7,s=10,c=11,l=1/(c-1),u="undefined"!=typeof Float32Array;if(4!==arguments.length)return!1;for(var h=0;h<4;++h)if("number"!=typeof arguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;t=Math.min(t,1),n=Math.min(n,1),t=Math.max(t,0),n=Math.max(n,0);var d=u?new Float32Array(c):new Array(c);function f(t,e){return 1-3*e+3*t}function g(t,e){return 3*e-6*t}function p(t){return 3*t}function m(t,e,n){return((f(e,n)*t+g(e,n))*t+p(e))*t}function b(t,e,n){return 3*f(e,n)*t*t+2*g(e,n)*t+p(e)}function w(e,i){for(var o=0;o<r;++o){var a=b(i,t,n);if(0===a)return i;i-=(m(i,t,n)-e)/a}return i}function k(){for(var e=0;e<c;++e)d[e]=m(e*l,t,n)}function v(e,i,r){var o,c,l=0;do{(o=m(c=i+(r-i)/2,t,n)-e)>0?r=c:i=c}while(Math.abs(o)>a&&++l<s);return c}function y(e){for(var i=0,r=1,a=c-1;r!==a&&d[r]<=e;++r)i+=l;--r;var s=i+(e-d[r])/(d[r+1]-d[r])*l,u=b(s,t,n);return u>=o?w(e,s):0===u?s:v(e,i,i+l)}var _=!1;function C(){_=!0,t===e&&n===i||k()}var A=function(r){return _||C(),t===e&&n===i?r:0===r?0:1===r?1:m(y(r),e,i)};A.getControlPoints=function(){return[{x:t,y:e},{x:n,y:i}]};var x="generateBezier("+[t,e,n,i]+")";return A.toString=function(){return x},A}
/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var yl=function(){function t(t){return-t.tension*t.x-t.friction*t.v}function e(e,n,i){var r={x:e.x+i.dx*n,v:e.v+i.dv*n,tension:e.tension,friction:e.friction};return{dx:r.v,dv:t(r)}}function n(n,i){var r={dx:n.v,dv:t(n)},o=e(n,.5*i,r),a=e(n,.5*i,o),s=e(n,i,a),c=1/6*(r.dx+2*(o.dx+a.dx)+s.dx),l=1/6*(r.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+c*i,n.v=n.v+l*i,n}return function t(e,i,r){var o,a,s,c={x:-1,v:0,tension:null,friction:null},l=[0],u=0,h=1e-4,d=.016;for(e=parseFloat(e)||500,i=parseFloat(i)||20,r=r||null,c.tension=e,c.friction=i,a=(o=null!==r)?(u=t(e,i))/r*d:d;s=n(s||c,a),l.push(1+s.x),u+=16,Math.abs(s.x)>h&&Math.abs(s.v)>h;);return o?function(t){return l[t*(l.length-1)|0]}:u}}(),_l=function(t,e,n,i){var r=vl(t,e,n,i);return function(t,e,n){return t+(e-t)*r(n)}},Cl={linear:function(t,e,n){return t+(e-t)*n},ease:_l(.25,.1,.25,1),"ease-in":_l(.42,0,1,1),"ease-out":_l(0,0,.58,1),"ease-in-out":_l(.42,0,.58,1),"ease-in-sine":_l(.47,0,.745,.715),"ease-out-sine":_l(.39,.575,.565,1),"ease-in-out-sine":_l(.445,.05,.55,.95),"ease-in-quad":_l(.55,.085,.68,.53),"ease-out-quad":_l(.25,.46,.45,.94),"ease-in-out-quad":_l(.455,.03,.515,.955),"ease-in-cubic":_l(.55,.055,.675,.19),"ease-out-cubic":_l(.215,.61,.355,1),"ease-in-out-cubic":_l(.645,.045,.355,1),"ease-in-quart":_l(.895,.03,.685,.22),"ease-out-quart":_l(.165,.84,.44,1),"ease-in-out-quart":_l(.77,0,.175,1),"ease-in-quint":_l(.755,.05,.855,.06),"ease-out-quint":_l(.23,1,.32,1),"ease-in-out-quint":_l(.86,0,.07,1),"ease-in-expo":_l(.95,.05,.795,.035),"ease-out-expo":_l(.19,1,.22,1),"ease-in-out-expo":_l(1,0,0,1),"ease-in-circ":_l(.6,.04,.98,.335),"ease-out-circ":_l(.075,.82,.165,1),"ease-in-out-circ":_l(.785,.135,.15,.86),spring:function(t,e,n){if(0===n)return Cl.linear;var i=yl(t,e,n);return function(t,e,n){return t+(e-t)*i(n)}},"cubic-bezier":_l};function Al(t,e,n,i,r){if(1===i)return n;if(e===n)return n;var o=r(e,n,i);return null==t||((t.roundValue||t.color)&&(o=Math.round(o)),void 0!==t.min&&(o=Math.max(o,t.min)),void 0!==t.max&&(o=Math.min(o,t.max))),o}function xl(t,e){return null!=t.pfValue||null!=t.value?null==t.pfValue||null!=e&&"%"===e.type.units?t.value:t.pfValue:t}function El(t,e,n,i,r){var o=null!=r?r.type:null;n<0?n=0:n>1&&(n=1);var a=xl(t,r),s=xl(e,r);if(A(a)&&A(s))return Al(o,a,s,n,i);if(y(a)&&y(s)){for(var c=[],l=0;l<s.length;l++){var u=a[l],h=s[l];if(null!=u&&null!=h){var d=Al(o,u,h,n,i);c.push(d)}else c.push(h)}return c}}function Tl(t,e,n,i){var r=!i,o=t._private,a=e._private,s=a.easing,c=a.startTime,l=(i?t:t.cy()).style();if(!a.easingImpl)if(null==s)a.easingImpl=Cl.linear;else{var u,h,d;u=k(s)?l.parse("transition-timing-function",s).value:s,k(u)?(h=u,d=[]):(h=u[1],d=u.slice(2).map((function(t){return+t}))),d.length>0?("spring"===h&&d.push(a.duration),a.easingImpl=Cl[h].apply(null,d)):a.easingImpl=Cl[h]}var f,g=a.easingImpl;if(f=0===a.duration?1:(n-c)/a.duration,a.applying&&(f=a.progress),f<0?f=0:f>1&&(f=1),null==a.delay){var p=a.startPosition,m=a.position;if(m&&r&&!t.locked()){var b={};Sl(p.x,m.x)&&(b.x=El(p.x,m.x,f,g)),Sl(p.y,m.y)&&(b.y=El(p.y,m.y,f,g)),t.position(b)}var w=a.startPan,v=a.pan,y=o.pan,_=null!=v&&i;_&&(Sl(w.x,v.x)&&(y.x=El(w.x,v.x,f,g)),Sl(w.y,v.y)&&(y.y=El(w.y,v.y,f,g)),t.emit("pan"));var C=a.startZoom,A=a.zoom,x=null!=A&&i;x&&(Sl(C,A)&&(o.zoom=Tn(o.minZoom,El(C,A,f,g),o.maxZoom)),t.emit("zoom")),(_||x)&&t.emit("viewport");var E=a.style;if(E&&E.length>0&&r){for(var T=0;T<E.length;T++){var S=E[T],D=S.name,I=S,B=a.startStyle[D],M=El(B,I,f,g,l.properties[B.name]);l.overrideBypass(t,D,M)}t.emit("style")}}return a.progress=f,f}function Sl(t,e){return!!(null!=t&&null!=e&&(A(t)&&A(e)||t&&e))}function Dl(t,e,n,i){var r=e._private;r.started=!0,r.startTime=n-r.progress*r.duration}function Il(t,e){var n=e._private.aniEles,i=[];function r(e,n){var r=e._private,o=r.animation.current,a=r.animation.queue,s=!1;if(0===o.length){var c=a.shift();c&&o.push(c)}for(var l=function(t){for(var e=t.length-1;e>=0;e--)(0,t[e]
2024-07-27 21:53:59 +03:00
//# sourceMappingURL=ckeditor.js.map